diff --git a/packages/python/plotly/_plotly_utils/basevalidators.py b/packages/python/plotly/_plotly_utils/basevalidators.py index 3e7bd9faddf..e54d8f65e75 100644 --- a/packages/python/plotly/_plotly_utils/basevalidators.py +++ b/packages/python/plotly/_plotly_utils/basevalidators.py @@ -1328,25 +1328,14 @@ def numbers_allowed(self): return self.colorscale_path is not None def description(self): - - named_clrs_str = "\n".join( - textwrap.wrap( - ", ".join(self.named_colors), - width=79 - 16, - initial_indent=" " * 12, - subsequent_indent=" " * 12, - ) - ) - valid_color_description = """\ The '{plotly_name}' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: -{clrs}""".format( - plotly_name=self.plotly_name, clrs=named_clrs_str + - A named CSS color""".format( + plotly_name=self.plotly_name ) if self.colorscale_path: @@ -2483,15 +2472,11 @@ def description(self): that may be specified as: - An instance of :class:`{module_str}.{class_str}` - A dict of string/value properties that will be passed - to the {class_str} constructor - - Supported dict properties: - {constructor_params_str}""" + to the {class_str} constructor""" ).format( plotly_name=self.plotly_name, class_str=self.data_class_str, module_str=self.module_str, - constructor_params_str=self.data_docs, ) return desc @@ -2560,15 +2545,11 @@ def description(self): {class_str} that may be specified as: - A list or tuple of instances of {module_str}.{class_str} - A list or tuple of dicts of string/value properties that - will be passed to the {class_str} constructor - - Supported dict properties: - {constructor_params_str}""" + will be passed to the {class_str} constructor""" ).format( plotly_name=self.plotly_name, class_str=self.data_class_str, module_str=self.module_str, - constructor_params_str=self.data_docs, ) return desc diff --git a/packages/python/plotly/bin/get_size.py b/packages/python/plotly/bin/get_size.py new file mode 100644 index 00000000000..21188f9f3a1 --- /dev/null +++ b/packages/python/plotly/bin/get_size.py @@ -0,0 +1,29 @@ +"""Calculate total size and total number of files of package.""" + +from pathlib import Path +import sys + + +def main(): + """Main driver.""" + assert len(sys.argv) == 3, "Usage: get_size.py src_dir build_dir" + src_files, src_bytes = get_size(sys.argv[1]) + build_files, build_bytes = get_size(sys.argv[2]) + print(f"src,files,{src_files}") + print(f"src,bytes,{src_bytes}") + print(f"build,files,{build_files}") + print(f"build,bytes,{build_bytes}") + + +def get_size(root_dir): + """Count files and size in bytes.""" + num_files, num_bytes = 0, 0 + for f in Path(root_dir).glob("**/*.*"): + if "__pycache__" not in str(f): + num_files += 1 + num_bytes += f.stat().st_size + return num_files, num_bytes + + +if __name__ == "__main__": + main() diff --git a/packages/python/plotly/codegen/__init__.py b/packages/python/plotly/codegen/__init__.py index 6b4a3261312..455580d8f71 100644 --- a/packages/python/plotly/codegen/__init__.py +++ b/packages/python/plotly/codegen/__init__.py @@ -85,7 +85,7 @@ def preprocess_schema(plotly_schema): items["colorscale"] = items.pop("concentrationscales") -def perform_codegen(): +def perform_codegen(reformat=True): # Set root codegen output directory # --------------------------------- # (relative to project root) @@ -267,36 +267,24 @@ def perform_codegen(): root_datatype_imports.append(f"._deprecations.{dep_clas}") optional_figure_widget_import = f""" -if sys.version_info < (3, 7) or TYPE_CHECKING: - try: - import ipywidgets as _ipywidgets - from packaging.version import Version as _Version - if _Version(_ipywidgets.__version__) >= _Version("7.0.0"): - from ..graph_objs._figurewidget import FigureWidget - else: - raise ImportError() - except Exception: - from ..missing_anywidget import FigureWidget -else: - __all__.append("FigureWidget") - orig_getattr = __getattr__ - def __getattr__(import_name): - if import_name == "FigureWidget": - try: - import ipywidgets - from packaging.version import Version - - if Version(ipywidgets.__version__) >= Version("7.0.0"): - from ..graph_objs._figurewidget import FigureWidget - - return FigureWidget - else: - raise ImportError() - except Exception: - from ..missing_anywidget import FigureWidget +__all__.append("FigureWidget") +orig_getattr = __getattr__ +def __getattr__(import_name): + if import_name == "FigureWidget": + try: + import ipywidgets + from packaging.version import Version + + if Version(ipywidgets.__version__) >= Version("7.0.0"): + from ..graph_objs._figurewidget import FigureWidget return FigureWidget + else: + raise ImportError() + except Exception: + from ..missing_anywidget import FigureWidget + return FigureWidget - return orig_getattr(import_name) + return orig_getattr(import_name) """ # ### __all__ ### for path_parts, class_names in alls.items(): @@ -337,9 +325,12 @@ def __getattr__(import_name): f.write(graph_objects_init_source) # ### Run black code formatter on output directories ### - subprocess.call(["black", "--target-version=py36", validators_pkgdir]) - subprocess.call(["black", "--target-version=py36", graph_objs_pkgdir]) - subprocess.call(["black", "--target-version=py36", graph_objects_path]) + if reformat: + subprocess.call(["black", "--target-version=py36", validators_pkgdir]) + subprocess.call(["black", "--target-version=py36", graph_objs_pkgdir]) + subprocess.call(["black", "--target-version=py36", graph_objects_path]) + else: + print("skipping reformatting") if __name__ == "__main__": diff --git a/packages/python/plotly/codegen/datatypes.py b/packages/python/plotly/codegen/datatypes.py index deb1c9bbdf9..f3938d7bc66 100644 --- a/packages/python/plotly/codegen/datatypes.py +++ b/packages/python/plotly/codegen/datatypes.py @@ -373,10 +373,7 @@ def __init__(self""" name_prop = subtype_node.name_property buffer.write( f""" - _v = arg.pop('{name_prop}', None) - _v = {name_prop} if {name_prop} is not None else _v - if _v is not None: - self['{name_prop}'] = _v""" + self._init_provided('{name_prop}', arg, {name_prop})""" ) # ### Literals ### diff --git a/packages/python/plotly/codegen/utils.py b/packages/python/plotly/codegen/utils.py index 087e3d683b6..137009876ab 100644 --- a/packages/python/plotly/codegen/utils.py +++ b/packages/python/plotly/codegen/utils.py @@ -75,16 +75,12 @@ def build_from_imports_py(rel_modules=(), rel_classes=(), init_extra=""): result = f"""\ import sys -from typing import TYPE_CHECKING -if sys.version_info < (3, 7) or TYPE_CHECKING: - {imports_str} -else: - from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, - {repr(rel_modules)}, - {repr(rel_classes)} - ) +from _plotly_utils.importers import relative_import +__all__, __getattr__, __dir__ = relative_import( + __name__, + {repr(rel_modules)}, + {repr(rel_classes)} +) {init_extra} """ @@ -456,9 +452,7 @@ def get_validator_params(self): if self.is_compound: params["data_class_str"] = repr(self.name_datatype_class) - params["data_docs"] = ( - '"""' + self.get_constructor_params_docstring() + '\n"""' - ) + params["data_docs"] = '"""\n"""' else: assert self.is_simple diff --git a/packages/python/plotly/codegen/validators.py b/packages/python/plotly/codegen/validators.py index 6867e2fd3a4..d1cc8d42fce 100644 --- a/packages/python/plotly/codegen/validators.py +++ b/packages/python/plotly/codegen/validators.py @@ -24,15 +24,15 @@ def build_validator_py(node: PlotlyNode): # --------------- assert node.is_datatype - # Initialize source code buffer - # ----------------------------- + # Initialize buffer = StringIO() + import_alias = "_bv" # Imports # ------- # ### Import package of the validator's superclass ### import_str = ".".join(node.name_base_validator.split(".")[:-1]) - buffer.write(f"import {import_str }\n") + buffer.write(f"import {import_str} as {import_alias}\n") # Build Validator # --------------- @@ -41,11 +41,11 @@ def build_validator_py(node: PlotlyNode): # ### Write class definition ### class_name = node.name_validator_class - superclass_name = node.name_base_validator + superclass_name = node.name_base_validator.split(".")[-1] buffer.write( f""" -class {class_name}({superclass_name}): +class {class_name}({import_alias}.{superclass_name}): def __init__(self, plotly_name={params['plotly_name']}, parent_name={params['parent_name']}, **kwargs):""" diff --git a/packages/python/plotly/plotly/basedatatypes.py b/packages/python/plotly/plotly/basedatatypes.py index a3044f6763a..c8d50be2f24 100644 --- a/packages/python/plotly/plotly/basedatatypes.py +++ b/packages/python/plotly/plotly/basedatatypes.py @@ -385,6 +385,18 @@ def _generator(i): yield x +def _initialize_provided(obj, name, arg, provided): + """ + Initialize a property of this object using the provided value + or a value popped from the arguments dictionary. If neither + is available, do not set the property. + """ + val = arg.pop(name, None) + val = provided if provided is not None else val + if val is not None: + obj[name] = val + + class BaseFigure(object): """ Base class for all figure types (both widget and non-widget) @@ -834,6 +846,14 @@ def _ipython_display_(self): else: print(repr(self)) + def _init_provided(self, name, arg, provided): + """ + Initialize a property of this object using the provided value + or a value popped from the arguments dictionary. If neither + is available, do not set the property. + """ + _initialize_provided(self, name, arg, provided) + def update(self, dict1=None, overwrite=False, **kwargs): """ Update the properties of the figure with a dict and/or with @@ -4329,6 +4349,14 @@ def _get_validator(self, prop): return ValidatorCache.get_validator(self._path_str, prop) + def _init_provided(self, name, arg, provided): + """ + Initialize a property of this object using the provided value + or a value popped from the arguments dictionary. If neither + is available, do not set the property. + """ + _initialize_provided(self, name, arg, provided) + @property def _validators(self): """ diff --git a/packages/python/plotly/plotly/graph_objects/__init__.py b/packages/python/plotly/plotly/graph_objects/__init__.py index 2e6e5980cf7..1ade2b29d3e 100644 --- a/packages/python/plotly/plotly/graph_objects/__init__.py +++ b/packages/python/plotly/plotly/graph_objects/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ..graph_objs import Waterfall from ..graph_objs import Volume @@ -131,140 +130,10 @@ from ..graph_objs import layout else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [ - "..graph_objs.waterfall", - "..graph_objs.volume", - "..graph_objs.violin", - "..graph_objs.treemap", - "..graph_objs.table", - "..graph_objs.surface", - "..graph_objs.sunburst", - "..graph_objs.streamtube", - "..graph_objs.splom", - "..graph_objs.scatterternary", - "..graph_objs.scattersmith", - "..graph_objs.scatterpolargl", - "..graph_objs.scatterpolar", - "..graph_objs.scattermapbox", - "..graph_objs.scattermap", - "..graph_objs.scattergl", - "..graph_objs.scattergeo", - "..graph_objs.scattercarpet", - "..graph_objs.scatter3d", - "..graph_objs.scatter", - "..graph_objs.sankey", - "..graph_objs.pie", - "..graph_objs.parcoords", - "..graph_objs.parcats", - "..graph_objs.ohlc", - "..graph_objs.mesh3d", - "..graph_objs.isosurface", - "..graph_objs.indicator", - "..graph_objs.image", - "..graph_objs.icicle", - "..graph_objs.histogram2dcontour", - "..graph_objs.histogram2d", - "..graph_objs.histogram", - "..graph_objs.heatmap", - "..graph_objs.funnelarea", - "..graph_objs.funnel", - "..graph_objs.densitymapbox", - "..graph_objs.densitymap", - "..graph_objs.contourcarpet", - "..graph_objs.contour", - "..graph_objs.cone", - "..graph_objs.choroplethmapbox", - "..graph_objs.choroplethmap", - "..graph_objs.choropleth", - "..graph_objs.carpet", - "..graph_objs.candlestick", - "..graph_objs.box", - "..graph_objs.barpolar", - "..graph_objs.bar", - "..graph_objs.layout", - ], - [ - "..graph_objs.Waterfall", - "..graph_objs.Volume", - "..graph_objs.Violin", - "..graph_objs.Treemap", - "..graph_objs.Table", - "..graph_objs.Surface", - "..graph_objs.Sunburst", - "..graph_objs.Streamtube", - "..graph_objs.Splom", - "..graph_objs.Scatterternary", - "..graph_objs.Scattersmith", - "..graph_objs.Scatterpolargl", - "..graph_objs.Scatterpolar", - "..graph_objs.Scattermapbox", - "..graph_objs.Scattermap", - "..graph_objs.Scattergl", - "..graph_objs.Scattergeo", - "..graph_objs.Scattercarpet", - "..graph_objs.Scatter3d", - "..graph_objs.Scatter", - "..graph_objs.Sankey", - "..graph_objs.Pie", - "..graph_objs.Parcoords", - "..graph_objs.Parcats", - "..graph_objs.Ohlc", - "..graph_objs.Mesh3d", - "..graph_objs.Isosurface", - "..graph_objs.Indicator", - "..graph_objs.Image", - "..graph_objs.Icicle", - "..graph_objs.Histogram2dContour", - "..graph_objs.Histogram2d", - "..graph_objs.Histogram", - "..graph_objs.Heatmap", - "..graph_objs.Funnelarea", - "..graph_objs.Funnel", - "..graph_objs.Densitymapbox", - "..graph_objs.Densitymap", - "..graph_objs.Contourcarpet", - "..graph_objs.Contour", - "..graph_objs.Cone", - "..graph_objs.Choroplethmapbox", - "..graph_objs.Choroplethmap", - "..graph_objs.Choropleth", - "..graph_objs.Carpet", - "..graph_objs.Candlestick", - "..graph_objs.Box", - "..graph_objs.Barpolar", - "..graph_objs.Bar", - "..graph_objs.Layout", - "..graph_objs.Frame", - "..graph_objs.Figure", - "..graph_objs.Data", - "..graph_objs.Annotations", - "..graph_objs.Frames", - "..graph_objs.AngularAxis", - "..graph_objs.Annotation", - "..graph_objs.ColorBar", - "..graph_objs.Contours", - "..graph_objs.ErrorX", - "..graph_objs.ErrorY", - "..graph_objs.ErrorZ", - "..graph_objs.Font", - "..graph_objs.Legend", - "..graph_objs.Line", - "..graph_objs.Margin", - "..graph_objs.Marker", - "..graph_objs.RadialAxis", - "..graph_objs.Scene", - "..graph_objs.Stream", - "..graph_objs.XAxis", - "..graph_objs.YAxis", - "..graph_objs.ZAxis", - "..graph_objs.XBins", - "..graph_objs.YBins", - "..graph_objs.Trace", - "..graph_objs.Histogram2dcontour", - ], + ['..graph_objs.waterfall', '..graph_objs.volume', '..graph_objs.violin', '..graph_objs.treemap', '..graph_objs.table', '..graph_objs.surface', '..graph_objs.sunburst', '..graph_objs.streamtube', '..graph_objs.splom', '..graph_objs.scatterternary', '..graph_objs.scattersmith', '..graph_objs.scatterpolargl', '..graph_objs.scatterpolar', '..graph_objs.scattermapbox', '..graph_objs.scattermap', '..graph_objs.scattergl', '..graph_objs.scattergeo', '..graph_objs.scattercarpet', '..graph_objs.scatter3d', '..graph_objs.scatter', '..graph_objs.sankey', '..graph_objs.pie', '..graph_objs.parcoords', '..graph_objs.parcats', '..graph_objs.ohlc', '..graph_objs.mesh3d', '..graph_objs.isosurface', '..graph_objs.indicator', '..graph_objs.image', '..graph_objs.icicle', '..graph_objs.histogram2dcontour', '..graph_objs.histogram2d', '..graph_objs.histogram', '..graph_objs.heatmap', '..graph_objs.funnelarea', '..graph_objs.funnel', '..graph_objs.densitymapbox', '..graph_objs.densitymap', '..graph_objs.contourcarpet', '..graph_objs.contour', '..graph_objs.cone', '..graph_objs.choroplethmapbox', '..graph_objs.choroplethmap', '..graph_objs.choropleth', '..graph_objs.carpet', '..graph_objs.candlestick', '..graph_objs.box', '..graph_objs.barpolar', '..graph_objs.bar', '..graph_objs.layout'], + ['..graph_objs.Waterfall', '..graph_objs.Volume', '..graph_objs.Violin', '..graph_objs.Treemap', '..graph_objs.Table', '..graph_objs.Surface', '..graph_objs.Sunburst', '..graph_objs.Streamtube', '..graph_objs.Splom', '..graph_objs.Scatterternary', '..graph_objs.Scattersmith', '..graph_objs.Scatterpolargl', '..graph_objs.Scatterpolar', '..graph_objs.Scattermapbox', '..graph_objs.Scattermap', '..graph_objs.Scattergl', '..graph_objs.Scattergeo', '..graph_objs.Scattercarpet', '..graph_objs.Scatter3d', '..graph_objs.Scatter', '..graph_objs.Sankey', '..graph_objs.Pie', '..graph_objs.Parcoords', '..graph_objs.Parcats', '..graph_objs.Ohlc', '..graph_objs.Mesh3d', '..graph_objs.Isosurface', '..graph_objs.Indicator', '..graph_objs.Image', '..graph_objs.Icicle', '..graph_objs.Histogram2dContour', '..graph_objs.Histogram2d', '..graph_objs.Histogram', '..graph_objs.Heatmap', '..graph_objs.Funnelarea', '..graph_objs.Funnel', '..graph_objs.Densitymapbox', '..graph_objs.Densitymap', '..graph_objs.Contourcarpet', '..graph_objs.Contour', '..graph_objs.Cone', '..graph_objs.Choroplethmapbox', '..graph_objs.Choroplethmap', '..graph_objs.Choropleth', '..graph_objs.Carpet', '..graph_objs.Candlestick', '..graph_objs.Box', '..graph_objs.Barpolar', '..graph_objs.Bar', '..graph_objs.Layout', '..graph_objs.Frame', '..graph_objs.Figure', '..graph_objs.Data', '..graph_objs.Annotations', '..graph_objs.Frames', '..graph_objs.AngularAxis', '..graph_objs.Annotation', '..graph_objs.ColorBar', '..graph_objs.Contours', '..graph_objs.ErrorX', '..graph_objs.ErrorY', '..graph_objs.ErrorZ', '..graph_objs.Font', '..graph_objs.Legend', '..graph_objs.Line', '..graph_objs.Margin', '..graph_objs.Marker', '..graph_objs.RadialAxis', '..graph_objs.Scene', '..graph_objs.Stream', '..graph_objs.XAxis', '..graph_objs.YAxis', '..graph_objs.ZAxis', '..graph_objs.XBins', '..graph_objs.YBins', '..graph_objs.Trace', '..graph_objs.Histogram2dcontour'] ) @@ -272,7 +141,6 @@ try: import ipywidgets as _ipywidgets from packaging.version import Version as _Version - if _Version(_ipywidgets.__version__) >= _Version("7.0.0"): from ..graph_objs._figurewidget import FigureWidget else: @@ -282,7 +150,6 @@ else: __all__.append("FigureWidget") orig_getattr = __getattr__ - def __getattr__(import_name): if import_name == "FigureWidget": try: @@ -297,7 +164,7 @@ def __getattr__(import_name): raise ImportError() except Exception: from ..missing_anywidget import FigureWidget - return FigureWidget return orig_getattr(import_name) + diff --git a/packages/python/plotly/plotly/graph_objs/__init__.py b/packages/python/plotly/plotly/graph_objs/__init__.py index 9e80b4063eb..d6361f9697d 100644 --- a/packages/python/plotly/plotly/graph_objs/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._bar import Bar from ._barpolar import Barpolar @@ -131,140 +130,10 @@ from . import waterfall else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [ - ".bar", - ".barpolar", - ".box", - ".candlestick", - ".carpet", - ".choropleth", - ".choroplethmap", - ".choroplethmapbox", - ".cone", - ".contour", - ".contourcarpet", - ".densitymap", - ".densitymapbox", - ".funnel", - ".funnelarea", - ".heatmap", - ".histogram", - ".histogram2d", - ".histogram2dcontour", - ".icicle", - ".image", - ".indicator", - ".isosurface", - ".layout", - ".mesh3d", - ".ohlc", - ".parcats", - ".parcoords", - ".pie", - ".sankey", - ".scatter", - ".scatter3d", - ".scattercarpet", - ".scattergeo", - ".scattergl", - ".scattermap", - ".scattermapbox", - ".scatterpolar", - ".scatterpolargl", - ".scattersmith", - ".scatterternary", - ".splom", - ".streamtube", - ".sunburst", - ".surface", - ".table", - ".treemap", - ".violin", - ".volume", - ".waterfall", - ], - [ - "._bar.Bar", - "._barpolar.Barpolar", - "._box.Box", - "._candlestick.Candlestick", - "._carpet.Carpet", - "._choropleth.Choropleth", - "._choroplethmap.Choroplethmap", - "._choroplethmapbox.Choroplethmapbox", - "._cone.Cone", - "._contour.Contour", - "._contourcarpet.Contourcarpet", - "._densitymap.Densitymap", - "._densitymapbox.Densitymapbox", - "._deprecations.AngularAxis", - "._deprecations.Annotation", - "._deprecations.Annotations", - "._deprecations.ColorBar", - "._deprecations.Contours", - "._deprecations.Data", - "._deprecations.ErrorX", - "._deprecations.ErrorY", - "._deprecations.ErrorZ", - "._deprecations.Font", - "._deprecations.Frames", - "._deprecations.Histogram2dcontour", - "._deprecations.Legend", - "._deprecations.Line", - "._deprecations.Margin", - "._deprecations.Marker", - "._deprecations.RadialAxis", - "._deprecations.Scene", - "._deprecations.Stream", - "._deprecations.Trace", - "._deprecations.XAxis", - "._deprecations.XBins", - "._deprecations.YAxis", - "._deprecations.YBins", - "._deprecations.ZAxis", - "._figure.Figure", - "._frame.Frame", - "._funnel.Funnel", - "._funnelarea.Funnelarea", - "._heatmap.Heatmap", - "._histogram.Histogram", - "._histogram2d.Histogram2d", - "._histogram2dcontour.Histogram2dContour", - "._icicle.Icicle", - "._image.Image", - "._indicator.Indicator", - "._isosurface.Isosurface", - "._layout.Layout", - "._mesh3d.Mesh3d", - "._ohlc.Ohlc", - "._parcats.Parcats", - "._parcoords.Parcoords", - "._pie.Pie", - "._sankey.Sankey", - "._scatter.Scatter", - "._scatter3d.Scatter3d", - "._scattercarpet.Scattercarpet", - "._scattergeo.Scattergeo", - "._scattergl.Scattergl", - "._scattermap.Scattermap", - "._scattermapbox.Scattermapbox", - "._scatterpolar.Scatterpolar", - "._scatterpolargl.Scatterpolargl", - "._scattersmith.Scattersmith", - "._scatterternary.Scatterternary", - "._splom.Splom", - "._streamtube.Streamtube", - "._sunburst.Sunburst", - "._surface.Surface", - "._table.Table", - "._treemap.Treemap", - "._violin.Violin", - "._volume.Volume", - "._waterfall.Waterfall", - ], + ['.bar', '.barpolar', '.box', '.candlestick', '.carpet', '.choropleth', '.choroplethmap', '.choroplethmapbox', '.cone', '.contour', '.contourcarpet', '.densitymap', '.densitymapbox', '.funnel', '.funnelarea', '.heatmap', '.histogram', '.histogram2d', '.histogram2dcontour', '.icicle', '.image', '.indicator', '.isosurface', '.layout', '.mesh3d', '.ohlc', '.parcats', '.parcoords', '.pie', '.sankey', '.scatter', '.scatter3d', '.scattercarpet', '.scattergeo', '.scattergl', '.scattermap', '.scattermapbox', '.scatterpolar', '.scatterpolargl', '.scattersmith', '.scatterternary', '.splom', '.streamtube', '.sunburst', '.surface', '.table', '.treemap', '.violin', '.volume', '.waterfall'], + ['._bar.Bar', '._barpolar.Barpolar', '._box.Box', '._candlestick.Candlestick', '._carpet.Carpet', '._choropleth.Choropleth', '._choroplethmap.Choroplethmap', '._choroplethmapbox.Choroplethmapbox', '._cone.Cone', '._contour.Contour', '._contourcarpet.Contourcarpet', '._densitymap.Densitymap', '._densitymapbox.Densitymapbox', '._deprecations.AngularAxis', '._deprecations.Annotation', '._deprecations.Annotations', '._deprecations.ColorBar', '._deprecations.Contours', '._deprecations.Data', '._deprecations.ErrorX', '._deprecations.ErrorY', '._deprecations.ErrorZ', '._deprecations.Font', '._deprecations.Frames', '._deprecations.Histogram2dcontour', '._deprecations.Legend', '._deprecations.Line', '._deprecations.Margin', '._deprecations.Marker', '._deprecations.RadialAxis', '._deprecations.Scene', '._deprecations.Stream', '._deprecations.Trace', '._deprecations.XAxis', '._deprecations.XBins', '._deprecations.YAxis', '._deprecations.YBins', '._deprecations.ZAxis', '._figure.Figure', '._frame.Frame', '._funnel.Funnel', '._funnelarea.Funnelarea', '._heatmap.Heatmap', '._histogram.Histogram', '._histogram2d.Histogram2d', '._histogram2dcontour.Histogram2dContour', '._icicle.Icicle', '._image.Image', '._indicator.Indicator', '._isosurface.Isosurface', '._layout.Layout', '._mesh3d.Mesh3d', '._ohlc.Ohlc', '._parcats.Parcats', '._parcoords.Parcoords', '._pie.Pie', '._sankey.Sankey', '._scatter.Scatter', '._scatter3d.Scatter3d', '._scattercarpet.Scattercarpet', '._scattergeo.Scattergeo', '._scattergl.Scattergl', '._scattermap.Scattermap', '._scattermapbox.Scattermapbox', '._scatterpolar.Scatterpolar', '._scatterpolargl.Scatterpolargl', '._scattersmith.Scattersmith', '._scatterternary.Scatterternary', '._splom.Splom', '._streamtube.Streamtube', '._sunburst.Sunburst', '._surface.Surface', '._table.Table', '._treemap.Treemap', '._violin.Violin', '._volume.Volume', '._waterfall.Waterfall'] ) @@ -272,7 +141,6 @@ try: import ipywidgets as _ipywidgets from packaging.version import Version as _Version - if _Version(_ipywidgets.__version__) >= _Version("7.0.0"): from ..graph_objs._figurewidget import FigureWidget else: @@ -282,7 +150,6 @@ else: __all__.append("FigureWidget") orig_getattr = __getattr__ - def __getattr__(import_name): if import_name == "FigureWidget": try: @@ -297,7 +164,7 @@ def __getattr__(import_name): raise ImportError() except Exception: from ..missing_anywidget import FigureWidget - return FigureWidget return orig_getattr(import_name) + diff --git a/packages/python/plotly/plotly/graph_objs/_bar.py b/packages/python/plotly/plotly/graph_objs/_bar.py index 0b5e5a96716..8fa9dd57aca 100644 --- a/packages/python/plotly/plotly/graph_objs/_bar.py +++ b/packages/python/plotly/plotly/graph_objs/_bar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,85 +8,9 @@ class Bar(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "bar" - _valid_props = { - "alignmentgroup", - "base", - "basesrc", - "cliponaxis", - "constraintext", - "customdata", - "customdatasrc", - "dx", - "dy", - "error_x", - "error_y", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "insidetextanchor", - "insidetextfont", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "marker", - "meta", - "metasrc", - "name", - "offset", - "offsetgroup", - "offsetsrc", - "opacity", - "orientation", - "outsidetextfont", - "selected", - "selectedpoints", - "showlegend", - "stream", - "text", - "textangle", - "textfont", - "textposition", - "textpositionsrc", - "textsrc", - "texttemplate", - "texttemplatesrc", - "type", - "uid", - "uirevision", - "unselected", - "visible", - "width", - "widthsrc", - "x", - "x0", - "xaxis", - "xcalendar", - "xhoverformat", - "xperiod", - "xperiod0", - "xperiodalignment", - "xsrc", - "y", - "y0", - "yaxis", - "ycalendar", - "yhoverformat", - "yperiod", - "yperiod0", - "yperiodalignment", - "ysrc", - "zorder", - } + _parent_path_str = '' + _path_str = 'bar' + _valid_props = {"alignmentgroup", "base", "basesrc", "cliponaxis", "constraintext", "customdata", "customdatasrc", "dx", "dy", "error_x", "error_y", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "insidetextanchor", "insidetextfont", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "marker", "meta", "metasrc", "name", "offset", "offsetgroup", "offsetsrc", "opacity", "orientation", "outsidetextfont", "selected", "selectedpoints", "showlegend", "stream", "text", "textangle", "textfont", "textposition", "textpositionsrc", "textsrc", "texttemplate", "texttemplatesrc", "type", "uid", "uirevision", "unselected", "visible", "width", "widthsrc", "x", "x0", "xaxis", "xcalendar", "xhoverformat", "xperiod", "xperiod0", "xperiodalignment", "xsrc", "y", "y0", "yaxis", "ycalendar", "yhoverformat", "yperiod", "yperiod0", "yperiodalignment", "ysrc", "zorder"} # alignmentgroup # -------------- @@ -103,11 +29,11 @@ def alignmentgroup(self): ------- str """ - return self["alignmentgroup"] + return self['alignmentgroup'] @alignmentgroup.setter def alignmentgroup(self, val): - self["alignmentgroup"] = val + self['alignmentgroup'] = val # base # ---- @@ -124,11 +50,11 @@ def base(self): ------- Any|numpy.ndarray """ - return self["base"] + return self['base'] @base.setter def base(self, val): - self["base"] = val + self['base'] = val # basesrc # ------- @@ -144,11 +70,11 @@ def basesrc(self): ------- str """ - return self["basesrc"] + return self['basesrc'] @basesrc.setter def basesrc(self, val): - self["basesrc"] = val + self['basesrc'] = val # cliponaxis # ---------- @@ -167,11 +93,11 @@ def cliponaxis(self): ------- bool """ - return self["cliponaxis"] + return self['cliponaxis'] @cliponaxis.setter def cliponaxis(self, val): - self["cliponaxis"] = val + self['cliponaxis'] = val # constraintext # ------------- @@ -189,11 +115,11 @@ def constraintext(self): ------- Any """ - return self["constraintext"] + return self['constraintext'] @constraintext.setter def constraintext(self, val): - self["constraintext"] = val + self['constraintext'] = val # customdata # ---------- @@ -212,11 +138,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -233,11 +159,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # dx # -- @@ -253,11 +179,11 @@ def dx(self): ------- int|float """ - return self["dx"] + return self['dx'] @dx.setter def dx(self, val): - self["dx"] = val + self['dx'] = val # dy # -- @@ -273,11 +199,11 @@ def dy(self): ------- int|float """ - return self["dy"] + return self['dy'] @dy.setter def dy(self, val): - self["dy"] = val + self['dy'] = val # error_x # ------- @@ -290,75 +216,15 @@ def error_x(self): - A dict of string/value properties that will be passed to the ErrorX constructor - Supported dict properties: - - array - Sets the data corresponding the length of each - error bar. Values are plotted relative to the - underlying data. - arrayminus - Sets the data corresponding the length of each - error bar in the bottom (left) direction for - vertical (horizontal) bars Values are plotted - relative to the underlying data. - arrayminussrc - Sets the source reference on Chart Studio Cloud - for `arrayminus`. - arraysrc - Sets the source reference on Chart Studio Cloud - for `array`. - color - Sets the stroke color of the error bars. - copy_ystyle - - symmetric - Determines whether or not the error bars have - the same length in both direction (top/bottom - for vertical bars, left/right for horizontal - bars. - thickness - Sets the thickness (in px) of the error bars. - traceref - - tracerefminus - - type - Determines the rule used to generate the error - bars. If *constant`, the bar lengths are of a - constant value. Set this constant in `value`. - If "percent", the bar lengths correspond to a - percentage of underlying data. Set this - percentage in `value`. If "sqrt", the bar - lengths correspond to the square of the - underlying data. If "data", the bar lengths are - set with data set `array`. - value - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars. - valueminus - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars in the bottom - (left) direction for vertical (horizontal) bars - visible - Determines whether or not this set of error - bars is visible. - width - Sets the width (in px) of the cross-bar at both - ends of the error bars. - Returns ------- plotly.graph_objs.bar.ErrorX """ - return self["error_x"] + return self['error_x'] @error_x.setter def error_x(self, val): - self["error_x"] = val + self['error_x'] = val # error_y # ------- @@ -371,73 +237,15 @@ def error_y(self): - A dict of string/value properties that will be passed to the ErrorY constructor - Supported dict properties: - - array - Sets the data corresponding the length of each - error bar. Values are plotted relative to the - underlying data. - arrayminus - Sets the data corresponding the length of each - error bar in the bottom (left) direction for - vertical (horizontal) bars Values are plotted - relative to the underlying data. - arrayminussrc - Sets the source reference on Chart Studio Cloud - for `arrayminus`. - arraysrc - Sets the source reference on Chart Studio Cloud - for `array`. - color - Sets the stroke color of the error bars. - symmetric - Determines whether or not the error bars have - the same length in both direction (top/bottom - for vertical bars, left/right for horizontal - bars. - thickness - Sets the thickness (in px) of the error bars. - traceref - - tracerefminus - - type - Determines the rule used to generate the error - bars. If *constant`, the bar lengths are of a - constant value. Set this constant in `value`. - If "percent", the bar lengths correspond to a - percentage of underlying data. Set this - percentage in `value`. If "sqrt", the bar - lengths correspond to the square of the - underlying data. If "data", the bar lengths are - set with data set `array`. - value - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars. - valueminus - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars in the bottom - (left) direction for vertical (horizontal) bars - visible - Determines whether or not this set of error - bars is visible. - width - Sets the width (in px) of the cross-bar at both - ends of the error bars. - Returns ------- plotly.graph_objs.bar.ErrorY """ - return self["error_y"] + return self['error_y'] @error_y.setter def error_y(self, val): - self["error_y"] = val + self['error_y'] = val # hoverinfo # --------- @@ -459,11 +267,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -480,11 +288,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -497,53 +305,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.bar.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -585,11 +355,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -606,11 +376,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -632,11 +402,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -653,11 +423,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -675,11 +445,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -695,11 +465,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # insidetextanchor # ---------------- @@ -717,11 +487,11 @@ def insidetextanchor(self): ------- Any """ - return self["insidetextanchor"] + return self['insidetextanchor'] @insidetextanchor.setter def insidetextanchor(self, val): - self["insidetextanchor"] = val + self['insidetextanchor'] = val # insidetextfont # -------------- @@ -736,88 +506,15 @@ def insidetextfont(self): - A dict of string/value properties that will be passed to the Insidetextfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.bar.Insidetextfont """ - return self["insidetextfont"] + return self['insidetextfont'] @insidetextfont.setter def insidetextfont(self, val): - self["insidetextfont"] = val + self['insidetextfont'] = val # legend # ------ @@ -838,11 +535,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -861,11 +558,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -878,22 +575,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.bar.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -916,11 +606,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -937,11 +627,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # marker # ------ @@ -954,121 +644,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.bar.marker.ColorBa - r` instance or dict with compatible properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - cornerradius - Sets the rounding of corners. May be an integer - number of pixels, or a percentage of bar width - (as a string ending in %). Defaults to - `layout.barcornerradius`. In stack or relative - barmode, the first trace to set cornerradius is - used for the whole stack. - line - :class:`plotly.graph_objects.bar.marker.Line` - instance or dict with compatible properties - opacity - Sets the opacity of the bars. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - pattern - Sets the pattern within the marker. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. - Returns ------- plotly.graph_objs.bar.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # meta # ---- @@ -1092,11 +676,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -1112,11 +696,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -1134,11 +718,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # offset # ------ @@ -1157,11 +741,11 @@ def offset(self): ------- int|float|numpy.ndarray """ - return self["offset"] + return self['offset'] @offset.setter def offset(self, val): - self["offset"] = val + self['offset'] = val # offsetgroup # ----------- @@ -1180,11 +764,11 @@ def offsetgroup(self): ------- str """ - return self["offsetgroup"] + return self['offsetgroup'] @offsetgroup.setter def offsetgroup(self, val): - self["offsetgroup"] = val + self['offsetgroup'] = val # offsetsrc # --------- @@ -1200,11 +784,11 @@ def offsetsrc(self): ------- str """ - return self["offsetsrc"] + return self['offsetsrc'] @offsetsrc.setter def offsetsrc(self, val): - self["offsetsrc"] = val + self['offsetsrc'] = val # opacity # ------- @@ -1220,11 +804,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # orientation # ----------- @@ -1242,11 +826,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outsidetextfont # --------------- @@ -1261,88 +845,15 @@ def outsidetextfont(self): - A dict of string/value properties that will be passed to the Outsidetextfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.bar.Outsidetextfont """ - return self["outsidetextfont"] + return self['outsidetextfont'] @outsidetextfont.setter def outsidetextfont(self, val): - self["outsidetextfont"] = val + self['outsidetextfont'] = val # selected # -------- @@ -1355,25 +866,15 @@ def selected(self): - A dict of string/value properties that will be passed to the Selected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.bar.selected.Marke - r` instance or dict with compatible properties - textfont - :class:`plotly.graph_objects.bar.selected.Textf - ont` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.bar.Selected """ - return self["selected"] + return self['selected'] @selected.setter def selected(self, val): - self["selected"] = val + self['selected'] = val # selectedpoints # -------------- @@ -1393,11 +894,11 @@ def selectedpoints(self): ------- Any """ - return self["selectedpoints"] + return self['selectedpoints'] @selectedpoints.setter def selectedpoints(self, val): - self["selectedpoints"] = val + self['selectedpoints'] = val # showlegend # ---------- @@ -1414,11 +915,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # stream # ------ @@ -1431,27 +932,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.bar.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # text # ---- @@ -1474,11 +963,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textangle # --------- @@ -1499,11 +988,11 @@ def textangle(self): ------- int|float """ - return self["textangle"] + return self['textangle'] @textangle.setter def textangle(self, val): - self["textangle"] = val + self['textangle'] = val # textfont # -------- @@ -1518,88 +1007,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.bar.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # textposition # ------------ @@ -1624,11 +1040,11 @@ def textposition(self): ------- Any|numpy.ndarray """ - return self["textposition"] + return self['textposition'] @textposition.setter def textposition(self, val): - self["textposition"] = val + self['textposition'] = val # textpositionsrc # --------------- @@ -1645,11 +1061,11 @@ def textpositionsrc(self): ------- str """ - return self["textpositionsrc"] + return self['textpositionsrc'] @textpositionsrc.setter def textpositionsrc(self, val): - self["textpositionsrc"] = val + self['textpositionsrc'] = val # textsrc # ------- @@ -1665,11 +1081,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # texttemplate # ------------ @@ -1700,11 +1116,11 @@ def texttemplate(self): ------- str|numpy.ndarray """ - return self["texttemplate"] + return self['texttemplate'] @texttemplate.setter def texttemplate(self, val): - self["texttemplate"] = val + self['texttemplate'] = val # texttemplatesrc # --------------- @@ -1721,11 +1137,11 @@ def texttemplatesrc(self): ------- str """ - return self["texttemplatesrc"] + return self['texttemplatesrc'] @texttemplatesrc.setter def texttemplatesrc(self, val): - self["texttemplatesrc"] = val + self['texttemplatesrc'] = val # uid # --- @@ -1743,11 +1159,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1776,11 +1192,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # unselected # ---------- @@ -1793,26 +1209,15 @@ def unselected(self): - A dict of string/value properties that will be passed to the Unselected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.bar.unselected.Mar - ker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.bar.unselected.Tex - tfont` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.bar.Unselected """ - return self["unselected"] + return self['unselected'] @unselected.setter def unselected(self, val): - self["unselected"] = val + self['unselected'] = val # visible # ------- @@ -1831,11 +1236,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # width # ----- @@ -1852,11 +1257,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # widthsrc # -------- @@ -1872,11 +1277,11 @@ def widthsrc(self): ------- str """ - return self["widthsrc"] + return self['widthsrc'] @widthsrc.setter def widthsrc(self, val): - self["widthsrc"] = val + self['widthsrc'] = val # x # - @@ -1892,11 +1297,11 @@ def x(self): ------- numpy.ndarray """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # x0 # -- @@ -1913,11 +1318,11 @@ def x0(self): ------- Any """ - return self["x0"] + return self['x0'] @x0.setter def x0(self, val): - self["x0"] = val + self['x0'] = val # xaxis # ----- @@ -1938,11 +1343,11 @@ def xaxis(self): ------- str """ - return self["xaxis"] + return self['xaxis'] @xaxis.setter def xaxis(self, val): - self["xaxis"] = val + self['xaxis'] = val # xcalendar # --------- @@ -1962,11 +1367,11 @@ def xcalendar(self): ------- Any """ - return self["xcalendar"] + return self['xcalendar'] @xcalendar.setter def xcalendar(self, val): - self["xcalendar"] = val + self['xcalendar'] = val # xhoverformat # ------------ @@ -1993,11 +1398,11 @@ def xhoverformat(self): ------- str """ - return self["xhoverformat"] + return self['xhoverformat'] @xhoverformat.setter def xhoverformat(self, val): - self["xhoverformat"] = val + self['xhoverformat'] = val # xperiod # ------- @@ -2015,11 +1420,11 @@ def xperiod(self): ------- Any """ - return self["xperiod"] + return self['xperiod'] @xperiod.setter def xperiod(self, val): - self["xperiod"] = val + self['xperiod'] = val # xperiod0 # -------- @@ -2038,11 +1443,11 @@ def xperiod0(self): ------- Any """ - return self["xperiod0"] + return self['xperiod0'] @xperiod0.setter def xperiod0(self, val): - self["xperiod0"] = val + self['xperiod0'] = val # xperiodalignment # ---------------- @@ -2060,11 +1465,11 @@ def xperiodalignment(self): ------- Any """ - return self["xperiodalignment"] + return self['xperiodalignment'] @xperiodalignment.setter def xperiodalignment(self, val): - self["xperiodalignment"] = val + self['xperiodalignment'] = val # xsrc # ---- @@ -2080,11 +1485,11 @@ def xsrc(self): ------- str """ - return self["xsrc"] + return self['xsrc'] @xsrc.setter def xsrc(self, val): - self["xsrc"] = val + self['xsrc'] = val # y # - @@ -2100,11 +1505,11 @@ def y(self): ------- numpy.ndarray """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # y0 # -- @@ -2121,11 +1526,11 @@ def y0(self): ------- Any """ - return self["y0"] + return self['y0'] @y0.setter def y0(self, val): - self["y0"] = val + self['y0'] = val # yaxis # ----- @@ -2146,11 +1551,11 @@ def yaxis(self): ------- str """ - return self["yaxis"] + return self['yaxis'] @yaxis.setter def yaxis(self, val): - self["yaxis"] = val + self['yaxis'] = val # ycalendar # --------- @@ -2170,11 +1575,11 @@ def ycalendar(self): ------- Any """ - return self["ycalendar"] + return self['ycalendar'] @ycalendar.setter def ycalendar(self, val): - self["ycalendar"] = val + self['ycalendar'] = val # yhoverformat # ------------ @@ -2201,11 +1606,11 @@ def yhoverformat(self): ------- str """ - return self["yhoverformat"] + return self['yhoverformat'] @yhoverformat.setter def yhoverformat(self, val): - self["yhoverformat"] = val + self['yhoverformat'] = val # yperiod # ------- @@ -2223,11 +1628,11 @@ def yperiod(self): ------- Any """ - return self["yperiod"] + return self['yperiod'] @yperiod.setter def yperiod(self, val): - self["yperiod"] = val + self['yperiod'] = val # yperiod0 # -------- @@ -2246,11 +1651,11 @@ def yperiod0(self): ------- Any """ - return self["yperiod0"] + return self['yperiod0'] @yperiod0.setter def yperiod0(self, val): - self["yperiod0"] = val + self['yperiod0'] = val # yperiodalignment # ---------------- @@ -2268,11 +1673,11 @@ def yperiodalignment(self): ------- Any """ - return self["yperiodalignment"] + return self['yperiodalignment'] @yperiodalignment.setter def yperiodalignment(self, val): - self["yperiodalignment"] = val + self['yperiodalignment'] = val # ysrc # ---- @@ -2288,11 +1693,11 @@ def ysrc(self): ------- str """ - return self["ysrc"] + return self['ysrc'] @ysrc.setter def ysrc(self, val): - self["ysrc"] = val + self['ysrc'] = val # zorder # ------ @@ -2310,17 +1715,17 @@ def zorder(self): ------- int """ - return self["zorder"] + return self['zorder'] @zorder.setter def zorder(self, val): - self["zorder"] = val + self['zorder'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -2700,86 +2105,84 @@ def _prop_descriptions(self): traces with higher `zorder` appear in front of those with lower `zorder`. """ - - def __init__( - self, - arg=None, - alignmentgroup=None, - base=None, - basesrc=None, - cliponaxis=None, - constraintext=None, - customdata=None, - customdatasrc=None, - dx=None, - dy=None, - error_x=None, - error_y=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - insidetextanchor=None, - insidetextfont=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - marker=None, - meta=None, - metasrc=None, - name=None, - offset=None, - offsetgroup=None, - offsetsrc=None, - opacity=None, - orientation=None, - outsidetextfont=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - text=None, - textangle=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - width=None, - widthsrc=None, - x=None, - x0=None, - xaxis=None, - xcalendar=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - y=None, - y0=None, - yaxis=None, - ycalendar=None, - yhoverformat=None, - yperiod=None, - yperiod0=None, - yperiodalignment=None, - ysrc=None, - zorder=None, - **kwargs, - ): + def __init__(self, + arg=None, + alignmentgroup=None, + base=None, + basesrc=None, + cliponaxis=None, + constraintext=None, + customdata=None, + customdatasrc=None, + dx=None, + dy=None, + error_x=None, + error_y=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + insidetextanchor=None, + insidetextfont=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + marker=None, + meta=None, + metasrc=None, + name=None, + offset=None, + offsetgroup=None, + offsetsrc=None, + opacity=None, + orientation=None, + outsidetextfont=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + text=None, + textangle=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + width=None, + widthsrc=None, + x=None, + x0=None, + xaxis=None, + xcalendar=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + y=None, + y0=None, + yaxis=None, + ycalendar=None, + yhoverformat=None, + yperiod=None, + yperiod0=None, + yperiodalignment=None, + ysrc=None, + zorder=None, + **kwargs + ): """ Construct a new Bar object @@ -3170,10 +2573,10 @@ def __init__( ------- Bar """ - super(Bar, self).__init__("bar") + super(Bar, self).__init__('bar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -3185,322 +2588,99 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Bar constructor must be a dict or -an instance of :class:`plotly.graph_objs.Bar`""" - ) +an instance of :class:`plotly.graph_objs.Bar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("alignmentgroup", None) - _v = alignmentgroup if alignmentgroup is not None else _v - if _v is not None: - self["alignmentgroup"] = _v - _v = arg.pop("base", None) - _v = base if base is not None else _v - if _v is not None: - self["base"] = _v - _v = arg.pop("basesrc", None) - _v = basesrc if basesrc is not None else _v - if _v is not None: - self["basesrc"] = _v - _v = arg.pop("cliponaxis", None) - _v = cliponaxis if cliponaxis is not None else _v - if _v is not None: - self["cliponaxis"] = _v - _v = arg.pop("constraintext", None) - _v = constraintext if constraintext is not None else _v - if _v is not None: - self["constraintext"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("dx", None) - _v = dx if dx is not None else _v - if _v is not None: - self["dx"] = _v - _v = arg.pop("dy", None) - _v = dy if dy is not None else _v - if _v is not None: - self["dy"] = _v - _v = arg.pop("error_x", None) - _v = error_x if error_x is not None else _v - if _v is not None: - self["error_x"] = _v - _v = arg.pop("error_y", None) - _v = error_y if error_y is not None else _v - if _v is not None: - self["error_y"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("insidetextanchor", None) - _v = insidetextanchor if insidetextanchor is not None else _v - if _v is not None: - self["insidetextanchor"] = _v - _v = arg.pop("insidetextfont", None) - _v = insidetextfont if insidetextfont is not None else _v - if _v is not None: - self["insidetextfont"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("offset", None) - _v = offset if offset is not None else _v - if _v is not None: - self["offset"] = _v - _v = arg.pop("offsetgroup", None) - _v = offsetgroup if offsetgroup is not None else _v - if _v is not None: - self["offsetgroup"] = _v - _v = arg.pop("offsetsrc", None) - _v = offsetsrc if offsetsrc is not None else _v - if _v is not None: - self["offsetsrc"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outsidetextfont", None) - _v = outsidetextfont if outsidetextfont is not None else _v - if _v is not None: - self["outsidetextfont"] = _v - _v = arg.pop("selected", None) - _v = selected if selected is not None else _v - if _v is not None: - self["selected"] = _v - _v = arg.pop("selectedpoints", None) - _v = selectedpoints if selectedpoints is not None else _v - if _v is not None: - self["selectedpoints"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textangle", None) - _v = textangle if textangle is not None else _v - if _v is not None: - self["textangle"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v - _v = arg.pop("textposition", None) - _v = textposition if textposition is not None else _v - if _v is not None: - self["textposition"] = _v - _v = arg.pop("textpositionsrc", None) - _v = textpositionsrc if textpositionsrc is not None else _v - if _v is not None: - self["textpositionsrc"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("texttemplate", None) - _v = texttemplate if texttemplate is not None else _v - if _v is not None: - self["texttemplate"] = _v - _v = arg.pop("texttemplatesrc", None) - _v = texttemplatesrc if texttemplatesrc is not None else _v - if _v is not None: - self["texttemplatesrc"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("unselected", None) - _v = unselected if unselected is not None else _v - if _v is not None: - self["unselected"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("widthsrc", None) - _v = widthsrc if widthsrc is not None else _v - if _v is not None: - self["widthsrc"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("x0", None) - _v = x0 if x0 is not None else _v - if _v is not None: - self["x0"] = _v - _v = arg.pop("xaxis", None) - _v = xaxis if xaxis is not None else _v - if _v is not None: - self["xaxis"] = _v - _v = arg.pop("xcalendar", None) - _v = xcalendar if xcalendar is not None else _v - if _v is not None: - self["xcalendar"] = _v - _v = arg.pop("xhoverformat", None) - _v = xhoverformat if xhoverformat is not None else _v - if _v is not None: - self["xhoverformat"] = _v - _v = arg.pop("xperiod", None) - _v = xperiod if xperiod is not None else _v - if _v is not None: - self["xperiod"] = _v - _v = arg.pop("xperiod0", None) - _v = xperiod0 if xperiod0 is not None else _v - if _v is not None: - self["xperiod0"] = _v - _v = arg.pop("xperiodalignment", None) - _v = xperiodalignment if xperiodalignment is not None else _v - if _v is not None: - self["xperiodalignment"] = _v - _v = arg.pop("xsrc", None) - _v = xsrc if xsrc is not None else _v - if _v is not None: - self["xsrc"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("y0", None) - _v = y0 if y0 is not None else _v - if _v is not None: - self["y0"] = _v - _v = arg.pop("yaxis", None) - _v = yaxis if yaxis is not None else _v - if _v is not None: - self["yaxis"] = _v - _v = arg.pop("ycalendar", None) - _v = ycalendar if ycalendar is not None else _v - if _v is not None: - self["ycalendar"] = _v - _v = arg.pop("yhoverformat", None) - _v = yhoverformat if yhoverformat is not None else _v - if _v is not None: - self["yhoverformat"] = _v - _v = arg.pop("yperiod", None) - _v = yperiod if yperiod is not None else _v - if _v is not None: - self["yperiod"] = _v - _v = arg.pop("yperiod0", None) - _v = yperiod0 if yperiod0 is not None else _v - if _v is not None: - self["yperiod0"] = _v - _v = arg.pop("yperiodalignment", None) - _v = yperiodalignment if yperiodalignment is not None else _v - if _v is not None: - self["yperiodalignment"] = _v - _v = arg.pop("ysrc", None) - _v = ysrc if ysrc is not None else _v - if _v is not None: - self["ysrc"] = _v - _v = arg.pop("zorder", None) - _v = zorder if zorder is not None else _v - if _v is not None: - self["zorder"] = _v + self._init_provided('alignmentgroup', arg, alignmentgroup) + self._init_provided('base', arg, base) + self._init_provided('basesrc', arg, basesrc) + self._init_provided('cliponaxis', arg, cliponaxis) + self._init_provided('constraintext', arg, constraintext) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('dx', arg, dx) + self._init_provided('dy', arg, dy) + self._init_provided('error_x', arg, error_x) + self._init_provided('error_y', arg, error_y) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('insidetextanchor', arg, insidetextanchor) + self._init_provided('insidetextfont', arg, insidetextfont) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('marker', arg, marker) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('offset', arg, offset) + self._init_provided('offsetgroup', arg, offsetgroup) + self._init_provided('offsetsrc', arg, offsetsrc) + self._init_provided('opacity', arg, opacity) + self._init_provided('orientation', arg, orientation) + self._init_provided('outsidetextfont', arg, outsidetextfont) + self._init_provided('selected', arg, selected) + self._init_provided('selectedpoints', arg, selectedpoints) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('stream', arg, stream) + self._init_provided('text', arg, text) + self._init_provided('textangle', arg, textangle) + self._init_provided('textfont', arg, textfont) + self._init_provided('textposition', arg, textposition) + self._init_provided('textpositionsrc', arg, textpositionsrc) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('texttemplate', arg, texttemplate) + self._init_provided('texttemplatesrc', arg, texttemplatesrc) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('unselected', arg, unselected) + self._init_provided('visible', arg, visible) + self._init_provided('width', arg, width) + self._init_provided('widthsrc', arg, widthsrc) + self._init_provided('x', arg, x) + self._init_provided('x0', arg, x0) + self._init_provided('xaxis', arg, xaxis) + self._init_provided('xcalendar', arg, xcalendar) + self._init_provided('xhoverformat', arg, xhoverformat) + self._init_provided('xperiod', arg, xperiod) + self._init_provided('xperiod0', arg, xperiod0) + self._init_provided('xperiodalignment', arg, xperiodalignment) + self._init_provided('xsrc', arg, xsrc) + self._init_provided('y', arg, y) + self._init_provided('y0', arg, y0) + self._init_provided('yaxis', arg, yaxis) + self._init_provided('ycalendar', arg, ycalendar) + self._init_provided('yhoverformat', arg, yhoverformat) + self._init_provided('yperiod', arg, yperiod) + self._init_provided('yperiod0', arg, yperiod0) + self._init_provided('yperiodalignment', arg, yperiodalignment) + self._init_provided('ysrc', arg, ysrc) + self._init_provided('zorder', arg, zorder) # Read-only literals # ------------------ - self._props["type"] = "bar" - arg.pop("type", None) + self._props['type'] = 'bar' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_barpolar.py b/packages/python/plotly/plotly/graph_objs/_barpolar.py index 56101f1da92..2d01f344686 100644 --- a/packages/python/plotly/plotly/graph_objs/_barpolar.py +++ b/packages/python/plotly/plotly/graph_objs/_barpolar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,58 +8,9 @@ class Barpolar(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "barpolar" - _valid_props = { - "base", - "basesrc", - "customdata", - "customdatasrc", - "dr", - "dtheta", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "marker", - "meta", - "metasrc", - "name", - "offset", - "offsetsrc", - "opacity", - "r", - "r0", - "rsrc", - "selected", - "selectedpoints", - "showlegend", - "stream", - "subplot", - "text", - "textsrc", - "theta", - "theta0", - "thetasrc", - "thetaunit", - "type", - "uid", - "uirevision", - "unselected", - "visible", - "width", - "widthsrc", - } + _parent_path_str = '' + _path_str = 'barpolar' + _valid_props = {"base", "basesrc", "customdata", "customdatasrc", "dr", "dtheta", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "marker", "meta", "metasrc", "name", "offset", "offsetsrc", "opacity", "r", "r0", "rsrc", "selected", "selectedpoints", "showlegend", "stream", "subplot", "text", "textsrc", "theta", "theta0", "thetasrc", "thetaunit", "type", "uid", "uirevision", "unselected", "visible", "width", "widthsrc"} # base # ---- @@ -74,11 +27,11 @@ def base(self): ------- Any|numpy.ndarray """ - return self["base"] + return self['base'] @base.setter def base(self, val): - self["base"] = val + self['base'] = val # basesrc # ------- @@ -94,11 +47,11 @@ def basesrc(self): ------- str """ - return self["basesrc"] + return self['basesrc'] @basesrc.setter def basesrc(self, val): - self["basesrc"] = val + self['basesrc'] = val # customdata # ---------- @@ -117,11 +70,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -138,11 +91,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # dr # -- @@ -158,11 +111,11 @@ def dr(self): ------- int|float """ - return self["dr"] + return self['dr'] @dr.setter def dr(self, val): - self["dr"] = val + self['dr'] = val # dtheta # ------ @@ -180,11 +133,11 @@ def dtheta(self): ------- int|float """ - return self["dtheta"] + return self['dtheta'] @dtheta.setter def dtheta(self, val): - self["dtheta"] = val + self['dtheta'] = val # hoverinfo # --------- @@ -206,11 +159,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -227,11 +180,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -244,53 +197,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.barpolar.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -330,11 +245,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -351,11 +266,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -373,11 +288,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -394,11 +309,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -416,11 +331,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -436,11 +351,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # legend # ------ @@ -461,11 +376,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -484,11 +399,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -501,22 +416,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.barpolar.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -539,11 +447,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -560,11 +468,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # marker # ------ @@ -577,115 +485,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.barpolar.marker.Co - lorBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - line - :class:`plotly.graph_objects.barpolar.marker.Li - ne` instance or dict with compatible properties - opacity - Sets the opacity of the bars. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - pattern - Sets the pattern within the marker. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. - Returns ------- plotly.graph_objs.barpolar.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # meta # ---- @@ -709,11 +517,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -729,11 +537,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -751,11 +559,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # offset # ------ @@ -773,11 +581,11 @@ def offset(self): ------- int|float|numpy.ndarray """ - return self["offset"] + return self['offset'] @offset.setter def offset(self, val): - self["offset"] = val + self['offset'] = val # offsetsrc # --------- @@ -793,11 +601,11 @@ def offsetsrc(self): ------- str """ - return self["offsetsrc"] + return self['offsetsrc'] @offsetsrc.setter def offsetsrc(self, val): - self["offsetsrc"] = val + self['offsetsrc'] = val # opacity # ------- @@ -813,11 +621,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # r # - @@ -833,11 +641,11 @@ def r(self): ------- numpy.ndarray """ - return self["r"] + return self['r'] @r.setter def r(self, val): - self["r"] = val + self['r'] = val # r0 # -- @@ -854,11 +662,11 @@ def r0(self): ------- Any """ - return self["r0"] + return self['r0'] @r0.setter def r0(self, val): - self["r0"] = val + self['r0'] = val # rsrc # ---- @@ -874,11 +682,11 @@ def rsrc(self): ------- str """ - return self["rsrc"] + return self['rsrc'] @rsrc.setter def rsrc(self, val): - self["rsrc"] = val + self['rsrc'] = val # selected # -------- @@ -891,26 +699,15 @@ def selected(self): - A dict of string/value properties that will be passed to the Selected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.barpolar.selected. - Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.barpolar.selected. - Textfont` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.barpolar.Selected """ - return self["selected"] + return self['selected'] @selected.setter def selected(self, val): - self["selected"] = val + self['selected'] = val # selectedpoints # -------------- @@ -930,11 +727,11 @@ def selectedpoints(self): ------- Any """ - return self["selectedpoints"] + return self['selectedpoints'] @selectedpoints.setter def selectedpoints(self, val): - self["selectedpoints"] = val + self['selectedpoints'] = val # showlegend # ---------- @@ -951,11 +748,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # stream # ------ @@ -968,27 +765,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.barpolar.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # subplot # ------- @@ -1009,11 +794,11 @@ def subplot(self): ------- str """ - return self["subplot"] + return self['subplot'] @subplot.setter def subplot(self, val): - self["subplot"] = val + self['subplot'] = val # text # ---- @@ -1034,11 +819,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textsrc # ------- @@ -1054,11 +839,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # theta # ----- @@ -1074,11 +859,11 @@ def theta(self): ------- numpy.ndarray """ - return self["theta"] + return self['theta'] @theta.setter def theta(self, val): - self["theta"] = val + self['theta'] = val # theta0 # ------ @@ -1095,11 +880,11 @@ def theta0(self): ------- Any """ - return self["theta0"] + return self['theta0'] @theta0.setter def theta0(self, val): - self["theta0"] = val + self['theta0'] = val # thetasrc # -------- @@ -1115,11 +900,11 @@ def thetasrc(self): ------- str """ - return self["thetasrc"] + return self['thetasrc'] @thetasrc.setter def thetasrc(self, val): - self["thetasrc"] = val + self['thetasrc'] = val # thetaunit # --------- @@ -1137,11 +922,11 @@ def thetaunit(self): ------- Any """ - return self["thetaunit"] + return self['thetaunit'] @thetaunit.setter def thetaunit(self, val): - self["thetaunit"] = val + self['thetaunit'] = val # uid # --- @@ -1159,11 +944,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1192,11 +977,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # unselected # ---------- @@ -1209,26 +994,15 @@ def unselected(self): - A dict of string/value properties that will be passed to the Unselected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.barpolar.unselecte - d.Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.barpolar.unselecte - d.Textfont` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.barpolar.Unselected """ - return self["unselected"] + return self['unselected'] @unselected.setter def unselected(self, val): - self["unselected"] = val + self['unselected'] = val # visible # ------- @@ -1247,11 +1021,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # width # ----- @@ -1268,11 +1042,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # widthsrc # -------- @@ -1288,17 +1062,17 @@ def widthsrc(self): ------- str """ - return self["widthsrc"] + return self['widthsrc'] @widthsrc.setter def widthsrc(self, val): - self["widthsrc"] = val + self['widthsrc'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -1523,59 +1297,57 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `width`. """ - - def __init__( - self, - arg=None, - base=None, - basesrc=None, - customdata=None, - customdatasrc=None, - dr=None, - dtheta=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - marker=None, - meta=None, - metasrc=None, - name=None, - offset=None, - offsetsrc=None, - opacity=None, - r=None, - r0=None, - rsrc=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - subplot=None, - text=None, - textsrc=None, - theta=None, - theta0=None, - thetasrc=None, - thetaunit=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - width=None, - widthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + base=None, + basesrc=None, + customdata=None, + customdatasrc=None, + dr=None, + dtheta=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + marker=None, + meta=None, + metasrc=None, + name=None, + offset=None, + offsetsrc=None, + opacity=None, + r=None, + r0=None, + rsrc=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + subplot=None, + text=None, + textsrc=None, + theta=None, + theta0=None, + thetasrc=None, + thetaunit=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + width=None, + widthsrc=None, + **kwargs + ): """ Construct a new Barpolar object @@ -1809,10 +1581,10 @@ def __init__( ------- Barpolar """ - super(Barpolar, self).__init__("barpolar") + super(Barpolar, self).__init__('barpolar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1824,214 +1596,72 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Barpolar constructor must be a dict or -an instance of :class:`plotly.graph_objs.Barpolar`""" - ) +an instance of :class:`plotly.graph_objs.Barpolar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("base", None) - _v = base if base is not None else _v - if _v is not None: - self["base"] = _v - _v = arg.pop("basesrc", None) - _v = basesrc if basesrc is not None else _v - if _v is not None: - self["basesrc"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("dr", None) - _v = dr if dr is not None else _v - if _v is not None: - self["dr"] = _v - _v = arg.pop("dtheta", None) - _v = dtheta if dtheta is not None else _v - if _v is not None: - self["dtheta"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("offset", None) - _v = offset if offset is not None else _v - if _v is not None: - self["offset"] = _v - _v = arg.pop("offsetsrc", None) - _v = offsetsrc if offsetsrc is not None else _v - if _v is not None: - self["offsetsrc"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("r", None) - _v = r if r is not None else _v - if _v is not None: - self["r"] = _v - _v = arg.pop("r0", None) - _v = r0 if r0 is not None else _v - if _v is not None: - self["r0"] = _v - _v = arg.pop("rsrc", None) - _v = rsrc if rsrc is not None else _v - if _v is not None: - self["rsrc"] = _v - _v = arg.pop("selected", None) - _v = selected if selected is not None else _v - if _v is not None: - self["selected"] = _v - _v = arg.pop("selectedpoints", None) - _v = selectedpoints if selectedpoints is not None else _v - if _v is not None: - self["selectedpoints"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("subplot", None) - _v = subplot if subplot is not None else _v - if _v is not None: - self["subplot"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("theta", None) - _v = theta if theta is not None else _v - if _v is not None: - self["theta"] = _v - _v = arg.pop("theta0", None) - _v = theta0 if theta0 is not None else _v - if _v is not None: - self["theta0"] = _v - _v = arg.pop("thetasrc", None) - _v = thetasrc if thetasrc is not None else _v - if _v is not None: - self["thetasrc"] = _v - _v = arg.pop("thetaunit", None) - _v = thetaunit if thetaunit is not None else _v - if _v is not None: - self["thetaunit"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("unselected", None) - _v = unselected if unselected is not None else _v - if _v is not None: - self["unselected"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("widthsrc", None) - _v = widthsrc if widthsrc is not None else _v - if _v is not None: - self["widthsrc"] = _v + self._init_provided('base', arg, base) + self._init_provided('basesrc', arg, basesrc) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('dr', arg, dr) + self._init_provided('dtheta', arg, dtheta) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('marker', arg, marker) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('offset', arg, offset) + self._init_provided('offsetsrc', arg, offsetsrc) + self._init_provided('opacity', arg, opacity) + self._init_provided('r', arg, r) + self._init_provided('r0', arg, r0) + self._init_provided('rsrc', arg, rsrc) + self._init_provided('selected', arg, selected) + self._init_provided('selectedpoints', arg, selectedpoints) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('stream', arg, stream) + self._init_provided('subplot', arg, subplot) + self._init_provided('text', arg, text) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('theta', arg, theta) + self._init_provided('theta0', arg, theta0) + self._init_provided('thetasrc', arg, thetasrc) + self._init_provided('thetaunit', arg, thetaunit) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('unselected', arg, unselected) + self._init_provided('visible', arg, visible) + self._init_provided('width', arg, width) + self._init_provided('widthsrc', arg, widthsrc) # Read-only literals # ------------------ - self._props["type"] = "barpolar" - arg.pop("type", None) + self._props['type'] = 'barpolar' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_box.py b/packages/python/plotly/plotly/graph_objs/_box.py index 0e372f65074..a1257b375fb 100644 --- a/packages/python/plotly/plotly/graph_objs/_box.py +++ b/packages/python/plotly/plotly/graph_objs/_box.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,97 +8,9 @@ class Box(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "box" - _valid_props = { - "alignmentgroup", - "boxmean", - "boxpoints", - "customdata", - "customdatasrc", - "dx", - "dy", - "fillcolor", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hoveron", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "jitter", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "line", - "lowerfence", - "lowerfencesrc", - "marker", - "mean", - "meansrc", - "median", - "mediansrc", - "meta", - "metasrc", - "name", - "notched", - "notchspan", - "notchspansrc", - "notchwidth", - "offsetgroup", - "opacity", - "orientation", - "pointpos", - "q1", - "q1src", - "q3", - "q3src", - "quartilemethod", - "sd", - "sdmultiple", - "sdsrc", - "selected", - "selectedpoints", - "showlegend", - "showwhiskers", - "sizemode", - "stream", - "text", - "textsrc", - "type", - "uid", - "uirevision", - "unselected", - "upperfence", - "upperfencesrc", - "visible", - "whiskerwidth", - "width", - "x", - "x0", - "xaxis", - "xcalendar", - "xhoverformat", - "xperiod", - "xperiod0", - "xperiodalignment", - "xsrc", - "y", - "y0", - "yaxis", - "ycalendar", - "yhoverformat", - "yperiod", - "yperiod0", - "yperiodalignment", - "ysrc", - "zorder", - } + _parent_path_str = '' + _path_str = 'box' + _valid_props = {"alignmentgroup", "boxmean", "boxpoints", "customdata", "customdatasrc", "dx", "dy", "fillcolor", "hoverinfo", "hoverinfosrc", "hoverlabel", "hoveron", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "jitter", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "line", "lowerfence", "lowerfencesrc", "marker", "mean", "meansrc", "median", "mediansrc", "meta", "metasrc", "name", "notched", "notchspan", "notchspansrc", "notchwidth", "offsetgroup", "opacity", "orientation", "pointpos", "q1", "q1src", "q3", "q3src", "quartilemethod", "sd", "sdmultiple", "sdsrc", "selected", "selectedpoints", "showlegend", "showwhiskers", "sizemode", "stream", "text", "textsrc", "type", "uid", "uirevision", "unselected", "upperfence", "upperfencesrc", "visible", "whiskerwidth", "width", "x", "x0", "xaxis", "xcalendar", "xhoverformat", "xperiod", "xperiod0", "xperiodalignment", "xsrc", "y", "y0", "yaxis", "ycalendar", "yhoverformat", "yperiod", "yperiod0", "yperiodalignment", "ysrc", "zorder"} # alignmentgroup # -------------- @@ -115,11 +29,11 @@ def alignmentgroup(self): ------- str """ - return self["alignmentgroup"] + return self['alignmentgroup'] @alignmentgroup.setter def alignmentgroup(self, val): - self["alignmentgroup"] = val + self['alignmentgroup'] = val # boxmean # ------- @@ -139,11 +53,11 @@ def boxmean(self): ------- Any """ - return self["boxmean"] + return self['boxmean'] @boxmean.setter def boxmean(self, val): - self["boxmean"] = val + self['boxmean'] = val # boxpoints # --------- @@ -168,11 +82,11 @@ def boxpoints(self): ------- Any """ - return self["boxpoints"] + return self['boxpoints'] @boxpoints.setter def boxpoints(self, val): - self["boxpoints"] = val + self['boxpoints'] = val # customdata # ---------- @@ -191,11 +105,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -212,11 +126,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # dx # -- @@ -233,11 +147,11 @@ def dx(self): ------- int|float """ - return self["dx"] + return self['dx'] @dx.setter def dx(self, val): - self["dx"] = val + self['dx'] = val # dy # -- @@ -254,11 +168,11 @@ def dy(self): ------- int|float """ - return self["dy"] + return self['dy'] @dy.setter def dy(self, val): - self["dy"] = val + self['dy'] = val # fillcolor # --------- @@ -274,52 +188,17 @@ def fillcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["fillcolor"] + return self['fillcolor'] @fillcolor.setter def fillcolor(self, val): - self["fillcolor"] = val + self['fillcolor'] = val # hoverinfo # --------- @@ -341,11 +220,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -362,11 +241,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -379,53 +258,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.box.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hoveron # ------- @@ -444,11 +285,11 @@ def hoveron(self): ------- Any """ - return self["hoveron"] + return self['hoveron'] @hoveron.setter def hoveron(self, val): - self["hoveron"] = val + self['hoveron'] = val # hovertemplate # ------------- @@ -488,11 +329,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -509,11 +350,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -531,11 +372,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -552,11 +393,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -574,11 +415,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -594,11 +435,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # jitter # ------ @@ -617,11 +458,11 @@ def jitter(self): ------- int|float """ - return self["jitter"] + return self['jitter'] @jitter.setter def jitter(self, val): - self["jitter"] = val + self['jitter'] = val # legend # ------ @@ -642,11 +483,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -665,11 +506,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -682,22 +523,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.box.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -720,11 +554,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -741,11 +575,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # line # ---- @@ -758,23 +592,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the color of line bounding the box(es). - width - Sets the width (in px) of line bounding the - box(es). - Returns ------- plotly.graph_objs.box.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # lowerfence # ---------- @@ -794,11 +620,11 @@ def lowerfence(self): ------- numpy.ndarray """ - return self["lowerfence"] + return self['lowerfence'] @lowerfence.setter def lowerfence(self, val): - self["lowerfence"] = val + self['lowerfence'] = val # lowerfencesrc # ------------- @@ -815,11 +641,11 @@ def lowerfencesrc(self): ------- str """ - return self["lowerfencesrc"] + return self['lowerfencesrc'] @lowerfencesrc.setter def lowerfencesrc(self, val): - self["lowerfencesrc"] = val + self['lowerfencesrc'] = val # marker # ------ @@ -832,42 +658,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - angle - Sets the marker angle in respect to `angleref`. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - line - :class:`plotly.graph_objects.box.marker.Line` - instance or dict with compatible properties - opacity - Sets the marker opacity. - outliercolor - Sets the color of the outlier sample points. - size - Sets the marker size (in px). - symbol - Sets the marker symbol type. Adding 100 is - equivalent to appending "-open" to a symbol - name. Adding 200 is equivalent to appending - "-dot" to a symbol name. Adding 300 is - equivalent to appending "-open-dot" or "dot- - open" to a symbol name. - Returns ------- plotly.graph_objs.box.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # mean # ---- @@ -887,11 +686,11 @@ def mean(self): ------- numpy.ndarray """ - return self["mean"] + return self['mean'] @mean.setter def mean(self, val): - self["mean"] = val + self['mean'] = val # meansrc # ------- @@ -907,11 +706,11 @@ def meansrc(self): ------- str """ - return self["meansrc"] + return self['meansrc'] @meansrc.setter def meansrc(self, val): - self["meansrc"] = val + self['meansrc'] = val # median # ------ @@ -928,11 +727,11 @@ def median(self): ------- numpy.ndarray """ - return self["median"] + return self['median'] @median.setter def median(self, val): - self["median"] = val + self['median'] = val # mediansrc # --------- @@ -948,11 +747,11 @@ def mediansrc(self): ------- str """ - return self["mediansrc"] + return self['mediansrc'] @mediansrc.setter def mediansrc(self, val): - self["mediansrc"] = val + self['mediansrc'] = val # meta # ---- @@ -976,11 +775,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -996,11 +795,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -1020,11 +819,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # notched # ------- @@ -1048,11 +847,11 @@ def notched(self): ------- bool """ - return self["notched"] + return self['notched'] @notched.setter def notched(self, val): - self["notched"] = val + self['notched'] = val # notchspan # --------- @@ -1073,11 +872,11 @@ def notchspan(self): ------- numpy.ndarray """ - return self["notchspan"] + return self['notchspan'] @notchspan.setter def notchspan(self, val): - self["notchspan"] = val + self['notchspan'] = val # notchspansrc # ------------ @@ -1094,11 +893,11 @@ def notchspansrc(self): ------- str """ - return self["notchspansrc"] + return self['notchspansrc'] @notchspansrc.setter def notchspansrc(self, val): - self["notchspansrc"] = val + self['notchspansrc'] = val # notchwidth # ---------- @@ -1115,11 +914,11 @@ def notchwidth(self): ------- int|float """ - return self["notchwidth"] + return self['notchwidth'] @notchwidth.setter def notchwidth(self, val): - self["notchwidth"] = val + self['notchwidth'] = val # offsetgroup # ----------- @@ -1138,11 +937,11 @@ def offsetgroup(self): ------- str """ - return self["offsetgroup"] + return self['offsetgroup'] @offsetgroup.setter def offsetgroup(self, val): - self["offsetgroup"] = val + self['offsetgroup'] = val # opacity # ------- @@ -1158,11 +957,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # orientation # ----------- @@ -1180,11 +979,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # pointpos # -------- @@ -1204,11 +1003,11 @@ def pointpos(self): ------- int|float """ - return self["pointpos"] + return self['pointpos'] @pointpos.setter def pointpos(self, val): - self["pointpos"] = val + self['pointpos'] = val # q1 # -- @@ -1225,11 +1024,11 @@ def q1(self): ------- numpy.ndarray """ - return self["q1"] + return self['q1'] @q1.setter def q1(self, val): - self["q1"] = val + self['q1'] = val # q1src # ----- @@ -1245,11 +1044,11 @@ def q1src(self): ------- str """ - return self["q1src"] + return self['q1src'] @q1src.setter def q1src(self, val): - self["q1src"] = val + self['q1src'] = val # q3 # -- @@ -1266,11 +1065,11 @@ def q3(self): ------- numpy.ndarray """ - return self["q3"] + return self['q3'] @q3.setter def q3(self, val): - self["q3"] = val + self['q3'] = val # q3src # ----- @@ -1286,11 +1085,11 @@ def q3src(self): ------- str """ - return self["q3src"] + return self['q3src'] @q3src.setter def q3src(self, val): - self["q3src"] = val + self['q3src'] = val # quartilemethod # -------------- @@ -1318,11 +1117,11 @@ def quartilemethod(self): ------- Any """ - return self["quartilemethod"] + return self['quartilemethod'] @quartilemethod.setter def quartilemethod(self, val): - self["quartilemethod"] = val + self['quartilemethod'] = val # sd # -- @@ -1342,11 +1141,11 @@ def sd(self): ------- numpy.ndarray """ - return self["sd"] + return self['sd'] @sd.setter def sd(self, val): - self["sd"] = val + self['sd'] = val # sdmultiple # ---------- @@ -1364,11 +1163,11 @@ def sdmultiple(self): ------- int|float """ - return self["sdmultiple"] + return self['sdmultiple'] @sdmultiple.setter def sdmultiple(self, val): - self["sdmultiple"] = val + self['sdmultiple'] = val # sdsrc # ----- @@ -1384,11 +1183,11 @@ def sdsrc(self): ------- str """ - return self["sdsrc"] + return self['sdsrc'] @sdsrc.setter def sdsrc(self, val): - self["sdsrc"] = val + self['sdsrc'] = val # selected # -------- @@ -1401,21 +1200,15 @@ def selected(self): - A dict of string/value properties that will be passed to the Selected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.box.selected.Marke - r` instance or dict with compatible properties - Returns ------- plotly.graph_objs.box.Selected """ - return self["selected"] + return self['selected'] @selected.setter def selected(self, val): - self["selected"] = val + self['selected'] = val # selectedpoints # -------------- @@ -1435,11 +1228,11 @@ def selectedpoints(self): ------- Any """ - return self["selectedpoints"] + return self['selectedpoints'] @selectedpoints.setter def selectedpoints(self, val): - self["selectedpoints"] = val + self['selectedpoints'] = val # showlegend # ---------- @@ -1456,11 +1249,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # showwhiskers # ------------ @@ -1477,11 +1270,11 @@ def showwhiskers(self): ------- bool """ - return self["showwhiskers"] + return self['showwhiskers'] @showwhiskers.setter def showwhiskers(self, val): - self["showwhiskers"] = val + self['showwhiskers'] = val # sizemode # -------- @@ -1502,11 +1295,11 @@ def sizemode(self): ------- Any """ - return self["sizemode"] + return self['sizemode'] @sizemode.setter def sizemode(self, val): - self["sizemode"] = val + self['sizemode'] = val # stream # ------ @@ -1519,27 +1312,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.box.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # text # ---- @@ -1561,11 +1342,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textsrc # ------- @@ -1581,11 +1362,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # uid # --- @@ -1603,11 +1384,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1636,11 +1417,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # unselected # ---------- @@ -1653,22 +1434,15 @@ def unselected(self): - A dict of string/value properties that will be passed to the Unselected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.box.unselected.Mar - ker` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.box.Unselected """ - return self["unselected"] + return self['unselected'] @unselected.setter def unselected(self, val): - self["unselected"] = val + self['unselected'] = val # upperfence # ---------- @@ -1688,11 +1462,11 @@ def upperfence(self): ------- numpy.ndarray """ - return self["upperfence"] + return self['upperfence'] @upperfence.setter def upperfence(self, val): - self["upperfence"] = val + self['upperfence'] = val # upperfencesrc # ------------- @@ -1709,11 +1483,11 @@ def upperfencesrc(self): ------- str """ - return self["upperfencesrc"] + return self['upperfencesrc'] @upperfencesrc.setter def upperfencesrc(self, val): - self["upperfencesrc"] = val + self['upperfencesrc'] = val # visible # ------- @@ -1732,11 +1506,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # whiskerwidth # ------------ @@ -1753,11 +1527,11 @@ def whiskerwidth(self): ------- int|float """ - return self["whiskerwidth"] + return self['whiskerwidth'] @whiskerwidth.setter def whiskerwidth(self, val): - self["whiskerwidth"] = val + self['whiskerwidth'] = val # width # ----- @@ -1775,11 +1549,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # x # - @@ -1796,11 +1570,11 @@ def x(self): ------- numpy.ndarray """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # x0 # -- @@ -1817,11 +1591,11 @@ def x0(self): ------- Any """ - return self["x0"] + return self['x0'] @x0.setter def x0(self, val): - self["x0"] = val + self['x0'] = val # xaxis # ----- @@ -1842,11 +1616,11 @@ def xaxis(self): ------- str """ - return self["xaxis"] + return self['xaxis'] @xaxis.setter def xaxis(self, val): - self["xaxis"] = val + self['xaxis'] = val # xcalendar # --------- @@ -1866,11 +1640,11 @@ def xcalendar(self): ------- Any """ - return self["xcalendar"] + return self['xcalendar'] @xcalendar.setter def xcalendar(self, val): - self["xcalendar"] = val + self['xcalendar'] = val # xhoverformat # ------------ @@ -1897,11 +1671,11 @@ def xhoverformat(self): ------- str """ - return self["xhoverformat"] + return self['xhoverformat'] @xhoverformat.setter def xhoverformat(self, val): - self["xhoverformat"] = val + self['xhoverformat'] = val # xperiod # ------- @@ -1919,11 +1693,11 @@ def xperiod(self): ------- Any """ - return self["xperiod"] + return self['xperiod'] @xperiod.setter def xperiod(self, val): - self["xperiod"] = val + self['xperiod'] = val # xperiod0 # -------- @@ -1942,11 +1716,11 @@ def xperiod0(self): ------- Any """ - return self["xperiod0"] + return self['xperiod0'] @xperiod0.setter def xperiod0(self, val): - self["xperiod0"] = val + self['xperiod0'] = val # xperiodalignment # ---------------- @@ -1964,11 +1738,11 @@ def xperiodalignment(self): ------- Any """ - return self["xperiodalignment"] + return self['xperiodalignment'] @xperiodalignment.setter def xperiodalignment(self, val): - self["xperiodalignment"] = val + self['xperiodalignment'] = val # xsrc # ---- @@ -1984,11 +1758,11 @@ def xsrc(self): ------- str """ - return self["xsrc"] + return self['xsrc'] @xsrc.setter def xsrc(self, val): - self["xsrc"] = val + self['xsrc'] = val # y # - @@ -2005,11 +1779,11 @@ def y(self): ------- numpy.ndarray """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # y0 # -- @@ -2026,11 +1800,11 @@ def y0(self): ------- Any """ - return self["y0"] + return self['y0'] @y0.setter def y0(self, val): - self["y0"] = val + self['y0'] = val # yaxis # ----- @@ -2051,11 +1825,11 @@ def yaxis(self): ------- str """ - return self["yaxis"] + return self['yaxis'] @yaxis.setter def yaxis(self, val): - self["yaxis"] = val + self['yaxis'] = val # ycalendar # --------- @@ -2075,11 +1849,11 @@ def ycalendar(self): ------- Any """ - return self["ycalendar"] + return self['ycalendar'] @ycalendar.setter def ycalendar(self, val): - self["ycalendar"] = val + self['ycalendar'] = val # yhoverformat # ------------ @@ -2106,11 +1880,11 @@ def yhoverformat(self): ------- str """ - return self["yhoverformat"] + return self['yhoverformat'] @yhoverformat.setter def yhoverformat(self, val): - self["yhoverformat"] = val + self['yhoverformat'] = val # yperiod # ------- @@ -2128,11 +1902,11 @@ def yperiod(self): ------- Any """ - return self["yperiod"] + return self['yperiod'] @yperiod.setter def yperiod(self, val): - self["yperiod"] = val + self['yperiod'] = val # yperiod0 # -------- @@ -2151,11 +1925,11 @@ def yperiod0(self): ------- Any """ - return self["yperiod0"] + return self['yperiod0'] @yperiod0.setter def yperiod0(self, val): - self["yperiod0"] = val + self['yperiod0'] = val # yperiodalignment # ---------------- @@ -2173,11 +1947,11 @@ def yperiodalignment(self): ------- Any """ - return self["yperiodalignment"] + return self['yperiodalignment'] @yperiodalignment.setter def yperiodalignment(self, val): - self["yperiodalignment"] = val + self['yperiodalignment'] = val # ysrc # ---- @@ -2193,11 +1967,11 @@ def ysrc(self): ------- str """ - return self["ysrc"] + return self['ysrc'] @ysrc.setter def ysrc(self, val): - self["ysrc"] = val + self['ysrc'] = val # zorder # ------ @@ -2215,17 +1989,17 @@ def zorder(self): ------- int """ - return self["zorder"] + return self['zorder'] @zorder.setter def zorder(self, val): - self["zorder"] = val + self['zorder'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -2678,98 +2452,96 @@ def _prop_descriptions(self): traces with higher `zorder` appear in front of those with lower `zorder`. """ - - def __init__( - self, - arg=None, - alignmentgroup=None, - boxmean=None, - boxpoints=None, - customdata=None, - customdatasrc=None, - dx=None, - dy=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hoveron=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - jitter=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - lowerfence=None, - lowerfencesrc=None, - marker=None, - mean=None, - meansrc=None, - median=None, - mediansrc=None, - meta=None, - metasrc=None, - name=None, - notched=None, - notchspan=None, - notchspansrc=None, - notchwidth=None, - offsetgroup=None, - opacity=None, - orientation=None, - pointpos=None, - q1=None, - q1src=None, - q3=None, - q3src=None, - quartilemethod=None, - sd=None, - sdmultiple=None, - sdsrc=None, - selected=None, - selectedpoints=None, - showlegend=None, - showwhiskers=None, - sizemode=None, - stream=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - unselected=None, - upperfence=None, - upperfencesrc=None, - visible=None, - whiskerwidth=None, - width=None, - x=None, - x0=None, - xaxis=None, - xcalendar=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - y=None, - y0=None, - yaxis=None, - ycalendar=None, - yhoverformat=None, - yperiod=None, - yperiod0=None, - yperiodalignment=None, - ysrc=None, - zorder=None, - **kwargs, - ): + def __init__(self, + arg=None, + alignmentgroup=None, + boxmean=None, + boxpoints=None, + customdata=None, + customdatasrc=None, + dx=None, + dy=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hoveron=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + jitter=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + lowerfence=None, + lowerfencesrc=None, + marker=None, + mean=None, + meansrc=None, + median=None, + mediansrc=None, + meta=None, + metasrc=None, + name=None, + notched=None, + notchspan=None, + notchspansrc=None, + notchwidth=None, + offsetgroup=None, + opacity=None, + orientation=None, + pointpos=None, + q1=None, + q1src=None, + q3=None, + q3src=None, + quartilemethod=None, + sd=None, + sdmultiple=None, + sdsrc=None, + selected=None, + selectedpoints=None, + showlegend=None, + showwhiskers=None, + sizemode=None, + stream=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + unselected=None, + upperfence=None, + upperfencesrc=None, + visible=None, + whiskerwidth=None, + width=None, + x=None, + x0=None, + xaxis=None, + xcalendar=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + y=None, + y0=None, + yaxis=None, + ycalendar=None, + yhoverformat=None, + yperiod=None, + yperiod0=None, + yperiodalignment=None, + ysrc=None, + zorder=None, + **kwargs + ): """ Construct a new Box object @@ -3253,10 +3025,10 @@ def __init__( ------- Box """ - super(Box, self).__init__("box") + super(Box, self).__init__('box') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -3268,370 +3040,111 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Box constructor must be a dict or -an instance of :class:`plotly.graph_objs.Box`""" - ) +an instance of :class:`plotly.graph_objs.Box`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("alignmentgroup", None) - _v = alignmentgroup if alignmentgroup is not None else _v - if _v is not None: - self["alignmentgroup"] = _v - _v = arg.pop("boxmean", None) - _v = boxmean if boxmean is not None else _v - if _v is not None: - self["boxmean"] = _v - _v = arg.pop("boxpoints", None) - _v = boxpoints if boxpoints is not None else _v - if _v is not None: - self["boxpoints"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("dx", None) - _v = dx if dx is not None else _v - if _v is not None: - self["dx"] = _v - _v = arg.pop("dy", None) - _v = dy if dy is not None else _v - if _v is not None: - self["dy"] = _v - _v = arg.pop("fillcolor", None) - _v = fillcolor if fillcolor is not None else _v - if _v is not None: - self["fillcolor"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hoveron", None) - _v = hoveron if hoveron is not None else _v - if _v is not None: - self["hoveron"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("jitter", None) - _v = jitter if jitter is not None else _v - if _v is not None: - self["jitter"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("lowerfence", None) - _v = lowerfence if lowerfence is not None else _v - if _v is not None: - self["lowerfence"] = _v - _v = arg.pop("lowerfencesrc", None) - _v = lowerfencesrc if lowerfencesrc is not None else _v - if _v is not None: - self["lowerfencesrc"] = _v - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("mean", None) - _v = mean if mean is not None else _v - if _v is not None: - self["mean"] = _v - _v = arg.pop("meansrc", None) - _v = meansrc if meansrc is not None else _v - if _v is not None: - self["meansrc"] = _v - _v = arg.pop("median", None) - _v = median if median is not None else _v - if _v is not None: - self["median"] = _v - _v = arg.pop("mediansrc", None) - _v = mediansrc if mediansrc is not None else _v - if _v is not None: - self["mediansrc"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("notched", None) - _v = notched if notched is not None else _v - if _v is not None: - self["notched"] = _v - _v = arg.pop("notchspan", None) - _v = notchspan if notchspan is not None else _v - if _v is not None: - self["notchspan"] = _v - _v = arg.pop("notchspansrc", None) - _v = notchspansrc if notchspansrc is not None else _v - if _v is not None: - self["notchspansrc"] = _v - _v = arg.pop("notchwidth", None) - _v = notchwidth if notchwidth is not None else _v - if _v is not None: - self["notchwidth"] = _v - _v = arg.pop("offsetgroup", None) - _v = offsetgroup if offsetgroup is not None else _v - if _v is not None: - self["offsetgroup"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("pointpos", None) - _v = pointpos if pointpos is not None else _v - if _v is not None: - self["pointpos"] = _v - _v = arg.pop("q1", None) - _v = q1 if q1 is not None else _v - if _v is not None: - self["q1"] = _v - _v = arg.pop("q1src", None) - _v = q1src if q1src is not None else _v - if _v is not None: - self["q1src"] = _v - _v = arg.pop("q3", None) - _v = q3 if q3 is not None else _v - if _v is not None: - self["q3"] = _v - _v = arg.pop("q3src", None) - _v = q3src if q3src is not None else _v - if _v is not None: - self["q3src"] = _v - _v = arg.pop("quartilemethod", None) - _v = quartilemethod if quartilemethod is not None else _v - if _v is not None: - self["quartilemethod"] = _v - _v = arg.pop("sd", None) - _v = sd if sd is not None else _v - if _v is not None: - self["sd"] = _v - _v = arg.pop("sdmultiple", None) - _v = sdmultiple if sdmultiple is not None else _v - if _v is not None: - self["sdmultiple"] = _v - _v = arg.pop("sdsrc", None) - _v = sdsrc if sdsrc is not None else _v - if _v is not None: - self["sdsrc"] = _v - _v = arg.pop("selected", None) - _v = selected if selected is not None else _v - if _v is not None: - self["selected"] = _v - _v = arg.pop("selectedpoints", None) - _v = selectedpoints if selectedpoints is not None else _v - if _v is not None: - self["selectedpoints"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("showwhiskers", None) - _v = showwhiskers if showwhiskers is not None else _v - if _v is not None: - self["showwhiskers"] = _v - _v = arg.pop("sizemode", None) - _v = sizemode if sizemode is not None else _v - if _v is not None: - self["sizemode"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("unselected", None) - _v = unselected if unselected is not None else _v - if _v is not None: - self["unselected"] = _v - _v = arg.pop("upperfence", None) - _v = upperfence if upperfence is not None else _v - if _v is not None: - self["upperfence"] = _v - _v = arg.pop("upperfencesrc", None) - _v = upperfencesrc if upperfencesrc is not None else _v - if _v is not None: - self["upperfencesrc"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("whiskerwidth", None) - _v = whiskerwidth if whiskerwidth is not None else _v - if _v is not None: - self["whiskerwidth"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("x0", None) - _v = x0 if x0 is not None else _v - if _v is not None: - self["x0"] = _v - _v = arg.pop("xaxis", None) - _v = xaxis if xaxis is not None else _v - if _v is not None: - self["xaxis"] = _v - _v = arg.pop("xcalendar", None) - _v = xcalendar if xcalendar is not None else _v - if _v is not None: - self["xcalendar"] = _v - _v = arg.pop("xhoverformat", None) - _v = xhoverformat if xhoverformat is not None else _v - if _v is not None: - self["xhoverformat"] = _v - _v = arg.pop("xperiod", None) - _v = xperiod if xperiod is not None else _v - if _v is not None: - self["xperiod"] = _v - _v = arg.pop("xperiod0", None) - _v = xperiod0 if xperiod0 is not None else _v - if _v is not None: - self["xperiod0"] = _v - _v = arg.pop("xperiodalignment", None) - _v = xperiodalignment if xperiodalignment is not None else _v - if _v is not None: - self["xperiodalignment"] = _v - _v = arg.pop("xsrc", None) - _v = xsrc if xsrc is not None else _v - if _v is not None: - self["xsrc"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("y0", None) - _v = y0 if y0 is not None else _v - if _v is not None: - self["y0"] = _v - _v = arg.pop("yaxis", None) - _v = yaxis if yaxis is not None else _v - if _v is not None: - self["yaxis"] = _v - _v = arg.pop("ycalendar", None) - _v = ycalendar if ycalendar is not None else _v - if _v is not None: - self["ycalendar"] = _v - _v = arg.pop("yhoverformat", None) - _v = yhoverformat if yhoverformat is not None else _v - if _v is not None: - self["yhoverformat"] = _v - _v = arg.pop("yperiod", None) - _v = yperiod if yperiod is not None else _v - if _v is not None: - self["yperiod"] = _v - _v = arg.pop("yperiod0", None) - _v = yperiod0 if yperiod0 is not None else _v - if _v is not None: - self["yperiod0"] = _v - _v = arg.pop("yperiodalignment", None) - _v = yperiodalignment if yperiodalignment is not None else _v - if _v is not None: - self["yperiodalignment"] = _v - _v = arg.pop("ysrc", None) - _v = ysrc if ysrc is not None else _v - if _v is not None: - self["ysrc"] = _v - _v = arg.pop("zorder", None) - _v = zorder if zorder is not None else _v - if _v is not None: - self["zorder"] = _v + self._init_provided('alignmentgroup', arg, alignmentgroup) + self._init_provided('boxmean', arg, boxmean) + self._init_provided('boxpoints', arg, boxpoints) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('dx', arg, dx) + self._init_provided('dy', arg, dy) + self._init_provided('fillcolor', arg, fillcolor) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hoveron', arg, hoveron) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('jitter', arg, jitter) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('line', arg, line) + self._init_provided('lowerfence', arg, lowerfence) + self._init_provided('lowerfencesrc', arg, lowerfencesrc) + self._init_provided('marker', arg, marker) + self._init_provided('mean', arg, mean) + self._init_provided('meansrc', arg, meansrc) + self._init_provided('median', arg, median) + self._init_provided('mediansrc', arg, mediansrc) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('notched', arg, notched) + self._init_provided('notchspan', arg, notchspan) + self._init_provided('notchspansrc', arg, notchspansrc) + self._init_provided('notchwidth', arg, notchwidth) + self._init_provided('offsetgroup', arg, offsetgroup) + self._init_provided('opacity', arg, opacity) + self._init_provided('orientation', arg, orientation) + self._init_provided('pointpos', arg, pointpos) + self._init_provided('q1', arg, q1) + self._init_provided('q1src', arg, q1src) + self._init_provided('q3', arg, q3) + self._init_provided('q3src', arg, q3src) + self._init_provided('quartilemethod', arg, quartilemethod) + self._init_provided('sd', arg, sd) + self._init_provided('sdmultiple', arg, sdmultiple) + self._init_provided('sdsrc', arg, sdsrc) + self._init_provided('selected', arg, selected) + self._init_provided('selectedpoints', arg, selectedpoints) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('showwhiskers', arg, showwhiskers) + self._init_provided('sizemode', arg, sizemode) + self._init_provided('stream', arg, stream) + self._init_provided('text', arg, text) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('unselected', arg, unselected) + self._init_provided('upperfence', arg, upperfence) + self._init_provided('upperfencesrc', arg, upperfencesrc) + self._init_provided('visible', arg, visible) + self._init_provided('whiskerwidth', arg, whiskerwidth) + self._init_provided('width', arg, width) + self._init_provided('x', arg, x) + self._init_provided('x0', arg, x0) + self._init_provided('xaxis', arg, xaxis) + self._init_provided('xcalendar', arg, xcalendar) + self._init_provided('xhoverformat', arg, xhoverformat) + self._init_provided('xperiod', arg, xperiod) + self._init_provided('xperiod0', arg, xperiod0) + self._init_provided('xperiodalignment', arg, xperiodalignment) + self._init_provided('xsrc', arg, xsrc) + self._init_provided('y', arg, y) + self._init_provided('y0', arg, y0) + self._init_provided('yaxis', arg, yaxis) + self._init_provided('ycalendar', arg, ycalendar) + self._init_provided('yhoverformat', arg, yhoverformat) + self._init_provided('yperiod', arg, yperiod) + self._init_provided('yperiod0', arg, yperiod0) + self._init_provided('yperiodalignment', arg, yperiodalignment) + self._init_provided('ysrc', arg, ysrc) + self._init_provided('zorder', arg, zorder) # Read-only literals # ------------------ - self._props["type"] = "box" - arg.pop("type", None) + self._props['type'] = 'box' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_candlestick.py b/packages/python/plotly/plotly/graph_objs/_candlestick.py index 946743d9445..e0e77e99cb8 100644 --- a/packages/python/plotly/plotly/graph_objs/_candlestick.py +++ b/packages/python/plotly/plotly/graph_objs/_candlestick.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,60 +8,9 @@ class Candlestick(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "candlestick" - _valid_props = { - "close", - "closesrc", - "customdata", - "customdatasrc", - "decreasing", - "high", - "highsrc", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "increasing", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "line", - "low", - "lowsrc", - "meta", - "metasrc", - "name", - "opacity", - "open", - "opensrc", - "selectedpoints", - "showlegend", - "stream", - "text", - "textsrc", - "type", - "uid", - "uirevision", - "visible", - "whiskerwidth", - "x", - "xaxis", - "xcalendar", - "xhoverformat", - "xperiod", - "xperiod0", - "xperiodalignment", - "xsrc", - "yaxis", - "yhoverformat", - "zorder", - } + _parent_path_str = '' + _path_str = 'candlestick' + _valid_props = {"close", "closesrc", "customdata", "customdatasrc", "decreasing", "high", "highsrc", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertext", "hovertextsrc", "ids", "idssrc", "increasing", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "line", "low", "lowsrc", "meta", "metasrc", "name", "opacity", "open", "opensrc", "selectedpoints", "showlegend", "stream", "text", "textsrc", "type", "uid", "uirevision", "visible", "whiskerwidth", "x", "xaxis", "xcalendar", "xhoverformat", "xperiod", "xperiod0", "xperiodalignment", "xsrc", "yaxis", "yhoverformat", "zorder"} # close # ----- @@ -75,11 +26,11 @@ def close(self): ------- numpy.ndarray """ - return self["close"] + return self['close'] @close.setter def close(self, val): - self["close"] = val + self['close'] = val # closesrc # -------- @@ -95,11 +46,11 @@ def closesrc(self): ------- str """ - return self["closesrc"] + return self['closesrc'] @closesrc.setter def closesrc(self, val): - self["closesrc"] = val + self['closesrc'] = val # customdata # ---------- @@ -118,11 +69,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -139,11 +90,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # decreasing # ---------- @@ -156,27 +107,15 @@ def decreasing(self): - A dict of string/value properties that will be passed to the Decreasing constructor - Supported dict properties: - - fillcolor - Sets the fill color. Defaults to a half- - transparent variant of the line color, marker - color, or marker line color, whichever is - available. - line - :class:`plotly.graph_objects.candlestick.decrea - sing.Line` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.candlestick.Decreasing """ - return self["decreasing"] + return self['decreasing'] @decreasing.setter def decreasing(self, val): - self["decreasing"] = val + self['decreasing'] = val # high # ---- @@ -192,11 +131,11 @@ def high(self): ------- numpy.ndarray """ - return self["high"] + return self['high'] @high.setter def high(self, val): - self["high"] = val + self['high'] = val # highsrc # ------- @@ -212,11 +151,11 @@ def highsrc(self): ------- str """ - return self["highsrc"] + return self['highsrc'] @highsrc.setter def highsrc(self, val): - self["highsrc"] = val + self['highsrc'] = val # hoverinfo # --------- @@ -238,11 +177,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -259,11 +198,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -276,56 +215,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - split - Show hover information (open, close, high, low) - in separate labels. - Returns ------- plotly.graph_objs.candlestick.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertext # --------- @@ -343,11 +241,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -364,11 +262,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -386,11 +284,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -406,11 +304,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # increasing # ---------- @@ -423,27 +321,15 @@ def increasing(self): - A dict of string/value properties that will be passed to the Increasing constructor - Supported dict properties: - - fillcolor - Sets the fill color. Defaults to a half- - transparent variant of the line color, marker - color, or marker line color, whichever is - available. - line - :class:`plotly.graph_objects.candlestick.increa - sing.Line` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.candlestick.Increasing """ - return self["increasing"] + return self['increasing'] @increasing.setter def increasing(self, val): - self["increasing"] = val + self['increasing'] = val # legend # ------ @@ -464,11 +350,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -487,11 +373,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -504,22 +390,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.candlestick.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -542,11 +421,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -563,11 +442,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # line # ---- @@ -580,24 +459,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - width - Sets the width (in px) of line bounding the - box(es). Note that this style setting can also - be set per direction via - `increasing.line.width` and - `decreasing.line.width`. - Returns ------- plotly.graph_objs.candlestick.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # low # --- @@ -613,11 +483,11 @@ def low(self): ------- numpy.ndarray """ - return self["low"] + return self['low'] @low.setter def low(self, val): - self["low"] = val + self['low'] = val # lowsrc # ------ @@ -633,11 +503,11 @@ def lowsrc(self): ------- str """ - return self["lowsrc"] + return self['lowsrc'] @lowsrc.setter def lowsrc(self, val): - self["lowsrc"] = val + self['lowsrc'] = val # meta # ---- @@ -661,11 +531,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -681,11 +551,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -703,11 +573,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -723,11 +593,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # open # ---- @@ -743,11 +613,11 @@ def open(self): ------- numpy.ndarray """ - return self["open"] + return self['open'] @open.setter def open(self, val): - self["open"] = val + self['open'] = val # opensrc # ------- @@ -763,11 +633,11 @@ def opensrc(self): ------- str """ - return self["opensrc"] + return self['opensrc'] @opensrc.setter def opensrc(self, val): - self["opensrc"] = val + self['opensrc'] = val # selectedpoints # -------------- @@ -787,11 +657,11 @@ def selectedpoints(self): ------- Any """ - return self["selectedpoints"] + return self['selectedpoints'] @selectedpoints.setter def selectedpoints(self, val): - self["selectedpoints"] = val + self['selectedpoints'] = val # showlegend # ---------- @@ -808,11 +678,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # stream # ------ @@ -825,27 +695,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.candlestick.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # text # ---- @@ -866,11 +724,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textsrc # ------- @@ -886,11 +744,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # uid # --- @@ -908,11 +766,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -941,11 +799,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # visible # ------- @@ -964,11 +822,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # whiskerwidth # ------------ @@ -985,11 +843,11 @@ def whiskerwidth(self): ------- int|float """ - return self["whiskerwidth"] + return self['whiskerwidth'] @whiskerwidth.setter def whiskerwidth(self, val): - self["whiskerwidth"] = val + self['whiskerwidth'] = val # x # - @@ -1006,11 +864,11 @@ def x(self): ------- numpy.ndarray """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xaxis # ----- @@ -1031,11 +889,11 @@ def xaxis(self): ------- str """ - return self["xaxis"] + return self['xaxis'] @xaxis.setter def xaxis(self, val): - self["xaxis"] = val + self['xaxis'] = val # xcalendar # --------- @@ -1055,11 +913,11 @@ def xcalendar(self): ------- Any """ - return self["xcalendar"] + return self['xcalendar'] @xcalendar.setter def xcalendar(self, val): - self["xcalendar"] = val + self['xcalendar'] = val # xhoverformat # ------------ @@ -1086,11 +944,11 @@ def xhoverformat(self): ------- str """ - return self["xhoverformat"] + return self['xhoverformat'] @xhoverformat.setter def xhoverformat(self, val): - self["xhoverformat"] = val + self['xhoverformat'] = val # xperiod # ------- @@ -1108,11 +966,11 @@ def xperiod(self): ------- Any """ - return self["xperiod"] + return self['xperiod'] @xperiod.setter def xperiod(self, val): - self["xperiod"] = val + self['xperiod'] = val # xperiod0 # -------- @@ -1131,11 +989,11 @@ def xperiod0(self): ------- Any """ - return self["xperiod0"] + return self['xperiod0'] @xperiod0.setter def xperiod0(self, val): - self["xperiod0"] = val + self['xperiod0'] = val # xperiodalignment # ---------------- @@ -1153,11 +1011,11 @@ def xperiodalignment(self): ------- Any """ - return self["xperiodalignment"] + return self['xperiodalignment'] @xperiodalignment.setter def xperiodalignment(self, val): - self["xperiodalignment"] = val + self['xperiodalignment'] = val # xsrc # ---- @@ -1173,11 +1031,11 @@ def xsrc(self): ------- str """ - return self["xsrc"] + return self['xsrc'] @xsrc.setter def xsrc(self, val): - self["xsrc"] = val + self['xsrc'] = val # yaxis # ----- @@ -1198,11 +1056,11 @@ def yaxis(self): ------- str """ - return self["yaxis"] + return self['yaxis'] @yaxis.setter def yaxis(self, val): - self["yaxis"] = val + self['yaxis'] = val # yhoverformat # ------------ @@ -1229,11 +1087,11 @@ def yhoverformat(self): ------- str """ - return self["yhoverformat"] + return self['yhoverformat'] @yhoverformat.setter def yhoverformat(self, val): - self["yhoverformat"] = val + self['yhoverformat'] = val # zorder # ------ @@ -1251,17 +1109,17 @@ def zorder(self): ------- int """ - return self["zorder"] + return self['zorder'] @zorder.setter def zorder(self, val): - self["zorder"] = val + self['zorder'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -1494,61 +1352,59 @@ def _prop_descriptions(self): traces with higher `zorder` appear in front of those with lower `zorder`. """ - - def __init__( - self, - arg=None, - close=None, - closesrc=None, - customdata=None, - customdatasrc=None, - decreasing=None, - high=None, - highsrc=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - increasing=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - low=None, - lowsrc=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - open=None, - opensrc=None, - selectedpoints=None, - showlegend=None, - stream=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - visible=None, - whiskerwidth=None, - x=None, - xaxis=None, - xcalendar=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - yaxis=None, - yhoverformat=None, - zorder=None, - **kwargs, - ): + def __init__(self, + arg=None, + close=None, + closesrc=None, + customdata=None, + customdatasrc=None, + decreasing=None, + high=None, + highsrc=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + increasing=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + low=None, + lowsrc=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + open=None, + opensrc=None, + selectedpoints=None, + showlegend=None, + stream=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + visible=None, + whiskerwidth=None, + x=None, + xaxis=None, + xcalendar=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + yaxis=None, + yhoverformat=None, + zorder=None, + **kwargs + ): """ Construct a new Candlestick object @@ -1796,10 +1652,10 @@ def __init__( ------- Candlestick """ - super(Candlestick, self).__init__("candlestick") + super(Candlestick, self).__init__('candlestick') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1811,222 +1667,74 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Candlestick constructor must be a dict or -an instance of :class:`plotly.graph_objs.Candlestick`""" - ) +an instance of :class:`plotly.graph_objs.Candlestick`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("close", None) - _v = close if close is not None else _v - if _v is not None: - self["close"] = _v - _v = arg.pop("closesrc", None) - _v = closesrc if closesrc is not None else _v - if _v is not None: - self["closesrc"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("decreasing", None) - _v = decreasing if decreasing is not None else _v - if _v is not None: - self["decreasing"] = _v - _v = arg.pop("high", None) - _v = high if high is not None else _v - if _v is not None: - self["high"] = _v - _v = arg.pop("highsrc", None) - _v = highsrc if highsrc is not None else _v - if _v is not None: - self["highsrc"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("increasing", None) - _v = increasing if increasing is not None else _v - if _v is not None: - self["increasing"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("low", None) - _v = low if low is not None else _v - if _v is not None: - self["low"] = _v - _v = arg.pop("lowsrc", None) - _v = lowsrc if lowsrc is not None else _v - if _v is not None: - self["lowsrc"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("open", None) - _v = open if open is not None else _v - if _v is not None: - self["open"] = _v - _v = arg.pop("opensrc", None) - _v = opensrc if opensrc is not None else _v - if _v is not None: - self["opensrc"] = _v - _v = arg.pop("selectedpoints", None) - _v = selectedpoints if selectedpoints is not None else _v - if _v is not None: - self["selectedpoints"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("whiskerwidth", None) - _v = whiskerwidth if whiskerwidth is not None else _v - if _v is not None: - self["whiskerwidth"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xaxis", None) - _v = xaxis if xaxis is not None else _v - if _v is not None: - self["xaxis"] = _v - _v = arg.pop("xcalendar", None) - _v = xcalendar if xcalendar is not None else _v - if _v is not None: - self["xcalendar"] = _v - _v = arg.pop("xhoverformat", None) - _v = xhoverformat if xhoverformat is not None else _v - if _v is not None: - self["xhoverformat"] = _v - _v = arg.pop("xperiod", None) - _v = xperiod if xperiod is not None else _v - if _v is not None: - self["xperiod"] = _v - _v = arg.pop("xperiod0", None) - _v = xperiod0 if xperiod0 is not None else _v - if _v is not None: - self["xperiod0"] = _v - _v = arg.pop("xperiodalignment", None) - _v = xperiodalignment if xperiodalignment is not None else _v - if _v is not None: - self["xperiodalignment"] = _v - _v = arg.pop("xsrc", None) - _v = xsrc if xsrc is not None else _v - if _v is not None: - self["xsrc"] = _v - _v = arg.pop("yaxis", None) - _v = yaxis if yaxis is not None else _v - if _v is not None: - self["yaxis"] = _v - _v = arg.pop("yhoverformat", None) - _v = yhoverformat if yhoverformat is not None else _v - if _v is not None: - self["yhoverformat"] = _v - _v = arg.pop("zorder", None) - _v = zorder if zorder is not None else _v - if _v is not None: - self["zorder"] = _v + self._init_provided('close', arg, close) + self._init_provided('closesrc', arg, closesrc) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('decreasing', arg, decreasing) + self._init_provided('high', arg, high) + self._init_provided('highsrc', arg, highsrc) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('increasing', arg, increasing) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('line', arg, line) + self._init_provided('low', arg, low) + self._init_provided('lowsrc', arg, lowsrc) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('open', arg, open) + self._init_provided('opensrc', arg, opensrc) + self._init_provided('selectedpoints', arg, selectedpoints) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('stream', arg, stream) + self._init_provided('text', arg, text) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('visible', arg, visible) + self._init_provided('whiskerwidth', arg, whiskerwidth) + self._init_provided('x', arg, x) + self._init_provided('xaxis', arg, xaxis) + self._init_provided('xcalendar', arg, xcalendar) + self._init_provided('xhoverformat', arg, xhoverformat) + self._init_provided('xperiod', arg, xperiod) + self._init_provided('xperiod0', arg, xperiod0) + self._init_provided('xperiodalignment', arg, xperiodalignment) + self._init_provided('xsrc', arg, xsrc) + self._init_provided('yaxis', arg, yaxis) + self._init_provided('yhoverformat', arg, yhoverformat) + self._init_provided('zorder', arg, zorder) # Read-only literals # ------------------ - self._props["type"] = "candlestick" - arg.pop("type", None) + self._props['type'] = 'candlestick' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_carpet.py b/packages/python/plotly/plotly/graph_objs/_carpet.py index 71a5c950190..d364e2d52b1 100644 --- a/packages/python/plotly/plotly/graph_objs/_carpet.py +++ b/packages/python/plotly/plotly/graph_objs/_carpet.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,48 +8,9 @@ class Carpet(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "carpet" - _valid_props = { - "a", - "a0", - "aaxis", - "asrc", - "b", - "b0", - "baxis", - "bsrc", - "carpet", - "cheaterslope", - "color", - "customdata", - "customdatasrc", - "da", - "db", - "font", - "ids", - "idssrc", - "legend", - "legendgrouptitle", - "legendrank", - "legendwidth", - "meta", - "metasrc", - "name", - "opacity", - "stream", - "type", - "uid", - "uirevision", - "visible", - "x", - "xaxis", - "xsrc", - "y", - "yaxis", - "ysrc", - "zorder", - } + _parent_path_str = '' + _path_str = 'carpet' + _valid_props = {"a", "a0", "aaxis", "asrc", "b", "b0", "baxis", "bsrc", "carpet", "cheaterslope", "color", "customdata", "customdatasrc", "da", "db", "font", "ids", "idssrc", "legend", "legendgrouptitle", "legendrank", "legendwidth", "meta", "metasrc", "name", "opacity", "stream", "type", "uid", "uirevision", "visible", "x", "xaxis", "xsrc", "y", "yaxis", "ysrc", "zorder"} # a # - @@ -63,11 +26,11 @@ def a(self): ------- numpy.ndarray """ - return self["a"] + return self['a'] @a.setter def a(self, val): - self["a"] = val + self['a'] = val # a0 # -- @@ -85,11 +48,11 @@ def a0(self): ------- int|float """ - return self["a0"] + return self['a0'] @a0.setter def a0(self, val): - self["a0"] = val + self['a0'] = val # aaxis # ----- @@ -102,253 +65,15 @@ def aaxis(self): - A dict of string/value properties that will be passed to the Aaxis constructor - Supported dict properties: - - arraydtick - The stride between grid lines along the axis - arraytick0 - The starting index of grid lines along the axis - autorange - Determines whether or not the range of this - axis is computed in relation to the input data. - See `rangemode` for more info. If `range` is - provided, then `autorange` is set to False. - autotypenumbers - Using "strict" a numeric string in trace data - is not converted to a number. Using *convert - types* a numeric string in trace data may be - treated as a number during automatic axis - `type` detection. Defaults to - layout.autotypenumbers. - categoryarray - Sets the order in which categories on this axis - appear. Only has an effect if `categoryorder` - is set to "array". Used with `categoryorder`. - categoryarraysrc - Sets the source reference on Chart Studio Cloud - for `categoryarray`. - categoryorder - Specifies the ordering logic for the case of - categorical variables. By default, plotly uses - "trace", which specifies the order that is - present in the data supplied. Set - `categoryorder` to *category ascending* or - *category descending* if order should be - determined by the alphanumerical order of the - category names. Set `categoryorder` to "array" - to derive the ordering from the attribute - `categoryarray`. If a category is not found in - the `categoryarray` array, the sorting behavior - for that attribute will be identical to the - "trace" mode. The unspecified categories will - follow the categories in `categoryarray`. - cheatertype - - color - Sets default for all colors associated with - this axis all at once: line, font, tick, and - grid colors. Grid color is lightened by - blending this with the plot background - Individual pieces can override this. - dtick - The stride between grid lines along the axis - endline - Determines whether or not a line is drawn at - along the final value of this axis. If True, - the end line is drawn on top of the grid lines. - endlinecolor - Sets the line color of the end line. - endlinewidth - Sets the width (in px) of the end line. - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - fixedrange - Determines whether or not this axis is zoom- - able. If true, then zoom is disabled. - gridcolor - Sets the axis line 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 width (in px) of the axis line. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - labelpadding - Extra padding between label and the axis - labelprefix - Sets a axis label prefix. - labelsuffix - Sets a axis label suffix. - linecolor - Sets the axis line color. - linewidth - Sets the width (in px) of the axis line. - minexponent - Hide SI prefix for 10^n if |n| is below this - number - minorgridcolor - Sets the color of the grid lines. - minorgridcount - Sets the number of minor grid ticks per major - grid tick - minorgriddash - 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"). - minorgridwidth - Sets the width (in px) of the grid lines. - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - range - Sets the range of this axis. If the axis `type` - is "log", then you must take the log of your - desired range (e.g. to set the range from 1 to - 100, set the range from 0 to 2). If the axis - `type` is "date", it should be date strings, - like date data, though Date objects and unix - milliseconds will be accepted and converted to - strings. If the axis `type` is "category", it - should be numbers, using the scale where each - category is assigned a serial number from zero - in the order it appears. - rangemode - If "normal", the range is computed in relation - to the extrema of the input data. If *tozero*`, - the range extends to 0, regardless of the input - data If "nonnegative", the range is non- - negative, regardless of the input data. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - showline - Determines whether or not a line bounding this - axis is drawn. - showticklabels - Determines whether axis labels are drawn on the - low side, the high side, both, or neither side - of the axis. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - smoothing - - startline - Determines whether or not a line is drawn at - along the starting value of this axis. If True, - the start line is drawn on top of the grid - lines. - startlinecolor - Sets the line color of the start line. - startlinewidth - Sets the width (in px) of the start line. - tick0 - The starting index of grid lines along the axis - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickfont - Sets the tick font. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.carpet. - aaxis.Tickformatstop` instances or dicts with - compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.carpet.aaxis.tickformatstopdefaults), sets - the default property values to use for elements - of carpet.aaxis.tickformatstops - tickmode - - tickprefix - Sets a tick label prefix. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - title - :class:`plotly.graph_objects.carpet.aaxis.Title - ` instance or dict with compatible properties - type - Sets the axis type. By default, plotly attempts - to determined the axis type by looking into the - data of the traces that referenced the axis in - question. - Returns ------- plotly.graph_objs.carpet.Aaxis """ - return self["aaxis"] + return self['aaxis'] @aaxis.setter def aaxis(self, val): - self["aaxis"] = val + self['aaxis'] = val # asrc # ---- @@ -364,11 +89,11 @@ def asrc(self): ------- str """ - return self["asrc"] + return self['asrc'] @asrc.setter def asrc(self, val): - self["asrc"] = val + self['asrc'] = val # b # - @@ -384,11 +109,11 @@ def b(self): ------- numpy.ndarray """ - return self["b"] + return self['b'] @b.setter def b(self, val): - self["b"] = val + self['b'] = val # b0 # -- @@ -406,11 +131,11 @@ def b0(self): ------- int|float """ - return self["b0"] + return self['b0'] @b0.setter def b0(self, val): - self["b0"] = val + self['b0'] = val # baxis # ----- @@ -423,253 +148,15 @@ def baxis(self): - A dict of string/value properties that will be passed to the Baxis constructor - Supported dict properties: - - arraydtick - The stride between grid lines along the axis - arraytick0 - The starting index of grid lines along the axis - autorange - Determines whether or not the range of this - axis is computed in relation to the input data. - See `rangemode` for more info. If `range` is - provided, then `autorange` is set to False. - autotypenumbers - Using "strict" a numeric string in trace data - is not converted to a number. Using *convert - types* a numeric string in trace data may be - treated as a number during automatic axis - `type` detection. Defaults to - layout.autotypenumbers. - categoryarray - Sets the order in which categories on this axis - appear. Only has an effect if `categoryorder` - is set to "array". Used with `categoryorder`. - categoryarraysrc - Sets the source reference on Chart Studio Cloud - for `categoryarray`. - categoryorder - Specifies the ordering logic for the case of - categorical variables. By default, plotly uses - "trace", which specifies the order that is - present in the data supplied. Set - `categoryorder` to *category ascending* or - *category descending* if order should be - determined by the alphanumerical order of the - category names. Set `categoryorder` to "array" - to derive the ordering from the attribute - `categoryarray`. If a category is not found in - the `categoryarray` array, the sorting behavior - for that attribute will be identical to the - "trace" mode. The unspecified categories will - follow the categories in `categoryarray`. - cheatertype - - color - Sets default for all colors associated with - this axis all at once: line, font, tick, and - grid colors. Grid color is lightened by - blending this with the plot background - Individual pieces can override this. - dtick - The stride between grid lines along the axis - endline - Determines whether or not a line is drawn at - along the final value of this axis. If True, - the end line is drawn on top of the grid lines. - endlinecolor - Sets the line color of the end line. - endlinewidth - Sets the width (in px) of the end line. - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - fixedrange - Determines whether or not this axis is zoom- - able. If true, then zoom is disabled. - gridcolor - Sets the axis line 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 width (in px) of the axis line. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - labelpadding - Extra padding between label and the axis - labelprefix - Sets a axis label prefix. - labelsuffix - Sets a axis label suffix. - linecolor - Sets the axis line color. - linewidth - Sets the width (in px) of the axis line. - minexponent - Hide SI prefix for 10^n if |n| is below this - number - minorgridcolor - Sets the color of the grid lines. - minorgridcount - Sets the number of minor grid ticks per major - grid tick - minorgriddash - 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"). - minorgridwidth - Sets the width (in px) of the grid lines. - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - range - Sets the range of this axis. If the axis `type` - is "log", then you must take the log of your - desired range (e.g. to set the range from 1 to - 100, set the range from 0 to 2). If the axis - `type` is "date", it should be date strings, - like date data, though Date objects and unix - milliseconds will be accepted and converted to - strings. If the axis `type` is "category", it - should be numbers, using the scale where each - category is assigned a serial number from zero - in the order it appears. - rangemode - If "normal", the range is computed in relation - to the extrema of the input data. If *tozero*`, - the range extends to 0, regardless of the input - data If "nonnegative", the range is non- - negative, regardless of the input data. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - showline - Determines whether or not a line bounding this - axis is drawn. - showticklabels - Determines whether axis labels are drawn on the - low side, the high side, both, or neither side - of the axis. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - smoothing - - startline - Determines whether or not a line is drawn at - along the starting value of this axis. If True, - the start line is drawn on top of the grid - lines. - startlinecolor - Sets the line color of the start line. - startlinewidth - Sets the width (in px) of the start line. - tick0 - The starting index of grid lines along the axis - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickfont - Sets the tick font. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.carpet. - baxis.Tickformatstop` instances or dicts with - compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.carpet.baxis.tickformatstopdefaults), sets - the default property values to use for elements - of carpet.baxis.tickformatstops - tickmode - - tickprefix - Sets a tick label prefix. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - title - :class:`plotly.graph_objects.carpet.baxis.Title - ` instance or dict with compatible properties - type - Sets the axis type. By default, plotly attempts - to determined the axis type by looking into the - data of the traces that referenced the axis in - question. - Returns ------- plotly.graph_objs.carpet.Baxis """ - return self["baxis"] + return self['baxis'] @baxis.setter def baxis(self, val): - self["baxis"] = val + self['baxis'] = val # bsrc # ---- @@ -685,11 +172,11 @@ def bsrc(self): ------- str """ - return self["bsrc"] + return self['bsrc'] @bsrc.setter def bsrc(self, val): - self["bsrc"] = val + self['bsrc'] = val # carpet # ------ @@ -708,11 +195,11 @@ def carpet(self): ------- str """ - return self["carpet"] + return self['carpet'] @carpet.setter def carpet(self, val): - self["carpet"] = val + self['carpet'] = val # cheaterslope # ------------ @@ -729,11 +216,11 @@ def cheaterslope(self): ------- int|float """ - return self["cheaterslope"] + return self['cheaterslope'] @cheaterslope.setter def cheaterslope(self, val): - self["cheaterslope"] = val + self['cheaterslope'] = val # color # ----- @@ -750,52 +237,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # customdata # ---------- @@ -814,11 +266,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -835,11 +287,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # da # -- @@ -855,11 +307,11 @@ def da(self): ------- int|float """ - return self["da"] + return self['da'] @da.setter def da(self, val): - self["da"] = val + self['da'] = val # db # -- @@ -875,11 +327,11 @@ def db(self): ------- int|float """ - return self["db"] + return self['db'] @db.setter def db(self, val): - self["db"] = val + self['db'] = val # font # ---- @@ -894,61 +346,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.carpet.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # ids # --- @@ -966,11 +372,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -986,11 +392,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # legend # ------ @@ -1011,11 +417,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgrouptitle # ---------------- @@ -1028,22 +434,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.carpet.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -1066,11 +465,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -1087,11 +486,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # meta # ---- @@ -1115,11 +514,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -1135,11 +534,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -1157,11 +556,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -1177,11 +576,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # stream # ------ @@ -1194,27 +593,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.carpet.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # uid # --- @@ -1232,11 +619,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1265,11 +652,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # visible # ------- @@ -1288,11 +675,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # x # - @@ -1310,11 +697,11 @@ def x(self): ------- numpy.ndarray """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xaxis # ----- @@ -1335,11 +722,11 @@ def xaxis(self): ------- str """ - return self["xaxis"] + return self['xaxis'] @xaxis.setter def xaxis(self, val): - self["xaxis"] = val + self['xaxis'] = val # xsrc # ---- @@ -1355,11 +742,11 @@ def xsrc(self): ------- str """ - return self["xsrc"] + return self['xsrc'] @xsrc.setter def xsrc(self, val): - self["xsrc"] = val + self['xsrc'] = val # y # - @@ -1375,11 +762,11 @@ def y(self): ------- numpy.ndarray """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yaxis # ----- @@ -1400,11 +787,11 @@ def yaxis(self): ------- str """ - return self["yaxis"] + return self['yaxis'] @yaxis.setter def yaxis(self, val): - self["yaxis"] = val + self['yaxis'] = val # ysrc # ---- @@ -1420,11 +807,11 @@ def ysrc(self): ------- str """ - return self["ysrc"] + return self['ysrc'] @ysrc.setter def ysrc(self, val): - self["ysrc"] = val + self['ysrc'] = val # zorder # ------ @@ -1442,17 +829,17 @@ def zorder(self): ------- int """ - return self["zorder"] + return self['zorder'] @zorder.setter def zorder(self, val): - self["zorder"] = val + self['zorder'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -1622,49 +1009,47 @@ def _prop_descriptions(self): traces with higher `zorder` appear in front of those with lower `zorder`. """ - - def __init__( - self, - arg=None, - a=None, - a0=None, - aaxis=None, - asrc=None, - b=None, - b0=None, - baxis=None, - bsrc=None, - carpet=None, - cheaterslope=None, - color=None, - customdata=None, - customdatasrc=None, - da=None, - db=None, - font=None, - ids=None, - idssrc=None, - legend=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - stream=None, - uid=None, - uirevision=None, - visible=None, - x=None, - xaxis=None, - xsrc=None, - y=None, - yaxis=None, - ysrc=None, - zorder=None, - **kwargs, - ): + def __init__(self, + arg=None, + a=None, + a0=None, + aaxis=None, + asrc=None, + b=None, + b0=None, + baxis=None, + bsrc=None, + carpet=None, + cheaterslope=None, + color=None, + customdata=None, + customdatasrc=None, + da=None, + db=None, + font=None, + ids=None, + idssrc=None, + legend=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + stream=None, + uid=None, + uirevision=None, + visible=None, + x=None, + xaxis=None, + xsrc=None, + y=None, + yaxis=None, + ysrc=None, + zorder=None, + **kwargs + ): """ Construct a new Carpet object @@ -1847,10 +1232,10 @@ def __init__( ------- Carpet """ - super(Carpet, self).__init__("carpet") + super(Carpet, self).__init__('carpet') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1862,174 +1247,62 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Carpet constructor must be a dict or -an instance of :class:`plotly.graph_objs.Carpet`""" - ) +an instance of :class:`plotly.graph_objs.Carpet`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("a", None) - _v = a if a is not None else _v - if _v is not None: - self["a"] = _v - _v = arg.pop("a0", None) - _v = a0 if a0 is not None else _v - if _v is not None: - self["a0"] = _v - _v = arg.pop("aaxis", None) - _v = aaxis if aaxis is not None else _v - if _v is not None: - self["aaxis"] = _v - _v = arg.pop("asrc", None) - _v = asrc if asrc is not None else _v - if _v is not None: - self["asrc"] = _v - _v = arg.pop("b", None) - _v = b if b is not None else _v - if _v is not None: - self["b"] = _v - _v = arg.pop("b0", None) - _v = b0 if b0 is not None else _v - if _v is not None: - self["b0"] = _v - _v = arg.pop("baxis", None) - _v = baxis if baxis is not None else _v - if _v is not None: - self["baxis"] = _v - _v = arg.pop("bsrc", None) - _v = bsrc if bsrc is not None else _v - if _v is not None: - self["bsrc"] = _v - _v = arg.pop("carpet", None) - _v = carpet if carpet is not None else _v - if _v is not None: - self["carpet"] = _v - _v = arg.pop("cheaterslope", None) - _v = cheaterslope if cheaterslope is not None else _v - if _v is not None: - self["cheaterslope"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("da", None) - _v = da if da is not None else _v - if _v is not None: - self["da"] = _v - _v = arg.pop("db", None) - _v = db if db is not None else _v - if _v is not None: - self["db"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xaxis", None) - _v = xaxis if xaxis is not None else _v - if _v is not None: - self["xaxis"] = _v - _v = arg.pop("xsrc", None) - _v = xsrc if xsrc is not None else _v - if _v is not None: - self["xsrc"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yaxis", None) - _v = yaxis if yaxis is not None else _v - if _v is not None: - self["yaxis"] = _v - _v = arg.pop("ysrc", None) - _v = ysrc if ysrc is not None else _v - if _v is not None: - self["ysrc"] = _v - _v = arg.pop("zorder", None) - _v = zorder if zorder is not None else _v - if _v is not None: - self["zorder"] = _v + self._init_provided('a', arg, a) + self._init_provided('a0', arg, a0) + self._init_provided('aaxis', arg, aaxis) + self._init_provided('asrc', arg, asrc) + self._init_provided('b', arg, b) + self._init_provided('b0', arg, b0) + self._init_provided('baxis', arg, baxis) + self._init_provided('bsrc', arg, bsrc) + self._init_provided('carpet', arg, carpet) + self._init_provided('cheaterslope', arg, cheaterslope) + self._init_provided('color', arg, color) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('da', arg, da) + self._init_provided('db', arg, db) + self._init_provided('font', arg, font) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('stream', arg, stream) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('visible', arg, visible) + self._init_provided('x', arg, x) + self._init_provided('xaxis', arg, xaxis) + self._init_provided('xsrc', arg, xsrc) + self._init_provided('y', arg, y) + self._init_provided('yaxis', arg, yaxis) + self._init_provided('ysrc', arg, ysrc) + self._init_provided('zorder', arg, zorder) # Read-only literals # ------------------ - self._props["type"] = "carpet" - arg.pop("type", None) + self._props['type'] = 'carpet' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_choropleth.py b/packages/python/plotly/plotly/graph_objs/_choropleth.py index bad982915b4..c3e92473022 100644 --- a/packages/python/plotly/plotly/graph_objs/_choropleth.py +++ b/packages/python/plotly/plotly/graph_objs/_choropleth.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,59 +8,9 @@ class Choropleth(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "choropleth" - _valid_props = { - "autocolorscale", - "coloraxis", - "colorbar", - "colorscale", - "customdata", - "customdatasrc", - "featureidkey", - "geo", - "geojson", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "locationmode", - "locations", - "locationssrc", - "marker", - "meta", - "metasrc", - "name", - "reversescale", - "selected", - "selectedpoints", - "showlegend", - "showscale", - "stream", - "text", - "textsrc", - "type", - "uid", - "uirevision", - "unselected", - "visible", - "z", - "zauto", - "zmax", - "zmid", - "zmin", - "zsrc", - } + _parent_path_str = '' + _path_str = 'choropleth' + _valid_props = {"autocolorscale", "coloraxis", "colorbar", "colorscale", "customdata", "customdatasrc", "featureidkey", "geo", "geojson", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "locationmode", "locations", "locationssrc", "marker", "meta", "metasrc", "name", "reversescale", "selected", "selectedpoints", "showlegend", "showscale", "stream", "text", "textsrc", "type", "uid", "uirevision", "unselected", "visible", "z", "zauto", "zmax", "zmid", "zmin", "zsrc"} # autocolorscale # -------------- @@ -79,11 +31,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # coloraxis # --------- @@ -106,11 +58,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -123,281 +75,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.choropl - eth.colorbar.Tickformatstop` instances or dicts - with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.choropleth.colorbar.tickformatstopdefaults), - sets the default property values to use for - elements of choropleth.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.choropleth.colorba - r.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.choropleth.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -446,11 +132,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # customdata # ---------- @@ -469,11 +155,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -490,11 +176,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # featureidkey # ------------ @@ -514,11 +200,11 @@ def featureidkey(self): ------- str """ - return self["featureidkey"] + return self['featureidkey'] @featureidkey.setter def featureidkey(self, val): - self["featureidkey"] = val + self['featureidkey'] = val # geo # --- @@ -539,11 +225,11 @@ def geo(self): ------- str """ - return self["geo"] + return self['geo'] @geo.setter def geo(self, val): - self["geo"] = val + self['geo'] = val # geojson # ------- @@ -562,11 +248,11 @@ def geojson(self): ------- Any """ - return self["geojson"] + return self['geojson'] @geojson.setter def geojson(self, val): - self["geojson"] = val + self['geojson'] = val # hoverinfo # --------- @@ -588,11 +274,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -609,11 +295,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -626,53 +312,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.choropleth.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -712,11 +360,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -733,11 +381,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -755,11 +403,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -776,11 +424,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -798,11 +446,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -818,11 +466,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # legend # ------ @@ -843,11 +491,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -866,11 +514,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -883,22 +531,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.choropleth.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -921,11 +562,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -942,11 +583,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # locationmode # ------------ @@ -967,11 +608,11 @@ def locationmode(self): ------- Any """ - return self["locationmode"] + return self['locationmode'] @locationmode.setter def locationmode(self, val): - self["locationmode"] = val + self['locationmode'] = val # locations # --------- @@ -988,11 +629,11 @@ def locations(self): ------- numpy.ndarray """ - return self["locations"] + return self['locations'] @locations.setter def locations(self, val): - self["locations"] = val + self['locations'] = val # locationssrc # ------------ @@ -1009,11 +650,11 @@ def locationssrc(self): ------- str """ - return self["locationssrc"] + return self['locationssrc'] @locationssrc.setter def locationssrc(self, val): - self["locationssrc"] = val + self['locationssrc'] = val # marker # ------ @@ -1026,27 +667,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - line - :class:`plotly.graph_objects.choropleth.marker. - Line` instance or dict with compatible - properties - opacity - Sets the opacity of the locations. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - Returns ------- plotly.graph_objs.choropleth.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # meta # ---- @@ -1070,11 +699,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -1090,11 +719,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -1112,11 +741,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # reversescale # ------------ @@ -1134,11 +763,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # selected # -------- @@ -1151,22 +780,15 @@ def selected(self): - A dict of string/value properties that will be passed to the Selected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.choropleth.selecte - d.Marker` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.choropleth.Selected """ - return self["selected"] + return self['selected'] @selected.setter def selected(self, val): - self["selected"] = val + self['selected'] = val # selectedpoints # -------------- @@ -1186,11 +808,11 @@ def selectedpoints(self): ------- Any """ - return self["selectedpoints"] + return self['selectedpoints'] @selectedpoints.setter def selectedpoints(self, val): - self["selectedpoints"] = val + self['selectedpoints'] = val # showlegend # ---------- @@ -1207,11 +829,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # showscale # --------- @@ -1228,11 +850,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # stream # ------ @@ -1245,27 +867,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.choropleth.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # text # ---- @@ -1283,11 +893,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textsrc # ------- @@ -1303,11 +913,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # uid # --- @@ -1325,11 +935,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1358,11 +968,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # unselected # ---------- @@ -1375,22 +985,15 @@ def unselected(self): - A dict of string/value properties that will be passed to the Unselected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.choropleth.unselec - ted.Marker` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.choropleth.Unselected """ - return self["unselected"] + return self['unselected'] @unselected.setter def unselected(self, val): - self["unselected"] = val + self['unselected'] = val # visible # ------- @@ -1409,11 +1012,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # z # - @@ -1429,11 +1032,11 @@ def z(self): ------- numpy.ndarray """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # zauto # ----- @@ -1452,11 +1055,11 @@ def zauto(self): ------- bool """ - return self["zauto"] + return self['zauto'] @zauto.setter def zauto(self, val): - self["zauto"] = val + self['zauto'] = val # zmax # ---- @@ -1473,11 +1076,11 @@ def zmax(self): ------- int|float """ - return self["zmax"] + return self['zmax'] @zmax.setter def zmax(self, val): - self["zmax"] = val + self['zmax'] = val # zmid # ---- @@ -1495,11 +1098,11 @@ def zmid(self): ------- int|float """ - return self["zmid"] + return self['zmid'] @zmid.setter def zmid(self, val): - self["zmid"] = val + self['zmid'] = val # zmin # ---- @@ -1516,11 +1119,11 @@ def zmin(self): ------- int|float """ - return self["zmin"] + return self['zmin'] @zmin.setter def zmin(self, val): - self["zmin"] = val + self['zmin'] = val # zsrc # ---- @@ -1536,17 +1139,17 @@ def zsrc(self): ------- str """ - return self["zsrc"] + return self['zsrc'] @zsrc.setter def zsrc(self, val): - self["zsrc"] = val + self['zsrc'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -1806,60 +1409,58 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `z`. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - coloraxis=None, - colorbar=None, - colorscale=None, - customdata=None, - customdatasrc=None, - featureidkey=None, - geo=None, - geojson=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - locationmode=None, - locations=None, - locationssrc=None, - marker=None, - meta=None, - metasrc=None, - name=None, - reversescale=None, - selected=None, - selectedpoints=None, - showlegend=None, - showscale=None, - stream=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - z=None, - zauto=None, - zmax=None, - zmid=None, - zmin=None, - zsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + coloraxis=None, + colorbar=None, + colorscale=None, + customdata=None, + customdatasrc=None, + featureidkey=None, + geo=None, + geojson=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + locationmode=None, + locations=None, + locationssrc=None, + marker=None, + meta=None, + metasrc=None, + name=None, + reversescale=None, + selected=None, + selectedpoints=None, + showlegend=None, + showscale=None, + stream=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + z=None, + zauto=None, + zmax=None, + zmid=None, + zmin=None, + zsrc=None, + **kwargs + ): """ Construct a new Choropleth object @@ -2129,10 +1730,10 @@ def __init__( ------- Choropleth """ - super(Choropleth, self).__init__("choropleth") + super(Choropleth, self).__init__('choropleth') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2144,218 +1745,73 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Choropleth constructor must be a dict or -an instance of :class:`plotly.graph_objs.Choropleth`""" - ) +an instance of :class:`plotly.graph_objs.Choropleth`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("featureidkey", None) - _v = featureidkey if featureidkey is not None else _v - if _v is not None: - self["featureidkey"] = _v - _v = arg.pop("geo", None) - _v = geo if geo is not None else _v - if _v is not None: - self["geo"] = _v - _v = arg.pop("geojson", None) - _v = geojson if geojson is not None else _v - if _v is not None: - self["geojson"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("locationmode", None) - _v = locationmode if locationmode is not None else _v - if _v is not None: - self["locationmode"] = _v - _v = arg.pop("locations", None) - _v = locations if locations is not None else _v - if _v is not None: - self["locations"] = _v - _v = arg.pop("locationssrc", None) - _v = locationssrc if locationssrc is not None else _v - if _v is not None: - self["locationssrc"] = _v - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("selected", None) - _v = selected if selected is not None else _v - if _v is not None: - self["selected"] = _v - _v = arg.pop("selectedpoints", None) - _v = selectedpoints if selectedpoints is not None else _v - if _v is not None: - self["selectedpoints"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("unselected", None) - _v = unselected if unselected is not None else _v - if _v is not None: - self["unselected"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v - _v = arg.pop("zauto", None) - _v = zauto if zauto is not None else _v - if _v is not None: - self["zauto"] = _v - _v = arg.pop("zmax", None) - _v = zmax if zmax is not None else _v - if _v is not None: - self["zmax"] = _v - _v = arg.pop("zmid", None) - _v = zmid if zmid is not None else _v - if _v is not None: - self["zmid"] = _v - _v = arg.pop("zmin", None) - _v = zmin if zmin is not None else _v - if _v is not None: - self["zmin"] = _v - _v = arg.pop("zsrc", None) - _v = zsrc if zsrc is not None else _v - if _v is not None: - self["zsrc"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('featureidkey', arg, featureidkey) + self._init_provided('geo', arg, geo) + self._init_provided('geojson', arg, geojson) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('locationmode', arg, locationmode) + self._init_provided('locations', arg, locations) + self._init_provided('locationssrc', arg, locationssrc) + self._init_provided('marker', arg, marker) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('selected', arg, selected) + self._init_provided('selectedpoints', arg, selectedpoints) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('showscale', arg, showscale) + self._init_provided('stream', arg, stream) + self._init_provided('text', arg, text) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('unselected', arg, unselected) + self._init_provided('visible', arg, visible) + self._init_provided('z', arg, z) + self._init_provided('zauto', arg, zauto) + self._init_provided('zmax', arg, zmax) + self._init_provided('zmid', arg, zmid) + self._init_provided('zmin', arg, zmin) + self._init_provided('zsrc', arg, zsrc) # Read-only literals # ------------------ - self._props["type"] = "choropleth" - arg.pop("type", None) + self._props['type'] = 'choropleth' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_choroplethmap.py b/packages/python/plotly/plotly/graph_objs/_choroplethmap.py index 86edbf5362d..aca1c5bd796 100644 --- a/packages/python/plotly/plotly/graph_objs/_choroplethmap.py +++ b/packages/python/plotly/plotly/graph_objs/_choroplethmap.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,59 +8,9 @@ class Choroplethmap(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "choroplethmap" - _valid_props = { - "autocolorscale", - "below", - "coloraxis", - "colorbar", - "colorscale", - "customdata", - "customdatasrc", - "featureidkey", - "geojson", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "locations", - "locationssrc", - "marker", - "meta", - "metasrc", - "name", - "reversescale", - "selected", - "selectedpoints", - "showlegend", - "showscale", - "stream", - "subplot", - "text", - "textsrc", - "type", - "uid", - "uirevision", - "unselected", - "visible", - "z", - "zauto", - "zmax", - "zmid", - "zmin", - "zsrc", - } + _parent_path_str = '' + _path_str = 'choroplethmap' + _valid_props = {"autocolorscale", "below", "coloraxis", "colorbar", "colorscale", "customdata", "customdatasrc", "featureidkey", "geojson", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "locations", "locationssrc", "marker", "meta", "metasrc", "name", "reversescale", "selected", "selectedpoints", "showlegend", "showscale", "stream", "subplot", "text", "textsrc", "type", "uid", "uirevision", "unselected", "visible", "z", "zauto", "zmax", "zmid", "zmin", "zsrc"} # autocolorscale # -------------- @@ -79,11 +31,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # below # ----- @@ -103,11 +55,11 @@ def below(self): ------- str """ - return self["below"] + return self['below'] @below.setter def below(self, val): - self["below"] = val + self['below'] = val # coloraxis # --------- @@ -130,11 +82,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -147,282 +99,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.choropl - ethmap.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.choroplethmap.colorbar.tickformatstopdefaults - ), sets the default property values to use for - elements of - choroplethmap.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.choroplethmap.colo - rbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.choroplethmap.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -471,11 +156,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # customdata # ---------- @@ -494,11 +179,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -515,11 +200,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # featureidkey # ------------ @@ -538,11 +223,11 @@ def featureidkey(self): ------- str """ - return self["featureidkey"] + return self['featureidkey'] @featureidkey.setter def featureidkey(self, val): - self["featureidkey"] = val + self['featureidkey'] = val # geojson # ------- @@ -560,11 +245,11 @@ def geojson(self): ------- Any """ - return self["geojson"] + return self['geojson'] @geojson.setter def geojson(self, val): - self["geojson"] = val + self['geojson'] = val # hoverinfo # --------- @@ -586,11 +271,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -607,11 +292,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -624,53 +309,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.choroplethmap.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -711,11 +358,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -732,11 +379,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -754,11 +401,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -775,11 +422,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -797,11 +444,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -817,11 +464,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # legend # ------ @@ -842,11 +489,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -865,11 +512,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -882,22 +529,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.choroplethmap.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -920,11 +560,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -941,11 +581,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # locations # --------- @@ -962,11 +602,11 @@ def locations(self): ------- numpy.ndarray """ - return self["locations"] + return self['locations'] @locations.setter def locations(self, val): - self["locations"] = val + self['locations'] = val # locationssrc # ------------ @@ -983,11 +623,11 @@ def locationssrc(self): ------- str """ - return self["locationssrc"] + return self['locationssrc'] @locationssrc.setter def locationssrc(self, val): - self["locationssrc"] = val + self['locationssrc'] = val # marker # ------ @@ -1000,27 +640,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - line - :class:`plotly.graph_objects.choroplethmap.mark - er.Line` instance or dict with compatible - properties - opacity - Sets the opacity of the locations. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - Returns ------- plotly.graph_objs.choroplethmap.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # meta # ---- @@ -1044,11 +672,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -1064,11 +692,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -1086,11 +714,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # reversescale # ------------ @@ -1108,11 +736,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # selected # -------- @@ -1125,22 +753,15 @@ def selected(self): - A dict of string/value properties that will be passed to the Selected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.choroplethmap.sele - cted.Marker` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.choroplethmap.Selected """ - return self["selected"] + return self['selected'] @selected.setter def selected(self, val): - self["selected"] = val + self['selected'] = val # selectedpoints # -------------- @@ -1160,11 +781,11 @@ def selectedpoints(self): ------- Any """ - return self["selectedpoints"] + return self['selectedpoints'] @selectedpoints.setter def selectedpoints(self, val): - self["selectedpoints"] = val + self['selectedpoints'] = val # showlegend # ---------- @@ -1181,11 +802,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # showscale # --------- @@ -1202,11 +823,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # stream # ------ @@ -1219,27 +840,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.choroplethmap.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # subplot # ------- @@ -1260,11 +869,11 @@ def subplot(self): ------- str """ - return self["subplot"] + return self['subplot'] @subplot.setter def subplot(self, val): - self["subplot"] = val + self['subplot'] = val # text # ---- @@ -1282,11 +891,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textsrc # ------- @@ -1302,11 +911,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # uid # --- @@ -1324,11 +933,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1357,11 +966,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # unselected # ---------- @@ -1374,22 +983,15 @@ def unselected(self): - A dict of string/value properties that will be passed to the Unselected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.choroplethmap.unse - lected.Marker` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.choroplethmap.Unselected """ - return self["unselected"] + return self['unselected'] @unselected.setter def unselected(self, val): - self["unselected"] = val + self['unselected'] = val # visible # ------- @@ -1408,11 +1010,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # z # - @@ -1428,11 +1030,11 @@ def z(self): ------- numpy.ndarray """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # zauto # ----- @@ -1451,11 +1053,11 @@ def zauto(self): ------- bool """ - return self["zauto"] + return self['zauto'] @zauto.setter def zauto(self, val): - self["zauto"] = val + self['zauto'] = val # zmax # ---- @@ -1472,11 +1074,11 @@ def zmax(self): ------- int|float """ - return self["zmax"] + return self['zmax'] @zmax.setter def zmax(self, val): - self["zmax"] = val + self['zmax'] = val # zmid # ---- @@ -1494,11 +1096,11 @@ def zmid(self): ------- int|float """ - return self["zmid"] + return self['zmid'] @zmid.setter def zmid(self, val): - self["zmid"] = val + self['zmid'] = val # zmin # ---- @@ -1515,11 +1117,11 @@ def zmin(self): ------- int|float """ - return self["zmin"] + return self['zmin'] @zmin.setter def zmin(self, val): - self["zmin"] = val + self['zmin'] = val # zsrc # ---- @@ -1535,17 +1137,17 @@ def zsrc(self): ------- str """ - return self["zsrc"] + return self['zsrc'] @zsrc.setter def zsrc(self, val): - self["zsrc"] = val + self['zsrc'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -1803,60 +1405,58 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `z`. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - below=None, - coloraxis=None, - colorbar=None, - colorscale=None, - customdata=None, - customdatasrc=None, - featureidkey=None, - geojson=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - locations=None, - locationssrc=None, - marker=None, - meta=None, - metasrc=None, - name=None, - reversescale=None, - selected=None, - selectedpoints=None, - showlegend=None, - showscale=None, - stream=None, - subplot=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - z=None, - zauto=None, - zmax=None, - zmid=None, - zmin=None, - zsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + below=None, + coloraxis=None, + colorbar=None, + colorscale=None, + customdata=None, + customdatasrc=None, + featureidkey=None, + geojson=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + locations=None, + locationssrc=None, + marker=None, + meta=None, + metasrc=None, + name=None, + reversescale=None, + selected=None, + selectedpoints=None, + showlegend=None, + showscale=None, + stream=None, + subplot=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + z=None, + zauto=None, + zmax=None, + zmid=None, + zmin=None, + zsrc=None, + **kwargs + ): """ Construct a new Choroplethmap object @@ -2124,10 +1724,10 @@ def __init__( ------- Choroplethmap """ - super(Choroplethmap, self).__init__("choroplethmap") + super(Choroplethmap, self).__init__('choroplethmap') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2139,218 +1739,73 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Choroplethmap constructor must be a dict or -an instance of :class:`plotly.graph_objs.Choroplethmap`""" - ) +an instance of :class:`plotly.graph_objs.Choroplethmap`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("below", None) - _v = below if below is not None else _v - if _v is not None: - self["below"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("featureidkey", None) - _v = featureidkey if featureidkey is not None else _v - if _v is not None: - self["featureidkey"] = _v - _v = arg.pop("geojson", None) - _v = geojson if geojson is not None else _v - if _v is not None: - self["geojson"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("locations", None) - _v = locations if locations is not None else _v - if _v is not None: - self["locations"] = _v - _v = arg.pop("locationssrc", None) - _v = locationssrc if locationssrc is not None else _v - if _v is not None: - self["locationssrc"] = _v - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("selected", None) - _v = selected if selected is not None else _v - if _v is not None: - self["selected"] = _v - _v = arg.pop("selectedpoints", None) - _v = selectedpoints if selectedpoints is not None else _v - if _v is not None: - self["selectedpoints"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("subplot", None) - _v = subplot if subplot is not None else _v - if _v is not None: - self["subplot"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("unselected", None) - _v = unselected if unselected is not None else _v - if _v is not None: - self["unselected"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v - _v = arg.pop("zauto", None) - _v = zauto if zauto is not None else _v - if _v is not None: - self["zauto"] = _v - _v = arg.pop("zmax", None) - _v = zmax if zmax is not None else _v - if _v is not None: - self["zmax"] = _v - _v = arg.pop("zmid", None) - _v = zmid if zmid is not None else _v - if _v is not None: - self["zmid"] = _v - _v = arg.pop("zmin", None) - _v = zmin if zmin is not None else _v - if _v is not None: - self["zmin"] = _v - _v = arg.pop("zsrc", None) - _v = zsrc if zsrc is not None else _v - if _v is not None: - self["zsrc"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('below', arg, below) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('featureidkey', arg, featureidkey) + self._init_provided('geojson', arg, geojson) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('locations', arg, locations) + self._init_provided('locationssrc', arg, locationssrc) + self._init_provided('marker', arg, marker) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('selected', arg, selected) + self._init_provided('selectedpoints', arg, selectedpoints) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('showscale', arg, showscale) + self._init_provided('stream', arg, stream) + self._init_provided('subplot', arg, subplot) + self._init_provided('text', arg, text) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('unselected', arg, unselected) + self._init_provided('visible', arg, visible) + self._init_provided('z', arg, z) + self._init_provided('zauto', arg, zauto) + self._init_provided('zmax', arg, zmax) + self._init_provided('zmid', arg, zmid) + self._init_provided('zmin', arg, zmin) + self._init_provided('zsrc', arg, zsrc) # Read-only literals # ------------------ - self._props["type"] = "choroplethmap" - arg.pop("type", None) + self._props['type'] = 'choroplethmap' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_choroplethmapbox.py b/packages/python/plotly/plotly/graph_objs/_choroplethmapbox.py index c1c14e6d4a0..4d6a8e29922 100644 --- a/packages/python/plotly/plotly/graph_objs/_choroplethmapbox.py +++ b/packages/python/plotly/plotly/graph_objs/_choroplethmapbox.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy from warnings import warn @@ -7,59 +9,9 @@ class Choroplethmapbox(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "choroplethmapbox" - _valid_props = { - "autocolorscale", - "below", - "coloraxis", - "colorbar", - "colorscale", - "customdata", - "customdatasrc", - "featureidkey", - "geojson", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "locations", - "locationssrc", - "marker", - "meta", - "metasrc", - "name", - "reversescale", - "selected", - "selectedpoints", - "showlegend", - "showscale", - "stream", - "subplot", - "text", - "textsrc", - "type", - "uid", - "uirevision", - "unselected", - "visible", - "z", - "zauto", - "zmax", - "zmid", - "zmin", - "zsrc", - } + _parent_path_str = '' + _path_str = 'choroplethmapbox' + _valid_props = {"autocolorscale", "below", "coloraxis", "colorbar", "colorscale", "customdata", "customdatasrc", "featureidkey", "geojson", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "locations", "locationssrc", "marker", "meta", "metasrc", "name", "reversescale", "selected", "selectedpoints", "showlegend", "showscale", "stream", "subplot", "text", "textsrc", "type", "uid", "uirevision", "unselected", "visible", "z", "zauto", "zmax", "zmid", "zmin", "zsrc"} # autocolorscale # -------------- @@ -80,11 +32,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # below # ----- @@ -104,11 +56,11 @@ def below(self): ------- str """ - return self["below"] + return self['below'] @below.setter def below(self, val): - self["below"] = val + self['below'] = val # coloraxis # --------- @@ -131,11 +83,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -148,282 +100,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.choropl - ethmapbox.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.choroplethmapbox.colorbar.tickformatstopdefau - lts), sets the default property values to use - for elements of - choroplethmapbox.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.choroplethmapbox.c - olorbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.choroplethmapbox.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -472,11 +157,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # customdata # ---------- @@ -495,11 +180,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -516,11 +201,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # featureidkey # ------------ @@ -539,11 +224,11 @@ def featureidkey(self): ------- str """ - return self["featureidkey"] + return self['featureidkey'] @featureidkey.setter def featureidkey(self, val): - self["featureidkey"] = val + self['featureidkey'] = val # geojson # ------- @@ -561,11 +246,11 @@ def geojson(self): ------- Any """ - return self["geojson"] + return self['geojson'] @geojson.setter def geojson(self, val): - self["geojson"] = val + self['geojson'] = val # hoverinfo # --------- @@ -587,11 +272,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -608,11 +293,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -625,53 +310,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.choroplethmapbox.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -712,11 +359,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -733,11 +380,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -755,11 +402,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -776,11 +423,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -798,11 +445,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -818,11 +465,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # legend # ------ @@ -843,11 +490,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -866,11 +513,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -883,22 +530,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.choroplethmapbox.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -921,11 +561,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -942,11 +582,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # locations # --------- @@ -963,11 +603,11 @@ def locations(self): ------- numpy.ndarray """ - return self["locations"] + return self['locations'] @locations.setter def locations(self, val): - self["locations"] = val + self['locations'] = val # locationssrc # ------------ @@ -984,11 +624,11 @@ def locationssrc(self): ------- str """ - return self["locationssrc"] + return self['locationssrc'] @locationssrc.setter def locationssrc(self, val): - self["locationssrc"] = val + self['locationssrc'] = val # marker # ------ @@ -1001,27 +641,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - line - :class:`plotly.graph_objects.choroplethmapbox.m - arker.Line` instance or dict with compatible - properties - opacity - Sets the opacity of the locations. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - Returns ------- plotly.graph_objs.choroplethmapbox.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # meta # ---- @@ -1045,11 +673,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -1065,11 +693,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -1087,11 +715,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # reversescale # ------------ @@ -1109,11 +737,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # selected # -------- @@ -1126,22 +754,15 @@ def selected(self): - A dict of string/value properties that will be passed to the Selected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.choroplethmapbox.s - elected.Marker` instance or dict with - compatible properties - Returns ------- plotly.graph_objs.choroplethmapbox.Selected """ - return self["selected"] + return self['selected'] @selected.setter def selected(self, val): - self["selected"] = val + self['selected'] = val # selectedpoints # -------------- @@ -1161,11 +782,11 @@ def selectedpoints(self): ------- Any """ - return self["selectedpoints"] + return self['selectedpoints'] @selectedpoints.setter def selectedpoints(self, val): - self["selectedpoints"] = val + self['selectedpoints'] = val # showlegend # ---------- @@ -1182,11 +803,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # showscale # --------- @@ -1203,11 +824,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # stream # ------ @@ -1220,27 +841,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.choroplethmapbox.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # subplot # ------- @@ -1265,11 +874,11 @@ def subplot(self): ------- str """ - return self["subplot"] + return self['subplot'] @subplot.setter def subplot(self, val): - self["subplot"] = val + self['subplot'] = val # text # ---- @@ -1287,11 +896,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textsrc # ------- @@ -1307,11 +916,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # uid # --- @@ -1329,11 +938,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1362,11 +971,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # unselected # ---------- @@ -1379,22 +988,15 @@ def unselected(self): - A dict of string/value properties that will be passed to the Unselected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.choroplethmapbox.u - nselected.Marker` instance or dict with - compatible properties - Returns ------- plotly.graph_objs.choroplethmapbox.Unselected """ - return self["unselected"] + return self['unselected'] @unselected.setter def unselected(self, val): - self["unselected"] = val + self['unselected'] = val # visible # ------- @@ -1413,11 +1015,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # z # - @@ -1433,11 +1035,11 @@ def z(self): ------- numpy.ndarray """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # zauto # ----- @@ -1456,11 +1058,11 @@ def zauto(self): ------- bool """ - return self["zauto"] + return self['zauto'] @zauto.setter def zauto(self, val): - self["zauto"] = val + self['zauto'] = val # zmax # ---- @@ -1477,11 +1079,11 @@ def zmax(self): ------- int|float """ - return self["zmax"] + return self['zmax'] @zmax.setter def zmax(self, val): - self["zmax"] = val + self['zmax'] = val # zmid # ---- @@ -1499,11 +1101,11 @@ def zmid(self): ------- int|float """ - return self["zmid"] + return self['zmid'] @zmid.setter def zmid(self, val): - self["zmid"] = val + self['zmid'] = val # zmin # ---- @@ -1520,11 +1122,11 @@ def zmin(self): ------- int|float """ - return self["zmin"] + return self['zmin'] @zmin.setter def zmin(self, val): - self["zmin"] = val + self['zmin'] = val # zsrc # ---- @@ -1540,17 +1142,17 @@ def zsrc(self): ------- str """ - return self["zsrc"] + return self['zsrc'] @zsrc.setter def zsrc(self, val): - self["zsrc"] = val + self['zsrc'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -1813,60 +1415,58 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `z`. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - below=None, - coloraxis=None, - colorbar=None, - colorscale=None, - customdata=None, - customdatasrc=None, - featureidkey=None, - geojson=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - locations=None, - locationssrc=None, - marker=None, - meta=None, - metasrc=None, - name=None, - reversescale=None, - selected=None, - selectedpoints=None, - showlegend=None, - showscale=None, - stream=None, - subplot=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - z=None, - zauto=None, - zmax=None, - zmid=None, - zmin=None, - zsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + below=None, + coloraxis=None, + colorbar=None, + colorscale=None, + customdata=None, + customdatasrc=None, + featureidkey=None, + geojson=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + locations=None, + locationssrc=None, + marker=None, + meta=None, + metasrc=None, + name=None, + reversescale=None, + selected=None, + selectedpoints=None, + showlegend=None, + showscale=None, + stream=None, + subplot=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + z=None, + zauto=None, + zmax=None, + zmid=None, + zmin=None, + zsrc=None, + **kwargs + ): """ Construct a new Choroplethmapbox object @@ -2144,10 +1744,10 @@ def __init__( ------- Choroplethmapbox """ - super(Choroplethmapbox, self).__init__("choroplethmapbox") + super(Choroplethmapbox, self).__init__('choroplethmapbox') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2159,218 +1759,73 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Choroplethmapbox constructor must be a dict or -an instance of :class:`plotly.graph_objs.Choroplethmapbox`""" - ) +an instance of :class:`plotly.graph_objs.Choroplethmapbox`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("below", None) - _v = below if below is not None else _v - if _v is not None: - self["below"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("featureidkey", None) - _v = featureidkey if featureidkey is not None else _v - if _v is not None: - self["featureidkey"] = _v - _v = arg.pop("geojson", None) - _v = geojson if geojson is not None else _v - if _v is not None: - self["geojson"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("locations", None) - _v = locations if locations is not None else _v - if _v is not None: - self["locations"] = _v - _v = arg.pop("locationssrc", None) - _v = locationssrc if locationssrc is not None else _v - if _v is not None: - self["locationssrc"] = _v - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("selected", None) - _v = selected if selected is not None else _v - if _v is not None: - self["selected"] = _v - _v = arg.pop("selectedpoints", None) - _v = selectedpoints if selectedpoints is not None else _v - if _v is not None: - self["selectedpoints"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("subplot", None) - _v = subplot if subplot is not None else _v - if _v is not None: - self["subplot"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("unselected", None) - _v = unselected if unselected is not None else _v - if _v is not None: - self["unselected"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v - _v = arg.pop("zauto", None) - _v = zauto if zauto is not None else _v - if _v is not None: - self["zauto"] = _v - _v = arg.pop("zmax", None) - _v = zmax if zmax is not None else _v - if _v is not None: - self["zmax"] = _v - _v = arg.pop("zmid", None) - _v = zmid if zmid is not None else _v - if _v is not None: - self["zmid"] = _v - _v = arg.pop("zmin", None) - _v = zmin if zmin is not None else _v - if _v is not None: - self["zmin"] = _v - _v = arg.pop("zsrc", None) - _v = zsrc if zsrc is not None else _v - if _v is not None: - self["zsrc"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('below', arg, below) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('featureidkey', arg, featureidkey) + self._init_provided('geojson', arg, geojson) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('locations', arg, locations) + self._init_provided('locationssrc', arg, locationssrc) + self._init_provided('marker', arg, marker) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('selected', arg, selected) + self._init_provided('selectedpoints', arg, selectedpoints) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('showscale', arg, showscale) + self._init_provided('stream', arg, stream) + self._init_provided('subplot', arg, subplot) + self._init_provided('text', arg, text) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('unselected', arg, unselected) + self._init_provided('visible', arg, visible) + self._init_provided('z', arg, z) + self._init_provided('zauto', arg, zauto) + self._init_provided('zmax', arg, zmax) + self._init_provided('zmid', arg, zmid) + self._init_provided('zmin', arg, zmin) + self._init_provided('zsrc', arg, zsrc) # Read-only literals # ------------------ - self._props["type"] = "choroplethmapbox" - arg.pop("type", None) + self._props['type'] = 'choroplethmapbox' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_cone.py b/packages/python/plotly/plotly/graph_objs/_cone.py index 1c902d71835..e9ce519dfc9 100644 --- a/packages/python/plotly/plotly/graph_objs/_cone.py +++ b/packages/python/plotly/plotly/graph_objs/_cone.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,72 +8,9 @@ class Cone(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "cone" - _valid_props = { - "anchor", - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "coloraxis", - "colorbar", - "colorscale", - "customdata", - "customdatasrc", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "lighting", - "lightposition", - "meta", - "metasrc", - "name", - "opacity", - "reversescale", - "scene", - "showlegend", - "showscale", - "sizemode", - "sizeref", - "stream", - "text", - "textsrc", - "type", - "u", - "uhoverformat", - "uid", - "uirevision", - "usrc", - "v", - "vhoverformat", - "visible", - "vsrc", - "w", - "whoverformat", - "wsrc", - "x", - "xhoverformat", - "xsrc", - "y", - "yhoverformat", - "ysrc", - "z", - "zhoverformat", - "zsrc", - } + _parent_path_str = '' + _path_str = 'cone' + _valid_props = {"anchor", "autocolorscale", "cauto", "cmax", "cmid", "cmin", "coloraxis", "colorbar", "colorscale", "customdata", "customdatasrc", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "lighting", "lightposition", "meta", "metasrc", "name", "opacity", "reversescale", "scene", "showlegend", "showscale", "sizemode", "sizeref", "stream", "text", "textsrc", "type", "u", "uhoverformat", "uid", "uirevision", "usrc", "v", "vhoverformat", "visible", "vsrc", "w", "whoverformat", "wsrc", "x", "xhoverformat", "xsrc", "y", "yhoverformat", "ysrc", "z", "zhoverformat", "zsrc"} # anchor # ------ @@ -90,11 +29,11 @@ def anchor(self): ------- Any """ - return self["anchor"] + return self['anchor'] @anchor.setter def anchor(self, val): - self["anchor"] = val + self['anchor'] = val # autocolorscale # -------------- @@ -115,11 +54,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -138,11 +77,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -160,11 +99,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -183,11 +122,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -205,11 +144,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # coloraxis # --------- @@ -232,11 +171,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -249,280 +188,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.cone.co - lorbar.Tickformatstop` instances or dicts with - compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.cone.colorbar.tickformatstopdefaults), sets - the default property values to use for elements - of cone.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.cone.colorbar.Titl - e` instance or dict with compatible properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.cone.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -571,11 +245,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # customdata # ---------- @@ -594,11 +268,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -615,11 +289,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # hoverinfo # --------- @@ -641,11 +315,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -662,11 +336,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -679,53 +353,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.cone.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -766,11 +402,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -787,11 +423,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -809,11 +445,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -830,11 +466,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -852,11 +488,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -872,11 +508,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # legend # ------ @@ -897,11 +533,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -920,11 +556,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -937,22 +573,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.cone.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -975,11 +604,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -996,11 +625,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # lighting # -------- @@ -1013,42 +642,15 @@ def lighting(self): - A dict of string/value properties that will be passed to the Lighting constructor - Supported dict properties: - - ambient - Ambient light increases overall color - visibility but can wash out the image. - diffuse - Represents the extent that incident rays are - reflected in a range of angles. - facenormalsepsilon - Epsilon for face normals calculation avoids - math issues arising from degenerate geometry. - fresnel - Represents the reflectance as a dependency of - the viewing angle; e.g. paper is reflective - when viewing it from the edge of the paper - (almost 90 degrees), causing shine. - roughness - Alters specular reflection; the rougher the - surface, the wider and less contrasty the - shine. - specular - Represents the level that incident rays are - reflected in a single direction, causing shine. - vertexnormalsepsilon - Epsilon for vertex normals calculation avoids - math issues arising from degenerate geometry. - Returns ------- plotly.graph_objs.cone.Lighting """ - return self["lighting"] + return self['lighting'] @lighting.setter def lighting(self, val): - self["lighting"] = val + self['lighting'] = val # lightposition # ------------- @@ -1061,27 +663,15 @@ def lightposition(self): - A dict of string/value properties that will be passed to the Lightposition constructor - Supported dict properties: - - x - Numeric vector, representing the X coordinate - for each vertex. - y - Numeric vector, representing the Y coordinate - for each vertex. - z - Numeric vector, representing the Z coordinate - for each vertex. - Returns ------- plotly.graph_objs.cone.Lightposition """ - return self["lightposition"] + return self['lightposition'] @lightposition.setter def lightposition(self, val): - self["lightposition"] = val + self['lightposition'] = val # meta # ---- @@ -1105,11 +695,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -1125,11 +715,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -1147,11 +737,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -1172,11 +762,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # reversescale # ------------ @@ -1194,11 +784,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # scene # ----- @@ -1219,11 +809,11 @@ def scene(self): ------- str """ - return self["scene"] + return self['scene'] @scene.setter def scene(self, val): - self["scene"] = val + self['scene'] = val # showlegend # ---------- @@ -1240,11 +830,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # showscale # --------- @@ -1261,11 +851,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # sizemode # -------- @@ -1286,11 +876,11 @@ def sizemode(self): ------- Any """ - return self["sizemode"] + return self['sizemode'] @sizemode.setter def sizemode(self, val): - self["sizemode"] = val + self['sizemode'] = val # sizeref # ------- @@ -1316,11 +906,11 @@ def sizeref(self): ------- int|float """ - return self["sizeref"] + return self['sizeref'] @sizeref.setter def sizeref(self, val): - self["sizeref"] = val + self['sizeref'] = val # stream # ------ @@ -1333,27 +923,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.cone.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # text # ---- @@ -1373,11 +951,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textsrc # ------- @@ -1393,11 +971,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # u # - @@ -1413,11 +991,11 @@ def u(self): ------- numpy.ndarray """ - return self["u"] + return self['u'] @u.setter def u(self, val): - self["u"] = val + self['u'] = val # uhoverformat # ------------ @@ -1438,11 +1016,11 @@ def uhoverformat(self): ------- str """ - return self["uhoverformat"] + return self['uhoverformat'] @uhoverformat.setter def uhoverformat(self, val): - self["uhoverformat"] = val + self['uhoverformat'] = val # uid # --- @@ -1460,11 +1038,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1493,11 +1071,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # usrc # ---- @@ -1513,11 +1091,11 @@ def usrc(self): ------- str """ - return self["usrc"] + return self['usrc'] @usrc.setter def usrc(self, val): - self["usrc"] = val + self['usrc'] = val # v # - @@ -1533,11 +1111,11 @@ def v(self): ------- numpy.ndarray """ - return self["v"] + return self['v'] @v.setter def v(self, val): - self["v"] = val + self['v'] = val # vhoverformat # ------------ @@ -1558,11 +1136,11 @@ def vhoverformat(self): ------- str """ - return self["vhoverformat"] + return self['vhoverformat'] @vhoverformat.setter def vhoverformat(self, val): - self["vhoverformat"] = val + self['vhoverformat'] = val # visible # ------- @@ -1581,11 +1159,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # vsrc # ---- @@ -1601,11 +1179,11 @@ def vsrc(self): ------- str """ - return self["vsrc"] + return self['vsrc'] @vsrc.setter def vsrc(self, val): - self["vsrc"] = val + self['vsrc'] = val # w # - @@ -1621,11 +1199,11 @@ def w(self): ------- numpy.ndarray """ - return self["w"] + return self['w'] @w.setter def w(self, val): - self["w"] = val + self['w'] = val # whoverformat # ------------ @@ -1646,11 +1224,11 @@ def whoverformat(self): ------- str """ - return self["whoverformat"] + return self['whoverformat'] @whoverformat.setter def whoverformat(self, val): - self["whoverformat"] = val + self['whoverformat'] = val # wsrc # ---- @@ -1666,11 +1244,11 @@ def wsrc(self): ------- str """ - return self["wsrc"] + return self['wsrc'] @wsrc.setter def wsrc(self, val): - self["wsrc"] = val + self['wsrc'] = val # x # - @@ -1687,11 +1265,11 @@ def x(self): ------- numpy.ndarray """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xhoverformat # ------------ @@ -1718,11 +1296,11 @@ def xhoverformat(self): ------- str """ - return self["xhoverformat"] + return self['xhoverformat'] @xhoverformat.setter def xhoverformat(self, val): - self["xhoverformat"] = val + self['xhoverformat'] = val # xsrc # ---- @@ -1738,11 +1316,11 @@ def xsrc(self): ------- str """ - return self["xsrc"] + return self['xsrc'] @xsrc.setter def xsrc(self, val): - self["xsrc"] = val + self['xsrc'] = val # y # - @@ -1759,11 +1337,11 @@ def y(self): ------- numpy.ndarray """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yhoverformat # ------------ @@ -1790,11 +1368,11 @@ def yhoverformat(self): ------- str """ - return self["yhoverformat"] + return self['yhoverformat'] @yhoverformat.setter def yhoverformat(self, val): - self["yhoverformat"] = val + self['yhoverformat'] = val # ysrc # ---- @@ -1810,11 +1388,11 @@ def ysrc(self): ------- str """ - return self["ysrc"] + return self['ysrc'] @ysrc.setter def ysrc(self, val): - self["ysrc"] = val + self['ysrc'] = val # z # - @@ -1831,11 +1409,11 @@ def z(self): ------- numpy.ndarray """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # zhoverformat # ------------ @@ -1862,11 +1440,11 @@ def zhoverformat(self): ------- str """ - return self["zhoverformat"] + return self['zhoverformat'] @zhoverformat.setter def zhoverformat(self, val): - self["zhoverformat"] = val + self['zhoverformat'] = val # zsrc # ---- @@ -1882,17 +1460,17 @@ def zsrc(self): ------- str """ - return self["zsrc"] + return self['zsrc'] @zsrc.setter def zsrc(self, val): - self["zsrc"] = val + self['zsrc'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -2237,73 +1815,71 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `z`. """ - - def __init__( - self, - arg=None, - anchor=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - coloraxis=None, - colorbar=None, - colorscale=None, - customdata=None, - customdatasrc=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - lighting=None, - lightposition=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - reversescale=None, - scene=None, - showlegend=None, - showscale=None, - sizemode=None, - sizeref=None, - stream=None, - text=None, - textsrc=None, - u=None, - uhoverformat=None, - uid=None, - uirevision=None, - usrc=None, - v=None, - vhoverformat=None, - visible=None, - vsrc=None, - w=None, - whoverformat=None, - wsrc=None, - x=None, - xhoverformat=None, - xsrc=None, - y=None, - yhoverformat=None, - ysrc=None, - z=None, - zhoverformat=None, - zsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + anchor=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + coloraxis=None, + colorbar=None, + colorscale=None, + customdata=None, + customdatasrc=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + lighting=None, + lightposition=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + reversescale=None, + scene=None, + showlegend=None, + showscale=None, + sizemode=None, + sizeref=None, + stream=None, + text=None, + textsrc=None, + u=None, + uhoverformat=None, + uid=None, + uirevision=None, + usrc=None, + v=None, + vhoverformat=None, + visible=None, + vsrc=None, + w=None, + whoverformat=None, + wsrc=None, + x=None, + xhoverformat=None, + xsrc=None, + y=None, + yhoverformat=None, + ysrc=None, + z=None, + zhoverformat=None, + zsrc=None, + **kwargs + ): """ Construct a new Cone object @@ -2659,10 +2235,10 @@ def __init__( ------- Cone """ - super(Cone, self).__init__("cone") + super(Cone, self).__init__('cone') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2674,270 +2250,86 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Cone constructor must be a dict or -an instance of :class:`plotly.graph_objs.Cone`""" - ) +an instance of :class:`plotly.graph_objs.Cone`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("anchor", None) - _v = anchor if anchor is not None else _v - if _v is not None: - self["anchor"] = _v - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("lighting", None) - _v = lighting if lighting is not None else _v - if _v is not None: - self["lighting"] = _v - _v = arg.pop("lightposition", None) - _v = lightposition if lightposition is not None else _v - if _v is not None: - self["lightposition"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("scene", None) - _v = scene if scene is not None else _v - if _v is not None: - self["scene"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v - _v = arg.pop("sizemode", None) - _v = sizemode if sizemode is not None else _v - if _v is not None: - self["sizemode"] = _v - _v = arg.pop("sizeref", None) - _v = sizeref if sizeref is not None else _v - if _v is not None: - self["sizeref"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("u", None) - _v = u if u is not None else _v - if _v is not None: - self["u"] = _v - _v = arg.pop("uhoverformat", None) - _v = uhoverformat if uhoverformat is not None else _v - if _v is not None: - self["uhoverformat"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("usrc", None) - _v = usrc if usrc is not None else _v - if _v is not None: - self["usrc"] = _v - _v = arg.pop("v", None) - _v = v if v is not None else _v - if _v is not None: - self["v"] = _v - _v = arg.pop("vhoverformat", None) - _v = vhoverformat if vhoverformat is not None else _v - if _v is not None: - self["vhoverformat"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("vsrc", None) - _v = vsrc if vsrc is not None else _v - if _v is not None: - self["vsrc"] = _v - _v = arg.pop("w", None) - _v = w if w is not None else _v - if _v is not None: - self["w"] = _v - _v = arg.pop("whoverformat", None) - _v = whoverformat if whoverformat is not None else _v - if _v is not None: - self["whoverformat"] = _v - _v = arg.pop("wsrc", None) - _v = wsrc if wsrc is not None else _v - if _v is not None: - self["wsrc"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xhoverformat", None) - _v = xhoverformat if xhoverformat is not None else _v - if _v is not None: - self["xhoverformat"] = _v - _v = arg.pop("xsrc", None) - _v = xsrc if xsrc is not None else _v - if _v is not None: - self["xsrc"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yhoverformat", None) - _v = yhoverformat if yhoverformat is not None else _v - if _v is not None: - self["yhoverformat"] = _v - _v = arg.pop("ysrc", None) - _v = ysrc if ysrc is not None else _v - if _v is not None: - self["ysrc"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v - _v = arg.pop("zhoverformat", None) - _v = zhoverformat if zhoverformat is not None else _v - if _v is not None: - self["zhoverformat"] = _v - _v = arg.pop("zsrc", None) - _v = zsrc if zsrc is not None else _v - if _v is not None: - self["zsrc"] = _v + self._init_provided('anchor', arg, anchor) + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('lighting', arg, lighting) + self._init_provided('lightposition', arg, lightposition) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('scene', arg, scene) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('showscale', arg, showscale) + self._init_provided('sizemode', arg, sizemode) + self._init_provided('sizeref', arg, sizeref) + self._init_provided('stream', arg, stream) + self._init_provided('text', arg, text) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('u', arg, u) + self._init_provided('uhoverformat', arg, uhoverformat) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('usrc', arg, usrc) + self._init_provided('v', arg, v) + self._init_provided('vhoverformat', arg, vhoverformat) + self._init_provided('visible', arg, visible) + self._init_provided('vsrc', arg, vsrc) + self._init_provided('w', arg, w) + self._init_provided('whoverformat', arg, whoverformat) + self._init_provided('wsrc', arg, wsrc) + self._init_provided('x', arg, x) + self._init_provided('xhoverformat', arg, xhoverformat) + self._init_provided('xsrc', arg, xsrc) + self._init_provided('y', arg, y) + self._init_provided('yhoverformat', arg, yhoverformat) + self._init_provided('ysrc', arg, ysrc) + self._init_provided('z', arg, z) + self._init_provided('zhoverformat', arg, zhoverformat) + self._init_provided('zsrc', arg, zsrc) # Read-only literals # ------------------ - self._props["type"] = "cone" - arg.pop("type", None) + self._props['type'] = 'cone' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_contour.py b/packages/python/plotly/plotly/graph_objs/_contour.py index 889a1aa7dc2..b0ae015c54a 100644 --- a/packages/python/plotly/plotly/graph_objs/_contour.py +++ b/packages/python/plotly/plotly/graph_objs/_contour.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,84 +8,9 @@ class Contour(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "contour" - _valid_props = { - "autocolorscale", - "autocontour", - "coloraxis", - "colorbar", - "colorscale", - "connectgaps", - "contours", - "customdata", - "customdatasrc", - "dx", - "dy", - "fillcolor", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hoverongaps", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "line", - "meta", - "metasrc", - "name", - "ncontours", - "opacity", - "reversescale", - "showlegend", - "showscale", - "stream", - "text", - "textfont", - "textsrc", - "texttemplate", - "transpose", - "type", - "uid", - "uirevision", - "visible", - "x", - "x0", - "xaxis", - "xcalendar", - "xhoverformat", - "xperiod", - "xperiod0", - "xperiodalignment", - "xsrc", - "xtype", - "y", - "y0", - "yaxis", - "ycalendar", - "yhoverformat", - "yperiod", - "yperiod0", - "yperiodalignment", - "ysrc", - "ytype", - "z", - "zauto", - "zhoverformat", - "zmax", - "zmid", - "zmin", - "zorder", - "zsrc", - } + _parent_path_str = '' + _path_str = 'contour' + _valid_props = {"autocolorscale", "autocontour", "coloraxis", "colorbar", "colorscale", "connectgaps", "contours", "customdata", "customdatasrc", "dx", "dy", "fillcolor", "hoverinfo", "hoverinfosrc", "hoverlabel", "hoverongaps", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "line", "meta", "metasrc", "name", "ncontours", "opacity", "reversescale", "showlegend", "showscale", "stream", "text", "textfont", "textsrc", "texttemplate", "transpose", "type", "uid", "uirevision", "visible", "x", "x0", "xaxis", "xcalendar", "xhoverformat", "xperiod", "xperiod0", "xperiodalignment", "xsrc", "xtype", "y", "y0", "yaxis", "ycalendar", "yhoverformat", "yperiod", "yperiod0", "yperiodalignment", "ysrc", "ytype", "z", "zauto", "zhoverformat", "zmax", "zmid", "zmin", "zorder", "zsrc"} # autocolorscale # -------------- @@ -104,11 +31,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # autocontour # ----------- @@ -127,11 +54,11 @@ def autocontour(self): ------- bool """ - return self["autocontour"] + return self['autocontour'] @autocontour.setter def autocontour(self, val): - self["autocontour"] = val + self['autocontour'] = val # coloraxis # --------- @@ -154,11 +81,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -171,281 +98,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.contour - .colorbar.Tickformatstop` instances or dicts - with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.contour.colorbar.tickformatstopdefaults), - sets the default property values to use for - elements of contour.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.contour.colorbar.T - itle` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.contour.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -494,11 +155,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # connectgaps # ----------- @@ -516,11 +177,11 @@ def connectgaps(self): ------- bool """ - return self["connectgaps"] + return self['connectgaps'] @connectgaps.setter def connectgaps(self, val): - self["connectgaps"] = val + self['connectgaps'] = val # contours # -------- @@ -533,81 +194,15 @@ def contours(self): - A dict of string/value properties that will be passed to the Contours constructor - Supported dict properties: - - coloring - Determines the coloring method showing the - contour values. If "fill", coloring is done - evenly between each contour level If "heatmap", - a heatmap gradient coloring is applied between - each contour level. If "lines", coloring is - done on the contour lines. If "none", no - coloring is applied on this trace. - end - Sets the end contour level value. Must be more - than `contours.start` - labelfont - Sets the font used for labeling the contour - levels. The default color comes from the lines, - if shown. The default family and size come from - `layout.font`. - labelformat - Sets the contour label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. - operation - Sets the constraint operation. "=" keeps - regions equal to `value` "<" and "<=" keep - regions less than `value` ">" and ">=" keep - regions greater than `value` "[]", "()", "[)", - and "(]" keep regions inside `value[0]` to - `value[1]` "][", ")(", "](", ")[" keep regions - outside `value[0]` to value[1]` Open vs. closed - intervals make no difference to constraint - display, but all versions are allowed for - consistency with filter transforms. - showlabels - Determines whether to label the contour lines - with their values. - showlines - Determines whether or not the contour lines are - drawn. Has an effect only if - `contours.coloring` is set to "fill". - size - Sets the step between each contour level. Must - be positive. - start - Sets the starting contour level value. Must be - less than `contours.end` - type - If `levels`, the data is represented as a - contour plot with multiple levels displayed. If - `constraint`, the data is represented as - constraints with the invalid region shaded as - specified by the `operation` and `value` - parameters. - value - Sets the value or values of the constraint - boundary. When `operation` is set to one of the - comparison values (=,<,>=,>,<=) "value" is - expected to be a number. When `operation` is - set to one of the interval values - ([],(),[),(],][,)(,](,)[) "value" is expected - to be an array of two numbers where the first - is the lower bound and the second is the upper - bound. - Returns ------- plotly.graph_objs.contour.Contours """ - return self["contours"] + return self['contours'] @contours.setter def contours(self, val): - self["contours"] = val + self['contours'] = val # customdata # ---------- @@ -626,11 +221,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -647,11 +242,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # dx # -- @@ -667,11 +262,11 @@ def dx(self): ------- int|float """ - return self["dx"] + return self['dx'] @dx.setter def dx(self, val): - self["dx"] = val + self['dx'] = val # dy # -- @@ -687,11 +282,11 @@ def dy(self): ------- int|float """ - return self["dy"] + return self['dy'] @dy.setter def dy(self, val): - self["dy"] = val + self['dy'] = val # fillcolor # --------- @@ -707,42 +302,7 @@ def fillcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to contour.colorscale @@ -750,11 +310,11 @@ def fillcolor(self): ------- str """ - return self["fillcolor"] + return self['fillcolor'] @fillcolor.setter def fillcolor(self, val): - self["fillcolor"] = val + self['fillcolor'] = val # hoverinfo # --------- @@ -776,11 +336,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -797,11 +357,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -814,53 +374,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.contour.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hoverongaps # ----------- @@ -877,11 +399,11 @@ def hoverongaps(self): ------- bool """ - return self["hoverongaps"] + return self['hoverongaps'] @hoverongaps.setter def hoverongaps(self, val): - self["hoverongaps"] = val + self['hoverongaps'] = val # hovertemplate # ------------- @@ -921,11 +443,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -942,11 +464,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -962,11 +484,11 @@ def hovertext(self): ------- numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -983,11 +505,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -1005,11 +527,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -1025,11 +547,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # legend # ------ @@ -1050,11 +572,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -1073,11 +595,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -1090,22 +612,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.contour.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -1128,11 +643,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -1149,11 +664,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # line # ---- @@ -1166,35 +681,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the color of the contour level. Has no - effect if `contours.coloring` is set to - "lines". - dash - 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"). - smoothing - Sets the amount of smoothing for the contour - lines, where 0 corresponds to no smoothing. - width - Sets the contour line width in (in px) Defaults - to 0.5 when `contours.type` is "levels". - Defaults to 2 when `contour.type` is - "constraint". - Returns ------- plotly.graph_objs.contour.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # meta # ---- @@ -1218,11 +713,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -1238,11 +733,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -1260,11 +755,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # ncontours # --------- @@ -1284,11 +779,11 @@ def ncontours(self): ------- int """ - return self["ncontours"] + return self['ncontours'] @ncontours.setter def ncontours(self, val): - self["ncontours"] = val + self['ncontours'] = val # opacity # ------- @@ -1304,11 +799,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # reversescale # ------------ @@ -1326,11 +821,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # showlegend # ---------- @@ -1347,11 +842,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # showscale # --------- @@ -1368,11 +863,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # stream # ------ @@ -1385,27 +880,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.contour.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # text # ---- @@ -1421,11 +904,11 @@ def text(self): ------- numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textfont # -------- @@ -1441,61 +924,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.contour.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # textsrc # ------- @@ -1511,11 +948,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # texttemplate # ------------ @@ -1546,11 +983,11 @@ def texttemplate(self): ------- str """ - return self["texttemplate"] + return self['texttemplate'] @texttemplate.setter def texttemplate(self, val): - self["texttemplate"] = val + self['texttemplate'] = val # transpose # --------- @@ -1566,11 +1003,11 @@ def transpose(self): ------- bool """ - return self["transpose"] + return self['transpose'] @transpose.setter def transpose(self, val): - self["transpose"] = val + self['transpose'] = val # uid # --- @@ -1588,11 +1025,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1621,11 +1058,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # visible # ------- @@ -1644,11 +1081,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # x # - @@ -1664,11 +1101,11 @@ def x(self): ------- numpy.ndarray """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # x0 # -- @@ -1685,11 +1122,11 @@ def x0(self): ------- Any """ - return self["x0"] + return self['x0'] @x0.setter def x0(self, val): - self["x0"] = val + self['x0'] = val # xaxis # ----- @@ -1710,11 +1147,11 @@ def xaxis(self): ------- str """ - return self["xaxis"] + return self['xaxis'] @xaxis.setter def xaxis(self, val): - self["xaxis"] = val + self['xaxis'] = val # xcalendar # --------- @@ -1734,11 +1171,11 @@ def xcalendar(self): ------- Any """ - return self["xcalendar"] + return self['xcalendar'] @xcalendar.setter def xcalendar(self, val): - self["xcalendar"] = val + self['xcalendar'] = val # xhoverformat # ------------ @@ -1765,11 +1202,11 @@ def xhoverformat(self): ------- str """ - return self["xhoverformat"] + return self['xhoverformat'] @xhoverformat.setter def xhoverformat(self, val): - self["xhoverformat"] = val + self['xhoverformat'] = val # xperiod # ------- @@ -1787,11 +1224,11 @@ def xperiod(self): ------- Any """ - return self["xperiod"] + return self['xperiod'] @xperiod.setter def xperiod(self, val): - self["xperiod"] = val + self['xperiod'] = val # xperiod0 # -------- @@ -1810,11 +1247,11 @@ def xperiod0(self): ------- Any """ - return self["xperiod0"] + return self['xperiod0'] @xperiod0.setter def xperiod0(self, val): - self["xperiod0"] = val + self['xperiod0'] = val # xperiodalignment # ---------------- @@ -1832,11 +1269,11 @@ def xperiodalignment(self): ------- Any """ - return self["xperiodalignment"] + return self['xperiodalignment'] @xperiodalignment.setter def xperiodalignment(self, val): - self["xperiodalignment"] = val + self['xperiodalignment'] = val # xsrc # ---- @@ -1852,11 +1289,11 @@ def xsrc(self): ------- str """ - return self["xsrc"] + return self['xsrc'] @xsrc.setter def xsrc(self, val): - self["xsrc"] = val + self['xsrc'] = val # xtype # ----- @@ -1876,11 +1313,11 @@ def xtype(self): ------- Any """ - return self["xtype"] + return self['xtype'] @xtype.setter def xtype(self, val): - self["xtype"] = val + self['xtype'] = val # y # - @@ -1896,11 +1333,11 @@ def y(self): ------- numpy.ndarray """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # y0 # -- @@ -1917,11 +1354,11 @@ def y0(self): ------- Any """ - return self["y0"] + return self['y0'] @y0.setter def y0(self, val): - self["y0"] = val + self['y0'] = val # yaxis # ----- @@ -1942,11 +1379,11 @@ def yaxis(self): ------- str """ - return self["yaxis"] + return self['yaxis'] @yaxis.setter def yaxis(self, val): - self["yaxis"] = val + self['yaxis'] = val # ycalendar # --------- @@ -1966,11 +1403,11 @@ def ycalendar(self): ------- Any """ - return self["ycalendar"] + return self['ycalendar'] @ycalendar.setter def ycalendar(self, val): - self["ycalendar"] = val + self['ycalendar'] = val # yhoverformat # ------------ @@ -1997,11 +1434,11 @@ def yhoverformat(self): ------- str """ - return self["yhoverformat"] + return self['yhoverformat'] @yhoverformat.setter def yhoverformat(self, val): - self["yhoverformat"] = val + self['yhoverformat'] = val # yperiod # ------- @@ -2019,11 +1456,11 @@ def yperiod(self): ------- Any """ - return self["yperiod"] + return self['yperiod'] @yperiod.setter def yperiod(self, val): - self["yperiod"] = val + self['yperiod'] = val # yperiod0 # -------- @@ -2042,11 +1479,11 @@ def yperiod0(self): ------- Any """ - return self["yperiod0"] + return self['yperiod0'] @yperiod0.setter def yperiod0(self, val): - self["yperiod0"] = val + self['yperiod0'] = val # yperiodalignment # ---------------- @@ -2064,11 +1501,11 @@ def yperiodalignment(self): ------- Any """ - return self["yperiodalignment"] + return self['yperiodalignment'] @yperiodalignment.setter def yperiodalignment(self, val): - self["yperiodalignment"] = val + self['yperiodalignment'] = val # ysrc # ---- @@ -2084,11 +1521,11 @@ def ysrc(self): ------- str """ - return self["ysrc"] + return self['ysrc'] @ysrc.setter def ysrc(self, val): - self["ysrc"] = val + self['ysrc'] = val # ytype # ----- @@ -2108,11 +1545,11 @@ def ytype(self): ------- Any """ - return self["ytype"] + return self['ytype'] @ytype.setter def ytype(self, val): - self["ytype"] = val + self['ytype'] = val # z # - @@ -2128,11 +1565,11 @@ def z(self): ------- numpy.ndarray """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # zauto # ----- @@ -2151,11 +1588,11 @@ def zauto(self): ------- bool """ - return self["zauto"] + return self['zauto'] @zauto.setter def zauto(self, val): - self["zauto"] = val + self['zauto'] = val # zhoverformat # ------------ @@ -2176,11 +1613,11 @@ def zhoverformat(self): ------- str """ - return self["zhoverformat"] + return self['zhoverformat'] @zhoverformat.setter def zhoverformat(self, val): - self["zhoverformat"] = val + self['zhoverformat'] = val # zmax # ---- @@ -2197,11 +1634,11 @@ def zmax(self): ------- int|float """ - return self["zmax"] + return self['zmax'] @zmax.setter def zmax(self, val): - self["zmax"] = val + self['zmax'] = val # zmid # ---- @@ -2219,11 +1656,11 @@ def zmid(self): ------- int|float """ - return self["zmid"] + return self['zmid'] @zmid.setter def zmid(self, val): - self["zmid"] = val + self['zmid'] = val # zmin # ---- @@ -2240,11 +1677,11 @@ def zmin(self): ------- int|float """ - return self["zmin"] + return self['zmin'] @zmin.setter def zmin(self, val): - self["zmin"] = val + self['zmin'] = val # zorder # ------ @@ -2262,11 +1699,11 @@ def zorder(self): ------- int """ - return self["zorder"] + return self['zorder'] @zorder.setter def zorder(self, val): - self["zorder"] = val + self['zorder'] = val # zsrc # ---- @@ -2282,17 +1719,17 @@ def zsrc(self): ------- str """ - return self["zsrc"] + return self['zsrc'] @zsrc.setter def zsrc(self, val): - self["zsrc"] = val + self['zsrc'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -2678,85 +2115,83 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `z`. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - autocontour=None, - coloraxis=None, - colorbar=None, - colorscale=None, - connectgaps=None, - contours=None, - customdata=None, - customdatasrc=None, - dx=None, - dy=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hoverongaps=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - meta=None, - metasrc=None, - name=None, - ncontours=None, - opacity=None, - reversescale=None, - showlegend=None, - showscale=None, - stream=None, - text=None, - textfont=None, - textsrc=None, - texttemplate=None, - transpose=None, - uid=None, - uirevision=None, - visible=None, - x=None, - x0=None, - xaxis=None, - xcalendar=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - xtype=None, - y=None, - y0=None, - yaxis=None, - ycalendar=None, - yhoverformat=None, - yperiod=None, - yperiod0=None, - yperiodalignment=None, - ysrc=None, - ytype=None, - z=None, - zauto=None, - zhoverformat=None, - zmax=None, - zmid=None, - zmin=None, - zorder=None, - zsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + autocontour=None, + coloraxis=None, + colorbar=None, + colorscale=None, + connectgaps=None, + contours=None, + customdata=None, + customdatasrc=None, + dx=None, + dy=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hoverongaps=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + meta=None, + metasrc=None, + name=None, + ncontours=None, + opacity=None, + reversescale=None, + showlegend=None, + showscale=None, + stream=None, + text=None, + textfont=None, + textsrc=None, + texttemplate=None, + transpose=None, + uid=None, + uirevision=None, + visible=None, + x=None, + x0=None, + xaxis=None, + xcalendar=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + xtype=None, + y=None, + y0=None, + yaxis=None, + ycalendar=None, + yhoverformat=None, + yperiod=None, + yperiod0=None, + yperiodalignment=None, + ysrc=None, + ytype=None, + z=None, + zauto=None, + zhoverformat=None, + zmax=None, + zmid=None, + zmin=None, + zorder=None, + zsrc=None, + **kwargs + ): """ Construct a new Contour object @@ -3156,10 +2591,10 @@ def __init__( ------- Contour """ - super(Contour, self).__init__("contour") + super(Contour, self).__init__('contour') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -3171,318 +2606,98 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Contour constructor must be a dict or -an instance of :class:`plotly.graph_objs.Contour`""" - ) +an instance of :class:`plotly.graph_objs.Contour`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("autocontour", None) - _v = autocontour if autocontour is not None else _v - if _v is not None: - self["autocontour"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("connectgaps", None) - _v = connectgaps if connectgaps is not None else _v - if _v is not None: - self["connectgaps"] = _v - _v = arg.pop("contours", None) - _v = contours if contours is not None else _v - if _v is not None: - self["contours"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("dx", None) - _v = dx if dx is not None else _v - if _v is not None: - self["dx"] = _v - _v = arg.pop("dy", None) - _v = dy if dy is not None else _v - if _v is not None: - self["dy"] = _v - _v = arg.pop("fillcolor", None) - _v = fillcolor if fillcolor is not None else _v - if _v is not None: - self["fillcolor"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hoverongaps", None) - _v = hoverongaps if hoverongaps is not None else _v - if _v is not None: - self["hoverongaps"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("ncontours", None) - _v = ncontours if ncontours is not None else _v - if _v is not None: - self["ncontours"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("texttemplate", None) - _v = texttemplate if texttemplate is not None else _v - if _v is not None: - self["texttemplate"] = _v - _v = arg.pop("transpose", None) - _v = transpose if transpose is not None else _v - if _v is not None: - self["transpose"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("x0", None) - _v = x0 if x0 is not None else _v - if _v is not None: - self["x0"] = _v - _v = arg.pop("xaxis", None) - _v = xaxis if xaxis is not None else _v - if _v is not None: - self["xaxis"] = _v - _v = arg.pop("xcalendar", None) - _v = xcalendar if xcalendar is not None else _v - if _v is not None: - self["xcalendar"] = _v - _v = arg.pop("xhoverformat", None) - _v = xhoverformat if xhoverformat is not None else _v - if _v is not None: - self["xhoverformat"] = _v - _v = arg.pop("xperiod", None) - _v = xperiod if xperiod is not None else _v - if _v is not None: - self["xperiod"] = _v - _v = arg.pop("xperiod0", None) - _v = xperiod0 if xperiod0 is not None else _v - if _v is not None: - self["xperiod0"] = _v - _v = arg.pop("xperiodalignment", None) - _v = xperiodalignment if xperiodalignment is not None else _v - if _v is not None: - self["xperiodalignment"] = _v - _v = arg.pop("xsrc", None) - _v = xsrc if xsrc is not None else _v - if _v is not None: - self["xsrc"] = _v - _v = arg.pop("xtype", None) - _v = xtype if xtype is not None else _v - if _v is not None: - self["xtype"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("y0", None) - _v = y0 if y0 is not None else _v - if _v is not None: - self["y0"] = _v - _v = arg.pop("yaxis", None) - _v = yaxis if yaxis is not None else _v - if _v is not None: - self["yaxis"] = _v - _v = arg.pop("ycalendar", None) - _v = ycalendar if ycalendar is not None else _v - if _v is not None: - self["ycalendar"] = _v - _v = arg.pop("yhoverformat", None) - _v = yhoverformat if yhoverformat is not None else _v - if _v is not None: - self["yhoverformat"] = _v - _v = arg.pop("yperiod", None) - _v = yperiod if yperiod is not None else _v - if _v is not None: - self["yperiod"] = _v - _v = arg.pop("yperiod0", None) - _v = yperiod0 if yperiod0 is not None else _v - if _v is not None: - self["yperiod0"] = _v - _v = arg.pop("yperiodalignment", None) - _v = yperiodalignment if yperiodalignment is not None else _v - if _v is not None: - self["yperiodalignment"] = _v - _v = arg.pop("ysrc", None) - _v = ysrc if ysrc is not None else _v - if _v is not None: - self["ysrc"] = _v - _v = arg.pop("ytype", None) - _v = ytype if ytype is not None else _v - if _v is not None: - self["ytype"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v - _v = arg.pop("zauto", None) - _v = zauto if zauto is not None else _v - if _v is not None: - self["zauto"] = _v - _v = arg.pop("zhoverformat", None) - _v = zhoverformat if zhoverformat is not None else _v - if _v is not None: - self["zhoverformat"] = _v - _v = arg.pop("zmax", None) - _v = zmax if zmax is not None else _v - if _v is not None: - self["zmax"] = _v - _v = arg.pop("zmid", None) - _v = zmid if zmid is not None else _v - if _v is not None: - self["zmid"] = _v - _v = arg.pop("zmin", None) - _v = zmin if zmin is not None else _v - if _v is not None: - self["zmin"] = _v - _v = arg.pop("zorder", None) - _v = zorder if zorder is not None else _v - if _v is not None: - self["zorder"] = _v - _v = arg.pop("zsrc", None) - _v = zsrc if zsrc is not None else _v - if _v is not None: - self["zsrc"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('autocontour', arg, autocontour) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('connectgaps', arg, connectgaps) + self._init_provided('contours', arg, contours) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('dx', arg, dx) + self._init_provided('dy', arg, dy) + self._init_provided('fillcolor', arg, fillcolor) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hoverongaps', arg, hoverongaps) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('line', arg, line) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('ncontours', arg, ncontours) + self._init_provided('opacity', arg, opacity) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('showscale', arg, showscale) + self._init_provided('stream', arg, stream) + self._init_provided('text', arg, text) + self._init_provided('textfont', arg, textfont) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('texttemplate', arg, texttemplate) + self._init_provided('transpose', arg, transpose) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('visible', arg, visible) + self._init_provided('x', arg, x) + self._init_provided('x0', arg, x0) + self._init_provided('xaxis', arg, xaxis) + self._init_provided('xcalendar', arg, xcalendar) + self._init_provided('xhoverformat', arg, xhoverformat) + self._init_provided('xperiod', arg, xperiod) + self._init_provided('xperiod0', arg, xperiod0) + self._init_provided('xperiodalignment', arg, xperiodalignment) + self._init_provided('xsrc', arg, xsrc) + self._init_provided('xtype', arg, xtype) + self._init_provided('y', arg, y) + self._init_provided('y0', arg, y0) + self._init_provided('yaxis', arg, yaxis) + self._init_provided('ycalendar', arg, ycalendar) + self._init_provided('yhoverformat', arg, yhoverformat) + self._init_provided('yperiod', arg, yperiod) + self._init_provided('yperiod0', arg, yperiod0) + self._init_provided('yperiodalignment', arg, yperiodalignment) + self._init_provided('ysrc', arg, ysrc) + self._init_provided('ytype', arg, ytype) + self._init_provided('z', arg, z) + self._init_provided('zauto', arg, zauto) + self._init_provided('zhoverformat', arg, zhoverformat) + self._init_provided('zmax', arg, zmax) + self._init_provided('zmid', arg, zmid) + self._init_provided('zmin', arg, zmin) + self._init_provided('zorder', arg, zorder) + self._init_provided('zsrc', arg, zsrc) # Read-only literals # ------------------ - self._props["type"] = "contour" - arg.pop("type", None) + self._props['type'] = 'contour' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_contourcarpet.py b/packages/python/plotly/plotly/graph_objs/_contourcarpet.py index 02dd7d60409..908bde8a62e 100644 --- a/packages/python/plotly/plotly/graph_objs/_contourcarpet.py +++ b/packages/python/plotly/plotly/graph_objs/_contourcarpet.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,65 +8,9 @@ class Contourcarpet(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "contourcarpet" - _valid_props = { - "a", - "a0", - "asrc", - "atype", - "autocolorscale", - "autocontour", - "b", - "b0", - "bsrc", - "btype", - "carpet", - "coloraxis", - "colorbar", - "colorscale", - "contours", - "customdata", - "customdatasrc", - "da", - "db", - "fillcolor", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "line", - "meta", - "metasrc", - "name", - "ncontours", - "opacity", - "reversescale", - "showlegend", - "showscale", - "stream", - "text", - "textsrc", - "transpose", - "type", - "uid", - "uirevision", - "visible", - "xaxis", - "yaxis", - "z", - "zauto", - "zmax", - "zmid", - "zmin", - "zorder", - "zsrc", - } + _parent_path_str = '' + _path_str = 'contourcarpet' + _valid_props = {"a", "a0", "asrc", "atype", "autocolorscale", "autocontour", "b", "b0", "bsrc", "btype", "carpet", "coloraxis", "colorbar", "colorscale", "contours", "customdata", "customdatasrc", "da", "db", "fillcolor", "hovertext", "hovertextsrc", "ids", "idssrc", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "line", "meta", "metasrc", "name", "ncontours", "opacity", "reversescale", "showlegend", "showscale", "stream", "text", "textsrc", "transpose", "type", "uid", "uirevision", "visible", "xaxis", "yaxis", "z", "zauto", "zmax", "zmid", "zmin", "zorder", "zsrc"} # a # - @@ -80,11 +26,11 @@ def a(self): ------- numpy.ndarray """ - return self["a"] + return self['a'] @a.setter def a(self, val): - self["a"] = val + self['a'] = val # a0 # -- @@ -101,11 +47,11 @@ def a0(self): ------- Any """ - return self["a0"] + return self['a0'] @a0.setter def a0(self, val): - self["a0"] = val + self['a0'] = val # asrc # ---- @@ -121,11 +67,11 @@ def asrc(self): ------- str """ - return self["asrc"] + return self['asrc'] @asrc.setter def asrc(self, val): - self["asrc"] = val + self['asrc'] = val # atype # ----- @@ -145,11 +91,11 @@ def atype(self): ------- Any """ - return self["atype"] + return self['atype'] @atype.setter def atype(self, val): - self["atype"] = val + self['atype'] = val # autocolorscale # -------------- @@ -170,11 +116,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # autocontour # ----------- @@ -193,11 +139,11 @@ def autocontour(self): ------- bool """ - return self["autocontour"] + return self['autocontour'] @autocontour.setter def autocontour(self, val): - self["autocontour"] = val + self['autocontour'] = val # b # - @@ -213,11 +159,11 @@ def b(self): ------- numpy.ndarray """ - return self["b"] + return self['b'] @b.setter def b(self, val): - self["b"] = val + self['b'] = val # b0 # -- @@ -234,11 +180,11 @@ def b0(self): ------- Any """ - return self["b0"] + return self['b0'] @b0.setter def b0(self, val): - self["b0"] = val + self['b0'] = val # bsrc # ---- @@ -254,11 +200,11 @@ def bsrc(self): ------- str """ - return self["bsrc"] + return self['bsrc'] @bsrc.setter def bsrc(self, val): - self["bsrc"] = val + self['bsrc'] = val # btype # ----- @@ -278,11 +224,11 @@ def btype(self): ------- Any """ - return self["btype"] + return self['btype'] @btype.setter def btype(self, val): - self["btype"] = val + self['btype'] = val # carpet # ------ @@ -300,11 +246,11 @@ def carpet(self): ------- str """ - return self["carpet"] + return self['carpet'] @carpet.setter def carpet(self, val): - self["carpet"] = val + self['carpet'] = val # coloraxis # --------- @@ -327,11 +273,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -344,282 +290,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.contour - carpet.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.contourcarpet.colorbar.tickformatstopdefaults - ), sets the default property values to use for - elements of - contourcarpet.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.contourcarpet.colo - rbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.contourcarpet.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -668,11 +347,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # contours # -------- @@ -685,79 +364,15 @@ def contours(self): - A dict of string/value properties that will be passed to the Contours constructor - Supported dict properties: - - coloring - Determines the coloring method showing the - contour values. If "fill", coloring is done - evenly between each contour level If "lines", - coloring is done on the contour lines. If - "none", no coloring is applied on this trace. - end - Sets the end contour level value. Must be more - than `contours.start` - labelfont - Sets the font used for labeling the contour - levels. The default color comes from the lines, - if shown. The default family and size come from - `layout.font`. - labelformat - Sets the contour label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. - operation - Sets the constraint operation. "=" keeps - regions equal to `value` "<" and "<=" keep - regions less than `value` ">" and ">=" keep - regions greater than `value` "[]", "()", "[)", - and "(]" keep regions inside `value[0]` to - `value[1]` "][", ")(", "](", ")[" keep regions - outside `value[0]` to value[1]` Open vs. closed - intervals make no difference to constraint - display, but all versions are allowed for - consistency with filter transforms. - showlabels - Determines whether to label the contour lines - with their values. - showlines - Determines whether or not the contour lines are - drawn. Has an effect only if - `contours.coloring` is set to "fill". - size - Sets the step between each contour level. Must - be positive. - start - Sets the starting contour level value. Must be - less than `contours.end` - type - If `levels`, the data is represented as a - contour plot with multiple levels displayed. If - `constraint`, the data is represented as - constraints with the invalid region shaded as - specified by the `operation` and `value` - parameters. - value - Sets the value or values of the constraint - boundary. When `operation` is set to one of the - comparison values (=,<,>=,>,<=) "value" is - expected to be a number. When `operation` is - set to one of the interval values - ([],(),[),(],][,)(,](,)[) "value" is expected - to be an array of two numbers where the first - is the lower bound and the second is the upper - bound. - Returns ------- plotly.graph_objs.contourcarpet.Contours """ - return self["contours"] + return self['contours'] @contours.setter def contours(self, val): - self["contours"] = val + self['contours'] = val # customdata # ---------- @@ -776,11 +391,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -797,11 +412,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # da # -- @@ -817,11 +432,11 @@ def da(self): ------- int|float """ - return self["da"] + return self['da'] @da.setter def da(self, val): - self["da"] = val + self['da'] = val # db # -- @@ -837,11 +452,11 @@ def db(self): ------- int|float """ - return self["db"] + return self['db'] @db.setter def db(self, val): - self["db"] = val + self['db'] = val # fillcolor # --------- @@ -857,42 +472,7 @@ def fillcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to contourcarpet.colorscale @@ -900,11 +480,11 @@ def fillcolor(self): ------- str """ - return self["fillcolor"] + return self['fillcolor'] @fillcolor.setter def fillcolor(self, val): - self["fillcolor"] = val + self['fillcolor'] = val # hovertext # --------- @@ -920,11 +500,11 @@ def hovertext(self): ------- numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -941,11 +521,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -963,11 +543,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -983,11 +563,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # legend # ------ @@ -1008,11 +588,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -1031,11 +611,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -1048,22 +628,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.contourcarpet.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -1086,11 +659,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -1107,11 +680,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # line # ---- @@ -1124,35 +697,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the color of the contour level. Has no - effect if `contours.coloring` is set to - "lines". - dash - 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"). - smoothing - Sets the amount of smoothing for the contour - lines, where 0 corresponds to no smoothing. - width - Sets the contour line width in (in px) Defaults - to 0.5 when `contours.type` is "levels". - Defaults to 2 when `contour.type` is - "constraint". - Returns ------- plotly.graph_objs.contourcarpet.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # meta # ---- @@ -1176,11 +729,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -1196,11 +749,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -1218,11 +771,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # ncontours # --------- @@ -1242,11 +795,11 @@ def ncontours(self): ------- int """ - return self["ncontours"] + return self['ncontours'] @ncontours.setter def ncontours(self, val): - self["ncontours"] = val + self['ncontours'] = val # opacity # ------- @@ -1262,11 +815,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # reversescale # ------------ @@ -1284,11 +837,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # showlegend # ---------- @@ -1305,11 +858,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # showscale # --------- @@ -1326,11 +879,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # stream # ------ @@ -1343,27 +896,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.contourcarpet.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # text # ---- @@ -1379,11 +920,11 @@ def text(self): ------- numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textsrc # ------- @@ -1399,11 +940,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # transpose # --------- @@ -1419,11 +960,11 @@ def transpose(self): ------- bool """ - return self["transpose"] + return self['transpose'] @transpose.setter def transpose(self, val): - self["transpose"] = val + self['transpose'] = val # uid # --- @@ -1441,11 +982,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1474,11 +1015,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # visible # ------- @@ -1497,11 +1038,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # xaxis # ----- @@ -1522,11 +1063,11 @@ def xaxis(self): ------- str """ - return self["xaxis"] + return self['xaxis'] @xaxis.setter def xaxis(self, val): - self["xaxis"] = val + self['xaxis'] = val # yaxis # ----- @@ -1547,11 +1088,11 @@ def yaxis(self): ------- str """ - return self["yaxis"] + return self['yaxis'] @yaxis.setter def yaxis(self, val): - self["yaxis"] = val + self['yaxis'] = val # z # - @@ -1567,11 +1108,11 @@ def z(self): ------- numpy.ndarray """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # zauto # ----- @@ -1590,11 +1131,11 @@ def zauto(self): ------- bool """ - return self["zauto"] + return self['zauto'] @zauto.setter def zauto(self, val): - self["zauto"] = val + self['zauto'] = val # zmax # ---- @@ -1611,11 +1152,11 @@ def zmax(self): ------- int|float """ - return self["zmax"] + return self['zmax'] @zmax.setter def zmax(self, val): - self["zmax"] = val + self['zmax'] = val # zmid # ---- @@ -1633,11 +1174,11 @@ def zmid(self): ------- int|float """ - return self["zmid"] + return self['zmid'] @zmid.setter def zmid(self, val): - self["zmid"] = val + self['zmid'] = val # zmin # ---- @@ -1654,11 +1195,11 @@ def zmin(self): ------- int|float """ - return self["zmin"] + return self['zmin'] @zmin.setter def zmin(self, val): - self["zmin"] = val + self['zmin'] = val # zorder # ------ @@ -1676,11 +1217,11 @@ def zorder(self): ------- int """ - return self["zorder"] + return self['zorder'] @zorder.setter def zorder(self, val): - self["zorder"] = val + self['zorder'] = val # zsrc # ---- @@ -1696,17 +1237,17 @@ def zsrc(self): ------- str """ - return self["zsrc"] + return self['zsrc'] @zsrc.setter def zsrc(self, val): - self["zsrc"] = val + self['zsrc'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -1955,66 +1496,64 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `z`. """ - - def __init__( - self, - arg=None, - a=None, - a0=None, - asrc=None, - atype=None, - autocolorscale=None, - autocontour=None, - b=None, - b0=None, - bsrc=None, - btype=None, - carpet=None, - coloraxis=None, - colorbar=None, - colorscale=None, - contours=None, - customdata=None, - customdatasrc=None, - da=None, - db=None, - fillcolor=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - meta=None, - metasrc=None, - name=None, - ncontours=None, - opacity=None, - reversescale=None, - showlegend=None, - showscale=None, - stream=None, - text=None, - textsrc=None, - transpose=None, - uid=None, - uirevision=None, - visible=None, - xaxis=None, - yaxis=None, - z=None, - zauto=None, - zmax=None, - zmid=None, - zmin=None, - zorder=None, - zsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + a=None, + a0=None, + asrc=None, + atype=None, + autocolorscale=None, + autocontour=None, + b=None, + b0=None, + bsrc=None, + btype=None, + carpet=None, + coloraxis=None, + colorbar=None, + colorscale=None, + contours=None, + customdata=None, + customdatasrc=None, + da=None, + db=None, + fillcolor=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + meta=None, + metasrc=None, + name=None, + ncontours=None, + opacity=None, + reversescale=None, + showlegend=None, + showscale=None, + stream=None, + text=None, + textsrc=None, + transpose=None, + uid=None, + uirevision=None, + visible=None, + xaxis=None, + yaxis=None, + z=None, + zauto=None, + zmax=None, + zmid=None, + zmin=None, + zorder=None, + zsrc=None, + **kwargs + ): """ Construct a new Contourcarpet object @@ -2273,10 +1812,10 @@ def __init__( ------- Contourcarpet """ - super(Contourcarpet, self).__init__("contourcarpet") + super(Contourcarpet, self).__init__('contourcarpet') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2288,242 +1827,79 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Contourcarpet constructor must be a dict or -an instance of :class:`plotly.graph_objs.Contourcarpet`""" - ) +an instance of :class:`plotly.graph_objs.Contourcarpet`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("a", None) - _v = a if a is not None else _v - if _v is not None: - self["a"] = _v - _v = arg.pop("a0", None) - _v = a0 if a0 is not None else _v - if _v is not None: - self["a0"] = _v - _v = arg.pop("asrc", None) - _v = asrc if asrc is not None else _v - if _v is not None: - self["asrc"] = _v - _v = arg.pop("atype", None) - _v = atype if atype is not None else _v - if _v is not None: - self["atype"] = _v - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("autocontour", None) - _v = autocontour if autocontour is not None else _v - if _v is not None: - self["autocontour"] = _v - _v = arg.pop("b", None) - _v = b if b is not None else _v - if _v is not None: - self["b"] = _v - _v = arg.pop("b0", None) - _v = b0 if b0 is not None else _v - if _v is not None: - self["b0"] = _v - _v = arg.pop("bsrc", None) - _v = bsrc if bsrc is not None else _v - if _v is not None: - self["bsrc"] = _v - _v = arg.pop("btype", None) - _v = btype if btype is not None else _v - if _v is not None: - self["btype"] = _v - _v = arg.pop("carpet", None) - _v = carpet if carpet is not None else _v - if _v is not None: - self["carpet"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("contours", None) - _v = contours if contours is not None else _v - if _v is not None: - self["contours"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("da", None) - _v = da if da is not None else _v - if _v is not None: - self["da"] = _v - _v = arg.pop("db", None) - _v = db if db is not None else _v - if _v is not None: - self["db"] = _v - _v = arg.pop("fillcolor", None) - _v = fillcolor if fillcolor is not None else _v - if _v is not None: - self["fillcolor"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("ncontours", None) - _v = ncontours if ncontours is not None else _v - if _v is not None: - self["ncontours"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("transpose", None) - _v = transpose if transpose is not None else _v - if _v is not None: - self["transpose"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("xaxis", None) - _v = xaxis if xaxis is not None else _v - if _v is not None: - self["xaxis"] = _v - _v = arg.pop("yaxis", None) - _v = yaxis if yaxis is not None else _v - if _v is not None: - self["yaxis"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v - _v = arg.pop("zauto", None) - _v = zauto if zauto is not None else _v - if _v is not None: - self["zauto"] = _v - _v = arg.pop("zmax", None) - _v = zmax if zmax is not None else _v - if _v is not None: - self["zmax"] = _v - _v = arg.pop("zmid", None) - _v = zmid if zmid is not None else _v - if _v is not None: - self["zmid"] = _v - _v = arg.pop("zmin", None) - _v = zmin if zmin is not None else _v - if _v is not None: - self["zmin"] = _v - _v = arg.pop("zorder", None) - _v = zorder if zorder is not None else _v - if _v is not None: - self["zorder"] = _v - _v = arg.pop("zsrc", None) - _v = zsrc if zsrc is not None else _v - if _v is not None: - self["zsrc"] = _v + self._init_provided('a', arg, a) + self._init_provided('a0', arg, a0) + self._init_provided('asrc', arg, asrc) + self._init_provided('atype', arg, atype) + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('autocontour', arg, autocontour) + self._init_provided('b', arg, b) + self._init_provided('b0', arg, b0) + self._init_provided('bsrc', arg, bsrc) + self._init_provided('btype', arg, btype) + self._init_provided('carpet', arg, carpet) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('contours', arg, contours) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('da', arg, da) + self._init_provided('db', arg, db) + self._init_provided('fillcolor', arg, fillcolor) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('line', arg, line) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('ncontours', arg, ncontours) + self._init_provided('opacity', arg, opacity) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('showscale', arg, showscale) + self._init_provided('stream', arg, stream) + self._init_provided('text', arg, text) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('transpose', arg, transpose) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('visible', arg, visible) + self._init_provided('xaxis', arg, xaxis) + self._init_provided('yaxis', arg, yaxis) + self._init_provided('z', arg, z) + self._init_provided('zauto', arg, zauto) + self._init_provided('zmax', arg, zmax) + self._init_provided('zmid', arg, zmid) + self._init_provided('zmin', arg, zmin) + self._init_provided('zorder', arg, zorder) + self._init_provided('zsrc', arg, zsrc) # Read-only literals # ------------------ - self._props["type"] = "contourcarpet" - arg.pop("type", None) + self._props['type'] = 'contourcarpet' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_densitymap.py b/packages/python/plotly/plotly/graph_objs/_densitymap.py index 5fc0b4bd1de..672d173c6e1 100644 --- a/packages/python/plotly/plotly/graph_objs/_densitymap.py +++ b/packages/python/plotly/plotly/graph_objs/_densitymap.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,58 +8,9 @@ class Densitymap(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "densitymap" - _valid_props = { - "autocolorscale", - "below", - "coloraxis", - "colorbar", - "colorscale", - "customdata", - "customdatasrc", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "lat", - "latsrc", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "lon", - "lonsrc", - "meta", - "metasrc", - "name", - "opacity", - "radius", - "radiussrc", - "reversescale", - "showlegend", - "showscale", - "stream", - "subplot", - "text", - "textsrc", - "type", - "uid", - "uirevision", - "visible", - "z", - "zauto", - "zmax", - "zmid", - "zmin", - "zsrc", - } + _parent_path_str = '' + _path_str = 'densitymap' + _valid_props = {"autocolorscale", "below", "coloraxis", "colorbar", "colorscale", "customdata", "customdatasrc", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "lat", "latsrc", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "lon", "lonsrc", "meta", "metasrc", "name", "opacity", "radius", "radiussrc", "reversescale", "showlegend", "showscale", "stream", "subplot", "text", "textsrc", "type", "uid", "uirevision", "visible", "z", "zauto", "zmax", "zmid", "zmin", "zsrc"} # autocolorscale # -------------- @@ -78,11 +31,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # below # ----- @@ -102,11 +55,11 @@ def below(self): ------- str """ - return self["below"] + return self['below'] @below.setter def below(self, val): - self["below"] = val + self['below'] = val # coloraxis # --------- @@ -129,11 +82,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -146,281 +99,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.density - map.colorbar.Tickformatstop` instances or dicts - with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.densitymap.colorbar.tickformatstopdefaults), - sets the default property values to use for - elements of densitymap.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.densitymap.colorba - r.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.densitymap.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -469,11 +156,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # customdata # ---------- @@ -492,11 +179,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -513,11 +200,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # hoverinfo # --------- @@ -539,11 +226,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -560,11 +247,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -577,53 +264,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.densitymap.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -663,11 +312,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -684,11 +333,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -710,11 +359,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -731,11 +380,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -753,11 +402,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -773,11 +422,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # lat # --- @@ -793,11 +442,11 @@ def lat(self): ------- numpy.ndarray """ - return self["lat"] + return self['lat'] @lat.setter def lat(self, val): - self["lat"] = val + self['lat'] = val # latsrc # ------ @@ -813,11 +462,11 @@ def latsrc(self): ------- str """ - return self["latsrc"] + return self['latsrc'] @latsrc.setter def latsrc(self, val): - self["latsrc"] = val + self['latsrc'] = val # legend # ------ @@ -838,11 +487,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -861,11 +510,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -878,22 +527,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.densitymap.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -916,11 +558,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -937,11 +579,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # lon # --- @@ -957,11 +599,11 @@ def lon(self): ------- numpy.ndarray """ - return self["lon"] + return self['lon'] @lon.setter def lon(self, val): - self["lon"] = val + self['lon'] = val # lonsrc # ------ @@ -977,11 +619,11 @@ def lonsrc(self): ------- str """ - return self["lonsrc"] + return self['lonsrc'] @lonsrc.setter def lonsrc(self, val): - self["lonsrc"] = val + self['lonsrc'] = val # meta # ---- @@ -1005,11 +647,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -1025,11 +667,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -1047,11 +689,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -1067,11 +709,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # radius # ------ @@ -1090,11 +732,11 @@ def radius(self): ------- int|float|numpy.ndarray """ - return self["radius"] + return self['radius'] @radius.setter def radius(self, val): - self["radius"] = val + self['radius'] = val # radiussrc # --------- @@ -1110,11 +752,11 @@ def radiussrc(self): ------- str """ - return self["radiussrc"] + return self['radiussrc'] @radiussrc.setter def radiussrc(self, val): - self["radiussrc"] = val + self['radiussrc'] = val # reversescale # ------------ @@ -1132,11 +774,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # showlegend # ---------- @@ -1153,11 +795,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # showscale # --------- @@ -1174,11 +816,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # stream # ------ @@ -1191,27 +833,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.densitymap.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # subplot # ------- @@ -1232,11 +862,11 @@ def subplot(self): ------- str """ - return self["subplot"] + return self['subplot'] @subplot.setter def subplot(self, val): - self["subplot"] = val + self['subplot'] = val # text # ---- @@ -1259,11 +889,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textsrc # ------- @@ -1279,11 +909,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # uid # --- @@ -1301,11 +931,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1334,11 +964,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # visible # ------- @@ -1357,11 +987,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # z # - @@ -1378,11 +1008,11 @@ def z(self): ------- numpy.ndarray """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # zauto # ----- @@ -1401,11 +1031,11 @@ def zauto(self): ------- bool """ - return self["zauto"] + return self['zauto'] @zauto.setter def zauto(self, val): - self["zauto"] = val + self['zauto'] = val # zmax # ---- @@ -1422,11 +1052,11 @@ def zmax(self): ------- int|float """ - return self["zmax"] + return self['zmax'] @zmax.setter def zmax(self, val): - self["zmax"] = val + self['zmax'] = val # zmid # ---- @@ -1444,11 +1074,11 @@ def zmid(self): ------- int|float """ - return self["zmid"] + return self['zmid'] @zmid.setter def zmid(self, val): - self["zmid"] = val + self['zmid'] = val # zmin # ---- @@ -1465,11 +1095,11 @@ def zmin(self): ------- int|float """ - return self["zmin"] + return self['zmin'] @zmin.setter def zmin(self, val): - self["zmin"] = val + self['zmin'] = val # zsrc # ---- @@ -1485,17 +1115,17 @@ def zsrc(self): ------- str """ - return self["zsrc"] + return self['zsrc'] @zsrc.setter def zsrc(self, val): - self["zsrc"] = val + self['zsrc'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -1751,59 +1381,57 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `z`. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - below=None, - coloraxis=None, - colorbar=None, - colorscale=None, - customdata=None, - customdatasrc=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - lat=None, - latsrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - lon=None, - lonsrc=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - radius=None, - radiussrc=None, - reversescale=None, - showlegend=None, - showscale=None, - stream=None, - subplot=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - visible=None, - z=None, - zauto=None, - zmax=None, - zmid=None, - zmin=None, - zsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + below=None, + coloraxis=None, + colorbar=None, + colorscale=None, + customdata=None, + customdatasrc=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + lat=None, + latsrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + lon=None, + lonsrc=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + radius=None, + radiussrc=None, + reversescale=None, + showlegend=None, + showscale=None, + stream=None, + subplot=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + visible=None, + z=None, + zauto=None, + zmax=None, + zmid=None, + zmin=None, + zsrc=None, + **kwargs + ): """ Construct a new Densitymap object @@ -2069,10 +1697,10 @@ def __init__( ------- Densitymap """ - super(Densitymap, self).__init__("densitymap") + super(Densitymap, self).__init__('densitymap') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2084,214 +1712,72 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Densitymap constructor must be a dict or -an instance of :class:`plotly.graph_objs.Densitymap`""" - ) +an instance of :class:`plotly.graph_objs.Densitymap`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("below", None) - _v = below if below is not None else _v - if _v is not None: - self["below"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("lat", None) - _v = lat if lat is not None else _v - if _v is not None: - self["lat"] = _v - _v = arg.pop("latsrc", None) - _v = latsrc if latsrc is not None else _v - if _v is not None: - self["latsrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("lon", None) - _v = lon if lon is not None else _v - if _v is not None: - self["lon"] = _v - _v = arg.pop("lonsrc", None) - _v = lonsrc if lonsrc is not None else _v - if _v is not None: - self["lonsrc"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("radius", None) - _v = radius if radius is not None else _v - if _v is not None: - self["radius"] = _v - _v = arg.pop("radiussrc", None) - _v = radiussrc if radiussrc is not None else _v - if _v is not None: - self["radiussrc"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("subplot", None) - _v = subplot if subplot is not None else _v - if _v is not None: - self["subplot"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v - _v = arg.pop("zauto", None) - _v = zauto if zauto is not None else _v - if _v is not None: - self["zauto"] = _v - _v = arg.pop("zmax", None) - _v = zmax if zmax is not None else _v - if _v is not None: - self["zmax"] = _v - _v = arg.pop("zmid", None) - _v = zmid if zmid is not None else _v - if _v is not None: - self["zmid"] = _v - _v = arg.pop("zmin", None) - _v = zmin if zmin is not None else _v - if _v is not None: - self["zmin"] = _v - _v = arg.pop("zsrc", None) - _v = zsrc if zsrc is not None else _v - if _v is not None: - self["zsrc"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('below', arg, below) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('lat', arg, lat) + self._init_provided('latsrc', arg, latsrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('lon', arg, lon) + self._init_provided('lonsrc', arg, lonsrc) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('radius', arg, radius) + self._init_provided('radiussrc', arg, radiussrc) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('showscale', arg, showscale) + self._init_provided('stream', arg, stream) + self._init_provided('subplot', arg, subplot) + self._init_provided('text', arg, text) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('visible', arg, visible) + self._init_provided('z', arg, z) + self._init_provided('zauto', arg, zauto) + self._init_provided('zmax', arg, zmax) + self._init_provided('zmid', arg, zmid) + self._init_provided('zmin', arg, zmin) + self._init_provided('zsrc', arg, zsrc) # Read-only literals # ------------------ - self._props["type"] = "densitymap" - arg.pop("type", None) + self._props['type'] = 'densitymap' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_densitymapbox.py b/packages/python/plotly/plotly/graph_objs/_densitymapbox.py index 8498ab2d17e..cc8c4c3e94b 100644 --- a/packages/python/plotly/plotly/graph_objs/_densitymapbox.py +++ b/packages/python/plotly/plotly/graph_objs/_densitymapbox.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy from warnings import warn @@ -7,58 +9,9 @@ class Densitymapbox(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "densitymapbox" - _valid_props = { - "autocolorscale", - "below", - "coloraxis", - "colorbar", - "colorscale", - "customdata", - "customdatasrc", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "lat", - "latsrc", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "lon", - "lonsrc", - "meta", - "metasrc", - "name", - "opacity", - "radius", - "radiussrc", - "reversescale", - "showlegend", - "showscale", - "stream", - "subplot", - "text", - "textsrc", - "type", - "uid", - "uirevision", - "visible", - "z", - "zauto", - "zmax", - "zmid", - "zmin", - "zsrc", - } + _parent_path_str = '' + _path_str = 'densitymapbox' + _valid_props = {"autocolorscale", "below", "coloraxis", "colorbar", "colorscale", "customdata", "customdatasrc", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "lat", "latsrc", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "lon", "lonsrc", "meta", "metasrc", "name", "opacity", "radius", "radiussrc", "reversescale", "showlegend", "showscale", "stream", "subplot", "text", "textsrc", "type", "uid", "uirevision", "visible", "z", "zauto", "zmax", "zmid", "zmin", "zsrc"} # autocolorscale # -------------- @@ -79,11 +32,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # below # ----- @@ -103,11 +56,11 @@ def below(self): ------- str """ - return self["below"] + return self['below'] @below.setter def below(self, val): - self["below"] = val + self['below'] = val # coloraxis # --------- @@ -130,11 +83,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -147,282 +100,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.density - mapbox.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.densitymapbox.colorbar.tickformatstopdefaults - ), sets the default property values to use for - elements of - densitymapbox.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.densitymapbox.colo - rbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.densitymapbox.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -471,11 +157,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # customdata # ---------- @@ -494,11 +180,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -515,11 +201,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # hoverinfo # --------- @@ -541,11 +227,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -562,11 +248,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -579,53 +265,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.densitymapbox.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -665,11 +313,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -686,11 +334,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -712,11 +360,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -733,11 +381,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -755,11 +403,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -775,11 +423,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # lat # --- @@ -795,11 +443,11 @@ def lat(self): ------- numpy.ndarray """ - return self["lat"] + return self['lat'] @lat.setter def lat(self, val): - self["lat"] = val + self['lat'] = val # latsrc # ------ @@ -815,11 +463,11 @@ def latsrc(self): ------- str """ - return self["latsrc"] + return self['latsrc'] @latsrc.setter def latsrc(self, val): - self["latsrc"] = val + self['latsrc'] = val # legend # ------ @@ -840,11 +488,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -863,11 +511,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -880,22 +528,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.densitymapbox.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -918,11 +559,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -939,11 +580,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # lon # --- @@ -959,11 +600,11 @@ def lon(self): ------- numpy.ndarray """ - return self["lon"] + return self['lon'] @lon.setter def lon(self, val): - self["lon"] = val + self['lon'] = val # lonsrc # ------ @@ -979,11 +620,11 @@ def lonsrc(self): ------- str """ - return self["lonsrc"] + return self['lonsrc'] @lonsrc.setter def lonsrc(self, val): - self["lonsrc"] = val + self['lonsrc'] = val # meta # ---- @@ -1007,11 +648,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -1027,11 +668,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -1049,11 +690,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -1069,11 +710,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # radius # ------ @@ -1092,11 +733,11 @@ def radius(self): ------- int|float|numpy.ndarray """ - return self["radius"] + return self['radius'] @radius.setter def radius(self, val): - self["radius"] = val + self['radius'] = val # radiussrc # --------- @@ -1112,11 +753,11 @@ def radiussrc(self): ------- str """ - return self["radiussrc"] + return self['radiussrc'] @radiussrc.setter def radiussrc(self, val): - self["radiussrc"] = val + self['radiussrc'] = val # reversescale # ------------ @@ -1134,11 +775,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # showlegend # ---------- @@ -1155,11 +796,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # showscale # --------- @@ -1176,11 +817,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # stream # ------ @@ -1193,27 +834,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.densitymapbox.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # subplot # ------- @@ -1238,11 +867,11 @@ def subplot(self): ------- str """ - return self["subplot"] + return self['subplot'] @subplot.setter def subplot(self, val): - self["subplot"] = val + self['subplot'] = val # text # ---- @@ -1265,11 +894,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textsrc # ------- @@ -1285,11 +914,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # uid # --- @@ -1307,11 +936,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1340,11 +969,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # visible # ------- @@ -1363,11 +992,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # z # - @@ -1384,11 +1013,11 @@ def z(self): ------- numpy.ndarray """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # zauto # ----- @@ -1407,11 +1036,11 @@ def zauto(self): ------- bool """ - return self["zauto"] + return self['zauto'] @zauto.setter def zauto(self, val): - self["zauto"] = val + self['zauto'] = val # zmax # ---- @@ -1428,11 +1057,11 @@ def zmax(self): ------- int|float """ - return self["zmax"] + return self['zmax'] @zmax.setter def zmax(self, val): - self["zmax"] = val + self['zmax'] = val # zmid # ---- @@ -1450,11 +1079,11 @@ def zmid(self): ------- int|float """ - return self["zmid"] + return self['zmid'] @zmid.setter def zmid(self, val): - self["zmid"] = val + self['zmid'] = val # zmin # ---- @@ -1471,11 +1100,11 @@ def zmin(self): ------- int|float """ - return self["zmin"] + return self['zmin'] @zmin.setter def zmin(self, val): - self["zmin"] = val + self['zmin'] = val # zsrc # ---- @@ -1491,17 +1120,17 @@ def zsrc(self): ------- str """ - return self["zsrc"] + return self['zsrc'] @zsrc.setter def zsrc(self, val): - self["zsrc"] = val + self['zsrc'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -1762,59 +1391,57 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `z`. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - below=None, - coloraxis=None, - colorbar=None, - colorscale=None, - customdata=None, - customdatasrc=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - lat=None, - latsrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - lon=None, - lonsrc=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - radius=None, - radiussrc=None, - reversescale=None, - showlegend=None, - showscale=None, - stream=None, - subplot=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - visible=None, - z=None, - zauto=None, - zmax=None, - zmid=None, - zmin=None, - zsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + below=None, + coloraxis=None, + colorbar=None, + colorscale=None, + customdata=None, + customdatasrc=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + lat=None, + latsrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + lon=None, + lonsrc=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + radius=None, + radiussrc=None, + reversescale=None, + showlegend=None, + showscale=None, + stream=None, + subplot=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + visible=None, + z=None, + zauto=None, + zmax=None, + zmid=None, + zmin=None, + zsrc=None, + **kwargs + ): """ Construct a new Densitymapbox object @@ -2089,10 +1716,10 @@ def __init__( ------- Densitymapbox """ - super(Densitymapbox, self).__init__("densitymapbox") + super(Densitymapbox, self).__init__('densitymapbox') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2104,214 +1731,72 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Densitymapbox constructor must be a dict or -an instance of :class:`plotly.graph_objs.Densitymapbox`""" - ) +an instance of :class:`plotly.graph_objs.Densitymapbox`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("below", None) - _v = below if below is not None else _v - if _v is not None: - self["below"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("lat", None) - _v = lat if lat is not None else _v - if _v is not None: - self["lat"] = _v - _v = arg.pop("latsrc", None) - _v = latsrc if latsrc is not None else _v - if _v is not None: - self["latsrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("lon", None) - _v = lon if lon is not None else _v - if _v is not None: - self["lon"] = _v - _v = arg.pop("lonsrc", None) - _v = lonsrc if lonsrc is not None else _v - if _v is not None: - self["lonsrc"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("radius", None) - _v = radius if radius is not None else _v - if _v is not None: - self["radius"] = _v - _v = arg.pop("radiussrc", None) - _v = radiussrc if radiussrc is not None else _v - if _v is not None: - self["radiussrc"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("subplot", None) - _v = subplot if subplot is not None else _v - if _v is not None: - self["subplot"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v - _v = arg.pop("zauto", None) - _v = zauto if zauto is not None else _v - if _v is not None: - self["zauto"] = _v - _v = arg.pop("zmax", None) - _v = zmax if zmax is not None else _v - if _v is not None: - self["zmax"] = _v - _v = arg.pop("zmid", None) - _v = zmid if zmid is not None else _v - if _v is not None: - self["zmid"] = _v - _v = arg.pop("zmin", None) - _v = zmin if zmin is not None else _v - if _v is not None: - self["zmin"] = _v - _v = arg.pop("zsrc", None) - _v = zsrc if zsrc is not None else _v - if _v is not None: - self["zsrc"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('below', arg, below) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('lat', arg, lat) + self._init_provided('latsrc', arg, latsrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('lon', arg, lon) + self._init_provided('lonsrc', arg, lonsrc) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('radius', arg, radius) + self._init_provided('radiussrc', arg, radiussrc) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('showscale', arg, showscale) + self._init_provided('stream', arg, stream) + self._init_provided('subplot', arg, subplot) + self._init_provided('text', arg, text) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('visible', arg, visible) + self._init_provided('z', arg, z) + self._init_provided('zauto', arg, zauto) + self._init_provided('zmax', arg, zmax) + self._init_provided('zmid', arg, zmid) + self._init_provided('zmin', arg, zmin) + self._init_provided('zsrc', arg, zsrc) # Read-only literals # ------------------ - self._props["type"] = "densitymapbox" - arg.pop("type", None) + self._props['type'] = 'densitymapbox' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_deprecations.py b/packages/python/plotly/plotly/graph_objs/_deprecations.py index d8caedcb79f..ece558d85ec 100644 --- a/packages/python/plotly/plotly/graph_objs/_deprecations.py +++ b/packages/python/plotly/plotly/graph_objs/_deprecations.py @@ -1,723 +1,625 @@ import warnings -warnings.filterwarnings( - "default", r"plotly\.graph_objs\.\w+ is deprecated", DeprecationWarning -) +warnings.filterwarnings('default', + r'plotly\.graph_objs\.\w+ is deprecated', + DeprecationWarning) class Data(list): """ - plotly.graph_objs.Data is deprecated. - Please replace it with a list or tuple of instances of the following types - - plotly.graph_objs.Scatter - - plotly.graph_objs.Bar - - plotly.graph_objs.Area - - plotly.graph_objs.Histogram - - etc. + plotly.graph_objs.Data is deprecated. +Please replace it with a list or tuple of instances of the following types + - plotly.graph_objs.Scatter + - plotly.graph_objs.Bar + - plotly.graph_objs.Area + - plotly.graph_objs.Histogram + - etc. """ - def __init__(self, *args, **kwargs): """ - plotly.graph_objs.Data is deprecated. - Please replace it with a list or tuple of instances of the following types - - plotly.graph_objs.Scatter - - plotly.graph_objs.Bar - - plotly.graph_objs.Area - - plotly.graph_objs.Histogram - - etc. + plotly.graph_objs.Data is deprecated. +Please replace it with a list or tuple of instances of the following types + - plotly.graph_objs.Scatter + - plotly.graph_objs.Bar + - plotly.graph_objs.Area + - plotly.graph_objs.Histogram + - etc. """ - warnings.warn( - """plotly.graph_objs.Data is deprecated. + warnings.warn("""plotly.graph_objs.Data is deprecated. Please replace it with a list or tuple of instances of the following types - plotly.graph_objs.Scatter - plotly.graph_objs.Bar - plotly.graph_objs.Area - plotly.graph_objs.Histogram - etc. -""", - DeprecationWarning, - ) +""", DeprecationWarning) super(Data, self).__init__(*args, **kwargs) class Annotations(list): """ - plotly.graph_objs.Annotations is deprecated. - Please replace it with a list or tuple of instances of the following types - - plotly.graph_objs.layout.Annotation - - plotly.graph_objs.layout.scene.Annotation + plotly.graph_objs.Annotations is deprecated. +Please replace it with a list or tuple of instances of the following types + - plotly.graph_objs.layout.Annotation + - plotly.graph_objs.layout.scene.Annotation """ - def __init__(self, *args, **kwargs): """ - plotly.graph_objs.Annotations is deprecated. - Please replace it with a list or tuple of instances of the following types - - plotly.graph_objs.layout.Annotation - - plotly.graph_objs.layout.scene.Annotation + plotly.graph_objs.Annotations is deprecated. +Please replace it with a list or tuple of instances of the following types + - plotly.graph_objs.layout.Annotation + - plotly.graph_objs.layout.scene.Annotation """ - warnings.warn( - """plotly.graph_objs.Annotations is deprecated. + warnings.warn("""plotly.graph_objs.Annotations is deprecated. Please replace it with a list or tuple of instances of the following types - plotly.graph_objs.layout.Annotation - plotly.graph_objs.layout.scene.Annotation -""", - DeprecationWarning, - ) +""", DeprecationWarning) super(Annotations, self).__init__(*args, **kwargs) class Frames(list): """ - plotly.graph_objs.Frames is deprecated. - Please replace it with a list or tuple of instances of the following types - - plotly.graph_objs.Frame + plotly.graph_objs.Frames is deprecated. +Please replace it with a list or tuple of instances of the following types + - plotly.graph_objs.Frame """ - def __init__(self, *args, **kwargs): """ - plotly.graph_objs.Frames is deprecated. - Please replace it with a list or tuple of instances of the following types - - plotly.graph_objs.Frame + plotly.graph_objs.Frames is deprecated. +Please replace it with a list or tuple of instances of the following types + - plotly.graph_objs.Frame """ - warnings.warn( - """plotly.graph_objs.Frames is deprecated. + warnings.warn("""plotly.graph_objs.Frames is deprecated. Please replace it with a list or tuple of instances of the following types - plotly.graph_objs.Frame -""", - DeprecationWarning, - ) +""", DeprecationWarning) super(Frames, self).__init__(*args, **kwargs) class AngularAxis(dict): """ - plotly.graph_objs.AngularAxis is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.layout.AngularAxis - - plotly.graph_objs.layout.polar.AngularAxis + plotly.graph_objs.AngularAxis is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.layout.AngularAxis + - plotly.graph_objs.layout.polar.AngularAxis """ - def __init__(self, *args, **kwargs): """ - plotly.graph_objs.AngularAxis is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.layout.AngularAxis - - plotly.graph_objs.layout.polar.AngularAxis + plotly.graph_objs.AngularAxis is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.layout.AngularAxis + - plotly.graph_objs.layout.polar.AngularAxis """ - warnings.warn( - """plotly.graph_objs.AngularAxis is deprecated. + warnings.warn("""plotly.graph_objs.AngularAxis is deprecated. Please replace it with one of the following more specific types - plotly.graph_objs.layout.AngularAxis - plotly.graph_objs.layout.polar.AngularAxis -""", - DeprecationWarning, - ) +""", DeprecationWarning) super(AngularAxis, self).__init__(*args, **kwargs) class Annotation(dict): """ - plotly.graph_objs.Annotation is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.layout.Annotation - - plotly.graph_objs.layout.scene.Annotation + plotly.graph_objs.Annotation is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.layout.Annotation + - plotly.graph_objs.layout.scene.Annotation """ - def __init__(self, *args, **kwargs): """ - plotly.graph_objs.Annotation is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.layout.Annotation - - plotly.graph_objs.layout.scene.Annotation + plotly.graph_objs.Annotation is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.layout.Annotation + - plotly.graph_objs.layout.scene.Annotation """ - warnings.warn( - """plotly.graph_objs.Annotation is deprecated. + warnings.warn("""plotly.graph_objs.Annotation is deprecated. Please replace it with one of the following more specific types - plotly.graph_objs.layout.Annotation - plotly.graph_objs.layout.scene.Annotation -""", - DeprecationWarning, - ) +""", DeprecationWarning) super(Annotation, self).__init__(*args, **kwargs) class ColorBar(dict): """ - plotly.graph_objs.ColorBar is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.scatter.marker.ColorBar - - plotly.graph_objs.surface.ColorBar - - etc. + plotly.graph_objs.ColorBar is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.scatter.marker.ColorBar + - plotly.graph_objs.surface.ColorBar + - etc. """ - def __init__(self, *args, **kwargs): """ - plotly.graph_objs.ColorBar is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.scatter.marker.ColorBar - - plotly.graph_objs.surface.ColorBar - - etc. + plotly.graph_objs.ColorBar is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.scatter.marker.ColorBar + - plotly.graph_objs.surface.ColorBar + - etc. """ - warnings.warn( - """plotly.graph_objs.ColorBar is deprecated. + warnings.warn("""plotly.graph_objs.ColorBar is deprecated. Please replace it with one of the following more specific types - plotly.graph_objs.scatter.marker.ColorBar - plotly.graph_objs.surface.ColorBar - etc. -""", - DeprecationWarning, - ) +""", DeprecationWarning) super(ColorBar, self).__init__(*args, **kwargs) class Contours(dict): """ - plotly.graph_objs.Contours is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.contour.Contours - - plotly.graph_objs.surface.Contours - - etc. + plotly.graph_objs.Contours is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.contour.Contours + - plotly.graph_objs.surface.Contours + - etc. """ - def __init__(self, *args, **kwargs): """ - plotly.graph_objs.Contours is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.contour.Contours - - plotly.graph_objs.surface.Contours - - etc. + plotly.graph_objs.Contours is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.contour.Contours + - plotly.graph_objs.surface.Contours + - etc. """ - warnings.warn( - """plotly.graph_objs.Contours is deprecated. + warnings.warn("""plotly.graph_objs.Contours is deprecated. Please replace it with one of the following more specific types - plotly.graph_objs.contour.Contours - plotly.graph_objs.surface.Contours - etc. -""", - DeprecationWarning, - ) +""", DeprecationWarning) super(Contours, self).__init__(*args, **kwargs) class ErrorX(dict): """ - plotly.graph_objs.ErrorX is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.scatter.ErrorX - - plotly.graph_objs.histogram.ErrorX - - etc. + plotly.graph_objs.ErrorX is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.scatter.ErrorX + - plotly.graph_objs.histogram.ErrorX + - etc. """ - def __init__(self, *args, **kwargs): """ - plotly.graph_objs.ErrorX is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.scatter.ErrorX - - plotly.graph_objs.histogram.ErrorX - - etc. + plotly.graph_objs.ErrorX is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.scatter.ErrorX + - plotly.graph_objs.histogram.ErrorX + - etc. """ - warnings.warn( - """plotly.graph_objs.ErrorX is deprecated. + warnings.warn("""plotly.graph_objs.ErrorX is deprecated. Please replace it with one of the following more specific types - plotly.graph_objs.scatter.ErrorX - plotly.graph_objs.histogram.ErrorX - etc. -""", - DeprecationWarning, - ) +""", DeprecationWarning) super(ErrorX, self).__init__(*args, **kwargs) class ErrorY(dict): """ - plotly.graph_objs.ErrorY is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.scatter.ErrorY - - plotly.graph_objs.histogram.ErrorY - - etc. + plotly.graph_objs.ErrorY is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.scatter.ErrorY + - plotly.graph_objs.histogram.ErrorY + - etc. """ - def __init__(self, *args, **kwargs): """ - plotly.graph_objs.ErrorY is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.scatter.ErrorY - - plotly.graph_objs.histogram.ErrorY - - etc. + plotly.graph_objs.ErrorY is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.scatter.ErrorY + - plotly.graph_objs.histogram.ErrorY + - etc. """ - warnings.warn( - """plotly.graph_objs.ErrorY is deprecated. + warnings.warn("""plotly.graph_objs.ErrorY is deprecated. Please replace it with one of the following more specific types - plotly.graph_objs.scatter.ErrorY - plotly.graph_objs.histogram.ErrorY - etc. -""", - DeprecationWarning, - ) +""", DeprecationWarning) super(ErrorY, self).__init__(*args, **kwargs) class ErrorZ(dict): """ - plotly.graph_objs.ErrorZ is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.scatter3d.ErrorZ + plotly.graph_objs.ErrorZ is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.scatter3d.ErrorZ """ - def __init__(self, *args, **kwargs): """ - plotly.graph_objs.ErrorZ is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.scatter3d.ErrorZ + plotly.graph_objs.ErrorZ is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.scatter3d.ErrorZ """ - warnings.warn( - """plotly.graph_objs.ErrorZ is deprecated. + warnings.warn("""plotly.graph_objs.ErrorZ is deprecated. Please replace it with one of the following more specific types - plotly.graph_objs.scatter3d.ErrorZ -""", - DeprecationWarning, - ) +""", DeprecationWarning) super(ErrorZ, self).__init__(*args, **kwargs) class Font(dict): """ - plotly.graph_objs.Font is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.layout.Font - - plotly.graph_objs.layout.hoverlabel.Font - - etc. + plotly.graph_objs.Font is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.layout.Font + - plotly.graph_objs.layout.hoverlabel.Font + - etc. """ - def __init__(self, *args, **kwargs): """ - plotly.graph_objs.Font is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.layout.Font - - plotly.graph_objs.layout.hoverlabel.Font - - etc. + plotly.graph_objs.Font is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.layout.Font + - plotly.graph_objs.layout.hoverlabel.Font + - etc. """ - warnings.warn( - """plotly.graph_objs.Font is deprecated. + warnings.warn("""plotly.graph_objs.Font is deprecated. Please replace it with one of the following more specific types - plotly.graph_objs.layout.Font - plotly.graph_objs.layout.hoverlabel.Font - etc. -""", - DeprecationWarning, - ) +""", DeprecationWarning) super(Font, self).__init__(*args, **kwargs) class Legend(dict): """ - plotly.graph_objs.Legend is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.layout.Legend + plotly.graph_objs.Legend is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.layout.Legend """ - def __init__(self, *args, **kwargs): """ - plotly.graph_objs.Legend is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.layout.Legend + plotly.graph_objs.Legend is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.layout.Legend """ - warnings.warn( - """plotly.graph_objs.Legend is deprecated. + warnings.warn("""plotly.graph_objs.Legend is deprecated. Please replace it with one of the following more specific types - plotly.graph_objs.layout.Legend -""", - DeprecationWarning, - ) +""", DeprecationWarning) super(Legend, self).__init__(*args, **kwargs) class Line(dict): """ - plotly.graph_objs.Line is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.scatter.Line - - plotly.graph_objs.layout.shape.Line - - etc. + plotly.graph_objs.Line is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.scatter.Line + - plotly.graph_objs.layout.shape.Line + - etc. """ - def __init__(self, *args, **kwargs): """ - plotly.graph_objs.Line is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.scatter.Line - - plotly.graph_objs.layout.shape.Line - - etc. + plotly.graph_objs.Line is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.scatter.Line + - plotly.graph_objs.layout.shape.Line + - etc. """ - warnings.warn( - """plotly.graph_objs.Line is deprecated. + warnings.warn("""plotly.graph_objs.Line is deprecated. Please replace it with one of the following more specific types - plotly.graph_objs.scatter.Line - plotly.graph_objs.layout.shape.Line - etc. -""", - DeprecationWarning, - ) +""", DeprecationWarning) super(Line, self).__init__(*args, **kwargs) class Margin(dict): """ - plotly.graph_objs.Margin is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.layout.Margin + plotly.graph_objs.Margin is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.layout.Margin """ - def __init__(self, *args, **kwargs): """ - plotly.graph_objs.Margin is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.layout.Margin + plotly.graph_objs.Margin is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.layout.Margin """ - warnings.warn( - """plotly.graph_objs.Margin is deprecated. + warnings.warn("""plotly.graph_objs.Margin is deprecated. Please replace it with one of the following more specific types - plotly.graph_objs.layout.Margin -""", - DeprecationWarning, - ) +""", DeprecationWarning) super(Margin, self).__init__(*args, **kwargs) class Marker(dict): """ - plotly.graph_objs.Marker is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.scatter.Marker - - plotly.graph_objs.histogram.selected.Marker - - etc. + plotly.graph_objs.Marker is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.scatter.Marker + - plotly.graph_objs.histogram.selected.Marker + - etc. """ - def __init__(self, *args, **kwargs): """ - plotly.graph_objs.Marker is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.scatter.Marker - - plotly.graph_objs.histogram.selected.Marker - - etc. + plotly.graph_objs.Marker is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.scatter.Marker + - plotly.graph_objs.histogram.selected.Marker + - etc. """ - warnings.warn( - """plotly.graph_objs.Marker is deprecated. + warnings.warn("""plotly.graph_objs.Marker is deprecated. Please replace it with one of the following more specific types - plotly.graph_objs.scatter.Marker - plotly.graph_objs.histogram.selected.Marker - etc. -""", - DeprecationWarning, - ) +""", DeprecationWarning) super(Marker, self).__init__(*args, **kwargs) class RadialAxis(dict): """ - plotly.graph_objs.RadialAxis is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.layout.RadialAxis - - plotly.graph_objs.layout.polar.RadialAxis + plotly.graph_objs.RadialAxis is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.layout.RadialAxis + - plotly.graph_objs.layout.polar.RadialAxis """ - def __init__(self, *args, **kwargs): """ - plotly.graph_objs.RadialAxis is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.layout.RadialAxis - - plotly.graph_objs.layout.polar.RadialAxis + plotly.graph_objs.RadialAxis is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.layout.RadialAxis + - plotly.graph_objs.layout.polar.RadialAxis """ - warnings.warn( - """plotly.graph_objs.RadialAxis is deprecated. + warnings.warn("""plotly.graph_objs.RadialAxis is deprecated. Please replace it with one of the following more specific types - plotly.graph_objs.layout.RadialAxis - plotly.graph_objs.layout.polar.RadialAxis -""", - DeprecationWarning, - ) +""", DeprecationWarning) super(RadialAxis, self).__init__(*args, **kwargs) class Scene(dict): """ - plotly.graph_objs.Scene is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.layout.Scene + plotly.graph_objs.Scene is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.layout.Scene """ - def __init__(self, *args, **kwargs): """ - plotly.graph_objs.Scene is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.layout.Scene + plotly.graph_objs.Scene is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.layout.Scene """ - warnings.warn( - """plotly.graph_objs.Scene is deprecated. + warnings.warn("""plotly.graph_objs.Scene is deprecated. Please replace it with one of the following more specific types - plotly.graph_objs.layout.Scene -""", - DeprecationWarning, - ) +""", DeprecationWarning) super(Scene, self).__init__(*args, **kwargs) class Stream(dict): """ - plotly.graph_objs.Stream is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.scatter.Stream - - plotly.graph_objs.area.Stream + plotly.graph_objs.Stream is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.scatter.Stream + - plotly.graph_objs.area.Stream """ - def __init__(self, *args, **kwargs): """ - plotly.graph_objs.Stream is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.scatter.Stream - - plotly.graph_objs.area.Stream + plotly.graph_objs.Stream is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.scatter.Stream + - plotly.graph_objs.area.Stream """ - warnings.warn( - """plotly.graph_objs.Stream is deprecated. + warnings.warn("""plotly.graph_objs.Stream is deprecated. Please replace it with one of the following more specific types - plotly.graph_objs.scatter.Stream - plotly.graph_objs.area.Stream -""", - DeprecationWarning, - ) +""", DeprecationWarning) super(Stream, self).__init__(*args, **kwargs) class XAxis(dict): """ - plotly.graph_objs.XAxis is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.layout.XAxis - - plotly.graph_objs.layout.scene.XAxis + plotly.graph_objs.XAxis is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.layout.XAxis + - plotly.graph_objs.layout.scene.XAxis """ - def __init__(self, *args, **kwargs): """ - plotly.graph_objs.XAxis is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.layout.XAxis - - plotly.graph_objs.layout.scene.XAxis + plotly.graph_objs.XAxis is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.layout.XAxis + - plotly.graph_objs.layout.scene.XAxis """ - warnings.warn( - """plotly.graph_objs.XAxis is deprecated. + warnings.warn("""plotly.graph_objs.XAxis is deprecated. Please replace it with one of the following more specific types - plotly.graph_objs.layout.XAxis - plotly.graph_objs.layout.scene.XAxis -""", - DeprecationWarning, - ) +""", DeprecationWarning) super(XAxis, self).__init__(*args, **kwargs) class YAxis(dict): """ - plotly.graph_objs.YAxis is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.layout.YAxis - - plotly.graph_objs.layout.scene.YAxis + plotly.graph_objs.YAxis is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.layout.YAxis + - plotly.graph_objs.layout.scene.YAxis """ - def __init__(self, *args, **kwargs): """ - plotly.graph_objs.YAxis is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.layout.YAxis - - plotly.graph_objs.layout.scene.YAxis + plotly.graph_objs.YAxis is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.layout.YAxis + - plotly.graph_objs.layout.scene.YAxis """ - warnings.warn( - """plotly.graph_objs.YAxis is deprecated. + warnings.warn("""plotly.graph_objs.YAxis is deprecated. Please replace it with one of the following more specific types - plotly.graph_objs.layout.YAxis - plotly.graph_objs.layout.scene.YAxis -""", - DeprecationWarning, - ) +""", DeprecationWarning) super(YAxis, self).__init__(*args, **kwargs) class ZAxis(dict): """ - plotly.graph_objs.ZAxis is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.layout.scene.ZAxis + plotly.graph_objs.ZAxis is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.layout.scene.ZAxis """ - def __init__(self, *args, **kwargs): """ - plotly.graph_objs.ZAxis is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.layout.scene.ZAxis + plotly.graph_objs.ZAxis is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.layout.scene.ZAxis """ - warnings.warn( - """plotly.graph_objs.ZAxis is deprecated. + warnings.warn("""plotly.graph_objs.ZAxis is deprecated. Please replace it with one of the following more specific types - plotly.graph_objs.layout.scene.ZAxis -""", - DeprecationWarning, - ) +""", DeprecationWarning) super(ZAxis, self).__init__(*args, **kwargs) class XBins(dict): """ - plotly.graph_objs.XBins is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.histogram.XBins - - plotly.graph_objs.histogram2d.XBins + plotly.graph_objs.XBins is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.histogram.XBins + - plotly.graph_objs.histogram2d.XBins """ - def __init__(self, *args, **kwargs): """ - plotly.graph_objs.XBins is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.histogram.XBins - - plotly.graph_objs.histogram2d.XBins + plotly.graph_objs.XBins is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.histogram.XBins + - plotly.graph_objs.histogram2d.XBins """ - warnings.warn( - """plotly.graph_objs.XBins is deprecated. + warnings.warn("""plotly.graph_objs.XBins is deprecated. Please replace it with one of the following more specific types - plotly.graph_objs.histogram.XBins - plotly.graph_objs.histogram2d.XBins -""", - DeprecationWarning, - ) +""", DeprecationWarning) super(XBins, self).__init__(*args, **kwargs) class YBins(dict): """ - plotly.graph_objs.YBins is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.histogram.YBins - - plotly.graph_objs.histogram2d.YBins + plotly.graph_objs.YBins is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.histogram.YBins + - plotly.graph_objs.histogram2d.YBins """ - def __init__(self, *args, **kwargs): """ - plotly.graph_objs.YBins is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.histogram.YBins - - plotly.graph_objs.histogram2d.YBins + plotly.graph_objs.YBins is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.histogram.YBins + - plotly.graph_objs.histogram2d.YBins """ - warnings.warn( - """plotly.graph_objs.YBins is deprecated. + warnings.warn("""plotly.graph_objs.YBins is deprecated. Please replace it with one of the following more specific types - plotly.graph_objs.histogram.YBins - plotly.graph_objs.histogram2d.YBins -""", - DeprecationWarning, - ) +""", DeprecationWarning) super(YBins, self).__init__(*args, **kwargs) class Trace(dict): """ - plotly.graph_objs.Trace is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.Scatter - - plotly.graph_objs.Bar - - plotly.graph_objs.Area - - plotly.graph_objs.Histogram - - etc. + plotly.graph_objs.Trace is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.Scatter + - plotly.graph_objs.Bar + - plotly.graph_objs.Area + - plotly.graph_objs.Histogram + - etc. """ - def __init__(self, *args, **kwargs): """ - plotly.graph_objs.Trace is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.Scatter - - plotly.graph_objs.Bar - - plotly.graph_objs.Area - - plotly.graph_objs.Histogram - - etc. + plotly.graph_objs.Trace is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.Scatter + - plotly.graph_objs.Bar + - plotly.graph_objs.Area + - plotly.graph_objs.Histogram + - etc. """ - warnings.warn( - """plotly.graph_objs.Trace is deprecated. + warnings.warn("""plotly.graph_objs.Trace is deprecated. Please replace it with one of the following more specific types - plotly.graph_objs.Scatter - plotly.graph_objs.Bar - plotly.graph_objs.Area - plotly.graph_objs.Histogram - etc. -""", - DeprecationWarning, - ) +""", DeprecationWarning) super(Trace, self).__init__(*args, **kwargs) class Histogram2dcontour(dict): """ - plotly.graph_objs.Histogram2dcontour is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.Histogram2dContour + plotly.graph_objs.Histogram2dcontour is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.Histogram2dContour """ - def __init__(self, *args, **kwargs): """ - plotly.graph_objs.Histogram2dcontour is deprecated. - Please replace it with one of the following more specific types - - plotly.graph_objs.Histogram2dContour + plotly.graph_objs.Histogram2dcontour is deprecated. +Please replace it with one of the following more specific types + - plotly.graph_objs.Histogram2dContour """ - warnings.warn( - """plotly.graph_objs.Histogram2dcontour is deprecated. + warnings.warn("""plotly.graph_objs.Histogram2dcontour is deprecated. Please replace it with one of the following more specific types - plotly.graph_objs.Histogram2dContour -""", - DeprecationWarning, - ) +""", DeprecationWarning) super(Histogram2dcontour, self).__init__(*args, **kwargs) + + diff --git a/packages/python/plotly/plotly/graph_objs/_figure.py b/packages/python/plotly/plotly/graph_objs/_figure.py index 4dd8e885487..7259c15a578 100644 --- a/packages/python/plotly/plotly/graph_objs/_figure.py +++ b/packages/python/plotly/plotly/graph_objs/_figure.py @@ -2,9 +2,9 @@ class Figure(BaseFigure): - def __init__( - self, data=None, layout=None, frames=None, skip_invalid=False, **kwargs - ): + + def __init__(self, data=None, layout=None, + frames=None, skip_invalid=False, **kwargs): """ Create a new :class:Figure instance @@ -35,10 +35,10 @@ def __init__( 'scatterternary', 'splom', 'streamtube', 'sunburst', 'surface', 'table', 'treemap', 'violin', 'volume', 'waterfall'] - + - All remaining properties are passed to the constructor of the specified trace type - + (e.g. [{'type': 'scatter', ...}, {'type': 'bar, ...}]) layout @@ -48,552 +48,6 @@ def __init__( - A dict of string/value properties that will be passed to the Layout constructor - Supported dict properties: - - activeselection - :class:`plotly.graph_objects.layout.Activeselec - tion` instance or dict with compatible - properties - activeshape - :class:`plotly.graph_objects.layout.Activeshape - ` instance or dict with compatible properties - annotations - A tuple of - :class:`plotly.graph_objects.layout.Annotation` - instances or dicts with compatible properties - annotationdefaults - When used in a template (as - layout.template.layout.annotationdefaults), - sets the default property values to use for - elements of layout.annotations - autosize - Determines whether or not a layout width or - height that has been left undefined by the user - is initialized on each relayout. Note that, - regardless of this attribute, an undefined - layout width or height is always initialized on - the first call to plot. - autotypenumbers - Using "strict" a numeric string in trace data - is not converted to a number. Using *convert - types* a numeric string in trace data may be - treated as a number during automatic axis - `type` detection. This is the default value; - however it could be overridden for individual - axes. - barcornerradius - Sets the rounding of bar corners. May be an - integer number of pixels, or a percentage of - bar width (as a string ending in %). - bargap - Sets the gap (in plot fraction) between bars of - adjacent location coordinates. - bargroupgap - Sets the gap (in plot fraction) between bars of - the same location coordinate. - barmode - Determines how bars at the same location - coordinate are displayed on the graph. With - "stack", the bars are stacked on top of one - another With "relative", the bars are stacked - on top of one another, with negative values - below the axis, positive values above With - "group", the bars are plotted next to one - another centered around the shared location. - With "overlay", the bars are plotted over one - another, you might need to reduce "opacity" to - see multiple bars. - barnorm - Sets the normalization for bar traces on the - graph. With "fraction", the value of each bar - is divided by the sum of all values at that - location coordinate. "percent" is the same but - multiplied by 100 to show percentages. - boxgap - Sets the gap (in plot fraction) between boxes - of adjacent location coordinates. Has no effect - on traces that have "width" set. - boxgroupgap - Sets the gap (in plot fraction) between boxes - of the same location coordinate. Has no effect - on traces that have "width" set. - boxmode - Determines how boxes at the same location - coordinate are displayed on the graph. If - "group", the boxes are plotted next to one - another centered around the shared location. If - "overlay", the boxes are plotted over one - another, you might need to set "opacity" to see - them multiple boxes. Has no effect on traces - that have "width" set. - calendar - Sets the default calendar system to use for - interpreting and displaying dates throughout - the plot. - clickmode - Determines the mode of single click - interactions. "event" is the default value and - emits the `plotly_click` event. In addition - this mode emits the `plotly_selected` event in - drag modes "lasso" and "select", but with no - event data attached (kept for compatibility - reasons). The "select" flag enables selecting - single data points via click. This mode also - supports persistent selections, meaning that - pressing Shift while clicking, adds to / - subtracts from an existing selection. "select" - with `hovermode`: "x" can be confusing, - consider explicitly setting `hovermode`: - "closest" when using this feature. Selection - events are sent accordingly as long as "event" - flag is set as well. When the "event" flag is - missing, `plotly_click` and `plotly_selected` - events are not fired. - coloraxis - :class:`plotly.graph_objects.layout.Coloraxis` - instance or dict with compatible properties - colorscale - :class:`plotly.graph_objects.layout.Colorscale` - instance or dict with compatible properties - colorway - Sets the default trace colors. - computed - Placeholder for exporting automargin-impacting - values namely `margin.t`, `margin.b`, - `margin.l` and `margin.r` in "full-json" mode. - datarevision - If provided, a changed value tells - `Plotly.react` that one or more data arrays has - changed. This way you can modify arrays in- - place rather than making a complete new copy - for an incremental change. If NOT provided, - `Plotly.react` assumes that data arrays are - being treated as immutable, thus any data array - with a different identity from its predecessor - contains new data. - dragmode - Determines the mode of drag interactions. - "select" and "lasso" apply only to scatter - traces with markers or text. "orbit" and - "turntable" apply only to 3D scenes. - editrevision - Controls persistence of user-driven changes in - `editable: true` configuration, other than - trace names and axis titles. Defaults to - `layout.uirevision`. - extendfunnelareacolors - If `true`, the funnelarea slice colors (whether - given by `funnelareacolorway` or inherited from - `colorway`) will be extended to three times its - original length by first repeating every color - 20% lighter then each color 20% darker. This is - intended to reduce the likelihood of reusing - the same color when you have many slices, but - you can set `false` to disable. Colors provided - in the trace, using `marker.colors`, are never - extended. - extendiciclecolors - If `true`, the icicle slice colors (whether - given by `iciclecolorway` or inherited from - `colorway`) will be extended to three times its - original length by first repeating every color - 20% lighter then each color 20% darker. This is - intended to reduce the likelihood of reusing - the same color when you have many slices, but - you can set `false` to disable. Colors provided - in the trace, using `marker.colors`, are never - extended. - extendpiecolors - If `true`, the pie slice colors (whether given - by `piecolorway` or inherited from `colorway`) - will be extended to three times its original - length by first repeating every color 20% - lighter then each color 20% darker. This is - intended to reduce the likelihood of reusing - the same color when you have many slices, but - you can set `false` to disable. Colors provided - in the trace, using `marker.colors`, are never - extended. - extendsunburstcolors - If `true`, the sunburst slice colors (whether - given by `sunburstcolorway` or inherited from - `colorway`) will be extended to three times its - original length by first repeating every color - 20% lighter then each color 20% darker. This is - intended to reduce the likelihood of reusing - the same color when you have many slices, but - you can set `false` to disable. Colors provided - in the trace, using `marker.colors`, are never - extended. - extendtreemapcolors - If `true`, the treemap slice colors (whether - given by `treemapcolorway` or inherited from - `colorway`) will be extended to three times its - original length by first repeating every color - 20% lighter then each color 20% darker. This is - intended to reduce the likelihood of reusing - the same color when you have many slices, but - you can set `false` to disable. Colors provided - in the trace, using `marker.colors`, are never - extended. - font - Sets the global font. Note that fonts used in - traces and other layout components inherit from - the global font. - funnelareacolorway - Sets the default funnelarea slice colors. - Defaults to the main `colorway` used for trace - colors. If you specify a new list here it can - still be extended with lighter and darker - colors, see `extendfunnelareacolors`. - funnelgap - Sets the gap (in plot fraction) between bars of - adjacent location coordinates. - funnelgroupgap - Sets the gap (in plot fraction) between bars of - the same location coordinate. - funnelmode - Determines how bars at the same location - coordinate are displayed on the graph. With - "stack", the bars are stacked on top of one - another With "group", the bars are plotted next - to one another centered around the shared - location. With "overlay", the bars are plotted - over one another, you might need to reduce - "opacity" to see multiple bars. - geo - :class:`plotly.graph_objects.layout.Geo` - instance or dict with compatible properties - grid - :class:`plotly.graph_objects.layout.Grid` - instance or dict with compatible properties - height - Sets the plot's height (in px). - hiddenlabels - hiddenlabels is the funnelarea & pie chart - analog of visible:'legendonly' but it can - contain many labels, and can simultaneously - hide slices from several pies/funnelarea charts - hiddenlabelssrc - Sets the source reference on Chart Studio Cloud - for `hiddenlabels`. - hidesources - Determines whether or not a text link citing - the data source is placed at the bottom-right - cored of the figure. Has only an effect only on - graphs that have been generated via forked - graphs from the Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise). - hoverdistance - Sets the default distance (in pixels) to look - for data to add hover labels (-1 means no - cutoff, 0 means no looking for data). This is - only a real distance for hovering on point-like - objects, like scatter points. For area-like - objects (bars, scatter fills, etc) hovering is - on inside the area and off outside, but these - objects will not supersede hover on point-like - objects in case of conflict. - hoverlabel - :class:`plotly.graph_objects.layout.Hoverlabel` - instance or dict with compatible properties - hovermode - Determines the mode of hover interactions. If - "closest", a single hoverlabel will appear for - the "closest" point within the `hoverdistance`. - If "x" (or "y"), multiple hoverlabels will - appear for multiple points at the "closest" x- - (or y-) coordinate within the `hoverdistance`, - with the caveat that no more than one - hoverlabel will appear per trace. If *x - unified* (or *y unified*), a single hoverlabel - will appear multiple points at the closest x- - (or y-) coordinate within the `hoverdistance` - with the caveat that no more than one - hoverlabel will appear per trace. In this mode, - spikelines are enabled by default perpendicular - to the specified axis. If false, hover - interactions are disabled. - hoversubplots - Determines expansion of hover effects to other - subplots If "single" just the axis pair of the - primary point is included without overlaying - subplots. If "overlaying" all subplots using - the main axis and occupying the same space are - included. If "axis", also include stacked - subplots using the same axis when `hovermode` - is set to "x", *x unified*, "y" or *y unified*. - iciclecolorway - Sets the default icicle slice colors. Defaults - to the main `colorway` used for trace colors. - If you specify a new list here it can still be - extended with lighter and darker colors, see - `extendiciclecolors`. - images - A tuple of - :class:`plotly.graph_objects.layout.Image` - instances or dicts with compatible properties - imagedefaults - When used in a template (as - layout.template.layout.imagedefaults), sets the - default property values to use for elements of - layout.images - legend - :class:`plotly.graph_objects.layout.Legend` - instance or dict with compatible properties - map - :class:`plotly.graph_objects.layout.Map` - instance or dict with compatible properties - mapbox - :class:`plotly.graph_objects.layout.Mapbox` - instance or dict with compatible properties - margin - :class:`plotly.graph_objects.layout.Margin` - instance or dict with compatible properties - meta - Assigns extra meta information that can be used - in various `text` attributes. Attributes such - as the graph, axis and colorbar `title.text`, - annotation `text` `trace.name` in legend items, - `rangeselector`, `updatemenus` and `sliders` - `label` text all support `meta`. One can access - `meta` fields using template strings: - `%{meta[i]}` where `i` is the index of the - `meta` item in question. `meta` can also be an - object for example `{key: value}` which can be - accessed %{meta[key]}. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - minreducedheight - Minimum height of the plot with - margin.automargin applied (in px) - minreducedwidth - Minimum width of the plot with - margin.automargin applied (in px) - modebar - :class:`plotly.graph_objects.layout.Modebar` - instance or dict with compatible properties - newselection - :class:`plotly.graph_objects.layout.Newselectio - n` instance or dict with compatible properties - newshape - :class:`plotly.graph_objects.layout.Newshape` - instance or dict with compatible properties - paper_bgcolor - Sets the background color of the paper where - the graph is drawn. - piecolorway - Sets the default pie slice colors. Defaults to - the main `colorway` used for trace colors. If - you specify a new list here it can still be - extended with lighter and darker colors, see - `extendpiecolors`. - plot_bgcolor - Sets the background color of the plotting area - in-between x and y axes. - polar - :class:`plotly.graph_objects.layout.Polar` - instance or dict with compatible properties - scattergap - Sets the gap (in plot fraction) between scatter - points of adjacent location coordinates. - Defaults to `bargap`. - scattermode - Determines how scatter points at the same - location coordinate are displayed on the graph. - With "group", the scatter points are plotted - next to one another centered around the shared - location. With "overlay", the scatter points - are plotted over one another, you might need to - reduce "opacity" to see multiple scatter - points. - scene - :class:`plotly.graph_objects.layout.Scene` - instance or dict with compatible properties - selectdirection - When `dragmode` is set to "select", this limits - the selection of the drag to horizontal, - vertical or diagonal. "h" only allows - horizontal selection, "v" only vertical, "d" - only diagonal and "any" sets no limit. - selectionrevision - Controls persistence of user-driven changes in - selected points from all traces. - selections - A tuple of - :class:`plotly.graph_objects.layout.Selection` - instances or dicts with compatible properties - selectiondefaults - When used in a template (as - layout.template.layout.selectiondefaults), sets - the default property values to use for elements - of layout.selections - separators - Sets the decimal and thousand separators. For - example, *. * puts a '.' before decimals and a - space between thousands. In English locales, - dflt is ".," but other locales may alter this - default. - shapes - A tuple of - :class:`plotly.graph_objects.layout.Shape` - instances or dicts with compatible properties - shapedefaults - When used in a template (as - layout.template.layout.shapedefaults), sets the - default property values to use for elements of - layout.shapes - showlegend - Determines whether or not a legend is drawn. - Default is `true` if there is a trace to show - and any of these: a) Two or more traces would - by default be shown in the legend. b) One pie - trace is shown in the legend. c) One trace is - explicitly given with `showlegend: true`. - sliders - A tuple of - :class:`plotly.graph_objects.layout.Slider` - instances or dicts with compatible properties - sliderdefaults - When used in a template (as - layout.template.layout.sliderdefaults), sets - the default property values to use for elements - of layout.sliders - smith - :class:`plotly.graph_objects.layout.Smith` - instance or dict with compatible properties - spikedistance - Sets the default distance (in pixels) to look - for data to draw spikelines to (-1 means no - cutoff, 0 means no looking for data). As with - hoverdistance, distance does not apply to area- - like objects. In addition, some objects can be - hovered on but will not generate spikelines, - such as scatter fills. - sunburstcolorway - Sets the default sunburst slice colors. - Defaults to the main `colorway` used for trace - colors. If you specify a new list here it can - still be extended with lighter and darker - colors, see `extendsunburstcolors`. - template - Default attributes to be applied to the plot. - This should be a dict with format: `{'layout': - layoutTemplate, 'data': {trace_type: - [traceTemplate, ...], ...}}` where - `layoutTemplate` is a dict matching the - structure of `figure.layout` and - `traceTemplate` is a dict matching the - structure of the trace with type `trace_type` - (e.g. 'scatter'). Alternatively, this may be - specified as an instance of - plotly.graph_objs.layout.Template. Trace - templates are applied cyclically to traces of - each type. Container arrays (eg `annotations`) - have special handling: An object ending in - `defaults` (eg `annotationdefaults`) is applied - to each array item. But if an item has a - `templateitemname` key we look in the template - array for an item with matching `name` and - apply that instead. If no matching `name` is - found we mark the item invisible. Any named - template item not referenced is appended to the - end of the array, so this can be used to add a - watermark annotation or a logo image, for - example. To omit one of these items on the - plot, make an item with matching - `templateitemname` and `visible: false`. - ternary - :class:`plotly.graph_objects.layout.Ternary` - instance or dict with compatible properties - title - :class:`plotly.graph_objects.layout.Title` - instance or dict with compatible properties - transition - Sets transition options used during - Plotly.react updates. - treemapcolorway - Sets the default treemap slice colors. Defaults - to the main `colorway` used for trace colors. - If you specify a new list here it can still be - extended with lighter and darker colors, see - `extendtreemapcolors`. - uirevision - Used to allow user interactions with the plot - to persist after `Plotly.react` calls that are - unaware of these interactions. If `uirevision` - is omitted, or if it is given and it changed - from the previous `Plotly.react` call, the - exact new figure is used. If `uirevision` is - truthy and did NOT change, any attribute that - has been affected by user interactions and did - not receive a different value in the new figure - will keep the interaction value. - `layout.uirevision` attribute serves as the - default for `uirevision` attributes in various - sub-containers. For finer control you can set - these sub-attributes directly. For example, if - your app separately controls the data on the x - and y axes you might set - `xaxis.uirevision=*time*` and - `yaxis.uirevision=*cost*`. Then if only the y - data is changed, you can update - `yaxis.uirevision=*quantity*` and the y axis - range will reset but the x axis range will - retain any user-driven zoom. - uniformtext - :class:`plotly.graph_objects.layout.Uniformtext - ` instance or dict with compatible properties - updatemenus - A tuple of - :class:`plotly.graph_objects.layout.Updatemenu` - instances or dicts with compatible properties - updatemenudefaults - When used in a template (as - layout.template.layout.updatemenudefaults), - sets the default property values to use for - elements of layout.updatemenus - violingap - Sets the gap (in plot fraction) between violins - of adjacent location coordinates. Has no effect - on traces that have "width" set. - violingroupgap - Sets the gap (in plot fraction) between violins - of the same location coordinate. Has no effect - on traces that have "width" set. - violinmode - Determines how violins at the same location - coordinate are displayed on the graph. If - "group", the violins are plotted next to one - another centered around the shared location. If - "overlay", the violins are plotted over one - another, you might need to set "opacity" to see - them multiple violins. Has no effect on traces - that have "width" set. - waterfallgap - Sets the gap (in plot fraction) between bars of - adjacent location coordinates. - waterfallgroupgap - Sets the gap (in plot fraction) between bars of - the same location coordinate. - waterfallmode - Determines how bars at the same location - coordinate are displayed on the graph. With - "group", the bars are plotted next to one - another centered around the shared location. - With "overlay", the bars are plotted over one - another, you might need to reduce "opacity" to - see multiple bars. - width - Sets the plot's width (in px). - xaxis - :class:`plotly.graph_objects.layout.XAxis` - instance or dict with compatible properties - yaxis - :class:`plotly.graph_objects.layout.YAxis` - instance or dict with compatible properties - frames The 'frames' property is a tuple of instances of Frame that may be specified as: @@ -601,32 +55,6 @@ def __init__( - A list or tuple of dicts of string/value properties that will be passed to the Frame constructor - Supported dict properties: - - baseframe - The name of the frame into which this frame's - properties are merged before applying. This is - used to unify properties and avoid needing to - specify the same values for the same properties - in multiple frames. - data - A list of traces this frame modifies. The - format is identical to the normal trace - definition. - group - An identifier that specifies the group to which - the frame belongs, used by animate to select a - subset of frames. - layout - Layout properties which this frame modifies. - The format is identical to the normal layout - definition. - name - A label by which to identify the frame - traces - A list of trace indices that identify the - respective traces in the data attribute - skip_invalid: bool If True, invalid properties in the figure specification will be skipped silently. If False (default) invalid properties in the @@ -638,11 +66,13 @@ def __init__( if a property in the specification of data, layout, or frames is invalid AND skip_invalid is False """ - super(Figure, self).__init__(data, layout, frames, skip_invalid, **kwargs) - + super(Figure ,self).__init__(data, layout, + frames, skip_invalid, + **kwargs) + def update(self, dict1=None, overwrite=False, **kwargs) -> "Figure": - """ - + ''' + Update the properties of the figure with a dict and/or with keyword arguments. @@ -687,22 +117,13 @@ def update(self, dict1=None, overwrite=False, **kwargs) -> "Figure": ------- BaseFigure Updated figure - - """ + + ''' return super(Figure, self).update(dict1, overwrite, **kwargs) - - def update_traces( - self, - patch=None, - selector=None, - row=None, - col=None, - secondary_y=None, - overwrite=False, - **kwargs, - ) -> "Figure": - """ - + + def update_traces(self, patch=None, selector=None, row=None, col=None, secondary_y=None, overwrite=False, **kwargs) -> "Figure": + ''' + Perform a property update operation on all traces that satisfy the specified selection criteria @@ -752,15 +173,13 @@ def update_traces( ------- self Returns the Figure object that the method was called on - - """ - return super(Figure, self).update_traces( - patch, selector, row, col, secondary_y, overwrite, **kwargs - ) - + + ''' + return super(Figure, self).update_traces(patch, selector, row, col, secondary_y, overwrite, **kwargs) + def update_layout(self, dict1=None, overwrite=False, **kwargs) -> "Figure": - """ - + ''' + Update the properties of the figure's layout with a dict and/or with keyword arguments. @@ -782,15 +201,13 @@ def update_layout(self, dict1=None, overwrite=False, **kwargs) -> "Figure": ------- BaseFigure The Figure object that the update_layout method was called on - - """ + + ''' return super(Figure, self).update_layout(dict1, overwrite, **kwargs) - - def for_each_trace( - self, fn, selector=None, row=None, col=None, secondary_y=None - ) -> "Figure": - """ - + + def for_each_trace(self, fn, selector=None, row=None, col=None, secondary_y=None) -> "Figure": + ''' + Apply a function to all traces that satisfy the specified selection criteria @@ -830,15 +247,13 @@ def for_each_trace( ------- self Returns the Figure object that the method was called on - - """ + + ''' return super(Figure, self).for_each_trace(fn, selector, row, col, secondary_y) - - def add_trace( - self, trace, row=None, col=None, secondary_y=None, exclude_empty_subplots=False - ) -> "Figure": - """ - + + def add_trace(self, trace, row=None, col=None, secondary_y=None, exclude_empty_subplots=False) -> "Figure": + ''' + Add a trace to the figure Parameters @@ -907,22 +322,13 @@ def add_trace( Figure(...) >>> fig.add_trace(go.Scatter(x=[1,2,3], y=[2,1,2]), row=2, col=1) # doctest: +ELLIPSIS Figure(...) - - """ - return super(Figure, self).add_trace( - trace, row, col, secondary_y, exclude_empty_subplots - ) - - def add_traces( - self, - data, - rows=None, - cols=None, - secondary_ys=None, - exclude_empty_subplots=False, - ) -> "Figure": - """ - + + ''' + return super(Figure, self).add_trace(trace, row, col, secondary_y, exclude_empty_subplots) + + def add_traces(self, data,rows=None,cols=None,secondary_ys=None,exclude_empty_subplots=False) -> "Figure": + ''' + Add traces to the figure Parameters @@ -987,319 +393,274 @@ def add_traces( ... go.Scatter(x=[1,2,3], y=[2,1,2])], ... rows=[1, 2], cols=[1, 1]) # doctest: +ELLIPSIS Figure(...) - - """ - return super(Figure, self).add_traces( - data, rows, cols, secondary_ys, exclude_empty_subplots - ) - - def add_vline( - self, - x, - row="all", - col="all", - exclude_empty_subplots=True, - annotation=None, - **kwargs, - ) -> "Figure": - """ - - Add a vertical line to a plot or subplot that extends infinitely in the - y-dimension. - - Parameters - ---------- - x: float or int - A number representing the x coordinate of the vertical line. - exclude_empty_subplots: Boolean - If True (default) do not place the shape on subplots that have no data - plotted on them. - row: None, int or 'all' - Subplot row for shape indexed starting at 1. If 'all', addresses all rows in - the specified column(s). If both row and col are None, addresses the - first subplot if subplots exist, or the only plot. By default is "all". - col: None, int or 'all' - Subplot column for shape indexed starting at 1. If 'all', addresses all rows in - the specified column(s). If both row and col are None, addresses the - first subplot if subplots exist, or the only plot. By default is "all". - annotation: dict or plotly.graph_objects.layout.Annotation. If dict(), - it is interpreted as describing an annotation. The annotation is - placed relative to the shape based on annotation_position (see - below) unless its x or y value has been specified for the annotation - passed here. xref and yref are always the same as for the added - shape and cannot be overridden. - annotation_position: a string containing optionally ["top", "bottom"] - and ["left", "right"] specifying where the text should be anchored - to on the line. Example positions are "bottom left", "right top", - "right", "bottom". If an annotation is added but annotation_position is - not specified, this defaults to "top right". - annotation_*: any parameters to go.layout.Annotation can be passed as - keywords by prefixing them with "annotation_". For example, to specify the - annotation text "example" you can pass annotation_text="example" as a - keyword argument. - **kwargs: - Any named function parameters that can be passed to 'add_shape', - except for x0, x1, y0, y1 or type. - """ - return super(Figure, self).add_vline( - x, row, col, exclude_empty_subplots, annotation, **kwargs - ) - - def add_hline( - self, - y, - row="all", - col="all", - exclude_empty_subplots=True, - annotation=None, - **kwargs, - ) -> "Figure": - """ - - Add a horizontal line to a plot or subplot that extends infinitely in the - x-dimension. - - Parameters - ---------- - y: float or int - A number representing the y coordinate of the horizontal line. - exclude_empty_subplots: Boolean - If True (default) do not place the shape on subplots that have no data - plotted on them. - row: None, int or 'all' - Subplot row for shape indexed starting at 1. If 'all', addresses all rows in - the specified column(s). If both row and col are None, addresses the - first subplot if subplots exist, or the only plot. By default is "all". - col: None, int or 'all' - Subplot column for shape indexed starting at 1. If 'all', addresses all rows in - the specified column(s). If both row and col are None, addresses the - first subplot if subplots exist, or the only plot. By default is "all". - annotation: dict or plotly.graph_objects.layout.Annotation. If dict(), - it is interpreted as describing an annotation. The annotation is - placed relative to the shape based on annotation_position (see - below) unless its x or y value has been specified for the annotation - passed here. xref and yref are always the same as for the added - shape and cannot be overridden. - annotation_position: a string containing optionally ["top", "bottom"] - and ["left", "right"] specifying where the text should be anchored - to on the line. Example positions are "bottom left", "right top", - "right", "bottom". If an annotation is added but annotation_position is - not specified, this defaults to "top right". - annotation_*: any parameters to go.layout.Annotation can be passed as - keywords by prefixing them with "annotation_". For example, to specify the - annotation text "example" you can pass annotation_text="example" as a - keyword argument. - **kwargs: - Any named function parameters that can be passed to 'add_shape', - except for x0, x1, y0, y1 or type. - """ - return super(Figure, self).add_hline( - y, row, col, exclude_empty_subplots, annotation, **kwargs - ) - - def add_vrect( - self, - x0, - x1, - row="all", - col="all", - exclude_empty_subplots=True, - annotation=None, - **kwargs, - ) -> "Figure": - """ - - Add a rectangle to a plot or subplot that extends infinitely in the - y-dimension. - - Parameters - ---------- - x0: float or int - A number representing the x coordinate of one side of the rectangle. - x1: float or int - A number representing the x coordinate of the other side of the rectangle. - exclude_empty_subplots: Boolean - If True (default) do not place the shape on subplots that have no data - plotted on them. - row: None, int or 'all' - Subplot row for shape indexed starting at 1. If 'all', addresses all rows in - the specified column(s). If both row and col are None, addresses the - first subplot if subplots exist, or the only plot. By default is "all". - col: None, int or 'all' - Subplot column for shape indexed starting at 1. If 'all', addresses all rows in - the specified column(s). If both row and col are None, addresses the - first subplot if subplots exist, or the only plot. By default is "all". - annotation: dict or plotly.graph_objects.layout.Annotation. If dict(), - it is interpreted as describing an annotation. The annotation is - placed relative to the shape based on annotation_position (see - below) unless its x or y value has been specified for the annotation - passed here. xref and yref are always the same as for the added - shape and cannot be overridden. - annotation_position: a string containing optionally ["inside", "outside"], ["top", "bottom"] - and ["left", "right"] specifying where the text should be anchored - to on the rectangle. Example positions are "outside top left", "inside - bottom", "right", "inside left", "inside" ("outside" is not supported). If - an annotation is added but annotation_position is not specified this - defaults to "inside top right". - annotation_*: any parameters to go.layout.Annotation can be passed as - keywords by prefixing them with "annotation_". For example, to specify the - annotation text "example" you can pass annotation_text="example" as a - keyword argument. - **kwargs: - Any named function parameters that can be passed to 'add_shape', - except for x0, x1, y0, y1 or type. - """ - return super(Figure, self).add_vrect( - x0, x1, row, col, exclude_empty_subplots, annotation, **kwargs - ) - - def add_hrect( - self, - y0, - y1, - row="all", - col="all", - exclude_empty_subplots=True, - annotation=None, - **kwargs, - ) -> "Figure": - """ - - Add a rectangle to a plot or subplot that extends infinitely in the - x-dimension. - - Parameters - ---------- - y0: float or int - A number representing the y coordinate of one side of the rectangle. - y1: float or int - A number representing the y coordinate of the other side of the rectangle. - exclude_empty_subplots: Boolean - If True (default) do not place the shape on subplots that have no data - plotted on them. - row: None, int or 'all' - Subplot row for shape indexed starting at 1. If 'all', addresses all rows in - the specified column(s). If both row and col are None, addresses the - first subplot if subplots exist, or the only plot. By default is "all". - col: None, int or 'all' - Subplot column for shape indexed starting at 1. If 'all', addresses all rows in - the specified column(s). If both row and col are None, addresses the - first subplot if subplots exist, or the only plot. By default is "all". - annotation: dict or plotly.graph_objects.layout.Annotation. If dict(), - it is interpreted as describing an annotation. The annotation is - placed relative to the shape based on annotation_position (see - below) unless its x or y value has been specified for the annotation - passed here. xref and yref are always the same as for the added - shape and cannot be overridden. - annotation_position: a string containing optionally ["inside", "outside"], ["top", "bottom"] - and ["left", "right"] specifying where the text should be anchored - to on the rectangle. Example positions are "outside top left", "inside - bottom", "right", "inside left", "inside" ("outside" is not supported). If - an annotation is added but annotation_position is not specified this - defaults to "inside top right". - annotation_*: any parameters to go.layout.Annotation can be passed as - keywords by prefixing them with "annotation_". For example, to specify the - annotation text "example" you can pass annotation_text="example" as a - keyword argument. - **kwargs: - Any named function parameters that can be passed to 'add_shape', - except for x0, x1, y0, y1 or type. - """ - return super(Figure, self).add_hrect( - y0, y1, row, col, exclude_empty_subplots, annotation, **kwargs - ) - + + ''' + return super(Figure, self).add_traces(data,rows,cols,secondary_ys,exclude_empty_subplots) + + def add_vline(self, x,row="all",col="all",exclude_empty_subplots=True,annotation=None,**kwargs) -> "Figure": + ''' + +Add a vertical line to a plot or subplot that extends infinitely in the +y-dimension. + +Parameters +---------- +x: float or int + A number representing the x coordinate of the vertical line. +exclude_empty_subplots: Boolean + If True (default) do not place the shape on subplots that have no data + plotted on them. +row: None, int or 'all' + Subplot row for shape indexed starting at 1. If 'all', addresses all rows in + the specified column(s). If both row and col are None, addresses the + first subplot if subplots exist, or the only plot. By default is "all". +col: None, int or 'all' + Subplot column for shape indexed starting at 1. If 'all', addresses all rows in + the specified column(s). If both row and col are None, addresses the + first subplot if subplots exist, or the only plot. By default is "all". +annotation: dict or plotly.graph_objects.layout.Annotation. If dict(), + it is interpreted as describing an annotation. The annotation is + placed relative to the shape based on annotation_position (see + below) unless its x or y value has been specified for the annotation + passed here. xref and yref are always the same as for the added + shape and cannot be overridden. +annotation_position: a string containing optionally ["top", "bottom"] + and ["left", "right"] specifying where the text should be anchored + to on the line. Example positions are "bottom left", "right top", + "right", "bottom". If an annotation is added but annotation_position is + not specified, this defaults to "top right". +annotation_*: any parameters to go.layout.Annotation can be passed as + keywords by prefixing them with "annotation_". For example, to specify the + annotation text "example" you can pass annotation_text="example" as a + keyword argument. +**kwargs: + Any named function parameters that can be passed to 'add_shape', + except for x0, x1, y0, y1 or type. + ''' + return super(Figure, self).add_vline(x,row,col,exclude_empty_subplots,annotation,**kwargs) + + def add_hline(self, y,row="all",col="all",exclude_empty_subplots=True,annotation=None,**kwargs) -> "Figure": + ''' + +Add a horizontal line to a plot or subplot that extends infinitely in the +x-dimension. + +Parameters +---------- +y: float or int + A number representing the y coordinate of the horizontal line. +exclude_empty_subplots: Boolean + If True (default) do not place the shape on subplots that have no data + plotted on them. +row: None, int or 'all' + Subplot row for shape indexed starting at 1. If 'all', addresses all rows in + the specified column(s). If both row and col are None, addresses the + first subplot if subplots exist, or the only plot. By default is "all". +col: None, int or 'all' + Subplot column for shape indexed starting at 1. If 'all', addresses all rows in + the specified column(s). If both row and col are None, addresses the + first subplot if subplots exist, or the only plot. By default is "all". +annotation: dict or plotly.graph_objects.layout.Annotation. If dict(), + it is interpreted as describing an annotation. The annotation is + placed relative to the shape based on annotation_position (see + below) unless its x or y value has been specified for the annotation + passed here. xref and yref are always the same as for the added + shape and cannot be overridden. +annotation_position: a string containing optionally ["top", "bottom"] + and ["left", "right"] specifying where the text should be anchored + to on the line. Example positions are "bottom left", "right top", + "right", "bottom". If an annotation is added but annotation_position is + not specified, this defaults to "top right". +annotation_*: any parameters to go.layout.Annotation can be passed as + keywords by prefixing them with "annotation_". For example, to specify the + annotation text "example" you can pass annotation_text="example" as a + keyword argument. +**kwargs: + Any named function parameters that can be passed to 'add_shape', + except for x0, x1, y0, y1 or type. + ''' + return super(Figure, self).add_hline(y,row,col,exclude_empty_subplots,annotation,**kwargs) + + def add_vrect(self, x0,x1,row="all",col="all",exclude_empty_subplots=True,annotation=None,**kwargs) -> "Figure": + ''' + +Add a rectangle to a plot or subplot that extends infinitely in the +y-dimension. + +Parameters +---------- +x0: float or int + A number representing the x coordinate of one side of the rectangle. +x1: float or int + A number representing the x coordinate of the other side of the rectangle. +exclude_empty_subplots: Boolean + If True (default) do not place the shape on subplots that have no data + plotted on them. +row: None, int or 'all' + Subplot row for shape indexed starting at 1. If 'all', addresses all rows in + the specified column(s). If both row and col are None, addresses the + first subplot if subplots exist, or the only plot. By default is "all". +col: None, int or 'all' + Subplot column for shape indexed starting at 1. If 'all', addresses all rows in + the specified column(s). If both row and col are None, addresses the + first subplot if subplots exist, or the only plot. By default is "all". +annotation: dict or plotly.graph_objects.layout.Annotation. If dict(), + it is interpreted as describing an annotation. The annotation is + placed relative to the shape based on annotation_position (see + below) unless its x or y value has been specified for the annotation + passed here. xref and yref are always the same as for the added + shape and cannot be overridden. +annotation_position: a string containing optionally ["inside", "outside"], ["top", "bottom"] + and ["left", "right"] specifying where the text should be anchored + to on the rectangle. Example positions are "outside top left", "inside + bottom", "right", "inside left", "inside" ("outside" is not supported). If + an annotation is added but annotation_position is not specified this + defaults to "inside top right". +annotation_*: any parameters to go.layout.Annotation can be passed as + keywords by prefixing them with "annotation_". For example, to specify the + annotation text "example" you can pass annotation_text="example" as a + keyword argument. +**kwargs: + Any named function parameters that can be passed to 'add_shape', + except for x0, x1, y0, y1 or type. + ''' + return super(Figure, self).add_vrect(x0,x1,row,col,exclude_empty_subplots,annotation,**kwargs) + + def add_hrect(self, y0,y1,row="all",col="all",exclude_empty_subplots=True,annotation=None,**kwargs) -> "Figure": + ''' + +Add a rectangle to a plot or subplot that extends infinitely in the +x-dimension. + +Parameters +---------- +y0: float or int + A number representing the y coordinate of one side of the rectangle. +y1: float or int + A number representing the y coordinate of the other side of the rectangle. +exclude_empty_subplots: Boolean + If True (default) do not place the shape on subplots that have no data + plotted on them. +row: None, int or 'all' + Subplot row for shape indexed starting at 1. If 'all', addresses all rows in + the specified column(s). If both row and col are None, addresses the + first subplot if subplots exist, or the only plot. By default is "all". +col: None, int or 'all' + Subplot column for shape indexed starting at 1. If 'all', addresses all rows in + the specified column(s). If both row and col are None, addresses the + first subplot if subplots exist, or the only plot. By default is "all". +annotation: dict or plotly.graph_objects.layout.Annotation. If dict(), + it is interpreted as describing an annotation. The annotation is + placed relative to the shape based on annotation_position (see + below) unless its x or y value has been specified for the annotation + passed here. xref and yref are always the same as for the added + shape and cannot be overridden. +annotation_position: a string containing optionally ["inside", "outside"], ["top", "bottom"] + and ["left", "right"] specifying where the text should be anchored + to on the rectangle. Example positions are "outside top left", "inside + bottom", "right", "inside left", "inside" ("outside" is not supported). If + an annotation is added but annotation_position is not specified this + defaults to "inside top right". +annotation_*: any parameters to go.layout.Annotation can be passed as + keywords by prefixing them with "annotation_". For example, to specify the + annotation text "example" you can pass annotation_text="example" as a + keyword argument. +**kwargs: + Any named function parameters that can be passed to 'add_shape', + except for x0, x1, y0, y1 or type. + ''' + return super(Figure, self).add_hrect(y0,y1,row,col,exclude_empty_subplots,annotation,**kwargs) + def set_subplots(self, rows=None, cols=None, **make_subplots_args) -> "Figure": - """ - + ''' + Add subplots to this figure. If the figure already contains subplots, then this throws an error. Accepts any keyword arguments that plotly.subplots.make_subplots accepts. - - """ + + ''' return super(Figure, self).set_subplots(rows, cols, **make_subplots_args) - - def add_bar( - self, - alignmentgroup=None, - base=None, - basesrc=None, - cliponaxis=None, - constraintext=None, - customdata=None, - customdatasrc=None, - dx=None, - dy=None, - error_x=None, - error_y=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - insidetextanchor=None, - insidetextfont=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - marker=None, - meta=None, - metasrc=None, - name=None, - offset=None, - offsetgroup=None, - offsetsrc=None, - opacity=None, - orientation=None, - outsidetextfont=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - text=None, - textangle=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - width=None, - widthsrc=None, - x=None, - x0=None, - xaxis=None, - xcalendar=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - y=None, - y0=None, - yaxis=None, - ycalendar=None, - yhoverformat=None, - yperiod=None, - yperiod0=None, - yperiodalignment=None, - ysrc=None, - zorder=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "Figure": + + def add_bar(self, + alignmentgroup=None, + base=None, + basesrc=None, + cliponaxis=None, + constraintext=None, + customdata=None, + customdatasrc=None, + dx=None, + dy=None, + error_x=None, + error_y=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + insidetextanchor=None, + insidetextfont=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + marker=None, + meta=None, + metasrc=None, + name=None, + offset=None, + offsetgroup=None, + offsetsrc=None, + opacity=None, + orientation=None, + outsidetextfont=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + text=None, + textangle=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + width=None, + widthsrc=None, + x=None, + x0=None, + xaxis=None, + xcalendar=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + y=None, + y0=None, + yaxis=None, + ycalendar=None, + yhoverformat=None, + yperiod=None, + yperiod0=None, + yperiodalignment=None, + ysrc=None, + zorder=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'Figure': """ Add a new Bar trace @@ -1708,139 +1069,137 @@ def add_bar( Figure """ from plotly.graph_objs import Bar - new_trace = Bar( - alignmentgroup=alignmentgroup, - base=base, - basesrc=basesrc, - cliponaxis=cliponaxis, - constraintext=constraintext, - customdata=customdata, - customdatasrc=customdatasrc, - dx=dx, - dy=dy, - error_x=error_x, - error_y=error_y, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - insidetextanchor=insidetextanchor, - insidetextfont=insidetextfont, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - marker=marker, - meta=meta, - metasrc=metasrc, - name=name, - offset=offset, - offsetgroup=offsetgroup, - offsetsrc=offsetsrc, - opacity=opacity, - orientation=orientation, - outsidetextfont=outsidetextfont, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - text=text, - textangle=textangle, - textfont=textfont, - textposition=textposition, - textpositionsrc=textpositionsrc, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - width=width, - widthsrc=widthsrc, - x=x, - x0=x0, - xaxis=xaxis, - xcalendar=xcalendar, - xhoverformat=xhoverformat, - xperiod=xperiod, - xperiod0=xperiod0, - xperiodalignment=xperiodalignment, - xsrc=xsrc, - y=y, - y0=y0, - yaxis=yaxis, - ycalendar=ycalendar, - yhoverformat=yhoverformat, - yperiod=yperiod, - yperiod0=yperiod0, - yperiodalignment=yperiodalignment, - ysrc=ysrc, - zorder=zorder, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_barpolar( - self, - base=None, - basesrc=None, - customdata=None, - customdatasrc=None, - dr=None, - dtheta=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - marker=None, - meta=None, - metasrc=None, - name=None, - offset=None, - offsetsrc=None, - opacity=None, - r=None, - r0=None, - rsrc=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - subplot=None, - text=None, - textsrc=None, - theta=None, - theta0=None, - thetasrc=None, - thetaunit=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - width=None, - widthsrc=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + alignmentgroup=alignmentgroup, + base=base, + basesrc=basesrc, + cliponaxis=cliponaxis, + constraintext=constraintext, + customdata=customdata, + customdatasrc=customdatasrc, + dx=dx, + dy=dy, + error_x=error_x, + error_y=error_y, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + insidetextanchor=insidetextanchor, + insidetextfont=insidetextfont, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + marker=marker, + meta=meta, + metasrc=metasrc, + name=name, + offset=offset, + offsetgroup=offsetgroup, + offsetsrc=offsetsrc, + opacity=opacity, + orientation=orientation, + outsidetextfont=outsidetextfont, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + text=text, + textangle=textangle, + textfont=textfont, + textposition=textposition, + textpositionsrc=textpositionsrc, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + width=width, + widthsrc=widthsrc, + x=x, + x0=x0, + xaxis=xaxis, + xcalendar=xcalendar, + xhoverformat=xhoverformat, + xperiod=xperiod, + xperiod0=xperiod0, + xperiodalignment=xperiodalignment, + xsrc=xsrc, + y=y, + y0=y0, + yaxis=yaxis, + ycalendar=ycalendar, + yhoverformat=yhoverformat, + yperiod=yperiod, + yperiod0=yperiod0, + yperiodalignment=yperiodalignment, + ysrc=ysrc, + zorder=zorder, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_barpolar(self, + base=None, + basesrc=None, + customdata=None, + customdatasrc=None, + dr=None, + dtheta=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + marker=None, + meta=None, + metasrc=None, + name=None, + offset=None, + offsetsrc=None, + opacity=None, + r=None, + r0=None, + rsrc=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + subplot=None, + text=None, + textsrc=None, + theta=None, + theta0=None, + thetasrc=None, + thetaunit=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + width=None, + widthsrc=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Barpolar trace @@ -2082,152 +1441,150 @@ def add_barpolar( Figure """ from plotly.graph_objs import Barpolar - new_trace = Barpolar( - base=base, - basesrc=basesrc, - customdata=customdata, - customdatasrc=customdatasrc, - dr=dr, - dtheta=dtheta, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - marker=marker, - meta=meta, - metasrc=metasrc, - name=name, - offset=offset, - offsetsrc=offsetsrc, - opacity=opacity, - r=r, - r0=r0, - rsrc=rsrc, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - subplot=subplot, - text=text, - textsrc=textsrc, - theta=theta, - theta0=theta0, - thetasrc=thetasrc, - thetaunit=thetaunit, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - width=width, - widthsrc=widthsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_box( - self, - alignmentgroup=None, - boxmean=None, - boxpoints=None, - customdata=None, - customdatasrc=None, - dx=None, - dy=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hoveron=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - jitter=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - lowerfence=None, - lowerfencesrc=None, - marker=None, - mean=None, - meansrc=None, - median=None, - mediansrc=None, - meta=None, - metasrc=None, - name=None, - notched=None, - notchspan=None, - notchspansrc=None, - notchwidth=None, - offsetgroup=None, - opacity=None, - orientation=None, - pointpos=None, - q1=None, - q1src=None, - q3=None, - q3src=None, - quartilemethod=None, - sd=None, - sdmultiple=None, - sdsrc=None, - selected=None, - selectedpoints=None, - showlegend=None, - showwhiskers=None, - sizemode=None, - stream=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - unselected=None, - upperfence=None, - upperfencesrc=None, - visible=None, - whiskerwidth=None, - width=None, - x=None, - x0=None, - xaxis=None, - xcalendar=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - y=None, - y0=None, - yaxis=None, - ycalendar=None, - yhoverformat=None, - yperiod=None, - yperiod0=None, - yperiodalignment=None, - ysrc=None, - zorder=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "Figure": + + base=base, + basesrc=basesrc, + customdata=customdata, + customdatasrc=customdatasrc, + dr=dr, + dtheta=dtheta, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + marker=marker, + meta=meta, + metasrc=metasrc, + name=name, + offset=offset, + offsetsrc=offsetsrc, + opacity=opacity, + r=r, + r0=r0, + rsrc=rsrc, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + subplot=subplot, + text=text, + textsrc=textsrc, + theta=theta, + theta0=theta0, + thetasrc=thetasrc, + thetaunit=thetaunit, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + width=width, + widthsrc=widthsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_box(self, + alignmentgroup=None, + boxmean=None, + boxpoints=None, + customdata=None, + customdatasrc=None, + dx=None, + dy=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hoveron=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + jitter=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + lowerfence=None, + lowerfencesrc=None, + marker=None, + mean=None, + meansrc=None, + median=None, + mediansrc=None, + meta=None, + metasrc=None, + name=None, + notched=None, + notchspan=None, + notchspansrc=None, + notchwidth=None, + offsetgroup=None, + opacity=None, + orientation=None, + pointpos=None, + q1=None, + q1src=None, + q3=None, + q3src=None, + quartilemethod=None, + sd=None, + sdmultiple=None, + sdsrc=None, + selected=None, + selectedpoints=None, + showlegend=None, + showwhiskers=None, + sizemode=None, + stream=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + unselected=None, + upperfence=None, + upperfencesrc=None, + visible=None, + whiskerwidth=None, + width=None, + x=None, + x0=None, + xaxis=None, + xcalendar=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + y=None, + y0=None, + yaxis=None, + ycalendar=None, + yhoverformat=None, + yperiod=None, + yperiod0=None, + yperiodalignment=None, + ysrc=None, + zorder=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'Figure': """ Add a new Box trace @@ -2729,154 +2086,152 @@ def add_box( Figure """ from plotly.graph_objs import Box - new_trace = Box( - alignmentgroup=alignmentgroup, - boxmean=boxmean, - boxpoints=boxpoints, - customdata=customdata, - customdatasrc=customdatasrc, - dx=dx, - dy=dy, - fillcolor=fillcolor, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hoveron=hoveron, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - jitter=jitter, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - lowerfence=lowerfence, - lowerfencesrc=lowerfencesrc, - marker=marker, - mean=mean, - meansrc=meansrc, - median=median, - mediansrc=mediansrc, - meta=meta, - metasrc=metasrc, - name=name, - notched=notched, - notchspan=notchspan, - notchspansrc=notchspansrc, - notchwidth=notchwidth, - offsetgroup=offsetgroup, - opacity=opacity, - orientation=orientation, - pointpos=pointpos, - q1=q1, - q1src=q1src, - q3=q3, - q3src=q3src, - quartilemethod=quartilemethod, - sd=sd, - sdmultiple=sdmultiple, - sdsrc=sdsrc, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - showwhiskers=showwhiskers, - sizemode=sizemode, - stream=stream, - text=text, - textsrc=textsrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - upperfence=upperfence, - upperfencesrc=upperfencesrc, - visible=visible, - whiskerwidth=whiskerwidth, - width=width, - x=x, - x0=x0, - xaxis=xaxis, - xcalendar=xcalendar, - xhoverformat=xhoverformat, - xperiod=xperiod, - xperiod0=xperiod0, - xperiodalignment=xperiodalignment, - xsrc=xsrc, - y=y, - y0=y0, - yaxis=yaxis, - ycalendar=ycalendar, - yhoverformat=yhoverformat, - yperiod=yperiod, - yperiod0=yperiod0, - yperiodalignment=yperiodalignment, - ysrc=ysrc, - zorder=zorder, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_candlestick( - self, - close=None, - closesrc=None, - customdata=None, - customdatasrc=None, - decreasing=None, - high=None, - highsrc=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - increasing=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - low=None, - lowsrc=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - open=None, - opensrc=None, - selectedpoints=None, - showlegend=None, - stream=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - visible=None, - whiskerwidth=None, - x=None, - xaxis=None, - xcalendar=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - yaxis=None, - yhoverformat=None, - zorder=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "Figure": + + alignmentgroup=alignmentgroup, + boxmean=boxmean, + boxpoints=boxpoints, + customdata=customdata, + customdatasrc=customdatasrc, + dx=dx, + dy=dy, + fillcolor=fillcolor, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hoveron=hoveron, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + jitter=jitter, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + lowerfence=lowerfence, + lowerfencesrc=lowerfencesrc, + marker=marker, + mean=mean, + meansrc=meansrc, + median=median, + mediansrc=mediansrc, + meta=meta, + metasrc=metasrc, + name=name, + notched=notched, + notchspan=notchspan, + notchspansrc=notchspansrc, + notchwidth=notchwidth, + offsetgroup=offsetgroup, + opacity=opacity, + orientation=orientation, + pointpos=pointpos, + q1=q1, + q1src=q1src, + q3=q3, + q3src=q3src, + quartilemethod=quartilemethod, + sd=sd, + sdmultiple=sdmultiple, + sdsrc=sdsrc, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + showwhiskers=showwhiskers, + sizemode=sizemode, + stream=stream, + text=text, + textsrc=textsrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + upperfence=upperfence, + upperfencesrc=upperfencesrc, + visible=visible, + whiskerwidth=whiskerwidth, + width=width, + x=x, + x0=x0, + xaxis=xaxis, + xcalendar=xcalendar, + xhoverformat=xhoverformat, + xperiod=xperiod, + xperiod0=xperiod0, + xperiodalignment=xperiodalignment, + xsrc=xsrc, + y=y, + y0=y0, + yaxis=yaxis, + ycalendar=ycalendar, + yhoverformat=yhoverformat, + yperiod=yperiod, + yperiod0=yperiod0, + yperiodalignment=yperiodalignment, + ysrc=ysrc, + zorder=zorder, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_candlestick(self, + close=None, + closesrc=None, + customdata=None, + customdatasrc=None, + decreasing=None, + high=None, + highsrc=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + increasing=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + low=None, + lowsrc=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + open=None, + opensrc=None, + selectedpoints=None, + showlegend=None, + stream=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + visible=None, + whiskerwidth=None, + x=None, + xaxis=None, + xcalendar=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + yaxis=None, + yhoverformat=None, + zorder=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'Figure': """ Add a new Candlestick trace @@ -3142,105 +2497,103 @@ def add_candlestick( Figure """ from plotly.graph_objs import Candlestick - new_trace = Candlestick( - close=close, - closesrc=closesrc, - customdata=customdata, - customdatasrc=customdatasrc, - decreasing=decreasing, - high=high, - highsrc=highsrc, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - increasing=increasing, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - low=low, - lowsrc=lowsrc, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - open=open, - opensrc=opensrc, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - text=text, - textsrc=textsrc, - uid=uid, - uirevision=uirevision, - visible=visible, - whiskerwidth=whiskerwidth, - x=x, - xaxis=xaxis, - xcalendar=xcalendar, - xhoverformat=xhoverformat, - xperiod=xperiod, - xperiod0=xperiod0, - xperiodalignment=xperiodalignment, - xsrc=xsrc, - yaxis=yaxis, - yhoverformat=yhoverformat, - zorder=zorder, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_carpet( - self, - a=None, - a0=None, - aaxis=None, - asrc=None, - b=None, - b0=None, - baxis=None, - bsrc=None, - carpet=None, - cheaterslope=None, - color=None, - customdata=None, - customdatasrc=None, - da=None, - db=None, - font=None, - ids=None, - idssrc=None, - legend=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - stream=None, - uid=None, - uirevision=None, - visible=None, - x=None, - xaxis=None, - xsrc=None, - y=None, - yaxis=None, - ysrc=None, - zorder=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "Figure": + + close=close, + closesrc=closesrc, + customdata=customdata, + customdatasrc=customdatasrc, + decreasing=decreasing, + high=high, + highsrc=highsrc, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + increasing=increasing, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + low=low, + lowsrc=lowsrc, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + open=open, + opensrc=opensrc, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + text=text, + textsrc=textsrc, + uid=uid, + uirevision=uirevision, + visible=visible, + whiskerwidth=whiskerwidth, + x=x, + xaxis=xaxis, + xcalendar=xcalendar, + xhoverformat=xhoverformat, + xperiod=xperiod, + xperiod0=xperiod0, + xperiodalignment=xperiodalignment, + xsrc=xsrc, + yaxis=yaxis, + yhoverformat=yhoverformat, + zorder=zorder, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_carpet(self, + a=None, + a0=None, + aaxis=None, + asrc=None, + b=None, + b0=None, + baxis=None, + bsrc=None, + carpet=None, + cheaterslope=None, + color=None, + customdata=None, + customdatasrc=None, + da=None, + db=None, + font=None, + ids=None, + idssrc=None, + legend=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + stream=None, + uid=None, + uirevision=None, + visible=None, + x=None, + xaxis=None, + xsrc=None, + y=None, + yaxis=None, + ysrc=None, + zorder=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'Figure': """ Add a new Carpet trace @@ -3441,103 +2794,101 @@ def add_carpet( Figure """ from plotly.graph_objs import Carpet - new_trace = Carpet( - a=a, - a0=a0, - aaxis=aaxis, - asrc=asrc, - b=b, - b0=b0, - baxis=baxis, - bsrc=bsrc, - carpet=carpet, - cheaterslope=cheaterslope, - color=color, - customdata=customdata, - customdatasrc=customdatasrc, - da=da, - db=db, - font=font, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - stream=stream, - uid=uid, - uirevision=uirevision, - visible=visible, - x=x, - xaxis=xaxis, - xsrc=xsrc, - y=y, - yaxis=yaxis, - ysrc=ysrc, - zorder=zorder, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_choropleth( - self, - autocolorscale=None, - coloraxis=None, - colorbar=None, - colorscale=None, - customdata=None, - customdatasrc=None, - featureidkey=None, - geo=None, - geojson=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - locationmode=None, - locations=None, - locationssrc=None, - marker=None, - meta=None, - metasrc=None, - name=None, - reversescale=None, - selected=None, - selectedpoints=None, - showlegend=None, - showscale=None, - stream=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - z=None, - zauto=None, - zmax=None, - zmid=None, - zmin=None, - zsrc=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + a=a, + a0=a0, + aaxis=aaxis, + asrc=asrc, + b=b, + b0=b0, + baxis=baxis, + bsrc=bsrc, + carpet=carpet, + cheaterslope=cheaterslope, + color=color, + customdata=customdata, + customdatasrc=customdatasrc, + da=da, + db=db, + font=font, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + stream=stream, + uid=uid, + uirevision=uirevision, + visible=visible, + x=x, + xaxis=xaxis, + xsrc=xsrc, + y=y, + yaxis=yaxis, + ysrc=ysrc, + zorder=zorder, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_choropleth(self, + autocolorscale=None, + coloraxis=None, + colorbar=None, + colorscale=None, + customdata=None, + customdatasrc=None, + featureidkey=None, + geo=None, + geojson=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + locationmode=None, + locations=None, + locationssrc=None, + marker=None, + meta=None, + metasrc=None, + name=None, + reversescale=None, + selected=None, + selectedpoints=None, + showlegend=None, + showscale=None, + stream=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + z=None, + zauto=None, + zmax=None, + zmid=None, + zmin=None, + zsrc=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Choropleth trace @@ -3815,114 +3166,112 @@ def add_choropleth( Figure """ from plotly.graph_objs import Choropleth - new_trace = Choropleth( - autocolorscale=autocolorscale, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - customdata=customdata, - customdatasrc=customdatasrc, - featureidkey=featureidkey, - geo=geo, - geojson=geojson, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - locationmode=locationmode, - locations=locations, - locationssrc=locationssrc, - marker=marker, - meta=meta, - metasrc=metasrc, - name=name, - reversescale=reversescale, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - showscale=showscale, - stream=stream, - text=text, - textsrc=textsrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - z=z, - zauto=zauto, - zmax=zmax, - zmid=zmid, - zmin=zmin, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_choroplethmap( - self, - autocolorscale=None, - below=None, - coloraxis=None, - colorbar=None, - colorscale=None, - customdata=None, - customdatasrc=None, - featureidkey=None, - geojson=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - locations=None, - locationssrc=None, - marker=None, - meta=None, - metasrc=None, - name=None, - reversescale=None, - selected=None, - selectedpoints=None, - showlegend=None, - showscale=None, - stream=None, - subplot=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - z=None, - zauto=None, - zmax=None, - zmid=None, - zmin=None, - zsrc=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + autocolorscale=autocolorscale, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + customdata=customdata, + customdatasrc=customdatasrc, + featureidkey=featureidkey, + geo=geo, + geojson=geojson, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + locationmode=locationmode, + locations=locations, + locationssrc=locationssrc, + marker=marker, + meta=meta, + metasrc=metasrc, + name=name, + reversescale=reversescale, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + showscale=showscale, + stream=stream, + text=text, + textsrc=textsrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + z=z, + zauto=zauto, + zmax=zmax, + zmid=zmid, + zmin=zmin, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_choroplethmap(self, + autocolorscale=None, + below=None, + coloraxis=None, + colorbar=None, + colorscale=None, + customdata=None, + customdatasrc=None, + featureidkey=None, + geojson=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + locations=None, + locationssrc=None, + marker=None, + meta=None, + metasrc=None, + name=None, + reversescale=None, + selected=None, + selectedpoints=None, + showlegend=None, + showscale=None, + stream=None, + subplot=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + z=None, + zauto=None, + zmax=None, + zmid=None, + zmin=None, + zsrc=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Choroplethmap trace @@ -4198,114 +3547,112 @@ def add_choroplethmap( Figure """ from plotly.graph_objs import Choroplethmap - new_trace = Choroplethmap( - autocolorscale=autocolorscale, - below=below, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - customdata=customdata, - customdatasrc=customdatasrc, - featureidkey=featureidkey, - geojson=geojson, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - locations=locations, - locationssrc=locationssrc, - marker=marker, - meta=meta, - metasrc=metasrc, - name=name, - reversescale=reversescale, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - showscale=showscale, - stream=stream, - subplot=subplot, - text=text, - textsrc=textsrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - z=z, - zauto=zauto, - zmax=zmax, - zmid=zmid, - zmin=zmin, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_choroplethmapbox( - self, - autocolorscale=None, - below=None, - coloraxis=None, - colorbar=None, - colorscale=None, - customdata=None, - customdatasrc=None, - featureidkey=None, - geojson=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - locations=None, - locationssrc=None, - marker=None, - meta=None, - metasrc=None, - name=None, - reversescale=None, - selected=None, - selectedpoints=None, - showlegend=None, - showscale=None, - stream=None, - subplot=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - z=None, - zauto=None, - zmax=None, - zmid=None, - zmin=None, - zsrc=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + autocolorscale=autocolorscale, + below=below, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + customdata=customdata, + customdatasrc=customdatasrc, + featureidkey=featureidkey, + geojson=geojson, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + locations=locations, + locationssrc=locationssrc, + marker=marker, + meta=meta, + metasrc=metasrc, + name=name, + reversescale=reversescale, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + showscale=showscale, + stream=stream, + subplot=subplot, + text=text, + textsrc=textsrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + z=z, + zauto=zauto, + zmax=zmax, + zmid=zmid, + zmin=zmin, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_choroplethmapbox(self, + autocolorscale=None, + below=None, + coloraxis=None, + colorbar=None, + colorscale=None, + customdata=None, + customdatasrc=None, + featureidkey=None, + geojson=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + locations=None, + locationssrc=None, + marker=None, + meta=None, + metasrc=None, + name=None, + reversescale=None, + selected=None, + selectedpoints=None, + showlegend=None, + showscale=None, + stream=None, + subplot=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + z=None, + zauto=None, + zmax=None, + zmid=None, + zmin=None, + zsrc=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Choroplethmapbox trace @@ -4590,127 +3937,125 @@ def add_choroplethmapbox( Figure """ from plotly.graph_objs import Choroplethmapbox - new_trace = Choroplethmapbox( - autocolorscale=autocolorscale, - below=below, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - customdata=customdata, - customdatasrc=customdatasrc, - featureidkey=featureidkey, - geojson=geojson, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - locations=locations, - locationssrc=locationssrc, - marker=marker, - meta=meta, - metasrc=metasrc, - name=name, - reversescale=reversescale, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - showscale=showscale, - stream=stream, - subplot=subplot, - text=text, - textsrc=textsrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - z=z, - zauto=zauto, - zmax=zmax, - zmid=zmid, - zmin=zmin, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_cone( - self, - anchor=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - coloraxis=None, - colorbar=None, - colorscale=None, - customdata=None, - customdatasrc=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - lighting=None, - lightposition=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - reversescale=None, - scene=None, - showlegend=None, - showscale=None, - sizemode=None, - sizeref=None, - stream=None, - text=None, - textsrc=None, - u=None, - uhoverformat=None, - uid=None, - uirevision=None, - usrc=None, - v=None, - vhoverformat=None, - visible=None, - vsrc=None, - w=None, - whoverformat=None, - wsrc=None, - x=None, - xhoverformat=None, - xsrc=None, - y=None, - yhoverformat=None, - ysrc=None, - z=None, - zhoverformat=None, - zsrc=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + autocolorscale=autocolorscale, + below=below, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + customdata=customdata, + customdatasrc=customdatasrc, + featureidkey=featureidkey, + geojson=geojson, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + locations=locations, + locationssrc=locationssrc, + marker=marker, + meta=meta, + metasrc=metasrc, + name=name, + reversescale=reversescale, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + showscale=showscale, + stream=stream, + subplot=subplot, + text=text, + textsrc=textsrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + z=z, + zauto=zauto, + zmax=zmax, + zmid=zmid, + zmin=zmin, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_cone(self, + anchor=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + coloraxis=None, + colorbar=None, + colorscale=None, + customdata=None, + customdatasrc=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + lighting=None, + lightposition=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + reversescale=None, + scene=None, + showlegend=None, + showscale=None, + sizemode=None, + sizeref=None, + stream=None, + text=None, + textsrc=None, + u=None, + uhoverformat=None, + uid=None, + uirevision=None, + usrc=None, + v=None, + vhoverformat=None, + visible=None, + vsrc=None, + w=None, + whoverformat=None, + wsrc=None, + x=None, + xhoverformat=None, + xsrc=None, + y=None, + yhoverformat=None, + ysrc=None, + z=None, + zhoverformat=None, + zsrc=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Cone trace @@ -5074,153 +4419,151 @@ def add_cone( Figure """ from plotly.graph_objs import Cone - new_trace = Cone( - anchor=anchor, - autocolorscale=autocolorscale, - cauto=cauto, - cmax=cmax, - cmid=cmid, - cmin=cmin, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - customdata=customdata, - customdatasrc=customdatasrc, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - lighting=lighting, - lightposition=lightposition, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - reversescale=reversescale, - scene=scene, - showlegend=showlegend, - showscale=showscale, - sizemode=sizemode, - sizeref=sizeref, - stream=stream, - text=text, - textsrc=textsrc, - u=u, - uhoverformat=uhoverformat, - uid=uid, - uirevision=uirevision, - usrc=usrc, - v=v, - vhoverformat=vhoverformat, - visible=visible, - vsrc=vsrc, - w=w, - whoverformat=whoverformat, - wsrc=wsrc, - x=x, - xhoverformat=xhoverformat, - xsrc=xsrc, - y=y, - yhoverformat=yhoverformat, - ysrc=ysrc, - z=z, - zhoverformat=zhoverformat, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_contour( - self, - autocolorscale=None, - autocontour=None, - coloraxis=None, - colorbar=None, - colorscale=None, - connectgaps=None, - contours=None, - customdata=None, - customdatasrc=None, - dx=None, - dy=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hoverongaps=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - meta=None, - metasrc=None, - name=None, - ncontours=None, - opacity=None, - reversescale=None, - showlegend=None, - showscale=None, - stream=None, - text=None, - textfont=None, - textsrc=None, - texttemplate=None, - transpose=None, - uid=None, - uirevision=None, - visible=None, - x=None, - x0=None, - xaxis=None, - xcalendar=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - xtype=None, - y=None, - y0=None, - yaxis=None, - ycalendar=None, - yhoverformat=None, - yperiod=None, - yperiod0=None, - yperiodalignment=None, - ysrc=None, - ytype=None, - z=None, - zauto=None, - zhoverformat=None, - zmax=None, - zmid=None, - zmin=None, - zorder=None, - zsrc=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "Figure": + + anchor=anchor, + autocolorscale=autocolorscale, + cauto=cauto, + cmax=cmax, + cmid=cmid, + cmin=cmin, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + customdata=customdata, + customdatasrc=customdatasrc, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + lighting=lighting, + lightposition=lightposition, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + reversescale=reversescale, + scene=scene, + showlegend=showlegend, + showscale=showscale, + sizemode=sizemode, + sizeref=sizeref, + stream=stream, + text=text, + textsrc=textsrc, + u=u, + uhoverformat=uhoverformat, + uid=uid, + uirevision=uirevision, + usrc=usrc, + v=v, + vhoverformat=vhoverformat, + visible=visible, + vsrc=vsrc, + w=w, + whoverformat=whoverformat, + wsrc=wsrc, + x=x, + xhoverformat=xhoverformat, + xsrc=xsrc, + y=y, + yhoverformat=yhoverformat, + ysrc=ysrc, + z=z, + zhoverformat=zhoverformat, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_contour(self, + autocolorscale=None, + autocontour=None, + coloraxis=None, + colorbar=None, + colorscale=None, + connectgaps=None, + contours=None, + customdata=None, + customdatasrc=None, + dx=None, + dy=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hoverongaps=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + meta=None, + metasrc=None, + name=None, + ncontours=None, + opacity=None, + reversescale=None, + showlegend=None, + showscale=None, + stream=None, + text=None, + textfont=None, + textsrc=None, + texttemplate=None, + transpose=None, + uid=None, + uirevision=None, + visible=None, + x=None, + x0=None, + xaxis=None, + xcalendar=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + xtype=None, + y=None, + y0=None, + yaxis=None, + ycalendar=None, + yhoverformat=None, + yperiod=None, + yperiod0=None, + yperiodalignment=None, + ysrc=None, + ytype=None, + z=None, + zauto=None, + zhoverformat=None, + zmax=None, + zmid=None, + zmin=None, + zorder=None, + zsrc=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'Figure': """ Add a new Contour trace @@ -5638,146 +4981,144 @@ def add_contour( Figure """ from plotly.graph_objs import Contour - new_trace = Contour( - autocolorscale=autocolorscale, - autocontour=autocontour, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - connectgaps=connectgaps, - contours=contours, - customdata=customdata, - customdatasrc=customdatasrc, - dx=dx, - dy=dy, - fillcolor=fillcolor, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hoverongaps=hoverongaps, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - meta=meta, - metasrc=metasrc, - name=name, - ncontours=ncontours, - opacity=opacity, - reversescale=reversescale, - showlegend=showlegend, - showscale=showscale, - stream=stream, - text=text, - textfont=textfont, - textsrc=textsrc, - texttemplate=texttemplate, - transpose=transpose, - uid=uid, - uirevision=uirevision, - visible=visible, - x=x, - x0=x0, - xaxis=xaxis, - xcalendar=xcalendar, - xhoverformat=xhoverformat, - xperiod=xperiod, - xperiod0=xperiod0, - xperiodalignment=xperiodalignment, - xsrc=xsrc, - xtype=xtype, - y=y, - y0=y0, - yaxis=yaxis, - ycalendar=ycalendar, - yhoverformat=yhoverformat, - yperiod=yperiod, - yperiod0=yperiod0, - yperiodalignment=yperiodalignment, - ysrc=ysrc, - ytype=ytype, - z=z, - zauto=zauto, - zhoverformat=zhoverformat, - zmax=zmax, - zmid=zmid, - zmin=zmin, - zorder=zorder, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_contourcarpet( - self, - a=None, - a0=None, - asrc=None, - atype=None, - autocolorscale=None, - autocontour=None, - b=None, - b0=None, - bsrc=None, - btype=None, - carpet=None, - coloraxis=None, - colorbar=None, - colorscale=None, - contours=None, - customdata=None, - customdatasrc=None, - da=None, - db=None, - fillcolor=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - meta=None, - metasrc=None, - name=None, - ncontours=None, - opacity=None, - reversescale=None, - showlegend=None, - showscale=None, - stream=None, - text=None, - textsrc=None, - transpose=None, - uid=None, - uirevision=None, - visible=None, - xaxis=None, - yaxis=None, - z=None, - zauto=None, - zmax=None, - zmid=None, - zmin=None, - zorder=None, - zsrc=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "Figure": + + autocolorscale=autocolorscale, + autocontour=autocontour, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + connectgaps=connectgaps, + contours=contours, + customdata=customdata, + customdatasrc=customdatasrc, + dx=dx, + dy=dy, + fillcolor=fillcolor, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hoverongaps=hoverongaps, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + meta=meta, + metasrc=metasrc, + name=name, + ncontours=ncontours, + opacity=opacity, + reversescale=reversescale, + showlegend=showlegend, + showscale=showscale, + stream=stream, + text=text, + textfont=textfont, + textsrc=textsrc, + texttemplate=texttemplate, + transpose=transpose, + uid=uid, + uirevision=uirevision, + visible=visible, + x=x, + x0=x0, + xaxis=xaxis, + xcalendar=xcalendar, + xhoverformat=xhoverformat, + xperiod=xperiod, + xperiod0=xperiod0, + xperiodalignment=xperiodalignment, + xsrc=xsrc, + xtype=xtype, + y=y, + y0=y0, + yaxis=yaxis, + ycalendar=ycalendar, + yhoverformat=yhoverformat, + yperiod=yperiod, + yperiod0=yperiod0, + yperiodalignment=yperiodalignment, + ysrc=ysrc, + ytype=ytype, + z=z, + zauto=zauto, + zhoverformat=zhoverformat, + zmax=zmax, + zmid=zmid, + zmin=zmin, + zorder=zorder, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_contourcarpet(self, + a=None, + a0=None, + asrc=None, + atype=None, + autocolorscale=None, + autocontour=None, + b=None, + b0=None, + bsrc=None, + btype=None, + carpet=None, + coloraxis=None, + colorbar=None, + colorscale=None, + contours=None, + customdata=None, + customdatasrc=None, + da=None, + db=None, + fillcolor=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + meta=None, + metasrc=None, + name=None, + ncontours=None, + opacity=None, + reversescale=None, + showlegend=None, + showscale=None, + stream=None, + text=None, + textsrc=None, + transpose=None, + uid=None, + uirevision=None, + visible=None, + xaxis=None, + yaxis=None, + z=None, + zauto=None, + zmax=None, + zmid=None, + zmin=None, + zorder=None, + zsrc=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'Figure': """ Add a new Contourcarpet trace @@ -6054,119 +5395,117 @@ def add_contourcarpet( Figure """ from plotly.graph_objs import Contourcarpet - new_trace = Contourcarpet( - a=a, - a0=a0, - asrc=asrc, - atype=atype, - autocolorscale=autocolorscale, - autocontour=autocontour, - b=b, - b0=b0, - bsrc=bsrc, - btype=btype, - carpet=carpet, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - contours=contours, - customdata=customdata, - customdatasrc=customdatasrc, - da=da, - db=db, - fillcolor=fillcolor, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - meta=meta, - metasrc=metasrc, - name=name, - ncontours=ncontours, - opacity=opacity, - reversescale=reversescale, - showlegend=showlegend, - showscale=showscale, - stream=stream, - text=text, - textsrc=textsrc, - transpose=transpose, - uid=uid, - uirevision=uirevision, - visible=visible, - xaxis=xaxis, - yaxis=yaxis, - z=z, - zauto=zauto, - zmax=zmax, - zmid=zmid, - zmin=zmin, - zorder=zorder, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_densitymap( - self, - autocolorscale=None, - below=None, - coloraxis=None, - colorbar=None, - colorscale=None, - customdata=None, - customdatasrc=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - lat=None, - latsrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - lon=None, - lonsrc=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - radius=None, - radiussrc=None, - reversescale=None, - showlegend=None, - showscale=None, - stream=None, - subplot=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - visible=None, - z=None, - zauto=None, - zmax=None, - zmid=None, - zmin=None, - zsrc=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + a=a, + a0=a0, + asrc=asrc, + atype=atype, + autocolorscale=autocolorscale, + autocontour=autocontour, + b=b, + b0=b0, + bsrc=bsrc, + btype=btype, + carpet=carpet, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + contours=contours, + customdata=customdata, + customdatasrc=customdatasrc, + da=da, + db=db, + fillcolor=fillcolor, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + meta=meta, + metasrc=metasrc, + name=name, + ncontours=ncontours, + opacity=opacity, + reversescale=reversescale, + showlegend=showlegend, + showscale=showscale, + stream=stream, + text=text, + textsrc=textsrc, + transpose=transpose, + uid=uid, + uirevision=uirevision, + visible=visible, + xaxis=xaxis, + yaxis=yaxis, + z=z, + zauto=zauto, + zmax=zmax, + zmid=zmid, + zmin=zmin, + zorder=zorder, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_densitymap(self, + autocolorscale=None, + below=None, + coloraxis=None, + colorbar=None, + colorscale=None, + customdata=None, + customdatasrc=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + lat=None, + latsrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + lon=None, + lonsrc=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + radius=None, + radiussrc=None, + reversescale=None, + showlegend=None, + showscale=None, + stream=None, + subplot=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + visible=None, + z=None, + zauto=None, + zmax=None, + zmid=None, + zmin=None, + zsrc=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Densitymap trace @@ -6440,112 +5779,110 @@ def add_densitymap( Figure """ from plotly.graph_objs import Densitymap - new_trace = Densitymap( - autocolorscale=autocolorscale, - below=below, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - customdata=customdata, - customdatasrc=customdatasrc, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - lat=lat, - latsrc=latsrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - lon=lon, - lonsrc=lonsrc, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - radius=radius, - radiussrc=radiussrc, - reversescale=reversescale, - showlegend=showlegend, - showscale=showscale, - stream=stream, - subplot=subplot, - text=text, - textsrc=textsrc, - uid=uid, - uirevision=uirevision, - visible=visible, - z=z, - zauto=zauto, - zmax=zmax, - zmid=zmid, - zmin=zmin, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_densitymapbox( - self, - autocolorscale=None, - below=None, - coloraxis=None, - colorbar=None, - colorscale=None, - customdata=None, - customdatasrc=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - lat=None, - latsrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - lon=None, - lonsrc=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - radius=None, - radiussrc=None, - reversescale=None, - showlegend=None, - showscale=None, - stream=None, - subplot=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - visible=None, - z=None, - zauto=None, - zmax=None, - zmid=None, - zmin=None, - zsrc=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + autocolorscale=autocolorscale, + below=below, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + customdata=customdata, + customdatasrc=customdatasrc, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + lat=lat, + latsrc=latsrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + lon=lon, + lonsrc=lonsrc, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + radius=radius, + radiussrc=radiussrc, + reversescale=reversescale, + showlegend=showlegend, + showscale=showscale, + stream=stream, + subplot=subplot, + text=text, + textsrc=textsrc, + uid=uid, + uirevision=uirevision, + visible=visible, + z=z, + zauto=zauto, + zmax=zmax, + zmid=zmid, + zmin=zmin, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_densitymapbox(self, + autocolorscale=None, + below=None, + coloraxis=None, + colorbar=None, + colorscale=None, + customdata=None, + customdatasrc=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + lat=None, + latsrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + lon=None, + lonsrc=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + radius=None, + radiussrc=None, + reversescale=None, + showlegend=None, + showscale=None, + stream=None, + subplot=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + visible=None, + z=None, + zauto=None, + zmax=None, + zmid=None, + zmin=None, + zsrc=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Densitymapbox trace @@ -6828,132 +6165,130 @@ def add_densitymapbox( Figure """ from plotly.graph_objs import Densitymapbox - new_trace = Densitymapbox( - autocolorscale=autocolorscale, - below=below, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - customdata=customdata, - customdatasrc=customdatasrc, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - lat=lat, - latsrc=latsrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - lon=lon, - lonsrc=lonsrc, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - radius=radius, - radiussrc=radiussrc, - reversescale=reversescale, - showlegend=showlegend, - showscale=showscale, - stream=stream, - subplot=subplot, - text=text, - textsrc=textsrc, - uid=uid, - uirevision=uirevision, - visible=visible, - z=z, - zauto=zauto, - zmax=zmax, - zmid=zmid, - zmin=zmin, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_funnel( - self, - alignmentgroup=None, - cliponaxis=None, - connector=None, - constraintext=None, - customdata=None, - customdatasrc=None, - dx=None, - dy=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - insidetextanchor=None, - insidetextfont=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - marker=None, - meta=None, - metasrc=None, - name=None, - offset=None, - offsetgroup=None, - opacity=None, - orientation=None, - outsidetextfont=None, - selectedpoints=None, - showlegend=None, - stream=None, - text=None, - textangle=None, - textfont=None, - textinfo=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - visible=None, - width=None, - x=None, - x0=None, - xaxis=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - y=None, - y0=None, - yaxis=None, - yhoverformat=None, - yperiod=None, - yperiod0=None, - yperiodalignment=None, - ysrc=None, - zorder=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "Figure": + + autocolorscale=autocolorscale, + below=below, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + customdata=customdata, + customdatasrc=customdatasrc, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + lat=lat, + latsrc=latsrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + lon=lon, + lonsrc=lonsrc, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + radius=radius, + radiussrc=radiussrc, + reversescale=reversescale, + showlegend=showlegend, + showscale=showscale, + stream=stream, + subplot=subplot, + text=text, + textsrc=textsrc, + uid=uid, + uirevision=uirevision, + visible=visible, + z=z, + zauto=zauto, + zmax=zmax, + zmid=zmid, + zmin=zmin, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_funnel(self, + alignmentgroup=None, + cliponaxis=None, + connector=None, + constraintext=None, + customdata=None, + customdatasrc=None, + dx=None, + dy=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + insidetextanchor=None, + insidetextfont=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + marker=None, + meta=None, + metasrc=None, + name=None, + offset=None, + offsetgroup=None, + opacity=None, + orientation=None, + outsidetextfont=None, + selectedpoints=None, + showlegend=None, + stream=None, + text=None, + textangle=None, + textfont=None, + textinfo=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + visible=None, + width=None, + x=None, + x0=None, + xaxis=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + y=None, + y0=None, + yaxis=None, + yhoverformat=None, + yperiod=None, + yperiod0=None, + yperiodalignment=None, + ysrc=None, + zorder=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'Figure': """ Add a new Funnel trace @@ -7346,130 +6681,128 @@ def add_funnel( Figure """ from plotly.graph_objs import Funnel - new_trace = Funnel( - alignmentgroup=alignmentgroup, - cliponaxis=cliponaxis, - connector=connector, - constraintext=constraintext, - customdata=customdata, - customdatasrc=customdatasrc, - dx=dx, - dy=dy, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - insidetextanchor=insidetextanchor, - insidetextfont=insidetextfont, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - marker=marker, - meta=meta, - metasrc=metasrc, - name=name, - offset=offset, - offsetgroup=offsetgroup, - opacity=opacity, - orientation=orientation, - outsidetextfont=outsidetextfont, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - text=text, - textangle=textangle, - textfont=textfont, - textinfo=textinfo, - textposition=textposition, - textpositionsrc=textpositionsrc, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - uid=uid, - uirevision=uirevision, - visible=visible, - width=width, - x=x, - x0=x0, - xaxis=xaxis, - xhoverformat=xhoverformat, - xperiod=xperiod, - xperiod0=xperiod0, - xperiodalignment=xperiodalignment, - xsrc=xsrc, - y=y, - y0=y0, - yaxis=yaxis, - yhoverformat=yhoverformat, - yperiod=yperiod, - yperiod0=yperiod0, - yperiodalignment=yperiodalignment, - ysrc=ysrc, - zorder=zorder, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_funnelarea( - self, - aspectratio=None, - baseratio=None, - customdata=None, - customdatasrc=None, - dlabel=None, - domain=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - insidetextfont=None, - label0=None, - labels=None, - labelssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - marker=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - scalegroup=None, - showlegend=None, - stream=None, - text=None, - textfont=None, - textinfo=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - title=None, - uid=None, - uirevision=None, - values=None, - valuessrc=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + alignmentgroup=alignmentgroup, + cliponaxis=cliponaxis, + connector=connector, + constraintext=constraintext, + customdata=customdata, + customdatasrc=customdatasrc, + dx=dx, + dy=dy, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + insidetextanchor=insidetextanchor, + insidetextfont=insidetextfont, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + marker=marker, + meta=meta, + metasrc=metasrc, + name=name, + offset=offset, + offsetgroup=offsetgroup, + opacity=opacity, + orientation=orientation, + outsidetextfont=outsidetextfont, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + text=text, + textangle=textangle, + textfont=textfont, + textinfo=textinfo, + textposition=textposition, + textpositionsrc=textpositionsrc, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + uid=uid, + uirevision=uirevision, + visible=visible, + width=width, + x=x, + x0=x0, + xaxis=xaxis, + xhoverformat=xhoverformat, + xperiod=xperiod, + xperiod0=xperiod0, + xperiodalignment=xperiodalignment, + xsrc=xsrc, + y=y, + y0=y0, + yaxis=yaxis, + yhoverformat=yhoverformat, + yperiod=yperiod, + yperiod0=yperiod0, + yperiodalignment=yperiodalignment, + ysrc=ysrc, + zorder=zorder, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_funnelarea(self, + aspectratio=None, + baseratio=None, + customdata=None, + customdatasrc=None, + dlabel=None, + domain=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + insidetextfont=None, + label0=None, + labels=None, + labelssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + marker=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + scalegroup=None, + showlegend=None, + stream=None, + text=None, + textfont=None, + textinfo=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + title=None, + uid=None, + uirevision=None, + values=None, + valuessrc=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Funnelarea trace @@ -7728,136 +7061,134 @@ def add_funnelarea( Figure """ from plotly.graph_objs import Funnelarea - new_trace = Funnelarea( - aspectratio=aspectratio, - baseratio=baseratio, - customdata=customdata, - customdatasrc=customdatasrc, - dlabel=dlabel, - domain=domain, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - insidetextfont=insidetextfont, - label0=label0, - labels=labels, - labelssrc=labelssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - marker=marker, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - scalegroup=scalegroup, - showlegend=showlegend, - stream=stream, - text=text, - textfont=textfont, - textinfo=textinfo, - textposition=textposition, - textpositionsrc=textpositionsrc, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - title=title, - uid=uid, - uirevision=uirevision, - values=values, - valuessrc=valuessrc, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_heatmap( - self, - autocolorscale=None, - coloraxis=None, - colorbar=None, - colorscale=None, - connectgaps=None, - customdata=None, - customdatasrc=None, - dx=None, - dy=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hoverongaps=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - reversescale=None, - showlegend=None, - showscale=None, - stream=None, - text=None, - textfont=None, - textsrc=None, - texttemplate=None, - transpose=None, - uid=None, - uirevision=None, - visible=None, - x=None, - x0=None, - xaxis=None, - xcalendar=None, - xgap=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - xtype=None, - y=None, - y0=None, - yaxis=None, - ycalendar=None, - ygap=None, - yhoverformat=None, - yperiod=None, - yperiod0=None, - yperiodalignment=None, - ysrc=None, - ytype=None, - z=None, - zauto=None, - zhoverformat=None, - zmax=None, - zmid=None, - zmin=None, - zorder=None, - zsmooth=None, - zsrc=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "Figure": + + aspectratio=aspectratio, + baseratio=baseratio, + customdata=customdata, + customdatasrc=customdatasrc, + dlabel=dlabel, + domain=domain, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + insidetextfont=insidetextfont, + label0=label0, + labels=labels, + labelssrc=labelssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + marker=marker, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + scalegroup=scalegroup, + showlegend=showlegend, + stream=stream, + text=text, + textfont=textfont, + textinfo=textinfo, + textposition=textposition, + textpositionsrc=textpositionsrc, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + title=title, + uid=uid, + uirevision=uirevision, + values=values, + valuessrc=valuessrc, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_heatmap(self, + autocolorscale=None, + coloraxis=None, + colorbar=None, + colorscale=None, + connectgaps=None, + customdata=None, + customdatasrc=None, + dx=None, + dy=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hoverongaps=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + reversescale=None, + showlegend=None, + showscale=None, + stream=None, + text=None, + textfont=None, + textsrc=None, + texttemplate=None, + transpose=None, + uid=None, + uirevision=None, + visible=None, + x=None, + x0=None, + xaxis=None, + xcalendar=None, + xgap=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + xtype=None, + y=None, + y0=None, + yaxis=None, + ycalendar=None, + ygap=None, + yhoverformat=None, + yperiod=None, + yperiod0=None, + yperiodalignment=None, + ysrc=None, + ytype=None, + z=None, + zauto=None, + zhoverformat=None, + zmax=None, + zmid=None, + zmin=None, + zorder=None, + zsmooth=None, + zsrc=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'Figure': """ Add a new Heatmap trace @@ -8267,156 +7598,154 @@ def add_heatmap( Figure """ from plotly.graph_objs import Heatmap - new_trace = Heatmap( - autocolorscale=autocolorscale, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - connectgaps=connectgaps, - customdata=customdata, - customdatasrc=customdatasrc, - dx=dx, - dy=dy, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hoverongaps=hoverongaps, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - reversescale=reversescale, - showlegend=showlegend, - showscale=showscale, - stream=stream, - text=text, - textfont=textfont, - textsrc=textsrc, - texttemplate=texttemplate, - transpose=transpose, - uid=uid, - uirevision=uirevision, - visible=visible, - x=x, - x0=x0, - xaxis=xaxis, - xcalendar=xcalendar, - xgap=xgap, - xhoverformat=xhoverformat, - xperiod=xperiod, - xperiod0=xperiod0, - xperiodalignment=xperiodalignment, - xsrc=xsrc, - xtype=xtype, - y=y, - y0=y0, - yaxis=yaxis, - ycalendar=ycalendar, - ygap=ygap, - yhoverformat=yhoverformat, - yperiod=yperiod, - yperiod0=yperiod0, - yperiodalignment=yperiodalignment, - ysrc=ysrc, - ytype=ytype, - z=z, - zauto=zauto, - zhoverformat=zhoverformat, - zmax=zmax, - zmid=zmid, - zmin=zmin, - zorder=zorder, - zsmooth=zsmooth, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_histogram( - self, - alignmentgroup=None, - autobinx=None, - autobiny=None, - bingroup=None, - cliponaxis=None, - constraintext=None, - cumulative=None, - customdata=None, - customdatasrc=None, - error_x=None, - error_y=None, - histfunc=None, - histnorm=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - insidetextanchor=None, - insidetextfont=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - marker=None, - meta=None, - metasrc=None, - name=None, - nbinsx=None, - nbinsy=None, - offsetgroup=None, - opacity=None, - orientation=None, - outsidetextfont=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - text=None, - textangle=None, - textfont=None, - textposition=None, - textsrc=None, - texttemplate=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - x=None, - xaxis=None, - xbins=None, - xcalendar=None, - xhoverformat=None, - xsrc=None, - y=None, - yaxis=None, - ybins=None, - ycalendar=None, - yhoverformat=None, - ysrc=None, - zorder=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "Figure": + + autocolorscale=autocolorscale, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + connectgaps=connectgaps, + customdata=customdata, + customdatasrc=customdatasrc, + dx=dx, + dy=dy, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hoverongaps=hoverongaps, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + reversescale=reversescale, + showlegend=showlegend, + showscale=showscale, + stream=stream, + text=text, + textfont=textfont, + textsrc=textsrc, + texttemplate=texttemplate, + transpose=transpose, + uid=uid, + uirevision=uirevision, + visible=visible, + x=x, + x0=x0, + xaxis=xaxis, + xcalendar=xcalendar, + xgap=xgap, + xhoverformat=xhoverformat, + xperiod=xperiod, + xperiod0=xperiod0, + xperiodalignment=xperiodalignment, + xsrc=xsrc, + xtype=xtype, + y=y, + y0=y0, + yaxis=yaxis, + ycalendar=ycalendar, + ygap=ygap, + yhoverformat=yhoverformat, + yperiod=yperiod, + yperiod0=yperiod0, + yperiodalignment=yperiodalignment, + ysrc=ysrc, + ytype=ytype, + z=z, + zauto=zauto, + zhoverformat=zhoverformat, + zmax=zmax, + zmid=zmid, + zmin=zmin, + zorder=zorder, + zsmooth=zsmooth, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_histogram(self, + alignmentgroup=None, + autobinx=None, + autobiny=None, + bingroup=None, + cliponaxis=None, + constraintext=None, + cumulative=None, + customdata=None, + customdatasrc=None, + error_x=None, + error_y=None, + histfunc=None, + histnorm=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + insidetextanchor=None, + insidetextfont=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + marker=None, + meta=None, + metasrc=None, + name=None, + nbinsx=None, + nbinsy=None, + offsetgroup=None, + opacity=None, + orientation=None, + outsidetextfont=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + text=None, + textangle=None, + textfont=None, + textposition=None, + textsrc=None, + texttemplate=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + x=None, + xaxis=None, + xbins=None, + xcalendar=None, + xhoverformat=None, + xsrc=None, + y=None, + yaxis=None, + ybins=None, + ycalendar=None, + yhoverformat=None, + ysrc=None, + zorder=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'Figure': """ Add a new Histogram trace @@ -8814,148 +8143,146 @@ def add_histogram( Figure """ from plotly.graph_objs import Histogram - new_trace = Histogram( - alignmentgroup=alignmentgroup, - autobinx=autobinx, - autobiny=autobiny, - bingroup=bingroup, - cliponaxis=cliponaxis, - constraintext=constraintext, - cumulative=cumulative, - customdata=customdata, - customdatasrc=customdatasrc, - error_x=error_x, - error_y=error_y, - histfunc=histfunc, - histnorm=histnorm, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - insidetextanchor=insidetextanchor, - insidetextfont=insidetextfont, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - marker=marker, - meta=meta, - metasrc=metasrc, - name=name, - nbinsx=nbinsx, - nbinsy=nbinsy, - offsetgroup=offsetgroup, - opacity=opacity, - orientation=orientation, - outsidetextfont=outsidetextfont, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - text=text, - textangle=textangle, - textfont=textfont, - textposition=textposition, - textsrc=textsrc, - texttemplate=texttemplate, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - x=x, - xaxis=xaxis, - xbins=xbins, - xcalendar=xcalendar, - xhoverformat=xhoverformat, - xsrc=xsrc, - y=y, - yaxis=yaxis, - ybins=ybins, - ycalendar=ycalendar, - yhoverformat=yhoverformat, - ysrc=ysrc, - zorder=zorder, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_histogram2d( - self, - autobinx=None, - autobiny=None, - autocolorscale=None, - bingroup=None, - coloraxis=None, - colorbar=None, - colorscale=None, - customdata=None, - customdatasrc=None, - histfunc=None, - histnorm=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - marker=None, - meta=None, - metasrc=None, - name=None, - nbinsx=None, - nbinsy=None, - opacity=None, - reversescale=None, - showlegend=None, - showscale=None, - stream=None, - textfont=None, - texttemplate=None, - uid=None, - uirevision=None, - visible=None, - x=None, - xaxis=None, - xbingroup=None, - xbins=None, - xcalendar=None, - xgap=None, - xhoverformat=None, - xsrc=None, - y=None, - yaxis=None, - ybingroup=None, - ybins=None, - ycalendar=None, - ygap=None, - yhoverformat=None, - ysrc=None, - z=None, - zauto=None, - zhoverformat=None, - zmax=None, - zmid=None, - zmin=None, - zsmooth=None, - zsrc=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "Figure": + + alignmentgroup=alignmentgroup, + autobinx=autobinx, + autobiny=autobiny, + bingroup=bingroup, + cliponaxis=cliponaxis, + constraintext=constraintext, + cumulative=cumulative, + customdata=customdata, + customdatasrc=customdatasrc, + error_x=error_x, + error_y=error_y, + histfunc=histfunc, + histnorm=histnorm, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + insidetextanchor=insidetextanchor, + insidetextfont=insidetextfont, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + marker=marker, + meta=meta, + metasrc=metasrc, + name=name, + nbinsx=nbinsx, + nbinsy=nbinsy, + offsetgroup=offsetgroup, + opacity=opacity, + orientation=orientation, + outsidetextfont=outsidetextfont, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + text=text, + textangle=textangle, + textfont=textfont, + textposition=textposition, + textsrc=textsrc, + texttemplate=texttemplate, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + x=x, + xaxis=xaxis, + xbins=xbins, + xcalendar=xcalendar, + xhoverformat=xhoverformat, + xsrc=xsrc, + y=y, + yaxis=yaxis, + ybins=ybins, + ycalendar=ycalendar, + yhoverformat=yhoverformat, + ysrc=ysrc, + zorder=zorder, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_histogram2d(self, + autobinx=None, + autobiny=None, + autocolorscale=None, + bingroup=None, + coloraxis=None, + colorbar=None, + colorscale=None, + customdata=None, + customdatasrc=None, + histfunc=None, + histnorm=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + marker=None, + meta=None, + metasrc=None, + name=None, + nbinsx=None, + nbinsy=None, + opacity=None, + reversescale=None, + showlegend=None, + showscale=None, + stream=None, + textfont=None, + texttemplate=None, + uid=None, + uirevision=None, + visible=None, + x=None, + xaxis=None, + xbingroup=None, + xbins=None, + xcalendar=None, + xgap=None, + xhoverformat=None, + xsrc=None, + y=None, + yaxis=None, + ybingroup=None, + ybins=None, + ycalendar=None, + ygap=None, + yhoverformat=None, + ysrc=None, + z=None, + zauto=None, + zhoverformat=None, + zmax=None, + zmid=None, + zmin=None, + zsmooth=None, + zsrc=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'Figure': """ Add a new Histogram2d trace @@ -9350,146 +8677,144 @@ def add_histogram2d( Figure """ from plotly.graph_objs import Histogram2d - new_trace = Histogram2d( - autobinx=autobinx, - autobiny=autobiny, - autocolorscale=autocolorscale, - bingroup=bingroup, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - customdata=customdata, - customdatasrc=customdatasrc, - histfunc=histfunc, - histnorm=histnorm, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - marker=marker, - meta=meta, - metasrc=metasrc, - name=name, - nbinsx=nbinsx, - nbinsy=nbinsy, - opacity=opacity, - reversescale=reversescale, - showlegend=showlegend, - showscale=showscale, - stream=stream, - textfont=textfont, - texttemplate=texttemplate, - uid=uid, - uirevision=uirevision, - visible=visible, - x=x, - xaxis=xaxis, - xbingroup=xbingroup, - xbins=xbins, - xcalendar=xcalendar, - xgap=xgap, - xhoverformat=xhoverformat, - xsrc=xsrc, - y=y, - yaxis=yaxis, - ybingroup=ybingroup, - ybins=ybins, - ycalendar=ycalendar, - ygap=ygap, - yhoverformat=yhoverformat, - ysrc=ysrc, - z=z, - zauto=zauto, - zhoverformat=zhoverformat, - zmax=zmax, - zmid=zmid, - zmin=zmin, - zsmooth=zsmooth, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_histogram2dcontour( - self, - autobinx=None, - autobiny=None, - autocolorscale=None, - autocontour=None, - bingroup=None, - coloraxis=None, - colorbar=None, - colorscale=None, - contours=None, - customdata=None, - customdatasrc=None, - histfunc=None, - histnorm=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meta=None, - metasrc=None, - name=None, - nbinsx=None, - nbinsy=None, - ncontours=None, - opacity=None, - reversescale=None, - showlegend=None, - showscale=None, - stream=None, - textfont=None, - texttemplate=None, - uid=None, - uirevision=None, - visible=None, - x=None, - xaxis=None, - xbingroup=None, - xbins=None, - xcalendar=None, - xhoverformat=None, - xsrc=None, - y=None, - yaxis=None, - ybingroup=None, - ybins=None, - ycalendar=None, - yhoverformat=None, - ysrc=None, - z=None, - zauto=None, - zhoverformat=None, - zmax=None, - zmid=None, - zmin=None, - zsrc=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "Figure": + + autobinx=autobinx, + autobiny=autobiny, + autocolorscale=autocolorscale, + bingroup=bingroup, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + customdata=customdata, + customdatasrc=customdatasrc, + histfunc=histfunc, + histnorm=histnorm, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + marker=marker, + meta=meta, + metasrc=metasrc, + name=name, + nbinsx=nbinsx, + nbinsy=nbinsy, + opacity=opacity, + reversescale=reversescale, + showlegend=showlegend, + showscale=showscale, + stream=stream, + textfont=textfont, + texttemplate=texttemplate, + uid=uid, + uirevision=uirevision, + visible=visible, + x=x, + xaxis=xaxis, + xbingroup=xbingroup, + xbins=xbins, + xcalendar=xcalendar, + xgap=xgap, + xhoverformat=xhoverformat, + xsrc=xsrc, + y=y, + yaxis=yaxis, + ybingroup=ybingroup, + ybins=ybins, + ycalendar=ycalendar, + ygap=ygap, + yhoverformat=yhoverformat, + ysrc=ysrc, + z=z, + zauto=zauto, + zhoverformat=zhoverformat, + zmax=zmax, + zmid=zmid, + zmin=zmin, + zsmooth=zsmooth, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_histogram2dcontour(self, + autobinx=None, + autobiny=None, + autocolorscale=None, + autocontour=None, + bingroup=None, + coloraxis=None, + colorbar=None, + colorscale=None, + contours=None, + customdata=None, + customdatasrc=None, + histfunc=None, + histnorm=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meta=None, + metasrc=None, + name=None, + nbinsx=None, + nbinsy=None, + ncontours=None, + opacity=None, + reversescale=None, + showlegend=None, + showscale=None, + stream=None, + textfont=None, + texttemplate=None, + uid=None, + uirevision=None, + visible=None, + x=None, + xaxis=None, + xbingroup=None, + xbins=None, + xcalendar=None, + xhoverformat=None, + xsrc=None, + y=None, + yaxis=None, + ybingroup=None, + ybins=None, + ycalendar=None, + yhoverformat=None, + ysrc=None, + z=None, + zauto=None, + zhoverformat=None, + zmax=None, + zmid=None, + zmin=None, + zsrc=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'Figure': """ Add a new Histogram2dContour trace @@ -9897,131 +9222,129 @@ def add_histogram2dcontour( Figure """ from plotly.graph_objs import Histogram2dContour - new_trace = Histogram2dContour( - autobinx=autobinx, - autobiny=autobiny, - autocolorscale=autocolorscale, - autocontour=autocontour, - bingroup=bingroup, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - contours=contours, - customdata=customdata, - customdatasrc=customdatasrc, - histfunc=histfunc, - histnorm=histnorm, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - marker=marker, - meta=meta, - metasrc=metasrc, - name=name, - nbinsx=nbinsx, - nbinsy=nbinsy, - ncontours=ncontours, - opacity=opacity, - reversescale=reversescale, - showlegend=showlegend, - showscale=showscale, - stream=stream, - textfont=textfont, - texttemplate=texttemplate, - uid=uid, - uirevision=uirevision, - visible=visible, - x=x, - xaxis=xaxis, - xbingroup=xbingroup, - xbins=xbins, - xcalendar=xcalendar, - xhoverformat=xhoverformat, - xsrc=xsrc, - y=y, - yaxis=yaxis, - ybingroup=ybingroup, - ybins=ybins, - ycalendar=ycalendar, - yhoverformat=yhoverformat, - ysrc=ysrc, - z=z, - zauto=zauto, - zhoverformat=zhoverformat, - zmax=zmax, - zmid=zmid, - zmin=zmin, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_icicle( - self, - branchvalues=None, - count=None, - customdata=None, - customdatasrc=None, - domain=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - insidetextfont=None, - labels=None, - labelssrc=None, - leaf=None, - legend=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - level=None, - marker=None, - maxdepth=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - outsidetextfont=None, - parents=None, - parentssrc=None, - pathbar=None, - root=None, - sort=None, - stream=None, - text=None, - textfont=None, - textinfo=None, - textposition=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - tiling=None, - uid=None, - uirevision=None, - values=None, - valuessrc=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + autobinx=autobinx, + autobiny=autobiny, + autocolorscale=autocolorscale, + autocontour=autocontour, + bingroup=bingroup, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + contours=contours, + customdata=customdata, + customdatasrc=customdatasrc, + histfunc=histfunc, + histnorm=histnorm, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + marker=marker, + meta=meta, + metasrc=metasrc, + name=name, + nbinsx=nbinsx, + nbinsy=nbinsy, + ncontours=ncontours, + opacity=opacity, + reversescale=reversescale, + showlegend=showlegend, + showscale=showscale, + stream=stream, + textfont=textfont, + texttemplate=texttemplate, + uid=uid, + uirevision=uirevision, + visible=visible, + x=x, + xaxis=xaxis, + xbingroup=xbingroup, + xbins=xbins, + xcalendar=xcalendar, + xhoverformat=xhoverformat, + xsrc=xsrc, + y=y, + yaxis=yaxis, + ybingroup=ybingroup, + ybins=ybins, + ycalendar=ycalendar, + yhoverformat=yhoverformat, + ysrc=ysrc, + z=z, + zauto=zauto, + zhoverformat=zhoverformat, + zmax=zmax, + zmid=zmid, + zmin=zmin, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_icicle(self, + branchvalues=None, + count=None, + customdata=None, + customdatasrc=None, + domain=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + insidetextfont=None, + labels=None, + labelssrc=None, + leaf=None, + legend=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + level=None, + marker=None, + maxdepth=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + outsidetextfont=None, + parents=None, + parentssrc=None, + pathbar=None, + root=None, + sort=None, + stream=None, + text=None, + textfont=None, + textinfo=None, + textposition=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + tiling=None, + uid=None, + uirevision=None, + values=None, + valuessrc=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Icicle trace @@ -10301,107 +9624,105 @@ def add_icicle( Figure """ from plotly.graph_objs import Icicle - new_trace = Icicle( - branchvalues=branchvalues, - count=count, - customdata=customdata, - customdatasrc=customdatasrc, - domain=domain, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - insidetextfont=insidetextfont, - labels=labels, - labelssrc=labelssrc, - leaf=leaf, - legend=legend, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - level=level, - marker=marker, - maxdepth=maxdepth, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - outsidetextfont=outsidetextfont, - parents=parents, - parentssrc=parentssrc, - pathbar=pathbar, - root=root, - sort=sort, - stream=stream, - text=text, - textfont=textfont, - textinfo=textinfo, - textposition=textposition, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - tiling=tiling, - uid=uid, - uirevision=uirevision, - values=values, - valuessrc=valuessrc, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_image( - self, - colormodel=None, - customdata=None, - customdatasrc=None, - dx=None, - dy=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - source=None, - stream=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - visible=None, - x0=None, - xaxis=None, - y0=None, - yaxis=None, - z=None, - zmax=None, - zmin=None, - zorder=None, - zsmooth=None, - zsrc=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "Figure": + + branchvalues=branchvalues, + count=count, + customdata=customdata, + customdatasrc=customdatasrc, + domain=domain, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + insidetextfont=insidetextfont, + labels=labels, + labelssrc=labelssrc, + leaf=leaf, + legend=legend, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + level=level, + marker=marker, + maxdepth=maxdepth, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + outsidetextfont=outsidetextfont, + parents=parents, + parentssrc=parentssrc, + pathbar=pathbar, + root=root, + sort=sort, + stream=stream, + text=text, + textfont=textfont, + textinfo=textinfo, + textposition=textposition, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + tiling=tiling, + uid=uid, + uirevision=uirevision, + values=values, + valuessrc=valuessrc, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_image(self, + colormodel=None, + customdata=None, + customdatasrc=None, + dx=None, + dy=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + source=None, + stream=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + visible=None, + x0=None, + xaxis=None, + y0=None, + yaxis=None, + z=None, + zmax=None, + zmin=None, + zorder=None, + zsmooth=None, + zsrc=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'Figure': """ Add a new Image trace @@ -10651,80 +9972,78 @@ def add_image( Figure """ from plotly.graph_objs import Image - new_trace = Image( - colormodel=colormodel, - customdata=customdata, - customdatasrc=customdatasrc, - dx=dx, - dy=dy, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - source=source, - stream=stream, - text=text, - textsrc=textsrc, - uid=uid, - uirevision=uirevision, - visible=visible, - x0=x0, - xaxis=xaxis, - y0=y0, - yaxis=yaxis, - z=z, - zmax=zmax, - zmin=zmin, - zorder=zorder, - zsmooth=zsmooth, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_indicator( - self, - align=None, - customdata=None, - customdatasrc=None, - delta=None, - domain=None, - gauge=None, - ids=None, - idssrc=None, - legend=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - meta=None, - metasrc=None, - mode=None, - name=None, - number=None, - stream=None, - title=None, - uid=None, - uirevision=None, - value=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + colormodel=colormodel, + customdata=customdata, + customdatasrc=customdatasrc, + dx=dx, + dy=dy, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + source=source, + stream=stream, + text=text, + textsrc=textsrc, + uid=uid, + uirevision=uirevision, + visible=visible, + x0=x0, + xaxis=xaxis, + y0=y0, + yaxis=yaxis, + z=z, + zmax=zmax, + zmin=zmin, + zorder=zorder, + zsmooth=zsmooth, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_indicator(self, + align=None, + customdata=None, + customdatasrc=None, + delta=None, + domain=None, + gauge=None, + ids=None, + idssrc=None, + legend=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + meta=None, + metasrc=None, + mode=None, + name=None, + number=None, + stream=None, + title=None, + uid=None, + uirevision=None, + value=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Indicator trace @@ -10867,101 +10186,99 @@ def add_indicator( Figure """ from plotly.graph_objs import Indicator - new_trace = Indicator( - align=align, - customdata=customdata, - customdatasrc=customdatasrc, - delta=delta, - domain=domain, - gauge=gauge, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - meta=meta, - metasrc=metasrc, - mode=mode, - name=name, - number=number, - stream=stream, - title=title, - uid=uid, - uirevision=uirevision, - value=value, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_isosurface( - self, - autocolorscale=None, - caps=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - coloraxis=None, - colorbar=None, - colorscale=None, - contour=None, - customdata=None, - customdatasrc=None, - flatshading=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - isomax=None, - isomin=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - lighting=None, - lightposition=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - reversescale=None, - scene=None, - showlegend=None, - showscale=None, - slices=None, - spaceframe=None, - stream=None, - surface=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - value=None, - valuehoverformat=None, - valuesrc=None, - visible=None, - x=None, - xhoverformat=None, - xsrc=None, - y=None, - yhoverformat=None, - ysrc=None, - z=None, - zhoverformat=None, - zsrc=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + align=align, + customdata=customdata, + customdatasrc=customdatasrc, + delta=delta, + domain=domain, + gauge=gauge, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + meta=meta, + metasrc=metasrc, + mode=mode, + name=name, + number=number, + stream=stream, + title=title, + uid=uid, + uirevision=uirevision, + value=value, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_isosurface(self, + autocolorscale=None, + caps=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + coloraxis=None, + colorbar=None, + colorscale=None, + contour=None, + customdata=None, + customdatasrc=None, + flatshading=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + isomax=None, + isomin=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + lighting=None, + lightposition=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + reversescale=None, + scene=None, + showlegend=None, + showscale=None, + slices=None, + spaceframe=None, + stream=None, + surface=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + value=None, + valuehoverformat=None, + valuesrc=None, + visible=None, + x=None, + xhoverformat=None, + xsrc=None, + y=None, + yhoverformat=None, + ysrc=None, + z=None, + zhoverformat=None, + zsrc=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Isosurface trace @@ -11301,148 +10618,146 @@ def add_isosurface( Figure """ from plotly.graph_objs import Isosurface - new_trace = Isosurface( - autocolorscale=autocolorscale, - caps=caps, - cauto=cauto, - cmax=cmax, - cmid=cmid, - cmin=cmin, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - contour=contour, - customdata=customdata, - customdatasrc=customdatasrc, - flatshading=flatshading, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - isomax=isomax, - isomin=isomin, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - lighting=lighting, - lightposition=lightposition, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - reversescale=reversescale, - scene=scene, - showlegend=showlegend, - showscale=showscale, - slices=slices, - spaceframe=spaceframe, - stream=stream, - surface=surface, - text=text, - textsrc=textsrc, - uid=uid, - uirevision=uirevision, - value=value, - valuehoverformat=valuehoverformat, - valuesrc=valuesrc, - visible=visible, - x=x, - xhoverformat=xhoverformat, - xsrc=xsrc, - y=y, - yhoverformat=yhoverformat, - ysrc=ysrc, - z=z, - zhoverformat=zhoverformat, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_mesh3d( - self, - alphahull=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorbar=None, - colorscale=None, - contour=None, - customdata=None, - customdatasrc=None, - delaunayaxis=None, - facecolor=None, - facecolorsrc=None, - flatshading=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - i=None, - ids=None, - idssrc=None, - intensity=None, - intensitymode=None, - intensitysrc=None, - isrc=None, - j=None, - jsrc=None, - k=None, - ksrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - lighting=None, - lightposition=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - reversescale=None, - scene=None, - showlegend=None, - showscale=None, - stream=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - vertexcolor=None, - vertexcolorsrc=None, - visible=None, - x=None, - xcalendar=None, - xhoverformat=None, - xsrc=None, - y=None, - ycalendar=None, - yhoverformat=None, - ysrc=None, - z=None, - zcalendar=None, - zhoverformat=None, - zsrc=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + autocolorscale=autocolorscale, + caps=caps, + cauto=cauto, + cmax=cmax, + cmid=cmid, + cmin=cmin, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + contour=contour, + customdata=customdata, + customdatasrc=customdatasrc, + flatshading=flatshading, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + isomax=isomax, + isomin=isomin, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + lighting=lighting, + lightposition=lightposition, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + reversescale=reversescale, + scene=scene, + showlegend=showlegend, + showscale=showscale, + slices=slices, + spaceframe=spaceframe, + stream=stream, + surface=surface, + text=text, + textsrc=textsrc, + uid=uid, + uirevision=uirevision, + value=value, + valuehoverformat=valuehoverformat, + valuesrc=valuesrc, + visible=visible, + x=x, + xhoverformat=xhoverformat, + xsrc=xsrc, + y=y, + yhoverformat=yhoverformat, + ysrc=ysrc, + z=z, + zhoverformat=zhoverformat, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_mesh3d(self, + alphahull=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorbar=None, + colorscale=None, + contour=None, + customdata=None, + customdatasrc=None, + delaunayaxis=None, + facecolor=None, + facecolorsrc=None, + flatshading=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + i=None, + ids=None, + idssrc=None, + intensity=None, + intensitymode=None, + intensitysrc=None, + isrc=None, + j=None, + jsrc=None, + k=None, + ksrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + lighting=None, + lightposition=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + reversescale=None, + scene=None, + showlegend=None, + showscale=None, + stream=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + vertexcolor=None, + vertexcolorsrc=None, + visible=None, + x=None, + xcalendar=None, + xhoverformat=None, + xsrc=None, + y=None, + ycalendar=None, + yhoverformat=None, + ysrc=None, + z=None, + zcalendar=None, + zhoverformat=None, + zsrc=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Mesh3d trace @@ -11852,138 +11167,136 @@ def add_mesh3d( Figure """ from plotly.graph_objs import Mesh3d - new_trace = Mesh3d( - alphahull=alphahull, - autocolorscale=autocolorscale, - cauto=cauto, - cmax=cmax, - cmid=cmid, - cmin=cmin, - color=color, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - contour=contour, - customdata=customdata, - customdatasrc=customdatasrc, - delaunayaxis=delaunayaxis, - facecolor=facecolor, - facecolorsrc=facecolorsrc, - flatshading=flatshading, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - i=i, - ids=ids, - idssrc=idssrc, - intensity=intensity, - intensitymode=intensitymode, - intensitysrc=intensitysrc, - isrc=isrc, - j=j, - jsrc=jsrc, - k=k, - ksrc=ksrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - lighting=lighting, - lightposition=lightposition, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - reversescale=reversescale, - scene=scene, - showlegend=showlegend, - showscale=showscale, - stream=stream, - text=text, - textsrc=textsrc, - uid=uid, - uirevision=uirevision, - vertexcolor=vertexcolor, - vertexcolorsrc=vertexcolorsrc, - visible=visible, - x=x, - xcalendar=xcalendar, - xhoverformat=xhoverformat, - xsrc=xsrc, - y=y, - ycalendar=ycalendar, - yhoverformat=yhoverformat, - ysrc=ysrc, - z=z, - zcalendar=zcalendar, - zhoverformat=zhoverformat, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_ohlc( - self, - close=None, - closesrc=None, - customdata=None, - customdatasrc=None, - decreasing=None, - high=None, - highsrc=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - increasing=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - low=None, - lowsrc=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - open=None, - opensrc=None, - selectedpoints=None, - showlegend=None, - stream=None, - text=None, - textsrc=None, - tickwidth=None, - uid=None, - uirevision=None, - visible=None, - x=None, - xaxis=None, - xcalendar=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - yaxis=None, - yhoverformat=None, - zorder=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "Figure": + + alphahull=alphahull, + autocolorscale=autocolorscale, + cauto=cauto, + cmax=cmax, + cmid=cmid, + cmin=cmin, + color=color, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + contour=contour, + customdata=customdata, + customdatasrc=customdatasrc, + delaunayaxis=delaunayaxis, + facecolor=facecolor, + facecolorsrc=facecolorsrc, + flatshading=flatshading, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + i=i, + ids=ids, + idssrc=idssrc, + intensity=intensity, + intensitymode=intensitymode, + intensitysrc=intensitysrc, + isrc=isrc, + j=j, + jsrc=jsrc, + k=k, + ksrc=ksrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + lighting=lighting, + lightposition=lightposition, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + reversescale=reversescale, + scene=scene, + showlegend=showlegend, + showscale=showscale, + stream=stream, + text=text, + textsrc=textsrc, + uid=uid, + uirevision=uirevision, + vertexcolor=vertexcolor, + vertexcolorsrc=vertexcolorsrc, + visible=visible, + x=x, + xcalendar=xcalendar, + xhoverformat=xhoverformat, + xsrc=xsrc, + y=y, + ycalendar=ycalendar, + yhoverformat=yhoverformat, + ysrc=ysrc, + z=z, + zcalendar=zcalendar, + zhoverformat=zhoverformat, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_ohlc(self, + close=None, + closesrc=None, + customdata=None, + customdatasrc=None, + decreasing=None, + high=None, + highsrc=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + increasing=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + low=None, + lowsrc=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + open=None, + opensrc=None, + selectedpoints=None, + showlegend=None, + stream=None, + text=None, + textsrc=None, + tickwidth=None, + uid=None, + uirevision=None, + visible=None, + x=None, + xaxis=None, + xcalendar=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + yaxis=None, + yhoverformat=None, + zorder=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'Figure': """ Add a new Ohlc trace @@ -12248,90 +11561,88 @@ def add_ohlc( Figure """ from plotly.graph_objs import Ohlc - new_trace = Ohlc( - close=close, - closesrc=closesrc, - customdata=customdata, - customdatasrc=customdatasrc, - decreasing=decreasing, - high=high, - highsrc=highsrc, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - increasing=increasing, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - low=low, - lowsrc=lowsrc, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - open=open, - opensrc=opensrc, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - text=text, - textsrc=textsrc, - tickwidth=tickwidth, - uid=uid, - uirevision=uirevision, - visible=visible, - x=x, - xaxis=xaxis, - xcalendar=xcalendar, - xhoverformat=xhoverformat, - xperiod=xperiod, - xperiod0=xperiod0, - xperiodalignment=xperiodalignment, - xsrc=xsrc, - yaxis=yaxis, - yhoverformat=yhoverformat, - zorder=zorder, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_parcats( - self, - arrangement=None, - bundlecolors=None, - counts=None, - countssrc=None, - dimensions=None, - dimensiondefaults=None, - domain=None, - hoverinfo=None, - hoveron=None, - hovertemplate=None, - labelfont=None, - legendgrouptitle=None, - legendwidth=None, - line=None, - meta=None, - metasrc=None, - name=None, - sortpaths=None, - stream=None, - tickfont=None, - uid=None, - uirevision=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + close=close, + closesrc=closesrc, + customdata=customdata, + customdatasrc=customdatasrc, + decreasing=decreasing, + high=high, + highsrc=highsrc, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + increasing=increasing, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + low=low, + lowsrc=lowsrc, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + open=open, + opensrc=opensrc, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + text=text, + textsrc=textsrc, + tickwidth=tickwidth, + uid=uid, + uirevision=uirevision, + visible=visible, + x=x, + xaxis=xaxis, + xcalendar=xcalendar, + xhoverformat=xhoverformat, + xperiod=xperiod, + xperiod0=xperiod0, + xperiodalignment=xperiodalignment, + xsrc=xsrc, + yaxis=yaxis, + yhoverformat=yhoverformat, + zorder=zorder, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_parcats(self, + arrangement=None, + bundlecolors=None, + counts=None, + countssrc=None, + dimensions=None, + dimensiondefaults=None, + domain=None, + hoverinfo=None, + hoveron=None, + hovertemplate=None, + labelfont=None, + legendgrouptitle=None, + legendwidth=None, + line=None, + meta=None, + metasrc=None, + name=None, + sortpaths=None, + stream=None, + tickfont=None, + uid=None, + uirevision=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Parcats trace @@ -12498,66 +11809,64 @@ def add_parcats( Figure """ from plotly.graph_objs import Parcats - new_trace = Parcats( - arrangement=arrangement, - bundlecolors=bundlecolors, - counts=counts, - countssrc=countssrc, - dimensions=dimensions, - dimensiondefaults=dimensiondefaults, - domain=domain, - hoverinfo=hoverinfo, - hoveron=hoveron, - hovertemplate=hovertemplate, - labelfont=labelfont, - legendgrouptitle=legendgrouptitle, - legendwidth=legendwidth, - line=line, - meta=meta, - metasrc=metasrc, - name=name, - sortpaths=sortpaths, - stream=stream, - tickfont=tickfont, - uid=uid, - uirevision=uirevision, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_parcoords( - self, - customdata=None, - customdatasrc=None, - dimensions=None, - dimensiondefaults=None, - domain=None, - ids=None, - idssrc=None, - labelangle=None, - labelfont=None, - labelside=None, - legend=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - meta=None, - metasrc=None, - name=None, - rangefont=None, - stream=None, - tickfont=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + arrangement=arrangement, + bundlecolors=bundlecolors, + counts=counts, + countssrc=countssrc, + dimensions=dimensions, + dimensiondefaults=dimensiondefaults, + domain=domain, + hoverinfo=hoverinfo, + hoveron=hoveron, + hovertemplate=hovertemplate, + labelfont=labelfont, + legendgrouptitle=legendgrouptitle, + legendwidth=legendwidth, + line=line, + meta=meta, + metasrc=metasrc, + name=name, + sortpaths=sortpaths, + stream=stream, + tickfont=tickfont, + uid=uid, + uirevision=uirevision, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_parcoords(self, + customdata=None, + customdatasrc=None, + dimensions=None, + dimensiondefaults=None, + domain=None, + ids=None, + idssrc=None, + labelangle=None, + labelfont=None, + labelside=None, + legend=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + meta=None, + metasrc=None, + name=None, + rangefont=None, + stream=None, + tickfont=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Parcoords trace @@ -12705,96 +12014,94 @@ def add_parcoords( Figure """ from plotly.graph_objs import Parcoords - new_trace = Parcoords( - customdata=customdata, - customdatasrc=customdatasrc, - dimensions=dimensions, - dimensiondefaults=dimensiondefaults, - domain=domain, - ids=ids, - idssrc=idssrc, - labelangle=labelangle, - labelfont=labelfont, - labelside=labelside, - legend=legend, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - meta=meta, - metasrc=metasrc, - name=name, - rangefont=rangefont, - stream=stream, - tickfont=tickfont, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_pie( - self, - automargin=None, - customdata=None, - customdatasrc=None, - direction=None, - dlabel=None, - domain=None, - hole=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - insidetextfont=None, - insidetextorientation=None, - label0=None, - labels=None, - labelssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - marker=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - outsidetextfont=None, - pull=None, - pullsrc=None, - rotation=None, - scalegroup=None, - showlegend=None, - sort=None, - stream=None, - text=None, - textfont=None, - textinfo=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - title=None, - uid=None, - uirevision=None, - values=None, - valuessrc=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + customdata=customdata, + customdatasrc=customdatasrc, + dimensions=dimensions, + dimensiondefaults=dimensiondefaults, + domain=domain, + ids=ids, + idssrc=idssrc, + labelangle=labelangle, + labelfont=labelfont, + labelside=labelside, + legend=legend, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + meta=meta, + metasrc=metasrc, + name=name, + rangefont=rangefont, + stream=stream, + tickfont=tickfont, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_pie(self, + automargin=None, + customdata=None, + customdatasrc=None, + direction=None, + dlabel=None, + domain=None, + hole=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + insidetextfont=None, + insidetextorientation=None, + label0=None, + labels=None, + labelssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + marker=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + outsidetextfont=None, + pull=None, + pullsrc=None, + rotation=None, + scalegroup=None, + showlegend=None, + sort=None, + stream=None, + text=None, + textfont=None, + textinfo=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + title=None, + uid=None, + uirevision=None, + values=None, + valuessrc=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Pie trace @@ -13082,97 +12389,95 @@ def add_pie( Figure """ from plotly.graph_objs import Pie - new_trace = Pie( - automargin=automargin, - customdata=customdata, - customdatasrc=customdatasrc, - direction=direction, - dlabel=dlabel, - domain=domain, - hole=hole, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - insidetextfont=insidetextfont, - insidetextorientation=insidetextorientation, - label0=label0, - labels=labels, - labelssrc=labelssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - marker=marker, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - outsidetextfont=outsidetextfont, - pull=pull, - pullsrc=pullsrc, - rotation=rotation, - scalegroup=scalegroup, - showlegend=showlegend, - sort=sort, - stream=stream, - text=text, - textfont=textfont, - textinfo=textinfo, - textposition=textposition, - textpositionsrc=textpositionsrc, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - title=title, - uid=uid, - uirevision=uirevision, - values=values, - valuessrc=valuessrc, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_sankey( - self, - arrangement=None, - customdata=None, - customdatasrc=None, - domain=None, - hoverinfo=None, - hoverlabel=None, - ids=None, - idssrc=None, - legend=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - link=None, - meta=None, - metasrc=None, - name=None, - node=None, - orientation=None, - selectedpoints=None, - stream=None, - textfont=None, - uid=None, - uirevision=None, - valueformat=None, - valuesuffix=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + automargin=automargin, + customdata=customdata, + customdatasrc=customdatasrc, + direction=direction, + dlabel=dlabel, + domain=domain, + hole=hole, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + insidetextfont=insidetextfont, + insidetextorientation=insidetextorientation, + label0=label0, + labels=labels, + labelssrc=labelssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + marker=marker, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + outsidetextfont=outsidetextfont, + pull=pull, + pullsrc=pullsrc, + rotation=rotation, + scalegroup=scalegroup, + showlegend=showlegend, + sort=sort, + stream=stream, + text=text, + textfont=textfont, + textinfo=textinfo, + textposition=textposition, + textpositionsrc=textpositionsrc, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + title=title, + uid=uid, + uirevision=uirevision, + values=values, + valuessrc=valuessrc, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_sankey(self, + arrangement=None, + customdata=None, + customdatasrc=None, + domain=None, + hoverinfo=None, + hoverlabel=None, + ids=None, + idssrc=None, + legend=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + link=None, + meta=None, + metasrc=None, + name=None, + node=None, + orientation=None, + selectedpoints=None, + stream=None, + textfont=None, + uid=None, + uirevision=None, + valueformat=None, + valuesuffix=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Sankey trace @@ -13331,119 +12636,117 @@ def add_sankey( Figure """ from plotly.graph_objs import Sankey - new_trace = Sankey( - arrangement=arrangement, - customdata=customdata, - customdatasrc=customdatasrc, - domain=domain, - hoverinfo=hoverinfo, - hoverlabel=hoverlabel, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - link=link, - meta=meta, - metasrc=metasrc, - name=name, - node=node, - orientation=orientation, - selectedpoints=selectedpoints, - stream=stream, - textfont=textfont, - uid=uid, - uirevision=uirevision, - valueformat=valueformat, - valuesuffix=valuesuffix, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_scatter( - self, - alignmentgroup=None, - cliponaxis=None, - connectgaps=None, - customdata=None, - customdatasrc=None, - dx=None, - dy=None, - error_x=None, - error_y=None, - fill=None, - fillcolor=None, - fillgradient=None, - fillpattern=None, - groupnorm=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hoveron=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - offsetgroup=None, - opacity=None, - orientation=None, - selected=None, - selectedpoints=None, - showlegend=None, - stackgaps=None, - stackgroup=None, - stream=None, - text=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - x=None, - x0=None, - xaxis=None, - xcalendar=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - y=None, - y0=None, - yaxis=None, - ycalendar=None, - yhoverformat=None, - yperiod=None, - yperiod0=None, - yperiodalignment=None, - ysrc=None, - zorder=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "Figure": + + arrangement=arrangement, + customdata=customdata, + customdatasrc=customdatasrc, + domain=domain, + hoverinfo=hoverinfo, + hoverlabel=hoverlabel, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + link=link, + meta=meta, + metasrc=metasrc, + name=name, + node=node, + orientation=orientation, + selectedpoints=selectedpoints, + stream=stream, + textfont=textfont, + uid=uid, + uirevision=uirevision, + valueformat=valueformat, + valuesuffix=valuesuffix, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_scatter(self, + alignmentgroup=None, + cliponaxis=None, + connectgaps=None, + customdata=None, + customdatasrc=None, + dx=None, + dy=None, + error_x=None, + error_y=None, + fill=None, + fillcolor=None, + fillgradient=None, + fillpattern=None, + groupnorm=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hoveron=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + offsetgroup=None, + opacity=None, + orientation=None, + selected=None, + selectedpoints=None, + showlegend=None, + stackgaps=None, + stackgroup=None, + stream=None, + text=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + x=None, + x0=None, + xaxis=None, + xcalendar=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + y=None, + y0=None, + yaxis=None, + ycalendar=None, + yhoverformat=None, + yperiod=None, + yperiod0=None, + yperiodalignment=None, + ysrc=None, + zorder=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'Figure': """ Add a new Scatter trace @@ -13901,147 +13204,145 @@ def add_scatter( Figure """ from plotly.graph_objs import Scatter - new_trace = Scatter( - alignmentgroup=alignmentgroup, - cliponaxis=cliponaxis, - connectgaps=connectgaps, - customdata=customdata, - customdatasrc=customdatasrc, - dx=dx, - dy=dy, - error_x=error_x, - error_y=error_y, - fill=fill, - fillcolor=fillcolor, - fillgradient=fillgradient, - fillpattern=fillpattern, - groupnorm=groupnorm, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hoveron=hoveron, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - marker=marker, - meta=meta, - metasrc=metasrc, - mode=mode, - name=name, - offsetgroup=offsetgroup, - opacity=opacity, - orientation=orientation, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - stackgaps=stackgaps, - stackgroup=stackgroup, - stream=stream, - text=text, - textfont=textfont, - textposition=textposition, - textpositionsrc=textpositionsrc, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - x=x, - x0=x0, - xaxis=xaxis, - xcalendar=xcalendar, - xhoverformat=xhoverformat, - xperiod=xperiod, - xperiod0=xperiod0, - xperiodalignment=xperiodalignment, - xsrc=xsrc, - y=y, - y0=y0, - yaxis=yaxis, - ycalendar=ycalendar, - yhoverformat=yhoverformat, - yperiod=yperiod, - yperiod0=yperiod0, - yperiodalignment=yperiodalignment, - ysrc=ysrc, - zorder=zorder, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_scatter3d( - self, - connectgaps=None, - customdata=None, - customdatasrc=None, - error_x=None, - error_y=None, - error_z=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - projection=None, - scene=None, - showlegend=None, - stream=None, - surfaceaxis=None, - surfacecolor=None, - text=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - visible=None, - x=None, - xcalendar=None, - xhoverformat=None, - xsrc=None, - y=None, - ycalendar=None, - yhoverformat=None, - ysrc=None, - z=None, - zcalendar=None, - zhoverformat=None, - zsrc=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + alignmentgroup=alignmentgroup, + cliponaxis=cliponaxis, + connectgaps=connectgaps, + customdata=customdata, + customdatasrc=customdatasrc, + dx=dx, + dy=dy, + error_x=error_x, + error_y=error_y, + fill=fill, + fillcolor=fillcolor, + fillgradient=fillgradient, + fillpattern=fillpattern, + groupnorm=groupnorm, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hoveron=hoveron, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + marker=marker, + meta=meta, + metasrc=metasrc, + mode=mode, + name=name, + offsetgroup=offsetgroup, + opacity=opacity, + orientation=orientation, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + stackgaps=stackgaps, + stackgroup=stackgroup, + stream=stream, + text=text, + textfont=textfont, + textposition=textposition, + textpositionsrc=textpositionsrc, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + x=x, + x0=x0, + xaxis=xaxis, + xcalendar=xcalendar, + xhoverformat=xhoverformat, + xperiod=xperiod, + xperiod0=xperiod0, + xperiodalignment=xperiodalignment, + xsrc=xsrc, + y=y, + y0=y0, + yaxis=yaxis, + ycalendar=ycalendar, + yhoverformat=yhoverformat, + yperiod=yperiod, + yperiod0=yperiod0, + yperiodalignment=yperiodalignment, + ysrc=ysrc, + zorder=zorder, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_scatter3d(self, + connectgaps=None, + customdata=None, + customdatasrc=None, + error_x=None, + error_y=None, + error_z=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + projection=None, + scene=None, + showlegend=None, + stream=None, + surfaceaxis=None, + surfacecolor=None, + text=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + visible=None, + x=None, + xcalendar=None, + xhoverformat=None, + xsrc=None, + y=None, + ycalendar=None, + yhoverformat=None, + ysrc=None, + z=None, + zcalendar=None, + zhoverformat=None, + zsrc=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Scatter3d trace @@ -14356,124 +13657,122 @@ def add_scatter3d( Figure """ from plotly.graph_objs import Scatter3d - new_trace = Scatter3d( - connectgaps=connectgaps, - customdata=customdata, - customdatasrc=customdatasrc, - error_x=error_x, - error_y=error_y, - error_z=error_z, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - marker=marker, - meta=meta, - metasrc=metasrc, - mode=mode, - name=name, - opacity=opacity, - projection=projection, - scene=scene, - showlegend=showlegend, - stream=stream, - surfaceaxis=surfaceaxis, - surfacecolor=surfacecolor, - text=text, - textfont=textfont, - textposition=textposition, - textpositionsrc=textpositionsrc, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - uid=uid, - uirevision=uirevision, - visible=visible, - x=x, - xcalendar=xcalendar, - xhoverformat=xhoverformat, - xsrc=xsrc, - y=y, - ycalendar=ycalendar, - yhoverformat=yhoverformat, - ysrc=ysrc, - z=z, - zcalendar=zcalendar, - zhoverformat=zhoverformat, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_scattercarpet( - self, - a=None, - asrc=None, - b=None, - bsrc=None, - carpet=None, - connectgaps=None, - customdata=None, - customdatasrc=None, - fill=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hoveron=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - text=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - xaxis=None, - yaxis=None, - zorder=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "Figure": + + connectgaps=connectgaps, + customdata=customdata, + customdatasrc=customdatasrc, + error_x=error_x, + error_y=error_y, + error_z=error_z, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + marker=marker, + meta=meta, + metasrc=metasrc, + mode=mode, + name=name, + opacity=opacity, + projection=projection, + scene=scene, + showlegend=showlegend, + stream=stream, + surfaceaxis=surfaceaxis, + surfacecolor=surfacecolor, + text=text, + textfont=textfont, + textposition=textposition, + textpositionsrc=textpositionsrc, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + uid=uid, + uirevision=uirevision, + visible=visible, + x=x, + xcalendar=xcalendar, + xhoverformat=xhoverformat, + xsrc=xsrc, + y=y, + ycalendar=ycalendar, + yhoverformat=yhoverformat, + ysrc=ysrc, + z=z, + zcalendar=zcalendar, + zhoverformat=zhoverformat, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_scattercarpet(self, + a=None, + asrc=None, + b=None, + bsrc=None, + carpet=None, + connectgaps=None, + customdata=None, + customdatasrc=None, + fill=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hoveron=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + text=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + xaxis=None, + yaxis=None, + zorder=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'Figure': """ Add a new Scattercarpet trace @@ -14773,119 +14072,117 @@ def add_scattercarpet( Figure """ from plotly.graph_objs import Scattercarpet - new_trace = Scattercarpet( - a=a, - asrc=asrc, - b=b, - bsrc=bsrc, - carpet=carpet, - connectgaps=connectgaps, - customdata=customdata, - customdatasrc=customdatasrc, - fill=fill, - fillcolor=fillcolor, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hoveron=hoveron, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - marker=marker, - meta=meta, - metasrc=metasrc, - mode=mode, - name=name, - opacity=opacity, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - text=text, - textfont=textfont, - textposition=textposition, - textpositionsrc=textpositionsrc, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - xaxis=xaxis, - yaxis=yaxis, - zorder=zorder, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_scattergeo( - self, - connectgaps=None, - customdata=None, - customdatasrc=None, - featureidkey=None, - fill=None, - fillcolor=None, - geo=None, - geojson=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - lat=None, - latsrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - locationmode=None, - locations=None, - locationssrc=None, - lon=None, - lonsrc=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - text=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + a=a, + asrc=asrc, + b=b, + bsrc=bsrc, + carpet=carpet, + connectgaps=connectgaps, + customdata=customdata, + customdatasrc=customdatasrc, + fill=fill, + fillcolor=fillcolor, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hoveron=hoveron, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + marker=marker, + meta=meta, + metasrc=metasrc, + mode=mode, + name=name, + opacity=opacity, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + text=text, + textfont=textfont, + textposition=textposition, + textpositionsrc=textpositionsrc, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + xaxis=xaxis, + yaxis=yaxis, + zorder=zorder, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_scattergeo(self, + connectgaps=None, + customdata=None, + customdatasrc=None, + featureidkey=None, + fill=None, + fillcolor=None, + geo=None, + geojson=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + lat=None, + latsrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + locationmode=None, + locations=None, + locationssrc=None, + lon=None, + lonsrc=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + text=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Scattergeo trace @@ -15181,133 +14478,131 @@ def add_scattergeo( Figure """ from plotly.graph_objs import Scattergeo - new_trace = Scattergeo( - connectgaps=connectgaps, - customdata=customdata, - customdatasrc=customdatasrc, - featureidkey=featureidkey, - fill=fill, - fillcolor=fillcolor, - geo=geo, - geojson=geojson, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - lat=lat, - latsrc=latsrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - locationmode=locationmode, - locations=locations, - locationssrc=locationssrc, - lon=lon, - lonsrc=lonsrc, - marker=marker, - meta=meta, - metasrc=metasrc, - mode=mode, - name=name, - opacity=opacity, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - text=text, - textfont=textfont, - textposition=textposition, - textpositionsrc=textpositionsrc, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_scattergl( - self, - connectgaps=None, - customdata=None, - customdatasrc=None, - dx=None, - dy=None, - error_x=None, - error_y=None, - fill=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - text=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - x=None, - x0=None, - xaxis=None, - xcalendar=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - y=None, - y0=None, - yaxis=None, - ycalendar=None, - yhoverformat=None, - yperiod=None, - yperiod0=None, - yperiodalignment=None, - ysrc=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "Figure": + + connectgaps=connectgaps, + customdata=customdata, + customdatasrc=customdatasrc, + featureidkey=featureidkey, + fill=fill, + fillcolor=fillcolor, + geo=geo, + geojson=geojson, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + lat=lat, + latsrc=latsrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + locationmode=locationmode, + locations=locations, + locationssrc=locationssrc, + lon=lon, + lonsrc=lonsrc, + marker=marker, + meta=meta, + metasrc=metasrc, + mode=mode, + name=name, + opacity=opacity, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + text=text, + textfont=textfont, + textposition=textposition, + textpositionsrc=textpositionsrc, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_scattergl(self, + connectgaps=None, + customdata=None, + customdatasrc=None, + dx=None, + dy=None, + error_x=None, + error_y=None, + fill=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + text=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + x=None, + x0=None, + xaxis=None, + xcalendar=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + y=None, + y0=None, + yaxis=None, + ycalendar=None, + yhoverformat=None, + yperiod=None, + yperiod0=None, + yperiodalignment=None, + ysrc=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'Figure': """ Add a new Scattergl trace @@ -15681,128 +14976,126 @@ def add_scattergl( Figure """ from plotly.graph_objs import Scattergl - new_trace = Scattergl( - connectgaps=connectgaps, - customdata=customdata, - customdatasrc=customdatasrc, - dx=dx, - dy=dy, - error_x=error_x, - error_y=error_y, - fill=fill, - fillcolor=fillcolor, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - marker=marker, - meta=meta, - metasrc=metasrc, - mode=mode, - name=name, - opacity=opacity, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - text=text, - textfont=textfont, - textposition=textposition, - textpositionsrc=textpositionsrc, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - x=x, - x0=x0, - xaxis=xaxis, - xcalendar=xcalendar, - xhoverformat=xhoverformat, - xperiod=xperiod, - xperiod0=xperiod0, - xperiodalignment=xperiodalignment, - xsrc=xsrc, - y=y, - y0=y0, - yaxis=yaxis, - ycalendar=ycalendar, - yhoverformat=yhoverformat, - yperiod=yperiod, - yperiod0=yperiod0, - yperiodalignment=yperiodalignment, - ysrc=ysrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_scattermap( - self, - below=None, - cluster=None, - connectgaps=None, - customdata=None, - customdatasrc=None, - fill=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - lat=None, - latsrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - lon=None, - lonsrc=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - subplot=None, - text=None, - textfont=None, - textposition=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + connectgaps=connectgaps, + customdata=customdata, + customdatasrc=customdatasrc, + dx=dx, + dy=dy, + error_x=error_x, + error_y=error_y, + fill=fill, + fillcolor=fillcolor, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + marker=marker, + meta=meta, + metasrc=metasrc, + mode=mode, + name=name, + opacity=opacity, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + text=text, + textfont=textfont, + textposition=textposition, + textpositionsrc=textpositionsrc, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + x=x, + x0=x0, + xaxis=xaxis, + xcalendar=xcalendar, + xhoverformat=xhoverformat, + xperiod=xperiod, + xperiod0=xperiod0, + xperiodalignment=xperiodalignment, + xsrc=xsrc, + y=y, + y0=y0, + yaxis=yaxis, + ycalendar=ycalendar, + yhoverformat=yhoverformat, + yperiod=yperiod, + yperiod0=yperiod0, + yperiodalignment=yperiodalignment, + ysrc=ysrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_scattermap(self, + below=None, + cluster=None, + connectgaps=None, + customdata=None, + customdatasrc=None, + fill=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + lat=None, + latsrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + lon=None, + lonsrc=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + subplot=None, + text=None, + textfont=None, + textposition=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Scattermap trace @@ -16074,112 +15367,110 @@ def add_scattermap( Figure """ from plotly.graph_objs import Scattermap - new_trace = Scattermap( - below=below, - cluster=cluster, - connectgaps=connectgaps, - customdata=customdata, - customdatasrc=customdatasrc, - fill=fill, - fillcolor=fillcolor, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - lat=lat, - latsrc=latsrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - lon=lon, - lonsrc=lonsrc, - marker=marker, - meta=meta, - metasrc=metasrc, - mode=mode, - name=name, - opacity=opacity, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - subplot=subplot, - text=text, - textfont=textfont, - textposition=textposition, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_scattermapbox( - self, - below=None, - cluster=None, - connectgaps=None, - customdata=None, - customdatasrc=None, - fill=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - lat=None, - latsrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - lon=None, - lonsrc=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - subplot=None, - text=None, - textfont=None, - textposition=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + below=below, + cluster=cluster, + connectgaps=connectgaps, + customdata=customdata, + customdatasrc=customdatasrc, + fill=fill, + fillcolor=fillcolor, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + lat=lat, + latsrc=latsrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + lon=lon, + lonsrc=lonsrc, + marker=marker, + meta=meta, + metasrc=metasrc, + mode=mode, + name=name, + opacity=opacity, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + subplot=subplot, + text=text, + textfont=textfont, + textposition=textposition, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_scattermapbox(self, + below=None, + cluster=None, + connectgaps=None, + customdata=None, + customdatasrc=None, + fill=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + lat=None, + latsrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + lon=None, + lonsrc=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + subplot=None, + text=None, + textfont=None, + textposition=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Scattermapbox trace @@ -16460,118 +15751,116 @@ def add_scattermapbox( Figure """ from plotly.graph_objs import Scattermapbox - new_trace = Scattermapbox( - below=below, - cluster=cluster, - connectgaps=connectgaps, - customdata=customdata, - customdatasrc=customdatasrc, - fill=fill, - fillcolor=fillcolor, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - lat=lat, - latsrc=latsrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - lon=lon, - lonsrc=lonsrc, - marker=marker, - meta=meta, - metasrc=metasrc, - mode=mode, - name=name, - opacity=opacity, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - subplot=subplot, - text=text, - textfont=textfont, - textposition=textposition, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_scatterpolar( - self, - cliponaxis=None, - connectgaps=None, - customdata=None, - customdatasrc=None, - dr=None, - dtheta=None, - fill=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hoveron=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - r=None, - r0=None, - rsrc=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - subplot=None, - text=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - theta=None, - theta0=None, - thetasrc=None, - thetaunit=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + below=below, + cluster=cluster, + connectgaps=connectgaps, + customdata=customdata, + customdatasrc=customdatasrc, + fill=fill, + fillcolor=fillcolor, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + lat=lat, + latsrc=latsrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + lon=lon, + lonsrc=lonsrc, + marker=marker, + meta=meta, + metasrc=metasrc, + mode=mode, + name=name, + opacity=opacity, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + subplot=subplot, + text=text, + textfont=textfont, + textposition=textposition, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_scatterpolar(self, + cliponaxis=None, + connectgaps=None, + customdata=None, + customdatasrc=None, + dr=None, + dtheta=None, + fill=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hoveron=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + r=None, + r0=None, + rsrc=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + subplot=None, + text=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + theta=None, + theta0=None, + thetasrc=None, + thetaunit=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Scatterpolar trace @@ -16876,122 +16165,120 @@ def add_scatterpolar( Figure """ from plotly.graph_objs import Scatterpolar - new_trace = Scatterpolar( - cliponaxis=cliponaxis, - connectgaps=connectgaps, - customdata=customdata, - customdatasrc=customdatasrc, - dr=dr, - dtheta=dtheta, - fill=fill, - fillcolor=fillcolor, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hoveron=hoveron, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - marker=marker, - meta=meta, - metasrc=metasrc, - mode=mode, - name=name, - opacity=opacity, - r=r, - r0=r0, - rsrc=rsrc, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - subplot=subplot, - text=text, - textfont=textfont, - textposition=textposition, - textpositionsrc=textpositionsrc, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - theta=theta, - theta0=theta0, - thetasrc=thetasrc, - thetaunit=thetaunit, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_scatterpolargl( - self, - connectgaps=None, - customdata=None, - customdatasrc=None, - dr=None, - dtheta=None, - fill=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - r=None, - r0=None, - rsrc=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - subplot=None, - text=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - theta=None, - theta0=None, - thetasrc=None, - thetaunit=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + cliponaxis=cliponaxis, + connectgaps=connectgaps, + customdata=customdata, + customdatasrc=customdatasrc, + dr=dr, + dtheta=dtheta, + fill=fill, + fillcolor=fillcolor, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hoveron=hoveron, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + marker=marker, + meta=meta, + metasrc=metasrc, + mode=mode, + name=name, + opacity=opacity, + r=r, + r0=r0, + rsrc=rsrc, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + subplot=subplot, + text=text, + textfont=textfont, + textposition=textposition, + textpositionsrc=textpositionsrc, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + theta=theta, + theta0=theta0, + thetasrc=thetasrc, + thetaunit=thetaunit, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_scatterpolargl(self, + connectgaps=None, + customdata=None, + customdatasrc=None, + dr=None, + dtheta=None, + fill=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + r=None, + r0=None, + rsrc=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + subplot=None, + text=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + theta=None, + theta0=None, + thetasrc=None, + thetaunit=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Scatterpolargl trace @@ -17295,117 +16582,115 @@ def add_scatterpolargl( Figure """ from plotly.graph_objs import Scatterpolargl - new_trace = Scatterpolargl( - connectgaps=connectgaps, - customdata=customdata, - customdatasrc=customdatasrc, - dr=dr, - dtheta=dtheta, - fill=fill, - fillcolor=fillcolor, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - marker=marker, - meta=meta, - metasrc=metasrc, - mode=mode, - name=name, - opacity=opacity, - r=r, - r0=r0, - rsrc=rsrc, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - subplot=subplot, - text=text, - textfont=textfont, - textposition=textposition, - textpositionsrc=textpositionsrc, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - theta=theta, - theta0=theta0, - thetasrc=thetasrc, - thetaunit=thetaunit, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_scattersmith( - self, - cliponaxis=None, - connectgaps=None, - customdata=None, - customdatasrc=None, - fill=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hoveron=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - imag=None, - imagsrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - real=None, - realsrc=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - subplot=None, - text=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + connectgaps=connectgaps, + customdata=customdata, + customdatasrc=customdatasrc, + dr=dr, + dtheta=dtheta, + fill=fill, + fillcolor=fillcolor, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + marker=marker, + meta=meta, + metasrc=metasrc, + mode=mode, + name=name, + opacity=opacity, + r=r, + r0=r0, + rsrc=rsrc, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + subplot=subplot, + text=text, + textfont=textfont, + textposition=textposition, + textpositionsrc=textpositionsrc, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + theta=theta, + theta0=theta0, + thetasrc=thetasrc, + thetaunit=thetaunit, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_scattersmith(self, + cliponaxis=None, + connectgaps=None, + customdata=None, + customdatasrc=None, + fill=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hoveron=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + imag=None, + imagsrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + real=None, + realsrc=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + subplot=None, + text=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Scattersmith trace @@ -17697,117 +16982,115 @@ def add_scattersmith( Figure """ from plotly.graph_objs import Scattersmith - new_trace = Scattersmith( - cliponaxis=cliponaxis, - connectgaps=connectgaps, - customdata=customdata, - customdatasrc=customdatasrc, - fill=fill, - fillcolor=fillcolor, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hoveron=hoveron, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - imag=imag, - imagsrc=imagsrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - marker=marker, - meta=meta, - metasrc=metasrc, - mode=mode, - name=name, - opacity=opacity, - real=real, - realsrc=realsrc, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - subplot=subplot, - text=text, - textfont=textfont, - textposition=textposition, - textpositionsrc=textpositionsrc, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_scatterternary( - self, - a=None, - asrc=None, - b=None, - bsrc=None, - c=None, - cliponaxis=None, - connectgaps=None, - csrc=None, - customdata=None, - customdatasrc=None, - fill=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hoveron=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - subplot=None, - sum=None, - text=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + cliponaxis=cliponaxis, + connectgaps=connectgaps, + customdata=customdata, + customdatasrc=customdatasrc, + fill=fill, + fillcolor=fillcolor, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hoveron=hoveron, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + imag=imag, + imagsrc=imagsrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + marker=marker, + meta=meta, + metasrc=metasrc, + mode=mode, + name=name, + opacity=opacity, + real=real, + realsrc=realsrc, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + subplot=subplot, + text=text, + textfont=textfont, + textposition=textposition, + textpositionsrc=textpositionsrc, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_scatterternary(self, + a=None, + asrc=None, + b=None, + bsrc=None, + c=None, + cliponaxis=None, + connectgaps=None, + csrc=None, + customdata=None, + customdatasrc=None, + fill=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hoveron=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + subplot=None, + sum=None, + text=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Scatterternary trace @@ -18115,109 +17398,107 @@ def add_scatterternary( Figure """ from plotly.graph_objs import Scatterternary - new_trace = Scatterternary( - a=a, - asrc=asrc, - b=b, - bsrc=bsrc, - c=c, - cliponaxis=cliponaxis, - connectgaps=connectgaps, - csrc=csrc, - customdata=customdata, - customdatasrc=customdatasrc, - fill=fill, - fillcolor=fillcolor, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hoveron=hoveron, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - marker=marker, - meta=meta, - metasrc=metasrc, - mode=mode, - name=name, - opacity=opacity, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - subplot=subplot, - sum=sum, - text=text, - textfont=textfont, - textposition=textposition, - textpositionsrc=textpositionsrc, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_splom( - self, - customdata=None, - customdatasrc=None, - diagonal=None, - dimensions=None, - dimensiondefaults=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - marker=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - selected=None, - selectedpoints=None, - showlegend=None, - showlowerhalf=None, - showupperhalf=None, - stream=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - xaxes=None, - xhoverformat=None, - yaxes=None, - yhoverformat=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + a=a, + asrc=asrc, + b=b, + bsrc=bsrc, + c=c, + cliponaxis=cliponaxis, + connectgaps=connectgaps, + csrc=csrc, + customdata=customdata, + customdatasrc=customdatasrc, + fill=fill, + fillcolor=fillcolor, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hoveron=hoveron, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + marker=marker, + meta=meta, + metasrc=metasrc, + mode=mode, + name=name, + opacity=opacity, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + subplot=subplot, + sum=sum, + text=text, + textfont=textfont, + textposition=textposition, + textpositionsrc=textpositionsrc, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_splom(self, + customdata=None, + customdatasrc=None, + diagonal=None, + dimensions=None, + dimensiondefaults=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + marker=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + selected=None, + selectedpoints=None, + showlegend=None, + showlowerhalf=None, + showupperhalf=None, + stream=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + xaxes=None, + xhoverformat=None, + yaxes=None, + yhoverformat=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Splom trace @@ -18475,117 +17756,115 @@ def add_splom( Figure """ from plotly.graph_objs import Splom - new_trace = Splom( - customdata=customdata, - customdatasrc=customdatasrc, - diagonal=diagonal, - dimensions=dimensions, - dimensiondefaults=dimensiondefaults, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - marker=marker, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - showlowerhalf=showlowerhalf, - showupperhalf=showupperhalf, - stream=stream, - text=text, - textsrc=textsrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - xaxes=xaxes, - xhoverformat=xhoverformat, - yaxes=yaxes, - yhoverformat=yhoverformat, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_streamtube( - self, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - coloraxis=None, - colorbar=None, - colorscale=None, - customdata=None, - customdatasrc=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - lighting=None, - lightposition=None, - maxdisplayed=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - reversescale=None, - scene=None, - showlegend=None, - showscale=None, - sizeref=None, - starts=None, - stream=None, - text=None, - u=None, - uhoverformat=None, - uid=None, - uirevision=None, - usrc=None, - v=None, - vhoverformat=None, - visible=None, - vsrc=None, - w=None, - whoverformat=None, - wsrc=None, - x=None, - xhoverformat=None, - xsrc=None, - y=None, - yhoverformat=None, - ysrc=None, - z=None, - zhoverformat=None, - zsrc=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + customdata=customdata, + customdatasrc=customdatasrc, + diagonal=diagonal, + dimensions=dimensions, + dimensiondefaults=dimensiondefaults, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + marker=marker, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + showlowerhalf=showlowerhalf, + showupperhalf=showupperhalf, + stream=stream, + text=text, + textsrc=textsrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + xaxes=xaxes, + xhoverformat=xhoverformat, + yaxes=yaxes, + yhoverformat=yhoverformat, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_streamtube(self, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + coloraxis=None, + colorbar=None, + colorscale=None, + customdata=None, + customdatasrc=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + lighting=None, + lightposition=None, + maxdisplayed=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + reversescale=None, + scene=None, + showlegend=None, + showscale=None, + sizeref=None, + starts=None, + stream=None, + text=None, + u=None, + uhoverformat=None, + uid=None, + uirevision=None, + usrc=None, + v=None, + vhoverformat=None, + visible=None, + vsrc=None, + w=None, + whoverformat=None, + wsrc=None, + x=None, + xhoverformat=None, + xsrc=None, + y=None, + yhoverformat=None, + ysrc=None, + z=None, + zhoverformat=None, + zsrc=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Streamtube trace @@ -18934,125 +18213,123 @@ def add_streamtube( Figure """ from plotly.graph_objs import Streamtube - new_trace = Streamtube( - autocolorscale=autocolorscale, - cauto=cauto, - cmax=cmax, - cmid=cmid, - cmin=cmin, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - customdata=customdata, - customdatasrc=customdatasrc, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - lighting=lighting, - lightposition=lightposition, - maxdisplayed=maxdisplayed, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - reversescale=reversescale, - scene=scene, - showlegend=showlegend, - showscale=showscale, - sizeref=sizeref, - starts=starts, - stream=stream, - text=text, - u=u, - uhoverformat=uhoverformat, - uid=uid, - uirevision=uirevision, - usrc=usrc, - v=v, - vhoverformat=vhoverformat, - visible=visible, - vsrc=vsrc, - w=w, - whoverformat=whoverformat, - wsrc=wsrc, - x=x, - xhoverformat=xhoverformat, - xsrc=xsrc, - y=y, - yhoverformat=yhoverformat, - ysrc=ysrc, - z=z, - zhoverformat=zhoverformat, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_sunburst( - self, - branchvalues=None, - count=None, - customdata=None, - customdatasrc=None, - domain=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - insidetextfont=None, - insidetextorientation=None, - labels=None, - labelssrc=None, - leaf=None, - legend=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - level=None, - marker=None, - maxdepth=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - outsidetextfont=None, - parents=None, - parentssrc=None, - root=None, - rotation=None, - sort=None, - stream=None, - text=None, - textfont=None, - textinfo=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - values=None, - valuessrc=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + autocolorscale=autocolorscale, + cauto=cauto, + cmax=cmax, + cmid=cmid, + cmin=cmin, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + customdata=customdata, + customdatasrc=customdatasrc, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + lighting=lighting, + lightposition=lightposition, + maxdisplayed=maxdisplayed, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + reversescale=reversescale, + scene=scene, + showlegend=showlegend, + showscale=showscale, + sizeref=sizeref, + starts=starts, + stream=stream, + text=text, + u=u, + uhoverformat=uhoverformat, + uid=uid, + uirevision=uirevision, + usrc=usrc, + v=v, + vhoverformat=vhoverformat, + visible=visible, + vsrc=vsrc, + w=w, + whoverformat=whoverformat, + wsrc=wsrc, + x=x, + xhoverformat=xhoverformat, + xsrc=xsrc, + y=y, + yhoverformat=yhoverformat, + ysrc=ysrc, + z=z, + zhoverformat=zhoverformat, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_sunburst(self, + branchvalues=None, + count=None, + customdata=None, + customdatasrc=None, + domain=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + insidetextfont=None, + insidetextorientation=None, + labels=None, + labelssrc=None, + leaf=None, + legend=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + level=None, + marker=None, + maxdepth=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + outsidetextfont=None, + parents=None, + parentssrc=None, + root=None, + rotation=None, + sort=None, + stream=None, + text=None, + textfont=None, + textinfo=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + values=None, + valuessrc=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Sunburst trace @@ -19337,124 +18614,122 @@ def add_sunburst( Figure """ from plotly.graph_objs import Sunburst - new_trace = Sunburst( - branchvalues=branchvalues, - count=count, - customdata=customdata, - customdatasrc=customdatasrc, - domain=domain, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - insidetextfont=insidetextfont, - insidetextorientation=insidetextorientation, - labels=labels, - labelssrc=labelssrc, - leaf=leaf, - legend=legend, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - level=level, - marker=marker, - maxdepth=maxdepth, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - outsidetextfont=outsidetextfont, - parents=parents, - parentssrc=parentssrc, - root=root, - rotation=rotation, - sort=sort, - stream=stream, - text=text, - textfont=textfont, - textinfo=textinfo, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - uid=uid, - uirevision=uirevision, - values=values, - valuessrc=valuessrc, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_surface( - self, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - coloraxis=None, - colorbar=None, - colorscale=None, - connectgaps=None, - contours=None, - customdata=None, - customdatasrc=None, - hidesurface=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - lighting=None, - lightposition=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - opacityscale=None, - reversescale=None, - scene=None, - showlegend=None, - showscale=None, - stream=None, - surfacecolor=None, - surfacecolorsrc=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - visible=None, - x=None, - xcalendar=None, - xhoverformat=None, - xsrc=None, - y=None, - ycalendar=None, - yhoverformat=None, - ysrc=None, - z=None, - zcalendar=None, - zhoverformat=None, - zsrc=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + branchvalues=branchvalues, + count=count, + customdata=customdata, + customdatasrc=customdatasrc, + domain=domain, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + insidetextfont=insidetextfont, + insidetextorientation=insidetextorientation, + labels=labels, + labelssrc=labelssrc, + leaf=leaf, + legend=legend, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + level=level, + marker=marker, + maxdepth=maxdepth, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + outsidetextfont=outsidetextfont, + parents=parents, + parentssrc=parentssrc, + root=root, + rotation=rotation, + sort=sort, + stream=stream, + text=text, + textfont=textfont, + textinfo=textinfo, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + uid=uid, + uirevision=uirevision, + values=values, + valuessrc=valuessrc, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_surface(self, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + coloraxis=None, + colorbar=None, + colorscale=None, + connectgaps=None, + contours=None, + customdata=None, + customdatasrc=None, + hidesurface=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + lighting=None, + lightposition=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + opacityscale=None, + reversescale=None, + scene=None, + showlegend=None, + showscale=None, + stream=None, + surfacecolor=None, + surfacecolorsrc=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + visible=None, + x=None, + xcalendar=None, + xhoverformat=None, + xsrc=None, + y=None, + ycalendar=None, + yhoverformat=None, + ysrc=None, + z=None, + zcalendar=None, + zhoverformat=None, + zsrc=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Surface trace @@ -19797,101 +19072,99 @@ def add_surface( Figure """ from plotly.graph_objs import Surface - new_trace = Surface( - autocolorscale=autocolorscale, - cauto=cauto, - cmax=cmax, - cmid=cmid, - cmin=cmin, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - connectgaps=connectgaps, - contours=contours, - customdata=customdata, - customdatasrc=customdatasrc, - hidesurface=hidesurface, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - lighting=lighting, - lightposition=lightposition, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - opacityscale=opacityscale, - reversescale=reversescale, - scene=scene, - showlegend=showlegend, - showscale=showscale, - stream=stream, - surfacecolor=surfacecolor, - surfacecolorsrc=surfacecolorsrc, - text=text, - textsrc=textsrc, - uid=uid, - uirevision=uirevision, - visible=visible, - x=x, - xcalendar=xcalendar, - xhoverformat=xhoverformat, - xsrc=xsrc, - y=y, - ycalendar=ycalendar, - yhoverformat=yhoverformat, - ysrc=ysrc, - z=z, - zcalendar=zcalendar, - zhoverformat=zhoverformat, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_table( - self, - cells=None, - columnorder=None, - columnordersrc=None, - columnwidth=None, - columnwidthsrc=None, - customdata=None, - customdatasrc=None, - domain=None, - header=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - ids=None, - idssrc=None, - legend=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - meta=None, - metasrc=None, - name=None, - stream=None, - uid=None, - uirevision=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + autocolorscale=autocolorscale, + cauto=cauto, + cmax=cmax, + cmid=cmid, + cmin=cmin, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + connectgaps=connectgaps, + contours=contours, + customdata=customdata, + customdatasrc=customdatasrc, + hidesurface=hidesurface, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + lighting=lighting, + lightposition=lightposition, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + opacityscale=opacityscale, + reversescale=reversescale, + scene=scene, + showlegend=showlegend, + showscale=showscale, + stream=stream, + surfacecolor=surfacecolor, + surfacecolorsrc=surfacecolorsrc, + text=text, + textsrc=textsrc, + uid=uid, + uirevision=uirevision, + visible=visible, + x=x, + xcalendar=xcalendar, + xhoverformat=xhoverformat, + xsrc=xsrc, + y=y, + ycalendar=ycalendar, + yhoverformat=yhoverformat, + ysrc=ysrc, + z=z, + zcalendar=zcalendar, + zhoverformat=zhoverformat, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_table(self, + cells=None, + columnorder=None, + columnordersrc=None, + columnwidth=None, + columnwidthsrc=None, + customdata=None, + customdatasrc=None, + domain=None, + header=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + ids=None, + idssrc=None, + legend=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + meta=None, + metasrc=None, + name=None, + stream=None, + uid=None, + uirevision=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Table trace @@ -20041,91 +19314,89 @@ def add_table( Figure """ from plotly.graph_objs import Table - new_trace = Table( - cells=cells, - columnorder=columnorder, - columnordersrc=columnordersrc, - columnwidth=columnwidth, - columnwidthsrc=columnwidthsrc, - customdata=customdata, - customdatasrc=customdatasrc, - domain=domain, - header=header, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - meta=meta, - metasrc=metasrc, - name=name, - stream=stream, - uid=uid, - uirevision=uirevision, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_treemap( - self, - branchvalues=None, - count=None, - customdata=None, - customdatasrc=None, - domain=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - insidetextfont=None, - labels=None, - labelssrc=None, - legend=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - level=None, - marker=None, - maxdepth=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - outsidetextfont=None, - parents=None, - parentssrc=None, - pathbar=None, - root=None, - sort=None, - stream=None, - text=None, - textfont=None, - textinfo=None, - textposition=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - tiling=None, - uid=None, - uirevision=None, - values=None, - valuessrc=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + cells=cells, + columnorder=columnorder, + columnordersrc=columnordersrc, + columnwidth=columnwidth, + columnwidthsrc=columnwidthsrc, + customdata=customdata, + customdatasrc=customdatasrc, + domain=domain, + header=header, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + meta=meta, + metasrc=metasrc, + name=name, + stream=stream, + uid=uid, + uirevision=uirevision, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_treemap(self, + branchvalues=None, + count=None, + customdata=None, + customdatasrc=None, + domain=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + insidetextfont=None, + labels=None, + labelssrc=None, + legend=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + level=None, + marker=None, + maxdepth=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + outsidetextfont=None, + parents=None, + parentssrc=None, + pathbar=None, + root=None, + sort=None, + stream=None, + text=None, + textfont=None, + textinfo=None, + textposition=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + tiling=None, + uid=None, + uirevision=None, + values=None, + valuessrc=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Treemap trace @@ -20403,128 +19674,126 @@ def add_treemap( Figure """ from plotly.graph_objs import Treemap - new_trace = Treemap( - branchvalues=branchvalues, - count=count, - customdata=customdata, - customdatasrc=customdatasrc, - domain=domain, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - insidetextfont=insidetextfont, - labels=labels, - labelssrc=labelssrc, - legend=legend, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - level=level, - marker=marker, - maxdepth=maxdepth, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - outsidetextfont=outsidetextfont, - parents=parents, - parentssrc=parentssrc, - pathbar=pathbar, - root=root, - sort=sort, - stream=stream, - text=text, - textfont=textfont, - textinfo=textinfo, - textposition=textposition, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - tiling=tiling, - uid=uid, - uirevision=uirevision, - values=values, - valuessrc=valuessrc, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_violin( - self, - alignmentgroup=None, - bandwidth=None, - box=None, - customdata=None, - customdatasrc=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hoveron=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - jitter=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meanline=None, - meta=None, - metasrc=None, - name=None, - offsetgroup=None, - opacity=None, - orientation=None, - pointpos=None, - points=None, - quartilemethod=None, - scalegroup=None, - scalemode=None, - selected=None, - selectedpoints=None, - showlegend=None, - side=None, - span=None, - spanmode=None, - stream=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - width=None, - x=None, - x0=None, - xaxis=None, - xhoverformat=None, - xsrc=None, - y=None, - y0=None, - yaxis=None, - yhoverformat=None, - ysrc=None, - zorder=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "Figure": + + branchvalues=branchvalues, + count=count, + customdata=customdata, + customdatasrc=customdatasrc, + domain=domain, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + insidetextfont=insidetextfont, + labels=labels, + labelssrc=labelssrc, + legend=legend, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + level=level, + marker=marker, + maxdepth=maxdepth, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + outsidetextfont=outsidetextfont, + parents=parents, + parentssrc=parentssrc, + pathbar=pathbar, + root=root, + sort=sort, + stream=stream, + text=text, + textfont=textfont, + textinfo=textinfo, + textposition=textposition, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + tiling=tiling, + uid=uid, + uirevision=uirevision, + values=values, + valuessrc=valuessrc, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_violin(self, + alignmentgroup=None, + bandwidth=None, + box=None, + customdata=None, + customdatasrc=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hoveron=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + jitter=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meanline=None, + meta=None, + metasrc=None, + name=None, + offsetgroup=None, + opacity=None, + orientation=None, + pointpos=None, + points=None, + quartilemethod=None, + scalegroup=None, + scalemode=None, + selected=None, + selectedpoints=None, + showlegend=None, + side=None, + span=None, + spanmode=None, + stream=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + width=None, + x=None, + x0=None, + xaxis=None, + xhoverformat=None, + xsrc=None, + y=None, + y0=None, + yaxis=None, + yhoverformat=None, + ysrc=None, + zorder=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'Figure': """ Add a new Violin trace @@ -20906,140 +20175,138 @@ def add_violin( Figure """ from plotly.graph_objs import Violin - new_trace = Violin( - alignmentgroup=alignmentgroup, - bandwidth=bandwidth, - box=box, - customdata=customdata, - customdatasrc=customdatasrc, - fillcolor=fillcolor, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hoveron=hoveron, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - jitter=jitter, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - marker=marker, - meanline=meanline, - meta=meta, - metasrc=metasrc, - name=name, - offsetgroup=offsetgroup, - opacity=opacity, - orientation=orientation, - pointpos=pointpos, - points=points, - quartilemethod=quartilemethod, - scalegroup=scalegroup, - scalemode=scalemode, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - side=side, - span=span, - spanmode=spanmode, - stream=stream, - text=text, - textsrc=textsrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - width=width, - x=x, - x0=x0, - xaxis=xaxis, - xhoverformat=xhoverformat, - xsrc=xsrc, - y=y, - y0=y0, - yaxis=yaxis, - yhoverformat=yhoverformat, - ysrc=ysrc, - zorder=zorder, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_volume( - self, - autocolorscale=None, - caps=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - coloraxis=None, - colorbar=None, - colorscale=None, - contour=None, - customdata=None, - customdatasrc=None, - flatshading=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - isomax=None, - isomin=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - lighting=None, - lightposition=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - opacityscale=None, - reversescale=None, - scene=None, - showlegend=None, - showscale=None, - slices=None, - spaceframe=None, - stream=None, - surface=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - value=None, - valuehoverformat=None, - valuesrc=None, - visible=None, - x=None, - xhoverformat=None, - xsrc=None, - y=None, - yhoverformat=None, - ysrc=None, - z=None, - zhoverformat=None, - zsrc=None, - row=None, - col=None, - **kwargs, - ) -> "Figure": + + alignmentgroup=alignmentgroup, + bandwidth=bandwidth, + box=box, + customdata=customdata, + customdatasrc=customdatasrc, + fillcolor=fillcolor, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hoveron=hoveron, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + jitter=jitter, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + marker=marker, + meanline=meanline, + meta=meta, + metasrc=metasrc, + name=name, + offsetgroup=offsetgroup, + opacity=opacity, + orientation=orientation, + pointpos=pointpos, + points=points, + quartilemethod=quartilemethod, + scalegroup=scalegroup, + scalemode=scalemode, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + side=side, + span=span, + spanmode=spanmode, + stream=stream, + text=text, + textsrc=textsrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + width=width, + x=x, + x0=x0, + xaxis=xaxis, + xhoverformat=xhoverformat, + xsrc=xsrc, + y=y, + y0=y0, + yaxis=yaxis, + yhoverformat=yhoverformat, + ysrc=ysrc, + zorder=zorder, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_volume(self, + autocolorscale=None, + caps=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + coloraxis=None, + colorbar=None, + colorscale=None, + contour=None, + customdata=None, + customdatasrc=None, + flatshading=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + isomax=None, + isomin=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + lighting=None, + lightposition=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + opacityscale=None, + reversescale=None, + scene=None, + showlegend=None, + showscale=None, + slices=None, + spaceframe=None, + stream=None, + surface=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + value=None, + valuehoverformat=None, + valuesrc=None, + visible=None, + x=None, + xhoverformat=None, + xsrc=None, + y=None, + yhoverformat=None, + ysrc=None, + z=None, + zhoverformat=None, + zsrc=None, + row=None, + col=None, + **kwargs + )-> 'Figure': """ Add a new Volume trace @@ -21390,153 +20657,151 @@ def add_volume( Figure """ from plotly.graph_objs import Volume - new_trace = Volume( - autocolorscale=autocolorscale, - caps=caps, - cauto=cauto, - cmax=cmax, - cmid=cmid, - cmin=cmin, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - contour=contour, - customdata=customdata, - customdatasrc=customdatasrc, - flatshading=flatshading, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - isomax=isomax, - isomin=isomin, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - lighting=lighting, - lightposition=lightposition, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - opacityscale=opacityscale, - reversescale=reversescale, - scene=scene, - showlegend=showlegend, - showscale=showscale, - slices=slices, - spaceframe=spaceframe, - stream=stream, - surface=surface, - text=text, - textsrc=textsrc, - uid=uid, - uirevision=uirevision, - value=value, - valuehoverformat=valuehoverformat, - valuesrc=valuesrc, - visible=visible, - x=x, - xhoverformat=xhoverformat, - xsrc=xsrc, - y=y, - yhoverformat=yhoverformat, - ysrc=ysrc, - z=z, - zhoverformat=zhoverformat, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_waterfall( - self, - alignmentgroup=None, - base=None, - cliponaxis=None, - connector=None, - constraintext=None, - customdata=None, - customdatasrc=None, - decreasing=None, - dx=None, - dy=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - increasing=None, - insidetextanchor=None, - insidetextfont=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - measure=None, - measuresrc=None, - meta=None, - metasrc=None, - name=None, - offset=None, - offsetgroup=None, - offsetsrc=None, - opacity=None, - orientation=None, - outsidetextfont=None, - selectedpoints=None, - showlegend=None, - stream=None, - text=None, - textangle=None, - textfont=None, - textinfo=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - totals=None, - uid=None, - uirevision=None, - visible=None, - width=None, - widthsrc=None, - x=None, - x0=None, - xaxis=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - y=None, - y0=None, - yaxis=None, - yhoverformat=None, - yperiod=None, - yperiod0=None, - yperiodalignment=None, - ysrc=None, - zorder=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "Figure": + + autocolorscale=autocolorscale, + caps=caps, + cauto=cauto, + cmax=cmax, + cmid=cmid, + cmin=cmin, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + contour=contour, + customdata=customdata, + customdatasrc=customdatasrc, + flatshading=flatshading, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + isomax=isomax, + isomin=isomin, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + lighting=lighting, + lightposition=lightposition, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + opacityscale=opacityscale, + reversescale=reversescale, + scene=scene, + showlegend=showlegend, + showscale=showscale, + slices=slices, + spaceframe=spaceframe, + stream=stream, + surface=surface, + text=text, + textsrc=textsrc, + uid=uid, + uirevision=uirevision, + value=value, + valuehoverformat=valuehoverformat, + valuesrc=valuesrc, + visible=visible, + x=x, + xhoverformat=xhoverformat, + xsrc=xsrc, + y=y, + yhoverformat=yhoverformat, + ysrc=ysrc, + z=z, + zhoverformat=zhoverformat, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_waterfall(self, + alignmentgroup=None, + base=None, + cliponaxis=None, + connector=None, + constraintext=None, + customdata=None, + customdatasrc=None, + decreasing=None, + dx=None, + dy=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + increasing=None, + insidetextanchor=None, + insidetextfont=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + measure=None, + measuresrc=None, + meta=None, + metasrc=None, + name=None, + offset=None, + offsetgroup=None, + offsetsrc=None, + opacity=None, + orientation=None, + outsidetextfont=None, + selectedpoints=None, + showlegend=None, + stream=None, + text=None, + textangle=None, + textfont=None, + textinfo=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + totals=None, + uid=None, + uirevision=None, + visible=None, + width=None, + widthsrc=None, + x=None, + x0=None, + xaxis=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + y=None, + y0=None, + yaxis=None, + yhoverformat=None, + yperiod=None, + yperiod0=None, + yperiodalignment=None, + ysrc=None, + zorder=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'Figure': """ Add a new Waterfall trace @@ -21948,86 +21213,87 @@ def add_waterfall( Figure """ from plotly.graph_objs import Waterfall - new_trace = Waterfall( - alignmentgroup=alignmentgroup, - base=base, - cliponaxis=cliponaxis, - connector=connector, - constraintext=constraintext, - customdata=customdata, - customdatasrc=customdatasrc, - decreasing=decreasing, - dx=dx, - dy=dy, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - increasing=increasing, - insidetextanchor=insidetextanchor, - insidetextfont=insidetextfont, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - measure=measure, - measuresrc=measuresrc, - meta=meta, - metasrc=metasrc, - name=name, - offset=offset, - offsetgroup=offsetgroup, - offsetsrc=offsetsrc, - opacity=opacity, - orientation=orientation, - outsidetextfont=outsidetextfont, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - text=text, - textangle=textangle, - textfont=textfont, - textinfo=textinfo, - textposition=textposition, - textpositionsrc=textpositionsrc, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - totals=totals, - uid=uid, - uirevision=uirevision, - visible=visible, - width=width, - widthsrc=widthsrc, - x=x, - x0=x0, - xaxis=xaxis, - xhoverformat=xhoverformat, - xperiod=xperiod, - xperiod0=xperiod0, - xperiodalignment=xperiodalignment, - xsrc=xsrc, - y=y, - y0=y0, - yaxis=yaxis, - yhoverformat=yhoverformat, - yperiod=yperiod, - yperiod0=yperiod0, - yperiodalignment=yperiodalignment, - ysrc=ysrc, - zorder=zorder, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def select_coloraxes(self, selector=None, row=None, col=None): + + alignmentgroup=alignmentgroup, + base=base, + cliponaxis=cliponaxis, + connector=connector, + constraintext=constraintext, + customdata=customdata, + customdatasrc=customdatasrc, + decreasing=decreasing, + dx=dx, + dy=dy, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + increasing=increasing, + insidetextanchor=insidetextanchor, + insidetextfont=insidetextfont, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + measure=measure, + measuresrc=measuresrc, + meta=meta, + metasrc=metasrc, + name=name, + offset=offset, + offsetgroup=offsetgroup, + offsetsrc=offsetsrc, + opacity=opacity, + orientation=orientation, + outsidetextfont=outsidetextfont, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + text=text, + textangle=textangle, + textfont=textfont, + textinfo=textinfo, + textposition=textposition, + textpositionsrc=textpositionsrc, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + totals=totals, + uid=uid, + uirevision=uirevision, + visible=visible, + width=width, + widthsrc=widthsrc, + x=x, + x0=x0, + xaxis=xaxis, + xhoverformat=xhoverformat, + xperiod=xperiod, + xperiod0=xperiod0, + xperiodalignment=xperiodalignment, + xsrc=xsrc, + y=y, + y0=y0, + yaxis=yaxis, + yhoverformat=yhoverformat, + yperiod=yperiod, + yperiod0=yperiod0, + yperiodalignment=yperiodalignment, + ysrc=ysrc, + zorder=zorder, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + + def select_coloraxes( + self, selector=None, row=None, col=None): """ Select coloraxis subplot objects from a particular subplot cell and/or coloraxis subplot objects that satisfy custom selection @@ -22057,9 +21323,11 @@ def select_coloraxes(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix("coloraxis", selector, row, col) + return self._select_layout_subplots_by_prefix( + 'coloraxis', selector, row, col) - def for_each_coloraxis(self, fn, selector=None, row=None, col=None) -> "Figure": + def for_each_coloraxis( + self, fn, selector=None, row=None, col=None) -> 'Figure': """ Apply a function to all coloraxis objects that satisfy the specified selection criteria @@ -22088,14 +21356,19 @@ def for_each_coloraxis(self, fn, selector=None, row=None, col=None) -> "Figure": self Returns the Figure object that the method was called on """ - for obj in self.select_coloraxes(selector=selector, row=row, col=col): + for obj in self.select_coloraxes( + selector=selector, row=row, col=col): fn(obj) return self def update_coloraxes( - self, patch=None, selector=None, overwrite=False, row=None, col=None, **kwargs - ) -> "Figure": + self, + patch=None, + selector=None, + overwrite=False, + row=None, col=None, + **kwargs) -> 'Figure': """ Perform a property update operation on all coloraxis objects that satisfy the specified selection criteria @@ -22134,12 +21407,14 @@ def update_coloraxes( self Returns the Figure object that the method was called on """ - for obj in self.select_coloraxes(selector=selector, row=row, col=col): + for obj in self.select_coloraxes( + selector=selector, row=row, col=col): obj.update(patch, overwrite=overwrite, **kwargs) return self - def select_geos(self, selector=None, row=None, col=None): + def select_geos( + self, selector=None, row=None, col=None): """ Select geo subplot objects from a particular subplot cell and/or geo subplot objects that satisfy custom selection @@ -22169,9 +21444,11 @@ def select_geos(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix("geo", selector, row, col) + return self._select_layout_subplots_by_prefix( + 'geo', selector, row, col) - def for_each_geo(self, fn, selector=None, row=None, col=None) -> "Figure": + def for_each_geo( + self, fn, selector=None, row=None, col=None) -> 'Figure': """ Apply a function to all geo objects that satisfy the specified selection criteria @@ -22200,14 +21477,19 @@ def for_each_geo(self, fn, selector=None, row=None, col=None) -> "Figure": self Returns the Figure object that the method was called on """ - for obj in self.select_geos(selector=selector, row=row, col=col): + for obj in self.select_geos( + selector=selector, row=row, col=col): fn(obj) return self def update_geos( - self, patch=None, selector=None, overwrite=False, row=None, col=None, **kwargs - ) -> "Figure": + self, + patch=None, + selector=None, + overwrite=False, + row=None, col=None, + **kwargs) -> 'Figure': """ Perform a property update operation on all geo objects that satisfy the specified selection criteria @@ -22246,12 +21528,14 @@ def update_geos( self Returns the Figure object that the method was called on """ - for obj in self.select_geos(selector=selector, row=row, col=col): + for obj in self.select_geos( + selector=selector, row=row, col=col): obj.update(patch, overwrite=overwrite, **kwargs) return self - def select_legends(self, selector=None, row=None, col=None): + def select_legends( + self, selector=None, row=None, col=None): """ Select legend subplot objects from a particular subplot cell and/or legend subplot objects that satisfy custom selection @@ -22281,9 +21565,11 @@ def select_legends(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix("legend", selector, row, col) + return self._select_layout_subplots_by_prefix( + 'legend', selector, row, col) - def for_each_legend(self, fn, selector=None, row=None, col=None) -> "Figure": + def for_each_legend( + self, fn, selector=None, row=None, col=None) -> 'Figure': """ Apply a function to all legend objects that satisfy the specified selection criteria @@ -22312,14 +21598,19 @@ def for_each_legend(self, fn, selector=None, row=None, col=None) -> "Figure": self Returns the Figure object that the method was called on """ - for obj in self.select_legends(selector=selector, row=row, col=col): + for obj in self.select_legends( + selector=selector, row=row, col=col): fn(obj) return self def update_legends( - self, patch=None, selector=None, overwrite=False, row=None, col=None, **kwargs - ) -> "Figure": + self, + patch=None, + selector=None, + overwrite=False, + row=None, col=None, + **kwargs) -> 'Figure': """ Perform a property update operation on all legend objects that satisfy the specified selection criteria @@ -22358,12 +21649,14 @@ def update_legends( self Returns the Figure object that the method was called on """ - for obj in self.select_legends(selector=selector, row=row, col=col): + for obj in self.select_legends( + selector=selector, row=row, col=col): obj.update(patch, overwrite=overwrite, **kwargs) return self - def select_maps(self, selector=None, row=None, col=None): + def select_maps( + self, selector=None, row=None, col=None): """ Select map subplot objects from a particular subplot cell and/or map subplot objects that satisfy custom selection @@ -22393,9 +21686,11 @@ def select_maps(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix("map", selector, row, col) + return self._select_layout_subplots_by_prefix( + 'map', selector, row, col) - def for_each_map(self, fn, selector=None, row=None, col=None) -> "Figure": + def for_each_map( + self, fn, selector=None, row=None, col=None) -> 'Figure': """ Apply a function to all map objects that satisfy the specified selection criteria @@ -22424,14 +21719,19 @@ def for_each_map(self, fn, selector=None, row=None, col=None) -> "Figure": self Returns the Figure object that the method was called on """ - for obj in self.select_maps(selector=selector, row=row, col=col): + for obj in self.select_maps( + selector=selector, row=row, col=col): fn(obj) return self def update_maps( - self, patch=None, selector=None, overwrite=False, row=None, col=None, **kwargs - ) -> "Figure": + self, + patch=None, + selector=None, + overwrite=False, + row=None, col=None, + **kwargs) -> 'Figure': """ Perform a property update operation on all map objects that satisfy the specified selection criteria @@ -22470,12 +21770,14 @@ def update_maps( self Returns the Figure object that the method was called on """ - for obj in self.select_maps(selector=selector, row=row, col=col): + for obj in self.select_maps( + selector=selector, row=row, col=col): obj.update(patch, overwrite=overwrite, **kwargs) return self - def select_mapboxes(self, selector=None, row=None, col=None): + def select_mapboxes( + self, selector=None, row=None, col=None): """ Select mapbox subplot objects from a particular subplot cell and/or mapbox subplot objects that satisfy custom selection @@ -22505,9 +21807,11 @@ def select_mapboxes(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix("mapbox", selector, row, col) + return self._select_layout_subplots_by_prefix( + 'mapbox', selector, row, col) - def for_each_mapbox(self, fn, selector=None, row=None, col=None) -> "Figure": + def for_each_mapbox( + self, fn, selector=None, row=None, col=None) -> 'Figure': """ Apply a function to all mapbox objects that satisfy the specified selection criteria @@ -22536,14 +21840,19 @@ def for_each_mapbox(self, fn, selector=None, row=None, col=None) -> "Figure": self Returns the Figure object that the method was called on """ - for obj in self.select_mapboxes(selector=selector, row=row, col=col): + for obj in self.select_mapboxes( + selector=selector, row=row, col=col): fn(obj) return self def update_mapboxes( - self, patch=None, selector=None, overwrite=False, row=None, col=None, **kwargs - ) -> "Figure": + self, + patch=None, + selector=None, + overwrite=False, + row=None, col=None, + **kwargs) -> 'Figure': """ Perform a property update operation on all mapbox objects that satisfy the specified selection criteria @@ -22582,12 +21891,14 @@ def update_mapboxes( self Returns the Figure object that the method was called on """ - for obj in self.select_mapboxes(selector=selector, row=row, col=col): + for obj in self.select_mapboxes( + selector=selector, row=row, col=col): obj.update(patch, overwrite=overwrite, **kwargs) return self - def select_polars(self, selector=None, row=None, col=None): + def select_polars( + self, selector=None, row=None, col=None): """ Select polar subplot objects from a particular subplot cell and/or polar subplot objects that satisfy custom selection @@ -22617,9 +21928,11 @@ def select_polars(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix("polar", selector, row, col) + return self._select_layout_subplots_by_prefix( + 'polar', selector, row, col) - def for_each_polar(self, fn, selector=None, row=None, col=None) -> "Figure": + def for_each_polar( + self, fn, selector=None, row=None, col=None) -> 'Figure': """ Apply a function to all polar objects that satisfy the specified selection criteria @@ -22648,14 +21961,19 @@ def for_each_polar(self, fn, selector=None, row=None, col=None) -> "Figure": self Returns the Figure object that the method was called on """ - for obj in self.select_polars(selector=selector, row=row, col=col): + for obj in self.select_polars( + selector=selector, row=row, col=col): fn(obj) return self def update_polars( - self, patch=None, selector=None, overwrite=False, row=None, col=None, **kwargs - ) -> "Figure": + self, + patch=None, + selector=None, + overwrite=False, + row=None, col=None, + **kwargs) -> 'Figure': """ Perform a property update operation on all polar objects that satisfy the specified selection criteria @@ -22694,12 +22012,14 @@ def update_polars( self Returns the Figure object that the method was called on """ - for obj in self.select_polars(selector=selector, row=row, col=col): + for obj in self.select_polars( + selector=selector, row=row, col=col): obj.update(patch, overwrite=overwrite, **kwargs) return self - def select_scenes(self, selector=None, row=None, col=None): + def select_scenes( + self, selector=None, row=None, col=None): """ Select scene subplot objects from a particular subplot cell and/or scene subplot objects that satisfy custom selection @@ -22729,9 +22049,11 @@ def select_scenes(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix("scene", selector, row, col) + return self._select_layout_subplots_by_prefix( + 'scene', selector, row, col) - def for_each_scene(self, fn, selector=None, row=None, col=None) -> "Figure": + def for_each_scene( + self, fn, selector=None, row=None, col=None) -> 'Figure': """ Apply a function to all scene objects that satisfy the specified selection criteria @@ -22760,14 +22082,19 @@ def for_each_scene(self, fn, selector=None, row=None, col=None) -> "Figure": self Returns the Figure object that the method was called on """ - for obj in self.select_scenes(selector=selector, row=row, col=col): + for obj in self.select_scenes( + selector=selector, row=row, col=col): fn(obj) return self def update_scenes( - self, patch=None, selector=None, overwrite=False, row=None, col=None, **kwargs - ) -> "Figure": + self, + patch=None, + selector=None, + overwrite=False, + row=None, col=None, + **kwargs) -> 'Figure': """ Perform a property update operation on all scene objects that satisfy the specified selection criteria @@ -22806,12 +22133,14 @@ def update_scenes( self Returns the Figure object that the method was called on """ - for obj in self.select_scenes(selector=selector, row=row, col=col): + for obj in self.select_scenes( + selector=selector, row=row, col=col): obj.update(patch, overwrite=overwrite, **kwargs) return self - def select_smiths(self, selector=None, row=None, col=None): + def select_smiths( + self, selector=None, row=None, col=None): """ Select smith subplot objects from a particular subplot cell and/or smith subplot objects that satisfy custom selection @@ -22841,9 +22170,11 @@ def select_smiths(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix("smith", selector, row, col) + return self._select_layout_subplots_by_prefix( + 'smith', selector, row, col) - def for_each_smith(self, fn, selector=None, row=None, col=None) -> "Figure": + def for_each_smith( + self, fn, selector=None, row=None, col=None) -> 'Figure': """ Apply a function to all smith objects that satisfy the specified selection criteria @@ -22872,14 +22203,19 @@ def for_each_smith(self, fn, selector=None, row=None, col=None) -> "Figure": self Returns the Figure object that the method was called on """ - for obj in self.select_smiths(selector=selector, row=row, col=col): + for obj in self.select_smiths( + selector=selector, row=row, col=col): fn(obj) return self def update_smiths( - self, patch=None, selector=None, overwrite=False, row=None, col=None, **kwargs - ) -> "Figure": + self, + patch=None, + selector=None, + overwrite=False, + row=None, col=None, + **kwargs) -> 'Figure': """ Perform a property update operation on all smith objects that satisfy the specified selection criteria @@ -22918,12 +22254,14 @@ def update_smiths( self Returns the Figure object that the method was called on """ - for obj in self.select_smiths(selector=selector, row=row, col=col): + for obj in self.select_smiths( + selector=selector, row=row, col=col): obj.update(patch, overwrite=overwrite, **kwargs) return self - def select_ternaries(self, selector=None, row=None, col=None): + def select_ternaries( + self, selector=None, row=None, col=None): """ Select ternary subplot objects from a particular subplot cell and/or ternary subplot objects that satisfy custom selection @@ -22953,9 +22291,11 @@ def select_ternaries(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix("ternary", selector, row, col) + return self._select_layout_subplots_by_prefix( + 'ternary', selector, row, col) - def for_each_ternary(self, fn, selector=None, row=None, col=None) -> "Figure": + def for_each_ternary( + self, fn, selector=None, row=None, col=None) -> 'Figure': """ Apply a function to all ternary objects that satisfy the specified selection criteria @@ -22984,14 +22324,19 @@ def for_each_ternary(self, fn, selector=None, row=None, col=None) -> "Figure": self Returns the Figure object that the method was called on """ - for obj in self.select_ternaries(selector=selector, row=row, col=col): + for obj in self.select_ternaries( + selector=selector, row=row, col=col): fn(obj) return self def update_ternaries( - self, patch=None, selector=None, overwrite=False, row=None, col=None, **kwargs - ) -> "Figure": + self, + patch=None, + selector=None, + overwrite=False, + row=None, col=None, + **kwargs) -> 'Figure': """ Perform a property update operation on all ternary objects that satisfy the specified selection criteria @@ -23030,12 +22375,14 @@ def update_ternaries( self Returns the Figure object that the method was called on """ - for obj in self.select_ternaries(selector=selector, row=row, col=col): + for obj in self.select_ternaries( + selector=selector, row=row, col=col): obj.update(patch, overwrite=overwrite, **kwargs) return self - def select_xaxes(self, selector=None, row=None, col=None): + def select_xaxes( + self, selector=None, row=None, col=None): """ Select xaxis subplot objects from a particular subplot cell and/or xaxis subplot objects that satisfy custom selection @@ -23065,9 +22412,11 @@ def select_xaxes(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix("xaxis", selector, row, col) + return self._select_layout_subplots_by_prefix( + 'xaxis', selector, row, col) - def for_each_xaxis(self, fn, selector=None, row=None, col=None) -> "Figure": + def for_each_xaxis( + self, fn, selector=None, row=None, col=None) -> 'Figure': """ Apply a function to all xaxis objects that satisfy the specified selection criteria @@ -23096,14 +22445,19 @@ def for_each_xaxis(self, fn, selector=None, row=None, col=None) -> "Figure": self Returns the Figure object that the method was called on """ - for obj in self.select_xaxes(selector=selector, row=row, col=col): + for obj in self.select_xaxes( + selector=selector, row=row, col=col): fn(obj) return self def update_xaxes( - self, patch=None, selector=None, overwrite=False, row=None, col=None, **kwargs - ) -> "Figure": + self, + patch=None, + selector=None, + overwrite=False, + row=None, col=None, + **kwargs) -> 'Figure': """ Perform a property update operation on all xaxis objects that satisfy the specified selection criteria @@ -23142,12 +22496,14 @@ def update_xaxes( self Returns the Figure object that the method was called on """ - for obj in self.select_xaxes(selector=selector, row=row, col=col): + for obj in self.select_xaxes( + selector=selector, row=row, col=col): obj.update(patch, overwrite=overwrite, **kwargs) return self - def select_yaxes(self, selector=None, row=None, col=None, secondary_y=None): + def select_yaxes( + self, selector=None, row=None, col=None, secondary_y=None): """ Select yaxis subplot objects from a particular subplot cell and/or yaxis subplot objects that satisfy custom selection @@ -23190,12 +22546,10 @@ def select_yaxes(self, selector=None, row=None, col=None, secondary_y=None): """ return self._select_layout_subplots_by_prefix( - "yaxis", selector, row, col, secondary_y=secondary_y - ) + 'yaxis', selector, row, col, secondary_y=secondary_y) def for_each_yaxis( - self, fn, selector=None, row=None, col=None, secondary_y=None - ) -> "Figure": + self, fn, selector=None, row=None, col=None, secondary_y=None) -> 'Figure': """ Apply a function to all yaxis objects that satisfy the specified selection criteria @@ -23237,22 +22591,18 @@ def for_each_yaxis( Returns the Figure object that the method was called on """ for obj in self.select_yaxes( - selector=selector, row=row, col=col, secondary_y=secondary_y - ): + selector=selector, row=row, col=col, secondary_y=secondary_y): fn(obj) return self def update_yaxes( - self, - patch=None, - selector=None, - overwrite=False, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "Figure": + self, + patch=None, + selector=None, + overwrite=False, + row=None, col=None, secondary_y=None, + **kwargs) -> 'Figure': """ Perform a property update operation on all yaxis objects that satisfy the specified selection criteria @@ -23304,13 +22654,13 @@ def update_yaxes( Returns the Figure object that the method was called on """ for obj in self.select_yaxes( - selector=selector, row=row, col=col, secondary_y=secondary_y - ): + selector=selector, row=row, col=col, secondary_y=secondary_y): obj.update(patch, overwrite=overwrite, **kwargs) return self - - def select_annotations(self, selector=None, row=None, col=None, secondary_y=None): + def select_annotations( + self, selector=None, row=None, col=None, secondary_y=None + ): """ Select annotations from a particular subplot cell and/or annotations that satisfy custom selection criteria. @@ -23402,7 +22752,7 @@ def for_each_annotation( Returns the Figure object that the method was called on """ for obj in self._select_annotations_like( - prop="annotations", + prop='annotations', selector=selector, row=row, col=col, @@ -23413,8 +22763,14 @@ def for_each_annotation( return self def update_annotations( - self, patch=None, selector=None, row=None, col=None, secondary_y=None, **kwargs - ) -> "Figure": + self, + patch=None, + selector=None, + row=None, + col=None, + secondary_y=None, + **kwargs + ) -> 'Figure': """ Perform a property update operation on all annotations that satisfy the specified selection criteria @@ -23464,7 +22820,7 @@ def update_annotations( Returns the Figure object that the method was called on """ for obj in self._select_annotations_like( - prop="annotations", + prop='annotations', selector=selector, row=row, col=col, @@ -23474,58 +22830,57 @@ def update_annotations( return self - def add_annotation( - self, - arg=None, - align=None, - arrowcolor=None, - arrowhead=None, - arrowside=None, - arrowsize=None, - arrowwidth=None, - ax=None, - axref=None, - ay=None, - ayref=None, - bgcolor=None, - bordercolor=None, - borderpad=None, - borderwidth=None, - captureevents=None, - clicktoshow=None, - font=None, - height=None, - hoverlabel=None, - hovertext=None, - name=None, - opacity=None, - showarrow=None, - standoff=None, - startarrowhead=None, - startarrowsize=None, - startstandoff=None, - templateitemname=None, - text=None, - textangle=None, - valign=None, - visible=None, - width=None, - x=None, - xanchor=None, - xclick=None, - xref=None, - xshift=None, - y=None, - yanchor=None, - yclick=None, - yref=None, - yshift=None, - row=None, - col=None, - secondary_y=None, - exclude_empty_subplots=None, - **kwargs, - ) -> "Figure": + def add_annotation(self, + arg=None, + align=None, + arrowcolor=None, + arrowhead=None, + arrowside=None, + arrowsize=None, + arrowwidth=None, + ax=None, + axref=None, + ay=None, + ayref=None, + bgcolor=None, + bordercolor=None, + borderpad=None, + borderwidth=None, + captureevents=None, + clicktoshow=None, + font=None, + height=None, + hoverlabel=None, + hovertext=None, + name=None, + opacity=None, + showarrow=None, + standoff=None, + startarrowhead=None, + startarrowsize=None, + startstandoff=None, + templateitemname=None, + text=None, + textangle=None, + valign=None, + visible=None, + width=None, + x=None, + xanchor=None, + xclick=None, + xref=None, + xshift=None, + y=None, + yanchor=None, + yclick=None, + yref=None, + yshift=None, + row=None, + col=None, + secondary_y=None, + exclude_empty_subplots=None, + **kwargs + )-> 'Figure': """ Create and add a new annotation to the figure's layout @@ -23829,65 +23184,63 @@ def add_annotation( Figure """ from plotly.graph_objs import layout as _layout - - new_obj = _layout.Annotation( - arg, - align=align, - arrowcolor=arrowcolor, - arrowhead=arrowhead, - arrowside=arrowside, - arrowsize=arrowsize, - arrowwidth=arrowwidth, - ax=ax, - axref=axref, - ay=ay, - ayref=ayref, - bgcolor=bgcolor, - bordercolor=bordercolor, - borderpad=borderpad, - borderwidth=borderwidth, - captureevents=captureevents, - clicktoshow=clicktoshow, - font=font, - height=height, - hoverlabel=hoverlabel, - hovertext=hovertext, - name=name, - opacity=opacity, - showarrow=showarrow, - standoff=standoff, - startarrowhead=startarrowhead, - startarrowsize=startarrowsize, - startstandoff=startstandoff, - templateitemname=templateitemname, - text=text, - textangle=textangle, - valign=valign, - visible=visible, - width=width, - x=x, - xanchor=xanchor, - xclick=xclick, - xref=xref, - xshift=xshift, - y=y, - yanchor=yanchor, - yclick=yclick, - yref=yref, - yshift=yshift, - **kwargs, - ) + new_obj = _layout.Annotation(arg, + + align=align, + arrowcolor=arrowcolor, + arrowhead=arrowhead, + arrowside=arrowside, + arrowsize=arrowsize, + arrowwidth=arrowwidth, + ax=ax, + axref=axref, + ay=ay, + ayref=ayref, + bgcolor=bgcolor, + bordercolor=bordercolor, + borderpad=borderpad, + borderwidth=borderwidth, + captureevents=captureevents, + clicktoshow=clicktoshow, + font=font, + height=height, + hoverlabel=hoverlabel, + hovertext=hovertext, + name=name, + opacity=opacity, + showarrow=showarrow, + standoff=standoff, + startarrowhead=startarrowhead, + startarrowsize=startarrowsize, + startstandoff=startstandoff, + templateitemname=templateitemname, + text=text, + textangle=textangle, + valign=valign, + visible=visible, + width=width, + x=x, + xanchor=xanchor, + xclick=xclick, + xref=xref, + xshift=xshift, + y=y, + yanchor=yanchor, + yclick=yclick, + yref=yref, + yshift=yshift,**kwargs) return self._add_annotation_like( - "annotation", - "annotations", + 'annotation', + 'annotations', new_obj, row=row, col=col, secondary_y=secondary_y, exclude_empty_subplots=exclude_empty_subplots, ) - - def select_layout_images(self, selector=None, row=None, col=None, secondary_y=None): + def select_layout_images( + self, selector=None, row=None, col=None, secondary_y=None + ): """ Select images from a particular subplot cell and/or images that satisfy custom selection criteria. @@ -23979,7 +23332,7 @@ def for_each_layout_image( Returns the Figure object that the method was called on """ for obj in self._select_annotations_like( - prop="images", + prop='images', selector=selector, row=row, col=col, @@ -23990,8 +23343,14 @@ def for_each_layout_image( return self def update_layout_images( - self, patch=None, selector=None, row=None, col=None, secondary_y=None, **kwargs - ) -> "Figure": + self, + patch=None, + selector=None, + row=None, + col=None, + secondary_y=None, + **kwargs + ) -> 'Figure': """ Perform a property update operation on all images that satisfy the specified selection criteria @@ -24041,7 +23400,7 @@ def update_layout_images( Returns the Figure object that the method was called on """ for obj in self._select_annotations_like( - prop="images", + prop='images', selector=selector, row=row, col=col, @@ -24051,30 +23410,29 @@ def update_layout_images( return self - def add_layout_image( - self, - arg=None, - layer=None, - name=None, - opacity=None, - sizex=None, - sizey=None, - sizing=None, - source=None, - templateitemname=None, - visible=None, - x=None, - xanchor=None, - xref=None, - y=None, - yanchor=None, - yref=None, - row=None, - col=None, - secondary_y=None, - exclude_empty_subplots=None, - **kwargs, - ) -> "Figure": + def add_layout_image(self, + arg=None, + layer=None, + name=None, + opacity=None, + sizex=None, + sizey=None, + sizing=None, + source=None, + templateitemname=None, + visible=None, + x=None, + xanchor=None, + xref=None, + y=None, + yanchor=None, + yref=None, + row=None, + col=None, + secondary_y=None, + exclude_empty_subplots=None, + **kwargs + )-> 'Figure': """ Create and add a new image to the figure's layout @@ -24184,37 +23542,35 @@ def add_layout_image( Figure """ from plotly.graph_objs import layout as _layout - - new_obj = _layout.Image( - arg, - layer=layer, - name=name, - opacity=opacity, - sizex=sizex, - sizey=sizey, - sizing=sizing, - source=source, - templateitemname=templateitemname, - visible=visible, - x=x, - xanchor=xanchor, - xref=xref, - y=y, - yanchor=yanchor, - yref=yref, - **kwargs, - ) + new_obj = _layout.Image(arg, + + layer=layer, + name=name, + opacity=opacity, + sizex=sizex, + sizey=sizey, + sizing=sizing, + source=source, + templateitemname=templateitemname, + visible=visible, + x=x, + xanchor=xanchor, + xref=xref, + y=y, + yanchor=yanchor, + yref=yref,**kwargs) return self._add_annotation_like( - "image", - "images", + 'image', + 'images', new_obj, row=row, col=col, secondary_y=secondary_y, exclude_empty_subplots=exclude_empty_subplots, ) - - def select_selections(self, selector=None, row=None, col=None, secondary_y=None): + def select_selections( + self, selector=None, row=None, col=None, secondary_y=None + ): """ Select selections from a particular subplot cell and/or selections that satisfy custom selection criteria. @@ -24306,7 +23662,7 @@ def for_each_selection( Returns the Figure object that the method was called on """ for obj in self._select_annotations_like( - prop="selections", + prop='selections', selector=selector, row=row, col=col, @@ -24317,8 +23673,14 @@ def for_each_selection( return self def update_selections( - self, patch=None, selector=None, row=None, col=None, secondary_y=None, **kwargs - ) -> "Figure": + self, + patch=None, + selector=None, + row=None, + col=None, + secondary_y=None, + **kwargs + ) -> 'Figure': """ Perform a property update operation on all selections that satisfy the specified selection criteria @@ -24368,7 +23730,7 @@ def update_selections( Returns the Figure object that the method was called on """ for obj in self._select_annotations_like( - prop="selections", + prop='selections', selector=selector, row=row, col=col, @@ -24378,27 +23740,26 @@ def update_selections( return self - def add_selection( - self, - arg=None, - line=None, - name=None, - opacity=None, - path=None, - templateitemname=None, - type=None, - x0=None, - x1=None, - xref=None, - y0=None, - y1=None, - yref=None, - row=None, - col=None, - secondary_y=None, - exclude_empty_subplots=None, - **kwargs, - ) -> "Figure": + def add_selection(self, + arg=None, + line=None, + name=None, + opacity=None, + path=None, + templateitemname=None, + type=None, + x0=None, + x1=None, + xref=None, + y0=None, + y1=None, + yref=None, + row=None, + col=None, + secondary_y=None, + exclude_empty_subplots=None, + **kwargs + )-> 'Figure': """ Create and add a new selection to the figure's layout @@ -24493,34 +23854,32 @@ def add_selection( Figure """ from plotly.graph_objs import layout as _layout - - new_obj = _layout.Selection( - arg, - line=line, - name=name, - opacity=opacity, - path=path, - templateitemname=templateitemname, - type=type, - x0=x0, - x1=x1, - xref=xref, - y0=y0, - y1=y1, - yref=yref, - **kwargs, - ) + new_obj = _layout.Selection(arg, + + line=line, + name=name, + opacity=opacity, + path=path, + templateitemname=templateitemname, + type=type, + x0=x0, + x1=x1, + xref=xref, + y0=y0, + y1=y1, + yref=yref,**kwargs) return self._add_annotation_like( - "selection", - "selections", + 'selection', + 'selections', new_obj, row=row, col=col, secondary_y=secondary_y, exclude_empty_subplots=exclude_empty_subplots, ) - - def select_shapes(self, selector=None, row=None, col=None, secondary_y=None): + def select_shapes( + self, selector=None, row=None, col=None, secondary_y=None + ): """ Select shapes from a particular subplot cell and/or shapes that satisfy custom selection criteria. @@ -24566,7 +23925,9 @@ def select_shapes(self, selector=None, row=None, col=None, secondary_y=None): "shapes", selector=selector, row=row, col=col, secondary_y=secondary_y ) - def for_each_shape(self, fn, selector=None, row=None, col=None, secondary_y=None): + def for_each_shape( + self, fn, selector=None, row=None, col=None, secondary_y=None + ): """ Apply a function to all shapes that satisfy the specified selection criteria @@ -24610,7 +23971,7 @@ def for_each_shape(self, fn, selector=None, row=None, col=None, secondary_y=None Returns the Figure object that the method was called on """ for obj in self._select_annotations_like( - prop="shapes", + prop='shapes', selector=selector, row=row, col=col, @@ -24621,8 +23982,14 @@ def for_each_shape(self, fn, selector=None, row=None, col=None, secondary_y=None return self def update_shapes( - self, patch=None, selector=None, row=None, col=None, secondary_y=None, **kwargs - ) -> "Figure": + self, + patch=None, + selector=None, + row=None, + col=None, + secondary_y=None, + **kwargs + ) -> 'Figure': """ Perform a property update operation on all shapes that satisfy the specified selection criteria @@ -24672,7 +24039,7 @@ def update_shapes( Returns the Figure object that the method was called on """ for obj in self._select_annotations_like( - prop="shapes", + prop='shapes', selector=selector, row=row, col=col, @@ -24682,47 +24049,46 @@ def update_shapes( return self - def add_shape( - self, - arg=None, - editable=None, - fillcolor=None, - fillrule=None, - label=None, - layer=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - name=None, - opacity=None, - path=None, - showlegend=None, - templateitemname=None, - type=None, - visible=None, - x0=None, - x0shift=None, - x1=None, - x1shift=None, - xanchor=None, - xref=None, - xsizemode=None, - y0=None, - y0shift=None, - y1=None, - y1shift=None, - yanchor=None, - yref=None, - ysizemode=None, - row=None, - col=None, - secondary_y=None, - exclude_empty_subplots=None, - **kwargs, - ) -> "Figure": + def add_shape(self, + arg=None, + editable=None, + fillcolor=None, + fillrule=None, + label=None, + layer=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + name=None, + opacity=None, + path=None, + showlegend=None, + templateitemname=None, + type=None, + visible=None, + x0=None, + x0shift=None, + x1=None, + x1shift=None, + xanchor=None, + xref=None, + xsizemode=None, + y0=None, + y0shift=None, + y1=None, + y1shift=None, + yanchor=None, + yref=None, + ysizemode=None, + row=None, + col=None, + secondary_y=None, + exclude_empty_subplots=None, + **kwargs + )-> 'Figure': """ Create and add a new shape to the figure's layout @@ -24956,46 +24322,43 @@ def add_shape( Figure """ from plotly.graph_objs import layout as _layout - - new_obj = _layout.Shape( - arg, - editable=editable, - fillcolor=fillcolor, - fillrule=fillrule, - label=label, - layer=layer, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - name=name, - opacity=opacity, - path=path, - showlegend=showlegend, - templateitemname=templateitemname, - type=type, - visible=visible, - x0=x0, - x0shift=x0shift, - x1=x1, - x1shift=x1shift, - xanchor=xanchor, - xref=xref, - xsizemode=xsizemode, - y0=y0, - y0shift=y0shift, - y1=y1, - y1shift=y1shift, - yanchor=yanchor, - yref=yref, - ysizemode=ysizemode, - **kwargs, - ) + new_obj = _layout.Shape(arg, + + editable=editable, + fillcolor=fillcolor, + fillrule=fillrule, + label=label, + layer=layer, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + name=name, + opacity=opacity, + path=path, + showlegend=showlegend, + templateitemname=templateitemname, + type=type, + visible=visible, + x0=x0, + x0shift=x0shift, + x1=x1, + x1shift=x1shift, + xanchor=xanchor, + xref=xref, + xsizemode=xsizemode, + y0=y0, + y0shift=y0shift, + y1=y1, + y1shift=y1shift, + yanchor=yanchor, + yref=yref, + ysizemode=ysizemode,**kwargs) return self._add_annotation_like( - "shape", - "shapes", + 'shape', + 'shapes', new_obj, row=row, col=col, diff --git a/packages/python/plotly/plotly/graph_objs/_figurewidget.py b/packages/python/plotly/plotly/graph_objs/_figurewidget.py index 4ced40e75f2..bbe4aa5a35e 100644 --- a/packages/python/plotly/plotly/graph_objs/_figurewidget.py +++ b/packages/python/plotly/plotly/graph_objs/_figurewidget.py @@ -2,9 +2,9 @@ class FigureWidget(BaseFigureWidget): - def __init__( - self, data=None, layout=None, frames=None, skip_invalid=False, **kwargs - ): + + def __init__(self, data=None, layout=None, + frames=None, skip_invalid=False, **kwargs): """ Create a new :class:FigureWidget instance @@ -35,10 +35,10 @@ def __init__( 'scatterternary', 'splom', 'streamtube', 'sunburst', 'surface', 'table', 'treemap', 'violin', 'volume', 'waterfall'] - + - All remaining properties are passed to the constructor of the specified trace type - + (e.g. [{'type': 'scatter', ...}, {'type': 'bar, ...}]) layout @@ -48,552 +48,6 @@ def __init__( - A dict of string/value properties that will be passed to the Layout constructor - Supported dict properties: - - activeselection - :class:`plotly.graph_objects.layout.Activeselec - tion` instance or dict with compatible - properties - activeshape - :class:`plotly.graph_objects.layout.Activeshape - ` instance or dict with compatible properties - annotations - A tuple of - :class:`plotly.graph_objects.layout.Annotation` - instances or dicts with compatible properties - annotationdefaults - When used in a template (as - layout.template.layout.annotationdefaults), - sets the default property values to use for - elements of layout.annotations - autosize - Determines whether or not a layout width or - height that has been left undefined by the user - is initialized on each relayout. Note that, - regardless of this attribute, an undefined - layout width or height is always initialized on - the first call to plot. - autotypenumbers - Using "strict" a numeric string in trace data - is not converted to a number. Using *convert - types* a numeric string in trace data may be - treated as a number during automatic axis - `type` detection. This is the default value; - however it could be overridden for individual - axes. - barcornerradius - Sets the rounding of bar corners. May be an - integer number of pixels, or a percentage of - bar width (as a string ending in %). - bargap - Sets the gap (in plot fraction) between bars of - adjacent location coordinates. - bargroupgap - Sets the gap (in plot fraction) between bars of - the same location coordinate. - barmode - Determines how bars at the same location - coordinate are displayed on the graph. With - "stack", the bars are stacked on top of one - another With "relative", the bars are stacked - on top of one another, with negative values - below the axis, positive values above With - "group", the bars are plotted next to one - another centered around the shared location. - With "overlay", the bars are plotted over one - another, you might need to reduce "opacity" to - see multiple bars. - barnorm - Sets the normalization for bar traces on the - graph. With "fraction", the value of each bar - is divided by the sum of all values at that - location coordinate. "percent" is the same but - multiplied by 100 to show percentages. - boxgap - Sets the gap (in plot fraction) between boxes - of adjacent location coordinates. Has no effect - on traces that have "width" set. - boxgroupgap - Sets the gap (in plot fraction) between boxes - of the same location coordinate. Has no effect - on traces that have "width" set. - boxmode - Determines how boxes at the same location - coordinate are displayed on the graph. If - "group", the boxes are plotted next to one - another centered around the shared location. If - "overlay", the boxes are plotted over one - another, you might need to set "opacity" to see - them multiple boxes. Has no effect on traces - that have "width" set. - calendar - Sets the default calendar system to use for - interpreting and displaying dates throughout - the plot. - clickmode - Determines the mode of single click - interactions. "event" is the default value and - emits the `plotly_click` event. In addition - this mode emits the `plotly_selected` event in - drag modes "lasso" and "select", but with no - event data attached (kept for compatibility - reasons). The "select" flag enables selecting - single data points via click. This mode also - supports persistent selections, meaning that - pressing Shift while clicking, adds to / - subtracts from an existing selection. "select" - with `hovermode`: "x" can be confusing, - consider explicitly setting `hovermode`: - "closest" when using this feature. Selection - events are sent accordingly as long as "event" - flag is set as well. When the "event" flag is - missing, `plotly_click` and `plotly_selected` - events are not fired. - coloraxis - :class:`plotly.graph_objects.layout.Coloraxis` - instance or dict with compatible properties - colorscale - :class:`plotly.graph_objects.layout.Colorscale` - instance or dict with compatible properties - colorway - Sets the default trace colors. - computed - Placeholder for exporting automargin-impacting - values namely `margin.t`, `margin.b`, - `margin.l` and `margin.r` in "full-json" mode. - datarevision - If provided, a changed value tells - `Plotly.react` that one or more data arrays has - changed. This way you can modify arrays in- - place rather than making a complete new copy - for an incremental change. If NOT provided, - `Plotly.react` assumes that data arrays are - being treated as immutable, thus any data array - with a different identity from its predecessor - contains new data. - dragmode - Determines the mode of drag interactions. - "select" and "lasso" apply only to scatter - traces with markers or text. "orbit" and - "turntable" apply only to 3D scenes. - editrevision - Controls persistence of user-driven changes in - `editable: true` configuration, other than - trace names and axis titles. Defaults to - `layout.uirevision`. - extendfunnelareacolors - If `true`, the funnelarea slice colors (whether - given by `funnelareacolorway` or inherited from - `colorway`) will be extended to three times its - original length by first repeating every color - 20% lighter then each color 20% darker. This is - intended to reduce the likelihood of reusing - the same color when you have many slices, but - you can set `false` to disable. Colors provided - in the trace, using `marker.colors`, are never - extended. - extendiciclecolors - If `true`, the icicle slice colors (whether - given by `iciclecolorway` or inherited from - `colorway`) will be extended to three times its - original length by first repeating every color - 20% lighter then each color 20% darker. This is - intended to reduce the likelihood of reusing - the same color when you have many slices, but - you can set `false` to disable. Colors provided - in the trace, using `marker.colors`, are never - extended. - extendpiecolors - If `true`, the pie slice colors (whether given - by `piecolorway` or inherited from `colorway`) - will be extended to three times its original - length by first repeating every color 20% - lighter then each color 20% darker. This is - intended to reduce the likelihood of reusing - the same color when you have many slices, but - you can set `false` to disable. Colors provided - in the trace, using `marker.colors`, are never - extended. - extendsunburstcolors - If `true`, the sunburst slice colors (whether - given by `sunburstcolorway` or inherited from - `colorway`) will be extended to three times its - original length by first repeating every color - 20% lighter then each color 20% darker. This is - intended to reduce the likelihood of reusing - the same color when you have many slices, but - you can set `false` to disable. Colors provided - in the trace, using `marker.colors`, are never - extended. - extendtreemapcolors - If `true`, the treemap slice colors (whether - given by `treemapcolorway` or inherited from - `colorway`) will be extended to three times its - original length by first repeating every color - 20% lighter then each color 20% darker. This is - intended to reduce the likelihood of reusing - the same color when you have many slices, but - you can set `false` to disable. Colors provided - in the trace, using `marker.colors`, are never - extended. - font - Sets the global font. Note that fonts used in - traces and other layout components inherit from - the global font. - funnelareacolorway - Sets the default funnelarea slice colors. - Defaults to the main `colorway` used for trace - colors. If you specify a new list here it can - still be extended with lighter and darker - colors, see `extendfunnelareacolors`. - funnelgap - Sets the gap (in plot fraction) between bars of - adjacent location coordinates. - funnelgroupgap - Sets the gap (in plot fraction) between bars of - the same location coordinate. - funnelmode - Determines how bars at the same location - coordinate are displayed on the graph. With - "stack", the bars are stacked on top of one - another With "group", the bars are plotted next - to one another centered around the shared - location. With "overlay", the bars are plotted - over one another, you might need to reduce - "opacity" to see multiple bars. - geo - :class:`plotly.graph_objects.layout.Geo` - instance or dict with compatible properties - grid - :class:`plotly.graph_objects.layout.Grid` - instance or dict with compatible properties - height - Sets the plot's height (in px). - hiddenlabels - hiddenlabels is the funnelarea & pie chart - analog of visible:'legendonly' but it can - contain many labels, and can simultaneously - hide slices from several pies/funnelarea charts - hiddenlabelssrc - Sets the source reference on Chart Studio Cloud - for `hiddenlabels`. - hidesources - Determines whether or not a text link citing - the data source is placed at the bottom-right - cored of the figure. Has only an effect only on - graphs that have been generated via forked - graphs from the Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise). - hoverdistance - Sets the default distance (in pixels) to look - for data to add hover labels (-1 means no - cutoff, 0 means no looking for data). This is - only a real distance for hovering on point-like - objects, like scatter points. For area-like - objects (bars, scatter fills, etc) hovering is - on inside the area and off outside, but these - objects will not supersede hover on point-like - objects in case of conflict. - hoverlabel - :class:`plotly.graph_objects.layout.Hoverlabel` - instance or dict with compatible properties - hovermode - Determines the mode of hover interactions. If - "closest", a single hoverlabel will appear for - the "closest" point within the `hoverdistance`. - If "x" (or "y"), multiple hoverlabels will - appear for multiple points at the "closest" x- - (or y-) coordinate within the `hoverdistance`, - with the caveat that no more than one - hoverlabel will appear per trace. If *x - unified* (or *y unified*), a single hoverlabel - will appear multiple points at the closest x- - (or y-) coordinate within the `hoverdistance` - with the caveat that no more than one - hoverlabel will appear per trace. In this mode, - spikelines are enabled by default perpendicular - to the specified axis. If false, hover - interactions are disabled. - hoversubplots - Determines expansion of hover effects to other - subplots If "single" just the axis pair of the - primary point is included without overlaying - subplots. If "overlaying" all subplots using - the main axis and occupying the same space are - included. If "axis", also include stacked - subplots using the same axis when `hovermode` - is set to "x", *x unified*, "y" or *y unified*. - iciclecolorway - Sets the default icicle slice colors. Defaults - to the main `colorway` used for trace colors. - If you specify a new list here it can still be - extended with lighter and darker colors, see - `extendiciclecolors`. - images - A tuple of - :class:`plotly.graph_objects.layout.Image` - instances or dicts with compatible properties - imagedefaults - When used in a template (as - layout.template.layout.imagedefaults), sets the - default property values to use for elements of - layout.images - legend - :class:`plotly.graph_objects.layout.Legend` - instance or dict with compatible properties - map - :class:`plotly.graph_objects.layout.Map` - instance or dict with compatible properties - mapbox - :class:`plotly.graph_objects.layout.Mapbox` - instance or dict with compatible properties - margin - :class:`plotly.graph_objects.layout.Margin` - instance or dict with compatible properties - meta - Assigns extra meta information that can be used - in various `text` attributes. Attributes such - as the graph, axis and colorbar `title.text`, - annotation `text` `trace.name` in legend items, - `rangeselector`, `updatemenus` and `sliders` - `label` text all support `meta`. One can access - `meta` fields using template strings: - `%{meta[i]}` where `i` is the index of the - `meta` item in question. `meta` can also be an - object for example `{key: value}` which can be - accessed %{meta[key]}. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - minreducedheight - Minimum height of the plot with - margin.automargin applied (in px) - minreducedwidth - Minimum width of the plot with - margin.automargin applied (in px) - modebar - :class:`plotly.graph_objects.layout.Modebar` - instance or dict with compatible properties - newselection - :class:`plotly.graph_objects.layout.Newselectio - n` instance or dict with compatible properties - newshape - :class:`plotly.graph_objects.layout.Newshape` - instance or dict with compatible properties - paper_bgcolor - Sets the background color of the paper where - the graph is drawn. - piecolorway - Sets the default pie slice colors. Defaults to - the main `colorway` used for trace colors. If - you specify a new list here it can still be - extended with lighter and darker colors, see - `extendpiecolors`. - plot_bgcolor - Sets the background color of the plotting area - in-between x and y axes. - polar - :class:`plotly.graph_objects.layout.Polar` - instance or dict with compatible properties - scattergap - Sets the gap (in plot fraction) between scatter - points of adjacent location coordinates. - Defaults to `bargap`. - scattermode - Determines how scatter points at the same - location coordinate are displayed on the graph. - With "group", the scatter points are plotted - next to one another centered around the shared - location. With "overlay", the scatter points - are plotted over one another, you might need to - reduce "opacity" to see multiple scatter - points. - scene - :class:`plotly.graph_objects.layout.Scene` - instance or dict with compatible properties - selectdirection - When `dragmode` is set to "select", this limits - the selection of the drag to horizontal, - vertical or diagonal. "h" only allows - horizontal selection, "v" only vertical, "d" - only diagonal and "any" sets no limit. - selectionrevision - Controls persistence of user-driven changes in - selected points from all traces. - selections - A tuple of - :class:`plotly.graph_objects.layout.Selection` - instances or dicts with compatible properties - selectiondefaults - When used in a template (as - layout.template.layout.selectiondefaults), sets - the default property values to use for elements - of layout.selections - separators - Sets the decimal and thousand separators. For - example, *. * puts a '.' before decimals and a - space between thousands. In English locales, - dflt is ".," but other locales may alter this - default. - shapes - A tuple of - :class:`plotly.graph_objects.layout.Shape` - instances or dicts with compatible properties - shapedefaults - When used in a template (as - layout.template.layout.shapedefaults), sets the - default property values to use for elements of - layout.shapes - showlegend - Determines whether or not a legend is drawn. - Default is `true` if there is a trace to show - and any of these: a) Two or more traces would - by default be shown in the legend. b) One pie - trace is shown in the legend. c) One trace is - explicitly given with `showlegend: true`. - sliders - A tuple of - :class:`plotly.graph_objects.layout.Slider` - instances or dicts with compatible properties - sliderdefaults - When used in a template (as - layout.template.layout.sliderdefaults), sets - the default property values to use for elements - of layout.sliders - smith - :class:`plotly.graph_objects.layout.Smith` - instance or dict with compatible properties - spikedistance - Sets the default distance (in pixels) to look - for data to draw spikelines to (-1 means no - cutoff, 0 means no looking for data). As with - hoverdistance, distance does not apply to area- - like objects. In addition, some objects can be - hovered on but will not generate spikelines, - such as scatter fills. - sunburstcolorway - Sets the default sunburst slice colors. - Defaults to the main `colorway` used for trace - colors. If you specify a new list here it can - still be extended with lighter and darker - colors, see `extendsunburstcolors`. - template - Default attributes to be applied to the plot. - This should be a dict with format: `{'layout': - layoutTemplate, 'data': {trace_type: - [traceTemplate, ...], ...}}` where - `layoutTemplate` is a dict matching the - structure of `figure.layout` and - `traceTemplate` is a dict matching the - structure of the trace with type `trace_type` - (e.g. 'scatter'). Alternatively, this may be - specified as an instance of - plotly.graph_objs.layout.Template. Trace - templates are applied cyclically to traces of - each type. Container arrays (eg `annotations`) - have special handling: An object ending in - `defaults` (eg `annotationdefaults`) is applied - to each array item. But if an item has a - `templateitemname` key we look in the template - array for an item with matching `name` and - apply that instead. If no matching `name` is - found we mark the item invisible. Any named - template item not referenced is appended to the - end of the array, so this can be used to add a - watermark annotation or a logo image, for - example. To omit one of these items on the - plot, make an item with matching - `templateitemname` and `visible: false`. - ternary - :class:`plotly.graph_objects.layout.Ternary` - instance or dict with compatible properties - title - :class:`plotly.graph_objects.layout.Title` - instance or dict with compatible properties - transition - Sets transition options used during - Plotly.react updates. - treemapcolorway - Sets the default treemap slice colors. Defaults - to the main `colorway` used for trace colors. - If you specify a new list here it can still be - extended with lighter and darker colors, see - `extendtreemapcolors`. - uirevision - Used to allow user interactions with the plot - to persist after `Plotly.react` calls that are - unaware of these interactions. If `uirevision` - is omitted, or if it is given and it changed - from the previous `Plotly.react` call, the - exact new figure is used. If `uirevision` is - truthy and did NOT change, any attribute that - has been affected by user interactions and did - not receive a different value in the new figure - will keep the interaction value. - `layout.uirevision` attribute serves as the - default for `uirevision` attributes in various - sub-containers. For finer control you can set - these sub-attributes directly. For example, if - your app separately controls the data on the x - and y axes you might set - `xaxis.uirevision=*time*` and - `yaxis.uirevision=*cost*`. Then if only the y - data is changed, you can update - `yaxis.uirevision=*quantity*` and the y axis - range will reset but the x axis range will - retain any user-driven zoom. - uniformtext - :class:`plotly.graph_objects.layout.Uniformtext - ` instance or dict with compatible properties - updatemenus - A tuple of - :class:`plotly.graph_objects.layout.Updatemenu` - instances or dicts with compatible properties - updatemenudefaults - When used in a template (as - layout.template.layout.updatemenudefaults), - sets the default property values to use for - elements of layout.updatemenus - violingap - Sets the gap (in plot fraction) between violins - of adjacent location coordinates. Has no effect - on traces that have "width" set. - violingroupgap - Sets the gap (in plot fraction) between violins - of the same location coordinate. Has no effect - on traces that have "width" set. - violinmode - Determines how violins at the same location - coordinate are displayed on the graph. If - "group", the violins are plotted next to one - another centered around the shared location. If - "overlay", the violins are plotted over one - another, you might need to set "opacity" to see - them multiple violins. Has no effect on traces - that have "width" set. - waterfallgap - Sets the gap (in plot fraction) between bars of - adjacent location coordinates. - waterfallgroupgap - Sets the gap (in plot fraction) between bars of - the same location coordinate. - waterfallmode - Determines how bars at the same location - coordinate are displayed on the graph. With - "group", the bars are plotted next to one - another centered around the shared location. - With "overlay", the bars are plotted over one - another, you might need to reduce "opacity" to - see multiple bars. - width - Sets the plot's width (in px). - xaxis - :class:`plotly.graph_objects.layout.XAxis` - instance or dict with compatible properties - yaxis - :class:`plotly.graph_objects.layout.YAxis` - instance or dict with compatible properties - frames The 'frames' property is a tuple of instances of Frame that may be specified as: @@ -601,32 +55,6 @@ def __init__( - A list or tuple of dicts of string/value properties that will be passed to the Frame constructor - Supported dict properties: - - baseframe - The name of the frame into which this frame's - properties are merged before applying. This is - used to unify properties and avoid needing to - specify the same values for the same properties - in multiple frames. - data - A list of traces this frame modifies. The - format is identical to the normal trace - definition. - group - An identifier that specifies the group to which - the frame belongs, used by animate to select a - subset of frames. - layout - Layout properties which this frame modifies. - The format is identical to the normal layout - definition. - name - A label by which to identify the frame - traces - A list of trace indices that identify the - respective traces in the data attribute - skip_invalid: bool If True, invalid properties in the figure specification will be skipped silently. If False (default) invalid properties in the @@ -638,11 +66,13 @@ def __init__( if a property in the specification of data, layout, or frames is invalid AND skip_invalid is False """ - super(FigureWidget, self).__init__(data, layout, frames, skip_invalid, **kwargs) - + super(FigureWidget ,self).__init__(data, layout, + frames, skip_invalid, + **kwargs) + def update(self, dict1=None, overwrite=False, **kwargs) -> "FigureWidget": - """ - + ''' + Update the properties of the figure with a dict and/or with keyword arguments. @@ -687,22 +117,13 @@ def update(self, dict1=None, overwrite=False, **kwargs) -> "FigureWidget": ------- BaseFigure Updated figure - - """ + + ''' return super(FigureWidget, self).update(dict1, overwrite, **kwargs) - - def update_traces( - self, - patch=None, - selector=None, - row=None, - col=None, - secondary_y=None, - overwrite=False, - **kwargs, - ) -> "FigureWidget": - """ - + + def update_traces(self, patch=None, selector=None, row=None, col=None, secondary_y=None, overwrite=False, **kwargs) -> "FigureWidget": + ''' + Perform a property update operation on all traces that satisfy the specified selection criteria @@ -752,15 +173,13 @@ def update_traces( ------- self Returns the Figure object that the method was called on - - """ - return super(FigureWidget, self).update_traces( - patch, selector, row, col, secondary_y, overwrite, **kwargs - ) - + + ''' + return super(FigureWidget, self).update_traces(patch, selector, row, col, secondary_y, overwrite, **kwargs) + def update_layout(self, dict1=None, overwrite=False, **kwargs) -> "FigureWidget": - """ - + ''' + Update the properties of the figure's layout with a dict and/or with keyword arguments. @@ -782,15 +201,13 @@ def update_layout(self, dict1=None, overwrite=False, **kwargs) -> "FigureWidget" ------- BaseFigure The Figure object that the update_layout method was called on - - """ + + ''' return super(FigureWidget, self).update_layout(dict1, overwrite, **kwargs) - - def for_each_trace( - self, fn, selector=None, row=None, col=None, secondary_y=None - ) -> "FigureWidget": - """ - + + def for_each_trace(self, fn, selector=None, row=None, col=None, secondary_y=None) -> "FigureWidget": + ''' + Apply a function to all traces that satisfy the specified selection criteria @@ -830,17 +247,13 @@ def for_each_trace( ------- self Returns the Figure object that the method was called on - - """ - return super(FigureWidget, self).for_each_trace( - fn, selector, row, col, secondary_y - ) - - def add_trace( - self, trace, row=None, col=None, secondary_y=None, exclude_empty_subplots=False - ) -> "FigureWidget": - """ - + + ''' + return super(FigureWidget, self).for_each_trace(fn, selector, row, col, secondary_y) + + def add_trace(self, trace, row=None, col=None, secondary_y=None, exclude_empty_subplots=False) -> "FigureWidget": + ''' + Add a trace to the figure Parameters @@ -909,22 +322,13 @@ def add_trace( Figure(...) >>> fig.add_trace(go.Scatter(x=[1,2,3], y=[2,1,2]), row=2, col=1) # doctest: +ELLIPSIS Figure(...) - - """ - return super(FigureWidget, self).add_trace( - trace, row, col, secondary_y, exclude_empty_subplots - ) - - def add_traces( - self, - data, - rows=None, - cols=None, - secondary_ys=None, - exclude_empty_subplots=False, - ) -> "FigureWidget": - """ - + + ''' + return super(FigureWidget, self).add_trace(trace, row, col, secondary_y, exclude_empty_subplots) + + def add_traces(self, data,rows=None,cols=None,secondary_ys=None,exclude_empty_subplots=False) -> "FigureWidget": + ''' + Add traces to the figure Parameters @@ -989,321 +393,274 @@ def add_traces( ... go.Scatter(x=[1,2,3], y=[2,1,2])], ... rows=[1, 2], cols=[1, 1]) # doctest: +ELLIPSIS Figure(...) - - """ - return super(FigureWidget, self).add_traces( - data, rows, cols, secondary_ys, exclude_empty_subplots - ) - - def add_vline( - self, - x, - row="all", - col="all", - exclude_empty_subplots=True, - annotation=None, - **kwargs, - ) -> "FigureWidget": - """ - - Add a vertical line to a plot or subplot that extends infinitely in the - y-dimension. - - Parameters - ---------- - x: float or int - A number representing the x coordinate of the vertical line. - exclude_empty_subplots: Boolean - If True (default) do not place the shape on subplots that have no data - plotted on them. - row: None, int or 'all' - Subplot row for shape indexed starting at 1. If 'all', addresses all rows in - the specified column(s). If both row and col are None, addresses the - first subplot if subplots exist, or the only plot. By default is "all". - col: None, int or 'all' - Subplot column for shape indexed starting at 1. If 'all', addresses all rows in - the specified column(s). If both row and col are None, addresses the - first subplot if subplots exist, or the only plot. By default is "all". - annotation: dict or plotly.graph_objects.layout.Annotation. If dict(), - it is interpreted as describing an annotation. The annotation is - placed relative to the shape based on annotation_position (see - below) unless its x or y value has been specified for the annotation - passed here. xref and yref are always the same as for the added - shape and cannot be overridden. - annotation_position: a string containing optionally ["top", "bottom"] - and ["left", "right"] specifying where the text should be anchored - to on the line. Example positions are "bottom left", "right top", - "right", "bottom". If an annotation is added but annotation_position is - not specified, this defaults to "top right". - annotation_*: any parameters to go.layout.Annotation can be passed as - keywords by prefixing them with "annotation_". For example, to specify the - annotation text "example" you can pass annotation_text="example" as a - keyword argument. - **kwargs: - Any named function parameters that can be passed to 'add_shape', - except for x0, x1, y0, y1 or type. - """ - return super(FigureWidget, self).add_vline( - x, row, col, exclude_empty_subplots, annotation, **kwargs - ) - - def add_hline( - self, - y, - row="all", - col="all", - exclude_empty_subplots=True, - annotation=None, - **kwargs, - ) -> "FigureWidget": - """ - - Add a horizontal line to a plot or subplot that extends infinitely in the - x-dimension. - - Parameters - ---------- - y: float or int - A number representing the y coordinate of the horizontal line. - exclude_empty_subplots: Boolean - If True (default) do not place the shape on subplots that have no data - plotted on them. - row: None, int or 'all' - Subplot row for shape indexed starting at 1. If 'all', addresses all rows in - the specified column(s). If both row and col are None, addresses the - first subplot if subplots exist, or the only plot. By default is "all". - col: None, int or 'all' - Subplot column for shape indexed starting at 1. If 'all', addresses all rows in - the specified column(s). If both row and col are None, addresses the - first subplot if subplots exist, or the only plot. By default is "all". - annotation: dict or plotly.graph_objects.layout.Annotation. If dict(), - it is interpreted as describing an annotation. The annotation is - placed relative to the shape based on annotation_position (see - below) unless its x or y value has been specified for the annotation - passed here. xref and yref are always the same as for the added - shape and cannot be overridden. - annotation_position: a string containing optionally ["top", "bottom"] - and ["left", "right"] specifying where the text should be anchored - to on the line. Example positions are "bottom left", "right top", - "right", "bottom". If an annotation is added but annotation_position is - not specified, this defaults to "top right". - annotation_*: any parameters to go.layout.Annotation can be passed as - keywords by prefixing them with "annotation_". For example, to specify the - annotation text "example" you can pass annotation_text="example" as a - keyword argument. - **kwargs: - Any named function parameters that can be passed to 'add_shape', - except for x0, x1, y0, y1 or type. - """ - return super(FigureWidget, self).add_hline( - y, row, col, exclude_empty_subplots, annotation, **kwargs - ) - - def add_vrect( - self, - x0, - x1, - row="all", - col="all", - exclude_empty_subplots=True, - annotation=None, - **kwargs, - ) -> "FigureWidget": - """ - - Add a rectangle to a plot or subplot that extends infinitely in the - y-dimension. - - Parameters - ---------- - x0: float or int - A number representing the x coordinate of one side of the rectangle. - x1: float or int - A number representing the x coordinate of the other side of the rectangle. - exclude_empty_subplots: Boolean - If True (default) do not place the shape on subplots that have no data - plotted on them. - row: None, int or 'all' - Subplot row for shape indexed starting at 1. If 'all', addresses all rows in - the specified column(s). If both row and col are None, addresses the - first subplot if subplots exist, or the only plot. By default is "all". - col: None, int or 'all' - Subplot column for shape indexed starting at 1. If 'all', addresses all rows in - the specified column(s). If both row and col are None, addresses the - first subplot if subplots exist, or the only plot. By default is "all". - annotation: dict or plotly.graph_objects.layout.Annotation. If dict(), - it is interpreted as describing an annotation. The annotation is - placed relative to the shape based on annotation_position (see - below) unless its x or y value has been specified for the annotation - passed here. xref and yref are always the same as for the added - shape and cannot be overridden. - annotation_position: a string containing optionally ["inside", "outside"], ["top", "bottom"] - and ["left", "right"] specifying where the text should be anchored - to on the rectangle. Example positions are "outside top left", "inside - bottom", "right", "inside left", "inside" ("outside" is not supported). If - an annotation is added but annotation_position is not specified this - defaults to "inside top right". - annotation_*: any parameters to go.layout.Annotation can be passed as - keywords by prefixing them with "annotation_". For example, to specify the - annotation text "example" you can pass annotation_text="example" as a - keyword argument. - **kwargs: - Any named function parameters that can be passed to 'add_shape', - except for x0, x1, y0, y1 or type. - """ - return super(FigureWidget, self).add_vrect( - x0, x1, row, col, exclude_empty_subplots, annotation, **kwargs - ) - - def add_hrect( - self, - y0, - y1, - row="all", - col="all", - exclude_empty_subplots=True, - annotation=None, - **kwargs, - ) -> "FigureWidget": - """ - - Add a rectangle to a plot or subplot that extends infinitely in the - x-dimension. - - Parameters - ---------- - y0: float or int - A number representing the y coordinate of one side of the rectangle. - y1: float or int - A number representing the y coordinate of the other side of the rectangle. - exclude_empty_subplots: Boolean - If True (default) do not place the shape on subplots that have no data - plotted on them. - row: None, int or 'all' - Subplot row for shape indexed starting at 1. If 'all', addresses all rows in - the specified column(s). If both row and col are None, addresses the - first subplot if subplots exist, or the only plot. By default is "all". - col: None, int or 'all' - Subplot column for shape indexed starting at 1. If 'all', addresses all rows in - the specified column(s). If both row and col are None, addresses the - first subplot if subplots exist, or the only plot. By default is "all". - annotation: dict or plotly.graph_objects.layout.Annotation. If dict(), - it is interpreted as describing an annotation. The annotation is - placed relative to the shape based on annotation_position (see - below) unless its x or y value has been specified for the annotation - passed here. xref and yref are always the same as for the added - shape and cannot be overridden. - annotation_position: a string containing optionally ["inside", "outside"], ["top", "bottom"] - and ["left", "right"] specifying where the text should be anchored - to on the rectangle. Example positions are "outside top left", "inside - bottom", "right", "inside left", "inside" ("outside" is not supported). If - an annotation is added but annotation_position is not specified this - defaults to "inside top right". - annotation_*: any parameters to go.layout.Annotation can be passed as - keywords by prefixing them with "annotation_". For example, to specify the - annotation text "example" you can pass annotation_text="example" as a - keyword argument. - **kwargs: - Any named function parameters that can be passed to 'add_shape', - except for x0, x1, y0, y1 or type. - """ - return super(FigureWidget, self).add_hrect( - y0, y1, row, col, exclude_empty_subplots, annotation, **kwargs - ) - - def set_subplots( - self, rows=None, cols=None, **make_subplots_args - ) -> "FigureWidget": - """ - + + ''' + return super(FigureWidget, self).add_traces(data,rows,cols,secondary_ys,exclude_empty_subplots) + + def add_vline(self, x,row="all",col="all",exclude_empty_subplots=True,annotation=None,**kwargs) -> "FigureWidget": + ''' + +Add a vertical line to a plot or subplot that extends infinitely in the +y-dimension. + +Parameters +---------- +x: float or int + A number representing the x coordinate of the vertical line. +exclude_empty_subplots: Boolean + If True (default) do not place the shape on subplots that have no data + plotted on them. +row: None, int or 'all' + Subplot row for shape indexed starting at 1. If 'all', addresses all rows in + the specified column(s). If both row and col are None, addresses the + first subplot if subplots exist, or the only plot. By default is "all". +col: None, int or 'all' + Subplot column for shape indexed starting at 1. If 'all', addresses all rows in + the specified column(s). If both row and col are None, addresses the + first subplot if subplots exist, or the only plot. By default is "all". +annotation: dict or plotly.graph_objects.layout.Annotation. If dict(), + it is interpreted as describing an annotation. The annotation is + placed relative to the shape based on annotation_position (see + below) unless its x or y value has been specified for the annotation + passed here. xref and yref are always the same as for the added + shape and cannot be overridden. +annotation_position: a string containing optionally ["top", "bottom"] + and ["left", "right"] specifying where the text should be anchored + to on the line. Example positions are "bottom left", "right top", + "right", "bottom". If an annotation is added but annotation_position is + not specified, this defaults to "top right". +annotation_*: any parameters to go.layout.Annotation can be passed as + keywords by prefixing them with "annotation_". For example, to specify the + annotation text "example" you can pass annotation_text="example" as a + keyword argument. +**kwargs: + Any named function parameters that can be passed to 'add_shape', + except for x0, x1, y0, y1 or type. + ''' + return super(FigureWidget, self).add_vline(x,row,col,exclude_empty_subplots,annotation,**kwargs) + + def add_hline(self, y,row="all",col="all",exclude_empty_subplots=True,annotation=None,**kwargs) -> "FigureWidget": + ''' + +Add a horizontal line to a plot or subplot that extends infinitely in the +x-dimension. + +Parameters +---------- +y: float or int + A number representing the y coordinate of the horizontal line. +exclude_empty_subplots: Boolean + If True (default) do not place the shape on subplots that have no data + plotted on them. +row: None, int or 'all' + Subplot row for shape indexed starting at 1. If 'all', addresses all rows in + the specified column(s). If both row and col are None, addresses the + first subplot if subplots exist, or the only plot. By default is "all". +col: None, int or 'all' + Subplot column for shape indexed starting at 1. If 'all', addresses all rows in + the specified column(s). If both row and col are None, addresses the + first subplot if subplots exist, or the only plot. By default is "all". +annotation: dict or plotly.graph_objects.layout.Annotation. If dict(), + it is interpreted as describing an annotation. The annotation is + placed relative to the shape based on annotation_position (see + below) unless its x or y value has been specified for the annotation + passed here. xref and yref are always the same as for the added + shape and cannot be overridden. +annotation_position: a string containing optionally ["top", "bottom"] + and ["left", "right"] specifying where the text should be anchored + to on the line. Example positions are "bottom left", "right top", + "right", "bottom". If an annotation is added but annotation_position is + not specified, this defaults to "top right". +annotation_*: any parameters to go.layout.Annotation can be passed as + keywords by prefixing them with "annotation_". For example, to specify the + annotation text "example" you can pass annotation_text="example" as a + keyword argument. +**kwargs: + Any named function parameters that can be passed to 'add_shape', + except for x0, x1, y0, y1 or type. + ''' + return super(FigureWidget, self).add_hline(y,row,col,exclude_empty_subplots,annotation,**kwargs) + + def add_vrect(self, x0,x1,row="all",col="all",exclude_empty_subplots=True,annotation=None,**kwargs) -> "FigureWidget": + ''' + +Add a rectangle to a plot or subplot that extends infinitely in the +y-dimension. + +Parameters +---------- +x0: float or int + A number representing the x coordinate of one side of the rectangle. +x1: float or int + A number representing the x coordinate of the other side of the rectangle. +exclude_empty_subplots: Boolean + If True (default) do not place the shape on subplots that have no data + plotted on them. +row: None, int or 'all' + Subplot row for shape indexed starting at 1. If 'all', addresses all rows in + the specified column(s). If both row and col are None, addresses the + first subplot if subplots exist, or the only plot. By default is "all". +col: None, int or 'all' + Subplot column for shape indexed starting at 1. If 'all', addresses all rows in + the specified column(s). If both row and col are None, addresses the + first subplot if subplots exist, or the only plot. By default is "all". +annotation: dict or plotly.graph_objects.layout.Annotation. If dict(), + it is interpreted as describing an annotation. The annotation is + placed relative to the shape based on annotation_position (see + below) unless its x or y value has been specified for the annotation + passed here. xref and yref are always the same as for the added + shape and cannot be overridden. +annotation_position: a string containing optionally ["inside", "outside"], ["top", "bottom"] + and ["left", "right"] specifying where the text should be anchored + to on the rectangle. Example positions are "outside top left", "inside + bottom", "right", "inside left", "inside" ("outside" is not supported). If + an annotation is added but annotation_position is not specified this + defaults to "inside top right". +annotation_*: any parameters to go.layout.Annotation can be passed as + keywords by prefixing them with "annotation_". For example, to specify the + annotation text "example" you can pass annotation_text="example" as a + keyword argument. +**kwargs: + Any named function parameters that can be passed to 'add_shape', + except for x0, x1, y0, y1 or type. + ''' + return super(FigureWidget, self).add_vrect(x0,x1,row,col,exclude_empty_subplots,annotation,**kwargs) + + def add_hrect(self, y0,y1,row="all",col="all",exclude_empty_subplots=True,annotation=None,**kwargs) -> "FigureWidget": + ''' + +Add a rectangle to a plot or subplot that extends infinitely in the +x-dimension. + +Parameters +---------- +y0: float or int + A number representing the y coordinate of one side of the rectangle. +y1: float or int + A number representing the y coordinate of the other side of the rectangle. +exclude_empty_subplots: Boolean + If True (default) do not place the shape on subplots that have no data + plotted on them. +row: None, int or 'all' + Subplot row for shape indexed starting at 1. If 'all', addresses all rows in + the specified column(s). If both row and col are None, addresses the + first subplot if subplots exist, or the only plot. By default is "all". +col: None, int or 'all' + Subplot column for shape indexed starting at 1. If 'all', addresses all rows in + the specified column(s). If both row and col are None, addresses the + first subplot if subplots exist, or the only plot. By default is "all". +annotation: dict or plotly.graph_objects.layout.Annotation. If dict(), + it is interpreted as describing an annotation. The annotation is + placed relative to the shape based on annotation_position (see + below) unless its x or y value has been specified for the annotation + passed here. xref and yref are always the same as for the added + shape and cannot be overridden. +annotation_position: a string containing optionally ["inside", "outside"], ["top", "bottom"] + and ["left", "right"] specifying where the text should be anchored + to on the rectangle. Example positions are "outside top left", "inside + bottom", "right", "inside left", "inside" ("outside" is not supported). If + an annotation is added but annotation_position is not specified this + defaults to "inside top right". +annotation_*: any parameters to go.layout.Annotation can be passed as + keywords by prefixing them with "annotation_". For example, to specify the + annotation text "example" you can pass annotation_text="example" as a + keyword argument. +**kwargs: + Any named function parameters that can be passed to 'add_shape', + except for x0, x1, y0, y1 or type. + ''' + return super(FigureWidget, self).add_hrect(y0,y1,row,col,exclude_empty_subplots,annotation,**kwargs) + + def set_subplots(self, rows=None, cols=None, **make_subplots_args) -> "FigureWidget": + ''' + Add subplots to this figure. If the figure already contains subplots, then this throws an error. Accepts any keyword arguments that plotly.subplots.make_subplots accepts. - - """ + + ''' return super(FigureWidget, self).set_subplots(rows, cols, **make_subplots_args) - - def add_bar( - self, - alignmentgroup=None, - base=None, - basesrc=None, - cliponaxis=None, - constraintext=None, - customdata=None, - customdatasrc=None, - dx=None, - dy=None, - error_x=None, - error_y=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - insidetextanchor=None, - insidetextfont=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - marker=None, - meta=None, - metasrc=None, - name=None, - offset=None, - offsetgroup=None, - offsetsrc=None, - opacity=None, - orientation=None, - outsidetextfont=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - text=None, - textangle=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - width=None, - widthsrc=None, - x=None, - x0=None, - xaxis=None, - xcalendar=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - y=None, - y0=None, - yaxis=None, - ycalendar=None, - yhoverformat=None, - yperiod=None, - yperiod0=None, - yperiodalignment=None, - ysrc=None, - zorder=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "FigureWidget": + + def add_bar(self, + alignmentgroup=None, + base=None, + basesrc=None, + cliponaxis=None, + constraintext=None, + customdata=None, + customdatasrc=None, + dx=None, + dy=None, + error_x=None, + error_y=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + insidetextanchor=None, + insidetextfont=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + marker=None, + meta=None, + metasrc=None, + name=None, + offset=None, + offsetgroup=None, + offsetsrc=None, + opacity=None, + orientation=None, + outsidetextfont=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + text=None, + textangle=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + width=None, + widthsrc=None, + x=None, + x0=None, + xaxis=None, + xcalendar=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + y=None, + y0=None, + yaxis=None, + ycalendar=None, + yhoverformat=None, + yperiod=None, + yperiod0=None, + yperiodalignment=None, + ysrc=None, + zorder=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'FigureWidget': """ Add a new Bar trace @@ -1712,139 +1069,137 @@ def add_bar( FigureWidget """ from plotly.graph_objs import Bar - new_trace = Bar( - alignmentgroup=alignmentgroup, - base=base, - basesrc=basesrc, - cliponaxis=cliponaxis, - constraintext=constraintext, - customdata=customdata, - customdatasrc=customdatasrc, - dx=dx, - dy=dy, - error_x=error_x, - error_y=error_y, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - insidetextanchor=insidetextanchor, - insidetextfont=insidetextfont, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - marker=marker, - meta=meta, - metasrc=metasrc, - name=name, - offset=offset, - offsetgroup=offsetgroup, - offsetsrc=offsetsrc, - opacity=opacity, - orientation=orientation, - outsidetextfont=outsidetextfont, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - text=text, - textangle=textangle, - textfont=textfont, - textposition=textposition, - textpositionsrc=textpositionsrc, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - width=width, - widthsrc=widthsrc, - x=x, - x0=x0, - xaxis=xaxis, - xcalendar=xcalendar, - xhoverformat=xhoverformat, - xperiod=xperiod, - xperiod0=xperiod0, - xperiodalignment=xperiodalignment, - xsrc=xsrc, - y=y, - y0=y0, - yaxis=yaxis, - ycalendar=ycalendar, - yhoverformat=yhoverformat, - yperiod=yperiod, - yperiod0=yperiod0, - yperiodalignment=yperiodalignment, - ysrc=ysrc, - zorder=zorder, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_barpolar( - self, - base=None, - basesrc=None, - customdata=None, - customdatasrc=None, - dr=None, - dtheta=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - marker=None, - meta=None, - metasrc=None, - name=None, - offset=None, - offsetsrc=None, - opacity=None, - r=None, - r0=None, - rsrc=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - subplot=None, - text=None, - textsrc=None, - theta=None, - theta0=None, - thetasrc=None, - thetaunit=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - width=None, - widthsrc=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + alignmentgroup=alignmentgroup, + base=base, + basesrc=basesrc, + cliponaxis=cliponaxis, + constraintext=constraintext, + customdata=customdata, + customdatasrc=customdatasrc, + dx=dx, + dy=dy, + error_x=error_x, + error_y=error_y, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + insidetextanchor=insidetextanchor, + insidetextfont=insidetextfont, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + marker=marker, + meta=meta, + metasrc=metasrc, + name=name, + offset=offset, + offsetgroup=offsetgroup, + offsetsrc=offsetsrc, + opacity=opacity, + orientation=orientation, + outsidetextfont=outsidetextfont, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + text=text, + textangle=textangle, + textfont=textfont, + textposition=textposition, + textpositionsrc=textpositionsrc, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + width=width, + widthsrc=widthsrc, + x=x, + x0=x0, + xaxis=xaxis, + xcalendar=xcalendar, + xhoverformat=xhoverformat, + xperiod=xperiod, + xperiod0=xperiod0, + xperiodalignment=xperiodalignment, + xsrc=xsrc, + y=y, + y0=y0, + yaxis=yaxis, + ycalendar=ycalendar, + yhoverformat=yhoverformat, + yperiod=yperiod, + yperiod0=yperiod0, + yperiodalignment=yperiodalignment, + ysrc=ysrc, + zorder=zorder, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_barpolar(self, + base=None, + basesrc=None, + customdata=None, + customdatasrc=None, + dr=None, + dtheta=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + marker=None, + meta=None, + metasrc=None, + name=None, + offset=None, + offsetsrc=None, + opacity=None, + r=None, + r0=None, + rsrc=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + subplot=None, + text=None, + textsrc=None, + theta=None, + theta0=None, + thetasrc=None, + thetaunit=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + width=None, + widthsrc=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Barpolar trace @@ -2086,152 +1441,150 @@ def add_barpolar( FigureWidget """ from plotly.graph_objs import Barpolar - new_trace = Barpolar( - base=base, - basesrc=basesrc, - customdata=customdata, - customdatasrc=customdatasrc, - dr=dr, - dtheta=dtheta, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - marker=marker, - meta=meta, - metasrc=metasrc, - name=name, - offset=offset, - offsetsrc=offsetsrc, - opacity=opacity, - r=r, - r0=r0, - rsrc=rsrc, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - subplot=subplot, - text=text, - textsrc=textsrc, - theta=theta, - theta0=theta0, - thetasrc=thetasrc, - thetaunit=thetaunit, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - width=width, - widthsrc=widthsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_box( - self, - alignmentgroup=None, - boxmean=None, - boxpoints=None, - customdata=None, - customdatasrc=None, - dx=None, - dy=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hoveron=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - jitter=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - lowerfence=None, - lowerfencesrc=None, - marker=None, - mean=None, - meansrc=None, - median=None, - mediansrc=None, - meta=None, - metasrc=None, - name=None, - notched=None, - notchspan=None, - notchspansrc=None, - notchwidth=None, - offsetgroup=None, - opacity=None, - orientation=None, - pointpos=None, - q1=None, - q1src=None, - q3=None, - q3src=None, - quartilemethod=None, - sd=None, - sdmultiple=None, - sdsrc=None, - selected=None, - selectedpoints=None, - showlegend=None, - showwhiskers=None, - sizemode=None, - stream=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - unselected=None, - upperfence=None, - upperfencesrc=None, - visible=None, - whiskerwidth=None, - width=None, - x=None, - x0=None, - xaxis=None, - xcalendar=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - y=None, - y0=None, - yaxis=None, - ycalendar=None, - yhoverformat=None, - yperiod=None, - yperiod0=None, - yperiodalignment=None, - ysrc=None, - zorder=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "FigureWidget": + + base=base, + basesrc=basesrc, + customdata=customdata, + customdatasrc=customdatasrc, + dr=dr, + dtheta=dtheta, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + marker=marker, + meta=meta, + metasrc=metasrc, + name=name, + offset=offset, + offsetsrc=offsetsrc, + opacity=opacity, + r=r, + r0=r0, + rsrc=rsrc, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + subplot=subplot, + text=text, + textsrc=textsrc, + theta=theta, + theta0=theta0, + thetasrc=thetasrc, + thetaunit=thetaunit, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + width=width, + widthsrc=widthsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_box(self, + alignmentgroup=None, + boxmean=None, + boxpoints=None, + customdata=None, + customdatasrc=None, + dx=None, + dy=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hoveron=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + jitter=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + lowerfence=None, + lowerfencesrc=None, + marker=None, + mean=None, + meansrc=None, + median=None, + mediansrc=None, + meta=None, + metasrc=None, + name=None, + notched=None, + notchspan=None, + notchspansrc=None, + notchwidth=None, + offsetgroup=None, + opacity=None, + orientation=None, + pointpos=None, + q1=None, + q1src=None, + q3=None, + q3src=None, + quartilemethod=None, + sd=None, + sdmultiple=None, + sdsrc=None, + selected=None, + selectedpoints=None, + showlegend=None, + showwhiskers=None, + sizemode=None, + stream=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + unselected=None, + upperfence=None, + upperfencesrc=None, + visible=None, + whiskerwidth=None, + width=None, + x=None, + x0=None, + xaxis=None, + xcalendar=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + y=None, + y0=None, + yaxis=None, + ycalendar=None, + yhoverformat=None, + yperiod=None, + yperiod0=None, + yperiodalignment=None, + ysrc=None, + zorder=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'FigureWidget': """ Add a new Box trace @@ -2733,154 +2086,152 @@ def add_box( FigureWidget """ from plotly.graph_objs import Box - new_trace = Box( - alignmentgroup=alignmentgroup, - boxmean=boxmean, - boxpoints=boxpoints, - customdata=customdata, - customdatasrc=customdatasrc, - dx=dx, - dy=dy, - fillcolor=fillcolor, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hoveron=hoveron, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - jitter=jitter, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - lowerfence=lowerfence, - lowerfencesrc=lowerfencesrc, - marker=marker, - mean=mean, - meansrc=meansrc, - median=median, - mediansrc=mediansrc, - meta=meta, - metasrc=metasrc, - name=name, - notched=notched, - notchspan=notchspan, - notchspansrc=notchspansrc, - notchwidth=notchwidth, - offsetgroup=offsetgroup, - opacity=opacity, - orientation=orientation, - pointpos=pointpos, - q1=q1, - q1src=q1src, - q3=q3, - q3src=q3src, - quartilemethod=quartilemethod, - sd=sd, - sdmultiple=sdmultiple, - sdsrc=sdsrc, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - showwhiskers=showwhiskers, - sizemode=sizemode, - stream=stream, - text=text, - textsrc=textsrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - upperfence=upperfence, - upperfencesrc=upperfencesrc, - visible=visible, - whiskerwidth=whiskerwidth, - width=width, - x=x, - x0=x0, - xaxis=xaxis, - xcalendar=xcalendar, - xhoverformat=xhoverformat, - xperiod=xperiod, - xperiod0=xperiod0, - xperiodalignment=xperiodalignment, - xsrc=xsrc, - y=y, - y0=y0, - yaxis=yaxis, - ycalendar=ycalendar, - yhoverformat=yhoverformat, - yperiod=yperiod, - yperiod0=yperiod0, - yperiodalignment=yperiodalignment, - ysrc=ysrc, - zorder=zorder, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_candlestick( - self, - close=None, - closesrc=None, - customdata=None, - customdatasrc=None, - decreasing=None, - high=None, - highsrc=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - increasing=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - low=None, - lowsrc=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - open=None, - opensrc=None, - selectedpoints=None, - showlegend=None, - stream=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - visible=None, - whiskerwidth=None, - x=None, - xaxis=None, - xcalendar=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - yaxis=None, - yhoverformat=None, - zorder=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "FigureWidget": + + alignmentgroup=alignmentgroup, + boxmean=boxmean, + boxpoints=boxpoints, + customdata=customdata, + customdatasrc=customdatasrc, + dx=dx, + dy=dy, + fillcolor=fillcolor, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hoveron=hoveron, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + jitter=jitter, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + lowerfence=lowerfence, + lowerfencesrc=lowerfencesrc, + marker=marker, + mean=mean, + meansrc=meansrc, + median=median, + mediansrc=mediansrc, + meta=meta, + metasrc=metasrc, + name=name, + notched=notched, + notchspan=notchspan, + notchspansrc=notchspansrc, + notchwidth=notchwidth, + offsetgroup=offsetgroup, + opacity=opacity, + orientation=orientation, + pointpos=pointpos, + q1=q1, + q1src=q1src, + q3=q3, + q3src=q3src, + quartilemethod=quartilemethod, + sd=sd, + sdmultiple=sdmultiple, + sdsrc=sdsrc, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + showwhiskers=showwhiskers, + sizemode=sizemode, + stream=stream, + text=text, + textsrc=textsrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + upperfence=upperfence, + upperfencesrc=upperfencesrc, + visible=visible, + whiskerwidth=whiskerwidth, + width=width, + x=x, + x0=x0, + xaxis=xaxis, + xcalendar=xcalendar, + xhoverformat=xhoverformat, + xperiod=xperiod, + xperiod0=xperiod0, + xperiodalignment=xperiodalignment, + xsrc=xsrc, + y=y, + y0=y0, + yaxis=yaxis, + ycalendar=ycalendar, + yhoverformat=yhoverformat, + yperiod=yperiod, + yperiod0=yperiod0, + yperiodalignment=yperiodalignment, + ysrc=ysrc, + zorder=zorder, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_candlestick(self, + close=None, + closesrc=None, + customdata=None, + customdatasrc=None, + decreasing=None, + high=None, + highsrc=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + increasing=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + low=None, + lowsrc=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + open=None, + opensrc=None, + selectedpoints=None, + showlegend=None, + stream=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + visible=None, + whiskerwidth=None, + x=None, + xaxis=None, + xcalendar=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + yaxis=None, + yhoverformat=None, + zorder=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'FigureWidget': """ Add a new Candlestick trace @@ -3146,105 +2497,103 @@ def add_candlestick( FigureWidget """ from plotly.graph_objs import Candlestick - new_trace = Candlestick( - close=close, - closesrc=closesrc, - customdata=customdata, - customdatasrc=customdatasrc, - decreasing=decreasing, - high=high, - highsrc=highsrc, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - increasing=increasing, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - low=low, - lowsrc=lowsrc, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - open=open, - opensrc=opensrc, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - text=text, - textsrc=textsrc, - uid=uid, - uirevision=uirevision, - visible=visible, - whiskerwidth=whiskerwidth, - x=x, - xaxis=xaxis, - xcalendar=xcalendar, - xhoverformat=xhoverformat, - xperiod=xperiod, - xperiod0=xperiod0, - xperiodalignment=xperiodalignment, - xsrc=xsrc, - yaxis=yaxis, - yhoverformat=yhoverformat, - zorder=zorder, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_carpet( - self, - a=None, - a0=None, - aaxis=None, - asrc=None, - b=None, - b0=None, - baxis=None, - bsrc=None, - carpet=None, - cheaterslope=None, - color=None, - customdata=None, - customdatasrc=None, - da=None, - db=None, - font=None, - ids=None, - idssrc=None, - legend=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - stream=None, - uid=None, - uirevision=None, - visible=None, - x=None, - xaxis=None, - xsrc=None, - y=None, - yaxis=None, - ysrc=None, - zorder=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "FigureWidget": + + close=close, + closesrc=closesrc, + customdata=customdata, + customdatasrc=customdatasrc, + decreasing=decreasing, + high=high, + highsrc=highsrc, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + increasing=increasing, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + low=low, + lowsrc=lowsrc, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + open=open, + opensrc=opensrc, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + text=text, + textsrc=textsrc, + uid=uid, + uirevision=uirevision, + visible=visible, + whiskerwidth=whiskerwidth, + x=x, + xaxis=xaxis, + xcalendar=xcalendar, + xhoverformat=xhoverformat, + xperiod=xperiod, + xperiod0=xperiod0, + xperiodalignment=xperiodalignment, + xsrc=xsrc, + yaxis=yaxis, + yhoverformat=yhoverformat, + zorder=zorder, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_carpet(self, + a=None, + a0=None, + aaxis=None, + asrc=None, + b=None, + b0=None, + baxis=None, + bsrc=None, + carpet=None, + cheaterslope=None, + color=None, + customdata=None, + customdatasrc=None, + da=None, + db=None, + font=None, + ids=None, + idssrc=None, + legend=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + stream=None, + uid=None, + uirevision=None, + visible=None, + x=None, + xaxis=None, + xsrc=None, + y=None, + yaxis=None, + ysrc=None, + zorder=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'FigureWidget': """ Add a new Carpet trace @@ -3445,103 +2794,101 @@ def add_carpet( FigureWidget """ from plotly.graph_objs import Carpet - new_trace = Carpet( - a=a, - a0=a0, - aaxis=aaxis, - asrc=asrc, - b=b, - b0=b0, - baxis=baxis, - bsrc=bsrc, - carpet=carpet, - cheaterslope=cheaterslope, - color=color, - customdata=customdata, - customdatasrc=customdatasrc, - da=da, - db=db, - font=font, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - stream=stream, - uid=uid, - uirevision=uirevision, - visible=visible, - x=x, - xaxis=xaxis, - xsrc=xsrc, - y=y, - yaxis=yaxis, - ysrc=ysrc, - zorder=zorder, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_choropleth( - self, - autocolorscale=None, - coloraxis=None, - colorbar=None, - colorscale=None, - customdata=None, - customdatasrc=None, - featureidkey=None, - geo=None, - geojson=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - locationmode=None, - locations=None, - locationssrc=None, - marker=None, - meta=None, - metasrc=None, - name=None, - reversescale=None, - selected=None, - selectedpoints=None, - showlegend=None, - showscale=None, - stream=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - z=None, - zauto=None, - zmax=None, - zmid=None, - zmin=None, - zsrc=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + a=a, + a0=a0, + aaxis=aaxis, + asrc=asrc, + b=b, + b0=b0, + baxis=baxis, + bsrc=bsrc, + carpet=carpet, + cheaterslope=cheaterslope, + color=color, + customdata=customdata, + customdatasrc=customdatasrc, + da=da, + db=db, + font=font, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + stream=stream, + uid=uid, + uirevision=uirevision, + visible=visible, + x=x, + xaxis=xaxis, + xsrc=xsrc, + y=y, + yaxis=yaxis, + ysrc=ysrc, + zorder=zorder, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_choropleth(self, + autocolorscale=None, + coloraxis=None, + colorbar=None, + colorscale=None, + customdata=None, + customdatasrc=None, + featureidkey=None, + geo=None, + geojson=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + locationmode=None, + locations=None, + locationssrc=None, + marker=None, + meta=None, + metasrc=None, + name=None, + reversescale=None, + selected=None, + selectedpoints=None, + showlegend=None, + showscale=None, + stream=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + z=None, + zauto=None, + zmax=None, + zmid=None, + zmin=None, + zsrc=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Choropleth trace @@ -3819,114 +3166,112 @@ def add_choropleth( FigureWidget """ from plotly.graph_objs import Choropleth - new_trace = Choropleth( - autocolorscale=autocolorscale, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - customdata=customdata, - customdatasrc=customdatasrc, - featureidkey=featureidkey, - geo=geo, - geojson=geojson, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - locationmode=locationmode, - locations=locations, - locationssrc=locationssrc, - marker=marker, - meta=meta, - metasrc=metasrc, - name=name, - reversescale=reversescale, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - showscale=showscale, - stream=stream, - text=text, - textsrc=textsrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - z=z, - zauto=zauto, - zmax=zmax, - zmid=zmid, - zmin=zmin, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_choroplethmap( - self, - autocolorscale=None, - below=None, - coloraxis=None, - colorbar=None, - colorscale=None, - customdata=None, - customdatasrc=None, - featureidkey=None, - geojson=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - locations=None, - locationssrc=None, - marker=None, - meta=None, - metasrc=None, - name=None, - reversescale=None, - selected=None, - selectedpoints=None, - showlegend=None, - showscale=None, - stream=None, - subplot=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - z=None, - zauto=None, - zmax=None, - zmid=None, - zmin=None, - zsrc=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + autocolorscale=autocolorscale, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + customdata=customdata, + customdatasrc=customdatasrc, + featureidkey=featureidkey, + geo=geo, + geojson=geojson, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + locationmode=locationmode, + locations=locations, + locationssrc=locationssrc, + marker=marker, + meta=meta, + metasrc=metasrc, + name=name, + reversescale=reversescale, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + showscale=showscale, + stream=stream, + text=text, + textsrc=textsrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + z=z, + zauto=zauto, + zmax=zmax, + zmid=zmid, + zmin=zmin, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_choroplethmap(self, + autocolorscale=None, + below=None, + coloraxis=None, + colorbar=None, + colorscale=None, + customdata=None, + customdatasrc=None, + featureidkey=None, + geojson=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + locations=None, + locationssrc=None, + marker=None, + meta=None, + metasrc=None, + name=None, + reversescale=None, + selected=None, + selectedpoints=None, + showlegend=None, + showscale=None, + stream=None, + subplot=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + z=None, + zauto=None, + zmax=None, + zmid=None, + zmin=None, + zsrc=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Choroplethmap trace @@ -4202,114 +3547,112 @@ def add_choroplethmap( FigureWidget """ from plotly.graph_objs import Choroplethmap - new_trace = Choroplethmap( - autocolorscale=autocolorscale, - below=below, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - customdata=customdata, - customdatasrc=customdatasrc, - featureidkey=featureidkey, - geojson=geojson, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - locations=locations, - locationssrc=locationssrc, - marker=marker, - meta=meta, - metasrc=metasrc, - name=name, - reversescale=reversescale, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - showscale=showscale, - stream=stream, - subplot=subplot, - text=text, - textsrc=textsrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - z=z, - zauto=zauto, - zmax=zmax, - zmid=zmid, - zmin=zmin, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_choroplethmapbox( - self, - autocolorscale=None, - below=None, - coloraxis=None, - colorbar=None, - colorscale=None, - customdata=None, - customdatasrc=None, - featureidkey=None, - geojson=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - locations=None, - locationssrc=None, - marker=None, - meta=None, - metasrc=None, - name=None, - reversescale=None, - selected=None, - selectedpoints=None, - showlegend=None, - showscale=None, - stream=None, - subplot=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - z=None, - zauto=None, - zmax=None, - zmid=None, - zmin=None, - zsrc=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + autocolorscale=autocolorscale, + below=below, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + customdata=customdata, + customdatasrc=customdatasrc, + featureidkey=featureidkey, + geojson=geojson, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + locations=locations, + locationssrc=locationssrc, + marker=marker, + meta=meta, + metasrc=metasrc, + name=name, + reversescale=reversescale, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + showscale=showscale, + stream=stream, + subplot=subplot, + text=text, + textsrc=textsrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + z=z, + zauto=zauto, + zmax=zmax, + zmid=zmid, + zmin=zmin, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_choroplethmapbox(self, + autocolorscale=None, + below=None, + coloraxis=None, + colorbar=None, + colorscale=None, + customdata=None, + customdatasrc=None, + featureidkey=None, + geojson=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + locations=None, + locationssrc=None, + marker=None, + meta=None, + metasrc=None, + name=None, + reversescale=None, + selected=None, + selectedpoints=None, + showlegend=None, + showscale=None, + stream=None, + subplot=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + z=None, + zauto=None, + zmax=None, + zmid=None, + zmin=None, + zsrc=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Choroplethmapbox trace @@ -4594,127 +3937,125 @@ def add_choroplethmapbox( FigureWidget """ from plotly.graph_objs import Choroplethmapbox - new_trace = Choroplethmapbox( - autocolorscale=autocolorscale, - below=below, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - customdata=customdata, - customdatasrc=customdatasrc, - featureidkey=featureidkey, - geojson=geojson, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - locations=locations, - locationssrc=locationssrc, - marker=marker, - meta=meta, - metasrc=metasrc, - name=name, - reversescale=reversescale, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - showscale=showscale, - stream=stream, - subplot=subplot, - text=text, - textsrc=textsrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - z=z, - zauto=zauto, - zmax=zmax, - zmid=zmid, - zmin=zmin, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_cone( - self, - anchor=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - coloraxis=None, - colorbar=None, - colorscale=None, - customdata=None, - customdatasrc=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - lighting=None, - lightposition=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - reversescale=None, - scene=None, - showlegend=None, - showscale=None, - sizemode=None, - sizeref=None, - stream=None, - text=None, - textsrc=None, - u=None, - uhoverformat=None, - uid=None, - uirevision=None, - usrc=None, - v=None, - vhoverformat=None, - visible=None, - vsrc=None, - w=None, - whoverformat=None, - wsrc=None, - x=None, - xhoverformat=None, - xsrc=None, - y=None, - yhoverformat=None, - ysrc=None, - z=None, - zhoverformat=None, - zsrc=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + autocolorscale=autocolorscale, + below=below, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + customdata=customdata, + customdatasrc=customdatasrc, + featureidkey=featureidkey, + geojson=geojson, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + locations=locations, + locationssrc=locationssrc, + marker=marker, + meta=meta, + metasrc=metasrc, + name=name, + reversescale=reversescale, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + showscale=showscale, + stream=stream, + subplot=subplot, + text=text, + textsrc=textsrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + z=z, + zauto=zauto, + zmax=zmax, + zmid=zmid, + zmin=zmin, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_cone(self, + anchor=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + coloraxis=None, + colorbar=None, + colorscale=None, + customdata=None, + customdatasrc=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + lighting=None, + lightposition=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + reversescale=None, + scene=None, + showlegend=None, + showscale=None, + sizemode=None, + sizeref=None, + stream=None, + text=None, + textsrc=None, + u=None, + uhoverformat=None, + uid=None, + uirevision=None, + usrc=None, + v=None, + vhoverformat=None, + visible=None, + vsrc=None, + w=None, + whoverformat=None, + wsrc=None, + x=None, + xhoverformat=None, + xsrc=None, + y=None, + yhoverformat=None, + ysrc=None, + z=None, + zhoverformat=None, + zsrc=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Cone trace @@ -5078,153 +4419,151 @@ def add_cone( FigureWidget """ from plotly.graph_objs import Cone - new_trace = Cone( - anchor=anchor, - autocolorscale=autocolorscale, - cauto=cauto, - cmax=cmax, - cmid=cmid, - cmin=cmin, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - customdata=customdata, - customdatasrc=customdatasrc, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - lighting=lighting, - lightposition=lightposition, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - reversescale=reversescale, - scene=scene, - showlegend=showlegend, - showscale=showscale, - sizemode=sizemode, - sizeref=sizeref, - stream=stream, - text=text, - textsrc=textsrc, - u=u, - uhoverformat=uhoverformat, - uid=uid, - uirevision=uirevision, - usrc=usrc, - v=v, - vhoverformat=vhoverformat, - visible=visible, - vsrc=vsrc, - w=w, - whoverformat=whoverformat, - wsrc=wsrc, - x=x, - xhoverformat=xhoverformat, - xsrc=xsrc, - y=y, - yhoverformat=yhoverformat, - ysrc=ysrc, - z=z, - zhoverformat=zhoverformat, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_contour( - self, - autocolorscale=None, - autocontour=None, - coloraxis=None, - colorbar=None, - colorscale=None, - connectgaps=None, - contours=None, - customdata=None, - customdatasrc=None, - dx=None, - dy=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hoverongaps=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - meta=None, - metasrc=None, - name=None, - ncontours=None, - opacity=None, - reversescale=None, - showlegend=None, - showscale=None, - stream=None, - text=None, - textfont=None, - textsrc=None, - texttemplate=None, - transpose=None, - uid=None, - uirevision=None, - visible=None, - x=None, - x0=None, - xaxis=None, - xcalendar=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - xtype=None, - y=None, - y0=None, - yaxis=None, - ycalendar=None, - yhoverformat=None, - yperiod=None, - yperiod0=None, - yperiodalignment=None, - ysrc=None, - ytype=None, - z=None, - zauto=None, - zhoverformat=None, - zmax=None, - zmid=None, - zmin=None, - zorder=None, - zsrc=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "FigureWidget": + + anchor=anchor, + autocolorscale=autocolorscale, + cauto=cauto, + cmax=cmax, + cmid=cmid, + cmin=cmin, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + customdata=customdata, + customdatasrc=customdatasrc, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + lighting=lighting, + lightposition=lightposition, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + reversescale=reversescale, + scene=scene, + showlegend=showlegend, + showscale=showscale, + sizemode=sizemode, + sizeref=sizeref, + stream=stream, + text=text, + textsrc=textsrc, + u=u, + uhoverformat=uhoverformat, + uid=uid, + uirevision=uirevision, + usrc=usrc, + v=v, + vhoverformat=vhoverformat, + visible=visible, + vsrc=vsrc, + w=w, + whoverformat=whoverformat, + wsrc=wsrc, + x=x, + xhoverformat=xhoverformat, + xsrc=xsrc, + y=y, + yhoverformat=yhoverformat, + ysrc=ysrc, + z=z, + zhoverformat=zhoverformat, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_contour(self, + autocolorscale=None, + autocontour=None, + coloraxis=None, + colorbar=None, + colorscale=None, + connectgaps=None, + contours=None, + customdata=None, + customdatasrc=None, + dx=None, + dy=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hoverongaps=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + meta=None, + metasrc=None, + name=None, + ncontours=None, + opacity=None, + reversescale=None, + showlegend=None, + showscale=None, + stream=None, + text=None, + textfont=None, + textsrc=None, + texttemplate=None, + transpose=None, + uid=None, + uirevision=None, + visible=None, + x=None, + x0=None, + xaxis=None, + xcalendar=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + xtype=None, + y=None, + y0=None, + yaxis=None, + ycalendar=None, + yhoverformat=None, + yperiod=None, + yperiod0=None, + yperiodalignment=None, + ysrc=None, + ytype=None, + z=None, + zauto=None, + zhoverformat=None, + zmax=None, + zmid=None, + zmin=None, + zorder=None, + zsrc=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'FigureWidget': """ Add a new Contour trace @@ -5642,146 +4981,144 @@ def add_contour( FigureWidget """ from plotly.graph_objs import Contour - new_trace = Contour( - autocolorscale=autocolorscale, - autocontour=autocontour, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - connectgaps=connectgaps, - contours=contours, - customdata=customdata, - customdatasrc=customdatasrc, - dx=dx, - dy=dy, - fillcolor=fillcolor, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hoverongaps=hoverongaps, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - meta=meta, - metasrc=metasrc, - name=name, - ncontours=ncontours, - opacity=opacity, - reversescale=reversescale, - showlegend=showlegend, - showscale=showscale, - stream=stream, - text=text, - textfont=textfont, - textsrc=textsrc, - texttemplate=texttemplate, - transpose=transpose, - uid=uid, - uirevision=uirevision, - visible=visible, - x=x, - x0=x0, - xaxis=xaxis, - xcalendar=xcalendar, - xhoverformat=xhoverformat, - xperiod=xperiod, - xperiod0=xperiod0, - xperiodalignment=xperiodalignment, - xsrc=xsrc, - xtype=xtype, - y=y, - y0=y0, - yaxis=yaxis, - ycalendar=ycalendar, - yhoverformat=yhoverformat, - yperiod=yperiod, - yperiod0=yperiod0, - yperiodalignment=yperiodalignment, - ysrc=ysrc, - ytype=ytype, - z=z, - zauto=zauto, - zhoverformat=zhoverformat, - zmax=zmax, - zmid=zmid, - zmin=zmin, - zorder=zorder, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_contourcarpet( - self, - a=None, - a0=None, - asrc=None, - atype=None, - autocolorscale=None, - autocontour=None, - b=None, - b0=None, - bsrc=None, - btype=None, - carpet=None, - coloraxis=None, - colorbar=None, - colorscale=None, - contours=None, - customdata=None, - customdatasrc=None, - da=None, - db=None, - fillcolor=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - meta=None, - metasrc=None, - name=None, - ncontours=None, - opacity=None, - reversescale=None, - showlegend=None, - showscale=None, - stream=None, - text=None, - textsrc=None, - transpose=None, - uid=None, - uirevision=None, - visible=None, - xaxis=None, - yaxis=None, - z=None, - zauto=None, - zmax=None, - zmid=None, - zmin=None, - zorder=None, - zsrc=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "FigureWidget": + + autocolorscale=autocolorscale, + autocontour=autocontour, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + connectgaps=connectgaps, + contours=contours, + customdata=customdata, + customdatasrc=customdatasrc, + dx=dx, + dy=dy, + fillcolor=fillcolor, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hoverongaps=hoverongaps, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + meta=meta, + metasrc=metasrc, + name=name, + ncontours=ncontours, + opacity=opacity, + reversescale=reversescale, + showlegend=showlegend, + showscale=showscale, + stream=stream, + text=text, + textfont=textfont, + textsrc=textsrc, + texttemplate=texttemplate, + transpose=transpose, + uid=uid, + uirevision=uirevision, + visible=visible, + x=x, + x0=x0, + xaxis=xaxis, + xcalendar=xcalendar, + xhoverformat=xhoverformat, + xperiod=xperiod, + xperiod0=xperiod0, + xperiodalignment=xperiodalignment, + xsrc=xsrc, + xtype=xtype, + y=y, + y0=y0, + yaxis=yaxis, + ycalendar=ycalendar, + yhoverformat=yhoverformat, + yperiod=yperiod, + yperiod0=yperiod0, + yperiodalignment=yperiodalignment, + ysrc=ysrc, + ytype=ytype, + z=z, + zauto=zauto, + zhoverformat=zhoverformat, + zmax=zmax, + zmid=zmid, + zmin=zmin, + zorder=zorder, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_contourcarpet(self, + a=None, + a0=None, + asrc=None, + atype=None, + autocolorscale=None, + autocontour=None, + b=None, + b0=None, + bsrc=None, + btype=None, + carpet=None, + coloraxis=None, + colorbar=None, + colorscale=None, + contours=None, + customdata=None, + customdatasrc=None, + da=None, + db=None, + fillcolor=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + meta=None, + metasrc=None, + name=None, + ncontours=None, + opacity=None, + reversescale=None, + showlegend=None, + showscale=None, + stream=None, + text=None, + textsrc=None, + transpose=None, + uid=None, + uirevision=None, + visible=None, + xaxis=None, + yaxis=None, + z=None, + zauto=None, + zmax=None, + zmid=None, + zmin=None, + zorder=None, + zsrc=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'FigureWidget': """ Add a new Contourcarpet trace @@ -6058,119 +5395,117 @@ def add_contourcarpet( FigureWidget """ from plotly.graph_objs import Contourcarpet - new_trace = Contourcarpet( - a=a, - a0=a0, - asrc=asrc, - atype=atype, - autocolorscale=autocolorscale, - autocontour=autocontour, - b=b, - b0=b0, - bsrc=bsrc, - btype=btype, - carpet=carpet, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - contours=contours, - customdata=customdata, - customdatasrc=customdatasrc, - da=da, - db=db, - fillcolor=fillcolor, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - meta=meta, - metasrc=metasrc, - name=name, - ncontours=ncontours, - opacity=opacity, - reversescale=reversescale, - showlegend=showlegend, - showscale=showscale, - stream=stream, - text=text, - textsrc=textsrc, - transpose=transpose, - uid=uid, - uirevision=uirevision, - visible=visible, - xaxis=xaxis, - yaxis=yaxis, - z=z, - zauto=zauto, - zmax=zmax, - zmid=zmid, - zmin=zmin, - zorder=zorder, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_densitymap( - self, - autocolorscale=None, - below=None, - coloraxis=None, - colorbar=None, - colorscale=None, - customdata=None, - customdatasrc=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - lat=None, - latsrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - lon=None, - lonsrc=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - radius=None, - radiussrc=None, - reversescale=None, - showlegend=None, - showscale=None, - stream=None, - subplot=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - visible=None, - z=None, - zauto=None, - zmax=None, - zmid=None, - zmin=None, - zsrc=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + a=a, + a0=a0, + asrc=asrc, + atype=atype, + autocolorscale=autocolorscale, + autocontour=autocontour, + b=b, + b0=b0, + bsrc=bsrc, + btype=btype, + carpet=carpet, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + contours=contours, + customdata=customdata, + customdatasrc=customdatasrc, + da=da, + db=db, + fillcolor=fillcolor, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + meta=meta, + metasrc=metasrc, + name=name, + ncontours=ncontours, + opacity=opacity, + reversescale=reversescale, + showlegend=showlegend, + showscale=showscale, + stream=stream, + text=text, + textsrc=textsrc, + transpose=transpose, + uid=uid, + uirevision=uirevision, + visible=visible, + xaxis=xaxis, + yaxis=yaxis, + z=z, + zauto=zauto, + zmax=zmax, + zmid=zmid, + zmin=zmin, + zorder=zorder, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_densitymap(self, + autocolorscale=None, + below=None, + coloraxis=None, + colorbar=None, + colorscale=None, + customdata=None, + customdatasrc=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + lat=None, + latsrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + lon=None, + lonsrc=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + radius=None, + radiussrc=None, + reversescale=None, + showlegend=None, + showscale=None, + stream=None, + subplot=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + visible=None, + z=None, + zauto=None, + zmax=None, + zmid=None, + zmin=None, + zsrc=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Densitymap trace @@ -6444,112 +5779,110 @@ def add_densitymap( FigureWidget """ from plotly.graph_objs import Densitymap - new_trace = Densitymap( - autocolorscale=autocolorscale, - below=below, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - customdata=customdata, - customdatasrc=customdatasrc, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - lat=lat, - latsrc=latsrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - lon=lon, - lonsrc=lonsrc, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - radius=radius, - radiussrc=radiussrc, - reversescale=reversescale, - showlegend=showlegend, - showscale=showscale, - stream=stream, - subplot=subplot, - text=text, - textsrc=textsrc, - uid=uid, - uirevision=uirevision, - visible=visible, - z=z, - zauto=zauto, - zmax=zmax, - zmid=zmid, - zmin=zmin, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_densitymapbox( - self, - autocolorscale=None, - below=None, - coloraxis=None, - colorbar=None, - colorscale=None, - customdata=None, - customdatasrc=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - lat=None, - latsrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - lon=None, - lonsrc=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - radius=None, - radiussrc=None, - reversescale=None, - showlegend=None, - showscale=None, - stream=None, - subplot=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - visible=None, - z=None, - zauto=None, - zmax=None, - zmid=None, - zmin=None, - zsrc=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + autocolorscale=autocolorscale, + below=below, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + customdata=customdata, + customdatasrc=customdatasrc, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + lat=lat, + latsrc=latsrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + lon=lon, + lonsrc=lonsrc, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + radius=radius, + radiussrc=radiussrc, + reversescale=reversescale, + showlegend=showlegend, + showscale=showscale, + stream=stream, + subplot=subplot, + text=text, + textsrc=textsrc, + uid=uid, + uirevision=uirevision, + visible=visible, + z=z, + zauto=zauto, + zmax=zmax, + zmid=zmid, + zmin=zmin, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_densitymapbox(self, + autocolorscale=None, + below=None, + coloraxis=None, + colorbar=None, + colorscale=None, + customdata=None, + customdatasrc=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + lat=None, + latsrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + lon=None, + lonsrc=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + radius=None, + radiussrc=None, + reversescale=None, + showlegend=None, + showscale=None, + stream=None, + subplot=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + visible=None, + z=None, + zauto=None, + zmax=None, + zmid=None, + zmin=None, + zsrc=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Densitymapbox trace @@ -6832,132 +6165,130 @@ def add_densitymapbox( FigureWidget """ from plotly.graph_objs import Densitymapbox - new_trace = Densitymapbox( - autocolorscale=autocolorscale, - below=below, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - customdata=customdata, - customdatasrc=customdatasrc, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - lat=lat, - latsrc=latsrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - lon=lon, - lonsrc=lonsrc, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - radius=radius, - radiussrc=radiussrc, - reversescale=reversescale, - showlegend=showlegend, - showscale=showscale, - stream=stream, - subplot=subplot, - text=text, - textsrc=textsrc, - uid=uid, - uirevision=uirevision, - visible=visible, - z=z, - zauto=zauto, - zmax=zmax, - zmid=zmid, - zmin=zmin, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_funnel( - self, - alignmentgroup=None, - cliponaxis=None, - connector=None, - constraintext=None, - customdata=None, - customdatasrc=None, - dx=None, - dy=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - insidetextanchor=None, - insidetextfont=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - marker=None, - meta=None, - metasrc=None, - name=None, - offset=None, - offsetgroup=None, - opacity=None, - orientation=None, - outsidetextfont=None, - selectedpoints=None, - showlegend=None, - stream=None, - text=None, - textangle=None, - textfont=None, - textinfo=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - visible=None, - width=None, - x=None, - x0=None, - xaxis=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - y=None, - y0=None, - yaxis=None, - yhoverformat=None, - yperiod=None, - yperiod0=None, - yperiodalignment=None, - ysrc=None, - zorder=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "FigureWidget": + + autocolorscale=autocolorscale, + below=below, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + customdata=customdata, + customdatasrc=customdatasrc, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + lat=lat, + latsrc=latsrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + lon=lon, + lonsrc=lonsrc, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + radius=radius, + radiussrc=radiussrc, + reversescale=reversescale, + showlegend=showlegend, + showscale=showscale, + stream=stream, + subplot=subplot, + text=text, + textsrc=textsrc, + uid=uid, + uirevision=uirevision, + visible=visible, + z=z, + zauto=zauto, + zmax=zmax, + zmid=zmid, + zmin=zmin, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_funnel(self, + alignmentgroup=None, + cliponaxis=None, + connector=None, + constraintext=None, + customdata=None, + customdatasrc=None, + dx=None, + dy=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + insidetextanchor=None, + insidetextfont=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + marker=None, + meta=None, + metasrc=None, + name=None, + offset=None, + offsetgroup=None, + opacity=None, + orientation=None, + outsidetextfont=None, + selectedpoints=None, + showlegend=None, + stream=None, + text=None, + textangle=None, + textfont=None, + textinfo=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + visible=None, + width=None, + x=None, + x0=None, + xaxis=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + y=None, + y0=None, + yaxis=None, + yhoverformat=None, + yperiod=None, + yperiod0=None, + yperiodalignment=None, + ysrc=None, + zorder=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'FigureWidget': """ Add a new Funnel trace @@ -7350,130 +6681,128 @@ def add_funnel( FigureWidget """ from plotly.graph_objs import Funnel - new_trace = Funnel( - alignmentgroup=alignmentgroup, - cliponaxis=cliponaxis, - connector=connector, - constraintext=constraintext, - customdata=customdata, - customdatasrc=customdatasrc, - dx=dx, - dy=dy, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - insidetextanchor=insidetextanchor, - insidetextfont=insidetextfont, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - marker=marker, - meta=meta, - metasrc=metasrc, - name=name, - offset=offset, - offsetgroup=offsetgroup, - opacity=opacity, - orientation=orientation, - outsidetextfont=outsidetextfont, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - text=text, - textangle=textangle, - textfont=textfont, - textinfo=textinfo, - textposition=textposition, - textpositionsrc=textpositionsrc, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - uid=uid, - uirevision=uirevision, - visible=visible, - width=width, - x=x, - x0=x0, - xaxis=xaxis, - xhoverformat=xhoverformat, - xperiod=xperiod, - xperiod0=xperiod0, - xperiodalignment=xperiodalignment, - xsrc=xsrc, - y=y, - y0=y0, - yaxis=yaxis, - yhoverformat=yhoverformat, - yperiod=yperiod, - yperiod0=yperiod0, - yperiodalignment=yperiodalignment, - ysrc=ysrc, - zorder=zorder, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_funnelarea( - self, - aspectratio=None, - baseratio=None, - customdata=None, - customdatasrc=None, - dlabel=None, - domain=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - insidetextfont=None, - label0=None, - labels=None, - labelssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - marker=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - scalegroup=None, - showlegend=None, - stream=None, - text=None, - textfont=None, - textinfo=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - title=None, - uid=None, - uirevision=None, - values=None, - valuessrc=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + alignmentgroup=alignmentgroup, + cliponaxis=cliponaxis, + connector=connector, + constraintext=constraintext, + customdata=customdata, + customdatasrc=customdatasrc, + dx=dx, + dy=dy, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + insidetextanchor=insidetextanchor, + insidetextfont=insidetextfont, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + marker=marker, + meta=meta, + metasrc=metasrc, + name=name, + offset=offset, + offsetgroup=offsetgroup, + opacity=opacity, + orientation=orientation, + outsidetextfont=outsidetextfont, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + text=text, + textangle=textangle, + textfont=textfont, + textinfo=textinfo, + textposition=textposition, + textpositionsrc=textpositionsrc, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + uid=uid, + uirevision=uirevision, + visible=visible, + width=width, + x=x, + x0=x0, + xaxis=xaxis, + xhoverformat=xhoverformat, + xperiod=xperiod, + xperiod0=xperiod0, + xperiodalignment=xperiodalignment, + xsrc=xsrc, + y=y, + y0=y0, + yaxis=yaxis, + yhoverformat=yhoverformat, + yperiod=yperiod, + yperiod0=yperiod0, + yperiodalignment=yperiodalignment, + ysrc=ysrc, + zorder=zorder, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_funnelarea(self, + aspectratio=None, + baseratio=None, + customdata=None, + customdatasrc=None, + dlabel=None, + domain=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + insidetextfont=None, + label0=None, + labels=None, + labelssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + marker=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + scalegroup=None, + showlegend=None, + stream=None, + text=None, + textfont=None, + textinfo=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + title=None, + uid=None, + uirevision=None, + values=None, + valuessrc=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Funnelarea trace @@ -7732,136 +7061,134 @@ def add_funnelarea( FigureWidget """ from plotly.graph_objs import Funnelarea - new_trace = Funnelarea( - aspectratio=aspectratio, - baseratio=baseratio, - customdata=customdata, - customdatasrc=customdatasrc, - dlabel=dlabel, - domain=domain, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - insidetextfont=insidetextfont, - label0=label0, - labels=labels, - labelssrc=labelssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - marker=marker, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - scalegroup=scalegroup, - showlegend=showlegend, - stream=stream, - text=text, - textfont=textfont, - textinfo=textinfo, - textposition=textposition, - textpositionsrc=textpositionsrc, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - title=title, - uid=uid, - uirevision=uirevision, - values=values, - valuessrc=valuessrc, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_heatmap( - self, - autocolorscale=None, - coloraxis=None, - colorbar=None, - colorscale=None, - connectgaps=None, - customdata=None, - customdatasrc=None, - dx=None, - dy=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hoverongaps=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - reversescale=None, - showlegend=None, - showscale=None, - stream=None, - text=None, - textfont=None, - textsrc=None, - texttemplate=None, - transpose=None, - uid=None, - uirevision=None, - visible=None, - x=None, - x0=None, - xaxis=None, - xcalendar=None, - xgap=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - xtype=None, - y=None, - y0=None, - yaxis=None, - ycalendar=None, - ygap=None, - yhoverformat=None, - yperiod=None, - yperiod0=None, - yperiodalignment=None, - ysrc=None, - ytype=None, - z=None, - zauto=None, - zhoverformat=None, - zmax=None, - zmid=None, - zmin=None, - zorder=None, - zsmooth=None, - zsrc=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "FigureWidget": + + aspectratio=aspectratio, + baseratio=baseratio, + customdata=customdata, + customdatasrc=customdatasrc, + dlabel=dlabel, + domain=domain, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + insidetextfont=insidetextfont, + label0=label0, + labels=labels, + labelssrc=labelssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + marker=marker, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + scalegroup=scalegroup, + showlegend=showlegend, + stream=stream, + text=text, + textfont=textfont, + textinfo=textinfo, + textposition=textposition, + textpositionsrc=textpositionsrc, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + title=title, + uid=uid, + uirevision=uirevision, + values=values, + valuessrc=valuessrc, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_heatmap(self, + autocolorscale=None, + coloraxis=None, + colorbar=None, + colorscale=None, + connectgaps=None, + customdata=None, + customdatasrc=None, + dx=None, + dy=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hoverongaps=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + reversescale=None, + showlegend=None, + showscale=None, + stream=None, + text=None, + textfont=None, + textsrc=None, + texttemplate=None, + transpose=None, + uid=None, + uirevision=None, + visible=None, + x=None, + x0=None, + xaxis=None, + xcalendar=None, + xgap=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + xtype=None, + y=None, + y0=None, + yaxis=None, + ycalendar=None, + ygap=None, + yhoverformat=None, + yperiod=None, + yperiod0=None, + yperiodalignment=None, + ysrc=None, + ytype=None, + z=None, + zauto=None, + zhoverformat=None, + zmax=None, + zmid=None, + zmin=None, + zorder=None, + zsmooth=None, + zsrc=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'FigureWidget': """ Add a new Heatmap trace @@ -8271,156 +7598,154 @@ def add_heatmap( FigureWidget """ from plotly.graph_objs import Heatmap - new_trace = Heatmap( - autocolorscale=autocolorscale, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - connectgaps=connectgaps, - customdata=customdata, - customdatasrc=customdatasrc, - dx=dx, - dy=dy, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hoverongaps=hoverongaps, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - reversescale=reversescale, - showlegend=showlegend, - showscale=showscale, - stream=stream, - text=text, - textfont=textfont, - textsrc=textsrc, - texttemplate=texttemplate, - transpose=transpose, - uid=uid, - uirevision=uirevision, - visible=visible, - x=x, - x0=x0, - xaxis=xaxis, - xcalendar=xcalendar, - xgap=xgap, - xhoverformat=xhoverformat, - xperiod=xperiod, - xperiod0=xperiod0, - xperiodalignment=xperiodalignment, - xsrc=xsrc, - xtype=xtype, - y=y, - y0=y0, - yaxis=yaxis, - ycalendar=ycalendar, - ygap=ygap, - yhoverformat=yhoverformat, - yperiod=yperiod, - yperiod0=yperiod0, - yperiodalignment=yperiodalignment, - ysrc=ysrc, - ytype=ytype, - z=z, - zauto=zauto, - zhoverformat=zhoverformat, - zmax=zmax, - zmid=zmid, - zmin=zmin, - zorder=zorder, - zsmooth=zsmooth, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_histogram( - self, - alignmentgroup=None, - autobinx=None, - autobiny=None, - bingroup=None, - cliponaxis=None, - constraintext=None, - cumulative=None, - customdata=None, - customdatasrc=None, - error_x=None, - error_y=None, - histfunc=None, - histnorm=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - insidetextanchor=None, - insidetextfont=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - marker=None, - meta=None, - metasrc=None, - name=None, - nbinsx=None, - nbinsy=None, - offsetgroup=None, - opacity=None, - orientation=None, - outsidetextfont=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - text=None, - textangle=None, - textfont=None, - textposition=None, - textsrc=None, - texttemplate=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - x=None, - xaxis=None, - xbins=None, - xcalendar=None, - xhoverformat=None, - xsrc=None, - y=None, - yaxis=None, - ybins=None, - ycalendar=None, - yhoverformat=None, - ysrc=None, - zorder=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "FigureWidget": + + autocolorscale=autocolorscale, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + connectgaps=connectgaps, + customdata=customdata, + customdatasrc=customdatasrc, + dx=dx, + dy=dy, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hoverongaps=hoverongaps, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + reversescale=reversescale, + showlegend=showlegend, + showscale=showscale, + stream=stream, + text=text, + textfont=textfont, + textsrc=textsrc, + texttemplate=texttemplate, + transpose=transpose, + uid=uid, + uirevision=uirevision, + visible=visible, + x=x, + x0=x0, + xaxis=xaxis, + xcalendar=xcalendar, + xgap=xgap, + xhoverformat=xhoverformat, + xperiod=xperiod, + xperiod0=xperiod0, + xperiodalignment=xperiodalignment, + xsrc=xsrc, + xtype=xtype, + y=y, + y0=y0, + yaxis=yaxis, + ycalendar=ycalendar, + ygap=ygap, + yhoverformat=yhoverformat, + yperiod=yperiod, + yperiod0=yperiod0, + yperiodalignment=yperiodalignment, + ysrc=ysrc, + ytype=ytype, + z=z, + zauto=zauto, + zhoverformat=zhoverformat, + zmax=zmax, + zmid=zmid, + zmin=zmin, + zorder=zorder, + zsmooth=zsmooth, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_histogram(self, + alignmentgroup=None, + autobinx=None, + autobiny=None, + bingroup=None, + cliponaxis=None, + constraintext=None, + cumulative=None, + customdata=None, + customdatasrc=None, + error_x=None, + error_y=None, + histfunc=None, + histnorm=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + insidetextanchor=None, + insidetextfont=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + marker=None, + meta=None, + metasrc=None, + name=None, + nbinsx=None, + nbinsy=None, + offsetgroup=None, + opacity=None, + orientation=None, + outsidetextfont=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + text=None, + textangle=None, + textfont=None, + textposition=None, + textsrc=None, + texttemplate=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + x=None, + xaxis=None, + xbins=None, + xcalendar=None, + xhoverformat=None, + xsrc=None, + y=None, + yaxis=None, + ybins=None, + ycalendar=None, + yhoverformat=None, + ysrc=None, + zorder=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'FigureWidget': """ Add a new Histogram trace @@ -8818,148 +8143,146 @@ def add_histogram( FigureWidget """ from plotly.graph_objs import Histogram - new_trace = Histogram( - alignmentgroup=alignmentgroup, - autobinx=autobinx, - autobiny=autobiny, - bingroup=bingroup, - cliponaxis=cliponaxis, - constraintext=constraintext, - cumulative=cumulative, - customdata=customdata, - customdatasrc=customdatasrc, - error_x=error_x, - error_y=error_y, - histfunc=histfunc, - histnorm=histnorm, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - insidetextanchor=insidetextanchor, - insidetextfont=insidetextfont, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - marker=marker, - meta=meta, - metasrc=metasrc, - name=name, - nbinsx=nbinsx, - nbinsy=nbinsy, - offsetgroup=offsetgroup, - opacity=opacity, - orientation=orientation, - outsidetextfont=outsidetextfont, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - text=text, - textangle=textangle, - textfont=textfont, - textposition=textposition, - textsrc=textsrc, - texttemplate=texttemplate, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - x=x, - xaxis=xaxis, - xbins=xbins, - xcalendar=xcalendar, - xhoverformat=xhoverformat, - xsrc=xsrc, - y=y, - yaxis=yaxis, - ybins=ybins, - ycalendar=ycalendar, - yhoverformat=yhoverformat, - ysrc=ysrc, - zorder=zorder, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_histogram2d( - self, - autobinx=None, - autobiny=None, - autocolorscale=None, - bingroup=None, - coloraxis=None, - colorbar=None, - colorscale=None, - customdata=None, - customdatasrc=None, - histfunc=None, - histnorm=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - marker=None, - meta=None, - metasrc=None, - name=None, - nbinsx=None, - nbinsy=None, - opacity=None, - reversescale=None, - showlegend=None, - showscale=None, - stream=None, - textfont=None, - texttemplate=None, - uid=None, - uirevision=None, - visible=None, - x=None, - xaxis=None, - xbingroup=None, - xbins=None, - xcalendar=None, - xgap=None, - xhoverformat=None, - xsrc=None, - y=None, - yaxis=None, - ybingroup=None, - ybins=None, - ycalendar=None, - ygap=None, - yhoverformat=None, - ysrc=None, - z=None, - zauto=None, - zhoverformat=None, - zmax=None, - zmid=None, - zmin=None, - zsmooth=None, - zsrc=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "FigureWidget": + + alignmentgroup=alignmentgroup, + autobinx=autobinx, + autobiny=autobiny, + bingroup=bingroup, + cliponaxis=cliponaxis, + constraintext=constraintext, + cumulative=cumulative, + customdata=customdata, + customdatasrc=customdatasrc, + error_x=error_x, + error_y=error_y, + histfunc=histfunc, + histnorm=histnorm, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + insidetextanchor=insidetextanchor, + insidetextfont=insidetextfont, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + marker=marker, + meta=meta, + metasrc=metasrc, + name=name, + nbinsx=nbinsx, + nbinsy=nbinsy, + offsetgroup=offsetgroup, + opacity=opacity, + orientation=orientation, + outsidetextfont=outsidetextfont, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + text=text, + textangle=textangle, + textfont=textfont, + textposition=textposition, + textsrc=textsrc, + texttemplate=texttemplate, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + x=x, + xaxis=xaxis, + xbins=xbins, + xcalendar=xcalendar, + xhoverformat=xhoverformat, + xsrc=xsrc, + y=y, + yaxis=yaxis, + ybins=ybins, + ycalendar=ycalendar, + yhoverformat=yhoverformat, + ysrc=ysrc, + zorder=zorder, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_histogram2d(self, + autobinx=None, + autobiny=None, + autocolorscale=None, + bingroup=None, + coloraxis=None, + colorbar=None, + colorscale=None, + customdata=None, + customdatasrc=None, + histfunc=None, + histnorm=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + marker=None, + meta=None, + metasrc=None, + name=None, + nbinsx=None, + nbinsy=None, + opacity=None, + reversescale=None, + showlegend=None, + showscale=None, + stream=None, + textfont=None, + texttemplate=None, + uid=None, + uirevision=None, + visible=None, + x=None, + xaxis=None, + xbingroup=None, + xbins=None, + xcalendar=None, + xgap=None, + xhoverformat=None, + xsrc=None, + y=None, + yaxis=None, + ybingroup=None, + ybins=None, + ycalendar=None, + ygap=None, + yhoverformat=None, + ysrc=None, + z=None, + zauto=None, + zhoverformat=None, + zmax=None, + zmid=None, + zmin=None, + zsmooth=None, + zsrc=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'FigureWidget': """ Add a new Histogram2d trace @@ -9354,146 +8677,144 @@ def add_histogram2d( FigureWidget """ from plotly.graph_objs import Histogram2d - new_trace = Histogram2d( - autobinx=autobinx, - autobiny=autobiny, - autocolorscale=autocolorscale, - bingroup=bingroup, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - customdata=customdata, - customdatasrc=customdatasrc, - histfunc=histfunc, - histnorm=histnorm, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - marker=marker, - meta=meta, - metasrc=metasrc, - name=name, - nbinsx=nbinsx, - nbinsy=nbinsy, - opacity=opacity, - reversescale=reversescale, - showlegend=showlegend, - showscale=showscale, - stream=stream, - textfont=textfont, - texttemplate=texttemplate, - uid=uid, - uirevision=uirevision, - visible=visible, - x=x, - xaxis=xaxis, - xbingroup=xbingroup, - xbins=xbins, - xcalendar=xcalendar, - xgap=xgap, - xhoverformat=xhoverformat, - xsrc=xsrc, - y=y, - yaxis=yaxis, - ybingroup=ybingroup, - ybins=ybins, - ycalendar=ycalendar, - ygap=ygap, - yhoverformat=yhoverformat, - ysrc=ysrc, - z=z, - zauto=zauto, - zhoverformat=zhoverformat, - zmax=zmax, - zmid=zmid, - zmin=zmin, - zsmooth=zsmooth, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_histogram2dcontour( - self, - autobinx=None, - autobiny=None, - autocolorscale=None, - autocontour=None, - bingroup=None, - coloraxis=None, - colorbar=None, - colorscale=None, - contours=None, - customdata=None, - customdatasrc=None, - histfunc=None, - histnorm=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meta=None, - metasrc=None, - name=None, - nbinsx=None, - nbinsy=None, - ncontours=None, - opacity=None, - reversescale=None, - showlegend=None, - showscale=None, - stream=None, - textfont=None, - texttemplate=None, - uid=None, - uirevision=None, - visible=None, - x=None, - xaxis=None, - xbingroup=None, - xbins=None, - xcalendar=None, - xhoverformat=None, - xsrc=None, - y=None, - yaxis=None, - ybingroup=None, - ybins=None, - ycalendar=None, - yhoverformat=None, - ysrc=None, - z=None, - zauto=None, - zhoverformat=None, - zmax=None, - zmid=None, - zmin=None, - zsrc=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "FigureWidget": + + autobinx=autobinx, + autobiny=autobiny, + autocolorscale=autocolorscale, + bingroup=bingroup, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + customdata=customdata, + customdatasrc=customdatasrc, + histfunc=histfunc, + histnorm=histnorm, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + marker=marker, + meta=meta, + metasrc=metasrc, + name=name, + nbinsx=nbinsx, + nbinsy=nbinsy, + opacity=opacity, + reversescale=reversescale, + showlegend=showlegend, + showscale=showscale, + stream=stream, + textfont=textfont, + texttemplate=texttemplate, + uid=uid, + uirevision=uirevision, + visible=visible, + x=x, + xaxis=xaxis, + xbingroup=xbingroup, + xbins=xbins, + xcalendar=xcalendar, + xgap=xgap, + xhoverformat=xhoverformat, + xsrc=xsrc, + y=y, + yaxis=yaxis, + ybingroup=ybingroup, + ybins=ybins, + ycalendar=ycalendar, + ygap=ygap, + yhoverformat=yhoverformat, + ysrc=ysrc, + z=z, + zauto=zauto, + zhoverformat=zhoverformat, + zmax=zmax, + zmid=zmid, + zmin=zmin, + zsmooth=zsmooth, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_histogram2dcontour(self, + autobinx=None, + autobiny=None, + autocolorscale=None, + autocontour=None, + bingroup=None, + coloraxis=None, + colorbar=None, + colorscale=None, + contours=None, + customdata=None, + customdatasrc=None, + histfunc=None, + histnorm=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meta=None, + metasrc=None, + name=None, + nbinsx=None, + nbinsy=None, + ncontours=None, + opacity=None, + reversescale=None, + showlegend=None, + showscale=None, + stream=None, + textfont=None, + texttemplate=None, + uid=None, + uirevision=None, + visible=None, + x=None, + xaxis=None, + xbingroup=None, + xbins=None, + xcalendar=None, + xhoverformat=None, + xsrc=None, + y=None, + yaxis=None, + ybingroup=None, + ybins=None, + ycalendar=None, + yhoverformat=None, + ysrc=None, + z=None, + zauto=None, + zhoverformat=None, + zmax=None, + zmid=None, + zmin=None, + zsrc=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'FigureWidget': """ Add a new Histogram2dContour trace @@ -9901,131 +9222,129 @@ def add_histogram2dcontour( FigureWidget """ from plotly.graph_objs import Histogram2dContour - new_trace = Histogram2dContour( - autobinx=autobinx, - autobiny=autobiny, - autocolorscale=autocolorscale, - autocontour=autocontour, - bingroup=bingroup, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - contours=contours, - customdata=customdata, - customdatasrc=customdatasrc, - histfunc=histfunc, - histnorm=histnorm, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - marker=marker, - meta=meta, - metasrc=metasrc, - name=name, - nbinsx=nbinsx, - nbinsy=nbinsy, - ncontours=ncontours, - opacity=opacity, - reversescale=reversescale, - showlegend=showlegend, - showscale=showscale, - stream=stream, - textfont=textfont, - texttemplate=texttemplate, - uid=uid, - uirevision=uirevision, - visible=visible, - x=x, - xaxis=xaxis, - xbingroup=xbingroup, - xbins=xbins, - xcalendar=xcalendar, - xhoverformat=xhoverformat, - xsrc=xsrc, - y=y, - yaxis=yaxis, - ybingroup=ybingroup, - ybins=ybins, - ycalendar=ycalendar, - yhoverformat=yhoverformat, - ysrc=ysrc, - z=z, - zauto=zauto, - zhoverformat=zhoverformat, - zmax=zmax, - zmid=zmid, - zmin=zmin, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_icicle( - self, - branchvalues=None, - count=None, - customdata=None, - customdatasrc=None, - domain=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - insidetextfont=None, - labels=None, - labelssrc=None, - leaf=None, - legend=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - level=None, - marker=None, - maxdepth=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - outsidetextfont=None, - parents=None, - parentssrc=None, - pathbar=None, - root=None, - sort=None, - stream=None, - text=None, - textfont=None, - textinfo=None, - textposition=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - tiling=None, - uid=None, - uirevision=None, - values=None, - valuessrc=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + autobinx=autobinx, + autobiny=autobiny, + autocolorscale=autocolorscale, + autocontour=autocontour, + bingroup=bingroup, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + contours=contours, + customdata=customdata, + customdatasrc=customdatasrc, + histfunc=histfunc, + histnorm=histnorm, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + marker=marker, + meta=meta, + metasrc=metasrc, + name=name, + nbinsx=nbinsx, + nbinsy=nbinsy, + ncontours=ncontours, + opacity=opacity, + reversescale=reversescale, + showlegend=showlegend, + showscale=showscale, + stream=stream, + textfont=textfont, + texttemplate=texttemplate, + uid=uid, + uirevision=uirevision, + visible=visible, + x=x, + xaxis=xaxis, + xbingroup=xbingroup, + xbins=xbins, + xcalendar=xcalendar, + xhoverformat=xhoverformat, + xsrc=xsrc, + y=y, + yaxis=yaxis, + ybingroup=ybingroup, + ybins=ybins, + ycalendar=ycalendar, + yhoverformat=yhoverformat, + ysrc=ysrc, + z=z, + zauto=zauto, + zhoverformat=zhoverformat, + zmax=zmax, + zmid=zmid, + zmin=zmin, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_icicle(self, + branchvalues=None, + count=None, + customdata=None, + customdatasrc=None, + domain=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + insidetextfont=None, + labels=None, + labelssrc=None, + leaf=None, + legend=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + level=None, + marker=None, + maxdepth=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + outsidetextfont=None, + parents=None, + parentssrc=None, + pathbar=None, + root=None, + sort=None, + stream=None, + text=None, + textfont=None, + textinfo=None, + textposition=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + tiling=None, + uid=None, + uirevision=None, + values=None, + valuessrc=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Icicle trace @@ -10305,107 +9624,105 @@ def add_icicle( FigureWidget """ from plotly.graph_objs import Icicle - new_trace = Icicle( - branchvalues=branchvalues, - count=count, - customdata=customdata, - customdatasrc=customdatasrc, - domain=domain, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - insidetextfont=insidetextfont, - labels=labels, - labelssrc=labelssrc, - leaf=leaf, - legend=legend, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - level=level, - marker=marker, - maxdepth=maxdepth, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - outsidetextfont=outsidetextfont, - parents=parents, - parentssrc=parentssrc, - pathbar=pathbar, - root=root, - sort=sort, - stream=stream, - text=text, - textfont=textfont, - textinfo=textinfo, - textposition=textposition, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - tiling=tiling, - uid=uid, - uirevision=uirevision, - values=values, - valuessrc=valuessrc, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_image( - self, - colormodel=None, - customdata=None, - customdatasrc=None, - dx=None, - dy=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - source=None, - stream=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - visible=None, - x0=None, - xaxis=None, - y0=None, - yaxis=None, - z=None, - zmax=None, - zmin=None, - zorder=None, - zsmooth=None, - zsrc=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "FigureWidget": + + branchvalues=branchvalues, + count=count, + customdata=customdata, + customdatasrc=customdatasrc, + domain=domain, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + insidetextfont=insidetextfont, + labels=labels, + labelssrc=labelssrc, + leaf=leaf, + legend=legend, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + level=level, + marker=marker, + maxdepth=maxdepth, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + outsidetextfont=outsidetextfont, + parents=parents, + parentssrc=parentssrc, + pathbar=pathbar, + root=root, + sort=sort, + stream=stream, + text=text, + textfont=textfont, + textinfo=textinfo, + textposition=textposition, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + tiling=tiling, + uid=uid, + uirevision=uirevision, + values=values, + valuessrc=valuessrc, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_image(self, + colormodel=None, + customdata=None, + customdatasrc=None, + dx=None, + dy=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + source=None, + stream=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + visible=None, + x0=None, + xaxis=None, + y0=None, + yaxis=None, + z=None, + zmax=None, + zmin=None, + zorder=None, + zsmooth=None, + zsrc=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'FigureWidget': """ Add a new Image trace @@ -10655,80 +9972,78 @@ def add_image( FigureWidget """ from plotly.graph_objs import Image - new_trace = Image( - colormodel=colormodel, - customdata=customdata, - customdatasrc=customdatasrc, - dx=dx, - dy=dy, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - source=source, - stream=stream, - text=text, - textsrc=textsrc, - uid=uid, - uirevision=uirevision, - visible=visible, - x0=x0, - xaxis=xaxis, - y0=y0, - yaxis=yaxis, - z=z, - zmax=zmax, - zmin=zmin, - zorder=zorder, - zsmooth=zsmooth, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_indicator( - self, - align=None, - customdata=None, - customdatasrc=None, - delta=None, - domain=None, - gauge=None, - ids=None, - idssrc=None, - legend=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - meta=None, - metasrc=None, - mode=None, - name=None, - number=None, - stream=None, - title=None, - uid=None, - uirevision=None, - value=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + colormodel=colormodel, + customdata=customdata, + customdatasrc=customdatasrc, + dx=dx, + dy=dy, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + source=source, + stream=stream, + text=text, + textsrc=textsrc, + uid=uid, + uirevision=uirevision, + visible=visible, + x0=x0, + xaxis=xaxis, + y0=y0, + yaxis=yaxis, + z=z, + zmax=zmax, + zmin=zmin, + zorder=zorder, + zsmooth=zsmooth, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_indicator(self, + align=None, + customdata=None, + customdatasrc=None, + delta=None, + domain=None, + gauge=None, + ids=None, + idssrc=None, + legend=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + meta=None, + metasrc=None, + mode=None, + name=None, + number=None, + stream=None, + title=None, + uid=None, + uirevision=None, + value=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Indicator trace @@ -10871,101 +10186,99 @@ def add_indicator( FigureWidget """ from plotly.graph_objs import Indicator - new_trace = Indicator( - align=align, - customdata=customdata, - customdatasrc=customdatasrc, - delta=delta, - domain=domain, - gauge=gauge, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - meta=meta, - metasrc=metasrc, - mode=mode, - name=name, - number=number, - stream=stream, - title=title, - uid=uid, - uirevision=uirevision, - value=value, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_isosurface( - self, - autocolorscale=None, - caps=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - coloraxis=None, - colorbar=None, - colorscale=None, - contour=None, - customdata=None, - customdatasrc=None, - flatshading=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - isomax=None, - isomin=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - lighting=None, - lightposition=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - reversescale=None, - scene=None, - showlegend=None, - showscale=None, - slices=None, - spaceframe=None, - stream=None, - surface=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - value=None, - valuehoverformat=None, - valuesrc=None, - visible=None, - x=None, - xhoverformat=None, - xsrc=None, - y=None, - yhoverformat=None, - ysrc=None, - z=None, - zhoverformat=None, - zsrc=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + align=align, + customdata=customdata, + customdatasrc=customdatasrc, + delta=delta, + domain=domain, + gauge=gauge, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + meta=meta, + metasrc=metasrc, + mode=mode, + name=name, + number=number, + stream=stream, + title=title, + uid=uid, + uirevision=uirevision, + value=value, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_isosurface(self, + autocolorscale=None, + caps=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + coloraxis=None, + colorbar=None, + colorscale=None, + contour=None, + customdata=None, + customdatasrc=None, + flatshading=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + isomax=None, + isomin=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + lighting=None, + lightposition=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + reversescale=None, + scene=None, + showlegend=None, + showscale=None, + slices=None, + spaceframe=None, + stream=None, + surface=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + value=None, + valuehoverformat=None, + valuesrc=None, + visible=None, + x=None, + xhoverformat=None, + xsrc=None, + y=None, + yhoverformat=None, + ysrc=None, + z=None, + zhoverformat=None, + zsrc=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Isosurface trace @@ -11305,148 +10618,146 @@ def add_isosurface( FigureWidget """ from plotly.graph_objs import Isosurface - new_trace = Isosurface( - autocolorscale=autocolorscale, - caps=caps, - cauto=cauto, - cmax=cmax, - cmid=cmid, - cmin=cmin, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - contour=contour, - customdata=customdata, - customdatasrc=customdatasrc, - flatshading=flatshading, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - isomax=isomax, - isomin=isomin, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - lighting=lighting, - lightposition=lightposition, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - reversescale=reversescale, - scene=scene, - showlegend=showlegend, - showscale=showscale, - slices=slices, - spaceframe=spaceframe, - stream=stream, - surface=surface, - text=text, - textsrc=textsrc, - uid=uid, - uirevision=uirevision, - value=value, - valuehoverformat=valuehoverformat, - valuesrc=valuesrc, - visible=visible, - x=x, - xhoverformat=xhoverformat, - xsrc=xsrc, - y=y, - yhoverformat=yhoverformat, - ysrc=ysrc, - z=z, - zhoverformat=zhoverformat, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_mesh3d( - self, - alphahull=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorbar=None, - colorscale=None, - contour=None, - customdata=None, - customdatasrc=None, - delaunayaxis=None, - facecolor=None, - facecolorsrc=None, - flatshading=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - i=None, - ids=None, - idssrc=None, - intensity=None, - intensitymode=None, - intensitysrc=None, - isrc=None, - j=None, - jsrc=None, - k=None, - ksrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - lighting=None, - lightposition=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - reversescale=None, - scene=None, - showlegend=None, - showscale=None, - stream=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - vertexcolor=None, - vertexcolorsrc=None, - visible=None, - x=None, - xcalendar=None, - xhoverformat=None, - xsrc=None, - y=None, - ycalendar=None, - yhoverformat=None, - ysrc=None, - z=None, - zcalendar=None, - zhoverformat=None, - zsrc=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + autocolorscale=autocolorscale, + caps=caps, + cauto=cauto, + cmax=cmax, + cmid=cmid, + cmin=cmin, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + contour=contour, + customdata=customdata, + customdatasrc=customdatasrc, + flatshading=flatshading, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + isomax=isomax, + isomin=isomin, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + lighting=lighting, + lightposition=lightposition, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + reversescale=reversescale, + scene=scene, + showlegend=showlegend, + showscale=showscale, + slices=slices, + spaceframe=spaceframe, + stream=stream, + surface=surface, + text=text, + textsrc=textsrc, + uid=uid, + uirevision=uirevision, + value=value, + valuehoverformat=valuehoverformat, + valuesrc=valuesrc, + visible=visible, + x=x, + xhoverformat=xhoverformat, + xsrc=xsrc, + y=y, + yhoverformat=yhoverformat, + ysrc=ysrc, + z=z, + zhoverformat=zhoverformat, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_mesh3d(self, + alphahull=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorbar=None, + colorscale=None, + contour=None, + customdata=None, + customdatasrc=None, + delaunayaxis=None, + facecolor=None, + facecolorsrc=None, + flatshading=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + i=None, + ids=None, + idssrc=None, + intensity=None, + intensitymode=None, + intensitysrc=None, + isrc=None, + j=None, + jsrc=None, + k=None, + ksrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + lighting=None, + lightposition=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + reversescale=None, + scene=None, + showlegend=None, + showscale=None, + stream=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + vertexcolor=None, + vertexcolorsrc=None, + visible=None, + x=None, + xcalendar=None, + xhoverformat=None, + xsrc=None, + y=None, + ycalendar=None, + yhoverformat=None, + ysrc=None, + z=None, + zcalendar=None, + zhoverformat=None, + zsrc=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Mesh3d trace @@ -11856,138 +11167,136 @@ def add_mesh3d( FigureWidget """ from plotly.graph_objs import Mesh3d - new_trace = Mesh3d( - alphahull=alphahull, - autocolorscale=autocolorscale, - cauto=cauto, - cmax=cmax, - cmid=cmid, - cmin=cmin, - color=color, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - contour=contour, - customdata=customdata, - customdatasrc=customdatasrc, - delaunayaxis=delaunayaxis, - facecolor=facecolor, - facecolorsrc=facecolorsrc, - flatshading=flatshading, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - i=i, - ids=ids, - idssrc=idssrc, - intensity=intensity, - intensitymode=intensitymode, - intensitysrc=intensitysrc, - isrc=isrc, - j=j, - jsrc=jsrc, - k=k, - ksrc=ksrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - lighting=lighting, - lightposition=lightposition, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - reversescale=reversescale, - scene=scene, - showlegend=showlegend, - showscale=showscale, - stream=stream, - text=text, - textsrc=textsrc, - uid=uid, - uirevision=uirevision, - vertexcolor=vertexcolor, - vertexcolorsrc=vertexcolorsrc, - visible=visible, - x=x, - xcalendar=xcalendar, - xhoverformat=xhoverformat, - xsrc=xsrc, - y=y, - ycalendar=ycalendar, - yhoverformat=yhoverformat, - ysrc=ysrc, - z=z, - zcalendar=zcalendar, - zhoverformat=zhoverformat, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_ohlc( - self, - close=None, - closesrc=None, - customdata=None, - customdatasrc=None, - decreasing=None, - high=None, - highsrc=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - increasing=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - low=None, - lowsrc=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - open=None, - opensrc=None, - selectedpoints=None, - showlegend=None, - stream=None, - text=None, - textsrc=None, - tickwidth=None, - uid=None, - uirevision=None, - visible=None, - x=None, - xaxis=None, - xcalendar=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - yaxis=None, - yhoverformat=None, - zorder=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "FigureWidget": + + alphahull=alphahull, + autocolorscale=autocolorscale, + cauto=cauto, + cmax=cmax, + cmid=cmid, + cmin=cmin, + color=color, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + contour=contour, + customdata=customdata, + customdatasrc=customdatasrc, + delaunayaxis=delaunayaxis, + facecolor=facecolor, + facecolorsrc=facecolorsrc, + flatshading=flatshading, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + i=i, + ids=ids, + idssrc=idssrc, + intensity=intensity, + intensitymode=intensitymode, + intensitysrc=intensitysrc, + isrc=isrc, + j=j, + jsrc=jsrc, + k=k, + ksrc=ksrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + lighting=lighting, + lightposition=lightposition, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + reversescale=reversescale, + scene=scene, + showlegend=showlegend, + showscale=showscale, + stream=stream, + text=text, + textsrc=textsrc, + uid=uid, + uirevision=uirevision, + vertexcolor=vertexcolor, + vertexcolorsrc=vertexcolorsrc, + visible=visible, + x=x, + xcalendar=xcalendar, + xhoverformat=xhoverformat, + xsrc=xsrc, + y=y, + ycalendar=ycalendar, + yhoverformat=yhoverformat, + ysrc=ysrc, + z=z, + zcalendar=zcalendar, + zhoverformat=zhoverformat, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_ohlc(self, + close=None, + closesrc=None, + customdata=None, + customdatasrc=None, + decreasing=None, + high=None, + highsrc=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + increasing=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + low=None, + lowsrc=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + open=None, + opensrc=None, + selectedpoints=None, + showlegend=None, + stream=None, + text=None, + textsrc=None, + tickwidth=None, + uid=None, + uirevision=None, + visible=None, + x=None, + xaxis=None, + xcalendar=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + yaxis=None, + yhoverformat=None, + zorder=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'FigureWidget': """ Add a new Ohlc trace @@ -12252,90 +11561,88 @@ def add_ohlc( FigureWidget """ from plotly.graph_objs import Ohlc - new_trace = Ohlc( - close=close, - closesrc=closesrc, - customdata=customdata, - customdatasrc=customdatasrc, - decreasing=decreasing, - high=high, - highsrc=highsrc, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - increasing=increasing, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - low=low, - lowsrc=lowsrc, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - open=open, - opensrc=opensrc, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - text=text, - textsrc=textsrc, - tickwidth=tickwidth, - uid=uid, - uirevision=uirevision, - visible=visible, - x=x, - xaxis=xaxis, - xcalendar=xcalendar, - xhoverformat=xhoverformat, - xperiod=xperiod, - xperiod0=xperiod0, - xperiodalignment=xperiodalignment, - xsrc=xsrc, - yaxis=yaxis, - yhoverformat=yhoverformat, - zorder=zorder, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_parcats( - self, - arrangement=None, - bundlecolors=None, - counts=None, - countssrc=None, - dimensions=None, - dimensiondefaults=None, - domain=None, - hoverinfo=None, - hoveron=None, - hovertemplate=None, - labelfont=None, - legendgrouptitle=None, - legendwidth=None, - line=None, - meta=None, - metasrc=None, - name=None, - sortpaths=None, - stream=None, - tickfont=None, - uid=None, - uirevision=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + close=close, + closesrc=closesrc, + customdata=customdata, + customdatasrc=customdatasrc, + decreasing=decreasing, + high=high, + highsrc=highsrc, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + increasing=increasing, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + low=low, + lowsrc=lowsrc, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + open=open, + opensrc=opensrc, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + text=text, + textsrc=textsrc, + tickwidth=tickwidth, + uid=uid, + uirevision=uirevision, + visible=visible, + x=x, + xaxis=xaxis, + xcalendar=xcalendar, + xhoverformat=xhoverformat, + xperiod=xperiod, + xperiod0=xperiod0, + xperiodalignment=xperiodalignment, + xsrc=xsrc, + yaxis=yaxis, + yhoverformat=yhoverformat, + zorder=zorder, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_parcats(self, + arrangement=None, + bundlecolors=None, + counts=None, + countssrc=None, + dimensions=None, + dimensiondefaults=None, + domain=None, + hoverinfo=None, + hoveron=None, + hovertemplate=None, + labelfont=None, + legendgrouptitle=None, + legendwidth=None, + line=None, + meta=None, + metasrc=None, + name=None, + sortpaths=None, + stream=None, + tickfont=None, + uid=None, + uirevision=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Parcats trace @@ -12502,66 +11809,64 @@ def add_parcats( FigureWidget """ from plotly.graph_objs import Parcats - new_trace = Parcats( - arrangement=arrangement, - bundlecolors=bundlecolors, - counts=counts, - countssrc=countssrc, - dimensions=dimensions, - dimensiondefaults=dimensiondefaults, - domain=domain, - hoverinfo=hoverinfo, - hoveron=hoveron, - hovertemplate=hovertemplate, - labelfont=labelfont, - legendgrouptitle=legendgrouptitle, - legendwidth=legendwidth, - line=line, - meta=meta, - metasrc=metasrc, - name=name, - sortpaths=sortpaths, - stream=stream, - tickfont=tickfont, - uid=uid, - uirevision=uirevision, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_parcoords( - self, - customdata=None, - customdatasrc=None, - dimensions=None, - dimensiondefaults=None, - domain=None, - ids=None, - idssrc=None, - labelangle=None, - labelfont=None, - labelside=None, - legend=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - meta=None, - metasrc=None, - name=None, - rangefont=None, - stream=None, - tickfont=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + arrangement=arrangement, + bundlecolors=bundlecolors, + counts=counts, + countssrc=countssrc, + dimensions=dimensions, + dimensiondefaults=dimensiondefaults, + domain=domain, + hoverinfo=hoverinfo, + hoveron=hoveron, + hovertemplate=hovertemplate, + labelfont=labelfont, + legendgrouptitle=legendgrouptitle, + legendwidth=legendwidth, + line=line, + meta=meta, + metasrc=metasrc, + name=name, + sortpaths=sortpaths, + stream=stream, + tickfont=tickfont, + uid=uid, + uirevision=uirevision, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_parcoords(self, + customdata=None, + customdatasrc=None, + dimensions=None, + dimensiondefaults=None, + domain=None, + ids=None, + idssrc=None, + labelangle=None, + labelfont=None, + labelside=None, + legend=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + meta=None, + metasrc=None, + name=None, + rangefont=None, + stream=None, + tickfont=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Parcoords trace @@ -12709,96 +12014,94 @@ def add_parcoords( FigureWidget """ from plotly.graph_objs import Parcoords - new_trace = Parcoords( - customdata=customdata, - customdatasrc=customdatasrc, - dimensions=dimensions, - dimensiondefaults=dimensiondefaults, - domain=domain, - ids=ids, - idssrc=idssrc, - labelangle=labelangle, - labelfont=labelfont, - labelside=labelside, - legend=legend, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - meta=meta, - metasrc=metasrc, - name=name, - rangefont=rangefont, - stream=stream, - tickfont=tickfont, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_pie( - self, - automargin=None, - customdata=None, - customdatasrc=None, - direction=None, - dlabel=None, - domain=None, - hole=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - insidetextfont=None, - insidetextorientation=None, - label0=None, - labels=None, - labelssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - marker=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - outsidetextfont=None, - pull=None, - pullsrc=None, - rotation=None, - scalegroup=None, - showlegend=None, - sort=None, - stream=None, - text=None, - textfont=None, - textinfo=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - title=None, - uid=None, - uirevision=None, - values=None, - valuessrc=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + customdata=customdata, + customdatasrc=customdatasrc, + dimensions=dimensions, + dimensiondefaults=dimensiondefaults, + domain=domain, + ids=ids, + idssrc=idssrc, + labelangle=labelangle, + labelfont=labelfont, + labelside=labelside, + legend=legend, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + meta=meta, + metasrc=metasrc, + name=name, + rangefont=rangefont, + stream=stream, + tickfont=tickfont, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_pie(self, + automargin=None, + customdata=None, + customdatasrc=None, + direction=None, + dlabel=None, + domain=None, + hole=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + insidetextfont=None, + insidetextorientation=None, + label0=None, + labels=None, + labelssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + marker=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + outsidetextfont=None, + pull=None, + pullsrc=None, + rotation=None, + scalegroup=None, + showlegend=None, + sort=None, + stream=None, + text=None, + textfont=None, + textinfo=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + title=None, + uid=None, + uirevision=None, + values=None, + valuessrc=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Pie trace @@ -13086,97 +12389,95 @@ def add_pie( FigureWidget """ from plotly.graph_objs import Pie - new_trace = Pie( - automargin=automargin, - customdata=customdata, - customdatasrc=customdatasrc, - direction=direction, - dlabel=dlabel, - domain=domain, - hole=hole, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - insidetextfont=insidetextfont, - insidetextorientation=insidetextorientation, - label0=label0, - labels=labels, - labelssrc=labelssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - marker=marker, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - outsidetextfont=outsidetextfont, - pull=pull, - pullsrc=pullsrc, - rotation=rotation, - scalegroup=scalegroup, - showlegend=showlegend, - sort=sort, - stream=stream, - text=text, - textfont=textfont, - textinfo=textinfo, - textposition=textposition, - textpositionsrc=textpositionsrc, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - title=title, - uid=uid, - uirevision=uirevision, - values=values, - valuessrc=valuessrc, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_sankey( - self, - arrangement=None, - customdata=None, - customdatasrc=None, - domain=None, - hoverinfo=None, - hoverlabel=None, - ids=None, - idssrc=None, - legend=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - link=None, - meta=None, - metasrc=None, - name=None, - node=None, - orientation=None, - selectedpoints=None, - stream=None, - textfont=None, - uid=None, - uirevision=None, - valueformat=None, - valuesuffix=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + automargin=automargin, + customdata=customdata, + customdatasrc=customdatasrc, + direction=direction, + dlabel=dlabel, + domain=domain, + hole=hole, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + insidetextfont=insidetextfont, + insidetextorientation=insidetextorientation, + label0=label0, + labels=labels, + labelssrc=labelssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + marker=marker, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + outsidetextfont=outsidetextfont, + pull=pull, + pullsrc=pullsrc, + rotation=rotation, + scalegroup=scalegroup, + showlegend=showlegend, + sort=sort, + stream=stream, + text=text, + textfont=textfont, + textinfo=textinfo, + textposition=textposition, + textpositionsrc=textpositionsrc, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + title=title, + uid=uid, + uirevision=uirevision, + values=values, + valuessrc=valuessrc, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_sankey(self, + arrangement=None, + customdata=None, + customdatasrc=None, + domain=None, + hoverinfo=None, + hoverlabel=None, + ids=None, + idssrc=None, + legend=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + link=None, + meta=None, + metasrc=None, + name=None, + node=None, + orientation=None, + selectedpoints=None, + stream=None, + textfont=None, + uid=None, + uirevision=None, + valueformat=None, + valuesuffix=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Sankey trace @@ -13335,119 +12636,117 @@ def add_sankey( FigureWidget """ from plotly.graph_objs import Sankey - new_trace = Sankey( - arrangement=arrangement, - customdata=customdata, - customdatasrc=customdatasrc, - domain=domain, - hoverinfo=hoverinfo, - hoverlabel=hoverlabel, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - link=link, - meta=meta, - metasrc=metasrc, - name=name, - node=node, - orientation=orientation, - selectedpoints=selectedpoints, - stream=stream, - textfont=textfont, - uid=uid, - uirevision=uirevision, - valueformat=valueformat, - valuesuffix=valuesuffix, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_scatter( - self, - alignmentgroup=None, - cliponaxis=None, - connectgaps=None, - customdata=None, - customdatasrc=None, - dx=None, - dy=None, - error_x=None, - error_y=None, - fill=None, - fillcolor=None, - fillgradient=None, - fillpattern=None, - groupnorm=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hoveron=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - offsetgroup=None, - opacity=None, - orientation=None, - selected=None, - selectedpoints=None, - showlegend=None, - stackgaps=None, - stackgroup=None, - stream=None, - text=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - x=None, - x0=None, - xaxis=None, - xcalendar=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - y=None, - y0=None, - yaxis=None, - ycalendar=None, - yhoverformat=None, - yperiod=None, - yperiod0=None, - yperiodalignment=None, - ysrc=None, - zorder=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "FigureWidget": + + arrangement=arrangement, + customdata=customdata, + customdatasrc=customdatasrc, + domain=domain, + hoverinfo=hoverinfo, + hoverlabel=hoverlabel, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + link=link, + meta=meta, + metasrc=metasrc, + name=name, + node=node, + orientation=orientation, + selectedpoints=selectedpoints, + stream=stream, + textfont=textfont, + uid=uid, + uirevision=uirevision, + valueformat=valueformat, + valuesuffix=valuesuffix, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_scatter(self, + alignmentgroup=None, + cliponaxis=None, + connectgaps=None, + customdata=None, + customdatasrc=None, + dx=None, + dy=None, + error_x=None, + error_y=None, + fill=None, + fillcolor=None, + fillgradient=None, + fillpattern=None, + groupnorm=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hoveron=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + offsetgroup=None, + opacity=None, + orientation=None, + selected=None, + selectedpoints=None, + showlegend=None, + stackgaps=None, + stackgroup=None, + stream=None, + text=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + x=None, + x0=None, + xaxis=None, + xcalendar=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + y=None, + y0=None, + yaxis=None, + ycalendar=None, + yhoverformat=None, + yperiod=None, + yperiod0=None, + yperiodalignment=None, + ysrc=None, + zorder=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'FigureWidget': """ Add a new Scatter trace @@ -13905,147 +13204,145 @@ def add_scatter( FigureWidget """ from plotly.graph_objs import Scatter - new_trace = Scatter( - alignmentgroup=alignmentgroup, - cliponaxis=cliponaxis, - connectgaps=connectgaps, - customdata=customdata, - customdatasrc=customdatasrc, - dx=dx, - dy=dy, - error_x=error_x, - error_y=error_y, - fill=fill, - fillcolor=fillcolor, - fillgradient=fillgradient, - fillpattern=fillpattern, - groupnorm=groupnorm, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hoveron=hoveron, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - marker=marker, - meta=meta, - metasrc=metasrc, - mode=mode, - name=name, - offsetgroup=offsetgroup, - opacity=opacity, - orientation=orientation, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - stackgaps=stackgaps, - stackgroup=stackgroup, - stream=stream, - text=text, - textfont=textfont, - textposition=textposition, - textpositionsrc=textpositionsrc, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - x=x, - x0=x0, - xaxis=xaxis, - xcalendar=xcalendar, - xhoverformat=xhoverformat, - xperiod=xperiod, - xperiod0=xperiod0, - xperiodalignment=xperiodalignment, - xsrc=xsrc, - y=y, - y0=y0, - yaxis=yaxis, - ycalendar=ycalendar, - yhoverformat=yhoverformat, - yperiod=yperiod, - yperiod0=yperiod0, - yperiodalignment=yperiodalignment, - ysrc=ysrc, - zorder=zorder, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_scatter3d( - self, - connectgaps=None, - customdata=None, - customdatasrc=None, - error_x=None, - error_y=None, - error_z=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - projection=None, - scene=None, - showlegend=None, - stream=None, - surfaceaxis=None, - surfacecolor=None, - text=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - visible=None, - x=None, - xcalendar=None, - xhoverformat=None, - xsrc=None, - y=None, - ycalendar=None, - yhoverformat=None, - ysrc=None, - z=None, - zcalendar=None, - zhoverformat=None, - zsrc=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + alignmentgroup=alignmentgroup, + cliponaxis=cliponaxis, + connectgaps=connectgaps, + customdata=customdata, + customdatasrc=customdatasrc, + dx=dx, + dy=dy, + error_x=error_x, + error_y=error_y, + fill=fill, + fillcolor=fillcolor, + fillgradient=fillgradient, + fillpattern=fillpattern, + groupnorm=groupnorm, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hoveron=hoveron, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + marker=marker, + meta=meta, + metasrc=metasrc, + mode=mode, + name=name, + offsetgroup=offsetgroup, + opacity=opacity, + orientation=orientation, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + stackgaps=stackgaps, + stackgroup=stackgroup, + stream=stream, + text=text, + textfont=textfont, + textposition=textposition, + textpositionsrc=textpositionsrc, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + x=x, + x0=x0, + xaxis=xaxis, + xcalendar=xcalendar, + xhoverformat=xhoverformat, + xperiod=xperiod, + xperiod0=xperiod0, + xperiodalignment=xperiodalignment, + xsrc=xsrc, + y=y, + y0=y0, + yaxis=yaxis, + ycalendar=ycalendar, + yhoverformat=yhoverformat, + yperiod=yperiod, + yperiod0=yperiod0, + yperiodalignment=yperiodalignment, + ysrc=ysrc, + zorder=zorder, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_scatter3d(self, + connectgaps=None, + customdata=None, + customdatasrc=None, + error_x=None, + error_y=None, + error_z=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + projection=None, + scene=None, + showlegend=None, + stream=None, + surfaceaxis=None, + surfacecolor=None, + text=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + visible=None, + x=None, + xcalendar=None, + xhoverformat=None, + xsrc=None, + y=None, + ycalendar=None, + yhoverformat=None, + ysrc=None, + z=None, + zcalendar=None, + zhoverformat=None, + zsrc=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Scatter3d trace @@ -14360,124 +13657,122 @@ def add_scatter3d( FigureWidget """ from plotly.graph_objs import Scatter3d - new_trace = Scatter3d( - connectgaps=connectgaps, - customdata=customdata, - customdatasrc=customdatasrc, - error_x=error_x, - error_y=error_y, - error_z=error_z, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - marker=marker, - meta=meta, - metasrc=metasrc, - mode=mode, - name=name, - opacity=opacity, - projection=projection, - scene=scene, - showlegend=showlegend, - stream=stream, - surfaceaxis=surfaceaxis, - surfacecolor=surfacecolor, - text=text, - textfont=textfont, - textposition=textposition, - textpositionsrc=textpositionsrc, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - uid=uid, - uirevision=uirevision, - visible=visible, - x=x, - xcalendar=xcalendar, - xhoverformat=xhoverformat, - xsrc=xsrc, - y=y, - ycalendar=ycalendar, - yhoverformat=yhoverformat, - ysrc=ysrc, - z=z, - zcalendar=zcalendar, - zhoverformat=zhoverformat, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_scattercarpet( - self, - a=None, - asrc=None, - b=None, - bsrc=None, - carpet=None, - connectgaps=None, - customdata=None, - customdatasrc=None, - fill=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hoveron=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - text=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - xaxis=None, - yaxis=None, - zorder=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "FigureWidget": + + connectgaps=connectgaps, + customdata=customdata, + customdatasrc=customdatasrc, + error_x=error_x, + error_y=error_y, + error_z=error_z, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + marker=marker, + meta=meta, + metasrc=metasrc, + mode=mode, + name=name, + opacity=opacity, + projection=projection, + scene=scene, + showlegend=showlegend, + stream=stream, + surfaceaxis=surfaceaxis, + surfacecolor=surfacecolor, + text=text, + textfont=textfont, + textposition=textposition, + textpositionsrc=textpositionsrc, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + uid=uid, + uirevision=uirevision, + visible=visible, + x=x, + xcalendar=xcalendar, + xhoverformat=xhoverformat, + xsrc=xsrc, + y=y, + ycalendar=ycalendar, + yhoverformat=yhoverformat, + ysrc=ysrc, + z=z, + zcalendar=zcalendar, + zhoverformat=zhoverformat, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_scattercarpet(self, + a=None, + asrc=None, + b=None, + bsrc=None, + carpet=None, + connectgaps=None, + customdata=None, + customdatasrc=None, + fill=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hoveron=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + text=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + xaxis=None, + yaxis=None, + zorder=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'FigureWidget': """ Add a new Scattercarpet trace @@ -14777,119 +14072,117 @@ def add_scattercarpet( FigureWidget """ from plotly.graph_objs import Scattercarpet - new_trace = Scattercarpet( - a=a, - asrc=asrc, - b=b, - bsrc=bsrc, - carpet=carpet, - connectgaps=connectgaps, - customdata=customdata, - customdatasrc=customdatasrc, - fill=fill, - fillcolor=fillcolor, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hoveron=hoveron, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - marker=marker, - meta=meta, - metasrc=metasrc, - mode=mode, - name=name, - opacity=opacity, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - text=text, - textfont=textfont, - textposition=textposition, - textpositionsrc=textpositionsrc, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - xaxis=xaxis, - yaxis=yaxis, - zorder=zorder, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_scattergeo( - self, - connectgaps=None, - customdata=None, - customdatasrc=None, - featureidkey=None, - fill=None, - fillcolor=None, - geo=None, - geojson=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - lat=None, - latsrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - locationmode=None, - locations=None, - locationssrc=None, - lon=None, - lonsrc=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - text=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + a=a, + asrc=asrc, + b=b, + bsrc=bsrc, + carpet=carpet, + connectgaps=connectgaps, + customdata=customdata, + customdatasrc=customdatasrc, + fill=fill, + fillcolor=fillcolor, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hoveron=hoveron, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + marker=marker, + meta=meta, + metasrc=metasrc, + mode=mode, + name=name, + opacity=opacity, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + text=text, + textfont=textfont, + textposition=textposition, + textpositionsrc=textpositionsrc, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + xaxis=xaxis, + yaxis=yaxis, + zorder=zorder, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_scattergeo(self, + connectgaps=None, + customdata=None, + customdatasrc=None, + featureidkey=None, + fill=None, + fillcolor=None, + geo=None, + geojson=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + lat=None, + latsrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + locationmode=None, + locations=None, + locationssrc=None, + lon=None, + lonsrc=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + text=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Scattergeo trace @@ -15185,133 +14478,131 @@ def add_scattergeo( FigureWidget """ from plotly.graph_objs import Scattergeo - new_trace = Scattergeo( - connectgaps=connectgaps, - customdata=customdata, - customdatasrc=customdatasrc, - featureidkey=featureidkey, - fill=fill, - fillcolor=fillcolor, - geo=geo, - geojson=geojson, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - lat=lat, - latsrc=latsrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - locationmode=locationmode, - locations=locations, - locationssrc=locationssrc, - lon=lon, - lonsrc=lonsrc, - marker=marker, - meta=meta, - metasrc=metasrc, - mode=mode, - name=name, - opacity=opacity, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - text=text, - textfont=textfont, - textposition=textposition, - textpositionsrc=textpositionsrc, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_scattergl( - self, - connectgaps=None, - customdata=None, - customdatasrc=None, - dx=None, - dy=None, - error_x=None, - error_y=None, - fill=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - text=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - x=None, - x0=None, - xaxis=None, - xcalendar=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - y=None, - y0=None, - yaxis=None, - ycalendar=None, - yhoverformat=None, - yperiod=None, - yperiod0=None, - yperiodalignment=None, - ysrc=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "FigureWidget": + + connectgaps=connectgaps, + customdata=customdata, + customdatasrc=customdatasrc, + featureidkey=featureidkey, + fill=fill, + fillcolor=fillcolor, + geo=geo, + geojson=geojson, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + lat=lat, + latsrc=latsrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + locationmode=locationmode, + locations=locations, + locationssrc=locationssrc, + lon=lon, + lonsrc=lonsrc, + marker=marker, + meta=meta, + metasrc=metasrc, + mode=mode, + name=name, + opacity=opacity, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + text=text, + textfont=textfont, + textposition=textposition, + textpositionsrc=textpositionsrc, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_scattergl(self, + connectgaps=None, + customdata=None, + customdatasrc=None, + dx=None, + dy=None, + error_x=None, + error_y=None, + fill=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + text=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + x=None, + x0=None, + xaxis=None, + xcalendar=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + y=None, + y0=None, + yaxis=None, + ycalendar=None, + yhoverformat=None, + yperiod=None, + yperiod0=None, + yperiodalignment=None, + ysrc=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'FigureWidget': """ Add a new Scattergl trace @@ -15685,128 +14976,126 @@ def add_scattergl( FigureWidget """ from plotly.graph_objs import Scattergl - new_trace = Scattergl( - connectgaps=connectgaps, - customdata=customdata, - customdatasrc=customdatasrc, - dx=dx, - dy=dy, - error_x=error_x, - error_y=error_y, - fill=fill, - fillcolor=fillcolor, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - marker=marker, - meta=meta, - metasrc=metasrc, - mode=mode, - name=name, - opacity=opacity, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - text=text, - textfont=textfont, - textposition=textposition, - textpositionsrc=textpositionsrc, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - x=x, - x0=x0, - xaxis=xaxis, - xcalendar=xcalendar, - xhoverformat=xhoverformat, - xperiod=xperiod, - xperiod0=xperiod0, - xperiodalignment=xperiodalignment, - xsrc=xsrc, - y=y, - y0=y0, - yaxis=yaxis, - ycalendar=ycalendar, - yhoverformat=yhoverformat, - yperiod=yperiod, - yperiod0=yperiod0, - yperiodalignment=yperiodalignment, - ysrc=ysrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_scattermap( - self, - below=None, - cluster=None, - connectgaps=None, - customdata=None, - customdatasrc=None, - fill=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - lat=None, - latsrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - lon=None, - lonsrc=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - subplot=None, - text=None, - textfont=None, - textposition=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + connectgaps=connectgaps, + customdata=customdata, + customdatasrc=customdatasrc, + dx=dx, + dy=dy, + error_x=error_x, + error_y=error_y, + fill=fill, + fillcolor=fillcolor, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + marker=marker, + meta=meta, + metasrc=metasrc, + mode=mode, + name=name, + opacity=opacity, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + text=text, + textfont=textfont, + textposition=textposition, + textpositionsrc=textpositionsrc, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + x=x, + x0=x0, + xaxis=xaxis, + xcalendar=xcalendar, + xhoverformat=xhoverformat, + xperiod=xperiod, + xperiod0=xperiod0, + xperiodalignment=xperiodalignment, + xsrc=xsrc, + y=y, + y0=y0, + yaxis=yaxis, + ycalendar=ycalendar, + yhoverformat=yhoverformat, + yperiod=yperiod, + yperiod0=yperiod0, + yperiodalignment=yperiodalignment, + ysrc=ysrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_scattermap(self, + below=None, + cluster=None, + connectgaps=None, + customdata=None, + customdatasrc=None, + fill=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + lat=None, + latsrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + lon=None, + lonsrc=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + subplot=None, + text=None, + textfont=None, + textposition=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Scattermap trace @@ -16078,112 +15367,110 @@ def add_scattermap( FigureWidget """ from plotly.graph_objs import Scattermap - new_trace = Scattermap( - below=below, - cluster=cluster, - connectgaps=connectgaps, - customdata=customdata, - customdatasrc=customdatasrc, - fill=fill, - fillcolor=fillcolor, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - lat=lat, - latsrc=latsrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - lon=lon, - lonsrc=lonsrc, - marker=marker, - meta=meta, - metasrc=metasrc, - mode=mode, - name=name, - opacity=opacity, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - subplot=subplot, - text=text, - textfont=textfont, - textposition=textposition, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_scattermapbox( - self, - below=None, - cluster=None, - connectgaps=None, - customdata=None, - customdatasrc=None, - fill=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - lat=None, - latsrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - lon=None, - lonsrc=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - subplot=None, - text=None, - textfont=None, - textposition=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + below=below, + cluster=cluster, + connectgaps=connectgaps, + customdata=customdata, + customdatasrc=customdatasrc, + fill=fill, + fillcolor=fillcolor, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + lat=lat, + latsrc=latsrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + lon=lon, + lonsrc=lonsrc, + marker=marker, + meta=meta, + metasrc=metasrc, + mode=mode, + name=name, + opacity=opacity, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + subplot=subplot, + text=text, + textfont=textfont, + textposition=textposition, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_scattermapbox(self, + below=None, + cluster=None, + connectgaps=None, + customdata=None, + customdatasrc=None, + fill=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + lat=None, + latsrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + lon=None, + lonsrc=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + subplot=None, + text=None, + textfont=None, + textposition=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Scattermapbox trace @@ -16464,118 +15751,116 @@ def add_scattermapbox( FigureWidget """ from plotly.graph_objs import Scattermapbox - new_trace = Scattermapbox( - below=below, - cluster=cluster, - connectgaps=connectgaps, - customdata=customdata, - customdatasrc=customdatasrc, - fill=fill, - fillcolor=fillcolor, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - lat=lat, - latsrc=latsrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - lon=lon, - lonsrc=lonsrc, - marker=marker, - meta=meta, - metasrc=metasrc, - mode=mode, - name=name, - opacity=opacity, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - subplot=subplot, - text=text, - textfont=textfont, - textposition=textposition, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_scatterpolar( - self, - cliponaxis=None, - connectgaps=None, - customdata=None, - customdatasrc=None, - dr=None, - dtheta=None, - fill=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hoveron=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - r=None, - r0=None, - rsrc=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - subplot=None, - text=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - theta=None, - theta0=None, - thetasrc=None, - thetaunit=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + below=below, + cluster=cluster, + connectgaps=connectgaps, + customdata=customdata, + customdatasrc=customdatasrc, + fill=fill, + fillcolor=fillcolor, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + lat=lat, + latsrc=latsrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + lon=lon, + lonsrc=lonsrc, + marker=marker, + meta=meta, + metasrc=metasrc, + mode=mode, + name=name, + opacity=opacity, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + subplot=subplot, + text=text, + textfont=textfont, + textposition=textposition, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_scatterpolar(self, + cliponaxis=None, + connectgaps=None, + customdata=None, + customdatasrc=None, + dr=None, + dtheta=None, + fill=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hoveron=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + r=None, + r0=None, + rsrc=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + subplot=None, + text=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + theta=None, + theta0=None, + thetasrc=None, + thetaunit=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Scatterpolar trace @@ -16880,122 +16165,120 @@ def add_scatterpolar( FigureWidget """ from plotly.graph_objs import Scatterpolar - new_trace = Scatterpolar( - cliponaxis=cliponaxis, - connectgaps=connectgaps, - customdata=customdata, - customdatasrc=customdatasrc, - dr=dr, - dtheta=dtheta, - fill=fill, - fillcolor=fillcolor, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hoveron=hoveron, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - marker=marker, - meta=meta, - metasrc=metasrc, - mode=mode, - name=name, - opacity=opacity, - r=r, - r0=r0, - rsrc=rsrc, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - subplot=subplot, - text=text, - textfont=textfont, - textposition=textposition, - textpositionsrc=textpositionsrc, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - theta=theta, - theta0=theta0, - thetasrc=thetasrc, - thetaunit=thetaunit, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_scatterpolargl( - self, - connectgaps=None, - customdata=None, - customdatasrc=None, - dr=None, - dtheta=None, - fill=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - r=None, - r0=None, - rsrc=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - subplot=None, - text=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - theta=None, - theta0=None, - thetasrc=None, - thetaunit=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + cliponaxis=cliponaxis, + connectgaps=connectgaps, + customdata=customdata, + customdatasrc=customdatasrc, + dr=dr, + dtheta=dtheta, + fill=fill, + fillcolor=fillcolor, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hoveron=hoveron, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + marker=marker, + meta=meta, + metasrc=metasrc, + mode=mode, + name=name, + opacity=opacity, + r=r, + r0=r0, + rsrc=rsrc, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + subplot=subplot, + text=text, + textfont=textfont, + textposition=textposition, + textpositionsrc=textpositionsrc, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + theta=theta, + theta0=theta0, + thetasrc=thetasrc, + thetaunit=thetaunit, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_scatterpolargl(self, + connectgaps=None, + customdata=None, + customdatasrc=None, + dr=None, + dtheta=None, + fill=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + r=None, + r0=None, + rsrc=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + subplot=None, + text=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + theta=None, + theta0=None, + thetasrc=None, + thetaunit=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Scatterpolargl trace @@ -17299,117 +16582,115 @@ def add_scatterpolargl( FigureWidget """ from plotly.graph_objs import Scatterpolargl - new_trace = Scatterpolargl( - connectgaps=connectgaps, - customdata=customdata, - customdatasrc=customdatasrc, - dr=dr, - dtheta=dtheta, - fill=fill, - fillcolor=fillcolor, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - marker=marker, - meta=meta, - metasrc=metasrc, - mode=mode, - name=name, - opacity=opacity, - r=r, - r0=r0, - rsrc=rsrc, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - subplot=subplot, - text=text, - textfont=textfont, - textposition=textposition, - textpositionsrc=textpositionsrc, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - theta=theta, - theta0=theta0, - thetasrc=thetasrc, - thetaunit=thetaunit, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_scattersmith( - self, - cliponaxis=None, - connectgaps=None, - customdata=None, - customdatasrc=None, - fill=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hoveron=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - imag=None, - imagsrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - real=None, - realsrc=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - subplot=None, - text=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + connectgaps=connectgaps, + customdata=customdata, + customdatasrc=customdatasrc, + dr=dr, + dtheta=dtheta, + fill=fill, + fillcolor=fillcolor, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + marker=marker, + meta=meta, + metasrc=metasrc, + mode=mode, + name=name, + opacity=opacity, + r=r, + r0=r0, + rsrc=rsrc, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + subplot=subplot, + text=text, + textfont=textfont, + textposition=textposition, + textpositionsrc=textpositionsrc, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + theta=theta, + theta0=theta0, + thetasrc=thetasrc, + thetaunit=thetaunit, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_scattersmith(self, + cliponaxis=None, + connectgaps=None, + customdata=None, + customdatasrc=None, + fill=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hoveron=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + imag=None, + imagsrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + real=None, + realsrc=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + subplot=None, + text=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Scattersmith trace @@ -17701,117 +16982,115 @@ def add_scattersmith( FigureWidget """ from plotly.graph_objs import Scattersmith - new_trace = Scattersmith( - cliponaxis=cliponaxis, - connectgaps=connectgaps, - customdata=customdata, - customdatasrc=customdatasrc, - fill=fill, - fillcolor=fillcolor, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hoveron=hoveron, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - imag=imag, - imagsrc=imagsrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - marker=marker, - meta=meta, - metasrc=metasrc, - mode=mode, - name=name, - opacity=opacity, - real=real, - realsrc=realsrc, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - subplot=subplot, - text=text, - textfont=textfont, - textposition=textposition, - textpositionsrc=textpositionsrc, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_scatterternary( - self, - a=None, - asrc=None, - b=None, - bsrc=None, - c=None, - cliponaxis=None, - connectgaps=None, - csrc=None, - customdata=None, - customdatasrc=None, - fill=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hoveron=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - subplot=None, - sum=None, - text=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + cliponaxis=cliponaxis, + connectgaps=connectgaps, + customdata=customdata, + customdatasrc=customdatasrc, + fill=fill, + fillcolor=fillcolor, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hoveron=hoveron, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + imag=imag, + imagsrc=imagsrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + marker=marker, + meta=meta, + metasrc=metasrc, + mode=mode, + name=name, + opacity=opacity, + real=real, + realsrc=realsrc, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + subplot=subplot, + text=text, + textfont=textfont, + textposition=textposition, + textpositionsrc=textpositionsrc, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_scatterternary(self, + a=None, + asrc=None, + b=None, + bsrc=None, + c=None, + cliponaxis=None, + connectgaps=None, + csrc=None, + customdata=None, + customdatasrc=None, + fill=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hoveron=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + subplot=None, + sum=None, + text=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Scatterternary trace @@ -18119,109 +17398,107 @@ def add_scatterternary( FigureWidget """ from plotly.graph_objs import Scatterternary - new_trace = Scatterternary( - a=a, - asrc=asrc, - b=b, - bsrc=bsrc, - c=c, - cliponaxis=cliponaxis, - connectgaps=connectgaps, - csrc=csrc, - customdata=customdata, - customdatasrc=customdatasrc, - fill=fill, - fillcolor=fillcolor, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hoveron=hoveron, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - marker=marker, - meta=meta, - metasrc=metasrc, - mode=mode, - name=name, - opacity=opacity, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - subplot=subplot, - sum=sum, - text=text, - textfont=textfont, - textposition=textposition, - textpositionsrc=textpositionsrc, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_splom( - self, - customdata=None, - customdatasrc=None, - diagonal=None, - dimensions=None, - dimensiondefaults=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - marker=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - selected=None, - selectedpoints=None, - showlegend=None, - showlowerhalf=None, - showupperhalf=None, - stream=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - xaxes=None, - xhoverformat=None, - yaxes=None, - yhoverformat=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + a=a, + asrc=asrc, + b=b, + bsrc=bsrc, + c=c, + cliponaxis=cliponaxis, + connectgaps=connectgaps, + csrc=csrc, + customdata=customdata, + customdatasrc=customdatasrc, + fill=fill, + fillcolor=fillcolor, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hoveron=hoveron, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + marker=marker, + meta=meta, + metasrc=metasrc, + mode=mode, + name=name, + opacity=opacity, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + subplot=subplot, + sum=sum, + text=text, + textfont=textfont, + textposition=textposition, + textpositionsrc=textpositionsrc, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_splom(self, + customdata=None, + customdatasrc=None, + diagonal=None, + dimensions=None, + dimensiondefaults=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + marker=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + selected=None, + selectedpoints=None, + showlegend=None, + showlowerhalf=None, + showupperhalf=None, + stream=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + xaxes=None, + xhoverformat=None, + yaxes=None, + yhoverformat=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Splom trace @@ -18479,117 +17756,115 @@ def add_splom( FigureWidget """ from plotly.graph_objs import Splom - new_trace = Splom( - customdata=customdata, - customdatasrc=customdatasrc, - diagonal=diagonal, - dimensions=dimensions, - dimensiondefaults=dimensiondefaults, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - marker=marker, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - showlowerhalf=showlowerhalf, - showupperhalf=showupperhalf, - stream=stream, - text=text, - textsrc=textsrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - xaxes=xaxes, - xhoverformat=xhoverformat, - yaxes=yaxes, - yhoverformat=yhoverformat, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_streamtube( - self, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - coloraxis=None, - colorbar=None, - colorscale=None, - customdata=None, - customdatasrc=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - lighting=None, - lightposition=None, - maxdisplayed=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - reversescale=None, - scene=None, - showlegend=None, - showscale=None, - sizeref=None, - starts=None, - stream=None, - text=None, - u=None, - uhoverformat=None, - uid=None, - uirevision=None, - usrc=None, - v=None, - vhoverformat=None, - visible=None, - vsrc=None, - w=None, - whoverformat=None, - wsrc=None, - x=None, - xhoverformat=None, - xsrc=None, - y=None, - yhoverformat=None, - ysrc=None, - z=None, - zhoverformat=None, - zsrc=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + customdata=customdata, + customdatasrc=customdatasrc, + diagonal=diagonal, + dimensions=dimensions, + dimensiondefaults=dimensiondefaults, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + marker=marker, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + showlowerhalf=showlowerhalf, + showupperhalf=showupperhalf, + stream=stream, + text=text, + textsrc=textsrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + xaxes=xaxes, + xhoverformat=xhoverformat, + yaxes=yaxes, + yhoverformat=yhoverformat, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_streamtube(self, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + coloraxis=None, + colorbar=None, + colorscale=None, + customdata=None, + customdatasrc=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + lighting=None, + lightposition=None, + maxdisplayed=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + reversescale=None, + scene=None, + showlegend=None, + showscale=None, + sizeref=None, + starts=None, + stream=None, + text=None, + u=None, + uhoverformat=None, + uid=None, + uirevision=None, + usrc=None, + v=None, + vhoverformat=None, + visible=None, + vsrc=None, + w=None, + whoverformat=None, + wsrc=None, + x=None, + xhoverformat=None, + xsrc=None, + y=None, + yhoverformat=None, + ysrc=None, + z=None, + zhoverformat=None, + zsrc=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Streamtube trace @@ -18938,125 +18213,123 @@ def add_streamtube( FigureWidget """ from plotly.graph_objs import Streamtube - new_trace = Streamtube( - autocolorscale=autocolorscale, - cauto=cauto, - cmax=cmax, - cmid=cmid, - cmin=cmin, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - customdata=customdata, - customdatasrc=customdatasrc, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - lighting=lighting, - lightposition=lightposition, - maxdisplayed=maxdisplayed, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - reversescale=reversescale, - scene=scene, - showlegend=showlegend, - showscale=showscale, - sizeref=sizeref, - starts=starts, - stream=stream, - text=text, - u=u, - uhoverformat=uhoverformat, - uid=uid, - uirevision=uirevision, - usrc=usrc, - v=v, - vhoverformat=vhoverformat, - visible=visible, - vsrc=vsrc, - w=w, - whoverformat=whoverformat, - wsrc=wsrc, - x=x, - xhoverformat=xhoverformat, - xsrc=xsrc, - y=y, - yhoverformat=yhoverformat, - ysrc=ysrc, - z=z, - zhoverformat=zhoverformat, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_sunburst( - self, - branchvalues=None, - count=None, - customdata=None, - customdatasrc=None, - domain=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - insidetextfont=None, - insidetextorientation=None, - labels=None, - labelssrc=None, - leaf=None, - legend=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - level=None, - marker=None, - maxdepth=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - outsidetextfont=None, - parents=None, - parentssrc=None, - root=None, - rotation=None, - sort=None, - stream=None, - text=None, - textfont=None, - textinfo=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - values=None, - valuessrc=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + autocolorscale=autocolorscale, + cauto=cauto, + cmax=cmax, + cmid=cmid, + cmin=cmin, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + customdata=customdata, + customdatasrc=customdatasrc, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + lighting=lighting, + lightposition=lightposition, + maxdisplayed=maxdisplayed, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + reversescale=reversescale, + scene=scene, + showlegend=showlegend, + showscale=showscale, + sizeref=sizeref, + starts=starts, + stream=stream, + text=text, + u=u, + uhoverformat=uhoverformat, + uid=uid, + uirevision=uirevision, + usrc=usrc, + v=v, + vhoverformat=vhoverformat, + visible=visible, + vsrc=vsrc, + w=w, + whoverformat=whoverformat, + wsrc=wsrc, + x=x, + xhoverformat=xhoverformat, + xsrc=xsrc, + y=y, + yhoverformat=yhoverformat, + ysrc=ysrc, + z=z, + zhoverformat=zhoverformat, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_sunburst(self, + branchvalues=None, + count=None, + customdata=None, + customdatasrc=None, + domain=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + insidetextfont=None, + insidetextorientation=None, + labels=None, + labelssrc=None, + leaf=None, + legend=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + level=None, + marker=None, + maxdepth=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + outsidetextfont=None, + parents=None, + parentssrc=None, + root=None, + rotation=None, + sort=None, + stream=None, + text=None, + textfont=None, + textinfo=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + values=None, + valuessrc=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Sunburst trace @@ -19341,124 +18614,122 @@ def add_sunburst( FigureWidget """ from plotly.graph_objs import Sunburst - new_trace = Sunburst( - branchvalues=branchvalues, - count=count, - customdata=customdata, - customdatasrc=customdatasrc, - domain=domain, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - insidetextfont=insidetextfont, - insidetextorientation=insidetextorientation, - labels=labels, - labelssrc=labelssrc, - leaf=leaf, - legend=legend, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - level=level, - marker=marker, - maxdepth=maxdepth, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - outsidetextfont=outsidetextfont, - parents=parents, - parentssrc=parentssrc, - root=root, - rotation=rotation, - sort=sort, - stream=stream, - text=text, - textfont=textfont, - textinfo=textinfo, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - uid=uid, - uirevision=uirevision, - values=values, - valuessrc=valuessrc, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_surface( - self, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - coloraxis=None, - colorbar=None, - colorscale=None, - connectgaps=None, - contours=None, - customdata=None, - customdatasrc=None, - hidesurface=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - lighting=None, - lightposition=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - opacityscale=None, - reversescale=None, - scene=None, - showlegend=None, - showscale=None, - stream=None, - surfacecolor=None, - surfacecolorsrc=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - visible=None, - x=None, - xcalendar=None, - xhoverformat=None, - xsrc=None, - y=None, - ycalendar=None, - yhoverformat=None, - ysrc=None, - z=None, - zcalendar=None, - zhoverformat=None, - zsrc=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + branchvalues=branchvalues, + count=count, + customdata=customdata, + customdatasrc=customdatasrc, + domain=domain, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + insidetextfont=insidetextfont, + insidetextorientation=insidetextorientation, + labels=labels, + labelssrc=labelssrc, + leaf=leaf, + legend=legend, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + level=level, + marker=marker, + maxdepth=maxdepth, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + outsidetextfont=outsidetextfont, + parents=parents, + parentssrc=parentssrc, + root=root, + rotation=rotation, + sort=sort, + stream=stream, + text=text, + textfont=textfont, + textinfo=textinfo, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + uid=uid, + uirevision=uirevision, + values=values, + valuessrc=valuessrc, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_surface(self, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + coloraxis=None, + colorbar=None, + colorscale=None, + connectgaps=None, + contours=None, + customdata=None, + customdatasrc=None, + hidesurface=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + lighting=None, + lightposition=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + opacityscale=None, + reversescale=None, + scene=None, + showlegend=None, + showscale=None, + stream=None, + surfacecolor=None, + surfacecolorsrc=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + visible=None, + x=None, + xcalendar=None, + xhoverformat=None, + xsrc=None, + y=None, + ycalendar=None, + yhoverformat=None, + ysrc=None, + z=None, + zcalendar=None, + zhoverformat=None, + zsrc=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Surface trace @@ -19801,101 +19072,99 @@ def add_surface( FigureWidget """ from plotly.graph_objs import Surface - new_trace = Surface( - autocolorscale=autocolorscale, - cauto=cauto, - cmax=cmax, - cmid=cmid, - cmin=cmin, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - connectgaps=connectgaps, - contours=contours, - customdata=customdata, - customdatasrc=customdatasrc, - hidesurface=hidesurface, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - lighting=lighting, - lightposition=lightposition, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - opacityscale=opacityscale, - reversescale=reversescale, - scene=scene, - showlegend=showlegend, - showscale=showscale, - stream=stream, - surfacecolor=surfacecolor, - surfacecolorsrc=surfacecolorsrc, - text=text, - textsrc=textsrc, - uid=uid, - uirevision=uirevision, - visible=visible, - x=x, - xcalendar=xcalendar, - xhoverformat=xhoverformat, - xsrc=xsrc, - y=y, - ycalendar=ycalendar, - yhoverformat=yhoverformat, - ysrc=ysrc, - z=z, - zcalendar=zcalendar, - zhoverformat=zhoverformat, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_table( - self, - cells=None, - columnorder=None, - columnordersrc=None, - columnwidth=None, - columnwidthsrc=None, - customdata=None, - customdatasrc=None, - domain=None, - header=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - ids=None, - idssrc=None, - legend=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - meta=None, - metasrc=None, - name=None, - stream=None, - uid=None, - uirevision=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + autocolorscale=autocolorscale, + cauto=cauto, + cmax=cmax, + cmid=cmid, + cmin=cmin, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + connectgaps=connectgaps, + contours=contours, + customdata=customdata, + customdatasrc=customdatasrc, + hidesurface=hidesurface, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + lighting=lighting, + lightposition=lightposition, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + opacityscale=opacityscale, + reversescale=reversescale, + scene=scene, + showlegend=showlegend, + showscale=showscale, + stream=stream, + surfacecolor=surfacecolor, + surfacecolorsrc=surfacecolorsrc, + text=text, + textsrc=textsrc, + uid=uid, + uirevision=uirevision, + visible=visible, + x=x, + xcalendar=xcalendar, + xhoverformat=xhoverformat, + xsrc=xsrc, + y=y, + ycalendar=ycalendar, + yhoverformat=yhoverformat, + ysrc=ysrc, + z=z, + zcalendar=zcalendar, + zhoverformat=zhoverformat, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_table(self, + cells=None, + columnorder=None, + columnordersrc=None, + columnwidth=None, + columnwidthsrc=None, + customdata=None, + customdatasrc=None, + domain=None, + header=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + ids=None, + idssrc=None, + legend=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + meta=None, + metasrc=None, + name=None, + stream=None, + uid=None, + uirevision=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Table trace @@ -20045,91 +19314,89 @@ def add_table( FigureWidget """ from plotly.graph_objs import Table - new_trace = Table( - cells=cells, - columnorder=columnorder, - columnordersrc=columnordersrc, - columnwidth=columnwidth, - columnwidthsrc=columnwidthsrc, - customdata=customdata, - customdatasrc=customdatasrc, - domain=domain, - header=header, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - ids=ids, - idssrc=idssrc, - legend=legend, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - meta=meta, - metasrc=metasrc, - name=name, - stream=stream, - uid=uid, - uirevision=uirevision, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_treemap( - self, - branchvalues=None, - count=None, - customdata=None, - customdatasrc=None, - domain=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - insidetextfont=None, - labels=None, - labelssrc=None, - legend=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - level=None, - marker=None, - maxdepth=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - outsidetextfont=None, - parents=None, - parentssrc=None, - pathbar=None, - root=None, - sort=None, - stream=None, - text=None, - textfont=None, - textinfo=None, - textposition=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - tiling=None, - uid=None, - uirevision=None, - values=None, - valuessrc=None, - visible=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + cells=cells, + columnorder=columnorder, + columnordersrc=columnordersrc, + columnwidth=columnwidth, + columnwidthsrc=columnwidthsrc, + customdata=customdata, + customdatasrc=customdatasrc, + domain=domain, + header=header, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + ids=ids, + idssrc=idssrc, + legend=legend, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + meta=meta, + metasrc=metasrc, + name=name, + stream=stream, + uid=uid, + uirevision=uirevision, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_treemap(self, + branchvalues=None, + count=None, + customdata=None, + customdatasrc=None, + domain=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + insidetextfont=None, + labels=None, + labelssrc=None, + legend=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + level=None, + marker=None, + maxdepth=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + outsidetextfont=None, + parents=None, + parentssrc=None, + pathbar=None, + root=None, + sort=None, + stream=None, + text=None, + textfont=None, + textinfo=None, + textposition=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + tiling=None, + uid=None, + uirevision=None, + values=None, + valuessrc=None, + visible=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Treemap trace @@ -20407,128 +19674,126 @@ def add_treemap( FigureWidget """ from plotly.graph_objs import Treemap - new_trace = Treemap( - branchvalues=branchvalues, - count=count, - customdata=customdata, - customdatasrc=customdatasrc, - domain=domain, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - insidetextfont=insidetextfont, - labels=labels, - labelssrc=labelssrc, - legend=legend, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - level=level, - marker=marker, - maxdepth=maxdepth, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - outsidetextfont=outsidetextfont, - parents=parents, - parentssrc=parentssrc, - pathbar=pathbar, - root=root, - sort=sort, - stream=stream, - text=text, - textfont=textfont, - textinfo=textinfo, - textposition=textposition, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - tiling=tiling, - uid=uid, - uirevision=uirevision, - values=values, - valuessrc=valuessrc, - visible=visible, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_violin( - self, - alignmentgroup=None, - bandwidth=None, - box=None, - customdata=None, - customdatasrc=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hoveron=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - jitter=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meanline=None, - meta=None, - metasrc=None, - name=None, - offsetgroup=None, - opacity=None, - orientation=None, - pointpos=None, - points=None, - quartilemethod=None, - scalegroup=None, - scalemode=None, - selected=None, - selectedpoints=None, - showlegend=None, - side=None, - span=None, - spanmode=None, - stream=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - width=None, - x=None, - x0=None, - xaxis=None, - xhoverformat=None, - xsrc=None, - y=None, - y0=None, - yaxis=None, - yhoverformat=None, - ysrc=None, - zorder=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "FigureWidget": + + branchvalues=branchvalues, + count=count, + customdata=customdata, + customdatasrc=customdatasrc, + domain=domain, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + insidetextfont=insidetextfont, + labels=labels, + labelssrc=labelssrc, + legend=legend, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + level=level, + marker=marker, + maxdepth=maxdepth, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + outsidetextfont=outsidetextfont, + parents=parents, + parentssrc=parentssrc, + pathbar=pathbar, + root=root, + sort=sort, + stream=stream, + text=text, + textfont=textfont, + textinfo=textinfo, + textposition=textposition, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + tiling=tiling, + uid=uid, + uirevision=uirevision, + values=values, + valuessrc=valuessrc, + visible=visible, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_violin(self, + alignmentgroup=None, + bandwidth=None, + box=None, + customdata=None, + customdatasrc=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hoveron=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + jitter=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meanline=None, + meta=None, + metasrc=None, + name=None, + offsetgroup=None, + opacity=None, + orientation=None, + pointpos=None, + points=None, + quartilemethod=None, + scalegroup=None, + scalemode=None, + selected=None, + selectedpoints=None, + showlegend=None, + side=None, + span=None, + spanmode=None, + stream=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + width=None, + x=None, + x0=None, + xaxis=None, + xhoverformat=None, + xsrc=None, + y=None, + y0=None, + yaxis=None, + yhoverformat=None, + ysrc=None, + zorder=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'FigureWidget': """ Add a new Violin trace @@ -20910,140 +20175,138 @@ def add_violin( FigureWidget """ from plotly.graph_objs import Violin - new_trace = Violin( - alignmentgroup=alignmentgroup, - bandwidth=bandwidth, - box=box, - customdata=customdata, - customdatasrc=customdatasrc, - fillcolor=fillcolor, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hoveron=hoveron, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - jitter=jitter, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - marker=marker, - meanline=meanline, - meta=meta, - metasrc=metasrc, - name=name, - offsetgroup=offsetgroup, - opacity=opacity, - orientation=orientation, - pointpos=pointpos, - points=points, - quartilemethod=quartilemethod, - scalegroup=scalegroup, - scalemode=scalemode, - selected=selected, - selectedpoints=selectedpoints, - showlegend=showlegend, - side=side, - span=span, - spanmode=spanmode, - stream=stream, - text=text, - textsrc=textsrc, - uid=uid, - uirevision=uirevision, - unselected=unselected, - visible=visible, - width=width, - x=x, - x0=x0, - xaxis=xaxis, - xhoverformat=xhoverformat, - xsrc=xsrc, - y=y, - y0=y0, - yaxis=yaxis, - yhoverformat=yhoverformat, - ysrc=ysrc, - zorder=zorder, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def add_volume( - self, - autocolorscale=None, - caps=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - coloraxis=None, - colorbar=None, - colorscale=None, - contour=None, - customdata=None, - customdatasrc=None, - flatshading=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - isomax=None, - isomin=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - lighting=None, - lightposition=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - opacityscale=None, - reversescale=None, - scene=None, - showlegend=None, - showscale=None, - slices=None, - spaceframe=None, - stream=None, - surface=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - value=None, - valuehoverformat=None, - valuesrc=None, - visible=None, - x=None, - xhoverformat=None, - xsrc=None, - y=None, - yhoverformat=None, - ysrc=None, - z=None, - zhoverformat=None, - zsrc=None, - row=None, - col=None, - **kwargs, - ) -> "FigureWidget": + + alignmentgroup=alignmentgroup, + bandwidth=bandwidth, + box=box, + customdata=customdata, + customdatasrc=customdatasrc, + fillcolor=fillcolor, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hoveron=hoveron, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + jitter=jitter, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + marker=marker, + meanline=meanline, + meta=meta, + metasrc=metasrc, + name=name, + offsetgroup=offsetgroup, + opacity=opacity, + orientation=orientation, + pointpos=pointpos, + points=points, + quartilemethod=quartilemethod, + scalegroup=scalegroup, + scalemode=scalemode, + selected=selected, + selectedpoints=selectedpoints, + showlegend=showlegend, + side=side, + span=span, + spanmode=spanmode, + stream=stream, + text=text, + textsrc=textsrc, + uid=uid, + uirevision=uirevision, + unselected=unselected, + visible=visible, + width=width, + x=x, + x0=x0, + xaxis=xaxis, + xhoverformat=xhoverformat, + xsrc=xsrc, + y=y, + y0=y0, + yaxis=yaxis, + yhoverformat=yhoverformat, + ysrc=ysrc, + zorder=zorder, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + def add_volume(self, + autocolorscale=None, + caps=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + coloraxis=None, + colorbar=None, + colorscale=None, + contour=None, + customdata=None, + customdatasrc=None, + flatshading=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + isomax=None, + isomin=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + lighting=None, + lightposition=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + opacityscale=None, + reversescale=None, + scene=None, + showlegend=None, + showscale=None, + slices=None, + spaceframe=None, + stream=None, + surface=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + value=None, + valuehoverformat=None, + valuesrc=None, + visible=None, + x=None, + xhoverformat=None, + xsrc=None, + y=None, + yhoverformat=None, + ysrc=None, + z=None, + zhoverformat=None, + zsrc=None, + row=None, + col=None, + **kwargs + )-> 'FigureWidget': """ Add a new Volume trace @@ -21394,153 +20657,151 @@ def add_volume( FigureWidget """ from plotly.graph_objs import Volume - new_trace = Volume( - autocolorscale=autocolorscale, - caps=caps, - cauto=cauto, - cmax=cmax, - cmid=cmid, - cmin=cmin, - coloraxis=coloraxis, - colorbar=colorbar, - colorscale=colorscale, - contour=contour, - customdata=customdata, - customdatasrc=customdatasrc, - flatshading=flatshading, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - isomax=isomax, - isomin=isomin, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - lighting=lighting, - lightposition=lightposition, - meta=meta, - metasrc=metasrc, - name=name, - opacity=opacity, - opacityscale=opacityscale, - reversescale=reversescale, - scene=scene, - showlegend=showlegend, - showscale=showscale, - slices=slices, - spaceframe=spaceframe, - stream=stream, - surface=surface, - text=text, - textsrc=textsrc, - uid=uid, - uirevision=uirevision, - value=value, - valuehoverformat=valuehoverformat, - valuesrc=valuesrc, - visible=visible, - x=x, - xhoverformat=xhoverformat, - xsrc=xsrc, - y=y, - yhoverformat=yhoverformat, - ysrc=ysrc, - z=z, - zhoverformat=zhoverformat, - zsrc=zsrc, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col) - - def add_waterfall( - self, - alignmentgroup=None, - base=None, - cliponaxis=None, - connector=None, - constraintext=None, - customdata=None, - customdatasrc=None, - decreasing=None, - dx=None, - dy=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - increasing=None, - insidetextanchor=None, - insidetextfont=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - measure=None, - measuresrc=None, - meta=None, - metasrc=None, - name=None, - offset=None, - offsetgroup=None, - offsetsrc=None, - opacity=None, - orientation=None, - outsidetextfont=None, - selectedpoints=None, - showlegend=None, - stream=None, - text=None, - textangle=None, - textfont=None, - textinfo=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - totals=None, - uid=None, - uirevision=None, - visible=None, - width=None, - widthsrc=None, - x=None, - x0=None, - xaxis=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - y=None, - y0=None, - yaxis=None, - yhoverformat=None, - yperiod=None, - yperiod0=None, - yperiodalignment=None, - ysrc=None, - zorder=None, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "FigureWidget": + + autocolorscale=autocolorscale, + caps=caps, + cauto=cauto, + cmax=cmax, + cmid=cmid, + cmin=cmin, + coloraxis=coloraxis, + colorbar=colorbar, + colorscale=colorscale, + contour=contour, + customdata=customdata, + customdatasrc=customdatasrc, + flatshading=flatshading, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + isomax=isomax, + isomin=isomin, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + lighting=lighting, + lightposition=lightposition, + meta=meta, + metasrc=metasrc, + name=name, + opacity=opacity, + opacityscale=opacityscale, + reversescale=reversescale, + scene=scene, + showlegend=showlegend, + showscale=showscale, + slices=slices, + spaceframe=spaceframe, + stream=stream, + surface=surface, + text=text, + textsrc=textsrc, + uid=uid, + uirevision=uirevision, + value=value, + valuehoverformat=valuehoverformat, + valuesrc=valuesrc, + visible=visible, + x=x, + xhoverformat=xhoverformat, + xsrc=xsrc, + y=y, + yhoverformat=yhoverformat, + ysrc=ysrc, + z=z, + zhoverformat=zhoverformat, + zsrc=zsrc, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col) + def add_waterfall(self, + alignmentgroup=None, + base=None, + cliponaxis=None, + connector=None, + constraintext=None, + customdata=None, + customdatasrc=None, + decreasing=None, + dx=None, + dy=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + increasing=None, + insidetextanchor=None, + insidetextfont=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + measure=None, + measuresrc=None, + meta=None, + metasrc=None, + name=None, + offset=None, + offsetgroup=None, + offsetsrc=None, + opacity=None, + orientation=None, + outsidetextfont=None, + selectedpoints=None, + showlegend=None, + stream=None, + text=None, + textangle=None, + textfont=None, + textinfo=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + totals=None, + uid=None, + uirevision=None, + visible=None, + width=None, + widthsrc=None, + x=None, + x0=None, + xaxis=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + y=None, + y0=None, + yaxis=None, + yhoverformat=None, + yperiod=None, + yperiod0=None, + yperiodalignment=None, + ysrc=None, + zorder=None, + row=None, + col=None, + secondary_y=None, + **kwargs + )-> 'FigureWidget': """ Add a new Waterfall trace @@ -21952,86 +21213,87 @@ def add_waterfall( FigureWidget """ from plotly.graph_objs import Waterfall - new_trace = Waterfall( - alignmentgroup=alignmentgroup, - base=base, - cliponaxis=cliponaxis, - connector=connector, - constraintext=constraintext, - customdata=customdata, - customdatasrc=customdatasrc, - decreasing=decreasing, - dx=dx, - dy=dy, - hoverinfo=hoverinfo, - hoverinfosrc=hoverinfosrc, - hoverlabel=hoverlabel, - hovertemplate=hovertemplate, - hovertemplatesrc=hovertemplatesrc, - hovertext=hovertext, - hovertextsrc=hovertextsrc, - ids=ids, - idssrc=idssrc, - increasing=increasing, - insidetextanchor=insidetextanchor, - insidetextfont=insidetextfont, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - measure=measure, - measuresrc=measuresrc, - meta=meta, - metasrc=metasrc, - name=name, - offset=offset, - offsetgroup=offsetgroup, - offsetsrc=offsetsrc, - opacity=opacity, - orientation=orientation, - outsidetextfont=outsidetextfont, - selectedpoints=selectedpoints, - showlegend=showlegend, - stream=stream, - text=text, - textangle=textangle, - textfont=textfont, - textinfo=textinfo, - textposition=textposition, - textpositionsrc=textpositionsrc, - textsrc=textsrc, - texttemplate=texttemplate, - texttemplatesrc=texttemplatesrc, - totals=totals, - uid=uid, - uirevision=uirevision, - visible=visible, - width=width, - widthsrc=widthsrc, - x=x, - x0=x0, - xaxis=xaxis, - xhoverformat=xhoverformat, - xperiod=xperiod, - xperiod0=xperiod0, - xperiodalignment=xperiodalignment, - xsrc=xsrc, - y=y, - y0=y0, - yaxis=yaxis, - yhoverformat=yhoverformat, - yperiod=yperiod, - yperiod0=yperiod0, - yperiodalignment=yperiodalignment, - ysrc=ysrc, - zorder=zorder, - **kwargs, - ) - return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) - - def select_coloraxes(self, selector=None, row=None, col=None): + + alignmentgroup=alignmentgroup, + base=base, + cliponaxis=cliponaxis, + connector=connector, + constraintext=constraintext, + customdata=customdata, + customdatasrc=customdatasrc, + decreasing=decreasing, + dx=dx, + dy=dy, + hoverinfo=hoverinfo, + hoverinfosrc=hoverinfosrc, + hoverlabel=hoverlabel, + hovertemplate=hovertemplate, + hovertemplatesrc=hovertemplatesrc, + hovertext=hovertext, + hovertextsrc=hovertextsrc, + ids=ids, + idssrc=idssrc, + increasing=increasing, + insidetextanchor=insidetextanchor, + insidetextfont=insidetextfont, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + measure=measure, + measuresrc=measuresrc, + meta=meta, + metasrc=metasrc, + name=name, + offset=offset, + offsetgroup=offsetgroup, + offsetsrc=offsetsrc, + opacity=opacity, + orientation=orientation, + outsidetextfont=outsidetextfont, + selectedpoints=selectedpoints, + showlegend=showlegend, + stream=stream, + text=text, + textangle=textangle, + textfont=textfont, + textinfo=textinfo, + textposition=textposition, + textpositionsrc=textpositionsrc, + textsrc=textsrc, + texttemplate=texttemplate, + texttemplatesrc=texttemplatesrc, + totals=totals, + uid=uid, + uirevision=uirevision, + visible=visible, + width=width, + widthsrc=widthsrc, + x=x, + x0=x0, + xaxis=xaxis, + xhoverformat=xhoverformat, + xperiod=xperiod, + xperiod0=xperiod0, + xperiodalignment=xperiodalignment, + xsrc=xsrc, + y=y, + y0=y0, + yaxis=yaxis, + yhoverformat=yhoverformat, + yperiod=yperiod, + yperiod0=yperiod0, + yperiodalignment=yperiodalignment, + ysrc=ysrc, + zorder=zorder, + **kwargs) + return self.add_trace( + new_trace, row=row, col=col, secondary_y=secondary_y) + + def select_coloraxes( + self, selector=None, row=None, col=None): """ Select coloraxis subplot objects from a particular subplot cell and/or coloraxis subplot objects that satisfy custom selection @@ -22061,11 +21323,11 @@ def select_coloraxes(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix("coloraxis", selector, row, col) + return self._select_layout_subplots_by_prefix( + 'coloraxis', selector, row, col) def for_each_coloraxis( - self, fn, selector=None, row=None, col=None - ) -> "FigureWidget": + self, fn, selector=None, row=None, col=None) -> 'FigureWidget': """ Apply a function to all coloraxis objects that satisfy the specified selection criteria @@ -22094,14 +21356,19 @@ def for_each_coloraxis( self Returns the FigureWidget object that the method was called on """ - for obj in self.select_coloraxes(selector=selector, row=row, col=col): + for obj in self.select_coloraxes( + selector=selector, row=row, col=col): fn(obj) return self def update_coloraxes( - self, patch=None, selector=None, overwrite=False, row=None, col=None, **kwargs - ) -> "FigureWidget": + self, + patch=None, + selector=None, + overwrite=False, + row=None, col=None, + **kwargs) -> 'FigureWidget': """ Perform a property update operation on all coloraxis objects that satisfy the specified selection criteria @@ -22140,12 +21407,14 @@ def update_coloraxes( self Returns the FigureWidget object that the method was called on """ - for obj in self.select_coloraxes(selector=selector, row=row, col=col): + for obj in self.select_coloraxes( + selector=selector, row=row, col=col): obj.update(patch, overwrite=overwrite, **kwargs) return self - def select_geos(self, selector=None, row=None, col=None): + def select_geos( + self, selector=None, row=None, col=None): """ Select geo subplot objects from a particular subplot cell and/or geo subplot objects that satisfy custom selection @@ -22175,9 +21444,11 @@ def select_geos(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix("geo", selector, row, col) + return self._select_layout_subplots_by_prefix( + 'geo', selector, row, col) - def for_each_geo(self, fn, selector=None, row=None, col=None) -> "FigureWidget": + def for_each_geo( + self, fn, selector=None, row=None, col=None) -> 'FigureWidget': """ Apply a function to all geo objects that satisfy the specified selection criteria @@ -22206,14 +21477,19 @@ def for_each_geo(self, fn, selector=None, row=None, col=None) -> "FigureWidget": self Returns the FigureWidget object that the method was called on """ - for obj in self.select_geos(selector=selector, row=row, col=col): + for obj in self.select_geos( + selector=selector, row=row, col=col): fn(obj) return self def update_geos( - self, patch=None, selector=None, overwrite=False, row=None, col=None, **kwargs - ) -> "FigureWidget": + self, + patch=None, + selector=None, + overwrite=False, + row=None, col=None, + **kwargs) -> 'FigureWidget': """ Perform a property update operation on all geo objects that satisfy the specified selection criteria @@ -22252,12 +21528,14 @@ def update_geos( self Returns the FigureWidget object that the method was called on """ - for obj in self.select_geos(selector=selector, row=row, col=col): + for obj in self.select_geos( + selector=selector, row=row, col=col): obj.update(patch, overwrite=overwrite, **kwargs) return self - def select_legends(self, selector=None, row=None, col=None): + def select_legends( + self, selector=None, row=None, col=None): """ Select legend subplot objects from a particular subplot cell and/or legend subplot objects that satisfy custom selection @@ -22287,9 +21565,11 @@ def select_legends(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix("legend", selector, row, col) + return self._select_layout_subplots_by_prefix( + 'legend', selector, row, col) - def for_each_legend(self, fn, selector=None, row=None, col=None) -> "FigureWidget": + def for_each_legend( + self, fn, selector=None, row=None, col=None) -> 'FigureWidget': """ Apply a function to all legend objects that satisfy the specified selection criteria @@ -22318,14 +21598,19 @@ def for_each_legend(self, fn, selector=None, row=None, col=None) -> "FigureWidge self Returns the FigureWidget object that the method was called on """ - for obj in self.select_legends(selector=selector, row=row, col=col): + for obj in self.select_legends( + selector=selector, row=row, col=col): fn(obj) return self def update_legends( - self, patch=None, selector=None, overwrite=False, row=None, col=None, **kwargs - ) -> "FigureWidget": + self, + patch=None, + selector=None, + overwrite=False, + row=None, col=None, + **kwargs) -> 'FigureWidget': """ Perform a property update operation on all legend objects that satisfy the specified selection criteria @@ -22364,12 +21649,14 @@ def update_legends( self Returns the FigureWidget object that the method was called on """ - for obj in self.select_legends(selector=selector, row=row, col=col): + for obj in self.select_legends( + selector=selector, row=row, col=col): obj.update(patch, overwrite=overwrite, **kwargs) return self - def select_maps(self, selector=None, row=None, col=None): + def select_maps( + self, selector=None, row=None, col=None): """ Select map subplot objects from a particular subplot cell and/or map subplot objects that satisfy custom selection @@ -22399,9 +21686,11 @@ def select_maps(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix("map", selector, row, col) + return self._select_layout_subplots_by_prefix( + 'map', selector, row, col) - def for_each_map(self, fn, selector=None, row=None, col=None) -> "FigureWidget": + def for_each_map( + self, fn, selector=None, row=None, col=None) -> 'FigureWidget': """ Apply a function to all map objects that satisfy the specified selection criteria @@ -22430,14 +21719,19 @@ def for_each_map(self, fn, selector=None, row=None, col=None) -> "FigureWidget": self Returns the FigureWidget object that the method was called on """ - for obj in self.select_maps(selector=selector, row=row, col=col): + for obj in self.select_maps( + selector=selector, row=row, col=col): fn(obj) return self def update_maps( - self, patch=None, selector=None, overwrite=False, row=None, col=None, **kwargs - ) -> "FigureWidget": + self, + patch=None, + selector=None, + overwrite=False, + row=None, col=None, + **kwargs) -> 'FigureWidget': """ Perform a property update operation on all map objects that satisfy the specified selection criteria @@ -22476,12 +21770,14 @@ def update_maps( self Returns the FigureWidget object that the method was called on """ - for obj in self.select_maps(selector=selector, row=row, col=col): + for obj in self.select_maps( + selector=selector, row=row, col=col): obj.update(patch, overwrite=overwrite, **kwargs) return self - def select_mapboxes(self, selector=None, row=None, col=None): + def select_mapboxes( + self, selector=None, row=None, col=None): """ Select mapbox subplot objects from a particular subplot cell and/or mapbox subplot objects that satisfy custom selection @@ -22511,9 +21807,11 @@ def select_mapboxes(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix("mapbox", selector, row, col) + return self._select_layout_subplots_by_prefix( + 'mapbox', selector, row, col) - def for_each_mapbox(self, fn, selector=None, row=None, col=None) -> "FigureWidget": + def for_each_mapbox( + self, fn, selector=None, row=None, col=None) -> 'FigureWidget': """ Apply a function to all mapbox objects that satisfy the specified selection criteria @@ -22542,14 +21840,19 @@ def for_each_mapbox(self, fn, selector=None, row=None, col=None) -> "FigureWidge self Returns the FigureWidget object that the method was called on """ - for obj in self.select_mapboxes(selector=selector, row=row, col=col): + for obj in self.select_mapboxes( + selector=selector, row=row, col=col): fn(obj) return self def update_mapboxes( - self, patch=None, selector=None, overwrite=False, row=None, col=None, **kwargs - ) -> "FigureWidget": + self, + patch=None, + selector=None, + overwrite=False, + row=None, col=None, + **kwargs) -> 'FigureWidget': """ Perform a property update operation on all mapbox objects that satisfy the specified selection criteria @@ -22588,12 +21891,14 @@ def update_mapboxes( self Returns the FigureWidget object that the method was called on """ - for obj in self.select_mapboxes(selector=selector, row=row, col=col): + for obj in self.select_mapboxes( + selector=selector, row=row, col=col): obj.update(patch, overwrite=overwrite, **kwargs) return self - def select_polars(self, selector=None, row=None, col=None): + def select_polars( + self, selector=None, row=None, col=None): """ Select polar subplot objects from a particular subplot cell and/or polar subplot objects that satisfy custom selection @@ -22623,9 +21928,11 @@ def select_polars(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix("polar", selector, row, col) + return self._select_layout_subplots_by_prefix( + 'polar', selector, row, col) - def for_each_polar(self, fn, selector=None, row=None, col=None) -> "FigureWidget": + def for_each_polar( + self, fn, selector=None, row=None, col=None) -> 'FigureWidget': """ Apply a function to all polar objects that satisfy the specified selection criteria @@ -22654,14 +21961,19 @@ def for_each_polar(self, fn, selector=None, row=None, col=None) -> "FigureWidget self Returns the FigureWidget object that the method was called on """ - for obj in self.select_polars(selector=selector, row=row, col=col): + for obj in self.select_polars( + selector=selector, row=row, col=col): fn(obj) return self def update_polars( - self, patch=None, selector=None, overwrite=False, row=None, col=None, **kwargs - ) -> "FigureWidget": + self, + patch=None, + selector=None, + overwrite=False, + row=None, col=None, + **kwargs) -> 'FigureWidget': """ Perform a property update operation on all polar objects that satisfy the specified selection criteria @@ -22700,12 +22012,14 @@ def update_polars( self Returns the FigureWidget object that the method was called on """ - for obj in self.select_polars(selector=selector, row=row, col=col): + for obj in self.select_polars( + selector=selector, row=row, col=col): obj.update(patch, overwrite=overwrite, **kwargs) return self - def select_scenes(self, selector=None, row=None, col=None): + def select_scenes( + self, selector=None, row=None, col=None): """ Select scene subplot objects from a particular subplot cell and/or scene subplot objects that satisfy custom selection @@ -22735,9 +22049,11 @@ def select_scenes(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix("scene", selector, row, col) + return self._select_layout_subplots_by_prefix( + 'scene', selector, row, col) - def for_each_scene(self, fn, selector=None, row=None, col=None) -> "FigureWidget": + def for_each_scene( + self, fn, selector=None, row=None, col=None) -> 'FigureWidget': """ Apply a function to all scene objects that satisfy the specified selection criteria @@ -22766,14 +22082,19 @@ def for_each_scene(self, fn, selector=None, row=None, col=None) -> "FigureWidget self Returns the FigureWidget object that the method was called on """ - for obj in self.select_scenes(selector=selector, row=row, col=col): + for obj in self.select_scenes( + selector=selector, row=row, col=col): fn(obj) return self def update_scenes( - self, patch=None, selector=None, overwrite=False, row=None, col=None, **kwargs - ) -> "FigureWidget": + self, + patch=None, + selector=None, + overwrite=False, + row=None, col=None, + **kwargs) -> 'FigureWidget': """ Perform a property update operation on all scene objects that satisfy the specified selection criteria @@ -22812,12 +22133,14 @@ def update_scenes( self Returns the FigureWidget object that the method was called on """ - for obj in self.select_scenes(selector=selector, row=row, col=col): + for obj in self.select_scenes( + selector=selector, row=row, col=col): obj.update(patch, overwrite=overwrite, **kwargs) return self - def select_smiths(self, selector=None, row=None, col=None): + def select_smiths( + self, selector=None, row=None, col=None): """ Select smith subplot objects from a particular subplot cell and/or smith subplot objects that satisfy custom selection @@ -22847,9 +22170,11 @@ def select_smiths(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix("smith", selector, row, col) + return self._select_layout_subplots_by_prefix( + 'smith', selector, row, col) - def for_each_smith(self, fn, selector=None, row=None, col=None) -> "FigureWidget": + def for_each_smith( + self, fn, selector=None, row=None, col=None) -> 'FigureWidget': """ Apply a function to all smith objects that satisfy the specified selection criteria @@ -22878,14 +22203,19 @@ def for_each_smith(self, fn, selector=None, row=None, col=None) -> "FigureWidget self Returns the FigureWidget object that the method was called on """ - for obj in self.select_smiths(selector=selector, row=row, col=col): + for obj in self.select_smiths( + selector=selector, row=row, col=col): fn(obj) return self def update_smiths( - self, patch=None, selector=None, overwrite=False, row=None, col=None, **kwargs - ) -> "FigureWidget": + self, + patch=None, + selector=None, + overwrite=False, + row=None, col=None, + **kwargs) -> 'FigureWidget': """ Perform a property update operation on all smith objects that satisfy the specified selection criteria @@ -22924,12 +22254,14 @@ def update_smiths( self Returns the FigureWidget object that the method was called on """ - for obj in self.select_smiths(selector=selector, row=row, col=col): + for obj in self.select_smiths( + selector=selector, row=row, col=col): obj.update(patch, overwrite=overwrite, **kwargs) return self - def select_ternaries(self, selector=None, row=None, col=None): + def select_ternaries( + self, selector=None, row=None, col=None): """ Select ternary subplot objects from a particular subplot cell and/or ternary subplot objects that satisfy custom selection @@ -22959,9 +22291,11 @@ def select_ternaries(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix("ternary", selector, row, col) + return self._select_layout_subplots_by_prefix( + 'ternary', selector, row, col) - def for_each_ternary(self, fn, selector=None, row=None, col=None) -> "FigureWidget": + def for_each_ternary( + self, fn, selector=None, row=None, col=None) -> 'FigureWidget': """ Apply a function to all ternary objects that satisfy the specified selection criteria @@ -22990,14 +22324,19 @@ def for_each_ternary(self, fn, selector=None, row=None, col=None) -> "FigureWidg self Returns the FigureWidget object that the method was called on """ - for obj in self.select_ternaries(selector=selector, row=row, col=col): + for obj in self.select_ternaries( + selector=selector, row=row, col=col): fn(obj) return self def update_ternaries( - self, patch=None, selector=None, overwrite=False, row=None, col=None, **kwargs - ) -> "FigureWidget": + self, + patch=None, + selector=None, + overwrite=False, + row=None, col=None, + **kwargs) -> 'FigureWidget': """ Perform a property update operation on all ternary objects that satisfy the specified selection criteria @@ -23036,12 +22375,14 @@ def update_ternaries( self Returns the FigureWidget object that the method was called on """ - for obj in self.select_ternaries(selector=selector, row=row, col=col): + for obj in self.select_ternaries( + selector=selector, row=row, col=col): obj.update(patch, overwrite=overwrite, **kwargs) return self - def select_xaxes(self, selector=None, row=None, col=None): + def select_xaxes( + self, selector=None, row=None, col=None): """ Select xaxis subplot objects from a particular subplot cell and/or xaxis subplot objects that satisfy custom selection @@ -23071,9 +22412,11 @@ def select_xaxes(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix("xaxis", selector, row, col) + return self._select_layout_subplots_by_prefix( + 'xaxis', selector, row, col) - def for_each_xaxis(self, fn, selector=None, row=None, col=None) -> "FigureWidget": + def for_each_xaxis( + self, fn, selector=None, row=None, col=None) -> 'FigureWidget': """ Apply a function to all xaxis objects that satisfy the specified selection criteria @@ -23102,14 +22445,19 @@ def for_each_xaxis(self, fn, selector=None, row=None, col=None) -> "FigureWidget self Returns the FigureWidget object that the method was called on """ - for obj in self.select_xaxes(selector=selector, row=row, col=col): + for obj in self.select_xaxes( + selector=selector, row=row, col=col): fn(obj) return self def update_xaxes( - self, patch=None, selector=None, overwrite=False, row=None, col=None, **kwargs - ) -> "FigureWidget": + self, + patch=None, + selector=None, + overwrite=False, + row=None, col=None, + **kwargs) -> 'FigureWidget': """ Perform a property update operation on all xaxis objects that satisfy the specified selection criteria @@ -23148,12 +22496,14 @@ def update_xaxes( self Returns the FigureWidget object that the method was called on """ - for obj in self.select_xaxes(selector=selector, row=row, col=col): + for obj in self.select_xaxes( + selector=selector, row=row, col=col): obj.update(patch, overwrite=overwrite, **kwargs) return self - def select_yaxes(self, selector=None, row=None, col=None, secondary_y=None): + def select_yaxes( + self, selector=None, row=None, col=None, secondary_y=None): """ Select yaxis subplot objects from a particular subplot cell and/or yaxis subplot objects that satisfy custom selection @@ -23196,12 +22546,10 @@ def select_yaxes(self, selector=None, row=None, col=None, secondary_y=None): """ return self._select_layout_subplots_by_prefix( - "yaxis", selector, row, col, secondary_y=secondary_y - ) + 'yaxis', selector, row, col, secondary_y=secondary_y) def for_each_yaxis( - self, fn, selector=None, row=None, col=None, secondary_y=None - ) -> "FigureWidget": + self, fn, selector=None, row=None, col=None, secondary_y=None) -> 'FigureWidget': """ Apply a function to all yaxis objects that satisfy the specified selection criteria @@ -23243,22 +22591,18 @@ def for_each_yaxis( Returns the FigureWidget object that the method was called on """ for obj in self.select_yaxes( - selector=selector, row=row, col=col, secondary_y=secondary_y - ): + selector=selector, row=row, col=col, secondary_y=secondary_y): fn(obj) return self def update_yaxes( - self, - patch=None, - selector=None, - overwrite=False, - row=None, - col=None, - secondary_y=None, - **kwargs, - ) -> "FigureWidget": + self, + patch=None, + selector=None, + overwrite=False, + row=None, col=None, secondary_y=None, + **kwargs) -> 'FigureWidget': """ Perform a property update operation on all yaxis objects that satisfy the specified selection criteria @@ -23310,13 +22654,13 @@ def update_yaxes( Returns the FigureWidget object that the method was called on """ for obj in self.select_yaxes( - selector=selector, row=row, col=col, secondary_y=secondary_y - ): + selector=selector, row=row, col=col, secondary_y=secondary_y): obj.update(patch, overwrite=overwrite, **kwargs) return self - - def select_annotations(self, selector=None, row=None, col=None, secondary_y=None): + def select_annotations( + self, selector=None, row=None, col=None, secondary_y=None + ): """ Select annotations from a particular subplot cell and/or annotations that satisfy custom selection criteria. @@ -23408,7 +22752,7 @@ def for_each_annotation( Returns the FigureWidget object that the method was called on """ for obj in self._select_annotations_like( - prop="annotations", + prop='annotations', selector=selector, row=row, col=col, @@ -23419,8 +22763,14 @@ def for_each_annotation( return self def update_annotations( - self, patch=None, selector=None, row=None, col=None, secondary_y=None, **kwargs - ) -> "FigureWidget": + self, + patch=None, + selector=None, + row=None, + col=None, + secondary_y=None, + **kwargs + ) -> 'FigureWidget': """ Perform a property update operation on all annotations that satisfy the specified selection criteria @@ -23470,7 +22820,7 @@ def update_annotations( Returns the FigureWidget object that the method was called on """ for obj in self._select_annotations_like( - prop="annotations", + prop='annotations', selector=selector, row=row, col=col, @@ -23480,58 +22830,57 @@ def update_annotations( return self - def add_annotation( - self, - arg=None, - align=None, - arrowcolor=None, - arrowhead=None, - arrowside=None, - arrowsize=None, - arrowwidth=None, - ax=None, - axref=None, - ay=None, - ayref=None, - bgcolor=None, - bordercolor=None, - borderpad=None, - borderwidth=None, - captureevents=None, - clicktoshow=None, - font=None, - height=None, - hoverlabel=None, - hovertext=None, - name=None, - opacity=None, - showarrow=None, - standoff=None, - startarrowhead=None, - startarrowsize=None, - startstandoff=None, - templateitemname=None, - text=None, - textangle=None, - valign=None, - visible=None, - width=None, - x=None, - xanchor=None, - xclick=None, - xref=None, - xshift=None, - y=None, - yanchor=None, - yclick=None, - yref=None, - yshift=None, - row=None, - col=None, - secondary_y=None, - exclude_empty_subplots=None, - **kwargs, - ) -> "FigureWidget": + def add_annotation(self, + arg=None, + align=None, + arrowcolor=None, + arrowhead=None, + arrowside=None, + arrowsize=None, + arrowwidth=None, + ax=None, + axref=None, + ay=None, + ayref=None, + bgcolor=None, + bordercolor=None, + borderpad=None, + borderwidth=None, + captureevents=None, + clicktoshow=None, + font=None, + height=None, + hoverlabel=None, + hovertext=None, + name=None, + opacity=None, + showarrow=None, + standoff=None, + startarrowhead=None, + startarrowsize=None, + startstandoff=None, + templateitemname=None, + text=None, + textangle=None, + valign=None, + visible=None, + width=None, + x=None, + xanchor=None, + xclick=None, + xref=None, + xshift=None, + y=None, + yanchor=None, + yclick=None, + yref=None, + yshift=None, + row=None, + col=None, + secondary_y=None, + exclude_empty_subplots=None, + **kwargs + )-> 'FigureWidget': """ Create and add a new annotation to the figure's layout @@ -23835,65 +23184,63 @@ def add_annotation( FigureWidget """ from plotly.graph_objs import layout as _layout - - new_obj = _layout.Annotation( - arg, - align=align, - arrowcolor=arrowcolor, - arrowhead=arrowhead, - arrowside=arrowside, - arrowsize=arrowsize, - arrowwidth=arrowwidth, - ax=ax, - axref=axref, - ay=ay, - ayref=ayref, - bgcolor=bgcolor, - bordercolor=bordercolor, - borderpad=borderpad, - borderwidth=borderwidth, - captureevents=captureevents, - clicktoshow=clicktoshow, - font=font, - height=height, - hoverlabel=hoverlabel, - hovertext=hovertext, - name=name, - opacity=opacity, - showarrow=showarrow, - standoff=standoff, - startarrowhead=startarrowhead, - startarrowsize=startarrowsize, - startstandoff=startstandoff, - templateitemname=templateitemname, - text=text, - textangle=textangle, - valign=valign, - visible=visible, - width=width, - x=x, - xanchor=xanchor, - xclick=xclick, - xref=xref, - xshift=xshift, - y=y, - yanchor=yanchor, - yclick=yclick, - yref=yref, - yshift=yshift, - **kwargs, - ) + new_obj = _layout.Annotation(arg, + + align=align, + arrowcolor=arrowcolor, + arrowhead=arrowhead, + arrowside=arrowside, + arrowsize=arrowsize, + arrowwidth=arrowwidth, + ax=ax, + axref=axref, + ay=ay, + ayref=ayref, + bgcolor=bgcolor, + bordercolor=bordercolor, + borderpad=borderpad, + borderwidth=borderwidth, + captureevents=captureevents, + clicktoshow=clicktoshow, + font=font, + height=height, + hoverlabel=hoverlabel, + hovertext=hovertext, + name=name, + opacity=opacity, + showarrow=showarrow, + standoff=standoff, + startarrowhead=startarrowhead, + startarrowsize=startarrowsize, + startstandoff=startstandoff, + templateitemname=templateitemname, + text=text, + textangle=textangle, + valign=valign, + visible=visible, + width=width, + x=x, + xanchor=xanchor, + xclick=xclick, + xref=xref, + xshift=xshift, + y=y, + yanchor=yanchor, + yclick=yclick, + yref=yref, + yshift=yshift,**kwargs) return self._add_annotation_like( - "annotation", - "annotations", + 'annotation', + 'annotations', new_obj, row=row, col=col, secondary_y=secondary_y, exclude_empty_subplots=exclude_empty_subplots, ) - - def select_layout_images(self, selector=None, row=None, col=None, secondary_y=None): + def select_layout_images( + self, selector=None, row=None, col=None, secondary_y=None + ): """ Select images from a particular subplot cell and/or images that satisfy custom selection criteria. @@ -23985,7 +23332,7 @@ def for_each_layout_image( Returns the FigureWidget object that the method was called on """ for obj in self._select_annotations_like( - prop="images", + prop='images', selector=selector, row=row, col=col, @@ -23996,8 +23343,14 @@ def for_each_layout_image( return self def update_layout_images( - self, patch=None, selector=None, row=None, col=None, secondary_y=None, **kwargs - ) -> "FigureWidget": + self, + patch=None, + selector=None, + row=None, + col=None, + secondary_y=None, + **kwargs + ) -> 'FigureWidget': """ Perform a property update operation on all images that satisfy the specified selection criteria @@ -24047,7 +23400,7 @@ def update_layout_images( Returns the FigureWidget object that the method was called on """ for obj in self._select_annotations_like( - prop="images", + prop='images', selector=selector, row=row, col=col, @@ -24057,30 +23410,29 @@ def update_layout_images( return self - def add_layout_image( - self, - arg=None, - layer=None, - name=None, - opacity=None, - sizex=None, - sizey=None, - sizing=None, - source=None, - templateitemname=None, - visible=None, - x=None, - xanchor=None, - xref=None, - y=None, - yanchor=None, - yref=None, - row=None, - col=None, - secondary_y=None, - exclude_empty_subplots=None, - **kwargs, - ) -> "FigureWidget": + def add_layout_image(self, + arg=None, + layer=None, + name=None, + opacity=None, + sizex=None, + sizey=None, + sizing=None, + source=None, + templateitemname=None, + visible=None, + x=None, + xanchor=None, + xref=None, + y=None, + yanchor=None, + yref=None, + row=None, + col=None, + secondary_y=None, + exclude_empty_subplots=None, + **kwargs + )-> 'FigureWidget': """ Create and add a new image to the figure's layout @@ -24190,37 +23542,35 @@ def add_layout_image( FigureWidget """ from plotly.graph_objs import layout as _layout - - new_obj = _layout.Image( - arg, - layer=layer, - name=name, - opacity=opacity, - sizex=sizex, - sizey=sizey, - sizing=sizing, - source=source, - templateitemname=templateitemname, - visible=visible, - x=x, - xanchor=xanchor, - xref=xref, - y=y, - yanchor=yanchor, - yref=yref, - **kwargs, - ) + new_obj = _layout.Image(arg, + + layer=layer, + name=name, + opacity=opacity, + sizex=sizex, + sizey=sizey, + sizing=sizing, + source=source, + templateitemname=templateitemname, + visible=visible, + x=x, + xanchor=xanchor, + xref=xref, + y=y, + yanchor=yanchor, + yref=yref,**kwargs) return self._add_annotation_like( - "image", - "images", + 'image', + 'images', new_obj, row=row, col=col, secondary_y=secondary_y, exclude_empty_subplots=exclude_empty_subplots, ) - - def select_selections(self, selector=None, row=None, col=None, secondary_y=None): + def select_selections( + self, selector=None, row=None, col=None, secondary_y=None + ): """ Select selections from a particular subplot cell and/or selections that satisfy custom selection criteria. @@ -24312,7 +23662,7 @@ def for_each_selection( Returns the FigureWidget object that the method was called on """ for obj in self._select_annotations_like( - prop="selections", + prop='selections', selector=selector, row=row, col=col, @@ -24323,8 +23673,14 @@ def for_each_selection( return self def update_selections( - self, patch=None, selector=None, row=None, col=None, secondary_y=None, **kwargs - ) -> "FigureWidget": + self, + patch=None, + selector=None, + row=None, + col=None, + secondary_y=None, + **kwargs + ) -> 'FigureWidget': """ Perform a property update operation on all selections that satisfy the specified selection criteria @@ -24374,7 +23730,7 @@ def update_selections( Returns the FigureWidget object that the method was called on """ for obj in self._select_annotations_like( - prop="selections", + prop='selections', selector=selector, row=row, col=col, @@ -24384,27 +23740,26 @@ def update_selections( return self - def add_selection( - self, - arg=None, - line=None, - name=None, - opacity=None, - path=None, - templateitemname=None, - type=None, - x0=None, - x1=None, - xref=None, - y0=None, - y1=None, - yref=None, - row=None, - col=None, - secondary_y=None, - exclude_empty_subplots=None, - **kwargs, - ) -> "FigureWidget": + def add_selection(self, + arg=None, + line=None, + name=None, + opacity=None, + path=None, + templateitemname=None, + type=None, + x0=None, + x1=None, + xref=None, + y0=None, + y1=None, + yref=None, + row=None, + col=None, + secondary_y=None, + exclude_empty_subplots=None, + **kwargs + )-> 'FigureWidget': """ Create and add a new selection to the figure's layout @@ -24499,34 +23854,32 @@ def add_selection( FigureWidget """ from plotly.graph_objs import layout as _layout - - new_obj = _layout.Selection( - arg, - line=line, - name=name, - opacity=opacity, - path=path, - templateitemname=templateitemname, - type=type, - x0=x0, - x1=x1, - xref=xref, - y0=y0, - y1=y1, - yref=yref, - **kwargs, - ) + new_obj = _layout.Selection(arg, + + line=line, + name=name, + opacity=opacity, + path=path, + templateitemname=templateitemname, + type=type, + x0=x0, + x1=x1, + xref=xref, + y0=y0, + y1=y1, + yref=yref,**kwargs) return self._add_annotation_like( - "selection", - "selections", + 'selection', + 'selections', new_obj, row=row, col=col, secondary_y=secondary_y, exclude_empty_subplots=exclude_empty_subplots, ) - - def select_shapes(self, selector=None, row=None, col=None, secondary_y=None): + def select_shapes( + self, selector=None, row=None, col=None, secondary_y=None + ): """ Select shapes from a particular subplot cell and/or shapes that satisfy custom selection criteria. @@ -24572,7 +23925,9 @@ def select_shapes(self, selector=None, row=None, col=None, secondary_y=None): "shapes", selector=selector, row=row, col=col, secondary_y=secondary_y ) - def for_each_shape(self, fn, selector=None, row=None, col=None, secondary_y=None): + def for_each_shape( + self, fn, selector=None, row=None, col=None, secondary_y=None + ): """ Apply a function to all shapes that satisfy the specified selection criteria @@ -24616,7 +23971,7 @@ def for_each_shape(self, fn, selector=None, row=None, col=None, secondary_y=None Returns the FigureWidget object that the method was called on """ for obj in self._select_annotations_like( - prop="shapes", + prop='shapes', selector=selector, row=row, col=col, @@ -24627,8 +23982,14 @@ def for_each_shape(self, fn, selector=None, row=None, col=None, secondary_y=None return self def update_shapes( - self, patch=None, selector=None, row=None, col=None, secondary_y=None, **kwargs - ) -> "FigureWidget": + self, + patch=None, + selector=None, + row=None, + col=None, + secondary_y=None, + **kwargs + ) -> 'FigureWidget': """ Perform a property update operation on all shapes that satisfy the specified selection criteria @@ -24678,7 +24039,7 @@ def update_shapes( Returns the FigureWidget object that the method was called on """ for obj in self._select_annotations_like( - prop="shapes", + prop='shapes', selector=selector, row=row, col=col, @@ -24688,47 +24049,46 @@ def update_shapes( return self - def add_shape( - self, - arg=None, - editable=None, - fillcolor=None, - fillrule=None, - label=None, - layer=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - name=None, - opacity=None, - path=None, - showlegend=None, - templateitemname=None, - type=None, - visible=None, - x0=None, - x0shift=None, - x1=None, - x1shift=None, - xanchor=None, - xref=None, - xsizemode=None, - y0=None, - y0shift=None, - y1=None, - y1shift=None, - yanchor=None, - yref=None, - ysizemode=None, - row=None, - col=None, - secondary_y=None, - exclude_empty_subplots=None, - **kwargs, - ) -> "FigureWidget": + def add_shape(self, + arg=None, + editable=None, + fillcolor=None, + fillrule=None, + label=None, + layer=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + name=None, + opacity=None, + path=None, + showlegend=None, + templateitemname=None, + type=None, + visible=None, + x0=None, + x0shift=None, + x1=None, + x1shift=None, + xanchor=None, + xref=None, + xsizemode=None, + y0=None, + y0shift=None, + y1=None, + y1shift=None, + yanchor=None, + yref=None, + ysizemode=None, + row=None, + col=None, + secondary_y=None, + exclude_empty_subplots=None, + **kwargs + )-> 'FigureWidget': """ Create and add a new shape to the figure's layout @@ -24962,46 +24322,43 @@ def add_shape( FigureWidget """ from plotly.graph_objs import layout as _layout - - new_obj = _layout.Shape( - arg, - editable=editable, - fillcolor=fillcolor, - fillrule=fillrule, - label=label, - layer=layer, - legend=legend, - legendgroup=legendgroup, - legendgrouptitle=legendgrouptitle, - legendrank=legendrank, - legendwidth=legendwidth, - line=line, - name=name, - opacity=opacity, - path=path, - showlegend=showlegend, - templateitemname=templateitemname, - type=type, - visible=visible, - x0=x0, - x0shift=x0shift, - x1=x1, - x1shift=x1shift, - xanchor=xanchor, - xref=xref, - xsizemode=xsizemode, - y0=y0, - y0shift=y0shift, - y1=y1, - y1shift=y1shift, - yanchor=yanchor, - yref=yref, - ysizemode=ysizemode, - **kwargs, - ) + new_obj = _layout.Shape(arg, + + editable=editable, + fillcolor=fillcolor, + fillrule=fillrule, + label=label, + layer=layer, + legend=legend, + legendgroup=legendgroup, + legendgrouptitle=legendgrouptitle, + legendrank=legendrank, + legendwidth=legendwidth, + line=line, + name=name, + opacity=opacity, + path=path, + showlegend=showlegend, + templateitemname=templateitemname, + type=type, + visible=visible, + x0=x0, + x0shift=x0shift, + x1=x1, + x1shift=x1shift, + xanchor=xanchor, + xref=xref, + xsizemode=xsizemode, + y0=y0, + y0shift=y0shift, + y1=y1, + y1shift=y1shift, + yanchor=yanchor, + yref=yref, + ysizemode=ysizemode,**kwargs) return self._add_annotation_like( - "shape", - "shapes", + 'shape', + 'shapes', new_obj, row=row, col=col, diff --git a/packages/python/plotly/plotly/graph_objs/_frame.py b/packages/python/plotly/plotly/graph_objs/_frame.py index a5782f794d2..244825944b0 100644 --- a/packages/python/plotly/plotly/graph_objs/_frame.py +++ b/packages/python/plotly/plotly/graph_objs/_frame.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseFrameHierarchyType as _BaseFrameHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Frame(_BaseFrameHierarchyType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "frame" + _parent_path_str = '' + _path_str = 'frame' _valid_props = {"baseframe", "data", "group", "layout", "name", "traces"} # baseframe @@ -28,11 +30,11 @@ def baseframe(self): ------- str """ - return self["baseframe"] + return self['baseframe'] @baseframe.setter def baseframe(self, val): - self["baseframe"] = val + self['baseframe'] = val # data # ---- @@ -46,11 +48,11 @@ def data(self): ------- Any """ - return self["data"] + return self['data'] @data.setter def data(self, val): - self["data"] = val + self['data'] = val # group # ----- @@ -68,11 +70,11 @@ def group(self): ------- str """ - return self["group"] + return self['group'] @group.setter def group(self, val): - self["group"] = val + self['group'] = val # layout # ------ @@ -86,11 +88,11 @@ def layout(self): ------- Any """ - return self["layout"] + return self['layout'] @layout.setter def layout(self, val): - self["layout"] = val + self['layout'] = val # name # ---- @@ -107,11 +109,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # traces # ------ @@ -127,11 +129,11 @@ def traces(self): ------- Any """ - return self["traces"] + return self['traces'] @traces.setter def traces(self, val): - self["traces"] = val + self['traces'] = val # Self properties description # --------------------------- @@ -159,18 +161,16 @@ def _prop_descriptions(self): A list of trace indices that identify the respective traces in the data attribute """ - - def __init__( - self, - arg=None, - baseframe=None, - data=None, - group=None, - layout=None, - name=None, - traces=None, - **kwargs, - ): + def __init__(self, + arg=None, + baseframe=None, + data=None, + group=None, + layout=None, + name=None, + traces=None, + **kwargs + ): """ Construct a new Frame object @@ -204,10 +204,10 @@ def __init__( ------- Frame """ - super(Frame, self).__init__("frames") + super(Frame, self).__init__('frames') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -219,44 +219,25 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Frame constructor must be a dict or -an instance of :class:`plotly.graph_objs.Frame`""" - ) +an instance of :class:`plotly.graph_objs.Frame`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("baseframe", None) - _v = baseframe if baseframe is not None else _v - if _v is not None: - self["baseframe"] = _v - _v = arg.pop("data", None) - _v = data if data is not None else _v - if _v is not None: - self["data"] = _v - _v = arg.pop("group", None) - _v = group if group is not None else _v - if _v is not None: - self["group"] = _v - _v = arg.pop("layout", None) - _v = layout if layout is not None else _v - if _v is not None: - self["layout"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("traces", None) - _v = traces if traces is not None else _v - if _v is not None: - self["traces"] = _v + self._init_provided('baseframe', arg, baseframe) + self._init_provided('data', arg, data) + self._init_provided('group', arg, group) + self._init_provided('layout', arg, layout) + self._init_provided('name', arg, name) + self._init_provided('traces', arg, traces) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_funnel.py b/packages/python/plotly/plotly/graph_objs/_funnel.py index 020103db494..b3386571550 100644 --- a/packages/python/plotly/plotly/graph_objs/_funnel.py +++ b/packages/python/plotly/plotly/graph_objs/_funnel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,77 +8,9 @@ class Funnel(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "funnel" - _valid_props = { - "alignmentgroup", - "cliponaxis", - "connector", - "constraintext", - "customdata", - "customdatasrc", - "dx", - "dy", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "insidetextanchor", - "insidetextfont", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "marker", - "meta", - "metasrc", - "name", - "offset", - "offsetgroup", - "opacity", - "orientation", - "outsidetextfont", - "selectedpoints", - "showlegend", - "stream", - "text", - "textangle", - "textfont", - "textinfo", - "textposition", - "textpositionsrc", - "textsrc", - "texttemplate", - "texttemplatesrc", - "type", - "uid", - "uirevision", - "visible", - "width", - "x", - "x0", - "xaxis", - "xhoverformat", - "xperiod", - "xperiod0", - "xperiodalignment", - "xsrc", - "y", - "y0", - "yaxis", - "yhoverformat", - "yperiod", - "yperiod0", - "yperiodalignment", - "ysrc", - "zorder", - } + _parent_path_str = '' + _path_str = 'funnel' + _valid_props = {"alignmentgroup", "cliponaxis", "connector", "constraintext", "customdata", "customdatasrc", "dx", "dy", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "insidetextanchor", "insidetextfont", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "marker", "meta", "metasrc", "name", "offset", "offsetgroup", "opacity", "orientation", "outsidetextfont", "selectedpoints", "showlegend", "stream", "text", "textangle", "textfont", "textinfo", "textposition", "textpositionsrc", "textsrc", "texttemplate", "texttemplatesrc", "type", "uid", "uirevision", "visible", "width", "x", "x0", "xaxis", "xhoverformat", "xperiod", "xperiod0", "xperiodalignment", "xsrc", "y", "y0", "yaxis", "yhoverformat", "yperiod", "yperiod0", "yperiodalignment", "ysrc", "zorder"} # alignmentgroup # -------------- @@ -95,11 +29,11 @@ def alignmentgroup(self): ------- str """ - return self["alignmentgroup"] + return self['alignmentgroup'] @alignmentgroup.setter def alignmentgroup(self, val): - self["alignmentgroup"] = val + self['alignmentgroup'] = val # cliponaxis # ---------- @@ -118,11 +52,11 @@ def cliponaxis(self): ------- bool """ - return self["cliponaxis"] + return self['cliponaxis'] @cliponaxis.setter def cliponaxis(self, val): - self["cliponaxis"] = val + self['cliponaxis'] = val # connector # --------- @@ -135,27 +69,15 @@ def connector(self): - A dict of string/value properties that will be passed to the Connector constructor - Supported dict properties: - - fillcolor - Sets the fill color. - line - :class:`plotly.graph_objects.funnel.connector.L - ine` instance or dict with compatible - properties - visible - Determines if connector regions and lines are - drawn. - Returns ------- plotly.graph_objs.funnel.Connector """ - return self["connector"] + return self['connector'] @connector.setter def connector(self, val): - self["connector"] = val + self['connector'] = val # constraintext # ------------- @@ -173,11 +95,11 @@ def constraintext(self): ------- Any """ - return self["constraintext"] + return self['constraintext'] @constraintext.setter def constraintext(self, val): - self["constraintext"] = val + self['constraintext'] = val # customdata # ---------- @@ -196,11 +118,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -217,11 +139,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # dx # -- @@ -237,11 +159,11 @@ def dx(self): ------- int|float """ - return self["dx"] + return self['dx'] @dx.setter def dx(self, val): - self["dx"] = val + self['dx'] = val # dy # -- @@ -257,11 +179,11 @@ def dy(self): ------- int|float """ - return self["dy"] + return self['dy'] @dy.setter def dy(self, val): - self["dy"] = val + self['dy'] = val # hoverinfo # --------- @@ -283,11 +205,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -304,11 +226,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -321,53 +243,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.funnel.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -409,11 +293,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -430,11 +314,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -456,11 +340,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -477,11 +361,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -499,11 +383,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -519,11 +403,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # insidetextanchor # ---------------- @@ -541,11 +425,11 @@ def insidetextanchor(self): ------- Any """ - return self["insidetextanchor"] + return self['insidetextanchor'] @insidetextanchor.setter def insidetextanchor(self, val): - self["insidetextanchor"] = val + self['insidetextanchor'] = val # insidetextfont # -------------- @@ -560,88 +444,15 @@ def insidetextfont(self): - A dict of string/value properties that will be passed to the Insidetextfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.funnel.Insidetextfont """ - return self["insidetextfont"] + return self['insidetextfont'] @insidetextfont.setter def insidetextfont(self, val): - self["insidetextfont"] = val + self['insidetextfont'] = val # legend # ------ @@ -662,11 +473,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -685,11 +496,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -702,22 +513,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.funnel.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -740,11 +544,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -761,11 +565,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # marker # ------ @@ -778,113 +582,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.funnel.marker.Colo - rBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - line - :class:`plotly.graph_objects.funnel.marker.Line - ` instance or dict with compatible properties - opacity - Sets the opacity of the bars. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. - Returns ------- plotly.graph_objs.funnel.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # meta # ---- @@ -908,11 +614,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -928,11 +634,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -950,11 +656,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # offset # ------ @@ -972,11 +678,11 @@ def offset(self): ------- int|float """ - return self["offset"] + return self['offset'] @offset.setter def offset(self, val): - self["offset"] = val + self['offset'] = val # offsetgroup # ----------- @@ -995,11 +701,11 @@ def offsetgroup(self): ------- str """ - return self["offsetgroup"] + return self['offsetgroup'] @offsetgroup.setter def offsetgroup(self, val): - self["offsetgroup"] = val + self['offsetgroup'] = val # opacity # ------- @@ -1015,11 +721,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # orientation # ----------- @@ -1041,11 +747,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outsidetextfont # --------------- @@ -1060,88 +766,15 @@ def outsidetextfont(self): - A dict of string/value properties that will be passed to the Outsidetextfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.funnel.Outsidetextfont """ - return self["outsidetextfont"] + return self['outsidetextfont'] @outsidetextfont.setter def outsidetextfont(self, val): - self["outsidetextfont"] = val + self['outsidetextfont'] = val # selectedpoints # -------------- @@ -1161,11 +794,11 @@ def selectedpoints(self): ------- Any """ - return self["selectedpoints"] + return self['selectedpoints'] @selectedpoints.setter def selectedpoints(self, val): - self["selectedpoints"] = val + self['selectedpoints'] = val # showlegend # ---------- @@ -1182,11 +815,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # stream # ------ @@ -1199,27 +832,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.funnel.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # text # ---- @@ -1242,11 +863,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textangle # --------- @@ -1267,11 +888,11 @@ def textangle(self): ------- int|float """ - return self["textangle"] + return self['textangle'] @textangle.setter def textangle(self, val): - self["textangle"] = val + self['textangle'] = val # textfont # -------- @@ -1286,88 +907,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.funnel.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # textinfo # -------- @@ -1388,11 +936,11 @@ def textinfo(self): ------- Any """ - return self["textinfo"] + return self['textinfo'] @textinfo.setter def textinfo(self, val): - self["textinfo"] = val + self['textinfo'] = val # textposition # ------------ @@ -1417,11 +965,11 @@ def textposition(self): ------- Any|numpy.ndarray """ - return self["textposition"] + return self['textposition'] @textposition.setter def textposition(self, val): - self["textposition"] = val + self['textposition'] = val # textpositionsrc # --------------- @@ -1438,11 +986,11 @@ def textpositionsrc(self): ------- str """ - return self["textpositionsrc"] + return self['textpositionsrc'] @textpositionsrc.setter def textpositionsrc(self, val): - self["textpositionsrc"] = val + self['textpositionsrc'] = val # textsrc # ------- @@ -1458,11 +1006,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # texttemplate # ------------ @@ -1494,11 +1042,11 @@ def texttemplate(self): ------- str|numpy.ndarray """ - return self["texttemplate"] + return self['texttemplate'] @texttemplate.setter def texttemplate(self, val): - self["texttemplate"] = val + self['texttemplate'] = val # texttemplatesrc # --------------- @@ -1515,11 +1063,11 @@ def texttemplatesrc(self): ------- str """ - return self["texttemplatesrc"] + return self['texttemplatesrc'] @texttemplatesrc.setter def texttemplatesrc(self, val): - self["texttemplatesrc"] = val + self['texttemplatesrc'] = val # uid # --- @@ -1537,11 +1085,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1570,11 +1118,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # visible # ------- @@ -1593,11 +1141,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # width # ----- @@ -1613,11 +1161,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # x # - @@ -1633,11 +1181,11 @@ def x(self): ------- numpy.ndarray """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # x0 # -- @@ -1654,11 +1202,11 @@ def x0(self): ------- Any """ - return self["x0"] + return self['x0'] @x0.setter def x0(self, val): - self["x0"] = val + self['x0'] = val # xaxis # ----- @@ -1679,11 +1227,11 @@ def xaxis(self): ------- str """ - return self["xaxis"] + return self['xaxis'] @xaxis.setter def xaxis(self, val): - self["xaxis"] = val + self['xaxis'] = val # xhoverformat # ------------ @@ -1710,11 +1258,11 @@ def xhoverformat(self): ------- str """ - return self["xhoverformat"] + return self['xhoverformat'] @xhoverformat.setter def xhoverformat(self, val): - self["xhoverformat"] = val + self['xhoverformat'] = val # xperiod # ------- @@ -1732,11 +1280,11 @@ def xperiod(self): ------- Any """ - return self["xperiod"] + return self['xperiod'] @xperiod.setter def xperiod(self, val): - self["xperiod"] = val + self['xperiod'] = val # xperiod0 # -------- @@ -1755,11 +1303,11 @@ def xperiod0(self): ------- Any """ - return self["xperiod0"] + return self['xperiod0'] @xperiod0.setter def xperiod0(self, val): - self["xperiod0"] = val + self['xperiod0'] = val # xperiodalignment # ---------------- @@ -1777,11 +1325,11 @@ def xperiodalignment(self): ------- Any """ - return self["xperiodalignment"] + return self['xperiodalignment'] @xperiodalignment.setter def xperiodalignment(self, val): - self["xperiodalignment"] = val + self['xperiodalignment'] = val # xsrc # ---- @@ -1797,11 +1345,11 @@ def xsrc(self): ------- str """ - return self["xsrc"] + return self['xsrc'] @xsrc.setter def xsrc(self, val): - self["xsrc"] = val + self['xsrc'] = val # y # - @@ -1817,11 +1365,11 @@ def y(self): ------- numpy.ndarray """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # y0 # -- @@ -1838,11 +1386,11 @@ def y0(self): ------- Any """ - return self["y0"] + return self['y0'] @y0.setter def y0(self, val): - self["y0"] = val + self['y0'] = val # yaxis # ----- @@ -1863,11 +1411,11 @@ def yaxis(self): ------- str """ - return self["yaxis"] + return self['yaxis'] @yaxis.setter def yaxis(self, val): - self["yaxis"] = val + self['yaxis'] = val # yhoverformat # ------------ @@ -1894,11 +1442,11 @@ def yhoverformat(self): ------- str """ - return self["yhoverformat"] + return self['yhoverformat'] @yhoverformat.setter def yhoverformat(self, val): - self["yhoverformat"] = val + self['yhoverformat'] = val # yperiod # ------- @@ -1916,11 +1464,11 @@ def yperiod(self): ------- Any """ - return self["yperiod"] + return self['yperiod'] @yperiod.setter def yperiod(self, val): - self["yperiod"] = val + self['yperiod'] = val # yperiod0 # -------- @@ -1939,11 +1487,11 @@ def yperiod0(self): ------- Any """ - return self["yperiod0"] + return self['yperiod0'] @yperiod0.setter def yperiod0(self, val): - self["yperiod0"] = val + self['yperiod0'] = val # yperiodalignment # ---------------- @@ -1961,11 +1509,11 @@ def yperiodalignment(self): ------- Any """ - return self["yperiodalignment"] + return self['yperiodalignment'] @yperiodalignment.setter def yperiodalignment(self, val): - self["yperiodalignment"] = val + self['yperiodalignment'] = val # ysrc # ---- @@ -1981,11 +1529,11 @@ def ysrc(self): ------- str """ - return self["ysrc"] + return self['ysrc'] @ysrc.setter def ysrc(self, val): - self["ysrc"] = val + self['ysrc'] = val # zorder # ------ @@ -2003,17 +1551,17 @@ def zorder(self): ------- int """ - return self["zorder"] + return self['zorder'] @zorder.setter def zorder(self, val): - self["zorder"] = val + self['zorder'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -2375,78 +1923,76 @@ def _prop_descriptions(self): traces with higher `zorder` appear in front of those with lower `zorder`. """ - - def __init__( - self, - arg=None, - alignmentgroup=None, - cliponaxis=None, - connector=None, - constraintext=None, - customdata=None, - customdatasrc=None, - dx=None, - dy=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - insidetextanchor=None, - insidetextfont=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - marker=None, - meta=None, - metasrc=None, - name=None, - offset=None, - offsetgroup=None, - opacity=None, - orientation=None, - outsidetextfont=None, - selectedpoints=None, - showlegend=None, - stream=None, - text=None, - textangle=None, - textfont=None, - textinfo=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - visible=None, - width=None, - x=None, - x0=None, - xaxis=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - y=None, - y0=None, - yaxis=None, - yhoverformat=None, - yperiod=None, - yperiod0=None, - yperiodalignment=None, - ysrc=None, - zorder=None, - **kwargs, - ): + def __init__(self, + arg=None, + alignmentgroup=None, + cliponaxis=None, + connector=None, + constraintext=None, + customdata=None, + customdatasrc=None, + dx=None, + dy=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + insidetextanchor=None, + insidetextfont=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + marker=None, + meta=None, + metasrc=None, + name=None, + offset=None, + offsetgroup=None, + opacity=None, + orientation=None, + outsidetextfont=None, + selectedpoints=None, + showlegend=None, + stream=None, + text=None, + textangle=None, + textfont=None, + textinfo=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + visible=None, + width=None, + x=None, + x0=None, + xaxis=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + y=None, + y0=None, + yaxis=None, + yhoverformat=None, + yperiod=None, + yperiod0=None, + yperiodalignment=None, + ysrc=None, + zorder=None, + **kwargs + ): """ Construct a new Funnel object @@ -2821,10 +2367,10 @@ def __init__( ------- Funnel """ - super(Funnel, self).__init__("funnel") + super(Funnel, self).__init__('funnel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2836,290 +2382,91 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Funnel constructor must be a dict or -an instance of :class:`plotly.graph_objs.Funnel`""" - ) +an instance of :class:`plotly.graph_objs.Funnel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("alignmentgroup", None) - _v = alignmentgroup if alignmentgroup is not None else _v - if _v is not None: - self["alignmentgroup"] = _v - _v = arg.pop("cliponaxis", None) - _v = cliponaxis if cliponaxis is not None else _v - if _v is not None: - self["cliponaxis"] = _v - _v = arg.pop("connector", None) - _v = connector if connector is not None else _v - if _v is not None: - self["connector"] = _v - _v = arg.pop("constraintext", None) - _v = constraintext if constraintext is not None else _v - if _v is not None: - self["constraintext"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("dx", None) - _v = dx if dx is not None else _v - if _v is not None: - self["dx"] = _v - _v = arg.pop("dy", None) - _v = dy if dy is not None else _v - if _v is not None: - self["dy"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("insidetextanchor", None) - _v = insidetextanchor if insidetextanchor is not None else _v - if _v is not None: - self["insidetextanchor"] = _v - _v = arg.pop("insidetextfont", None) - _v = insidetextfont if insidetextfont is not None else _v - if _v is not None: - self["insidetextfont"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("offset", None) - _v = offset if offset is not None else _v - if _v is not None: - self["offset"] = _v - _v = arg.pop("offsetgroup", None) - _v = offsetgroup if offsetgroup is not None else _v - if _v is not None: - self["offsetgroup"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outsidetextfont", None) - _v = outsidetextfont if outsidetextfont is not None else _v - if _v is not None: - self["outsidetextfont"] = _v - _v = arg.pop("selectedpoints", None) - _v = selectedpoints if selectedpoints is not None else _v - if _v is not None: - self["selectedpoints"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textangle", None) - _v = textangle if textangle is not None else _v - if _v is not None: - self["textangle"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v - _v = arg.pop("textinfo", None) - _v = textinfo if textinfo is not None else _v - if _v is not None: - self["textinfo"] = _v - _v = arg.pop("textposition", None) - _v = textposition if textposition is not None else _v - if _v is not None: - self["textposition"] = _v - _v = arg.pop("textpositionsrc", None) - _v = textpositionsrc if textpositionsrc is not None else _v - if _v is not None: - self["textpositionsrc"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("texttemplate", None) - _v = texttemplate if texttemplate is not None else _v - if _v is not None: - self["texttemplate"] = _v - _v = arg.pop("texttemplatesrc", None) - _v = texttemplatesrc if texttemplatesrc is not None else _v - if _v is not None: - self["texttemplatesrc"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("x0", None) - _v = x0 if x0 is not None else _v - if _v is not None: - self["x0"] = _v - _v = arg.pop("xaxis", None) - _v = xaxis if xaxis is not None else _v - if _v is not None: - self["xaxis"] = _v - _v = arg.pop("xhoverformat", None) - _v = xhoverformat if xhoverformat is not None else _v - if _v is not None: - self["xhoverformat"] = _v - _v = arg.pop("xperiod", None) - _v = xperiod if xperiod is not None else _v - if _v is not None: - self["xperiod"] = _v - _v = arg.pop("xperiod0", None) - _v = xperiod0 if xperiod0 is not None else _v - if _v is not None: - self["xperiod0"] = _v - _v = arg.pop("xperiodalignment", None) - _v = xperiodalignment if xperiodalignment is not None else _v - if _v is not None: - self["xperiodalignment"] = _v - _v = arg.pop("xsrc", None) - _v = xsrc if xsrc is not None else _v - if _v is not None: - self["xsrc"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("y0", None) - _v = y0 if y0 is not None else _v - if _v is not None: - self["y0"] = _v - _v = arg.pop("yaxis", None) - _v = yaxis if yaxis is not None else _v - if _v is not None: - self["yaxis"] = _v - _v = arg.pop("yhoverformat", None) - _v = yhoverformat if yhoverformat is not None else _v - if _v is not None: - self["yhoverformat"] = _v - _v = arg.pop("yperiod", None) - _v = yperiod if yperiod is not None else _v - if _v is not None: - self["yperiod"] = _v - _v = arg.pop("yperiod0", None) - _v = yperiod0 if yperiod0 is not None else _v - if _v is not None: - self["yperiod0"] = _v - _v = arg.pop("yperiodalignment", None) - _v = yperiodalignment if yperiodalignment is not None else _v - if _v is not None: - self["yperiodalignment"] = _v - _v = arg.pop("ysrc", None) - _v = ysrc if ysrc is not None else _v - if _v is not None: - self["ysrc"] = _v - _v = arg.pop("zorder", None) - _v = zorder if zorder is not None else _v - if _v is not None: - self["zorder"] = _v + self._init_provided('alignmentgroup', arg, alignmentgroup) + self._init_provided('cliponaxis', arg, cliponaxis) + self._init_provided('connector', arg, connector) + self._init_provided('constraintext', arg, constraintext) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('dx', arg, dx) + self._init_provided('dy', arg, dy) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('insidetextanchor', arg, insidetextanchor) + self._init_provided('insidetextfont', arg, insidetextfont) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('marker', arg, marker) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('offset', arg, offset) + self._init_provided('offsetgroup', arg, offsetgroup) + self._init_provided('opacity', arg, opacity) + self._init_provided('orientation', arg, orientation) + self._init_provided('outsidetextfont', arg, outsidetextfont) + self._init_provided('selectedpoints', arg, selectedpoints) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('stream', arg, stream) + self._init_provided('text', arg, text) + self._init_provided('textangle', arg, textangle) + self._init_provided('textfont', arg, textfont) + self._init_provided('textinfo', arg, textinfo) + self._init_provided('textposition', arg, textposition) + self._init_provided('textpositionsrc', arg, textpositionsrc) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('texttemplate', arg, texttemplate) + self._init_provided('texttemplatesrc', arg, texttemplatesrc) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('visible', arg, visible) + self._init_provided('width', arg, width) + self._init_provided('x', arg, x) + self._init_provided('x0', arg, x0) + self._init_provided('xaxis', arg, xaxis) + self._init_provided('xhoverformat', arg, xhoverformat) + self._init_provided('xperiod', arg, xperiod) + self._init_provided('xperiod0', arg, xperiod0) + self._init_provided('xperiodalignment', arg, xperiodalignment) + self._init_provided('xsrc', arg, xsrc) + self._init_provided('y', arg, y) + self._init_provided('y0', arg, y0) + self._init_provided('yaxis', arg, yaxis) + self._init_provided('yhoverformat', arg, yhoverformat) + self._init_provided('yperiod', arg, yperiod) + self._init_provided('yperiod0', arg, yperiod0) + self._init_provided('yperiodalignment', arg, yperiodalignment) + self._init_provided('ysrc', arg, ysrc) + self._init_provided('zorder', arg, zorder) # Read-only literals # ------------------ - self._props["type"] = "funnel" - arg.pop("type", None) + self._props['type'] = 'funnel' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_funnelarea.py b/packages/python/plotly/plotly/graph_objs/_funnelarea.py index 9397fde43df..301445e0e66 100644 --- a/packages/python/plotly/plotly/graph_objs/_funnelarea.py +++ b/packages/python/plotly/plotly/graph_objs/_funnelarea.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,57 +8,9 @@ class Funnelarea(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "funnelarea" - _valid_props = { - "aspectratio", - "baseratio", - "customdata", - "customdatasrc", - "dlabel", - "domain", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "insidetextfont", - "label0", - "labels", - "labelssrc", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "marker", - "meta", - "metasrc", - "name", - "opacity", - "scalegroup", - "showlegend", - "stream", - "text", - "textfont", - "textinfo", - "textposition", - "textpositionsrc", - "textsrc", - "texttemplate", - "texttemplatesrc", - "title", - "type", - "uid", - "uirevision", - "values", - "valuessrc", - "visible", - } + _parent_path_str = '' + _path_str = 'funnelarea' + _valid_props = {"aspectratio", "baseratio", "customdata", "customdatasrc", "dlabel", "domain", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "insidetextfont", "label0", "labels", "labelssrc", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "marker", "meta", "metasrc", "name", "opacity", "scalegroup", "showlegend", "stream", "text", "textfont", "textinfo", "textposition", "textpositionsrc", "textsrc", "texttemplate", "texttemplatesrc", "title", "type", "uid", "uirevision", "values", "valuessrc", "visible"} # aspectratio # ----------- @@ -72,11 +26,11 @@ def aspectratio(self): ------- int|float """ - return self["aspectratio"] + return self['aspectratio'] @aspectratio.setter def aspectratio(self, val): - self["aspectratio"] = val + self['aspectratio'] = val # baseratio # --------- @@ -92,11 +46,11 @@ def baseratio(self): ------- int|float """ - return self["baseratio"] + return self['baseratio'] @baseratio.setter def baseratio(self, val): - self["baseratio"] = val + self['baseratio'] = val # customdata # ---------- @@ -115,11 +69,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -136,11 +90,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # dlabel # ------ @@ -156,11 +110,11 @@ def dlabel(self): ------- int|float """ - return self["dlabel"] + return self['dlabel'] @dlabel.setter def dlabel(self, val): - self["dlabel"] = val + self['dlabel'] = val # domain # ------ @@ -173,32 +127,15 @@ def domain(self): - A dict of string/value properties that will be passed to the Domain constructor - Supported dict properties: - - column - If there is a layout grid, use the domain for - this column in the grid for this funnelarea - trace . - row - If there is a layout grid, use the domain for - this row in the grid for this funnelarea trace - . - x - Sets the horizontal domain of this funnelarea - trace (in plot fraction). - y - Sets the vertical domain of this funnelarea - trace (in plot fraction). - Returns ------- plotly.graph_objs.funnelarea.Domain """ - return self["domain"] + return self['domain'] @domain.setter def domain(self, val): - self["domain"] = val + self['domain'] = val # hoverinfo # --------- @@ -220,11 +157,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -241,11 +178,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -258,53 +195,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.funnelarea.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -346,11 +245,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -367,11 +266,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -393,11 +292,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -414,11 +313,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -436,11 +335,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -456,11 +355,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # insidetextfont # -------------- @@ -475,88 +374,15 @@ def insidetextfont(self): - A dict of string/value properties that will be passed to the Insidetextfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.funnelarea.Insidetextfont """ - return self["insidetextfont"] + return self['insidetextfont'] @insidetextfont.setter def insidetextfont(self, val): - self["insidetextfont"] = val + self['insidetextfont'] = val # label0 # ------ @@ -574,11 +400,11 @@ def label0(self): ------- int|float """ - return self["label0"] + return self['label0'] @label0.setter def label0(self, val): - self["label0"] = val + self['label0'] = val # labels # ------ @@ -598,11 +424,11 @@ def labels(self): ------- numpy.ndarray """ - return self["labels"] + return self['labels'] @labels.setter def labels(self, val): - self["labels"] = val + self['labels'] = val # labelssrc # --------- @@ -618,11 +444,11 @@ def labelssrc(self): ------- str """ - return self["labelssrc"] + return self['labelssrc'] @labelssrc.setter def labelssrc(self, val): - self["labelssrc"] = val + self['labelssrc'] = val # legend # ------ @@ -643,11 +469,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -666,11 +492,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -683,22 +509,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.funnelarea.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -721,11 +540,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -742,11 +561,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # marker # ------ @@ -759,31 +578,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - colors - Sets the color of each sector. If not - specified, the default trace color set is used - to pick the sector colors. - colorssrc - Sets the source reference on Chart Studio Cloud - for `colors`. - line - :class:`plotly.graph_objects.funnelarea.marker. - Line` instance or dict with compatible - properties - pattern - Sets the pattern within the marker. - Returns ------- plotly.graph_objs.funnelarea.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # meta # ---- @@ -807,11 +610,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -827,11 +630,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -849,11 +652,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -869,11 +672,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # scalegroup # ---------- @@ -892,11 +695,11 @@ def scalegroup(self): ------- str """ - return self["scalegroup"] + return self['scalegroup'] @scalegroup.setter def scalegroup(self, val): - self["scalegroup"] = val + self['scalegroup'] = val # showlegend # ---------- @@ -913,11 +716,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # stream # ------ @@ -930,27 +733,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.funnelarea.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # text # ---- @@ -970,11 +761,11 @@ def text(self): ------- numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textfont # -------- @@ -989,88 +780,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.funnelarea.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # textinfo # -------- @@ -1089,11 +807,11 @@ def textinfo(self): ------- Any """ - return self["textinfo"] + return self['textinfo'] @textinfo.setter def textinfo(self, val): - self["textinfo"] = val + self['textinfo'] = val # textposition # ------------ @@ -1111,11 +829,11 @@ def textposition(self): ------- Any|numpy.ndarray """ - return self["textposition"] + return self['textposition'] @textposition.setter def textposition(self, val): - self["textposition"] = val + self['textposition'] = val # textpositionsrc # --------------- @@ -1132,11 +850,11 @@ def textpositionsrc(self): ------- str """ - return self["textpositionsrc"] + return self['textpositionsrc'] @textpositionsrc.setter def textpositionsrc(self, val): - self["textpositionsrc"] = val + self['textpositionsrc'] = val # textsrc # ------- @@ -1152,11 +870,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # texttemplate # ------------ @@ -1187,11 +905,11 @@ def texttemplate(self): ------- str|numpy.ndarray """ - return self["texttemplate"] + return self['texttemplate'] @texttemplate.setter def texttemplate(self, val): - self["texttemplate"] = val + self['texttemplate'] = val # texttemplatesrc # --------------- @@ -1208,11 +926,11 @@ def texttemplatesrc(self): ------- str """ - return self["texttemplatesrc"] + return self['texttemplatesrc'] @texttemplatesrc.setter def texttemplatesrc(self, val): - self["texttemplatesrc"] = val + self['texttemplatesrc'] = val # title # ----- @@ -1225,25 +943,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets the font used for `title`. - position - Specifies the location of the `title`. - text - Sets the title of the chart. If it is empty, no - title is displayed. - Returns ------- plotly.graph_objs.funnelarea.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # uid # --- @@ -1261,11 +969,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1294,11 +1002,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # values # ------ @@ -1315,11 +1023,11 @@ def values(self): ------- numpy.ndarray """ - return self["values"] + return self['values'] @values.setter def values(self, val): - self["values"] = val + self['values'] = val # valuessrc # --------- @@ -1335,11 +1043,11 @@ def valuessrc(self): ------- str """ - return self["valuessrc"] + return self['valuessrc'] @valuessrc.setter def valuessrc(self, val): - self["valuessrc"] = val + self['valuessrc'] = val # visible # ------- @@ -1358,17 +1066,17 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -1607,58 +1315,56 @@ def _prop_descriptions(self): a legend item (provided that the legend itself is visible). """ - - def __init__( - self, - arg=None, - aspectratio=None, - baseratio=None, - customdata=None, - customdatasrc=None, - dlabel=None, - domain=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - insidetextfont=None, - label0=None, - labels=None, - labelssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - marker=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - scalegroup=None, - showlegend=None, - stream=None, - text=None, - textfont=None, - textinfo=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - title=None, - uid=None, - uirevision=None, - values=None, - valuessrc=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + aspectratio=None, + baseratio=None, + customdata=None, + customdatasrc=None, + dlabel=None, + domain=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + insidetextfont=None, + label0=None, + labels=None, + labelssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + marker=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + scalegroup=None, + showlegend=None, + stream=None, + text=None, + textfont=None, + textinfo=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + title=None, + uid=None, + uirevision=None, + values=None, + valuessrc=None, + visible=None, + **kwargs + ): """ Construct a new Funnelarea object @@ -1909,10 +1615,10 @@ def __init__( ------- Funnelarea """ - super(Funnelarea, self).__init__("funnelarea") + super(Funnelarea, self).__init__('funnelarea') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1924,210 +1630,71 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Funnelarea constructor must be a dict or -an instance of :class:`plotly.graph_objs.Funnelarea`""" - ) +an instance of :class:`plotly.graph_objs.Funnelarea`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("aspectratio", None) - _v = aspectratio if aspectratio is not None else _v - if _v is not None: - self["aspectratio"] = _v - _v = arg.pop("baseratio", None) - _v = baseratio if baseratio is not None else _v - if _v is not None: - self["baseratio"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("dlabel", None) - _v = dlabel if dlabel is not None else _v - if _v is not None: - self["dlabel"] = _v - _v = arg.pop("domain", None) - _v = domain if domain is not None else _v - if _v is not None: - self["domain"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("insidetextfont", None) - _v = insidetextfont if insidetextfont is not None else _v - if _v is not None: - self["insidetextfont"] = _v - _v = arg.pop("label0", None) - _v = label0 if label0 is not None else _v - if _v is not None: - self["label0"] = _v - _v = arg.pop("labels", None) - _v = labels if labels is not None else _v - if _v is not None: - self["labels"] = _v - _v = arg.pop("labelssrc", None) - _v = labelssrc if labelssrc is not None else _v - if _v is not None: - self["labelssrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("scalegroup", None) - _v = scalegroup if scalegroup is not None else _v - if _v is not None: - self["scalegroup"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v - _v = arg.pop("textinfo", None) - _v = textinfo if textinfo is not None else _v - if _v is not None: - self["textinfo"] = _v - _v = arg.pop("textposition", None) - _v = textposition if textposition is not None else _v - if _v is not None: - self["textposition"] = _v - _v = arg.pop("textpositionsrc", None) - _v = textpositionsrc if textpositionsrc is not None else _v - if _v is not None: - self["textpositionsrc"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("texttemplate", None) - _v = texttemplate if texttemplate is not None else _v - if _v is not None: - self["texttemplate"] = _v - _v = arg.pop("texttemplatesrc", None) - _v = texttemplatesrc if texttemplatesrc is not None else _v - if _v is not None: - self["texttemplatesrc"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("values", None) - _v = values if values is not None else _v - if _v is not None: - self["values"] = _v - _v = arg.pop("valuessrc", None) - _v = valuessrc if valuessrc is not None else _v - if _v is not None: - self["valuessrc"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('aspectratio', arg, aspectratio) + self._init_provided('baseratio', arg, baseratio) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('dlabel', arg, dlabel) + self._init_provided('domain', arg, domain) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('insidetextfont', arg, insidetextfont) + self._init_provided('label0', arg, label0) + self._init_provided('labels', arg, labels) + self._init_provided('labelssrc', arg, labelssrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('marker', arg, marker) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('scalegroup', arg, scalegroup) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('stream', arg, stream) + self._init_provided('text', arg, text) + self._init_provided('textfont', arg, textfont) + self._init_provided('textinfo', arg, textinfo) + self._init_provided('textposition', arg, textposition) + self._init_provided('textpositionsrc', arg, textpositionsrc) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('texttemplate', arg, texttemplate) + self._init_provided('texttemplatesrc', arg, texttemplatesrc) + self._init_provided('title', arg, title) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('values', arg, values) + self._init_provided('valuessrc', arg, valuessrc) + self._init_provided('visible', arg, visible) # Read-only literals # ------------------ - self._props["type"] = "funnelarea" - arg.pop("type", None) + self._props['type'] = 'funnelarea' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_heatmap.py b/packages/python/plotly/plotly/graph_objs/_heatmap.py index cd1b72c1e19..a1c8b74afe3 100644 --- a/packages/python/plotly/plotly/graph_objs/_heatmap.py +++ b/packages/python/plotly/plotly/graph_objs/_heatmap.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,82 +8,9 @@ class Heatmap(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "heatmap" - _valid_props = { - "autocolorscale", - "coloraxis", - "colorbar", - "colorscale", - "connectgaps", - "customdata", - "customdatasrc", - "dx", - "dy", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hoverongaps", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "meta", - "metasrc", - "name", - "opacity", - "reversescale", - "showlegend", - "showscale", - "stream", - "text", - "textfont", - "textsrc", - "texttemplate", - "transpose", - "type", - "uid", - "uirevision", - "visible", - "x", - "x0", - "xaxis", - "xcalendar", - "xgap", - "xhoverformat", - "xperiod", - "xperiod0", - "xperiodalignment", - "xsrc", - "xtype", - "y", - "y0", - "yaxis", - "ycalendar", - "ygap", - "yhoverformat", - "yperiod", - "yperiod0", - "yperiodalignment", - "ysrc", - "ytype", - "z", - "zauto", - "zhoverformat", - "zmax", - "zmid", - "zmin", - "zorder", - "zsmooth", - "zsrc", - } + _parent_path_str = '' + _path_str = 'heatmap' + _valid_props = {"autocolorscale", "coloraxis", "colorbar", "colorscale", "connectgaps", "customdata", "customdatasrc", "dx", "dy", "hoverinfo", "hoverinfosrc", "hoverlabel", "hoverongaps", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "meta", "metasrc", "name", "opacity", "reversescale", "showlegend", "showscale", "stream", "text", "textfont", "textsrc", "texttemplate", "transpose", "type", "uid", "uirevision", "visible", "x", "x0", "xaxis", "xcalendar", "xgap", "xhoverformat", "xperiod", "xperiod0", "xperiodalignment", "xsrc", "xtype", "y", "y0", "yaxis", "ycalendar", "ygap", "yhoverformat", "yperiod", "yperiod0", "yperiodalignment", "ysrc", "ytype", "z", "zauto", "zhoverformat", "zmax", "zmid", "zmin", "zorder", "zsmooth", "zsrc"} # autocolorscale # -------------- @@ -102,11 +31,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # coloraxis # --------- @@ -129,11 +58,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -146,281 +75,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.heatmap - .colorbar.Tickformatstop` instances or dicts - with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.heatmap.colorbar.tickformatstopdefaults), - sets the default property values to use for - elements of heatmap.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.heatmap.colorbar.T - itle` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.heatmap.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -469,11 +132,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # connectgaps # ----------- @@ -492,11 +155,11 @@ def connectgaps(self): ------- bool """ - return self["connectgaps"] + return self['connectgaps'] @connectgaps.setter def connectgaps(self, val): - self["connectgaps"] = val + self['connectgaps'] = val # customdata # ---------- @@ -515,11 +178,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -536,11 +199,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # dx # -- @@ -556,11 +219,11 @@ def dx(self): ------- int|float """ - return self["dx"] + return self['dx'] @dx.setter def dx(self, val): - self["dx"] = val + self['dx'] = val # dy # -- @@ -576,11 +239,11 @@ def dy(self): ------- int|float """ - return self["dy"] + return self['dy'] @dy.setter def dy(self, val): - self["dy"] = val + self['dy'] = val # hoverinfo # --------- @@ -602,11 +265,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -623,11 +286,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -640,53 +303,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.heatmap.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hoverongaps # ----------- @@ -703,11 +328,11 @@ def hoverongaps(self): ------- bool """ - return self["hoverongaps"] + return self['hoverongaps'] @hoverongaps.setter def hoverongaps(self, val): - self["hoverongaps"] = val + self['hoverongaps'] = val # hovertemplate # ------------- @@ -747,11 +372,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -768,11 +393,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -788,11 +413,11 @@ def hovertext(self): ------- numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -809,11 +434,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -831,11 +456,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -851,11 +476,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # legend # ------ @@ -876,11 +501,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -899,11 +524,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -916,22 +541,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.heatmap.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -954,11 +572,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -975,11 +593,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # meta # ---- @@ -1003,11 +621,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -1023,11 +641,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -1045,11 +663,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -1065,11 +683,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # reversescale # ------------ @@ -1087,11 +705,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # showlegend # ---------- @@ -1108,11 +726,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # showscale # --------- @@ -1129,11 +747,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # stream # ------ @@ -1146,27 +764,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.heatmap.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # text # ---- @@ -1182,11 +788,11 @@ def text(self): ------- numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textfont # -------- @@ -1201,61 +807,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.heatmap.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # textsrc # ------- @@ -1271,11 +831,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # texttemplate # ------------ @@ -1305,11 +865,11 @@ def texttemplate(self): ------- str """ - return self["texttemplate"] + return self['texttemplate'] @texttemplate.setter def texttemplate(self, val): - self["texttemplate"] = val + self['texttemplate'] = val # transpose # --------- @@ -1325,11 +885,11 @@ def transpose(self): ------- bool """ - return self["transpose"] + return self['transpose'] @transpose.setter def transpose(self, val): - self["transpose"] = val + self['transpose'] = val # uid # --- @@ -1347,11 +907,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1380,11 +940,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # visible # ------- @@ -1403,11 +963,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # x # - @@ -1423,11 +983,11 @@ def x(self): ------- numpy.ndarray """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # x0 # -- @@ -1444,11 +1004,11 @@ def x0(self): ------- Any """ - return self["x0"] + return self['x0'] @x0.setter def x0(self, val): - self["x0"] = val + self['x0'] = val # xaxis # ----- @@ -1469,11 +1029,11 @@ def xaxis(self): ------- str """ - return self["xaxis"] + return self['xaxis'] @xaxis.setter def xaxis(self, val): - self["xaxis"] = val + self['xaxis'] = val # xcalendar # --------- @@ -1493,11 +1053,11 @@ def xcalendar(self): ------- Any """ - return self["xcalendar"] + return self['xcalendar'] @xcalendar.setter def xcalendar(self, val): - self["xcalendar"] = val + self['xcalendar'] = val # xgap # ---- @@ -1513,11 +1073,11 @@ def xgap(self): ------- int|float """ - return self["xgap"] + return self['xgap'] @xgap.setter def xgap(self, val): - self["xgap"] = val + self['xgap'] = val # xhoverformat # ------------ @@ -1544,11 +1104,11 @@ def xhoverformat(self): ------- str """ - return self["xhoverformat"] + return self['xhoverformat'] @xhoverformat.setter def xhoverformat(self, val): - self["xhoverformat"] = val + self['xhoverformat'] = val # xperiod # ------- @@ -1566,11 +1126,11 @@ def xperiod(self): ------- Any """ - return self["xperiod"] + return self['xperiod'] @xperiod.setter def xperiod(self, val): - self["xperiod"] = val + self['xperiod'] = val # xperiod0 # -------- @@ -1589,11 +1149,11 @@ def xperiod0(self): ------- Any """ - return self["xperiod0"] + return self['xperiod0'] @xperiod0.setter def xperiod0(self, val): - self["xperiod0"] = val + self['xperiod0'] = val # xperiodalignment # ---------------- @@ -1611,11 +1171,11 @@ def xperiodalignment(self): ------- Any """ - return self["xperiodalignment"] + return self['xperiodalignment'] @xperiodalignment.setter def xperiodalignment(self, val): - self["xperiodalignment"] = val + self['xperiodalignment'] = val # xsrc # ---- @@ -1631,11 +1191,11 @@ def xsrc(self): ------- str """ - return self["xsrc"] + return self['xsrc'] @xsrc.setter def xsrc(self, val): - self["xsrc"] = val + self['xsrc'] = val # xtype # ----- @@ -1655,11 +1215,11 @@ def xtype(self): ------- Any """ - return self["xtype"] + return self['xtype'] @xtype.setter def xtype(self, val): - self["xtype"] = val + self['xtype'] = val # y # - @@ -1675,11 +1235,11 @@ def y(self): ------- numpy.ndarray """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # y0 # -- @@ -1696,11 +1256,11 @@ def y0(self): ------- Any """ - return self["y0"] + return self['y0'] @y0.setter def y0(self, val): - self["y0"] = val + self['y0'] = val # yaxis # ----- @@ -1721,11 +1281,11 @@ def yaxis(self): ------- str """ - return self["yaxis"] + return self['yaxis'] @yaxis.setter def yaxis(self, val): - self["yaxis"] = val + self['yaxis'] = val # ycalendar # --------- @@ -1745,11 +1305,11 @@ def ycalendar(self): ------- Any """ - return self["ycalendar"] + return self['ycalendar'] @ycalendar.setter def ycalendar(self, val): - self["ycalendar"] = val + self['ycalendar'] = val # ygap # ---- @@ -1765,11 +1325,11 @@ def ygap(self): ------- int|float """ - return self["ygap"] + return self['ygap'] @ygap.setter def ygap(self, val): - self["ygap"] = val + self['ygap'] = val # yhoverformat # ------------ @@ -1796,11 +1356,11 @@ def yhoverformat(self): ------- str """ - return self["yhoverformat"] + return self['yhoverformat'] @yhoverformat.setter def yhoverformat(self, val): - self["yhoverformat"] = val + self['yhoverformat'] = val # yperiod # ------- @@ -1818,11 +1378,11 @@ def yperiod(self): ------- Any """ - return self["yperiod"] + return self['yperiod'] @yperiod.setter def yperiod(self, val): - self["yperiod"] = val + self['yperiod'] = val # yperiod0 # -------- @@ -1841,11 +1401,11 @@ def yperiod0(self): ------- Any """ - return self["yperiod0"] + return self['yperiod0'] @yperiod0.setter def yperiod0(self, val): - self["yperiod0"] = val + self['yperiod0'] = val # yperiodalignment # ---------------- @@ -1863,11 +1423,11 @@ def yperiodalignment(self): ------- Any """ - return self["yperiodalignment"] + return self['yperiodalignment'] @yperiodalignment.setter def yperiodalignment(self, val): - self["yperiodalignment"] = val + self['yperiodalignment'] = val # ysrc # ---- @@ -1883,11 +1443,11 @@ def ysrc(self): ------- str """ - return self["ysrc"] + return self['ysrc'] @ysrc.setter def ysrc(self, val): - self["ysrc"] = val + self['ysrc'] = val # ytype # ----- @@ -1907,11 +1467,11 @@ def ytype(self): ------- Any """ - return self["ytype"] + return self['ytype'] @ytype.setter def ytype(self, val): - self["ytype"] = val + self['ytype'] = val # z # - @@ -1927,11 +1487,11 @@ def z(self): ------- numpy.ndarray """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # zauto # ----- @@ -1950,11 +1510,11 @@ def zauto(self): ------- bool """ - return self["zauto"] + return self['zauto'] @zauto.setter def zauto(self, val): - self["zauto"] = val + self['zauto'] = val # zhoverformat # ------------ @@ -1975,11 +1535,11 @@ def zhoverformat(self): ------- str """ - return self["zhoverformat"] + return self['zhoverformat'] @zhoverformat.setter def zhoverformat(self, val): - self["zhoverformat"] = val + self['zhoverformat'] = val # zmax # ---- @@ -1996,11 +1556,11 @@ def zmax(self): ------- int|float """ - return self["zmax"] + return self['zmax'] @zmax.setter def zmax(self, val): - self["zmax"] = val + self['zmax'] = val # zmid # ---- @@ -2018,11 +1578,11 @@ def zmid(self): ------- int|float """ - return self["zmid"] + return self['zmid'] @zmid.setter def zmid(self, val): - self["zmid"] = val + self['zmid'] = val # zmin # ---- @@ -2039,11 +1599,11 @@ def zmin(self): ------- int|float """ - return self["zmin"] + return self['zmin'] @zmin.setter def zmin(self, val): - self["zmin"] = val + self['zmin'] = val # zorder # ------ @@ -2061,11 +1621,11 @@ def zorder(self): ------- int """ - return self["zorder"] + return self['zorder'] @zorder.setter def zorder(self, val): - self["zorder"] = val + self['zorder'] = val # zsmooth # ------- @@ -2082,11 +1642,11 @@ def zsmooth(self): ------- Any """ - return self["zsmooth"] + return self['zsmooth'] @zsmooth.setter def zsmooth(self, val): - self["zsmooth"] = val + self['zsmooth'] = val # zsrc # ---- @@ -2102,17 +1662,17 @@ def zsrc(self): ------- str """ - return self["zsrc"] + return self['zsrc'] @zsrc.setter def zsrc(self, val): - self["zsrc"] = val + self['zsrc'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -2480,83 +2040,81 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `z`. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - coloraxis=None, - colorbar=None, - colorscale=None, - connectgaps=None, - customdata=None, - customdatasrc=None, - dx=None, - dy=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hoverongaps=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - reversescale=None, - showlegend=None, - showscale=None, - stream=None, - text=None, - textfont=None, - textsrc=None, - texttemplate=None, - transpose=None, - uid=None, - uirevision=None, - visible=None, - x=None, - x0=None, - xaxis=None, - xcalendar=None, - xgap=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - xtype=None, - y=None, - y0=None, - yaxis=None, - ycalendar=None, - ygap=None, - yhoverformat=None, - yperiod=None, - yperiod0=None, - yperiodalignment=None, - ysrc=None, - ytype=None, - z=None, - zauto=None, - zhoverformat=None, - zmax=None, - zmid=None, - zmin=None, - zorder=None, - zsmooth=None, - zsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + coloraxis=None, + colorbar=None, + colorscale=None, + connectgaps=None, + customdata=None, + customdatasrc=None, + dx=None, + dy=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hoverongaps=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + reversescale=None, + showlegend=None, + showscale=None, + stream=None, + text=None, + textfont=None, + textsrc=None, + texttemplate=None, + transpose=None, + uid=None, + uirevision=None, + visible=None, + x=None, + x0=None, + xaxis=None, + xcalendar=None, + xgap=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + xtype=None, + y=None, + y0=None, + yaxis=None, + ycalendar=None, + ygap=None, + yhoverformat=None, + yperiod=None, + yperiod0=None, + yperiodalignment=None, + ysrc=None, + ytype=None, + z=None, + zauto=None, + zhoverformat=None, + zmax=None, + zmid=None, + zmin=None, + zorder=None, + zsmooth=None, + zsrc=None, + **kwargs + ): """ Construct a new Heatmap object @@ -2948,10 +2506,10 @@ def __init__( ------- Heatmap """ - super(Heatmap, self).__init__("heatmap") + super(Heatmap, self).__init__('heatmap') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2963,310 +2521,96 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Heatmap constructor must be a dict or -an instance of :class:`plotly.graph_objs.Heatmap`""" - ) +an instance of :class:`plotly.graph_objs.Heatmap`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("connectgaps", None) - _v = connectgaps if connectgaps is not None else _v - if _v is not None: - self["connectgaps"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("dx", None) - _v = dx if dx is not None else _v - if _v is not None: - self["dx"] = _v - _v = arg.pop("dy", None) - _v = dy if dy is not None else _v - if _v is not None: - self["dy"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hoverongaps", None) - _v = hoverongaps if hoverongaps is not None else _v - if _v is not None: - self["hoverongaps"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("texttemplate", None) - _v = texttemplate if texttemplate is not None else _v - if _v is not None: - self["texttemplate"] = _v - _v = arg.pop("transpose", None) - _v = transpose if transpose is not None else _v - if _v is not None: - self["transpose"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("x0", None) - _v = x0 if x0 is not None else _v - if _v is not None: - self["x0"] = _v - _v = arg.pop("xaxis", None) - _v = xaxis if xaxis is not None else _v - if _v is not None: - self["xaxis"] = _v - _v = arg.pop("xcalendar", None) - _v = xcalendar if xcalendar is not None else _v - if _v is not None: - self["xcalendar"] = _v - _v = arg.pop("xgap", None) - _v = xgap if xgap is not None else _v - if _v is not None: - self["xgap"] = _v - _v = arg.pop("xhoverformat", None) - _v = xhoverformat if xhoverformat is not None else _v - if _v is not None: - self["xhoverformat"] = _v - _v = arg.pop("xperiod", None) - _v = xperiod if xperiod is not None else _v - if _v is not None: - self["xperiod"] = _v - _v = arg.pop("xperiod0", None) - _v = xperiod0 if xperiod0 is not None else _v - if _v is not None: - self["xperiod0"] = _v - _v = arg.pop("xperiodalignment", None) - _v = xperiodalignment if xperiodalignment is not None else _v - if _v is not None: - self["xperiodalignment"] = _v - _v = arg.pop("xsrc", None) - _v = xsrc if xsrc is not None else _v - if _v is not None: - self["xsrc"] = _v - _v = arg.pop("xtype", None) - _v = xtype if xtype is not None else _v - if _v is not None: - self["xtype"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("y0", None) - _v = y0 if y0 is not None else _v - if _v is not None: - self["y0"] = _v - _v = arg.pop("yaxis", None) - _v = yaxis if yaxis is not None else _v - if _v is not None: - self["yaxis"] = _v - _v = arg.pop("ycalendar", None) - _v = ycalendar if ycalendar is not None else _v - if _v is not None: - self["ycalendar"] = _v - _v = arg.pop("ygap", None) - _v = ygap if ygap is not None else _v - if _v is not None: - self["ygap"] = _v - _v = arg.pop("yhoverformat", None) - _v = yhoverformat if yhoverformat is not None else _v - if _v is not None: - self["yhoverformat"] = _v - _v = arg.pop("yperiod", None) - _v = yperiod if yperiod is not None else _v - if _v is not None: - self["yperiod"] = _v - _v = arg.pop("yperiod0", None) - _v = yperiod0 if yperiod0 is not None else _v - if _v is not None: - self["yperiod0"] = _v - _v = arg.pop("yperiodalignment", None) - _v = yperiodalignment if yperiodalignment is not None else _v - if _v is not None: - self["yperiodalignment"] = _v - _v = arg.pop("ysrc", None) - _v = ysrc if ysrc is not None else _v - if _v is not None: - self["ysrc"] = _v - _v = arg.pop("ytype", None) - _v = ytype if ytype is not None else _v - if _v is not None: - self["ytype"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v - _v = arg.pop("zauto", None) - _v = zauto if zauto is not None else _v - if _v is not None: - self["zauto"] = _v - _v = arg.pop("zhoverformat", None) - _v = zhoverformat if zhoverformat is not None else _v - if _v is not None: - self["zhoverformat"] = _v - _v = arg.pop("zmax", None) - _v = zmax if zmax is not None else _v - if _v is not None: - self["zmax"] = _v - _v = arg.pop("zmid", None) - _v = zmid if zmid is not None else _v - if _v is not None: - self["zmid"] = _v - _v = arg.pop("zmin", None) - _v = zmin if zmin is not None else _v - if _v is not None: - self["zmin"] = _v - _v = arg.pop("zorder", None) - _v = zorder if zorder is not None else _v - if _v is not None: - self["zorder"] = _v - _v = arg.pop("zsmooth", None) - _v = zsmooth if zsmooth is not None else _v - if _v is not None: - self["zsmooth"] = _v - _v = arg.pop("zsrc", None) - _v = zsrc if zsrc is not None else _v - if _v is not None: - self["zsrc"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('connectgaps', arg, connectgaps) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('dx', arg, dx) + self._init_provided('dy', arg, dy) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hoverongaps', arg, hoverongaps) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('showscale', arg, showscale) + self._init_provided('stream', arg, stream) + self._init_provided('text', arg, text) + self._init_provided('textfont', arg, textfont) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('texttemplate', arg, texttemplate) + self._init_provided('transpose', arg, transpose) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('visible', arg, visible) + self._init_provided('x', arg, x) + self._init_provided('x0', arg, x0) + self._init_provided('xaxis', arg, xaxis) + self._init_provided('xcalendar', arg, xcalendar) + self._init_provided('xgap', arg, xgap) + self._init_provided('xhoverformat', arg, xhoverformat) + self._init_provided('xperiod', arg, xperiod) + self._init_provided('xperiod0', arg, xperiod0) + self._init_provided('xperiodalignment', arg, xperiodalignment) + self._init_provided('xsrc', arg, xsrc) + self._init_provided('xtype', arg, xtype) + self._init_provided('y', arg, y) + self._init_provided('y0', arg, y0) + self._init_provided('yaxis', arg, yaxis) + self._init_provided('ycalendar', arg, ycalendar) + self._init_provided('ygap', arg, ygap) + self._init_provided('yhoverformat', arg, yhoverformat) + self._init_provided('yperiod', arg, yperiod) + self._init_provided('yperiod0', arg, yperiod0) + self._init_provided('yperiodalignment', arg, yperiodalignment) + self._init_provided('ysrc', arg, ysrc) + self._init_provided('ytype', arg, ytype) + self._init_provided('z', arg, z) + self._init_provided('zauto', arg, zauto) + self._init_provided('zhoverformat', arg, zhoverformat) + self._init_provided('zmax', arg, zmax) + self._init_provided('zmid', arg, zmid) + self._init_provided('zmin', arg, zmin) + self._init_provided('zorder', arg, zorder) + self._init_provided('zsmooth', arg, zsmooth) + self._init_provided('zsrc', arg, zsrc) # Read-only literals # ------------------ - self._props["type"] = "heatmap" - arg.pop("type", None) + self._props['type'] = 'heatmap' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_histogram.py b/packages/python/plotly/plotly/graph_objs/_histogram.py index 19fc25e00ce..1e9f9c1ebca 100644 --- a/packages/python/plotly/plotly/graph_objs/_histogram.py +++ b/packages/python/plotly/plotly/graph_objs/_histogram.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,77 +8,9 @@ class Histogram(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "histogram" - _valid_props = { - "alignmentgroup", - "autobinx", - "autobiny", - "bingroup", - "cliponaxis", - "constraintext", - "cumulative", - "customdata", - "customdatasrc", - "error_x", - "error_y", - "histfunc", - "histnorm", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "insidetextanchor", - "insidetextfont", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "marker", - "meta", - "metasrc", - "name", - "nbinsx", - "nbinsy", - "offsetgroup", - "opacity", - "orientation", - "outsidetextfont", - "selected", - "selectedpoints", - "showlegend", - "stream", - "text", - "textangle", - "textfont", - "textposition", - "textsrc", - "texttemplate", - "type", - "uid", - "uirevision", - "unselected", - "visible", - "x", - "xaxis", - "xbins", - "xcalendar", - "xhoverformat", - "xsrc", - "y", - "yaxis", - "ybins", - "ycalendar", - "yhoverformat", - "ysrc", - "zorder", - } + _parent_path_str = '' + _path_str = 'histogram' + _valid_props = {"alignmentgroup", "autobinx", "autobiny", "bingroup", "cliponaxis", "constraintext", "cumulative", "customdata", "customdatasrc", "error_x", "error_y", "histfunc", "histnorm", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "insidetextanchor", "insidetextfont", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "marker", "meta", "metasrc", "name", "nbinsx", "nbinsy", "offsetgroup", "opacity", "orientation", "outsidetextfont", "selected", "selectedpoints", "showlegend", "stream", "text", "textangle", "textfont", "textposition", "textsrc", "texttemplate", "type", "uid", "uirevision", "unselected", "visible", "x", "xaxis", "xbins", "xcalendar", "xhoverformat", "xsrc", "y", "yaxis", "ybins", "ycalendar", "yhoverformat", "ysrc", "zorder"} # alignmentgroup # -------------- @@ -95,11 +29,11 @@ def alignmentgroup(self): ------- str """ - return self["alignmentgroup"] + return self['alignmentgroup'] @alignmentgroup.setter def alignmentgroup(self, val): - self["alignmentgroup"] = val + self['alignmentgroup'] = val # autobinx # -------- @@ -118,11 +52,11 @@ def autobinx(self): ------- bool """ - return self["autobinx"] + return self['autobinx'] @autobinx.setter def autobinx(self, val): - self["autobinx"] = val + self['autobinx'] = val # autobiny # -------- @@ -141,11 +75,11 @@ def autobiny(self): ------- bool """ - return self["autobiny"] + return self['autobiny'] @autobiny.setter def autobiny(self, val): - self["autobiny"] = val + self['autobiny'] = val # bingroup # -------- @@ -168,11 +102,11 @@ def bingroup(self): ------- str """ - return self["bingroup"] + return self['bingroup'] @bingroup.setter def bingroup(self, val): - self["bingroup"] = val + self['bingroup'] = val # cliponaxis # ---------- @@ -191,11 +125,11 @@ def cliponaxis(self): ------- bool """ - return self["cliponaxis"] + return self['cliponaxis'] @cliponaxis.setter def cliponaxis(self, val): - self["cliponaxis"] = val + self['cliponaxis'] = val # constraintext # ------------- @@ -213,11 +147,11 @@ def constraintext(self): ------- Any """ - return self["constraintext"] + return self['constraintext'] @constraintext.setter def constraintext(self, val): - self["constraintext"] = val + self['constraintext'] = val # cumulative # ---------- @@ -230,44 +164,15 @@ def cumulative(self): - A dict of string/value properties that will be passed to the Cumulative constructor - Supported dict properties: - - currentbin - Only applies if cumulative is enabled. Sets - whether the current bin is included, excluded, - or has half of its value included in the - current cumulative value. "include" is the - default for compatibility with various other - tools, however it introduces a half-bin bias to - the results. "exclude" makes the opposite half- - bin bias, and "half" removes it. - direction - Only applies if cumulative is enabled. If - "increasing" (default) we sum all prior bins, - so the result increases from left to right. If - "decreasing" we sum later bins so the result - decreases from left to right. - enabled - If true, display the cumulative distribution by - summing the binned values. Use the `direction` - and `centralbin` attributes to tune the - accumulation method. Note: in this mode, the - "density" `histnorm` settings behave the same - as their equivalents without "density": "" and - "density" both rise to the number of data - points, and "probability" and *probability - density* both rise to the number of sample - points. - Returns ------- plotly.graph_objs.histogram.Cumulative """ - return self["cumulative"] + return self['cumulative'] @cumulative.setter def cumulative(self, val): - self["cumulative"] = val + self['cumulative'] = val # customdata # ---------- @@ -286,11 +191,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -307,11 +212,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # error_x # ------- @@ -324,75 +229,15 @@ def error_x(self): - A dict of string/value properties that will be passed to the ErrorX constructor - Supported dict properties: - - array - Sets the data corresponding the length of each - error bar. Values are plotted relative to the - underlying data. - arrayminus - Sets the data corresponding the length of each - error bar in the bottom (left) direction for - vertical (horizontal) bars Values are plotted - relative to the underlying data. - arrayminussrc - Sets the source reference on Chart Studio Cloud - for `arrayminus`. - arraysrc - Sets the source reference on Chart Studio Cloud - for `array`. - color - Sets the stroke color of the error bars. - copy_ystyle - - symmetric - Determines whether or not the error bars have - the same length in both direction (top/bottom - for vertical bars, left/right for horizontal - bars. - thickness - Sets the thickness (in px) of the error bars. - traceref - - tracerefminus - - type - Determines the rule used to generate the error - bars. If *constant`, the bar lengths are of a - constant value. Set this constant in `value`. - If "percent", the bar lengths correspond to a - percentage of underlying data. Set this - percentage in `value`. If "sqrt", the bar - lengths correspond to the square of the - underlying data. If "data", the bar lengths are - set with data set `array`. - value - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars. - valueminus - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars in the bottom - (left) direction for vertical (horizontal) bars - visible - Determines whether or not this set of error - bars is visible. - width - Sets the width (in px) of the cross-bar at both - ends of the error bars. - Returns ------- plotly.graph_objs.histogram.ErrorX """ - return self["error_x"] + return self['error_x'] @error_x.setter def error_x(self, val): - self["error_x"] = val + self['error_x'] = val # error_y # ------- @@ -405,73 +250,15 @@ def error_y(self): - A dict of string/value properties that will be passed to the ErrorY constructor - Supported dict properties: - - array - Sets the data corresponding the length of each - error bar. Values are plotted relative to the - underlying data. - arrayminus - Sets the data corresponding the length of each - error bar in the bottom (left) direction for - vertical (horizontal) bars Values are plotted - relative to the underlying data. - arrayminussrc - Sets the source reference on Chart Studio Cloud - for `arrayminus`. - arraysrc - Sets the source reference on Chart Studio Cloud - for `array`. - color - Sets the stroke color of the error bars. - symmetric - Determines whether or not the error bars have - the same length in both direction (top/bottom - for vertical bars, left/right for horizontal - bars. - thickness - Sets the thickness (in px) of the error bars. - traceref - - tracerefminus - - type - Determines the rule used to generate the error - bars. If *constant`, the bar lengths are of a - constant value. Set this constant in `value`. - If "percent", the bar lengths correspond to a - percentage of underlying data. Set this - percentage in `value`. If "sqrt", the bar - lengths correspond to the square of the - underlying data. If "data", the bar lengths are - set with data set `array`. - value - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars. - valueminus - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars in the bottom - (left) direction for vertical (horizontal) bars - visible - Determines whether or not this set of error - bars is visible. - width - Sets the width (in px) of the cross-bar at both - ends of the error bars. - Returns ------- plotly.graph_objs.histogram.ErrorY """ - return self["error_y"] + return self['error_y'] @error_y.setter def error_y(self, val): - self["error_y"] = val + self['error_y'] = val # histfunc # -------- @@ -493,11 +280,11 @@ def histfunc(self): ------- Any """ - return self["histfunc"] + return self['histfunc'] @histfunc.setter def histfunc(self, val): - self["histfunc"] = val + self['histfunc'] = val # histnorm # -------- @@ -527,11 +314,11 @@ def histnorm(self): ------- Any """ - return self["histnorm"] + return self['histnorm'] @histnorm.setter def histnorm(self, val): - self["histnorm"] = val + self['histnorm'] = val # hoverinfo # --------- @@ -553,11 +340,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -574,11 +361,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -591,53 +378,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.histogram.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -678,11 +427,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -699,11 +448,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -721,11 +470,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -742,11 +491,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -764,11 +513,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -784,11 +533,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # insidetextanchor # ---------------- @@ -806,11 +555,11 @@ def insidetextanchor(self): ------- Any """ - return self["insidetextanchor"] + return self['insidetextanchor'] @insidetextanchor.setter def insidetextanchor(self, val): - self["insidetextanchor"] = val + self['insidetextanchor'] = val # insidetextfont # -------------- @@ -825,61 +574,15 @@ def insidetextfont(self): - A dict of string/value properties that will be passed to the Insidetextfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.histogram.Insidetextfont """ - return self["insidetextfont"] + return self['insidetextfont'] @insidetextfont.setter def insidetextfont(self, val): - self["insidetextfont"] = val + self['insidetextfont'] = val # legend # ------ @@ -900,11 +603,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -923,11 +626,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -940,22 +643,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.histogram.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -978,11 +674,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -999,11 +695,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # marker # ------ @@ -1016,123 +712,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.histogram.marker.C - olorBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - cornerradius - Sets the rounding of corners. May be an integer - number of pixels, or a percentage of bar width - (as a string ending in %). Defaults to - `layout.barcornerradius`. In stack or relative - barmode, the first trace to set cornerradius is - used for the whole stack. - line - :class:`plotly.graph_objects.histogram.marker.L - ine` instance or dict with compatible - properties - opacity - Sets the opacity of the bars. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - pattern - Sets the pattern within the marker. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. - Returns ------- plotly.graph_objs.histogram.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # meta # ---- @@ -1156,11 +744,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -1176,11 +764,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -1198,11 +786,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # nbinsx # ------ @@ -1222,11 +810,11 @@ def nbinsx(self): ------- int """ - return self["nbinsx"] + return self['nbinsx'] @nbinsx.setter def nbinsx(self, val): - self["nbinsx"] = val + self['nbinsx'] = val # nbinsy # ------ @@ -1246,11 +834,11 @@ def nbinsy(self): ------- int """ - return self["nbinsy"] + return self['nbinsy'] @nbinsy.setter def nbinsy(self, val): - self["nbinsy"] = val + self['nbinsy'] = val # offsetgroup # ----------- @@ -1269,11 +857,11 @@ def offsetgroup(self): ------- str """ - return self["offsetgroup"] + return self['offsetgroup'] @offsetgroup.setter def offsetgroup(self, val): - self["offsetgroup"] = val + self['offsetgroup'] = val # opacity # ------- @@ -1289,11 +877,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # orientation # ----------- @@ -1311,11 +899,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outsidetextfont # --------------- @@ -1330,61 +918,15 @@ def outsidetextfont(self): - A dict of string/value properties that will be passed to the Outsidetextfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.histogram.Outsidetextfont """ - return self["outsidetextfont"] + return self['outsidetextfont'] @outsidetextfont.setter def outsidetextfont(self, val): - self["outsidetextfont"] = val + self['outsidetextfont'] = val # selected # -------- @@ -1397,26 +939,15 @@ def selected(self): - A dict of string/value properties that will be passed to the Selected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.histogram.selected - .Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.histogram.selected - .Textfont` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.histogram.Selected """ - return self["selected"] + return self['selected'] @selected.setter def selected(self, val): - self["selected"] = val + self['selected'] = val # selectedpoints # -------------- @@ -1436,11 +967,11 @@ def selectedpoints(self): ------- Any """ - return self["selectedpoints"] + return self['selectedpoints'] @selectedpoints.setter def selectedpoints(self, val): - self["selectedpoints"] = val + self['selectedpoints'] = val # showlegend # ---------- @@ -1457,11 +988,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # stream # ------ @@ -1474,27 +1005,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.histogram.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # text # ---- @@ -1515,11 +1034,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textangle # --------- @@ -1540,11 +1059,11 @@ def textangle(self): ------- int|float """ - return self["textangle"] + return self['textangle'] @textangle.setter def textangle(self, val): - self["textangle"] = val + self['textangle'] = val # textfont # -------- @@ -1559,61 +1078,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.histogram.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # textposition # ------------ @@ -1637,11 +1110,11 @@ def textposition(self): ------- Any """ - return self["textposition"] + return self['textposition'] @textposition.setter def textposition(self, val): - self["textposition"] = val + self['textposition'] = val # textsrc # ------- @@ -1657,11 +1130,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # texttemplate # ------------ @@ -1691,11 +1164,11 @@ def texttemplate(self): ------- str """ - return self["texttemplate"] + return self['texttemplate'] @texttemplate.setter def texttemplate(self, val): - self["texttemplate"] = val + self['texttemplate'] = val # uid # --- @@ -1713,11 +1186,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1746,11 +1219,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # unselected # ---------- @@ -1763,26 +1236,15 @@ def unselected(self): - A dict of string/value properties that will be passed to the Unselected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.histogram.unselect - ed.Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.histogram.unselect - ed.Textfont` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.histogram.Unselected """ - return self["unselected"] + return self['unselected'] @unselected.setter def unselected(self, val): - self["unselected"] = val + self['unselected'] = val # visible # ------- @@ -1801,11 +1263,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # x # - @@ -1821,11 +1283,11 @@ def x(self): ------- numpy.ndarray """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xaxis # ----- @@ -1846,11 +1308,11 @@ def xaxis(self): ------- str """ - return self["xaxis"] + return self['xaxis'] @xaxis.setter def xaxis(self, val): - self["xaxis"] = val + self['xaxis'] = val # xbins # ----- @@ -1863,62 +1325,15 @@ def xbins(self): - A dict of string/value properties that will be passed to the XBins constructor - Supported dict properties: - - end - Sets the end value for the x axis bins. The - last bin may not end exactly at this value, we - increment the bin edge by `size` from `start` - until we reach or exceed `end`. Defaults to the - maximum data value. Like `start`, for dates use - a date string, and for category data `end` is - based on the category serial numbers. - size - Sets the size of each x axis bin. Default - behavior: If `nbinsx` is 0 or omitted, we - choose a nice round bin size such that the - number of bins is about the same as the typical - number of samples in each bin. If `nbinsx` is - provided, we choose a nice round bin size - giving no more than that many bins. For date - data, use milliseconds or "M" for months, as - in `axis.dtick`. For category data, the number - of categories to bin together (always defaults - to 1). If multiple non-overlaying histograms - share a subplot, the first explicit `size` is - used and all others discarded. If no `size` is - provided,the sample data from all traces is - combined to determine `size` as described - above. - start - Sets the starting value for the x axis bins. - Defaults to the minimum data value, shifted - down if necessary to make nice round values and - to remove ambiguous bin edges. For example, if - most of the data is integers we shift the bin - edges 0.5 down, so a `size` of 5 would have a - default `start` of -0.5, so it is clear that - 0-4 are in the first bin, 5-9 in the second, - but continuous data gets a start of 0 and bins - [0,5), [5,10) etc. Dates behave similarly, and - `start` should be a date string. For category - data, `start` is based on the category serial - numbers, and defaults to -0.5. If multiple non- - overlaying histograms share a subplot, the - first explicit `start` is used exactly and all - others are shifted down (if necessary) to - differ from that one by an integer number of - bins. - Returns ------- plotly.graph_objs.histogram.XBins """ - return self["xbins"] + return self['xbins'] @xbins.setter def xbins(self, val): - self["xbins"] = val + self['xbins'] = val # xcalendar # --------- @@ -1938,11 +1353,11 @@ def xcalendar(self): ------- Any """ - return self["xcalendar"] + return self['xcalendar'] @xcalendar.setter def xcalendar(self, val): - self["xcalendar"] = val + self['xcalendar'] = val # xhoverformat # ------------ @@ -1969,11 +1384,11 @@ def xhoverformat(self): ------- str """ - return self["xhoverformat"] + return self['xhoverformat'] @xhoverformat.setter def xhoverformat(self, val): - self["xhoverformat"] = val + self['xhoverformat'] = val # xsrc # ---- @@ -1989,11 +1404,11 @@ def xsrc(self): ------- str """ - return self["xsrc"] + return self['xsrc'] @xsrc.setter def xsrc(self, val): - self["xsrc"] = val + self['xsrc'] = val # y # - @@ -2009,11 +1424,11 @@ def y(self): ------- numpy.ndarray """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yaxis # ----- @@ -2034,11 +1449,11 @@ def yaxis(self): ------- str """ - return self["yaxis"] + return self['yaxis'] @yaxis.setter def yaxis(self, val): - self["yaxis"] = val + self['yaxis'] = val # ybins # ----- @@ -2051,62 +1466,15 @@ def ybins(self): - A dict of string/value properties that will be passed to the YBins constructor - Supported dict properties: - - end - Sets the end value for the y axis bins. The - last bin may not end exactly at this value, we - increment the bin edge by `size` from `start` - until we reach or exceed `end`. Defaults to the - maximum data value. Like `start`, for dates use - a date string, and for category data `end` is - based on the category serial numbers. - size - Sets the size of each y axis bin. Default - behavior: If `nbinsy` is 0 or omitted, we - choose a nice round bin size such that the - number of bins is about the same as the typical - number of samples in each bin. If `nbinsy` is - provided, we choose a nice round bin size - giving no more than that many bins. For date - data, use milliseconds or "M" for months, as - in `axis.dtick`. For category data, the number - of categories to bin together (always defaults - to 1). If multiple non-overlaying histograms - share a subplot, the first explicit `size` is - used and all others discarded. If no `size` is - provided,the sample data from all traces is - combined to determine `size` as described - above. - start - Sets the starting value for the y axis bins. - Defaults to the minimum data value, shifted - down if necessary to make nice round values and - to remove ambiguous bin edges. For example, if - most of the data is integers we shift the bin - edges 0.5 down, so a `size` of 5 would have a - default `start` of -0.5, so it is clear that - 0-4 are in the first bin, 5-9 in the second, - but continuous data gets a start of 0 and bins - [0,5), [5,10) etc. Dates behave similarly, and - `start` should be a date string. For category - data, `start` is based on the category serial - numbers, and defaults to -0.5. If multiple non- - overlaying histograms share a subplot, the - first explicit `start` is used exactly and all - others are shifted down (if necessary) to - differ from that one by an integer number of - bins. - Returns ------- plotly.graph_objs.histogram.YBins """ - return self["ybins"] + return self['ybins'] @ybins.setter def ybins(self, val): - self["ybins"] = val + self['ybins'] = val # ycalendar # --------- @@ -2126,11 +1494,11 @@ def ycalendar(self): ------- Any """ - return self["ycalendar"] + return self['ycalendar'] @ycalendar.setter def ycalendar(self, val): - self["ycalendar"] = val + self['ycalendar'] = val # yhoverformat # ------------ @@ -2157,11 +1525,11 @@ def yhoverformat(self): ------- str """ - return self["yhoverformat"] + return self['yhoverformat'] @yhoverformat.setter def yhoverformat(self, val): - self["yhoverformat"] = val + self['yhoverformat'] = val # ysrc # ---- @@ -2177,11 +1545,11 @@ def ysrc(self): ------- str """ - return self["ysrc"] + return self['ysrc'] @ysrc.setter def ysrc(self, val): - self["ysrc"] = val + self['ysrc'] = val # zorder # ------ @@ -2199,17 +1567,17 @@ def zorder(self): ------- int """ - return self["zorder"] + return self['zorder'] @zorder.setter def zorder(self, val): - self["zorder"] = val + self['zorder'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -2577,78 +1945,76 @@ def _prop_descriptions(self): traces with higher `zorder` appear in front of those with lower `zorder`. """ - - def __init__( - self, - arg=None, - alignmentgroup=None, - autobinx=None, - autobiny=None, - bingroup=None, - cliponaxis=None, - constraintext=None, - cumulative=None, - customdata=None, - customdatasrc=None, - error_x=None, - error_y=None, - histfunc=None, - histnorm=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - insidetextanchor=None, - insidetextfont=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - marker=None, - meta=None, - metasrc=None, - name=None, - nbinsx=None, - nbinsy=None, - offsetgroup=None, - opacity=None, - orientation=None, - outsidetextfont=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - text=None, - textangle=None, - textfont=None, - textposition=None, - textsrc=None, - texttemplate=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - x=None, - xaxis=None, - xbins=None, - xcalendar=None, - xhoverformat=None, - xsrc=None, - y=None, - yaxis=None, - ybins=None, - ycalendar=None, - yhoverformat=None, - ysrc=None, - zorder=None, - **kwargs, - ): + def __init__(self, + arg=None, + alignmentgroup=None, + autobinx=None, + autobiny=None, + bingroup=None, + cliponaxis=None, + constraintext=None, + cumulative=None, + customdata=None, + customdatasrc=None, + error_x=None, + error_y=None, + histfunc=None, + histnorm=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + insidetextanchor=None, + insidetextfont=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + marker=None, + meta=None, + metasrc=None, + name=None, + nbinsx=None, + nbinsy=None, + offsetgroup=None, + opacity=None, + orientation=None, + outsidetextfont=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + text=None, + textangle=None, + textfont=None, + textposition=None, + textsrc=None, + texttemplate=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + x=None, + xaxis=None, + xbins=None, + xcalendar=None, + xhoverformat=None, + xsrc=None, + y=None, + yaxis=None, + ybins=None, + ycalendar=None, + yhoverformat=None, + ysrc=None, + zorder=None, + **kwargs + ): """ Construct a new Histogram object @@ -3028,10 +2394,10 @@ def __init__( ------- Histogram """ - super(Histogram, self).__init__("histogram") + super(Histogram, self).__init__('histogram') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -3043,290 +2409,91 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Histogram constructor must be a dict or -an instance of :class:`plotly.graph_objs.Histogram`""" - ) +an instance of :class:`plotly.graph_objs.Histogram`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("alignmentgroup", None) - _v = alignmentgroup if alignmentgroup is not None else _v - if _v is not None: - self["alignmentgroup"] = _v - _v = arg.pop("autobinx", None) - _v = autobinx if autobinx is not None else _v - if _v is not None: - self["autobinx"] = _v - _v = arg.pop("autobiny", None) - _v = autobiny if autobiny is not None else _v - if _v is not None: - self["autobiny"] = _v - _v = arg.pop("bingroup", None) - _v = bingroup if bingroup is not None else _v - if _v is not None: - self["bingroup"] = _v - _v = arg.pop("cliponaxis", None) - _v = cliponaxis if cliponaxis is not None else _v - if _v is not None: - self["cliponaxis"] = _v - _v = arg.pop("constraintext", None) - _v = constraintext if constraintext is not None else _v - if _v is not None: - self["constraintext"] = _v - _v = arg.pop("cumulative", None) - _v = cumulative if cumulative is not None else _v - if _v is not None: - self["cumulative"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("error_x", None) - _v = error_x if error_x is not None else _v - if _v is not None: - self["error_x"] = _v - _v = arg.pop("error_y", None) - _v = error_y if error_y is not None else _v - if _v is not None: - self["error_y"] = _v - _v = arg.pop("histfunc", None) - _v = histfunc if histfunc is not None else _v - if _v is not None: - self["histfunc"] = _v - _v = arg.pop("histnorm", None) - _v = histnorm if histnorm is not None else _v - if _v is not None: - self["histnorm"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("insidetextanchor", None) - _v = insidetextanchor if insidetextanchor is not None else _v - if _v is not None: - self["insidetextanchor"] = _v - _v = arg.pop("insidetextfont", None) - _v = insidetextfont if insidetextfont is not None else _v - if _v is not None: - self["insidetextfont"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("nbinsx", None) - _v = nbinsx if nbinsx is not None else _v - if _v is not None: - self["nbinsx"] = _v - _v = arg.pop("nbinsy", None) - _v = nbinsy if nbinsy is not None else _v - if _v is not None: - self["nbinsy"] = _v - _v = arg.pop("offsetgroup", None) - _v = offsetgroup if offsetgroup is not None else _v - if _v is not None: - self["offsetgroup"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outsidetextfont", None) - _v = outsidetextfont if outsidetextfont is not None else _v - if _v is not None: - self["outsidetextfont"] = _v - _v = arg.pop("selected", None) - _v = selected if selected is not None else _v - if _v is not None: - self["selected"] = _v - _v = arg.pop("selectedpoints", None) - _v = selectedpoints if selectedpoints is not None else _v - if _v is not None: - self["selectedpoints"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textangle", None) - _v = textangle if textangle is not None else _v - if _v is not None: - self["textangle"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v - _v = arg.pop("textposition", None) - _v = textposition if textposition is not None else _v - if _v is not None: - self["textposition"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("texttemplate", None) - _v = texttemplate if texttemplate is not None else _v - if _v is not None: - self["texttemplate"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("unselected", None) - _v = unselected if unselected is not None else _v - if _v is not None: - self["unselected"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xaxis", None) - _v = xaxis if xaxis is not None else _v - if _v is not None: - self["xaxis"] = _v - _v = arg.pop("xbins", None) - _v = xbins if xbins is not None else _v - if _v is not None: - self["xbins"] = _v - _v = arg.pop("xcalendar", None) - _v = xcalendar if xcalendar is not None else _v - if _v is not None: - self["xcalendar"] = _v - _v = arg.pop("xhoverformat", None) - _v = xhoverformat if xhoverformat is not None else _v - if _v is not None: - self["xhoverformat"] = _v - _v = arg.pop("xsrc", None) - _v = xsrc if xsrc is not None else _v - if _v is not None: - self["xsrc"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yaxis", None) - _v = yaxis if yaxis is not None else _v - if _v is not None: - self["yaxis"] = _v - _v = arg.pop("ybins", None) - _v = ybins if ybins is not None else _v - if _v is not None: - self["ybins"] = _v - _v = arg.pop("ycalendar", None) - _v = ycalendar if ycalendar is not None else _v - if _v is not None: - self["ycalendar"] = _v - _v = arg.pop("yhoverformat", None) - _v = yhoverformat if yhoverformat is not None else _v - if _v is not None: - self["yhoverformat"] = _v - _v = arg.pop("ysrc", None) - _v = ysrc if ysrc is not None else _v - if _v is not None: - self["ysrc"] = _v - _v = arg.pop("zorder", None) - _v = zorder if zorder is not None else _v - if _v is not None: - self["zorder"] = _v + self._init_provided('alignmentgroup', arg, alignmentgroup) + self._init_provided('autobinx', arg, autobinx) + self._init_provided('autobiny', arg, autobiny) + self._init_provided('bingroup', arg, bingroup) + self._init_provided('cliponaxis', arg, cliponaxis) + self._init_provided('constraintext', arg, constraintext) + self._init_provided('cumulative', arg, cumulative) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('error_x', arg, error_x) + self._init_provided('error_y', arg, error_y) + self._init_provided('histfunc', arg, histfunc) + self._init_provided('histnorm', arg, histnorm) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('insidetextanchor', arg, insidetextanchor) + self._init_provided('insidetextfont', arg, insidetextfont) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('marker', arg, marker) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('nbinsx', arg, nbinsx) + self._init_provided('nbinsy', arg, nbinsy) + self._init_provided('offsetgroup', arg, offsetgroup) + self._init_provided('opacity', arg, opacity) + self._init_provided('orientation', arg, orientation) + self._init_provided('outsidetextfont', arg, outsidetextfont) + self._init_provided('selected', arg, selected) + self._init_provided('selectedpoints', arg, selectedpoints) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('stream', arg, stream) + self._init_provided('text', arg, text) + self._init_provided('textangle', arg, textangle) + self._init_provided('textfont', arg, textfont) + self._init_provided('textposition', arg, textposition) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('texttemplate', arg, texttemplate) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('unselected', arg, unselected) + self._init_provided('visible', arg, visible) + self._init_provided('x', arg, x) + self._init_provided('xaxis', arg, xaxis) + self._init_provided('xbins', arg, xbins) + self._init_provided('xcalendar', arg, xcalendar) + self._init_provided('xhoverformat', arg, xhoverformat) + self._init_provided('xsrc', arg, xsrc) + self._init_provided('y', arg, y) + self._init_provided('yaxis', arg, yaxis) + self._init_provided('ybins', arg, ybins) + self._init_provided('ycalendar', arg, ycalendar) + self._init_provided('yhoverformat', arg, yhoverformat) + self._init_provided('ysrc', arg, ysrc) + self._init_provided('zorder', arg, zorder) # Read-only literals # ------------------ - self._props["type"] = "histogram" - arg.pop("type", None) + self._props['type'] = 'histogram' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_histogram2d.py b/packages/python/plotly/plotly/graph_objs/_histogram2d.py index 16b64a1fbc5..6d6701f844d 100644 --- a/packages/python/plotly/plotly/graph_objs/_histogram2d.py +++ b/packages/python/plotly/plotly/graph_objs/_histogram2d.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,74 +8,9 @@ class Histogram2d(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "histogram2d" - _valid_props = { - "autobinx", - "autobiny", - "autocolorscale", - "bingroup", - "coloraxis", - "colorbar", - "colorscale", - "customdata", - "customdatasrc", - "histfunc", - "histnorm", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "ids", - "idssrc", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "marker", - "meta", - "metasrc", - "name", - "nbinsx", - "nbinsy", - "opacity", - "reversescale", - "showlegend", - "showscale", - "stream", - "textfont", - "texttemplate", - "type", - "uid", - "uirevision", - "visible", - "x", - "xaxis", - "xbingroup", - "xbins", - "xcalendar", - "xgap", - "xhoverformat", - "xsrc", - "y", - "yaxis", - "ybingroup", - "ybins", - "ycalendar", - "ygap", - "yhoverformat", - "ysrc", - "z", - "zauto", - "zhoverformat", - "zmax", - "zmid", - "zmin", - "zsmooth", - "zsrc", - } + _parent_path_str = '' + _path_str = 'histogram2d' + _valid_props = {"autobinx", "autobiny", "autocolorscale", "bingroup", "coloraxis", "colorbar", "colorscale", "customdata", "customdatasrc", "histfunc", "histnorm", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "ids", "idssrc", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "marker", "meta", "metasrc", "name", "nbinsx", "nbinsy", "opacity", "reversescale", "showlegend", "showscale", "stream", "textfont", "texttemplate", "type", "uid", "uirevision", "visible", "x", "xaxis", "xbingroup", "xbins", "xcalendar", "xgap", "xhoverformat", "xsrc", "y", "yaxis", "ybingroup", "ybins", "ycalendar", "ygap", "yhoverformat", "ysrc", "z", "zauto", "zhoverformat", "zmax", "zmid", "zmin", "zsmooth", "zsrc"} # autobinx # -------- @@ -92,11 +29,11 @@ def autobinx(self): ------- bool """ - return self["autobinx"] + return self['autobinx'] @autobinx.setter def autobinx(self, val): - self["autobinx"] = val + self['autobinx'] = val # autobiny # -------- @@ -115,11 +52,11 @@ def autobiny(self): ------- bool """ - return self["autobiny"] + return self['autobiny'] @autobiny.setter def autobiny(self, val): - self["autobiny"] = val + self['autobiny'] = val # autocolorscale # -------------- @@ -140,11 +77,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # bingroup # -------- @@ -163,11 +100,11 @@ def bingroup(self): ------- str """ - return self["bingroup"] + return self['bingroup'] @bingroup.setter def bingroup(self, val): - self["bingroup"] = val + self['bingroup'] = val # coloraxis # --------- @@ -190,11 +127,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -207,282 +144,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.histogr - am2d.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.histogram2d.colorbar.tickformatstopdefaults), - sets the default property values to use for - elements of - histogram2d.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.histogram2d.colorb - ar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.histogram2d.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -531,11 +201,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # customdata # ---------- @@ -554,11 +224,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -575,11 +245,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # histfunc # -------- @@ -601,11 +271,11 @@ def histfunc(self): ------- Any """ - return self["histfunc"] + return self['histfunc'] @histfunc.setter def histfunc(self, val): - self["histfunc"] = val + self['histfunc'] = val # histnorm # -------- @@ -635,11 +305,11 @@ def histnorm(self): ------- Any """ - return self["histnorm"] + return self['histnorm'] @histnorm.setter def histnorm(self, val): - self["histnorm"] = val + self['histnorm'] = val # hoverinfo # --------- @@ -661,11 +331,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -682,11 +352,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -699,53 +369,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.histogram2d.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -786,11 +418,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -807,11 +439,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # ids # --- @@ -829,11 +461,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -849,11 +481,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # legend # ------ @@ -874,11 +506,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -897,11 +529,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -914,22 +546,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.histogram2d.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -952,11 +577,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -973,11 +598,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # marker # ------ @@ -990,23 +615,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the aggregation data. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - Returns ------- plotly.graph_objs.histogram2d.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # meta # ---- @@ -1030,11 +647,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -1050,11 +667,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -1072,11 +689,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # nbinsx # ------ @@ -1096,11 +713,11 @@ def nbinsx(self): ------- int """ - return self["nbinsx"] + return self['nbinsx'] @nbinsx.setter def nbinsx(self, val): - self["nbinsx"] = val + self['nbinsx'] = val # nbinsy # ------ @@ -1120,11 +737,11 @@ def nbinsy(self): ------- int """ - return self["nbinsy"] + return self['nbinsy'] @nbinsy.setter def nbinsy(self, val): - self["nbinsy"] = val + self['nbinsy'] = val # opacity # ------- @@ -1140,11 +757,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # reversescale # ------------ @@ -1162,11 +779,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # showlegend # ---------- @@ -1183,11 +800,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # showscale # --------- @@ -1204,11 +821,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # stream # ------ @@ -1221,27 +838,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.histogram2d.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # textfont # -------- @@ -1256,61 +861,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.histogram2d.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # texttemplate # ------------ @@ -1339,11 +898,11 @@ def texttemplate(self): ------- str """ - return self["texttemplate"] + return self['texttemplate'] @texttemplate.setter def texttemplate(self, val): - self["texttemplate"] = val + self['texttemplate'] = val # uid # --- @@ -1361,11 +920,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1394,11 +953,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # visible # ------- @@ -1417,11 +976,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # x # - @@ -1437,11 +996,11 @@ def x(self): ------- numpy.ndarray """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xaxis # ----- @@ -1462,11 +1021,11 @@ def xaxis(self): ------- str """ - return self["xaxis"] + return self['xaxis'] @xaxis.setter def xaxis(self, val): - self["xaxis"] = val + self['xaxis'] = val # xbingroup # --------- @@ -1487,11 +1046,11 @@ def xbingroup(self): ------- str """ - return self["xbingroup"] + return self['xbingroup'] @xbingroup.setter def xbingroup(self, val): - self["xbingroup"] = val + self['xbingroup'] = val # xbins # ----- @@ -1504,52 +1063,15 @@ def xbins(self): - A dict of string/value properties that will be passed to the XBins constructor - Supported dict properties: - - end - Sets the end value for the x axis bins. The - last bin may not end exactly at this value, we - increment the bin edge by `size` from `start` - until we reach or exceed `end`. Defaults to the - maximum data value. Like `start`, for dates use - a date string, and for category data `end` is - based on the category serial numbers. - size - Sets the size of each x axis bin. Default - behavior: If `nbinsx` is 0 or omitted, we - choose a nice round bin size such that the - number of bins is about the same as the typical - number of samples in each bin. If `nbinsx` is - provided, we choose a nice round bin size - giving no more than that many bins. For date - data, use milliseconds or "M" for months, as - in `axis.dtick`. For category data, the number - of categories to bin together (always defaults - to 1). - start - Sets the starting value for the x axis bins. - Defaults to the minimum data value, shifted - down if necessary to make nice round values and - to remove ambiguous bin edges. For example, if - most of the data is integers we shift the bin - edges 0.5 down, so a `size` of 5 would have a - default `start` of -0.5, so it is clear that - 0-4 are in the first bin, 5-9 in the second, - but continuous data gets a start of 0 and bins - [0,5), [5,10) etc. Dates behave similarly, and - `start` should be a date string. For category - data, `start` is based on the category serial - numbers, and defaults to -0.5. - Returns ------- plotly.graph_objs.histogram2d.XBins """ - return self["xbins"] + return self['xbins'] @xbins.setter def xbins(self, val): - self["xbins"] = val + self['xbins'] = val # xcalendar # --------- @@ -1569,11 +1091,11 @@ def xcalendar(self): ------- Any """ - return self["xcalendar"] + return self['xcalendar'] @xcalendar.setter def xcalendar(self, val): - self["xcalendar"] = val + self['xcalendar'] = val # xgap # ---- @@ -1589,11 +1111,11 @@ def xgap(self): ------- int|float """ - return self["xgap"] + return self['xgap'] @xgap.setter def xgap(self, val): - self["xgap"] = val + self['xgap'] = val # xhoverformat # ------------ @@ -1620,11 +1142,11 @@ def xhoverformat(self): ------- str """ - return self["xhoverformat"] + return self['xhoverformat'] @xhoverformat.setter def xhoverformat(self, val): - self["xhoverformat"] = val + self['xhoverformat'] = val # xsrc # ---- @@ -1640,11 +1162,11 @@ def xsrc(self): ------- str """ - return self["xsrc"] + return self['xsrc'] @xsrc.setter def xsrc(self, val): - self["xsrc"] = val + self['xsrc'] = val # y # - @@ -1660,11 +1182,11 @@ def y(self): ------- numpy.ndarray """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yaxis # ----- @@ -1685,11 +1207,11 @@ def yaxis(self): ------- str """ - return self["yaxis"] + return self['yaxis'] @yaxis.setter def yaxis(self, val): - self["yaxis"] = val + self['yaxis'] = val # ybingroup # --------- @@ -1710,11 +1232,11 @@ def ybingroup(self): ------- str """ - return self["ybingroup"] + return self['ybingroup'] @ybingroup.setter def ybingroup(self, val): - self["ybingroup"] = val + self['ybingroup'] = val # ybins # ----- @@ -1727,52 +1249,15 @@ def ybins(self): - A dict of string/value properties that will be passed to the YBins constructor - Supported dict properties: - - end - Sets the end value for the y axis bins. The - last bin may not end exactly at this value, we - increment the bin edge by `size` from `start` - until we reach or exceed `end`. Defaults to the - maximum data value. Like `start`, for dates use - a date string, and for category data `end` is - based on the category serial numbers. - size - Sets the size of each y axis bin. Default - behavior: If `nbinsy` is 0 or omitted, we - choose a nice round bin size such that the - number of bins is about the same as the typical - number of samples in each bin. If `nbinsy` is - provided, we choose a nice round bin size - giving no more than that many bins. For date - data, use milliseconds or "M" for months, as - in `axis.dtick`. For category data, the number - of categories to bin together (always defaults - to 1). - start - Sets the starting value for the y axis bins. - Defaults to the minimum data value, shifted - down if necessary to make nice round values and - to remove ambiguous bin edges. For example, if - most of the data is integers we shift the bin - edges 0.5 down, so a `size` of 5 would have a - default `start` of -0.5, so it is clear that - 0-4 are in the first bin, 5-9 in the second, - but continuous data gets a start of 0 and bins - [0,5), [5,10) etc. Dates behave similarly, and - `start` should be a date string. For category - data, `start` is based on the category serial - numbers, and defaults to -0.5. - Returns ------- plotly.graph_objs.histogram2d.YBins """ - return self["ybins"] + return self['ybins'] @ybins.setter def ybins(self, val): - self["ybins"] = val + self['ybins'] = val # ycalendar # --------- @@ -1792,11 +1277,11 @@ def ycalendar(self): ------- Any """ - return self["ycalendar"] + return self['ycalendar'] @ycalendar.setter def ycalendar(self, val): - self["ycalendar"] = val + self['ycalendar'] = val # ygap # ---- @@ -1812,11 +1297,11 @@ def ygap(self): ------- int|float """ - return self["ygap"] + return self['ygap'] @ygap.setter def ygap(self, val): - self["ygap"] = val + self['ygap'] = val # yhoverformat # ------------ @@ -1843,11 +1328,11 @@ def yhoverformat(self): ------- str """ - return self["yhoverformat"] + return self['yhoverformat'] @yhoverformat.setter def yhoverformat(self, val): - self["yhoverformat"] = val + self['yhoverformat'] = val # ysrc # ---- @@ -1863,11 +1348,11 @@ def ysrc(self): ------- str """ - return self["ysrc"] + return self['ysrc'] @ysrc.setter def ysrc(self, val): - self["ysrc"] = val + self['ysrc'] = val # z # - @@ -1883,11 +1368,11 @@ def z(self): ------- numpy.ndarray """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # zauto # ----- @@ -1906,11 +1391,11 @@ def zauto(self): ------- bool """ - return self["zauto"] + return self['zauto'] @zauto.setter def zauto(self, val): - self["zauto"] = val + self['zauto'] = val # zhoverformat # ------------ @@ -1931,11 +1416,11 @@ def zhoverformat(self): ------- str """ - return self["zhoverformat"] + return self['zhoverformat'] @zhoverformat.setter def zhoverformat(self, val): - self["zhoverformat"] = val + self['zhoverformat'] = val # zmax # ---- @@ -1952,11 +1437,11 @@ def zmax(self): ------- int|float """ - return self["zmax"] + return self['zmax'] @zmax.setter def zmax(self, val): - self["zmax"] = val + self['zmax'] = val # zmid # ---- @@ -1974,11 +1459,11 @@ def zmid(self): ------- int|float """ - return self["zmid"] + return self['zmid'] @zmid.setter def zmid(self, val): - self["zmid"] = val + self['zmid'] = val # zmin # ---- @@ -1995,11 +1480,11 @@ def zmin(self): ------- int|float """ - return self["zmin"] + return self['zmin'] @zmin.setter def zmin(self, val): - self["zmin"] = val + self['zmin'] = val # zsmooth # ------- @@ -2016,11 +1501,11 @@ def zsmooth(self): ------- Any """ - return self["zsmooth"] + return self['zsmooth'] @zsmooth.setter def zsmooth(self, val): - self["zsmooth"] = val + self['zsmooth'] = val # zsrc # ---- @@ -2036,17 +1521,17 @@ def zsrc(self): ------- str """ - return self["zsrc"] + return self['zsrc'] @zsrc.setter def zsrc(self, val): - self["zsrc"] = val + self['zsrc'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -2410,75 +1895,73 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `z`. """ - - def __init__( - self, - arg=None, - autobinx=None, - autobiny=None, - autocolorscale=None, - bingroup=None, - coloraxis=None, - colorbar=None, - colorscale=None, - customdata=None, - customdatasrc=None, - histfunc=None, - histnorm=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - marker=None, - meta=None, - metasrc=None, - name=None, - nbinsx=None, - nbinsy=None, - opacity=None, - reversescale=None, - showlegend=None, - showscale=None, - stream=None, - textfont=None, - texttemplate=None, - uid=None, - uirevision=None, - visible=None, - x=None, - xaxis=None, - xbingroup=None, - xbins=None, - xcalendar=None, - xgap=None, - xhoverformat=None, - xsrc=None, - y=None, - yaxis=None, - ybingroup=None, - ybins=None, - ycalendar=None, - ygap=None, - yhoverformat=None, - ysrc=None, - z=None, - zauto=None, - zhoverformat=None, - zmax=None, - zmid=None, - zmin=None, - zsmooth=None, - zsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + autobinx=None, + autobiny=None, + autocolorscale=None, + bingroup=None, + coloraxis=None, + colorbar=None, + colorscale=None, + customdata=None, + customdatasrc=None, + histfunc=None, + histnorm=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + marker=None, + meta=None, + metasrc=None, + name=None, + nbinsx=None, + nbinsy=None, + opacity=None, + reversescale=None, + showlegend=None, + showscale=None, + stream=None, + textfont=None, + texttemplate=None, + uid=None, + uirevision=None, + visible=None, + x=None, + xaxis=None, + xbingroup=None, + xbins=None, + xcalendar=None, + xgap=None, + xhoverformat=None, + xsrc=None, + y=None, + yaxis=None, + ybingroup=None, + ybins=None, + ycalendar=None, + ygap=None, + yhoverformat=None, + ysrc=None, + z=None, + zauto=None, + zhoverformat=None, + zmax=None, + zmid=None, + zmin=None, + zsmooth=None, + zsrc=None, + **kwargs + ): """ Construct a new Histogram2d object @@ -2855,10 +2338,10 @@ def __init__( ------- Histogram2d """ - super(Histogram2d, self).__init__("histogram2d") + super(Histogram2d, self).__init__('histogram2d') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2870,278 +2353,88 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Histogram2d constructor must be a dict or -an instance of :class:`plotly.graph_objs.Histogram2d`""" - ) +an instance of :class:`plotly.graph_objs.Histogram2d`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autobinx", None) - _v = autobinx if autobinx is not None else _v - if _v is not None: - self["autobinx"] = _v - _v = arg.pop("autobiny", None) - _v = autobiny if autobiny is not None else _v - if _v is not None: - self["autobiny"] = _v - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("bingroup", None) - _v = bingroup if bingroup is not None else _v - if _v is not None: - self["bingroup"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("histfunc", None) - _v = histfunc if histfunc is not None else _v - if _v is not None: - self["histfunc"] = _v - _v = arg.pop("histnorm", None) - _v = histnorm if histnorm is not None else _v - if _v is not None: - self["histnorm"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("nbinsx", None) - _v = nbinsx if nbinsx is not None else _v - if _v is not None: - self["nbinsx"] = _v - _v = arg.pop("nbinsy", None) - _v = nbinsy if nbinsy is not None else _v - if _v is not None: - self["nbinsy"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v - _v = arg.pop("texttemplate", None) - _v = texttemplate if texttemplate is not None else _v - if _v is not None: - self["texttemplate"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xaxis", None) - _v = xaxis if xaxis is not None else _v - if _v is not None: - self["xaxis"] = _v - _v = arg.pop("xbingroup", None) - _v = xbingroup if xbingroup is not None else _v - if _v is not None: - self["xbingroup"] = _v - _v = arg.pop("xbins", None) - _v = xbins if xbins is not None else _v - if _v is not None: - self["xbins"] = _v - _v = arg.pop("xcalendar", None) - _v = xcalendar if xcalendar is not None else _v - if _v is not None: - self["xcalendar"] = _v - _v = arg.pop("xgap", None) - _v = xgap if xgap is not None else _v - if _v is not None: - self["xgap"] = _v - _v = arg.pop("xhoverformat", None) - _v = xhoverformat if xhoverformat is not None else _v - if _v is not None: - self["xhoverformat"] = _v - _v = arg.pop("xsrc", None) - _v = xsrc if xsrc is not None else _v - if _v is not None: - self["xsrc"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yaxis", None) - _v = yaxis if yaxis is not None else _v - if _v is not None: - self["yaxis"] = _v - _v = arg.pop("ybingroup", None) - _v = ybingroup if ybingroup is not None else _v - if _v is not None: - self["ybingroup"] = _v - _v = arg.pop("ybins", None) - _v = ybins if ybins is not None else _v - if _v is not None: - self["ybins"] = _v - _v = arg.pop("ycalendar", None) - _v = ycalendar if ycalendar is not None else _v - if _v is not None: - self["ycalendar"] = _v - _v = arg.pop("ygap", None) - _v = ygap if ygap is not None else _v - if _v is not None: - self["ygap"] = _v - _v = arg.pop("yhoverformat", None) - _v = yhoverformat if yhoverformat is not None else _v - if _v is not None: - self["yhoverformat"] = _v - _v = arg.pop("ysrc", None) - _v = ysrc if ysrc is not None else _v - if _v is not None: - self["ysrc"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v - _v = arg.pop("zauto", None) - _v = zauto if zauto is not None else _v - if _v is not None: - self["zauto"] = _v - _v = arg.pop("zhoverformat", None) - _v = zhoverformat if zhoverformat is not None else _v - if _v is not None: - self["zhoverformat"] = _v - _v = arg.pop("zmax", None) - _v = zmax if zmax is not None else _v - if _v is not None: - self["zmax"] = _v - _v = arg.pop("zmid", None) - _v = zmid if zmid is not None else _v - if _v is not None: - self["zmid"] = _v - _v = arg.pop("zmin", None) - _v = zmin if zmin is not None else _v - if _v is not None: - self["zmin"] = _v - _v = arg.pop("zsmooth", None) - _v = zsmooth if zsmooth is not None else _v - if _v is not None: - self["zsmooth"] = _v - _v = arg.pop("zsrc", None) - _v = zsrc if zsrc is not None else _v - if _v is not None: - self["zsrc"] = _v + self._init_provided('autobinx', arg, autobinx) + self._init_provided('autobiny', arg, autobiny) + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('bingroup', arg, bingroup) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('histfunc', arg, histfunc) + self._init_provided('histnorm', arg, histnorm) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('marker', arg, marker) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('nbinsx', arg, nbinsx) + self._init_provided('nbinsy', arg, nbinsy) + self._init_provided('opacity', arg, opacity) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('showscale', arg, showscale) + self._init_provided('stream', arg, stream) + self._init_provided('textfont', arg, textfont) + self._init_provided('texttemplate', arg, texttemplate) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('visible', arg, visible) + self._init_provided('x', arg, x) + self._init_provided('xaxis', arg, xaxis) + self._init_provided('xbingroup', arg, xbingroup) + self._init_provided('xbins', arg, xbins) + self._init_provided('xcalendar', arg, xcalendar) + self._init_provided('xgap', arg, xgap) + self._init_provided('xhoverformat', arg, xhoverformat) + self._init_provided('xsrc', arg, xsrc) + self._init_provided('y', arg, y) + self._init_provided('yaxis', arg, yaxis) + self._init_provided('ybingroup', arg, ybingroup) + self._init_provided('ybins', arg, ybins) + self._init_provided('ycalendar', arg, ycalendar) + self._init_provided('ygap', arg, ygap) + self._init_provided('yhoverformat', arg, yhoverformat) + self._init_provided('ysrc', arg, ysrc) + self._init_provided('z', arg, z) + self._init_provided('zauto', arg, zauto) + self._init_provided('zhoverformat', arg, zhoverformat) + self._init_provided('zmax', arg, zmax) + self._init_provided('zmid', arg, zmid) + self._init_provided('zmin', arg, zmin) + self._init_provided('zsmooth', arg, zsmooth) + self._init_provided('zsrc', arg, zsrc) # Read-only literals # ------------------ - self._props["type"] = "histogram2d" - arg.pop("type", None) + self._props['type'] = 'histogram2d' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_histogram2dcontour.py b/packages/python/plotly/plotly/graph_objs/_histogram2dcontour.py index aedd85a1cbc..1e8fd50eb64 100644 --- a/packages/python/plotly/plotly/graph_objs/_histogram2dcontour.py +++ b/packages/python/plotly/plotly/graph_objs/_histogram2dcontour.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,75 +8,9 @@ class Histogram2dContour(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "histogram2dcontour" - _valid_props = { - "autobinx", - "autobiny", - "autocolorscale", - "autocontour", - "bingroup", - "coloraxis", - "colorbar", - "colorscale", - "contours", - "customdata", - "customdatasrc", - "histfunc", - "histnorm", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "ids", - "idssrc", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "line", - "marker", - "meta", - "metasrc", - "name", - "nbinsx", - "nbinsy", - "ncontours", - "opacity", - "reversescale", - "showlegend", - "showscale", - "stream", - "textfont", - "texttemplate", - "type", - "uid", - "uirevision", - "visible", - "x", - "xaxis", - "xbingroup", - "xbins", - "xcalendar", - "xhoverformat", - "xsrc", - "y", - "yaxis", - "ybingroup", - "ybins", - "ycalendar", - "yhoverformat", - "ysrc", - "z", - "zauto", - "zhoverformat", - "zmax", - "zmid", - "zmin", - "zsrc", - } + _parent_path_str = '' + _path_str = 'histogram2dcontour' + _valid_props = {"autobinx", "autobiny", "autocolorscale", "autocontour", "bingroup", "coloraxis", "colorbar", "colorscale", "contours", "customdata", "customdatasrc", "histfunc", "histnorm", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "ids", "idssrc", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "line", "marker", "meta", "metasrc", "name", "nbinsx", "nbinsy", "ncontours", "opacity", "reversescale", "showlegend", "showscale", "stream", "textfont", "texttemplate", "type", "uid", "uirevision", "visible", "x", "xaxis", "xbingroup", "xbins", "xcalendar", "xhoverformat", "xsrc", "y", "yaxis", "ybingroup", "ybins", "ycalendar", "yhoverformat", "ysrc", "z", "zauto", "zhoverformat", "zmax", "zmid", "zmin", "zsrc"} # autobinx # -------- @@ -93,11 +29,11 @@ def autobinx(self): ------- bool """ - return self["autobinx"] + return self['autobinx'] @autobinx.setter def autobinx(self, val): - self["autobinx"] = val + self['autobinx'] = val # autobiny # -------- @@ -116,11 +52,11 @@ def autobiny(self): ------- bool """ - return self["autobiny"] + return self['autobiny'] @autobiny.setter def autobiny(self, val): - self["autobiny"] = val + self['autobiny'] = val # autocolorscale # -------------- @@ -141,11 +77,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # autocontour # ----------- @@ -164,11 +100,11 @@ def autocontour(self): ------- bool """ - return self["autocontour"] + return self['autocontour'] @autocontour.setter def autocontour(self, val): - self["autocontour"] = val + self['autocontour'] = val # bingroup # -------- @@ -187,11 +123,11 @@ def bingroup(self): ------- str """ - return self["bingroup"] + return self['bingroup'] @bingroup.setter def bingroup(self, val): - self["bingroup"] = val + self['bingroup'] = val # coloraxis # --------- @@ -214,11 +150,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -231,282 +167,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.histogr - am2dcontour.colorbar.Tickformatstop` instances - or dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.histogram2dcontour.colorbar.tickformatstopdef - aults), sets the default property values to use - for elements of - histogram2dcontour.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.histogram2dcontour - .colorbar.Title` instance or dict with - compatible properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.histogram2dcontour.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -555,11 +224,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # contours # -------- @@ -572,81 +241,15 @@ def contours(self): - A dict of string/value properties that will be passed to the Contours constructor - Supported dict properties: - - coloring - Determines the coloring method showing the - contour values. If "fill", coloring is done - evenly between each contour level If "heatmap", - a heatmap gradient coloring is applied between - each contour level. If "lines", coloring is - done on the contour lines. If "none", no - coloring is applied on this trace. - end - Sets the end contour level value. Must be more - than `contours.start` - labelfont - Sets the font used for labeling the contour - levels. The default color comes from the lines, - if shown. The default family and size come from - `layout.font`. - labelformat - Sets the contour label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. - operation - Sets the constraint operation. "=" keeps - regions equal to `value` "<" and "<=" keep - regions less than `value` ">" and ">=" keep - regions greater than `value` "[]", "()", "[)", - and "(]" keep regions inside `value[0]` to - `value[1]` "][", ")(", "](", ")[" keep regions - outside `value[0]` to value[1]` Open vs. closed - intervals make no difference to constraint - display, but all versions are allowed for - consistency with filter transforms. - showlabels - Determines whether to label the contour lines - with their values. - showlines - Determines whether or not the contour lines are - drawn. Has an effect only if - `contours.coloring` is set to "fill". - size - Sets the step between each contour level. Must - be positive. - start - Sets the starting contour level value. Must be - less than `contours.end` - type - If `levels`, the data is represented as a - contour plot with multiple levels displayed. If - `constraint`, the data is represented as - constraints with the invalid region shaded as - specified by the `operation` and `value` - parameters. - value - Sets the value or values of the constraint - boundary. When `operation` is set to one of the - comparison values (=,<,>=,>,<=) "value" is - expected to be a number. When `operation` is - set to one of the interval values - ([],(),[),(],][,)(,](,)[) "value" is expected - to be an array of two numbers where the first - is the lower bound and the second is the upper - bound. - Returns ------- plotly.graph_objs.histogram2dcontour.Contours """ - return self["contours"] + return self['contours'] @contours.setter def contours(self, val): - self["contours"] = val + self['contours'] = val # customdata # ---------- @@ -665,11 +268,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -686,11 +289,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # histfunc # -------- @@ -712,11 +315,11 @@ def histfunc(self): ------- Any """ - return self["histfunc"] + return self['histfunc'] @histfunc.setter def histfunc(self, val): - self["histfunc"] = val + self['histfunc'] = val # histnorm # -------- @@ -746,11 +349,11 @@ def histnorm(self): ------- Any """ - return self["histnorm"] + return self['histnorm'] @histnorm.setter def histnorm(self, val): - self["histnorm"] = val + self['histnorm'] = val # hoverinfo # --------- @@ -772,11 +375,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -793,11 +396,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -810,53 +413,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.histogram2dcontour.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -897,11 +462,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -918,11 +483,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # ids # --- @@ -940,11 +505,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -960,11 +525,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # legend # ------ @@ -985,11 +550,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -1008,11 +573,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -1025,22 +590,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.histogram2dcontour.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -1063,11 +621,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -1084,11 +642,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # line # ---- @@ -1101,32 +659,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the color of the contour level. Has no - effect if `contours.coloring` is set to - "lines". - dash - 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"). - smoothing - Sets the amount of smoothing for the contour - lines, where 0 corresponds to no smoothing. - width - Sets the contour line width in (in px) - Returns ------- plotly.graph_objs.histogram2dcontour.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # marker # ------ @@ -1139,23 +680,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the aggregation data. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - Returns ------- plotly.graph_objs.histogram2dcontour.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # meta # ---- @@ -1179,11 +712,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -1199,11 +732,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -1221,11 +754,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # nbinsx # ------ @@ -1245,11 +778,11 @@ def nbinsx(self): ------- int """ - return self["nbinsx"] + return self['nbinsx'] @nbinsx.setter def nbinsx(self, val): - self["nbinsx"] = val + self['nbinsx'] = val # nbinsy # ------ @@ -1269,11 +802,11 @@ def nbinsy(self): ------- int """ - return self["nbinsy"] + return self['nbinsy'] @nbinsy.setter def nbinsy(self, val): - self["nbinsy"] = val + self['nbinsy'] = val # ncontours # --------- @@ -1293,11 +826,11 @@ def ncontours(self): ------- int """ - return self["ncontours"] + return self['ncontours'] @ncontours.setter def ncontours(self, val): - self["ncontours"] = val + self['ncontours'] = val # opacity # ------- @@ -1313,11 +846,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # reversescale # ------------ @@ -1335,11 +868,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # showlegend # ---------- @@ -1356,11 +889,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # showscale # --------- @@ -1377,11 +910,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # stream # ------ @@ -1394,27 +927,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.histogram2dcontour.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # textfont # -------- @@ -1430,61 +951,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.histogram2dcontour.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # texttemplate # ------------ @@ -1515,11 +990,11 @@ def texttemplate(self): ------- str """ - return self["texttemplate"] + return self['texttemplate'] @texttemplate.setter def texttemplate(self, val): - self["texttemplate"] = val + self['texttemplate'] = val # uid # --- @@ -1537,11 +1012,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1570,11 +1045,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # visible # ------- @@ -1593,11 +1068,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # x # - @@ -1613,11 +1088,11 @@ def x(self): ------- numpy.ndarray """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xaxis # ----- @@ -1638,11 +1113,11 @@ def xaxis(self): ------- str """ - return self["xaxis"] + return self['xaxis'] @xaxis.setter def xaxis(self, val): - self["xaxis"] = val + self['xaxis'] = val # xbingroup # --------- @@ -1663,11 +1138,11 @@ def xbingroup(self): ------- str """ - return self["xbingroup"] + return self['xbingroup'] @xbingroup.setter def xbingroup(self, val): - self["xbingroup"] = val + self['xbingroup'] = val # xbins # ----- @@ -1680,52 +1155,15 @@ def xbins(self): - A dict of string/value properties that will be passed to the XBins constructor - Supported dict properties: - - end - Sets the end value for the x axis bins. The - last bin may not end exactly at this value, we - increment the bin edge by `size` from `start` - until we reach or exceed `end`. Defaults to the - maximum data value. Like `start`, for dates use - a date string, and for category data `end` is - based on the category serial numbers. - size - Sets the size of each x axis bin. Default - behavior: If `nbinsx` is 0 or omitted, we - choose a nice round bin size such that the - number of bins is about the same as the typical - number of samples in each bin. If `nbinsx` is - provided, we choose a nice round bin size - giving no more than that many bins. For date - data, use milliseconds or "M" for months, as - in `axis.dtick`. For category data, the number - of categories to bin together (always defaults - to 1). - start - Sets the starting value for the x axis bins. - Defaults to the minimum data value, shifted - down if necessary to make nice round values and - to remove ambiguous bin edges. For example, if - most of the data is integers we shift the bin - edges 0.5 down, so a `size` of 5 would have a - default `start` of -0.5, so it is clear that - 0-4 are in the first bin, 5-9 in the second, - but continuous data gets a start of 0 and bins - [0,5), [5,10) etc. Dates behave similarly, and - `start` should be a date string. For category - data, `start` is based on the category serial - numbers, and defaults to -0.5. - Returns ------- plotly.graph_objs.histogram2dcontour.XBins """ - return self["xbins"] + return self['xbins'] @xbins.setter def xbins(self, val): - self["xbins"] = val + self['xbins'] = val # xcalendar # --------- @@ -1745,11 +1183,11 @@ def xcalendar(self): ------- Any """ - return self["xcalendar"] + return self['xcalendar'] @xcalendar.setter def xcalendar(self, val): - self["xcalendar"] = val + self['xcalendar'] = val # xhoverformat # ------------ @@ -1776,11 +1214,11 @@ def xhoverformat(self): ------- str """ - return self["xhoverformat"] + return self['xhoverformat'] @xhoverformat.setter def xhoverformat(self, val): - self["xhoverformat"] = val + self['xhoverformat'] = val # xsrc # ---- @@ -1796,11 +1234,11 @@ def xsrc(self): ------- str """ - return self["xsrc"] + return self['xsrc'] @xsrc.setter def xsrc(self, val): - self["xsrc"] = val + self['xsrc'] = val # y # - @@ -1816,11 +1254,11 @@ def y(self): ------- numpy.ndarray """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yaxis # ----- @@ -1841,11 +1279,11 @@ def yaxis(self): ------- str """ - return self["yaxis"] + return self['yaxis'] @yaxis.setter def yaxis(self, val): - self["yaxis"] = val + self['yaxis'] = val # ybingroup # --------- @@ -1866,11 +1304,11 @@ def ybingroup(self): ------- str """ - return self["ybingroup"] + return self['ybingroup'] @ybingroup.setter def ybingroup(self, val): - self["ybingroup"] = val + self['ybingroup'] = val # ybins # ----- @@ -1883,52 +1321,15 @@ def ybins(self): - A dict of string/value properties that will be passed to the YBins constructor - Supported dict properties: - - end - Sets the end value for the y axis bins. The - last bin may not end exactly at this value, we - increment the bin edge by `size` from `start` - until we reach or exceed `end`. Defaults to the - maximum data value. Like `start`, for dates use - a date string, and for category data `end` is - based on the category serial numbers. - size - Sets the size of each y axis bin. Default - behavior: If `nbinsy` is 0 or omitted, we - choose a nice round bin size such that the - number of bins is about the same as the typical - number of samples in each bin. If `nbinsy` is - provided, we choose a nice round bin size - giving no more than that many bins. For date - data, use milliseconds or "M" for months, as - in `axis.dtick`. For category data, the number - of categories to bin together (always defaults - to 1). - start - Sets the starting value for the y axis bins. - Defaults to the minimum data value, shifted - down if necessary to make nice round values and - to remove ambiguous bin edges. For example, if - most of the data is integers we shift the bin - edges 0.5 down, so a `size` of 5 would have a - default `start` of -0.5, so it is clear that - 0-4 are in the first bin, 5-9 in the second, - but continuous data gets a start of 0 and bins - [0,5), [5,10) etc. Dates behave similarly, and - `start` should be a date string. For category - data, `start` is based on the category serial - numbers, and defaults to -0.5. - Returns ------- plotly.graph_objs.histogram2dcontour.YBins """ - return self["ybins"] + return self['ybins'] @ybins.setter def ybins(self, val): - self["ybins"] = val + self['ybins'] = val # ycalendar # --------- @@ -1948,11 +1349,11 @@ def ycalendar(self): ------- Any """ - return self["ycalendar"] + return self['ycalendar'] @ycalendar.setter def ycalendar(self, val): - self["ycalendar"] = val + self['ycalendar'] = val # yhoverformat # ------------ @@ -1979,11 +1380,11 @@ def yhoverformat(self): ------- str """ - return self["yhoverformat"] + return self['yhoverformat'] @yhoverformat.setter def yhoverformat(self, val): - self["yhoverformat"] = val + self['yhoverformat'] = val # ysrc # ---- @@ -1999,11 +1400,11 @@ def ysrc(self): ------- str """ - return self["ysrc"] + return self['ysrc'] @ysrc.setter def ysrc(self, val): - self["ysrc"] = val + self['ysrc'] = val # z # - @@ -2019,11 +1420,11 @@ def z(self): ------- numpy.ndarray """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # zauto # ----- @@ -2042,11 +1443,11 @@ def zauto(self): ------- bool """ - return self["zauto"] + return self['zauto'] @zauto.setter def zauto(self, val): - self["zauto"] = val + self['zauto'] = val # zhoverformat # ------------ @@ -2067,11 +1468,11 @@ def zhoverformat(self): ------- str """ - return self["zhoverformat"] + return self['zhoverformat'] @zhoverformat.setter def zhoverformat(self, val): - self["zhoverformat"] = val + self['zhoverformat'] = val # zmax # ---- @@ -2088,11 +1489,11 @@ def zmax(self): ------- int|float """ - return self["zmax"] + return self['zmax'] @zmax.setter def zmax(self, val): - self["zmax"] = val + self['zmax'] = val # zmid # ---- @@ -2110,11 +1511,11 @@ def zmid(self): ------- int|float """ - return self["zmid"] + return self['zmid'] @zmid.setter def zmid(self, val): - self["zmid"] = val + self['zmid'] = val # zmin # ---- @@ -2131,11 +1532,11 @@ def zmin(self): ------- int|float """ - return self["zmin"] + return self['zmin'] @zmin.setter def zmin(self, val): - self["zmin"] = val + self['zmin'] = val # zsrc # ---- @@ -2151,17 +1552,17 @@ def zsrc(self): ------- str """ - return self["zsrc"] + return self['zsrc'] @zsrc.setter def zsrc(self, val): - self["zsrc"] = val + self['zsrc'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -2538,76 +1939,74 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `z`. """ - - def __init__( - self, - arg=None, - autobinx=None, - autobiny=None, - autocolorscale=None, - autocontour=None, - bingroup=None, - coloraxis=None, - colorbar=None, - colorscale=None, - contours=None, - customdata=None, - customdatasrc=None, - histfunc=None, - histnorm=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meta=None, - metasrc=None, - name=None, - nbinsx=None, - nbinsy=None, - ncontours=None, - opacity=None, - reversescale=None, - showlegend=None, - showscale=None, - stream=None, - textfont=None, - texttemplate=None, - uid=None, - uirevision=None, - visible=None, - x=None, - xaxis=None, - xbingroup=None, - xbins=None, - xcalendar=None, - xhoverformat=None, - xsrc=None, - y=None, - yaxis=None, - ybingroup=None, - ybins=None, - ycalendar=None, - yhoverformat=None, - ysrc=None, - z=None, - zauto=None, - zhoverformat=None, - zmax=None, - zmid=None, - zmin=None, - zsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + autobinx=None, + autobiny=None, + autocolorscale=None, + autocontour=None, + bingroup=None, + coloraxis=None, + colorbar=None, + colorscale=None, + contours=None, + customdata=None, + customdatasrc=None, + histfunc=None, + histnorm=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meta=None, + metasrc=None, + name=None, + nbinsx=None, + nbinsy=None, + ncontours=None, + opacity=None, + reversescale=None, + showlegend=None, + showscale=None, + stream=None, + textfont=None, + texttemplate=None, + uid=None, + uirevision=None, + visible=None, + x=None, + xaxis=None, + xbingroup=None, + xbins=None, + xcalendar=None, + xhoverformat=None, + xsrc=None, + y=None, + yaxis=None, + ybingroup=None, + ybins=None, + ycalendar=None, + yhoverformat=None, + ysrc=None, + z=None, + zauto=None, + zhoverformat=None, + zmax=None, + zmid=None, + zmin=None, + zsrc=None, + **kwargs + ): """ Construct a new Histogram2dContour object @@ -2998,10 +2397,10 @@ def __init__( ------- Histogram2dContour """ - super(Histogram2dContour, self).__init__("histogram2dcontour") + super(Histogram2dContour, self).__init__('histogram2dcontour') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -3013,282 +2412,89 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Histogram2dContour constructor must be a dict or -an instance of :class:`plotly.graph_objs.Histogram2dContour`""" - ) +an instance of :class:`plotly.graph_objs.Histogram2dContour`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autobinx", None) - _v = autobinx if autobinx is not None else _v - if _v is not None: - self["autobinx"] = _v - _v = arg.pop("autobiny", None) - _v = autobiny if autobiny is not None else _v - if _v is not None: - self["autobiny"] = _v - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("autocontour", None) - _v = autocontour if autocontour is not None else _v - if _v is not None: - self["autocontour"] = _v - _v = arg.pop("bingroup", None) - _v = bingroup if bingroup is not None else _v - if _v is not None: - self["bingroup"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("contours", None) - _v = contours if contours is not None else _v - if _v is not None: - self["contours"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("histfunc", None) - _v = histfunc if histfunc is not None else _v - if _v is not None: - self["histfunc"] = _v - _v = arg.pop("histnorm", None) - _v = histnorm if histnorm is not None else _v - if _v is not None: - self["histnorm"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("nbinsx", None) - _v = nbinsx if nbinsx is not None else _v - if _v is not None: - self["nbinsx"] = _v - _v = arg.pop("nbinsy", None) - _v = nbinsy if nbinsy is not None else _v - if _v is not None: - self["nbinsy"] = _v - _v = arg.pop("ncontours", None) - _v = ncontours if ncontours is not None else _v - if _v is not None: - self["ncontours"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v - _v = arg.pop("texttemplate", None) - _v = texttemplate if texttemplate is not None else _v - if _v is not None: - self["texttemplate"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xaxis", None) - _v = xaxis if xaxis is not None else _v - if _v is not None: - self["xaxis"] = _v - _v = arg.pop("xbingroup", None) - _v = xbingroup if xbingroup is not None else _v - if _v is not None: - self["xbingroup"] = _v - _v = arg.pop("xbins", None) - _v = xbins if xbins is not None else _v - if _v is not None: - self["xbins"] = _v - _v = arg.pop("xcalendar", None) - _v = xcalendar if xcalendar is not None else _v - if _v is not None: - self["xcalendar"] = _v - _v = arg.pop("xhoverformat", None) - _v = xhoverformat if xhoverformat is not None else _v - if _v is not None: - self["xhoverformat"] = _v - _v = arg.pop("xsrc", None) - _v = xsrc if xsrc is not None else _v - if _v is not None: - self["xsrc"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yaxis", None) - _v = yaxis if yaxis is not None else _v - if _v is not None: - self["yaxis"] = _v - _v = arg.pop("ybingroup", None) - _v = ybingroup if ybingroup is not None else _v - if _v is not None: - self["ybingroup"] = _v - _v = arg.pop("ybins", None) - _v = ybins if ybins is not None else _v - if _v is not None: - self["ybins"] = _v - _v = arg.pop("ycalendar", None) - _v = ycalendar if ycalendar is not None else _v - if _v is not None: - self["ycalendar"] = _v - _v = arg.pop("yhoverformat", None) - _v = yhoverformat if yhoverformat is not None else _v - if _v is not None: - self["yhoverformat"] = _v - _v = arg.pop("ysrc", None) - _v = ysrc if ysrc is not None else _v - if _v is not None: - self["ysrc"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v - _v = arg.pop("zauto", None) - _v = zauto if zauto is not None else _v - if _v is not None: - self["zauto"] = _v - _v = arg.pop("zhoverformat", None) - _v = zhoverformat if zhoverformat is not None else _v - if _v is not None: - self["zhoverformat"] = _v - _v = arg.pop("zmax", None) - _v = zmax if zmax is not None else _v - if _v is not None: - self["zmax"] = _v - _v = arg.pop("zmid", None) - _v = zmid if zmid is not None else _v - if _v is not None: - self["zmid"] = _v - _v = arg.pop("zmin", None) - _v = zmin if zmin is not None else _v - if _v is not None: - self["zmin"] = _v - _v = arg.pop("zsrc", None) - _v = zsrc if zsrc is not None else _v - if _v is not None: - self["zsrc"] = _v + self._init_provided('autobinx', arg, autobinx) + self._init_provided('autobiny', arg, autobiny) + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('autocontour', arg, autocontour) + self._init_provided('bingroup', arg, bingroup) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('contours', arg, contours) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('histfunc', arg, histfunc) + self._init_provided('histnorm', arg, histnorm) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('line', arg, line) + self._init_provided('marker', arg, marker) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('nbinsx', arg, nbinsx) + self._init_provided('nbinsy', arg, nbinsy) + self._init_provided('ncontours', arg, ncontours) + self._init_provided('opacity', arg, opacity) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('showscale', arg, showscale) + self._init_provided('stream', arg, stream) + self._init_provided('textfont', arg, textfont) + self._init_provided('texttemplate', arg, texttemplate) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('visible', arg, visible) + self._init_provided('x', arg, x) + self._init_provided('xaxis', arg, xaxis) + self._init_provided('xbingroup', arg, xbingroup) + self._init_provided('xbins', arg, xbins) + self._init_provided('xcalendar', arg, xcalendar) + self._init_provided('xhoverformat', arg, xhoverformat) + self._init_provided('xsrc', arg, xsrc) + self._init_provided('y', arg, y) + self._init_provided('yaxis', arg, yaxis) + self._init_provided('ybingroup', arg, ybingroup) + self._init_provided('ybins', arg, ybins) + self._init_provided('ycalendar', arg, ycalendar) + self._init_provided('yhoverformat', arg, yhoverformat) + self._init_provided('ysrc', arg, ysrc) + self._init_provided('z', arg, z) + self._init_provided('zauto', arg, zauto) + self._init_provided('zhoverformat', arg, zhoverformat) + self._init_provided('zmax', arg, zmax) + self._init_provided('zmid', arg, zmid) + self._init_provided('zmin', arg, zmin) + self._init_provided('zsrc', arg, zsrc) # Read-only literals # ------------------ - self._props["type"] = "histogram2dcontour" - arg.pop("type", None) + self._props['type'] = 'histogram2dcontour' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_icicle.py b/packages/python/plotly/plotly/graph_objs/_icicle.py index da989e61f2b..28cdf74ebab 100644 --- a/packages/python/plotly/plotly/graph_objs/_icicle.py +++ b/packages/python/plotly/plotly/graph_objs/_icicle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,60 +8,9 @@ class Icicle(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "icicle" - _valid_props = { - "branchvalues", - "count", - "customdata", - "customdatasrc", - "domain", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "insidetextfont", - "labels", - "labelssrc", - "leaf", - "legend", - "legendgrouptitle", - "legendrank", - "legendwidth", - "level", - "marker", - "maxdepth", - "meta", - "metasrc", - "name", - "opacity", - "outsidetextfont", - "parents", - "parentssrc", - "pathbar", - "root", - "sort", - "stream", - "text", - "textfont", - "textinfo", - "textposition", - "textsrc", - "texttemplate", - "texttemplatesrc", - "tiling", - "type", - "uid", - "uirevision", - "values", - "valuessrc", - "visible", - } + _parent_path_str = '' + _path_str = 'icicle' + _valid_props = {"branchvalues", "count", "customdata", "customdatasrc", "domain", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "insidetextfont", "labels", "labelssrc", "leaf", "legend", "legendgrouptitle", "legendrank", "legendwidth", "level", "marker", "maxdepth", "meta", "metasrc", "name", "opacity", "outsidetextfont", "parents", "parentssrc", "pathbar", "root", "sort", "stream", "text", "textfont", "textinfo", "textposition", "textsrc", "texttemplate", "texttemplatesrc", "tiling", "type", "uid", "uirevision", "values", "valuessrc", "visible"} # branchvalues # ------------ @@ -81,11 +32,11 @@ def branchvalues(self): ------- Any """ - return self["branchvalues"] + return self['branchvalues'] @branchvalues.setter def branchvalues(self, val): - self["branchvalues"] = val + self['branchvalues'] = val # count # ----- @@ -105,11 +56,11 @@ def count(self): ------- Any """ - return self["count"] + return self['count'] @count.setter def count(self, val): - self["count"] = val + self['count'] = val # customdata # ---------- @@ -128,11 +79,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -149,11 +100,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # domain # ------ @@ -166,30 +117,15 @@ def domain(self): - A dict of string/value properties that will be passed to the Domain constructor - Supported dict properties: - - column - If there is a layout grid, use the domain for - this column in the grid for this icicle trace . - row - If there is a layout grid, use the domain for - this row in the grid for this icicle trace . - x - Sets the horizontal domain of this icicle trace - (in plot fraction). - y - Sets the vertical domain of this icicle trace - (in plot fraction). - Returns ------- plotly.graph_objs.icicle.Domain """ - return self["domain"] + return self['domain'] @domain.setter def domain(self, val): - self["domain"] = val + self['domain'] = val # hoverinfo # --------- @@ -211,11 +147,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -232,11 +168,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -249,53 +185,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.icicle.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -338,11 +236,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -359,11 +257,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -385,11 +283,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -406,11 +304,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -428,11 +326,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -448,11 +346,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # insidetextfont # -------------- @@ -467,88 +365,15 @@ def insidetextfont(self): - A dict of string/value properties that will be passed to the Insidetextfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.icicle.Insidetextfont """ - return self["insidetextfont"] + return self['insidetextfont'] @insidetextfont.setter def insidetextfont(self, val): - self["insidetextfont"] = val + self['insidetextfont'] = val # labels # ------ @@ -564,11 +389,11 @@ def labels(self): ------- numpy.ndarray """ - return self["labels"] + return self['labels'] @labels.setter def labels(self, val): - self["labels"] = val + self['labels'] = val # labelssrc # --------- @@ -584,11 +409,11 @@ def labelssrc(self): ------- str """ - return self["labelssrc"] + return self['labelssrc'] @labelssrc.setter def labelssrc(self, val): - self["labelssrc"] = val + self['labelssrc'] = val # leaf # ---- @@ -601,22 +426,15 @@ def leaf(self): - A dict of string/value properties that will be passed to the Leaf constructor - Supported dict properties: - - opacity - Sets the opacity of the leaves. With colorscale - it is defaulted to 1; otherwise it is defaulted - to 0.7 - Returns ------- plotly.graph_objs.icicle.Leaf """ - return self["leaf"] + return self['leaf'] @leaf.setter def leaf(self, val): - self["leaf"] = val + self['leaf'] = val # legend # ------ @@ -637,11 +455,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgrouptitle # ---------------- @@ -654,22 +472,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.icicle.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -692,11 +503,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -713,11 +524,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # level # ----- @@ -735,11 +546,11 @@ def level(self): ------- Any """ - return self["level"] + return self['level'] @level.setter def level(self, val): - self["level"] = val + self['level'] = val # marker # ------ @@ -752,107 +563,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if colors is set to a numerical - array. In case `colorscale` is unspecified or - `autocolorscale` is true, the default palette - will be chosen according to whether numbers in - the `color` array are all positive, all - negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - colors) or the bounds set in `marker.cmin` and - `marker.cmax` Has an effect only if colors is - set to a numerical array. Defaults to `false` - when `marker.cmin` and `marker.cmax` are set by - the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if colors is set to a numerical - array. Value should have the same units as - colors and if set, `marker.cmin` must be set as - well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if colors is set to a numerical array. - Value should have the same units as colors. Has - no effect when `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if colors is set to a numerical - array. Value should have the same units as - colors and if set, `marker.cmax` must be set as - well. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.icicle.marker.Colo - rBar` instance or dict with compatible - properties - colors - Sets the color of each sector of this trace. If - not specified, the default trace color set is - used to pick the sector colors. - colorscale - Sets the colorscale. Has an effect only if - colors is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorssrc - Sets the source reference on Chart Studio Cloud - for `colors`. - line - :class:`plotly.graph_objects.icicle.marker.Line - ` instance or dict with compatible properties - pattern - Sets the pattern within the marker. - reversescale - Reverses the color mapping if true. Has an - effect only if colors is set to a numerical - array. If true, `marker.cmin` will correspond - to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - colors is set to a numerical array. - Returns ------- plotly.graph_objs.icicle.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # maxdepth # -------- @@ -869,11 +588,11 @@ def maxdepth(self): ------- int """ - return self["maxdepth"] + return self['maxdepth'] @maxdepth.setter def maxdepth(self, val): - self["maxdepth"] = val + self['maxdepth'] = val # meta # ---- @@ -897,11 +616,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -917,11 +636,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -939,11 +658,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -959,11 +678,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # outsidetextfont # --------------- @@ -982,88 +701,15 @@ def outsidetextfont(self): - A dict of string/value properties that will be passed to the Outsidetextfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.icicle.Outsidetextfont """ - return self["outsidetextfont"] + return self['outsidetextfont'] @outsidetextfont.setter def outsidetextfont(self, val): - self["outsidetextfont"] = val + self['outsidetextfont'] = val # parents # ------- @@ -1084,11 +730,11 @@ def parents(self): ------- numpy.ndarray """ - return self["parents"] + return self['parents'] @parents.setter def parents(self, val): - self["parents"] = val + self['parents'] = val # parentssrc # ---------- @@ -1104,11 +750,11 @@ def parentssrc(self): ------- str """ - return self["parentssrc"] + return self['parentssrc'] @parentssrc.setter def parentssrc(self, val): - self["parentssrc"] = val + self['parentssrc'] = val # pathbar # ------- @@ -1121,34 +767,15 @@ def pathbar(self): - A dict of string/value properties that will be passed to the Pathbar constructor - Supported dict properties: - - edgeshape - Determines which shape is used for edges - between `barpath` labels. - side - Determines on which side of the the treemap the - `pathbar` should be presented. - textfont - Sets the font used inside `pathbar`. - thickness - Sets the thickness of `pathbar` (in px). If not - specified the `pathbar.textfont.size` is used - with 3 pixles extra padding on each side. - visible - Determines if the path bar is drawn i.e. - outside the trace `domain` and with one pixel - gap. - Returns ------- plotly.graph_objs.icicle.Pathbar """ - return self["pathbar"] + return self['pathbar'] @pathbar.setter def pathbar(self, val): - self["pathbar"] = val + self['pathbar'] = val # root # ---- @@ -1161,23 +788,15 @@ def root(self): - A dict of string/value properties that will be passed to the Root constructor - Supported dict properties: - - color - sets the color of the root node for a - sunburst/treemap/icicle trace. this has no - effect when a colorscale is used to set the - markers. - Returns ------- plotly.graph_objs.icicle.Root """ - return self["root"] + return self['root'] @root.setter def root(self, val): - self["root"] = val + self['root'] = val # sort # ---- @@ -1194,11 +813,11 @@ def sort(self): ------- bool """ - return self["sort"] + return self['sort'] @sort.setter def sort(self, val): - self["sort"] = val + self['sort'] = val # stream # ------ @@ -1211,27 +830,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.icicle.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # text # ---- @@ -1251,11 +858,11 @@ def text(self): ------- numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textfont # -------- @@ -1270,88 +877,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.icicle.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # textinfo # -------- @@ -1370,11 +904,11 @@ def textinfo(self): ------- Any """ - return self["textinfo"] + return self['textinfo'] @textinfo.setter def textinfo(self, val): - self["textinfo"] = val + self['textinfo'] = val # textposition # ------------ @@ -1393,11 +927,11 @@ def textposition(self): ------- Any """ - return self["textposition"] + return self['textposition'] @textposition.setter def textposition(self, val): - self["textposition"] = val + self['textposition'] = val # textsrc # ------- @@ -1413,11 +947,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # texttemplate # ------------ @@ -1449,11 +983,11 @@ def texttemplate(self): ------- str|numpy.ndarray """ - return self["texttemplate"] + return self['texttemplate'] @texttemplate.setter def texttemplate(self, val): - self["texttemplate"] = val + self['texttemplate'] = val # texttemplatesrc # --------------- @@ -1470,11 +1004,11 @@ def texttemplatesrc(self): ------- str """ - return self["texttemplatesrc"] + return self['texttemplatesrc'] @texttemplatesrc.setter def texttemplatesrc(self, val): - self["texttemplatesrc"] = val + self['texttemplatesrc'] = val # tiling # ------ @@ -1487,35 +1021,15 @@ def tiling(self): - A dict of string/value properties that will be passed to the Tiling constructor - Supported dict properties: - - flip - Determines if the positions obtained from - solver are flipped on each axis. - orientation - When set in conjunction with `tiling.flip`, - determines on which side the root nodes are - drawn in the chart. If `tiling.orientation` is - "v" and `tiling.flip` is "", the root nodes - appear at the top. If `tiling.orientation` is - "v" and `tiling.flip` is "y", the root nodes - appear at the bottom. If `tiling.orientation` - is "h" and `tiling.flip` is "", the root nodes - appear at the left. If `tiling.orientation` is - "h" and `tiling.flip` is "x", the root nodes - appear at the right. - pad - Sets the inner padding (in px). - Returns ------- plotly.graph_objs.icicle.Tiling """ - return self["tiling"] + return self['tiling'] @tiling.setter def tiling(self, val): - self["tiling"] = val + self['tiling'] = val # uid # --- @@ -1533,11 +1047,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1566,11 +1080,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # values # ------ @@ -1587,11 +1101,11 @@ def values(self): ------- numpy.ndarray """ - return self["values"] + return self['values'] @values.setter def values(self, val): - self["values"] = val + self['values'] = val # valuessrc # --------- @@ -1607,11 +1121,11 @@ def valuessrc(self): ------- str """ - return self["valuessrc"] + return self['valuessrc'] @valuessrc.setter def valuessrc(self, val): - self["valuessrc"] = val + self['valuessrc'] = val # visible # ------- @@ -1630,17 +1144,17 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -1902,61 +1416,59 @@ def _prop_descriptions(self): a legend item (provided that the legend itself is visible). """ - - def __init__( - self, - arg=None, - branchvalues=None, - count=None, - customdata=None, - customdatasrc=None, - domain=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - insidetextfont=None, - labels=None, - labelssrc=None, - leaf=None, - legend=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - level=None, - marker=None, - maxdepth=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - outsidetextfont=None, - parents=None, - parentssrc=None, - pathbar=None, - root=None, - sort=None, - stream=None, - text=None, - textfont=None, - textinfo=None, - textposition=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - tiling=None, - uid=None, - uirevision=None, - values=None, - valuessrc=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + branchvalues=None, + count=None, + customdata=None, + customdatasrc=None, + domain=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + insidetextfont=None, + labels=None, + labelssrc=None, + leaf=None, + legend=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + level=None, + marker=None, + maxdepth=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + outsidetextfont=None, + parents=None, + parentssrc=None, + pathbar=None, + root=None, + sort=None, + stream=None, + text=None, + textfont=None, + textinfo=None, + textposition=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + tiling=None, + uid=None, + uirevision=None, + values=None, + valuessrc=None, + visible=None, + **kwargs + ): """ Construct a new Icicle object @@ -2228,10 +1740,10 @@ def __init__( ------- Icicle """ - super(Icicle, self).__init__("icicle") + super(Icicle, self).__init__('icicle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2243,222 +1755,74 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Icicle constructor must be a dict or -an instance of :class:`plotly.graph_objs.Icicle`""" - ) +an instance of :class:`plotly.graph_objs.Icicle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("branchvalues", None) - _v = branchvalues if branchvalues is not None else _v - if _v is not None: - self["branchvalues"] = _v - _v = arg.pop("count", None) - _v = count if count is not None else _v - if _v is not None: - self["count"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("domain", None) - _v = domain if domain is not None else _v - if _v is not None: - self["domain"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("insidetextfont", None) - _v = insidetextfont if insidetextfont is not None else _v - if _v is not None: - self["insidetextfont"] = _v - _v = arg.pop("labels", None) - _v = labels if labels is not None else _v - if _v is not None: - self["labels"] = _v - _v = arg.pop("labelssrc", None) - _v = labelssrc if labelssrc is not None else _v - if _v is not None: - self["labelssrc"] = _v - _v = arg.pop("leaf", None) - _v = leaf if leaf is not None else _v - if _v is not None: - self["leaf"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("level", None) - _v = level if level is not None else _v - if _v is not None: - self["level"] = _v - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("maxdepth", None) - _v = maxdepth if maxdepth is not None else _v - if _v is not None: - self["maxdepth"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("outsidetextfont", None) - _v = outsidetextfont if outsidetextfont is not None else _v - if _v is not None: - self["outsidetextfont"] = _v - _v = arg.pop("parents", None) - _v = parents if parents is not None else _v - if _v is not None: - self["parents"] = _v - _v = arg.pop("parentssrc", None) - _v = parentssrc if parentssrc is not None else _v - if _v is not None: - self["parentssrc"] = _v - _v = arg.pop("pathbar", None) - _v = pathbar if pathbar is not None else _v - if _v is not None: - self["pathbar"] = _v - _v = arg.pop("root", None) - _v = root if root is not None else _v - if _v is not None: - self["root"] = _v - _v = arg.pop("sort", None) - _v = sort if sort is not None else _v - if _v is not None: - self["sort"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v - _v = arg.pop("textinfo", None) - _v = textinfo if textinfo is not None else _v - if _v is not None: - self["textinfo"] = _v - _v = arg.pop("textposition", None) - _v = textposition if textposition is not None else _v - if _v is not None: - self["textposition"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("texttemplate", None) - _v = texttemplate if texttemplate is not None else _v - if _v is not None: - self["texttemplate"] = _v - _v = arg.pop("texttemplatesrc", None) - _v = texttemplatesrc if texttemplatesrc is not None else _v - if _v is not None: - self["texttemplatesrc"] = _v - _v = arg.pop("tiling", None) - _v = tiling if tiling is not None else _v - if _v is not None: - self["tiling"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("values", None) - _v = values if values is not None else _v - if _v is not None: - self["values"] = _v - _v = arg.pop("valuessrc", None) - _v = valuessrc if valuessrc is not None else _v - if _v is not None: - self["valuessrc"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('branchvalues', arg, branchvalues) + self._init_provided('count', arg, count) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('domain', arg, domain) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('insidetextfont', arg, insidetextfont) + self._init_provided('labels', arg, labels) + self._init_provided('labelssrc', arg, labelssrc) + self._init_provided('leaf', arg, leaf) + self._init_provided('legend', arg, legend) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('level', arg, level) + self._init_provided('marker', arg, marker) + self._init_provided('maxdepth', arg, maxdepth) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('outsidetextfont', arg, outsidetextfont) + self._init_provided('parents', arg, parents) + self._init_provided('parentssrc', arg, parentssrc) + self._init_provided('pathbar', arg, pathbar) + self._init_provided('root', arg, root) + self._init_provided('sort', arg, sort) + self._init_provided('stream', arg, stream) + self._init_provided('text', arg, text) + self._init_provided('textfont', arg, textfont) + self._init_provided('textinfo', arg, textinfo) + self._init_provided('textposition', arg, textposition) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('texttemplate', arg, texttemplate) + self._init_provided('texttemplatesrc', arg, texttemplatesrc) + self._init_provided('tiling', arg, tiling) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('values', arg, values) + self._init_provided('valuessrc', arg, valuessrc) + self._init_provided('visible', arg, visible) # Read-only literals # ------------------ - self._props["type"] = "icicle" - arg.pop("type", None) + self._props['type'] = 'icicle' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_image.py b/packages/python/plotly/plotly/graph_objs/_image.py index 5e1b935e07b..ce29c2a762d 100644 --- a/packages/python/plotly/plotly/graph_objs/_image.py +++ b/packages/python/plotly/plotly/graph_objs/_image.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,50 +8,9 @@ class Image(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "image" - _valid_props = { - "colormodel", - "customdata", - "customdatasrc", - "dx", - "dy", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "legend", - "legendgrouptitle", - "legendrank", - "legendwidth", - "meta", - "metasrc", - "name", - "opacity", - "source", - "stream", - "text", - "textsrc", - "type", - "uid", - "uirevision", - "visible", - "x0", - "xaxis", - "y0", - "yaxis", - "z", - "zmax", - "zmin", - "zorder", - "zsmooth", - "zsrc", - } + _parent_path_str = '' + _path_str = 'image' + _valid_props = {"colormodel", "customdata", "customdatasrc", "dx", "dy", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "legend", "legendgrouptitle", "legendrank", "legendwidth", "meta", "metasrc", "name", "opacity", "source", "stream", "text", "textsrc", "type", "uid", "uirevision", "visible", "x0", "xaxis", "y0", "yaxis", "z", "zmax", "zmin", "zorder", "zsmooth", "zsrc"} # colormodel # ---------- @@ -69,11 +30,11 @@ def colormodel(self): ------- Any """ - return self["colormodel"] + return self['colormodel'] @colormodel.setter def colormodel(self, val): - self["colormodel"] = val + self['colormodel'] = val # customdata # ---------- @@ -92,11 +53,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -113,11 +74,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # dx # -- @@ -133,11 +94,11 @@ def dx(self): ------- int|float """ - return self["dx"] + return self['dx'] @dx.setter def dx(self, val): - self["dx"] = val + self['dx'] = val # dy # -- @@ -153,11 +114,11 @@ def dy(self): ------- int|float """ - return self["dy"] + return self['dy'] @dy.setter def dy(self, val): - self["dy"] = val + self['dy'] = val # hoverinfo # --------- @@ -179,11 +140,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -200,11 +161,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -217,53 +178,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.image.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -305,11 +228,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -326,11 +249,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -346,11 +269,11 @@ def hovertext(self): ------- numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -367,11 +290,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -389,11 +312,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -409,11 +332,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # legend # ------ @@ -434,11 +357,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgrouptitle # ---------------- @@ -451,22 +374,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.image.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -489,11 +405,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -510,11 +426,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # meta # ---- @@ -538,11 +454,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -558,11 +474,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -580,11 +496,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -600,11 +516,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # source # ------ @@ -622,11 +538,11 @@ def source(self): ------- str """ - return self["source"] + return self['source'] @source.setter def source(self, val): - self["source"] = val + self['source'] = val # stream # ------ @@ -639,27 +555,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.image.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # text # ---- @@ -675,11 +579,11 @@ def text(self): ------- numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textsrc # ------- @@ -695,11 +599,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # uid # --- @@ -717,11 +621,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -750,11 +654,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # visible # ------- @@ -773,11 +677,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # x0 # -- @@ -794,11 +698,11 @@ def x0(self): ------- Any """ - return self["x0"] + return self['x0'] @x0.setter def x0(self, val): - self["x0"] = val + self['x0'] = val # xaxis # ----- @@ -819,11 +723,11 @@ def xaxis(self): ------- str """ - return self["xaxis"] + return self['xaxis'] @xaxis.setter def xaxis(self, val): - self["xaxis"] = val + self['xaxis'] = val # y0 # -- @@ -843,11 +747,11 @@ def y0(self): ------- Any """ - return self["y0"] + return self['y0'] @y0.setter def y0(self, val): - self["y0"] = val + self['y0'] = val # yaxis # ----- @@ -868,11 +772,11 @@ def yaxis(self): ------- str """ - return self["yaxis"] + return self['yaxis'] @yaxis.setter def yaxis(self, val): - self["yaxis"] = val + self['yaxis'] = val # z # - @@ -889,80 +793,80 @@ def z(self): ------- numpy.ndarray """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # zmax # ---- @property def zmax(self): """ - Array defining the higher bound for each color component. Note - that the default value will depend on the colormodel. For the - `rgb` colormodel, it is [255, 255, 255]. For the `rgba` - colormodel, it is [255, 255, 255, 1]. For the `rgba256` - colormodel, it is [255, 255, 255, 255]. For the `hsl` - colormodel, it is [360, 100, 100]. For the `hsla` colormodel, - it is [360, 100, 100, 1]. - - The 'zmax' property is an info array that may be specified as: - - * a list or tuple of 4 elements where: - (0) The 'zmax[0]' property is a number and may be specified as: - - An int or float - (1) The 'zmax[1]' property is a number and may be specified as: - - An int or float - (2) The 'zmax[2]' property is a number and may be specified as: - - An int or float - (3) The 'zmax[3]' property is a number and may be specified as: - - An int or float + Array defining the higher bound for each color component. Note + that the default value will depend on the colormodel. For the + `rgb` colormodel, it is [255, 255, 255]. For the `rgba` + colormodel, it is [255, 255, 255, 1]. For the `rgba256` + colormodel, it is [255, 255, 255, 255]. For the `hsl` + colormodel, it is [360, 100, 100]. For the `hsla` colormodel, + it is [360, 100, 100, 1]. + + The 'zmax' property is an info array that may be specified as: + + * a list or tuple of 4 elements where: + (0) The 'zmax[0]' property is a number and may be specified as: + - An int or float + (1) The 'zmax[1]' property is a number and may be specified as: + - An int or float + (2) The 'zmax[2]' property is a number and may be specified as: + - An int or float + (3) The 'zmax[3]' property is a number and may be specified as: + - An int or float - Returns - ------- - list + Returns + ------- + list """ - return self["zmax"] + return self['zmax'] @zmax.setter def zmax(self, val): - self["zmax"] = val + self['zmax'] = val # zmin # ---- @property def zmin(self): """ - Array defining the lower bound for each color component. Note - that the default value will depend on the colormodel. For the - `rgb` colormodel, it is [0, 0, 0]. For the `rgba` colormodel, - it is [0, 0, 0, 0]. For the `rgba256` colormodel, it is [0, 0, - 0, 0]. For the `hsl` colormodel, it is [0, 0, 0]. For the - `hsla` colormodel, it is [0, 0, 0, 0]. - - The 'zmin' property is an info array that may be specified as: - - * a list or tuple of 4 elements where: - (0) The 'zmin[0]' property is a number and may be specified as: - - An int or float - (1) The 'zmin[1]' property is a number and may be specified as: - - An int or float - (2) The 'zmin[2]' property is a number and may be specified as: - - An int or float - (3) The 'zmin[3]' property is a number and may be specified as: - - An int or float + Array defining the lower bound for each color component. Note + that the default value will depend on the colormodel. For the + `rgb` colormodel, it is [0, 0, 0]. For the `rgba` colormodel, + it is [0, 0, 0, 0]. For the `rgba256` colormodel, it is [0, 0, + 0, 0]. For the `hsl` colormodel, it is [0, 0, 0]. For the + `hsla` colormodel, it is [0, 0, 0, 0]. + + The 'zmin' property is an info array that may be specified as: + + * a list or tuple of 4 elements where: + (0) The 'zmin[0]' property is a number and may be specified as: + - An int or float + (1) The 'zmin[1]' property is a number and may be specified as: + - An int or float + (2) The 'zmin[2]' property is a number and may be specified as: + - An int or float + (3) The 'zmin[3]' property is a number and may be specified as: + - An int or float - Returns - ------- - list + Returns + ------- + list """ - return self["zmin"] + return self['zmin'] @zmin.setter def zmin(self, val): - self["zmin"] = val + self['zmin'] = val # zorder # ------ @@ -980,11 +884,11 @@ def zorder(self): ------- int """ - return self["zorder"] + return self['zorder'] @zorder.setter def zorder(self, val): - self["zorder"] = val + self['zorder'] = val # zsmooth # ------- @@ -1002,11 +906,11 @@ def zsmooth(self): ------- Any """ - return self["zsmooth"] + return self['zsmooth'] @zsmooth.setter def zsmooth(self, val): - self["zsmooth"] = val + self['zsmooth'] = val # zsrc # ---- @@ -1022,17 +926,17 @@ def zsrc(self): ------- str """ - return self["zsrc"] + return self['zsrc'] @zsrc.setter def zsrc(self, val): - self["zsrc"] = val + self['zsrc'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -1251,51 +1155,49 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `z`. """ - - def __init__( - self, - arg=None, - colormodel=None, - customdata=None, - customdatasrc=None, - dx=None, - dy=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - source=None, - stream=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - visible=None, - x0=None, - xaxis=None, - y0=None, - yaxis=None, - z=None, - zmax=None, - zmin=None, - zorder=None, - zsmooth=None, - zsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + colormodel=None, + customdata=None, + customdatasrc=None, + dx=None, + dy=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + source=None, + stream=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + visible=None, + x0=None, + xaxis=None, + y0=None, + yaxis=None, + z=None, + zmax=None, + zmin=None, + zorder=None, + zsmooth=None, + zsrc=None, + **kwargs + ): """ Construct a new Image object @@ -1527,10 +1429,10 @@ def __init__( ------- Image """ - super(Image, self).__init__("image") + super(Image, self).__init__('image') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1542,182 +1444,64 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Image constructor must be a dict or -an instance of :class:`plotly.graph_objs.Image`""" - ) +an instance of :class:`plotly.graph_objs.Image`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("colormodel", None) - _v = colormodel if colormodel is not None else _v - if _v is not None: - self["colormodel"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("dx", None) - _v = dx if dx is not None else _v - if _v is not None: - self["dx"] = _v - _v = arg.pop("dy", None) - _v = dy if dy is not None else _v - if _v is not None: - self["dy"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("source", None) - _v = source if source is not None else _v - if _v is not None: - self["source"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("x0", None) - _v = x0 if x0 is not None else _v - if _v is not None: - self["x0"] = _v - _v = arg.pop("xaxis", None) - _v = xaxis if xaxis is not None else _v - if _v is not None: - self["xaxis"] = _v - _v = arg.pop("y0", None) - _v = y0 if y0 is not None else _v - if _v is not None: - self["y0"] = _v - _v = arg.pop("yaxis", None) - _v = yaxis if yaxis is not None else _v - if _v is not None: - self["yaxis"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v - _v = arg.pop("zmax", None) - _v = zmax if zmax is not None else _v - if _v is not None: - self["zmax"] = _v - _v = arg.pop("zmin", None) - _v = zmin if zmin is not None else _v - if _v is not None: - self["zmin"] = _v - _v = arg.pop("zorder", None) - _v = zorder if zorder is not None else _v - if _v is not None: - self["zorder"] = _v - _v = arg.pop("zsmooth", None) - _v = zsmooth if zsmooth is not None else _v - if _v is not None: - self["zsmooth"] = _v - _v = arg.pop("zsrc", None) - _v = zsrc if zsrc is not None else _v - if _v is not None: - self["zsrc"] = _v + self._init_provided('colormodel', arg, colormodel) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('dx', arg, dx) + self._init_provided('dy', arg, dy) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('source', arg, source) + self._init_provided('stream', arg, stream) + self._init_provided('text', arg, text) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('visible', arg, visible) + self._init_provided('x0', arg, x0) + self._init_provided('xaxis', arg, xaxis) + self._init_provided('y0', arg, y0) + self._init_provided('yaxis', arg, yaxis) + self._init_provided('z', arg, z) + self._init_provided('zmax', arg, zmax) + self._init_provided('zmin', arg, zmin) + self._init_provided('zorder', arg, zorder) + self._init_provided('zsmooth', arg, zsmooth) + self._init_provided('zsrc', arg, zsrc) # Read-only literals # ------------------ - self._props["type"] = "image" - arg.pop("type", None) + self._props['type'] = 'image' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_indicator.py b/packages/python/plotly/plotly/graph_objs/_indicator.py index e459172dacd..7652c1277f2 100644 --- a/packages/python/plotly/plotly/graph_objs/_indicator.py +++ b/packages/python/plotly/plotly/graph_objs/_indicator.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,34 +8,9 @@ class Indicator(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "indicator" - _valid_props = { - "align", - "customdata", - "customdatasrc", - "delta", - "domain", - "gauge", - "ids", - "idssrc", - "legend", - "legendgrouptitle", - "legendrank", - "legendwidth", - "meta", - "metasrc", - "mode", - "name", - "number", - "stream", - "title", - "type", - "uid", - "uirevision", - "value", - "visible", - } + _parent_path_str = '' + _path_str = 'indicator' + _valid_props = {"align", "customdata", "customdatasrc", "delta", "domain", "gauge", "ids", "idssrc", "legend", "legendgrouptitle", "legendrank", "legendwidth", "meta", "metasrc", "mode", "name", "number", "stream", "title", "type", "uid", "uirevision", "value", "visible"} # align # ----- @@ -52,11 +29,11 @@ def align(self): ------- Any """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # customdata # ---------- @@ -75,11 +52,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -96,11 +73,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # delta # ----- @@ -113,46 +90,15 @@ def delta(self): - A dict of string/value properties that will be passed to the Delta constructor - Supported dict properties: - - decreasing - :class:`plotly.graph_objects.indicator.delta.De - creasing` instance or dict with compatible - properties - font - Set the font used to display the delta - increasing - :class:`plotly.graph_objects.indicator.delta.In - creasing` instance or dict with compatible - properties - position - Sets the position of delta with respect to the - number. - prefix - Sets a prefix appearing before the delta. - reference - Sets the reference value to compute the delta. - By default, it is set to the current value. - relative - Show relative change - suffix - Sets a suffix appearing next to the delta. - valueformat - Sets the value formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. - Returns ------- plotly.graph_objs.indicator.Delta """ - return self["delta"] + return self['delta'] @delta.setter def delta(self, val): - self["delta"] = val + self['delta'] = val # domain # ------ @@ -165,31 +111,15 @@ def domain(self): - A dict of string/value properties that will be passed to the Domain constructor - Supported dict properties: - - column - If there is a layout grid, use the domain for - this column in the grid for this indicator - trace . - row - If there is a layout grid, use the domain for - this row in the grid for this indicator trace . - x - Sets the horizontal domain of this indicator - trace (in plot fraction). - y - Sets the vertical domain of this indicator - trace (in plot fraction). - Returns ------- plotly.graph_objs.indicator.Domain """ - return self["domain"] + return self['domain'] @domain.setter def domain(self, val): - self["domain"] = val + self['domain'] = val # gauge # ----- @@ -204,46 +134,15 @@ def gauge(self): - A dict of string/value properties that will be passed to the Gauge constructor - Supported dict properties: - - axis - :class:`plotly.graph_objects.indicator.gauge.Ax - is` instance or dict with compatible properties - bar - Set the appearance of the gauge's value - bgcolor - Sets the gauge background color. - bordercolor - Sets the color of the border enclosing the - gauge. - borderwidth - Sets the width (in px) of the border enclosing - the gauge. - shape - Set the shape of the gauge - steps - A tuple of :class:`plotly.graph_objects.indicat - or.gauge.Step` instances or dicts with - compatible properties - stepdefaults - When used in a template (as layout.template.dat - a.indicator.gauge.stepdefaults), sets the - default property values to use for elements of - indicator.gauge.steps - threshold - :class:`plotly.graph_objects.indicator.gauge.Th - reshold` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.indicator.Gauge """ - return self["gauge"] + return self['gauge'] @gauge.setter def gauge(self, val): - self["gauge"] = val + self['gauge'] = val # ids # --- @@ -261,11 +160,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -281,11 +180,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # legend # ------ @@ -306,11 +205,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgrouptitle # ---------------- @@ -323,22 +222,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.indicator.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -361,11 +253,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -382,11 +274,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # meta # ---- @@ -410,11 +302,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -430,11 +322,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # mode # ---- @@ -455,11 +347,11 @@ def mode(self): ------- Any """ - return self["mode"] + return self['mode'] @mode.setter def mode(self, val): - self["mode"] = val + self['mode'] = val # name # ---- @@ -477,11 +369,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # number # ------ @@ -494,30 +386,15 @@ def number(self): - A dict of string/value properties that will be passed to the Number constructor - Supported dict properties: - - font - Set the font used to display main number - prefix - Sets a prefix appearing before the number. - suffix - Sets a suffix appearing next to the number. - valueformat - Sets the value formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. - Returns ------- plotly.graph_objs.indicator.Number """ - return self["number"] + return self['number'] @number.setter def number(self, val): - self["number"] = val + self['number'] = val # stream # ------ @@ -530,27 +407,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.indicator.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # title # ----- @@ -563,26 +428,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - align - Sets the horizontal alignment of the title. It - defaults to `center` except for bullet charts - for which it defaults to right. - font - Set the font used to display the title - text - Sets the title of this indicator. - Returns ------- plotly.graph_objs.indicator.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # uid # --- @@ -600,11 +454,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -633,11 +487,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # value # ----- @@ -653,11 +507,11 @@ def value(self): ------- int|float """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # visible # ------- @@ -676,17 +530,17 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -808,35 +662,33 @@ def _prop_descriptions(self): a legend item (provided that the legend itself is visible). """ - - def __init__( - self, - arg=None, - align=None, - customdata=None, - customdatasrc=None, - delta=None, - domain=None, - gauge=None, - ids=None, - idssrc=None, - legend=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - meta=None, - metasrc=None, - mode=None, - name=None, - number=None, - stream=None, - title=None, - uid=None, - uirevision=None, - value=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + customdata=None, + customdatasrc=None, + delta=None, + domain=None, + gauge=None, + ids=None, + idssrc=None, + legend=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + meta=None, + metasrc=None, + mode=None, + name=None, + number=None, + stream=None, + title=None, + uid=None, + uirevision=None, + value=None, + visible=None, + **kwargs + ): """ Construct a new Indicator object @@ -971,10 +823,10 @@ def __init__( ------- Indicator """ - super(Indicator, self).__init__("indicator") + super(Indicator, self).__init__('indicator') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -986,118 +838,48 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Indicator constructor must be a dict or -an instance of :class:`plotly.graph_objs.Indicator`""" - ) +an instance of :class:`plotly.graph_objs.Indicator`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("delta", None) - _v = delta if delta is not None else _v - if _v is not None: - self["delta"] = _v - _v = arg.pop("domain", None) - _v = domain if domain is not None else _v - if _v is not None: - self["domain"] = _v - _v = arg.pop("gauge", None) - _v = gauge if gauge is not None else _v - if _v is not None: - self["gauge"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("mode", None) - _v = mode if mode is not None else _v - if _v is not None: - self["mode"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("number", None) - _v = number if number is not None else _v - if _v is not None: - self["number"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('align', arg, align) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('delta', arg, delta) + self._init_provided('domain', arg, domain) + self._init_provided('gauge', arg, gauge) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('mode', arg, mode) + self._init_provided('name', arg, name) + self._init_provided('number', arg, number) + self._init_provided('stream', arg, stream) + self._init_provided('title', arg, title) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('value', arg, value) + self._init_provided('visible', arg, visible) # Read-only literals # ------------------ - self._props["type"] = "indicator" - arg.pop("type", None) + self._props['type'] = 'indicator' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_isosurface.py b/packages/python/plotly/plotly/graph_objs/_isosurface.py index 0d74e1ecd18..63011fc9c4e 100644 --- a/packages/python/plotly/plotly/graph_objs/_isosurface.py +++ b/packages/python/plotly/plotly/graph_objs/_isosurface.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,71 +8,9 @@ class Isosurface(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "isosurface" - _valid_props = { - "autocolorscale", - "caps", - "cauto", - "cmax", - "cmid", - "cmin", - "coloraxis", - "colorbar", - "colorscale", - "contour", - "customdata", - "customdatasrc", - "flatshading", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "isomax", - "isomin", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "lighting", - "lightposition", - "meta", - "metasrc", - "name", - "opacity", - "reversescale", - "scene", - "showlegend", - "showscale", - "slices", - "spaceframe", - "stream", - "surface", - "text", - "textsrc", - "type", - "uid", - "uirevision", - "value", - "valuehoverformat", - "valuesrc", - "visible", - "x", - "xhoverformat", - "xsrc", - "y", - "yhoverformat", - "ysrc", - "z", - "zhoverformat", - "zsrc", - } + _parent_path_str = '' + _path_str = 'isosurface' + _valid_props = {"autocolorscale", "caps", "cauto", "cmax", "cmid", "cmin", "coloraxis", "colorbar", "colorscale", "contour", "customdata", "customdatasrc", "flatshading", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "isomax", "isomin", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "lighting", "lightposition", "meta", "metasrc", "name", "opacity", "reversescale", "scene", "showlegend", "showscale", "slices", "spaceframe", "stream", "surface", "text", "textsrc", "type", "uid", "uirevision", "value", "valuehoverformat", "valuesrc", "visible", "x", "xhoverformat", "xsrc", "y", "yhoverformat", "ysrc", "z", "zhoverformat", "zsrc"} # autocolorscale # -------------- @@ -91,11 +31,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # caps # ---- @@ -108,27 +48,15 @@ def caps(self): - A dict of string/value properties that will be passed to the Caps constructor - Supported dict properties: - - x - :class:`plotly.graph_objects.isosurface.caps.X` - instance or dict with compatible properties - y - :class:`plotly.graph_objects.isosurface.caps.Y` - instance or dict with compatible properties - z - :class:`plotly.graph_objects.isosurface.caps.Z` - instance or dict with compatible properties - Returns ------- plotly.graph_objs.isosurface.Caps """ - return self["caps"] + return self['caps'] @caps.setter def caps(self, val): - self["caps"] = val + self['caps'] = val # cauto # ----- @@ -147,11 +75,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -168,11 +96,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -190,11 +118,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -211,11 +139,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # coloraxis # --------- @@ -238,11 +166,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -255,281 +183,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.isosurf - ace.colorbar.Tickformatstop` instances or dicts - with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.isosurface.colorbar.tickformatstopdefaults), - sets the default property values to use for - elements of isosurface.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.isosurface.colorba - r.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.isosurface.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -578,11 +240,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # contour # ------- @@ -595,25 +257,15 @@ def contour(self): - A dict of string/value properties that will be passed to the Contour constructor - Supported dict properties: - - color - Sets the color of the contour lines. - show - Sets whether or not dynamic contours are shown - on hover - width - Sets the width of the contour lines. - Returns ------- plotly.graph_objs.isosurface.Contour """ - return self["contour"] + return self['contour'] @contour.setter def contour(self, val): - self["contour"] = val + self['contour'] = val # customdata # ---------- @@ -632,11 +284,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -653,11 +305,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # flatshading # ----------- @@ -675,11 +327,11 @@ def flatshading(self): ------- bool """ - return self["flatshading"] + return self['flatshading'] @flatshading.setter def flatshading(self, val): - self["flatshading"] = val + self['flatshading'] = val # hoverinfo # --------- @@ -701,11 +353,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -722,11 +374,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -739,53 +391,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.isosurface.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -825,11 +439,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -846,11 +460,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -868,11 +482,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -889,11 +503,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -911,11 +525,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -931,11 +545,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # isomax # ------ @@ -951,11 +565,11 @@ def isomax(self): ------- int|float """ - return self["isomax"] + return self['isomax'] @isomax.setter def isomax(self, val): - self["isomax"] = val + self['isomax'] = val # isomin # ------ @@ -971,11 +585,11 @@ def isomin(self): ------- int|float """ - return self["isomin"] + return self['isomin'] @isomin.setter def isomin(self, val): - self["isomin"] = val + self['isomin'] = val # legend # ------ @@ -996,11 +610,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -1019,11 +633,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -1036,22 +650,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.isosurface.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -1074,11 +681,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -1095,11 +702,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # lighting # -------- @@ -1112,42 +719,15 @@ def lighting(self): - A dict of string/value properties that will be passed to the Lighting constructor - Supported dict properties: - - ambient - Ambient light increases overall color - visibility but can wash out the image. - diffuse - Represents the extent that incident rays are - reflected in a range of angles. - facenormalsepsilon - Epsilon for face normals calculation avoids - math issues arising from degenerate geometry. - fresnel - Represents the reflectance as a dependency of - the viewing angle; e.g. paper is reflective - when viewing it from the edge of the paper - (almost 90 degrees), causing shine. - roughness - Alters specular reflection; the rougher the - surface, the wider and less contrasty the - shine. - specular - Represents the level that incident rays are - reflected in a single direction, causing shine. - vertexnormalsepsilon - Epsilon for vertex normals calculation avoids - math issues arising from degenerate geometry. - Returns ------- plotly.graph_objs.isosurface.Lighting """ - return self["lighting"] + return self['lighting'] @lighting.setter def lighting(self, val): - self["lighting"] = val + self['lighting'] = val # lightposition # ------------- @@ -1160,27 +740,15 @@ def lightposition(self): - A dict of string/value properties that will be passed to the Lightposition constructor - Supported dict properties: - - x - Numeric vector, representing the X coordinate - for each vertex. - y - Numeric vector, representing the Y coordinate - for each vertex. - z - Numeric vector, representing the Z coordinate - for each vertex. - Returns ------- plotly.graph_objs.isosurface.Lightposition """ - return self["lightposition"] + return self['lightposition'] @lightposition.setter def lightposition(self, val): - self["lightposition"] = val + self['lightposition'] = val # meta # ---- @@ -1204,11 +772,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -1224,11 +792,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -1246,11 +814,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -1271,11 +839,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # reversescale # ------------ @@ -1293,11 +861,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # scene # ----- @@ -1318,11 +886,11 @@ def scene(self): ------- str """ - return self["scene"] + return self['scene'] @scene.setter def scene(self, val): - self["scene"] = val + self['scene'] = val # showlegend # ---------- @@ -1339,11 +907,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # showscale # --------- @@ -1360,11 +928,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # slices # ------ @@ -1377,27 +945,15 @@ def slices(self): - A dict of string/value properties that will be passed to the Slices constructor - Supported dict properties: - - x - :class:`plotly.graph_objects.isosurface.slices. - X` instance or dict with compatible properties - y - :class:`plotly.graph_objects.isosurface.slices. - Y` instance or dict with compatible properties - z - :class:`plotly.graph_objects.isosurface.slices. - Z` instance or dict with compatible properties - Returns ------- plotly.graph_objs.isosurface.Slices """ - return self["slices"] + return self['slices'] @slices.setter def slices(self, val): - self["slices"] = val + self['slices'] = val # spaceframe # ---------- @@ -1410,31 +966,15 @@ def spaceframe(self): - A dict of string/value properties that will be passed to the Spaceframe constructor - Supported dict properties: - - fill - Sets the fill ratio of the `spaceframe` - elements. The default fill value is 0.15 - meaning that only 15% of the area of every - faces of tetras would be shaded. Applying a - greater `fill` ratio would allow the creation - of stronger elements or could be sued to have - entirely closed areas (in case of using 1). - show - Displays/hides tetrahedron shapes between - minimum and maximum iso-values. Often useful - when either caps or surfaces are disabled or - filled with values less than 1. - Returns ------- plotly.graph_objs.isosurface.Spaceframe """ - return self["spaceframe"] + return self['spaceframe'] @spaceframe.setter def spaceframe(self, val): - self["spaceframe"] = val + self['spaceframe'] = val # stream # ------ @@ -1447,27 +987,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.isosurface.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # surface # ------- @@ -1480,44 +1008,15 @@ def surface(self): - A dict of string/value properties that will be passed to the Surface constructor - Supported dict properties: - - count - Sets the number of iso-surfaces between minimum - and maximum iso-values. By default this value - is 2 meaning that only minimum and maximum - surfaces would be drawn. - fill - Sets the fill ratio of the iso-surface. The - default fill value of the surface is 1 meaning - that they are entirely shaded. On the other - hand Applying a `fill` ratio less than one - would allow the creation of openings parallel - to the edges. - pattern - Sets the surface pattern of the iso-surface 3-D - sections. The default pattern of the surface is - `all` meaning that the rest of surface elements - would be shaded. The check options (either 1 or - 2) could be used to draw half of the squares on - the surface. Using various combinations of - capital `A`, `B`, `C`, `D` and `E` may also be - used to reduce the number of triangles on the - iso-surfaces and creating other patterns of - interest. - show - Hides/displays surfaces between minimum and - maximum iso-values. - Returns ------- plotly.graph_objs.isosurface.Surface """ - return self["surface"] + return self['surface'] @surface.setter def surface(self, val): - self["surface"] = val + self['surface'] = val # text # ---- @@ -1537,11 +1036,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textsrc # ------- @@ -1557,11 +1056,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # uid # --- @@ -1579,11 +1078,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1612,11 +1111,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # value # ----- @@ -1632,11 +1131,11 @@ def value(self): ------- numpy.ndarray """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # valuehoverformat # ---------------- @@ -1657,11 +1156,11 @@ def valuehoverformat(self): ------- str """ - return self["valuehoverformat"] + return self['valuehoverformat'] @valuehoverformat.setter def valuehoverformat(self, val): - self["valuehoverformat"] = val + self['valuehoverformat'] = val # valuesrc # -------- @@ -1677,11 +1176,11 @@ def valuesrc(self): ------- str """ - return self["valuesrc"] + return self['valuesrc'] @valuesrc.setter def valuesrc(self, val): - self["valuesrc"] = val + self['valuesrc'] = val # visible # ------- @@ -1700,11 +1199,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # x # - @@ -1720,11 +1219,11 @@ def x(self): ------- numpy.ndarray """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xhoverformat # ------------ @@ -1751,11 +1250,11 @@ def xhoverformat(self): ------- str """ - return self["xhoverformat"] + return self['xhoverformat'] @xhoverformat.setter def xhoverformat(self, val): - self["xhoverformat"] = val + self['xhoverformat'] = val # xsrc # ---- @@ -1771,11 +1270,11 @@ def xsrc(self): ------- str """ - return self["xsrc"] + return self['xsrc'] @xsrc.setter def xsrc(self, val): - self["xsrc"] = val + self['xsrc'] = val # y # - @@ -1791,11 +1290,11 @@ def y(self): ------- numpy.ndarray """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yhoverformat # ------------ @@ -1822,11 +1321,11 @@ def yhoverformat(self): ------- str """ - return self["yhoverformat"] + return self['yhoverformat'] @yhoverformat.setter def yhoverformat(self, val): - self["yhoverformat"] = val + self['yhoverformat'] = val # ysrc # ---- @@ -1842,11 +1341,11 @@ def ysrc(self): ------- str """ - return self["ysrc"] + return self['ysrc'] @ysrc.setter def ysrc(self, val): - self["ysrc"] = val + self['ysrc'] = val # z # - @@ -1862,11 +1361,11 @@ def z(self): ------- numpy.ndarray """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # zhoverformat # ------------ @@ -1893,11 +1392,11 @@ def zhoverformat(self): ------- str """ - return self["zhoverformat"] + return self['zhoverformat'] @zhoverformat.setter def zhoverformat(self, val): - self["zhoverformat"] = val + self['zhoverformat'] = val # zsrc # ---- @@ -1913,17 +1412,17 @@ def zsrc(self): ------- str """ - return self["zsrc"] + return self['zsrc'] @zsrc.setter def zsrc(self, val): - self["zsrc"] = val + self['zsrc'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -2242,72 +1741,70 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `z`. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - caps=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - coloraxis=None, - colorbar=None, - colorscale=None, - contour=None, - customdata=None, - customdatasrc=None, - flatshading=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - isomax=None, - isomin=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - lighting=None, - lightposition=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - reversescale=None, - scene=None, - showlegend=None, - showscale=None, - slices=None, - spaceframe=None, - stream=None, - surface=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - value=None, - valuehoverformat=None, - valuesrc=None, - visible=None, - x=None, - xhoverformat=None, - xsrc=None, - y=None, - yhoverformat=None, - ysrc=None, - z=None, - zhoverformat=None, - zsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + caps=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + coloraxis=None, + colorbar=None, + colorscale=None, + contour=None, + customdata=None, + customdatasrc=None, + flatshading=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + isomax=None, + isomin=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + lighting=None, + lightposition=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + reversescale=None, + scene=None, + showlegend=None, + showscale=None, + slices=None, + spaceframe=None, + stream=None, + surface=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + value=None, + valuehoverformat=None, + valuesrc=None, + visible=None, + x=None, + xhoverformat=None, + xsrc=None, + y=None, + yhoverformat=None, + ysrc=None, + z=None, + zhoverformat=None, + zsrc=None, + **kwargs + ): """ Construct a new Isosurface object @@ -2639,10 +2136,10 @@ def __init__( ------- Isosurface """ - super(Isosurface, self).__init__("isosurface") + super(Isosurface, self).__init__('isosurface') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2654,266 +2151,85 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Isosurface constructor must be a dict or -an instance of :class:`plotly.graph_objs.Isosurface`""" - ) +an instance of :class:`plotly.graph_objs.Isosurface`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("caps", None) - _v = caps if caps is not None else _v - if _v is not None: - self["caps"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("contour", None) - _v = contour if contour is not None else _v - if _v is not None: - self["contour"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("flatshading", None) - _v = flatshading if flatshading is not None else _v - if _v is not None: - self["flatshading"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("isomax", None) - _v = isomax if isomax is not None else _v - if _v is not None: - self["isomax"] = _v - _v = arg.pop("isomin", None) - _v = isomin if isomin is not None else _v - if _v is not None: - self["isomin"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("lighting", None) - _v = lighting if lighting is not None else _v - if _v is not None: - self["lighting"] = _v - _v = arg.pop("lightposition", None) - _v = lightposition if lightposition is not None else _v - if _v is not None: - self["lightposition"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("scene", None) - _v = scene if scene is not None else _v - if _v is not None: - self["scene"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v - _v = arg.pop("slices", None) - _v = slices if slices is not None else _v - if _v is not None: - self["slices"] = _v - _v = arg.pop("spaceframe", None) - _v = spaceframe if spaceframe is not None else _v - if _v is not None: - self["spaceframe"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("surface", None) - _v = surface if surface is not None else _v - if _v is not None: - self["surface"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v - _v = arg.pop("valuehoverformat", None) - _v = valuehoverformat if valuehoverformat is not None else _v - if _v is not None: - self["valuehoverformat"] = _v - _v = arg.pop("valuesrc", None) - _v = valuesrc if valuesrc is not None else _v - if _v is not None: - self["valuesrc"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xhoverformat", None) - _v = xhoverformat if xhoverformat is not None else _v - if _v is not None: - self["xhoverformat"] = _v - _v = arg.pop("xsrc", None) - _v = xsrc if xsrc is not None else _v - if _v is not None: - self["xsrc"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yhoverformat", None) - _v = yhoverformat if yhoverformat is not None else _v - if _v is not None: - self["yhoverformat"] = _v - _v = arg.pop("ysrc", None) - _v = ysrc if ysrc is not None else _v - if _v is not None: - self["ysrc"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v - _v = arg.pop("zhoverformat", None) - _v = zhoverformat if zhoverformat is not None else _v - if _v is not None: - self["zhoverformat"] = _v - _v = arg.pop("zsrc", None) - _v = zsrc if zsrc is not None else _v - if _v is not None: - self["zsrc"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('caps', arg, caps) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('contour', arg, contour) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('flatshading', arg, flatshading) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('isomax', arg, isomax) + self._init_provided('isomin', arg, isomin) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('lighting', arg, lighting) + self._init_provided('lightposition', arg, lightposition) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('scene', arg, scene) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('showscale', arg, showscale) + self._init_provided('slices', arg, slices) + self._init_provided('spaceframe', arg, spaceframe) + self._init_provided('stream', arg, stream) + self._init_provided('surface', arg, surface) + self._init_provided('text', arg, text) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('value', arg, value) + self._init_provided('valuehoverformat', arg, valuehoverformat) + self._init_provided('valuesrc', arg, valuesrc) + self._init_provided('visible', arg, visible) + self._init_provided('x', arg, x) + self._init_provided('xhoverformat', arg, xhoverformat) + self._init_provided('xsrc', arg, xsrc) + self._init_provided('y', arg, y) + self._init_provided('yhoverformat', arg, yhoverformat) + self._init_provided('ysrc', arg, ysrc) + self._init_provided('z', arg, z) + self._init_provided('zhoverformat', arg, zhoverformat) + self._init_provided('zsrc', arg, zsrc) # Read-only literals # ------------------ - self._props["type"] = "isosurface" - arg.pop("type", None) + self._props['type'] = 'isosurface' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_layout.py b/packages/python/plotly/plotly/graph_objs/_layout.py index c6e98879546..3eb8368b7ff 100644 --- a/packages/python/plotly/plotly/graph_objs/_layout.py +++ b/packages/python/plotly/plotly/graph_objs/_layout.py @@ -1,26 +1,16 @@ + + from plotly.basedatatypes import BaseLayoutType as _BaseLayoutType import copy as _copy class Layout(_BaseLayoutType): - _subplotid_prop_names = [ - "coloraxis", - "geo", - "legend", - "map", - "mapbox", - "polar", - "scene", - "smith", - "ternary", - "xaxis", - "yaxis", - ] + _subplotid_prop_names = ['coloraxis', 'geo', 'legend', 'map', 'mapbox', 'polar', 'scene', 'smith', 'ternary', 'xaxis', 'yaxis'] import re - - _subplotid_prop_re = re.compile("^(" + "|".join(_subplotid_prop_names) + r")(\d+)$") + _subplotid_prop_re = re.compile( + '^(' + '|'.join(_subplotid_prop_names) + r')(\d+)$') @property def _subplotid_validators(self): @@ -31,138 +21,18 @@ def _subplotid_validators(self): ------- dict """ - from plotly.validators.layout import ( - ColoraxisValidator, - GeoValidator, - LegendValidator, - MapValidator, - MapboxValidator, - PolarValidator, - SceneValidator, - SmithValidator, - TernaryValidator, - XaxisValidator, - YaxisValidator, - ) - - return { - "coloraxis": ColoraxisValidator, - "geo": GeoValidator, - "legend": LegendValidator, - "map": MapValidator, - "mapbox": MapboxValidator, - "polar": PolarValidator, - "scene": SceneValidator, - "smith": SmithValidator, - "ternary": TernaryValidator, - "xaxis": XaxisValidator, - "yaxis": YaxisValidator, - } + from plotly.validators.layout import (ColoraxisValidator, GeoValidator, LegendValidator, MapValidator, MapboxValidator, PolarValidator, SceneValidator, SmithValidator, TernaryValidator, XaxisValidator, YaxisValidator) + + return {'coloraxis': ColoraxisValidator, 'geo': GeoValidator, 'legend': LegendValidator, 'map': MapValidator, 'mapbox': MapboxValidator, 'polar': PolarValidator, 'scene': SceneValidator, 'smith': SmithValidator, 'ternary': TernaryValidator, 'xaxis': XaxisValidator, 'yaxis': YaxisValidator} def _subplot_re_match(self, prop): return self._subplotid_prop_re.match(prop) # class properties # -------------------- - _parent_path_str = "" - _path_str = "layout" - _valid_props = { - "activeselection", - "activeshape", - "annotationdefaults", - "annotations", - "autosize", - "autotypenumbers", - "barcornerradius", - "bargap", - "bargroupgap", - "barmode", - "barnorm", - "boxgap", - "boxgroupgap", - "boxmode", - "calendar", - "clickmode", - "coloraxis", - "colorscale", - "colorway", - "computed", - "datarevision", - "dragmode", - "editrevision", - "extendfunnelareacolors", - "extendiciclecolors", - "extendpiecolors", - "extendsunburstcolors", - "extendtreemapcolors", - "font", - "funnelareacolorway", - "funnelgap", - "funnelgroupgap", - "funnelmode", - "geo", - "grid", - "height", - "hiddenlabels", - "hiddenlabelssrc", - "hidesources", - "hoverdistance", - "hoverlabel", - "hovermode", - "hoversubplots", - "iciclecolorway", - "imagedefaults", - "images", - "legend", - "map", - "mapbox", - "margin", - "meta", - "metasrc", - "minreducedheight", - "minreducedwidth", - "modebar", - "newselection", - "newshape", - "paper_bgcolor", - "piecolorway", - "plot_bgcolor", - "polar", - "scattergap", - "scattermode", - "scene", - "selectdirection", - "selectiondefaults", - "selectionrevision", - "selections", - "separators", - "shapedefaults", - "shapes", - "showlegend", - "sliderdefaults", - "sliders", - "smith", - "spikedistance", - "sunburstcolorway", - "template", - "ternary", - "title", - "transition", - "treemapcolorway", - "uirevision", - "uniformtext", - "updatemenudefaults", - "updatemenus", - "violingap", - "violingroupgap", - "violinmode", - "waterfallgap", - "waterfallgroupgap", - "waterfallmode", - "width", - "xaxis", - "yaxis", - } + _parent_path_str = '' + _path_str = 'layout' + _valid_props = {"activeselection", "activeshape", "annotationdefaults", "annotations", "autosize", "autotypenumbers", "barcornerradius", "bargap", "bargroupgap", "barmode", "barnorm", "boxgap", "boxgroupgap", "boxmode", "calendar", "clickmode", "coloraxis", "colorscale", "colorway", "computed", "datarevision", "dragmode", "editrevision", "extendfunnelareacolors", "extendiciclecolors", "extendpiecolors", "extendsunburstcolors", "extendtreemapcolors", "font", "funnelareacolorway", "funnelgap", "funnelgroupgap", "funnelmode", "geo", "grid", "height", "hiddenlabels", "hiddenlabelssrc", "hidesources", "hoverdistance", "hoverlabel", "hovermode", "hoversubplots", "iciclecolorway", "imagedefaults", "images", "legend", "map", "mapbox", "margin", "meta", "metasrc", "minreducedheight", "minreducedwidth", "modebar", "newselection", "newshape", "paper_bgcolor", "piecolorway", "plot_bgcolor", "polar", "scattergap", "scattermode", "scene", "selectdirection", "selectiondefaults", "selectionrevision", "selections", "separators", "shapedefaults", "shapes", "showlegend", "sliderdefaults", "sliders", "smith", "spikedistance", "sunburstcolorway", "template", "ternary", "title", "transition", "treemapcolorway", "uirevision", "uniformtext", "updatemenudefaults", "updatemenus", "violingap", "violingroupgap", "violinmode", "waterfallgap", "waterfallgroupgap", "waterfallmode", "width", "xaxis", "yaxis"} # activeselection # --------------- @@ -175,23 +45,15 @@ def activeselection(self): - A dict of string/value properties that will be passed to the Activeselection constructor - Supported dict properties: - - fillcolor - Sets the color filling the active selection' - interior. - opacity - Sets the opacity of the active selection. - Returns ------- plotly.graph_objs.layout.Activeselection """ - return self["activeselection"] + return self['activeselection'] @activeselection.setter def activeselection(self, val): - self["activeselection"] = val + self['activeselection'] = val # activeshape # ----------- @@ -204,23 +66,15 @@ def activeshape(self): - A dict of string/value properties that will be passed to the Activeshape constructor - Supported dict properties: - - fillcolor - Sets the color filling the active shape' - interior. - opacity - Sets the opacity of the active shape. - Returns ------- plotly.graph_objs.layout.Activeshape """ - return self["activeshape"] + return self['activeshape'] @activeshape.setter def activeshape(self, val): - self["activeshape"] = val + self['activeshape'] = val # annotations # ----------- @@ -233,335 +87,15 @@ def annotations(self): - A list or tuple of dicts of string/value properties that will be passed to the Annotation constructor - Supported dict properties: - - align - Sets the horizontal alignment of the `text` - within the box. Has an effect only if `text` - spans two or more lines (i.e. `text` contains - one or more
HTML tags) or if an explicit - width is set to override the text width. - arrowcolor - Sets the color of the annotation arrow. - arrowhead - Sets the end annotation arrow head style. - arrowside - Sets the annotation arrow head position. - arrowsize - Sets the size of the end annotation arrow head, - relative to `arrowwidth`. A value of 1 - (default) gives a head about 3x as wide as the - line. - arrowwidth - Sets the width (in px) of annotation arrow - line. - ax - Sets the x component of the arrow tail about - the arrow head. If `axref` is `pixel`, a - positive (negative) component corresponds to an - arrow pointing from right to left (left to - right). If `axref` is not `pixel` and is - exactly the same as `xref`, this is an absolute - value on that axis, like `x`, specified in the - same coordinates as `xref`. - axref - Indicates in what coordinates the tail of the - annotation (ax,ay) is specified. If set to a x - axis id (e.g. "x" or "x2"), the `x` position - refers to a x coordinate. If set to "paper", - the `x` position refers to the distance from - the left of the plotting area in normalized - coordinates where 0 (1) corresponds to the left - (right). If set to a x axis ID followed by - "domain" (separated by a space), the position - behaves like for "paper", but refers to the - distance in fractions of the domain length from - the left of the domain of that axis: e.g., *x2 - domain* refers to the domain of the second x - axis and a x position of 0.5 refers to the - point between the left and the right of the - domain of the second x axis. In order for - absolute positioning of the arrow to work, - "axref" must be exactly the same as "xref", - otherwise "axref" will revert to "pixel" - (explained next). For relative positioning, - "axref" can be set to "pixel", in which case - the "ax" value is specified in pixels relative - to "x". Absolute positioning is useful for - trendline annotations which should continue to - indicate the correct trend when zoomed. - Relative positioning is useful for specifying - the text offset for an annotated point. - ay - Sets the y component of the arrow tail about - the arrow head. If `ayref` is `pixel`, a - positive (negative) component corresponds to an - arrow pointing from bottom to top (top to - bottom). If `ayref` is not `pixel` and is - exactly the same as `yref`, this is an absolute - value on that axis, like `y`, specified in the - same coordinates as `yref`. - ayref - Indicates in what coordinates the tail of the - annotation (ax,ay) is specified. If set to a y - axis id (e.g. "y" or "y2"), the `y` position - refers to a y coordinate. If set to "paper", - the `y` position refers to the distance from - the bottom of the plotting area in normalized - coordinates where 0 (1) corresponds to the - bottom (top). If set to a y axis ID followed by - "domain" (separated by a space), the position - behaves like for "paper", but refers to the - distance in fractions of the domain length from - the bottom of the domain of that axis: e.g., - *y2 domain* refers to the domain of the second - y axis and a y position of 0.5 refers to the - point between the bottom and the top of the - domain of the second y axis. In order for - absolute positioning of the arrow to work, - "ayref" must be exactly the same as "yref", - otherwise "ayref" will revert to "pixel" - (explained next). For relative positioning, - "ayref" can be set to "pixel", in which case - the "ay" value is specified in pixels relative - to "y". Absolute positioning is useful for - trendline annotations which should continue to - indicate the correct trend when zoomed. - Relative positioning is useful for specifying - the text offset for an annotated point. - bgcolor - Sets the background color of the annotation. - bordercolor - Sets the color of the border enclosing the - annotation `text`. - borderpad - Sets the padding (in px) between the `text` and - the enclosing border. - borderwidth - Sets the width (in px) of the border enclosing - the annotation `text`. - captureevents - Determines whether the annotation text box - captures mouse move and click events, or allows - those events to pass through to data points in - the plot that may be behind the annotation. By - default `captureevents` is False unless - `hovertext` is provided. If you use the event - `plotly_clickannotation` without `hovertext` - you must explicitly enable `captureevents`. - clicktoshow - Makes this annotation respond to clicks on the - plot. If you click a data point that exactly - matches the `x` and `y` values of this - annotation, and it is hidden (visible: false), - it will appear. In "onoff" mode, you must click - the same point again to make it disappear, so - if you click multiple points, you can show - multiple annotations. In "onout" mode, a click - anywhere else in the plot (on another data - point or not) will hide this annotation. If you - need to show/hide this annotation in response - to different `x` or `y` values, you can set - `xclick` and/or `yclick`. This is useful for - example to label the side of a bar. To label - markers though, `standoff` is preferred over - `xclick` and `yclick`. - font - Sets the annotation text font. - height - Sets an explicit height for the text box. null - (default) lets the text set the box height. - Taller text will be clipped. - hoverlabel - :class:`plotly.graph_objects.layout.annotation. - Hoverlabel` instance or dict with compatible - properties - hovertext - Sets text to appear when hovering over this - annotation. If omitted or blank, no hover label - will appear. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - opacity - Sets the opacity of the annotation (text + - arrow). - showarrow - Determines whether or not the annotation is - drawn with an arrow. If True, `text` is placed - near the arrow's tail. If False, `text` lines - up with the `x` and `y` provided. - standoff - Sets a distance, in pixels, to move the end - arrowhead away from the position it is pointing - at, for example to point at the edge of a - marker independent of zoom. Note that this - shortens the arrow from the `ax` / `ay` vector, - in contrast to `xshift` / `yshift` which moves - everything by this amount. - startarrowhead - Sets the start annotation arrow head style. - startarrowsize - Sets the size of the start annotation arrow - head, relative to `arrowwidth`. A value of 1 - (default) gives a head about 3x as wide as the - line. - startstandoff - Sets a distance, in pixels, to move the start - arrowhead away from the position it is pointing - at, for example to point at the edge of a - marker independent of zoom. Note that this - shortens the arrow from the `ax` / `ay` vector, - in contrast to `xshift` / `yshift` which moves - everything by this amount. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - text - Sets the text associated with this annotation. - Plotly uses a subset of HTML tags to do things - like newline (
), bold (), italics - (), hyperlinks (). - Tags , , , , are - also supported. - textangle - Sets the angle at which the `text` is drawn - with respect to the horizontal. - valign - Sets the vertical alignment of the `text` - within the box. Has an effect only if an - explicit height is set to override the text - height. - visible - Determines whether or not this annotation is - visible. - width - Sets an explicit width for the text box. null - (default) lets the text set the box width. - Wider text will be clipped. There is no - automatic wrapping; use
to start a new - line. - x - Sets the annotation's x position. If the axis - `type` is "log", then you must take the log of - your desired range. If the axis `type` is - "date", it should be date strings, like date - data, though Date objects and unix milliseconds - will be accepted and converted to strings. If - the axis `type` is "category", it should be - numbers, using the scale where each category is - assigned a serial number from zero in the order - it appears. - xanchor - Sets the text box's horizontal position anchor - This anchor binds the `x` position to the - "left", "center" or "right" of the annotation. - For example, if `x` is set to 1, `xref` to - "paper" and `xanchor` to "right" then the - right-most portion of the annotation lines up - with the right-most edge of the plotting area. - If "auto", the anchor is equivalent to "center" - for data-referenced annotations or if there is - an arrow, whereas for paper-referenced with no - arrow, the anchor picked corresponds to the - closest side. - xclick - Toggle this annotation when clicking a data - point whose `x` value is `xclick` rather than - the annotation's `x` value. - xref - Sets the annotation's x coordinate axis. If set - to a x axis id (e.g. "x" or "x2"), the `x` - position refers to a x coordinate. If set to - "paper", the `x` position refers to the - distance from the left of the plotting area in - normalized coordinates where 0 (1) corresponds - to the left (right). If set to a x axis ID - followed by "domain" (separated by a space), - the position behaves like for "paper", but - refers to the distance in fractions of the - domain length from the left of the domain of - that axis: e.g., *x2 domain* refers to the - domain of the second x axis and a x position - of 0.5 refers to the point between the left and - the right of the domain of the second x axis. - xshift - Shifts the position of the whole annotation and - arrow to the right (positive) or left - (negative) by this many pixels. - y - Sets the annotation's y position. If the axis - `type` is "log", then you must take the log of - your desired range. If the axis `type` is - "date", it should be date strings, like date - data, though Date objects and unix milliseconds - will be accepted and converted to strings. If - the axis `type` is "category", it should be - numbers, using the scale where each category is - assigned a serial number from zero in the order - it appears. - yanchor - Sets the text box's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the annotation. - For example, if `y` is set to 1, `yref` to - "paper" and `yanchor` to "top" then the top- - most portion of the annotation lines up with - the top-most edge of the plotting area. If - "auto", the anchor is equivalent to "middle" - for data-referenced annotations or if there is - an arrow, whereas for paper-referenced with no - arrow, the anchor picked corresponds to the - closest side. - yclick - Toggle this annotation when clicking a data - point whose `y` value is `yclick` rather than - the annotation's `y` value. - yref - Sets the annotation's y coordinate axis. If set - to a y axis id (e.g. "y" or "y2"), the `y` - position refers to a y coordinate. If set to - "paper", the `y` position refers to the - distance from the bottom of the plotting area - in normalized coordinates where 0 (1) - corresponds to the bottom (top). If set to a y - axis ID followed by "domain" (separated by a - space), the position behaves like for "paper", - but refers to the distance in fractions of the - domain length from the bottom of the domain of - that axis: e.g., *y2 domain* refers to the - domain of the second y axis and a y position - of 0.5 refers to the point between the bottom - and the top of the domain of the second y axis. - yshift - Shifts the position of the whole annotation and - arrow up (positive) or down (negative) by this - many pixels. - Returns ------- tuple[plotly.graph_objs.layout.Annotation] """ - return self["annotations"] + return self['annotations'] @annotations.setter def annotations(self, val): - self["annotations"] = val + self['annotations'] = val # annotationdefaults # ------------------ @@ -578,17 +112,15 @@ def annotationdefaults(self): - A dict of string/value properties that will be passed to the Annotation constructor - Supported dict properties: - Returns ------- plotly.graph_objs.layout.Annotation """ - return self["annotationdefaults"] + return self['annotationdefaults'] @annotationdefaults.setter def annotationdefaults(self, val): - self["annotationdefaults"] = val + self['annotationdefaults'] = val # autosize # -------- @@ -608,11 +140,11 @@ def autosize(self): ------- bool """ - return self["autosize"] + return self['autosize'] @autosize.setter def autosize(self, val): - self["autosize"] = val + self['autosize'] = val # autotypenumbers # --------------- @@ -633,11 +165,11 @@ def autotypenumbers(self): ------- Any """ - return self["autotypenumbers"] + return self['autotypenumbers'] @autotypenumbers.setter def autotypenumbers(self, val): - self["autotypenumbers"] = val + self['autotypenumbers'] = val # barcornerradius # --------------- @@ -653,11 +185,11 @@ def barcornerradius(self): ------- Any """ - return self["barcornerradius"] + return self['barcornerradius'] @barcornerradius.setter def barcornerradius(self, val): - self["barcornerradius"] = val + self['barcornerradius'] = val # bargap # ------ @@ -674,11 +206,11 @@ def bargap(self): ------- int|float """ - return self["bargap"] + return self['bargap'] @bargap.setter def bargap(self, val): - self["bargap"] = val + self['bargap'] = val # bargroupgap # ----------- @@ -695,11 +227,11 @@ def bargroupgap(self): ------- int|float """ - return self["bargroupgap"] + return self['bargroupgap'] @bargroupgap.setter def bargroupgap(self, val): - self["bargroupgap"] = val + self['bargroupgap'] = val # barmode # ------- @@ -723,11 +255,11 @@ def barmode(self): ------- Any """ - return self["barmode"] + return self['barmode'] @barmode.setter def barmode(self, val): - self["barmode"] = val + self['barmode'] = val # barnorm # ------- @@ -747,11 +279,11 @@ def barnorm(self): ------- Any """ - return self["barnorm"] + return self['barnorm'] @barnorm.setter def barnorm(self, val): - self["barnorm"] = val + self['barnorm'] = val # boxgap # ------ @@ -769,11 +301,11 @@ def boxgap(self): ------- int|float """ - return self["boxgap"] + return self['boxgap'] @boxgap.setter def boxgap(self, val): - self["boxgap"] = val + self['boxgap'] = val # boxgroupgap # ----------- @@ -791,11 +323,11 @@ def boxgroupgap(self): ------- int|float """ - return self["boxgroupgap"] + return self['boxgroupgap'] @boxgroupgap.setter def boxgroupgap(self, val): - self["boxgroupgap"] = val + self['boxgroupgap'] = val # boxmode # ------- @@ -817,11 +349,11 @@ def boxmode(self): ------- Any """ - return self["boxmode"] + return self['boxmode'] @boxmode.setter def boxmode(self, val): - self["boxmode"] = val + self['boxmode'] = val # calendar # -------- @@ -842,11 +374,11 @@ def calendar(self): ------- Any """ - return self["calendar"] + return self['calendar'] @calendar.setter def calendar(self, val): - self["calendar"] = val + self['calendar'] = val # clickmode # --------- @@ -877,11 +409,11 @@ def clickmode(self): ------- Any """ - return self["clickmode"] + return self['clickmode'] @clickmode.setter def clickmode(self, val): - self["clickmode"] = val + self['clickmode'] = val # coloraxis # --------- @@ -894,75 +426,15 @@ def coloraxis(self): - A dict of string/value properties that will be passed to the Coloraxis constructor - Supported dict properties: - - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `colorscale`. In case - `colorscale` is unspecified or `autocolorscale` - is true, the default palette will be chosen - according to whether numbers in the `color` - array are all positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - corresponding trace color array(s)) or the - bounds set in `cmin` and `cmax` Defaults to - `false` when `cmin` and `cmax` are set by the - user. - cmax - Sets the upper bound of the color domain. Value - should have the same units as corresponding - trace color array(s) and if set, `cmin` must be - set as well. - cmid - Sets the mid-point of the color domain by - scaling `cmin` and/or `cmax` to be equidistant - to this point. Value should have the same units - as corresponding trace color array(s). Has no - effect when `cauto` is `false`. - cmin - Sets the lower bound of the color domain. Value - should have the same units as corresponding - trace color array(s) and if set, `cmax` must be - set as well. - colorbar - :class:`plotly.graph_objects.layout.coloraxis.C - olorBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. The colorscale must be an - array containing arrays mapping a normalized - value to an rgb, rgba, hex, hsl, hsv, or named - color string. At minimum, a mapping for the - lowest (0) and highest (1) values are required. - For example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use `cmin` and - `cmax`. Alternatively, `colorscale` may be a - palette name string of the following list: Blac - kbody,Bluered,Blues,Cividis,Earth,Electric,Gree - ns,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,R - eds,Viridis,YlGnBu,YlOrRd. - reversescale - Reverses the color mapping if true. If true, - `cmin` will correspond to the last color in the - array and `cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. - Returns ------- plotly.graph_objs.layout.Coloraxis """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorscale # ---------- @@ -975,30 +447,15 @@ def colorscale(self): - A dict of string/value properties that will be passed to the Colorscale constructor - Supported dict properties: - - diverging - Sets the default diverging colorscale. Note - that `autocolorscale` must be true for this - attribute to work. - sequential - Sets the default sequential colorscale for - positive values. Note that `autocolorscale` - must be true for this attribute to work. - sequentialminus - Sets the default sequential colorscale for - negative values. Note that `autocolorscale` - must be true for this attribute to work. - Returns ------- plotly.graph_objs.layout.Colorscale """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorway # -------- @@ -1015,11 +472,11 @@ def colorway(self): ------- list """ - return self["colorway"] + return self['colorway'] @colorway.setter def colorway(self, val): - self["colorway"] = val + self['colorway'] = val # computed # -------- @@ -1036,11 +493,11 @@ def computed(self): ------- Any """ - return self["computed"] + return self['computed'] @computed.setter def computed(self, val): - self["computed"] = val + self['computed'] = val # datarevision # ------------ @@ -1061,11 +518,11 @@ def datarevision(self): ------- Any """ - return self["datarevision"] + return self['datarevision'] @datarevision.setter def datarevision(self, val): - self["datarevision"] = val + self['datarevision'] = val # dragmode # -------- @@ -1086,11 +543,11 @@ def dragmode(self): ------- Any """ - return self["dragmode"] + return self['dragmode'] @dragmode.setter def dragmode(self, val): - self["dragmode"] = val + self['dragmode'] = val # editrevision # ------------ @@ -1107,11 +564,11 @@ def editrevision(self): ------- Any """ - return self["editrevision"] + return self['editrevision'] @editrevision.setter def editrevision(self, val): - self["editrevision"] = val + self['editrevision'] = val # extendfunnelareacolors # ---------------------- @@ -1134,11 +591,11 @@ def extendfunnelareacolors(self): ------- bool """ - return self["extendfunnelareacolors"] + return self['extendfunnelareacolors'] @extendfunnelareacolors.setter def extendfunnelareacolors(self, val): - self["extendfunnelareacolors"] = val + self['extendfunnelareacolors'] = val # extendiciclecolors # ------------------ @@ -1161,11 +618,11 @@ def extendiciclecolors(self): ------- bool """ - return self["extendiciclecolors"] + return self['extendiciclecolors'] @extendiciclecolors.setter def extendiciclecolors(self, val): - self["extendiciclecolors"] = val + self['extendiciclecolors'] = val # extendpiecolors # --------------- @@ -1187,11 +644,11 @@ def extendpiecolors(self): ------- bool """ - return self["extendpiecolors"] + return self['extendpiecolors'] @extendpiecolors.setter def extendpiecolors(self, val): - self["extendpiecolors"] = val + self['extendpiecolors'] = val # extendsunburstcolors # -------------------- @@ -1214,11 +671,11 @@ def extendsunburstcolors(self): ------- bool """ - return self["extendsunburstcolors"] + return self['extendsunburstcolors'] @extendsunburstcolors.setter def extendsunburstcolors(self, val): - self["extendsunburstcolors"] = val + self['extendsunburstcolors'] = val # extendtreemapcolors # ------------------- @@ -1241,11 +698,11 @@ def extendtreemapcolors(self): ------- bool """ - return self["extendtreemapcolors"] + return self['extendtreemapcolors'] @extendtreemapcolors.setter def extendtreemapcolors(self, val): - self["extendtreemapcolors"] = val + self['extendtreemapcolors'] = val # font # ---- @@ -1261,61 +718,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # funnelareacolorway # ------------------ @@ -1335,11 +746,11 @@ def funnelareacolorway(self): ------- list """ - return self["funnelareacolorway"] + return self['funnelareacolorway'] @funnelareacolorway.setter def funnelareacolorway(self, val): - self["funnelareacolorway"] = val + self['funnelareacolorway'] = val # funnelgap # --------- @@ -1356,11 +767,11 @@ def funnelgap(self): ------- int|float """ - return self["funnelgap"] + return self['funnelgap'] @funnelgap.setter def funnelgap(self, val): - self["funnelgap"] = val + self['funnelgap'] = val # funnelgroupgap # -------------- @@ -1377,11 +788,11 @@ def funnelgroupgap(self): ------- int|float """ - return self["funnelgroupgap"] + return self['funnelgroupgap'] @funnelgroupgap.setter def funnelgroupgap(self, val): - self["funnelgroupgap"] = val + self['funnelgroupgap'] = val # funnelmode # ---------- @@ -1403,11 +814,11 @@ def funnelmode(self): ------- Any """ - return self["funnelmode"] + return self['funnelmode'] @funnelmode.setter def funnelmode(self, val): - self["funnelmode"] = val + self['funnelmode'] = val # geo # --- @@ -1420,116 +831,15 @@ def geo(self): - A dict of string/value properties that will be passed to the Geo constructor - Supported dict properties: - - bgcolor - Set the background color of the map - center - :class:`plotly.graph_objects.layout.geo.Center` - instance or dict with compatible properties - coastlinecolor - Sets the coastline color. - coastlinewidth - Sets the coastline stroke width (in px). - countrycolor - Sets line color of the country boundaries. - countrywidth - Sets line width (in px) of the country - boundaries. - domain - :class:`plotly.graph_objects.layout.geo.Domain` - instance or dict with compatible properties - fitbounds - Determines if this subplot's view settings are - auto-computed to fit trace data. On scoped - maps, setting `fitbounds` leads to `center.lon` - and `center.lat` getting auto-filled. On maps - with a non-clipped projection, setting - `fitbounds` leads to `center.lon`, - `center.lat`, and `projection.rotation.lon` - getting auto-filled. On maps with a clipped - projection, setting `fitbounds` leads to - `center.lon`, `center.lat`, - `projection.rotation.lon`, - `projection.rotation.lat`, `lonaxis.range` and - `lataxis.range` getting auto-filled. If - "locations", only the trace's visible locations - are considered in the `fitbounds` computations. - If "geojson", the entire trace input `geojson` - (if provided) is considered in the `fitbounds` - computations, Defaults to False. - framecolor - Sets the color the frame. - framewidth - Sets the stroke width (in px) of the frame. - lakecolor - Sets the color of the lakes. - landcolor - Sets the land mass color. - lataxis - :class:`plotly.graph_objects.layout.geo.Lataxis - ` instance or dict with compatible properties - lonaxis - :class:`plotly.graph_objects.layout.geo.Lonaxis - ` instance or dict with compatible properties - oceancolor - Sets the ocean color - projection - :class:`plotly.graph_objects.layout.geo.Project - ion` instance or dict with compatible - properties - resolution - Sets the resolution of the base layers. The - values have units of km/mm e.g. 110 corresponds - to a scale ratio of 1:110,000,000. - rivercolor - Sets color of the rivers. - riverwidth - Sets the stroke width (in px) of the rivers. - scope - Set the scope of the map. - showcoastlines - Sets whether or not the coastlines are drawn. - showcountries - Sets whether or not country boundaries are - drawn. - showframe - Sets whether or not a frame is drawn around the - map. - showlakes - Sets whether or not lakes are drawn. - showland - Sets whether or not land masses are filled in - color. - showocean - Sets whether or not oceans are filled in color. - showrivers - Sets whether or not rivers are drawn. - showsubunits - Sets whether or not boundaries of subunits - within countries (e.g. states, provinces) are - drawn. - subunitcolor - Sets the color of the subunits boundaries. - subunitwidth - Sets the stroke width (in px) of the subunits - boundaries. - uirevision - Controls persistence of user-driven changes in - the view (projection and center). Defaults to - `layout.uirevision`. - visible - Sets the default visibility of the base layers. - Returns ------- plotly.graph_objs.layout.Geo """ - return self["geo"] + return self['geo'] @geo.setter def geo(self, val): - self["geo"] = val + self['geo'] = val # grid # ---- @@ -1542,97 +852,15 @@ def grid(self): - A dict of string/value properties that will be passed to the Grid constructor - Supported dict properties: - - columns - The number of columns in the grid. If you - provide a 2D `subplots` array, the length of - its longest row is used as the default. If you - give an `xaxes` array, its length is used as - the default. But it's also possible to have a - different length, if you want to leave a row at - the end for non-cartesian subplots. - domain - :class:`plotly.graph_objects.layout.grid.Domain - ` instance or dict with compatible properties - pattern - If no `subplots`, `xaxes`, or `yaxes` are given - but we do have `rows` and `columns`, we can - generate defaults using consecutive axis IDs, - in two ways: "coupled" gives one x axis per - column and one y axis per row. "independent" - uses a new xy pair for each cell, left-to-right - across each row then iterating rows according - to `roworder`. - roworder - Is the first row the top or the bottom? Note - that columns are always enumerated from left to - right. - rows - The number of rows in the grid. If you provide - a 2D `subplots` array or a `yaxes` array, its - length is used as the default. But it's also - possible to have a different length, if you - want to leave a row at the end for non- - cartesian subplots. - subplots - Used for freeform grids, where some axes may be - shared across subplots but others are not. Each - entry should be a cartesian subplot id, like - "xy" or "x3y2", or "" to leave that cell empty. - You may reuse x axes within the same column, - and y axes within the same row. Non-cartesian - subplots and traces that support `domain` can - place themselves in this grid separately using - the `gridcell` attribute. - xaxes - Used with `yaxes` when the x and y axes are - shared across columns and rows. Each entry - should be an x axis id like "x", "x2", etc., or - "" to not put an x axis in that column. Entries - other than "" must be unique. Ignored if - `subplots` is present. If missing but `yaxes` - is present, will generate consecutive IDs. - xgap - Horizontal space between grid cells, expressed - as a fraction of the total width available to - one cell. Defaults to 0.1 for coupled-axes - grids and 0.2 for independent grids. - xside - Sets where the x axis labels and titles go. - "bottom" means the very bottom of the grid. - "bottom plot" is the lowest plot that each x - axis is used in. "top" and "top plot" are - similar. - yaxes - Used with `yaxes` when the x and y axes are - shared across columns and rows. Each entry - should be an y axis id like "y", "y2", etc., or - "" to not put a y axis in that row. Entries - other than "" must be unique. Ignored if - `subplots` is present. If missing but `xaxes` - is present, will generate consecutive IDs. - ygap - Vertical space between grid cells, expressed as - a fraction of the total height available to one - cell. Defaults to 0.1 for coupled-axes grids - and 0.3 for independent grids. - yside - Sets where the y axis labels and titles go. - "left" means the very left edge of the grid. - *left plot* is the leftmost plot that each y - axis is used in. "right" and *right plot* are - similar. - Returns ------- plotly.graph_objs.layout.Grid """ - return self["grid"] + return self['grid'] @grid.setter def grid(self, val): - self["grid"] = val + self['grid'] = val # height # ------ @@ -1648,11 +876,11 @@ def height(self): ------- int|float """ - return self["height"] + return self['height'] @height.setter def height(self, val): - self["height"] = val + self['height'] = val # hiddenlabels # ------------ @@ -1670,11 +898,11 @@ def hiddenlabels(self): ------- numpy.ndarray """ - return self["hiddenlabels"] + return self['hiddenlabels'] @hiddenlabels.setter def hiddenlabels(self, val): - self["hiddenlabels"] = val + self['hiddenlabels'] = val # hiddenlabelssrc # --------------- @@ -1691,11 +919,11 @@ def hiddenlabelssrc(self): ------- str """ - return self["hiddenlabelssrc"] + return self['hiddenlabelssrc'] @hiddenlabelssrc.setter def hiddenlabelssrc(self, val): - self["hiddenlabelssrc"] = val + self['hiddenlabelssrc'] = val # hidesources # ----------- @@ -1715,11 +943,11 @@ def hidesources(self): ------- bool """ - return self["hidesources"] + return self['hidesources'] @hidesources.setter def hidesources(self, val): - self["hidesources"] = val + self['hidesources'] = val # hoverdistance # ------------- @@ -1742,11 +970,11 @@ def hoverdistance(self): ------- int """ - return self["hoverdistance"] + return self['hoverdistance'] @hoverdistance.setter def hoverdistance(self, val): - self["hoverdistance"] = val + self['hoverdistance'] = val # hoverlabel # ---------- @@ -1759,45 +987,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - bgcolor - Sets the background color of all hover labels - on graph - bordercolor - Sets the border color of all hover labels on - graph. - font - Sets the default hover label font used by all - traces on the graph. - grouptitlefont - Sets the font for group titles in hover - (unified modes). Defaults to `hoverlabel.font`. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - Returns ------- plotly.graph_objs.layout.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovermode # --------- @@ -1825,11 +1023,11 @@ def hovermode(self): ------- Any """ - return self["hovermode"] + return self['hovermode'] @hovermode.setter def hovermode(self, val): - self["hovermode"] = val + self['hovermode'] = val # hoversubplots # ------------- @@ -1851,11 +1049,11 @@ def hoversubplots(self): ------- Any """ - return self["hoversubplots"] + return self['hoversubplots'] @hoversubplots.setter def hoversubplots(self, val): - self["hoversubplots"] = val + self['hoversubplots'] = val # iciclecolorway # -------------- @@ -1875,11 +1073,11 @@ def iciclecolorway(self): ------- list """ - return self["iciclecolorway"] + return self['iciclecolorway'] @iciclecolorway.setter def iciclecolorway(self, val): - self["iciclecolorway"] = val + self['iciclecolorway'] = val # images # ------ @@ -1892,115 +1090,15 @@ def images(self): - A list or tuple of dicts of string/value properties that will be passed to the Image constructor - Supported dict properties: - - layer - Specifies whether images are drawn below or - above traces. When `xref` and `yref` are both - set to `paper`, image is drawn below the entire - plot area. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - opacity - Sets the opacity of the image. - sizex - Sets the image container size horizontally. The - image will be sized based on the `position` - value. When `xref` is set to `paper`, units are - sized relative to the plot width. When `xref` - ends with ` domain`, units are sized relative - to the axis width. - sizey - Sets the image container size vertically. The - image will be sized based on the `position` - value. When `yref` is set to `paper`, units are - sized relative to the plot height. When `yref` - ends with ` domain`, units are sized relative - to the axis height. - sizing - Specifies which dimension of the image to - constrain. - source - Specifies the URL of the image to be used. The - URL must be accessible from the domain where - the plot code is run, and can be either - relative or absolute. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - visible - Determines whether or not this image is - visible. - x - Sets the image's x position. When `xref` is set - to `paper`, units are sized relative to the - plot height. See `xref` for more info - xanchor - Sets the anchor for the x position - xref - Sets the images's x coordinate axis. If set to - a x axis id (e.g. "x" or "x2"), the `x` - position refers to a x coordinate. If set to - "paper", the `x` position refers to the - distance from the left of the plotting area in - normalized coordinates where 0 (1) corresponds - to the left (right). If set to a x axis ID - followed by "domain" (separated by a space), - the position behaves like for "paper", but - refers to the distance in fractions of the - domain length from the left of the domain of - that axis: e.g., *x2 domain* refers to the - domain of the second x axis and a x position - of 0.5 refers to the point between the left and - the right of the domain of the second x axis. - y - Sets the image's y position. When `yref` is set - to `paper`, units are sized relative to the - plot height. See `yref` for more info - yanchor - Sets the anchor for the y position. - yref - Sets the images's y coordinate axis. If set to - a y axis id (e.g. "y" or "y2"), the `y` - position refers to a y coordinate. If set to - "paper", the `y` position refers to the - distance from the bottom of the plotting area - in normalized coordinates where 0 (1) - corresponds to the bottom (top). If set to a y - axis ID followed by "domain" (separated by a - space), the position behaves like for "paper", - but refers to the distance in fractions of the - domain length from the bottom of the domain of - that axis: e.g., *y2 domain* refers to the - domain of the second y axis and a y position - of 0.5 refers to the point between the bottom - and the top of the domain of the second y axis. - Returns ------- tuple[plotly.graph_objs.layout.Image] """ - return self["images"] + return self['images'] @images.setter def images(self, val): - self["images"] = val + self['images'] = val # imagedefaults # ------------- @@ -2017,17 +1115,15 @@ def imagedefaults(self): - A dict of string/value properties that will be passed to the Image constructor - Supported dict properties: - Returns ------- plotly.graph_objs.layout.Image """ - return self["imagedefaults"] + return self['imagedefaults'] @imagedefaults.setter def imagedefaults(self, val): - self["imagedefaults"] = val + self['imagedefaults'] = val # legend # ------ @@ -2040,147 +1136,15 @@ def legend(self): - A dict of string/value properties that will be passed to the Legend constructor - Supported dict properties: - - bgcolor - Sets the legend background color. Defaults to - `layout.paper_bgcolor`. - bordercolor - Sets the color of the border enclosing the - legend. - borderwidth - Sets the width (in px) of the border enclosing - the legend. - entrywidth - Sets the width (in px or fraction) of the - legend. Use 0 to size the entry based on the - text width, when `entrywidthmode` is set to - "pixels". - entrywidthmode - Determines what entrywidth means. - font - Sets the font used to text the legend items. - groupclick - Determines the behavior on legend group item - click. "toggleitem" toggles the visibility of - the individual item clicked on the graph. - "togglegroup" toggles the visibility of all - items in the same legendgroup as the item - clicked on the graph. - grouptitlefont - Sets the font for group titles in legend. - Defaults to `legend.font` with its size - increased about 10%. - indentation - Sets the indentation (in px) of the legend - entries. - itemclick - Determines the behavior on legend item click. - "toggle" toggles the visibility of the item - clicked on the graph. "toggleothers" makes the - clicked item the sole visible item on the - graph. False disables legend item click - interactions. - itemdoubleclick - Determines the behavior on legend item double- - click. "toggle" toggles the visibility of the - item clicked on the graph. "toggleothers" makes - the clicked item the sole visible item on the - graph. False disables legend item double-click - interactions. - itemsizing - Determines if the legend items symbols scale - with their corresponding "trace" attributes or - remain "constant" independent of the symbol - size on the graph. - itemwidth - Sets the width (in px) of the legend item - symbols (the part other than the title.text). - orientation - Sets the orientation of the legend. - title - :class:`plotly.graph_objects.layout.legend.Titl - e` instance or dict with compatible properties - tracegroupgap - Sets the amount of vertical space (in px) - between legend groups. - traceorder - Determines the order at which the legend items - are displayed. If "normal", the items are - displayed top-to-bottom in the same order as - the input data. If "reversed", the items are - displayed in the opposite order as "normal". If - "grouped", the items are displayed in groups - (when a trace `legendgroup` is provided). if - "grouped+reversed", the items are displayed in - the opposite order as "grouped". - uirevision - Controls persistence of legend-driven changes - in trace and pie label visibility. Defaults to - `layout.uirevision`. - valign - Sets the vertical alignment of the symbols with - respect to their associated text. - visible - Determines whether or not this legend is - visible. - x - Sets the x position with respect to `xref` (in - normalized coordinates) of the legend. When - `xref` is "paper", defaults to 1.02 for - vertical legends and defaults to 0 for - horizontal legends. When `xref` is "container", - defaults to 1 for vertical legends and defaults - to 0 for horizontal legends. Must be between 0 - and 1 if `xref` is "container". and between - "-2" and 3 if `xref` is "paper". - xanchor - Sets the legend's horizontal position anchor. - This anchor binds the `x` position to the - "left", "center" or "right" of the legend. - Value "auto" anchors legends to the right for - `x` values greater than or equal to 2/3, - anchors legends to the left for `x` values less - than or equal to 1/3 and anchors legends with - respect to their center otherwise. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` (in - normalized coordinates) of the legend. When - `yref` is "paper", defaults to 1 for vertical - legends, defaults to "-0.1" for horizontal - legends on graphs w/o range sliders and - defaults to 1.1 for horizontal legends on graph - with one or multiple range sliders. When `yref` - is "container", defaults to 1. Must be between - 0 and 1 if `yref` is "container" and between - "-2" and 3 if `yref` is "paper". - yanchor - Sets the legend's vertical position anchor This - anchor binds the `y` position to the "top", - "middle" or "bottom" of the legend. Value - "auto" anchors legends at their bottom for `y` - values less than or equal to 1/3, anchors - legends to at their top for `y` values greater - than or equal to 2/3 and anchors legends with - respect to their middle otherwise. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.layout.Legend """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # map # --- @@ -2193,71 +1157,15 @@ def map(self): - A dict of string/value properties that will be passed to the Map constructor - Supported dict properties: - - bearing - Sets the bearing angle of the map in degrees - counter-clockwise from North (map.bearing). - bounds - :class:`plotly.graph_objects.layout.map.Bounds` - instance or dict with compatible properties - center - :class:`plotly.graph_objects.layout.map.Center` - instance or dict with compatible properties - domain - :class:`plotly.graph_objects.layout.map.Domain` - instance or dict with compatible properties - layers - A tuple of - :class:`plotly.graph_objects.layout.map.Layer` - instances or dicts with compatible properties - layerdefaults - When used in a template (as - layout.template.layout.map.layerdefaults), sets - the default property values to use for elements - of layout.map.layers - pitch - Sets the pitch angle of the map (in degrees, - where 0 means perpendicular to the surface of - the map) (map.pitch). - style - Defines the map layers that are rendered by - default below the trace layers defined in - `data`, which are themselves by default - rendered below the layers defined in - `layout.map.layers`. These layers can be - defined either explicitly as a Map Style object - which can contain multiple layer definitions - that load data from any public or private Tile - Map Service (TMS or XYZ) or Web Map Service - (WMS) or implicitly by using one of the built- - in style objects which use WMSes or by using a - custom style URL Map Style objects are of the - form described in the MapLibre GL JS - documentation available at - https://maplibre.org/maplibre-style-spec/ The - built-in plotly.js styles objects are: basic, - carto-darkmatter, carto-darkmatter-nolabels, - carto-positron, carto-positron-nolabels, carto- - voyager, carto-voyager-nolabels, dark, light, - open-street-map, outdoors, satellite, - satellite-streets, streets, white-bg. - uirevision - Controls persistence of user-driven changes in - the view: `center`, `zoom`, `bearing`, `pitch`. - Defaults to `layout.uirevision`. - zoom - Sets the zoom level of the map (map.zoom). - Returns ------- plotly.graph_objs.layout.Map """ - return self["map"] + return self['map'] @map.setter def map(self, val): - self["map"] = val + self['map'] = val # mapbox # ------ @@ -2270,87 +1178,15 @@ def mapbox(self): - A dict of string/value properties that will be passed to the Mapbox constructor - Supported dict properties: - - accesstoken - Sets the mapbox access token to be used for - this mapbox map. Alternatively, the mapbox - access token can be set in the configuration - options under `mapboxAccessToken`. Note that - accessToken are only required when `style` (e.g - with values : basic, streets, outdoors, light, - dark, satellite, satellite-streets ) and/or a - layout layer references the Mapbox server. - bearing - Sets the bearing angle of the map in degrees - counter-clockwise from North (mapbox.bearing). - bounds - :class:`plotly.graph_objects.layout.mapbox.Boun - ds` instance or dict with compatible properties - center - :class:`plotly.graph_objects.layout.mapbox.Cent - er` instance or dict with compatible properties - domain - :class:`plotly.graph_objects.layout.mapbox.Doma - in` instance or dict with compatible properties - layers - A tuple of :class:`plotly.graph_objects.layout. - mapbox.Layer` instances or dicts with - compatible properties - layerdefaults - When used in a template (as - layout.template.layout.mapbox.layerdefaults), - sets the default property values to use for - elements of layout.mapbox.layers - pitch - Sets the pitch angle of the map (in degrees, - where 0 means perpendicular to the surface of - the map) (mapbox.pitch). - style - Defines the map layers that are rendered by - default below the trace layers defined in - `data`, which are themselves by default - rendered below the layers defined in - `layout.mapbox.layers`. These layers can be - defined either explicitly as a Mapbox Style - object which can contain multiple layer - definitions that load data from any public or - private Tile Map Service (TMS or XYZ) or Web - Map Service (WMS) or implicitly by using one of - the built-in style objects which use WMSes - which do not require any access tokens, or by - using a default Mapbox style or custom Mapbox - style URL, both of which require a Mapbox - access token Note that Mapbox access token can - be set in the `accesstoken` attribute or in the - `mapboxAccessToken` config option. Mapbox - Style objects are of the form described in the - Mapbox GL JS documentation available at - https://docs.mapbox.com/mapbox-gl-js/style-spec - The built-in plotly.js styles objects are: - carto-darkmatter, carto-positron, open-street- - map, stamen-terrain, stamen-toner, stamen- - watercolor, white-bg The built-in Mapbox - styles are: basic, streets, outdoors, light, - dark, satellite, satellite-streets Mapbox - style URLs are of the form: - mapbox://mapbox.mapbox-- - uirevision - Controls persistence of user-driven changes in - the view: `center`, `zoom`, `bearing`, `pitch`. - Defaults to `layout.uirevision`. - zoom - Sets the zoom level of the map (mapbox.zoom). - Returns ------- plotly.graph_objs.layout.Mapbox """ - return self["mapbox"] + return self['mapbox'] @mapbox.setter def mapbox(self, val): - self["mapbox"] = val + self['mapbox'] = val # margin # ------ @@ -2363,34 +1199,15 @@ def margin(self): - A dict of string/value properties that will be passed to the Margin constructor - Supported dict properties: - - autoexpand - Turns on/off margin expansion computations. - Legends, colorbars, updatemenus, sliders, axis - rangeselector and rangeslider are allowed to - push the margins by defaults. - b - Sets the bottom margin (in px). - l - Sets the left margin (in px). - pad - Sets the amount of padding (in px) between the - plotting area and the axis lines - r - Sets the right margin (in px). - t - Sets the top margin (in px). - Returns ------- plotly.graph_objs.layout.Margin """ - return self["margin"] + return self['margin'] @margin.setter def margin(self, val): - self["margin"] = val + self['margin'] = val # meta # ---- @@ -2412,11 +1229,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -2432,11 +1249,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # minreducedheight # ---------------- @@ -2453,11 +1270,11 @@ def minreducedheight(self): ------- int|float """ - return self["minreducedheight"] + return self['minreducedheight'] @minreducedheight.setter def minreducedheight(self, val): - self["minreducedheight"] = val + self['minreducedheight'] = val # minreducedwidth # --------------- @@ -2474,11 +1291,11 @@ def minreducedwidth(self): ------- int|float """ - return self["minreducedwidth"] + return self['minreducedwidth'] @minreducedwidth.setter def minreducedwidth(self, val): - self["minreducedwidth"] = val + self['minreducedwidth'] = val # modebar # ------- @@ -2491,75 +1308,15 @@ def modebar(self): - A dict of string/value properties that will be passed to the Modebar constructor - Supported dict properties: - - activecolor - Sets the color of the active or hovered on - icons in the modebar. - add - Determines which predefined modebar buttons to - add. Please note that these buttons will only - be shown if they are compatible with all trace - types used in a graph. Similar to - `config.modeBarButtonsToAdd` option. This may - include "v1hovermode", "hoverclosest", - "hovercompare", "togglehover", - "togglespikelines", "drawline", "drawopenpath", - "drawclosedpath", "drawcircle", "drawrect", - "eraseshape". - addsrc - Sets the source reference on Chart Studio Cloud - for `add`. - bgcolor - Sets the background color of the modebar. - color - Sets the color of the icons in the modebar. - orientation - Sets the orientation of the modebar. - remove - Determines which predefined modebar buttons to - remove. Similar to - `config.modeBarButtonsToRemove` option. This - may include "autoScale2d", "autoscale", - "editInChartStudio", "editinchartstudio", - "hoverCompareCartesian", "hovercompare", - "lasso", "lasso2d", "orbitRotation", - "orbitrotation", "pan", "pan2d", "pan3d", - "reset", "resetCameraDefault3d", - "resetCameraLastSave3d", "resetGeo", - "resetSankeyGroup", "resetScale2d", - "resetViewMap", "resetViewMapbox", - "resetViews", "resetcameradefault", - "resetcameralastsave", "resetsankeygroup", - "resetscale", "resetview", "resetviews", - "select", "select2d", "sendDataToCloud", - "senddatatocloud", "tableRotation", - "tablerotation", "toImage", "toggleHover", - "toggleSpikelines", "togglehover", - "togglespikelines", "toimage", "zoom", - "zoom2d", "zoom3d", "zoomIn2d", "zoomInGeo", - "zoomInMap", "zoomInMapbox", "zoomOut2d", - "zoomOutGeo", "zoomOutMap", "zoomOutMapbox", - "zoomin", "zoomout". - removesrc - Sets the source reference on Chart Studio Cloud - for `remove`. - uirevision - Controls persistence of user-driven changes - related to the modebar, including `hovermode`, - `dragmode`, and `showspikes` at both the root - level and inside subplots. Defaults to - `layout.uirevision`. - Returns ------- plotly.graph_objs.layout.Modebar """ - return self["modebar"] + return self['modebar'] @modebar.setter def modebar(self, val): - self["modebar"] = val + self['modebar'] = val # newselection # ------------ @@ -2572,30 +1329,15 @@ def newselection(self): - A dict of string/value properties that will be passed to the Newselection constructor - Supported dict properties: - - line - :class:`plotly.graph_objects.layout.newselectio - n.Line` instance or dict with compatible - properties - mode - Describes how a new selection is created. If - `immediate`, a new selection is created after - first mouse up. If `gradual`, a new selection - is not created after first mouse. By adding to - and subtracting from the initial selection, - this option allows declaring extra outlines of - the selection. - Returns ------- plotly.graph_objs.layout.Newselection """ - return self["newselection"] + return self['newselection'] @newselection.setter def newselection(self, val): - self["newselection"] = val + self['newselection'] = val # newshape # -------- @@ -2608,88 +1350,15 @@ def newshape(self): - A dict of string/value properties that will be passed to the Newshape constructor - Supported dict properties: - - drawdirection - When `dragmode` is set to "drawrect", - "drawline" or "drawcircle" this limits the drag - to be horizontal, vertical or diagonal. Using - "diagonal" there is no limit e.g. in drawing - lines in any direction. "ortho" limits the draw - to be either horizontal or vertical. - "horizontal" allows horizontal extend. - "vertical" allows vertical extend. - fillcolor - Sets the color filling new shapes' interior. - Please note that if using a fillcolor with - alpha greater than half, drag inside the active - shape starts moving the shape underneath, - otherwise a new shape could be started over. - fillrule - Determines the path's interior. For more info - please visit https://developer.mozilla.org/en- - US/docs/Web/SVG/Attribute/fill-rule - label - :class:`plotly.graph_objects.layout.newshape.La - bel` instance or dict with compatible - properties - layer - Specifies whether new shapes are drawn below - gridlines ("below"), between gridlines and - traces ("between") or above traces ("above"). - legend - Sets the reference to a legend to show new - shape in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for new shape. Traces and - shapes part of the same legend group hide/show - at the same time when toggling legend items. - legendgrouptitle - :class:`plotly.graph_objects.layout.newshape.Le - gendgrouptitle` instance or dict with - compatible properties - legendrank - Sets the legend rank for new shape. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. - legendwidth - Sets the width (in px or fraction) of the - legend for new shape. - line - :class:`plotly.graph_objects.layout.newshape.Li - ne` instance or dict with compatible properties - name - Sets new shape name. The name appears as the - legend item. - opacity - Sets the opacity of new shapes. - showlegend - Determines whether or not new shape is shown in - the legend. - visible - Determines whether or not new shape is visible. - If "legendonly", the shape is not drawn, but - can appear as a legend item (provided that the - legend itself is visible). - Returns ------- plotly.graph_objs.layout.Newshape """ - return self["newshape"] + return self['newshape'] @newshape.setter def newshape(self, val): - self["newshape"] = val + self['newshape'] = val # paper_bgcolor # ------------- @@ -2704,52 +1373,17 @@ def paper_bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["paper_bgcolor"] + return self['paper_bgcolor'] @paper_bgcolor.setter def paper_bgcolor(self, val): - self["paper_bgcolor"] = val + self['paper_bgcolor'] = val # piecolorway # ----------- @@ -2769,11 +1403,11 @@ def piecolorway(self): ------- list """ - return self["piecolorway"] + return self['piecolorway'] @piecolorway.setter def piecolorway(self, val): - self["piecolorway"] = val + self['piecolorway'] = val # plot_bgcolor # ------------ @@ -2788,52 +1422,17 @@ def plot_bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["plot_bgcolor"] + return self['plot_bgcolor'] @plot_bgcolor.setter def plot_bgcolor(self, val): - self["plot_bgcolor"] = val + self['plot_bgcolor'] = val # polar # ----- @@ -2846,66 +1445,15 @@ def polar(self): - A dict of string/value properties that will be passed to the Polar constructor - Supported dict properties: - - angularaxis - :class:`plotly.graph_objects.layout.polar.Angul - arAxis` instance or dict with compatible - properties - bargap - Sets the gap between bars of adjacent location - coordinates. Values are unitless, they - represent fractions of the minimum difference - in bar positions in the data. - barmode - Determines how bars at the same location - coordinate are displayed on the graph. With - "stack", the bars are stacked on top of one - another With "overlay", the bars are plotted - over one another, you might need to reduce - "opacity" to see multiple bars. - bgcolor - Set the background color of the subplot - domain - :class:`plotly.graph_objects.layout.polar.Domai - n` instance or dict with compatible properties - gridshape - Determines if the radial axis grid lines and - angular axis line are drawn as "circular" - sectors or as "linear" (polygon) sectors. Has - an effect only when the angular axis has `type` - "category". Note that `radialaxis.angle` is - snapped to the angle of the closest vertex when - `gridshape` is "circular" (so that radial axis - scale is the same as the data scale). - hole - Sets the fraction of the radius to cut out of - the polar subplot. - radialaxis - :class:`plotly.graph_objects.layout.polar.Radia - lAxis` instance or dict with compatible - properties - sector - Sets angular span of this polar subplot with - two angles (in degrees). Sector are assumed to - be spanned in the counterclockwise direction - with 0 corresponding to rightmost limit of the - polar subplot. - uirevision - Controls persistence of user-driven changes in - axis attributes, if not overridden in the - individual axes. Defaults to - `layout.uirevision`. - Returns ------- plotly.graph_objs.layout.Polar """ - return self["polar"] + return self['polar'] @polar.setter def polar(self, val): - self["polar"] = val + self['polar'] = val # scattergap # ---------- @@ -2922,11 +1470,11 @@ def scattergap(self): ------- int|float """ - return self["scattergap"] + return self['scattergap'] @scattergap.setter def scattergap(self, val): - self["scattergap"] = val + self['scattergap'] = val # scattermode # ----------- @@ -2948,11 +1496,11 @@ def scattermode(self): ------- Any """ - return self["scattermode"] + return self['scattermode'] @scattermode.setter def scattermode(self, val): - self["scattermode"] = val + self['scattermode'] = val # scene # ----- @@ -2965,69 +1513,15 @@ def scene(self): - A dict of string/value properties that will be passed to the Scene constructor - Supported dict properties: - - annotations - A tuple of :class:`plotly.graph_objects.layout. - scene.Annotation` instances or dicts with - compatible properties - annotationdefaults - When used in a template (as layout.template.lay - out.scene.annotationdefaults), sets the default - property values to use for elements of - layout.scene.annotations - aspectmode - If "cube", this scene's axes are drawn as a - cube, regardless of the axes' ranges. If - "data", this scene's axes are drawn in - proportion with the axes' ranges. If "manual", - this scene's axes are drawn in proportion with - the input of "aspectratio" (the default - behavior if "aspectratio" is provided). If - "auto", this scene's axes are drawn using the - results of "data" except when one axis is more - than four times the size of the two others, - where in that case the results of "cube" are - used. - aspectratio - Sets this scene's axis aspectratio. - bgcolor - - camera - :class:`plotly.graph_objects.layout.scene.Camer - a` instance or dict with compatible properties - domain - :class:`plotly.graph_objects.layout.scene.Domai - n` instance or dict with compatible properties - dragmode - Determines the mode of drag interactions for - this scene. - hovermode - Determines the mode of hover interactions for - this scene. - uirevision - Controls persistence of user-driven changes in - camera attributes. Defaults to - `layout.uirevision`. - xaxis - :class:`plotly.graph_objects.layout.scene.XAxis - ` instance or dict with compatible properties - yaxis - :class:`plotly.graph_objects.layout.scene.YAxis - ` instance or dict with compatible properties - zaxis - :class:`plotly.graph_objects.layout.scene.ZAxis - ` instance or dict with compatible properties - Returns ------- plotly.graph_objs.layout.Scene """ - return self["scene"] + return self['scene'] @scene.setter def scene(self, val): - self["scene"] = val + self['scene'] = val # selectdirection # --------------- @@ -3047,11 +1541,11 @@ def selectdirection(self): ------- Any """ - return self["selectdirection"] + return self['selectdirection'] @selectdirection.setter def selectdirection(self, val): - self["selectdirection"] = val + self['selectdirection'] = val # selectionrevision # ----------------- @@ -3067,11 +1561,11 @@ def selectionrevision(self): ------- Any """ - return self["selectionrevision"] + return self['selectionrevision'] @selectionrevision.setter def selectionrevision(self, val): - self["selectionrevision"] = val + self['selectionrevision'] = val # selections # ---------- @@ -3084,95 +1578,15 @@ def selections(self): - A list or tuple of dicts of string/value properties that will be passed to the Selection constructor - Supported dict properties: - - line - :class:`plotly.graph_objects.layout.selection.L - ine` instance or dict with compatible - properties - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - opacity - Sets the opacity of the selection. - path - For `type` "path" - a valid SVG path similar to - `shapes.path` in data coordinates. Allowed - segments are: M, L and Z. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - type - Specifies the selection type to be drawn. If - "rect", a rectangle is drawn linking - (`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`) and - (`x0`,`y1`). If "path", draw a custom SVG path - using `path`. - x0 - Sets the selection's starting x position. - x1 - Sets the selection's end x position. - xref - Sets the selection's x coordinate axis. If set - to a x axis id (e.g. "x" or "x2"), the `x` - position refers to a x coordinate. If set to - "paper", the `x` position refers to the - distance from the left of the plotting area in - normalized coordinates where 0 (1) corresponds - to the left (right). If set to a x axis ID - followed by "domain" (separated by a space), - the position behaves like for "paper", but - refers to the distance in fractions of the - domain length from the left of the domain of - that axis: e.g., *x2 domain* refers to the - domain of the second x axis and a x position - of 0.5 refers to the point between the left and - the right of the domain of the second x axis. - y0 - Sets the selection's starting y position. - y1 - Sets the selection's end y position. - yref - Sets the selection's x coordinate axis. If set - to a y axis id (e.g. "y" or "y2"), the `y` - position refers to a y coordinate. If set to - "paper", the `y` position refers to the - distance from the bottom of the plotting area - in normalized coordinates where 0 (1) - corresponds to the bottom (top). If set to a y - axis ID followed by "domain" (separated by a - space), the position behaves like for "paper", - but refers to the distance in fractions of the - domain length from the bottom of the domain of - that axis: e.g., *y2 domain* refers to the - domain of the second y axis and a y position - of 0.5 refers to the point between the bottom - and the top of the domain of the second y axis. - Returns ------- tuple[plotly.graph_objs.layout.Selection] """ - return self["selections"] + return self['selections'] @selections.setter def selections(self, val): - self["selections"] = val + self['selections'] = val # selectiondefaults # ----------------- @@ -3189,17 +1603,15 @@ def selectiondefaults(self): - A dict of string/value properties that will be passed to the Selection constructor - Supported dict properties: - Returns ------- plotly.graph_objs.layout.Selection """ - return self["selectiondefaults"] + return self['selectiondefaults'] @selectiondefaults.setter def selectiondefaults(self, val): - self["selectiondefaults"] = val + self['selectiondefaults'] = val # separators # ---------- @@ -3219,11 +1631,11 @@ def separators(self): ------- str """ - return self["separators"] + return self['separators'] @separators.setter def separators(self, val): - self["separators"] = val + self['separators'] = val # shapes # ------ @@ -3236,252 +1648,15 @@ def shapes(self): - A list or tuple of dicts of string/value properties that will be passed to the Shape constructor - Supported dict properties: - - editable - Determines whether the shape could be activated - for edit or not. Has no effect when the older - editable shapes mode is enabled via - `config.editable` or - `config.edits.shapePosition`. - fillcolor - Sets the color filling the shape's interior. - Only applies to closed shapes. - fillrule - Determines which regions of complex paths - constitute the interior. For more info please - visit https://developer.mozilla.org/en- - US/docs/Web/SVG/Attribute/fill-rule - label - :class:`plotly.graph_objects.layout.shape.Label - ` instance or dict with compatible properties - layer - Specifies whether shapes are drawn below - gridlines ("below"), between gridlines and - traces ("between") or above traces ("above"). - legend - Sets the reference to a legend to show this - shape in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this shape. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.layout.shape.Legen - dgrouptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this shape. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this shape. - line - :class:`plotly.graph_objects.layout.shape.Line` - instance or dict with compatible properties - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - opacity - Sets the opacity of the shape. - path - For `type` "path" - a valid SVG path with the - pixel values replaced by data values in - `xsizemode`/`ysizemode` being "scaled" and - taken unmodified as pixels relative to - `xanchor` and `yanchor` in case of "pixel" size - mode. There are a few restrictions / quirks - only absolute instructions, not relative. So - the allowed segments are: M, L, H, V, Q, C, T, - S, and Z arcs (A) are not allowed because - radius rx and ry are relative. In the future we - could consider supporting relative commands, - but we would have to decide on how to handle - date and log axes. Note that even as is, Q and - C Bezier paths that are smooth on linear axes - may not be smooth on log, and vice versa. no - chained "polybezier" commands - specify the - segment type for each one. On category axes, - values are numbers scaled to the serial numbers - of categories because using the categories - themselves there would be no way to describe - fractional positions On data axes: because - space and T are both normal components of path - strings, we can't use either to separate date - from time parts. Therefore we'll use underscore - for this purpose: 2015-02-21_13:45:56.789 - showlegend - Determines whether or not this shape is shown - in the legend. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - type - Specifies the shape type to be drawn. If - "line", a line is drawn from (`x0`,`y0`) to - (`x1`,`y1`) with respect to the axes' sizing - mode. If "circle", a circle is drawn from - ((`x0`+`x1`)/2, (`y0`+`y1`)/2)) with radius - (|(`x0`+`x1`)/2 - `x0`|, |(`y0`+`y1`)/2 - -`y0`)|) with respect to the axes' sizing mode. - If "rect", a rectangle is drawn linking - (`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`), - (`x0`,`y1`), (`x0`,`y0`) with respect to the - axes' sizing mode. If "path", draw a custom SVG - path using `path`. with respect to the axes' - sizing mode. - visible - Determines whether or not this shape is - visible. If "legendonly", the shape is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - x0 - Sets the shape's starting x position. See - `type` and `xsizemode` for more info. - x0shift - Shifts `x0` away from the center of the - category when `xref` is a "category" or - "multicategory" axis. -0.5 corresponds to the - start of the category and 0.5 corresponds to - the end of the category. - x1 - Sets the shape's end x position. See `type` and - `xsizemode` for more info. - x1shift - Shifts `x1` away from the center of the - category when `xref` is a "category" or - "multicategory" axis. -0.5 corresponds to the - start of the category and 0.5 corresponds to - the end of the category. - xanchor - Only relevant in conjunction with `xsizemode` - set to "pixel". Specifies the anchor point on - the x axis to which `x0`, `x1` and x - coordinates within `path` are relative to. E.g. - useful to attach a pixel sized shape to a - certain data value. No effect when `xsizemode` - not set to "pixel". - xref - Sets the shape's x coordinate axis. If set to a - x axis id (e.g. "x" or "x2"), the `x` position - refers to a x coordinate. If set to "paper", - the `x` position refers to the distance from - the left of the plotting area in normalized - coordinates where 0 (1) corresponds to the left - (right). If set to a x axis ID followed by - "domain" (separated by a space), the position - behaves like for "paper", but refers to the - distance in fractions of the domain length from - the left of the domain of that axis: e.g., *x2 - domain* refers to the domain of the second x - axis and a x position of 0.5 refers to the - point between the left and the right of the - domain of the second x axis. - xsizemode - Sets the shapes's sizing mode along the x axis. - If set to "scaled", `x0`, `x1` and x - coordinates within `path` refer to data values - on the x axis or a fraction of the plot area's - width (`xref` set to "paper"). If set to - "pixel", `xanchor` specifies the x position in - terms of data or plot fraction but `x0`, `x1` - and x coordinates within `path` are pixels - relative to `xanchor`. This way, the shape can - have a fixed width while maintaining a position - relative to data or plot fraction. - y0 - Sets the shape's starting y position. See - `type` and `ysizemode` for more info. - y0shift - Shifts `y0` away from the center of the - category when `yref` is a "category" or - "multicategory" axis. -0.5 corresponds to the - start of the category and 0.5 corresponds to - the end of the category. - y1 - Sets the shape's end y position. See `type` and - `ysizemode` for more info. - y1shift - Shifts `y1` away from the center of the - category when `yref` is a "category" or - "multicategory" axis. -0.5 corresponds to the - start of the category and 0.5 corresponds to - the end of the category. - yanchor - Only relevant in conjunction with `ysizemode` - set to "pixel". Specifies the anchor point on - the y axis to which `y0`, `y1` and y - coordinates within `path` are relative to. E.g. - useful to attach a pixel sized shape to a - certain data value. No effect when `ysizemode` - not set to "pixel". - yref - Sets the shape's y coordinate axis. If set to a - y axis id (e.g. "y" or "y2"), the `y` position - refers to a y coordinate. If set to "paper", - the `y` position refers to the distance from - the bottom of the plotting area in normalized - coordinates where 0 (1) corresponds to the - bottom (top). If set to a y axis ID followed by - "domain" (separated by a space), the position - behaves like for "paper", but refers to the - distance in fractions of the domain length from - the bottom of the domain of that axis: e.g., - *y2 domain* refers to the domain of the second - y axis and a y position of 0.5 refers to the - point between the bottom and the top of the - domain of the second y axis. - ysizemode - Sets the shapes's sizing mode along the y axis. - If set to "scaled", `y0`, `y1` and y - coordinates within `path` refer to data values - on the y axis or a fraction of the plot area's - height (`yref` set to "paper"). If set to - "pixel", `yanchor` specifies the y position in - terms of data or plot fraction but `y0`, `y1` - and y coordinates within `path` are pixels - relative to `yanchor`. This way, the shape can - have a fixed height while maintaining a - position relative to data or plot fraction. - Returns ------- tuple[plotly.graph_objs.layout.Shape] """ - return self["shapes"] + return self['shapes'] @shapes.setter def shapes(self, val): - self["shapes"] = val + self['shapes'] = val # shapedefaults # ------------- @@ -3498,17 +1673,15 @@ def shapedefaults(self): - A dict of string/value properties that will be passed to the Shape constructor - Supported dict properties: - Returns ------- plotly.graph_objs.layout.Shape """ - return self["shapedefaults"] + return self['shapedefaults'] @shapedefaults.setter def shapedefaults(self, val): - self["shapedefaults"] = val + self['shapedefaults'] = val # showlegend # ---------- @@ -3528,11 +1701,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # sliders # ------- @@ -3545,112 +1718,15 @@ def sliders(self): - A list or tuple of dicts of string/value properties that will be passed to the Slider constructor - Supported dict properties: - - active - Determines which button (by index starting from - 0) is considered active. - activebgcolor - Sets the background color of the slider grip - while dragging. - bgcolor - Sets the background color of the slider. - bordercolor - Sets the color of the border enclosing the - slider. - borderwidth - Sets the width (in px) of the border enclosing - the slider. - currentvalue - :class:`plotly.graph_objects.layout.slider.Curr - entvalue` instance or dict with compatible - properties - font - Sets the font of the slider step labels. - len - Sets the length of the slider This measure - excludes the padding of both ends. That is, the - slider's length is this length minus the - padding on both ends. - lenmode - Determines whether this slider length is set in - units of plot "fraction" or in *pixels. Use - `len` to set the value. - minorticklen - Sets the length in pixels of minor step tick - marks - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - pad - Set the padding of the slider component along - each side. - steps - A tuple of :class:`plotly.graph_objects.layout. - slider.Step` instances or dicts with compatible - properties - stepdefaults - When used in a template (as - layout.template.layout.slider.stepdefaults), - sets the default property values to use for - elements of layout.slider.steps - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - tickcolor - Sets the color of the border enclosing the - slider. - ticklen - Sets the length in pixels of step tick marks - tickwidth - Sets the tick width (in px). - transition - :class:`plotly.graph_objects.layout.slider.Tran - sition` instance or dict with compatible - properties - visible - Determines whether or not the slider is - visible. - x - Sets the x position (in normalized coordinates) - of the slider. - xanchor - Sets the slider's horizontal position anchor. - This anchor binds the `x` position to the - "left", "center" or "right" of the range - selector. - y - Sets the y position (in normalized coordinates) - of the slider. - yanchor - Sets the slider's vertical position anchor This - anchor binds the `y` position to the "top", - "middle" or "bottom" of the range selector. - Returns ------- tuple[plotly.graph_objs.layout.Slider] """ - return self["sliders"] + return self['sliders'] @sliders.setter def sliders(self, val): - self["sliders"] = val + self['sliders'] = val # sliderdefaults # -------------- @@ -3667,17 +1743,15 @@ def sliderdefaults(self): - A dict of string/value properties that will be passed to the Slider constructor - Supported dict properties: - Returns ------- plotly.graph_objs.layout.Slider """ - return self["sliderdefaults"] + return self['sliderdefaults'] @sliderdefaults.setter def sliderdefaults(self, val): - self["sliderdefaults"] = val + self['sliderdefaults'] = val # smith # ----- @@ -3690,31 +1764,15 @@ def smith(self): - A dict of string/value properties that will be passed to the Smith constructor - Supported dict properties: - - bgcolor - Set the background color of the subplot - domain - :class:`plotly.graph_objects.layout.smith.Domai - n` instance or dict with compatible properties - imaginaryaxis - :class:`plotly.graph_objects.layout.smith.Imagi - naryaxis` instance or dict with compatible - properties - realaxis - :class:`plotly.graph_objects.layout.smith.Reala - xis` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.layout.Smith """ - return self["smith"] + return self['smith'] @smith.setter def smith(self, val): - self["smith"] = val + self['smith'] = val # spikedistance # ------------- @@ -3735,11 +1793,11 @@ def spikedistance(self): ------- int """ - return self["spikedistance"] + return self['spikedistance'] @spikedistance.setter def spikedistance(self, val): - self["spikedistance"] = val + self['spikedistance'] = val # sunburstcolorway # ---------------- @@ -3759,11 +1817,11 @@ def sunburstcolorway(self): ------- list """ - return self["sunburstcolorway"] + return self['sunburstcolorway'] @sunburstcolorway.setter def sunburstcolorway(self, val): - self["sunburstcolorway"] = val + self['sunburstcolorway'] = val # template # -------- @@ -3795,23 +1853,13 @@ def template(self): - An instance of :class:`plotly.graph_objs.layout.Template` - A dict of string/value properties that will be passed to the Template constructor - - Supported dict properties: - - data - :class:`plotly.graph_objects.layout.template.Da - ta` instance or dict with compatible properties - layout - :class:`plotly.graph_objects.Layout` instance - or dict with compatible properties - - The name of a registered template where current registered templates are stored in the plotly.io.templates configuration object. The names of all registered templates can be retrieved with: >>> import plotly.io as pio >>> list(pio.templates) # doctest: +ELLIPSIS ['ggplot2', 'seaborn', 'simple_white', 'plotly', 'plotly_white', ...] - + - A string containing multiple registered template names, joined on '+' characters (e.g. 'template1+template2'). In this case the resulting template is computed by merging together the collection of registered @@ -3821,11 +1869,11 @@ def template(self): ------- plotly.graph_objs.layout.Template """ - return self["template"] + return self['template'] @template.setter def template(self, val): - self["template"] = val + self['template'] = val # ternary # ------- @@ -3838,41 +1886,15 @@ def ternary(self): - A dict of string/value properties that will be passed to the Ternary constructor - Supported dict properties: - - aaxis - :class:`plotly.graph_objects.layout.ternary.Aax - is` instance or dict with compatible properties - baxis - :class:`plotly.graph_objects.layout.ternary.Bax - is` instance or dict with compatible properties - bgcolor - Set the background color of the subplot - caxis - :class:`plotly.graph_objects.layout.ternary.Cax - is` instance or dict with compatible properties - domain - :class:`plotly.graph_objects.layout.ternary.Dom - ain` instance or dict with compatible - properties - sum - The number each triplet should sum to, and the - maximum range of each axis - uirevision - Controls persistence of user-driven changes in - axis `min` and `title`, if not overridden in - the individual axes. Defaults to - `layout.uirevision`. - Returns ------- plotly.graph_objs.layout.Ternary """ - return self["ternary"] + return self['ternary'] @ternary.setter def ternary(self, val): - self["ternary"] = val + self['ternary'] = val # title # ----- @@ -3885,85 +1907,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - automargin - Determines whether the title can automatically - push the figure margins. If `yref='paper'` then - the margin will expand to ensure that the title - doesn’t overlap with the edges of the - container. If `yref='container'` then the - margins will ensure that the title doesn’t - overlap with the plot area, tick labels, and - axis titles. If `automargin=true` and the - margins need to be expanded, then y will be set - to a default 1 and yanchor will be set to an - appropriate default to ensure that minimal - margin space is needed. Note that when - `yref='paper'`, only 1 or 0 are allowed y - values. Invalid values will be reset to the - default 1. - font - Sets the title font. - pad - Sets the padding of the title. Each padding - value only applies when the corresponding - `xanchor`/`yanchor` value is set accordingly. - E.g. for left padding to take effect, `xanchor` - must be set to "left". The same rule applies if - `xanchor`/`yanchor` is determined - automatically. Padding is muted if the - respective anchor value is "middle*/*center". - subtitle - :class:`plotly.graph_objects.layout.title.Subti - tle` instance or dict with compatible - properties - text - Sets the plot's title. - x - Sets the x position with respect to `xref` in - normalized coordinates from 0 (left) to 1 - (right). - xanchor - Sets the title's horizontal alignment with - respect to its x position. "left" means that - the title starts at x, "right" means that the - title ends at x and "center" means that the - title's center is at x. "auto" divides `xref` - by three and calculates the `xanchor` value - automatically based on the value of `x`. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` in - normalized coordinates from 0 (bottom) to 1 - (top). "auto" places the baseline of the title - onto the vertical center of the top margin. - yanchor - Sets the title's vertical alignment with - respect to its y position. "top" means that the - title's cap line is at y, "bottom" means that - the title's baseline is at y and "middle" means - that the title's midline is at y. "auto" - divides `yref` by three and calculates the - `yanchor` value automatically based on the - value of `y`. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.layout.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # transition # ---------- @@ -3978,28 +1930,15 @@ def transition(self): - A dict of string/value properties that will be passed to the Transition constructor - Supported dict properties: - - duration - The duration of the transition, in - milliseconds. If equal to zero, updates are - synchronous. - easing - The easing function used for the transition - ordering - Determines whether the figure's layout or - traces smoothly transitions during updates that - make both traces and layout change. - Returns ------- plotly.graph_objs.layout.Transition """ - return self["transition"] + return self['transition'] @transition.setter def transition(self, val): - self["transition"] = val + self['transition'] = val # treemapcolorway # --------------- @@ -4019,11 +1958,11 @@ def treemapcolorway(self): ------- list """ - return self["treemapcolorway"] + return self['treemapcolorway'] @treemapcolorway.setter def treemapcolorway(self, val): - self["treemapcolorway"] = val + self['treemapcolorway'] = val # uirevision # ---------- @@ -4053,11 +1992,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # uniformtext # ----------- @@ -4070,32 +2009,15 @@ def uniformtext(self): - A dict of string/value properties that will be passed to the Uniformtext constructor - Supported dict properties: - - minsize - Sets the minimum text size between traces of - the same type. - mode - Determines how the font size for various text - elements are uniformed between each trace type. - If the computed text sizes were smaller than - the minimum size defined by - `uniformtext.minsize` using "hide" option hides - the text; and using "show" option shows the - text without further downscaling. Please note - that if the size defined by `minsize` is - greater than the font size defined by trace, - then the `minsize` is used. - Returns ------- plotly.graph_objs.layout.Uniformtext """ - return self["uniformtext"] + return self['uniformtext'] @uniformtext.setter def uniformtext(self, val): - self["uniformtext"] = val + self['uniformtext'] = val # updatemenus # ----------- @@ -4108,97 +2030,15 @@ def updatemenus(self): - A list or tuple of dicts of string/value properties that will be passed to the Updatemenu constructor - Supported dict properties: - - active - Determines which button (by index starting from - 0) is considered active. - bgcolor - Sets the background color of the update menu - buttons. - bordercolor - Sets the color of the border enclosing the - update menu. - borderwidth - Sets the width (in px) of the border enclosing - the update menu. - buttons - A tuple of :class:`plotly.graph_objects.layout. - updatemenu.Button` instances or dicts with - compatible properties - buttondefaults - When used in a template (as layout.template.lay - out.updatemenu.buttondefaults), sets the - default property values to use for elements of - layout.updatemenu.buttons - direction - Determines the direction in which the buttons - are laid out, whether in a dropdown menu or a - row/column of buttons. For `left` and `up`, the - buttons will still appear in left-to-right or - top-to-bottom order respectively. - font - Sets the font of the update menu button text. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - pad - Sets the padding around the buttons or dropdown - menu. - showactive - Highlights active dropdown item or active - button if true. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - type - Determines whether the buttons are accessible - via a dropdown menu or whether the buttons are - stacked horizontally or vertically - visible - Determines whether or not the update menu is - visible. - x - Sets the x position (in normalized coordinates) - of the update menu. - xanchor - Sets the update menu's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the range - selector. - y - Sets the y position (in normalized coordinates) - of the update menu. - yanchor - Sets the update menu's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the range - selector. - Returns ------- tuple[plotly.graph_objs.layout.Updatemenu] """ - return self["updatemenus"] + return self['updatemenus'] @updatemenus.setter def updatemenus(self, val): - self["updatemenus"] = val + self['updatemenus'] = val # updatemenudefaults # ------------------ @@ -4215,17 +2055,15 @@ def updatemenudefaults(self): - A dict of string/value properties that will be passed to the Updatemenu constructor - Supported dict properties: - Returns ------- plotly.graph_objs.layout.Updatemenu """ - return self["updatemenudefaults"] + return self['updatemenudefaults'] @updatemenudefaults.setter def updatemenudefaults(self, val): - self["updatemenudefaults"] = val + self['updatemenudefaults'] = val # violingap # --------- @@ -4243,11 +2081,11 @@ def violingap(self): ------- int|float """ - return self["violingap"] + return self['violingap'] @violingap.setter def violingap(self, val): - self["violingap"] = val + self['violingap'] = val # violingroupgap # -------------- @@ -4265,11 +2103,11 @@ def violingroupgap(self): ------- int|float """ - return self["violingroupgap"] + return self['violingroupgap'] @violingroupgap.setter def violingroupgap(self, val): - self["violingroupgap"] = val + self['violingroupgap'] = val # violinmode # ---------- @@ -4291,11 +2129,11 @@ def violinmode(self): ------- Any """ - return self["violinmode"] + return self['violinmode'] @violinmode.setter def violinmode(self, val): - self["violinmode"] = val + self['violinmode'] = val # waterfallgap # ------------ @@ -4312,11 +2150,11 @@ def waterfallgap(self): ------- int|float """ - return self["waterfallgap"] + return self['waterfallgap'] @waterfallgap.setter def waterfallgap(self, val): - self["waterfallgap"] = val + self['waterfallgap'] = val # waterfallgroupgap # ----------------- @@ -4333,11 +2171,11 @@ def waterfallgroupgap(self): ------- int|float """ - return self["waterfallgroupgap"] + return self['waterfallgroupgap'] @waterfallgroupgap.setter def waterfallgroupgap(self, val): - self["waterfallgroupgap"] = val + self['waterfallgroupgap'] = val # waterfallmode # ------------- @@ -4358,11 +2196,11 @@ def waterfallmode(self): ------- Any """ - return self["waterfallmode"] + return self['waterfallmode'] @waterfallmode.setter def waterfallmode(self, val): - self["waterfallmode"] = val + self['waterfallmode'] = val # width # ----- @@ -4378,11 +2216,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # xaxis # ----- @@ -4395,587 +2233,15 @@ def xaxis(self): - A dict of string/value properties that will be passed to the XAxis constructor - Supported dict properties: - - anchor - If set to an opposite-letter axis id (e.g. - `x2`, `y`), this axis is bound to the - corresponding opposite-letter axis. If set to - "free", this axis' position is determined by - `position`. - automargin - Determines whether long tick labels - automatically grow the figure margins. - autorange - Determines whether or not the range of this - axis is computed in relation to the input data. - See `rangemode` for more info. If `range` is - provided and it has a value for both the lower - and upper bound, `autorange` is set to False. - Using "min" applies autorange only to set the - minimum. Using "max" applies autorange only to - set the maximum. Using *min reversed* applies - autorange only to set the minimum on a reversed - axis. Using *max reversed* applies autorange - only to set the maximum on a reversed axis. - Using "reversed" applies autorange on both ends - and reverses the axis direction. - autorangeoptions - :class:`plotly.graph_objects.layout.xaxis.Autor - angeoptions` instance or dict with compatible - properties - autotickangles - When `tickangle` is set to "auto", it will be - set to the first angle in this array that is - large enough to prevent label overlap. - autotypenumbers - Using "strict" a numeric string in trace data - is not converted to a number. Using *convert - types* a numeric string in trace data may be - treated as a number during automatic axis - `type` detection. Defaults to - layout.autotypenumbers. - calendar - Sets the calendar system to use for `range` and - `tick0` if this is a date axis. This does not - set the calendar for interpreting data on this - axis, that's specified in the trace or via the - global `layout.calendar` - categoryarray - Sets the order in which categories on this axis - appear. Only has an effect if `categoryorder` - is set to "array". Used with `categoryorder`. - categoryarraysrc - Sets the source reference on Chart Studio Cloud - for `categoryarray`. - categoryorder - Specifies the ordering logic for the case of - categorical variables. By default, plotly uses - "trace", which specifies the order that is - present in the data supplied. Set - `categoryorder` to *category ascending* or - *category descending* if order should be - determined by the alphanumerical order of the - category names. Set `categoryorder` to "array" - to derive the ordering from the attribute - `categoryarray`. If a category is not found in - the `categoryarray` array, the sorting behavior - for that attribute will be identical to the - "trace" mode. The unspecified categories will - follow the categories in `categoryarray`. Set - `categoryorder` to *total ascending* or *total - descending* if order should be determined by - the numerical order of the values. Similarly, - the order can be determined by the min, max, - sum, mean, geometric mean or median of all the - values. - color - Sets default for all colors associated with - this axis all at once: line, font, tick, and - grid colors. Grid color is lightened by - blending this with the plot background - Individual pieces can override this. - constrain - If this axis needs to be compressed (either due - to its own `scaleanchor` and `scaleratio` or - those of the other axis), determines how that - happens: by increasing the "range", or by - decreasing the "domain". Default is "domain" - for axes containing image traces, "range" - otherwise. - constraintoward - If this axis needs to be compressed (either due - to its own `scaleanchor` and `scaleratio` or - those of the other axis), determines which - direction we push the originally specified plot - area. Options are "left", "center" (default), - and "right" for x axes, and "top", "middle" - (default), and "bottom" for y axes. - dividercolor - Sets the color of the dividers Only has an - effect on "multicategory" axes. - dividerwidth - Sets the width (in px) of the dividers Only has - an effect on "multicategory" axes. - domain - Sets the domain of this axis (in plot - fraction). - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - fixedrange - Determines whether or not this axis is zoom- - able. If true, then zoom is disabled. - gridcolor - Sets the color of the grid lines. - 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 width (in px) of the grid lines. - hoverformat - Sets the hover text formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - insiderange - Could be used to set the desired inside range - of this axis (excluding the labels) when - `ticklabelposition` of the anchored axis has - "inside". Not implemented for axes with `type` - "log". This would be ignored when `range` is - provided. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - layer - Sets the layer on which this axis is displayed. - If *above traces*, this axis is displayed above - all the subplot's traces If *below traces*, - this axis is displayed below all the subplot's - traces, but above the grid lines. Useful when - used together with scatter-like traces with - `cliponaxis` set to False to show markers - and/or text nodes above this axis. - linecolor - Sets the axis line color. - linewidth - Sets the width (in px) of the axis line. - matches - If set to another axis id (e.g. `x2`, `y`), the - range of this axis will match the range of the - corresponding axis in data-coordinates space. - Moreover, matching axes share auto-range - values, category lists and histogram auto-bins. - Note that setting axes simultaneously in both a - `scaleanchor` and a `matches` constraint is - currently forbidden. Moreover, note that - matching axes must have the same `type`. - maxallowed - Determines the maximum range of this axis. - minallowed - Determines the minimum range of this axis. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - minor - :class:`plotly.graph_objects.layout.xaxis.Minor - ` instance or dict with compatible properties - mirror - Determines if the axis lines or/and ticks are - mirrored to the opposite side of the plotting - area. If True, the axis lines are mirrored. If - "ticks", the axis lines and ticks are mirrored. - If False, mirroring is disable. If "all", axis - lines are mirrored on all shared-axes subplots. - If "allticks", axis lines and ticks are - mirrored on all shared-axes subplots. - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - overlaying - If set a same-letter axis id, this axis is - overlaid on top of the corresponding same- - letter axis, with traces and axes visible for - both axes. If False, this axis does not overlay - any same-letter axes. In this case, for axes - with overlapping domains only the highest- - numbered axis will be visible. - position - Sets the position of this axis in the plotting - space (in normalized coordinates). Only has an - effect if `anchor` is set to "free". - range - Sets the range of this axis. If the axis `type` - is "log", then you must take the log of your - desired range (e.g. to set the range from 1 to - 100, set the range from 0 to 2). If the axis - `type` is "date", it should be date strings, - like date data, though Date objects and unix - milliseconds will be accepted and converted to - strings. If the axis `type` is "category", it - should be numbers, using the scale where each - category is assigned a serial number from zero - in the order it appears. Leaving either or both - elements `null` impacts the default - `autorange`. - rangebreaks - A tuple of :class:`plotly.graph_objects.layout. - xaxis.Rangebreak` instances or dicts with - compatible properties - rangebreakdefaults - When used in a template (as layout.template.lay - out.xaxis.rangebreakdefaults), sets the default - property values to use for elements of - layout.xaxis.rangebreaks - rangemode - If "normal", the range is computed in relation - to the extrema of the input data. If *tozero*`, - the range extends to 0, regardless of the input - data If "nonnegative", the range is non- - negative, regardless of the input data. Applies - only to linear axes. - rangeselector - :class:`plotly.graph_objects.layout.xaxis.Range - selector` instance or dict with compatible - properties - rangeslider - :class:`plotly.graph_objects.layout.xaxis.Range - slider` instance or dict with compatible - properties - scaleanchor - If set to another axis id (e.g. `x2`, `y`), the - range of this axis changes together with the - range of the corresponding axis such that the - scale of pixels per unit is in a constant - ratio. Both axes are still zoomable, but when - you zoom one, the other will zoom the same - amount, keeping a fixed midpoint. `constrain` - and `constraintoward` determine how we enforce - the constraint. You can chain these, ie `yaxis: - {scaleanchor: *x*}, xaxis2: {scaleanchor: *y*}` - but you can only link axes of the same `type`. - The linked axis can have the opposite letter - (to constrain the aspect ratio) or the same - letter (to match scales across subplots). Loops - (`yaxis: {scaleanchor: *x*}, xaxis: - {scaleanchor: *y*}` or longer) are redundant - and the last constraint encountered will be - ignored to avoid possible inconsistent - constraints via `scaleratio`. Note that setting - axes simultaneously in both a `scaleanchor` and - a `matches` constraint is currently forbidden. - Setting `false` allows to remove a default - constraint (occasionally, you may need to - prevent a default `scaleanchor` constraint from - being applied, eg. when having an image trace - `yaxis: {scaleanchor: "x"}` is set - automatically in order for pixels to be - rendered as squares, setting `yaxis: - {scaleanchor: false}` allows to remove the - constraint). - scaleratio - If this axis is linked to another by - `scaleanchor`, this determines the pixel to - unit scale ratio. For example, if this value is - 10, then every unit on this axis spans 10 times - the number of pixels as a unit on the linked - axis. Use this for example to create an - elevation profile where the vertical scale is - exaggerated a fixed amount with respect to the - horizontal. - separatethousands - If "true", even 4-digit integers are separated - showdividers - Determines whether or not a dividers are drawn - between the category levels of this axis. Only - has an effect on "multicategory" axes. - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - showline - Determines whether or not a line bounding this - axis is drawn. - showspikes - Determines whether or not spikes (aka - droplines) are drawn for this axis. Note: This - only takes affect when hovermode = closest - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - side - Determines whether a x (y) axis is positioned - at the "bottom" ("left") or "top" ("right") of - the plotting area. - spikecolor - Sets the spike color. If undefined, will use - the series color - spikedash - 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"). - spikemode - Determines the drawing mode for the spike line - If "toaxis", the line is drawn from the data - point to the axis the series is plotted on. If - "across", the line is drawn across the entire - plot area, and supercedes "toaxis". If - "marker", then a marker dot is drawn on the - axis the series is plotted on - spikesnap - Determines whether spikelines are stuck to the - cursor or to the closest datapoints. - spikethickness - Sets the width (in px) of the zero line. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the tick font. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.layout. - xaxis.Tickformatstop` instances or dicts with - compatible properties - tickformatstopdefaults - When used in a template (as layout.template.lay - out.xaxis.tickformatstopdefaults), sets the - default property values to use for elements of - layout.xaxis.tickformatstops - ticklabelindex - Only for axes with `type` "date" or "linear". - Instead of drawing the major tick label, draw - the label for the minor tick that is n - positions away from the major tick. E.g. to - always draw the label for the minor tick before - each major tick, choose `ticklabelindex` -1. - This is useful for date axes with - `ticklabelmode` "period" if you want to label - the period that ends with each major tick - instead of the period that begins there. - ticklabelindexsrc - Sets the source reference on Chart Studio Cloud - for `ticklabelindex`. - ticklabelmode - Determines where tick labels are drawn with - respect to their corresponding ticks and grid - lines. Only has an effect for axes of `type` - "date" When set to "period", tick labels are - drawn in the middle of the period between - ticks. - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. Otherwise on - "category" and "multicategory" axes the default - is "allow". In other cases the default is *hide - past div*. - ticklabelposition - Determines where tick labels are drawn with - respect to the axis Please note that top or - bottom has no effect on x axes or when - `ticklabelmode` is set to "period". Similarly - left or right has no effect on y axes or when - `ticklabelmode` is set to "period". Has no - effect on "multicategory" axes or when - `tickson` is set to "boundaries". When used on - axes linked by `matches` or `scaleanchor`, no - extra padding for inside labels would be added - by autorange, so that the scales could match. - ticklabelshift - Shifts the tick labels by the specified number - of pixels in parallel to the axis. Positive - values move the labels in the positive - direction of the axis. - ticklabelstandoff - Sets the standoff distance (in px) between the - axis tick labels and their default position. A - positive `ticklabelstandoff` moves the labels - farther away from the plot area if - `ticklabelposition` is "outside", and deeper - into the plot area if `ticklabelposition` is - "inside". A negative `ticklabelstandoff` works - in the opposite direction, moving outside ticks - towards the plot area and inside ticks towards - the outside. If the negative value is large - enough, inside ticks can even end up outside - and vice versa. - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). If "sync", the number of ticks will - sync with the overlayed axis set by - `overlaying` property. - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - tickson - Determines where ticks and grid lines are drawn - with respect to their corresponding tick - labels. Only has an effect for axes of `type` - "category" or "multicategory". When set to - "boundaries", ticks and grid lines are drawn - half a category to the left/bottom of labels. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.layout.xaxis.Title - ` instance or dict with compatible properties - type - Sets the axis type. By default, plotly attempts - to determined the axis type by looking into the - data of the traces that referenced the axis in - question. - uirevision - Controls persistence of user-driven changes in - axis `range`, `autorange`, and `title` if in - `editable: true` configuration. Defaults to - `layout.uirevision`. - visible - A single toggle to hide the axis while - preserving interaction like dragging. Default - is true when a cheater plot is present on the - axis, otherwise false - zeroline - Determines whether or not a line is drawn at - along the 0 value of this axis. If True, the - zero line is drawn on top of the grid lines. - zerolinecolor - Sets the line color of the zero line. - zerolinewidth - Sets the width (in px) of the zero line. - Returns ------- plotly.graph_objs.layout.XAxis """ - return self["xaxis"] + return self['xaxis'] @xaxis.setter def xaxis(self, val): - self["xaxis"] = val + self['xaxis'] = val # yaxis # ----- @@ -4988,598 +2254,15 @@ def yaxis(self): - A dict of string/value properties that will be passed to the YAxis constructor - Supported dict properties: - - anchor - If set to an opposite-letter axis id (e.g. - `x2`, `y`), this axis is bound to the - corresponding opposite-letter axis. If set to - "free", this axis' position is determined by - `position`. - automargin - Determines whether long tick labels - automatically grow the figure margins. - autorange - Determines whether or not the range of this - axis is computed in relation to the input data. - See `rangemode` for more info. If `range` is - provided and it has a value for both the lower - and upper bound, `autorange` is set to False. - Using "min" applies autorange only to set the - minimum. Using "max" applies autorange only to - set the maximum. Using *min reversed* applies - autorange only to set the minimum on a reversed - axis. Using *max reversed* applies autorange - only to set the maximum on a reversed axis. - Using "reversed" applies autorange on both ends - and reverses the axis direction. - autorangeoptions - :class:`plotly.graph_objects.layout.yaxis.Autor - angeoptions` instance or dict with compatible - properties - autoshift - Automatically reposition the axis to avoid - overlap with other axes with the same - `overlaying` value. This repositioning will - account for any `shift` amount applied to other - axes on the same side with `autoshift` is set - to true. Only has an effect if `anchor` is set - to "free". - autotickangles - When `tickangle` is set to "auto", it will be - set to the first angle in this array that is - large enough to prevent label overlap. - autotypenumbers - Using "strict" a numeric string in trace data - is not converted to a number. Using *convert - types* a numeric string in trace data may be - treated as a number during automatic axis - `type` detection. Defaults to - layout.autotypenumbers. - calendar - Sets the calendar system to use for `range` and - `tick0` if this is a date axis. This does not - set the calendar for interpreting data on this - axis, that's specified in the trace or via the - global `layout.calendar` - categoryarray - Sets the order in which categories on this axis - appear. Only has an effect if `categoryorder` - is set to "array". Used with `categoryorder`. - categoryarraysrc - Sets the source reference on Chart Studio Cloud - for `categoryarray`. - categoryorder - Specifies the ordering logic for the case of - categorical variables. By default, plotly uses - "trace", which specifies the order that is - present in the data supplied. Set - `categoryorder` to *category ascending* or - *category descending* if order should be - determined by the alphanumerical order of the - category names. Set `categoryorder` to "array" - to derive the ordering from the attribute - `categoryarray`. If a category is not found in - the `categoryarray` array, the sorting behavior - for that attribute will be identical to the - "trace" mode. The unspecified categories will - follow the categories in `categoryarray`. Set - `categoryorder` to *total ascending* or *total - descending* if order should be determined by - the numerical order of the values. Similarly, - the order can be determined by the min, max, - sum, mean, geometric mean or median of all the - values. - color - Sets default for all colors associated with - this axis all at once: line, font, tick, and - grid colors. Grid color is lightened by - blending this with the plot background - Individual pieces can override this. - constrain - If this axis needs to be compressed (either due - to its own `scaleanchor` and `scaleratio` or - those of the other axis), determines how that - happens: by increasing the "range", or by - decreasing the "domain". Default is "domain" - for axes containing image traces, "range" - otherwise. - constraintoward - If this axis needs to be compressed (either due - to its own `scaleanchor` and `scaleratio` or - those of the other axis), determines which - direction we push the originally specified plot - area. Options are "left", "center" (default), - and "right" for x axes, and "top", "middle" - (default), and "bottom" for y axes. - dividercolor - Sets the color of the dividers Only has an - effect on "multicategory" axes. - dividerwidth - Sets the width (in px) of the dividers Only has - an effect on "multicategory" axes. - domain - Sets the domain of this axis (in plot - fraction). - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - fixedrange - Determines whether or not this axis is zoom- - able. If true, then zoom is disabled. - gridcolor - Sets the color of the grid lines. - 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 width (in px) of the grid lines. - hoverformat - Sets the hover text formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - insiderange - Could be used to set the desired inside range - of this axis (excluding the labels) when - `ticklabelposition` of the anchored axis has - "inside". Not implemented for axes with `type` - "log". This would be ignored when `range` is - provided. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - layer - Sets the layer on which this axis is displayed. - If *above traces*, this axis is displayed above - all the subplot's traces If *below traces*, - this axis is displayed below all the subplot's - traces, but above the grid lines. Useful when - used together with scatter-like traces with - `cliponaxis` set to False to show markers - and/or text nodes above this axis. - linecolor - Sets the axis line color. - linewidth - Sets the width (in px) of the axis line. - matches - If set to another axis id (e.g. `x2`, `y`), the - range of this axis will match the range of the - corresponding axis in data-coordinates space. - Moreover, matching axes share auto-range - values, category lists and histogram auto-bins. - Note that setting axes simultaneously in both a - `scaleanchor` and a `matches` constraint is - currently forbidden. Moreover, note that - matching axes must have the same `type`. - maxallowed - Determines the maximum range of this axis. - minallowed - Determines the minimum range of this axis. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - minor - :class:`plotly.graph_objects.layout.yaxis.Minor - ` instance or dict with compatible properties - mirror - Determines if the axis lines or/and ticks are - mirrored to the opposite side of the plotting - area. If True, the axis lines are mirrored. If - "ticks", the axis lines and ticks are mirrored. - If False, mirroring is disable. If "all", axis - lines are mirrored on all shared-axes subplots. - If "allticks", axis lines and ticks are - mirrored on all shared-axes subplots. - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - overlaying - If set a same-letter axis id, this axis is - overlaid on top of the corresponding same- - letter axis, with traces and axes visible for - both axes. If False, this axis does not overlay - any same-letter axes. In this case, for axes - with overlapping domains only the highest- - numbered axis will be visible. - position - Sets the position of this axis in the plotting - space (in normalized coordinates). Only has an - effect if `anchor` is set to "free". - range - Sets the range of this axis. If the axis `type` - is "log", then you must take the log of your - desired range (e.g. to set the range from 1 to - 100, set the range from 0 to 2). If the axis - `type` is "date", it should be date strings, - like date data, though Date objects and unix - milliseconds will be accepted and converted to - strings. If the axis `type` is "category", it - should be numbers, using the scale where each - category is assigned a serial number from zero - in the order it appears. Leaving either or both - elements `null` impacts the default - `autorange`. - rangebreaks - A tuple of :class:`plotly.graph_objects.layout. - yaxis.Rangebreak` instances or dicts with - compatible properties - rangebreakdefaults - When used in a template (as layout.template.lay - out.yaxis.rangebreakdefaults), sets the default - property values to use for elements of - layout.yaxis.rangebreaks - rangemode - If "normal", the range is computed in relation - to the extrema of the input data. If *tozero*`, - the range extends to 0, regardless of the input - data If "nonnegative", the range is non- - negative, regardless of the input data. Applies - only to linear axes. - scaleanchor - If set to another axis id (e.g. `x2`, `y`), the - range of this axis changes together with the - range of the corresponding axis such that the - scale of pixels per unit is in a constant - ratio. Both axes are still zoomable, but when - you zoom one, the other will zoom the same - amount, keeping a fixed midpoint. `constrain` - and `constraintoward` determine how we enforce - the constraint. You can chain these, ie `yaxis: - {scaleanchor: *x*}, xaxis2: {scaleanchor: *y*}` - but you can only link axes of the same `type`. - The linked axis can have the opposite letter - (to constrain the aspect ratio) or the same - letter (to match scales across subplots). Loops - (`yaxis: {scaleanchor: *x*}, xaxis: - {scaleanchor: *y*}` or longer) are redundant - and the last constraint encountered will be - ignored to avoid possible inconsistent - constraints via `scaleratio`. Note that setting - axes simultaneously in both a `scaleanchor` and - a `matches` constraint is currently forbidden. - Setting `false` allows to remove a default - constraint (occasionally, you may need to - prevent a default `scaleanchor` constraint from - being applied, eg. when having an image trace - `yaxis: {scaleanchor: "x"}` is set - automatically in order for pixels to be - rendered as squares, setting `yaxis: - {scaleanchor: false}` allows to remove the - constraint). - scaleratio - If this axis is linked to another by - `scaleanchor`, this determines the pixel to - unit scale ratio. For example, if this value is - 10, then every unit on this axis spans 10 times - the number of pixels as a unit on the linked - axis. Use this for example to create an - elevation profile where the vertical scale is - exaggerated a fixed amount with respect to the - horizontal. - separatethousands - If "true", even 4-digit integers are separated - shift - Moves the axis a given number of pixels from - where it would have been otherwise. Accepts - both positive and negative values, which will - shift the axis either right or left, - respectively. If `autoshift` is set to true, - then this defaults to a padding of -3 if `side` - is set to "left". and defaults to +3 if `side` - is set to "right". Defaults to 0 if `autoshift` - is set to false. Only has an effect if `anchor` - is set to "free". - showdividers - Determines whether or not a dividers are drawn - between the category levels of this axis. Only - has an effect on "multicategory" axes. - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - showline - Determines whether or not a line bounding this - axis is drawn. - showspikes - Determines whether or not spikes (aka - droplines) are drawn for this axis. Note: This - only takes affect when hovermode = closest - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - side - Determines whether a x (y) axis is positioned - at the "bottom" ("left") or "top" ("right") of - the plotting area. - spikecolor - Sets the spike color. If undefined, will use - the series color - spikedash - 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"). - spikemode - Determines the drawing mode for the spike line - If "toaxis", the line is drawn from the data - point to the axis the series is plotted on. If - "across", the line is drawn across the entire - plot area, and supercedes "toaxis". If - "marker", then a marker dot is drawn on the - axis the series is plotted on - spikesnap - Determines whether spikelines are stuck to the - cursor or to the closest datapoints. - spikethickness - Sets the width (in px) of the zero line. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the tick font. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.layout. - yaxis.Tickformatstop` instances or dicts with - compatible properties - tickformatstopdefaults - When used in a template (as layout.template.lay - out.yaxis.tickformatstopdefaults), sets the - default property values to use for elements of - layout.yaxis.tickformatstops - ticklabelindex - Only for axes with `type` "date" or "linear". - Instead of drawing the major tick label, draw - the label for the minor tick that is n - positions away from the major tick. E.g. to - always draw the label for the minor tick before - each major tick, choose `ticklabelindex` -1. - This is useful for date axes with - `ticklabelmode` "period" if you want to label - the period that ends with each major tick - instead of the period that begins there. - ticklabelindexsrc - Sets the source reference on Chart Studio Cloud - for `ticklabelindex`. - ticklabelmode - Determines where tick labels are drawn with - respect to their corresponding ticks and grid - lines. Only has an effect for axes of `type` - "date" When set to "period", tick labels are - drawn in the middle of the period between - ticks. - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. Otherwise on - "category" and "multicategory" axes the default - is "allow". In other cases the default is *hide - past div*. - ticklabelposition - Determines where tick labels are drawn with - respect to the axis Please note that top or - bottom has no effect on x axes or when - `ticklabelmode` is set to "period". Similarly - left or right has no effect on y axes or when - `ticklabelmode` is set to "period". Has no - effect on "multicategory" axes or when - `tickson` is set to "boundaries". When used on - axes linked by `matches` or `scaleanchor`, no - extra padding for inside labels would be added - by autorange, so that the scales could match. - ticklabelshift - Shifts the tick labels by the specified number - of pixels in parallel to the axis. Positive - values move the labels in the positive - direction of the axis. - ticklabelstandoff - Sets the standoff distance (in px) between the - axis tick labels and their default position. A - positive `ticklabelstandoff` moves the labels - farther away from the plot area if - `ticklabelposition` is "outside", and deeper - into the plot area if `ticklabelposition` is - "inside". A negative `ticklabelstandoff` works - in the opposite direction, moving outside ticks - towards the plot area and inside ticks towards - the outside. If the negative value is large - enough, inside ticks can even end up outside - and vice versa. - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). If "sync", the number of ticks will - sync with the overlayed axis set by - `overlaying` property. - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - tickson - Determines where ticks and grid lines are drawn - with respect to their corresponding tick - labels. Only has an effect for axes of `type` - "category" or "multicategory". When set to - "boundaries", ticks and grid lines are drawn - half a category to the left/bottom of labels. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.layout.yaxis.Title - ` instance or dict with compatible properties - type - Sets the axis type. By default, plotly attempts - to determined the axis type by looking into the - data of the traces that referenced the axis in - question. - uirevision - Controls persistence of user-driven changes in - axis `range`, `autorange`, and `title` if in - `editable: true` configuration. Defaults to - `layout.uirevision`. - visible - A single toggle to hide the axis while - preserving interaction like dragging. Default - is true when a cheater plot is present on the - axis, otherwise false - zeroline - Determines whether or not a line is drawn at - along the 0 value of this axis. If True, the - zero line is drawn on top of the grid lines. - zerolinecolor - Sets the line color of the zero line. - zerolinewidth - Sets the width (in px) of the zero line. - Returns ------- plotly.graph_objs.layout.YAxis """ - return self["yaxis"] + return self['yaxis'] @yaxis.setter def yaxis(self, val): - self["yaxis"] = val + self['yaxis'] = val # Self properties description # --------------------------- @@ -6077,107 +2760,105 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.layout.YAxis` instance or dict with compatible properties """ - - def __init__( - self, - arg=None, - activeselection=None, - activeshape=None, - annotations=None, - annotationdefaults=None, - autosize=None, - autotypenumbers=None, - barcornerradius=None, - bargap=None, - bargroupgap=None, - barmode=None, - barnorm=None, - boxgap=None, - boxgroupgap=None, - boxmode=None, - calendar=None, - clickmode=None, - coloraxis=None, - colorscale=None, - colorway=None, - computed=None, - datarevision=None, - dragmode=None, - editrevision=None, - extendfunnelareacolors=None, - extendiciclecolors=None, - extendpiecolors=None, - extendsunburstcolors=None, - extendtreemapcolors=None, - font=None, - funnelareacolorway=None, - funnelgap=None, - funnelgroupgap=None, - funnelmode=None, - geo=None, - grid=None, - height=None, - hiddenlabels=None, - hiddenlabelssrc=None, - hidesources=None, - hoverdistance=None, - hoverlabel=None, - hovermode=None, - hoversubplots=None, - iciclecolorway=None, - images=None, - imagedefaults=None, - legend=None, - map=None, - mapbox=None, - margin=None, - meta=None, - metasrc=None, - minreducedheight=None, - minreducedwidth=None, - modebar=None, - newselection=None, - newshape=None, - paper_bgcolor=None, - piecolorway=None, - plot_bgcolor=None, - polar=None, - scattergap=None, - scattermode=None, - scene=None, - selectdirection=None, - selectionrevision=None, - selections=None, - selectiondefaults=None, - separators=None, - shapes=None, - shapedefaults=None, - showlegend=None, - sliders=None, - sliderdefaults=None, - smith=None, - spikedistance=None, - sunburstcolorway=None, - template=None, - ternary=None, - title=None, - transition=None, - treemapcolorway=None, - uirevision=None, - uniformtext=None, - updatemenus=None, - updatemenudefaults=None, - violingap=None, - violingroupgap=None, - violinmode=None, - waterfallgap=None, - waterfallgroupgap=None, - waterfallmode=None, - width=None, - xaxis=None, - yaxis=None, - **kwargs, - ): + def __init__(self, + arg=None, + activeselection=None, + activeshape=None, + annotations=None, + annotationdefaults=None, + autosize=None, + autotypenumbers=None, + barcornerradius=None, + bargap=None, + bargroupgap=None, + barmode=None, + barnorm=None, + boxgap=None, + boxgroupgap=None, + boxmode=None, + calendar=None, + clickmode=None, + coloraxis=None, + colorscale=None, + colorway=None, + computed=None, + datarevision=None, + dragmode=None, + editrevision=None, + extendfunnelareacolors=None, + extendiciclecolors=None, + extendpiecolors=None, + extendsunburstcolors=None, + extendtreemapcolors=None, + font=None, + funnelareacolorway=None, + funnelgap=None, + funnelgroupgap=None, + funnelmode=None, + geo=None, + grid=None, + height=None, + hiddenlabels=None, + hiddenlabelssrc=None, + hidesources=None, + hoverdistance=None, + hoverlabel=None, + hovermode=None, + hoversubplots=None, + iciclecolorway=None, + images=None, + imagedefaults=None, + legend=None, + map=None, + mapbox=None, + margin=None, + meta=None, + metasrc=None, + minreducedheight=None, + minreducedwidth=None, + modebar=None, + newselection=None, + newshape=None, + paper_bgcolor=None, + piecolorway=None, + plot_bgcolor=None, + polar=None, + scattergap=None, + scattermode=None, + scene=None, + selectdirection=None, + selectionrevision=None, + selections=None, + selectiondefaults=None, + separators=None, + shapes=None, + shapedefaults=None, + showlegend=None, + sliders=None, + sliderdefaults=None, + smith=None, + spikedistance=None, + sunburstcolorway=None, + template=None, + ternary=None, + title=None, + transition=None, + treemapcolorway=None, + uirevision=None, + uniformtext=None, + updatemenus=None, + updatemenudefaults=None, + violingap=None, + violingroupgap=None, + violinmode=None, + waterfallgap=None, + waterfallgroupgap=None, + waterfallmode=None, + width=None, + xaxis=None, + yaxis=None, + **kwargs + ): """ Construct a new Layout object @@ -6681,111 +3362,15 @@ def __init__( ------- Layout """ - super(Layout, self).__init__("layout") + super(Layout, self).__init__('layout') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Override _valid_props for instance so that instance can mutate set # to support subplot properties (e.g. xaxis2) - self._valid_props = { - "activeselection", - "activeshape", - "annotationdefaults", - "annotations", - "autosize", - "autotypenumbers", - "barcornerradius", - "bargap", - "bargroupgap", - "barmode", - "barnorm", - "boxgap", - "boxgroupgap", - "boxmode", - "calendar", - "clickmode", - "coloraxis", - "colorscale", - "colorway", - "computed", - "datarevision", - "dragmode", - "editrevision", - "extendfunnelareacolors", - "extendiciclecolors", - "extendpiecolors", - "extendsunburstcolors", - "extendtreemapcolors", - "font", - "funnelareacolorway", - "funnelgap", - "funnelgroupgap", - "funnelmode", - "geo", - "grid", - "height", - "hiddenlabels", - "hiddenlabelssrc", - "hidesources", - "hoverdistance", - "hoverlabel", - "hovermode", - "hoversubplots", - "iciclecolorway", - "imagedefaults", - "images", - "legend", - "map", - "mapbox", - "margin", - "meta", - "metasrc", - "minreducedheight", - "minreducedwidth", - "modebar", - "newselection", - "newshape", - "paper_bgcolor", - "piecolorway", - "plot_bgcolor", - "polar", - "scattergap", - "scattermode", - "scene", - "selectdirection", - "selectiondefaults", - "selectionrevision", - "selections", - "separators", - "shapedefaults", - "shapes", - "showlegend", - "sliderdefaults", - "sliders", - "smith", - "spikedistance", - "sunburstcolorway", - "template", - "ternary", - "title", - "transition", - "treemapcolorway", - "uirevision", - "uniformtext", - "updatemenudefaults", - "updatemenus", - "violingap", - "violingroupgap", - "violinmode", - "waterfallgap", - "waterfallgroupgap", - "waterfallmode", - "width", - "xaxis", - "yaxis", - } + self._valid_props = {"activeselection", "activeshape", "annotationdefaults", "annotations", "autosize", "autotypenumbers", "barcornerradius", "bargap", "bargroupgap", "barmode", "barnorm", "boxgap", "boxgroupgap", "boxmode", "calendar", "clickmode", "coloraxis", "colorscale", "colorway", "computed", "datarevision", "dragmode", "editrevision", "extendfunnelareacolors", "extendiciclecolors", "extendpiecolors", "extendsunburstcolors", "extendtreemapcolors", "font", "funnelareacolorway", "funnelgap", "funnelgroupgap", "funnelmode", "geo", "grid", "height", "hiddenlabels", "hiddenlabelssrc", "hidesources", "hoverdistance", "hoverlabel", "hovermode", "hoversubplots", "iciclecolorway", "imagedefaults", "images", "legend", "map", "mapbox", "margin", "meta", "metasrc", "minreducedheight", "minreducedwidth", "modebar", "newselection", "newshape", "paper_bgcolor", "piecolorway", "plot_bgcolor", "polar", "scattergap", "scattermode", "scene", "selectdirection", "selectiondefaults", "selectionrevision", "selections", "separators", "shapedefaults", "shapes", "showlegend", "sliderdefaults", "sliders", "smith", "spikedistance", "sunburstcolorway", "template", "ternary", "title", "transition", "treemapcolorway", "uirevision", "uniformtext", "updatemenudefaults", "updatemenus", "violingap", "violingroupgap", "violinmode", "waterfallgap", "waterfallgroupgap", "waterfallmode", "width", "xaxis", "yaxis"} # Validate arg # ------------ @@ -6796,400 +3381,114 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Layout constructor must be a dict or -an instance of :class:`plotly.graph_objs.Layout`""" - ) +an instance of :class:`plotly.graph_objs.Layout`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("activeselection", None) - _v = activeselection if activeselection is not None else _v - if _v is not None: - self["activeselection"] = _v - _v = arg.pop("activeshape", None) - _v = activeshape if activeshape is not None else _v - if _v is not None: - self["activeshape"] = _v - _v = arg.pop("annotations", None) - _v = annotations if annotations is not None else _v - if _v is not None: - self["annotations"] = _v - _v = arg.pop("annotationdefaults", None) - _v = annotationdefaults if annotationdefaults is not None else _v - if _v is not None: - self["annotationdefaults"] = _v - _v = arg.pop("autosize", None) - _v = autosize if autosize is not None else _v - if _v is not None: - self["autosize"] = _v - _v = arg.pop("autotypenumbers", None) - _v = autotypenumbers if autotypenumbers is not None else _v - if _v is not None: - self["autotypenumbers"] = _v - _v = arg.pop("barcornerradius", None) - _v = barcornerradius if barcornerradius is not None else _v - if _v is not None: - self["barcornerradius"] = _v - _v = arg.pop("bargap", None) - _v = bargap if bargap is not None else _v - if _v is not None: - self["bargap"] = _v - _v = arg.pop("bargroupgap", None) - _v = bargroupgap if bargroupgap is not None else _v - if _v is not None: - self["bargroupgap"] = _v - _v = arg.pop("barmode", None) - _v = barmode if barmode is not None else _v - if _v is not None: - self["barmode"] = _v - _v = arg.pop("barnorm", None) - _v = barnorm if barnorm is not None else _v - if _v is not None: - self["barnorm"] = _v - _v = arg.pop("boxgap", None) - _v = boxgap if boxgap is not None else _v - if _v is not None: - self["boxgap"] = _v - _v = arg.pop("boxgroupgap", None) - _v = boxgroupgap if boxgroupgap is not None else _v - if _v is not None: - self["boxgroupgap"] = _v - _v = arg.pop("boxmode", None) - _v = boxmode if boxmode is not None else _v - if _v is not None: - self["boxmode"] = _v - _v = arg.pop("calendar", None) - _v = calendar if calendar is not None else _v - if _v is not None: - self["calendar"] = _v - _v = arg.pop("clickmode", None) - _v = clickmode if clickmode is not None else _v - if _v is not None: - self["clickmode"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorway", None) - _v = colorway if colorway is not None else _v - if _v is not None: - self["colorway"] = _v - _v = arg.pop("computed", None) - _v = computed if computed is not None else _v - if _v is not None: - self["computed"] = _v - _v = arg.pop("datarevision", None) - _v = datarevision if datarevision is not None else _v - if _v is not None: - self["datarevision"] = _v - _v = arg.pop("dragmode", None) - _v = dragmode if dragmode is not None else _v - if _v is not None: - self["dragmode"] = _v - _v = arg.pop("editrevision", None) - _v = editrevision if editrevision is not None else _v - if _v is not None: - self["editrevision"] = _v - _v = arg.pop("extendfunnelareacolors", None) - _v = extendfunnelareacolors if extendfunnelareacolors is not None else _v - if _v is not None: - self["extendfunnelareacolors"] = _v - _v = arg.pop("extendiciclecolors", None) - _v = extendiciclecolors if extendiciclecolors is not None else _v - if _v is not None: - self["extendiciclecolors"] = _v - _v = arg.pop("extendpiecolors", None) - _v = extendpiecolors if extendpiecolors is not None else _v - if _v is not None: - self["extendpiecolors"] = _v - _v = arg.pop("extendsunburstcolors", None) - _v = extendsunburstcolors if extendsunburstcolors is not None else _v - if _v is not None: - self["extendsunburstcolors"] = _v - _v = arg.pop("extendtreemapcolors", None) - _v = extendtreemapcolors if extendtreemapcolors is not None else _v - if _v is not None: - self["extendtreemapcolors"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("funnelareacolorway", None) - _v = funnelareacolorway if funnelareacolorway is not None else _v - if _v is not None: - self["funnelareacolorway"] = _v - _v = arg.pop("funnelgap", None) - _v = funnelgap if funnelgap is not None else _v - if _v is not None: - self["funnelgap"] = _v - _v = arg.pop("funnelgroupgap", None) - _v = funnelgroupgap if funnelgroupgap is not None else _v - if _v is not None: - self["funnelgroupgap"] = _v - _v = arg.pop("funnelmode", None) - _v = funnelmode if funnelmode is not None else _v - if _v is not None: - self["funnelmode"] = _v - _v = arg.pop("geo", None) - _v = geo if geo is not None else _v - if _v is not None: - self["geo"] = _v - _v = arg.pop("grid", None) - _v = grid if grid is not None else _v - if _v is not None: - self["grid"] = _v - _v = arg.pop("height", None) - _v = height if height is not None else _v - if _v is not None: - self["height"] = _v - _v = arg.pop("hiddenlabels", None) - _v = hiddenlabels if hiddenlabels is not None else _v - if _v is not None: - self["hiddenlabels"] = _v - _v = arg.pop("hiddenlabelssrc", None) - _v = hiddenlabelssrc if hiddenlabelssrc is not None else _v - if _v is not None: - self["hiddenlabelssrc"] = _v - _v = arg.pop("hidesources", None) - _v = hidesources if hidesources is not None else _v - if _v is not None: - self["hidesources"] = _v - _v = arg.pop("hoverdistance", None) - _v = hoverdistance if hoverdistance is not None else _v - if _v is not None: - self["hoverdistance"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovermode", None) - _v = hovermode if hovermode is not None else _v - if _v is not None: - self["hovermode"] = _v - _v = arg.pop("hoversubplots", None) - _v = hoversubplots if hoversubplots is not None else _v - if _v is not None: - self["hoversubplots"] = _v - _v = arg.pop("iciclecolorway", None) - _v = iciclecolorway if iciclecolorway is not None else _v - if _v is not None: - self["iciclecolorway"] = _v - _v = arg.pop("images", None) - _v = images if images is not None else _v - if _v is not None: - self["images"] = _v - _v = arg.pop("imagedefaults", None) - _v = imagedefaults if imagedefaults is not None else _v - if _v is not None: - self["imagedefaults"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("map", None) - _v = map if map is not None else _v - if _v is not None: - self["map"] = _v - _v = arg.pop("mapbox", None) - _v = mapbox if mapbox is not None else _v - if _v is not None: - self["mapbox"] = _v - _v = arg.pop("margin", None) - _v = margin if margin is not None else _v - if _v is not None: - self["margin"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("minreducedheight", None) - _v = minreducedheight if minreducedheight is not None else _v - if _v is not None: - self["minreducedheight"] = _v - _v = arg.pop("minreducedwidth", None) - _v = minreducedwidth if minreducedwidth is not None else _v - if _v is not None: - self["minreducedwidth"] = _v - _v = arg.pop("modebar", None) - _v = modebar if modebar is not None else _v - if _v is not None: - self["modebar"] = _v - _v = arg.pop("newselection", None) - _v = newselection if newselection is not None else _v - if _v is not None: - self["newselection"] = _v - _v = arg.pop("newshape", None) - _v = newshape if newshape is not None else _v - if _v is not None: - self["newshape"] = _v - _v = arg.pop("paper_bgcolor", None) - _v = paper_bgcolor if paper_bgcolor is not None else _v - if _v is not None: - self["paper_bgcolor"] = _v - _v = arg.pop("piecolorway", None) - _v = piecolorway if piecolorway is not None else _v - if _v is not None: - self["piecolorway"] = _v - _v = arg.pop("plot_bgcolor", None) - _v = plot_bgcolor if plot_bgcolor is not None else _v - if _v is not None: - self["plot_bgcolor"] = _v - _v = arg.pop("polar", None) - _v = polar if polar is not None else _v - if _v is not None: - self["polar"] = _v - _v = arg.pop("scattergap", None) - _v = scattergap if scattergap is not None else _v - if _v is not None: - self["scattergap"] = _v - _v = arg.pop("scattermode", None) - _v = scattermode if scattermode is not None else _v - if _v is not None: - self["scattermode"] = _v - _v = arg.pop("scene", None) - _v = scene if scene is not None else _v - if _v is not None: - self["scene"] = _v - _v = arg.pop("selectdirection", None) - _v = selectdirection if selectdirection is not None else _v - if _v is not None: - self["selectdirection"] = _v - _v = arg.pop("selectionrevision", None) - _v = selectionrevision if selectionrevision is not None else _v - if _v is not None: - self["selectionrevision"] = _v - _v = arg.pop("selections", None) - _v = selections if selections is not None else _v - if _v is not None: - self["selections"] = _v - _v = arg.pop("selectiondefaults", None) - _v = selectiondefaults if selectiondefaults is not None else _v - if _v is not None: - self["selectiondefaults"] = _v - _v = arg.pop("separators", None) - _v = separators if separators is not None else _v - if _v is not None: - self["separators"] = _v - _v = arg.pop("shapes", None) - _v = shapes if shapes is not None else _v - if _v is not None: - self["shapes"] = _v - _v = arg.pop("shapedefaults", None) - _v = shapedefaults if shapedefaults is not None else _v - if _v is not None: - self["shapedefaults"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("sliders", None) - _v = sliders if sliders is not None else _v - if _v is not None: - self["sliders"] = _v - _v = arg.pop("sliderdefaults", None) - _v = sliderdefaults if sliderdefaults is not None else _v - if _v is not None: - self["sliderdefaults"] = _v - _v = arg.pop("smith", None) - _v = smith if smith is not None else _v - if _v is not None: - self["smith"] = _v - _v = arg.pop("spikedistance", None) - _v = spikedistance if spikedistance is not None else _v - if _v is not None: - self["spikedistance"] = _v - _v = arg.pop("sunburstcolorway", None) - _v = sunburstcolorway if sunburstcolorway is not None else _v - if _v is not None: - self["sunburstcolorway"] = _v - _v = arg.pop("template", None) - _v = template if template is not None else _v - if _v is not None: - self["template"] = _v - _v = arg.pop("ternary", None) - _v = ternary if ternary is not None else _v - if _v is not None: - self["ternary"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("transition", None) - _v = transition if transition is not None else _v - if _v is not None: - self["transition"] = _v - _v = arg.pop("treemapcolorway", None) - _v = treemapcolorway if treemapcolorway is not None else _v - if _v is not None: - self["treemapcolorway"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("uniformtext", None) - _v = uniformtext if uniformtext is not None else _v - if _v is not None: - self["uniformtext"] = _v - _v = arg.pop("updatemenus", None) - _v = updatemenus if updatemenus is not None else _v - if _v is not None: - self["updatemenus"] = _v - _v = arg.pop("updatemenudefaults", None) - _v = updatemenudefaults if updatemenudefaults is not None else _v - if _v is not None: - self["updatemenudefaults"] = _v - _v = arg.pop("violingap", None) - _v = violingap if violingap is not None else _v - if _v is not None: - self["violingap"] = _v - _v = arg.pop("violingroupgap", None) - _v = violingroupgap if violingroupgap is not None else _v - if _v is not None: - self["violingroupgap"] = _v - _v = arg.pop("violinmode", None) - _v = violinmode if violinmode is not None else _v - if _v is not None: - self["violinmode"] = _v - _v = arg.pop("waterfallgap", None) - _v = waterfallgap if waterfallgap is not None else _v - if _v is not None: - self["waterfallgap"] = _v - _v = arg.pop("waterfallgroupgap", None) - _v = waterfallgroupgap if waterfallgroupgap is not None else _v - if _v is not None: - self["waterfallgroupgap"] = _v - _v = arg.pop("waterfallmode", None) - _v = waterfallmode if waterfallmode is not None else _v - if _v is not None: - self["waterfallmode"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("xaxis", None) - _v = xaxis if xaxis is not None else _v - if _v is not None: - self["xaxis"] = _v - _v = arg.pop("yaxis", None) - _v = yaxis if yaxis is not None else _v - if _v is not None: - self["yaxis"] = _v + self._init_provided('activeselection', arg, activeselection) + self._init_provided('activeshape', arg, activeshape) + self._init_provided('annotations', arg, annotations) + self._init_provided('annotationdefaults', arg, annotationdefaults) + self._init_provided('autosize', arg, autosize) + self._init_provided('autotypenumbers', arg, autotypenumbers) + self._init_provided('barcornerradius', arg, barcornerradius) + self._init_provided('bargap', arg, bargap) + self._init_provided('bargroupgap', arg, bargroupgap) + self._init_provided('barmode', arg, barmode) + self._init_provided('barnorm', arg, barnorm) + self._init_provided('boxgap', arg, boxgap) + self._init_provided('boxgroupgap', arg, boxgroupgap) + self._init_provided('boxmode', arg, boxmode) + self._init_provided('calendar', arg, calendar) + self._init_provided('clickmode', arg, clickmode) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorway', arg, colorway) + self._init_provided('computed', arg, computed) + self._init_provided('datarevision', arg, datarevision) + self._init_provided('dragmode', arg, dragmode) + self._init_provided('editrevision', arg, editrevision) + self._init_provided('extendfunnelareacolors', arg, extendfunnelareacolors) + self._init_provided('extendiciclecolors', arg, extendiciclecolors) + self._init_provided('extendpiecolors', arg, extendpiecolors) + self._init_provided('extendsunburstcolors', arg, extendsunburstcolors) + self._init_provided('extendtreemapcolors', arg, extendtreemapcolors) + self._init_provided('font', arg, font) + self._init_provided('funnelareacolorway', arg, funnelareacolorway) + self._init_provided('funnelgap', arg, funnelgap) + self._init_provided('funnelgroupgap', arg, funnelgroupgap) + self._init_provided('funnelmode', arg, funnelmode) + self._init_provided('geo', arg, geo) + self._init_provided('grid', arg, grid) + self._init_provided('height', arg, height) + self._init_provided('hiddenlabels', arg, hiddenlabels) + self._init_provided('hiddenlabelssrc', arg, hiddenlabelssrc) + self._init_provided('hidesources', arg, hidesources) + self._init_provided('hoverdistance', arg, hoverdistance) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovermode', arg, hovermode) + self._init_provided('hoversubplots', arg, hoversubplots) + self._init_provided('iciclecolorway', arg, iciclecolorway) + self._init_provided('images', arg, images) + self._init_provided('imagedefaults', arg, imagedefaults) + self._init_provided('legend', arg, legend) + self._init_provided('map', arg, map) + self._init_provided('mapbox', arg, mapbox) + self._init_provided('margin', arg, margin) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('minreducedheight', arg, minreducedheight) + self._init_provided('minreducedwidth', arg, minreducedwidth) + self._init_provided('modebar', arg, modebar) + self._init_provided('newselection', arg, newselection) + self._init_provided('newshape', arg, newshape) + self._init_provided('paper_bgcolor', arg, paper_bgcolor) + self._init_provided('piecolorway', arg, piecolorway) + self._init_provided('plot_bgcolor', arg, plot_bgcolor) + self._init_provided('polar', arg, polar) + self._init_provided('scattergap', arg, scattergap) + self._init_provided('scattermode', arg, scattermode) + self._init_provided('scene', arg, scene) + self._init_provided('selectdirection', arg, selectdirection) + self._init_provided('selectionrevision', arg, selectionrevision) + self._init_provided('selections', arg, selections) + self._init_provided('selectiondefaults', arg, selectiondefaults) + self._init_provided('separators', arg, separators) + self._init_provided('shapes', arg, shapes) + self._init_provided('shapedefaults', arg, shapedefaults) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('sliders', arg, sliders) + self._init_provided('sliderdefaults', arg, sliderdefaults) + self._init_provided('smith', arg, smith) + self._init_provided('spikedistance', arg, spikedistance) + self._init_provided('sunburstcolorway', arg, sunburstcolorway) + self._init_provided('template', arg, template) + self._init_provided('ternary', arg, ternary) + self._init_provided('title', arg, title) + self._init_provided('transition', arg, transition) + self._init_provided('treemapcolorway', arg, treemapcolorway) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('uniformtext', arg, uniformtext) + self._init_provided('updatemenus', arg, updatemenus) + self._init_provided('updatemenudefaults', arg, updatemenudefaults) + self._init_provided('violingap', arg, violingap) + self._init_provided('violingroupgap', arg, violingroupgap) + self._init_provided('violinmode', arg, violinmode) + self._init_provided('waterfallgap', arg, waterfallgap) + self._init_provided('waterfallgroupgap', arg, waterfallgroupgap) + self._init_provided('waterfallmode', arg, waterfallmode) + self._init_provided('width', arg, width) + self._init_provided('xaxis', arg, xaxis) + self._init_provided('yaxis', arg, yaxis) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_mesh3d.py b/packages/python/plotly/plotly/graph_objs/_mesh3d.py index a23756902a8..9b04f8a3383 100644 --- a/packages/python/plotly/plotly/graph_objs/_mesh3d.py +++ b/packages/python/plotly/plotly/graph_objs/_mesh3d.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,81 +8,9 @@ class Mesh3d(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "mesh3d" - _valid_props = { - "alphahull", - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorbar", - "colorscale", - "contour", - "customdata", - "customdatasrc", - "delaunayaxis", - "facecolor", - "facecolorsrc", - "flatshading", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "i", - "ids", - "idssrc", - "intensity", - "intensitymode", - "intensitysrc", - "isrc", - "j", - "jsrc", - "k", - "ksrc", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "lighting", - "lightposition", - "meta", - "metasrc", - "name", - "opacity", - "reversescale", - "scene", - "showlegend", - "showscale", - "stream", - "text", - "textsrc", - "type", - "uid", - "uirevision", - "vertexcolor", - "vertexcolorsrc", - "visible", - "x", - "xcalendar", - "xhoverformat", - "xsrc", - "y", - "ycalendar", - "yhoverformat", - "ysrc", - "z", - "zcalendar", - "zhoverformat", - "zsrc", - } + _parent_path_str = '' + _path_str = 'mesh3d' + _valid_props = {"alphahull", "autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorbar", "colorscale", "contour", "customdata", "customdatasrc", "delaunayaxis", "facecolor", "facecolorsrc", "flatshading", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "i", "ids", "idssrc", "intensity", "intensitymode", "intensitysrc", "isrc", "j", "jsrc", "k", "ksrc", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "lighting", "lightposition", "meta", "metasrc", "name", "opacity", "reversescale", "scene", "showlegend", "showscale", "stream", "text", "textsrc", "type", "uid", "uirevision", "vertexcolor", "vertexcolorsrc", "visible", "x", "xcalendar", "xhoverformat", "xsrc", "y", "ycalendar", "yhoverformat", "ysrc", "z", "zcalendar", "zhoverformat", "zsrc"} # alphahull # --------- @@ -111,11 +41,11 @@ def alphahull(self): ------- int|float """ - return self["alphahull"] + return self['alphahull'] @alphahull.setter def alphahull(self, val): - self["alphahull"] = val + self['alphahull'] = val # autocolorscale # -------------- @@ -136,11 +66,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -159,11 +89,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -181,11 +111,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -204,11 +134,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -226,11 +156,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -244,42 +174,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to mesh3d.colorscale @@ -287,11 +182,11 @@ def color(self): ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -314,11 +209,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -331,281 +226,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.mesh3d. - colorbar.Tickformatstop` instances or dicts - with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.mesh3d.colorbar.tickformatstopdefaults), sets - the default property values to use for elements - of mesh3d.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.mesh3d.colorbar.Ti - tle` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.mesh3d.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -654,11 +283,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # contour # ------- @@ -671,25 +300,15 @@ def contour(self): - A dict of string/value properties that will be passed to the Contour constructor - Supported dict properties: - - color - Sets the color of the contour lines. - show - Sets whether or not dynamic contours are shown - on hover - width - Sets the width of the contour lines. - Returns ------- plotly.graph_objs.mesh3d.Contour """ - return self["contour"] + return self['contour'] @contour.setter def contour(self, val): - self["contour"] = val + self['contour'] = val # customdata # ---------- @@ -708,11 +327,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -729,11 +348,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # delaunayaxis # ------------ @@ -753,11 +372,11 @@ def delaunayaxis(self): ------- Any """ - return self["delaunayaxis"] + return self['delaunayaxis'] @delaunayaxis.setter def delaunayaxis(self, val): - self["delaunayaxis"] = val + self['delaunayaxis'] = val # facecolor # --------- @@ -774,11 +393,11 @@ def facecolor(self): ------- numpy.ndarray """ - return self["facecolor"] + return self['facecolor'] @facecolor.setter def facecolor(self, val): - self["facecolor"] = val + self['facecolor'] = val # facecolorsrc # ------------ @@ -795,11 +414,11 @@ def facecolorsrc(self): ------- str """ - return self["facecolorsrc"] + return self['facecolorsrc'] @facecolorsrc.setter def facecolorsrc(self, val): - self["facecolorsrc"] = val + self['facecolorsrc'] = val # flatshading # ----------- @@ -817,11 +436,11 @@ def flatshading(self): ------- bool """ - return self["flatshading"] + return self['flatshading'] @flatshading.setter def flatshading(self, val): - self["flatshading"] = val + self['flatshading'] = val # hoverinfo # --------- @@ -843,11 +462,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -864,11 +483,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -881,53 +500,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.mesh3d.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -967,11 +548,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -988,11 +569,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -1010,11 +591,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -1031,11 +612,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # i # - @@ -1057,11 +638,11 @@ def i(self): ------- numpy.ndarray """ - return self["i"] + return self['i'] @i.setter def i(self, val): - self["i"] = val + self['i'] = val # ids # --- @@ -1079,11 +660,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -1099,11 +680,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # intensity # --------- @@ -1120,11 +701,11 @@ def intensity(self): ------- numpy.ndarray """ - return self["intensity"] + return self['intensity'] @intensity.setter def intensity(self, val): - self["intensity"] = val + self['intensity'] = val # intensitymode # ------------- @@ -1141,11 +722,11 @@ def intensitymode(self): ------- Any """ - return self["intensitymode"] + return self['intensitymode'] @intensitymode.setter def intensitymode(self, val): - self["intensitymode"] = val + self['intensitymode'] = val # intensitysrc # ------------ @@ -1162,11 +743,11 @@ def intensitysrc(self): ------- str """ - return self["intensitysrc"] + return self['intensitysrc'] @intensitysrc.setter def intensitysrc(self, val): - self["intensitysrc"] = val + self['intensitysrc'] = val # isrc # ---- @@ -1182,11 +763,11 @@ def isrc(self): ------- str """ - return self["isrc"] + return self['isrc'] @isrc.setter def isrc(self, val): - self["isrc"] = val + self['isrc'] = val # j # - @@ -1208,11 +789,11 @@ def j(self): ------- numpy.ndarray """ - return self["j"] + return self['j'] @j.setter def j(self, val): - self["j"] = val + self['j'] = val # jsrc # ---- @@ -1228,11 +809,11 @@ def jsrc(self): ------- str """ - return self["jsrc"] + return self['jsrc'] @jsrc.setter def jsrc(self, val): - self["jsrc"] = val + self['jsrc'] = val # k # - @@ -1254,11 +835,11 @@ def k(self): ------- numpy.ndarray """ - return self["k"] + return self['k'] @k.setter def k(self, val): - self["k"] = val + self['k'] = val # ksrc # ---- @@ -1274,11 +855,11 @@ def ksrc(self): ------- str """ - return self["ksrc"] + return self['ksrc'] @ksrc.setter def ksrc(self, val): - self["ksrc"] = val + self['ksrc'] = val # legend # ------ @@ -1299,11 +880,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -1322,11 +903,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -1339,22 +920,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.mesh3d.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -1377,11 +951,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -1398,11 +972,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # lighting # -------- @@ -1415,42 +989,15 @@ def lighting(self): - A dict of string/value properties that will be passed to the Lighting constructor - Supported dict properties: - - ambient - Ambient light increases overall color - visibility but can wash out the image. - diffuse - Represents the extent that incident rays are - reflected in a range of angles. - facenormalsepsilon - Epsilon for face normals calculation avoids - math issues arising from degenerate geometry. - fresnel - Represents the reflectance as a dependency of - the viewing angle; e.g. paper is reflective - when viewing it from the edge of the paper - (almost 90 degrees), causing shine. - roughness - Alters specular reflection; the rougher the - surface, the wider and less contrasty the - shine. - specular - Represents the level that incident rays are - reflected in a single direction, causing shine. - vertexnormalsepsilon - Epsilon for vertex normals calculation avoids - math issues arising from degenerate geometry. - Returns ------- plotly.graph_objs.mesh3d.Lighting """ - return self["lighting"] + return self['lighting'] @lighting.setter def lighting(self, val): - self["lighting"] = val + self['lighting'] = val # lightposition # ------------- @@ -1463,27 +1010,15 @@ def lightposition(self): - A dict of string/value properties that will be passed to the Lightposition constructor - Supported dict properties: - - x - Numeric vector, representing the X coordinate - for each vertex. - y - Numeric vector, representing the Y coordinate - for each vertex. - z - Numeric vector, representing the Z coordinate - for each vertex. - Returns ------- plotly.graph_objs.mesh3d.Lightposition """ - return self["lightposition"] + return self['lightposition'] @lightposition.setter def lightposition(self, val): - self["lightposition"] = val + self['lightposition'] = val # meta # ---- @@ -1507,11 +1042,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -1527,11 +1062,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -1549,11 +1084,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -1574,11 +1109,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # reversescale # ------------ @@ -1596,11 +1131,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # scene # ----- @@ -1621,11 +1156,11 @@ def scene(self): ------- str """ - return self["scene"] + return self['scene'] @scene.setter def scene(self, val): - self["scene"] = val + self['scene'] = val # showlegend # ---------- @@ -1642,11 +1177,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # showscale # --------- @@ -1663,11 +1198,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # stream # ------ @@ -1680,27 +1215,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.mesh3d.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # text # ---- @@ -1720,11 +1243,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textsrc # ------- @@ -1740,11 +1263,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # uid # --- @@ -1762,11 +1285,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1795,11 +1318,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # vertexcolor # ----------- @@ -1818,11 +1341,11 @@ def vertexcolor(self): ------- numpy.ndarray """ - return self["vertexcolor"] + return self['vertexcolor'] @vertexcolor.setter def vertexcolor(self, val): - self["vertexcolor"] = val + self['vertexcolor'] = val # vertexcolorsrc # -------------- @@ -1839,11 +1362,11 @@ def vertexcolorsrc(self): ------- str """ - return self["vertexcolorsrc"] + return self['vertexcolorsrc'] @vertexcolorsrc.setter def vertexcolorsrc(self, val): - self["vertexcolorsrc"] = val + self['vertexcolorsrc'] = val # visible # ------- @@ -1862,11 +1385,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # x # - @@ -1884,11 +1407,11 @@ def x(self): ------- numpy.ndarray """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xcalendar # --------- @@ -1908,11 +1431,11 @@ def xcalendar(self): ------- Any """ - return self["xcalendar"] + return self['xcalendar'] @xcalendar.setter def xcalendar(self, val): - self["xcalendar"] = val + self['xcalendar'] = val # xhoverformat # ------------ @@ -1939,11 +1462,11 @@ def xhoverformat(self): ------- str """ - return self["xhoverformat"] + return self['xhoverformat'] @xhoverformat.setter def xhoverformat(self, val): - self["xhoverformat"] = val + self['xhoverformat'] = val # xsrc # ---- @@ -1959,11 +1482,11 @@ def xsrc(self): ------- str """ - return self["xsrc"] + return self['xsrc'] @xsrc.setter def xsrc(self, val): - self["xsrc"] = val + self['xsrc'] = val # y # - @@ -1981,11 +1504,11 @@ def y(self): ------- numpy.ndarray """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # ycalendar # --------- @@ -2005,11 +1528,11 @@ def ycalendar(self): ------- Any """ - return self["ycalendar"] + return self['ycalendar'] @ycalendar.setter def ycalendar(self, val): - self["ycalendar"] = val + self['ycalendar'] = val # yhoverformat # ------------ @@ -2036,11 +1559,11 @@ def yhoverformat(self): ------- str """ - return self["yhoverformat"] + return self['yhoverformat'] @yhoverformat.setter def yhoverformat(self, val): - self["yhoverformat"] = val + self['yhoverformat'] = val # ysrc # ---- @@ -2056,11 +1579,11 @@ def ysrc(self): ------- str """ - return self["ysrc"] + return self['ysrc'] @ysrc.setter def ysrc(self, val): - self["ysrc"] = val + self['ysrc'] = val # z # - @@ -2078,11 +1601,11 @@ def z(self): ------- numpy.ndarray """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # zcalendar # --------- @@ -2102,11 +1625,11 @@ def zcalendar(self): ------- Any """ - return self["zcalendar"] + return self['zcalendar'] @zcalendar.setter def zcalendar(self, val): - self["zcalendar"] = val + self['zcalendar'] = val # zhoverformat # ------------ @@ -2133,11 +1656,11 @@ def zhoverformat(self): ------- str """ - return self["zhoverformat"] + return self['zhoverformat'] @zhoverformat.setter def zhoverformat(self, val): - self["zhoverformat"] = val + self['zhoverformat'] = val # zsrc # ---- @@ -2153,17 +1676,17 @@ def zsrc(self): ------- str """ - return self["zsrc"] + return self['zsrc'] @zsrc.setter def zsrc(self, val): - self["zsrc"] = val + self['zsrc'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -2554,82 +2077,80 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `z`. """ - - def __init__( - self, - arg=None, - alphahull=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorbar=None, - colorscale=None, - contour=None, - customdata=None, - customdatasrc=None, - delaunayaxis=None, - facecolor=None, - facecolorsrc=None, - flatshading=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - i=None, - ids=None, - idssrc=None, - intensity=None, - intensitymode=None, - intensitysrc=None, - isrc=None, - j=None, - jsrc=None, - k=None, - ksrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - lighting=None, - lightposition=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - reversescale=None, - scene=None, - showlegend=None, - showscale=None, - stream=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - vertexcolor=None, - vertexcolorsrc=None, - visible=None, - x=None, - xcalendar=None, - xhoverformat=None, - xsrc=None, - y=None, - ycalendar=None, - yhoverformat=None, - ysrc=None, - z=None, - zcalendar=None, - zhoverformat=None, - zsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + alphahull=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorbar=None, + colorscale=None, + contour=None, + customdata=None, + customdatasrc=None, + delaunayaxis=None, + facecolor=None, + facecolorsrc=None, + flatshading=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + i=None, + ids=None, + idssrc=None, + intensity=None, + intensitymode=None, + intensitysrc=None, + isrc=None, + j=None, + jsrc=None, + k=None, + ksrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + lighting=None, + lightposition=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + reversescale=None, + scene=None, + showlegend=None, + showscale=None, + stream=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + vertexcolor=None, + vertexcolorsrc=None, + visible=None, + x=None, + xcalendar=None, + xhoverformat=None, + xsrc=None, + y=None, + ycalendar=None, + yhoverformat=None, + ysrc=None, + z=None, + zcalendar=None, + zhoverformat=None, + zsrc=None, + **kwargs + ): """ Construct a new Mesh3d object @@ -3031,10 +2552,10 @@ def __init__( ------- Mesh3d """ - super(Mesh3d, self).__init__("mesh3d") + super(Mesh3d, self).__init__('mesh3d') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -3046,306 +2567,95 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Mesh3d constructor must be a dict or -an instance of :class:`plotly.graph_objs.Mesh3d`""" - ) +an instance of :class:`plotly.graph_objs.Mesh3d`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("alphahull", None) - _v = alphahull if alphahull is not None else _v - if _v is not None: - self["alphahull"] = _v - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("contour", None) - _v = contour if contour is not None else _v - if _v is not None: - self["contour"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("delaunayaxis", None) - _v = delaunayaxis if delaunayaxis is not None else _v - if _v is not None: - self["delaunayaxis"] = _v - _v = arg.pop("facecolor", None) - _v = facecolor if facecolor is not None else _v - if _v is not None: - self["facecolor"] = _v - _v = arg.pop("facecolorsrc", None) - _v = facecolorsrc if facecolorsrc is not None else _v - if _v is not None: - self["facecolorsrc"] = _v - _v = arg.pop("flatshading", None) - _v = flatshading if flatshading is not None else _v - if _v is not None: - self["flatshading"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("i", None) - _v = i if i is not None else _v - if _v is not None: - self["i"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("intensity", None) - _v = intensity if intensity is not None else _v - if _v is not None: - self["intensity"] = _v - _v = arg.pop("intensitymode", None) - _v = intensitymode if intensitymode is not None else _v - if _v is not None: - self["intensitymode"] = _v - _v = arg.pop("intensitysrc", None) - _v = intensitysrc if intensitysrc is not None else _v - if _v is not None: - self["intensitysrc"] = _v - _v = arg.pop("isrc", None) - _v = isrc if isrc is not None else _v - if _v is not None: - self["isrc"] = _v - _v = arg.pop("j", None) - _v = j if j is not None else _v - if _v is not None: - self["j"] = _v - _v = arg.pop("jsrc", None) - _v = jsrc if jsrc is not None else _v - if _v is not None: - self["jsrc"] = _v - _v = arg.pop("k", None) - _v = k if k is not None else _v - if _v is not None: - self["k"] = _v - _v = arg.pop("ksrc", None) - _v = ksrc if ksrc is not None else _v - if _v is not None: - self["ksrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("lighting", None) - _v = lighting if lighting is not None else _v - if _v is not None: - self["lighting"] = _v - _v = arg.pop("lightposition", None) - _v = lightposition if lightposition is not None else _v - if _v is not None: - self["lightposition"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("scene", None) - _v = scene if scene is not None else _v - if _v is not None: - self["scene"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("vertexcolor", None) - _v = vertexcolor if vertexcolor is not None else _v - if _v is not None: - self["vertexcolor"] = _v - _v = arg.pop("vertexcolorsrc", None) - _v = vertexcolorsrc if vertexcolorsrc is not None else _v - if _v is not None: - self["vertexcolorsrc"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xcalendar", None) - _v = xcalendar if xcalendar is not None else _v - if _v is not None: - self["xcalendar"] = _v - _v = arg.pop("xhoverformat", None) - _v = xhoverformat if xhoverformat is not None else _v - if _v is not None: - self["xhoverformat"] = _v - _v = arg.pop("xsrc", None) - _v = xsrc if xsrc is not None else _v - if _v is not None: - self["xsrc"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("ycalendar", None) - _v = ycalendar if ycalendar is not None else _v - if _v is not None: - self["ycalendar"] = _v - _v = arg.pop("yhoverformat", None) - _v = yhoverformat if yhoverformat is not None else _v - if _v is not None: - self["yhoverformat"] = _v - _v = arg.pop("ysrc", None) - _v = ysrc if ysrc is not None else _v - if _v is not None: - self["ysrc"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v - _v = arg.pop("zcalendar", None) - _v = zcalendar if zcalendar is not None else _v - if _v is not None: - self["zcalendar"] = _v - _v = arg.pop("zhoverformat", None) - _v = zhoverformat if zhoverformat is not None else _v - if _v is not None: - self["zhoverformat"] = _v - _v = arg.pop("zsrc", None) - _v = zsrc if zsrc is not None else _v - if _v is not None: - self["zsrc"] = _v + self._init_provided('alphahull', arg, alphahull) + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('contour', arg, contour) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('delaunayaxis', arg, delaunayaxis) + self._init_provided('facecolor', arg, facecolor) + self._init_provided('facecolorsrc', arg, facecolorsrc) + self._init_provided('flatshading', arg, flatshading) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('i', arg, i) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('intensity', arg, intensity) + self._init_provided('intensitymode', arg, intensitymode) + self._init_provided('intensitysrc', arg, intensitysrc) + self._init_provided('isrc', arg, isrc) + self._init_provided('j', arg, j) + self._init_provided('jsrc', arg, jsrc) + self._init_provided('k', arg, k) + self._init_provided('ksrc', arg, ksrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('lighting', arg, lighting) + self._init_provided('lightposition', arg, lightposition) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('scene', arg, scene) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('showscale', arg, showscale) + self._init_provided('stream', arg, stream) + self._init_provided('text', arg, text) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('vertexcolor', arg, vertexcolor) + self._init_provided('vertexcolorsrc', arg, vertexcolorsrc) + self._init_provided('visible', arg, visible) + self._init_provided('x', arg, x) + self._init_provided('xcalendar', arg, xcalendar) + self._init_provided('xhoverformat', arg, xhoverformat) + self._init_provided('xsrc', arg, xsrc) + self._init_provided('y', arg, y) + self._init_provided('ycalendar', arg, ycalendar) + self._init_provided('yhoverformat', arg, yhoverformat) + self._init_provided('ysrc', arg, ysrc) + self._init_provided('z', arg, z) + self._init_provided('zcalendar', arg, zcalendar) + self._init_provided('zhoverformat', arg, zhoverformat) + self._init_provided('zsrc', arg, zsrc) # Read-only literals # ------------------ - self._props["type"] = "mesh3d" - arg.pop("type", None) + self._props['type'] = 'mesh3d' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_ohlc.py b/packages/python/plotly/plotly/graph_objs/_ohlc.py index b9798858270..b7c9c3d48f0 100644 --- a/packages/python/plotly/plotly/graph_objs/_ohlc.py +++ b/packages/python/plotly/plotly/graph_objs/_ohlc.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,60 +8,9 @@ class Ohlc(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "ohlc" - _valid_props = { - "close", - "closesrc", - "customdata", - "customdatasrc", - "decreasing", - "high", - "highsrc", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "increasing", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "line", - "low", - "lowsrc", - "meta", - "metasrc", - "name", - "opacity", - "open", - "opensrc", - "selectedpoints", - "showlegend", - "stream", - "text", - "textsrc", - "tickwidth", - "type", - "uid", - "uirevision", - "visible", - "x", - "xaxis", - "xcalendar", - "xhoverformat", - "xperiod", - "xperiod0", - "xperiodalignment", - "xsrc", - "yaxis", - "yhoverformat", - "zorder", - } + _parent_path_str = '' + _path_str = 'ohlc' + _valid_props = {"close", "closesrc", "customdata", "customdatasrc", "decreasing", "high", "highsrc", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertext", "hovertextsrc", "ids", "idssrc", "increasing", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "line", "low", "lowsrc", "meta", "metasrc", "name", "opacity", "open", "opensrc", "selectedpoints", "showlegend", "stream", "text", "textsrc", "tickwidth", "type", "uid", "uirevision", "visible", "x", "xaxis", "xcalendar", "xhoverformat", "xperiod", "xperiod0", "xperiodalignment", "xsrc", "yaxis", "yhoverformat", "zorder"} # close # ----- @@ -75,11 +26,11 @@ def close(self): ------- numpy.ndarray """ - return self["close"] + return self['close'] @close.setter def close(self, val): - self["close"] = val + self['close'] = val # closesrc # -------- @@ -95,11 +46,11 @@ def closesrc(self): ------- str """ - return self["closesrc"] + return self['closesrc'] @closesrc.setter def closesrc(self, val): - self["closesrc"] = val + self['closesrc'] = val # customdata # ---------- @@ -118,11 +69,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -139,11 +90,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # decreasing # ---------- @@ -156,21 +107,15 @@ def decreasing(self): - A dict of string/value properties that will be passed to the Decreasing constructor - Supported dict properties: - - line - :class:`plotly.graph_objects.ohlc.decreasing.Li - ne` instance or dict with compatible properties - Returns ------- plotly.graph_objs.ohlc.Decreasing """ - return self["decreasing"] + return self['decreasing'] @decreasing.setter def decreasing(self, val): - self["decreasing"] = val + self['decreasing'] = val # high # ---- @@ -186,11 +131,11 @@ def high(self): ------- numpy.ndarray """ - return self["high"] + return self['high'] @high.setter def high(self, val): - self["high"] = val + self['high'] = val # highsrc # ------- @@ -206,11 +151,11 @@ def highsrc(self): ------- str """ - return self["highsrc"] + return self['highsrc'] @highsrc.setter def highsrc(self, val): - self["highsrc"] = val + self['highsrc'] = val # hoverinfo # --------- @@ -232,11 +177,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -253,11 +198,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -270,56 +215,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - split - Show hover information (open, close, high, low) - in separate labels. - Returns ------- plotly.graph_objs.ohlc.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertext # --------- @@ -337,11 +241,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -358,11 +262,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -380,11 +284,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -400,11 +304,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # increasing # ---------- @@ -417,21 +321,15 @@ def increasing(self): - A dict of string/value properties that will be passed to the Increasing constructor - Supported dict properties: - - line - :class:`plotly.graph_objects.ohlc.increasing.Li - ne` instance or dict with compatible properties - Returns ------- plotly.graph_objs.ohlc.Increasing """ - return self["increasing"] + return self['increasing'] @increasing.setter def increasing(self, val): - self["increasing"] = val + self['increasing'] = val # legend # ------ @@ -452,11 +350,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -475,11 +373,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -492,22 +390,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.ohlc.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -530,11 +421,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -551,11 +442,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # line # ---- @@ -568,31 +459,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - dash - 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"). - Note that this style setting can also be set - per direction via `increasing.line.dash` and - `decreasing.line.dash`. - width - [object Object] Note that this style setting - can also be set per direction via - `increasing.line.width` and - `decreasing.line.width`. - Returns ------- plotly.graph_objs.ohlc.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # low # --- @@ -608,11 +483,11 @@ def low(self): ------- numpy.ndarray """ - return self["low"] + return self['low'] @low.setter def low(self, val): - self["low"] = val + self['low'] = val # lowsrc # ------ @@ -628,11 +503,11 @@ def lowsrc(self): ------- str """ - return self["lowsrc"] + return self['lowsrc'] @lowsrc.setter def lowsrc(self, val): - self["lowsrc"] = val + self['lowsrc'] = val # meta # ---- @@ -656,11 +531,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -676,11 +551,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -698,11 +573,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -718,11 +593,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # open # ---- @@ -738,11 +613,11 @@ def open(self): ------- numpy.ndarray """ - return self["open"] + return self['open'] @open.setter def open(self, val): - self["open"] = val + self['open'] = val # opensrc # ------- @@ -758,11 +633,11 @@ def opensrc(self): ------- str """ - return self["opensrc"] + return self['opensrc'] @opensrc.setter def opensrc(self, val): - self["opensrc"] = val + self['opensrc'] = val # selectedpoints # -------------- @@ -782,11 +657,11 @@ def selectedpoints(self): ------- Any """ - return self["selectedpoints"] + return self['selectedpoints'] @selectedpoints.setter def selectedpoints(self, val): - self["selectedpoints"] = val + self['selectedpoints'] = val # showlegend # ---------- @@ -803,11 +678,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # stream # ------ @@ -820,27 +695,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.ohlc.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # text # ---- @@ -861,11 +724,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textsrc # ------- @@ -881,11 +744,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # tickwidth # --------- @@ -902,11 +765,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # uid # --- @@ -924,11 +787,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -957,11 +820,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # visible # ------- @@ -980,11 +843,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # x # - @@ -1001,11 +864,11 @@ def x(self): ------- numpy.ndarray """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xaxis # ----- @@ -1026,11 +889,11 @@ def xaxis(self): ------- str """ - return self["xaxis"] + return self['xaxis'] @xaxis.setter def xaxis(self, val): - self["xaxis"] = val + self['xaxis'] = val # xcalendar # --------- @@ -1050,11 +913,11 @@ def xcalendar(self): ------- Any """ - return self["xcalendar"] + return self['xcalendar'] @xcalendar.setter def xcalendar(self, val): - self["xcalendar"] = val + self['xcalendar'] = val # xhoverformat # ------------ @@ -1081,11 +944,11 @@ def xhoverformat(self): ------- str """ - return self["xhoverformat"] + return self['xhoverformat'] @xhoverformat.setter def xhoverformat(self, val): - self["xhoverformat"] = val + self['xhoverformat'] = val # xperiod # ------- @@ -1103,11 +966,11 @@ def xperiod(self): ------- Any """ - return self["xperiod"] + return self['xperiod'] @xperiod.setter def xperiod(self, val): - self["xperiod"] = val + self['xperiod'] = val # xperiod0 # -------- @@ -1126,11 +989,11 @@ def xperiod0(self): ------- Any """ - return self["xperiod0"] + return self['xperiod0'] @xperiod0.setter def xperiod0(self, val): - self["xperiod0"] = val + self['xperiod0'] = val # xperiodalignment # ---------------- @@ -1148,11 +1011,11 @@ def xperiodalignment(self): ------- Any """ - return self["xperiodalignment"] + return self['xperiodalignment'] @xperiodalignment.setter def xperiodalignment(self, val): - self["xperiodalignment"] = val + self['xperiodalignment'] = val # xsrc # ---- @@ -1168,11 +1031,11 @@ def xsrc(self): ------- str """ - return self["xsrc"] + return self['xsrc'] @xsrc.setter def xsrc(self, val): - self["xsrc"] = val + self['xsrc'] = val # yaxis # ----- @@ -1193,11 +1056,11 @@ def yaxis(self): ------- str """ - return self["yaxis"] + return self['yaxis'] @yaxis.setter def yaxis(self, val): - self["yaxis"] = val + self['yaxis'] = val # yhoverformat # ------------ @@ -1224,11 +1087,11 @@ def yhoverformat(self): ------- str """ - return self["yhoverformat"] + return self['yhoverformat'] @yhoverformat.setter def yhoverformat(self, val): - self["yhoverformat"] = val + self['yhoverformat'] = val # zorder # ------ @@ -1246,17 +1109,17 @@ def zorder(self): ------- int """ - return self["zorder"] + return self['zorder'] @zorder.setter def zorder(self, val): - self["zorder"] = val + self['zorder'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -1488,61 +1351,59 @@ def _prop_descriptions(self): traces with higher `zorder` appear in front of those with lower `zorder`. """ - - def __init__( - self, - arg=None, - close=None, - closesrc=None, - customdata=None, - customdatasrc=None, - decreasing=None, - high=None, - highsrc=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - increasing=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - low=None, - lowsrc=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - open=None, - opensrc=None, - selectedpoints=None, - showlegend=None, - stream=None, - text=None, - textsrc=None, - tickwidth=None, - uid=None, - uirevision=None, - visible=None, - x=None, - xaxis=None, - xcalendar=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - yaxis=None, - yhoverformat=None, - zorder=None, - **kwargs, - ): + def __init__(self, + arg=None, + close=None, + closesrc=None, + customdata=None, + customdatasrc=None, + decreasing=None, + high=None, + highsrc=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + increasing=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + low=None, + lowsrc=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + open=None, + opensrc=None, + selectedpoints=None, + showlegend=None, + stream=None, + text=None, + textsrc=None, + tickwidth=None, + uid=None, + uirevision=None, + visible=None, + x=None, + xaxis=None, + xcalendar=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + yaxis=None, + yhoverformat=None, + zorder=None, + **kwargs + ): """ Construct a new Ohlc object @@ -1789,10 +1650,10 @@ def __init__( ------- Ohlc """ - super(Ohlc, self).__init__("ohlc") + super(Ohlc, self).__init__('ohlc') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1804,222 +1665,74 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Ohlc constructor must be a dict or -an instance of :class:`plotly.graph_objs.Ohlc`""" - ) +an instance of :class:`plotly.graph_objs.Ohlc`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("close", None) - _v = close if close is not None else _v - if _v is not None: - self["close"] = _v - _v = arg.pop("closesrc", None) - _v = closesrc if closesrc is not None else _v - if _v is not None: - self["closesrc"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("decreasing", None) - _v = decreasing if decreasing is not None else _v - if _v is not None: - self["decreasing"] = _v - _v = arg.pop("high", None) - _v = high if high is not None else _v - if _v is not None: - self["high"] = _v - _v = arg.pop("highsrc", None) - _v = highsrc if highsrc is not None else _v - if _v is not None: - self["highsrc"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("increasing", None) - _v = increasing if increasing is not None else _v - if _v is not None: - self["increasing"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("low", None) - _v = low if low is not None else _v - if _v is not None: - self["low"] = _v - _v = arg.pop("lowsrc", None) - _v = lowsrc if lowsrc is not None else _v - if _v is not None: - self["lowsrc"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("open", None) - _v = open if open is not None else _v - if _v is not None: - self["open"] = _v - _v = arg.pop("opensrc", None) - _v = opensrc if opensrc is not None else _v - if _v is not None: - self["opensrc"] = _v - _v = arg.pop("selectedpoints", None) - _v = selectedpoints if selectedpoints is not None else _v - if _v is not None: - self["selectedpoints"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xaxis", None) - _v = xaxis if xaxis is not None else _v - if _v is not None: - self["xaxis"] = _v - _v = arg.pop("xcalendar", None) - _v = xcalendar if xcalendar is not None else _v - if _v is not None: - self["xcalendar"] = _v - _v = arg.pop("xhoverformat", None) - _v = xhoverformat if xhoverformat is not None else _v - if _v is not None: - self["xhoverformat"] = _v - _v = arg.pop("xperiod", None) - _v = xperiod if xperiod is not None else _v - if _v is not None: - self["xperiod"] = _v - _v = arg.pop("xperiod0", None) - _v = xperiod0 if xperiod0 is not None else _v - if _v is not None: - self["xperiod0"] = _v - _v = arg.pop("xperiodalignment", None) - _v = xperiodalignment if xperiodalignment is not None else _v - if _v is not None: - self["xperiodalignment"] = _v - _v = arg.pop("xsrc", None) - _v = xsrc if xsrc is not None else _v - if _v is not None: - self["xsrc"] = _v - _v = arg.pop("yaxis", None) - _v = yaxis if yaxis is not None else _v - if _v is not None: - self["yaxis"] = _v - _v = arg.pop("yhoverformat", None) - _v = yhoverformat if yhoverformat is not None else _v - if _v is not None: - self["yhoverformat"] = _v - _v = arg.pop("zorder", None) - _v = zorder if zorder is not None else _v - if _v is not None: - self["zorder"] = _v + self._init_provided('close', arg, close) + self._init_provided('closesrc', arg, closesrc) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('decreasing', arg, decreasing) + self._init_provided('high', arg, high) + self._init_provided('highsrc', arg, highsrc) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('increasing', arg, increasing) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('line', arg, line) + self._init_provided('low', arg, low) + self._init_provided('lowsrc', arg, lowsrc) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('open', arg, open) + self._init_provided('opensrc', arg, opensrc) + self._init_provided('selectedpoints', arg, selectedpoints) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('stream', arg, stream) + self._init_provided('text', arg, text) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('visible', arg, visible) + self._init_provided('x', arg, x) + self._init_provided('xaxis', arg, xaxis) + self._init_provided('xcalendar', arg, xcalendar) + self._init_provided('xhoverformat', arg, xhoverformat) + self._init_provided('xperiod', arg, xperiod) + self._init_provided('xperiod0', arg, xperiod0) + self._init_provided('xperiodalignment', arg, xperiodalignment) + self._init_provided('xsrc', arg, xsrc) + self._init_provided('yaxis', arg, yaxis) + self._init_provided('yhoverformat', arg, yhoverformat) + self._init_provided('zorder', arg, zorder) # Read-only literals # ------------------ - self._props["type"] = "ohlc" - arg.pop("type", None) + self._props['type'] = 'ohlc' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_parcats.py b/packages/python/plotly/plotly/graph_objs/_parcats.py index 14abfac323d..e5ea6fa0aa2 100644 --- a/packages/python/plotly/plotly/graph_objs/_parcats.py +++ b/packages/python/plotly/plotly/graph_objs/_parcats.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,34 +8,9 @@ class Parcats(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "parcats" - _valid_props = { - "arrangement", - "bundlecolors", - "counts", - "countssrc", - "dimensiondefaults", - "dimensions", - "domain", - "hoverinfo", - "hoveron", - "hovertemplate", - "labelfont", - "legendgrouptitle", - "legendwidth", - "line", - "meta", - "metasrc", - "name", - "sortpaths", - "stream", - "tickfont", - "type", - "uid", - "uirevision", - "visible", - } + _parent_path_str = '' + _path_str = 'parcats' + _valid_props = {"arrangement", "bundlecolors", "counts", "countssrc", "dimensiondefaults", "dimensions", "domain", "hoverinfo", "hoveron", "hovertemplate", "labelfont", "legendgrouptitle", "legendwidth", "line", "meta", "metasrc", "name", "sortpaths", "stream", "tickfont", "type", "uid", "uirevision", "visible"} # arrangement # ----------- @@ -54,11 +31,11 @@ def arrangement(self): ------- Any """ - return self["arrangement"] + return self['arrangement'] @arrangement.setter def arrangement(self, val): - self["arrangement"] = val + self['arrangement'] = val # bundlecolors # ------------ @@ -75,11 +52,11 @@ def bundlecolors(self): ------- bool """ - return self["bundlecolors"] + return self['bundlecolors'] @bundlecolors.setter def bundlecolors(self, val): - self["bundlecolors"] = val + self['bundlecolors'] = val # counts # ------ @@ -97,11 +74,11 @@ def counts(self): ------- int|float|numpy.ndarray """ - return self["counts"] + return self['counts'] @counts.setter def counts(self, val): - self["counts"] = val + self['counts'] = val # countssrc # --------- @@ -117,11 +94,11 @@ def countssrc(self): ------- str """ - return self["countssrc"] + return self['countssrc'] @countssrc.setter def countssrc(self, val): - self["countssrc"] = val + self['countssrc'] = val # dimensions # ---------- @@ -136,68 +113,15 @@ def dimensions(self): - A list or tuple of dicts of string/value properties that will be passed to the Dimension constructor - Supported dict properties: - - categoryarray - Sets the order in which categories in this - dimension appear. Only has an effect if - `categoryorder` is set to "array". Used with - `categoryorder`. - categoryarraysrc - Sets the source reference on Chart Studio Cloud - for `categoryarray`. - categoryorder - Specifies the ordering logic for the categories - in the dimension. By default, plotly uses - "trace", which specifies the order that is - present in the data supplied. Set - `categoryorder` to *category ascending* or - *category descending* if order should be - determined by the alphanumerical order of the - category names. Set `categoryorder` to "array" - to derive the ordering from the attribute - `categoryarray`. If a category is not found in - the `categoryarray` array, the sorting behavior - for that attribute will be identical to the - "trace" mode. The unspecified categories will - follow the categories in `categoryarray`. - displayindex - The display index of dimension, from left to - right, zero indexed, defaults to dimension - index. - label - The shown name of the dimension. - ticktext - Sets alternative tick labels for the categories - in this dimension. Only has an effect if - `categoryorder` is set to "array". Should be an - array the same length as `categoryarray` Used - with `categoryorder`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - values - Dimension values. `values[n]` represents the - category value of the `n`th point in the - dataset, therefore the `values` vector for all - dimensions must be the same (longer vectors - will be truncated). - valuessrc - Sets the source reference on Chart Studio Cloud - for `values`. - visible - Shows the dimension when set to `true` (the - default). Hides the dimension for `false`. - Returns ------- tuple[plotly.graph_objs.parcats.Dimension] """ - return self["dimensions"] + return self['dimensions'] @dimensions.setter def dimensions(self, val): - self["dimensions"] = val + self['dimensions'] = val # dimensiondefaults # ----------------- @@ -215,17 +139,15 @@ def dimensiondefaults(self): - A dict of string/value properties that will be passed to the Dimension constructor - Supported dict properties: - Returns ------- plotly.graph_objs.parcats.Dimension """ - return self["dimensiondefaults"] + return self['dimensiondefaults'] @dimensiondefaults.setter def dimensiondefaults(self, val): - self["dimensiondefaults"] = val + self['dimensiondefaults'] = val # domain # ------ @@ -238,31 +160,15 @@ def domain(self): - A dict of string/value properties that will be passed to the Domain constructor - Supported dict properties: - - column - If there is a layout grid, use the domain for - this column in the grid for this parcats trace - . - row - If there is a layout grid, use the domain for - this row in the grid for this parcats trace . - x - Sets the horizontal domain of this parcats - trace (in plot fraction). - y - Sets the vertical domain of this parcats trace - (in plot fraction). - Returns ------- plotly.graph_objs.parcats.Domain """ - return self["domain"] + return self['domain'] @domain.setter def domain(self, val): - self["domain"] = val + self['domain'] = val # hoverinfo # --------- @@ -283,11 +189,11 @@ def hoverinfo(self): ------- Any """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoveron # ------- @@ -308,11 +214,11 @@ def hoveron(self): ------- Any """ - return self["hoveron"] + return self['hoveron'] @hoveron.setter def hoveron(self, val): - self["hoveron"] = val + self['hoveron'] = val # hovertemplate # ------------- @@ -357,11 +263,11 @@ def hovertemplate(self): ------- str """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # labelfont # --------- @@ -376,61 +282,15 @@ def labelfont(self): - A dict of string/value properties that will be passed to the Labelfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.parcats.Labelfont """ - return self["labelfont"] + return self['labelfont'] @labelfont.setter def labelfont(self, val): - self["labelfont"] = val + self['labelfont'] = val # legendgrouptitle # ---------------- @@ -443,22 +303,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.parcats.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendwidth # ----------- @@ -475,11 +328,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # line # ---- @@ -492,144 +345,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `line.colorscale`. Has an effect - only if in `line.color` is set to a numerical - array. In case `colorscale` is unspecified or - `autocolorscale` is true, the default palette - will be chosen according to whether numbers in - the `color` array are all positive, all - negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `line.color`) or the bounds set in - `line.cmin` and `line.cmax` Has an effect only - if in `line.color` is set to a numerical array. - Defaults to `false` when `line.cmin` and - `line.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `line.color` is set to a - numerical array. Value should have the same - units as in `line.color` and if set, - `line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `line.cmin` and/or `line.cmax` to be - equidistant to this point. Has an effect only - if in `line.color` is set to a numerical array. - Value should have the same units as in - `line.color`. Has no effect when `line.cauto` - is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `line.color` is set to a - numerical array. Value should have the same - units as in `line.color` and if set, - `line.cmax` must be set as well. - color - Sets the line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `line.cmin` and `line.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.parcats.line.Color - Bar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `line.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `line.cmin` and `line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - This value here applies when hovering over - lines.Finally, the template string has access - to variables `count` and `probability`. - Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - reversescale - Reverses the color mapping if true. Has an - effect only if in `line.color` is set to a - numerical array. If true, `line.cmin` will - correspond to the last color in the array and - `line.cmax` will correspond to the first color. - shape - Sets the shape of the paths. If `linear`, paths - are composed of straight lines. If `hspline`, - paths are composed of horizontal curved splines - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `line.color` is set to a numerical array. - Returns ------- plotly.graph_objs.parcats.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # meta # ---- @@ -653,11 +377,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -673,11 +397,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -695,11 +419,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # sortpaths # --------- @@ -718,11 +442,11 @@ def sortpaths(self): ------- Any """ - return self["sortpaths"] + return self['sortpaths'] @sortpaths.setter def sortpaths(self, val): - self["sortpaths"] = val + self['sortpaths'] = val # stream # ------ @@ -735,27 +459,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.parcats.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # tickfont # -------- @@ -770,61 +482,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.parcats.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # uid # --- @@ -842,11 +508,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -875,11 +541,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # visible # ------- @@ -898,17 +564,17 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -1058,35 +724,33 @@ def _prop_descriptions(self): a legend item (provided that the legend itself is visible). """ - - def __init__( - self, - arg=None, - arrangement=None, - bundlecolors=None, - counts=None, - countssrc=None, - dimensions=None, - dimensiondefaults=None, - domain=None, - hoverinfo=None, - hoveron=None, - hovertemplate=None, - labelfont=None, - legendgrouptitle=None, - legendwidth=None, - line=None, - meta=None, - metasrc=None, - name=None, - sortpaths=None, - stream=None, - tickfont=None, - uid=None, - uirevision=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + arrangement=None, + bundlecolors=None, + counts=None, + countssrc=None, + dimensions=None, + dimensiondefaults=None, + domain=None, + hoverinfo=None, + hoveron=None, + hovertemplate=None, + labelfont=None, + legendgrouptitle=None, + legendwidth=None, + line=None, + meta=None, + metasrc=None, + name=None, + sortpaths=None, + stream=None, + tickfont=None, + uid=None, + uirevision=None, + visible=None, + **kwargs + ): """ Construct a new Parcats object @@ -1245,10 +909,10 @@ def __init__( ------- Parcats """ - super(Parcats, self).__init__("parcats") + super(Parcats, self).__init__('parcats') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1260,118 +924,48 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Parcats constructor must be a dict or -an instance of :class:`plotly.graph_objs.Parcats`""" - ) +an instance of :class:`plotly.graph_objs.Parcats`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("arrangement", None) - _v = arrangement if arrangement is not None else _v - if _v is not None: - self["arrangement"] = _v - _v = arg.pop("bundlecolors", None) - _v = bundlecolors if bundlecolors is not None else _v - if _v is not None: - self["bundlecolors"] = _v - _v = arg.pop("counts", None) - _v = counts if counts is not None else _v - if _v is not None: - self["counts"] = _v - _v = arg.pop("countssrc", None) - _v = countssrc if countssrc is not None else _v - if _v is not None: - self["countssrc"] = _v - _v = arg.pop("dimensions", None) - _v = dimensions if dimensions is not None else _v - if _v is not None: - self["dimensions"] = _v - _v = arg.pop("dimensiondefaults", None) - _v = dimensiondefaults if dimensiondefaults is not None else _v - if _v is not None: - self["dimensiondefaults"] = _v - _v = arg.pop("domain", None) - _v = domain if domain is not None else _v - if _v is not None: - self["domain"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoveron", None) - _v = hoveron if hoveron is not None else _v - if _v is not None: - self["hoveron"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("labelfont", None) - _v = labelfont if labelfont is not None else _v - if _v is not None: - self["labelfont"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("sortpaths", None) - _v = sortpaths if sortpaths is not None else _v - if _v is not None: - self["sortpaths"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('arrangement', arg, arrangement) + self._init_provided('bundlecolors', arg, bundlecolors) + self._init_provided('counts', arg, counts) + self._init_provided('countssrc', arg, countssrc) + self._init_provided('dimensions', arg, dimensions) + self._init_provided('dimensiondefaults', arg, dimensiondefaults) + self._init_provided('domain', arg, domain) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoveron', arg, hoveron) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('labelfont', arg, labelfont) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('line', arg, line) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('sortpaths', arg, sortpaths) + self._init_provided('stream', arg, stream) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('visible', arg, visible) # Read-only literals # ------------------ - self._props["type"] = "parcats" - arg.pop("type", None) + self._props['type'] = 'parcats' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_parcoords.py b/packages/python/plotly/plotly/graph_objs/_parcoords.py index 52ce3b4c6e3..bcb2597d709 100644 --- a/packages/python/plotly/plotly/graph_objs/_parcoords.py +++ b/packages/python/plotly/plotly/graph_objs/_parcoords.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,36 +8,9 @@ class Parcoords(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "parcoords" - _valid_props = { - "customdata", - "customdatasrc", - "dimensiondefaults", - "dimensions", - "domain", - "ids", - "idssrc", - "labelangle", - "labelfont", - "labelside", - "legend", - "legendgrouptitle", - "legendrank", - "legendwidth", - "line", - "meta", - "metasrc", - "name", - "rangefont", - "stream", - "tickfont", - "type", - "uid", - "uirevision", - "unselected", - "visible", - } + _parent_path_str = '' + _path_str = 'parcoords' + _valid_props = {"customdata", "customdatasrc", "dimensiondefaults", "dimensions", "domain", "ids", "idssrc", "labelangle", "labelfont", "labelside", "legend", "legendgrouptitle", "legendrank", "legendwidth", "line", "meta", "metasrc", "name", "rangefont", "stream", "tickfont", "type", "uid", "uirevision", "unselected", "visible"} # customdata # ---------- @@ -54,11 +29,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -75,11 +50,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # dimensions # ---------- @@ -95,95 +70,15 @@ def dimensions(self): - A list or tuple of dicts of string/value properties that will be passed to the Dimension constructor - Supported dict properties: - - constraintrange - The domain range to which the filter on the - dimension is constrained. Must be an array of - `[fromValue, toValue]` with `fromValue <= - toValue`, or if `multiselect` is not disabled, - you may give an array of arrays, where each - inner array is `[fromValue, toValue]`. - label - The shown name of the dimension. - multiselect - Do we allow multiple selection ranges or just a - single range? - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - range - The domain range that represents the full, - shown axis extent. Defaults to the `values` - extent. Must be an array of `[fromValue, - toValue]` with finite numbers as elements. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - ticktext - Sets the text displayed at the ticks position - via `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - values - Dimension values. `values[n]` represents the - value of the `n`th point in the dataset, - therefore the `values` vector for all - dimensions must be the same (longer vectors - will be truncated). Each value must be a finite - number. - valuessrc - Sets the source reference on Chart Studio Cloud - for `values`. - visible - Shows the dimension when set to `true` (the - default). Hides the dimension for `false`. - Returns ------- tuple[plotly.graph_objs.parcoords.Dimension] """ - return self["dimensions"] + return self['dimensions'] @dimensions.setter def dimensions(self, val): - self["dimensions"] = val + self['dimensions'] = val # dimensiondefaults # ----------------- @@ -201,17 +96,15 @@ def dimensiondefaults(self): - A dict of string/value properties that will be passed to the Dimension constructor - Supported dict properties: - Returns ------- plotly.graph_objs.parcoords.Dimension """ - return self["dimensiondefaults"] + return self['dimensiondefaults'] @dimensiondefaults.setter def dimensiondefaults(self, val): - self["dimensiondefaults"] = val + self['dimensiondefaults'] = val # domain # ------ @@ -224,31 +117,15 @@ def domain(self): - A dict of string/value properties that will be passed to the Domain constructor - Supported dict properties: - - column - If there is a layout grid, use the domain for - this column in the grid for this parcoords - trace . - row - If there is a layout grid, use the domain for - this row in the grid for this parcoords trace . - x - Sets the horizontal domain of this parcoords - trace (in plot fraction). - y - Sets the vertical domain of this parcoords - trace (in plot fraction). - Returns ------- plotly.graph_objs.parcoords.Domain """ - return self["domain"] + return self['domain'] @domain.setter def domain(self, val): - self["domain"] = val + self['domain'] = val # ids # --- @@ -266,11 +143,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -286,11 +163,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # labelangle # ---------- @@ -311,11 +188,11 @@ def labelangle(self): ------- int|float """ - return self["labelangle"] + return self['labelangle'] @labelangle.setter def labelangle(self, val): - self["labelangle"] = val + self['labelangle'] = val # labelfont # --------- @@ -330,61 +207,15 @@ def labelfont(self): - A dict of string/value properties that will be passed to the Labelfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.parcoords.Labelfont """ - return self["labelfont"] + return self['labelfont'] @labelfont.setter def labelfont(self, val): - self["labelfont"] = val + self['labelfont'] = val # labelside # --------- @@ -404,11 +235,11 @@ def labelside(self): ------- Any """ - return self["labelside"] + return self['labelside'] @labelside.setter def labelside(self, val): - self["labelside"] = val + self['labelside'] = val # legend # ------ @@ -429,11 +260,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgrouptitle # ---------------- @@ -446,22 +277,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.parcoords.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -484,11 +308,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -505,11 +329,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # line # ---- @@ -522,104 +346,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `line.colorscale`. Has an effect - only if in `line.color` is set to a numerical - array. In case `colorscale` is unspecified or - `autocolorscale` is true, the default palette - will be chosen according to whether numbers in - the `color` array are all positive, all - negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `line.color`) or the bounds set in - `line.cmin` and `line.cmax` Has an effect only - if in `line.color` is set to a numerical array. - Defaults to `false` when `line.cmin` and - `line.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `line.color` is set to a - numerical array. Value should have the same - units as in `line.color` and if set, - `line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `line.cmin` and/or `line.cmax` to be - equidistant to this point. Has an effect only - if in `line.color` is set to a numerical array. - Value should have the same units as in - `line.color`. Has no effect when `line.cauto` - is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `line.color` is set to a - numerical array. Value should have the same - units as in `line.color` and if set, - `line.cmax` must be set as well. - color - Sets the line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `line.cmin` and `line.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.parcoords.line.Col - orBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `line.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `line.cmin` and `line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `line.color` is set to a - numerical array. If true, `line.cmin` will - correspond to the last color in the array and - `line.cmax` will correspond to the first color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `line.color` is set to a numerical array. - Returns ------- plotly.graph_objs.parcoords.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # meta # ---- @@ -643,11 +378,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -663,11 +398,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -685,11 +420,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # rangefont # --------- @@ -704,61 +439,15 @@ def rangefont(self): - A dict of string/value properties that will be passed to the Rangefont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.parcoords.Rangefont """ - return self["rangefont"] + return self['rangefont'] @rangefont.setter def rangefont(self, val): - self["rangefont"] = val + self['rangefont'] = val # stream # ------ @@ -771,27 +460,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.parcoords.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # tickfont # -------- @@ -806,61 +483,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.parcoords.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # uid # --- @@ -878,11 +509,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -911,11 +542,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # unselected # ---------- @@ -928,22 +559,15 @@ def unselected(self): - A dict of string/value properties that will be passed to the Unselected constructor - Supported dict properties: - - line - :class:`plotly.graph_objects.parcoords.unselect - ed.Line` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.parcoords.Unselected """ - return self["unselected"] + return self['unselected'] @unselected.setter def unselected(self, val): - self["unselected"] = val + self['unselected'] = val # visible # ------- @@ -962,17 +586,17 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -1102,37 +726,35 @@ def _prop_descriptions(self): a legend item (provided that the legend itself is visible). """ - - def __init__( - self, - arg=None, - customdata=None, - customdatasrc=None, - dimensions=None, - dimensiondefaults=None, - domain=None, - ids=None, - idssrc=None, - labelangle=None, - labelfont=None, - labelside=None, - legend=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - meta=None, - metasrc=None, - name=None, - rangefont=None, - stream=None, - tickfont=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + customdata=None, + customdatasrc=None, + dimensions=None, + dimensiondefaults=None, + domain=None, + ids=None, + idssrc=None, + labelangle=None, + labelfont=None, + labelside=None, + legend=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + meta=None, + metasrc=None, + name=None, + rangefont=None, + stream=None, + tickfont=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + **kwargs + ): """ Construct a new Parcoords object @@ -1272,10 +894,10 @@ def __init__( ------- Parcoords """ - super(Parcoords, self).__init__("parcoords") + super(Parcoords, self).__init__('parcoords') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1287,126 +909,50 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Parcoords constructor must be a dict or -an instance of :class:`plotly.graph_objs.Parcoords`""" - ) +an instance of :class:`plotly.graph_objs.Parcoords`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("dimensions", None) - _v = dimensions if dimensions is not None else _v - if _v is not None: - self["dimensions"] = _v - _v = arg.pop("dimensiondefaults", None) - _v = dimensiondefaults if dimensiondefaults is not None else _v - if _v is not None: - self["dimensiondefaults"] = _v - _v = arg.pop("domain", None) - _v = domain if domain is not None else _v - if _v is not None: - self["domain"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("labelangle", None) - _v = labelangle if labelangle is not None else _v - if _v is not None: - self["labelangle"] = _v - _v = arg.pop("labelfont", None) - _v = labelfont if labelfont is not None else _v - if _v is not None: - self["labelfont"] = _v - _v = arg.pop("labelside", None) - _v = labelside if labelside is not None else _v - if _v is not None: - self["labelside"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("rangefont", None) - _v = rangefont if rangefont is not None else _v - if _v is not None: - self["rangefont"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("unselected", None) - _v = unselected if unselected is not None else _v - if _v is not None: - self["unselected"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('dimensions', arg, dimensions) + self._init_provided('dimensiondefaults', arg, dimensiondefaults) + self._init_provided('domain', arg, domain) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('labelangle', arg, labelangle) + self._init_provided('labelfont', arg, labelfont) + self._init_provided('labelside', arg, labelside) + self._init_provided('legend', arg, legend) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('line', arg, line) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('rangefont', arg, rangefont) + self._init_provided('stream', arg, stream) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('unselected', arg, unselected) + self._init_provided('visible', arg, visible) # Read-only literals # ------------------ - self._props["type"] = "parcoords" - arg.pop("type", None) + self._props['type'] = 'parcoords' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_pie.py b/packages/python/plotly/plotly/graph_objs/_pie.py index 199af139f8d..f6c42b6aba4 100644 --- a/packages/python/plotly/plotly/graph_objs/_pie.py +++ b/packages/python/plotly/plotly/graph_objs/_pie.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,64 +8,9 @@ class Pie(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "pie" - _valid_props = { - "automargin", - "customdata", - "customdatasrc", - "direction", - "dlabel", - "domain", - "hole", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "insidetextfont", - "insidetextorientation", - "label0", - "labels", - "labelssrc", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "marker", - "meta", - "metasrc", - "name", - "opacity", - "outsidetextfont", - "pull", - "pullsrc", - "rotation", - "scalegroup", - "showlegend", - "sort", - "stream", - "text", - "textfont", - "textinfo", - "textposition", - "textpositionsrc", - "textsrc", - "texttemplate", - "texttemplatesrc", - "title", - "type", - "uid", - "uirevision", - "values", - "valuessrc", - "visible", - } + _parent_path_str = '' + _path_str = 'pie' + _valid_props = {"automargin", "customdata", "customdatasrc", "direction", "dlabel", "domain", "hole", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "insidetextfont", "insidetextorientation", "label0", "labels", "labelssrc", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "marker", "meta", "metasrc", "name", "opacity", "outsidetextfont", "pull", "pullsrc", "rotation", "scalegroup", "showlegend", "sort", "stream", "text", "textfont", "textinfo", "textposition", "textpositionsrc", "textsrc", "texttemplate", "texttemplatesrc", "title", "type", "uid", "uirevision", "values", "valuessrc", "visible"} # automargin # ---------- @@ -79,11 +26,11 @@ def automargin(self): ------- bool """ - return self["automargin"] + return self['automargin'] @automargin.setter def automargin(self, val): - self["automargin"] = val + self['automargin'] = val # customdata # ---------- @@ -102,11 +49,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -123,11 +70,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # direction # --------- @@ -145,11 +92,11 @@ def direction(self): ------- Any """ - return self["direction"] + return self['direction'] @direction.setter def direction(self, val): - self["direction"] = val + self['direction'] = val # dlabel # ------ @@ -165,11 +112,11 @@ def dlabel(self): ------- int|float """ - return self["dlabel"] + return self['dlabel'] @dlabel.setter def dlabel(self, val): - self["dlabel"] = val + self['dlabel'] = val # domain # ------ @@ -182,30 +129,15 @@ def domain(self): - A dict of string/value properties that will be passed to the Domain constructor - Supported dict properties: - - column - If there is a layout grid, use the domain for - this column in the grid for this pie trace . - row - If there is a layout grid, use the domain for - this row in the grid for this pie trace . - x - Sets the horizontal domain of this pie trace - (in plot fraction). - y - Sets the vertical domain of this pie trace (in - plot fraction). - Returns ------- plotly.graph_objs.pie.Domain """ - return self["domain"] + return self['domain'] @domain.setter def domain(self, val): - self["domain"] = val + self['domain'] = val # hole # ---- @@ -222,11 +154,11 @@ def hole(self): ------- int|float """ - return self["hole"] + return self['hole'] @hole.setter def hole(self, val): - self["hole"] = val + self['hole'] = val # hoverinfo # --------- @@ -248,11 +180,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -269,11 +201,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -286,53 +218,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.pie.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -374,11 +268,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -395,11 +289,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -421,11 +315,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -442,11 +336,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -464,11 +358,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -484,11 +378,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # insidetextfont # -------------- @@ -503,88 +397,15 @@ def insidetextfont(self): - A dict of string/value properties that will be passed to the Insidetextfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.pie.Insidetextfont """ - return self["insidetextfont"] + return self['insidetextfont'] @insidetextfont.setter def insidetextfont(self, val): - self["insidetextfont"] = val + self['insidetextfont'] = val # insidetextorientation # --------------------- @@ -608,11 +429,11 @@ def insidetextorientation(self): ------- Any """ - return self["insidetextorientation"] + return self['insidetextorientation'] @insidetextorientation.setter def insidetextorientation(self, val): - self["insidetextorientation"] = val + self['insidetextorientation'] = val # label0 # ------ @@ -630,11 +451,11 @@ def label0(self): ------- int|float """ - return self["label0"] + return self['label0'] @label0.setter def label0(self, val): - self["label0"] = val + self['label0'] = val # labels # ------ @@ -654,11 +475,11 @@ def labels(self): ------- numpy.ndarray """ - return self["labels"] + return self['labels'] @labels.setter def labels(self, val): - self["labels"] = val + self['labels'] = val # labelssrc # --------- @@ -674,11 +495,11 @@ def labelssrc(self): ------- str """ - return self["labelssrc"] + return self['labelssrc'] @labelssrc.setter def labelssrc(self, val): - self["labelssrc"] = val + self['labelssrc'] = val # legend # ------ @@ -699,11 +520,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -722,11 +543,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -739,22 +560,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.pie.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -777,11 +591,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -798,11 +612,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # marker # ------ @@ -815,30 +629,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - colors - Sets the color of each sector. If not - specified, the default trace color set is used - to pick the sector colors. - colorssrc - Sets the source reference on Chart Studio Cloud - for `colors`. - line - :class:`plotly.graph_objects.pie.marker.Line` - instance or dict with compatible properties - pattern - Sets the pattern within the marker. - Returns ------- plotly.graph_objs.pie.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # meta # ---- @@ -862,11 +661,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -882,11 +681,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -904,11 +703,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -924,11 +723,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # outsidetextfont # --------------- @@ -943,88 +742,15 @@ def outsidetextfont(self): - A dict of string/value properties that will be passed to the Outsidetextfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.pie.Outsidetextfont """ - return self["outsidetextfont"] + return self['outsidetextfont'] @outsidetextfont.setter def outsidetextfont(self, val): - self["outsidetextfont"] = val + self['outsidetextfont'] = val # pull # ---- @@ -1044,11 +770,11 @@ def pull(self): ------- int|float|numpy.ndarray """ - return self["pull"] + return self['pull'] @pull.setter def pull(self, val): - self["pull"] = val + self['pull'] = val # pullsrc # ------- @@ -1064,11 +790,11 @@ def pullsrc(self): ------- str """ - return self["pullsrc"] + return self['pullsrc'] @pullsrc.setter def pullsrc(self, val): - self["pullsrc"] = val + self['pullsrc'] = val # rotation # -------- @@ -1087,11 +813,11 @@ def rotation(self): ------- int|float """ - return self["rotation"] + return self['rotation'] @rotation.setter def rotation(self, val): - self["rotation"] = val + self['rotation'] = val # scalegroup # ---------- @@ -1110,11 +836,11 @@ def scalegroup(self): ------- str """ - return self["scalegroup"] + return self['scalegroup'] @scalegroup.setter def scalegroup(self, val): - self["scalegroup"] = val + self['scalegroup'] = val # showlegend # ---------- @@ -1131,11 +857,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # sort # ---- @@ -1152,11 +878,11 @@ def sort(self): ------- bool """ - return self["sort"] + return self['sort'] @sort.setter def sort(self, val): - self["sort"] = val + self['sort'] = val # stream # ------ @@ -1169,27 +895,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.pie.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # text # ---- @@ -1209,11 +923,11 @@ def text(self): ------- numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textfont # -------- @@ -1228,88 +942,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.pie.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # textinfo # -------- @@ -1328,11 +969,11 @@ def textinfo(self): ------- Any """ - return self["textinfo"] + return self['textinfo'] @textinfo.setter def textinfo(self, val): - self["textinfo"] = val + self['textinfo'] = val # textposition # ------------ @@ -1350,11 +991,11 @@ def textposition(self): ------- Any|numpy.ndarray """ - return self["textposition"] + return self['textposition'] @textposition.setter def textposition(self, val): - self["textposition"] = val + self['textposition'] = val # textpositionsrc # --------------- @@ -1371,11 +1012,11 @@ def textpositionsrc(self): ------- str """ - return self["textpositionsrc"] + return self['textpositionsrc'] @textpositionsrc.setter def textpositionsrc(self, val): - self["textpositionsrc"] = val + self['textpositionsrc'] = val # textsrc # ------- @@ -1391,11 +1032,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # texttemplate # ------------ @@ -1426,11 +1067,11 @@ def texttemplate(self): ------- str|numpy.ndarray """ - return self["texttemplate"] + return self['texttemplate'] @texttemplate.setter def texttemplate(self, val): - self["texttemplate"] = val + self['texttemplate'] = val # texttemplatesrc # --------------- @@ -1447,11 +1088,11 @@ def texttemplatesrc(self): ------- str """ - return self["texttemplatesrc"] + return self['texttemplatesrc'] @texttemplatesrc.setter def texttemplatesrc(self, val): - self["texttemplatesrc"] = val + self['texttemplatesrc'] = val # title # ----- @@ -1464,25 +1105,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets the font used for `title`. - position - Specifies the location of the `title`. - text - Sets the title of the chart. If it is empty, no - title is displayed. - Returns ------- plotly.graph_objs.pie.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # uid # --- @@ -1500,11 +1131,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1533,11 +1164,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # values # ------ @@ -1554,11 +1185,11 @@ def values(self): ------- numpy.ndarray """ - return self["values"] + return self['values'] @values.setter def values(self, val): - self["values"] = val + self['values'] = val # valuessrc # --------- @@ -1574,11 +1205,11 @@ def valuessrc(self): ------- str """ - return self["valuessrc"] + return self['valuessrc'] @valuessrc.setter def valuessrc(self, val): - self["valuessrc"] = val + self['valuessrc'] = val # visible # ------- @@ -1597,17 +1228,17 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -1877,65 +1508,63 @@ def _prop_descriptions(self): a legend item (provided that the legend itself is visible). """ - - def __init__( - self, - arg=None, - automargin=None, - customdata=None, - customdatasrc=None, - direction=None, - dlabel=None, - domain=None, - hole=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - insidetextfont=None, - insidetextorientation=None, - label0=None, - labels=None, - labelssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - marker=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - outsidetextfont=None, - pull=None, - pullsrc=None, - rotation=None, - scalegroup=None, - showlegend=None, - sort=None, - stream=None, - text=None, - textfont=None, - textinfo=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - title=None, - uid=None, - uirevision=None, - values=None, - valuessrc=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + automargin=None, + customdata=None, + customdatasrc=None, + direction=None, + dlabel=None, + domain=None, + hole=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + insidetextfont=None, + insidetextorientation=None, + label0=None, + labels=None, + labelssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + marker=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + outsidetextfont=None, + pull=None, + pullsrc=None, + rotation=None, + scalegroup=None, + showlegend=None, + sort=None, + stream=None, + text=None, + textfont=None, + textinfo=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + title=None, + uid=None, + uirevision=None, + values=None, + valuessrc=None, + visible=None, + **kwargs + ): """ Construct a new Pie object @@ -2215,10 +1844,10 @@ def __init__( ------- Pie """ - super(Pie, self).__init__("pie") + super(Pie, self).__init__('pie') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2230,238 +1859,78 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Pie constructor must be a dict or -an instance of :class:`plotly.graph_objs.Pie`""" - ) +an instance of :class:`plotly.graph_objs.Pie`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("automargin", None) - _v = automargin if automargin is not None else _v - if _v is not None: - self["automargin"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("direction", None) - _v = direction if direction is not None else _v - if _v is not None: - self["direction"] = _v - _v = arg.pop("dlabel", None) - _v = dlabel if dlabel is not None else _v - if _v is not None: - self["dlabel"] = _v - _v = arg.pop("domain", None) - _v = domain if domain is not None else _v - if _v is not None: - self["domain"] = _v - _v = arg.pop("hole", None) - _v = hole if hole is not None else _v - if _v is not None: - self["hole"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("insidetextfont", None) - _v = insidetextfont if insidetextfont is not None else _v - if _v is not None: - self["insidetextfont"] = _v - _v = arg.pop("insidetextorientation", None) - _v = insidetextorientation if insidetextorientation is not None else _v - if _v is not None: - self["insidetextorientation"] = _v - _v = arg.pop("label0", None) - _v = label0 if label0 is not None else _v - if _v is not None: - self["label0"] = _v - _v = arg.pop("labels", None) - _v = labels if labels is not None else _v - if _v is not None: - self["labels"] = _v - _v = arg.pop("labelssrc", None) - _v = labelssrc if labelssrc is not None else _v - if _v is not None: - self["labelssrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("outsidetextfont", None) - _v = outsidetextfont if outsidetextfont is not None else _v - if _v is not None: - self["outsidetextfont"] = _v - _v = arg.pop("pull", None) - _v = pull if pull is not None else _v - if _v is not None: - self["pull"] = _v - _v = arg.pop("pullsrc", None) - _v = pullsrc if pullsrc is not None else _v - if _v is not None: - self["pullsrc"] = _v - _v = arg.pop("rotation", None) - _v = rotation if rotation is not None else _v - if _v is not None: - self["rotation"] = _v - _v = arg.pop("scalegroup", None) - _v = scalegroup if scalegroup is not None else _v - if _v is not None: - self["scalegroup"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("sort", None) - _v = sort if sort is not None else _v - if _v is not None: - self["sort"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v - _v = arg.pop("textinfo", None) - _v = textinfo if textinfo is not None else _v - if _v is not None: - self["textinfo"] = _v - _v = arg.pop("textposition", None) - _v = textposition if textposition is not None else _v - if _v is not None: - self["textposition"] = _v - _v = arg.pop("textpositionsrc", None) - _v = textpositionsrc if textpositionsrc is not None else _v - if _v is not None: - self["textpositionsrc"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("texttemplate", None) - _v = texttemplate if texttemplate is not None else _v - if _v is not None: - self["texttemplate"] = _v - _v = arg.pop("texttemplatesrc", None) - _v = texttemplatesrc if texttemplatesrc is not None else _v - if _v is not None: - self["texttemplatesrc"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("values", None) - _v = values if values is not None else _v - if _v is not None: - self["values"] = _v - _v = arg.pop("valuessrc", None) - _v = valuessrc if valuessrc is not None else _v - if _v is not None: - self["valuessrc"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('automargin', arg, automargin) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('direction', arg, direction) + self._init_provided('dlabel', arg, dlabel) + self._init_provided('domain', arg, domain) + self._init_provided('hole', arg, hole) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('insidetextfont', arg, insidetextfont) + self._init_provided('insidetextorientation', arg, insidetextorientation) + self._init_provided('label0', arg, label0) + self._init_provided('labels', arg, labels) + self._init_provided('labelssrc', arg, labelssrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('marker', arg, marker) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('outsidetextfont', arg, outsidetextfont) + self._init_provided('pull', arg, pull) + self._init_provided('pullsrc', arg, pullsrc) + self._init_provided('rotation', arg, rotation) + self._init_provided('scalegroup', arg, scalegroup) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('sort', arg, sort) + self._init_provided('stream', arg, stream) + self._init_provided('text', arg, text) + self._init_provided('textfont', arg, textfont) + self._init_provided('textinfo', arg, textinfo) + self._init_provided('textposition', arg, textposition) + self._init_provided('textpositionsrc', arg, textpositionsrc) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('texttemplate', arg, texttemplate) + self._init_provided('texttemplatesrc', arg, texttemplatesrc) + self._init_provided('title', arg, title) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('values', arg, values) + self._init_provided('valuessrc', arg, valuessrc) + self._init_provided('visible', arg, visible) # Read-only literals # ------------------ - self._props["type"] = "pie" - arg.pop("type", None) + self._props['type'] = 'pie' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_sankey.py b/packages/python/plotly/plotly/graph_objs/_sankey.py index 0baeb303eb3..958f1f602bc 100644 --- a/packages/python/plotly/plotly/graph_objs/_sankey.py +++ b/packages/python/plotly/plotly/graph_objs/_sankey.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,37 +8,9 @@ class Sankey(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "sankey" - _valid_props = { - "arrangement", - "customdata", - "customdatasrc", - "domain", - "hoverinfo", - "hoverlabel", - "ids", - "idssrc", - "legend", - "legendgrouptitle", - "legendrank", - "legendwidth", - "link", - "meta", - "metasrc", - "name", - "node", - "orientation", - "selectedpoints", - "stream", - "textfont", - "type", - "uid", - "uirevision", - "valueformat", - "valuesuffix", - "visible", - } + _parent_path_str = '' + _path_str = 'sankey' + _valid_props = {"arrangement", "customdata", "customdatasrc", "domain", "hoverinfo", "hoverlabel", "ids", "idssrc", "legend", "legendgrouptitle", "legendrank", "legendwidth", "link", "meta", "metasrc", "name", "node", "orientation", "selectedpoints", "stream", "textfont", "type", "uid", "uirevision", "valueformat", "valuesuffix", "visible"} # arrangement # ----------- @@ -59,11 +33,11 @@ def arrangement(self): ------- Any """ - return self["arrangement"] + return self['arrangement'] @arrangement.setter def arrangement(self, val): - self["arrangement"] = val + self['arrangement'] = val # customdata # ---------- @@ -82,11 +56,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -103,11 +77,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # domain # ------ @@ -120,30 +94,15 @@ def domain(self): - A dict of string/value properties that will be passed to the Domain constructor - Supported dict properties: - - column - If there is a layout grid, use the domain for - this column in the grid for this sankey trace . - row - If there is a layout grid, use the domain for - this row in the grid for this sankey trace . - x - Sets the horizontal domain of this sankey trace - (in plot fraction). - y - Sets the vertical domain of this sankey trace - (in plot fraction). - Returns ------- plotly.graph_objs.sankey.Domain """ - return self["domain"] + return self['domain'] @domain.setter def domain(self, val): - self["domain"] = val + self['domain'] = val # hoverinfo # --------- @@ -166,11 +125,11 @@ def hoverinfo(self): ------- Any """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverlabel # ---------- @@ -183,53 +142,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.sankey.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # ids # --- @@ -247,11 +168,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -267,11 +188,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # legend # ------ @@ -292,11 +213,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgrouptitle # ---------------- @@ -309,22 +230,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.sankey.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -347,11 +261,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -368,11 +282,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # link # ---- @@ -387,128 +301,15 @@ def link(self): - A dict of string/value properties that will be passed to the Link constructor - Supported dict properties: - - arrowlen - Sets the length (in px) of the links arrow, if - 0 no arrow will be drawn. - color - Sets the `link` color. It can be a single - value, or an array for specifying color for - each `link`. If `link.color` is omitted, then - by default, a translucent grey link will be - used. - colorscales - A tuple of :class:`plotly.graph_objects.sankey. - link.Colorscale` instances or dicts with - compatible properties - colorscaledefaults - When used in a template (as layout.template.dat - a.sankey.link.colorscaledefaults), sets the - default property values to use for elements of - sankey.link.colorscales - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - customdata - Assigns extra data to each link. - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - hovercolor - Sets the `link` hover color. It can be a single - value, or an array for specifying hover colors - for each `link`. If `link.hovercolor` is - omitted, then by default, links will become - slightly more opaque when hovered over. - hovercolorsrc - Sets the source reference on Chart Studio Cloud - for `hovercolor`. - hoverinfo - Determines which trace information appear when - hovering links. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverlabel - :class:`plotly.graph_objects.sankey.link.Hoverl - abel` instance or dict with compatible - properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Variables `source` and `target` are node - objects.Finally, the template string has access - to variables `value` and `label`. Anything - contained in tag `` is displayed in the - secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - label - The shown name of the link. - labelsrc - Sets the source reference on Chart Studio Cloud - for `label`. - line - :class:`plotly.graph_objects.sankey.link.Line` - instance or dict with compatible properties - source - An integer number `[0..nodes.length - 1]` that - represents the source node. - sourcesrc - Sets the source reference on Chart Studio Cloud - for `source`. - target - An integer number `[0..nodes.length - 1]` that - represents the target node. - targetsrc - Sets the source reference on Chart Studio Cloud - for `target`. - value - A numeric value representing the flow volume - value. - valuesrc - Sets the source reference on Chart Studio Cloud - for `value`. - Returns ------- plotly.graph_objs.sankey.Link """ - return self["link"] + return self['link'] @link.setter def link(self, val): - self["link"] = val + self['link'] = val # meta # ---- @@ -532,11 +333,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -552,11 +353,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -574,11 +375,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # node # ---- @@ -593,112 +394,15 @@ def node(self): - A dict of string/value properties that will be passed to the Node constructor - Supported dict properties: - - align - Sets the alignment method used to position the - nodes along the horizontal axis. - color - Sets the `node` color. It can be a single - value, or an array for specifying color for - each `node`. If `node.color` is omitted, then - the default `Plotly` color palette will be - cycled through to have a variety of colors. - These defaults are not fully opaque, to allow - some visibility of what is beneath the node. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - customdata - Assigns extra data to each node. - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - groups - Groups of nodes. Each group is defined by an - array with the indices of the nodes it - contains. Multiple groups can be specified. - hoverinfo - Determines which trace information appear when - hovering nodes. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverlabel - :class:`plotly.graph_objects.sankey.node.Hoverl - abel` instance or dict with compatible - properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Variables `sourceLinks` and `targetLinks` are - arrays of link objects.Finally, the template - string has access to variables `value` and - `label`. Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - label - The shown name of the node. - labelsrc - Sets the source reference on Chart Studio Cloud - for `label`. - line - :class:`plotly.graph_objects.sankey.node.Line` - instance or dict with compatible properties - pad - Sets the padding (in px) between the `nodes`. - thickness - Sets the thickness (in px) of the `nodes`. - x - The normalized horizontal position of the node. - xsrc - Sets the source reference on Chart Studio Cloud - for `x`. - y - The normalized vertical position of the node. - ysrc - Sets the source reference on Chart Studio Cloud - for `y`. - Returns ------- plotly.graph_objs.sankey.Node """ - return self["node"] + return self['node'] @node.setter def node(self, val): - self["node"] = val + self['node'] = val # orientation # ----------- @@ -715,11 +419,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # selectedpoints # -------------- @@ -739,11 +443,11 @@ def selectedpoints(self): ------- Any """ - return self["selectedpoints"] + return self['selectedpoints'] @selectedpoints.setter def selectedpoints(self, val): - self["selectedpoints"] = val + self['selectedpoints'] = val # stream # ------ @@ -756,27 +460,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.sankey.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # textfont # -------- @@ -791,61 +483,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.sankey.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # uid # --- @@ -863,11 +509,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -896,11 +542,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # valueformat # ----------- @@ -920,11 +566,11 @@ def valueformat(self): ------- str """ - return self["valueformat"] + return self['valueformat'] @valueformat.setter def valueformat(self, val): - self["valueformat"] = val + self['valueformat'] = val # valuesuffix # ----------- @@ -942,11 +588,11 @@ def valuesuffix(self): ------- str """ - return self["valuesuffix"] + return self['valuesuffix'] @valuesuffix.setter def valuesuffix(self, val): - self["valuesuffix"] = val + self['valuesuffix'] = val # visible # ------- @@ -965,17 +611,17 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -1115,38 +761,36 @@ def _prop_descriptions(self): a legend item (provided that the legend itself is visible). """ - - def __init__( - self, - arg=None, - arrangement=None, - customdata=None, - customdatasrc=None, - domain=None, - hoverinfo=None, - hoverlabel=None, - ids=None, - idssrc=None, - legend=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - link=None, - meta=None, - metasrc=None, - name=None, - node=None, - orientation=None, - selectedpoints=None, - stream=None, - textfont=None, - uid=None, - uirevision=None, - valueformat=None, - valuesuffix=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + arrangement=None, + customdata=None, + customdatasrc=None, + domain=None, + hoverinfo=None, + hoverlabel=None, + ids=None, + idssrc=None, + legend=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + link=None, + meta=None, + metasrc=None, + name=None, + node=None, + orientation=None, + selectedpoints=None, + stream=None, + textfont=None, + uid=None, + uirevision=None, + valueformat=None, + valuesuffix=None, + visible=None, + **kwargs + ): """ Construct a new Sankey object @@ -1297,10 +941,10 @@ def __init__( ------- Sankey """ - super(Sankey, self).__init__("sankey") + super(Sankey, self).__init__('sankey') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1312,130 +956,51 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Sankey constructor must be a dict or -an instance of :class:`plotly.graph_objs.Sankey`""" - ) +an instance of :class:`plotly.graph_objs.Sankey`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("arrangement", None) - _v = arrangement if arrangement is not None else _v - if _v is not None: - self["arrangement"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("domain", None) - _v = domain if domain is not None else _v - if _v is not None: - self["domain"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("link", None) - _v = link if link is not None else _v - if _v is not None: - self["link"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("node", None) - _v = node if node is not None else _v - if _v is not None: - self["node"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("selectedpoints", None) - _v = selectedpoints if selectedpoints is not None else _v - if _v is not None: - self["selectedpoints"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("valueformat", None) - _v = valueformat if valueformat is not None else _v - if _v is not None: - self["valueformat"] = _v - _v = arg.pop("valuesuffix", None) - _v = valuesuffix if valuesuffix is not None else _v - if _v is not None: - self["valuesuffix"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('arrangement', arg, arrangement) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('domain', arg, domain) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('link', arg, link) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('node', arg, node) + self._init_provided('orientation', arg, orientation) + self._init_provided('selectedpoints', arg, selectedpoints) + self._init_provided('stream', arg, stream) + self._init_provided('textfont', arg, textfont) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('valueformat', arg, valueformat) + self._init_provided('valuesuffix', arg, valuesuffix) + self._init_provided('visible', arg, visible) # Read-only literals # ------------------ - self._props["type"] = "sankey" - arg.pop("type", None) + self._props['type'] = 'sankey' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_scatter.py b/packages/python/plotly/plotly/graph_objs/_scatter.py index a7e3556f63f..438c11b0ed1 100644 --- a/packages/python/plotly/plotly/graph_objs/_scatter.py +++ b/packages/python/plotly/plotly/graph_objs/_scatter.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,85 +8,9 @@ class Scatter(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "scatter" - _valid_props = { - "alignmentgroup", - "cliponaxis", - "connectgaps", - "customdata", - "customdatasrc", - "dx", - "dy", - "error_x", - "error_y", - "fill", - "fillcolor", - "fillgradient", - "fillpattern", - "groupnorm", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hoveron", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "line", - "marker", - "meta", - "metasrc", - "mode", - "name", - "offsetgroup", - "opacity", - "orientation", - "selected", - "selectedpoints", - "showlegend", - "stackgaps", - "stackgroup", - "stream", - "text", - "textfont", - "textposition", - "textpositionsrc", - "textsrc", - "texttemplate", - "texttemplatesrc", - "type", - "uid", - "uirevision", - "unselected", - "visible", - "x", - "x0", - "xaxis", - "xcalendar", - "xhoverformat", - "xperiod", - "xperiod0", - "xperiodalignment", - "xsrc", - "y", - "y0", - "yaxis", - "ycalendar", - "yhoverformat", - "yperiod", - "yperiod0", - "yperiodalignment", - "ysrc", - "zorder", - } + _parent_path_str = '' + _path_str = 'scatter' + _valid_props = {"alignmentgroup", "cliponaxis", "connectgaps", "customdata", "customdatasrc", "dx", "dy", "error_x", "error_y", "fill", "fillcolor", "fillgradient", "fillpattern", "groupnorm", "hoverinfo", "hoverinfosrc", "hoverlabel", "hoveron", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "line", "marker", "meta", "metasrc", "mode", "name", "offsetgroup", "opacity", "orientation", "selected", "selectedpoints", "showlegend", "stackgaps", "stackgroup", "stream", "text", "textfont", "textposition", "textpositionsrc", "textsrc", "texttemplate", "texttemplatesrc", "type", "uid", "uirevision", "unselected", "visible", "x", "x0", "xaxis", "xcalendar", "xhoverformat", "xperiod", "xperiod0", "xperiodalignment", "xsrc", "y", "y0", "yaxis", "ycalendar", "yhoverformat", "yperiod", "yperiod0", "yperiodalignment", "ysrc", "zorder"} # alignmentgroup # -------------- @@ -103,11 +29,11 @@ def alignmentgroup(self): ------- str """ - return self["alignmentgroup"] + return self['alignmentgroup'] @alignmentgroup.setter def alignmentgroup(self, val): - self["alignmentgroup"] = val + self['alignmentgroup'] = val # cliponaxis # ---------- @@ -126,11 +52,11 @@ def cliponaxis(self): ------- bool """ - return self["cliponaxis"] + return self['cliponaxis'] @cliponaxis.setter def cliponaxis(self, val): - self["cliponaxis"] = val + self['cliponaxis'] = val # connectgaps # ----------- @@ -147,11 +73,11 @@ def connectgaps(self): ------- bool """ - return self["connectgaps"] + return self['connectgaps'] @connectgaps.setter def connectgaps(self, val): - self["connectgaps"] = val + self['connectgaps'] = val # customdata # ---------- @@ -170,11 +96,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -191,11 +117,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # dx # -- @@ -211,11 +137,11 @@ def dx(self): ------- int|float """ - return self["dx"] + return self['dx'] @dx.setter def dx(self, val): - self["dx"] = val + self['dx'] = val # dy # -- @@ -231,11 +157,11 @@ def dy(self): ------- int|float """ - return self["dy"] + return self['dy'] @dy.setter def dy(self, val): - self["dy"] = val + self['dy'] = val # error_x # ------- @@ -248,75 +174,15 @@ def error_x(self): - A dict of string/value properties that will be passed to the ErrorX constructor - Supported dict properties: - - array - Sets the data corresponding the length of each - error bar. Values are plotted relative to the - underlying data. - arrayminus - Sets the data corresponding the length of each - error bar in the bottom (left) direction for - vertical (horizontal) bars Values are plotted - relative to the underlying data. - arrayminussrc - Sets the source reference on Chart Studio Cloud - for `arrayminus`. - arraysrc - Sets the source reference on Chart Studio Cloud - for `array`. - color - Sets the stroke color of the error bars. - copy_ystyle - - symmetric - Determines whether or not the error bars have - the same length in both direction (top/bottom - for vertical bars, left/right for horizontal - bars. - thickness - Sets the thickness (in px) of the error bars. - traceref - - tracerefminus - - type - Determines the rule used to generate the error - bars. If *constant`, the bar lengths are of a - constant value. Set this constant in `value`. - If "percent", the bar lengths correspond to a - percentage of underlying data. Set this - percentage in `value`. If "sqrt", the bar - lengths correspond to the square of the - underlying data. If "data", the bar lengths are - set with data set `array`. - value - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars. - valueminus - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars in the bottom - (left) direction for vertical (horizontal) bars - visible - Determines whether or not this set of error - bars is visible. - width - Sets the width (in px) of the cross-bar at both - ends of the error bars. - Returns ------- plotly.graph_objs.scatter.ErrorX """ - return self["error_x"] + return self['error_x'] @error_x.setter def error_x(self, val): - self["error_x"] = val + self['error_x'] = val # error_y # ------- @@ -329,73 +195,15 @@ def error_y(self): - A dict of string/value properties that will be passed to the ErrorY constructor - Supported dict properties: - - array - Sets the data corresponding the length of each - error bar. Values are plotted relative to the - underlying data. - arrayminus - Sets the data corresponding the length of each - error bar in the bottom (left) direction for - vertical (horizontal) bars Values are plotted - relative to the underlying data. - arrayminussrc - Sets the source reference on Chart Studio Cloud - for `arrayminus`. - arraysrc - Sets the source reference on Chart Studio Cloud - for `array`. - color - Sets the stroke color of the error bars. - symmetric - Determines whether or not the error bars have - the same length in both direction (top/bottom - for vertical bars, left/right for horizontal - bars. - thickness - Sets the thickness (in px) of the error bars. - traceref - - tracerefminus - - type - Determines the rule used to generate the error - bars. If *constant`, the bar lengths are of a - constant value. Set this constant in `value`. - If "percent", the bar lengths correspond to a - percentage of underlying data. Set this - percentage in `value`. If "sqrt", the bar - lengths correspond to the square of the - underlying data. If "data", the bar lengths are - set with data set `array`. - value - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars. - valueminus - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars in the bottom - (left) direction for vertical (horizontal) bars - visible - Determines whether or not this set of error - bars is visible. - width - Sets the width (in px) of the cross-bar at both - ends of the error bars. - Returns ------- plotly.graph_objs.scatter.ErrorY """ - return self["error_y"] + return self['error_y'] @error_y.setter def error_y(self, val): - self["error_y"] = val + self['error_y'] = val # fill # ---- @@ -431,11 +239,11 @@ def fill(self): ------- Any """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # fillcolor # --------- @@ -453,52 +261,17 @@ def fillcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["fillcolor"] + return self['fillcolor'] @fillcolor.setter def fillcolor(self, val): - self["fillcolor"] = val + self['fillcolor'] = val # fillgradient # ------------ @@ -514,47 +287,15 @@ def fillgradient(self): - A dict of string/value properties that will be passed to the Fillgradient constructor - Supported dict properties: - - colorscale - Sets the fill gradient colors as a color scale. - The color scale is interpreted as a gradient - applied in the direction specified by - "orientation", from the lowest to the highest - value of the scatter plot along that axis, or - from the center to the most distant point from - it, if orientation is "radial". - start - Sets the gradient start value. It is given as - the absolute position on the axis determined by - the orientiation. E.g., if orientation is - "horizontal", the gradient will be horizontal - and start from the x-position given by start. - If omitted, the gradient starts at the lowest - value of the trace along the respective axis. - Ignored if orientation is "radial". - stop - Sets the gradient end value. It is given as the - absolute position on the axis determined by the - orientiation. E.g., if orientation is - "horizontal", the gradient will be horizontal - and end at the x-position given by end. If - omitted, the gradient ends at the highest value - of the trace along the respective axis. Ignored - if orientation is "radial". - type - Sets the type/orientation of the color gradient - for the fill. Defaults to "none". - Returns ------- plotly.graph_objs.scatter.Fillgradient """ - return self["fillgradient"] + return self['fillgradient'] @fillgradient.setter def fillgradient(self, val): - self["fillgradient"] = val + self['fillgradient'] = val # fillpattern # ----------- @@ -569,66 +310,15 @@ def fillpattern(self): - A dict of string/value properties that will be passed to the Fillpattern constructor - Supported dict properties: - - bgcolor - When there is no colorscale sets the color of - background pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "overlay". Otherwise, defaults to a transparent - background. - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - fgcolor - When there is no colorscale sets the color of - foreground pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "replace". Otherwise, defaults to dark grey or - white to increase contrast with the `bgcolor`. - fgcolorsrc - Sets the source reference on Chart Studio Cloud - for `fgcolor`. - fgopacity - Sets the opacity of the foreground pattern - fill. Defaults to a 0.5 when `fillmode` is - "overlay". Otherwise, defaults to 1. - fillmode - Determines whether `marker.color` should be - used as a default to `bgcolor` or a `fgcolor`. - shape - Sets the shape of the pattern fill. By default, - no pattern is used for filling the area. - shapesrc - Sets the source reference on Chart Studio Cloud - for `shape`. - size - Sets the size of unit squares of the pattern - fill in pixels, which corresponds to the - interval of repetition of the pattern. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - solidity - Sets the solidity of the pattern fill. Solidity - is roughly the fraction of the area filled by - the pattern. Solidity of 0 shows only the - background color without pattern and solidty of - 1 shows only the foreground color without - pattern. - soliditysrc - Sets the source reference on Chart Studio Cloud - for `solidity`. - Returns ------- plotly.graph_objs.scatter.Fillpattern """ - return self["fillpattern"] + return self['fillpattern'] @fillpattern.setter def fillpattern(self, val): - self["fillpattern"] = val + self['fillpattern'] = val # groupnorm # --------- @@ -653,11 +343,11 @@ def groupnorm(self): ------- Any """ - return self["groupnorm"] + return self['groupnorm'] @groupnorm.setter def groupnorm(self, val): - self["groupnorm"] = val + self['groupnorm'] = val # hoverinfo # --------- @@ -679,11 +369,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -700,11 +390,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -717,53 +407,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.scatter.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hoveron # ------- @@ -784,11 +436,11 @@ def hoveron(self): ------- Any """ - return self["hoveron"] + return self['hoveron'] @hoveron.setter def hoveron(self, val): - self["hoveron"] = val + self['hoveron'] = val # hovertemplate # ------------- @@ -828,11 +480,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -849,11 +501,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -875,11 +527,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -896,11 +548,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -918,11 +570,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -938,11 +590,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # legend # ------ @@ -963,11 +615,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -986,11 +638,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -1003,22 +655,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.scatter.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -1041,11 +686,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -1062,11 +707,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # line # ---- @@ -1079,53 +724,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - backoff - Sets the line back off from the end point of - the nth line segment (in px). This option is - useful e.g. to avoid overlap with arrowhead - markers. With "auto" the lines would trim - before markers if `marker.angleref` is set to - "previous". - backoffsrc - Sets the source reference on Chart Studio Cloud - for `backoff`. - color - Sets the line color. - dash - 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"). - shape - Determines the line shape. With "spline" the - lines are drawn using spline interpolation. The - other available values correspond to step-wise - line shapes. - simplify - Simplifies lines by removing nearly-collinear - points. When transitioning lines, it may be - desirable to disable this so that the number of - points along the resulting SVG path is - unaffected. - smoothing - Has an effect only if `shape` is set to - "spline" Sets the amount of smoothing. 0 - corresponds to no smoothing (equivalent to a - "linear" shape). - width - Sets the line width (in px). - Returns ------- plotly.graph_objs.scatter.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # marker # ------ @@ -1138,167 +745,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - angle - Sets the marker angle in respect to `angleref`. - angleref - Sets the reference for marker angle. With - "previous", angle 0 points along the line from - the previous point to this one. With "up", - angle 0 points toward the top of the screen. - anglesrc - Sets the source reference on Chart Studio Cloud - for `angle`. - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.scatter.marker.Col - orBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - gradient - :class:`plotly.graph_objects.scatter.marker.Gra - dient` instance or dict with compatible - properties - line - :class:`plotly.graph_objects.scatter.marker.Lin - e` instance or dict with compatible properties - maxdisplayed - Sets a maximum number of points to be drawn on - the graph. 0 corresponds to no limit. - opacity - Sets the marker opacity. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. - size - Sets the marker size (in px). - sizemin - Has an effect only if `marker.size` is set to a - numerical array. Sets the minimum size (in px) - of the rendered marker points. - sizemode - Has an effect only if `marker.size` is set to a - numerical array. Sets the rule for which the - data in `size` is converted to pixels. - sizeref - Has an effect only if `marker.size` is set to a - numerical array. Sets the scale factor used to - determine the rendered size of marker points. - Use with `sizemin` and `sizemode`. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - standoff - Moves the marker away from the data point in - the direction of `angle` (in px). This can be - useful for example if you have another marker - at this location and you want to point an - arrowhead marker at it. - standoffsrc - Sets the source reference on Chart Studio Cloud - for `standoff`. - symbol - Sets the marker symbol type. Adding 100 is - equivalent to appending "-open" to a symbol - name. Adding 200 is equivalent to appending - "-dot" to a symbol name. Adding 300 is - equivalent to appending "-open-dot" or "dot- - open" to a symbol name. - symbolsrc - Sets the source reference on Chart Studio Cloud - for `symbol`. - Returns ------- plotly.graph_objs.scatter.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # meta # ---- @@ -1322,11 +777,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -1342,11 +797,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # mode # ---- @@ -1370,11 +825,11 @@ def mode(self): ------- Any """ - return self["mode"] + return self['mode'] @mode.setter def mode(self, val): - self["mode"] = val + self['mode'] = val # name # ---- @@ -1392,11 +847,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # offsetgroup # ----------- @@ -1415,11 +870,11 @@ def offsetgroup(self): ------- str """ - return self["offsetgroup"] + return self['offsetgroup'] @offsetgroup.setter def offsetgroup(self, val): - self["offsetgroup"] = val + self['offsetgroup'] = val # opacity # ------- @@ -1435,11 +890,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # orientation # ----------- @@ -1462,11 +917,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # selected # -------- @@ -1479,26 +934,15 @@ def selected(self): - A dict of string/value properties that will be passed to the Selected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.scatter.selected.M - arker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.scatter.selected.T - extfont` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.scatter.Selected """ - return self["selected"] + return self['selected'] @selected.setter def selected(self, val): - self["selected"] = val + self['selected'] = val # selectedpoints # -------------- @@ -1518,11 +962,11 @@ def selectedpoints(self): ------- Any """ - return self["selectedpoints"] + return self['selectedpoints'] @selectedpoints.setter def selectedpoints(self, val): - self["selectedpoints"] = val + self['selectedpoints'] = val # showlegend # ---------- @@ -1539,11 +983,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # stackgaps # --------- @@ -1567,11 +1011,11 @@ def stackgaps(self): ------- Any """ - return self["stackgaps"] + return self['stackgaps'] @stackgaps.setter def stackgaps(self, val): - self["stackgaps"] = val + self['stackgaps'] = val # stackgroup # ---------- @@ -1599,11 +1043,11 @@ def stackgroup(self): ------- str """ - return self["stackgroup"] + return self['stackgroup'] @stackgroup.setter def stackgroup(self, val): - self["stackgroup"] = val + self['stackgroup'] = val # stream # ------ @@ -1616,27 +1060,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.scatter.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # text # ---- @@ -1659,11 +1091,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textfont # -------- @@ -1678,88 +1110,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.scatter.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # textposition # ------------ @@ -1780,11 +1139,11 @@ def textposition(self): ------- Any|numpy.ndarray """ - return self["textposition"] + return self['textposition'] @textposition.setter def textposition(self, val): - self["textposition"] = val + self['textposition'] = val # textpositionsrc # --------------- @@ -1801,11 +1160,11 @@ def textpositionsrc(self): ------- str """ - return self["textpositionsrc"] + return self['textpositionsrc'] @textpositionsrc.setter def textpositionsrc(self, val): - self["textpositionsrc"] = val + self['textpositionsrc'] = val # textsrc # ------- @@ -1821,11 +1180,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # texttemplate # ------------ @@ -1854,11 +1213,11 @@ def texttemplate(self): ------- str|numpy.ndarray """ - return self["texttemplate"] + return self['texttemplate'] @texttemplate.setter def texttemplate(self, val): - self["texttemplate"] = val + self['texttemplate'] = val # texttemplatesrc # --------------- @@ -1875,11 +1234,11 @@ def texttemplatesrc(self): ------- str """ - return self["texttemplatesrc"] + return self['texttemplatesrc'] @texttemplatesrc.setter def texttemplatesrc(self, val): - self["texttemplatesrc"] = val + self['texttemplatesrc'] = val # uid # --- @@ -1897,11 +1256,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1930,11 +1289,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # unselected # ---------- @@ -1947,26 +1306,15 @@ def unselected(self): - A dict of string/value properties that will be passed to the Unselected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.scatter.unselected - .Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.scatter.unselected - .Textfont` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.scatter.Unselected """ - return self["unselected"] + return self['unselected'] @unselected.setter def unselected(self, val): - self["unselected"] = val + self['unselected'] = val # visible # ------- @@ -1985,11 +1333,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # x # - @@ -2005,11 +1353,11 @@ def x(self): ------- numpy.ndarray """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # x0 # -- @@ -2026,11 +1374,11 @@ def x0(self): ------- Any """ - return self["x0"] + return self['x0'] @x0.setter def x0(self, val): - self["x0"] = val + self['x0'] = val # xaxis # ----- @@ -2051,11 +1399,11 @@ def xaxis(self): ------- str """ - return self["xaxis"] + return self['xaxis'] @xaxis.setter def xaxis(self, val): - self["xaxis"] = val + self['xaxis'] = val # xcalendar # --------- @@ -2075,11 +1423,11 @@ def xcalendar(self): ------- Any """ - return self["xcalendar"] + return self['xcalendar'] @xcalendar.setter def xcalendar(self, val): - self["xcalendar"] = val + self['xcalendar'] = val # xhoverformat # ------------ @@ -2106,11 +1454,11 @@ def xhoverformat(self): ------- str """ - return self["xhoverformat"] + return self['xhoverformat'] @xhoverformat.setter def xhoverformat(self, val): - self["xhoverformat"] = val + self['xhoverformat'] = val # xperiod # ------- @@ -2128,11 +1476,11 @@ def xperiod(self): ------- Any """ - return self["xperiod"] + return self['xperiod'] @xperiod.setter def xperiod(self, val): - self["xperiod"] = val + self['xperiod'] = val # xperiod0 # -------- @@ -2151,11 +1499,11 @@ def xperiod0(self): ------- Any """ - return self["xperiod0"] + return self['xperiod0'] @xperiod0.setter def xperiod0(self, val): - self["xperiod0"] = val + self['xperiod0'] = val # xperiodalignment # ---------------- @@ -2173,11 +1521,11 @@ def xperiodalignment(self): ------- Any """ - return self["xperiodalignment"] + return self['xperiodalignment'] @xperiodalignment.setter def xperiodalignment(self, val): - self["xperiodalignment"] = val + self['xperiodalignment'] = val # xsrc # ---- @@ -2193,11 +1541,11 @@ def xsrc(self): ------- str """ - return self["xsrc"] + return self['xsrc'] @xsrc.setter def xsrc(self, val): - self["xsrc"] = val + self['xsrc'] = val # y # - @@ -2213,11 +1561,11 @@ def y(self): ------- numpy.ndarray """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # y0 # -- @@ -2234,11 +1582,11 @@ def y0(self): ------- Any """ - return self["y0"] + return self['y0'] @y0.setter def y0(self, val): - self["y0"] = val + self['y0'] = val # yaxis # ----- @@ -2259,11 +1607,11 @@ def yaxis(self): ------- str """ - return self["yaxis"] + return self['yaxis'] @yaxis.setter def yaxis(self, val): - self["yaxis"] = val + self['yaxis'] = val # ycalendar # --------- @@ -2283,11 +1631,11 @@ def ycalendar(self): ------- Any """ - return self["ycalendar"] + return self['ycalendar'] @ycalendar.setter def ycalendar(self, val): - self["ycalendar"] = val + self['ycalendar'] = val # yhoverformat # ------------ @@ -2314,11 +1662,11 @@ def yhoverformat(self): ------- str """ - return self["yhoverformat"] + return self['yhoverformat'] @yhoverformat.setter def yhoverformat(self, val): - self["yhoverformat"] = val + self['yhoverformat'] = val # yperiod # ------- @@ -2336,11 +1684,11 @@ def yperiod(self): ------- Any """ - return self["yperiod"] + return self['yperiod'] @yperiod.setter def yperiod(self, val): - self["yperiod"] = val + self['yperiod'] = val # yperiod0 # -------- @@ -2359,11 +1707,11 @@ def yperiod0(self): ------- Any """ - return self["yperiod0"] + return self['yperiod0'] @yperiod0.setter def yperiod0(self, val): - self["yperiod0"] = val + self['yperiod0'] = val # yperiodalignment # ---------------- @@ -2381,11 +1729,11 @@ def yperiodalignment(self): ------- Any """ - return self["yperiodalignment"] + return self['yperiodalignment'] @yperiodalignment.setter def yperiodalignment(self, val): - self["yperiodalignment"] = val + self['yperiodalignment'] = val # ysrc # ---- @@ -2401,11 +1749,11 @@ def ysrc(self): ------- str """ - return self["ysrc"] + return self['ysrc'] @ysrc.setter def ysrc(self, val): - self["ysrc"] = val + self['ysrc'] = val # zorder # ------ @@ -2423,17 +1771,17 @@ def zorder(self): ------- int """ - return self["zorder"] + return self['zorder'] @zorder.setter def zorder(self, val): - self["zorder"] = val + self['zorder'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -2860,86 +2208,84 @@ def _prop_descriptions(self): traces with higher `zorder` appear in front of those with lower `zorder`. """ - - def __init__( - self, - arg=None, - alignmentgroup=None, - cliponaxis=None, - connectgaps=None, - customdata=None, - customdatasrc=None, - dx=None, - dy=None, - error_x=None, - error_y=None, - fill=None, - fillcolor=None, - fillgradient=None, - fillpattern=None, - groupnorm=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hoveron=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - offsetgroup=None, - opacity=None, - orientation=None, - selected=None, - selectedpoints=None, - showlegend=None, - stackgaps=None, - stackgroup=None, - stream=None, - text=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - x=None, - x0=None, - xaxis=None, - xcalendar=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - y=None, - y0=None, - yaxis=None, - ycalendar=None, - yhoverformat=None, - yperiod=None, - yperiod0=None, - yperiodalignment=None, - ysrc=None, - zorder=None, - **kwargs, - ): + def __init__(self, + arg=None, + alignmentgroup=None, + cliponaxis=None, + connectgaps=None, + customdata=None, + customdatasrc=None, + dx=None, + dy=None, + error_x=None, + error_y=None, + fill=None, + fillcolor=None, + fillgradient=None, + fillpattern=None, + groupnorm=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hoveron=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + offsetgroup=None, + opacity=None, + orientation=None, + selected=None, + selectedpoints=None, + showlegend=None, + stackgaps=None, + stackgroup=None, + stream=None, + text=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + x=None, + x0=None, + xaxis=None, + xcalendar=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + y=None, + y0=None, + yaxis=None, + ycalendar=None, + yhoverformat=None, + yperiod=None, + yperiod0=None, + yperiodalignment=None, + ysrc=None, + zorder=None, + **kwargs + ): """ Construct a new Scatter object @@ -3379,10 +2725,10 @@ def __init__( ------- Scatter """ - super(Scatter, self).__init__("scatter") + super(Scatter, self).__init__('scatter') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -3394,322 +2740,99 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Scatter constructor must be a dict or -an instance of :class:`plotly.graph_objs.Scatter`""" - ) +an instance of :class:`plotly.graph_objs.Scatter`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("alignmentgroup", None) - _v = alignmentgroup if alignmentgroup is not None else _v - if _v is not None: - self["alignmentgroup"] = _v - _v = arg.pop("cliponaxis", None) - _v = cliponaxis if cliponaxis is not None else _v - if _v is not None: - self["cliponaxis"] = _v - _v = arg.pop("connectgaps", None) - _v = connectgaps if connectgaps is not None else _v - if _v is not None: - self["connectgaps"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("dx", None) - _v = dx if dx is not None else _v - if _v is not None: - self["dx"] = _v - _v = arg.pop("dy", None) - _v = dy if dy is not None else _v - if _v is not None: - self["dy"] = _v - _v = arg.pop("error_x", None) - _v = error_x if error_x is not None else _v - if _v is not None: - self["error_x"] = _v - _v = arg.pop("error_y", None) - _v = error_y if error_y is not None else _v - if _v is not None: - self["error_y"] = _v - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("fillcolor", None) - _v = fillcolor if fillcolor is not None else _v - if _v is not None: - self["fillcolor"] = _v - _v = arg.pop("fillgradient", None) - _v = fillgradient if fillgradient is not None else _v - if _v is not None: - self["fillgradient"] = _v - _v = arg.pop("fillpattern", None) - _v = fillpattern if fillpattern is not None else _v - if _v is not None: - self["fillpattern"] = _v - _v = arg.pop("groupnorm", None) - _v = groupnorm if groupnorm is not None else _v - if _v is not None: - self["groupnorm"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hoveron", None) - _v = hoveron if hoveron is not None else _v - if _v is not None: - self["hoveron"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("mode", None) - _v = mode if mode is not None else _v - if _v is not None: - self["mode"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("offsetgroup", None) - _v = offsetgroup if offsetgroup is not None else _v - if _v is not None: - self["offsetgroup"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("selected", None) - _v = selected if selected is not None else _v - if _v is not None: - self["selected"] = _v - _v = arg.pop("selectedpoints", None) - _v = selectedpoints if selectedpoints is not None else _v - if _v is not None: - self["selectedpoints"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("stackgaps", None) - _v = stackgaps if stackgaps is not None else _v - if _v is not None: - self["stackgaps"] = _v - _v = arg.pop("stackgroup", None) - _v = stackgroup if stackgroup is not None else _v - if _v is not None: - self["stackgroup"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v - _v = arg.pop("textposition", None) - _v = textposition if textposition is not None else _v - if _v is not None: - self["textposition"] = _v - _v = arg.pop("textpositionsrc", None) - _v = textpositionsrc if textpositionsrc is not None else _v - if _v is not None: - self["textpositionsrc"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("texttemplate", None) - _v = texttemplate if texttemplate is not None else _v - if _v is not None: - self["texttemplate"] = _v - _v = arg.pop("texttemplatesrc", None) - _v = texttemplatesrc if texttemplatesrc is not None else _v - if _v is not None: - self["texttemplatesrc"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("unselected", None) - _v = unselected if unselected is not None else _v - if _v is not None: - self["unselected"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("x0", None) - _v = x0 if x0 is not None else _v - if _v is not None: - self["x0"] = _v - _v = arg.pop("xaxis", None) - _v = xaxis if xaxis is not None else _v - if _v is not None: - self["xaxis"] = _v - _v = arg.pop("xcalendar", None) - _v = xcalendar if xcalendar is not None else _v - if _v is not None: - self["xcalendar"] = _v - _v = arg.pop("xhoverformat", None) - _v = xhoverformat if xhoverformat is not None else _v - if _v is not None: - self["xhoverformat"] = _v - _v = arg.pop("xperiod", None) - _v = xperiod if xperiod is not None else _v - if _v is not None: - self["xperiod"] = _v - _v = arg.pop("xperiod0", None) - _v = xperiod0 if xperiod0 is not None else _v - if _v is not None: - self["xperiod0"] = _v - _v = arg.pop("xperiodalignment", None) - _v = xperiodalignment if xperiodalignment is not None else _v - if _v is not None: - self["xperiodalignment"] = _v - _v = arg.pop("xsrc", None) - _v = xsrc if xsrc is not None else _v - if _v is not None: - self["xsrc"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("y0", None) - _v = y0 if y0 is not None else _v - if _v is not None: - self["y0"] = _v - _v = arg.pop("yaxis", None) - _v = yaxis if yaxis is not None else _v - if _v is not None: - self["yaxis"] = _v - _v = arg.pop("ycalendar", None) - _v = ycalendar if ycalendar is not None else _v - if _v is not None: - self["ycalendar"] = _v - _v = arg.pop("yhoverformat", None) - _v = yhoverformat if yhoverformat is not None else _v - if _v is not None: - self["yhoverformat"] = _v - _v = arg.pop("yperiod", None) - _v = yperiod if yperiod is not None else _v - if _v is not None: - self["yperiod"] = _v - _v = arg.pop("yperiod0", None) - _v = yperiod0 if yperiod0 is not None else _v - if _v is not None: - self["yperiod0"] = _v - _v = arg.pop("yperiodalignment", None) - _v = yperiodalignment if yperiodalignment is not None else _v - if _v is not None: - self["yperiodalignment"] = _v - _v = arg.pop("ysrc", None) - _v = ysrc if ysrc is not None else _v - if _v is not None: - self["ysrc"] = _v - _v = arg.pop("zorder", None) - _v = zorder if zorder is not None else _v - if _v is not None: - self["zorder"] = _v + self._init_provided('alignmentgroup', arg, alignmentgroup) + self._init_provided('cliponaxis', arg, cliponaxis) + self._init_provided('connectgaps', arg, connectgaps) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('dx', arg, dx) + self._init_provided('dy', arg, dy) + self._init_provided('error_x', arg, error_x) + self._init_provided('error_y', arg, error_y) + self._init_provided('fill', arg, fill) + self._init_provided('fillcolor', arg, fillcolor) + self._init_provided('fillgradient', arg, fillgradient) + self._init_provided('fillpattern', arg, fillpattern) + self._init_provided('groupnorm', arg, groupnorm) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hoveron', arg, hoveron) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('line', arg, line) + self._init_provided('marker', arg, marker) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('mode', arg, mode) + self._init_provided('name', arg, name) + self._init_provided('offsetgroup', arg, offsetgroup) + self._init_provided('opacity', arg, opacity) + self._init_provided('orientation', arg, orientation) + self._init_provided('selected', arg, selected) + self._init_provided('selectedpoints', arg, selectedpoints) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('stackgaps', arg, stackgaps) + self._init_provided('stackgroup', arg, stackgroup) + self._init_provided('stream', arg, stream) + self._init_provided('text', arg, text) + self._init_provided('textfont', arg, textfont) + self._init_provided('textposition', arg, textposition) + self._init_provided('textpositionsrc', arg, textpositionsrc) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('texttemplate', arg, texttemplate) + self._init_provided('texttemplatesrc', arg, texttemplatesrc) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('unselected', arg, unselected) + self._init_provided('visible', arg, visible) + self._init_provided('x', arg, x) + self._init_provided('x0', arg, x0) + self._init_provided('xaxis', arg, xaxis) + self._init_provided('xcalendar', arg, xcalendar) + self._init_provided('xhoverformat', arg, xhoverformat) + self._init_provided('xperiod', arg, xperiod) + self._init_provided('xperiod0', arg, xperiod0) + self._init_provided('xperiodalignment', arg, xperiodalignment) + self._init_provided('xsrc', arg, xsrc) + self._init_provided('y', arg, y) + self._init_provided('y0', arg, y0) + self._init_provided('yaxis', arg, yaxis) + self._init_provided('ycalendar', arg, ycalendar) + self._init_provided('yhoverformat', arg, yhoverformat) + self._init_provided('yperiod', arg, yperiod) + self._init_provided('yperiod0', arg, yperiod0) + self._init_provided('yperiodalignment', arg, yperiodalignment) + self._init_provided('ysrc', arg, ysrc) + self._init_provided('zorder', arg, zorder) # Read-only literals # ------------------ - self._props["type"] = "scatter" - arg.pop("type", None) + self._props['type'] = 'scatter' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_scatter3d.py b/packages/python/plotly/plotly/graph_objs/_scatter3d.py index bb0094c9287..0752ad094c9 100644 --- a/packages/python/plotly/plotly/graph_objs/_scatter3d.py +++ b/packages/python/plotly/plotly/graph_objs/_scatter3d.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,66 +8,9 @@ class Scatter3d(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "scatter3d" - _valid_props = { - "connectgaps", - "customdata", - "customdatasrc", - "error_x", - "error_y", - "error_z", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "line", - "marker", - "meta", - "metasrc", - "mode", - "name", - "opacity", - "projection", - "scene", - "showlegend", - "stream", - "surfaceaxis", - "surfacecolor", - "text", - "textfont", - "textposition", - "textpositionsrc", - "textsrc", - "texttemplate", - "texttemplatesrc", - "type", - "uid", - "uirevision", - "visible", - "x", - "xcalendar", - "xhoverformat", - "xsrc", - "y", - "ycalendar", - "yhoverformat", - "ysrc", - "z", - "zcalendar", - "zhoverformat", - "zsrc", - } + _parent_path_str = '' + _path_str = 'scatter3d' + _valid_props = {"connectgaps", "customdata", "customdatasrc", "error_x", "error_y", "error_z", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "line", "marker", "meta", "metasrc", "mode", "name", "opacity", "projection", "scene", "showlegend", "stream", "surfaceaxis", "surfacecolor", "text", "textfont", "textposition", "textpositionsrc", "textsrc", "texttemplate", "texttemplatesrc", "type", "uid", "uirevision", "visible", "x", "xcalendar", "xhoverformat", "xsrc", "y", "ycalendar", "yhoverformat", "ysrc", "z", "zcalendar", "zhoverformat", "zsrc"} # connectgaps # ----------- @@ -82,11 +27,11 @@ def connectgaps(self): ------- bool """ - return self["connectgaps"] + return self['connectgaps'] @connectgaps.setter def connectgaps(self, val): - self["connectgaps"] = val + self['connectgaps'] = val # customdata # ---------- @@ -105,11 +50,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -126,11 +71,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # error_x # ------- @@ -143,75 +88,15 @@ def error_x(self): - A dict of string/value properties that will be passed to the ErrorX constructor - Supported dict properties: - - array - Sets the data corresponding the length of each - error bar. Values are plotted relative to the - underlying data. - arrayminus - Sets the data corresponding the length of each - error bar in the bottom (left) direction for - vertical (horizontal) bars Values are plotted - relative to the underlying data. - arrayminussrc - Sets the source reference on Chart Studio Cloud - for `arrayminus`. - arraysrc - Sets the source reference on Chart Studio Cloud - for `array`. - color - Sets the stroke color of the error bars. - copy_zstyle - - symmetric - Determines whether or not the error bars have - the same length in both direction (top/bottom - for vertical bars, left/right for horizontal - bars. - thickness - Sets the thickness (in px) of the error bars. - traceref - - tracerefminus - - type - Determines the rule used to generate the error - bars. If *constant`, the bar lengths are of a - constant value. Set this constant in `value`. - If "percent", the bar lengths correspond to a - percentage of underlying data. Set this - percentage in `value`. If "sqrt", the bar - lengths correspond to the square of the - underlying data. If "data", the bar lengths are - set with data set `array`. - value - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars. - valueminus - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars in the bottom - (left) direction for vertical (horizontal) bars - visible - Determines whether or not this set of error - bars is visible. - width - Sets the width (in px) of the cross-bar at both - ends of the error bars. - Returns ------- plotly.graph_objs.scatter3d.ErrorX """ - return self["error_x"] + return self['error_x'] @error_x.setter def error_x(self, val): - self["error_x"] = val + self['error_x'] = val # error_y # ------- @@ -224,75 +109,15 @@ def error_y(self): - A dict of string/value properties that will be passed to the ErrorY constructor - Supported dict properties: - - array - Sets the data corresponding the length of each - error bar. Values are plotted relative to the - underlying data. - arrayminus - Sets the data corresponding the length of each - error bar in the bottom (left) direction for - vertical (horizontal) bars Values are plotted - relative to the underlying data. - arrayminussrc - Sets the source reference on Chart Studio Cloud - for `arrayminus`. - arraysrc - Sets the source reference on Chart Studio Cloud - for `array`. - color - Sets the stroke color of the error bars. - copy_zstyle - - symmetric - Determines whether or not the error bars have - the same length in both direction (top/bottom - for vertical bars, left/right for horizontal - bars. - thickness - Sets the thickness (in px) of the error bars. - traceref - - tracerefminus - - type - Determines the rule used to generate the error - bars. If *constant`, the bar lengths are of a - constant value. Set this constant in `value`. - If "percent", the bar lengths correspond to a - percentage of underlying data. Set this - percentage in `value`. If "sqrt", the bar - lengths correspond to the square of the - underlying data. If "data", the bar lengths are - set with data set `array`. - value - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars. - valueminus - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars in the bottom - (left) direction for vertical (horizontal) bars - visible - Determines whether or not this set of error - bars is visible. - width - Sets the width (in px) of the cross-bar at both - ends of the error bars. - Returns ------- plotly.graph_objs.scatter3d.ErrorY """ - return self["error_y"] + return self['error_y'] @error_y.setter def error_y(self, val): - self["error_y"] = val + self['error_y'] = val # error_z # ------- @@ -305,73 +130,15 @@ def error_z(self): - A dict of string/value properties that will be passed to the ErrorZ constructor - Supported dict properties: - - array - Sets the data corresponding the length of each - error bar. Values are plotted relative to the - underlying data. - arrayminus - Sets the data corresponding the length of each - error bar in the bottom (left) direction for - vertical (horizontal) bars Values are plotted - relative to the underlying data. - arrayminussrc - Sets the source reference on Chart Studio Cloud - for `arrayminus`. - arraysrc - Sets the source reference on Chart Studio Cloud - for `array`. - color - Sets the stroke color of the error bars. - symmetric - Determines whether or not the error bars have - the same length in both direction (top/bottom - for vertical bars, left/right for horizontal - bars. - thickness - Sets the thickness (in px) of the error bars. - traceref - - tracerefminus - - type - Determines the rule used to generate the error - bars. If *constant`, the bar lengths are of a - constant value. Set this constant in `value`. - If "percent", the bar lengths correspond to a - percentage of underlying data. Set this - percentage in `value`. If "sqrt", the bar - lengths correspond to the square of the - underlying data. If "data", the bar lengths are - set with data set `array`. - value - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars. - valueminus - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars in the bottom - (left) direction for vertical (horizontal) bars - visible - Determines whether or not this set of error - bars is visible. - width - Sets the width (in px) of the cross-bar at both - ends of the error bars. - Returns ------- plotly.graph_objs.scatter3d.ErrorZ """ - return self["error_z"] + return self['error_z'] @error_z.setter def error_z(self, val): - self["error_z"] = val + self['error_z'] = val # hoverinfo # --------- @@ -393,11 +160,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -414,11 +181,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -431,53 +198,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.scatter3d.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -517,11 +246,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -538,11 +267,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -564,11 +293,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -585,11 +314,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -607,11 +336,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -627,11 +356,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # legend # ------ @@ -652,11 +381,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -675,11 +404,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -692,22 +421,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.scatter3d.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -730,11 +452,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -751,11 +473,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # line # ---- @@ -768,108 +490,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `line.colorscale`. Has an effect - only if in `line.color` is set to a numerical - array. In case `colorscale` is unspecified or - `autocolorscale` is true, the default palette - will be chosen according to whether numbers in - the `color` array are all positive, all - negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `line.color`) or the bounds set in - `line.cmin` and `line.cmax` Has an effect only - if in `line.color` is set to a numerical array. - Defaults to `false` when `line.cmin` and - `line.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `line.color` is set to a - numerical array. Value should have the same - units as in `line.color` and if set, - `line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `line.cmin` and/or `line.cmax` to be - equidistant to this point. Has an effect only - if in `line.color` is set to a numerical array. - Value should have the same units as in - `line.color`. Has no effect when `line.cauto` - is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `line.color` is set to a - numerical array. Value should have the same - units as in `line.color` and if set, - `line.cmax` must be set as well. - color - Sets the line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `line.cmin` and `line.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.scatter3d.line.Col - orBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `line.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `line.cmin` and `line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - dash - Sets the dash style of the lines. - reversescale - Reverses the color mapping if true. Has an - effect only if in `line.color` is set to a - numerical array. If true, `line.cmin` will - correspond to the last color in the array and - `line.cmax` will correspond to the first color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `line.color` is set to a numerical array. - width - Sets the line width (in px). - Returns ------- plotly.graph_objs.scatter3d.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # marker # ------ @@ -882,139 +511,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.scatter3d.marker.C - olorBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - line - :class:`plotly.graph_objects.scatter3d.marker.L - ine` instance or dict with compatible - properties - opacity - Sets the marker opacity. Note that the marker - opacity for scatter3d traces must be a scalar - value for performance reasons. To set a - blending opacity value (i.e. which is not - transparent), set "marker.color" to an rgba - color and use its alpha channel. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. - size - Sets the marker size (in px). - sizemin - Has an effect only if `marker.size` is set to a - numerical array. Sets the minimum size (in px) - of the rendered marker points. - sizemode - Has an effect only if `marker.size` is set to a - numerical array. Sets the rule for which the - data in `size` is converted to pixels. - sizeref - Has an effect only if `marker.size` is set to a - numerical array. Sets the scale factor used to - determine the rendered size of marker points. - Use with `sizemin` and `sizemode`. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - symbol - Sets the marker symbol type. - symbolsrc - Sets the source reference on Chart Studio Cloud - for `symbol`. - Returns ------- plotly.graph_objs.scatter3d.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # meta # ---- @@ -1038,11 +543,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -1058,11 +563,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # mode # ---- @@ -1086,11 +591,11 @@ def mode(self): ------- Any """ - return self["mode"] + return self['mode'] @mode.setter def mode(self, val): - self["mode"] = val + self['mode'] = val # name # ---- @@ -1108,11 +613,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -1128,11 +633,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # projection # ---------- @@ -1145,30 +650,15 @@ def projection(self): - A dict of string/value properties that will be passed to the Projection constructor - Supported dict properties: - - x - :class:`plotly.graph_objects.scatter3d.projecti - on.X` instance or dict with compatible - properties - y - :class:`plotly.graph_objects.scatter3d.projecti - on.Y` instance or dict with compatible - properties - z - :class:`plotly.graph_objects.scatter3d.projecti - on.Z` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.scatter3d.Projection """ - return self["projection"] + return self['projection'] @projection.setter def projection(self, val): - self["projection"] = val + self['projection'] = val # scene # ----- @@ -1189,11 +679,11 @@ def scene(self): ------- str """ - return self["scene"] + return self['scene'] @scene.setter def scene(self, val): - self["scene"] = val + self['scene'] = val # showlegend # ---------- @@ -1210,11 +700,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # stream # ------ @@ -1227,27 +717,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.scatter3d.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # surfaceaxis # ----------- @@ -1266,11 +744,11 @@ def surfaceaxis(self): ------- Any """ - return self["surfaceaxis"] + return self['surfaceaxis'] @surfaceaxis.setter def surfaceaxis(self, val): - self["surfaceaxis"] = val + self['surfaceaxis'] = val # surfacecolor # ------------ @@ -1284,52 +762,17 @@ def surfacecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["surfacecolor"] + return self['surfacecolor'] @surfacecolor.setter def surfacecolor(self, val): - self["surfacecolor"] = val + self['surfacecolor'] = val # text # ---- @@ -1352,11 +795,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textfont # -------- @@ -1371,64 +814,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.scatter3d.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # textposition # ------------ @@ -1449,11 +843,11 @@ def textposition(self): ------- Any|numpy.ndarray """ - return self["textposition"] + return self['textposition'] @textposition.setter def textposition(self, val): - self["textposition"] = val + self['textposition'] = val # textpositionsrc # --------------- @@ -1470,11 +864,11 @@ def textpositionsrc(self): ------- str """ - return self["textpositionsrc"] + return self['textpositionsrc'] @textpositionsrc.setter def textpositionsrc(self, val): - self["textpositionsrc"] = val + self['textpositionsrc'] = val # textsrc # ------- @@ -1490,11 +884,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # texttemplate # ------------ @@ -1523,11 +917,11 @@ def texttemplate(self): ------- str|numpy.ndarray """ - return self["texttemplate"] + return self['texttemplate'] @texttemplate.setter def texttemplate(self, val): - self["texttemplate"] = val + self['texttemplate'] = val # texttemplatesrc # --------------- @@ -1544,11 +938,11 @@ def texttemplatesrc(self): ------- str """ - return self["texttemplatesrc"] + return self['texttemplatesrc'] @texttemplatesrc.setter def texttemplatesrc(self, val): - self["texttemplatesrc"] = val + self['texttemplatesrc'] = val # uid # --- @@ -1566,11 +960,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1599,11 +993,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # visible # ------- @@ -1622,11 +1016,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # x # - @@ -1642,11 +1036,11 @@ def x(self): ------- numpy.ndarray """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xcalendar # --------- @@ -1666,11 +1060,11 @@ def xcalendar(self): ------- Any """ - return self["xcalendar"] + return self['xcalendar'] @xcalendar.setter def xcalendar(self, val): - self["xcalendar"] = val + self['xcalendar'] = val # xhoverformat # ------------ @@ -1697,11 +1091,11 @@ def xhoverformat(self): ------- str """ - return self["xhoverformat"] + return self['xhoverformat'] @xhoverformat.setter def xhoverformat(self, val): - self["xhoverformat"] = val + self['xhoverformat'] = val # xsrc # ---- @@ -1717,11 +1111,11 @@ def xsrc(self): ------- str """ - return self["xsrc"] + return self['xsrc'] @xsrc.setter def xsrc(self, val): - self["xsrc"] = val + self['xsrc'] = val # y # - @@ -1737,11 +1131,11 @@ def y(self): ------- numpy.ndarray """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # ycalendar # --------- @@ -1761,11 +1155,11 @@ def ycalendar(self): ------- Any """ - return self["ycalendar"] + return self['ycalendar'] @ycalendar.setter def ycalendar(self, val): - self["ycalendar"] = val + self['ycalendar'] = val # yhoverformat # ------------ @@ -1792,11 +1186,11 @@ def yhoverformat(self): ------- str """ - return self["yhoverformat"] + return self['yhoverformat'] @yhoverformat.setter def yhoverformat(self, val): - self["yhoverformat"] = val + self['yhoverformat'] = val # ysrc # ---- @@ -1812,11 +1206,11 @@ def ysrc(self): ------- str """ - return self["ysrc"] + return self['ysrc'] @ysrc.setter def ysrc(self, val): - self["ysrc"] = val + self['ysrc'] = val # z # - @@ -1832,11 +1226,11 @@ def z(self): ------- numpy.ndarray """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # zcalendar # --------- @@ -1856,11 +1250,11 @@ def zcalendar(self): ------- Any """ - return self["zcalendar"] + return self['zcalendar'] @zcalendar.setter def zcalendar(self, val): - self["zcalendar"] = val + self['zcalendar'] = val # zhoverformat # ------------ @@ -1887,11 +1281,11 @@ def zhoverformat(self): ------- str """ - return self["zhoverformat"] + return self['zhoverformat'] @zhoverformat.setter def zhoverformat(self, val): - self["zhoverformat"] = val + self['zhoverformat'] = val # zsrc # ---- @@ -1907,17 +1301,17 @@ def zsrc(self): ------- str """ - return self["zsrc"] + return self['zsrc'] @zsrc.setter def zsrc(self, val): - self["zsrc"] = val + self['zsrc'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -2211,67 +1605,65 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `z`. """ - - def __init__( - self, - arg=None, - connectgaps=None, - customdata=None, - customdatasrc=None, - error_x=None, - error_y=None, - error_z=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - projection=None, - scene=None, - showlegend=None, - stream=None, - surfaceaxis=None, - surfacecolor=None, - text=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - visible=None, - x=None, - xcalendar=None, - xhoverformat=None, - xsrc=None, - y=None, - ycalendar=None, - yhoverformat=None, - ysrc=None, - z=None, - zcalendar=None, - zhoverformat=None, - zsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + connectgaps=None, + customdata=None, + customdatasrc=None, + error_x=None, + error_y=None, + error_z=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + projection=None, + scene=None, + showlegend=None, + stream=None, + surfaceaxis=None, + surfacecolor=None, + text=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + visible=None, + x=None, + xcalendar=None, + xhoverformat=None, + xsrc=None, + y=None, + ycalendar=None, + yhoverformat=None, + ysrc=None, + z=None, + zcalendar=None, + zhoverformat=None, + zsrc=None, + **kwargs + ): """ Construct a new Scatter3d object @@ -2578,10 +1970,10 @@ def __init__( ------- Scatter3d """ - super(Scatter3d, self).__init__("scatter3d") + super(Scatter3d, self).__init__('scatter3d') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2593,246 +1985,80 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Scatter3d constructor must be a dict or -an instance of :class:`plotly.graph_objs.Scatter3d`""" - ) +an instance of :class:`plotly.graph_objs.Scatter3d`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("connectgaps", None) - _v = connectgaps if connectgaps is not None else _v - if _v is not None: - self["connectgaps"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("error_x", None) - _v = error_x if error_x is not None else _v - if _v is not None: - self["error_x"] = _v - _v = arg.pop("error_y", None) - _v = error_y if error_y is not None else _v - if _v is not None: - self["error_y"] = _v - _v = arg.pop("error_z", None) - _v = error_z if error_z is not None else _v - if _v is not None: - self["error_z"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("mode", None) - _v = mode if mode is not None else _v - if _v is not None: - self["mode"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("projection", None) - _v = projection if projection is not None else _v - if _v is not None: - self["projection"] = _v - _v = arg.pop("scene", None) - _v = scene if scene is not None else _v - if _v is not None: - self["scene"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("surfaceaxis", None) - _v = surfaceaxis if surfaceaxis is not None else _v - if _v is not None: - self["surfaceaxis"] = _v - _v = arg.pop("surfacecolor", None) - _v = surfacecolor if surfacecolor is not None else _v - if _v is not None: - self["surfacecolor"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v - _v = arg.pop("textposition", None) - _v = textposition if textposition is not None else _v - if _v is not None: - self["textposition"] = _v - _v = arg.pop("textpositionsrc", None) - _v = textpositionsrc if textpositionsrc is not None else _v - if _v is not None: - self["textpositionsrc"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("texttemplate", None) - _v = texttemplate if texttemplate is not None else _v - if _v is not None: - self["texttemplate"] = _v - _v = arg.pop("texttemplatesrc", None) - _v = texttemplatesrc if texttemplatesrc is not None else _v - if _v is not None: - self["texttemplatesrc"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xcalendar", None) - _v = xcalendar if xcalendar is not None else _v - if _v is not None: - self["xcalendar"] = _v - _v = arg.pop("xhoverformat", None) - _v = xhoverformat if xhoverformat is not None else _v - if _v is not None: - self["xhoverformat"] = _v - _v = arg.pop("xsrc", None) - _v = xsrc if xsrc is not None else _v - if _v is not None: - self["xsrc"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("ycalendar", None) - _v = ycalendar if ycalendar is not None else _v - if _v is not None: - self["ycalendar"] = _v - _v = arg.pop("yhoverformat", None) - _v = yhoverformat if yhoverformat is not None else _v - if _v is not None: - self["yhoverformat"] = _v - _v = arg.pop("ysrc", None) - _v = ysrc if ysrc is not None else _v - if _v is not None: - self["ysrc"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v - _v = arg.pop("zcalendar", None) - _v = zcalendar if zcalendar is not None else _v - if _v is not None: - self["zcalendar"] = _v - _v = arg.pop("zhoverformat", None) - _v = zhoverformat if zhoverformat is not None else _v - if _v is not None: - self["zhoverformat"] = _v - _v = arg.pop("zsrc", None) - _v = zsrc if zsrc is not None else _v - if _v is not None: - self["zsrc"] = _v + self._init_provided('connectgaps', arg, connectgaps) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('error_x', arg, error_x) + self._init_provided('error_y', arg, error_y) + self._init_provided('error_z', arg, error_z) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('line', arg, line) + self._init_provided('marker', arg, marker) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('mode', arg, mode) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('projection', arg, projection) + self._init_provided('scene', arg, scene) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('stream', arg, stream) + self._init_provided('surfaceaxis', arg, surfaceaxis) + self._init_provided('surfacecolor', arg, surfacecolor) + self._init_provided('text', arg, text) + self._init_provided('textfont', arg, textfont) + self._init_provided('textposition', arg, textposition) + self._init_provided('textpositionsrc', arg, textpositionsrc) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('texttemplate', arg, texttemplate) + self._init_provided('texttemplatesrc', arg, texttemplatesrc) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('visible', arg, visible) + self._init_provided('x', arg, x) + self._init_provided('xcalendar', arg, xcalendar) + self._init_provided('xhoverformat', arg, xhoverformat) + self._init_provided('xsrc', arg, xsrc) + self._init_provided('y', arg, y) + self._init_provided('ycalendar', arg, ycalendar) + self._init_provided('yhoverformat', arg, yhoverformat) + self._init_provided('ysrc', arg, ysrc) + self._init_provided('z', arg, z) + self._init_provided('zcalendar', arg, zcalendar) + self._init_provided('zhoverformat', arg, zhoverformat) + self._init_provided('zsrc', arg, zsrc) # Read-only literals # ------------------ - self._props["type"] = "scatter3d" - arg.pop("type", None) + self._props['type'] = 'scatter3d' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_scattercarpet.py b/packages/python/plotly/plotly/graph_objs/_scattercarpet.py index 4c66720906e..0e94b8a7d3c 100644 --- a/packages/python/plotly/plotly/graph_objs/_scattercarpet.py +++ b/packages/python/plotly/plotly/graph_objs/_scattercarpet.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,61 +8,9 @@ class Scattercarpet(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "scattercarpet" - _valid_props = { - "a", - "asrc", - "b", - "bsrc", - "carpet", - "connectgaps", - "customdata", - "customdatasrc", - "fill", - "fillcolor", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hoveron", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "line", - "marker", - "meta", - "metasrc", - "mode", - "name", - "opacity", - "selected", - "selectedpoints", - "showlegend", - "stream", - "text", - "textfont", - "textposition", - "textpositionsrc", - "textsrc", - "texttemplate", - "texttemplatesrc", - "type", - "uid", - "uirevision", - "unselected", - "visible", - "xaxis", - "yaxis", - "zorder", - } + _parent_path_str = '' + _path_str = 'scattercarpet' + _valid_props = {"a", "asrc", "b", "bsrc", "carpet", "connectgaps", "customdata", "customdatasrc", "fill", "fillcolor", "hoverinfo", "hoverinfosrc", "hoverlabel", "hoveron", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "line", "marker", "meta", "metasrc", "mode", "name", "opacity", "selected", "selectedpoints", "showlegend", "stream", "text", "textfont", "textposition", "textpositionsrc", "textsrc", "texttemplate", "texttemplatesrc", "type", "uid", "uirevision", "unselected", "visible", "xaxis", "yaxis", "zorder"} # a # - @@ -76,11 +26,11 @@ def a(self): ------- numpy.ndarray """ - return self["a"] + return self['a'] @a.setter def a(self, val): - self["a"] = val + self['a'] = val # asrc # ---- @@ -96,11 +46,11 @@ def asrc(self): ------- str """ - return self["asrc"] + return self['asrc'] @asrc.setter def asrc(self, val): - self["asrc"] = val + self['asrc'] = val # b # - @@ -116,11 +66,11 @@ def b(self): ------- numpy.ndarray """ - return self["b"] + return self['b'] @b.setter def b(self, val): - self["b"] = val + self['b'] = val # bsrc # ---- @@ -136,11 +86,11 @@ def bsrc(self): ------- str """ - return self["bsrc"] + return self['bsrc'] @bsrc.setter def bsrc(self, val): - self["bsrc"] = val + self['bsrc'] = val # carpet # ------ @@ -159,11 +109,11 @@ def carpet(self): ------- str """ - return self["carpet"] + return self['carpet'] @carpet.setter def carpet(self, val): - self["carpet"] = val + self['carpet'] = val # connectgaps # ----------- @@ -180,11 +130,11 @@ def connectgaps(self): ------- bool """ - return self["connectgaps"] + return self['connectgaps'] @connectgaps.setter def connectgaps(self, val): - self["connectgaps"] = val + self['connectgaps'] = val # customdata # ---------- @@ -203,11 +153,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -224,11 +174,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # fill # ---- @@ -253,11 +203,11 @@ def fill(self): ------- Any """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # fillcolor # --------- @@ -273,52 +223,17 @@ def fillcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["fillcolor"] + return self['fillcolor'] @fillcolor.setter def fillcolor(self, val): - self["fillcolor"] = val + self['fillcolor'] = val # hoverinfo # --------- @@ -340,11 +255,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -361,11 +276,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -378,53 +293,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.scattercarpet.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hoveron # ------- @@ -445,11 +322,11 @@ def hoveron(self): ------- Any """ - return self["hoveron"] + return self['hoveron'] @hoveron.setter def hoveron(self, val): - self["hoveron"] = val + self['hoveron'] = val # hovertemplate # ------------- @@ -489,11 +366,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -510,11 +387,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -536,11 +413,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -557,11 +434,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -579,11 +456,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -599,11 +476,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # legend # ------ @@ -624,11 +501,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -647,11 +524,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -664,22 +541,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.scattercarpet.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -702,11 +572,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -723,11 +593,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # line # ---- @@ -740,47 +610,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - backoff - Sets the line back off from the end point of - the nth line segment (in px). This option is - useful e.g. to avoid overlap with arrowhead - markers. With "auto" the lines would trim - before markers if `marker.angleref` is set to - "previous". - backoffsrc - Sets the source reference on Chart Studio Cloud - for `backoff`. - color - Sets the line color. - dash - 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"). - shape - Determines the line shape. With "spline" the - lines are drawn using spline interpolation. The - other available values correspond to step-wise - line shapes. - smoothing - Has an effect only if `shape` is set to - "spline" Sets the amount of smoothing. 0 - corresponds to no smoothing (equivalent to a - "linear" shape). - width - Sets the line width (in px). - Returns ------- plotly.graph_objs.scattercarpet.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # marker # ------ @@ -793,168 +631,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - angle - Sets the marker angle in respect to `angleref`. - angleref - Sets the reference for marker angle. With - "previous", angle 0 points along the line from - the previous point to this one. With "up", - angle 0 points toward the top of the screen. - anglesrc - Sets the source reference on Chart Studio Cloud - for `angle`. - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.scattercarpet.mark - er.ColorBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - gradient - :class:`plotly.graph_objects.scattercarpet.mark - er.Gradient` instance or dict with compatible - properties - line - :class:`plotly.graph_objects.scattercarpet.mark - er.Line` instance or dict with compatible - properties - maxdisplayed - Sets a maximum number of points to be drawn on - the graph. 0 corresponds to no limit. - opacity - Sets the marker opacity. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. - size - Sets the marker size (in px). - sizemin - Has an effect only if `marker.size` is set to a - numerical array. Sets the minimum size (in px) - of the rendered marker points. - sizemode - Has an effect only if `marker.size` is set to a - numerical array. Sets the rule for which the - data in `size` is converted to pixels. - sizeref - Has an effect only if `marker.size` is set to a - numerical array. Sets the scale factor used to - determine the rendered size of marker points. - Use with `sizemin` and `sizemode`. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - standoff - Moves the marker away from the data point in - the direction of `angle` (in px). This can be - useful for example if you have another marker - at this location and you want to point an - arrowhead marker at it. - standoffsrc - Sets the source reference on Chart Studio Cloud - for `standoff`. - symbol - Sets the marker symbol type. Adding 100 is - equivalent to appending "-open" to a symbol - name. Adding 200 is equivalent to appending - "-dot" to a symbol name. Adding 300 is - equivalent to appending "-open-dot" or "dot- - open" to a symbol name. - symbolsrc - Sets the source reference on Chart Studio Cloud - for `symbol`. - Returns ------- plotly.graph_objs.scattercarpet.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # meta # ---- @@ -978,11 +663,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -998,11 +683,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # mode # ---- @@ -1026,11 +711,11 @@ def mode(self): ------- Any """ - return self["mode"] + return self['mode'] @mode.setter def mode(self, val): - self["mode"] = val + self['mode'] = val # name # ---- @@ -1048,11 +733,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -1068,11 +753,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # selected # -------- @@ -1085,26 +770,15 @@ def selected(self): - A dict of string/value properties that will be passed to the Selected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.scattercarpet.sele - cted.Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.scattercarpet.sele - cted.Textfont` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.scattercarpet.Selected """ - return self["selected"] + return self['selected'] @selected.setter def selected(self, val): - self["selected"] = val + self['selected'] = val # selectedpoints # -------------- @@ -1124,11 +798,11 @@ def selectedpoints(self): ------- Any """ - return self["selectedpoints"] + return self['selectedpoints'] @selectedpoints.setter def selectedpoints(self, val): - self["selectedpoints"] = val + self['selectedpoints'] = val # showlegend # ---------- @@ -1145,11 +819,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # stream # ------ @@ -1162,27 +836,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.scattercarpet.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # text # ---- @@ -1205,11 +867,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textfont # -------- @@ -1224,88 +886,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.scattercarpet.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # textposition # ------------ @@ -1326,11 +915,11 @@ def textposition(self): ------- Any|numpy.ndarray """ - return self["textposition"] + return self['textposition'] @textposition.setter def textposition(self, val): - self["textposition"] = val + self['textposition'] = val # textpositionsrc # --------------- @@ -1347,11 +936,11 @@ def textpositionsrc(self): ------- str """ - return self["textpositionsrc"] + return self['textpositionsrc'] @textpositionsrc.setter def textpositionsrc(self, val): - self["textpositionsrc"] = val + self['textpositionsrc'] = val # textsrc # ------- @@ -1367,11 +956,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # texttemplate # ------------ @@ -1402,11 +991,11 @@ def texttemplate(self): ------- str|numpy.ndarray """ - return self["texttemplate"] + return self['texttemplate'] @texttemplate.setter def texttemplate(self, val): - self["texttemplate"] = val + self['texttemplate'] = val # texttemplatesrc # --------------- @@ -1423,11 +1012,11 @@ def texttemplatesrc(self): ------- str """ - return self["texttemplatesrc"] + return self['texttemplatesrc'] @texttemplatesrc.setter def texttemplatesrc(self, val): - self["texttemplatesrc"] = val + self['texttemplatesrc'] = val # uid # --- @@ -1445,11 +1034,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1478,11 +1067,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # unselected # ---------- @@ -1495,26 +1084,15 @@ def unselected(self): - A dict of string/value properties that will be passed to the Unselected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.scattercarpet.unse - lected.Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.scattercarpet.unse - lected.Textfont` instance or dict with - compatible properties - Returns ------- plotly.graph_objs.scattercarpet.Unselected """ - return self["unselected"] + return self['unselected'] @unselected.setter def unselected(self, val): - self["unselected"] = val + self['unselected'] = val # visible # ------- @@ -1533,11 +1111,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # xaxis # ----- @@ -1558,11 +1136,11 @@ def xaxis(self): ------- str """ - return self["xaxis"] + return self['xaxis'] @xaxis.setter def xaxis(self, val): - self["xaxis"] = val + self['xaxis'] = val # yaxis # ----- @@ -1583,11 +1161,11 @@ def yaxis(self): ------- str """ - return self["yaxis"] + return self['yaxis'] @yaxis.setter def yaxis(self, val): - self["yaxis"] = val + self['yaxis'] = val # zorder # ------ @@ -1605,17 +1183,17 @@ def zorder(self): ------- int """ - return self["zorder"] + return self['zorder'] @zorder.setter def zorder(self, val): - self["zorder"] = val + self['zorder'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -1888,62 +1466,60 @@ def _prop_descriptions(self): traces with higher `zorder` appear in front of those with lower `zorder`. """ - - def __init__( - self, - arg=None, - a=None, - asrc=None, - b=None, - bsrc=None, - carpet=None, - connectgaps=None, - customdata=None, - customdatasrc=None, - fill=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hoveron=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - text=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - xaxis=None, - yaxis=None, - zorder=None, - **kwargs, - ): + def __init__(self, + arg=None, + a=None, + asrc=None, + b=None, + bsrc=None, + carpet=None, + connectgaps=None, + customdata=None, + customdatasrc=None, + fill=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hoveron=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + text=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + xaxis=None, + yaxis=None, + zorder=None, + **kwargs + ): """ Construct a new Scattercarpet object @@ -2225,10 +1801,10 @@ def __init__( ------- Scattercarpet """ - super(Scattercarpet, self).__init__("scattercarpet") + super(Scattercarpet, self).__init__('scattercarpet') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2240,226 +1816,75 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Scattercarpet constructor must be a dict or -an instance of :class:`plotly.graph_objs.Scattercarpet`""" - ) +an instance of :class:`plotly.graph_objs.Scattercarpet`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("a", None) - _v = a if a is not None else _v - if _v is not None: - self["a"] = _v - _v = arg.pop("asrc", None) - _v = asrc if asrc is not None else _v - if _v is not None: - self["asrc"] = _v - _v = arg.pop("b", None) - _v = b if b is not None else _v - if _v is not None: - self["b"] = _v - _v = arg.pop("bsrc", None) - _v = bsrc if bsrc is not None else _v - if _v is not None: - self["bsrc"] = _v - _v = arg.pop("carpet", None) - _v = carpet if carpet is not None else _v - if _v is not None: - self["carpet"] = _v - _v = arg.pop("connectgaps", None) - _v = connectgaps if connectgaps is not None else _v - if _v is not None: - self["connectgaps"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("fillcolor", None) - _v = fillcolor if fillcolor is not None else _v - if _v is not None: - self["fillcolor"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hoveron", None) - _v = hoveron if hoveron is not None else _v - if _v is not None: - self["hoveron"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("mode", None) - _v = mode if mode is not None else _v - if _v is not None: - self["mode"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("selected", None) - _v = selected if selected is not None else _v - if _v is not None: - self["selected"] = _v - _v = arg.pop("selectedpoints", None) - _v = selectedpoints if selectedpoints is not None else _v - if _v is not None: - self["selectedpoints"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v - _v = arg.pop("textposition", None) - _v = textposition if textposition is not None else _v - if _v is not None: - self["textposition"] = _v - _v = arg.pop("textpositionsrc", None) - _v = textpositionsrc if textpositionsrc is not None else _v - if _v is not None: - self["textpositionsrc"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("texttemplate", None) - _v = texttemplate if texttemplate is not None else _v - if _v is not None: - self["texttemplate"] = _v - _v = arg.pop("texttemplatesrc", None) - _v = texttemplatesrc if texttemplatesrc is not None else _v - if _v is not None: - self["texttemplatesrc"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("unselected", None) - _v = unselected if unselected is not None else _v - if _v is not None: - self["unselected"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("xaxis", None) - _v = xaxis if xaxis is not None else _v - if _v is not None: - self["xaxis"] = _v - _v = arg.pop("yaxis", None) - _v = yaxis if yaxis is not None else _v - if _v is not None: - self["yaxis"] = _v - _v = arg.pop("zorder", None) - _v = zorder if zorder is not None else _v - if _v is not None: - self["zorder"] = _v + self._init_provided('a', arg, a) + self._init_provided('asrc', arg, asrc) + self._init_provided('b', arg, b) + self._init_provided('bsrc', arg, bsrc) + self._init_provided('carpet', arg, carpet) + self._init_provided('connectgaps', arg, connectgaps) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('fill', arg, fill) + self._init_provided('fillcolor', arg, fillcolor) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hoveron', arg, hoveron) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('line', arg, line) + self._init_provided('marker', arg, marker) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('mode', arg, mode) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('selected', arg, selected) + self._init_provided('selectedpoints', arg, selectedpoints) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('stream', arg, stream) + self._init_provided('text', arg, text) + self._init_provided('textfont', arg, textfont) + self._init_provided('textposition', arg, textposition) + self._init_provided('textpositionsrc', arg, textpositionsrc) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('texttemplate', arg, texttemplate) + self._init_provided('texttemplatesrc', arg, texttemplatesrc) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('unselected', arg, unselected) + self._init_provided('visible', arg, visible) + self._init_provided('xaxis', arg, xaxis) + self._init_provided('yaxis', arg, yaxis) + self._init_provided('zorder', arg, zorder) # Read-only literals # ------------------ - self._props["type"] = "scattercarpet" - arg.pop("type", None) + self._props['type'] = 'scattercarpet' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_scattergeo.py b/packages/python/plotly/plotly/graph_objs/_scattergeo.py index 0fcf2f839a6..a1dca02bda0 100644 --- a/packages/python/plotly/plotly/graph_objs/_scattergeo.py +++ b/packages/python/plotly/plotly/graph_objs/_scattergeo.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,62 +8,9 @@ class Scattergeo(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "scattergeo" - _valid_props = { - "connectgaps", - "customdata", - "customdatasrc", - "featureidkey", - "fill", - "fillcolor", - "geo", - "geojson", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "lat", - "latsrc", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "line", - "locationmode", - "locations", - "locationssrc", - "lon", - "lonsrc", - "marker", - "meta", - "metasrc", - "mode", - "name", - "opacity", - "selected", - "selectedpoints", - "showlegend", - "stream", - "text", - "textfont", - "textposition", - "textpositionsrc", - "textsrc", - "texttemplate", - "texttemplatesrc", - "type", - "uid", - "uirevision", - "unselected", - "visible", - } + _parent_path_str = '' + _path_str = 'scattergeo' + _valid_props = {"connectgaps", "customdata", "customdatasrc", "featureidkey", "fill", "fillcolor", "geo", "geojson", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "lat", "latsrc", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "line", "locationmode", "locations", "locationssrc", "lon", "lonsrc", "marker", "meta", "metasrc", "mode", "name", "opacity", "selected", "selectedpoints", "showlegend", "stream", "text", "textfont", "textposition", "textpositionsrc", "textsrc", "texttemplate", "texttemplatesrc", "type", "uid", "uirevision", "unselected", "visible"} # connectgaps # ----------- @@ -78,11 +27,11 @@ def connectgaps(self): ------- bool """ - return self["connectgaps"] + return self['connectgaps'] @connectgaps.setter def connectgaps(self, val): - self["connectgaps"] = val + self['connectgaps'] = val # customdata # ---------- @@ -101,11 +50,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -122,11 +71,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # featureidkey # ------------ @@ -146,11 +95,11 @@ def featureidkey(self): ------- str """ - return self["featureidkey"] + return self['featureidkey'] @featureidkey.setter def featureidkey(self, val): - self["featureidkey"] = val + self['featureidkey'] = val # fill # ---- @@ -169,11 +118,11 @@ def fill(self): ------- Any """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # fillcolor # --------- @@ -189,52 +138,17 @@ def fillcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["fillcolor"] + return self['fillcolor'] @fillcolor.setter def fillcolor(self, val): - self["fillcolor"] = val + self['fillcolor'] = val # geo # --- @@ -255,11 +169,11 @@ def geo(self): ------- str """ - return self["geo"] + return self['geo'] @geo.setter def geo(self, val): - self["geo"] = val + self['geo'] = val # geojson # ------- @@ -279,11 +193,11 @@ def geojson(self): ------- Any """ - return self["geojson"] + return self['geojson'] @geojson.setter def geojson(self, val): - self["geojson"] = val + self['geojson'] = val # hoverinfo # --------- @@ -305,11 +219,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -326,11 +240,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -343,53 +257,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.scattergeo.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -429,11 +305,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -450,11 +326,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -477,11 +353,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -498,11 +374,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -520,11 +396,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -540,11 +416,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # lat # --- @@ -560,11 +436,11 @@ def lat(self): ------- numpy.ndarray """ - return self["lat"] + return self['lat'] @lat.setter def lat(self, val): - self["lat"] = val + self['lat'] = val # latsrc # ------ @@ -580,11 +456,11 @@ def latsrc(self): ------- str """ - return self["latsrc"] + return self['latsrc'] @latsrc.setter def latsrc(self, val): - self["latsrc"] = val + self['latsrc'] = val # legend # ------ @@ -605,11 +481,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -628,11 +504,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -645,22 +521,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.scattergeo.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -683,11 +552,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -704,11 +573,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # line # ---- @@ -721,27 +590,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the line color. - dash - 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"). - width - Sets the line width (in px). - Returns ------- plotly.graph_objs.scattergeo.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # locationmode # ------------ @@ -762,11 +619,11 @@ def locationmode(self): ------- Any """ - return self["locationmode"] + return self['locationmode'] @locationmode.setter def locationmode(self, val): - self["locationmode"] = val + self['locationmode'] = val # locations # --------- @@ -784,11 +641,11 @@ def locations(self): ------- numpy.ndarray """ - return self["locations"] + return self['locations'] @locations.setter def locations(self, val): - self["locations"] = val + self['locations'] = val # locationssrc # ------------ @@ -805,11 +662,11 @@ def locationssrc(self): ------- str """ - return self["locationssrc"] + return self['locationssrc'] @locationssrc.setter def locationssrc(self, val): - self["locationssrc"] = val + self['locationssrc'] = val # lon # --- @@ -825,11 +682,11 @@ def lon(self): ------- numpy.ndarray """ - return self["lon"] + return self['lon'] @lon.setter def lon(self, val): - self["lon"] = val + self['lon'] = val # lonsrc # ------ @@ -845,11 +702,11 @@ def lonsrc(self): ------- str """ - return self["lonsrc"] + return self['lonsrc'] @lonsrc.setter def lonsrc(self, val): - self["lonsrc"] = val + self['lonsrc'] = val # marker # ------ @@ -862,167 +719,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - angle - Sets the marker angle in respect to `angleref`. - angleref - Sets the reference for marker angle. With - "previous", angle 0 points along the line from - the previous point to this one. With "up", - angle 0 points toward the top of the screen. - With "north", angle 0 points north based on the - current map projection. - anglesrc - Sets the source reference on Chart Studio Cloud - for `angle`. - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.scattergeo.marker. - ColorBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - gradient - :class:`plotly.graph_objects.scattergeo.marker. - Gradient` instance or dict with compatible - properties - line - :class:`plotly.graph_objects.scattergeo.marker. - Line` instance or dict with compatible - properties - opacity - Sets the marker opacity. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. - size - Sets the marker size (in px). - sizemin - Has an effect only if `marker.size` is set to a - numerical array. Sets the minimum size (in px) - of the rendered marker points. - sizemode - Has an effect only if `marker.size` is set to a - numerical array. Sets the rule for which the - data in `size` is converted to pixels. - sizeref - Has an effect only if `marker.size` is set to a - numerical array. Sets the scale factor used to - determine the rendered size of marker points. - Use with `sizemin` and `sizemode`. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - standoff - Moves the marker away from the data point in - the direction of `angle` (in px). This can be - useful for example if you have another marker - at this location and you want to point an - arrowhead marker at it. - standoffsrc - Sets the source reference on Chart Studio Cloud - for `standoff`. - symbol - Sets the marker symbol type. Adding 100 is - equivalent to appending "-open" to a symbol - name. Adding 200 is equivalent to appending - "-dot" to a symbol name. Adding 300 is - equivalent to appending "-open-dot" or "dot- - open" to a symbol name. - symbolsrc - Sets the source reference on Chart Studio Cloud - for `symbol`. - Returns ------- plotly.graph_objs.scattergeo.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # meta # ---- @@ -1046,11 +751,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -1066,11 +771,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # mode # ---- @@ -1094,11 +799,11 @@ def mode(self): ------- Any """ - return self["mode"] + return self['mode'] @mode.setter def mode(self, val): - self["mode"] = val + self['mode'] = val # name # ---- @@ -1116,11 +821,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -1136,11 +841,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # selected # -------- @@ -1153,26 +858,15 @@ def selected(self): - A dict of string/value properties that will be passed to the Selected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.scattergeo.selecte - d.Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.scattergeo.selecte - d.Textfont` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.scattergeo.Selected """ - return self["selected"] + return self['selected'] @selected.setter def selected(self, val): - self["selected"] = val + self['selected'] = val # selectedpoints # -------------- @@ -1192,11 +886,11 @@ def selectedpoints(self): ------- Any """ - return self["selectedpoints"] + return self['selectedpoints'] @selectedpoints.setter def selectedpoints(self, val): - self["selectedpoints"] = val + self['selectedpoints'] = val # showlegend # ---------- @@ -1213,11 +907,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # stream # ------ @@ -1230,27 +924,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.scattergeo.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # text # ---- @@ -1274,11 +956,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textfont # -------- @@ -1293,88 +975,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.scattergeo.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # textposition # ------------ @@ -1395,11 +1004,11 @@ def textposition(self): ------- Any|numpy.ndarray """ - return self["textposition"] + return self['textposition'] @textposition.setter def textposition(self, val): - self["textposition"] = val + self['textposition'] = val # textpositionsrc # --------------- @@ -1416,11 +1025,11 @@ def textpositionsrc(self): ------- str """ - return self["textpositionsrc"] + return self['textpositionsrc'] @textpositionsrc.setter def textpositionsrc(self, val): - self["textpositionsrc"] = val + self['textpositionsrc'] = val # textsrc # ------- @@ -1436,11 +1045,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # texttemplate # ------------ @@ -1471,11 +1080,11 @@ def texttemplate(self): ------- str|numpy.ndarray """ - return self["texttemplate"] + return self['texttemplate'] @texttemplate.setter def texttemplate(self, val): - self["texttemplate"] = val + self['texttemplate'] = val # texttemplatesrc # --------------- @@ -1492,11 +1101,11 @@ def texttemplatesrc(self): ------- str """ - return self["texttemplatesrc"] + return self['texttemplatesrc'] @texttemplatesrc.setter def texttemplatesrc(self, val): - self["texttemplatesrc"] = val + self['texttemplatesrc'] = val # uid # --- @@ -1514,11 +1123,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1547,11 +1156,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # unselected # ---------- @@ -1564,26 +1173,15 @@ def unselected(self): - A dict of string/value properties that will be passed to the Unselected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.scattergeo.unselec - ted.Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.scattergeo.unselec - ted.Textfont` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.scattergeo.Unselected """ - return self["unselected"] + return self['unselected'] @unselected.setter def unselected(self, val): - self["unselected"] = val + self['unselected'] = val # visible # ------- @@ -1602,17 +1200,17 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -1889,63 +1487,61 @@ def _prop_descriptions(self): a legend item (provided that the legend itself is visible). """ - - def __init__( - self, - arg=None, - connectgaps=None, - customdata=None, - customdatasrc=None, - featureidkey=None, - fill=None, - fillcolor=None, - geo=None, - geojson=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - lat=None, - latsrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - locationmode=None, - locations=None, - locationssrc=None, - lon=None, - lonsrc=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - text=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + connectgaps=None, + customdata=None, + customdatasrc=None, + featureidkey=None, + fill=None, + fillcolor=None, + geo=None, + geojson=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + lat=None, + latsrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + locationmode=None, + locations=None, + locationssrc=None, + lon=None, + lonsrc=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + text=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + **kwargs + ): """ Construct a new Scattergeo object @@ -2233,10 +1829,10 @@ def __init__( ------- Scattergeo """ - super(Scattergeo, self).__init__("scattergeo") + super(Scattergeo, self).__init__('scattergeo') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2248,230 +1844,76 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Scattergeo constructor must be a dict or -an instance of :class:`plotly.graph_objs.Scattergeo`""" - ) +an instance of :class:`plotly.graph_objs.Scattergeo`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("connectgaps", None) - _v = connectgaps if connectgaps is not None else _v - if _v is not None: - self["connectgaps"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("featureidkey", None) - _v = featureidkey if featureidkey is not None else _v - if _v is not None: - self["featureidkey"] = _v - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("fillcolor", None) - _v = fillcolor if fillcolor is not None else _v - if _v is not None: - self["fillcolor"] = _v - _v = arg.pop("geo", None) - _v = geo if geo is not None else _v - if _v is not None: - self["geo"] = _v - _v = arg.pop("geojson", None) - _v = geojson if geojson is not None else _v - if _v is not None: - self["geojson"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("lat", None) - _v = lat if lat is not None else _v - if _v is not None: - self["lat"] = _v - _v = arg.pop("latsrc", None) - _v = latsrc if latsrc is not None else _v - if _v is not None: - self["latsrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("locationmode", None) - _v = locationmode if locationmode is not None else _v - if _v is not None: - self["locationmode"] = _v - _v = arg.pop("locations", None) - _v = locations if locations is not None else _v - if _v is not None: - self["locations"] = _v - _v = arg.pop("locationssrc", None) - _v = locationssrc if locationssrc is not None else _v - if _v is not None: - self["locationssrc"] = _v - _v = arg.pop("lon", None) - _v = lon if lon is not None else _v - if _v is not None: - self["lon"] = _v - _v = arg.pop("lonsrc", None) - _v = lonsrc if lonsrc is not None else _v - if _v is not None: - self["lonsrc"] = _v - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("mode", None) - _v = mode if mode is not None else _v - if _v is not None: - self["mode"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("selected", None) - _v = selected if selected is not None else _v - if _v is not None: - self["selected"] = _v - _v = arg.pop("selectedpoints", None) - _v = selectedpoints if selectedpoints is not None else _v - if _v is not None: - self["selectedpoints"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v - _v = arg.pop("textposition", None) - _v = textposition if textposition is not None else _v - if _v is not None: - self["textposition"] = _v - _v = arg.pop("textpositionsrc", None) - _v = textpositionsrc if textpositionsrc is not None else _v - if _v is not None: - self["textpositionsrc"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("texttemplate", None) - _v = texttemplate if texttemplate is not None else _v - if _v is not None: - self["texttemplate"] = _v - _v = arg.pop("texttemplatesrc", None) - _v = texttemplatesrc if texttemplatesrc is not None else _v - if _v is not None: - self["texttemplatesrc"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("unselected", None) - _v = unselected if unselected is not None else _v - if _v is not None: - self["unselected"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('connectgaps', arg, connectgaps) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('featureidkey', arg, featureidkey) + self._init_provided('fill', arg, fill) + self._init_provided('fillcolor', arg, fillcolor) + self._init_provided('geo', arg, geo) + self._init_provided('geojson', arg, geojson) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('lat', arg, lat) + self._init_provided('latsrc', arg, latsrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('line', arg, line) + self._init_provided('locationmode', arg, locationmode) + self._init_provided('locations', arg, locations) + self._init_provided('locationssrc', arg, locationssrc) + self._init_provided('lon', arg, lon) + self._init_provided('lonsrc', arg, lonsrc) + self._init_provided('marker', arg, marker) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('mode', arg, mode) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('selected', arg, selected) + self._init_provided('selectedpoints', arg, selectedpoints) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('stream', arg, stream) + self._init_provided('text', arg, text) + self._init_provided('textfont', arg, textfont) + self._init_provided('textposition', arg, textposition) + self._init_provided('textpositionsrc', arg, textpositionsrc) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('texttemplate', arg, texttemplate) + self._init_provided('texttemplatesrc', arg, texttemplatesrc) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('unselected', arg, unselected) + self._init_provided('visible', arg, visible) # Read-only literals # ------------------ - self._props["type"] = "scattergeo" - arg.pop("type", None) + self._props['type'] = 'scattergeo' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_scattergl.py b/packages/python/plotly/plotly/graph_objs/_scattergl.py index ec04368d8ba..f0163871cae 100644 --- a/packages/python/plotly/plotly/graph_objs/_scattergl.py +++ b/packages/python/plotly/plotly/graph_objs/_scattergl.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,74 +8,9 @@ class Scattergl(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "scattergl" - _valid_props = { - "connectgaps", - "customdata", - "customdatasrc", - "dx", - "dy", - "error_x", - "error_y", - "fill", - "fillcolor", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "line", - "marker", - "meta", - "metasrc", - "mode", - "name", - "opacity", - "selected", - "selectedpoints", - "showlegend", - "stream", - "text", - "textfont", - "textposition", - "textpositionsrc", - "textsrc", - "texttemplate", - "texttemplatesrc", - "type", - "uid", - "uirevision", - "unselected", - "visible", - "x", - "x0", - "xaxis", - "xcalendar", - "xhoverformat", - "xperiod", - "xperiod0", - "xperiodalignment", - "xsrc", - "y", - "y0", - "yaxis", - "ycalendar", - "yhoverformat", - "yperiod", - "yperiod0", - "yperiodalignment", - "ysrc", - } + _parent_path_str = '' + _path_str = 'scattergl' + _valid_props = {"connectgaps", "customdata", "customdatasrc", "dx", "dy", "error_x", "error_y", "fill", "fillcolor", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "line", "marker", "meta", "metasrc", "mode", "name", "opacity", "selected", "selectedpoints", "showlegend", "stream", "text", "textfont", "textposition", "textpositionsrc", "textsrc", "texttemplate", "texttemplatesrc", "type", "uid", "uirevision", "unselected", "visible", "x", "x0", "xaxis", "xcalendar", "xhoverformat", "xperiod", "xperiod0", "xperiodalignment", "xsrc", "y", "y0", "yaxis", "ycalendar", "yhoverformat", "yperiod", "yperiod0", "yperiodalignment", "ysrc"} # connectgaps # ----------- @@ -90,11 +27,11 @@ def connectgaps(self): ------- bool """ - return self["connectgaps"] + return self['connectgaps'] @connectgaps.setter def connectgaps(self, val): - self["connectgaps"] = val + self['connectgaps'] = val # customdata # ---------- @@ -113,11 +50,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -134,11 +71,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # dx # -- @@ -154,11 +91,11 @@ def dx(self): ------- int|float """ - return self["dx"] + return self['dx'] @dx.setter def dx(self, val): - self["dx"] = val + self['dx'] = val # dy # -- @@ -174,11 +111,11 @@ def dy(self): ------- int|float """ - return self["dy"] + return self['dy'] @dy.setter def dy(self, val): - self["dy"] = val + self['dy'] = val # error_x # ------- @@ -191,75 +128,15 @@ def error_x(self): - A dict of string/value properties that will be passed to the ErrorX constructor - Supported dict properties: - - array - Sets the data corresponding the length of each - error bar. Values are plotted relative to the - underlying data. - arrayminus - Sets the data corresponding the length of each - error bar in the bottom (left) direction for - vertical (horizontal) bars Values are plotted - relative to the underlying data. - arrayminussrc - Sets the source reference on Chart Studio Cloud - for `arrayminus`. - arraysrc - Sets the source reference on Chart Studio Cloud - for `array`. - color - Sets the stroke color of the error bars. - copy_ystyle - - symmetric - Determines whether or not the error bars have - the same length in both direction (top/bottom - for vertical bars, left/right for horizontal - bars. - thickness - Sets the thickness (in px) of the error bars. - traceref - - tracerefminus - - type - Determines the rule used to generate the error - bars. If *constant`, the bar lengths are of a - constant value. Set this constant in `value`. - If "percent", the bar lengths correspond to a - percentage of underlying data. Set this - percentage in `value`. If "sqrt", the bar - lengths correspond to the square of the - underlying data. If "data", the bar lengths are - set with data set `array`. - value - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars. - valueminus - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars in the bottom - (left) direction for vertical (horizontal) bars - visible - Determines whether or not this set of error - bars is visible. - width - Sets the width (in px) of the cross-bar at both - ends of the error bars. - Returns ------- plotly.graph_objs.scattergl.ErrorX """ - return self["error_x"] + return self['error_x'] @error_x.setter def error_x(self, val): - self["error_x"] = val + self['error_x'] = val # error_y # ------- @@ -272,73 +149,15 @@ def error_y(self): - A dict of string/value properties that will be passed to the ErrorY constructor - Supported dict properties: - - array - Sets the data corresponding the length of each - error bar. Values are plotted relative to the - underlying data. - arrayminus - Sets the data corresponding the length of each - error bar in the bottom (left) direction for - vertical (horizontal) bars Values are plotted - relative to the underlying data. - arrayminussrc - Sets the source reference on Chart Studio Cloud - for `arrayminus`. - arraysrc - Sets the source reference on Chart Studio Cloud - for `array`. - color - Sets the stroke color of the error bars. - symmetric - Determines whether or not the error bars have - the same length in both direction (top/bottom - for vertical bars, left/right for horizontal - bars. - thickness - Sets the thickness (in px) of the error bars. - traceref - - tracerefminus - - type - Determines the rule used to generate the error - bars. If *constant`, the bar lengths are of a - constant value. Set this constant in `value`. - If "percent", the bar lengths correspond to a - percentage of underlying data. Set this - percentage in `value`. If "sqrt", the bar - lengths correspond to the square of the - underlying data. If "data", the bar lengths are - set with data set `array`. - value - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars. - valueminus - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars in the bottom - (left) direction for vertical (horizontal) bars - visible - Determines whether or not this set of error - bars is visible. - width - Sets the width (in px) of the cross-bar at both - ends of the error bars. - Returns ------- plotly.graph_objs.scattergl.ErrorY """ - return self["error_y"] + return self['error_y'] @error_y.setter def error_y(self, val): - self["error_y"] = val + self['error_y'] = val # fill # ---- @@ -374,11 +193,11 @@ def fill(self): ------- Any """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # fillcolor # --------- @@ -394,52 +213,17 @@ def fillcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["fillcolor"] + return self['fillcolor'] @fillcolor.setter def fillcolor(self, val): - self["fillcolor"] = val + self['fillcolor'] = val # hoverinfo # --------- @@ -461,11 +245,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -482,11 +266,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -499,53 +283,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.scattergl.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -585,11 +331,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -606,11 +352,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -632,11 +378,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -653,11 +399,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -675,11 +421,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -695,11 +441,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # legend # ------ @@ -720,11 +466,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -743,11 +489,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -760,22 +506,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.scattergl.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -798,11 +537,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -819,11 +558,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # line # ---- @@ -836,27 +575,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the line color. - dash - Sets the style of the lines. - shape - Determines the line shape. The values - correspond to step-wise line shapes. - width - Sets the line width (in px). - Returns ------- plotly.graph_objs.scattergl.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # marker # ------ @@ -869,147 +596,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - angle - Sets the marker angle in respect to `angleref`. - anglesrc - Sets the source reference on Chart Studio Cloud - for `angle`. - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.scattergl.marker.C - olorBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - line - :class:`plotly.graph_objects.scattergl.marker.L - ine` instance or dict with compatible - properties - opacity - Sets the marker opacity. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. - size - Sets the marker size (in px). - sizemin - Has an effect only if `marker.size` is set to a - numerical array. Sets the minimum size (in px) - of the rendered marker points. - sizemode - Has an effect only if `marker.size` is set to a - numerical array. Sets the rule for which the - data in `size` is converted to pixels. - sizeref - Has an effect only if `marker.size` is set to a - numerical array. Sets the scale factor used to - determine the rendered size of marker points. - Use with `sizemin` and `sizemode`. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - symbol - Sets the marker symbol type. Adding 100 is - equivalent to appending "-open" to a symbol - name. Adding 200 is equivalent to appending - "-dot" to a symbol name. Adding 300 is - equivalent to appending "-open-dot" or "dot- - open" to a symbol name. - symbolsrc - Sets the source reference on Chart Studio Cloud - for `symbol`. - Returns ------- plotly.graph_objs.scattergl.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # meta # ---- @@ -1033,11 +628,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -1053,11 +648,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # mode # ---- @@ -1076,11 +671,11 @@ def mode(self): ------- Any """ - return self["mode"] + return self['mode'] @mode.setter def mode(self, val): - self["mode"] = val + self['mode'] = val # name # ---- @@ -1098,11 +693,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -1118,11 +713,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # selected # -------- @@ -1135,26 +730,15 @@ def selected(self): - A dict of string/value properties that will be passed to the Selected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.scattergl.selected - .Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.scattergl.selected - .Textfont` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.scattergl.Selected """ - return self["selected"] + return self['selected'] @selected.setter def selected(self, val): - self["selected"] = val + self['selected'] = val # selectedpoints # -------------- @@ -1174,11 +758,11 @@ def selectedpoints(self): ------- Any """ - return self["selectedpoints"] + return self['selectedpoints'] @selectedpoints.setter def selectedpoints(self, val): - self["selectedpoints"] = val + self['selectedpoints'] = val # showlegend # ---------- @@ -1195,11 +779,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # stream # ------ @@ -1212,27 +796,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.scattergl.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # text # ---- @@ -1255,11 +827,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textfont # -------- @@ -1274,64 +846,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.scattergl.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # textposition # ------------ @@ -1352,11 +875,11 @@ def textposition(self): ------- Any|numpy.ndarray """ - return self["textposition"] + return self['textposition'] @textposition.setter def textposition(self, val): - self["textposition"] = val + self['textposition'] = val # textpositionsrc # --------------- @@ -1373,11 +896,11 @@ def textpositionsrc(self): ------- str """ - return self["textpositionsrc"] + return self['textpositionsrc'] @textpositionsrc.setter def textpositionsrc(self, val): - self["textpositionsrc"] = val + self['textpositionsrc'] = val # textsrc # ------- @@ -1393,11 +916,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # texttemplate # ------------ @@ -1426,11 +949,11 @@ def texttemplate(self): ------- str|numpy.ndarray """ - return self["texttemplate"] + return self['texttemplate'] @texttemplate.setter def texttemplate(self, val): - self["texttemplate"] = val + self['texttemplate'] = val # texttemplatesrc # --------------- @@ -1447,11 +970,11 @@ def texttemplatesrc(self): ------- str """ - return self["texttemplatesrc"] + return self['texttemplatesrc'] @texttemplatesrc.setter def texttemplatesrc(self, val): - self["texttemplatesrc"] = val + self['texttemplatesrc'] = val # uid # --- @@ -1469,11 +992,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1502,11 +1025,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # unselected # ---------- @@ -1519,26 +1042,15 @@ def unselected(self): - A dict of string/value properties that will be passed to the Unselected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.scattergl.unselect - ed.Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.scattergl.unselect - ed.Textfont` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.scattergl.Unselected """ - return self["unselected"] + return self['unselected'] @unselected.setter def unselected(self, val): - self["unselected"] = val + self['unselected'] = val # visible # ------- @@ -1557,11 +1069,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # x # - @@ -1577,11 +1089,11 @@ def x(self): ------- numpy.ndarray """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # x0 # -- @@ -1598,11 +1110,11 @@ def x0(self): ------- Any """ - return self["x0"] + return self['x0'] @x0.setter def x0(self, val): - self["x0"] = val + self['x0'] = val # xaxis # ----- @@ -1623,11 +1135,11 @@ def xaxis(self): ------- str """ - return self["xaxis"] + return self['xaxis'] @xaxis.setter def xaxis(self, val): - self["xaxis"] = val + self['xaxis'] = val # xcalendar # --------- @@ -1647,11 +1159,11 @@ def xcalendar(self): ------- Any """ - return self["xcalendar"] + return self['xcalendar'] @xcalendar.setter def xcalendar(self, val): - self["xcalendar"] = val + self['xcalendar'] = val # xhoverformat # ------------ @@ -1678,11 +1190,11 @@ def xhoverformat(self): ------- str """ - return self["xhoverformat"] + return self['xhoverformat'] @xhoverformat.setter def xhoverformat(self, val): - self["xhoverformat"] = val + self['xhoverformat'] = val # xperiod # ------- @@ -1700,11 +1212,11 @@ def xperiod(self): ------- Any """ - return self["xperiod"] + return self['xperiod'] @xperiod.setter def xperiod(self, val): - self["xperiod"] = val + self['xperiod'] = val # xperiod0 # -------- @@ -1723,11 +1235,11 @@ def xperiod0(self): ------- Any """ - return self["xperiod0"] + return self['xperiod0'] @xperiod0.setter def xperiod0(self, val): - self["xperiod0"] = val + self['xperiod0'] = val # xperiodalignment # ---------------- @@ -1745,11 +1257,11 @@ def xperiodalignment(self): ------- Any """ - return self["xperiodalignment"] + return self['xperiodalignment'] @xperiodalignment.setter def xperiodalignment(self, val): - self["xperiodalignment"] = val + self['xperiodalignment'] = val # xsrc # ---- @@ -1765,11 +1277,11 @@ def xsrc(self): ------- str """ - return self["xsrc"] + return self['xsrc'] @xsrc.setter def xsrc(self, val): - self["xsrc"] = val + self['xsrc'] = val # y # - @@ -1785,11 +1297,11 @@ def y(self): ------- numpy.ndarray """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # y0 # -- @@ -1806,11 +1318,11 @@ def y0(self): ------- Any """ - return self["y0"] + return self['y0'] @y0.setter def y0(self, val): - self["y0"] = val + self['y0'] = val # yaxis # ----- @@ -1831,11 +1343,11 @@ def yaxis(self): ------- str """ - return self["yaxis"] + return self['yaxis'] @yaxis.setter def yaxis(self, val): - self["yaxis"] = val + self['yaxis'] = val # ycalendar # --------- @@ -1855,11 +1367,11 @@ def ycalendar(self): ------- Any """ - return self["ycalendar"] + return self['ycalendar'] @ycalendar.setter def ycalendar(self, val): - self["ycalendar"] = val + self['ycalendar'] = val # yhoverformat # ------------ @@ -1886,11 +1398,11 @@ def yhoverformat(self): ------- str """ - return self["yhoverformat"] + return self['yhoverformat'] @yhoverformat.setter def yhoverformat(self, val): - self["yhoverformat"] = val + self['yhoverformat'] = val # yperiod # ------- @@ -1908,11 +1420,11 @@ def yperiod(self): ------- Any """ - return self["yperiod"] + return self['yperiod'] @yperiod.setter def yperiod(self, val): - self["yperiod"] = val + self['yperiod'] = val # yperiod0 # -------- @@ -1931,11 +1443,11 @@ def yperiod0(self): ------- Any """ - return self["yperiod0"] + return self['yperiod0'] @yperiod0.setter def yperiod0(self, val): - self["yperiod0"] = val + self['yperiod0'] = val # yperiodalignment # ---------------- @@ -1953,11 +1465,11 @@ def yperiodalignment(self): ------- Any """ - return self["yperiodalignment"] + return self['yperiodalignment'] @yperiodalignment.setter def yperiodalignment(self, val): - self["yperiodalignment"] = val + self['yperiodalignment'] = val # ysrc # ---- @@ -1973,17 +1485,17 @@ def ysrc(self): ------- str """ - return self["ysrc"] + return self['ysrc'] @ysrc.setter def ysrc(self, val): - self["ysrc"] = val + self['ysrc'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -2328,75 +1840,73 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `y`. """ - - def __init__( - self, - arg=None, - connectgaps=None, - customdata=None, - customdatasrc=None, - dx=None, - dy=None, - error_x=None, - error_y=None, - fill=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - text=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - x=None, - x0=None, - xaxis=None, - xcalendar=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - y=None, - y0=None, - yaxis=None, - ycalendar=None, - yhoverformat=None, - yperiod=None, - yperiod0=None, - yperiodalignment=None, - ysrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + connectgaps=None, + customdata=None, + customdatasrc=None, + dx=None, + dy=None, + error_x=None, + error_y=None, + fill=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + text=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + x=None, + x0=None, + xaxis=None, + xcalendar=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + y=None, + y0=None, + yaxis=None, + ycalendar=None, + yhoverformat=None, + yperiod=None, + yperiod0=None, + yperiodalignment=None, + ysrc=None, + **kwargs + ): """ Construct a new Scattergl object @@ -2752,10 +2262,10 @@ def __init__( ------- Scattergl """ - super(Scattergl, self).__init__("scattergl") + super(Scattergl, self).__init__('scattergl') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2767,278 +2277,88 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Scattergl constructor must be a dict or -an instance of :class:`plotly.graph_objs.Scattergl`""" - ) +an instance of :class:`plotly.graph_objs.Scattergl`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("connectgaps", None) - _v = connectgaps if connectgaps is not None else _v - if _v is not None: - self["connectgaps"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("dx", None) - _v = dx if dx is not None else _v - if _v is not None: - self["dx"] = _v - _v = arg.pop("dy", None) - _v = dy if dy is not None else _v - if _v is not None: - self["dy"] = _v - _v = arg.pop("error_x", None) - _v = error_x if error_x is not None else _v - if _v is not None: - self["error_x"] = _v - _v = arg.pop("error_y", None) - _v = error_y if error_y is not None else _v - if _v is not None: - self["error_y"] = _v - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("fillcolor", None) - _v = fillcolor if fillcolor is not None else _v - if _v is not None: - self["fillcolor"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("mode", None) - _v = mode if mode is not None else _v - if _v is not None: - self["mode"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("selected", None) - _v = selected if selected is not None else _v - if _v is not None: - self["selected"] = _v - _v = arg.pop("selectedpoints", None) - _v = selectedpoints if selectedpoints is not None else _v - if _v is not None: - self["selectedpoints"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v - _v = arg.pop("textposition", None) - _v = textposition if textposition is not None else _v - if _v is not None: - self["textposition"] = _v - _v = arg.pop("textpositionsrc", None) - _v = textpositionsrc if textpositionsrc is not None else _v - if _v is not None: - self["textpositionsrc"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("texttemplate", None) - _v = texttemplate if texttemplate is not None else _v - if _v is not None: - self["texttemplate"] = _v - _v = arg.pop("texttemplatesrc", None) - _v = texttemplatesrc if texttemplatesrc is not None else _v - if _v is not None: - self["texttemplatesrc"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("unselected", None) - _v = unselected if unselected is not None else _v - if _v is not None: - self["unselected"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("x0", None) - _v = x0 if x0 is not None else _v - if _v is not None: - self["x0"] = _v - _v = arg.pop("xaxis", None) - _v = xaxis if xaxis is not None else _v - if _v is not None: - self["xaxis"] = _v - _v = arg.pop("xcalendar", None) - _v = xcalendar if xcalendar is not None else _v - if _v is not None: - self["xcalendar"] = _v - _v = arg.pop("xhoverformat", None) - _v = xhoverformat if xhoverformat is not None else _v - if _v is not None: - self["xhoverformat"] = _v - _v = arg.pop("xperiod", None) - _v = xperiod if xperiod is not None else _v - if _v is not None: - self["xperiod"] = _v - _v = arg.pop("xperiod0", None) - _v = xperiod0 if xperiod0 is not None else _v - if _v is not None: - self["xperiod0"] = _v - _v = arg.pop("xperiodalignment", None) - _v = xperiodalignment if xperiodalignment is not None else _v - if _v is not None: - self["xperiodalignment"] = _v - _v = arg.pop("xsrc", None) - _v = xsrc if xsrc is not None else _v - if _v is not None: - self["xsrc"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("y0", None) - _v = y0 if y0 is not None else _v - if _v is not None: - self["y0"] = _v - _v = arg.pop("yaxis", None) - _v = yaxis if yaxis is not None else _v - if _v is not None: - self["yaxis"] = _v - _v = arg.pop("ycalendar", None) - _v = ycalendar if ycalendar is not None else _v - if _v is not None: - self["ycalendar"] = _v - _v = arg.pop("yhoverformat", None) - _v = yhoverformat if yhoverformat is not None else _v - if _v is not None: - self["yhoverformat"] = _v - _v = arg.pop("yperiod", None) - _v = yperiod if yperiod is not None else _v - if _v is not None: - self["yperiod"] = _v - _v = arg.pop("yperiod0", None) - _v = yperiod0 if yperiod0 is not None else _v - if _v is not None: - self["yperiod0"] = _v - _v = arg.pop("yperiodalignment", None) - _v = yperiodalignment if yperiodalignment is not None else _v - if _v is not None: - self["yperiodalignment"] = _v - _v = arg.pop("ysrc", None) - _v = ysrc if ysrc is not None else _v - if _v is not None: - self["ysrc"] = _v + self._init_provided('connectgaps', arg, connectgaps) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('dx', arg, dx) + self._init_provided('dy', arg, dy) + self._init_provided('error_x', arg, error_x) + self._init_provided('error_y', arg, error_y) + self._init_provided('fill', arg, fill) + self._init_provided('fillcolor', arg, fillcolor) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('line', arg, line) + self._init_provided('marker', arg, marker) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('mode', arg, mode) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('selected', arg, selected) + self._init_provided('selectedpoints', arg, selectedpoints) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('stream', arg, stream) + self._init_provided('text', arg, text) + self._init_provided('textfont', arg, textfont) + self._init_provided('textposition', arg, textposition) + self._init_provided('textpositionsrc', arg, textpositionsrc) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('texttemplate', arg, texttemplate) + self._init_provided('texttemplatesrc', arg, texttemplatesrc) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('unselected', arg, unselected) + self._init_provided('visible', arg, visible) + self._init_provided('x', arg, x) + self._init_provided('x0', arg, x0) + self._init_provided('xaxis', arg, xaxis) + self._init_provided('xcalendar', arg, xcalendar) + self._init_provided('xhoverformat', arg, xhoverformat) + self._init_provided('xperiod', arg, xperiod) + self._init_provided('xperiod0', arg, xperiod0) + self._init_provided('xperiodalignment', arg, xperiodalignment) + self._init_provided('xsrc', arg, xsrc) + self._init_provided('y', arg, y) + self._init_provided('y0', arg, y0) + self._init_provided('yaxis', arg, yaxis) + self._init_provided('ycalendar', arg, ycalendar) + self._init_provided('yhoverformat', arg, yhoverformat) + self._init_provided('yperiod', arg, yperiod) + self._init_provided('yperiod0', arg, yperiod0) + self._init_provided('yperiodalignment', arg, yperiodalignment) + self._init_provided('ysrc', arg, ysrc) # Read-only literals # ------------------ - self._props["type"] = "scattergl" - arg.pop("type", None) + self._props['type'] = 'scattergl' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_scattermap.py b/packages/python/plotly/plotly/graph_objs/_scattermap.py index cb1b8713c9c..9b3fbd159da 100644 --- a/packages/python/plotly/plotly/graph_objs/_scattermap.py +++ b/packages/python/plotly/plotly/graph_objs/_scattermap.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,58 +8,9 @@ class Scattermap(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "scattermap" - _valid_props = { - "below", - "cluster", - "connectgaps", - "customdata", - "customdatasrc", - "fill", - "fillcolor", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "lat", - "latsrc", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "line", - "lon", - "lonsrc", - "marker", - "meta", - "metasrc", - "mode", - "name", - "opacity", - "selected", - "selectedpoints", - "showlegend", - "stream", - "subplot", - "text", - "textfont", - "textposition", - "textsrc", - "texttemplate", - "texttemplatesrc", - "type", - "uid", - "uirevision", - "unselected", - "visible", - } + _parent_path_str = '' + _path_str = 'scattermap' + _valid_props = {"below", "cluster", "connectgaps", "customdata", "customdatasrc", "fill", "fillcolor", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "lat", "latsrc", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "line", "lon", "lonsrc", "marker", "meta", "metasrc", "mode", "name", "opacity", "selected", "selectedpoints", "showlegend", "stream", "subplot", "text", "textfont", "textposition", "textsrc", "texttemplate", "texttemplatesrc", "type", "uid", "uirevision", "unselected", "visible"} # below # ----- @@ -77,11 +30,11 @@ def below(self): ------- str """ - return self["below"] + return self['below'] @below.setter def below(self, val): - self["below"] = val + self['below'] = val # cluster # ------- @@ -94,51 +47,15 @@ def cluster(self): - A dict of string/value properties that will be passed to the Cluster constructor - Supported dict properties: - - color - Sets the color for each cluster step. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - enabled - Determines whether clustering is enabled or - disabled. - maxzoom - Sets the maximum zoom level. At zoom levels - equal to or greater than this, points will - never be clustered. - opacity - Sets the marker opacity. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - size - Sets the size for each cluster step. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - step - Sets how many points it takes to create a - cluster or advance to the next cluster step. - Use this in conjunction with arrays for `size` - and / or `color`. If an integer, steps start at - multiples of this number. If an array, each - step extends from the given value until one - less than the next value. - stepsrc - Sets the source reference on Chart Studio Cloud - for `step`. - Returns ------- plotly.graph_objs.scattermap.Cluster """ - return self["cluster"] + return self['cluster'] @cluster.setter def cluster(self, val): - self["cluster"] = val + self['cluster'] = val # connectgaps # ----------- @@ -155,11 +72,11 @@ def connectgaps(self): ------- bool """ - return self["connectgaps"] + return self['connectgaps'] @connectgaps.setter def connectgaps(self, val): - self["connectgaps"] = val + self['connectgaps'] = val # customdata # ---------- @@ -178,11 +95,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -199,11 +116,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # fill # ---- @@ -222,11 +139,11 @@ def fill(self): ------- Any """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # fillcolor # --------- @@ -242,52 +159,17 @@ def fillcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["fillcolor"] + return self['fillcolor'] @fillcolor.setter def fillcolor(self, val): - self["fillcolor"] = val + self['fillcolor'] = val # hoverinfo # --------- @@ -309,11 +191,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -330,11 +212,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -347,53 +229,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.scattermap.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -433,11 +277,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -454,11 +298,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -480,11 +324,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -501,11 +345,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -523,11 +367,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -543,11 +387,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # lat # --- @@ -563,11 +407,11 @@ def lat(self): ------- numpy.ndarray """ - return self["lat"] + return self['lat'] @lat.setter def lat(self, val): - self["lat"] = val + self['lat'] = val # latsrc # ------ @@ -583,11 +427,11 @@ def latsrc(self): ------- str """ - return self["latsrc"] + return self['latsrc'] @latsrc.setter def latsrc(self, val): - self["latsrc"] = val + self['latsrc'] = val # legend # ------ @@ -608,11 +452,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -631,11 +475,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -648,22 +492,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.scattermap.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -686,11 +523,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -707,11 +544,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # line # ---- @@ -724,22 +561,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the line color. - width - Sets the line width (in px). - Returns ------- plotly.graph_objs.scattermap.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # lon # --- @@ -755,11 +585,11 @@ def lon(self): ------- numpy.ndarray """ - return self["lon"] + return self['lon'] @lon.setter def lon(self, val): - self["lon"] = val + self['lon'] = val # lonsrc # ------ @@ -775,11 +605,11 @@ def lonsrc(self): ------- str """ - return self["lonsrc"] + return self['lonsrc'] @lonsrc.setter def lonsrc(self, val): - self["lonsrc"] = val + self['lonsrc'] = val # marker # ------ @@ -792,147 +622,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - allowoverlap - Flag to draw all symbols, even if they overlap. - angle - Sets the marker orientation from true North, in - degrees clockwise. When using the "auto" - default, no rotation would be applied in - perspective views which is different from using - a zero angle. - anglesrc - Sets the source reference on Chart Studio Cloud - for `angle`. - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.scattermap.marker. - ColorBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - opacity - Sets the marker opacity. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. - size - Sets the marker size (in px). - sizemin - Has an effect only if `marker.size` is set to a - numerical array. Sets the minimum size (in px) - of the rendered marker points. - sizemode - Has an effect only if `marker.size` is set to a - numerical array. Sets the rule for which the - data in `size` is converted to pixels. - sizeref - Has an effect only if `marker.size` is set to a - numerical array. Sets the scale factor used to - determine the rendered size of marker points. - Use with `sizemin` and `sizemode`. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - symbol - Sets the marker symbol. Full list: - https://www.map.com/maki-icons/ Note that the - array `marker.color` and `marker.size` are only - available for "circle" symbols. - symbolsrc - Sets the source reference on Chart Studio Cloud - for `symbol`. - Returns ------- plotly.graph_objs.scattermap.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # meta # ---- @@ -956,11 +654,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -976,11 +674,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # mode # ---- @@ -1002,11 +700,11 @@ def mode(self): ------- Any """ - return self["mode"] + return self['mode'] @mode.setter def mode(self, val): - self["mode"] = val + self['mode'] = val # name # ---- @@ -1024,11 +722,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -1044,11 +742,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # selected # -------- @@ -1061,22 +759,15 @@ def selected(self): - A dict of string/value properties that will be passed to the Selected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.scattermap.selecte - d.Marker` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.scattermap.Selected """ - return self["selected"] + return self['selected'] @selected.setter def selected(self, val): - self["selected"] = val + self['selected'] = val # selectedpoints # -------------- @@ -1096,11 +787,11 @@ def selectedpoints(self): ------- Any """ - return self["selectedpoints"] + return self['selectedpoints'] @selectedpoints.setter def selectedpoints(self, val): - self["selectedpoints"] = val + self['selectedpoints'] = val # showlegend # ---------- @@ -1117,11 +808,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # stream # ------ @@ -1134,27 +825,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.scattermap.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # subplot # ------- @@ -1175,11 +854,11 @@ def subplot(self): ------- str """ - return self["subplot"] + return self['subplot'] @subplot.setter def subplot(self, val): - self["subplot"] = val + self['subplot'] = val # text # ---- @@ -1202,11 +881,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textfont # -------- @@ -1223,44 +902,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scattermap.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # textposition # ------------ @@ -1280,11 +930,11 @@ def textposition(self): ------- Any """ - return self["textposition"] + return self['textposition'] @textposition.setter def textposition(self, val): - self["textposition"] = val + self['textposition'] = val # textsrc # ------- @@ -1300,11 +950,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # texttemplate # ------------ @@ -1335,11 +985,11 @@ def texttemplate(self): ------- str|numpy.ndarray """ - return self["texttemplate"] + return self['texttemplate'] @texttemplate.setter def texttemplate(self, val): - self["texttemplate"] = val + self['texttemplate'] = val # texttemplatesrc # --------------- @@ -1356,11 +1006,11 @@ def texttemplatesrc(self): ------- str """ - return self["texttemplatesrc"] + return self['texttemplatesrc'] @texttemplatesrc.setter def texttemplatesrc(self, val): - self["texttemplatesrc"] = val + self['texttemplatesrc'] = val # uid # --- @@ -1378,11 +1028,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1411,11 +1061,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # unselected # ---------- @@ -1428,22 +1078,15 @@ def unselected(self): - A dict of string/value properties that will be passed to the Unselected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.scattermap.unselec - ted.Marker` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.scattermap.Unselected """ - return self["unselected"] + return self['unselected'] @unselected.setter def unselected(self, val): - self["unselected"] = val + self['unselected'] = val # visible # ------- @@ -1462,17 +1105,17 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -1726,59 +1369,57 @@ def _prop_descriptions(self): a legend item (provided that the legend itself is visible). """ - - def __init__( - self, - arg=None, - below=None, - cluster=None, - connectgaps=None, - customdata=None, - customdatasrc=None, - fill=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - lat=None, - latsrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - lon=None, - lonsrc=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - subplot=None, - text=None, - textfont=None, - textposition=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + below=None, + cluster=None, + connectgaps=None, + customdata=None, + customdatasrc=None, + fill=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + lat=None, + latsrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + lon=None, + lonsrc=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + subplot=None, + text=None, + textfont=None, + textposition=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + **kwargs + ): """ Construct a new Scattermap object @@ -2042,10 +1683,10 @@ def __init__( ------- Scattermap """ - super(Scattermap, self).__init__("scattermap") + super(Scattermap, self).__init__('scattermap') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2057,214 +1698,72 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Scattermap constructor must be a dict or -an instance of :class:`plotly.graph_objs.Scattermap`""" - ) +an instance of :class:`plotly.graph_objs.Scattermap`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("below", None) - _v = below if below is not None else _v - if _v is not None: - self["below"] = _v - _v = arg.pop("cluster", None) - _v = cluster if cluster is not None else _v - if _v is not None: - self["cluster"] = _v - _v = arg.pop("connectgaps", None) - _v = connectgaps if connectgaps is not None else _v - if _v is not None: - self["connectgaps"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("fillcolor", None) - _v = fillcolor if fillcolor is not None else _v - if _v is not None: - self["fillcolor"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("lat", None) - _v = lat if lat is not None else _v - if _v is not None: - self["lat"] = _v - _v = arg.pop("latsrc", None) - _v = latsrc if latsrc is not None else _v - if _v is not None: - self["latsrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("lon", None) - _v = lon if lon is not None else _v - if _v is not None: - self["lon"] = _v - _v = arg.pop("lonsrc", None) - _v = lonsrc if lonsrc is not None else _v - if _v is not None: - self["lonsrc"] = _v - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("mode", None) - _v = mode if mode is not None else _v - if _v is not None: - self["mode"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("selected", None) - _v = selected if selected is not None else _v - if _v is not None: - self["selected"] = _v - _v = arg.pop("selectedpoints", None) - _v = selectedpoints if selectedpoints is not None else _v - if _v is not None: - self["selectedpoints"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("subplot", None) - _v = subplot if subplot is not None else _v - if _v is not None: - self["subplot"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v - _v = arg.pop("textposition", None) - _v = textposition if textposition is not None else _v - if _v is not None: - self["textposition"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("texttemplate", None) - _v = texttemplate if texttemplate is not None else _v - if _v is not None: - self["texttemplate"] = _v - _v = arg.pop("texttemplatesrc", None) - _v = texttemplatesrc if texttemplatesrc is not None else _v - if _v is not None: - self["texttemplatesrc"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("unselected", None) - _v = unselected if unselected is not None else _v - if _v is not None: - self["unselected"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('below', arg, below) + self._init_provided('cluster', arg, cluster) + self._init_provided('connectgaps', arg, connectgaps) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('fill', arg, fill) + self._init_provided('fillcolor', arg, fillcolor) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('lat', arg, lat) + self._init_provided('latsrc', arg, latsrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('line', arg, line) + self._init_provided('lon', arg, lon) + self._init_provided('lonsrc', arg, lonsrc) + self._init_provided('marker', arg, marker) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('mode', arg, mode) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('selected', arg, selected) + self._init_provided('selectedpoints', arg, selectedpoints) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('stream', arg, stream) + self._init_provided('subplot', arg, subplot) + self._init_provided('text', arg, text) + self._init_provided('textfont', arg, textfont) + self._init_provided('textposition', arg, textposition) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('texttemplate', arg, texttemplate) + self._init_provided('texttemplatesrc', arg, texttemplatesrc) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('unselected', arg, unselected) + self._init_provided('visible', arg, visible) # Read-only literals # ------------------ - self._props["type"] = "scattermap" - arg.pop("type", None) + self._props['type'] = 'scattermap' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_scattermapbox.py b/packages/python/plotly/plotly/graph_objs/_scattermapbox.py index c7494d48fbe..16474492ee1 100644 --- a/packages/python/plotly/plotly/graph_objs/_scattermapbox.py +++ b/packages/python/plotly/plotly/graph_objs/_scattermapbox.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy from warnings import warn @@ -7,58 +9,9 @@ class Scattermapbox(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "scattermapbox" - _valid_props = { - "below", - "cluster", - "connectgaps", - "customdata", - "customdatasrc", - "fill", - "fillcolor", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "lat", - "latsrc", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "line", - "lon", - "lonsrc", - "marker", - "meta", - "metasrc", - "mode", - "name", - "opacity", - "selected", - "selectedpoints", - "showlegend", - "stream", - "subplot", - "text", - "textfont", - "textposition", - "textsrc", - "texttemplate", - "texttemplatesrc", - "type", - "uid", - "uirevision", - "unselected", - "visible", - } + _parent_path_str = '' + _path_str = 'scattermapbox' + _valid_props = {"below", "cluster", "connectgaps", "customdata", "customdatasrc", "fill", "fillcolor", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "lat", "latsrc", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "line", "lon", "lonsrc", "marker", "meta", "metasrc", "mode", "name", "opacity", "selected", "selectedpoints", "showlegend", "stream", "subplot", "text", "textfont", "textposition", "textsrc", "texttemplate", "texttemplatesrc", "type", "uid", "uirevision", "unselected", "visible"} # below # ----- @@ -79,11 +32,11 @@ def below(self): ------- str """ - return self["below"] + return self['below'] @below.setter def below(self, val): - self["below"] = val + self['below'] = val # cluster # ------- @@ -96,51 +49,15 @@ def cluster(self): - A dict of string/value properties that will be passed to the Cluster constructor - Supported dict properties: - - color - Sets the color for each cluster step. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - enabled - Determines whether clustering is enabled or - disabled. - maxzoom - Sets the maximum zoom level. At zoom levels - equal to or greater than this, points will - never be clustered. - opacity - Sets the marker opacity. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - size - Sets the size for each cluster step. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - step - Sets how many points it takes to create a - cluster or advance to the next cluster step. - Use this in conjunction with arrays for `size` - and / or `color`. If an integer, steps start at - multiples of this number. If an array, each - step extends from the given value until one - less than the next value. - stepsrc - Sets the source reference on Chart Studio Cloud - for `step`. - Returns ------- plotly.graph_objs.scattermapbox.Cluster """ - return self["cluster"] + return self['cluster'] @cluster.setter def cluster(self, val): - self["cluster"] = val + self['cluster'] = val # connectgaps # ----------- @@ -157,11 +74,11 @@ def connectgaps(self): ------- bool """ - return self["connectgaps"] + return self['connectgaps'] @connectgaps.setter def connectgaps(self, val): - self["connectgaps"] = val + self['connectgaps'] = val # customdata # ---------- @@ -180,11 +97,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -201,11 +118,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # fill # ---- @@ -224,11 +141,11 @@ def fill(self): ------- Any """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # fillcolor # --------- @@ -244,52 +161,17 @@ def fillcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["fillcolor"] + return self['fillcolor'] @fillcolor.setter def fillcolor(self, val): - self["fillcolor"] = val + self['fillcolor'] = val # hoverinfo # --------- @@ -311,11 +193,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -332,11 +214,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -349,53 +231,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.scattermapbox.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -435,11 +279,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -456,11 +300,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -482,11 +326,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -503,11 +347,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -525,11 +369,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -545,11 +389,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # lat # --- @@ -565,11 +409,11 @@ def lat(self): ------- numpy.ndarray """ - return self["lat"] + return self['lat'] @lat.setter def lat(self, val): - self["lat"] = val + self['lat'] = val # latsrc # ------ @@ -585,11 +429,11 @@ def latsrc(self): ------- str """ - return self["latsrc"] + return self['latsrc'] @latsrc.setter def latsrc(self, val): - self["latsrc"] = val + self['latsrc'] = val # legend # ------ @@ -610,11 +454,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -633,11 +477,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -650,22 +494,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.scattermapbox.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -688,11 +525,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -709,11 +546,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # line # ---- @@ -726,22 +563,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the line color. - width - Sets the line width (in px). - Returns ------- plotly.graph_objs.scattermapbox.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # lon # --- @@ -757,11 +587,11 @@ def lon(self): ------- numpy.ndarray """ - return self["lon"] + return self['lon'] @lon.setter def lon(self, val): - self["lon"] = val + self['lon'] = val # lonsrc # ------ @@ -777,11 +607,11 @@ def lonsrc(self): ------- str """ - return self["lonsrc"] + return self['lonsrc'] @lonsrc.setter def lonsrc(self, val): - self["lonsrc"] = val + self['lonsrc'] = val # marker # ------ @@ -794,147 +624,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - allowoverlap - Flag to draw all symbols, even if they overlap. - angle - Sets the marker orientation from true North, in - degrees clockwise. When using the "auto" - default, no rotation would be applied in - perspective views which is different from using - a zero angle. - anglesrc - Sets the source reference on Chart Studio Cloud - for `angle`. - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.scattermapbox.mark - er.ColorBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - opacity - Sets the marker opacity. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. - size - Sets the marker size (in px). - sizemin - Has an effect only if `marker.size` is set to a - numerical array. Sets the minimum size (in px) - of the rendered marker points. - sizemode - Has an effect only if `marker.size` is set to a - numerical array. Sets the rule for which the - data in `size` is converted to pixels. - sizeref - Has an effect only if `marker.size` is set to a - numerical array. Sets the scale factor used to - determine the rendered size of marker points. - Use with `sizemin` and `sizemode`. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - symbol - Sets the marker symbol. Full list: - https://www.mapbox.com/maki-icons/ Note that - the array `marker.color` and `marker.size` are - only available for "circle" symbols. - symbolsrc - Sets the source reference on Chart Studio Cloud - for `symbol`. - Returns ------- plotly.graph_objs.scattermapbox.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # meta # ---- @@ -958,11 +656,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -978,11 +676,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # mode # ---- @@ -1004,11 +702,11 @@ def mode(self): ------- Any """ - return self["mode"] + return self['mode'] @mode.setter def mode(self, val): - self["mode"] = val + self['mode'] = val # name # ---- @@ -1026,11 +724,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -1046,11 +744,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # selected # -------- @@ -1063,22 +761,15 @@ def selected(self): - A dict of string/value properties that will be passed to the Selected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.scattermapbox.sele - cted.Marker` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.scattermapbox.Selected """ - return self["selected"] + return self['selected'] @selected.setter def selected(self, val): - self["selected"] = val + self['selected'] = val # selectedpoints # -------------- @@ -1098,11 +789,11 @@ def selectedpoints(self): ------- Any """ - return self["selectedpoints"] + return self['selectedpoints'] @selectedpoints.setter def selectedpoints(self, val): - self["selectedpoints"] = val + self['selectedpoints'] = val # showlegend # ---------- @@ -1119,11 +810,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # stream # ------ @@ -1136,27 +827,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.scattermapbox.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # subplot # ------- @@ -1181,11 +860,11 @@ def subplot(self): ------- str """ - return self["subplot"] + return self['subplot'] @subplot.setter def subplot(self, val): - self["subplot"] = val + self['subplot'] = val # text # ---- @@ -1208,11 +887,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textfont # -------- @@ -1229,44 +908,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scattermapbox.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # textposition # ------------ @@ -1286,11 +936,11 @@ def textposition(self): ------- Any """ - return self["textposition"] + return self['textposition'] @textposition.setter def textposition(self, val): - self["textposition"] = val + self['textposition'] = val # textsrc # ------- @@ -1306,11 +956,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # texttemplate # ------------ @@ -1341,11 +991,11 @@ def texttemplate(self): ------- str|numpy.ndarray """ - return self["texttemplate"] + return self['texttemplate'] @texttemplate.setter def texttemplate(self, val): - self["texttemplate"] = val + self['texttemplate'] = val # texttemplatesrc # --------------- @@ -1362,11 +1012,11 @@ def texttemplatesrc(self): ------- str """ - return self["texttemplatesrc"] + return self['texttemplatesrc'] @texttemplatesrc.setter def texttemplatesrc(self, val): - self["texttemplatesrc"] = val + self['texttemplatesrc'] = val # uid # --- @@ -1384,11 +1034,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1417,11 +1067,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # unselected # ---------- @@ -1434,22 +1084,15 @@ def unselected(self): - A dict of string/value properties that will be passed to the Unselected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.scattermapbox.unse - lected.Marker` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.scattermapbox.Unselected """ - return self["unselected"] + return self['unselected'] @unselected.setter def unselected(self, val): - self["unselected"] = val + self['unselected'] = val # visible # ------- @@ -1468,17 +1111,17 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -1737,59 +1380,57 @@ def _prop_descriptions(self): a legend item (provided that the legend itself is visible). """ - - def __init__( - self, - arg=None, - below=None, - cluster=None, - connectgaps=None, - customdata=None, - customdatasrc=None, - fill=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - lat=None, - latsrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - lon=None, - lonsrc=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - subplot=None, - text=None, - textfont=None, - textposition=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + below=None, + cluster=None, + connectgaps=None, + customdata=None, + customdatasrc=None, + fill=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + lat=None, + latsrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + lon=None, + lonsrc=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + subplot=None, + text=None, + textfont=None, + textposition=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + **kwargs + ): """ Construct a new Scattermapbox object @@ -2062,10 +1703,10 @@ def __init__( ------- Scattermapbox """ - super(Scattermapbox, self).__init__("scattermapbox") + super(Scattermapbox, self).__init__('scattermapbox') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2077,214 +1718,72 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Scattermapbox constructor must be a dict or -an instance of :class:`plotly.graph_objs.Scattermapbox`""" - ) +an instance of :class:`plotly.graph_objs.Scattermapbox`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("below", None) - _v = below if below is not None else _v - if _v is not None: - self["below"] = _v - _v = arg.pop("cluster", None) - _v = cluster if cluster is not None else _v - if _v is not None: - self["cluster"] = _v - _v = arg.pop("connectgaps", None) - _v = connectgaps if connectgaps is not None else _v - if _v is not None: - self["connectgaps"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("fillcolor", None) - _v = fillcolor if fillcolor is not None else _v - if _v is not None: - self["fillcolor"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("lat", None) - _v = lat if lat is not None else _v - if _v is not None: - self["lat"] = _v - _v = arg.pop("latsrc", None) - _v = latsrc if latsrc is not None else _v - if _v is not None: - self["latsrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("lon", None) - _v = lon if lon is not None else _v - if _v is not None: - self["lon"] = _v - _v = arg.pop("lonsrc", None) - _v = lonsrc if lonsrc is not None else _v - if _v is not None: - self["lonsrc"] = _v - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("mode", None) - _v = mode if mode is not None else _v - if _v is not None: - self["mode"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("selected", None) - _v = selected if selected is not None else _v - if _v is not None: - self["selected"] = _v - _v = arg.pop("selectedpoints", None) - _v = selectedpoints if selectedpoints is not None else _v - if _v is not None: - self["selectedpoints"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("subplot", None) - _v = subplot if subplot is not None else _v - if _v is not None: - self["subplot"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v - _v = arg.pop("textposition", None) - _v = textposition if textposition is not None else _v - if _v is not None: - self["textposition"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("texttemplate", None) - _v = texttemplate if texttemplate is not None else _v - if _v is not None: - self["texttemplate"] = _v - _v = arg.pop("texttemplatesrc", None) - _v = texttemplatesrc if texttemplatesrc is not None else _v - if _v is not None: - self["texttemplatesrc"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("unselected", None) - _v = unselected if unselected is not None else _v - if _v is not None: - self["unselected"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('below', arg, below) + self._init_provided('cluster', arg, cluster) + self._init_provided('connectgaps', arg, connectgaps) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('fill', arg, fill) + self._init_provided('fillcolor', arg, fillcolor) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('lat', arg, lat) + self._init_provided('latsrc', arg, latsrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('line', arg, line) + self._init_provided('lon', arg, lon) + self._init_provided('lonsrc', arg, lonsrc) + self._init_provided('marker', arg, marker) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('mode', arg, mode) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('selected', arg, selected) + self._init_provided('selectedpoints', arg, selectedpoints) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('stream', arg, stream) + self._init_provided('subplot', arg, subplot) + self._init_provided('text', arg, text) + self._init_provided('textfont', arg, textfont) + self._init_provided('textposition', arg, textposition) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('texttemplate', arg, texttemplate) + self._init_provided('texttemplatesrc', arg, texttemplatesrc) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('unselected', arg, unselected) + self._init_provided('visible', arg, visible) # Read-only literals # ------------------ - self._props["type"] = "scattermapbox" - arg.pop("type", None) + self._props['type'] = 'scattermapbox' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_scatterpolar.py b/packages/python/plotly/plotly/graph_objs/_scatterpolar.py index 57ba5a4e27d..3157776e518 100644 --- a/packages/python/plotly/plotly/graph_objs/_scatterpolar.py +++ b/packages/python/plotly/plotly/graph_objs/_scatterpolar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,64 +8,9 @@ class Scatterpolar(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "scatterpolar" - _valid_props = { - "cliponaxis", - "connectgaps", - "customdata", - "customdatasrc", - "dr", - "dtheta", - "fill", - "fillcolor", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hoveron", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "line", - "marker", - "meta", - "metasrc", - "mode", - "name", - "opacity", - "r", - "r0", - "rsrc", - "selected", - "selectedpoints", - "showlegend", - "stream", - "subplot", - "text", - "textfont", - "textposition", - "textpositionsrc", - "textsrc", - "texttemplate", - "texttemplatesrc", - "theta", - "theta0", - "thetasrc", - "thetaunit", - "type", - "uid", - "uirevision", - "unselected", - "visible", - } + _parent_path_str = '' + _path_str = 'scatterpolar' + _valid_props = {"cliponaxis", "connectgaps", "customdata", "customdatasrc", "dr", "dtheta", "fill", "fillcolor", "hoverinfo", "hoverinfosrc", "hoverlabel", "hoveron", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "line", "marker", "meta", "metasrc", "mode", "name", "opacity", "r", "r0", "rsrc", "selected", "selectedpoints", "showlegend", "stream", "subplot", "text", "textfont", "textposition", "textpositionsrc", "textsrc", "texttemplate", "texttemplatesrc", "theta", "theta0", "thetasrc", "thetaunit", "type", "uid", "uirevision", "unselected", "visible"} # cliponaxis # ---------- @@ -82,11 +29,11 @@ def cliponaxis(self): ------- bool """ - return self["cliponaxis"] + return self['cliponaxis'] @cliponaxis.setter def cliponaxis(self, val): - self["cliponaxis"] = val + self['cliponaxis'] = val # connectgaps # ----------- @@ -103,11 +50,11 @@ def connectgaps(self): ------- bool """ - return self["connectgaps"] + return self['connectgaps'] @connectgaps.setter def connectgaps(self, val): - self["connectgaps"] = val + self['connectgaps'] = val # customdata # ---------- @@ -126,11 +73,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -147,11 +94,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # dr # -- @@ -167,11 +114,11 @@ def dr(self): ------- int|float """ - return self["dr"] + return self['dr'] @dr.setter def dr(self, val): - self["dr"] = val + self['dr'] = val # dtheta # ------ @@ -189,11 +136,11 @@ def dtheta(self): ------- int|float """ - return self["dtheta"] + return self['dtheta'] @dtheta.setter def dtheta(self, val): - self["dtheta"] = val + self['dtheta'] = val # fill # ---- @@ -218,11 +165,11 @@ def fill(self): ------- Any """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # fillcolor # --------- @@ -238,52 +185,17 @@ def fillcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["fillcolor"] + return self['fillcolor'] @fillcolor.setter def fillcolor(self, val): - self["fillcolor"] = val + self['fillcolor'] = val # hoverinfo # --------- @@ -305,11 +217,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -326,11 +238,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -343,53 +255,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.scatterpolar.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hoveron # ------- @@ -410,11 +284,11 @@ def hoveron(self): ------- Any """ - return self["hoveron"] + return self['hoveron'] @hoveron.setter def hoveron(self, val): - self["hoveron"] = val + self['hoveron'] = val # hovertemplate # ------------- @@ -454,11 +328,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -475,11 +349,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -501,11 +375,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -522,11 +396,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -544,11 +418,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -564,11 +438,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # legend # ------ @@ -589,11 +463,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -612,11 +486,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -629,22 +503,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.scatterpolar.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -667,11 +534,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -688,11 +555,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # line # ---- @@ -705,47 +572,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - backoff - Sets the line back off from the end point of - the nth line segment (in px). This option is - useful e.g. to avoid overlap with arrowhead - markers. With "auto" the lines would trim - before markers if `marker.angleref` is set to - "previous". - backoffsrc - Sets the source reference on Chart Studio Cloud - for `backoff`. - color - Sets the line color. - dash - 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"). - shape - Determines the line shape. With "spline" the - lines are drawn using spline interpolation. The - other available values correspond to step-wise - line shapes. - smoothing - Has an effect only if `shape` is set to - "spline" Sets the amount of smoothing. 0 - corresponds to no smoothing (equivalent to a - "linear" shape). - width - Sets the line width (in px). - Returns ------- plotly.graph_objs.scatterpolar.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # marker # ------ @@ -758,168 +593,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - angle - Sets the marker angle in respect to `angleref`. - angleref - Sets the reference for marker angle. With - "previous", angle 0 points along the line from - the previous point to this one. With "up", - angle 0 points toward the top of the screen. - anglesrc - Sets the source reference on Chart Studio Cloud - for `angle`. - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.scatterpolar.marke - r.ColorBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - gradient - :class:`plotly.graph_objects.scatterpolar.marke - r.Gradient` instance or dict with compatible - properties - line - :class:`plotly.graph_objects.scatterpolar.marke - r.Line` instance or dict with compatible - properties - maxdisplayed - Sets a maximum number of points to be drawn on - the graph. 0 corresponds to no limit. - opacity - Sets the marker opacity. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. - size - Sets the marker size (in px). - sizemin - Has an effect only if `marker.size` is set to a - numerical array. Sets the minimum size (in px) - of the rendered marker points. - sizemode - Has an effect only if `marker.size` is set to a - numerical array. Sets the rule for which the - data in `size` is converted to pixels. - sizeref - Has an effect only if `marker.size` is set to a - numerical array. Sets the scale factor used to - determine the rendered size of marker points. - Use with `sizemin` and `sizemode`. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - standoff - Moves the marker away from the data point in - the direction of `angle` (in px). This can be - useful for example if you have another marker - at this location and you want to point an - arrowhead marker at it. - standoffsrc - Sets the source reference on Chart Studio Cloud - for `standoff`. - symbol - Sets the marker symbol type. Adding 100 is - equivalent to appending "-open" to a symbol - name. Adding 200 is equivalent to appending - "-dot" to a symbol name. Adding 300 is - equivalent to appending "-open-dot" or "dot- - open" to a symbol name. - symbolsrc - Sets the source reference on Chart Studio Cloud - for `symbol`. - Returns ------- plotly.graph_objs.scatterpolar.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # meta # ---- @@ -943,11 +625,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -963,11 +645,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # mode # ---- @@ -991,11 +673,11 @@ def mode(self): ------- Any """ - return self["mode"] + return self['mode'] @mode.setter def mode(self, val): - self["mode"] = val + self['mode'] = val # name # ---- @@ -1013,11 +695,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -1033,11 +715,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # r # - @@ -1053,11 +735,11 @@ def r(self): ------- numpy.ndarray """ - return self["r"] + return self['r'] @r.setter def r(self, val): - self["r"] = val + self['r'] = val # r0 # -- @@ -1074,11 +756,11 @@ def r0(self): ------- Any """ - return self["r0"] + return self['r0'] @r0.setter def r0(self, val): - self["r0"] = val + self['r0'] = val # rsrc # ---- @@ -1094,11 +776,11 @@ def rsrc(self): ------- str """ - return self["rsrc"] + return self['rsrc'] @rsrc.setter def rsrc(self, val): - self["rsrc"] = val + self['rsrc'] = val # selected # -------- @@ -1111,26 +793,15 @@ def selected(self): - A dict of string/value properties that will be passed to the Selected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.scatterpolar.selec - ted.Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.scatterpolar.selec - ted.Textfont` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.scatterpolar.Selected """ - return self["selected"] + return self['selected'] @selected.setter def selected(self, val): - self["selected"] = val + self['selected'] = val # selectedpoints # -------------- @@ -1150,11 +821,11 @@ def selectedpoints(self): ------- Any """ - return self["selectedpoints"] + return self['selectedpoints'] @selectedpoints.setter def selectedpoints(self, val): - self["selectedpoints"] = val + self['selectedpoints'] = val # showlegend # ---------- @@ -1171,11 +842,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # stream # ------ @@ -1188,27 +859,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.scatterpolar.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # subplot # ------- @@ -1229,11 +888,11 @@ def subplot(self): ------- str """ - return self["subplot"] + return self['subplot'] @subplot.setter def subplot(self, val): - self["subplot"] = val + self['subplot'] = val # text # ---- @@ -1256,11 +915,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textfont # -------- @@ -1275,88 +934,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.scatterpolar.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # textposition # ------------ @@ -1377,11 +963,11 @@ def textposition(self): ------- Any|numpy.ndarray """ - return self["textposition"] + return self['textposition'] @textposition.setter def textposition(self, val): - self["textposition"] = val + self['textposition'] = val # textpositionsrc # --------------- @@ -1398,11 +984,11 @@ def textpositionsrc(self): ------- str """ - return self["textpositionsrc"] + return self['textpositionsrc'] @textpositionsrc.setter def textpositionsrc(self, val): - self["textpositionsrc"] = val + self['textpositionsrc'] = val # textsrc # ------- @@ -1418,11 +1004,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # texttemplate # ------------ @@ -1453,11 +1039,11 @@ def texttemplate(self): ------- str|numpy.ndarray """ - return self["texttemplate"] + return self['texttemplate'] @texttemplate.setter def texttemplate(self, val): - self["texttemplate"] = val + self['texttemplate'] = val # texttemplatesrc # --------------- @@ -1474,11 +1060,11 @@ def texttemplatesrc(self): ------- str """ - return self["texttemplatesrc"] + return self['texttemplatesrc'] @texttemplatesrc.setter def texttemplatesrc(self, val): - self["texttemplatesrc"] = val + self['texttemplatesrc'] = val # theta # ----- @@ -1494,11 +1080,11 @@ def theta(self): ------- numpy.ndarray """ - return self["theta"] + return self['theta'] @theta.setter def theta(self, val): - self["theta"] = val + self['theta'] = val # theta0 # ------ @@ -1515,11 +1101,11 @@ def theta0(self): ------- Any """ - return self["theta0"] + return self['theta0'] @theta0.setter def theta0(self, val): - self["theta0"] = val + self['theta0'] = val # thetasrc # -------- @@ -1535,11 +1121,11 @@ def thetasrc(self): ------- str """ - return self["thetasrc"] + return self['thetasrc'] @thetasrc.setter def thetasrc(self, val): - self["thetasrc"] = val + self['thetasrc'] = val # thetaunit # --------- @@ -1557,11 +1143,11 @@ def thetaunit(self): ------- Any """ - return self["thetaunit"] + return self['thetaunit'] @thetaunit.setter def thetaunit(self, val): - self["thetaunit"] = val + self['thetaunit'] = val # uid # --- @@ -1579,11 +1165,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1612,11 +1198,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # unselected # ---------- @@ -1629,26 +1215,15 @@ def unselected(self): - A dict of string/value properties that will be passed to the Unselected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.scatterpolar.unsel - ected.Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.scatterpolar.unsel - ected.Textfont` instance or dict with - compatible properties - Returns ------- plotly.graph_objs.scatterpolar.Unselected """ - return self["unselected"] + return self['unselected'] @unselected.setter def unselected(self, val): - self["unselected"] = val + self['unselected'] = val # visible # ------- @@ -1667,17 +1242,17 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -1960,65 +1535,63 @@ def _prop_descriptions(self): a legend item (provided that the legend itself is visible). """ - - def __init__( - self, - arg=None, - cliponaxis=None, - connectgaps=None, - customdata=None, - customdatasrc=None, - dr=None, - dtheta=None, - fill=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hoveron=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - r=None, - r0=None, - rsrc=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - subplot=None, - text=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - theta=None, - theta0=None, - thetasrc=None, - thetaunit=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + cliponaxis=None, + connectgaps=None, + customdata=None, + customdatasrc=None, + dr=None, + dtheta=None, + fill=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hoveron=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + r=None, + r0=None, + rsrc=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + subplot=None, + text=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + theta=None, + theta0=None, + thetasrc=None, + thetaunit=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + **kwargs + ): """ Construct a new Scatterpolar object @@ -2315,10 +1888,10 @@ def __init__( ------- Scatterpolar """ - super(Scatterpolar, self).__init__("scatterpolar") + super(Scatterpolar, self).__init__('scatterpolar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2330,238 +1903,78 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Scatterpolar constructor must be a dict or -an instance of :class:`plotly.graph_objs.Scatterpolar`""" - ) +an instance of :class:`plotly.graph_objs.Scatterpolar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("cliponaxis", None) - _v = cliponaxis if cliponaxis is not None else _v - if _v is not None: - self["cliponaxis"] = _v - _v = arg.pop("connectgaps", None) - _v = connectgaps if connectgaps is not None else _v - if _v is not None: - self["connectgaps"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("dr", None) - _v = dr if dr is not None else _v - if _v is not None: - self["dr"] = _v - _v = arg.pop("dtheta", None) - _v = dtheta if dtheta is not None else _v - if _v is not None: - self["dtheta"] = _v - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("fillcolor", None) - _v = fillcolor if fillcolor is not None else _v - if _v is not None: - self["fillcolor"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hoveron", None) - _v = hoveron if hoveron is not None else _v - if _v is not None: - self["hoveron"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("mode", None) - _v = mode if mode is not None else _v - if _v is not None: - self["mode"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("r", None) - _v = r if r is not None else _v - if _v is not None: - self["r"] = _v - _v = arg.pop("r0", None) - _v = r0 if r0 is not None else _v - if _v is not None: - self["r0"] = _v - _v = arg.pop("rsrc", None) - _v = rsrc if rsrc is not None else _v - if _v is not None: - self["rsrc"] = _v - _v = arg.pop("selected", None) - _v = selected if selected is not None else _v - if _v is not None: - self["selected"] = _v - _v = arg.pop("selectedpoints", None) - _v = selectedpoints if selectedpoints is not None else _v - if _v is not None: - self["selectedpoints"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("subplot", None) - _v = subplot if subplot is not None else _v - if _v is not None: - self["subplot"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v - _v = arg.pop("textposition", None) - _v = textposition if textposition is not None else _v - if _v is not None: - self["textposition"] = _v - _v = arg.pop("textpositionsrc", None) - _v = textpositionsrc if textpositionsrc is not None else _v - if _v is not None: - self["textpositionsrc"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("texttemplate", None) - _v = texttemplate if texttemplate is not None else _v - if _v is not None: - self["texttemplate"] = _v - _v = arg.pop("texttemplatesrc", None) - _v = texttemplatesrc if texttemplatesrc is not None else _v - if _v is not None: - self["texttemplatesrc"] = _v - _v = arg.pop("theta", None) - _v = theta if theta is not None else _v - if _v is not None: - self["theta"] = _v - _v = arg.pop("theta0", None) - _v = theta0 if theta0 is not None else _v - if _v is not None: - self["theta0"] = _v - _v = arg.pop("thetasrc", None) - _v = thetasrc if thetasrc is not None else _v - if _v is not None: - self["thetasrc"] = _v - _v = arg.pop("thetaunit", None) - _v = thetaunit if thetaunit is not None else _v - if _v is not None: - self["thetaunit"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("unselected", None) - _v = unselected if unselected is not None else _v - if _v is not None: - self["unselected"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('cliponaxis', arg, cliponaxis) + self._init_provided('connectgaps', arg, connectgaps) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('dr', arg, dr) + self._init_provided('dtheta', arg, dtheta) + self._init_provided('fill', arg, fill) + self._init_provided('fillcolor', arg, fillcolor) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hoveron', arg, hoveron) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('line', arg, line) + self._init_provided('marker', arg, marker) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('mode', arg, mode) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('r', arg, r) + self._init_provided('r0', arg, r0) + self._init_provided('rsrc', arg, rsrc) + self._init_provided('selected', arg, selected) + self._init_provided('selectedpoints', arg, selectedpoints) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('stream', arg, stream) + self._init_provided('subplot', arg, subplot) + self._init_provided('text', arg, text) + self._init_provided('textfont', arg, textfont) + self._init_provided('textposition', arg, textposition) + self._init_provided('textpositionsrc', arg, textpositionsrc) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('texttemplate', arg, texttemplate) + self._init_provided('texttemplatesrc', arg, texttemplatesrc) + self._init_provided('theta', arg, theta) + self._init_provided('theta0', arg, theta0) + self._init_provided('thetasrc', arg, thetasrc) + self._init_provided('thetaunit', arg, thetaunit) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('unselected', arg, unselected) + self._init_provided('visible', arg, visible) # Read-only literals # ------------------ - self._props["type"] = "scatterpolar" - arg.pop("type", None) + self._props['type'] = 'scatterpolar' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_scatterpolargl.py b/packages/python/plotly/plotly/graph_objs/_scatterpolargl.py index 0269ff4df8b..18b459f2c3f 100644 --- a/packages/python/plotly/plotly/graph_objs/_scatterpolargl.py +++ b/packages/python/plotly/plotly/graph_objs/_scatterpolargl.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,62 +8,9 @@ class Scatterpolargl(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "scatterpolargl" - _valid_props = { - "connectgaps", - "customdata", - "customdatasrc", - "dr", - "dtheta", - "fill", - "fillcolor", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "line", - "marker", - "meta", - "metasrc", - "mode", - "name", - "opacity", - "r", - "r0", - "rsrc", - "selected", - "selectedpoints", - "showlegend", - "stream", - "subplot", - "text", - "textfont", - "textposition", - "textpositionsrc", - "textsrc", - "texttemplate", - "texttemplatesrc", - "theta", - "theta0", - "thetasrc", - "thetaunit", - "type", - "uid", - "uirevision", - "unselected", - "visible", - } + _parent_path_str = '' + _path_str = 'scatterpolargl' + _valid_props = {"connectgaps", "customdata", "customdatasrc", "dr", "dtheta", "fill", "fillcolor", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "line", "marker", "meta", "metasrc", "mode", "name", "opacity", "r", "r0", "rsrc", "selected", "selectedpoints", "showlegend", "stream", "subplot", "text", "textfont", "textposition", "textpositionsrc", "textsrc", "texttemplate", "texttemplatesrc", "theta", "theta0", "thetasrc", "thetaunit", "type", "uid", "uirevision", "unselected", "visible"} # connectgaps # ----------- @@ -78,11 +27,11 @@ def connectgaps(self): ------- bool """ - return self["connectgaps"] + return self['connectgaps'] @connectgaps.setter def connectgaps(self, val): - self["connectgaps"] = val + self['connectgaps'] = val # customdata # ---------- @@ -101,11 +50,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -122,11 +71,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # dr # -- @@ -142,11 +91,11 @@ def dr(self): ------- int|float """ - return self["dr"] + return self['dr'] @dr.setter def dr(self, val): - self["dr"] = val + self['dr'] = val # dtheta # ------ @@ -164,11 +113,11 @@ def dtheta(self): ------- int|float """ - return self["dtheta"] + return self['dtheta'] @dtheta.setter def dtheta(self, val): - self["dtheta"] = val + self['dtheta'] = val # fill # ---- @@ -204,11 +153,11 @@ def fill(self): ------- Any """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # fillcolor # --------- @@ -224,52 +173,17 @@ def fillcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["fillcolor"] + return self['fillcolor'] @fillcolor.setter def fillcolor(self, val): - self["fillcolor"] = val + self['fillcolor'] = val # hoverinfo # --------- @@ -291,11 +205,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -312,11 +226,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -329,53 +243,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.scatterpolargl.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -415,11 +291,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -436,11 +312,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -462,11 +338,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -483,11 +359,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -505,11 +381,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -525,11 +401,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # legend # ------ @@ -550,11 +426,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -573,11 +449,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -590,22 +466,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.scatterpolargl.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -628,11 +497,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -649,11 +518,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # line # ---- @@ -666,24 +535,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the line color. - dash - Sets the style of the lines. - width - Sets the line width (in px). - Returns ------- plotly.graph_objs.scatterpolargl.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # marker # ------ @@ -696,147 +556,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - angle - Sets the marker angle in respect to `angleref`. - anglesrc - Sets the source reference on Chart Studio Cloud - for `angle`. - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.scatterpolargl.mar - ker.ColorBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - line - :class:`plotly.graph_objects.scatterpolargl.mar - ker.Line` instance or dict with compatible - properties - opacity - Sets the marker opacity. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. - size - Sets the marker size (in px). - sizemin - Has an effect only if `marker.size` is set to a - numerical array. Sets the minimum size (in px) - of the rendered marker points. - sizemode - Has an effect only if `marker.size` is set to a - numerical array. Sets the rule for which the - data in `size` is converted to pixels. - sizeref - Has an effect only if `marker.size` is set to a - numerical array. Sets the scale factor used to - determine the rendered size of marker points. - Use with `sizemin` and `sizemode`. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - symbol - Sets the marker symbol type. Adding 100 is - equivalent to appending "-open" to a symbol - name. Adding 200 is equivalent to appending - "-dot" to a symbol name. Adding 300 is - equivalent to appending "-open-dot" or "dot- - open" to a symbol name. - symbolsrc - Sets the source reference on Chart Studio Cloud - for `symbol`. - Returns ------- plotly.graph_objs.scatterpolargl.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # meta # ---- @@ -860,11 +588,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -880,11 +608,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # mode # ---- @@ -908,11 +636,11 @@ def mode(self): ------- Any """ - return self["mode"] + return self['mode'] @mode.setter def mode(self, val): - self["mode"] = val + self['mode'] = val # name # ---- @@ -930,11 +658,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -950,11 +678,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # r # - @@ -970,11 +698,11 @@ def r(self): ------- numpy.ndarray """ - return self["r"] + return self['r'] @r.setter def r(self, val): - self["r"] = val + self['r'] = val # r0 # -- @@ -991,11 +719,11 @@ def r0(self): ------- Any """ - return self["r0"] + return self['r0'] @r0.setter def r0(self, val): - self["r0"] = val + self['r0'] = val # rsrc # ---- @@ -1011,11 +739,11 @@ def rsrc(self): ------- str """ - return self["rsrc"] + return self['rsrc'] @rsrc.setter def rsrc(self, val): - self["rsrc"] = val + self['rsrc'] = val # selected # -------- @@ -1028,26 +756,15 @@ def selected(self): - A dict of string/value properties that will be passed to the Selected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.scatterpolargl.sel - ected.Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.scatterpolargl.sel - ected.Textfont` instance or dict with - compatible properties - Returns ------- plotly.graph_objs.scatterpolargl.Selected """ - return self["selected"] + return self['selected'] @selected.setter def selected(self, val): - self["selected"] = val + self['selected'] = val # selectedpoints # -------------- @@ -1067,11 +784,11 @@ def selectedpoints(self): ------- Any """ - return self["selectedpoints"] + return self['selectedpoints'] @selectedpoints.setter def selectedpoints(self, val): - self["selectedpoints"] = val + self['selectedpoints'] = val # showlegend # ---------- @@ -1088,11 +805,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # stream # ------ @@ -1105,27 +822,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.scatterpolargl.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # subplot # ------- @@ -1146,11 +851,11 @@ def subplot(self): ------- str """ - return self["subplot"] + return self['subplot'] @subplot.setter def subplot(self, val): - self["subplot"] = val + self['subplot'] = val # text # ---- @@ -1173,11 +878,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textfont # -------- @@ -1192,64 +897,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.scatterpolargl.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # textposition # ------------ @@ -1270,11 +926,11 @@ def textposition(self): ------- Any|numpy.ndarray """ - return self["textposition"] + return self['textposition'] @textposition.setter def textposition(self, val): - self["textposition"] = val + self['textposition'] = val # textpositionsrc # --------------- @@ -1291,11 +947,11 @@ def textpositionsrc(self): ------- str """ - return self["textpositionsrc"] + return self['textpositionsrc'] @textpositionsrc.setter def textpositionsrc(self, val): - self["textpositionsrc"] = val + self['textpositionsrc'] = val # textsrc # ------- @@ -1311,11 +967,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # texttemplate # ------------ @@ -1346,11 +1002,11 @@ def texttemplate(self): ------- str|numpy.ndarray """ - return self["texttemplate"] + return self['texttemplate'] @texttemplate.setter def texttemplate(self, val): - self["texttemplate"] = val + self['texttemplate'] = val # texttemplatesrc # --------------- @@ -1367,11 +1023,11 @@ def texttemplatesrc(self): ------- str """ - return self["texttemplatesrc"] + return self['texttemplatesrc'] @texttemplatesrc.setter def texttemplatesrc(self, val): - self["texttemplatesrc"] = val + self['texttemplatesrc'] = val # theta # ----- @@ -1387,11 +1043,11 @@ def theta(self): ------- numpy.ndarray """ - return self["theta"] + return self['theta'] @theta.setter def theta(self, val): - self["theta"] = val + self['theta'] = val # theta0 # ------ @@ -1408,11 +1064,11 @@ def theta0(self): ------- Any """ - return self["theta0"] + return self['theta0'] @theta0.setter def theta0(self, val): - self["theta0"] = val + self['theta0'] = val # thetasrc # -------- @@ -1428,11 +1084,11 @@ def thetasrc(self): ------- str """ - return self["thetasrc"] + return self['thetasrc'] @thetasrc.setter def thetasrc(self, val): - self["thetasrc"] = val + self['thetasrc'] = val # thetaunit # --------- @@ -1450,11 +1106,11 @@ def thetaunit(self): ------- Any """ - return self["thetaunit"] + return self['thetaunit'] @thetaunit.setter def thetaunit(self, val): - self["thetaunit"] = val + self['thetaunit'] = val # uid # --- @@ -1472,11 +1128,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1505,11 +1161,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # unselected # ---------- @@ -1522,26 +1178,15 @@ def unselected(self): - A dict of string/value properties that will be passed to the Unselected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.scatterpolargl.uns - elected.Marker` instance or dict with - compatible properties - textfont - :class:`plotly.graph_objects.scatterpolargl.uns - elected.Textfont` instance or dict with - compatible properties - Returns ------- plotly.graph_objs.scatterpolargl.Unselected """ - return self["unselected"] + return self['unselected'] @unselected.setter def unselected(self, val): - self["unselected"] = val + self['unselected'] = val # visible # ------- @@ -1560,17 +1205,17 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -1853,63 +1498,61 @@ def _prop_descriptions(self): a legend item (provided that the legend itself is visible). """ - - def __init__( - self, - arg=None, - connectgaps=None, - customdata=None, - customdatasrc=None, - dr=None, - dtheta=None, - fill=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - r=None, - r0=None, - rsrc=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - subplot=None, - text=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - theta=None, - theta0=None, - thetasrc=None, - thetaunit=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + connectgaps=None, + customdata=None, + customdatasrc=None, + dr=None, + dtheta=None, + fill=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + r=None, + r0=None, + rsrc=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + subplot=None, + text=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + theta=None, + theta0=None, + thetasrc=None, + thetaunit=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + **kwargs + ): """ Construct a new Scatterpolargl object @@ -2206,10 +1849,10 @@ def __init__( ------- Scatterpolargl """ - super(Scatterpolargl, self).__init__("scatterpolargl") + super(Scatterpolargl, self).__init__('scatterpolargl') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2221,230 +1864,76 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Scatterpolargl constructor must be a dict or -an instance of :class:`plotly.graph_objs.Scatterpolargl`""" - ) +an instance of :class:`plotly.graph_objs.Scatterpolargl`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("connectgaps", None) - _v = connectgaps if connectgaps is not None else _v - if _v is not None: - self["connectgaps"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("dr", None) - _v = dr if dr is not None else _v - if _v is not None: - self["dr"] = _v - _v = arg.pop("dtheta", None) - _v = dtheta if dtheta is not None else _v - if _v is not None: - self["dtheta"] = _v - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("fillcolor", None) - _v = fillcolor if fillcolor is not None else _v - if _v is not None: - self["fillcolor"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("mode", None) - _v = mode if mode is not None else _v - if _v is not None: - self["mode"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("r", None) - _v = r if r is not None else _v - if _v is not None: - self["r"] = _v - _v = arg.pop("r0", None) - _v = r0 if r0 is not None else _v - if _v is not None: - self["r0"] = _v - _v = arg.pop("rsrc", None) - _v = rsrc if rsrc is not None else _v - if _v is not None: - self["rsrc"] = _v - _v = arg.pop("selected", None) - _v = selected if selected is not None else _v - if _v is not None: - self["selected"] = _v - _v = arg.pop("selectedpoints", None) - _v = selectedpoints if selectedpoints is not None else _v - if _v is not None: - self["selectedpoints"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("subplot", None) - _v = subplot if subplot is not None else _v - if _v is not None: - self["subplot"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v - _v = arg.pop("textposition", None) - _v = textposition if textposition is not None else _v - if _v is not None: - self["textposition"] = _v - _v = arg.pop("textpositionsrc", None) - _v = textpositionsrc if textpositionsrc is not None else _v - if _v is not None: - self["textpositionsrc"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("texttemplate", None) - _v = texttemplate if texttemplate is not None else _v - if _v is not None: - self["texttemplate"] = _v - _v = arg.pop("texttemplatesrc", None) - _v = texttemplatesrc if texttemplatesrc is not None else _v - if _v is not None: - self["texttemplatesrc"] = _v - _v = arg.pop("theta", None) - _v = theta if theta is not None else _v - if _v is not None: - self["theta"] = _v - _v = arg.pop("theta0", None) - _v = theta0 if theta0 is not None else _v - if _v is not None: - self["theta0"] = _v - _v = arg.pop("thetasrc", None) - _v = thetasrc if thetasrc is not None else _v - if _v is not None: - self["thetasrc"] = _v - _v = arg.pop("thetaunit", None) - _v = thetaunit if thetaunit is not None else _v - if _v is not None: - self["thetaunit"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("unselected", None) - _v = unselected if unselected is not None else _v - if _v is not None: - self["unselected"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('connectgaps', arg, connectgaps) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('dr', arg, dr) + self._init_provided('dtheta', arg, dtheta) + self._init_provided('fill', arg, fill) + self._init_provided('fillcolor', arg, fillcolor) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('line', arg, line) + self._init_provided('marker', arg, marker) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('mode', arg, mode) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('r', arg, r) + self._init_provided('r0', arg, r0) + self._init_provided('rsrc', arg, rsrc) + self._init_provided('selected', arg, selected) + self._init_provided('selectedpoints', arg, selectedpoints) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('stream', arg, stream) + self._init_provided('subplot', arg, subplot) + self._init_provided('text', arg, text) + self._init_provided('textfont', arg, textfont) + self._init_provided('textposition', arg, textposition) + self._init_provided('textpositionsrc', arg, textpositionsrc) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('texttemplate', arg, texttemplate) + self._init_provided('texttemplatesrc', arg, texttemplatesrc) + self._init_provided('theta', arg, theta) + self._init_provided('theta0', arg, theta0) + self._init_provided('thetasrc', arg, thetasrc) + self._init_provided('thetaunit', arg, thetaunit) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('unselected', arg, unselected) + self._init_provided('visible', arg, visible) # Read-only literals # ------------------ - self._props["type"] = "scatterpolargl" - arg.pop("type", None) + self._props['type'] = 'scatterpolargl' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_scattersmith.py b/packages/python/plotly/plotly/graph_objs/_scattersmith.py index 81f82092bfd..9240a6b3e41 100644 --- a/packages/python/plotly/plotly/graph_objs/_scattersmith.py +++ b/packages/python/plotly/plotly/graph_objs/_scattersmith.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,59 +8,9 @@ class Scattersmith(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "scattersmith" - _valid_props = { - "cliponaxis", - "connectgaps", - "customdata", - "customdatasrc", - "fill", - "fillcolor", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hoveron", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "imag", - "imagsrc", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "line", - "marker", - "meta", - "metasrc", - "mode", - "name", - "opacity", - "real", - "realsrc", - "selected", - "selectedpoints", - "showlegend", - "stream", - "subplot", - "text", - "textfont", - "textposition", - "textpositionsrc", - "textsrc", - "texttemplate", - "texttemplatesrc", - "type", - "uid", - "uirevision", - "unselected", - "visible", - } + _parent_path_str = '' + _path_str = 'scattersmith' + _valid_props = {"cliponaxis", "connectgaps", "customdata", "customdatasrc", "fill", "fillcolor", "hoverinfo", "hoverinfosrc", "hoverlabel", "hoveron", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "imag", "imagsrc", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "line", "marker", "meta", "metasrc", "mode", "name", "opacity", "real", "realsrc", "selected", "selectedpoints", "showlegend", "stream", "subplot", "text", "textfont", "textposition", "textpositionsrc", "textsrc", "texttemplate", "texttemplatesrc", "type", "uid", "uirevision", "unselected", "visible"} # cliponaxis # ---------- @@ -77,11 +29,11 @@ def cliponaxis(self): ------- bool """ - return self["cliponaxis"] + return self['cliponaxis'] @cliponaxis.setter def cliponaxis(self, val): - self["cliponaxis"] = val + self['cliponaxis'] = val # connectgaps # ----------- @@ -98,11 +50,11 @@ def connectgaps(self): ------- bool """ - return self["connectgaps"] + return self['connectgaps'] @connectgaps.setter def connectgaps(self, val): - self["connectgaps"] = val + self['connectgaps'] = val # customdata # ---------- @@ -121,11 +73,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -142,11 +94,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # fill # ---- @@ -171,11 +123,11 @@ def fill(self): ------- Any """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # fillcolor # --------- @@ -191,52 +143,17 @@ def fillcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["fillcolor"] + return self['fillcolor'] @fillcolor.setter def fillcolor(self, val): - self["fillcolor"] = val + self['fillcolor'] = val # hoverinfo # --------- @@ -258,11 +175,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -279,11 +196,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -296,53 +213,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.scattersmith.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hoveron # ------- @@ -363,11 +242,11 @@ def hoveron(self): ------- Any """ - return self["hoveron"] + return self['hoveron'] @hoveron.setter def hoveron(self, val): - self["hoveron"] = val + self['hoveron'] = val # hovertemplate # ------------- @@ -407,11 +286,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -428,11 +307,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -454,11 +333,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -475,11 +354,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -497,11 +376,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -517,11 +396,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # imag # ---- @@ -539,11 +418,11 @@ def imag(self): ------- numpy.ndarray """ - return self["imag"] + return self['imag'] @imag.setter def imag(self, val): - self["imag"] = val + self['imag'] = val # imagsrc # ------- @@ -559,11 +438,11 @@ def imagsrc(self): ------- str """ - return self["imagsrc"] + return self['imagsrc'] @imagsrc.setter def imagsrc(self, val): - self["imagsrc"] = val + self['imagsrc'] = val # legend # ------ @@ -584,11 +463,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -607,11 +486,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -624,22 +503,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.scattersmith.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -662,11 +534,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -683,11 +555,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # line # ---- @@ -700,47 +572,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - backoff - Sets the line back off from the end point of - the nth line segment (in px). This option is - useful e.g. to avoid overlap with arrowhead - markers. With "auto" the lines would trim - before markers if `marker.angleref` is set to - "previous". - backoffsrc - Sets the source reference on Chart Studio Cloud - for `backoff`. - color - Sets the line color. - dash - 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"). - shape - Determines the line shape. With "spline" the - lines are drawn using spline interpolation. The - other available values correspond to step-wise - line shapes. - smoothing - Has an effect only if `shape` is set to - "spline" Sets the amount of smoothing. 0 - corresponds to no smoothing (equivalent to a - "linear" shape). - width - Sets the line width (in px). - Returns ------- plotly.graph_objs.scattersmith.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # marker # ------ @@ -753,168 +593,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - angle - Sets the marker angle in respect to `angleref`. - angleref - Sets the reference for marker angle. With - "previous", angle 0 points along the line from - the previous point to this one. With "up", - angle 0 points toward the top of the screen. - anglesrc - Sets the source reference on Chart Studio Cloud - for `angle`. - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.scattersmith.marke - r.ColorBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - gradient - :class:`plotly.graph_objects.scattersmith.marke - r.Gradient` instance or dict with compatible - properties - line - :class:`plotly.graph_objects.scattersmith.marke - r.Line` instance or dict with compatible - properties - maxdisplayed - Sets a maximum number of points to be drawn on - the graph. 0 corresponds to no limit. - opacity - Sets the marker opacity. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. - size - Sets the marker size (in px). - sizemin - Has an effect only if `marker.size` is set to a - numerical array. Sets the minimum size (in px) - of the rendered marker points. - sizemode - Has an effect only if `marker.size` is set to a - numerical array. Sets the rule for which the - data in `size` is converted to pixels. - sizeref - Has an effect only if `marker.size` is set to a - numerical array. Sets the scale factor used to - determine the rendered size of marker points. - Use with `sizemin` and `sizemode`. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - standoff - Moves the marker away from the data point in - the direction of `angle` (in px). This can be - useful for example if you have another marker - at this location and you want to point an - arrowhead marker at it. - standoffsrc - Sets the source reference on Chart Studio Cloud - for `standoff`. - symbol - Sets the marker symbol type. Adding 100 is - equivalent to appending "-open" to a symbol - name. Adding 200 is equivalent to appending - "-dot" to a symbol name. Adding 300 is - equivalent to appending "-open-dot" or "dot- - open" to a symbol name. - symbolsrc - Sets the source reference on Chart Studio Cloud - for `symbol`. - Returns ------- plotly.graph_objs.scattersmith.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # meta # ---- @@ -938,11 +625,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -958,11 +645,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # mode # ---- @@ -986,11 +673,11 @@ def mode(self): ------- Any """ - return self["mode"] + return self['mode'] @mode.setter def mode(self, val): - self["mode"] = val + self['mode'] = val # name # ---- @@ -1008,11 +695,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -1028,11 +715,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # real # ---- @@ -1049,11 +736,11 @@ def real(self): ------- numpy.ndarray """ - return self["real"] + return self['real'] @real.setter def real(self, val): - self["real"] = val + self['real'] = val # realsrc # ------- @@ -1069,11 +756,11 @@ def realsrc(self): ------- str """ - return self["realsrc"] + return self['realsrc'] @realsrc.setter def realsrc(self, val): - self["realsrc"] = val + self['realsrc'] = val # selected # -------- @@ -1086,26 +773,15 @@ def selected(self): - A dict of string/value properties that will be passed to the Selected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.scattersmith.selec - ted.Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.scattersmith.selec - ted.Textfont` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.scattersmith.Selected """ - return self["selected"] + return self['selected'] @selected.setter def selected(self, val): - self["selected"] = val + self['selected'] = val # selectedpoints # -------------- @@ -1125,11 +801,11 @@ def selectedpoints(self): ------- Any """ - return self["selectedpoints"] + return self['selectedpoints'] @selectedpoints.setter def selectedpoints(self, val): - self["selectedpoints"] = val + self['selectedpoints'] = val # showlegend # ---------- @@ -1146,11 +822,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # stream # ------ @@ -1163,27 +839,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.scattersmith.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # subplot # ------- @@ -1204,11 +868,11 @@ def subplot(self): ------- str """ - return self["subplot"] + return self['subplot'] @subplot.setter def subplot(self, val): - self["subplot"] = val + self['subplot'] = val # text # ---- @@ -1231,11 +895,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textfont # -------- @@ -1250,88 +914,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.scattersmith.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # textposition # ------------ @@ -1352,11 +943,11 @@ def textposition(self): ------- Any|numpy.ndarray """ - return self["textposition"] + return self['textposition'] @textposition.setter def textposition(self, val): - self["textposition"] = val + self['textposition'] = val # textpositionsrc # --------------- @@ -1373,11 +964,11 @@ def textpositionsrc(self): ------- str """ - return self["textpositionsrc"] + return self['textpositionsrc'] @textpositionsrc.setter def textpositionsrc(self, val): - self["textpositionsrc"] = val + self['textpositionsrc'] = val # textsrc # ------- @@ -1393,11 +984,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # texttemplate # ------------ @@ -1428,11 +1019,11 @@ def texttemplate(self): ------- str|numpy.ndarray """ - return self["texttemplate"] + return self['texttemplate'] @texttemplate.setter def texttemplate(self, val): - self["texttemplate"] = val + self['texttemplate'] = val # texttemplatesrc # --------------- @@ -1449,11 +1040,11 @@ def texttemplatesrc(self): ------- str """ - return self["texttemplatesrc"] + return self['texttemplatesrc'] @texttemplatesrc.setter def texttemplatesrc(self, val): - self["texttemplatesrc"] = val + self['texttemplatesrc'] = val # uid # --- @@ -1471,11 +1062,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1504,11 +1095,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # unselected # ---------- @@ -1521,26 +1112,15 @@ def unselected(self): - A dict of string/value properties that will be passed to the Unselected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.scattersmith.unsel - ected.Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.scattersmith.unsel - ected.Textfont` instance or dict with - compatible properties - Returns ------- plotly.graph_objs.scattersmith.Unselected """ - return self["unselected"] + return self['unselected'] @unselected.setter def unselected(self, val): - self["unselected"] = val + self['unselected'] = val # visible # ------- @@ -1559,17 +1139,17 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -1839,60 +1419,58 @@ def _prop_descriptions(self): a legend item (provided that the legend itself is visible). """ - - def __init__( - self, - arg=None, - cliponaxis=None, - connectgaps=None, - customdata=None, - customdatasrc=None, - fill=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hoveron=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - imag=None, - imagsrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - real=None, - realsrc=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - subplot=None, - text=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + cliponaxis=None, + connectgaps=None, + customdata=None, + customdatasrc=None, + fill=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hoveron=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + imag=None, + imagsrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + real=None, + realsrc=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + subplot=None, + text=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + **kwargs + ): """ Construct a new Scattersmith object @@ -2176,10 +1754,10 @@ def __init__( ------- Scattersmith """ - super(Scattersmith, self).__init__("scattersmith") + super(Scattersmith, self).__init__('scattersmith') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2191,218 +1769,73 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Scattersmith constructor must be a dict or -an instance of :class:`plotly.graph_objs.Scattersmith`""" - ) +an instance of :class:`plotly.graph_objs.Scattersmith`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("cliponaxis", None) - _v = cliponaxis if cliponaxis is not None else _v - if _v is not None: - self["cliponaxis"] = _v - _v = arg.pop("connectgaps", None) - _v = connectgaps if connectgaps is not None else _v - if _v is not None: - self["connectgaps"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("fillcolor", None) - _v = fillcolor if fillcolor is not None else _v - if _v is not None: - self["fillcolor"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hoveron", None) - _v = hoveron if hoveron is not None else _v - if _v is not None: - self["hoveron"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("imag", None) - _v = imag if imag is not None else _v - if _v is not None: - self["imag"] = _v - _v = arg.pop("imagsrc", None) - _v = imagsrc if imagsrc is not None else _v - if _v is not None: - self["imagsrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("mode", None) - _v = mode if mode is not None else _v - if _v is not None: - self["mode"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("real", None) - _v = real if real is not None else _v - if _v is not None: - self["real"] = _v - _v = arg.pop("realsrc", None) - _v = realsrc if realsrc is not None else _v - if _v is not None: - self["realsrc"] = _v - _v = arg.pop("selected", None) - _v = selected if selected is not None else _v - if _v is not None: - self["selected"] = _v - _v = arg.pop("selectedpoints", None) - _v = selectedpoints if selectedpoints is not None else _v - if _v is not None: - self["selectedpoints"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("subplot", None) - _v = subplot if subplot is not None else _v - if _v is not None: - self["subplot"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v - _v = arg.pop("textposition", None) - _v = textposition if textposition is not None else _v - if _v is not None: - self["textposition"] = _v - _v = arg.pop("textpositionsrc", None) - _v = textpositionsrc if textpositionsrc is not None else _v - if _v is not None: - self["textpositionsrc"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("texttemplate", None) - _v = texttemplate if texttemplate is not None else _v - if _v is not None: - self["texttemplate"] = _v - _v = arg.pop("texttemplatesrc", None) - _v = texttemplatesrc if texttemplatesrc is not None else _v - if _v is not None: - self["texttemplatesrc"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("unselected", None) - _v = unselected if unselected is not None else _v - if _v is not None: - self["unselected"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('cliponaxis', arg, cliponaxis) + self._init_provided('connectgaps', arg, connectgaps) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('fill', arg, fill) + self._init_provided('fillcolor', arg, fillcolor) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hoveron', arg, hoveron) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('imag', arg, imag) + self._init_provided('imagsrc', arg, imagsrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('line', arg, line) + self._init_provided('marker', arg, marker) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('mode', arg, mode) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('real', arg, real) + self._init_provided('realsrc', arg, realsrc) + self._init_provided('selected', arg, selected) + self._init_provided('selectedpoints', arg, selectedpoints) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('stream', arg, stream) + self._init_provided('subplot', arg, subplot) + self._init_provided('text', arg, text) + self._init_provided('textfont', arg, textfont) + self._init_provided('textposition', arg, textposition) + self._init_provided('textpositionsrc', arg, textpositionsrc) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('texttemplate', arg, texttemplate) + self._init_provided('texttemplatesrc', arg, texttemplatesrc) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('unselected', arg, unselected) + self._init_provided('visible', arg, visible) # Read-only literals # ------------------ - self._props["type"] = "scattersmith" - arg.pop("type", None) + self._props['type'] = 'scattersmith' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_scatterternary.py b/packages/python/plotly/plotly/graph_objs/_scatterternary.py index ed6069b993a..230c40481d0 100644 --- a/packages/python/plotly/plotly/graph_objs/_scatterternary.py +++ b/packages/python/plotly/plotly/graph_objs/_scatterternary.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,62 +8,9 @@ class Scatterternary(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "scatterternary" - _valid_props = { - "a", - "asrc", - "b", - "bsrc", - "c", - "cliponaxis", - "connectgaps", - "csrc", - "customdata", - "customdatasrc", - "fill", - "fillcolor", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hoveron", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "line", - "marker", - "meta", - "metasrc", - "mode", - "name", - "opacity", - "selected", - "selectedpoints", - "showlegend", - "stream", - "subplot", - "sum", - "text", - "textfont", - "textposition", - "textpositionsrc", - "textsrc", - "texttemplate", - "texttemplatesrc", - "type", - "uid", - "uirevision", - "unselected", - "visible", - } + _parent_path_str = '' + _path_str = 'scatterternary' + _valid_props = {"a", "asrc", "b", "bsrc", "c", "cliponaxis", "connectgaps", "csrc", "customdata", "customdatasrc", "fill", "fillcolor", "hoverinfo", "hoverinfosrc", "hoverlabel", "hoveron", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "line", "marker", "meta", "metasrc", "mode", "name", "opacity", "selected", "selectedpoints", "showlegend", "stream", "subplot", "sum", "text", "textfont", "textposition", "textpositionsrc", "textsrc", "texttemplate", "texttemplatesrc", "type", "uid", "uirevision", "unselected", "visible"} # a # - @@ -80,11 +29,11 @@ def a(self): ------- numpy.ndarray """ - return self["a"] + return self['a'] @a.setter def a(self, val): - self["a"] = val + self['a'] = val # asrc # ---- @@ -100,11 +49,11 @@ def asrc(self): ------- str """ - return self["asrc"] + return self['asrc'] @asrc.setter def asrc(self, val): - self["asrc"] = val + self['asrc'] = val # b # - @@ -123,11 +72,11 @@ def b(self): ------- numpy.ndarray """ - return self["b"] + return self['b'] @b.setter def b(self, val): - self["b"] = val + self['b'] = val # bsrc # ---- @@ -143,11 +92,11 @@ def bsrc(self): ------- str """ - return self["bsrc"] + return self['bsrc'] @bsrc.setter def bsrc(self, val): - self["bsrc"] = val + self['bsrc'] = val # c # - @@ -166,11 +115,11 @@ def c(self): ------- numpy.ndarray """ - return self["c"] + return self['c'] @c.setter def c(self, val): - self["c"] = val + self['c'] = val # cliponaxis # ---------- @@ -189,11 +138,11 @@ def cliponaxis(self): ------- bool """ - return self["cliponaxis"] + return self['cliponaxis'] @cliponaxis.setter def cliponaxis(self, val): - self["cliponaxis"] = val + self['cliponaxis'] = val # connectgaps # ----------- @@ -210,11 +159,11 @@ def connectgaps(self): ------- bool """ - return self["connectgaps"] + return self['connectgaps'] @connectgaps.setter def connectgaps(self, val): - self["connectgaps"] = val + self['connectgaps'] = val # csrc # ---- @@ -230,11 +179,11 @@ def csrc(self): ------- str """ - return self["csrc"] + return self['csrc'] @csrc.setter def csrc(self, val): - self["csrc"] = val + self['csrc'] = val # customdata # ---------- @@ -253,11 +202,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -274,11 +223,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # fill # ---- @@ -303,11 +252,11 @@ def fill(self): ------- Any """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # fillcolor # --------- @@ -323,52 +272,17 @@ def fillcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["fillcolor"] + return self['fillcolor'] @fillcolor.setter def fillcolor(self, val): - self["fillcolor"] = val + self['fillcolor'] = val # hoverinfo # --------- @@ -390,11 +304,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -411,11 +325,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -428,53 +342,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.scatterternary.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hoveron # ------- @@ -495,11 +371,11 @@ def hoveron(self): ------- Any """ - return self["hoveron"] + return self['hoveron'] @hoveron.setter def hoveron(self, val): - self["hoveron"] = val + self['hoveron'] = val # hovertemplate # ------------- @@ -539,11 +415,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -560,11 +436,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -586,11 +462,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -607,11 +483,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -629,11 +505,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -649,11 +525,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # legend # ------ @@ -674,11 +550,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -697,11 +573,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -714,22 +590,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.scatterternary.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -752,11 +621,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -773,11 +642,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # line # ---- @@ -790,47 +659,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - backoff - Sets the line back off from the end point of - the nth line segment (in px). This option is - useful e.g. to avoid overlap with arrowhead - markers. With "auto" the lines would trim - before markers if `marker.angleref` is set to - "previous". - backoffsrc - Sets the source reference on Chart Studio Cloud - for `backoff`. - color - Sets the line color. - dash - 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"). - shape - Determines the line shape. With "spline" the - lines are drawn using spline interpolation. The - other available values correspond to step-wise - line shapes. - smoothing - Has an effect only if `shape` is set to - "spline" Sets the amount of smoothing. 0 - corresponds to no smoothing (equivalent to a - "linear" shape). - width - Sets the line width (in px). - Returns ------- plotly.graph_objs.scatterternary.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # marker # ------ @@ -843,168 +680,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - angle - Sets the marker angle in respect to `angleref`. - angleref - Sets the reference for marker angle. With - "previous", angle 0 points along the line from - the previous point to this one. With "up", - angle 0 points toward the top of the screen. - anglesrc - Sets the source reference on Chart Studio Cloud - for `angle`. - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.scatterternary.mar - ker.ColorBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - gradient - :class:`plotly.graph_objects.scatterternary.mar - ker.Gradient` instance or dict with compatible - properties - line - :class:`plotly.graph_objects.scatterternary.mar - ker.Line` instance or dict with compatible - properties - maxdisplayed - Sets a maximum number of points to be drawn on - the graph. 0 corresponds to no limit. - opacity - Sets the marker opacity. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. - size - Sets the marker size (in px). - sizemin - Has an effect only if `marker.size` is set to a - numerical array. Sets the minimum size (in px) - of the rendered marker points. - sizemode - Has an effect only if `marker.size` is set to a - numerical array. Sets the rule for which the - data in `size` is converted to pixels. - sizeref - Has an effect only if `marker.size` is set to a - numerical array. Sets the scale factor used to - determine the rendered size of marker points. - Use with `sizemin` and `sizemode`. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - standoff - Moves the marker away from the data point in - the direction of `angle` (in px). This can be - useful for example if you have another marker - at this location and you want to point an - arrowhead marker at it. - standoffsrc - Sets the source reference on Chart Studio Cloud - for `standoff`. - symbol - Sets the marker symbol type. Adding 100 is - equivalent to appending "-open" to a symbol - name. Adding 200 is equivalent to appending - "-dot" to a symbol name. Adding 300 is - equivalent to appending "-open-dot" or "dot- - open" to a symbol name. - symbolsrc - Sets the source reference on Chart Studio Cloud - for `symbol`. - Returns ------- plotly.graph_objs.scatterternary.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # meta # ---- @@ -1028,11 +712,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -1048,11 +732,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # mode # ---- @@ -1076,11 +760,11 @@ def mode(self): ------- Any """ - return self["mode"] + return self['mode'] @mode.setter def mode(self, val): - self["mode"] = val + self['mode'] = val # name # ---- @@ -1098,11 +782,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -1118,11 +802,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # selected # -------- @@ -1135,26 +819,15 @@ def selected(self): - A dict of string/value properties that will be passed to the Selected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.scatterternary.sel - ected.Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.scatterternary.sel - ected.Textfont` instance or dict with - compatible properties - Returns ------- plotly.graph_objs.scatterternary.Selected """ - return self["selected"] + return self['selected'] @selected.setter def selected(self, val): - self["selected"] = val + self['selected'] = val # selectedpoints # -------------- @@ -1174,11 +847,11 @@ def selectedpoints(self): ------- Any """ - return self["selectedpoints"] + return self['selectedpoints'] @selectedpoints.setter def selectedpoints(self, val): - self["selectedpoints"] = val + self['selectedpoints'] = val # showlegend # ---------- @@ -1195,11 +868,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # stream # ------ @@ -1212,27 +885,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.scatterternary.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # subplot # ------- @@ -1253,11 +914,11 @@ def subplot(self): ------- str """ - return self["subplot"] + return self['subplot'] @subplot.setter def subplot(self, val): - self["subplot"] = val + self['subplot'] = val # sum # --- @@ -1277,11 +938,11 @@ def sum(self): ------- int|float """ - return self["sum"] + return self['sum'] @sum.setter def sum(self, val): - self["sum"] = val + self['sum'] = val # text # ---- @@ -1304,11 +965,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textfont # -------- @@ -1323,88 +984,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.scatterternary.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # textposition # ------------ @@ -1425,11 +1013,11 @@ def textposition(self): ------- Any|numpy.ndarray """ - return self["textposition"] + return self['textposition'] @textposition.setter def textposition(self, val): - self["textposition"] = val + self['textposition'] = val # textpositionsrc # --------------- @@ -1446,11 +1034,11 @@ def textpositionsrc(self): ------- str """ - return self["textpositionsrc"] + return self['textpositionsrc'] @textpositionsrc.setter def textpositionsrc(self, val): - self["textpositionsrc"] = val + self['textpositionsrc'] = val # textsrc # ------- @@ -1466,11 +1054,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # texttemplate # ------------ @@ -1501,11 +1089,11 @@ def texttemplate(self): ------- str|numpy.ndarray """ - return self["texttemplate"] + return self['texttemplate'] @texttemplate.setter def texttemplate(self, val): - self["texttemplate"] = val + self['texttemplate'] = val # texttemplatesrc # --------------- @@ -1522,11 +1110,11 @@ def texttemplatesrc(self): ------- str """ - return self["texttemplatesrc"] + return self['texttemplatesrc'] @texttemplatesrc.setter def texttemplatesrc(self, val): - self["texttemplatesrc"] = val + self['texttemplatesrc'] = val # uid # --- @@ -1544,11 +1132,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1577,11 +1165,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # unselected # ---------- @@ -1594,26 +1182,15 @@ def unselected(self): - A dict of string/value properties that will be passed to the Unselected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.scatterternary.uns - elected.Marker` instance or dict with - compatible properties - textfont - :class:`plotly.graph_objects.scatterternary.uns - elected.Textfont` instance or dict with - compatible properties - Returns ------- plotly.graph_objs.scatterternary.Unselected """ - return self["unselected"] + return self['unselected'] @unselected.setter def unselected(self, val): - self["unselected"] = val + self['unselected'] = val # visible # ------- @@ -1632,17 +1209,17 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -1932,63 +1509,61 @@ def _prop_descriptions(self): a legend item (provided that the legend itself is visible). """ - - def __init__( - self, - arg=None, - a=None, - asrc=None, - b=None, - bsrc=None, - c=None, - cliponaxis=None, - connectgaps=None, - csrc=None, - customdata=None, - customdatasrc=None, - fill=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hoveron=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meta=None, - metasrc=None, - mode=None, - name=None, - opacity=None, - selected=None, - selectedpoints=None, - showlegend=None, - stream=None, - subplot=None, - sum=None, - text=None, - textfont=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + a=None, + asrc=None, + b=None, + bsrc=None, + c=None, + cliponaxis=None, + connectgaps=None, + csrc=None, + customdata=None, + customdatasrc=None, + fill=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hoveron=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meta=None, + metasrc=None, + mode=None, + name=None, + opacity=None, + selected=None, + selectedpoints=None, + showlegend=None, + stream=None, + subplot=None, + sum=None, + text=None, + textfont=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + **kwargs + ): """ Construct a new Scatterternary object @@ -2289,10 +1864,10 @@ def __init__( ------- Scatterternary """ - super(Scatterternary, self).__init__("scatterternary") + super(Scatterternary, self).__init__('scatterternary') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2304,230 +1879,76 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Scatterternary constructor must be a dict or -an instance of :class:`plotly.graph_objs.Scatterternary`""" - ) +an instance of :class:`plotly.graph_objs.Scatterternary`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("a", None) - _v = a if a is not None else _v - if _v is not None: - self["a"] = _v - _v = arg.pop("asrc", None) - _v = asrc if asrc is not None else _v - if _v is not None: - self["asrc"] = _v - _v = arg.pop("b", None) - _v = b if b is not None else _v - if _v is not None: - self["b"] = _v - _v = arg.pop("bsrc", None) - _v = bsrc if bsrc is not None else _v - if _v is not None: - self["bsrc"] = _v - _v = arg.pop("c", None) - _v = c if c is not None else _v - if _v is not None: - self["c"] = _v - _v = arg.pop("cliponaxis", None) - _v = cliponaxis if cliponaxis is not None else _v - if _v is not None: - self["cliponaxis"] = _v - _v = arg.pop("connectgaps", None) - _v = connectgaps if connectgaps is not None else _v - if _v is not None: - self["connectgaps"] = _v - _v = arg.pop("csrc", None) - _v = csrc if csrc is not None else _v - if _v is not None: - self["csrc"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("fillcolor", None) - _v = fillcolor if fillcolor is not None else _v - if _v is not None: - self["fillcolor"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hoveron", None) - _v = hoveron if hoveron is not None else _v - if _v is not None: - self["hoveron"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("mode", None) - _v = mode if mode is not None else _v - if _v is not None: - self["mode"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("selected", None) - _v = selected if selected is not None else _v - if _v is not None: - self["selected"] = _v - _v = arg.pop("selectedpoints", None) - _v = selectedpoints if selectedpoints is not None else _v - if _v is not None: - self["selectedpoints"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("subplot", None) - _v = subplot if subplot is not None else _v - if _v is not None: - self["subplot"] = _v - _v = arg.pop("sum", None) - _v = sum if sum is not None else _v - if _v is not None: - self["sum"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v - _v = arg.pop("textposition", None) - _v = textposition if textposition is not None else _v - if _v is not None: - self["textposition"] = _v - _v = arg.pop("textpositionsrc", None) - _v = textpositionsrc if textpositionsrc is not None else _v - if _v is not None: - self["textpositionsrc"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("texttemplate", None) - _v = texttemplate if texttemplate is not None else _v - if _v is not None: - self["texttemplate"] = _v - _v = arg.pop("texttemplatesrc", None) - _v = texttemplatesrc if texttemplatesrc is not None else _v - if _v is not None: - self["texttemplatesrc"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("unselected", None) - _v = unselected if unselected is not None else _v - if _v is not None: - self["unselected"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('a', arg, a) + self._init_provided('asrc', arg, asrc) + self._init_provided('b', arg, b) + self._init_provided('bsrc', arg, bsrc) + self._init_provided('c', arg, c) + self._init_provided('cliponaxis', arg, cliponaxis) + self._init_provided('connectgaps', arg, connectgaps) + self._init_provided('csrc', arg, csrc) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('fill', arg, fill) + self._init_provided('fillcolor', arg, fillcolor) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hoveron', arg, hoveron) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('line', arg, line) + self._init_provided('marker', arg, marker) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('mode', arg, mode) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('selected', arg, selected) + self._init_provided('selectedpoints', arg, selectedpoints) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('stream', arg, stream) + self._init_provided('subplot', arg, subplot) + self._init_provided('sum', arg, sum) + self._init_provided('text', arg, text) + self._init_provided('textfont', arg, textfont) + self._init_provided('textposition', arg, textposition) + self._init_provided('textpositionsrc', arg, textpositionsrc) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('texttemplate', arg, texttemplate) + self._init_provided('texttemplatesrc', arg, texttemplatesrc) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('unselected', arg, unselected) + self._init_provided('visible', arg, visible) # Read-only literals # ------------------ - self._props["type"] = "scatterternary" - arg.pop("type", None) + self._props['type'] = 'scatterternary' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_splom.py b/packages/python/plotly/plotly/graph_objs/_splom.py index e31ba1d7fef..8830f69cf8b 100644 --- a/packages/python/plotly/plotly/graph_objs/_splom.py +++ b/packages/python/plotly/plotly/graph_objs/_splom.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,51 +8,9 @@ class Splom(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "splom" - _valid_props = { - "customdata", - "customdatasrc", - "diagonal", - "dimensiondefaults", - "dimensions", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "marker", - "meta", - "metasrc", - "name", - "opacity", - "selected", - "selectedpoints", - "showlegend", - "showlowerhalf", - "showupperhalf", - "stream", - "text", - "textsrc", - "type", - "uid", - "uirevision", - "unselected", - "visible", - "xaxes", - "xhoverformat", - "yaxes", - "yhoverformat", - } + _parent_path_str = '' + _path_str = 'splom' + _valid_props = {"customdata", "customdatasrc", "diagonal", "dimensiondefaults", "dimensions", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "marker", "meta", "metasrc", "name", "opacity", "selected", "selectedpoints", "showlegend", "showlowerhalf", "showupperhalf", "stream", "text", "textsrc", "type", "uid", "uirevision", "unselected", "visible", "xaxes", "xhoverformat", "yaxes", "yhoverformat"} # customdata # ---------- @@ -69,11 +29,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -90,11 +50,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # diagonal # -------- @@ -107,21 +67,15 @@ def diagonal(self): - A dict of string/value properties that will be passed to the Diagonal constructor - Supported dict properties: - - visible - Determines whether or not subplots on the - diagonal are displayed. - Returns ------- plotly.graph_objs.splom.Diagonal """ - return self["diagonal"] + return self['diagonal'] @diagonal.setter def diagonal(self, val): - self["diagonal"] = val + self['diagonal'] = val # dimensions # ---------- @@ -134,55 +88,15 @@ def dimensions(self): - A list or tuple of dicts of string/value properties that will be passed to the Dimension constructor - Supported dict properties: - - axis - :class:`plotly.graph_objects.splom.dimension.Ax - is` instance or dict with compatible properties - label - Sets the label corresponding to this splom - dimension. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - values - Sets the dimension values to be plotted. - valuessrc - Sets the source reference on Chart Studio Cloud - for `values`. - visible - Determines whether or not this dimension is - shown on the graph. Note that even visible - false dimension contribute to the default grid - generate by this splom trace. - Returns ------- tuple[plotly.graph_objs.splom.Dimension] """ - return self["dimensions"] + return self['dimensions'] @dimensions.setter def dimensions(self, val): - self["dimensions"] = val + self['dimensions'] = val # dimensiondefaults # ----------------- @@ -199,17 +113,15 @@ def dimensiondefaults(self): - A dict of string/value properties that will be passed to the Dimension constructor - Supported dict properties: - Returns ------- plotly.graph_objs.splom.Dimension """ - return self["dimensiondefaults"] + return self['dimensiondefaults'] @dimensiondefaults.setter def dimensiondefaults(self, val): - self["dimensiondefaults"] = val + self['dimensiondefaults'] = val # hoverinfo # --------- @@ -231,11 +143,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -252,11 +164,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -269,53 +181,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.splom.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -355,11 +229,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -376,11 +250,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -398,11 +272,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -419,11 +293,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -441,11 +315,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -461,11 +335,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # legend # ------ @@ -486,11 +360,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -509,11 +383,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -526,22 +400,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.splom.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -564,11 +431,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -585,11 +452,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # marker # ------ @@ -602,146 +469,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - angle - Sets the marker angle in respect to `angleref`. - anglesrc - Sets the source reference on Chart Studio Cloud - for `angle`. - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.splom.marker.Color - Bar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - line - :class:`plotly.graph_objects.splom.marker.Line` - instance or dict with compatible properties - opacity - Sets the marker opacity. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. - size - Sets the marker size (in px). - sizemin - Has an effect only if `marker.size` is set to a - numerical array. Sets the minimum size (in px) - of the rendered marker points. - sizemode - Has an effect only if `marker.size` is set to a - numerical array. Sets the rule for which the - data in `size` is converted to pixels. - sizeref - Has an effect only if `marker.size` is set to a - numerical array. Sets the scale factor used to - determine the rendered size of marker points. - Use with `sizemin` and `sizemode`. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - symbol - Sets the marker symbol type. Adding 100 is - equivalent to appending "-open" to a symbol - name. Adding 200 is equivalent to appending - "-dot" to a symbol name. Adding 300 is - equivalent to appending "-open-dot" or "dot- - open" to a symbol name. - symbolsrc - Sets the source reference on Chart Studio Cloud - for `symbol`. - Returns ------- plotly.graph_objs.splom.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # meta # ---- @@ -765,11 +501,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -785,11 +521,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -807,11 +543,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -827,11 +563,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # selected # -------- @@ -844,22 +580,15 @@ def selected(self): - A dict of string/value properties that will be passed to the Selected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.splom.selected.Mar - ker` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.splom.Selected """ - return self["selected"] + return self['selected'] @selected.setter def selected(self, val): - self["selected"] = val + self['selected'] = val # selectedpoints # -------------- @@ -879,11 +608,11 @@ def selectedpoints(self): ------- Any """ - return self["selectedpoints"] + return self['selectedpoints'] @selectedpoints.setter def selectedpoints(self, val): - self["selectedpoints"] = val + self['selectedpoints'] = val # showlegend # ---------- @@ -900,11 +629,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # showlowerhalf # ------------- @@ -921,11 +650,11 @@ def showlowerhalf(self): ------- bool """ - return self["showlowerhalf"] + return self['showlowerhalf'] @showlowerhalf.setter def showlowerhalf(self, val): - self["showlowerhalf"] = val + self['showlowerhalf'] = val # showupperhalf # ------------- @@ -942,11 +671,11 @@ def showupperhalf(self): ------- bool """ - return self["showupperhalf"] + return self['showupperhalf'] @showupperhalf.setter def showupperhalf(self, val): - self["showupperhalf"] = val + self['showupperhalf'] = val # stream # ------ @@ -959,27 +688,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.splom.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # text # ---- @@ -1000,11 +717,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textsrc # ------- @@ -1020,11 +737,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # uid # --- @@ -1042,11 +759,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1075,11 +792,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # unselected # ---------- @@ -1092,22 +809,15 @@ def unselected(self): - A dict of string/value properties that will be passed to the Unselected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.splom.unselected.M - arker` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.splom.Unselected """ - return self["unselected"] + return self['unselected'] @unselected.setter def unselected(self, val): - self["unselected"] = val + self['unselected'] = val # visible # ------- @@ -1126,11 +836,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # xaxes # ----- @@ -1155,11 +865,11 @@ def xaxes(self): ------- list """ - return self["xaxes"] + return self['xaxes'] @xaxes.setter def xaxes(self, val): - self["xaxes"] = val + self['xaxes'] = val # xhoverformat # ------------ @@ -1186,11 +896,11 @@ def xhoverformat(self): ------- str """ - return self["xhoverformat"] + return self['xhoverformat'] @xhoverformat.setter def xhoverformat(self, val): - self["xhoverformat"] = val + self['xhoverformat'] = val # yaxes # ----- @@ -1215,11 +925,11 @@ def yaxes(self): ------- list """ - return self["yaxes"] + return self['yaxes'] @yaxes.setter def yaxes(self, val): - self["yaxes"] = val + self['yaxes'] = val # yhoverformat # ------------ @@ -1246,17 +956,17 @@ def yhoverformat(self): ------- str """ - return self["yhoverformat"] + return self['yhoverformat'] @yhoverformat.setter def yhoverformat(self, val): - self["yhoverformat"] = val + self['yhoverformat'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -1492,52 +1202,50 @@ def _prop_descriptions(self): display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. """ - - def __init__( - self, - arg=None, - customdata=None, - customdatasrc=None, - diagonal=None, - dimensions=None, - dimensiondefaults=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - marker=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - selected=None, - selectedpoints=None, - showlegend=None, - showlowerhalf=None, - showupperhalf=None, - stream=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - xaxes=None, - xhoverformat=None, - yaxes=None, - yhoverformat=None, - **kwargs, - ): + def __init__(self, + arg=None, + customdata=None, + customdatasrc=None, + diagonal=None, + dimensions=None, + dimensiondefaults=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + marker=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + selected=None, + selectedpoints=None, + showlegend=None, + showlowerhalf=None, + showupperhalf=None, + stream=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + xaxes=None, + xhoverformat=None, + yaxes=None, + yhoverformat=None, + **kwargs + ): """ Construct a new Splom object @@ -1787,10 +1495,10 @@ def __init__( ------- Splom """ - super(Splom, self).__init__("splom") + super(Splom, self).__init__('splom') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1802,186 +1510,65 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Splom constructor must be a dict or -an instance of :class:`plotly.graph_objs.Splom`""" - ) +an instance of :class:`plotly.graph_objs.Splom`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("diagonal", None) - _v = diagonal if diagonal is not None else _v - if _v is not None: - self["diagonal"] = _v - _v = arg.pop("dimensions", None) - _v = dimensions if dimensions is not None else _v - if _v is not None: - self["dimensions"] = _v - _v = arg.pop("dimensiondefaults", None) - _v = dimensiondefaults if dimensiondefaults is not None else _v - if _v is not None: - self["dimensiondefaults"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("selected", None) - _v = selected if selected is not None else _v - if _v is not None: - self["selected"] = _v - _v = arg.pop("selectedpoints", None) - _v = selectedpoints if selectedpoints is not None else _v - if _v is not None: - self["selectedpoints"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("showlowerhalf", None) - _v = showlowerhalf if showlowerhalf is not None else _v - if _v is not None: - self["showlowerhalf"] = _v - _v = arg.pop("showupperhalf", None) - _v = showupperhalf if showupperhalf is not None else _v - if _v is not None: - self["showupperhalf"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("unselected", None) - _v = unselected if unselected is not None else _v - if _v is not None: - self["unselected"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("xaxes", None) - _v = xaxes if xaxes is not None else _v - if _v is not None: - self["xaxes"] = _v - _v = arg.pop("xhoverformat", None) - _v = xhoverformat if xhoverformat is not None else _v - if _v is not None: - self["xhoverformat"] = _v - _v = arg.pop("yaxes", None) - _v = yaxes if yaxes is not None else _v - if _v is not None: - self["yaxes"] = _v - _v = arg.pop("yhoverformat", None) - _v = yhoverformat if yhoverformat is not None else _v - if _v is not None: - self["yhoverformat"] = _v + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('diagonal', arg, diagonal) + self._init_provided('dimensions', arg, dimensions) + self._init_provided('dimensiondefaults', arg, dimensiondefaults) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('marker', arg, marker) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('selected', arg, selected) + self._init_provided('selectedpoints', arg, selectedpoints) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('showlowerhalf', arg, showlowerhalf) + self._init_provided('showupperhalf', arg, showupperhalf) + self._init_provided('stream', arg, stream) + self._init_provided('text', arg, text) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('unselected', arg, unselected) + self._init_provided('visible', arg, visible) + self._init_provided('xaxes', arg, xaxes) + self._init_provided('xhoverformat', arg, xhoverformat) + self._init_provided('yaxes', arg, yaxes) + self._init_provided('yhoverformat', arg, yhoverformat) # Read-only literals # ------------------ - self._props["type"] = "splom" - arg.pop("type", None) + self._props['type'] = 'splom' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_streamtube.py b/packages/python/plotly/plotly/graph_objs/_streamtube.py index b43c7ee8fab..3fd911f80ee 100644 --- a/packages/python/plotly/plotly/graph_objs/_streamtube.py +++ b/packages/python/plotly/plotly/graph_objs/_streamtube.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,70 +8,9 @@ class Streamtube(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "streamtube" - _valid_props = { - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "coloraxis", - "colorbar", - "colorscale", - "customdata", - "customdatasrc", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "ids", - "idssrc", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "lighting", - "lightposition", - "maxdisplayed", - "meta", - "metasrc", - "name", - "opacity", - "reversescale", - "scene", - "showlegend", - "showscale", - "sizeref", - "starts", - "stream", - "text", - "type", - "u", - "uhoverformat", - "uid", - "uirevision", - "usrc", - "v", - "vhoverformat", - "visible", - "vsrc", - "w", - "whoverformat", - "wsrc", - "x", - "xhoverformat", - "xsrc", - "y", - "yhoverformat", - "ysrc", - "z", - "zhoverformat", - "zsrc", - } + _parent_path_str = '' + _path_str = 'streamtube' + _valid_props = {"autocolorscale", "cauto", "cmax", "cmid", "cmin", "coloraxis", "colorbar", "colorscale", "customdata", "customdatasrc", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "hovertext", "ids", "idssrc", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "lighting", "lightposition", "maxdisplayed", "meta", "metasrc", "name", "opacity", "reversescale", "scene", "showlegend", "showscale", "sizeref", "starts", "stream", "text", "type", "u", "uhoverformat", "uid", "uirevision", "usrc", "v", "vhoverformat", "visible", "vsrc", "w", "whoverformat", "wsrc", "x", "xhoverformat", "xsrc", "y", "yhoverformat", "ysrc", "z", "zhoverformat", "zsrc"} # autocolorscale # -------------- @@ -90,11 +31,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -113,11 +54,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -135,11 +76,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -158,11 +99,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -180,11 +121,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # coloraxis # --------- @@ -207,11 +148,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -224,281 +165,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.streamt - ube.colorbar.Tickformatstop` instances or dicts - with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.streamtube.colorbar.tickformatstopdefaults), - sets the default property values to use for - elements of streamtube.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.streamtube.colorba - r.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.streamtube.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -547,11 +222,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # customdata # ---------- @@ -570,11 +245,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -591,11 +266,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # hoverinfo # --------- @@ -617,11 +292,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -638,11 +313,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -655,53 +330,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.streamtube.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -744,11 +381,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -765,11 +402,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -786,11 +423,11 @@ def hovertext(self): ------- str """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # ids # --- @@ -808,11 +445,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -828,11 +465,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # legend # ------ @@ -853,11 +490,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -876,11 +513,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -893,22 +530,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.streamtube.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -931,11 +561,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -952,11 +582,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # lighting # -------- @@ -969,42 +599,15 @@ def lighting(self): - A dict of string/value properties that will be passed to the Lighting constructor - Supported dict properties: - - ambient - Ambient light increases overall color - visibility but can wash out the image. - diffuse - Represents the extent that incident rays are - reflected in a range of angles. - facenormalsepsilon - Epsilon for face normals calculation avoids - math issues arising from degenerate geometry. - fresnel - Represents the reflectance as a dependency of - the viewing angle; e.g. paper is reflective - when viewing it from the edge of the paper - (almost 90 degrees), causing shine. - roughness - Alters specular reflection; the rougher the - surface, the wider and less contrasty the - shine. - specular - Represents the level that incident rays are - reflected in a single direction, causing shine. - vertexnormalsepsilon - Epsilon for vertex normals calculation avoids - math issues arising from degenerate geometry. - Returns ------- plotly.graph_objs.streamtube.Lighting """ - return self["lighting"] + return self['lighting'] @lighting.setter def lighting(self, val): - self["lighting"] = val + self['lighting'] = val # lightposition # ------------- @@ -1017,27 +620,15 @@ def lightposition(self): - A dict of string/value properties that will be passed to the Lightposition constructor - Supported dict properties: - - x - Numeric vector, representing the X coordinate - for each vertex. - y - Numeric vector, representing the Y coordinate - for each vertex. - z - Numeric vector, representing the Z coordinate - for each vertex. - Returns ------- plotly.graph_objs.streamtube.Lightposition """ - return self["lightposition"] + return self['lightposition'] @lightposition.setter def lightposition(self, val): - self["lightposition"] = val + self['lightposition'] = val # maxdisplayed # ------------ @@ -1054,11 +645,11 @@ def maxdisplayed(self): ------- int """ - return self["maxdisplayed"] + return self['maxdisplayed'] @maxdisplayed.setter def maxdisplayed(self, val): - self["maxdisplayed"] = val + self['maxdisplayed'] = val # meta # ---- @@ -1082,11 +673,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -1102,11 +693,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -1124,11 +715,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -1149,11 +740,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # reversescale # ------------ @@ -1171,11 +762,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # scene # ----- @@ -1196,11 +787,11 @@ def scene(self): ------- str """ - return self["scene"] + return self['scene'] @scene.setter def scene(self, val): - self["scene"] = val + self['scene'] = val # showlegend # ---------- @@ -1217,11 +808,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # showscale # --------- @@ -1238,11 +829,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # sizeref # ------- @@ -1260,11 +851,11 @@ def sizeref(self): ------- int|float """ - return self["sizeref"] + return self['sizeref'] @sizeref.setter def sizeref(self, val): - self["sizeref"] = val + self['sizeref'] = val # starts # ------ @@ -1277,36 +868,15 @@ def starts(self): - A dict of string/value properties that will be passed to the Starts constructor - Supported dict properties: - - x - Sets the x components of the starting position - of the streamtubes - xsrc - Sets the source reference on Chart Studio Cloud - for `x`. - y - Sets the y components of the starting position - of the streamtubes - ysrc - Sets the source reference on Chart Studio Cloud - for `y`. - z - Sets the z components of the starting position - of the streamtubes - zsrc - Sets the source reference on Chart Studio Cloud - for `z`. - Returns ------- plotly.graph_objs.streamtube.Starts """ - return self["starts"] + return self['starts'] @starts.setter def starts(self, val): - self["starts"] = val + self['starts'] = val # stream # ------ @@ -1319,27 +889,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.streamtube.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # text # ---- @@ -1359,11 +917,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # u # - @@ -1379,11 +937,11 @@ def u(self): ------- numpy.ndarray """ - return self["u"] + return self['u'] @u.setter def u(self, val): - self["u"] = val + self['u'] = val # uhoverformat # ------------ @@ -1404,11 +962,11 @@ def uhoverformat(self): ------- str """ - return self["uhoverformat"] + return self['uhoverformat'] @uhoverformat.setter def uhoverformat(self, val): - self["uhoverformat"] = val + self['uhoverformat'] = val # uid # --- @@ -1426,11 +984,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1459,11 +1017,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # usrc # ---- @@ -1479,11 +1037,11 @@ def usrc(self): ------- str """ - return self["usrc"] + return self['usrc'] @usrc.setter def usrc(self, val): - self["usrc"] = val + self['usrc'] = val # v # - @@ -1499,11 +1057,11 @@ def v(self): ------- numpy.ndarray """ - return self["v"] + return self['v'] @v.setter def v(self, val): - self["v"] = val + self['v'] = val # vhoverformat # ------------ @@ -1524,11 +1082,11 @@ def vhoverformat(self): ------- str """ - return self["vhoverformat"] + return self['vhoverformat'] @vhoverformat.setter def vhoverformat(self, val): - self["vhoverformat"] = val + self['vhoverformat'] = val # visible # ------- @@ -1547,11 +1105,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # vsrc # ---- @@ -1567,11 +1125,11 @@ def vsrc(self): ------- str """ - return self["vsrc"] + return self['vsrc'] @vsrc.setter def vsrc(self, val): - self["vsrc"] = val + self['vsrc'] = val # w # - @@ -1587,11 +1145,11 @@ def w(self): ------- numpy.ndarray """ - return self["w"] + return self['w'] @w.setter def w(self, val): - self["w"] = val + self['w'] = val # whoverformat # ------------ @@ -1612,11 +1170,11 @@ def whoverformat(self): ------- str """ - return self["whoverformat"] + return self['whoverformat'] @whoverformat.setter def whoverformat(self, val): - self["whoverformat"] = val + self['whoverformat'] = val # wsrc # ---- @@ -1632,11 +1190,11 @@ def wsrc(self): ------- str """ - return self["wsrc"] + return self['wsrc'] @wsrc.setter def wsrc(self, val): - self["wsrc"] = val + self['wsrc'] = val # x # - @@ -1652,11 +1210,11 @@ def x(self): ------- numpy.ndarray """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xhoverformat # ------------ @@ -1683,11 +1241,11 @@ def xhoverformat(self): ------- str """ - return self["xhoverformat"] + return self['xhoverformat'] @xhoverformat.setter def xhoverformat(self, val): - self["xhoverformat"] = val + self['xhoverformat'] = val # xsrc # ---- @@ -1703,11 +1261,11 @@ def xsrc(self): ------- str """ - return self["xsrc"] + return self['xsrc'] @xsrc.setter def xsrc(self, val): - self["xsrc"] = val + self['xsrc'] = val # y # - @@ -1723,11 +1281,11 @@ def y(self): ------- numpy.ndarray """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yhoverformat # ------------ @@ -1754,11 +1312,11 @@ def yhoverformat(self): ------- str """ - return self["yhoverformat"] + return self['yhoverformat'] @yhoverformat.setter def yhoverformat(self, val): - self["yhoverformat"] = val + self['yhoverformat'] = val # ysrc # ---- @@ -1774,11 +1332,11 @@ def ysrc(self): ------- str """ - return self["ysrc"] + return self['ysrc'] @ysrc.setter def ysrc(self, val): - self["ysrc"] = val + self['ysrc'] = val # z # - @@ -1794,11 +1352,11 @@ def z(self): ------- numpy.ndarray """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # zhoverformat # ------------ @@ -1825,11 +1383,11 @@ def zhoverformat(self): ------- str """ - return self["zhoverformat"] + return self['zhoverformat'] @zhoverformat.setter def zhoverformat(self, val): - self["zhoverformat"] = val + self['zhoverformat'] = val # zsrc # ---- @@ -1845,17 +1403,17 @@ def zsrc(self): ------- str """ - return self["zsrc"] + return self['zsrc'] @zsrc.setter def zsrc(self, val): - self["zsrc"] = val + self['zsrc'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -2180,71 +1738,69 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `z`. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - coloraxis=None, - colorbar=None, - colorscale=None, - customdata=None, - customdatasrc=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - lighting=None, - lightposition=None, - maxdisplayed=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - reversescale=None, - scene=None, - showlegend=None, - showscale=None, - sizeref=None, - starts=None, - stream=None, - text=None, - u=None, - uhoverformat=None, - uid=None, - uirevision=None, - usrc=None, - v=None, - vhoverformat=None, - visible=None, - vsrc=None, - w=None, - whoverformat=None, - wsrc=None, - x=None, - xhoverformat=None, - xsrc=None, - y=None, - yhoverformat=None, - ysrc=None, - z=None, - zhoverformat=None, - zsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + coloraxis=None, + colorbar=None, + colorscale=None, + customdata=None, + customdatasrc=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + lighting=None, + lightposition=None, + maxdisplayed=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + reversescale=None, + scene=None, + showlegend=None, + showscale=None, + sizeref=None, + starts=None, + stream=None, + text=None, + u=None, + uhoverformat=None, + uid=None, + uirevision=None, + usrc=None, + v=None, + vhoverformat=None, + visible=None, + vsrc=None, + w=None, + whoverformat=None, + wsrc=None, + x=None, + xhoverformat=None, + xsrc=None, + y=None, + yhoverformat=None, + ysrc=None, + z=None, + zhoverformat=None, + zsrc=None, + **kwargs + ): """ Construct a new Streamtube object @@ -2585,10 +2141,10 @@ def __init__( ------- Streamtube """ - super(Streamtube, self).__init__("streamtube") + super(Streamtube, self).__init__('streamtube') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2600,262 +2156,84 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Streamtube constructor must be a dict or -an instance of :class:`plotly.graph_objs.Streamtube`""" - ) +an instance of :class:`plotly.graph_objs.Streamtube`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("lighting", None) - _v = lighting if lighting is not None else _v - if _v is not None: - self["lighting"] = _v - _v = arg.pop("lightposition", None) - _v = lightposition if lightposition is not None else _v - if _v is not None: - self["lightposition"] = _v - _v = arg.pop("maxdisplayed", None) - _v = maxdisplayed if maxdisplayed is not None else _v - if _v is not None: - self["maxdisplayed"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("scene", None) - _v = scene if scene is not None else _v - if _v is not None: - self["scene"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v - _v = arg.pop("sizeref", None) - _v = sizeref if sizeref is not None else _v - if _v is not None: - self["sizeref"] = _v - _v = arg.pop("starts", None) - _v = starts if starts is not None else _v - if _v is not None: - self["starts"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("u", None) - _v = u if u is not None else _v - if _v is not None: - self["u"] = _v - _v = arg.pop("uhoverformat", None) - _v = uhoverformat if uhoverformat is not None else _v - if _v is not None: - self["uhoverformat"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("usrc", None) - _v = usrc if usrc is not None else _v - if _v is not None: - self["usrc"] = _v - _v = arg.pop("v", None) - _v = v if v is not None else _v - if _v is not None: - self["v"] = _v - _v = arg.pop("vhoverformat", None) - _v = vhoverformat if vhoverformat is not None else _v - if _v is not None: - self["vhoverformat"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("vsrc", None) - _v = vsrc if vsrc is not None else _v - if _v is not None: - self["vsrc"] = _v - _v = arg.pop("w", None) - _v = w if w is not None else _v - if _v is not None: - self["w"] = _v - _v = arg.pop("whoverformat", None) - _v = whoverformat if whoverformat is not None else _v - if _v is not None: - self["whoverformat"] = _v - _v = arg.pop("wsrc", None) - _v = wsrc if wsrc is not None else _v - if _v is not None: - self["wsrc"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xhoverformat", None) - _v = xhoverformat if xhoverformat is not None else _v - if _v is not None: - self["xhoverformat"] = _v - _v = arg.pop("xsrc", None) - _v = xsrc if xsrc is not None else _v - if _v is not None: - self["xsrc"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yhoverformat", None) - _v = yhoverformat if yhoverformat is not None else _v - if _v is not None: - self["yhoverformat"] = _v - _v = arg.pop("ysrc", None) - _v = ysrc if ysrc is not None else _v - if _v is not None: - self["ysrc"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v - _v = arg.pop("zhoverformat", None) - _v = zhoverformat if zhoverformat is not None else _v - if _v is not None: - self["zhoverformat"] = _v - _v = arg.pop("zsrc", None) - _v = zsrc if zsrc is not None else _v - if _v is not None: - self["zsrc"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('lighting', arg, lighting) + self._init_provided('lightposition', arg, lightposition) + self._init_provided('maxdisplayed', arg, maxdisplayed) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('scene', arg, scene) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('showscale', arg, showscale) + self._init_provided('sizeref', arg, sizeref) + self._init_provided('starts', arg, starts) + self._init_provided('stream', arg, stream) + self._init_provided('text', arg, text) + self._init_provided('u', arg, u) + self._init_provided('uhoverformat', arg, uhoverformat) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('usrc', arg, usrc) + self._init_provided('v', arg, v) + self._init_provided('vhoverformat', arg, vhoverformat) + self._init_provided('visible', arg, visible) + self._init_provided('vsrc', arg, vsrc) + self._init_provided('w', arg, w) + self._init_provided('whoverformat', arg, whoverformat) + self._init_provided('wsrc', arg, wsrc) + self._init_provided('x', arg, x) + self._init_provided('xhoverformat', arg, xhoverformat) + self._init_provided('xsrc', arg, xsrc) + self._init_provided('y', arg, y) + self._init_provided('yhoverformat', arg, yhoverformat) + self._init_provided('ysrc', arg, ysrc) + self._init_provided('z', arg, z) + self._init_provided('zhoverformat', arg, zhoverformat) + self._init_provided('zsrc', arg, zsrc) # Read-only literals # ------------------ - self._props["type"] = "streamtube" - arg.pop("type", None) + self._props['type'] = 'streamtube' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_sunburst.py b/packages/python/plotly/plotly/graph_objs/_sunburst.py index 1772f952713..5d5edbc5118 100644 --- a/packages/python/plotly/plotly/graph_objs/_sunburst.py +++ b/packages/python/plotly/plotly/graph_objs/_sunburst.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,59 +8,9 @@ class Sunburst(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "sunburst" - _valid_props = { - "branchvalues", - "count", - "customdata", - "customdatasrc", - "domain", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "insidetextfont", - "insidetextorientation", - "labels", - "labelssrc", - "leaf", - "legend", - "legendgrouptitle", - "legendrank", - "legendwidth", - "level", - "marker", - "maxdepth", - "meta", - "metasrc", - "name", - "opacity", - "outsidetextfont", - "parents", - "parentssrc", - "root", - "rotation", - "sort", - "stream", - "text", - "textfont", - "textinfo", - "textsrc", - "texttemplate", - "texttemplatesrc", - "type", - "uid", - "uirevision", - "values", - "valuessrc", - "visible", - } + _parent_path_str = '' + _path_str = 'sunburst' + _valid_props = {"branchvalues", "count", "customdata", "customdatasrc", "domain", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "insidetextfont", "insidetextorientation", "labels", "labelssrc", "leaf", "legend", "legendgrouptitle", "legendrank", "legendwidth", "level", "marker", "maxdepth", "meta", "metasrc", "name", "opacity", "outsidetextfont", "parents", "parentssrc", "root", "rotation", "sort", "stream", "text", "textfont", "textinfo", "textsrc", "texttemplate", "texttemplatesrc", "type", "uid", "uirevision", "values", "valuessrc", "visible"} # branchvalues # ------------ @@ -80,11 +32,11 @@ def branchvalues(self): ------- Any """ - return self["branchvalues"] + return self['branchvalues'] @branchvalues.setter def branchvalues(self, val): - self["branchvalues"] = val + self['branchvalues'] = val # count # ----- @@ -104,11 +56,11 @@ def count(self): ------- Any """ - return self["count"] + return self['count'] @count.setter def count(self, val): - self["count"] = val + self['count'] = val # customdata # ---------- @@ -127,11 +79,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -148,11 +100,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # domain # ------ @@ -165,31 +117,15 @@ def domain(self): - A dict of string/value properties that will be passed to the Domain constructor - Supported dict properties: - - column - If there is a layout grid, use the domain for - this column in the grid for this sunburst trace - . - row - If there is a layout grid, use the domain for - this row in the grid for this sunburst trace . - x - Sets the horizontal domain of this sunburst - trace (in plot fraction). - y - Sets the vertical domain of this sunburst trace - (in plot fraction). - Returns ------- plotly.graph_objs.sunburst.Domain """ - return self["domain"] + return self['domain'] @domain.setter def domain(self, val): - self["domain"] = val + self['domain'] = val # hoverinfo # --------- @@ -211,11 +147,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -232,11 +168,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -249,53 +185,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.sunburst.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -338,11 +236,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -359,11 +257,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -385,11 +283,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -406,11 +304,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -428,11 +326,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -448,11 +346,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # insidetextfont # -------------- @@ -467,88 +365,15 @@ def insidetextfont(self): - A dict of string/value properties that will be passed to the Insidetextfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.sunburst.Insidetextfont """ - return self["insidetextfont"] + return self['insidetextfont'] @insidetextfont.setter def insidetextfont(self, val): - self["insidetextfont"] = val + self['insidetextfont'] = val # insidetextorientation # --------------------- @@ -572,11 +397,11 @@ def insidetextorientation(self): ------- Any """ - return self["insidetextorientation"] + return self['insidetextorientation'] @insidetextorientation.setter def insidetextorientation(self, val): - self["insidetextorientation"] = val + self['insidetextorientation'] = val # labels # ------ @@ -592,11 +417,11 @@ def labels(self): ------- numpy.ndarray """ - return self["labels"] + return self['labels'] @labels.setter def labels(self, val): - self["labels"] = val + self['labels'] = val # labelssrc # --------- @@ -612,11 +437,11 @@ def labelssrc(self): ------- str """ - return self["labelssrc"] + return self['labelssrc'] @labelssrc.setter def labelssrc(self, val): - self["labelssrc"] = val + self['labelssrc'] = val # leaf # ---- @@ -629,22 +454,15 @@ def leaf(self): - A dict of string/value properties that will be passed to the Leaf constructor - Supported dict properties: - - opacity - Sets the opacity of the leaves. With colorscale - it is defaulted to 1; otherwise it is defaulted - to 0.7 - Returns ------- plotly.graph_objs.sunburst.Leaf """ - return self["leaf"] + return self['leaf'] @leaf.setter def leaf(self, val): - self["leaf"] = val + self['leaf'] = val # legend # ------ @@ -665,11 +483,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgrouptitle # ---------------- @@ -682,22 +500,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.sunburst.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -720,11 +531,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -741,11 +552,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # level # ----- @@ -763,11 +574,11 @@ def level(self): ------- Any """ - return self["level"] + return self['level'] @level.setter def level(self, val): - self["level"] = val + self['level'] = val # marker # ------ @@ -780,107 +591,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if colors is set to a numerical - array. In case `colorscale` is unspecified or - `autocolorscale` is true, the default palette - will be chosen according to whether numbers in - the `color` array are all positive, all - negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - colors) or the bounds set in `marker.cmin` and - `marker.cmax` Has an effect only if colors is - set to a numerical array. Defaults to `false` - when `marker.cmin` and `marker.cmax` are set by - the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if colors is set to a numerical - array. Value should have the same units as - colors and if set, `marker.cmin` must be set as - well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if colors is set to a numerical array. - Value should have the same units as colors. Has - no effect when `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if colors is set to a numerical - array. Value should have the same units as - colors and if set, `marker.cmax` must be set as - well. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.sunburst.marker.Co - lorBar` instance or dict with compatible - properties - colors - Sets the color of each sector of this trace. If - not specified, the default trace color set is - used to pick the sector colors. - colorscale - Sets the colorscale. Has an effect only if - colors is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorssrc - Sets the source reference on Chart Studio Cloud - for `colors`. - line - :class:`plotly.graph_objects.sunburst.marker.Li - ne` instance or dict with compatible properties - pattern - Sets the pattern within the marker. - reversescale - Reverses the color mapping if true. Has an - effect only if colors is set to a numerical - array. If true, `marker.cmin` will correspond - to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - colors is set to a numerical array. - Returns ------- plotly.graph_objs.sunburst.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # maxdepth # -------- @@ -897,11 +616,11 @@ def maxdepth(self): ------- int """ - return self["maxdepth"] + return self['maxdepth'] @maxdepth.setter def maxdepth(self, val): - self["maxdepth"] = val + self['maxdepth'] = val # meta # ---- @@ -925,11 +644,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -945,11 +664,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -967,11 +686,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -987,11 +706,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # outsidetextfont # --------------- @@ -1010,88 +729,15 @@ def outsidetextfont(self): - A dict of string/value properties that will be passed to the Outsidetextfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.sunburst.Outsidetextfont """ - return self["outsidetextfont"] + return self['outsidetextfont'] @outsidetextfont.setter def outsidetextfont(self, val): - self["outsidetextfont"] = val + self['outsidetextfont'] = val # parents # ------- @@ -1112,11 +758,11 @@ def parents(self): ------- numpy.ndarray """ - return self["parents"] + return self['parents'] @parents.setter def parents(self, val): - self["parents"] = val + self['parents'] = val # parentssrc # ---------- @@ -1132,11 +778,11 @@ def parentssrc(self): ------- str """ - return self["parentssrc"] + return self['parentssrc'] @parentssrc.setter def parentssrc(self, val): - self["parentssrc"] = val + self['parentssrc'] = val # root # ---- @@ -1149,23 +795,15 @@ def root(self): - A dict of string/value properties that will be passed to the Root constructor - Supported dict properties: - - color - sets the color of the root node for a - sunburst/treemap/icicle trace. this has no - effect when a colorscale is used to set the - markers. - Returns ------- plotly.graph_objs.sunburst.Root """ - return self["root"] + return self['root'] @root.setter def root(self, val): - self["root"] = val + self['root'] = val # rotation # -------- @@ -1184,11 +822,11 @@ def rotation(self): ------- int|float """ - return self["rotation"] + return self['rotation'] @rotation.setter def rotation(self, val): - self["rotation"] = val + self['rotation'] = val # sort # ---- @@ -1205,11 +843,11 @@ def sort(self): ------- bool """ - return self["sort"] + return self['sort'] @sort.setter def sort(self, val): - self["sort"] = val + self['sort'] = val # stream # ------ @@ -1222,27 +860,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.sunburst.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # text # ---- @@ -1262,11 +888,11 @@ def text(self): ------- numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textfont # -------- @@ -1281,88 +907,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.sunburst.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # textinfo # -------- @@ -1381,11 +934,11 @@ def textinfo(self): ------- Any """ - return self["textinfo"] + return self['textinfo'] @textinfo.setter def textinfo(self, val): - self["textinfo"] = val + self['textinfo'] = val # textsrc # ------- @@ -1401,11 +954,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # texttemplate # ------------ @@ -1437,11 +990,11 @@ def texttemplate(self): ------- str|numpy.ndarray """ - return self["texttemplate"] + return self['texttemplate'] @texttemplate.setter def texttemplate(self, val): - self["texttemplate"] = val + self['texttemplate'] = val # texttemplatesrc # --------------- @@ -1458,11 +1011,11 @@ def texttemplatesrc(self): ------- str """ - return self["texttemplatesrc"] + return self['texttemplatesrc'] @texttemplatesrc.setter def texttemplatesrc(self, val): - self["texttemplatesrc"] = val + self['texttemplatesrc'] = val # uid # --- @@ -1480,11 +1033,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1513,11 +1066,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # values # ------ @@ -1534,11 +1087,11 @@ def values(self): ------- numpy.ndarray """ - return self["values"] + return self['values'] @values.setter def values(self, val): - self["values"] = val + self['values'] = val # valuessrc # --------- @@ -1554,11 +1107,11 @@ def valuessrc(self): ------- str """ - return self["valuessrc"] + return self['valuessrc'] @valuessrc.setter def valuessrc(self, val): - self["valuessrc"] = val + self['valuessrc'] = val # visible # ------- @@ -1577,17 +1130,17 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -1854,60 +1407,58 @@ def _prop_descriptions(self): a legend item (provided that the legend itself is visible). """ - - def __init__( - self, - arg=None, - branchvalues=None, - count=None, - customdata=None, - customdatasrc=None, - domain=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - insidetextfont=None, - insidetextorientation=None, - labels=None, - labelssrc=None, - leaf=None, - legend=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - level=None, - marker=None, - maxdepth=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - outsidetextfont=None, - parents=None, - parentssrc=None, - root=None, - rotation=None, - sort=None, - stream=None, - text=None, - textfont=None, - textinfo=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - uid=None, - uirevision=None, - values=None, - valuessrc=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + branchvalues=None, + count=None, + customdata=None, + customdatasrc=None, + domain=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + insidetextfont=None, + insidetextorientation=None, + labels=None, + labelssrc=None, + leaf=None, + legend=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + level=None, + marker=None, + maxdepth=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + outsidetextfont=None, + parents=None, + parentssrc=None, + root=None, + rotation=None, + sort=None, + stream=None, + text=None, + textfont=None, + textinfo=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + uid=None, + uirevision=None, + values=None, + valuessrc=None, + visible=None, + **kwargs + ): """ Construct a new Sunburst object @@ -2184,10 +1735,10 @@ def __init__( ------- Sunburst """ - super(Sunburst, self).__init__("sunburst") + super(Sunburst, self).__init__('sunburst') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2199,218 +1750,73 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Sunburst constructor must be a dict or -an instance of :class:`plotly.graph_objs.Sunburst`""" - ) +an instance of :class:`plotly.graph_objs.Sunburst`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("branchvalues", None) - _v = branchvalues if branchvalues is not None else _v - if _v is not None: - self["branchvalues"] = _v - _v = arg.pop("count", None) - _v = count if count is not None else _v - if _v is not None: - self["count"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("domain", None) - _v = domain if domain is not None else _v - if _v is not None: - self["domain"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("insidetextfont", None) - _v = insidetextfont if insidetextfont is not None else _v - if _v is not None: - self["insidetextfont"] = _v - _v = arg.pop("insidetextorientation", None) - _v = insidetextorientation if insidetextorientation is not None else _v - if _v is not None: - self["insidetextorientation"] = _v - _v = arg.pop("labels", None) - _v = labels if labels is not None else _v - if _v is not None: - self["labels"] = _v - _v = arg.pop("labelssrc", None) - _v = labelssrc if labelssrc is not None else _v - if _v is not None: - self["labelssrc"] = _v - _v = arg.pop("leaf", None) - _v = leaf if leaf is not None else _v - if _v is not None: - self["leaf"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("level", None) - _v = level if level is not None else _v - if _v is not None: - self["level"] = _v - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("maxdepth", None) - _v = maxdepth if maxdepth is not None else _v - if _v is not None: - self["maxdepth"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("outsidetextfont", None) - _v = outsidetextfont if outsidetextfont is not None else _v - if _v is not None: - self["outsidetextfont"] = _v - _v = arg.pop("parents", None) - _v = parents if parents is not None else _v - if _v is not None: - self["parents"] = _v - _v = arg.pop("parentssrc", None) - _v = parentssrc if parentssrc is not None else _v - if _v is not None: - self["parentssrc"] = _v - _v = arg.pop("root", None) - _v = root if root is not None else _v - if _v is not None: - self["root"] = _v - _v = arg.pop("rotation", None) - _v = rotation if rotation is not None else _v - if _v is not None: - self["rotation"] = _v - _v = arg.pop("sort", None) - _v = sort if sort is not None else _v - if _v is not None: - self["sort"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v - _v = arg.pop("textinfo", None) - _v = textinfo if textinfo is not None else _v - if _v is not None: - self["textinfo"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("texttemplate", None) - _v = texttemplate if texttemplate is not None else _v - if _v is not None: - self["texttemplate"] = _v - _v = arg.pop("texttemplatesrc", None) - _v = texttemplatesrc if texttemplatesrc is not None else _v - if _v is not None: - self["texttemplatesrc"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("values", None) - _v = values if values is not None else _v - if _v is not None: - self["values"] = _v - _v = arg.pop("valuessrc", None) - _v = valuessrc if valuessrc is not None else _v - if _v is not None: - self["valuessrc"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('branchvalues', arg, branchvalues) + self._init_provided('count', arg, count) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('domain', arg, domain) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('insidetextfont', arg, insidetextfont) + self._init_provided('insidetextorientation', arg, insidetextorientation) + self._init_provided('labels', arg, labels) + self._init_provided('labelssrc', arg, labelssrc) + self._init_provided('leaf', arg, leaf) + self._init_provided('legend', arg, legend) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('level', arg, level) + self._init_provided('marker', arg, marker) + self._init_provided('maxdepth', arg, maxdepth) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('outsidetextfont', arg, outsidetextfont) + self._init_provided('parents', arg, parents) + self._init_provided('parentssrc', arg, parentssrc) + self._init_provided('root', arg, root) + self._init_provided('rotation', arg, rotation) + self._init_provided('sort', arg, sort) + self._init_provided('stream', arg, stream) + self._init_provided('text', arg, text) + self._init_provided('textfont', arg, textfont) + self._init_provided('textinfo', arg, textinfo) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('texttemplate', arg, texttemplate) + self._init_provided('texttemplatesrc', arg, texttemplatesrc) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('values', arg, values) + self._init_provided('valuessrc', arg, valuessrc) + self._init_provided('visible', arg, visible) # Read-only literals # ------------------ - self._props["type"] = "sunburst" - arg.pop("type", None) + self._props['type'] = 'sunburst' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_surface.py b/packages/python/plotly/plotly/graph_objs/_surface.py index 79704dbfd19..a79a2061a83 100644 --- a/packages/python/plotly/plotly/graph_objs/_surface.py +++ b/packages/python/plotly/plotly/graph_objs/_surface.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,69 +8,9 @@ class Surface(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "surface" - _valid_props = { - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "coloraxis", - "colorbar", - "colorscale", - "connectgaps", - "contours", - "customdata", - "customdatasrc", - "hidesurface", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "lighting", - "lightposition", - "meta", - "metasrc", - "name", - "opacity", - "opacityscale", - "reversescale", - "scene", - "showlegend", - "showscale", - "stream", - "surfacecolor", - "surfacecolorsrc", - "text", - "textsrc", - "type", - "uid", - "uirevision", - "visible", - "x", - "xcalendar", - "xhoverformat", - "xsrc", - "y", - "ycalendar", - "yhoverformat", - "ysrc", - "z", - "zcalendar", - "zhoverformat", - "zsrc", - } + _parent_path_str = '' + _path_str = 'surface' + _valid_props = {"autocolorscale", "cauto", "cmax", "cmid", "cmin", "coloraxis", "colorbar", "colorscale", "connectgaps", "contours", "customdata", "customdatasrc", "hidesurface", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "lighting", "lightposition", "meta", "metasrc", "name", "opacity", "opacityscale", "reversescale", "scene", "showlegend", "showscale", "stream", "surfacecolor", "surfacecolorsrc", "text", "textsrc", "type", "uid", "uirevision", "visible", "x", "xcalendar", "xhoverformat", "xsrc", "y", "ycalendar", "yhoverformat", "ysrc", "z", "zcalendar", "zhoverformat", "zsrc"} # autocolorscale # -------------- @@ -89,11 +31,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -112,11 +54,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -134,11 +76,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -157,11 +99,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -179,11 +121,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # coloraxis # --------- @@ -206,11 +148,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -223,281 +165,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.surface - .colorbar.Tickformatstop` instances or dicts - with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.surface.colorbar.tickformatstopdefaults), - sets the default property values to use for - elements of surface.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.surface.colorbar.T - itle` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.surface.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -546,11 +222,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # connectgaps # ----------- @@ -567,11 +243,11 @@ def connectgaps(self): ------- bool """ - return self["connectgaps"] + return self['connectgaps'] @connectgaps.setter def connectgaps(self, val): - self["connectgaps"] = val + self['connectgaps'] = val # contours # -------- @@ -584,27 +260,15 @@ def contours(self): - A dict of string/value properties that will be passed to the Contours constructor - Supported dict properties: - - x - :class:`plotly.graph_objects.surface.contours.X - ` instance or dict with compatible properties - y - :class:`plotly.graph_objects.surface.contours.Y - ` instance or dict with compatible properties - z - :class:`plotly.graph_objects.surface.contours.Z - ` instance or dict with compatible properties - Returns ------- plotly.graph_objs.surface.Contours """ - return self["contours"] + return self['contours'] @contours.setter def contours(self, val): - self["contours"] = val + self['contours'] = val # customdata # ---------- @@ -623,11 +287,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -644,11 +308,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # hidesurface # ----------- @@ -666,11 +330,11 @@ def hidesurface(self): ------- bool """ - return self["hidesurface"] + return self['hidesurface'] @hidesurface.setter def hidesurface(self, val): - self["hidesurface"] = val + self['hidesurface'] = val # hoverinfo # --------- @@ -692,11 +356,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -713,11 +377,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -730,53 +394,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.surface.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -816,11 +442,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -837,11 +463,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -859,11 +485,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -880,11 +506,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -902,11 +528,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -922,11 +548,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # legend # ------ @@ -947,11 +573,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -970,11 +596,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -987,22 +613,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.surface.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -1025,11 +644,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -1046,11 +665,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # lighting # -------- @@ -1063,36 +682,15 @@ def lighting(self): - A dict of string/value properties that will be passed to the Lighting constructor - Supported dict properties: - - ambient - Ambient light increases overall color - visibility but can wash out the image. - diffuse - Represents the extent that incident rays are - reflected in a range of angles. - fresnel - Represents the reflectance as a dependency of - the viewing angle; e.g. paper is reflective - when viewing it from the edge of the paper - (almost 90 degrees), causing shine. - roughness - Alters specular reflection; the rougher the - surface, the wider and less contrasty the - shine. - specular - Represents the level that incident rays are - reflected in a single direction, causing shine. - Returns ------- plotly.graph_objs.surface.Lighting """ - return self["lighting"] + return self['lighting'] @lighting.setter def lighting(self, val): - self["lighting"] = val + self['lighting'] = val # lightposition # ------------- @@ -1105,27 +703,15 @@ def lightposition(self): - A dict of string/value properties that will be passed to the Lightposition constructor - Supported dict properties: - - x - Numeric vector, representing the X coordinate - for each vertex. - y - Numeric vector, representing the Y coordinate - for each vertex. - z - Numeric vector, representing the Z coordinate - for each vertex. - Returns ------- plotly.graph_objs.surface.Lightposition """ - return self["lightposition"] + return self['lightposition'] @lightposition.setter def lightposition(self, val): - self["lightposition"] = val + self['lightposition'] = val # meta # ---- @@ -1149,11 +735,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -1169,11 +755,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -1191,11 +777,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -1216,11 +802,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # opacityscale # ------------ @@ -1243,11 +829,11 @@ def opacityscale(self): ------- Any """ - return self["opacityscale"] + return self['opacityscale'] @opacityscale.setter def opacityscale(self, val): - self["opacityscale"] = val + self['opacityscale'] = val # reversescale # ------------ @@ -1265,11 +851,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # scene # ----- @@ -1290,11 +876,11 @@ def scene(self): ------- str """ - return self["scene"] + return self['scene'] @scene.setter def scene(self, val): - self["scene"] = val + self['scene'] = val # showlegend # ---------- @@ -1311,11 +897,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # showscale # --------- @@ -1332,11 +918,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # stream # ------ @@ -1349,27 +935,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.surface.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # surfacecolor # ------------ @@ -1386,11 +960,11 @@ def surfacecolor(self): ------- numpy.ndarray """ - return self["surfacecolor"] + return self['surfacecolor'] @surfacecolor.setter def surfacecolor(self, val): - self["surfacecolor"] = val + self['surfacecolor'] = val # surfacecolorsrc # --------------- @@ -1407,11 +981,11 @@ def surfacecolorsrc(self): ------- str """ - return self["surfacecolorsrc"] + return self['surfacecolorsrc'] @surfacecolorsrc.setter def surfacecolorsrc(self, val): - self["surfacecolorsrc"] = val + self['surfacecolorsrc'] = val # text # ---- @@ -1431,11 +1005,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textsrc # ------- @@ -1451,11 +1025,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # uid # --- @@ -1473,11 +1047,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1506,11 +1080,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # visible # ------- @@ -1529,11 +1103,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # x # - @@ -1549,11 +1123,11 @@ def x(self): ------- numpy.ndarray """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xcalendar # --------- @@ -1573,11 +1147,11 @@ def xcalendar(self): ------- Any """ - return self["xcalendar"] + return self['xcalendar'] @xcalendar.setter def xcalendar(self, val): - self["xcalendar"] = val + self['xcalendar'] = val # xhoverformat # ------------ @@ -1604,11 +1178,11 @@ def xhoverformat(self): ------- str """ - return self["xhoverformat"] + return self['xhoverformat'] @xhoverformat.setter def xhoverformat(self, val): - self["xhoverformat"] = val + self['xhoverformat'] = val # xsrc # ---- @@ -1624,11 +1198,11 @@ def xsrc(self): ------- str """ - return self["xsrc"] + return self['xsrc'] @xsrc.setter def xsrc(self, val): - self["xsrc"] = val + self['xsrc'] = val # y # - @@ -1644,11 +1218,11 @@ def y(self): ------- numpy.ndarray """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # ycalendar # --------- @@ -1668,11 +1242,11 @@ def ycalendar(self): ------- Any """ - return self["ycalendar"] + return self['ycalendar'] @ycalendar.setter def ycalendar(self, val): - self["ycalendar"] = val + self['ycalendar'] = val # yhoverformat # ------------ @@ -1699,11 +1273,11 @@ def yhoverformat(self): ------- str """ - return self["yhoverformat"] + return self['yhoverformat'] @yhoverformat.setter def yhoverformat(self, val): - self["yhoverformat"] = val + self['yhoverformat'] = val # ysrc # ---- @@ -1719,11 +1293,11 @@ def ysrc(self): ------- str """ - return self["ysrc"] + return self['ysrc'] @ysrc.setter def ysrc(self, val): - self["ysrc"] = val + self['ysrc'] = val # z # - @@ -1739,11 +1313,11 @@ def z(self): ------- numpy.ndarray """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # zcalendar # --------- @@ -1763,11 +1337,11 @@ def zcalendar(self): ------- Any """ - return self["zcalendar"] + return self['zcalendar'] @zcalendar.setter def zcalendar(self, val): - self["zcalendar"] = val + self['zcalendar'] = val # zhoverformat # ------------ @@ -1794,11 +1368,11 @@ def zhoverformat(self): ------- str """ - return self["zhoverformat"] + return self['zhoverformat'] @zhoverformat.setter def zhoverformat(self, val): - self["zhoverformat"] = val + self['zhoverformat'] = val # zsrc # ---- @@ -1814,17 +1388,17 @@ def zsrc(self): ------- str """ - return self["zsrc"] + return self['zsrc'] @zsrc.setter def zsrc(self, val): - self["zsrc"] = val + self['zsrc'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -2143,70 +1717,68 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `z`. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - coloraxis=None, - colorbar=None, - colorscale=None, - connectgaps=None, - contours=None, - customdata=None, - customdatasrc=None, - hidesurface=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - lighting=None, - lightposition=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - opacityscale=None, - reversescale=None, - scene=None, - showlegend=None, - showscale=None, - stream=None, - surfacecolor=None, - surfacecolorsrc=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - visible=None, - x=None, - xcalendar=None, - xhoverformat=None, - xsrc=None, - y=None, - ycalendar=None, - yhoverformat=None, - ysrc=None, - z=None, - zcalendar=None, - zhoverformat=None, - zsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + coloraxis=None, + colorbar=None, + colorscale=None, + connectgaps=None, + contours=None, + customdata=None, + customdatasrc=None, + hidesurface=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + lighting=None, + lightposition=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + opacityscale=None, + reversescale=None, + scene=None, + showlegend=None, + showscale=None, + stream=None, + surfacecolor=None, + surfacecolorsrc=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + visible=None, + x=None, + xcalendar=None, + xhoverformat=None, + xsrc=None, + y=None, + ycalendar=None, + yhoverformat=None, + ysrc=None, + z=None, + zcalendar=None, + zhoverformat=None, + zsrc=None, + **kwargs + ): """ Construct a new Surface object @@ -2541,10 +2113,10 @@ def __init__( ------- Surface """ - super(Surface, self).__init__("surface") + super(Surface, self).__init__('surface') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2556,258 +2128,83 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Surface constructor must be a dict or -an instance of :class:`plotly.graph_objs.Surface`""" - ) +an instance of :class:`plotly.graph_objs.Surface`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("connectgaps", None) - _v = connectgaps if connectgaps is not None else _v - if _v is not None: - self["connectgaps"] = _v - _v = arg.pop("contours", None) - _v = contours if contours is not None else _v - if _v is not None: - self["contours"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("hidesurface", None) - _v = hidesurface if hidesurface is not None else _v - if _v is not None: - self["hidesurface"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("lighting", None) - _v = lighting if lighting is not None else _v - if _v is not None: - self["lighting"] = _v - _v = arg.pop("lightposition", None) - _v = lightposition if lightposition is not None else _v - if _v is not None: - self["lightposition"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("opacityscale", None) - _v = opacityscale if opacityscale is not None else _v - if _v is not None: - self["opacityscale"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("scene", None) - _v = scene if scene is not None else _v - if _v is not None: - self["scene"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("surfacecolor", None) - _v = surfacecolor if surfacecolor is not None else _v - if _v is not None: - self["surfacecolor"] = _v - _v = arg.pop("surfacecolorsrc", None) - _v = surfacecolorsrc if surfacecolorsrc is not None else _v - if _v is not None: - self["surfacecolorsrc"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xcalendar", None) - _v = xcalendar if xcalendar is not None else _v - if _v is not None: - self["xcalendar"] = _v - _v = arg.pop("xhoverformat", None) - _v = xhoverformat if xhoverformat is not None else _v - if _v is not None: - self["xhoverformat"] = _v - _v = arg.pop("xsrc", None) - _v = xsrc if xsrc is not None else _v - if _v is not None: - self["xsrc"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("ycalendar", None) - _v = ycalendar if ycalendar is not None else _v - if _v is not None: - self["ycalendar"] = _v - _v = arg.pop("yhoverformat", None) - _v = yhoverformat if yhoverformat is not None else _v - if _v is not None: - self["yhoverformat"] = _v - _v = arg.pop("ysrc", None) - _v = ysrc if ysrc is not None else _v - if _v is not None: - self["ysrc"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v - _v = arg.pop("zcalendar", None) - _v = zcalendar if zcalendar is not None else _v - if _v is not None: - self["zcalendar"] = _v - _v = arg.pop("zhoverformat", None) - _v = zhoverformat if zhoverformat is not None else _v - if _v is not None: - self["zhoverformat"] = _v - _v = arg.pop("zsrc", None) - _v = zsrc if zsrc is not None else _v - if _v is not None: - self["zsrc"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('connectgaps', arg, connectgaps) + self._init_provided('contours', arg, contours) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('hidesurface', arg, hidesurface) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('lighting', arg, lighting) + self._init_provided('lightposition', arg, lightposition) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('opacityscale', arg, opacityscale) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('scene', arg, scene) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('showscale', arg, showscale) + self._init_provided('stream', arg, stream) + self._init_provided('surfacecolor', arg, surfacecolor) + self._init_provided('surfacecolorsrc', arg, surfacecolorsrc) + self._init_provided('text', arg, text) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('visible', arg, visible) + self._init_provided('x', arg, x) + self._init_provided('xcalendar', arg, xcalendar) + self._init_provided('xhoverformat', arg, xhoverformat) + self._init_provided('xsrc', arg, xsrc) + self._init_provided('y', arg, y) + self._init_provided('ycalendar', arg, ycalendar) + self._init_provided('yhoverformat', arg, yhoverformat) + self._init_provided('ysrc', arg, ysrc) + self._init_provided('z', arg, z) + self._init_provided('zcalendar', arg, zcalendar) + self._init_provided('zhoverformat', arg, zhoverformat) + self._init_provided('zsrc', arg, zsrc) # Read-only literals # ------------------ - self._props["type"] = "surface" - arg.pop("type", None) + self._props['type'] = 'surface' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_table.py b/packages/python/plotly/plotly/graph_objs/_table.py index c8dda0a63bb..bf0acde9cf5 100644 --- a/packages/python/plotly/plotly/graph_objs/_table.py +++ b/packages/python/plotly/plotly/graph_objs/_table.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,36 +8,9 @@ class Table(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "table" - _valid_props = { - "cells", - "columnorder", - "columnordersrc", - "columnwidth", - "columnwidthsrc", - "customdata", - "customdatasrc", - "domain", - "header", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "ids", - "idssrc", - "legend", - "legendgrouptitle", - "legendrank", - "legendwidth", - "meta", - "metasrc", - "name", - "stream", - "type", - "uid", - "uirevision", - "visible", - } + _parent_path_str = '' + _path_str = 'table' + _valid_props = {"cells", "columnorder", "columnordersrc", "columnwidth", "columnwidthsrc", "customdata", "customdatasrc", "domain", "header", "hoverinfo", "hoverinfosrc", "hoverlabel", "ids", "idssrc", "legend", "legendgrouptitle", "legendrank", "legendwidth", "meta", "metasrc", "name", "stream", "type", "uid", "uirevision", "visible"} # cells # ----- @@ -48,67 +23,15 @@ def cells(self): - A dict of string/value properties that will be passed to the Cells constructor - Supported dict properties: - - align - Sets the horizontal alignment of the `text` - within the box. Has an effect only if `text` - spans two or more lines (i.e. `text` contains - one or more
HTML tags) or if an explicit - width is set to override the text width. - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - fill - :class:`plotly.graph_objects.table.cells.Fill` - instance or dict with compatible properties - font - :class:`plotly.graph_objects.table.cells.Font` - instance or dict with compatible properties - format - Sets the cell value formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. - formatsrc - Sets the source reference on Chart Studio Cloud - for `format`. - height - The height of cells. - line - :class:`plotly.graph_objects.table.cells.Line` - instance or dict with compatible properties - prefix - Prefix for cell values. - prefixsrc - Sets the source reference on Chart Studio Cloud - for `prefix`. - suffix - Suffix for cell values. - suffixsrc - Sets the source reference on Chart Studio Cloud - for `suffix`. - values - Cell values. `values[m][n]` represents the - value of the `n`th point in column `m`, - therefore the `values[m]` vector length for all - columns must be the same (longer vectors will - be truncated). Each value must be a finite - number or a string. - valuessrc - Sets the source reference on Chart Studio Cloud - for `values`. - Returns ------- plotly.graph_objs.table.Cells """ - return self["cells"] + return self['cells'] @cells.setter def cells(self, val): - self["cells"] = val + self['cells'] = val # columnorder # ----------- @@ -127,11 +50,11 @@ def columnorder(self): ------- numpy.ndarray """ - return self["columnorder"] + return self['columnorder'] @columnorder.setter def columnorder(self, val): - self["columnorder"] = val + self['columnorder'] = val # columnordersrc # -------------- @@ -148,11 +71,11 @@ def columnordersrc(self): ------- str """ - return self["columnordersrc"] + return self['columnordersrc'] @columnordersrc.setter def columnordersrc(self, val): - self["columnordersrc"] = val + self['columnordersrc'] = val # columnwidth # ----------- @@ -170,11 +93,11 @@ def columnwidth(self): ------- int|float|numpy.ndarray """ - return self["columnwidth"] + return self['columnwidth'] @columnwidth.setter def columnwidth(self, val): - self["columnwidth"] = val + self['columnwidth'] = val # columnwidthsrc # -------------- @@ -191,11 +114,11 @@ def columnwidthsrc(self): ------- str """ - return self["columnwidthsrc"] + return self['columnwidthsrc'] @columnwidthsrc.setter def columnwidthsrc(self, val): - self["columnwidthsrc"] = val + self['columnwidthsrc'] = val # customdata # ---------- @@ -214,11 +137,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -235,11 +158,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # domain # ------ @@ -252,30 +175,15 @@ def domain(self): - A dict of string/value properties that will be passed to the Domain constructor - Supported dict properties: - - column - If there is a layout grid, use the domain for - this column in the grid for this table trace . - row - If there is a layout grid, use the domain for - this row in the grid for this table trace . - x - Sets the horizontal domain of this table trace - (in plot fraction). - y - Sets the vertical domain of this table trace - (in plot fraction). - Returns ------- plotly.graph_objs.table.Domain """ - return self["domain"] + return self['domain'] @domain.setter def domain(self, val): - self["domain"] = val + self['domain'] = val # header # ------ @@ -288,67 +196,15 @@ def header(self): - A dict of string/value properties that will be passed to the Header constructor - Supported dict properties: - - align - Sets the horizontal alignment of the `text` - within the box. Has an effect only if `text` - spans two or more lines (i.e. `text` contains - one or more
HTML tags) or if an explicit - width is set to override the text width. - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - fill - :class:`plotly.graph_objects.table.header.Fill` - instance or dict with compatible properties - font - :class:`plotly.graph_objects.table.header.Font` - instance or dict with compatible properties - format - Sets the cell value formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. - formatsrc - Sets the source reference on Chart Studio Cloud - for `format`. - height - The height of cells. - line - :class:`plotly.graph_objects.table.header.Line` - instance or dict with compatible properties - prefix - Prefix for cell values. - prefixsrc - Sets the source reference on Chart Studio Cloud - for `prefix`. - suffix - Suffix for cell values. - suffixsrc - Sets the source reference on Chart Studio Cloud - for `suffix`. - values - Header cell values. `values[m][n]` represents - the value of the `n`th point in column `m`, - therefore the `values[m]` vector length for all - columns must be the same (longer vectors will - be truncated). Each value must be a finite - number or a string. - valuessrc - Sets the source reference on Chart Studio Cloud - for `values`. - Returns ------- plotly.graph_objs.table.Header """ - return self["header"] + return self['header'] @header.setter def header(self, val): - self["header"] = val + self['header'] = val # hoverinfo # --------- @@ -370,11 +226,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -391,11 +247,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -408,53 +264,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.table.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # ids # --- @@ -472,11 +290,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -492,11 +310,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # legend # ------ @@ -517,11 +335,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgrouptitle # ---------------- @@ -534,22 +352,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.table.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -572,11 +383,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -593,11 +404,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # meta # ---- @@ -621,11 +432,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -641,11 +452,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -663,11 +474,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # stream # ------ @@ -680,27 +491,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.table.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # uid # --- @@ -718,11 +517,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -751,11 +550,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # visible # ------- @@ -774,17 +573,17 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -914,37 +713,35 @@ def _prop_descriptions(self): a legend item (provided that the legend itself is visible). """ - - def __init__( - self, - arg=None, - cells=None, - columnorder=None, - columnordersrc=None, - columnwidth=None, - columnwidthsrc=None, - customdata=None, - customdatasrc=None, - domain=None, - header=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - ids=None, - idssrc=None, - legend=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - meta=None, - metasrc=None, - name=None, - stream=None, - uid=None, - uirevision=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + cells=None, + columnorder=None, + columnordersrc=None, + columnwidth=None, + columnwidthsrc=None, + customdata=None, + customdatasrc=None, + domain=None, + header=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + ids=None, + idssrc=None, + legend=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + meta=None, + metasrc=None, + name=None, + stream=None, + uid=None, + uirevision=None, + visible=None, + **kwargs + ): """ Construct a new Table object @@ -1086,10 +883,10 @@ def __init__( ------- Table """ - super(Table, self).__init__("table") + super(Table, self).__init__('table') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1101,126 +898,50 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Table constructor must be a dict or -an instance of :class:`plotly.graph_objs.Table`""" - ) +an instance of :class:`plotly.graph_objs.Table`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("cells", None) - _v = cells if cells is not None else _v - if _v is not None: - self["cells"] = _v - _v = arg.pop("columnorder", None) - _v = columnorder if columnorder is not None else _v - if _v is not None: - self["columnorder"] = _v - _v = arg.pop("columnordersrc", None) - _v = columnordersrc if columnordersrc is not None else _v - if _v is not None: - self["columnordersrc"] = _v - _v = arg.pop("columnwidth", None) - _v = columnwidth if columnwidth is not None else _v - if _v is not None: - self["columnwidth"] = _v - _v = arg.pop("columnwidthsrc", None) - _v = columnwidthsrc if columnwidthsrc is not None else _v - if _v is not None: - self["columnwidthsrc"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("domain", None) - _v = domain if domain is not None else _v - if _v is not None: - self["domain"] = _v - _v = arg.pop("header", None) - _v = header if header is not None else _v - if _v is not None: - self["header"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('cells', arg, cells) + self._init_provided('columnorder', arg, columnorder) + self._init_provided('columnordersrc', arg, columnordersrc) + self._init_provided('columnwidth', arg, columnwidth) + self._init_provided('columnwidthsrc', arg, columnwidthsrc) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('domain', arg, domain) + self._init_provided('header', arg, header) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('stream', arg, stream) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('visible', arg, visible) # Read-only literals # ------------------ - self._props["type"] = "table" - arg.pop("type", None) + self._props['type'] = 'table' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_treemap.py b/packages/python/plotly/plotly/graph_objs/_treemap.py index 3a8ecce44e5..c49d7139663 100644 --- a/packages/python/plotly/plotly/graph_objs/_treemap.py +++ b/packages/python/plotly/plotly/graph_objs/_treemap.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,59 +8,9 @@ class Treemap(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "treemap" - _valid_props = { - "branchvalues", - "count", - "customdata", - "customdatasrc", - "domain", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "insidetextfont", - "labels", - "labelssrc", - "legend", - "legendgrouptitle", - "legendrank", - "legendwidth", - "level", - "marker", - "maxdepth", - "meta", - "metasrc", - "name", - "opacity", - "outsidetextfont", - "parents", - "parentssrc", - "pathbar", - "root", - "sort", - "stream", - "text", - "textfont", - "textinfo", - "textposition", - "textsrc", - "texttemplate", - "texttemplatesrc", - "tiling", - "type", - "uid", - "uirevision", - "values", - "valuessrc", - "visible", - } + _parent_path_str = '' + _path_str = 'treemap' + _valid_props = {"branchvalues", "count", "customdata", "customdatasrc", "domain", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "insidetextfont", "labels", "labelssrc", "legend", "legendgrouptitle", "legendrank", "legendwidth", "level", "marker", "maxdepth", "meta", "metasrc", "name", "opacity", "outsidetextfont", "parents", "parentssrc", "pathbar", "root", "sort", "stream", "text", "textfont", "textinfo", "textposition", "textsrc", "texttemplate", "texttemplatesrc", "tiling", "type", "uid", "uirevision", "values", "valuessrc", "visible"} # branchvalues # ------------ @@ -80,11 +32,11 @@ def branchvalues(self): ------- Any """ - return self["branchvalues"] + return self['branchvalues'] @branchvalues.setter def branchvalues(self, val): - self["branchvalues"] = val + self['branchvalues'] = val # count # ----- @@ -104,11 +56,11 @@ def count(self): ------- Any """ - return self["count"] + return self['count'] @count.setter def count(self, val): - self["count"] = val + self['count'] = val # customdata # ---------- @@ -127,11 +79,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -148,11 +100,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # domain # ------ @@ -165,31 +117,15 @@ def domain(self): - A dict of string/value properties that will be passed to the Domain constructor - Supported dict properties: - - column - If there is a layout grid, use the domain for - this column in the grid for this treemap trace - . - row - If there is a layout grid, use the domain for - this row in the grid for this treemap trace . - x - Sets the horizontal domain of this treemap - trace (in plot fraction). - y - Sets the vertical domain of this treemap trace - (in plot fraction). - Returns ------- plotly.graph_objs.treemap.Domain """ - return self["domain"] + return self['domain'] @domain.setter def domain(self, val): - self["domain"] = val + self['domain'] = val # hoverinfo # --------- @@ -211,11 +147,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -232,11 +168,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -249,53 +185,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.treemap.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -338,11 +236,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -359,11 +257,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -385,11 +283,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -406,11 +304,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -428,11 +326,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -448,11 +346,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # insidetextfont # -------------- @@ -467,88 +365,15 @@ def insidetextfont(self): - A dict of string/value properties that will be passed to the Insidetextfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.treemap.Insidetextfont """ - return self["insidetextfont"] + return self['insidetextfont'] @insidetextfont.setter def insidetextfont(self, val): - self["insidetextfont"] = val + self['insidetextfont'] = val # labels # ------ @@ -564,11 +389,11 @@ def labels(self): ------- numpy.ndarray """ - return self["labels"] + return self['labels'] @labels.setter def labels(self, val): - self["labels"] = val + self['labels'] = val # labelssrc # --------- @@ -584,11 +409,11 @@ def labelssrc(self): ------- str """ - return self["labelssrc"] + return self['labelssrc'] @labelssrc.setter def labelssrc(self, val): - self["labelssrc"] = val + self['labelssrc'] = val # legend # ------ @@ -609,11 +434,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgrouptitle # ---------------- @@ -626,22 +451,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.treemap.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -664,11 +482,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -685,11 +503,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # level # ----- @@ -707,11 +525,11 @@ def level(self): ------- Any """ - return self["level"] + return self['level'] @level.setter def level(self, val): - self["level"] = val + self['level'] = val # marker # ------ @@ -724,123 +542,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if colors is set to a numerical - array. In case `colorscale` is unspecified or - `autocolorscale` is true, the default palette - will be chosen according to whether numbers in - the `color` array are all positive, all - negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - colors) or the bounds set in `marker.cmin` and - `marker.cmax` Has an effect only if colors is - set to a numerical array. Defaults to `false` - when `marker.cmin` and `marker.cmax` are set by - the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if colors is set to a numerical - array. Value should have the same units as - colors and if set, `marker.cmin` must be set as - well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if colors is set to a numerical array. - Value should have the same units as colors. Has - no effect when `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if colors is set to a numerical - array. Value should have the same units as - colors and if set, `marker.cmax` must be set as - well. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.treemap.marker.Col - orBar` instance or dict with compatible - properties - colors - Sets the color of each sector of this trace. If - not specified, the default trace color set is - used to pick the sector colors. - colorscale - Sets the colorscale. Has an effect only if - colors is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorssrc - Sets the source reference on Chart Studio Cloud - for `colors`. - cornerradius - Sets the maximum rounding of corners (in px). - depthfade - Determines if the sector colors are faded - towards the background from the leaves up to - the headers. This option is unavailable when a - `colorscale` is present, defaults to false when - `marker.colors` is set, but otherwise defaults - to true. When set to "reversed", the fading - direction is inverted, that is the top elements - within hierarchy are drawn with fully saturated - colors while the leaves are faded towards the - background color. - line - :class:`plotly.graph_objects.treemap.marker.Lin - e` instance or dict with compatible properties - pad - :class:`plotly.graph_objects.treemap.marker.Pad - ` instance or dict with compatible properties - pattern - Sets the pattern within the marker. - reversescale - Reverses the color mapping if true. Has an - effect only if colors is set to a numerical - array. If true, `marker.cmin` will correspond - to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - colors is set to a numerical array. - Returns ------- plotly.graph_objs.treemap.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # maxdepth # -------- @@ -857,11 +567,11 @@ def maxdepth(self): ------- int """ - return self["maxdepth"] + return self['maxdepth'] @maxdepth.setter def maxdepth(self, val): - self["maxdepth"] = val + self['maxdepth'] = val # meta # ---- @@ -885,11 +595,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -905,11 +615,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -927,11 +637,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -947,11 +657,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # outsidetextfont # --------------- @@ -970,88 +680,15 @@ def outsidetextfont(self): - A dict of string/value properties that will be passed to the Outsidetextfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.treemap.Outsidetextfont """ - return self["outsidetextfont"] + return self['outsidetextfont'] @outsidetextfont.setter def outsidetextfont(self, val): - self["outsidetextfont"] = val + self['outsidetextfont'] = val # parents # ------- @@ -1072,11 +709,11 @@ def parents(self): ------- numpy.ndarray """ - return self["parents"] + return self['parents'] @parents.setter def parents(self, val): - self["parents"] = val + self['parents'] = val # parentssrc # ---------- @@ -1092,11 +729,11 @@ def parentssrc(self): ------- str """ - return self["parentssrc"] + return self['parentssrc'] @parentssrc.setter def parentssrc(self, val): - self["parentssrc"] = val + self['parentssrc'] = val # pathbar # ------- @@ -1109,34 +746,15 @@ def pathbar(self): - A dict of string/value properties that will be passed to the Pathbar constructor - Supported dict properties: - - edgeshape - Determines which shape is used for edges - between `barpath` labels. - side - Determines on which side of the the treemap the - `pathbar` should be presented. - textfont - Sets the font used inside `pathbar`. - thickness - Sets the thickness of `pathbar` (in px). If not - specified the `pathbar.textfont.size` is used - with 3 pixles extra padding on each side. - visible - Determines if the path bar is drawn i.e. - outside the trace `domain` and with one pixel - gap. - Returns ------- plotly.graph_objs.treemap.Pathbar """ - return self["pathbar"] + return self['pathbar'] @pathbar.setter def pathbar(self, val): - self["pathbar"] = val + self['pathbar'] = val # root # ---- @@ -1149,23 +767,15 @@ def root(self): - A dict of string/value properties that will be passed to the Root constructor - Supported dict properties: - - color - sets the color of the root node for a - sunburst/treemap/icicle trace. this has no - effect when a colorscale is used to set the - markers. - Returns ------- plotly.graph_objs.treemap.Root """ - return self["root"] + return self['root'] @root.setter def root(self, val): - self["root"] = val + self['root'] = val # sort # ---- @@ -1182,11 +792,11 @@ def sort(self): ------- bool """ - return self["sort"] + return self['sort'] @sort.setter def sort(self, val): - self["sort"] = val + self['sort'] = val # stream # ------ @@ -1199,27 +809,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.treemap.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # text # ---- @@ -1239,11 +837,11 @@ def text(self): ------- numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textfont # -------- @@ -1258,88 +856,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.treemap.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # textinfo # -------- @@ -1358,11 +883,11 @@ def textinfo(self): ------- Any """ - return self["textinfo"] + return self['textinfo'] @textinfo.setter def textinfo(self, val): - self["textinfo"] = val + self['textinfo'] = val # textposition # ------------ @@ -1381,11 +906,11 @@ def textposition(self): ------- Any """ - return self["textposition"] + return self['textposition'] @textposition.setter def textposition(self, val): - self["textposition"] = val + self['textposition'] = val # textsrc # ------- @@ -1401,11 +926,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # texttemplate # ------------ @@ -1437,11 +962,11 @@ def texttemplate(self): ------- str|numpy.ndarray """ - return self["texttemplate"] + return self['texttemplate'] @texttemplate.setter def texttemplate(self, val): - self["texttemplate"] = val + self['texttemplate'] = val # texttemplatesrc # --------------- @@ -1458,11 +983,11 @@ def texttemplatesrc(self): ------- str """ - return self["texttemplatesrc"] + return self['texttemplatesrc'] @texttemplatesrc.setter def texttemplatesrc(self, val): - self["texttemplatesrc"] = val + self['texttemplatesrc'] = val # tiling # ------ @@ -1475,43 +1000,15 @@ def tiling(self): - A dict of string/value properties that will be passed to the Tiling constructor - Supported dict properties: - - flip - Determines if the positions obtained from - solver are flipped on each axis. - packing - Determines d3 treemap solver. For more info - please refer to - https://github.com/d3/d3-hierarchy#treemap- - tiling - pad - Sets the inner padding (in px). - squarifyratio - When using "squarify" `packing` algorithm, - according to https://github.com/d3/d3- - hierarchy/blob/v3.1.1/README.md#squarify_ratio - this option specifies the desired aspect ratio - of the generated rectangles. The ratio must be - specified as a number greater than or equal to - one. Note that the orientation of the generated - rectangles (tall or wide) is not implied by the - ratio; for example, a ratio of two will attempt - to produce a mixture of rectangles whose - width:height ratio is either 2:1 or 1:2. When - using "squarify", unlike d3 which uses the - Golden Ratio i.e. 1.618034, Plotly applies 1 to - increase squares in treemap layouts. - Returns ------- plotly.graph_objs.treemap.Tiling """ - return self["tiling"] + return self['tiling'] @tiling.setter def tiling(self, val): - self["tiling"] = val + self['tiling'] = val # uid # --- @@ -1529,11 +1026,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1562,11 +1059,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # values # ------ @@ -1583,11 +1080,11 @@ def values(self): ------- numpy.ndarray """ - return self["values"] + return self['values'] @values.setter def values(self, val): - self["values"] = val + self['values'] = val # valuessrc # --------- @@ -1603,11 +1100,11 @@ def valuessrc(self): ------- str """ - return self["valuessrc"] + return self['valuessrc'] @valuessrc.setter def valuessrc(self, val): - self["valuessrc"] = val + self['valuessrc'] = val # visible # ------- @@ -1626,17 +1123,17 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -1895,60 +1392,58 @@ def _prop_descriptions(self): a legend item (provided that the legend itself is visible). """ - - def __init__( - self, - arg=None, - branchvalues=None, - count=None, - customdata=None, - customdatasrc=None, - domain=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - insidetextfont=None, - labels=None, - labelssrc=None, - legend=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - level=None, - marker=None, - maxdepth=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - outsidetextfont=None, - parents=None, - parentssrc=None, - pathbar=None, - root=None, - sort=None, - stream=None, - text=None, - textfont=None, - textinfo=None, - textposition=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - tiling=None, - uid=None, - uirevision=None, - values=None, - valuessrc=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + branchvalues=None, + count=None, + customdata=None, + customdatasrc=None, + domain=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + insidetextfont=None, + labels=None, + labelssrc=None, + legend=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + level=None, + marker=None, + maxdepth=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + outsidetextfont=None, + parents=None, + parentssrc=None, + pathbar=None, + root=None, + sort=None, + stream=None, + text=None, + textfont=None, + textinfo=None, + textposition=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + tiling=None, + uid=None, + uirevision=None, + values=None, + valuessrc=None, + visible=None, + **kwargs + ): """ Construct a new Treemap object @@ -2218,10 +1713,10 @@ def __init__( ------- Treemap """ - super(Treemap, self).__init__("treemap") + super(Treemap, self).__init__('treemap') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2233,218 +1728,73 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Treemap constructor must be a dict or -an instance of :class:`plotly.graph_objs.Treemap`""" - ) +an instance of :class:`plotly.graph_objs.Treemap`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("branchvalues", None) - _v = branchvalues if branchvalues is not None else _v - if _v is not None: - self["branchvalues"] = _v - _v = arg.pop("count", None) - _v = count if count is not None else _v - if _v is not None: - self["count"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("domain", None) - _v = domain if domain is not None else _v - if _v is not None: - self["domain"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("insidetextfont", None) - _v = insidetextfont if insidetextfont is not None else _v - if _v is not None: - self["insidetextfont"] = _v - _v = arg.pop("labels", None) - _v = labels if labels is not None else _v - if _v is not None: - self["labels"] = _v - _v = arg.pop("labelssrc", None) - _v = labelssrc if labelssrc is not None else _v - if _v is not None: - self["labelssrc"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("level", None) - _v = level if level is not None else _v - if _v is not None: - self["level"] = _v - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("maxdepth", None) - _v = maxdepth if maxdepth is not None else _v - if _v is not None: - self["maxdepth"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("outsidetextfont", None) - _v = outsidetextfont if outsidetextfont is not None else _v - if _v is not None: - self["outsidetextfont"] = _v - _v = arg.pop("parents", None) - _v = parents if parents is not None else _v - if _v is not None: - self["parents"] = _v - _v = arg.pop("parentssrc", None) - _v = parentssrc if parentssrc is not None else _v - if _v is not None: - self["parentssrc"] = _v - _v = arg.pop("pathbar", None) - _v = pathbar if pathbar is not None else _v - if _v is not None: - self["pathbar"] = _v - _v = arg.pop("root", None) - _v = root if root is not None else _v - if _v is not None: - self["root"] = _v - _v = arg.pop("sort", None) - _v = sort if sort is not None else _v - if _v is not None: - self["sort"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v - _v = arg.pop("textinfo", None) - _v = textinfo if textinfo is not None else _v - if _v is not None: - self["textinfo"] = _v - _v = arg.pop("textposition", None) - _v = textposition if textposition is not None else _v - if _v is not None: - self["textposition"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("texttemplate", None) - _v = texttemplate if texttemplate is not None else _v - if _v is not None: - self["texttemplate"] = _v - _v = arg.pop("texttemplatesrc", None) - _v = texttemplatesrc if texttemplatesrc is not None else _v - if _v is not None: - self["texttemplatesrc"] = _v - _v = arg.pop("tiling", None) - _v = tiling if tiling is not None else _v - if _v is not None: - self["tiling"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("values", None) - _v = values if values is not None else _v - if _v is not None: - self["values"] = _v - _v = arg.pop("valuessrc", None) - _v = valuessrc if valuessrc is not None else _v - if _v is not None: - self["valuessrc"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('branchvalues', arg, branchvalues) + self._init_provided('count', arg, count) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('domain', arg, domain) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('insidetextfont', arg, insidetextfont) + self._init_provided('labels', arg, labels) + self._init_provided('labelssrc', arg, labelssrc) + self._init_provided('legend', arg, legend) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('level', arg, level) + self._init_provided('marker', arg, marker) + self._init_provided('maxdepth', arg, maxdepth) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('outsidetextfont', arg, outsidetextfont) + self._init_provided('parents', arg, parents) + self._init_provided('parentssrc', arg, parentssrc) + self._init_provided('pathbar', arg, pathbar) + self._init_provided('root', arg, root) + self._init_provided('sort', arg, sort) + self._init_provided('stream', arg, stream) + self._init_provided('text', arg, text) + self._init_provided('textfont', arg, textfont) + self._init_provided('textinfo', arg, textinfo) + self._init_provided('textposition', arg, textposition) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('texttemplate', arg, texttemplate) + self._init_provided('texttemplatesrc', arg, texttemplatesrc) + self._init_provided('tiling', arg, tiling) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('values', arg, values) + self._init_provided('valuessrc', arg, valuessrc) + self._init_provided('visible', arg, visible) # Read-only literals # ------------------ - self._props["type"] = "treemap" - arg.pop("type", None) + self._props['type'] = 'treemap' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_violin.py b/packages/python/plotly/plotly/graph_objs/_violin.py index ffb7362db01..05962e2161d 100644 --- a/packages/python/plotly/plotly/graph_objs/_violin.py +++ b/packages/python/plotly/plotly/graph_objs/_violin.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,72 +8,9 @@ class Violin(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "violin" - _valid_props = { - "alignmentgroup", - "bandwidth", - "box", - "customdata", - "customdatasrc", - "fillcolor", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hoveron", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "jitter", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "line", - "marker", - "meanline", - "meta", - "metasrc", - "name", - "offsetgroup", - "opacity", - "orientation", - "pointpos", - "points", - "quartilemethod", - "scalegroup", - "scalemode", - "selected", - "selectedpoints", - "showlegend", - "side", - "span", - "spanmode", - "stream", - "text", - "textsrc", - "type", - "uid", - "uirevision", - "unselected", - "visible", - "width", - "x", - "x0", - "xaxis", - "xhoverformat", - "xsrc", - "y", - "y0", - "yaxis", - "yhoverformat", - "ysrc", - "zorder", - } + _parent_path_str = '' + _path_str = 'violin' + _valid_props = {"alignmentgroup", "bandwidth", "box", "customdata", "customdatasrc", "fillcolor", "hoverinfo", "hoverinfosrc", "hoverlabel", "hoveron", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "jitter", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "line", "marker", "meanline", "meta", "metasrc", "name", "offsetgroup", "opacity", "orientation", "pointpos", "points", "quartilemethod", "scalegroup", "scalemode", "selected", "selectedpoints", "showlegend", "side", "span", "spanmode", "stream", "text", "textsrc", "type", "uid", "uirevision", "unselected", "visible", "width", "x", "x0", "xaxis", "xhoverformat", "xsrc", "y", "y0", "yaxis", "yhoverformat", "ysrc", "zorder"} # alignmentgroup # -------------- @@ -90,11 +29,11 @@ def alignmentgroup(self): ------- str """ - return self["alignmentgroup"] + return self['alignmentgroup'] @alignmentgroup.setter def alignmentgroup(self, val): - self["alignmentgroup"] = val + self['alignmentgroup'] = val # bandwidth # --------- @@ -112,11 +51,11 @@ def bandwidth(self): ------- int|float """ - return self["bandwidth"] + return self['bandwidth'] @bandwidth.setter def bandwidth(self, val): - self["bandwidth"] = val + self['bandwidth'] = val # box # --- @@ -129,30 +68,15 @@ def box(self): - A dict of string/value properties that will be passed to the Box constructor - Supported dict properties: - - fillcolor - Sets the inner box plot fill color. - line - :class:`plotly.graph_objects.violin.box.Line` - instance or dict with compatible properties - visible - Determines if an miniature box plot is drawn - inside the violins. - width - Sets the width of the inner box plots relative - to the violins' width. For example, with 1, the - inner box plots are as wide as the violins. - Returns ------- plotly.graph_objs.violin.Box """ - return self["box"] + return self['box'] @box.setter def box(self, val): - self["box"] = val + self['box'] = val # customdata # ---------- @@ -171,11 +95,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -192,11 +116,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # fillcolor # --------- @@ -212,52 +136,17 @@ def fillcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["fillcolor"] + return self['fillcolor'] @fillcolor.setter def fillcolor(self, val): - self["fillcolor"] = val + self['fillcolor'] = val # hoverinfo # --------- @@ -279,11 +168,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -300,11 +189,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -317,53 +206,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.violin.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hoveron # ------- @@ -384,11 +235,11 @@ def hoveron(self): ------- Any """ - return self["hoveron"] + return self['hoveron'] @hoveron.setter def hoveron(self, val): - self["hoveron"] = val + self['hoveron'] = val # hovertemplate # ------------- @@ -428,11 +279,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -449,11 +300,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -471,11 +322,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -492,11 +343,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -514,11 +365,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -534,11 +385,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # jitter # ------ @@ -557,11 +408,11 @@ def jitter(self): ------- int|float """ - return self["jitter"] + return self['jitter'] @jitter.setter def jitter(self, val): - self["jitter"] = val + self['jitter'] = val # legend # ------ @@ -582,11 +433,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -605,11 +456,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -622,22 +473,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.violin.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -660,11 +504,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -681,11 +525,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # line # ---- @@ -698,23 +542,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the color of line bounding the violin(s). - width - Sets the width (in px) of line bounding the - violin(s). - Returns ------- plotly.graph_objs.violin.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # marker # ------ @@ -727,42 +563,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - angle - Sets the marker angle in respect to `angleref`. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - line - :class:`plotly.graph_objects.violin.marker.Line - ` instance or dict with compatible properties - opacity - Sets the marker opacity. - outliercolor - Sets the color of the outlier sample points. - size - Sets the marker size (in px). - symbol - Sets the marker symbol type. Adding 100 is - equivalent to appending "-open" to a symbol - name. Adding 200 is equivalent to appending - "-dot" to a symbol name. Adding 300 is - equivalent to appending "-open-dot" or "dot- - open" to a symbol name. - Returns ------- plotly.graph_objs.violin.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # meanline # -------- @@ -775,29 +584,15 @@ def meanline(self): - A dict of string/value properties that will be passed to the Meanline constructor - Supported dict properties: - - color - Sets the mean line color. - visible - Determines if a line corresponding to the - sample's mean is shown inside the violins. If - `box.visible` is turned on, the mean line is - drawn inside the inner box. Otherwise, the mean - line is drawn from one side of the violin to - other. - width - Sets the mean line width. - Returns ------- plotly.graph_objs.violin.Meanline """ - return self["meanline"] + return self['meanline'] @meanline.setter def meanline(self, val): - self["meanline"] = val + self['meanline'] = val # meta # ---- @@ -821,11 +616,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -841,11 +636,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -868,11 +663,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # offsetgroup # ----------- @@ -891,11 +686,11 @@ def offsetgroup(self): ------- str """ - return self["offsetgroup"] + return self['offsetgroup'] @offsetgroup.setter def offsetgroup(self, val): - self["offsetgroup"] = val + self['offsetgroup'] = val # opacity # ------- @@ -911,11 +706,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # orientation # ----------- @@ -933,11 +728,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # pointpos # -------- @@ -957,11 +752,11 @@ def pointpos(self): ------- int|float """ - return self["pointpos"] + return self['pointpos'] @pointpos.setter def pointpos(self, val): - self["pointpos"] = val + self['pointpos'] = val # points # ------ @@ -985,11 +780,11 @@ def points(self): ------- Any """ - return self["points"] + return self['points'] @points.setter def points(self, val): - self["points"] = val + self['points'] = val # quartilemethod # -------------- @@ -1017,11 +812,11 @@ def quartilemethod(self): ------- Any """ - return self["quartilemethod"] + return self['quartilemethod'] @quartilemethod.setter def quartilemethod(self, val): - self["quartilemethod"] = val + self['quartilemethod'] = val # scalegroup # ---------- @@ -1043,11 +838,11 @@ def scalegroup(self): ------- str """ - return self["scalegroup"] + return self['scalegroup'] @scalegroup.setter def scalegroup(self, val): - self["scalegroup"] = val + self['scalegroup'] = val # scalemode # --------- @@ -1067,11 +862,11 @@ def scalemode(self): ------- Any """ - return self["scalemode"] + return self['scalemode'] @scalemode.setter def scalemode(self, val): - self["scalemode"] = val + self['scalemode'] = val # selected # -------- @@ -1084,22 +879,15 @@ def selected(self): - A dict of string/value properties that will be passed to the Selected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.violin.selected.Ma - rker` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.violin.Selected """ - return self["selected"] + return self['selected'] @selected.setter def selected(self, val): - self["selected"] = val + self['selected'] = val # selectedpoints # -------------- @@ -1119,11 +907,11 @@ def selectedpoints(self): ------- Any """ - return self["selectedpoints"] + return self['selectedpoints'] @selectedpoints.setter def selectedpoints(self, val): - self["selectedpoints"] = val + self['selectedpoints'] = val # showlegend # ---------- @@ -1140,11 +928,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # side # ---- @@ -1164,36 +952,36 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # span # ---- @property def span(self): """ - Sets the span in data space for which the density function will - be computed. Has an effect only when `spanmode` is set to - "manual". - - The 'span' property is an info array that may be specified as: + Sets the span in data space for which the density function will + be computed. Has an effect only when `spanmode` is set to + "manual". - * a list or tuple of 2 elements where: - (0) The 'span[0]' property accepts values of any type - (1) The 'span[1]' property accepts values of any type + The 'span' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'span[0]' property accepts values of any type + (1) The 'span[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["span"] + return self['span'] @span.setter def span(self, val): - self["span"] = val + self['span'] = val # spanmode # -------- @@ -1216,11 +1004,11 @@ def spanmode(self): ------- Any """ - return self["spanmode"] + return self['spanmode'] @spanmode.setter def spanmode(self, val): - self["spanmode"] = val + self['spanmode'] = val # stream # ------ @@ -1233,27 +1021,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.violin.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # text # ---- @@ -1275,11 +1051,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textsrc # ------- @@ -1295,11 +1071,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # uid # --- @@ -1317,11 +1093,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1350,11 +1126,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # unselected # ---------- @@ -1367,22 +1143,15 @@ def unselected(self): - A dict of string/value properties that will be passed to the Unselected constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.violin.unselected. - Marker` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.violin.Unselected """ - return self["unselected"] + return self['unselected'] @unselected.setter def unselected(self, val): - self["unselected"] = val + self['unselected'] = val # visible # ------- @@ -1401,11 +1170,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # width # ----- @@ -1423,11 +1192,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # x # - @@ -1444,11 +1213,11 @@ def x(self): ------- numpy.ndarray """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # x0 # -- @@ -1465,11 +1234,11 @@ def x0(self): ------- Any """ - return self["x0"] + return self['x0'] @x0.setter def x0(self, val): - self["x0"] = val + self['x0'] = val # xaxis # ----- @@ -1490,11 +1259,11 @@ def xaxis(self): ------- str """ - return self["xaxis"] + return self['xaxis'] @xaxis.setter def xaxis(self, val): - self["xaxis"] = val + self['xaxis'] = val # xhoverformat # ------------ @@ -1521,11 +1290,11 @@ def xhoverformat(self): ------- str """ - return self["xhoverformat"] + return self['xhoverformat'] @xhoverformat.setter def xhoverformat(self, val): - self["xhoverformat"] = val + self['xhoverformat'] = val # xsrc # ---- @@ -1541,11 +1310,11 @@ def xsrc(self): ------- str """ - return self["xsrc"] + return self['xsrc'] @xsrc.setter def xsrc(self, val): - self["xsrc"] = val + self['xsrc'] = val # y # - @@ -1562,11 +1331,11 @@ def y(self): ------- numpy.ndarray """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # y0 # -- @@ -1583,11 +1352,11 @@ def y0(self): ------- Any """ - return self["y0"] + return self['y0'] @y0.setter def y0(self, val): - self["y0"] = val + self['y0'] = val # yaxis # ----- @@ -1608,11 +1377,11 @@ def yaxis(self): ------- str """ - return self["yaxis"] + return self['yaxis'] @yaxis.setter def yaxis(self, val): - self["yaxis"] = val + self['yaxis'] = val # yhoverformat # ------------ @@ -1639,11 +1408,11 @@ def yhoverformat(self): ------- str """ - return self["yhoverformat"] + return self['yhoverformat'] @yhoverformat.setter def yhoverformat(self, val): - self["yhoverformat"] = val + self['yhoverformat'] = val # ysrc # ---- @@ -1659,11 +1428,11 @@ def ysrc(self): ------- str """ - return self["ysrc"] + return self['ysrc'] @ysrc.setter def ysrc(self, val): - self["ysrc"] = val + self['ysrc'] = val # zorder # ------ @@ -1681,17 +1450,17 @@ def zorder(self): ------- int """ - return self["zorder"] + return self['zorder'] @zorder.setter def zorder(self, val): - self["zorder"] = val + self['zorder'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -2042,73 +1811,71 @@ def _prop_descriptions(self): traces with higher `zorder` appear in front of those with lower `zorder`. """ - - def __init__( - self, - arg=None, - alignmentgroup=None, - bandwidth=None, - box=None, - customdata=None, - customdatasrc=None, - fillcolor=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hoveron=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - jitter=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - marker=None, - meanline=None, - meta=None, - metasrc=None, - name=None, - offsetgroup=None, - opacity=None, - orientation=None, - pointpos=None, - points=None, - quartilemethod=None, - scalegroup=None, - scalemode=None, - selected=None, - selectedpoints=None, - showlegend=None, - side=None, - span=None, - spanmode=None, - stream=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - unselected=None, - visible=None, - width=None, - x=None, - x0=None, - xaxis=None, - xhoverformat=None, - xsrc=None, - y=None, - y0=None, - yaxis=None, - yhoverformat=None, - ysrc=None, - zorder=None, - **kwargs, - ): + def __init__(self, + arg=None, + alignmentgroup=None, + bandwidth=None, + box=None, + customdata=None, + customdatasrc=None, + fillcolor=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hoveron=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + jitter=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + marker=None, + meanline=None, + meta=None, + metasrc=None, + name=None, + offsetgroup=None, + opacity=None, + orientation=None, + pointpos=None, + points=None, + quartilemethod=None, + scalegroup=None, + scalemode=None, + selected=None, + selectedpoints=None, + showlegend=None, + side=None, + span=None, + spanmode=None, + stream=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + unselected=None, + visible=None, + width=None, + x=None, + x0=None, + xaxis=None, + xhoverformat=None, + xsrc=None, + y=None, + y0=None, + yaxis=None, + yhoverformat=None, + ysrc=None, + zorder=None, + **kwargs + ): """ Construct a new Violin object @@ -2472,10 +2239,10 @@ def __init__( ------- Violin """ - super(Violin, self).__init__("violin") + super(Violin, self).__init__('violin') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2487,270 +2254,86 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Violin constructor must be a dict or -an instance of :class:`plotly.graph_objs.Violin`""" - ) +an instance of :class:`plotly.graph_objs.Violin`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("alignmentgroup", None) - _v = alignmentgroup if alignmentgroup is not None else _v - if _v is not None: - self["alignmentgroup"] = _v - _v = arg.pop("bandwidth", None) - _v = bandwidth if bandwidth is not None else _v - if _v is not None: - self["bandwidth"] = _v - _v = arg.pop("box", None) - _v = box if box is not None else _v - if _v is not None: - self["box"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("fillcolor", None) - _v = fillcolor if fillcolor is not None else _v - if _v is not None: - self["fillcolor"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hoveron", None) - _v = hoveron if hoveron is not None else _v - if _v is not None: - self["hoveron"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("jitter", None) - _v = jitter if jitter is not None else _v - if _v is not None: - self["jitter"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("meanline", None) - _v = meanline if meanline is not None else _v - if _v is not None: - self["meanline"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("offsetgroup", None) - _v = offsetgroup if offsetgroup is not None else _v - if _v is not None: - self["offsetgroup"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("pointpos", None) - _v = pointpos if pointpos is not None else _v - if _v is not None: - self["pointpos"] = _v - _v = arg.pop("points", None) - _v = points if points is not None else _v - if _v is not None: - self["points"] = _v - _v = arg.pop("quartilemethod", None) - _v = quartilemethod if quartilemethod is not None else _v - if _v is not None: - self["quartilemethod"] = _v - _v = arg.pop("scalegroup", None) - _v = scalegroup if scalegroup is not None else _v - if _v is not None: - self["scalegroup"] = _v - _v = arg.pop("scalemode", None) - _v = scalemode if scalemode is not None else _v - if _v is not None: - self["scalemode"] = _v - _v = arg.pop("selected", None) - _v = selected if selected is not None else _v - if _v is not None: - self["selected"] = _v - _v = arg.pop("selectedpoints", None) - _v = selectedpoints if selectedpoints is not None else _v - if _v is not None: - self["selectedpoints"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("span", None) - _v = span if span is not None else _v - if _v is not None: - self["span"] = _v - _v = arg.pop("spanmode", None) - _v = spanmode if spanmode is not None else _v - if _v is not None: - self["spanmode"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("unselected", None) - _v = unselected if unselected is not None else _v - if _v is not None: - self["unselected"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("x0", None) - _v = x0 if x0 is not None else _v - if _v is not None: - self["x0"] = _v - _v = arg.pop("xaxis", None) - _v = xaxis if xaxis is not None else _v - if _v is not None: - self["xaxis"] = _v - _v = arg.pop("xhoverformat", None) - _v = xhoverformat if xhoverformat is not None else _v - if _v is not None: - self["xhoverformat"] = _v - _v = arg.pop("xsrc", None) - _v = xsrc if xsrc is not None else _v - if _v is not None: - self["xsrc"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("y0", None) - _v = y0 if y0 is not None else _v - if _v is not None: - self["y0"] = _v - _v = arg.pop("yaxis", None) - _v = yaxis if yaxis is not None else _v - if _v is not None: - self["yaxis"] = _v - _v = arg.pop("yhoverformat", None) - _v = yhoverformat if yhoverformat is not None else _v - if _v is not None: - self["yhoverformat"] = _v - _v = arg.pop("ysrc", None) - _v = ysrc if ysrc is not None else _v - if _v is not None: - self["ysrc"] = _v - _v = arg.pop("zorder", None) - _v = zorder if zorder is not None else _v - if _v is not None: - self["zorder"] = _v + self._init_provided('alignmentgroup', arg, alignmentgroup) + self._init_provided('bandwidth', arg, bandwidth) + self._init_provided('box', arg, box) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('fillcolor', arg, fillcolor) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hoveron', arg, hoveron) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('jitter', arg, jitter) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('line', arg, line) + self._init_provided('marker', arg, marker) + self._init_provided('meanline', arg, meanline) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('offsetgroup', arg, offsetgroup) + self._init_provided('opacity', arg, opacity) + self._init_provided('orientation', arg, orientation) + self._init_provided('pointpos', arg, pointpos) + self._init_provided('points', arg, points) + self._init_provided('quartilemethod', arg, quartilemethod) + self._init_provided('scalegroup', arg, scalegroup) + self._init_provided('scalemode', arg, scalemode) + self._init_provided('selected', arg, selected) + self._init_provided('selectedpoints', arg, selectedpoints) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('side', arg, side) + self._init_provided('span', arg, span) + self._init_provided('spanmode', arg, spanmode) + self._init_provided('stream', arg, stream) + self._init_provided('text', arg, text) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('unselected', arg, unselected) + self._init_provided('visible', arg, visible) + self._init_provided('width', arg, width) + self._init_provided('x', arg, x) + self._init_provided('x0', arg, x0) + self._init_provided('xaxis', arg, xaxis) + self._init_provided('xhoverformat', arg, xhoverformat) + self._init_provided('xsrc', arg, xsrc) + self._init_provided('y', arg, y) + self._init_provided('y0', arg, y0) + self._init_provided('yaxis', arg, yaxis) + self._init_provided('yhoverformat', arg, yhoverformat) + self._init_provided('ysrc', arg, ysrc) + self._init_provided('zorder', arg, zorder) # Read-only literals # ------------------ - self._props["type"] = "violin" - arg.pop("type", None) + self._props['type'] = 'violin' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_volume.py b/packages/python/plotly/plotly/graph_objs/_volume.py index 1c86a415521..05effda3eb7 100644 --- a/packages/python/plotly/plotly/graph_objs/_volume.py +++ b/packages/python/plotly/plotly/graph_objs/_volume.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,72 +8,9 @@ class Volume(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "volume" - _valid_props = { - "autocolorscale", - "caps", - "cauto", - "cmax", - "cmid", - "cmin", - "coloraxis", - "colorbar", - "colorscale", - "contour", - "customdata", - "customdatasrc", - "flatshading", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "isomax", - "isomin", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "lighting", - "lightposition", - "meta", - "metasrc", - "name", - "opacity", - "opacityscale", - "reversescale", - "scene", - "showlegend", - "showscale", - "slices", - "spaceframe", - "stream", - "surface", - "text", - "textsrc", - "type", - "uid", - "uirevision", - "value", - "valuehoverformat", - "valuesrc", - "visible", - "x", - "xhoverformat", - "xsrc", - "y", - "yhoverformat", - "ysrc", - "z", - "zhoverformat", - "zsrc", - } + _parent_path_str = '' + _path_str = 'volume' + _valid_props = {"autocolorscale", "caps", "cauto", "cmax", "cmid", "cmin", "coloraxis", "colorbar", "colorscale", "contour", "customdata", "customdatasrc", "flatshading", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "isomax", "isomin", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "lighting", "lightposition", "meta", "metasrc", "name", "opacity", "opacityscale", "reversescale", "scene", "showlegend", "showscale", "slices", "spaceframe", "stream", "surface", "text", "textsrc", "type", "uid", "uirevision", "value", "valuehoverformat", "valuesrc", "visible", "x", "xhoverformat", "xsrc", "y", "yhoverformat", "ysrc", "z", "zhoverformat", "zsrc"} # autocolorscale # -------------- @@ -92,11 +31,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # caps # ---- @@ -109,27 +48,15 @@ def caps(self): - A dict of string/value properties that will be passed to the Caps constructor - Supported dict properties: - - x - :class:`plotly.graph_objects.volume.caps.X` - instance or dict with compatible properties - y - :class:`plotly.graph_objects.volume.caps.Y` - instance or dict with compatible properties - z - :class:`plotly.graph_objects.volume.caps.Z` - instance or dict with compatible properties - Returns ------- plotly.graph_objs.volume.Caps """ - return self["caps"] + return self['caps'] @caps.setter def caps(self, val): - self["caps"] = val + self['caps'] = val # cauto # ----- @@ -148,11 +75,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -169,11 +96,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -191,11 +118,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -212,11 +139,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # coloraxis # --------- @@ -239,11 +166,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -256,281 +183,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.volume. - colorbar.Tickformatstop` instances or dicts - with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.volume.colorbar.tickformatstopdefaults), sets - the default property values to use for elements - of volume.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.volume.colorbar.Ti - tle` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.volume.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -579,11 +240,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # contour # ------- @@ -596,25 +257,15 @@ def contour(self): - A dict of string/value properties that will be passed to the Contour constructor - Supported dict properties: - - color - Sets the color of the contour lines. - show - Sets whether or not dynamic contours are shown - on hover - width - Sets the width of the contour lines. - Returns ------- plotly.graph_objs.volume.Contour """ - return self["contour"] + return self['contour'] @contour.setter def contour(self, val): - self["contour"] = val + self['contour'] = val # customdata # ---------- @@ -633,11 +284,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -654,11 +305,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # flatshading # ----------- @@ -676,11 +327,11 @@ def flatshading(self): ------- bool """ - return self["flatshading"] + return self['flatshading'] @flatshading.setter def flatshading(self, val): - self["flatshading"] = val + self['flatshading'] = val # hoverinfo # --------- @@ -702,11 +353,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -723,11 +374,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -740,53 +391,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.volume.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -826,11 +439,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -847,11 +460,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -869,11 +482,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -890,11 +503,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -912,11 +525,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -932,11 +545,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # isomax # ------ @@ -952,11 +565,11 @@ def isomax(self): ------- int|float """ - return self["isomax"] + return self['isomax'] @isomax.setter def isomax(self, val): - self["isomax"] = val + self['isomax'] = val # isomin # ------ @@ -972,11 +585,11 @@ def isomin(self): ------- int|float """ - return self["isomin"] + return self['isomin'] @isomin.setter def isomin(self, val): - self["isomin"] = val + self['isomin'] = val # legend # ------ @@ -997,11 +610,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -1020,11 +633,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -1037,22 +650,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.volume.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -1075,11 +681,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -1096,11 +702,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # lighting # -------- @@ -1113,42 +719,15 @@ def lighting(self): - A dict of string/value properties that will be passed to the Lighting constructor - Supported dict properties: - - ambient - Ambient light increases overall color - visibility but can wash out the image. - diffuse - Represents the extent that incident rays are - reflected in a range of angles. - facenormalsepsilon - Epsilon for face normals calculation avoids - math issues arising from degenerate geometry. - fresnel - Represents the reflectance as a dependency of - the viewing angle; e.g. paper is reflective - when viewing it from the edge of the paper - (almost 90 degrees), causing shine. - roughness - Alters specular reflection; the rougher the - surface, the wider and less contrasty the - shine. - specular - Represents the level that incident rays are - reflected in a single direction, causing shine. - vertexnormalsepsilon - Epsilon for vertex normals calculation avoids - math issues arising from degenerate geometry. - Returns ------- plotly.graph_objs.volume.Lighting """ - return self["lighting"] + return self['lighting'] @lighting.setter def lighting(self, val): - self["lighting"] = val + self['lighting'] = val # lightposition # ------------- @@ -1161,27 +740,15 @@ def lightposition(self): - A dict of string/value properties that will be passed to the Lightposition constructor - Supported dict properties: - - x - Numeric vector, representing the X coordinate - for each vertex. - y - Numeric vector, representing the Y coordinate - for each vertex. - z - Numeric vector, representing the Z coordinate - for each vertex. - Returns ------- plotly.graph_objs.volume.Lightposition """ - return self["lightposition"] + return self['lightposition'] @lightposition.setter def lightposition(self, val): - self["lightposition"] = val + self['lightposition'] = val # meta # ---- @@ -1205,11 +772,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -1225,11 +792,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -1247,11 +814,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -1272,11 +839,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # opacityscale # ------------ @@ -1299,11 +866,11 @@ def opacityscale(self): ------- Any """ - return self["opacityscale"] + return self['opacityscale'] @opacityscale.setter def opacityscale(self, val): - self["opacityscale"] = val + self['opacityscale'] = val # reversescale # ------------ @@ -1321,11 +888,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # scene # ----- @@ -1346,11 +913,11 @@ def scene(self): ------- str """ - return self["scene"] + return self['scene'] @scene.setter def scene(self, val): - self["scene"] = val + self['scene'] = val # showlegend # ---------- @@ -1367,11 +934,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # showscale # --------- @@ -1388,11 +955,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # slices # ------ @@ -1405,27 +972,15 @@ def slices(self): - A dict of string/value properties that will be passed to the Slices constructor - Supported dict properties: - - x - :class:`plotly.graph_objects.volume.slices.X` - instance or dict with compatible properties - y - :class:`plotly.graph_objects.volume.slices.Y` - instance or dict with compatible properties - z - :class:`plotly.graph_objects.volume.slices.Z` - instance or dict with compatible properties - Returns ------- plotly.graph_objs.volume.Slices """ - return self["slices"] + return self['slices'] @slices.setter def slices(self, val): - self["slices"] = val + self['slices'] = val # spaceframe # ---------- @@ -1438,29 +993,15 @@ def spaceframe(self): - A dict of string/value properties that will be passed to the Spaceframe constructor - Supported dict properties: - - fill - Sets the fill ratio of the `spaceframe` - elements. The default fill value is 1 meaning - that they are entirely shaded. Applying a - `fill` ratio less than one would allow the - creation of openings parallel to the edges. - show - Displays/hides tetrahedron shapes between - minimum and maximum iso-values. Often useful - when either caps or surfaces are disabled or - filled with values less than 1. - Returns ------- plotly.graph_objs.volume.Spaceframe """ - return self["spaceframe"] + return self['spaceframe'] @spaceframe.setter def spaceframe(self, val): - self["spaceframe"] = val + self['spaceframe'] = val # stream # ------ @@ -1473,27 +1014,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.volume.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # surface # ------- @@ -1506,44 +1035,15 @@ def surface(self): - A dict of string/value properties that will be passed to the Surface constructor - Supported dict properties: - - count - Sets the number of iso-surfaces between minimum - and maximum iso-values. By default this value - is 2 meaning that only minimum and maximum - surfaces would be drawn. - fill - Sets the fill ratio of the iso-surface. The - default fill value of the surface is 1 meaning - that they are entirely shaded. On the other - hand Applying a `fill` ratio less than one - would allow the creation of openings parallel - to the edges. - pattern - Sets the surface pattern of the iso-surface 3-D - sections. The default pattern of the surface is - `all` meaning that the rest of surface elements - would be shaded. The check options (either 1 or - 2) could be used to draw half of the squares on - the surface. Using various combinations of - capital `A`, `B`, `C`, `D` and `E` may also be - used to reduce the number of triangles on the - iso-surfaces and creating other patterns of - interest. - show - Hides/displays surfaces between minimum and - maximum iso-values. - Returns ------- plotly.graph_objs.volume.Surface """ - return self["surface"] + return self['surface'] @surface.setter def surface(self, val): - self["surface"] = val + self['surface'] = val # text # ---- @@ -1563,11 +1063,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textsrc # ------- @@ -1583,11 +1083,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # uid # --- @@ -1605,11 +1105,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1638,11 +1138,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # value # ----- @@ -1658,11 +1158,11 @@ def value(self): ------- numpy.ndarray """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # valuehoverformat # ---------------- @@ -1683,11 +1183,11 @@ def valuehoverformat(self): ------- str """ - return self["valuehoverformat"] + return self['valuehoverformat'] @valuehoverformat.setter def valuehoverformat(self, val): - self["valuehoverformat"] = val + self['valuehoverformat'] = val # valuesrc # -------- @@ -1703,11 +1203,11 @@ def valuesrc(self): ------- str """ - return self["valuesrc"] + return self['valuesrc'] @valuesrc.setter def valuesrc(self, val): - self["valuesrc"] = val + self['valuesrc'] = val # visible # ------- @@ -1726,11 +1226,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # x # - @@ -1746,11 +1246,11 @@ def x(self): ------- numpy.ndarray """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xhoverformat # ------------ @@ -1777,11 +1277,11 @@ def xhoverformat(self): ------- str """ - return self["xhoverformat"] + return self['xhoverformat'] @xhoverformat.setter def xhoverformat(self, val): - self["xhoverformat"] = val + self['xhoverformat'] = val # xsrc # ---- @@ -1797,11 +1297,11 @@ def xsrc(self): ------- str """ - return self["xsrc"] + return self['xsrc'] @xsrc.setter def xsrc(self, val): - self["xsrc"] = val + self['xsrc'] = val # y # - @@ -1817,11 +1317,11 @@ def y(self): ------- numpy.ndarray """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yhoverformat # ------------ @@ -1848,11 +1348,11 @@ def yhoverformat(self): ------- str """ - return self["yhoverformat"] + return self['yhoverformat'] @yhoverformat.setter def yhoverformat(self, val): - self["yhoverformat"] = val + self['yhoverformat'] = val # ysrc # ---- @@ -1868,11 +1368,11 @@ def ysrc(self): ------- str """ - return self["ysrc"] + return self['ysrc'] @ysrc.setter def ysrc(self, val): - self["ysrc"] = val + self['ysrc'] = val # z # - @@ -1888,11 +1388,11 @@ def z(self): ------- numpy.ndarray """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # zhoverformat # ------------ @@ -1919,11 +1419,11 @@ def zhoverformat(self): ------- str """ - return self["zhoverformat"] + return self['zhoverformat'] @zhoverformat.setter def zhoverformat(self, val): - self["zhoverformat"] = val + self['zhoverformat'] = val # zsrc # ---- @@ -1939,17 +1439,17 @@ def zsrc(self): ------- str """ - return self["zsrc"] + return self['zsrc'] @zsrc.setter def zsrc(self, val): - self["zsrc"] = val + self['zsrc'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -2279,73 +1779,71 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `z`. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - caps=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - coloraxis=None, - colorbar=None, - colorscale=None, - contour=None, - customdata=None, - customdatasrc=None, - flatshading=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - isomax=None, - isomin=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - lighting=None, - lightposition=None, - meta=None, - metasrc=None, - name=None, - opacity=None, - opacityscale=None, - reversescale=None, - scene=None, - showlegend=None, - showscale=None, - slices=None, - spaceframe=None, - stream=None, - surface=None, - text=None, - textsrc=None, - uid=None, - uirevision=None, - value=None, - valuehoverformat=None, - valuesrc=None, - visible=None, - x=None, - xhoverformat=None, - xsrc=None, - y=None, - yhoverformat=None, - ysrc=None, - z=None, - zhoverformat=None, - zsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + caps=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + coloraxis=None, + colorbar=None, + colorscale=None, + contour=None, + customdata=None, + customdatasrc=None, + flatshading=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + isomax=None, + isomin=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + lighting=None, + lightposition=None, + meta=None, + metasrc=None, + name=None, + opacity=None, + opacityscale=None, + reversescale=None, + scene=None, + showlegend=None, + showscale=None, + slices=None, + spaceframe=None, + stream=None, + surface=None, + text=None, + textsrc=None, + uid=None, + uirevision=None, + value=None, + valuehoverformat=None, + valuesrc=None, + visible=None, + x=None, + xhoverformat=None, + xsrc=None, + y=None, + yhoverformat=None, + ysrc=None, + z=None, + zhoverformat=None, + zsrc=None, + **kwargs + ): """ Construct a new Volume object @@ -2688,10 +2186,10 @@ def __init__( ------- Volume """ - super(Volume, self).__init__("volume") + super(Volume, self).__init__('volume') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2703,270 +2201,86 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Volume constructor must be a dict or -an instance of :class:`plotly.graph_objs.Volume`""" - ) +an instance of :class:`plotly.graph_objs.Volume`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("caps", None) - _v = caps if caps is not None else _v - if _v is not None: - self["caps"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("contour", None) - _v = contour if contour is not None else _v - if _v is not None: - self["contour"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("flatshading", None) - _v = flatshading if flatshading is not None else _v - if _v is not None: - self["flatshading"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("isomax", None) - _v = isomax if isomax is not None else _v - if _v is not None: - self["isomax"] = _v - _v = arg.pop("isomin", None) - _v = isomin if isomin is not None else _v - if _v is not None: - self["isomin"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("lighting", None) - _v = lighting if lighting is not None else _v - if _v is not None: - self["lighting"] = _v - _v = arg.pop("lightposition", None) - _v = lightposition if lightposition is not None else _v - if _v is not None: - self["lightposition"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("opacityscale", None) - _v = opacityscale if opacityscale is not None else _v - if _v is not None: - self["opacityscale"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("scene", None) - _v = scene if scene is not None else _v - if _v is not None: - self["scene"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v - _v = arg.pop("slices", None) - _v = slices if slices is not None else _v - if _v is not None: - self["slices"] = _v - _v = arg.pop("spaceframe", None) - _v = spaceframe if spaceframe is not None else _v - if _v is not None: - self["spaceframe"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("surface", None) - _v = surface if surface is not None else _v - if _v is not None: - self["surface"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v - _v = arg.pop("valuehoverformat", None) - _v = valuehoverformat if valuehoverformat is not None else _v - if _v is not None: - self["valuehoverformat"] = _v - _v = arg.pop("valuesrc", None) - _v = valuesrc if valuesrc is not None else _v - if _v is not None: - self["valuesrc"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xhoverformat", None) - _v = xhoverformat if xhoverformat is not None else _v - if _v is not None: - self["xhoverformat"] = _v - _v = arg.pop("xsrc", None) - _v = xsrc if xsrc is not None else _v - if _v is not None: - self["xsrc"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yhoverformat", None) - _v = yhoverformat if yhoverformat is not None else _v - if _v is not None: - self["yhoverformat"] = _v - _v = arg.pop("ysrc", None) - _v = ysrc if ysrc is not None else _v - if _v is not None: - self["ysrc"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v - _v = arg.pop("zhoverformat", None) - _v = zhoverformat if zhoverformat is not None else _v - if _v is not None: - self["zhoverformat"] = _v - _v = arg.pop("zsrc", None) - _v = zsrc if zsrc is not None else _v - if _v is not None: - self["zsrc"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('caps', arg, caps) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('contour', arg, contour) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('flatshading', arg, flatshading) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('isomax', arg, isomax) + self._init_provided('isomin', arg, isomin) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('lighting', arg, lighting) + self._init_provided('lightposition', arg, lightposition) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('opacityscale', arg, opacityscale) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('scene', arg, scene) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('showscale', arg, showscale) + self._init_provided('slices', arg, slices) + self._init_provided('spaceframe', arg, spaceframe) + self._init_provided('stream', arg, stream) + self._init_provided('surface', arg, surface) + self._init_provided('text', arg, text) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('value', arg, value) + self._init_provided('valuehoverformat', arg, valuehoverformat) + self._init_provided('valuesrc', arg, valuesrc) + self._init_provided('visible', arg, visible) + self._init_provided('x', arg, x) + self._init_provided('xhoverformat', arg, xhoverformat) + self._init_provided('xsrc', arg, xsrc) + self._init_provided('y', arg, y) + self._init_provided('yhoverformat', arg, yhoverformat) + self._init_provided('ysrc', arg, ysrc) + self._init_provided('z', arg, z) + self._init_provided('zhoverformat', arg, zhoverformat) + self._init_provided('zsrc', arg, zsrc) # Read-only literals # ------------------ - self._props["type"] = "volume" - arg.pop("type", None) + self._props['type'] = 'volume' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/_waterfall.py b/packages/python/plotly/plotly/graph_objs/_waterfall.py index 42767a089d0..6a290f8a2a9 100644 --- a/packages/python/plotly/plotly/graph_objs/_waterfall.py +++ b/packages/python/plotly/plotly/graph_objs/_waterfall.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy @@ -6,84 +8,9 @@ class Waterfall(_BaseTraceType): # class properties # -------------------- - _parent_path_str = "" - _path_str = "waterfall" - _valid_props = { - "alignmentgroup", - "base", - "cliponaxis", - "connector", - "constraintext", - "customdata", - "customdatasrc", - "decreasing", - "dx", - "dy", - "hoverinfo", - "hoverinfosrc", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "hovertext", - "hovertextsrc", - "ids", - "idssrc", - "increasing", - "insidetextanchor", - "insidetextfont", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "measure", - "measuresrc", - "meta", - "metasrc", - "name", - "offset", - "offsetgroup", - "offsetsrc", - "opacity", - "orientation", - "outsidetextfont", - "selectedpoints", - "showlegend", - "stream", - "text", - "textangle", - "textfont", - "textinfo", - "textposition", - "textpositionsrc", - "textsrc", - "texttemplate", - "texttemplatesrc", - "totals", - "type", - "uid", - "uirevision", - "visible", - "width", - "widthsrc", - "x", - "x0", - "xaxis", - "xhoverformat", - "xperiod", - "xperiod0", - "xperiodalignment", - "xsrc", - "y", - "y0", - "yaxis", - "yhoverformat", - "yperiod", - "yperiod0", - "yperiodalignment", - "ysrc", - "zorder", - } + _parent_path_str = '' + _path_str = 'waterfall' + _valid_props = {"alignmentgroup", "base", "cliponaxis", "connector", "constraintext", "customdata", "customdatasrc", "decreasing", "dx", "dy", "hoverinfo", "hoverinfosrc", "hoverlabel", "hovertemplate", "hovertemplatesrc", "hovertext", "hovertextsrc", "ids", "idssrc", "increasing", "insidetextanchor", "insidetextfont", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "measure", "measuresrc", "meta", "metasrc", "name", "offset", "offsetgroup", "offsetsrc", "opacity", "orientation", "outsidetextfont", "selectedpoints", "showlegend", "stream", "text", "textangle", "textfont", "textinfo", "textposition", "textpositionsrc", "textsrc", "texttemplate", "texttemplatesrc", "totals", "type", "uid", "uirevision", "visible", "width", "widthsrc", "x", "x0", "xaxis", "xhoverformat", "xperiod", "xperiod0", "xperiodalignment", "xsrc", "y", "y0", "yaxis", "yhoverformat", "yperiod", "yperiod0", "yperiodalignment", "ysrc", "zorder"} # alignmentgroup # -------------- @@ -102,11 +29,11 @@ def alignmentgroup(self): ------- str """ - return self["alignmentgroup"] + return self['alignmentgroup'] @alignmentgroup.setter def alignmentgroup(self, val): - self["alignmentgroup"] = val + self['alignmentgroup'] = val # base # ---- @@ -122,11 +49,11 @@ def base(self): ------- int|float """ - return self["base"] + return self['base'] @base.setter def base(self, val): - self["base"] = val + self['base'] = val # cliponaxis # ---------- @@ -145,11 +72,11 @@ def cliponaxis(self): ------- bool """ - return self["cliponaxis"] + return self['cliponaxis'] @cliponaxis.setter def cliponaxis(self, val): - self["cliponaxis"] = val + self['cliponaxis'] = val # connector # --------- @@ -162,26 +89,15 @@ def connector(self): - A dict of string/value properties that will be passed to the Connector constructor - Supported dict properties: - - line - :class:`plotly.graph_objects.waterfall.connecto - r.Line` instance or dict with compatible - properties - mode - Sets the shape of connector lines. - visible - Determines if connector lines are drawn. - Returns ------- plotly.graph_objs.waterfall.Connector """ - return self["connector"] + return self['connector'] @connector.setter def connector(self, val): - self["connector"] = val + self['connector'] = val # constraintext # ------------- @@ -199,11 +115,11 @@ def constraintext(self): ------- Any """ - return self["constraintext"] + return self['constraintext'] @constraintext.setter def constraintext(self, val): - self["constraintext"] = val + self['constraintext'] = val # customdata # ---------- @@ -222,11 +138,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -243,11 +159,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # decreasing # ---------- @@ -260,22 +176,15 @@ def decreasing(self): - A dict of string/value properties that will be passed to the Decreasing constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.waterfall.decreasi - ng.Marker` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.waterfall.Decreasing """ - return self["decreasing"] + return self['decreasing'] @decreasing.setter def decreasing(self, val): - self["decreasing"] = val + self['decreasing'] = val # dx # -- @@ -291,11 +200,11 @@ def dx(self): ------- int|float """ - return self["dx"] + return self['dx'] @dx.setter def dx(self, val): - self["dx"] = val + self['dx'] = val # dy # -- @@ -311,11 +220,11 @@ def dy(self): ------- int|float """ - return self["dy"] + return self['dy'] @dy.setter def dy(self, val): - self["dy"] = val + self['dy'] = val # hoverinfo # --------- @@ -337,11 +246,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverinfosrc # ------------ @@ -358,11 +267,11 @@ def hoverinfosrc(self): ------- str """ - return self["hoverinfosrc"] + return self['hoverinfosrc'] @hoverinfosrc.setter def hoverinfosrc(self, val): - self["hoverinfosrc"] = val + self['hoverinfosrc'] = val # hoverlabel # ---------- @@ -375,53 +284,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.waterfall.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -463,11 +334,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -484,11 +355,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # hovertext # --------- @@ -510,11 +381,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # hovertextsrc # ------------ @@ -531,11 +402,11 @@ def hovertextsrc(self): ------- str """ - return self["hovertextsrc"] + return self['hovertextsrc'] @hovertextsrc.setter def hovertextsrc(self, val): - self["hovertextsrc"] = val + self['hovertextsrc'] = val # ids # --- @@ -553,11 +424,11 @@ def ids(self): ------- numpy.ndarray """ - return self["ids"] + return self['ids'] @ids.setter def ids(self, val): - self["ids"] = val + self['ids'] = val # idssrc # ------ @@ -573,11 +444,11 @@ def idssrc(self): ------- str """ - return self["idssrc"] + return self['idssrc'] @idssrc.setter def idssrc(self, val): - self["idssrc"] = val + self['idssrc'] = val # increasing # ---------- @@ -590,22 +461,15 @@ def increasing(self): - A dict of string/value properties that will be passed to the Increasing constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.waterfall.increasi - ng.Marker` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.waterfall.Increasing """ - return self["increasing"] + return self['increasing'] @increasing.setter def increasing(self, val): - self["increasing"] = val + self['increasing'] = val # insidetextanchor # ---------------- @@ -623,11 +487,11 @@ def insidetextanchor(self): ------- Any """ - return self["insidetextanchor"] + return self['insidetextanchor'] @insidetextanchor.setter def insidetextanchor(self, val): - self["insidetextanchor"] = val + self['insidetextanchor'] = val # insidetextfont # -------------- @@ -642,88 +506,15 @@ def insidetextfont(self): - A dict of string/value properties that will be passed to the Insidetextfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.waterfall.Insidetextfont """ - return self["insidetextfont"] + return self['insidetextfont'] @insidetextfont.setter def insidetextfont(self, val): - self["insidetextfont"] = val + self['insidetextfont'] = val # legend # ------ @@ -744,11 +535,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -767,11 +558,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -784,22 +575,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.waterfall.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -822,11 +606,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -843,11 +627,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # measure # ------- @@ -867,11 +651,11 @@ def measure(self): ------- numpy.ndarray """ - return self["measure"] + return self['measure'] @measure.setter def measure(self, val): - self["measure"] = val + self['measure'] = val # measuresrc # ---------- @@ -887,11 +671,11 @@ def measuresrc(self): ------- str """ - return self["measuresrc"] + return self['measuresrc'] @measuresrc.setter def measuresrc(self, val): - self["measuresrc"] = val + self['measuresrc'] = val # meta # ---- @@ -915,11 +699,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self["meta"] + return self['meta'] @meta.setter def meta(self, val): - self["meta"] = val + self['meta'] = val # metasrc # ------- @@ -935,11 +719,11 @@ def metasrc(self): ------- str """ - return self["metasrc"] + return self['metasrc'] @metasrc.setter def metasrc(self, val): - self["metasrc"] = val + self['metasrc'] = val # name # ---- @@ -957,11 +741,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # offset # ------ @@ -980,11 +764,11 @@ def offset(self): ------- int|float|numpy.ndarray """ - return self["offset"] + return self['offset'] @offset.setter def offset(self, val): - self["offset"] = val + self['offset'] = val # offsetgroup # ----------- @@ -1003,11 +787,11 @@ def offsetgroup(self): ------- str """ - return self["offsetgroup"] + return self['offsetgroup'] @offsetgroup.setter def offsetgroup(self, val): - self["offsetgroup"] = val + self['offsetgroup'] = val # offsetsrc # --------- @@ -1023,11 +807,11 @@ def offsetsrc(self): ------- str """ - return self["offsetsrc"] + return self['offsetsrc'] @offsetsrc.setter def offsetsrc(self, val): - self["offsetsrc"] = val + self['offsetsrc'] = val # opacity # ------- @@ -1043,11 +827,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # orientation # ----------- @@ -1065,11 +849,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outsidetextfont # --------------- @@ -1084,88 +868,15 @@ def outsidetextfont(self): - A dict of string/value properties that will be passed to the Outsidetextfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.waterfall.Outsidetextfont """ - return self["outsidetextfont"] + return self['outsidetextfont'] @outsidetextfont.setter def outsidetextfont(self, val): - self["outsidetextfont"] = val + self['outsidetextfont'] = val # selectedpoints # -------------- @@ -1185,11 +896,11 @@ def selectedpoints(self): ------- Any """ - return self["selectedpoints"] + return self['selectedpoints'] @selectedpoints.setter def selectedpoints(self, val): - self["selectedpoints"] = val + self['selectedpoints'] = val # showlegend # ---------- @@ -1206,11 +917,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # stream # ------ @@ -1223,27 +934,15 @@ def stream(self): - A dict of string/value properties that will be passed to the Stream constructor - Supported dict properties: - - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. - Returns ------- plotly.graph_objs.waterfall.Stream """ - return self["stream"] + return self['stream'] @stream.setter def stream(self, val): - self["stream"] = val + self['stream'] = val # text # ---- @@ -1266,11 +965,11 @@ def text(self): ------- str|numpy.ndarray """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textangle # --------- @@ -1291,11 +990,11 @@ def textangle(self): ------- int|float """ - return self["textangle"] + return self['textangle'] @textangle.setter def textangle(self, val): - self["textangle"] = val + self['textangle'] = val # textfont # -------- @@ -1310,88 +1009,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.waterfall.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # textinfo # -------- @@ -1412,11 +1038,11 @@ def textinfo(self): ------- Any """ - return self["textinfo"] + return self['textinfo'] @textinfo.setter def textinfo(self, val): - self["textinfo"] = val + self['textinfo'] = val # textposition # ------------ @@ -1441,11 +1067,11 @@ def textposition(self): ------- Any|numpy.ndarray """ - return self["textposition"] + return self['textposition'] @textposition.setter def textposition(self, val): - self["textposition"] = val + self['textposition'] = val # textpositionsrc # --------------- @@ -1462,11 +1088,11 @@ def textpositionsrc(self): ------- str """ - return self["textpositionsrc"] + return self['textpositionsrc'] @textpositionsrc.setter def textpositionsrc(self, val): - self["textpositionsrc"] = val + self['textpositionsrc'] = val # textsrc # ------- @@ -1482,11 +1108,11 @@ def textsrc(self): ------- str """ - return self["textsrc"] + return self['textsrc'] @textsrc.setter def textsrc(self, val): - self["textsrc"] = val + self['textsrc'] = val # texttemplate # ------------ @@ -1517,11 +1143,11 @@ def texttemplate(self): ------- str|numpy.ndarray """ - return self["texttemplate"] + return self['texttemplate'] @texttemplate.setter def texttemplate(self, val): - self["texttemplate"] = val + self['texttemplate'] = val # texttemplatesrc # --------------- @@ -1538,11 +1164,11 @@ def texttemplatesrc(self): ------- str """ - return self["texttemplatesrc"] + return self['texttemplatesrc'] @texttemplatesrc.setter def texttemplatesrc(self, val): - self["texttemplatesrc"] = val + self['texttemplatesrc'] = val # totals # ------ @@ -1555,22 +1181,15 @@ def totals(self): - A dict of string/value properties that will be passed to the Totals constructor - Supported dict properties: - - marker - :class:`plotly.graph_objects.waterfall.totals.M - arker` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.waterfall.Totals """ - return self["totals"] + return self['totals'] @totals.setter def totals(self, val): - self["totals"] = val + self['totals'] = val # uid # --- @@ -1588,11 +1207,11 @@ def uid(self): ------- str """ - return self["uid"] + return self['uid'] @uid.setter def uid(self, val): - self["uid"] = val + self['uid'] = val # uirevision # ---------- @@ -1621,11 +1240,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # visible # ------- @@ -1644,11 +1263,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # width # ----- @@ -1665,11 +1284,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # widthsrc # -------- @@ -1685,11 +1304,11 @@ def widthsrc(self): ------- str """ - return self["widthsrc"] + return self['widthsrc'] @widthsrc.setter def widthsrc(self, val): - self["widthsrc"] = val + self['widthsrc'] = val # x # - @@ -1705,11 +1324,11 @@ def x(self): ------- numpy.ndarray """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # x0 # -- @@ -1726,11 +1345,11 @@ def x0(self): ------- Any """ - return self["x0"] + return self['x0'] @x0.setter def x0(self, val): - self["x0"] = val + self['x0'] = val # xaxis # ----- @@ -1751,11 +1370,11 @@ def xaxis(self): ------- str """ - return self["xaxis"] + return self['xaxis'] @xaxis.setter def xaxis(self, val): - self["xaxis"] = val + self['xaxis'] = val # xhoverformat # ------------ @@ -1782,11 +1401,11 @@ def xhoverformat(self): ------- str """ - return self["xhoverformat"] + return self['xhoverformat'] @xhoverformat.setter def xhoverformat(self, val): - self["xhoverformat"] = val + self['xhoverformat'] = val # xperiod # ------- @@ -1804,11 +1423,11 @@ def xperiod(self): ------- Any """ - return self["xperiod"] + return self['xperiod'] @xperiod.setter def xperiod(self, val): - self["xperiod"] = val + self['xperiod'] = val # xperiod0 # -------- @@ -1827,11 +1446,11 @@ def xperiod0(self): ------- Any """ - return self["xperiod0"] + return self['xperiod0'] @xperiod0.setter def xperiod0(self, val): - self["xperiod0"] = val + self['xperiod0'] = val # xperiodalignment # ---------------- @@ -1849,11 +1468,11 @@ def xperiodalignment(self): ------- Any """ - return self["xperiodalignment"] + return self['xperiodalignment'] @xperiodalignment.setter def xperiodalignment(self, val): - self["xperiodalignment"] = val + self['xperiodalignment'] = val # xsrc # ---- @@ -1869,11 +1488,11 @@ def xsrc(self): ------- str """ - return self["xsrc"] + return self['xsrc'] @xsrc.setter def xsrc(self, val): - self["xsrc"] = val + self['xsrc'] = val # y # - @@ -1889,11 +1508,11 @@ def y(self): ------- numpy.ndarray """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # y0 # -- @@ -1910,11 +1529,11 @@ def y0(self): ------- Any """ - return self["y0"] + return self['y0'] @y0.setter def y0(self, val): - self["y0"] = val + self['y0'] = val # yaxis # ----- @@ -1935,11 +1554,11 @@ def yaxis(self): ------- str """ - return self["yaxis"] + return self['yaxis'] @yaxis.setter def yaxis(self, val): - self["yaxis"] = val + self['yaxis'] = val # yhoverformat # ------------ @@ -1966,11 +1585,11 @@ def yhoverformat(self): ------- str """ - return self["yhoverformat"] + return self['yhoverformat'] @yhoverformat.setter def yhoverformat(self, val): - self["yhoverformat"] = val + self['yhoverformat'] = val # yperiod # ------- @@ -1988,11 +1607,11 @@ def yperiod(self): ------- Any """ - return self["yperiod"] + return self['yperiod'] @yperiod.setter def yperiod(self, val): - self["yperiod"] = val + self['yperiod'] = val # yperiod0 # -------- @@ -2011,11 +1630,11 @@ def yperiod0(self): ------- Any """ - return self["yperiod0"] + return self['yperiod0'] @yperiod0.setter def yperiod0(self, val): - self["yperiod0"] = val + self['yperiod0'] = val # yperiodalignment # ---------------- @@ -2033,11 +1652,11 @@ def yperiodalignment(self): ------- Any """ - return self["yperiodalignment"] + return self['yperiodalignment'] @yperiodalignment.setter def yperiodalignment(self, val): - self["yperiodalignment"] = val + self['yperiodalignment'] = val # ysrc # ---- @@ -2053,11 +1672,11 @@ def ysrc(self): ------- str """ - return self["ysrc"] + return self['ysrc'] @ysrc.setter def ysrc(self, val): - self["ysrc"] = val + self['ysrc'] = val # zorder # ------ @@ -2075,17 +1694,17 @@ def zorder(self): ------- int """ - return self["zorder"] + return self['zorder'] @zorder.setter def zorder(self, val): - self["zorder"] = val + self['zorder'] = val # type # ---- @property def type(self): - return self._props["type"] + return self._props['type'] # Self properties description # --------------------------- @@ -2466,85 +2085,83 @@ def _prop_descriptions(self): traces with higher `zorder` appear in front of those with lower `zorder`. """ - - def __init__( - self, - arg=None, - alignmentgroup=None, - base=None, - cliponaxis=None, - connector=None, - constraintext=None, - customdata=None, - customdatasrc=None, - decreasing=None, - dx=None, - dy=None, - hoverinfo=None, - hoverinfosrc=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - hovertext=None, - hovertextsrc=None, - ids=None, - idssrc=None, - increasing=None, - insidetextanchor=None, - insidetextfont=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - measure=None, - measuresrc=None, - meta=None, - metasrc=None, - name=None, - offset=None, - offsetgroup=None, - offsetsrc=None, - opacity=None, - orientation=None, - outsidetextfont=None, - selectedpoints=None, - showlegend=None, - stream=None, - text=None, - textangle=None, - textfont=None, - textinfo=None, - textposition=None, - textpositionsrc=None, - textsrc=None, - texttemplate=None, - texttemplatesrc=None, - totals=None, - uid=None, - uirevision=None, - visible=None, - width=None, - widthsrc=None, - x=None, - x0=None, - xaxis=None, - xhoverformat=None, - xperiod=None, - xperiod0=None, - xperiodalignment=None, - xsrc=None, - y=None, - y0=None, - yaxis=None, - yhoverformat=None, - yperiod=None, - yperiod0=None, - yperiodalignment=None, - ysrc=None, - zorder=None, - **kwargs, - ): + def __init__(self, + arg=None, + alignmentgroup=None, + base=None, + cliponaxis=None, + connector=None, + constraintext=None, + customdata=None, + customdatasrc=None, + decreasing=None, + dx=None, + dy=None, + hoverinfo=None, + hoverinfosrc=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + hovertext=None, + hovertextsrc=None, + ids=None, + idssrc=None, + increasing=None, + insidetextanchor=None, + insidetextfont=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + measure=None, + measuresrc=None, + meta=None, + metasrc=None, + name=None, + offset=None, + offsetgroup=None, + offsetsrc=None, + opacity=None, + orientation=None, + outsidetextfont=None, + selectedpoints=None, + showlegend=None, + stream=None, + text=None, + textangle=None, + textfont=None, + textinfo=None, + textposition=None, + textpositionsrc=None, + textsrc=None, + texttemplate=None, + texttemplatesrc=None, + totals=None, + uid=None, + uirevision=None, + visible=None, + width=None, + widthsrc=None, + x=None, + x0=None, + xaxis=None, + xhoverformat=None, + xperiod=None, + xperiod0=None, + xperiodalignment=None, + xsrc=None, + y=None, + y0=None, + yaxis=None, + yhoverformat=None, + yperiod=None, + yperiod0=None, + yperiodalignment=None, + ysrc=None, + zorder=None, + **kwargs + ): """ Construct a new Waterfall object @@ -2938,10 +2555,10 @@ def __init__( ------- Waterfall """ - super(Waterfall, self).__init__("waterfall") + super(Waterfall, self).__init__('waterfall') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2953,318 +2570,98 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.Waterfall constructor must be a dict or -an instance of :class:`plotly.graph_objs.Waterfall`""" - ) +an instance of :class:`plotly.graph_objs.Waterfall`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("alignmentgroup", None) - _v = alignmentgroup if alignmentgroup is not None else _v - if _v is not None: - self["alignmentgroup"] = _v - _v = arg.pop("base", None) - _v = base if base is not None else _v - if _v is not None: - self["base"] = _v - _v = arg.pop("cliponaxis", None) - _v = cliponaxis if cliponaxis is not None else _v - if _v is not None: - self["cliponaxis"] = _v - _v = arg.pop("connector", None) - _v = connector if connector is not None else _v - if _v is not None: - self["connector"] = _v - _v = arg.pop("constraintext", None) - _v = constraintext if constraintext is not None else _v - if _v is not None: - self["constraintext"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("decreasing", None) - _v = decreasing if decreasing is not None else _v - if _v is not None: - self["decreasing"] = _v - _v = arg.pop("dx", None) - _v = dx if dx is not None else _v - if _v is not None: - self["dx"] = _v - _v = arg.pop("dy", None) - _v = dy if dy is not None else _v - if _v is not None: - self["dy"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverinfosrc", None) - _v = hoverinfosrc if hoverinfosrc is not None else _v - if _v is not None: - self["hoverinfosrc"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("hovertextsrc", None) - _v = hovertextsrc if hovertextsrc is not None else _v - if _v is not None: - self["hovertextsrc"] = _v - _v = arg.pop("ids", None) - _v = ids if ids is not None else _v - if _v is not None: - self["ids"] = _v - _v = arg.pop("idssrc", None) - _v = idssrc if idssrc is not None else _v - if _v is not None: - self["idssrc"] = _v - _v = arg.pop("increasing", None) - _v = increasing if increasing is not None else _v - if _v is not None: - self["increasing"] = _v - _v = arg.pop("insidetextanchor", None) - _v = insidetextanchor if insidetextanchor is not None else _v - if _v is not None: - self["insidetextanchor"] = _v - _v = arg.pop("insidetextfont", None) - _v = insidetextfont if insidetextfont is not None else _v - if _v is not None: - self["insidetextfont"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("measure", None) - _v = measure if measure is not None else _v - if _v is not None: - self["measure"] = _v - _v = arg.pop("measuresrc", None) - _v = measuresrc if measuresrc is not None else _v - if _v is not None: - self["measuresrc"] = _v - _v = arg.pop("meta", None) - _v = meta if meta is not None else _v - if _v is not None: - self["meta"] = _v - _v = arg.pop("metasrc", None) - _v = metasrc if metasrc is not None else _v - if _v is not None: - self["metasrc"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("offset", None) - _v = offset if offset is not None else _v - if _v is not None: - self["offset"] = _v - _v = arg.pop("offsetgroup", None) - _v = offsetgroup if offsetgroup is not None else _v - if _v is not None: - self["offsetgroup"] = _v - _v = arg.pop("offsetsrc", None) - _v = offsetsrc if offsetsrc is not None else _v - if _v is not None: - self["offsetsrc"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outsidetextfont", None) - _v = outsidetextfont if outsidetextfont is not None else _v - if _v is not None: - self["outsidetextfont"] = _v - _v = arg.pop("selectedpoints", None) - _v = selectedpoints if selectedpoints is not None else _v - if _v is not None: - self["selectedpoints"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("stream", None) - _v = stream if stream is not None else _v - if _v is not None: - self["stream"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textangle", None) - _v = textangle if textangle is not None else _v - if _v is not None: - self["textangle"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v - _v = arg.pop("textinfo", None) - _v = textinfo if textinfo is not None else _v - if _v is not None: - self["textinfo"] = _v - _v = arg.pop("textposition", None) - _v = textposition if textposition is not None else _v - if _v is not None: - self["textposition"] = _v - _v = arg.pop("textpositionsrc", None) - _v = textpositionsrc if textpositionsrc is not None else _v - if _v is not None: - self["textpositionsrc"] = _v - _v = arg.pop("textsrc", None) - _v = textsrc if textsrc is not None else _v - if _v is not None: - self["textsrc"] = _v - _v = arg.pop("texttemplate", None) - _v = texttemplate if texttemplate is not None else _v - if _v is not None: - self["texttemplate"] = _v - _v = arg.pop("texttemplatesrc", None) - _v = texttemplatesrc if texttemplatesrc is not None else _v - if _v is not None: - self["texttemplatesrc"] = _v - _v = arg.pop("totals", None) - _v = totals if totals is not None else _v - if _v is not None: - self["totals"] = _v - _v = arg.pop("uid", None) - _v = uid if uid is not None else _v - if _v is not None: - self["uid"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("widthsrc", None) - _v = widthsrc if widthsrc is not None else _v - if _v is not None: - self["widthsrc"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("x0", None) - _v = x0 if x0 is not None else _v - if _v is not None: - self["x0"] = _v - _v = arg.pop("xaxis", None) - _v = xaxis if xaxis is not None else _v - if _v is not None: - self["xaxis"] = _v - _v = arg.pop("xhoverformat", None) - _v = xhoverformat if xhoverformat is not None else _v - if _v is not None: - self["xhoverformat"] = _v - _v = arg.pop("xperiod", None) - _v = xperiod if xperiod is not None else _v - if _v is not None: - self["xperiod"] = _v - _v = arg.pop("xperiod0", None) - _v = xperiod0 if xperiod0 is not None else _v - if _v is not None: - self["xperiod0"] = _v - _v = arg.pop("xperiodalignment", None) - _v = xperiodalignment if xperiodalignment is not None else _v - if _v is not None: - self["xperiodalignment"] = _v - _v = arg.pop("xsrc", None) - _v = xsrc if xsrc is not None else _v - if _v is not None: - self["xsrc"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("y0", None) - _v = y0 if y0 is not None else _v - if _v is not None: - self["y0"] = _v - _v = arg.pop("yaxis", None) - _v = yaxis if yaxis is not None else _v - if _v is not None: - self["yaxis"] = _v - _v = arg.pop("yhoverformat", None) - _v = yhoverformat if yhoverformat is not None else _v - if _v is not None: - self["yhoverformat"] = _v - _v = arg.pop("yperiod", None) - _v = yperiod if yperiod is not None else _v - if _v is not None: - self["yperiod"] = _v - _v = arg.pop("yperiod0", None) - _v = yperiod0 if yperiod0 is not None else _v - if _v is not None: - self["yperiod0"] = _v - _v = arg.pop("yperiodalignment", None) - _v = yperiodalignment if yperiodalignment is not None else _v - if _v is not None: - self["yperiodalignment"] = _v - _v = arg.pop("ysrc", None) - _v = ysrc if ysrc is not None else _v - if _v is not None: - self["ysrc"] = _v - _v = arg.pop("zorder", None) - _v = zorder if zorder is not None else _v - if _v is not None: - self["zorder"] = _v + self._init_provided('alignmentgroup', arg, alignmentgroup) + self._init_provided('base', arg, base) + self._init_provided('cliponaxis', arg, cliponaxis) + self._init_provided('connector', arg, connector) + self._init_provided('constraintext', arg, constraintext) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('decreasing', arg, decreasing) + self._init_provided('dx', arg, dx) + self._init_provided('dy', arg, dy) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverinfosrc', arg, hoverinfosrc) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('hovertextsrc', arg, hovertextsrc) + self._init_provided('ids', arg, ids) + self._init_provided('idssrc', arg, idssrc) + self._init_provided('increasing', arg, increasing) + self._init_provided('insidetextanchor', arg, insidetextanchor) + self._init_provided('insidetextfont', arg, insidetextfont) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('measure', arg, measure) + self._init_provided('measuresrc', arg, measuresrc) + self._init_provided('meta', arg, meta) + self._init_provided('metasrc', arg, metasrc) + self._init_provided('name', arg, name) + self._init_provided('offset', arg, offset) + self._init_provided('offsetgroup', arg, offsetgroup) + self._init_provided('offsetsrc', arg, offsetsrc) + self._init_provided('opacity', arg, opacity) + self._init_provided('orientation', arg, orientation) + self._init_provided('outsidetextfont', arg, outsidetextfont) + self._init_provided('selectedpoints', arg, selectedpoints) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('stream', arg, stream) + self._init_provided('text', arg, text) + self._init_provided('textangle', arg, textangle) + self._init_provided('textfont', arg, textfont) + self._init_provided('textinfo', arg, textinfo) + self._init_provided('textposition', arg, textposition) + self._init_provided('textpositionsrc', arg, textpositionsrc) + self._init_provided('textsrc', arg, textsrc) + self._init_provided('texttemplate', arg, texttemplate) + self._init_provided('texttemplatesrc', arg, texttemplatesrc) + self._init_provided('totals', arg, totals) + self._init_provided('uid', arg, uid) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('visible', arg, visible) + self._init_provided('width', arg, width) + self._init_provided('widthsrc', arg, widthsrc) + self._init_provided('x', arg, x) + self._init_provided('x0', arg, x0) + self._init_provided('xaxis', arg, xaxis) + self._init_provided('xhoverformat', arg, xhoverformat) + self._init_provided('xperiod', arg, xperiod) + self._init_provided('xperiod0', arg, xperiod0) + self._init_provided('xperiodalignment', arg, xperiodalignment) + self._init_provided('xsrc', arg, xsrc) + self._init_provided('y', arg, y) + self._init_provided('y0', arg, y0) + self._init_provided('yaxis', arg, yaxis) + self._init_provided('yhoverformat', arg, yhoverformat) + self._init_provided('yperiod', arg, yperiod) + self._init_provided('yperiod0', arg, yperiod0) + self._init_provided('yperiodalignment', arg, yperiodalignment) + self._init_provided('ysrc', arg, ysrc) + self._init_provided('zorder', arg, zorder) # Read-only literals # ------------------ - self._props["type"] = "waterfall" - arg.pop("type", None) + self._props['type'] = 'waterfall' + arg.pop('type', None) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/__init__.py b/packages/python/plotly/plotly/graph_objs/bar/__init__.py index 7a342c0d56a..5274df563be 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/bar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._error_x import ErrorX from ._error_y import ErrorY @@ -20,21 +19,10 @@ from . import unselected else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".hoverlabel", ".legendgrouptitle", ".marker", ".selected", ".unselected"], - [ - "._error_x.ErrorX", - "._error_y.ErrorY", - "._hoverlabel.Hoverlabel", - "._insidetextfont.Insidetextfont", - "._legendgrouptitle.Legendgrouptitle", - "._marker.Marker", - "._outsidetextfont.Outsidetextfont", - "._selected.Selected", - "._stream.Stream", - "._textfont.Textfont", - "._unselected.Unselected", - ], + ['.hoverlabel', '.legendgrouptitle', '.marker', '.selected', '.unselected'], + ['._error_x.ErrorX', '._error_y.ErrorY', '._hoverlabel.Hoverlabel', '._insidetextfont.Insidetextfont', '._legendgrouptitle.Legendgrouptitle', '._marker.Marker', '._outsidetextfont.Outsidetextfont', '._selected.Selected', '._stream.Stream', '._textfont.Textfont', '._unselected.Unselected'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/bar/_error_x.py b/packages/python/plotly/plotly/graph_objs/bar/_error_x.py index b83b39034bd..0ec0b738f09 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/_error_x.py +++ b/packages/python/plotly/plotly/graph_objs/bar/_error_x.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,25 +8,9 @@ class ErrorX(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "bar" - _path_str = "bar.error_x" - _valid_props = { - "array", - "arrayminus", - "arrayminussrc", - "arraysrc", - "color", - "copy_ystyle", - "symmetric", - "thickness", - "traceref", - "tracerefminus", - "type", - "value", - "valueminus", - "visible", - "width", - } + _parent_path_str = 'bar' + _path_str = 'bar.error_x' + _valid_props = {"array", "arrayminus", "arrayminussrc", "arraysrc", "color", "copy_ystyle", "symmetric", "thickness", "traceref", "tracerefminus", "type", "value", "valueminus", "visible", "width"} # array # ----- @@ -41,11 +27,11 @@ def array(self): ------- numpy.ndarray """ - return self["array"] + return self['array'] @array.setter def array(self, val): - self["array"] = val + self['array'] = val # arrayminus # ---------- @@ -63,11 +49,11 @@ def arrayminus(self): ------- numpy.ndarray """ - return self["arrayminus"] + return self['arrayminus'] @arrayminus.setter def arrayminus(self, val): - self["arrayminus"] = val + self['arrayminus'] = val # arrayminussrc # ------------- @@ -84,11 +70,11 @@ def arrayminussrc(self): ------- str """ - return self["arrayminussrc"] + return self['arrayminussrc'] @arrayminussrc.setter def arrayminussrc(self, val): - self["arrayminussrc"] = val + self['arrayminussrc'] = val # arraysrc # -------- @@ -104,11 +90,11 @@ def arraysrc(self): ------- str """ - return self["arraysrc"] + return self['arraysrc'] @arraysrc.setter def arraysrc(self, val): - self["arraysrc"] = val + self['arraysrc'] = val # color # ----- @@ -122,52 +108,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # copy_ystyle # ----------- @@ -181,11 +132,11 @@ def copy_ystyle(self): ------- bool """ - return self["copy_ystyle"] + return self['copy_ystyle'] @copy_ystyle.setter def copy_ystyle(self, val): - self["copy_ystyle"] = val + self['copy_ystyle'] = val # symmetric # --------- @@ -203,11 +154,11 @@ def symmetric(self): ------- bool """ - return self["symmetric"] + return self['symmetric'] @symmetric.setter def symmetric(self, val): - self["symmetric"] = val + self['symmetric'] = val # thickness # --------- @@ -223,11 +174,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # traceref # -------- @@ -242,11 +193,11 @@ def traceref(self): ------- int """ - return self["traceref"] + return self['traceref'] @traceref.setter def traceref(self, val): - self["traceref"] = val + self['traceref'] = val # tracerefminus # ------------- @@ -261,11 +212,11 @@ def tracerefminus(self): ------- int """ - return self["tracerefminus"] + return self['tracerefminus'] @tracerefminus.setter def tracerefminus(self, val): - self["tracerefminus"] = val + self['tracerefminus'] = val # type # ---- @@ -288,11 +239,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # value # ----- @@ -310,11 +261,11 @@ def value(self): ------- int|float """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # valueminus # ---------- @@ -333,11 +284,11 @@ def valueminus(self): ------- int|float """ - return self["valueminus"] + return self['valueminus'] @valueminus.setter def valueminus(self, val): - self["valueminus"] = val + self['valueminus'] = val # visible # ------- @@ -353,11 +304,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # width # ----- @@ -374,11 +325,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -441,27 +392,25 @@ def _prop_descriptions(self): Sets the width (in px) of the cross-bar at both ends of the error bars. """ - - def __init__( - self, - arg=None, - array=None, - arrayminus=None, - arrayminussrc=None, - arraysrc=None, - color=None, - copy_ystyle=None, - symmetric=None, - thickness=None, - traceref=None, - tracerefminus=None, - type=None, - value=None, - valueminus=None, - visible=None, - width=None, - **kwargs, - ): + def __init__(self, + arg=None, + array=None, + arrayminus=None, + arrayminussrc=None, + arraysrc=None, + color=None, + copy_ystyle=None, + symmetric=None, + thickness=None, + traceref=None, + tracerefminus=None, + type=None, + value=None, + valueminus=None, + visible=None, + width=None, + **kwargs + ): """ Construct a new ErrorX object @@ -530,10 +479,10 @@ def __init__( ------- ErrorX """ - super(ErrorX, self).__init__("error_x") + super(ErrorX, self).__init__('error_x') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -545,80 +494,34 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.bar.ErrorX constructor must be a dict or -an instance of :class:`plotly.graph_objs.bar.ErrorX`""" - ) +an instance of :class:`plotly.graph_objs.bar.ErrorX`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("array", None) - _v = array if array is not None else _v - if _v is not None: - self["array"] = _v - _v = arg.pop("arrayminus", None) - _v = arrayminus if arrayminus is not None else _v - if _v is not None: - self["arrayminus"] = _v - _v = arg.pop("arrayminussrc", None) - _v = arrayminussrc if arrayminussrc is not None else _v - if _v is not None: - self["arrayminussrc"] = _v - _v = arg.pop("arraysrc", None) - _v = arraysrc if arraysrc is not None else _v - if _v is not None: - self["arraysrc"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("copy_ystyle", None) - _v = copy_ystyle if copy_ystyle is not None else _v - if _v is not None: - self["copy_ystyle"] = _v - _v = arg.pop("symmetric", None) - _v = symmetric if symmetric is not None else _v - if _v is not None: - self["symmetric"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("traceref", None) - _v = traceref if traceref is not None else _v - if _v is not None: - self["traceref"] = _v - _v = arg.pop("tracerefminus", None) - _v = tracerefminus if tracerefminus is not None else _v - if _v is not None: - self["tracerefminus"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v - _v = arg.pop("valueminus", None) - _v = valueminus if valueminus is not None else _v - if _v is not None: - self["valueminus"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('array', arg, array) + self._init_provided('arrayminus', arg, arrayminus) + self._init_provided('arrayminussrc', arg, arrayminussrc) + self._init_provided('arraysrc', arg, arraysrc) + self._init_provided('color', arg, color) + self._init_provided('copy_ystyle', arg, copy_ystyle) + self._init_provided('symmetric', arg, symmetric) + self._init_provided('thickness', arg, thickness) + self._init_provided('traceref', arg, traceref) + self._init_provided('tracerefminus', arg, tracerefminus) + self._init_provided('type', arg, type) + self._init_provided('value', arg, value) + self._init_provided('valueminus', arg, valueminus) + self._init_provided('visible', arg, visible) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/_error_y.py b/packages/python/plotly/plotly/graph_objs/bar/_error_y.py index c6b3d93917a..947d9801290 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/_error_y.py +++ b/packages/python/plotly/plotly/graph_objs/bar/_error_y.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,24 +8,9 @@ class ErrorY(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "bar" - _path_str = "bar.error_y" - _valid_props = { - "array", - "arrayminus", - "arrayminussrc", - "arraysrc", - "color", - "symmetric", - "thickness", - "traceref", - "tracerefminus", - "type", - "value", - "valueminus", - "visible", - "width", - } + _parent_path_str = 'bar' + _path_str = 'bar.error_y' + _valid_props = {"array", "arrayminus", "arrayminussrc", "arraysrc", "color", "symmetric", "thickness", "traceref", "tracerefminus", "type", "value", "valueminus", "visible", "width"} # array # ----- @@ -40,11 +27,11 @@ def array(self): ------- numpy.ndarray """ - return self["array"] + return self['array'] @array.setter def array(self, val): - self["array"] = val + self['array'] = val # arrayminus # ---------- @@ -62,11 +49,11 @@ def arrayminus(self): ------- numpy.ndarray """ - return self["arrayminus"] + return self['arrayminus'] @arrayminus.setter def arrayminus(self, val): - self["arrayminus"] = val + self['arrayminus'] = val # arrayminussrc # ------------- @@ -83,11 +70,11 @@ def arrayminussrc(self): ------- str """ - return self["arrayminussrc"] + return self['arrayminussrc'] @arrayminussrc.setter def arrayminussrc(self, val): - self["arrayminussrc"] = val + self['arrayminussrc'] = val # arraysrc # -------- @@ -103,11 +90,11 @@ def arraysrc(self): ------- str """ - return self["arraysrc"] + return self['arraysrc'] @arraysrc.setter def arraysrc(self, val): - self["arraysrc"] = val + self['arraysrc'] = val # color # ----- @@ -121,52 +108,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # symmetric # --------- @@ -184,11 +136,11 @@ def symmetric(self): ------- bool """ - return self["symmetric"] + return self['symmetric'] @symmetric.setter def symmetric(self, val): - self["symmetric"] = val + self['symmetric'] = val # thickness # --------- @@ -204,11 +156,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # traceref # -------- @@ -223,11 +175,11 @@ def traceref(self): ------- int """ - return self["traceref"] + return self['traceref'] @traceref.setter def traceref(self, val): - self["traceref"] = val + self['traceref'] = val # tracerefminus # ------------- @@ -242,11 +194,11 @@ def tracerefminus(self): ------- int """ - return self["tracerefminus"] + return self['tracerefminus'] @tracerefminus.setter def tracerefminus(self, val): - self["tracerefminus"] = val + self['tracerefminus'] = val # type # ---- @@ -269,11 +221,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # value # ----- @@ -291,11 +243,11 @@ def value(self): ------- int|float """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # valueminus # ---------- @@ -314,11 +266,11 @@ def valueminus(self): ------- int|float """ - return self["valueminus"] + return self['valueminus'] @valueminus.setter def valueminus(self, val): - self["valueminus"] = val + self['valueminus'] = val # visible # ------- @@ -334,11 +286,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # width # ----- @@ -355,11 +307,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -420,26 +372,24 @@ def _prop_descriptions(self): Sets the width (in px) of the cross-bar at both ends of the error bars. """ - - def __init__( - self, - arg=None, - array=None, - arrayminus=None, - arrayminussrc=None, - arraysrc=None, - color=None, - symmetric=None, - thickness=None, - traceref=None, - tracerefminus=None, - type=None, - value=None, - valueminus=None, - visible=None, - width=None, - **kwargs, - ): + def __init__(self, + arg=None, + array=None, + arrayminus=None, + arrayminussrc=None, + arraysrc=None, + color=None, + symmetric=None, + thickness=None, + traceref=None, + tracerefminus=None, + type=None, + value=None, + valueminus=None, + visible=None, + width=None, + **kwargs + ): """ Construct a new ErrorY object @@ -506,10 +456,10 @@ def __init__( ------- ErrorY """ - super(ErrorY, self).__init__("error_y") + super(ErrorY, self).__init__('error_y') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -521,76 +471,33 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.bar.ErrorY constructor must be a dict or -an instance of :class:`plotly.graph_objs.bar.ErrorY`""" - ) +an instance of :class:`plotly.graph_objs.bar.ErrorY`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("array", None) - _v = array if array is not None else _v - if _v is not None: - self["array"] = _v - _v = arg.pop("arrayminus", None) - _v = arrayminus if arrayminus is not None else _v - if _v is not None: - self["arrayminus"] = _v - _v = arg.pop("arrayminussrc", None) - _v = arrayminussrc if arrayminussrc is not None else _v - if _v is not None: - self["arrayminussrc"] = _v - _v = arg.pop("arraysrc", None) - _v = arraysrc if arraysrc is not None else _v - if _v is not None: - self["arraysrc"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("symmetric", None) - _v = symmetric if symmetric is not None else _v - if _v is not None: - self["symmetric"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("traceref", None) - _v = traceref if traceref is not None else _v - if _v is not None: - self["traceref"] = _v - _v = arg.pop("tracerefminus", None) - _v = tracerefminus if tracerefminus is not None else _v - if _v is not None: - self["tracerefminus"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v - _v = arg.pop("valueminus", None) - _v = valueminus if valueminus is not None else _v - if _v is not None: - self["valueminus"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('array', arg, array) + self._init_provided('arrayminus', arg, arrayminus) + self._init_provided('arrayminussrc', arg, arrayminussrc) + self._init_provided('arraysrc', arg, arraysrc) + self._init_provided('color', arg, color) + self._init_provided('symmetric', arg, symmetric) + self._init_provided('thickness', arg, thickness) + self._init_provided('traceref', arg, traceref) + self._init_provided('tracerefminus', arg, tracerefminus) + self._init_provided('type', arg, type) + self._init_provided('value', arg, value) + self._init_provided('valueminus', arg, valueminus) + self._init_provided('visible', arg, visible) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/bar/_hoverlabel.py index c3176a3f1af..940dfd1175b 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/bar/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "bar" - _path_str = "bar.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'bar' + _path_str = 'bar.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.bar.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.bar.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.bar.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.bar.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/_insidetextfont.py b/packages/python/plotly/plotly/graph_objs/bar/_insidetextfont.py index 6ee256b05ef..ae27b7e5b36 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/_insidetextfont.py +++ b/packages/python/plotly/plotly/graph_objs/bar/_insidetextfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Insidetextfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "bar" - _path_str = "bar.insidetextfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'bar' + _path_str = 'bar.insidetextfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Insidetextfont object @@ -639,10 +585,10 @@ def __init__( ------- Insidetextfont """ - super(Insidetextfont, self).__init__("insidetextfont") + super(Insidetextfont, self).__init__('insidetextfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.bar.Insidetextfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.bar.Insidetextfont`""" - ) +an instance of :class:`plotly.graph_objs.bar.Insidetextfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/bar/_legendgrouptitle.py index 04d4ea9812a..78c0a77ecfd 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/bar/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "bar" - _path_str = "bar.legendgrouptitle" + _parent_path_str = 'bar' + _path_str = 'bar.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.bar.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.bar.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.bar.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.bar.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/_marker.py b/packages/python/plotly/plotly/graph_objs/bar/_marker.py index 6af1d5c021f..2930d42c627 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/bar/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,27 +8,9 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "bar" - _path_str = "bar.marker" - _valid_props = { - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorbar", - "colorscale", - "colorsrc", - "cornerradius", - "line", - "opacity", - "opacitysrc", - "pattern", - "reversescale", - "showscale", - } + _parent_path_str = 'bar' + _path_str = 'bar.marker' + _valid_props = {"autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorbar", "colorscale", "colorsrc", "cornerradius", "line", "opacity", "opacitysrc", "pattern", "reversescale", "showscale"} # autocolorscale # -------------- @@ -48,11 +32,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -73,11 +57,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -96,11 +80,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -120,11 +104,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -143,11 +127,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -164,42 +148,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to bar.marker.colorscale - A list or array of any of the above @@ -208,11 +157,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -235,11 +184,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -252,281 +201,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.bar.mar - ker.colorbar.Tickformatstop` instances or dicts - with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.bar.marker.colorbar.tickformatstopdefaults), - sets the default property values to use for - elements of bar.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.bar.marker.colorba - r.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.bar.marker.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -576,11 +259,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -596,11 +279,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # cornerradius # ------------ @@ -619,11 +302,11 @@ def cornerradius(self): ------- Any """ - return self["cornerradius"] + return self['cornerradius'] @cornerradius.setter def cornerradius(self, val): - self["cornerradius"] = val + self['cornerradius'] = val # line # ---- @@ -636,107 +319,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.line.colorscale`. Has an - effect only if in `marker.line.color` is set to - a numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.line.color`) or the bounds set in - `marker.line.cmin` and `marker.line.cmax` Has - an effect only if in `marker.line.color` is set - to a numerical array. Defaults to `false` when - `marker.line.cmin` and `marker.line.cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.line.cmin` and/or - `marker.line.cmax` to be equidistant to this - point. Has an effect only if in - `marker.line.color` is set to a numerical - array. Value should have the same units as in - `marker.line.color`. Has no effect when - `marker.line.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmax` must be set as well. - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorscale - Sets the colorscale. Has an effect only if in - `marker.line.color` is set to a numerical - array. The colorscale must be an array - containing arrays mapping a normalized value to - an rgb, rgba, hex, hsl, hsv, or named color - string. At minimum, a mapping for the lowest - (0) and highest (1) values are required. For - example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use - `marker.line.cmin` and `marker.line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.line.color` is set to - a numerical array. If true, `marker.line.cmin` - will correspond to the last color in the array - and `marker.line.cmax` will correspond to the - first color. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. - Returns ------- plotly.graph_objs.bar.marker.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # opacity # ------- @@ -753,11 +344,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # opacitysrc # ---------- @@ -773,11 +364,11 @@ def opacitysrc(self): ------- str """ - return self["opacitysrc"] + return self['opacitysrc'] @opacitysrc.setter def opacitysrc(self, val): - self["opacitysrc"] = val + self['opacitysrc'] = val # pattern # ------- @@ -792,66 +383,15 @@ def pattern(self): - A dict of string/value properties that will be passed to the Pattern constructor - Supported dict properties: - - bgcolor - When there is no colorscale sets the color of - background pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "overlay". Otherwise, defaults to a transparent - background. - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - fgcolor - When there is no colorscale sets the color of - foreground pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "replace". Otherwise, defaults to dark grey or - white to increase contrast with the `bgcolor`. - fgcolorsrc - Sets the source reference on Chart Studio Cloud - for `fgcolor`. - fgopacity - Sets the opacity of the foreground pattern - fill. Defaults to a 0.5 when `fillmode` is - "overlay". Otherwise, defaults to 1. - fillmode - Determines whether `marker.color` should be - used as a default to `bgcolor` or a `fgcolor`. - shape - Sets the shape of the pattern fill. By default, - no pattern is used for filling the area. - shapesrc - Sets the source reference on Chart Studio Cloud - for `shape`. - size - Sets the size of unit squares of the pattern - fill in pixels, which corresponds to the - interval of repetition of the pattern. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - solidity - Sets the solidity of the pattern fill. Solidity - is roughly the fraction of the area filled by - the pattern. Solidity of 0 shows only the - background color without pattern and solidty of - 1 shows only the foreground color without - pattern. - soliditysrc - Sets the source reference on Chart Studio Cloud - for `solidity`. - Returns ------- plotly.graph_objs.bar.marker.Pattern """ - return self["pattern"] + return self['pattern'] @pattern.setter def pattern(self, val): - self["pattern"] = val + self['pattern'] = val # reversescale # ------------ @@ -870,11 +410,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # showscale # --------- @@ -892,11 +432,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # Self properties description # --------------------------- @@ -996,29 +536,27 @@ def _prop_descriptions(self): this trace. Has an effect only if in `marker.color` is set to a numerical array. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorbar=None, - colorscale=None, - colorsrc=None, - cornerradius=None, - line=None, - opacity=None, - opacitysrc=None, - pattern=None, - reversescale=None, - showscale=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorbar=None, + colorscale=None, + colorsrc=None, + cornerradius=None, + line=None, + opacity=None, + opacitysrc=None, + pattern=None, + reversescale=None, + showscale=None, + **kwargs + ): """ Construct a new Marker object @@ -1124,10 +662,10 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1139,88 +677,36 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.bar.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.bar.Marker`""" - ) +an instance of :class:`plotly.graph_objs.bar.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("cornerradius", None) - _v = cornerradius if cornerradius is not None else _v - if _v is not None: - self["cornerradius"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("opacitysrc", None) - _v = opacitysrc if opacitysrc is not None else _v - if _v is not None: - self["opacitysrc"] = _v - _v = arg.pop("pattern", None) - _v = pattern if pattern is not None else _v - if _v is not None: - self["pattern"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('cornerradius', arg, cornerradius) + self._init_provided('line', arg, line) + self._init_provided('opacity', arg, opacity) + self._init_provided('opacitysrc', arg, opacitysrc) + self._init_provided('pattern', arg, pattern) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('showscale', arg, showscale) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/_outsidetextfont.py b/packages/python/plotly/plotly/graph_objs/bar/_outsidetextfont.py index 3f549b619c2..e100567c9fc 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/_outsidetextfont.py +++ b/packages/python/plotly/plotly/graph_objs/bar/_outsidetextfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Outsidetextfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "bar" - _path_str = "bar.outsidetextfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'bar' + _path_str = 'bar.outsidetextfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Outsidetextfont object @@ -639,10 +585,10 @@ def __init__( ------- Outsidetextfont """ - super(Outsidetextfont, self).__init__("outsidetextfont") + super(Outsidetextfont, self).__init__('outsidetextfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.bar.Outsidetextfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.bar.Outsidetextfont`""" - ) +an instance of :class:`plotly.graph_objs.bar.Outsidetextfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/_selected.py b/packages/python/plotly/plotly/graph_objs/bar/_selected.py index 2cacdf125c1..0d1c747d80d 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/_selected.py +++ b/packages/python/plotly/plotly/graph_objs/bar/_selected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Selected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "bar" - _path_str = "bar.selected" + _parent_path_str = 'bar' + _path_str = 'bar.selected' _valid_props = {"marker", "textfont"} # marker @@ -21,22 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. - Returns ------- plotly.graph_objs.bar.selected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # textfont # -------- @@ -49,20 +44,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - Sets the text font color of selected points. - Returns ------- plotly.graph_objs.bar.selected.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # Self properties description # --------------------------- @@ -76,8 +66,12 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.bar.selected.Textfont` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, textfont=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + textfont=None, + **kwargs + ): """ Construct a new Selected object @@ -97,10 +91,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") + super(Selected, self).__init__('selected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -112,28 +106,21 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.bar.Selected constructor must be a dict or -an instance of :class:`plotly.graph_objs.bar.Selected`""" - ) +an instance of :class:`plotly.graph_objs.bar.Selected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v + self._init_provided('marker', arg, marker) + self._init_provided('textfont', arg, textfont) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/_stream.py b/packages/python/plotly/plotly/graph_objs/bar/_stream.py index 5b276e2eee3..dcd67972eff 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/bar/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "bar" - _path_str = "bar.stream" + _parent_path_str = 'bar' + _path_str = 'bar.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -93,10 +99,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -108,28 +114,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.bar.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.bar.Stream`""" - ) +an instance of :class:`plotly.graph_objs.bar.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/_textfont.py b/packages/python/plotly/plotly/graph_objs/bar/_textfont.py index 0dfa461b5a2..e268124094c 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/bar/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "bar" - _path_str = "bar.textfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'bar' + _path_str = 'bar.textfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Textfont object @@ -638,10 +584,10 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -653,92 +599,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.bar.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.bar.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.bar.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/_unselected.py b/packages/python/plotly/plotly/graph_objs/bar/_unselected.py index cac2eb44626..09fa47aa713 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/_unselected.py +++ b/packages/python/plotly/plotly/graph_objs/bar/_unselected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Unselected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "bar" - _path_str = "bar.unselected" + _parent_path_str = 'bar' + _path_str = 'bar.unselected' _valid_props = {"marker", "textfont"} # marker @@ -21,24 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.bar.unselected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # textfont # -------- @@ -51,21 +44,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - Sets the text font color of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.bar.unselected.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # Self properties description # --------------------------- @@ -79,8 +66,12 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.bar.unselected.Textfont` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, textfont=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + textfont=None, + **kwargs + ): """ Construct a new Unselected object @@ -101,10 +92,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") + super(Unselected, self).__init__('unselected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -116,28 +107,21 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.bar.Unselected constructor must be a dict or -an instance of :class:`plotly.graph_objs.bar.Unselected`""" - ) +an instance of :class:`plotly.graph_objs.bar.Unselected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v + self._init_provided('marker', arg, marker) + self._init_provided('textfont', arg, textfont) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/bar/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/bar/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/bar/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/bar/hoverlabel/_font.py index 9ddfd6157d4..fbf05b682d2 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/bar/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "bar.hoverlabel" - _path_str = "bar.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'bar.hoverlabel' + _path_str = 'bar.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.bar.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.bar.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.bar.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/bar/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/bar/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/bar/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/bar/legendgrouptitle/_font.py index a74f82ad72e..acede77c7f6 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/bar/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "bar.legendgrouptitle" - _path_str = "bar.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'bar.legendgrouptitle' + _path_str = 'bar.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.bar.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.bar.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.bar.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/bar/marker/__init__.py index ce0279c5444..210a88dd222 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/bar/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._line import Line @@ -8,9 +7,10 @@ from . import colorbar else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".colorbar"], - ["._colorbar.ColorBar", "._line.Line", "._pattern.Pattern"], + ['.colorbar'], + ['._colorbar.ColorBar', '._line.Line', '._pattern.Pattern'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/bar/marker/_colorbar.py b/packages/python/plotly/plotly/graph_objs/bar/marker/_colorbar.py index 7f93706dd29..a1b8ce3dd00 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/marker/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/bar/marker/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "bar.marker" - _path_str = "bar.marker.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'bar.marker' + _path_str = 'bar.marker.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.bar.marker.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.bar.marker.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -912,17 +642,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.bar.marker.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -942,11 +670,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -967,11 +695,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -993,11 +721,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1013,11 +741,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1040,11 +768,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1061,11 +789,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1084,11 +812,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1105,11 +833,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1127,11 +855,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1147,11 +875,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1168,11 +896,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1188,11 +916,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1208,11 +936,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1225,27 +953,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.bar.marker.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1267,11 +983,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1291,11 +1007,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1311,11 +1027,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1334,11 +1050,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1360,11 +1076,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1384,11 +1100,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1404,11 +1120,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1427,11 +1143,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1677,61 +1393,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1984,10 +1698,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1999,216 +1713,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.bar.marker.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.bar.marker.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.bar.marker.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/marker/_line.py b/packages/python/plotly/plotly/graph_objs/bar/marker/_line.py index ac0e99e0ceb..4dc465ecff0 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/marker/_line.py +++ b/packages/python/plotly/plotly/graph_objs/bar/marker/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,22 +8,9 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "bar.marker" - _path_str = "bar.marker.line" - _valid_props = { - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorscale", - "colorsrc", - "reversescale", - "width", - "widthsrc", - } + _parent_path_str = 'bar.marker' + _path_str = 'bar.marker.line' + _valid_props = {"autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorscale", "colorsrc", "reversescale", "width", "widthsrc"} # autocolorscale # -------------- @@ -43,11 +32,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -68,11 +57,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -91,11 +80,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -116,11 +105,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -139,11 +128,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -160,42 +149,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to bar.marker.line.colorscale - A list or array of any of the above @@ -204,11 +158,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -231,11 +185,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorscale # ---------- @@ -286,11 +240,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -306,11 +260,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # reversescale # ------------ @@ -330,11 +284,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # width # ----- @@ -351,11 +305,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # widthsrc # -------- @@ -371,11 +325,11 @@ def widthsrc(self): ------- str """ - return self["widthsrc"] + return self['widthsrc'] @widthsrc.setter def widthsrc(self, val): - self["widthsrc"] = val + self['widthsrc'] = val # Self properties description # --------------------------- @@ -461,24 +415,22 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `width`. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorscale=None, - colorsrc=None, - reversescale=None, - width=None, - widthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorscale=None, + colorsrc=None, + reversescale=None, + width=None, + widthsrc=None, + **kwargs + ): """ Construct a new Line object @@ -571,10 +523,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -586,68 +538,31 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.bar.marker.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.bar.marker.Line`""" - ) +an instance of :class:`plotly.graph_objs.bar.marker.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("widthsrc", None) - _v = widthsrc if widthsrc is not None else _v - if _v is not None: - self["widthsrc"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('width', arg, width) + self._init_provided('widthsrc', arg, widthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/marker/_pattern.py b/packages/python/plotly/plotly/graph_objs/bar/marker/_pattern.py index 423062a8379..a29f99137a7 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/marker/_pattern.py +++ b/packages/python/plotly/plotly/graph_objs/bar/marker/_pattern.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,22 +8,9 @@ class Pattern(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "bar.marker" - _path_str = "bar.marker.pattern" - _valid_props = { - "bgcolor", - "bgcolorsrc", - "fgcolor", - "fgcolorsrc", - "fgopacity", - "fillmode", - "shape", - "shapesrc", - "size", - "sizesrc", - "solidity", - "soliditysrc", - } + _parent_path_str = 'bar.marker' + _path_str = 'bar.marker.pattern' + _valid_props = {"bgcolor", "bgcolorsrc", "fgcolor", "fgcolorsrc", "fgopacity", "fillmode", "shape", "shapesrc", "size", "sizesrc", "solidity", "soliditysrc"} # bgcolor # ------- @@ -38,53 +27,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -100,11 +54,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # fgcolor # ------- @@ -121,53 +75,18 @@ def fgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["fgcolor"] + return self['fgcolor'] @fgcolor.setter def fgcolor(self, val): - self["fgcolor"] = val + self['fgcolor'] = val # fgcolorsrc # ---------- @@ -183,11 +102,11 @@ def fgcolorsrc(self): ------- str """ - return self["fgcolorsrc"] + return self['fgcolorsrc'] @fgcolorsrc.setter def fgcolorsrc(self, val): - self["fgcolorsrc"] = val + self['fgcolorsrc'] = val # fgopacity # --------- @@ -204,11 +123,11 @@ def fgopacity(self): ------- int|float """ - return self["fgopacity"] + return self['fgopacity'] @fgopacity.setter def fgopacity(self, val): - self["fgopacity"] = val + self['fgopacity'] = val # fillmode # -------- @@ -226,11 +145,11 @@ def fillmode(self): ------- Any """ - return self["fillmode"] + return self['fillmode'] @fillmode.setter def fillmode(self, val): - self["fillmode"] = val + self['fillmode'] = val # shape # ----- @@ -249,11 +168,11 @@ def shape(self): ------- Any|numpy.ndarray """ - return self["shape"] + return self['shape'] @shape.setter def shape(self, val): - self["shape"] = val + self['shape'] = val # shapesrc # -------- @@ -269,11 +188,11 @@ def shapesrc(self): ------- str """ - return self["shapesrc"] + return self['shapesrc'] @shapesrc.setter def shapesrc(self, val): - self["shapesrc"] = val + self['shapesrc'] = val # size # ---- @@ -291,11 +210,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -311,11 +230,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # solidity # -------- @@ -335,11 +254,11 @@ def solidity(self): ------- int|float|numpy.ndarray """ - return self["solidity"] + return self['solidity'] @solidity.setter def solidity(self, val): - self["solidity"] = val + self['solidity'] = val # soliditysrc # ----------- @@ -355,11 +274,11 @@ def soliditysrc(self): ------- str """ - return self["soliditysrc"] + return self['soliditysrc'] @soliditysrc.setter def soliditysrc(self, val): - self["soliditysrc"] = val + self['soliditysrc'] = val # Self properties description # --------------------------- @@ -413,24 +332,22 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `solidity`. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bgcolorsrc=None, - fgcolor=None, - fgcolorsrc=None, - fgopacity=None, - fillmode=None, - shape=None, - shapesrc=None, - size=None, - sizesrc=None, - solidity=None, - soliditysrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bgcolorsrc=None, + fgcolor=None, + fgcolorsrc=None, + fgopacity=None, + fillmode=None, + shape=None, + shapesrc=None, + size=None, + sizesrc=None, + solidity=None, + soliditysrc=None, + **kwargs + ): """ Construct a new Pattern object @@ -493,10 +410,10 @@ def __init__( ------- Pattern """ - super(Pattern, self).__init__("pattern") + super(Pattern, self).__init__('pattern') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -508,68 +425,31 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.bar.marker.Pattern constructor must be a dict or -an instance of :class:`plotly.graph_objs.bar.marker.Pattern`""" - ) +an instance of :class:`plotly.graph_objs.bar.marker.Pattern`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("fgcolor", None) - _v = fgcolor if fgcolor is not None else _v - if _v is not None: - self["fgcolor"] = _v - _v = arg.pop("fgcolorsrc", None) - _v = fgcolorsrc if fgcolorsrc is not None else _v - if _v is not None: - self["fgcolorsrc"] = _v - _v = arg.pop("fgopacity", None) - _v = fgopacity if fgopacity is not None else _v - if _v is not None: - self["fgopacity"] = _v - _v = arg.pop("fillmode", None) - _v = fillmode if fillmode is not None else _v - if _v is not None: - self["fillmode"] = _v - _v = arg.pop("shape", None) - _v = shape if shape is not None else _v - if _v is not None: - self["shape"] = _v - _v = arg.pop("shapesrc", None) - _v = shapesrc if shapesrc is not None else _v - if _v is not None: - self["shapesrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("solidity", None) - _v = solidity if solidity is not None else _v - if _v is not None: - self["solidity"] = _v - _v = arg.pop("soliditysrc", None) - _v = soliditysrc if soliditysrc is not None else _v - if _v is not None: - self["soliditysrc"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('fgcolor', arg, fgcolor) + self._init_provided('fgcolorsrc', arg, fgcolorsrc) + self._init_provided('fgopacity', arg, fgopacity) + self._init_provided('fillmode', arg, fillmode) + self._init_provided('shape', arg, shape) + self._init_provided('shapesrc', arg, shapesrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('solidity', arg, solidity) + self._init_provided('soliditysrc', arg, soliditysrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/_tickfont.py index 394786fc033..e2ea322cb84 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "bar.marker.colorbar" - _path_str = "bar.marker.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'bar.marker.colorbar' + _path_str = 'bar.marker.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.bar.marker.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.bar.marker.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.bar.marker.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/_tickformatstop.py index 43310337d71..1657993d038 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "bar.marker.colorbar" - _path_str = "bar.marker.colorbar.tickformatstop" + _parent_path_str = 'bar.marker.colorbar' + _path_str = 'bar.marker.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.bar.marker.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.bar.marker.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.bar.marker.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/_title.py index 3ad48f55ad4..695508e51b8 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "bar.marker.colorbar" - _path_str = "bar.marker.colorbar.title" + _parent_path_str = 'bar.marker.colorbar' + _path_str = 'bar.marker.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.bar.marker.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.bar.marker.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.bar.marker.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.bar.marker.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/title/_font.py index c6b3218ea75..40a8bdc4c25 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "bar.marker.colorbar.title" - _path_str = "bar.marker.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'bar.marker.colorbar.title' + _path_str = 'bar.marker.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.bar.marker.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.bar.marker.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.bar.marker.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/bar/selected/__init__.py index ae964f0b65f..4f70de0f5a9 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/bar/selected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker from ._textfont import Textfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.Marker", "._textfont.Textfont"] + __name__, + [], + ['._marker.Marker', '._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/bar/selected/_marker.py b/packages/python/plotly/plotly/graph_objs/bar/selected/_marker.py index bb3c22b56e5..f0782fc6a21 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/selected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/bar/selected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "bar.selected" - _path_str = "bar.selected.marker" + _parent_path_str = 'bar.selected' + _path_str = 'bar.selected.marker' _valid_props = {"color", "opacity"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -83,11 +50,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # Self properties description # --------------------------- @@ -99,8 +66,12 @@ def _prop_descriptions(self): opacity Sets the marker opacity of selected points. """ - - def __init__(self, arg=None, color=None, opacity=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + **kwargs + ): """ Construct a new Marker object @@ -119,10 +90,10 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -134,28 +105,21 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.bar.selected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.bar.selected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.bar.selected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/selected/_textfont.py b/packages/python/plotly/plotly/graph_objs/bar/selected/_textfont.py index d6dc88660c2..491efdbe117 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/selected/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/bar/selected/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "bar.selected" - _path_str = "bar.selected.textfont" + _parent_path_str = 'bar.selected' + _path_str = 'bar.selected.textfont' _valid_props = {"color"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # Self properties description # --------------------------- @@ -77,8 +44,11 @@ def _prop_descriptions(self): color Sets the text font color of selected points. """ - - def __init__(self, arg=None, color=None, **kwargs): + def __init__(self, + arg=None, + color=None, + **kwargs + ): """ Construct a new Textfont object @@ -95,10 +65,10 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -110,24 +80,20 @@ def __init__(self, arg=None, color=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.bar.selected.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.bar.selected.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.bar.selected.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v + self._init_provided('color', arg, color) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/bar/unselected/__init__.py index ae964f0b65f..4f70de0f5a9 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/bar/unselected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker from ._textfont import Textfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.Marker", "._textfont.Textfont"] + __name__, + [], + ['._marker.Marker', '._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/bar/unselected/_marker.py b/packages/python/plotly/plotly/graph_objs/bar/unselected/_marker.py index 61d2d0d8e1a..106f6e32fff 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/unselected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/bar/unselected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "bar.unselected" - _path_str = "bar.unselected.marker" + _parent_path_str = 'bar.unselected' + _path_str = 'bar.unselected.marker' _valid_props = {"color", "opacity"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -85,11 +52,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # Self properties description # --------------------------- @@ -103,8 +70,12 @@ def _prop_descriptions(self): Sets the marker opacity of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, color=None, opacity=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + **kwargs + ): """ Construct a new Marker object @@ -125,10 +96,10 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -140,28 +111,21 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.bar.unselected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.bar.unselected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.bar.unselected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/unselected/_textfont.py b/packages/python/plotly/plotly/graph_objs/bar/unselected/_textfont.py index 59c239103f4..6a464aa0ec6 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/unselected/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/bar/unselected/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "bar.unselected" - _path_str = "bar.unselected.textfont" + _parent_path_str = 'bar.unselected' + _path_str = 'bar.unselected.textfont' _valid_props = {"color"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # Self properties description # --------------------------- @@ -79,8 +46,11 @@ def _prop_descriptions(self): Sets the text font color of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, color=None, **kwargs): + def __init__(self, + arg=None, + color=None, + **kwargs + ): """ Construct a new Textfont object @@ -98,10 +68,10 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -113,24 +83,20 @@ def __init__(self, arg=None, color=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.bar.unselected.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.bar.unselected.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.bar.unselected.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v + self._init_provided('color', arg, color) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/__init__.py b/packages/python/plotly/plotly/graph_objs/barpolar/__init__.py index 27b45079d23..68cbc63ab15 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._hoverlabel import Hoverlabel from ._legendgrouptitle import Legendgrouptitle @@ -15,16 +14,10 @@ from . import unselected else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".hoverlabel", ".legendgrouptitle", ".marker", ".selected", ".unselected"], - [ - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._marker.Marker", - "._selected.Selected", - "._stream.Stream", - "._unselected.Unselected", - ], + ['.hoverlabel', '.legendgrouptitle', '.marker', '.selected', '.unselected'], + ['._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._marker.Marker', '._selected.Selected', '._stream.Stream', '._unselected.Unselected'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/barpolar/_hoverlabel.py index 319d6463b9e..57292195e87 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "barpolar" - _path_str = "barpolar.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'barpolar' + _path_str = 'barpolar.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.barpolar.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.barpolar.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.barpolar.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.barpolar.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/barpolar/_legendgrouptitle.py index 382ec3f2fa7..c108dfa637d 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "barpolar" - _path_str = "barpolar.legendgrouptitle" + _parent_path_str = 'barpolar' + _path_str = 'barpolar.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.barpolar.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.barpolar.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.barpolar.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.barpolar.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/_marker.py b/packages/python/plotly/plotly/graph_objs/barpolar/_marker.py index 3602ee70814..af0ea8e9269 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,26 +8,9 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "barpolar" - _path_str = "barpolar.marker" - _valid_props = { - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorbar", - "colorscale", - "colorsrc", - "line", - "opacity", - "opacitysrc", - "pattern", - "reversescale", - "showscale", - } + _parent_path_str = 'barpolar' + _path_str = 'barpolar.marker' + _valid_props = {"autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorbar", "colorscale", "colorsrc", "line", "opacity", "opacitysrc", "pattern", "reversescale", "showscale"} # autocolorscale # -------------- @@ -47,11 +32,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -72,11 +57,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -95,11 +80,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -119,11 +104,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -142,11 +127,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -163,42 +148,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to barpolar.marker.colorscale - A list or array of any of the above @@ -207,11 +157,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -234,11 +184,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -251,282 +201,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.barpola - r.marker.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.barpolar.marker.colorbar.tickformatstopdefaul - ts), sets the default property values to use - for elements of - barpolar.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.barpolar.marker.co - lorbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.barpolar.marker.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -576,11 +259,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -596,11 +279,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # line # ---- @@ -613,107 +296,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.line.colorscale`. Has an - effect only if in `marker.line.color` is set to - a numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.line.color`) or the bounds set in - `marker.line.cmin` and `marker.line.cmax` Has - an effect only if in `marker.line.color` is set - to a numerical array. Defaults to `false` when - `marker.line.cmin` and `marker.line.cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.line.cmin` and/or - `marker.line.cmax` to be equidistant to this - point. Has an effect only if in - `marker.line.color` is set to a numerical - array. Value should have the same units as in - `marker.line.color`. Has no effect when - `marker.line.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmax` must be set as well. - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorscale - Sets the colorscale. Has an effect only if in - `marker.line.color` is set to a numerical - array. The colorscale must be an array - containing arrays mapping a normalized value to - an rgb, rgba, hex, hsl, hsv, or named color - string. At minimum, a mapping for the lowest - (0) and highest (1) values are required. For - example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use - `marker.line.cmin` and `marker.line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.line.color` is set to - a numerical array. If true, `marker.line.cmin` - will correspond to the last color in the array - and `marker.line.cmax` will correspond to the - first color. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. - Returns ------- plotly.graph_objs.barpolar.marker.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # opacity # ------- @@ -730,11 +321,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # opacitysrc # ---------- @@ -750,11 +341,11 @@ def opacitysrc(self): ------- str """ - return self["opacitysrc"] + return self['opacitysrc'] @opacitysrc.setter def opacitysrc(self, val): - self["opacitysrc"] = val + self['opacitysrc'] = val # pattern # ------- @@ -769,66 +360,15 @@ def pattern(self): - A dict of string/value properties that will be passed to the Pattern constructor - Supported dict properties: - - bgcolor - When there is no colorscale sets the color of - background pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "overlay". Otherwise, defaults to a transparent - background. - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - fgcolor - When there is no colorscale sets the color of - foreground pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "replace". Otherwise, defaults to dark grey or - white to increase contrast with the `bgcolor`. - fgcolorsrc - Sets the source reference on Chart Studio Cloud - for `fgcolor`. - fgopacity - Sets the opacity of the foreground pattern - fill. Defaults to a 0.5 when `fillmode` is - "overlay". Otherwise, defaults to 1. - fillmode - Determines whether `marker.color` should be - used as a default to `bgcolor` or a `fgcolor`. - shape - Sets the shape of the pattern fill. By default, - no pattern is used for filling the area. - shapesrc - Sets the source reference on Chart Studio Cloud - for `shape`. - size - Sets the size of unit squares of the pattern - fill in pixels, which corresponds to the - interval of repetition of the pattern. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - solidity - Sets the solidity of the pattern fill. Solidity - is roughly the fraction of the area filled by - the pattern. Solidity of 0 shows only the - background color without pattern and solidty of - 1 shows only the foreground color without - pattern. - soliditysrc - Sets the source reference on Chart Studio Cloud - for `solidity`. - Returns ------- plotly.graph_objs.barpolar.marker.Pattern """ - return self["pattern"] + return self['pattern'] @pattern.setter def pattern(self, val): - self["pattern"] = val + self['pattern'] = val # reversescale # ------------ @@ -847,11 +387,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # showscale # --------- @@ -869,11 +409,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # Self properties description # --------------------------- @@ -967,28 +507,26 @@ def _prop_descriptions(self): this trace. Has an effect only if in `marker.color` is set to a numerical array. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorbar=None, - colorscale=None, - colorsrc=None, - line=None, - opacity=None, - opacitysrc=None, - pattern=None, - reversescale=None, - showscale=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorbar=None, + colorscale=None, + colorsrc=None, + line=None, + opacity=None, + opacitysrc=None, + pattern=None, + reversescale=None, + showscale=None, + **kwargs + ): """ Construct a new Marker object @@ -1089,10 +627,10 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1104,84 +642,35 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.barpolar.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.barpolar.Marker`""" - ) +an instance of :class:`plotly.graph_objs.barpolar.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("opacitysrc", None) - _v = opacitysrc if opacitysrc is not None else _v - if _v is not None: - self["opacitysrc"] = _v - _v = arg.pop("pattern", None) - _v = pattern if pattern is not None else _v - if _v is not None: - self["pattern"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('line', arg, line) + self._init_provided('opacity', arg, opacity) + self._init_provided('opacitysrc', arg, opacitysrc) + self._init_provided('pattern', arg, pattern) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('showscale', arg, showscale) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/_selected.py b/packages/python/plotly/plotly/graph_objs/barpolar/_selected.py index 2738d420abe..afc1d1aa6ad 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/_selected.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/_selected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Selected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "barpolar" - _path_str = "barpolar.selected" + _parent_path_str = 'barpolar' + _path_str = 'barpolar.selected' _valid_props = {"marker", "textfont"} # marker @@ -21,22 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. - Returns ------- plotly.graph_objs.barpolar.selected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # textfont # -------- @@ -49,20 +44,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - Sets the text font color of selected points. - Returns ------- plotly.graph_objs.barpolar.selected.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # Self properties description # --------------------------- @@ -76,8 +66,12 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.barpolar.selected.Textfont ` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, textfont=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + textfont=None, + **kwargs + ): """ Construct a new Selected object @@ -98,10 +92,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") + super(Selected, self).__init__('selected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -113,28 +107,21 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.barpolar.Selected constructor must be a dict or -an instance of :class:`plotly.graph_objs.barpolar.Selected`""" - ) +an instance of :class:`plotly.graph_objs.barpolar.Selected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v + self._init_provided('marker', arg, marker) + self._init_provided('textfont', arg, textfont) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/_stream.py b/packages/python/plotly/plotly/graph_objs/barpolar/_stream.py index fbfdae7eb20..8945d428e2a 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "barpolar" - _path_str = "barpolar.stream" + _parent_path_str = 'barpolar' + _path_str = 'barpolar.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.barpolar.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.barpolar.Stream`""" - ) +an instance of :class:`plotly.graph_objs.barpolar.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/_unselected.py b/packages/python/plotly/plotly/graph_objs/barpolar/_unselected.py index a83f6199860..03242fca274 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/_unselected.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/_unselected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Unselected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "barpolar" - _path_str = "barpolar.unselected" + _parent_path_str = 'barpolar' + _path_str = 'barpolar.unselected' _valid_props = {"marker", "textfont"} # marker @@ -21,24 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.barpolar.unselected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # textfont # -------- @@ -51,21 +44,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - Sets the text font color of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.barpolar.unselected.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # Self properties description # --------------------------- @@ -79,8 +66,12 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.barpolar.unselected.Textfo nt` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, textfont=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + textfont=None, + **kwargs + ): """ Construct a new Unselected object @@ -101,10 +92,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") + super(Unselected, self).__init__('unselected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -116,28 +107,21 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.barpolar.Unselected constructor must be a dict or -an instance of :class:`plotly.graph_objs.barpolar.Unselected`""" - ) +an instance of :class:`plotly.graph_objs.barpolar.Unselected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v + self._init_provided('marker', arg, marker) + self._init_provided('textfont', arg, textfont) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/barpolar/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/barpolar/hoverlabel/_font.py index 7a45bd2cd8d..18460dc0674 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "barpolar.hoverlabel" - _path_str = "barpolar.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'barpolar.hoverlabel' + _path_str = 'barpolar.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.barpolar.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.barpolar.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.barpolar.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/barpolar/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/barpolar/legendgrouptitle/_font.py index c687282cf13..4caf450bd23 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "barpolar.legendgrouptitle" - _path_str = "barpolar.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'barpolar.legendgrouptitle' + _path_str = 'barpolar.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.barpolar.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.barpolar.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.barpolar.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/barpolar/marker/__init__.py index ce0279c5444..210a88dd222 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._line import Line @@ -8,9 +7,10 @@ from . import colorbar else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".colorbar"], - ["._colorbar.ColorBar", "._line.Line", "._pattern.Pattern"], + ['.colorbar'], + ['._colorbar.ColorBar', '._line.Line', '._pattern.Pattern'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/marker/_colorbar.py b/packages/python/plotly/plotly/graph_objs/barpolar/marker/_colorbar.py index 1a42eb92b85..52ad1500501 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/marker/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/marker/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "barpolar.marker" - _path_str = "barpolar.marker.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'barpolar.marker' + _path_str = 'barpolar.marker.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.barpolar.marker.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.barpolar.marker.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.barpolar.marker.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.barpolar.marker.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.barpolar.marker.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.barpolar.marker.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.barpolar.marker.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/marker/_line.py b/packages/python/plotly/plotly/graph_objs/barpolar/marker/_line.py index 1fc64618765..b209a771cf5 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/marker/_line.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/marker/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,22 +8,9 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "barpolar.marker" - _path_str = "barpolar.marker.line" - _valid_props = { - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorscale", - "colorsrc", - "reversescale", - "width", - "widthsrc", - } + _parent_path_str = 'barpolar.marker' + _path_str = 'barpolar.marker.line' + _valid_props = {"autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorscale", "colorsrc", "reversescale", "width", "widthsrc"} # autocolorscale # -------------- @@ -43,11 +32,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -68,11 +57,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -91,11 +80,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -116,11 +105,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -139,11 +128,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -160,42 +149,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to barpolar.marker.line.colorscale - A list or array of any of the above @@ -204,11 +158,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -231,11 +185,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorscale # ---------- @@ -286,11 +240,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -306,11 +260,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # reversescale # ------------ @@ -330,11 +284,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # width # ----- @@ -351,11 +305,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # widthsrc # -------- @@ -371,11 +325,11 @@ def widthsrc(self): ------- str """ - return self["widthsrc"] + return self['widthsrc'] @widthsrc.setter def widthsrc(self, val): - self["widthsrc"] = val + self['widthsrc'] = val # Self properties description # --------------------------- @@ -461,24 +415,22 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `width`. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorscale=None, - colorsrc=None, - reversescale=None, - width=None, - widthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorscale=None, + colorsrc=None, + reversescale=None, + width=None, + widthsrc=None, + **kwargs + ): """ Construct a new Line object @@ -571,10 +523,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -586,68 +538,31 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.barpolar.marker.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.barpolar.marker.Line`""" - ) +an instance of :class:`plotly.graph_objs.barpolar.marker.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("widthsrc", None) - _v = widthsrc if widthsrc is not None else _v - if _v is not None: - self["widthsrc"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('width', arg, width) + self._init_provided('widthsrc', arg, widthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/marker/_pattern.py b/packages/python/plotly/plotly/graph_objs/barpolar/marker/_pattern.py index 74f81eefccc..a2821d55071 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/marker/_pattern.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/marker/_pattern.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,22 +8,9 @@ class Pattern(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "barpolar.marker" - _path_str = "barpolar.marker.pattern" - _valid_props = { - "bgcolor", - "bgcolorsrc", - "fgcolor", - "fgcolorsrc", - "fgopacity", - "fillmode", - "shape", - "shapesrc", - "size", - "sizesrc", - "solidity", - "soliditysrc", - } + _parent_path_str = 'barpolar.marker' + _path_str = 'barpolar.marker.pattern' + _valid_props = {"bgcolor", "bgcolorsrc", "fgcolor", "fgcolorsrc", "fgopacity", "fillmode", "shape", "shapesrc", "size", "sizesrc", "solidity", "soliditysrc"} # bgcolor # ------- @@ -38,53 +27,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -100,11 +54,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # fgcolor # ------- @@ -121,53 +75,18 @@ def fgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["fgcolor"] + return self['fgcolor'] @fgcolor.setter def fgcolor(self, val): - self["fgcolor"] = val + self['fgcolor'] = val # fgcolorsrc # ---------- @@ -183,11 +102,11 @@ def fgcolorsrc(self): ------- str """ - return self["fgcolorsrc"] + return self['fgcolorsrc'] @fgcolorsrc.setter def fgcolorsrc(self, val): - self["fgcolorsrc"] = val + self['fgcolorsrc'] = val # fgopacity # --------- @@ -204,11 +123,11 @@ def fgopacity(self): ------- int|float """ - return self["fgopacity"] + return self['fgopacity'] @fgopacity.setter def fgopacity(self, val): - self["fgopacity"] = val + self['fgopacity'] = val # fillmode # -------- @@ -226,11 +145,11 @@ def fillmode(self): ------- Any """ - return self["fillmode"] + return self['fillmode'] @fillmode.setter def fillmode(self, val): - self["fillmode"] = val + self['fillmode'] = val # shape # ----- @@ -249,11 +168,11 @@ def shape(self): ------- Any|numpy.ndarray """ - return self["shape"] + return self['shape'] @shape.setter def shape(self, val): - self["shape"] = val + self['shape'] = val # shapesrc # -------- @@ -269,11 +188,11 @@ def shapesrc(self): ------- str """ - return self["shapesrc"] + return self['shapesrc'] @shapesrc.setter def shapesrc(self, val): - self["shapesrc"] = val + self['shapesrc'] = val # size # ---- @@ -291,11 +210,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -311,11 +230,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # solidity # -------- @@ -335,11 +254,11 @@ def solidity(self): ------- int|float|numpy.ndarray """ - return self["solidity"] + return self['solidity'] @solidity.setter def solidity(self, val): - self["solidity"] = val + self['solidity'] = val # soliditysrc # ----------- @@ -355,11 +274,11 @@ def soliditysrc(self): ------- str """ - return self["soliditysrc"] + return self['soliditysrc'] @soliditysrc.setter def soliditysrc(self, val): - self["soliditysrc"] = val + self['soliditysrc'] = val # Self properties description # --------------------------- @@ -413,24 +332,22 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `solidity`. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bgcolorsrc=None, - fgcolor=None, - fgcolorsrc=None, - fgopacity=None, - fillmode=None, - shape=None, - shapesrc=None, - size=None, - sizesrc=None, - solidity=None, - soliditysrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bgcolorsrc=None, + fgcolor=None, + fgcolorsrc=None, + fgopacity=None, + fillmode=None, + shape=None, + shapesrc=None, + size=None, + sizesrc=None, + solidity=None, + soliditysrc=None, + **kwargs + ): """ Construct a new Pattern object @@ -493,10 +410,10 @@ def __init__( ------- Pattern """ - super(Pattern, self).__init__("pattern") + super(Pattern, self).__init__('pattern') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -508,68 +425,31 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.barpolar.marker.Pattern constructor must be a dict or -an instance of :class:`plotly.graph_objs.barpolar.marker.Pattern`""" - ) +an instance of :class:`plotly.graph_objs.barpolar.marker.Pattern`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("fgcolor", None) - _v = fgcolor if fgcolor is not None else _v - if _v is not None: - self["fgcolor"] = _v - _v = arg.pop("fgcolorsrc", None) - _v = fgcolorsrc if fgcolorsrc is not None else _v - if _v is not None: - self["fgcolorsrc"] = _v - _v = arg.pop("fgopacity", None) - _v = fgopacity if fgopacity is not None else _v - if _v is not None: - self["fgopacity"] = _v - _v = arg.pop("fillmode", None) - _v = fillmode if fillmode is not None else _v - if _v is not None: - self["fillmode"] = _v - _v = arg.pop("shape", None) - _v = shape if shape is not None else _v - if _v is not None: - self["shape"] = _v - _v = arg.pop("shapesrc", None) - _v = shapesrc if shapesrc is not None else _v - if _v is not None: - self["shapesrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("solidity", None) - _v = solidity if solidity is not None else _v - if _v is not None: - self["solidity"] = _v - _v = arg.pop("soliditysrc", None) - _v = soliditysrc if soliditysrc is not None else _v - if _v is not None: - self["soliditysrc"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('fgcolor', arg, fgcolor) + self._init_provided('fgcolorsrc', arg, fgcolorsrc) + self._init_provided('fgopacity', arg, fgopacity) + self._init_provided('fillmode', arg, fillmode) + self._init_provided('shape', arg, shape) + self._init_provided('shapesrc', arg, shapesrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('solidity', arg, solidity) + self._init_provided('soliditysrc', arg, soliditysrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/_tickfont.py index 2667ba14610..f5f87e0e987 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "barpolar.marker.colorbar" - _path_str = "barpolar.marker.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'barpolar.marker.colorbar' + _path_str = 'barpolar.marker.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.barpolar.marker.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.barpolar.marker.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.barpolar.marker.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/_tickformatstop.py index c74dabd649d..23bd28ca0e5 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "barpolar.marker.colorbar" - _path_str = "barpolar.marker.colorbar.tickformatstop" + _parent_path_str = 'barpolar.marker.colorbar' + _path_str = 'barpolar.marker.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.barpolar.marker.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.barpolar.marker.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.barpolar.marker.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/_title.py index 0f41b12c585..9d5022bc30b 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "barpolar.marker.colorbar" - _path_str = "barpolar.marker.colorbar.title" + _parent_path_str = 'barpolar.marker.colorbar' + _path_str = 'barpolar.marker.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.barpolar.marker.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.barpolar.marker.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.barpolar.marker.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.barpolar.marker.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/title/_font.py index da6165775b8..0beef64d32c 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "barpolar.marker.colorbar.title" - _path_str = "barpolar.marker.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'barpolar.marker.colorbar.title' + _path_str = 'barpolar.marker.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.barpolar.marker.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.barpolar.marker.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.barpolar.marker.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/barpolar/selected/__init__.py index ae964f0b65f..4f70de0f5a9 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/selected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker from ._textfont import Textfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.Marker", "._textfont.Textfont"] + __name__, + [], + ['._marker.Marker', '._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/selected/_marker.py b/packages/python/plotly/plotly/graph_objs/barpolar/selected/_marker.py index f8f39796538..f0626d01fff 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/selected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/selected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "barpolar.selected" - _path_str = "barpolar.selected.marker" + _parent_path_str = 'barpolar.selected' + _path_str = 'barpolar.selected.marker' _valid_props = {"color", "opacity"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -83,11 +50,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # Self properties description # --------------------------- @@ -99,8 +66,12 @@ def _prop_descriptions(self): opacity Sets the marker opacity of selected points. """ - - def __init__(self, arg=None, color=None, opacity=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + **kwargs + ): """ Construct a new Marker object @@ -119,10 +90,10 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -134,28 +105,21 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.barpolar.selected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.barpolar.selected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.barpolar.selected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/selected/_textfont.py b/packages/python/plotly/plotly/graph_objs/barpolar/selected/_textfont.py index 55f2e0291d0..4516a2cd871 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/selected/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/selected/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "barpolar.selected" - _path_str = "barpolar.selected.textfont" + _parent_path_str = 'barpolar.selected' + _path_str = 'barpolar.selected.textfont' _valid_props = {"color"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # Self properties description # --------------------------- @@ -77,8 +44,11 @@ def _prop_descriptions(self): color Sets the text font color of selected points. """ - - def __init__(self, arg=None, color=None, **kwargs): + def __init__(self, + arg=None, + color=None, + **kwargs + ): """ Construct a new Textfont object @@ -95,10 +65,10 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -110,24 +80,20 @@ def __init__(self, arg=None, color=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.barpolar.selected.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.barpolar.selected.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.barpolar.selected.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v + self._init_provided('color', arg, color) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/barpolar/unselected/__init__.py index ae964f0b65f..4f70de0f5a9 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/unselected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker from ._textfont import Textfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.Marker", "._textfont.Textfont"] + __name__, + [], + ['._marker.Marker', '._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/unselected/_marker.py b/packages/python/plotly/plotly/graph_objs/barpolar/unselected/_marker.py index 57a165ddd42..714f948cc1a 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/unselected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/unselected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "barpolar.unselected" - _path_str = "barpolar.unselected.marker" + _parent_path_str = 'barpolar.unselected' + _path_str = 'barpolar.unselected.marker' _valid_props = {"color", "opacity"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -85,11 +52,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # Self properties description # --------------------------- @@ -103,8 +70,12 @@ def _prop_descriptions(self): Sets the marker opacity of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, color=None, opacity=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + **kwargs + ): """ Construct a new Marker object @@ -125,10 +96,10 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -140,28 +111,21 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.barpolar.unselected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.barpolar.unselected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.barpolar.unselected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/unselected/_textfont.py b/packages/python/plotly/plotly/graph_objs/barpolar/unselected/_textfont.py index ae9cbbb18de..3af293e3871 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/unselected/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/unselected/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "barpolar.unselected" - _path_str = "barpolar.unselected.textfont" + _parent_path_str = 'barpolar.unselected' + _path_str = 'barpolar.unselected.textfont' _valid_props = {"color"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # Self properties description # --------------------------- @@ -79,8 +46,11 @@ def _prop_descriptions(self): Sets the text font color of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, color=None, **kwargs): + def __init__(self, + arg=None, + color=None, + **kwargs + ): """ Construct a new Textfont object @@ -98,10 +68,10 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -113,24 +83,20 @@ def __init__(self, arg=None, color=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.barpolar.unselected.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.barpolar.unselected.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.barpolar.unselected.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v + self._init_provided('color', arg, color) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/box/__init__.py b/packages/python/plotly/plotly/graph_objs/box/__init__.py index b27fd1bac32..56a64a48de8 100644 --- a/packages/python/plotly/plotly/graph_objs/box/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/box/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._hoverlabel import Hoverlabel from ._legendgrouptitle import Legendgrouptitle @@ -16,17 +15,10 @@ from . import unselected else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".hoverlabel", ".legendgrouptitle", ".marker", ".selected", ".unselected"], - [ - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._line.Line", - "._marker.Marker", - "._selected.Selected", - "._stream.Stream", - "._unselected.Unselected", - ], + ['.hoverlabel', '.legendgrouptitle', '.marker', '.selected', '.unselected'], + ['._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._line.Line', '._marker.Marker', '._selected.Selected', '._stream.Stream', '._unselected.Unselected'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/box/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/box/_hoverlabel.py index 085989401d1..f06fa1b36eb 100644 --- a/packages/python/plotly/plotly/graph_objs/box/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/box/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "box" - _path_str = "box.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'box' + _path_str = 'box.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.box.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.box.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.box.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.box.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/box/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/box/_legendgrouptitle.py index 3b29c42997d..d927b48b639 100644 --- a/packages/python/plotly/plotly/graph_objs/box/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/box/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "box" - _path_str = "box.legendgrouptitle" + _parent_path_str = 'box' + _path_str = 'box.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.box.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.box.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.box.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.box.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/box/_line.py b/packages/python/plotly/plotly/graph_objs/box/_line.py index 577cef7233e..b9d38215658 100644 --- a/packages/python/plotly/plotly/graph_objs/box/_line.py +++ b/packages/python/plotly/plotly/graph_objs/box/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "box" - _path_str = "box.line" + _parent_path_str = 'box' + _path_str = 'box.line' _valid_props = {"color", "width"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # width # ----- @@ -83,11 +50,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -99,8 +66,12 @@ def _prop_descriptions(self): width Sets the width (in px) of line bounding the box(es). """ - - def __init__(self, arg=None, color=None, width=None, **kwargs): + def __init__(self, + arg=None, + color=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -118,10 +89,10 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -133,28 +104,21 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.box.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.box.Line`""" - ) +an instance of :class:`plotly.graph_objs.box.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/box/_marker.py b/packages/python/plotly/plotly/graph_objs/box/_marker.py index 1ff502a66d6..dacb68c2df3 100644 --- a/packages/python/plotly/plotly/graph_objs/box/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/box/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,17 +8,9 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "box" - _path_str = "box.marker" - _valid_props = { - "angle", - "color", - "line", - "opacity", - "outliercolor", - "size", - "symbol", - } + _parent_path_str = 'box' + _path_str = 'box.marker' + _valid_props = {"angle", "color", "line", "opacity", "outliercolor", "size", "symbol"} # angle # ----- @@ -34,11 +28,11 @@ def angle(self): ------- int|float """ - return self["angle"] + return self['angle'] @angle.setter def angle(self, val): - self["angle"] = val + self['angle'] = val # color # ----- @@ -55,52 +49,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # line # ---- @@ -113,34 +72,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - outliercolor - Sets the border line color of the outlier - sample points. Defaults to marker.color - outlierwidth - Sets the border line width (in px) of the - outlier sample points. - width - Sets the width (in px) of the lines bounding - the marker points. - Returns ------- plotly.graph_objs.box.marker.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # opacity # ------- @@ -156,11 +96,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # outliercolor # ------------ @@ -174,52 +114,17 @@ def outliercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outliercolor"] + return self['outliercolor'] @outliercolor.setter def outliercolor(self, val): - self["outliercolor"] = val + self['outliercolor'] = val # size # ---- @@ -235,11 +140,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # symbol # ------ @@ -347,11 +252,11 @@ def symbol(self): ------- Any """ - return self["symbol"] + return self['symbol'] @symbol.setter def symbol(self, val): - self["symbol"] = val + self['symbol'] = val # Self properties description # --------------------------- @@ -382,19 +287,17 @@ def _prop_descriptions(self): 300 is equivalent to appending "-open-dot" or "dot- open" to a symbol name. """ - - def __init__( - self, - arg=None, - angle=None, - color=None, - line=None, - opacity=None, - outliercolor=None, - size=None, - symbol=None, - **kwargs, - ): + def __init__(self, + arg=None, + angle=None, + color=None, + line=None, + opacity=None, + outliercolor=None, + size=None, + symbol=None, + **kwargs + ): """ Construct a new Marker object @@ -431,10 +334,10 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -446,48 +349,26 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.box.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.box.Marker`""" - ) +an instance of :class:`plotly.graph_objs.box.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("angle", None) - _v = angle if angle is not None else _v - if _v is not None: - self["angle"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("outliercolor", None) - _v = outliercolor if outliercolor is not None else _v - if _v is not None: - self["outliercolor"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("symbol", None) - _v = symbol if symbol is not None else _v - if _v is not None: - self["symbol"] = _v + self._init_provided('angle', arg, angle) + self._init_provided('color', arg, color) + self._init_provided('line', arg, line) + self._init_provided('opacity', arg, opacity) + self._init_provided('outliercolor', arg, outliercolor) + self._init_provided('size', arg, size) + self._init_provided('symbol', arg, symbol) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/box/_selected.py b/packages/python/plotly/plotly/graph_objs/box/_selected.py index 74b4d956167..62fbf057b43 100644 --- a/packages/python/plotly/plotly/graph_objs/box/_selected.py +++ b/packages/python/plotly/plotly/graph_objs/box/_selected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Selected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "box" - _path_str = "box.selected" + _parent_path_str = 'box' + _path_str = 'box.selected' _valid_props = {"marker"} # marker @@ -21,24 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. - size - Sets the marker size of selected points. - Returns ------- plotly.graph_objs.box.selected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # Self properties description # --------------------------- @@ -49,8 +42,11 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.box.selected.Marker` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + **kwargs + ): """ Construct a new Selected object @@ -67,10 +63,10 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") + super(Selected, self).__init__('selected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -82,24 +78,20 @@ def __init__(self, arg=None, marker=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.box.Selected constructor must be a dict or -an instance of :class:`plotly.graph_objs.box.Selected`""" - ) +an instance of :class:`plotly.graph_objs.box.Selected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v + self._init_provided('marker', arg, marker) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/box/_stream.py b/packages/python/plotly/plotly/graph_objs/box/_stream.py index 7f218ccefd8..f7952f5002b 100644 --- a/packages/python/plotly/plotly/graph_objs/box/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/box/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "box" - _path_str = "box.stream" + _parent_path_str = 'box' + _path_str = 'box.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -93,10 +99,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -108,28 +114,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.box.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.box.Stream`""" - ) +an instance of :class:`plotly.graph_objs.box.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/box/_unselected.py b/packages/python/plotly/plotly/graph_objs/box/_unselected.py index 05b5168d699..abae4ddabab 100644 --- a/packages/python/plotly/plotly/graph_objs/box/_unselected.py +++ b/packages/python/plotly/plotly/graph_objs/box/_unselected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Unselected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "box" - _path_str = "box.unselected" + _parent_path_str = 'box' + _path_str = 'box.unselected' _valid_props = {"marker"} # marker @@ -21,27 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - size - Sets the marker size of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.box.unselected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # Self properties description # --------------------------- @@ -52,8 +42,11 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.box.unselected.Marker` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + **kwargs + ): """ Construct a new Unselected object @@ -71,10 +64,10 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") + super(Unselected, self).__init__('unselected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -86,24 +79,20 @@ def __init__(self, arg=None, marker=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.box.Unselected constructor must be a dict or -an instance of :class:`plotly.graph_objs.box.Unselected`""" - ) +an instance of :class:`plotly.graph_objs.box.Unselected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v + self._init_provided('marker', arg, marker) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/box/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/box/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/box/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/box/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/box/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/box/hoverlabel/_font.py index 88a5fb615b3..06070659a5c 100644 --- a/packages/python/plotly/plotly/graph_objs/box/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/box/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "box.hoverlabel" - _path_str = "box.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'box.hoverlabel' + _path_str = 'box.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.box.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.box.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.box.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/box/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/box/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/box/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/box/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/box/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/box/legendgrouptitle/_font.py index 3518bc7dc56..890589b57ec 100644 --- a/packages/python/plotly/plotly/graph_objs/box/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/box/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "box.legendgrouptitle" - _path_str = "box.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'box.legendgrouptitle' + _path_str = 'box.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.box.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.box.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.box.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/box/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/box/marker/__init__.py index 8722c15a2b8..a745ef6458a 100644 --- a/packages/python/plotly/plotly/graph_objs/box/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/box/marker/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import Line else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._line.Line'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._line.Line"]) diff --git a/packages/python/plotly/plotly/graph_objs/box/marker/_line.py b/packages/python/plotly/plotly/graph_objs/box/marker/_line.py index ad6e7d2636f..19f8802a888 100644 --- a/packages/python/plotly/plotly/graph_objs/box/marker/_line.py +++ b/packages/python/plotly/plotly/graph_objs/box/marker/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "box.marker" - _path_str = "box.marker.line" + _parent_path_str = 'box.marker' + _path_str = 'box.marker.line' _valid_props = {"color", "outliercolor", "outlierwidth", "width"} # color @@ -25,52 +27,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # outliercolor # ------------ @@ -85,52 +52,17 @@ def outliercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outliercolor"] + return self['outliercolor'] @outliercolor.setter def outliercolor(self, val): - self["outliercolor"] = val + self['outliercolor'] = val # outlierwidth # ------------ @@ -147,11 +79,11 @@ def outlierwidth(self): ------- int|float """ - return self["outlierwidth"] + return self['outlierwidth'] @outlierwidth.setter def outlierwidth(self, val): - self["outlierwidth"] = val + self['outlierwidth'] = val # width # ----- @@ -167,11 +99,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -194,16 +126,14 @@ def _prop_descriptions(self): Sets the width (in px) of the lines bounding the marker points. """ - - def __init__( - self, - arg=None, - color=None, - outliercolor=None, - outlierwidth=None, - width=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + outliercolor=None, + outlierwidth=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -233,10 +163,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -248,36 +178,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.box.marker.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.box.marker.Line`""" - ) +an instance of :class:`plotly.graph_objs.box.marker.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("outliercolor", None) - _v = outliercolor if outliercolor is not None else _v - if _v is not None: - self["outliercolor"] = _v - _v = arg.pop("outlierwidth", None) - _v = outlierwidth if outlierwidth is not None else _v - if _v is not None: - self["outlierwidth"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('outliercolor', arg, outliercolor) + self._init_provided('outlierwidth', arg, outlierwidth) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/box/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/box/selected/__init__.py index dfd34067137..5abe297c1ca 100644 --- a/packages/python/plotly/plotly/graph_objs/box/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/box/selected/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._marker.Marker'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._marker.Marker"]) diff --git a/packages/python/plotly/plotly/graph_objs/box/selected/_marker.py b/packages/python/plotly/plotly/graph_objs/box/selected/_marker.py index 271ae2b8b93..550f7eea465 100644 --- a/packages/python/plotly/plotly/graph_objs/box/selected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/box/selected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "box.selected" - _path_str = "box.selected.marker" + _parent_path_str = 'box.selected' + _path_str = 'box.selected.marker' _valid_props = {"color", "opacity", "size"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -83,11 +50,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # size # ---- @@ -103,11 +70,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # Self properties description # --------------------------- @@ -121,8 +88,13 @@ def _prop_descriptions(self): size Sets the marker size of selected points. """ - - def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + size=None, + **kwargs + ): """ Construct a new Marker object @@ -143,10 +115,10 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -158,32 +130,22 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.box.selected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.box.selected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.box.selected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) + self._init_provided('size', arg, size) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/box/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/box/unselected/__init__.py index dfd34067137..5abe297c1ca 100644 --- a/packages/python/plotly/plotly/graph_objs/box/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/box/unselected/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._marker.Marker'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._marker.Marker"]) diff --git a/packages/python/plotly/plotly/graph_objs/box/unselected/_marker.py b/packages/python/plotly/plotly/graph_objs/box/unselected/_marker.py index dab1bcd3183..715edea721f 100644 --- a/packages/python/plotly/plotly/graph_objs/box/unselected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/box/unselected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "box.unselected" - _path_str = "box.unselected.marker" + _parent_path_str = 'box.unselected' + _path_str = 'box.unselected.marker' _valid_props = {"color", "opacity", "size"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -85,11 +52,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # size # ---- @@ -106,11 +73,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # Self properties description # --------------------------- @@ -127,8 +94,13 @@ def _prop_descriptions(self): Sets the marker size of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + size=None, + **kwargs + ): """ Construct a new Marker object @@ -152,10 +124,10 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -167,32 +139,22 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.box.unselected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.box.unselected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.box.unselected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) + self._init_provided('size', arg, size) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/candlestick/__init__.py b/packages/python/plotly/plotly/graph_objs/candlestick/__init__.py index eef010c1409..c26dcfef0af 100644 --- a/packages/python/plotly/plotly/graph_objs/candlestick/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/candlestick/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._decreasing import Decreasing from ._hoverlabel import Hoverlabel @@ -14,16 +13,10 @@ from . import legendgrouptitle else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".decreasing", ".hoverlabel", ".increasing", ".legendgrouptitle"], - [ - "._decreasing.Decreasing", - "._hoverlabel.Hoverlabel", - "._increasing.Increasing", - "._legendgrouptitle.Legendgrouptitle", - "._line.Line", - "._stream.Stream", - ], + ['.decreasing', '.hoverlabel', '.increasing', '.legendgrouptitle'], + ['._decreasing.Decreasing', '._hoverlabel.Hoverlabel', '._increasing.Increasing', '._legendgrouptitle.Legendgrouptitle', '._line.Line', '._stream.Stream'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/candlestick/_decreasing.py b/packages/python/plotly/plotly/graph_objs/candlestick/_decreasing.py index e7bfc440822..6854786edde 100644 --- a/packages/python/plotly/plotly/graph_objs/candlestick/_decreasing.py +++ b/packages/python/plotly/plotly/graph_objs/candlestick/_decreasing.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Decreasing(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "candlestick" - _path_str = "candlestick.decreasing" + _parent_path_str = 'candlestick' + _path_str = 'candlestick.decreasing' _valid_props = {"fillcolor", "line"} # fillcolor @@ -24,52 +26,17 @@ def fillcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["fillcolor"] + return self['fillcolor'] @fillcolor.setter def fillcolor(self, val): - self["fillcolor"] = val + self['fillcolor'] = val # line # ---- @@ -82,23 +49,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the color of line bounding the box(es). - width - Sets the width (in px) of line bounding the - box(es). - Returns ------- plotly.graph_objs.candlestick.decreasing.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # Self properties description # --------------------------- @@ -113,8 +72,12 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.candlestick.decreasing.Lin e` instance or dict with compatible properties """ - - def __init__(self, arg=None, fillcolor=None, line=None, **kwargs): + def __init__(self, + arg=None, + fillcolor=None, + line=None, + **kwargs + ): """ Construct a new Decreasing object @@ -136,10 +99,10 @@ def __init__(self, arg=None, fillcolor=None, line=None, **kwargs): ------- Decreasing """ - super(Decreasing, self).__init__("decreasing") + super(Decreasing, self).__init__('decreasing') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -151,28 +114,21 @@ def __init__(self, arg=None, fillcolor=None, line=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.candlestick.Decreasing constructor must be a dict or -an instance of :class:`plotly.graph_objs.candlestick.Decreasing`""" - ) +an instance of :class:`plotly.graph_objs.candlestick.Decreasing`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("fillcolor", None) - _v = fillcolor if fillcolor is not None else _v - if _v is not None: - self["fillcolor"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v + self._init_provided('fillcolor', arg, fillcolor) + self._init_provided('line', arg, line) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/candlestick/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/candlestick/_hoverlabel.py index 15b35f56c0d..fa6a4ace7c6 100644 --- a/packages/python/plotly/plotly/graph_objs/candlestick/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/candlestick/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,20 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "candlestick" - _path_str = "candlestick.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - "split", - } + _parent_path_str = 'candlestick' + _path_str = 'candlestick.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc", "split"} # align # ----- @@ -39,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -59,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -77,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -139,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -157,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -220,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -239,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.candlestick.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -343,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -364,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # split # ----- @@ -385,11 +233,11 @@ def split(self): ------- bool """ - return self["split"] + return self['split'] @split.setter def split(self, val): - self["split"] = val + self['split'] = val # Self properties description # --------------------------- @@ -432,22 +280,20 @@ def _prop_descriptions(self): Show hover information (open, close, high, low) in separate labels. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - split=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + split=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -497,10 +343,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -512,60 +358,29 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.candlestick.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.candlestick.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.candlestick.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v - _v = arg.pop("split", None) - _v = split if split is not None else _v - if _v is not None: - self["split"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) + self._init_provided('split', arg, split) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/candlestick/_increasing.py b/packages/python/plotly/plotly/graph_objs/candlestick/_increasing.py index a93cdb43a45..fabe595d1ac 100644 --- a/packages/python/plotly/plotly/graph_objs/candlestick/_increasing.py +++ b/packages/python/plotly/plotly/graph_objs/candlestick/_increasing.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Increasing(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "candlestick" - _path_str = "candlestick.increasing" + _parent_path_str = 'candlestick' + _path_str = 'candlestick.increasing' _valid_props = {"fillcolor", "line"} # fillcolor @@ -24,52 +26,17 @@ def fillcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["fillcolor"] + return self['fillcolor'] @fillcolor.setter def fillcolor(self, val): - self["fillcolor"] = val + self['fillcolor'] = val # line # ---- @@ -82,23 +49,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the color of line bounding the box(es). - width - Sets the width (in px) of line bounding the - box(es). - Returns ------- plotly.graph_objs.candlestick.increasing.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # Self properties description # --------------------------- @@ -113,8 +72,12 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.candlestick.increasing.Lin e` instance or dict with compatible properties """ - - def __init__(self, arg=None, fillcolor=None, line=None, **kwargs): + def __init__(self, + arg=None, + fillcolor=None, + line=None, + **kwargs + ): """ Construct a new Increasing object @@ -136,10 +99,10 @@ def __init__(self, arg=None, fillcolor=None, line=None, **kwargs): ------- Increasing """ - super(Increasing, self).__init__("increasing") + super(Increasing, self).__init__('increasing') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -151,28 +114,21 @@ def __init__(self, arg=None, fillcolor=None, line=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.candlestick.Increasing constructor must be a dict or -an instance of :class:`plotly.graph_objs.candlestick.Increasing`""" - ) +an instance of :class:`plotly.graph_objs.candlestick.Increasing`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("fillcolor", None) - _v = fillcolor if fillcolor is not None else _v - if _v is not None: - self["fillcolor"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v + self._init_provided('fillcolor', arg, fillcolor) + self._init_provided('line', arg, line) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/candlestick/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/candlestick/_legendgrouptitle.py index a22132a92ac..f3c2dac26e5 100644 --- a/packages/python/plotly/plotly/graph_objs/candlestick/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/candlestick/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "candlestick" - _path_str = "candlestick.legendgrouptitle" + _parent_path_str = 'candlestick' + _path_str = 'candlestick.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.candlestick.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.candlestick.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.candlestick.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.candlestick.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/candlestick/_line.py b/packages/python/plotly/plotly/graph_objs/candlestick/_line.py index f1c95b633dd..9cb047ef78e 100644 --- a/packages/python/plotly/plotly/graph_objs/candlestick/_line.py +++ b/packages/python/plotly/plotly/graph_objs/candlestick/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "candlestick" - _path_str = "candlestick.line" + _parent_path_str = 'candlestick' + _path_str = 'candlestick.line' _valid_props = {"width"} # width @@ -26,11 +28,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -43,8 +45,11 @@ def _prop_descriptions(self): direction via `increasing.line.width` and `decreasing.line.width`. """ - - def __init__(self, arg=None, width=None, **kwargs): + def __init__(self, + arg=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -64,10 +69,10 @@ def __init__(self, arg=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -79,24 +84,20 @@ def __init__(self, arg=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.candlestick.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.candlestick.Line`""" - ) +an instance of :class:`plotly.graph_objs.candlestick.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/candlestick/_stream.py b/packages/python/plotly/plotly/graph_objs/candlestick/_stream.py index c399e008dac..31d5e1c22ae 100644 --- a/packages/python/plotly/plotly/graph_objs/candlestick/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/candlestick/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "candlestick" - _path_str = "candlestick.stream" + _parent_path_str = 'candlestick' + _path_str = 'candlestick.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.candlestick.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.candlestick.Stream`""" - ) +an instance of :class:`plotly.graph_objs.candlestick.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/candlestick/decreasing/__init__.py b/packages/python/plotly/plotly/graph_objs/candlestick/decreasing/__init__.py index 8722c15a2b8..a745ef6458a 100644 --- a/packages/python/plotly/plotly/graph_objs/candlestick/decreasing/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/candlestick/decreasing/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import Line else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._line.Line'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._line.Line"]) diff --git a/packages/python/plotly/plotly/graph_objs/candlestick/decreasing/_line.py b/packages/python/plotly/plotly/graph_objs/candlestick/decreasing/_line.py index e3ea54012a4..00843723f0a 100644 --- a/packages/python/plotly/plotly/graph_objs/candlestick/decreasing/_line.py +++ b/packages/python/plotly/plotly/graph_objs/candlestick/decreasing/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "candlestick.decreasing" - _path_str = "candlestick.decreasing.line" + _parent_path_str = 'candlestick.decreasing' + _path_str = 'candlestick.decreasing.line' _valid_props = {"color", "width"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # width # ----- @@ -83,11 +50,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -99,8 +66,12 @@ def _prop_descriptions(self): width Sets the width (in px) of line bounding the box(es). """ - - def __init__(self, arg=None, color=None, width=None, **kwargs): + def __init__(self, + arg=None, + color=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -119,10 +90,10 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -134,28 +105,21 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.candlestick.decreasing.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.candlestick.decreasing.Line`""" - ) +an instance of :class:`plotly.graph_objs.candlestick.decreasing.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/candlestick/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/candlestick/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/candlestick/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/candlestick/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/candlestick/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/candlestick/hoverlabel/_font.py index 2d14c6a1551..652621065b2 100644 --- a/packages/python/plotly/plotly/graph_objs/candlestick/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/candlestick/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "candlestick.hoverlabel" - _path_str = "candlestick.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'candlestick.hoverlabel' + _path_str = 'candlestick.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.candlestick.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.candlestick.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.candlestick.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/candlestick/increasing/__init__.py b/packages/python/plotly/plotly/graph_objs/candlestick/increasing/__init__.py index 8722c15a2b8..a745ef6458a 100644 --- a/packages/python/plotly/plotly/graph_objs/candlestick/increasing/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/candlestick/increasing/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import Line else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._line.Line'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._line.Line"]) diff --git a/packages/python/plotly/plotly/graph_objs/candlestick/increasing/_line.py b/packages/python/plotly/plotly/graph_objs/candlestick/increasing/_line.py index 7c40879a535..c39f89c136a 100644 --- a/packages/python/plotly/plotly/graph_objs/candlestick/increasing/_line.py +++ b/packages/python/plotly/plotly/graph_objs/candlestick/increasing/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "candlestick.increasing" - _path_str = "candlestick.increasing.line" + _parent_path_str = 'candlestick.increasing' + _path_str = 'candlestick.increasing.line' _valid_props = {"color", "width"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # width # ----- @@ -83,11 +50,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -99,8 +66,12 @@ def _prop_descriptions(self): width Sets the width (in px) of line bounding the box(es). """ - - def __init__(self, arg=None, color=None, width=None, **kwargs): + def __init__(self, + arg=None, + color=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -119,10 +90,10 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -134,28 +105,21 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.candlestick.increasing.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.candlestick.increasing.Line`""" - ) +an instance of :class:`plotly.graph_objs.candlestick.increasing.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/candlestick/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/candlestick/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/candlestick/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/candlestick/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/candlestick/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/candlestick/legendgrouptitle/_font.py index 91a143fa796..c225625da68 100644 --- a/packages/python/plotly/plotly/graph_objs/candlestick/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/candlestick/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "candlestick.legendgrouptitle" - _path_str = "candlestick.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'candlestick.legendgrouptitle' + _path_str = 'candlestick.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.candlestick.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.candlestick.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.candlestick.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/carpet/__init__.py b/packages/python/plotly/plotly/graph_objs/carpet/__init__.py index 32126bf0f8b..0a5c68442ea 100644 --- a/packages/python/plotly/plotly/graph_objs/carpet/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/carpet/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._aaxis import Aaxis from ._baxis import Baxis @@ -12,15 +11,10 @@ from . import legendgrouptitle else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".aaxis", ".baxis", ".legendgrouptitle"], - [ - "._aaxis.Aaxis", - "._baxis.Baxis", - "._font.Font", - "._legendgrouptitle.Legendgrouptitle", - "._stream.Stream", - ], + ['.aaxis', '.baxis', '.legendgrouptitle'], + ['._aaxis.Aaxis', '._baxis.Baxis', '._font.Font', '._legendgrouptitle.Legendgrouptitle', '._stream.Stream'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/carpet/_aaxis.py b/packages/python/plotly/plotly/graph_objs/carpet/_aaxis.py index d8a2d9d28af..67543681180 100644 --- a/packages/python/plotly/plotly/graph_objs/carpet/_aaxis.py +++ b/packages/python/plotly/plotly/graph_objs/carpet/_aaxis.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,68 +8,9 @@ class Aaxis(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "carpet" - _path_str = "carpet.aaxis" - _valid_props = { - "arraydtick", - "arraytick0", - "autorange", - "autotypenumbers", - "categoryarray", - "categoryarraysrc", - "categoryorder", - "cheatertype", - "color", - "dtick", - "endline", - "endlinecolor", - "endlinewidth", - "exponentformat", - "fixedrange", - "gridcolor", - "griddash", - "gridwidth", - "labelalias", - "labelpadding", - "labelprefix", - "labelsuffix", - "linecolor", - "linewidth", - "minexponent", - "minorgridcolor", - "minorgridcount", - "minorgriddash", - "minorgridwidth", - "nticks", - "range", - "rangemode", - "separatethousands", - "showexponent", - "showgrid", - "showline", - "showticklabels", - "showtickprefix", - "showticksuffix", - "smoothing", - "startline", - "startlinecolor", - "startlinewidth", - "tick0", - "tickangle", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "tickmode", - "tickprefix", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "title", - "type", - } + _parent_path_str = 'carpet' + _path_str = 'carpet.aaxis' + _valid_props = {"arraydtick", "arraytick0", "autorange", "autotypenumbers", "categoryarray", "categoryarraysrc", "categoryorder", "cheatertype", "color", "dtick", "endline", "endlinecolor", "endlinewidth", "exponentformat", "fixedrange", "gridcolor", "griddash", "gridwidth", "labelalias", "labelpadding", "labelprefix", "labelsuffix", "linecolor", "linewidth", "minexponent", "minorgridcolor", "minorgridcount", "minorgriddash", "minorgridwidth", "nticks", "range", "rangemode", "separatethousands", "showexponent", "showgrid", "showline", "showticklabels", "showtickprefix", "showticksuffix", "smoothing", "startline", "startlinecolor", "startlinewidth", "tick0", "tickangle", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "tickmode", "tickprefix", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "title", "type"} # arraydtick # ---------- @@ -84,11 +27,11 @@ def arraydtick(self): ------- int """ - return self["arraydtick"] + return self['arraydtick'] @arraydtick.setter def arraydtick(self, val): - self["arraydtick"] = val + self['arraydtick'] = val # arraytick0 # ---------- @@ -105,11 +48,11 @@ def arraytick0(self): ------- int """ - return self["arraytick0"] + return self['arraytick0'] @arraytick0.setter def arraytick0(self, val): - self["arraytick0"] = val + self['arraytick0'] = val # autorange # --------- @@ -128,11 +71,11 @@ def autorange(self): ------- Any """ - return self["autorange"] + return self['autorange'] @autorange.setter def autorange(self, val): - self["autorange"] = val + self['autorange'] = val # autotypenumbers # --------------- @@ -152,11 +95,11 @@ def autotypenumbers(self): ------- Any """ - return self["autotypenumbers"] + return self['autotypenumbers'] @autotypenumbers.setter def autotypenumbers(self, val): - self["autotypenumbers"] = val + self['autotypenumbers'] = val # categoryarray # ------------- @@ -174,11 +117,11 @@ def categoryarray(self): ------- numpy.ndarray """ - return self["categoryarray"] + return self['categoryarray'] @categoryarray.setter def categoryarray(self, val): - self["categoryarray"] = val + self['categoryarray'] = val # categoryarraysrc # ---------------- @@ -195,11 +138,11 @@ def categoryarraysrc(self): ------- str """ - return self["categoryarraysrc"] + return self['categoryarraysrc'] @categoryarraysrc.setter def categoryarraysrc(self, val): - self["categoryarraysrc"] = val + self['categoryarraysrc'] = val # categoryorder # ------------- @@ -227,11 +170,11 @@ def categoryorder(self): ------- Any """ - return self["categoryorder"] + return self['categoryorder'] @categoryorder.setter def categoryorder(self, val): - self["categoryorder"] = val + self['categoryorder'] = val # cheatertype # ----------- @@ -246,11 +189,11 @@ def cheatertype(self): ------- Any """ - return self["cheatertype"] + return self['cheatertype'] @cheatertype.setter def cheatertype(self, val): - self["cheatertype"] = val + self['cheatertype'] = val # color # ----- @@ -267,52 +210,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # dtick # ----- @@ -328,11 +236,11 @@ def dtick(self): ------- int|float """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # endline # ------- @@ -350,11 +258,11 @@ def endline(self): ------- bool """ - return self["endline"] + return self['endline'] @endline.setter def endline(self, val): - self["endline"] = val + self['endline'] = val # endlinecolor # ------------ @@ -368,52 +276,17 @@ def endlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["endlinecolor"] + return self['endlinecolor'] @endlinecolor.setter def endlinecolor(self, val): - self["endlinecolor"] = val + self['endlinecolor'] = val # endlinewidth # ------------ @@ -429,11 +302,11 @@ def endlinewidth(self): ------- int|float """ - return self["endlinewidth"] + return self['endlinewidth'] @endlinewidth.setter def endlinewidth(self, val): - self["endlinewidth"] = val + self['endlinewidth'] = val # exponentformat # -------------- @@ -454,11 +327,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # fixedrange # ---------- @@ -475,11 +348,11 @@ def fixedrange(self): ------- bool """ - return self["fixedrange"] + return self['fixedrange'] @fixedrange.setter def fixedrange(self, val): - self["fixedrange"] = val + self['fixedrange'] = val # gridcolor # --------- @@ -493,52 +366,17 @@ def gridcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["gridcolor"] + return self['gridcolor'] @gridcolor.setter def gridcolor(self, val): - self["gridcolor"] = val + self['gridcolor'] = val # griddash # -------- @@ -560,11 +398,11 @@ def griddash(self): ------- str """ - return self["griddash"] + return self['griddash'] @griddash.setter def griddash(self, val): - self["griddash"] = val + self['griddash'] = val # gridwidth # --------- @@ -580,11 +418,11 @@ def gridwidth(self): ------- int|float """ - return self["gridwidth"] + return self['gridwidth'] @gridwidth.setter def gridwidth(self, val): - self["gridwidth"] = val + self['gridwidth'] = val # labelalias # ---------- @@ -607,11 +445,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # labelpadding # ------------ @@ -627,11 +465,11 @@ def labelpadding(self): ------- int """ - return self["labelpadding"] + return self['labelpadding'] @labelpadding.setter def labelpadding(self, val): - self["labelpadding"] = val + self['labelpadding'] = val # labelprefix # ----------- @@ -648,11 +486,11 @@ def labelprefix(self): ------- str """ - return self["labelprefix"] + return self['labelprefix'] @labelprefix.setter def labelprefix(self, val): - self["labelprefix"] = val + self['labelprefix'] = val # labelsuffix # ----------- @@ -669,11 +507,11 @@ def labelsuffix(self): ------- str """ - return self["labelsuffix"] + return self['labelsuffix'] @labelsuffix.setter def labelsuffix(self, val): - self["labelsuffix"] = val + self['labelsuffix'] = val # linecolor # --------- @@ -687,52 +525,17 @@ def linecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["linecolor"] + return self['linecolor'] @linecolor.setter def linecolor(self, val): - self["linecolor"] = val + self['linecolor'] = val # linewidth # --------- @@ -748,11 +551,11 @@ def linewidth(self): ------- int|float """ - return self["linewidth"] + return self['linewidth'] @linewidth.setter def linewidth(self, val): - self["linewidth"] = val + self['linewidth'] = val # minexponent # ----------- @@ -768,11 +571,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # minorgridcolor # -------------- @@ -786,52 +589,17 @@ def minorgridcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["minorgridcolor"] + return self['minorgridcolor'] @minorgridcolor.setter def minorgridcolor(self, val): - self["minorgridcolor"] = val + self['minorgridcolor'] = val # minorgridcount # -------------- @@ -848,11 +616,11 @@ def minorgridcount(self): ------- int """ - return self["minorgridcount"] + return self['minorgridcount'] @minorgridcount.setter def minorgridcount(self, val): - self["minorgridcount"] = val + self['minorgridcount'] = val # minorgriddash # ------------- @@ -874,11 +642,11 @@ def minorgriddash(self): ------- str """ - return self["minorgriddash"] + return self['minorgriddash'] @minorgriddash.setter def minorgriddash(self, val): - self["minorgriddash"] = val + self['minorgriddash'] = val # minorgridwidth # -------------- @@ -894,11 +662,11 @@ def minorgridwidth(self): ------- int|float """ - return self["minorgridwidth"] + return self['minorgridwidth'] @minorgridwidth.setter def minorgridwidth(self, val): - self["minorgridwidth"] = val + self['minorgridwidth'] = val # nticks # ------ @@ -918,41 +686,41 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # range # ----- @property def range(self): """ - Sets the range of this axis. If the axis `type` is "log", then - you must take the log of your desired range (e.g. to set the - range from 1 to 100, set the range from 0 to 2). If the axis - `type` is "date", it should be date strings, like date data, - though Date objects and unix milliseconds will be accepted and - converted to strings. If the axis `type` is "category", it - should be numbers, using the scale where each category is - assigned a serial number from zero in the order it appears. - - The 'range' property is an info array that may be specified as: + Sets the range of this axis. If the axis `type` is "log", then + you must take the log of your desired range (e.g. to set the + range from 1 to 100, set the range from 0 to 2). If the axis + `type` is "date", it should be date strings, like date data, + though Date objects and unix milliseconds will be accepted and + converted to strings. If the axis `type` is "category", it + should be numbers, using the scale where each category is + assigned a serial number from zero in the order it appears. + + The 'range' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'range[0]' property accepts values of any type + (1) The 'range[1]' property accepts values of any type - * a list or tuple of 2 elements where: - (0) The 'range[0]' property accepts values of any type - (1) The 'range[1]' property accepts values of any type - - Returns - ------- - list + Returns + ------- + list """ - return self["range"] + return self['range'] @range.setter def range(self, val): - self["range"] = val + self['range'] = val # rangemode # --------- @@ -972,11 +740,11 @@ def rangemode(self): ------- Any """ - return self["rangemode"] + return self['rangemode'] @rangemode.setter def rangemode(self, val): - self["rangemode"] = val + self['rangemode'] = val # separatethousands # ----------------- @@ -992,11 +760,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -1016,11 +784,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showgrid # -------- @@ -1037,11 +805,11 @@ def showgrid(self): ------- bool """ - return self["showgrid"] + return self['showgrid'] @showgrid.setter def showgrid(self, val): - self["showgrid"] = val + self['showgrid'] = val # showline # -------- @@ -1057,11 +825,11 @@ def showline(self): ------- bool """ - return self["showline"] + return self['showline'] @showline.setter def showline(self, val): - self["showline"] = val + self['showline'] = val # showticklabels # -------------- @@ -1079,11 +847,11 @@ def showticklabels(self): ------- Any """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -1103,11 +871,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -1124,11 +892,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # smoothing # --------- @@ -1142,11 +910,11 @@ def smoothing(self): ------- int|float """ - return self["smoothing"] + return self['smoothing'] @smoothing.setter def smoothing(self, val): - self["smoothing"] = val + self['smoothing'] = val # startline # --------- @@ -1164,11 +932,11 @@ def startline(self): ------- bool """ - return self["startline"] + return self['startline'] @startline.setter def startline(self, val): - self["startline"] = val + self['startline'] = val # startlinecolor # -------------- @@ -1182,52 +950,17 @@ def startlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["startlinecolor"] + return self['startlinecolor'] @startlinecolor.setter def startlinecolor(self, val): - self["startlinecolor"] = val + self['startlinecolor'] = val # startlinewidth # -------------- @@ -1243,11 +976,11 @@ def startlinewidth(self): ------- int|float """ - return self["startlinewidth"] + return self['startlinewidth'] @startlinewidth.setter def startlinewidth(self, val): - self["startlinewidth"] = val + self['startlinewidth'] = val # tick0 # ----- @@ -1263,11 +996,11 @@ def tick0(self): ------- int|float """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -1287,11 +1020,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickfont # -------- @@ -1306,61 +1039,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.carpet.aaxis.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -1386,11 +1073,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -1403,51 +1090,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.carpet.aaxis.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -1465,17 +1116,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.carpet.aaxis.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # tickmode # -------- @@ -1490,11 +1139,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1511,11 +1160,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticksuffix # ---------- @@ -1532,11 +1181,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1554,11 +1203,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1574,11 +1223,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1595,11 +1244,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1615,11 +1264,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # title # ----- @@ -1632,25 +1281,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this axis' title font. - offset - An additional amount by which to offset the - title from the tick labels, given in pixels. - text - Sets the title of this axis. - Returns ------- plotly.graph_objs.carpet.aaxis.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # type # ---- @@ -1669,11 +1308,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # Self properties description # --------------------------- @@ -1897,70 +1536,68 @@ def _prop_descriptions(self): determined the axis type by looking into the data of the traces that referenced the axis in question. """ - - def __init__( - self, - arg=None, - arraydtick=None, - arraytick0=None, - autorange=None, - autotypenumbers=None, - categoryarray=None, - categoryarraysrc=None, - categoryorder=None, - cheatertype=None, - color=None, - dtick=None, - endline=None, - endlinecolor=None, - endlinewidth=None, - exponentformat=None, - fixedrange=None, - gridcolor=None, - griddash=None, - gridwidth=None, - labelalias=None, - labelpadding=None, - labelprefix=None, - labelsuffix=None, - linecolor=None, - linewidth=None, - minexponent=None, - minorgridcolor=None, - minorgridcount=None, - minorgriddash=None, - minorgridwidth=None, - nticks=None, - range=None, - rangemode=None, - separatethousands=None, - showexponent=None, - showgrid=None, - showline=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - smoothing=None, - startline=None, - startlinecolor=None, - startlinewidth=None, - tick0=None, - tickangle=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - tickmode=None, - tickprefix=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - title=None, - type=None, - **kwargs, - ): + def __init__(self, + arg=None, + arraydtick=None, + arraytick0=None, + autorange=None, + autotypenumbers=None, + categoryarray=None, + categoryarraysrc=None, + categoryorder=None, + cheatertype=None, + color=None, + dtick=None, + endline=None, + endlinecolor=None, + endlinewidth=None, + exponentformat=None, + fixedrange=None, + gridcolor=None, + griddash=None, + gridwidth=None, + labelalias=None, + labelpadding=None, + labelprefix=None, + labelsuffix=None, + linecolor=None, + linewidth=None, + minexponent=None, + minorgridcolor=None, + minorgridcount=None, + minorgriddash=None, + minorgridwidth=None, + nticks=None, + range=None, + rangemode=None, + separatethousands=None, + showexponent=None, + showgrid=None, + showline=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + smoothing=None, + startline=None, + startlinecolor=None, + startlinewidth=None, + tick0=None, + tickangle=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + tickmode=None, + tickprefix=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + title=None, + type=None, + **kwargs + ): """ Construct a new Aaxis object @@ -2190,10 +1827,10 @@ def __init__( ------- Aaxis """ - super(Aaxis, self).__init__("aaxis") + super(Aaxis, self).__init__('aaxis') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2205,252 +1842,77 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.carpet.Aaxis constructor must be a dict or -an instance of :class:`plotly.graph_objs.carpet.Aaxis`""" - ) +an instance of :class:`plotly.graph_objs.carpet.Aaxis`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("arraydtick", None) - _v = arraydtick if arraydtick is not None else _v - if _v is not None: - self["arraydtick"] = _v - _v = arg.pop("arraytick0", None) - _v = arraytick0 if arraytick0 is not None else _v - if _v is not None: - self["arraytick0"] = _v - _v = arg.pop("autorange", None) - _v = autorange if autorange is not None else _v - if _v is not None: - self["autorange"] = _v - _v = arg.pop("autotypenumbers", None) - _v = autotypenumbers if autotypenumbers is not None else _v - if _v is not None: - self["autotypenumbers"] = _v - _v = arg.pop("categoryarray", None) - _v = categoryarray if categoryarray is not None else _v - if _v is not None: - self["categoryarray"] = _v - _v = arg.pop("categoryarraysrc", None) - _v = categoryarraysrc if categoryarraysrc is not None else _v - if _v is not None: - self["categoryarraysrc"] = _v - _v = arg.pop("categoryorder", None) - _v = categoryorder if categoryorder is not None else _v - if _v is not None: - self["categoryorder"] = _v - _v = arg.pop("cheatertype", None) - _v = cheatertype if cheatertype is not None else _v - if _v is not None: - self["cheatertype"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("endline", None) - _v = endline if endline is not None else _v - if _v is not None: - self["endline"] = _v - _v = arg.pop("endlinecolor", None) - _v = endlinecolor if endlinecolor is not None else _v - if _v is not None: - self["endlinecolor"] = _v - _v = arg.pop("endlinewidth", None) - _v = endlinewidth if endlinewidth is not None else _v - if _v is not None: - self["endlinewidth"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("fixedrange", None) - _v = fixedrange if fixedrange is not None else _v - if _v is not None: - self["fixedrange"] = _v - _v = arg.pop("gridcolor", None) - _v = gridcolor if gridcolor is not None else _v - if _v is not None: - self["gridcolor"] = _v - _v = arg.pop("griddash", None) - _v = griddash if griddash is not None else _v - if _v is not None: - self["griddash"] = _v - _v = arg.pop("gridwidth", None) - _v = gridwidth if gridwidth is not None else _v - if _v is not None: - self["gridwidth"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("labelpadding", None) - _v = labelpadding if labelpadding is not None else _v - if _v is not None: - self["labelpadding"] = _v - _v = arg.pop("labelprefix", None) - _v = labelprefix if labelprefix is not None else _v - if _v is not None: - self["labelprefix"] = _v - _v = arg.pop("labelsuffix", None) - _v = labelsuffix if labelsuffix is not None else _v - if _v is not None: - self["labelsuffix"] = _v - _v = arg.pop("linecolor", None) - _v = linecolor if linecolor is not None else _v - if _v is not None: - self["linecolor"] = _v - _v = arg.pop("linewidth", None) - _v = linewidth if linewidth is not None else _v - if _v is not None: - self["linewidth"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("minorgridcolor", None) - _v = minorgridcolor if minorgridcolor is not None else _v - if _v is not None: - self["minorgridcolor"] = _v - _v = arg.pop("minorgridcount", None) - _v = minorgridcount if minorgridcount is not None else _v - if _v is not None: - self["minorgridcount"] = _v - _v = arg.pop("minorgriddash", None) - _v = minorgriddash if minorgriddash is not None else _v - if _v is not None: - self["minorgriddash"] = _v - _v = arg.pop("minorgridwidth", None) - _v = minorgridwidth if minorgridwidth is not None else _v - if _v is not None: - self["minorgridwidth"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("range", None) - _v = range if range is not None else _v - if _v is not None: - self["range"] = _v - _v = arg.pop("rangemode", None) - _v = rangemode if rangemode is not None else _v - if _v is not None: - self["rangemode"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showgrid", None) - _v = showgrid if showgrid is not None else _v - if _v is not None: - self["showgrid"] = _v - _v = arg.pop("showline", None) - _v = showline if showline is not None else _v - if _v is not None: - self["showline"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("smoothing", None) - _v = smoothing if smoothing is not None else _v - if _v is not None: - self["smoothing"] = _v - _v = arg.pop("startline", None) - _v = startline if startline is not None else _v - if _v is not None: - self["startline"] = _v - _v = arg.pop("startlinecolor", None) - _v = startlinecolor if startlinecolor is not None else _v - if _v is not None: - self["startlinecolor"] = _v - _v = arg.pop("startlinewidth", None) - _v = startlinewidth if startlinewidth is not None else _v - if _v is not None: - self["startlinewidth"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v + self._init_provided('arraydtick', arg, arraydtick) + self._init_provided('arraytick0', arg, arraytick0) + self._init_provided('autorange', arg, autorange) + self._init_provided('autotypenumbers', arg, autotypenumbers) + self._init_provided('categoryarray', arg, categoryarray) + self._init_provided('categoryarraysrc', arg, categoryarraysrc) + self._init_provided('categoryorder', arg, categoryorder) + self._init_provided('cheatertype', arg, cheatertype) + self._init_provided('color', arg, color) + self._init_provided('dtick', arg, dtick) + self._init_provided('endline', arg, endline) + self._init_provided('endlinecolor', arg, endlinecolor) + self._init_provided('endlinewidth', arg, endlinewidth) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('fixedrange', arg, fixedrange) + self._init_provided('gridcolor', arg, gridcolor) + self._init_provided('griddash', arg, griddash) + self._init_provided('gridwidth', arg, gridwidth) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('labelpadding', arg, labelpadding) + self._init_provided('labelprefix', arg, labelprefix) + self._init_provided('labelsuffix', arg, labelsuffix) + self._init_provided('linecolor', arg, linecolor) + self._init_provided('linewidth', arg, linewidth) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('minorgridcolor', arg, minorgridcolor) + self._init_provided('minorgridcount', arg, minorgridcount) + self._init_provided('minorgriddash', arg, minorgriddash) + self._init_provided('minorgridwidth', arg, minorgridwidth) + self._init_provided('nticks', arg, nticks) + self._init_provided('range', arg, range) + self._init_provided('rangemode', arg, rangemode) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showgrid', arg, showgrid) + self._init_provided('showline', arg, showline) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('smoothing', arg, smoothing) + self._init_provided('startline', arg, startline) + self._init_provided('startlinecolor', arg, startlinecolor) + self._init_provided('startlinewidth', arg, startlinewidth) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('title', arg, title) + self._init_provided('type', arg, type) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/carpet/_baxis.py b/packages/python/plotly/plotly/graph_objs/carpet/_baxis.py index 342ccfb781e..f007c2efbe8 100644 --- a/packages/python/plotly/plotly/graph_objs/carpet/_baxis.py +++ b/packages/python/plotly/plotly/graph_objs/carpet/_baxis.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,68 +8,9 @@ class Baxis(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "carpet" - _path_str = "carpet.baxis" - _valid_props = { - "arraydtick", - "arraytick0", - "autorange", - "autotypenumbers", - "categoryarray", - "categoryarraysrc", - "categoryorder", - "cheatertype", - "color", - "dtick", - "endline", - "endlinecolor", - "endlinewidth", - "exponentformat", - "fixedrange", - "gridcolor", - "griddash", - "gridwidth", - "labelalias", - "labelpadding", - "labelprefix", - "labelsuffix", - "linecolor", - "linewidth", - "minexponent", - "minorgridcolor", - "minorgridcount", - "minorgriddash", - "minorgridwidth", - "nticks", - "range", - "rangemode", - "separatethousands", - "showexponent", - "showgrid", - "showline", - "showticklabels", - "showtickprefix", - "showticksuffix", - "smoothing", - "startline", - "startlinecolor", - "startlinewidth", - "tick0", - "tickangle", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "tickmode", - "tickprefix", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "title", - "type", - } + _parent_path_str = 'carpet' + _path_str = 'carpet.baxis' + _valid_props = {"arraydtick", "arraytick0", "autorange", "autotypenumbers", "categoryarray", "categoryarraysrc", "categoryorder", "cheatertype", "color", "dtick", "endline", "endlinecolor", "endlinewidth", "exponentformat", "fixedrange", "gridcolor", "griddash", "gridwidth", "labelalias", "labelpadding", "labelprefix", "labelsuffix", "linecolor", "linewidth", "minexponent", "minorgridcolor", "minorgridcount", "minorgriddash", "minorgridwidth", "nticks", "range", "rangemode", "separatethousands", "showexponent", "showgrid", "showline", "showticklabels", "showtickprefix", "showticksuffix", "smoothing", "startline", "startlinecolor", "startlinewidth", "tick0", "tickangle", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "tickmode", "tickprefix", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "title", "type"} # arraydtick # ---------- @@ -84,11 +27,11 @@ def arraydtick(self): ------- int """ - return self["arraydtick"] + return self['arraydtick'] @arraydtick.setter def arraydtick(self, val): - self["arraydtick"] = val + self['arraydtick'] = val # arraytick0 # ---------- @@ -105,11 +48,11 @@ def arraytick0(self): ------- int """ - return self["arraytick0"] + return self['arraytick0'] @arraytick0.setter def arraytick0(self, val): - self["arraytick0"] = val + self['arraytick0'] = val # autorange # --------- @@ -128,11 +71,11 @@ def autorange(self): ------- Any """ - return self["autorange"] + return self['autorange'] @autorange.setter def autorange(self, val): - self["autorange"] = val + self['autorange'] = val # autotypenumbers # --------------- @@ -152,11 +95,11 @@ def autotypenumbers(self): ------- Any """ - return self["autotypenumbers"] + return self['autotypenumbers'] @autotypenumbers.setter def autotypenumbers(self, val): - self["autotypenumbers"] = val + self['autotypenumbers'] = val # categoryarray # ------------- @@ -174,11 +117,11 @@ def categoryarray(self): ------- numpy.ndarray """ - return self["categoryarray"] + return self['categoryarray'] @categoryarray.setter def categoryarray(self, val): - self["categoryarray"] = val + self['categoryarray'] = val # categoryarraysrc # ---------------- @@ -195,11 +138,11 @@ def categoryarraysrc(self): ------- str """ - return self["categoryarraysrc"] + return self['categoryarraysrc'] @categoryarraysrc.setter def categoryarraysrc(self, val): - self["categoryarraysrc"] = val + self['categoryarraysrc'] = val # categoryorder # ------------- @@ -227,11 +170,11 @@ def categoryorder(self): ------- Any """ - return self["categoryorder"] + return self['categoryorder'] @categoryorder.setter def categoryorder(self, val): - self["categoryorder"] = val + self['categoryorder'] = val # cheatertype # ----------- @@ -246,11 +189,11 @@ def cheatertype(self): ------- Any """ - return self["cheatertype"] + return self['cheatertype'] @cheatertype.setter def cheatertype(self, val): - self["cheatertype"] = val + self['cheatertype'] = val # color # ----- @@ -267,52 +210,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # dtick # ----- @@ -328,11 +236,11 @@ def dtick(self): ------- int|float """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # endline # ------- @@ -350,11 +258,11 @@ def endline(self): ------- bool """ - return self["endline"] + return self['endline'] @endline.setter def endline(self, val): - self["endline"] = val + self['endline'] = val # endlinecolor # ------------ @@ -368,52 +276,17 @@ def endlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["endlinecolor"] + return self['endlinecolor'] @endlinecolor.setter def endlinecolor(self, val): - self["endlinecolor"] = val + self['endlinecolor'] = val # endlinewidth # ------------ @@ -429,11 +302,11 @@ def endlinewidth(self): ------- int|float """ - return self["endlinewidth"] + return self['endlinewidth'] @endlinewidth.setter def endlinewidth(self, val): - self["endlinewidth"] = val + self['endlinewidth'] = val # exponentformat # -------------- @@ -454,11 +327,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # fixedrange # ---------- @@ -475,11 +348,11 @@ def fixedrange(self): ------- bool """ - return self["fixedrange"] + return self['fixedrange'] @fixedrange.setter def fixedrange(self, val): - self["fixedrange"] = val + self['fixedrange'] = val # gridcolor # --------- @@ -493,52 +366,17 @@ def gridcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["gridcolor"] + return self['gridcolor'] @gridcolor.setter def gridcolor(self, val): - self["gridcolor"] = val + self['gridcolor'] = val # griddash # -------- @@ -560,11 +398,11 @@ def griddash(self): ------- str """ - return self["griddash"] + return self['griddash'] @griddash.setter def griddash(self, val): - self["griddash"] = val + self['griddash'] = val # gridwidth # --------- @@ -580,11 +418,11 @@ def gridwidth(self): ------- int|float """ - return self["gridwidth"] + return self['gridwidth'] @gridwidth.setter def gridwidth(self, val): - self["gridwidth"] = val + self['gridwidth'] = val # labelalias # ---------- @@ -607,11 +445,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # labelpadding # ------------ @@ -627,11 +465,11 @@ def labelpadding(self): ------- int """ - return self["labelpadding"] + return self['labelpadding'] @labelpadding.setter def labelpadding(self, val): - self["labelpadding"] = val + self['labelpadding'] = val # labelprefix # ----------- @@ -648,11 +486,11 @@ def labelprefix(self): ------- str """ - return self["labelprefix"] + return self['labelprefix'] @labelprefix.setter def labelprefix(self, val): - self["labelprefix"] = val + self['labelprefix'] = val # labelsuffix # ----------- @@ -669,11 +507,11 @@ def labelsuffix(self): ------- str """ - return self["labelsuffix"] + return self['labelsuffix'] @labelsuffix.setter def labelsuffix(self, val): - self["labelsuffix"] = val + self['labelsuffix'] = val # linecolor # --------- @@ -687,52 +525,17 @@ def linecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["linecolor"] + return self['linecolor'] @linecolor.setter def linecolor(self, val): - self["linecolor"] = val + self['linecolor'] = val # linewidth # --------- @@ -748,11 +551,11 @@ def linewidth(self): ------- int|float """ - return self["linewidth"] + return self['linewidth'] @linewidth.setter def linewidth(self, val): - self["linewidth"] = val + self['linewidth'] = val # minexponent # ----------- @@ -768,11 +571,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # minorgridcolor # -------------- @@ -786,52 +589,17 @@ def minorgridcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["minorgridcolor"] + return self['minorgridcolor'] @minorgridcolor.setter def minorgridcolor(self, val): - self["minorgridcolor"] = val + self['minorgridcolor'] = val # minorgridcount # -------------- @@ -848,11 +616,11 @@ def minorgridcount(self): ------- int """ - return self["minorgridcount"] + return self['minorgridcount'] @minorgridcount.setter def minorgridcount(self, val): - self["minorgridcount"] = val + self['minorgridcount'] = val # minorgriddash # ------------- @@ -874,11 +642,11 @@ def minorgriddash(self): ------- str """ - return self["minorgriddash"] + return self['minorgriddash'] @minorgriddash.setter def minorgriddash(self, val): - self["minorgriddash"] = val + self['minorgriddash'] = val # minorgridwidth # -------------- @@ -894,11 +662,11 @@ def minorgridwidth(self): ------- int|float """ - return self["minorgridwidth"] + return self['minorgridwidth'] @minorgridwidth.setter def minorgridwidth(self, val): - self["minorgridwidth"] = val + self['minorgridwidth'] = val # nticks # ------ @@ -918,41 +686,41 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # range # ----- @property def range(self): """ - Sets the range of this axis. If the axis `type` is "log", then - you must take the log of your desired range (e.g. to set the - range from 1 to 100, set the range from 0 to 2). If the axis - `type` is "date", it should be date strings, like date data, - though Date objects and unix milliseconds will be accepted and - converted to strings. If the axis `type` is "category", it - should be numbers, using the scale where each category is - assigned a serial number from zero in the order it appears. - - The 'range' property is an info array that may be specified as: + Sets the range of this axis. If the axis `type` is "log", then + you must take the log of your desired range (e.g. to set the + range from 1 to 100, set the range from 0 to 2). If the axis + `type` is "date", it should be date strings, like date data, + though Date objects and unix milliseconds will be accepted and + converted to strings. If the axis `type` is "category", it + should be numbers, using the scale where each category is + assigned a serial number from zero in the order it appears. + + The 'range' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'range[0]' property accepts values of any type + (1) The 'range[1]' property accepts values of any type - * a list or tuple of 2 elements where: - (0) The 'range[0]' property accepts values of any type - (1) The 'range[1]' property accepts values of any type - - Returns - ------- - list + Returns + ------- + list """ - return self["range"] + return self['range'] @range.setter def range(self, val): - self["range"] = val + self['range'] = val # rangemode # --------- @@ -972,11 +740,11 @@ def rangemode(self): ------- Any """ - return self["rangemode"] + return self['rangemode'] @rangemode.setter def rangemode(self, val): - self["rangemode"] = val + self['rangemode'] = val # separatethousands # ----------------- @@ -992,11 +760,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -1016,11 +784,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showgrid # -------- @@ -1037,11 +805,11 @@ def showgrid(self): ------- bool """ - return self["showgrid"] + return self['showgrid'] @showgrid.setter def showgrid(self, val): - self["showgrid"] = val + self['showgrid'] = val # showline # -------- @@ -1057,11 +825,11 @@ def showline(self): ------- bool """ - return self["showline"] + return self['showline'] @showline.setter def showline(self, val): - self["showline"] = val + self['showline'] = val # showticklabels # -------------- @@ -1079,11 +847,11 @@ def showticklabels(self): ------- Any """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -1103,11 +871,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -1124,11 +892,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # smoothing # --------- @@ -1142,11 +910,11 @@ def smoothing(self): ------- int|float """ - return self["smoothing"] + return self['smoothing'] @smoothing.setter def smoothing(self, val): - self["smoothing"] = val + self['smoothing'] = val # startline # --------- @@ -1164,11 +932,11 @@ def startline(self): ------- bool """ - return self["startline"] + return self['startline'] @startline.setter def startline(self, val): - self["startline"] = val + self['startline'] = val # startlinecolor # -------------- @@ -1182,52 +950,17 @@ def startlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["startlinecolor"] + return self['startlinecolor'] @startlinecolor.setter def startlinecolor(self, val): - self["startlinecolor"] = val + self['startlinecolor'] = val # startlinewidth # -------------- @@ -1243,11 +976,11 @@ def startlinewidth(self): ------- int|float """ - return self["startlinewidth"] + return self['startlinewidth'] @startlinewidth.setter def startlinewidth(self, val): - self["startlinewidth"] = val + self['startlinewidth'] = val # tick0 # ----- @@ -1263,11 +996,11 @@ def tick0(self): ------- int|float """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -1287,11 +1020,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickfont # -------- @@ -1306,61 +1039,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.carpet.baxis.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -1386,11 +1073,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -1403,51 +1090,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.carpet.baxis.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -1465,17 +1116,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.carpet.baxis.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # tickmode # -------- @@ -1490,11 +1139,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1511,11 +1160,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticksuffix # ---------- @@ -1532,11 +1181,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1554,11 +1203,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1574,11 +1223,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1595,11 +1244,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1615,11 +1264,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # title # ----- @@ -1632,25 +1281,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this axis' title font. - offset - An additional amount by which to offset the - title from the tick labels, given in pixels. - text - Sets the title of this axis. - Returns ------- plotly.graph_objs.carpet.baxis.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # type # ---- @@ -1669,11 +1308,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # Self properties description # --------------------------- @@ -1897,70 +1536,68 @@ def _prop_descriptions(self): determined the axis type by looking into the data of the traces that referenced the axis in question. """ - - def __init__( - self, - arg=None, - arraydtick=None, - arraytick0=None, - autorange=None, - autotypenumbers=None, - categoryarray=None, - categoryarraysrc=None, - categoryorder=None, - cheatertype=None, - color=None, - dtick=None, - endline=None, - endlinecolor=None, - endlinewidth=None, - exponentformat=None, - fixedrange=None, - gridcolor=None, - griddash=None, - gridwidth=None, - labelalias=None, - labelpadding=None, - labelprefix=None, - labelsuffix=None, - linecolor=None, - linewidth=None, - minexponent=None, - minorgridcolor=None, - minorgridcount=None, - minorgriddash=None, - minorgridwidth=None, - nticks=None, - range=None, - rangemode=None, - separatethousands=None, - showexponent=None, - showgrid=None, - showline=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - smoothing=None, - startline=None, - startlinecolor=None, - startlinewidth=None, - tick0=None, - tickangle=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - tickmode=None, - tickprefix=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - title=None, - type=None, - **kwargs, - ): + def __init__(self, + arg=None, + arraydtick=None, + arraytick0=None, + autorange=None, + autotypenumbers=None, + categoryarray=None, + categoryarraysrc=None, + categoryorder=None, + cheatertype=None, + color=None, + dtick=None, + endline=None, + endlinecolor=None, + endlinewidth=None, + exponentformat=None, + fixedrange=None, + gridcolor=None, + griddash=None, + gridwidth=None, + labelalias=None, + labelpadding=None, + labelprefix=None, + labelsuffix=None, + linecolor=None, + linewidth=None, + minexponent=None, + minorgridcolor=None, + minorgridcount=None, + minorgriddash=None, + minorgridwidth=None, + nticks=None, + range=None, + rangemode=None, + separatethousands=None, + showexponent=None, + showgrid=None, + showline=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + smoothing=None, + startline=None, + startlinecolor=None, + startlinewidth=None, + tick0=None, + tickangle=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + tickmode=None, + tickprefix=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + title=None, + type=None, + **kwargs + ): """ Construct a new Baxis object @@ -2190,10 +1827,10 @@ def __init__( ------- Baxis """ - super(Baxis, self).__init__("baxis") + super(Baxis, self).__init__('baxis') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2205,252 +1842,77 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.carpet.Baxis constructor must be a dict or -an instance of :class:`plotly.graph_objs.carpet.Baxis`""" - ) +an instance of :class:`plotly.graph_objs.carpet.Baxis`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("arraydtick", None) - _v = arraydtick if arraydtick is not None else _v - if _v is not None: - self["arraydtick"] = _v - _v = arg.pop("arraytick0", None) - _v = arraytick0 if arraytick0 is not None else _v - if _v is not None: - self["arraytick0"] = _v - _v = arg.pop("autorange", None) - _v = autorange if autorange is not None else _v - if _v is not None: - self["autorange"] = _v - _v = arg.pop("autotypenumbers", None) - _v = autotypenumbers if autotypenumbers is not None else _v - if _v is not None: - self["autotypenumbers"] = _v - _v = arg.pop("categoryarray", None) - _v = categoryarray if categoryarray is not None else _v - if _v is not None: - self["categoryarray"] = _v - _v = arg.pop("categoryarraysrc", None) - _v = categoryarraysrc if categoryarraysrc is not None else _v - if _v is not None: - self["categoryarraysrc"] = _v - _v = arg.pop("categoryorder", None) - _v = categoryorder if categoryorder is not None else _v - if _v is not None: - self["categoryorder"] = _v - _v = arg.pop("cheatertype", None) - _v = cheatertype if cheatertype is not None else _v - if _v is not None: - self["cheatertype"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("endline", None) - _v = endline if endline is not None else _v - if _v is not None: - self["endline"] = _v - _v = arg.pop("endlinecolor", None) - _v = endlinecolor if endlinecolor is not None else _v - if _v is not None: - self["endlinecolor"] = _v - _v = arg.pop("endlinewidth", None) - _v = endlinewidth if endlinewidth is not None else _v - if _v is not None: - self["endlinewidth"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("fixedrange", None) - _v = fixedrange if fixedrange is not None else _v - if _v is not None: - self["fixedrange"] = _v - _v = arg.pop("gridcolor", None) - _v = gridcolor if gridcolor is not None else _v - if _v is not None: - self["gridcolor"] = _v - _v = arg.pop("griddash", None) - _v = griddash if griddash is not None else _v - if _v is not None: - self["griddash"] = _v - _v = arg.pop("gridwidth", None) - _v = gridwidth if gridwidth is not None else _v - if _v is not None: - self["gridwidth"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("labelpadding", None) - _v = labelpadding if labelpadding is not None else _v - if _v is not None: - self["labelpadding"] = _v - _v = arg.pop("labelprefix", None) - _v = labelprefix if labelprefix is not None else _v - if _v is not None: - self["labelprefix"] = _v - _v = arg.pop("labelsuffix", None) - _v = labelsuffix if labelsuffix is not None else _v - if _v is not None: - self["labelsuffix"] = _v - _v = arg.pop("linecolor", None) - _v = linecolor if linecolor is not None else _v - if _v is not None: - self["linecolor"] = _v - _v = arg.pop("linewidth", None) - _v = linewidth if linewidth is not None else _v - if _v is not None: - self["linewidth"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("minorgridcolor", None) - _v = minorgridcolor if minorgridcolor is not None else _v - if _v is not None: - self["minorgridcolor"] = _v - _v = arg.pop("minorgridcount", None) - _v = minorgridcount if minorgridcount is not None else _v - if _v is not None: - self["minorgridcount"] = _v - _v = arg.pop("minorgriddash", None) - _v = minorgriddash if minorgriddash is not None else _v - if _v is not None: - self["minorgriddash"] = _v - _v = arg.pop("minorgridwidth", None) - _v = minorgridwidth if minorgridwidth is not None else _v - if _v is not None: - self["minorgridwidth"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("range", None) - _v = range if range is not None else _v - if _v is not None: - self["range"] = _v - _v = arg.pop("rangemode", None) - _v = rangemode if rangemode is not None else _v - if _v is not None: - self["rangemode"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showgrid", None) - _v = showgrid if showgrid is not None else _v - if _v is not None: - self["showgrid"] = _v - _v = arg.pop("showline", None) - _v = showline if showline is not None else _v - if _v is not None: - self["showline"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("smoothing", None) - _v = smoothing if smoothing is not None else _v - if _v is not None: - self["smoothing"] = _v - _v = arg.pop("startline", None) - _v = startline if startline is not None else _v - if _v is not None: - self["startline"] = _v - _v = arg.pop("startlinecolor", None) - _v = startlinecolor if startlinecolor is not None else _v - if _v is not None: - self["startlinecolor"] = _v - _v = arg.pop("startlinewidth", None) - _v = startlinewidth if startlinewidth is not None else _v - if _v is not None: - self["startlinewidth"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v + self._init_provided('arraydtick', arg, arraydtick) + self._init_provided('arraytick0', arg, arraytick0) + self._init_provided('autorange', arg, autorange) + self._init_provided('autotypenumbers', arg, autotypenumbers) + self._init_provided('categoryarray', arg, categoryarray) + self._init_provided('categoryarraysrc', arg, categoryarraysrc) + self._init_provided('categoryorder', arg, categoryorder) + self._init_provided('cheatertype', arg, cheatertype) + self._init_provided('color', arg, color) + self._init_provided('dtick', arg, dtick) + self._init_provided('endline', arg, endline) + self._init_provided('endlinecolor', arg, endlinecolor) + self._init_provided('endlinewidth', arg, endlinewidth) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('fixedrange', arg, fixedrange) + self._init_provided('gridcolor', arg, gridcolor) + self._init_provided('griddash', arg, griddash) + self._init_provided('gridwidth', arg, gridwidth) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('labelpadding', arg, labelpadding) + self._init_provided('labelprefix', arg, labelprefix) + self._init_provided('labelsuffix', arg, labelsuffix) + self._init_provided('linecolor', arg, linecolor) + self._init_provided('linewidth', arg, linewidth) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('minorgridcolor', arg, minorgridcolor) + self._init_provided('minorgridcount', arg, minorgridcount) + self._init_provided('minorgriddash', arg, minorgriddash) + self._init_provided('minorgridwidth', arg, minorgridwidth) + self._init_provided('nticks', arg, nticks) + self._init_provided('range', arg, range) + self._init_provided('rangemode', arg, rangemode) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showgrid', arg, showgrid) + self._init_provided('showline', arg, showline) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('smoothing', arg, smoothing) + self._init_provided('startline', arg, startline) + self._init_provided('startlinecolor', arg, startlinecolor) + self._init_provided('startlinewidth', arg, startlinewidth) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('title', arg, title) + self._init_provided('type', arg, type) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/carpet/_font.py b/packages/python/plotly/plotly/graph_objs/carpet/_font.py index 0c9a268fe40..f80630f367f 100644 --- a/packages/python/plotly/plotly/graph_objs/carpet/_font.py +++ b/packages/python/plotly/plotly/graph_objs/carpet/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "carpet" - _path_str = "carpet.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'carpet' + _path_str = 'carpet.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -376,10 +331,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -391,56 +346,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.carpet.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.carpet.Font`""" - ) +an instance of :class:`plotly.graph_objs.carpet.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/carpet/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/carpet/_legendgrouptitle.py index 21c3ed89ce4..1340a0d7680 100644 --- a/packages/python/plotly/plotly/graph_objs/carpet/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/carpet/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "carpet" - _path_str = "carpet.legendgrouptitle" + _parent_path_str = 'carpet' + _path_str = 'carpet.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.carpet.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.carpet.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.carpet.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.carpet.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/carpet/_stream.py b/packages/python/plotly/plotly/graph_objs/carpet/_stream.py index c5480dabab4..58a40d052eb 100644 --- a/packages/python/plotly/plotly/graph_objs/carpet/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/carpet/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "carpet" - _path_str = "carpet.stream" + _parent_path_str = 'carpet' + _path_str = 'carpet.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -93,10 +99,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -108,28 +114,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.carpet.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.carpet.Stream`""" - ) +an instance of :class:`plotly.graph_objs.carpet.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/carpet/aaxis/__init__.py b/packages/python/plotly/plotly/graph_objs/carpet/aaxis/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/carpet/aaxis/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/carpet/aaxis/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/carpet/aaxis/_tickfont.py b/packages/python/plotly/plotly/graph_objs/carpet/aaxis/_tickfont.py index 7f475688ca0..1767261b4c8 100644 --- a/packages/python/plotly/plotly/graph_objs/carpet/aaxis/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/carpet/aaxis/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "carpet.aaxis" - _path_str = "carpet.aaxis.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'carpet.aaxis' + _path_str = 'carpet.aaxis.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.carpet.aaxis.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.carpet.aaxis.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.carpet.aaxis.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/carpet/aaxis/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/carpet/aaxis/_tickformatstop.py index 00b65384ce5..035c1395676 100644 --- a/packages/python/plotly/plotly/graph_objs/carpet/aaxis/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/carpet/aaxis/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "carpet.aaxis" - _path_str = "carpet.aaxis.tickformatstop" + _parent_path_str = 'carpet.aaxis' + _path_str = 'carpet.aaxis.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.carpet.aaxis.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.carpet.aaxis.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.carpet.aaxis.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/carpet/aaxis/_title.py b/packages/python/plotly/plotly/graph_objs/carpet/aaxis/_title.py index c679b74e5ec..0f5d07ee168 100644 --- a/packages/python/plotly/plotly/graph_objs/carpet/aaxis/_title.py +++ b/packages/python/plotly/plotly/graph_objs/carpet/aaxis/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "carpet.aaxis" - _path_str = "carpet.aaxis.title" + _parent_path_str = 'carpet.aaxis' + _path_str = 'carpet.aaxis.title' _valid_props = {"font", "offset", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.carpet.aaxis.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # offset # ------ @@ -94,11 +50,11 @@ def offset(self): ------- int|float """ - return self["offset"] + return self['offset'] @offset.setter def offset(self, val): - self["offset"] = val + self['offset'] = val # text # ---- @@ -115,11 +71,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -134,8 +90,13 @@ def _prop_descriptions(self): text Sets the title of this axis. """ - - def __init__(self, arg=None, font=None, offset=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + offset=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -157,10 +118,10 @@ def __init__(self, arg=None, font=None, offset=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -172,32 +133,22 @@ def __init__(self, arg=None, font=None, offset=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.carpet.aaxis.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.carpet.aaxis.Title`""" - ) +an instance of :class:`plotly.graph_objs.carpet.aaxis.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("offset", None) - _v = offset if offset is not None else _v - if _v is not None: - self["offset"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('offset', arg, offset) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/carpet/aaxis/title/__init__.py b/packages/python/plotly/plotly/graph_objs/carpet/aaxis/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/carpet/aaxis/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/carpet/aaxis/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/carpet/aaxis/title/_font.py b/packages/python/plotly/plotly/graph_objs/carpet/aaxis/title/_font.py index 68c94793e85..2da0c83a177 100644 --- a/packages/python/plotly/plotly/graph_objs/carpet/aaxis/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/carpet/aaxis/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "carpet.aaxis.title" - _path_str = "carpet.aaxis.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'carpet.aaxis.title' + _path_str = 'carpet.aaxis.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.carpet.aaxis.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.carpet.aaxis.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.carpet.aaxis.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/carpet/baxis/__init__.py b/packages/python/plotly/plotly/graph_objs/carpet/baxis/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/carpet/baxis/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/carpet/baxis/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/carpet/baxis/_tickfont.py b/packages/python/plotly/plotly/graph_objs/carpet/baxis/_tickfont.py index b213684bd4b..1859273ca84 100644 --- a/packages/python/plotly/plotly/graph_objs/carpet/baxis/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/carpet/baxis/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "carpet.baxis" - _path_str = "carpet.baxis.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'carpet.baxis' + _path_str = 'carpet.baxis.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.carpet.baxis.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.carpet.baxis.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.carpet.baxis.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/carpet/baxis/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/carpet/baxis/_tickformatstop.py index 8fdb187c5a0..a6ad07ac70f 100644 --- a/packages/python/plotly/plotly/graph_objs/carpet/baxis/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/carpet/baxis/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "carpet.baxis" - _path_str = "carpet.baxis.tickformatstop" + _parent_path_str = 'carpet.baxis' + _path_str = 'carpet.baxis.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.carpet.baxis.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.carpet.baxis.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.carpet.baxis.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/carpet/baxis/_title.py b/packages/python/plotly/plotly/graph_objs/carpet/baxis/_title.py index d2faac44c86..61520bcfc31 100644 --- a/packages/python/plotly/plotly/graph_objs/carpet/baxis/_title.py +++ b/packages/python/plotly/plotly/graph_objs/carpet/baxis/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "carpet.baxis" - _path_str = "carpet.baxis.title" + _parent_path_str = 'carpet.baxis' + _path_str = 'carpet.baxis.title' _valid_props = {"font", "offset", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.carpet.baxis.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # offset # ------ @@ -94,11 +50,11 @@ def offset(self): ------- int|float """ - return self["offset"] + return self['offset'] @offset.setter def offset(self, val): - self["offset"] = val + self['offset'] = val # text # ---- @@ -115,11 +71,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -134,8 +90,13 @@ def _prop_descriptions(self): text Sets the title of this axis. """ - - def __init__(self, arg=None, font=None, offset=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + offset=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -157,10 +118,10 @@ def __init__(self, arg=None, font=None, offset=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -172,32 +133,22 @@ def __init__(self, arg=None, font=None, offset=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.carpet.baxis.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.carpet.baxis.Title`""" - ) +an instance of :class:`plotly.graph_objs.carpet.baxis.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("offset", None) - _v = offset if offset is not None else _v - if _v is not None: - self["offset"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('offset', arg, offset) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/carpet/baxis/title/__init__.py b/packages/python/plotly/plotly/graph_objs/carpet/baxis/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/carpet/baxis/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/carpet/baxis/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/carpet/baxis/title/_font.py b/packages/python/plotly/plotly/graph_objs/carpet/baxis/title/_font.py index 5977cc199c1..e1f98eb6dfa 100644 --- a/packages/python/plotly/plotly/graph_objs/carpet/baxis/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/carpet/baxis/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "carpet.baxis.title" - _path_str = "carpet.baxis.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'carpet.baxis.title' + _path_str = 'carpet.baxis.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.carpet.baxis.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.carpet.baxis.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.carpet.baxis.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/carpet/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/carpet/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/carpet/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/carpet/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/carpet/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/carpet/legendgrouptitle/_font.py index cf691056822..1b34f7ffe7f 100644 --- a/packages/python/plotly/plotly/graph_objs/carpet/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/carpet/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "carpet.legendgrouptitle" - _path_str = "carpet.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'carpet.legendgrouptitle' + _path_str = 'carpet.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.carpet.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.carpet.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.carpet.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/__init__.py b/packages/python/plotly/plotly/graph_objs/choropleth/__init__.py index bb31cb6217a..07c6ea98647 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._hoverlabel import Hoverlabel @@ -17,24 +16,10 @@ from . import unselected else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [ - ".colorbar", - ".hoverlabel", - ".legendgrouptitle", - ".marker", - ".selected", - ".unselected", - ], - [ - "._colorbar.ColorBar", - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._marker.Marker", - "._selected.Selected", - "._stream.Stream", - "._unselected.Unselected", - ], + ['.colorbar', '.hoverlabel', '.legendgrouptitle', '.marker', '.selected', '.unselected'], + ['._colorbar.ColorBar', '._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._marker.Marker', '._selected.Selected', '._stream.Stream', '._unselected.Unselected'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/_colorbar.py b/packages/python/plotly/plotly/graph_objs/choropleth/_colorbar.py index adf4d0c779c..cb0a2806269 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choropleth" - _path_str = "choropleth.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'choropleth' + _path_str = 'choropleth.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.choropleth.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.choropleth.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -912,17 +642,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.choropleth.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -942,11 +670,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -967,11 +695,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -993,11 +721,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1013,11 +741,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1040,11 +768,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1061,11 +789,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1084,11 +812,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1105,11 +833,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1127,11 +855,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1147,11 +875,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1168,11 +896,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1188,11 +916,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1208,11 +936,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1225,27 +953,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.choropleth.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1267,11 +983,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1291,11 +1007,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1311,11 +1027,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1334,11 +1050,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1360,11 +1076,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1384,11 +1100,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1404,11 +1120,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1427,11 +1143,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1677,61 +1393,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1984,10 +1698,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1999,216 +1713,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choropleth.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.choropleth.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.choropleth.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/choropleth/_hoverlabel.py index 0bdd610b66a..3f4b3bddddb 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choropleth" - _path_str = "choropleth.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'choropleth' + _path_str = 'choropleth.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.choropleth.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choropleth.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.choropleth.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.choropleth.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/choropleth/_legendgrouptitle.py index 74bf725c370..361eda867d6 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choropleth" - _path_str = "choropleth.legendgrouptitle" + _parent_path_str = 'choropleth' + _path_str = 'choropleth.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.choropleth.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choropleth.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.choropleth.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.choropleth.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/_marker.py b/packages/python/plotly/plotly/graph_objs/choropleth/_marker.py index 190fbf219bb..78dad3b8dd4 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choropleth" - _path_str = "choropleth.marker" + _parent_path_str = 'choropleth' + _path_str = 'choropleth.marker' _valid_props = {"line", "opacity", "opacitysrc"} # line @@ -21,34 +23,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. - Returns ------- plotly.graph_objs.choropleth.marker.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # opacity # ------- @@ -65,11 +48,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # opacitysrc # ---------- @@ -85,11 +68,11 @@ def opacitysrc(self): ------- str """ - return self["opacitysrc"] + return self['opacitysrc'] @opacitysrc.setter def opacitysrc(self, val): - self["opacitysrc"] = val + self['opacitysrc'] = val # Self properties description # --------------------------- @@ -105,8 +88,13 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `opacity`. """ - - def __init__(self, arg=None, line=None, opacity=None, opacitysrc=None, **kwargs): + def __init__(self, + arg=None, + line=None, + opacity=None, + opacitysrc=None, + **kwargs + ): """ Construct a new Marker object @@ -129,10 +117,10 @@ def __init__(self, arg=None, line=None, opacity=None, opacitysrc=None, **kwargs) ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -144,32 +132,22 @@ def __init__(self, arg=None, line=None, opacity=None, opacitysrc=None, **kwargs) elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choropleth.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.choropleth.Marker`""" - ) +an instance of :class:`plotly.graph_objs.choropleth.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("opacitysrc", None) - _v = opacitysrc if opacitysrc is not None else _v - if _v is not None: - self["opacitysrc"] = _v + self._init_provided('line', arg, line) + self._init_provided('opacity', arg, opacity) + self._init_provided('opacitysrc', arg, opacitysrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/_selected.py b/packages/python/plotly/plotly/graph_objs/choropleth/_selected.py index b0918c3ec28..2ef3872d10b 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/_selected.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/_selected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Selected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choropleth" - _path_str = "choropleth.selected" + _parent_path_str = 'choropleth' + _path_str = 'choropleth.selected' _valid_props = {"marker"} # marker @@ -21,20 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - opacity - Sets the marker opacity of selected points. - Returns ------- plotly.graph_objs.choropleth.selected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # Self properties description # --------------------------- @@ -45,8 +42,11 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.choropleth.selected.Marker ` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + **kwargs + ): """ Construct a new Selected object @@ -64,10 +64,10 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") + super(Selected, self).__init__('selected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -79,24 +79,20 @@ def __init__(self, arg=None, marker=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choropleth.Selected constructor must be a dict or -an instance of :class:`plotly.graph_objs.choropleth.Selected`""" - ) +an instance of :class:`plotly.graph_objs.choropleth.Selected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v + self._init_provided('marker', arg, marker) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/_stream.py b/packages/python/plotly/plotly/graph_objs/choropleth/_stream.py index 8a641e2d196..2841559a400 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choropleth" - _path_str = "choropleth.stream" + _parent_path_str = 'choropleth' + _path_str = 'choropleth.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choropleth.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.choropleth.Stream`""" - ) +an instance of :class:`plotly.graph_objs.choropleth.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/_unselected.py b/packages/python/plotly/plotly/graph_objs/choropleth/_unselected.py index f43fcdfbd93..fe956ea79de 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/_unselected.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/_unselected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Unselected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choropleth" - _path_str = "choropleth.unselected" + _parent_path_str = 'choropleth' + _path_str = 'choropleth.unselected' _valid_props = {"marker"} # marker @@ -21,21 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.choropleth.unselected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # Self properties description # --------------------------- @@ -46,8 +42,11 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.choropleth.unselected.Mark er` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + **kwargs + ): """ Construct a new Unselected object @@ -65,10 +64,10 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") + super(Unselected, self).__init__('unselected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -80,24 +79,20 @@ def __init__(self, arg=None, marker=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choropleth.Unselected constructor must be a dict or -an instance of :class:`plotly.graph_objs.choropleth.Unselected`""" - ) +an instance of :class:`plotly.graph_objs.choropleth.Unselected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v + self._init_provided('marker', arg, marker) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/_tickfont.py index ec56e3bf55c..cbfd5c14c68 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choropleth.colorbar" - _path_str = "choropleth.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'choropleth.colorbar' + _path_str = 'choropleth.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choropleth.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.choropleth.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.choropleth.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/_tickformatstop.py index 6ebb3aafc7c..895537b7c50 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choropleth.colorbar" - _path_str = "choropleth.colorbar.tickformatstop" + _parent_path_str = 'choropleth.colorbar' + _path_str = 'choropleth.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choropleth.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.choropleth.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.choropleth.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/_title.py index 51207da44d4..fee6a9b4d20 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choropleth.colorbar" - _path_str = "choropleth.colorbar.title" + _parent_path_str = 'choropleth.colorbar' + _path_str = 'choropleth.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.choropleth.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choropleth.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.choropleth.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.choropleth.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/title/_font.py index c906610bccb..72b45dc681d 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choropleth.colorbar.title" - _path_str = "choropleth.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'choropleth.colorbar.title' + _path_str = 'choropleth.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choropleth.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.choropleth.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.choropleth.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/choropleth/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/choropleth/hoverlabel/_font.py index eb251f0f847..097aeaec5a2 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choropleth.hoverlabel" - _path_str = "choropleth.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'choropleth.hoverlabel' + _path_str = 'choropleth.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choropleth.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.choropleth.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.choropleth.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/choropleth/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/choropleth/legendgrouptitle/_font.py index bff087169d8..c546640add9 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choropleth.legendgrouptitle" - _path_str = "choropleth.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'choropleth.legendgrouptitle' + _path_str = 'choropleth.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choropleth.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.choropleth.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.choropleth.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/choropleth/marker/__init__.py index 8722c15a2b8..a745ef6458a 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/marker/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import Line else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._line.Line'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._line.Line"]) diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/marker/_line.py b/packages/python/plotly/plotly/graph_objs/choropleth/marker/_line.py index 8bc91d727d4..12b419984cb 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/marker/_line.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/marker/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choropleth.marker" - _path_str = "choropleth.marker.line" + _parent_path_str = 'choropleth.marker' + _path_str = 'choropleth.marker.line' _valid_props = {"color", "colorsrc", "width", "widthsrc"} # color @@ -25,53 +27,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -87,11 +54,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # width # ----- @@ -108,11 +75,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # widthsrc # -------- @@ -128,11 +95,11 @@ def widthsrc(self): ------- str """ - return self["widthsrc"] + return self['widthsrc'] @widthsrc.setter def widthsrc(self, val): - self["widthsrc"] = val + self['widthsrc'] = val # Self properties description # --------------------------- @@ -155,10 +122,14 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `width`. """ - - def __init__( - self, arg=None, color=None, colorsrc=None, width=None, widthsrc=None, **kwargs - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + width=None, + widthsrc=None, + **kwargs + ): """ Construct a new Line object @@ -188,10 +159,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -203,36 +174,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choropleth.marker.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.choropleth.marker.Line`""" - ) +an instance of :class:`plotly.graph_objs.choropleth.marker.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("widthsrc", None) - _v = widthsrc if widthsrc is not None else _v - if _v is not None: - self["widthsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('width', arg, width) + self._init_provided('widthsrc', arg, widthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/choropleth/selected/__init__.py index dfd34067137..5abe297c1ca 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/selected/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._marker.Marker'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._marker.Marker"]) diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/selected/_marker.py b/packages/python/plotly/plotly/graph_objs/choropleth/selected/_marker.py index a7c78815060..809255bd3b1 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/selected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/selected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choropleth.selected" - _path_str = "choropleth.selected.marker" + _parent_path_str = 'choropleth.selected' + _path_str = 'choropleth.selected.marker' _valid_props = {"opacity"} # opacity @@ -24,11 +26,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # Self properties description # --------------------------- @@ -38,8 +40,11 @@ def _prop_descriptions(self): opacity Sets the marker opacity of selected points. """ - - def __init__(self, arg=None, opacity=None, **kwargs): + def __init__(self, + arg=None, + opacity=None, + **kwargs + ): """ Construct a new Marker object @@ -56,10 +61,10 @@ def __init__(self, arg=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -71,24 +76,20 @@ def __init__(self, arg=None, opacity=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choropleth.selected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.choropleth.selected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.choropleth.selected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v + self._init_provided('opacity', arg, opacity) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/choropleth/unselected/__init__.py index dfd34067137..5abe297c1ca 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/unselected/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._marker.Marker'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._marker.Marker"]) diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/unselected/_marker.py b/packages/python/plotly/plotly/graph_objs/choropleth/unselected/_marker.py index 5b1f9b9c4c3..7796389be91 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/unselected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/unselected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choropleth.unselected" - _path_str = "choropleth.unselected.marker" + _parent_path_str = 'choropleth.unselected' + _path_str = 'choropleth.unselected.marker' _valid_props = {"opacity"} # opacity @@ -25,11 +27,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # Self properties description # --------------------------- @@ -40,8 +42,11 @@ def _prop_descriptions(self): Sets the marker opacity of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, opacity=None, **kwargs): + def __init__(self, + arg=None, + opacity=None, + **kwargs + ): """ Construct a new Marker object @@ -59,10 +64,10 @@ def __init__(self, arg=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -74,24 +79,20 @@ def __init__(self, arg=None, opacity=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choropleth.unselected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.choropleth.unselected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.choropleth.unselected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v + self._init_provided('opacity', arg, opacity) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmap/__init__.py b/packages/python/plotly/plotly/graph_objs/choroplethmap/__init__.py index bb31cb6217a..07c6ea98647 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmap/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmap/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._hoverlabel import Hoverlabel @@ -17,24 +16,10 @@ from . import unselected else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [ - ".colorbar", - ".hoverlabel", - ".legendgrouptitle", - ".marker", - ".selected", - ".unselected", - ], - [ - "._colorbar.ColorBar", - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._marker.Marker", - "._selected.Selected", - "._stream.Stream", - "._unselected.Unselected", - ], + ['.colorbar', '.hoverlabel', '.legendgrouptitle', '.marker', '.selected', '.unselected'], + ['._colorbar.ColorBar', '._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._marker.Marker', '._selected.Selected', '._stream.Stream', '._unselected.Unselected'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmap/_colorbar.py b/packages/python/plotly/plotly/graph_objs/choroplethmap/_colorbar.py index b01c415ff5c..4a41e86705a 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmap/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmap/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmap" - _path_str = "choroplethmap.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'choroplethmap' + _path_str = 'choroplethmap.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.choroplethmap.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.choroplethmap.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.choroplethmap.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.choroplethmap.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmap.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmap.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmap.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmap/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/choroplethmap/_hoverlabel.py index 6997ee43b3e..77cc2f0444c 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmap/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmap/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmap" - _path_str = "choroplethmap.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'choroplethmap' + _path_str = 'choroplethmap.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.choroplethmap.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmap.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmap.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmap.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmap/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/choroplethmap/_legendgrouptitle.py index 944e0f424cc..51695ab7fd6 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmap/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmap/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmap" - _path_str = "choroplethmap.legendgrouptitle" + _parent_path_str = 'choroplethmap' + _path_str = 'choroplethmap.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.choroplethmap.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmap.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmap.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmap.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmap/_marker.py b/packages/python/plotly/plotly/graph_objs/choroplethmap/_marker.py index 29e701b4b5e..61681f5d816 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmap/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmap/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmap" - _path_str = "choroplethmap.marker" + _parent_path_str = 'choroplethmap' + _path_str = 'choroplethmap.marker' _valid_props = {"line", "opacity", "opacitysrc"} # line @@ -21,34 +23,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. - Returns ------- plotly.graph_objs.choroplethmap.marker.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # opacity # ------- @@ -65,11 +48,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # opacitysrc # ---------- @@ -85,11 +68,11 @@ def opacitysrc(self): ------- str """ - return self["opacitysrc"] + return self['opacitysrc'] @opacitysrc.setter def opacitysrc(self, val): - self["opacitysrc"] = val + self['opacitysrc'] = val # Self properties description # --------------------------- @@ -105,8 +88,13 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `opacity`. """ - - def __init__(self, arg=None, line=None, opacity=None, opacitysrc=None, **kwargs): + def __init__(self, + arg=None, + line=None, + opacity=None, + opacitysrc=None, + **kwargs + ): """ Construct a new Marker object @@ -129,10 +117,10 @@ def __init__(self, arg=None, line=None, opacity=None, opacitysrc=None, **kwargs) ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -144,32 +132,22 @@ def __init__(self, arg=None, line=None, opacity=None, opacitysrc=None, **kwargs) elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmap.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmap.Marker`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmap.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("opacitysrc", None) - _v = opacitysrc if opacitysrc is not None else _v - if _v is not None: - self["opacitysrc"] = _v + self._init_provided('line', arg, line) + self._init_provided('opacity', arg, opacity) + self._init_provided('opacitysrc', arg, opacitysrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmap/_selected.py b/packages/python/plotly/plotly/graph_objs/choroplethmap/_selected.py index 4261b3718a0..b18c6a83c00 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmap/_selected.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmap/_selected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Selected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmap" - _path_str = "choroplethmap.selected" + _parent_path_str = 'choroplethmap' + _path_str = 'choroplethmap.selected' _valid_props = {"marker"} # marker @@ -21,20 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - opacity - Sets the marker opacity of selected points. - Returns ------- plotly.graph_objs.choroplethmap.selected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # Self properties description # --------------------------- @@ -45,8 +42,11 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.choroplethmap.selected.Mar ker` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + **kwargs + ): """ Construct a new Selected object @@ -64,10 +64,10 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") + super(Selected, self).__init__('selected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -79,24 +79,20 @@ def __init__(self, arg=None, marker=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmap.Selected constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmap.Selected`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmap.Selected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v + self._init_provided('marker', arg, marker) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmap/_stream.py b/packages/python/plotly/plotly/graph_objs/choroplethmap/_stream.py index dd9f018e60b..b0a261a84f1 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmap/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmap/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmap" - _path_str = "choroplethmap.stream" + _parent_path_str = 'choroplethmap' + _path_str = 'choroplethmap.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmap.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmap.Stream`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmap.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmap/_unselected.py b/packages/python/plotly/plotly/graph_objs/choroplethmap/_unselected.py index 9a3eaf7c932..4fc0b7752f1 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmap/_unselected.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmap/_unselected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Unselected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmap" - _path_str = "choroplethmap.unselected" + _parent_path_str = 'choroplethmap' + _path_str = 'choroplethmap.unselected' _valid_props = {"marker"} # marker @@ -21,21 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.choroplethmap.unselected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # Self properties description # --------------------------- @@ -46,8 +42,11 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.choroplethmap.unselected.M arker` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + **kwargs + ): """ Construct a new Unselected object @@ -65,10 +64,10 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") + super(Unselected, self).__init__('unselected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -80,24 +79,20 @@ def __init__(self, arg=None, marker=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmap.Unselected constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmap.Unselected`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmap.Unselected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v + self._init_provided('marker', arg, marker) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmap/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/choroplethmap/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmap/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmap/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmap/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/choroplethmap/colorbar/_tickfont.py index dc9704e0bac..34884ccd139 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmap/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmap/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmap.colorbar" - _path_str = "choroplethmap.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'choroplethmap.colorbar' + _path_str = 'choroplethmap.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmap.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmap.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmap.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmap/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/choroplethmap/colorbar/_tickformatstop.py index 2d76600577b..4d13dee9fdf 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmap/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmap/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmap.colorbar" - _path_str = "choroplethmap.colorbar.tickformatstop" + _parent_path_str = 'choroplethmap.colorbar' + _path_str = 'choroplethmap.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmap.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmap.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmap.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmap/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/choroplethmap/colorbar/_title.py index 4d42a1c3215..a2e81c96f7f 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmap/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmap/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmap.colorbar" - _path_str = "choroplethmap.colorbar.title" + _parent_path_str = 'choroplethmap.colorbar' + _path_str = 'choroplethmap.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.choroplethmap.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmap.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmap.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmap.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmap/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/choroplethmap/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmap/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmap/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmap/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/choroplethmap/colorbar/title/_font.py index 4b8af44ad0b..7723291f82b 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmap/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmap/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmap.colorbar.title" - _path_str = "choroplethmap.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'choroplethmap.colorbar.title' + _path_str = 'choroplethmap.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmap.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmap.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmap.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmap/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/choroplethmap/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmap/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmap/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmap/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/choroplethmap/hoverlabel/_font.py index fdf1c6d1d03..4e87225c3f4 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmap/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmap/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmap.hoverlabel" - _path_str = "choroplethmap.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'choroplethmap.hoverlabel' + _path_str = 'choroplethmap.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmap.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmap.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmap.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmap/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/choroplethmap/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmap/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmap/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmap/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/choroplethmap/legendgrouptitle/_font.py index a1eed39e111..fab0ede6b84 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmap/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmap/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmap.legendgrouptitle" - _path_str = "choroplethmap.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'choroplethmap.legendgrouptitle' + _path_str = 'choroplethmap.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmap.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmap.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmap.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmap/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/choroplethmap/marker/__init__.py index 8722c15a2b8..a745ef6458a 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmap/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmap/marker/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import Line else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._line.Line'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._line.Line"]) diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmap/marker/_line.py b/packages/python/plotly/plotly/graph_objs/choroplethmap/marker/_line.py index a0e551b88bf..bec617994af 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmap/marker/_line.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmap/marker/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmap.marker" - _path_str = "choroplethmap.marker.line" + _parent_path_str = 'choroplethmap.marker' + _path_str = 'choroplethmap.marker.line' _valid_props = {"color", "colorsrc", "width", "widthsrc"} # color @@ -25,53 +27,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -87,11 +54,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # width # ----- @@ -108,11 +75,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # widthsrc # -------- @@ -128,11 +95,11 @@ def widthsrc(self): ------- str """ - return self["widthsrc"] + return self['widthsrc'] @widthsrc.setter def widthsrc(self, val): - self["widthsrc"] = val + self['widthsrc'] = val # Self properties description # --------------------------- @@ -155,10 +122,14 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `width`. """ - - def __init__( - self, arg=None, color=None, colorsrc=None, width=None, widthsrc=None, **kwargs - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + width=None, + widthsrc=None, + **kwargs + ): """ Construct a new Line object @@ -188,10 +159,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -203,36 +174,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmap.marker.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmap.marker.Line`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmap.marker.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("widthsrc", None) - _v = widthsrc if widthsrc is not None else _v - if _v is not None: - self["widthsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('width', arg, width) + self._init_provided('widthsrc', arg, widthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmap/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/choroplethmap/selected/__init__.py index dfd34067137..5abe297c1ca 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmap/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmap/selected/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._marker.Marker'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._marker.Marker"]) diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmap/selected/_marker.py b/packages/python/plotly/plotly/graph_objs/choroplethmap/selected/_marker.py index 9b659e40c7f..5b1502436ed 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmap/selected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmap/selected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmap.selected" - _path_str = "choroplethmap.selected.marker" + _parent_path_str = 'choroplethmap.selected' + _path_str = 'choroplethmap.selected.marker' _valid_props = {"opacity"} # opacity @@ -24,11 +26,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # Self properties description # --------------------------- @@ -38,8 +40,11 @@ def _prop_descriptions(self): opacity Sets the marker opacity of selected points. """ - - def __init__(self, arg=None, opacity=None, **kwargs): + def __init__(self, + arg=None, + opacity=None, + **kwargs + ): """ Construct a new Marker object @@ -56,10 +61,10 @@ def __init__(self, arg=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -71,24 +76,20 @@ def __init__(self, arg=None, opacity=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmap.selected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmap.selected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmap.selected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v + self._init_provided('opacity', arg, opacity) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmap/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/choroplethmap/unselected/__init__.py index dfd34067137..5abe297c1ca 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmap/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmap/unselected/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._marker.Marker'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._marker.Marker"]) diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmap/unselected/_marker.py b/packages/python/plotly/plotly/graph_objs/choroplethmap/unselected/_marker.py index c2fd93944a1..b9f7a047db6 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmap/unselected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmap/unselected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmap.unselected" - _path_str = "choroplethmap.unselected.marker" + _parent_path_str = 'choroplethmap.unselected' + _path_str = 'choroplethmap.unselected.marker' _valid_props = {"opacity"} # opacity @@ -25,11 +27,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # Self properties description # --------------------------- @@ -40,8 +42,11 @@ def _prop_descriptions(self): Sets the marker opacity of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, opacity=None, **kwargs): + def __init__(self, + arg=None, + opacity=None, + **kwargs + ): """ Construct a new Marker object @@ -59,10 +64,10 @@ def __init__(self, arg=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -74,24 +79,20 @@ def __init__(self, arg=None, opacity=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmap.unselected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmap.unselected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmap.unselected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v + self._init_provided('opacity', arg, opacity) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/__init__.py b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/__init__.py index bb31cb6217a..07c6ea98647 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._hoverlabel import Hoverlabel @@ -17,24 +16,10 @@ from . import unselected else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [ - ".colorbar", - ".hoverlabel", - ".legendgrouptitle", - ".marker", - ".selected", - ".unselected", - ], - [ - "._colorbar.ColorBar", - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._marker.Marker", - "._selected.Selected", - "._stream.Stream", - "._unselected.Unselected", - ], + ['.colorbar', '.hoverlabel', '.legendgrouptitle', '.marker', '.selected', '.unselected'], + ['._colorbar.ColorBar', '._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._marker.Marker', '._selected.Selected', '._stream.Stream', '._unselected.Unselected'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/_colorbar.py b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/_colorbar.py index c3e5f1f710f..157995ad370 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmapbox" - _path_str = "choroplethmapbox.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'choroplethmapbox' + _path_str = 'choroplethmapbox.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.choroplethmapbox.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.choroplethmapbox.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.choroplethmapbox.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.choroplethmapbox.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmapbox.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmapbox.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmapbox.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/_hoverlabel.py index de0a533c59e..308465ad4f3 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmapbox" - _path_str = "choroplethmapbox.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'choroplethmapbox' + _path_str = 'choroplethmapbox.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.choroplethmapbox.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmapbox.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmapbox.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmapbox.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/_legendgrouptitle.py index 90568545406..5a68e13c02c 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmapbox" - _path_str = "choroplethmapbox.legendgrouptitle" + _parent_path_str = 'choroplethmapbox' + _path_str = 'choroplethmapbox.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.choroplethmapbox.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmapbox.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmapbox.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmapbox.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/_marker.py b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/_marker.py index 40f0fe65166..4bbc54ee6d6 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmapbox" - _path_str = "choroplethmapbox.marker" + _parent_path_str = 'choroplethmapbox' + _path_str = 'choroplethmapbox.marker' _valid_props = {"line", "opacity", "opacitysrc"} # line @@ -21,34 +23,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. - Returns ------- plotly.graph_objs.choroplethmapbox.marker.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # opacity # ------- @@ -65,11 +48,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # opacitysrc # ---------- @@ -85,11 +68,11 @@ def opacitysrc(self): ------- str """ - return self["opacitysrc"] + return self['opacitysrc'] @opacitysrc.setter def opacitysrc(self, val): - self["opacitysrc"] = val + self['opacitysrc'] = val # Self properties description # --------------------------- @@ -105,8 +88,13 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `opacity`. """ - - def __init__(self, arg=None, line=None, opacity=None, opacitysrc=None, **kwargs): + def __init__(self, + arg=None, + line=None, + opacity=None, + opacitysrc=None, + **kwargs + ): """ Construct a new Marker object @@ -129,10 +117,10 @@ def __init__(self, arg=None, line=None, opacity=None, opacitysrc=None, **kwargs) ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -144,32 +132,22 @@ def __init__(self, arg=None, line=None, opacity=None, opacitysrc=None, **kwargs) elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmapbox.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmapbox.Marker`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmapbox.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("opacitysrc", None) - _v = opacitysrc if opacitysrc is not None else _v - if _v is not None: - self["opacitysrc"] = _v + self._init_provided('line', arg, line) + self._init_provided('opacity', arg, opacity) + self._init_provided('opacitysrc', arg, opacitysrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/_selected.py b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/_selected.py index 0d8b3d0bce5..385b0e993f0 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/_selected.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/_selected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Selected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmapbox" - _path_str = "choroplethmapbox.selected" + _parent_path_str = 'choroplethmapbox' + _path_str = 'choroplethmapbox.selected' _valid_props = {"marker"} # marker @@ -21,20 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - opacity - Sets the marker opacity of selected points. - Returns ------- plotly.graph_objs.choroplethmapbox.selected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # Self properties description # --------------------------- @@ -45,8 +42,11 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.choroplethmapbox.selected. Marker` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + **kwargs + ): """ Construct a new Selected object @@ -64,10 +64,10 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") + super(Selected, self).__init__('selected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -79,24 +79,20 @@ def __init__(self, arg=None, marker=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmapbox.Selected constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmapbox.Selected`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmapbox.Selected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v + self._init_provided('marker', arg, marker) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/_stream.py b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/_stream.py index 109aa2aaadc..ac92bd12eaa 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmapbox" - _path_str = "choroplethmapbox.stream" + _parent_path_str = 'choroplethmapbox' + _path_str = 'choroplethmapbox.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmapbox.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmapbox.Stream`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmapbox.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/_unselected.py b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/_unselected.py index e42b481cb20..cd8a1e38e42 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/_unselected.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/_unselected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Unselected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmapbox" - _path_str = "choroplethmapbox.unselected" + _parent_path_str = 'choroplethmapbox' + _path_str = 'choroplethmapbox.unselected' _valid_props = {"marker"} # marker @@ -21,21 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.choroplethmapbox.unselected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # Self properties description # --------------------------- @@ -46,8 +42,11 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.choroplethmapbox.unselecte d.Marker` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + **kwargs + ): """ Construct a new Unselected object @@ -65,10 +64,10 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") + super(Unselected, self).__init__('unselected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -80,24 +79,20 @@ def __init__(self, arg=None, marker=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmapbox.Unselected constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmapbox.Unselected`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmapbox.Unselected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v + self._init_provided('marker', arg, marker) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/colorbar/_tickfont.py index 749bc578d01..482636618a7 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmapbox.colorbar" - _path_str = "choroplethmapbox.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'choroplethmapbox.colorbar' + _path_str = 'choroplethmapbox.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmapbox.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmapbox.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmapbox.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/colorbar/_tickformatstop.py index 396ee959d26..59abd68e0f5 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmapbox.colorbar" - _path_str = "choroplethmapbox.colorbar.tickformatstop" + _parent_path_str = 'choroplethmapbox.colorbar' + _path_str = 'choroplethmapbox.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmapbox.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmapbox.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmapbox.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/colorbar/_title.py index 2fe9e2be4e3..2cbe0f7fce3 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmapbox.colorbar" - _path_str = "choroplethmapbox.colorbar.title" + _parent_path_str = 'choroplethmapbox.colorbar' + _path_str = 'choroplethmapbox.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.choroplethmapbox.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmapbox.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmapbox.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmapbox.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/colorbar/title/_font.py index 91f2657d339..8ed13f30732 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmapbox.colorbar.title" - _path_str = "choroplethmapbox.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'choroplethmapbox.colorbar.title' + _path_str = 'choroplethmapbox.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmapbox.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmapbox.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmapbox.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/hoverlabel/_font.py index 20baef31103..71b0283c614 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmapbox.hoverlabel" - _path_str = "choroplethmapbox.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'choroplethmapbox.hoverlabel' + _path_str = 'choroplethmapbox.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmapbox.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmapbox.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmapbox.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/legendgrouptitle/_font.py index cfc6f229388..5c38822bb30 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmapbox.legendgrouptitle" - _path_str = "choroplethmapbox.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'choroplethmapbox.legendgrouptitle' + _path_str = 'choroplethmapbox.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmapbox.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmapbox.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmapbox.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/marker/__init__.py index 8722c15a2b8..a745ef6458a 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/marker/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import Line else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._line.Line'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._line.Line"]) diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/marker/_line.py b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/marker/_line.py index 356d7ba20d7..2a11eea256f 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/marker/_line.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/marker/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmapbox.marker" - _path_str = "choroplethmapbox.marker.line" + _parent_path_str = 'choroplethmapbox.marker' + _path_str = 'choroplethmapbox.marker.line' _valid_props = {"color", "colorsrc", "width", "widthsrc"} # color @@ -25,53 +27,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -87,11 +54,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # width # ----- @@ -108,11 +75,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # widthsrc # -------- @@ -128,11 +95,11 @@ def widthsrc(self): ------- str """ - return self["widthsrc"] + return self['widthsrc'] @widthsrc.setter def widthsrc(self, val): - self["widthsrc"] = val + self['widthsrc'] = val # Self properties description # --------------------------- @@ -155,10 +122,14 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `width`. """ - - def __init__( - self, arg=None, color=None, colorsrc=None, width=None, widthsrc=None, **kwargs - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + width=None, + widthsrc=None, + **kwargs + ): """ Construct a new Line object @@ -188,10 +159,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -203,36 +174,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmapbox.marker.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmapbox.marker.Line`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmapbox.marker.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("widthsrc", None) - _v = widthsrc if widthsrc is not None else _v - if _v is not None: - self["widthsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('width', arg, width) + self._init_provided('widthsrc', arg, widthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/selected/__init__.py index dfd34067137..5abe297c1ca 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/selected/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._marker.Marker'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._marker.Marker"]) diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/selected/_marker.py b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/selected/_marker.py index f4ec556e342..140f6dfd64a 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/selected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/selected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmapbox.selected" - _path_str = "choroplethmapbox.selected.marker" + _parent_path_str = 'choroplethmapbox.selected' + _path_str = 'choroplethmapbox.selected.marker' _valid_props = {"opacity"} # opacity @@ -24,11 +26,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # Self properties description # --------------------------- @@ -38,8 +40,11 @@ def _prop_descriptions(self): opacity Sets the marker opacity of selected points. """ - - def __init__(self, arg=None, opacity=None, **kwargs): + def __init__(self, + arg=None, + opacity=None, + **kwargs + ): """ Construct a new Marker object @@ -56,10 +61,10 @@ def __init__(self, arg=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -71,24 +76,20 @@ def __init__(self, arg=None, opacity=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmapbox.selected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmapbox.selected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmapbox.selected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v + self._init_provided('opacity', arg, opacity) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/unselected/__init__.py index dfd34067137..5abe297c1ca 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/unselected/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._marker.Marker'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._marker.Marker"]) diff --git a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/unselected/_marker.py b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/unselected/_marker.py index 1d6bdff0ab5..aa6324abf89 100644 --- a/packages/python/plotly/plotly/graph_objs/choroplethmapbox/unselected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/choroplethmapbox/unselected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "choroplethmapbox.unselected" - _path_str = "choroplethmapbox.unselected.marker" + _parent_path_str = 'choroplethmapbox.unselected' + _path_str = 'choroplethmapbox.unselected.marker' _valid_props = {"opacity"} # opacity @@ -25,11 +27,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # Self properties description # --------------------------- @@ -40,8 +42,11 @@ def _prop_descriptions(self): Sets the marker opacity of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, opacity=None, **kwargs): + def __init__(self, + arg=None, + opacity=None, + **kwargs + ): """ Construct a new Marker object @@ -59,10 +64,10 @@ def __init__(self, arg=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -74,24 +79,20 @@ def __init__(self, arg=None, opacity=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.choroplethmapbox.unselected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.choroplethmapbox.unselected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.choroplethmapbox.unselected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v + self._init_provided('opacity', arg, opacity) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/cone/__init__.py b/packages/python/plotly/plotly/graph_objs/cone/__init__.py index 6faa693279f..244b32a925b 100644 --- a/packages/python/plotly/plotly/graph_objs/cone/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/cone/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._hoverlabel import Hoverlabel @@ -13,16 +12,10 @@ from . import legendgrouptitle else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".colorbar", ".hoverlabel", ".legendgrouptitle"], - [ - "._colorbar.ColorBar", - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._lighting.Lighting", - "._lightposition.Lightposition", - "._stream.Stream", - ], + ['.colorbar', '.hoverlabel', '.legendgrouptitle'], + ['._colorbar.ColorBar', '._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._lighting.Lighting', '._lightposition.Lightposition', '._stream.Stream'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/cone/_colorbar.py b/packages/python/plotly/plotly/graph_objs/cone/_colorbar.py index d0a9bfcca91..5b4f83ce7dc 100644 --- a/packages/python/plotly/plotly/graph_objs/cone/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/cone/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "cone" - _path_str = "cone.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'cone' + _path_str = 'cone.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.cone.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.cone.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.cone.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.cone.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1984,10 +1698,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1999,216 +1713,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.cone.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.cone.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.cone.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/cone/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/cone/_hoverlabel.py index ef2366f78ba..ca79d3237ae 100644 --- a/packages/python/plotly/plotly/graph_objs/cone/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/cone/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "cone" - _path_str = "cone.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'cone' + _path_str = 'cone.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.cone.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.cone.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.cone.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.cone.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/cone/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/cone/_legendgrouptitle.py index 24dc61b02e8..ba754a14e27 100644 --- a/packages/python/plotly/plotly/graph_objs/cone/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/cone/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "cone" - _path_str = "cone.legendgrouptitle" + _parent_path_str = 'cone' + _path_str = 'cone.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.cone.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.cone.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.cone.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.cone.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/cone/_lighting.py b/packages/python/plotly/plotly/graph_objs/cone/_lighting.py index d30017a71f5..445b6f0e602 100644 --- a/packages/python/plotly/plotly/graph_objs/cone/_lighting.py +++ b/packages/python/plotly/plotly/graph_objs/cone/_lighting.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,17 +8,9 @@ class Lighting(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "cone" - _path_str = "cone.lighting" - _valid_props = { - "ambient", - "diffuse", - "facenormalsepsilon", - "fresnel", - "roughness", - "specular", - "vertexnormalsepsilon", - } + _parent_path_str = 'cone' + _path_str = 'cone.lighting' + _valid_props = {"ambient", "diffuse", "facenormalsepsilon", "fresnel", "roughness", "specular", "vertexnormalsepsilon"} # ambient # ------- @@ -33,11 +27,11 @@ def ambient(self): ------- int|float """ - return self["ambient"] + return self['ambient'] @ambient.setter def ambient(self, val): - self["ambient"] = val + self['ambient'] = val # diffuse # ------- @@ -54,11 +48,11 @@ def diffuse(self): ------- int|float """ - return self["diffuse"] + return self['diffuse'] @diffuse.setter def diffuse(self, val): - self["diffuse"] = val + self['diffuse'] = val # facenormalsepsilon # ------------------ @@ -75,11 +69,11 @@ def facenormalsepsilon(self): ------- int|float """ - return self["facenormalsepsilon"] + return self['facenormalsepsilon'] @facenormalsepsilon.setter def facenormalsepsilon(self, val): - self["facenormalsepsilon"] = val + self['facenormalsepsilon'] = val # fresnel # ------- @@ -97,11 +91,11 @@ def fresnel(self): ------- int|float """ - return self["fresnel"] + return self['fresnel'] @fresnel.setter def fresnel(self, val): - self["fresnel"] = val + self['fresnel'] = val # roughness # --------- @@ -118,11 +112,11 @@ def roughness(self): ------- int|float """ - return self["roughness"] + return self['roughness'] @roughness.setter def roughness(self, val): - self["roughness"] = val + self['roughness'] = val # specular # -------- @@ -139,11 +133,11 @@ def specular(self): ------- int|float """ - return self["specular"] + return self['specular'] @specular.setter def specular(self, val): - self["specular"] = val + self['specular'] = val # vertexnormalsepsilon # -------------------- @@ -160,11 +154,11 @@ def vertexnormalsepsilon(self): ------- int|float """ - return self["vertexnormalsepsilon"] + return self['vertexnormalsepsilon'] @vertexnormalsepsilon.setter def vertexnormalsepsilon(self, val): - self["vertexnormalsepsilon"] = val + self['vertexnormalsepsilon'] = val # Self properties description # --------------------------- @@ -195,19 +189,17 @@ def _prop_descriptions(self): Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry. """ - - def __init__( - self, - arg=None, - ambient=None, - diffuse=None, - facenormalsepsilon=None, - fresnel=None, - roughness=None, - specular=None, - vertexnormalsepsilon=None, - **kwargs, - ): + def __init__(self, + arg=None, + ambient=None, + diffuse=None, + facenormalsepsilon=None, + fresnel=None, + roughness=None, + specular=None, + vertexnormalsepsilon=None, + **kwargs + ): """ Construct a new Lighting object @@ -244,10 +236,10 @@ def __init__( ------- Lighting """ - super(Lighting, self).__init__("lighting") + super(Lighting, self).__init__('lighting') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -259,48 +251,26 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.cone.Lighting constructor must be a dict or -an instance of :class:`plotly.graph_objs.cone.Lighting`""" - ) +an instance of :class:`plotly.graph_objs.cone.Lighting`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("ambient", None) - _v = ambient if ambient is not None else _v - if _v is not None: - self["ambient"] = _v - _v = arg.pop("diffuse", None) - _v = diffuse if diffuse is not None else _v - if _v is not None: - self["diffuse"] = _v - _v = arg.pop("facenormalsepsilon", None) - _v = facenormalsepsilon if facenormalsepsilon is not None else _v - if _v is not None: - self["facenormalsepsilon"] = _v - _v = arg.pop("fresnel", None) - _v = fresnel if fresnel is not None else _v - if _v is not None: - self["fresnel"] = _v - _v = arg.pop("roughness", None) - _v = roughness if roughness is not None else _v - if _v is not None: - self["roughness"] = _v - _v = arg.pop("specular", None) - _v = specular if specular is not None else _v - if _v is not None: - self["specular"] = _v - _v = arg.pop("vertexnormalsepsilon", None) - _v = vertexnormalsepsilon if vertexnormalsepsilon is not None else _v - if _v is not None: - self["vertexnormalsepsilon"] = _v + self._init_provided('ambient', arg, ambient) + self._init_provided('diffuse', arg, diffuse) + self._init_provided('facenormalsepsilon', arg, facenormalsepsilon) + self._init_provided('fresnel', arg, fresnel) + self._init_provided('roughness', arg, roughness) + self._init_provided('specular', arg, specular) + self._init_provided('vertexnormalsepsilon', arg, vertexnormalsepsilon) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/cone/_lightposition.py b/packages/python/plotly/plotly/graph_objs/cone/_lightposition.py index 9751ecc0837..55c27108e0f 100644 --- a/packages/python/plotly/plotly/graph_objs/cone/_lightposition.py +++ b/packages/python/plotly/plotly/graph_objs/cone/_lightposition.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Lightposition(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "cone" - _path_str = "cone.lightposition" + _parent_path_str = 'cone' + _path_str = 'cone.lightposition' _valid_props = {"x", "y", "z"} # x @@ -24,11 +26,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @@ -44,11 +46,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # z # - @@ -64,11 +66,11 @@ def z(self): ------- int|float """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # Self properties description # --------------------------- @@ -85,8 +87,13 @@ def _prop_descriptions(self): Numeric vector, representing the Z coordinate for each vertex. """ - - def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): + def __init__(self, + arg=None, + x=None, + y=None, + z=None, + **kwargs + ): """ Construct a new Lightposition object @@ -110,10 +117,10 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Lightposition """ - super(Lightposition, self).__init__("lightposition") + super(Lightposition, self).__init__('lightposition') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -125,32 +132,22 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.cone.Lightposition constructor must be a dict or -an instance of :class:`plotly.graph_objs.cone.Lightposition`""" - ) +an instance of :class:`plotly.graph_objs.cone.Lightposition`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) + self._init_provided('z', arg, z) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/cone/_stream.py b/packages/python/plotly/plotly/graph_objs/cone/_stream.py index 369a19fffec..9656be6bced 100644 --- a/packages/python/plotly/plotly/graph_objs/cone/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/cone/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "cone" - _path_str = "cone.stream" + _parent_path_str = 'cone' + _path_str = 'cone.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -93,10 +99,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -108,28 +114,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.cone.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.cone.Stream`""" - ) +an instance of :class:`plotly.graph_objs.cone.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/cone/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/cone/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/cone/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/cone/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/cone/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/cone/colorbar/_tickfont.py index 23812703859..10e395154d1 100644 --- a/packages/python/plotly/plotly/graph_objs/cone/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/cone/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "cone.colorbar" - _path_str = "cone.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'cone.colorbar' + _path_str = 'cone.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.cone.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.cone.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.cone.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/cone/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/cone/colorbar/_tickformatstop.py index e0fee742fd8..cf0d5ef28c1 100644 --- a/packages/python/plotly/plotly/graph_objs/cone/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/cone/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "cone.colorbar" - _path_str = "cone.colorbar.tickformatstop" + _parent_path_str = 'cone.colorbar' + _path_str = 'cone.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.cone.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.cone.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.cone.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/cone/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/cone/colorbar/_title.py index 97e1d202eb5..c2b7cb3b553 100644 --- a/packages/python/plotly/plotly/graph_objs/cone/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/cone/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "cone.colorbar" - _path_str = "cone.colorbar.title" + _parent_path_str = 'cone.colorbar' + _path_str = 'cone.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.cone.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.cone.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.cone.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.cone.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/cone/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/cone/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/cone/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/cone/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/cone/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/cone/colorbar/title/_font.py index 9f0f703aa9c..46fa8252d20 100644 --- a/packages/python/plotly/plotly/graph_objs/cone/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/cone/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "cone.colorbar.title" - _path_str = "cone.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'cone.colorbar.title' + _path_str = 'cone.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.cone.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.cone.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.cone.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/cone/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/cone/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/cone/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/cone/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/cone/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/cone/hoverlabel/_font.py index b91545dc98b..5b38faf8c93 100644 --- a/packages/python/plotly/plotly/graph_objs/cone/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/cone/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "cone.hoverlabel" - _path_str = "cone.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'cone.hoverlabel' + _path_str = 'cone.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.cone.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.cone.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.cone.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/cone/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/cone/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/cone/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/cone/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/cone/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/cone/legendgrouptitle/_font.py index 63ce18de9a0..5bf2e498d97 100644 --- a/packages/python/plotly/plotly/graph_objs/cone/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/cone/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "cone.legendgrouptitle" - _path_str = "cone.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'cone.legendgrouptitle' + _path_str = 'cone.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.cone.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.cone.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.cone.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contour/__init__.py b/packages/python/plotly/plotly/graph_objs/contour/__init__.py index 7b983d64523..bd710981baf 100644 --- a/packages/python/plotly/plotly/graph_objs/contour/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/contour/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._contours import Contours @@ -15,17 +14,10 @@ from . import legendgrouptitle else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".colorbar", ".contours", ".hoverlabel", ".legendgrouptitle"], - [ - "._colorbar.ColorBar", - "._contours.Contours", - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._line.Line", - "._stream.Stream", - "._textfont.Textfont", - ], + ['.colorbar', '.contours', '.hoverlabel', '.legendgrouptitle'], + ['._colorbar.ColorBar', '._contours.Contours', '._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._line.Line', '._stream.Stream', '._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/contour/_colorbar.py b/packages/python/plotly/plotly/graph_objs/contour/_colorbar.py index 317b4ef44b1..f928e200fd7 100644 --- a/packages/python/plotly/plotly/graph_objs/contour/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/contour/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "contour" - _path_str = "contour.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'contour' + _path_str = 'contour.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.contour.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.contour.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.contour.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.contour.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.contour.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.contour.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.contour.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contour/_contours.py b/packages/python/plotly/plotly/graph_objs/contour/_contours.py index 4ad82b3cd13..9c2e14d91c7 100644 --- a/packages/python/plotly/plotly/graph_objs/contour/_contours.py +++ b/packages/python/plotly/plotly/graph_objs/contour/_contours.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,21 +8,9 @@ class Contours(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "contour" - _path_str = "contour.contours" - _valid_props = { - "coloring", - "end", - "labelfont", - "labelformat", - "operation", - "showlabels", - "showlines", - "size", - "start", - "type", - "value", - } + _parent_path_str = 'contour' + _path_str = 'contour.contours' + _valid_props = {"coloring", "end", "labelfont", "labelformat", "operation", "showlabels", "showlines", "size", "start", "type", "value"} # coloring # -------- @@ -41,11 +31,11 @@ def coloring(self): ------- Any """ - return self["coloring"] + return self['coloring'] @coloring.setter def coloring(self, val): - self["coloring"] = val + self['coloring'] = val # end # --- @@ -62,11 +52,11 @@ def end(self): ------- int|float """ - return self["end"] + return self['end'] @end.setter def end(self, val): - self["end"] = val + self['end'] = val # labelfont # --------- @@ -83,61 +73,15 @@ def labelfont(self): - A dict of string/value properties that will be passed to the Labelfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.contour.contours.Labelfont """ - return self["labelfont"] + return self['labelfont'] @labelfont.setter def labelfont(self, val): - self["labelfont"] = val + self['labelfont'] = val # labelformat # ----------- @@ -157,11 +101,11 @@ def labelformat(self): ------- str """ - return self["labelformat"] + return self['labelformat'] @labelformat.setter def labelformat(self, val): - self["labelformat"] = val + self['labelformat'] = val # operation # --------- @@ -186,11 +130,11 @@ def operation(self): ------- Any """ - return self["operation"] + return self['operation'] @operation.setter def operation(self, val): - self["operation"] = val + self['operation'] = val # showlabels # ---------- @@ -207,11 +151,11 @@ def showlabels(self): ------- bool """ - return self["showlabels"] + return self['showlabels'] @showlabels.setter def showlabels(self, val): - self["showlabels"] = val + self['showlabels'] = val # showlines # --------- @@ -228,11 +172,11 @@ def showlines(self): ------- bool """ - return self["showlines"] + return self['showlines'] @showlines.setter def showlines(self, val): - self["showlines"] = val + self['showlines'] = val # size # ---- @@ -248,11 +192,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # start # ----- @@ -269,11 +213,11 @@ def start(self): ------- int|float """ - return self["start"] + return self['start'] @start.setter def start(self, val): - self["start"] = val + self['start'] = val # type # ---- @@ -293,11 +237,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # value # ----- @@ -318,11 +262,11 @@ def value(self): ------- Any """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -385,23 +329,21 @@ def _prop_descriptions(self): array of two numbers where the first is the lower bound and the second is the upper bound. """ - - def __init__( - self, - arg=None, - coloring=None, - end=None, - labelfont=None, - labelformat=None, - operation=None, - showlabels=None, - showlines=None, - size=None, - start=None, - type=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + coloring=None, + end=None, + labelfont=None, + labelformat=None, + operation=None, + showlabels=None, + showlines=None, + size=None, + start=None, + type=None, + value=None, + **kwargs + ): """ Construct a new Contours object @@ -471,10 +413,10 @@ def __init__( ------- Contours """ - super(Contours, self).__init__("contours") + super(Contours, self).__init__('contours') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -486,64 +428,30 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.contour.Contours constructor must be a dict or -an instance of :class:`plotly.graph_objs.contour.Contours`""" - ) +an instance of :class:`plotly.graph_objs.contour.Contours`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("coloring", None) - _v = coloring if coloring is not None else _v - if _v is not None: - self["coloring"] = _v - _v = arg.pop("end", None) - _v = end if end is not None else _v - if _v is not None: - self["end"] = _v - _v = arg.pop("labelfont", None) - _v = labelfont if labelfont is not None else _v - if _v is not None: - self["labelfont"] = _v - _v = arg.pop("labelformat", None) - _v = labelformat if labelformat is not None else _v - if _v is not None: - self["labelformat"] = _v - _v = arg.pop("operation", None) - _v = operation if operation is not None else _v - if _v is not None: - self["operation"] = _v - _v = arg.pop("showlabels", None) - _v = showlabels if showlabels is not None else _v - if _v is not None: - self["showlabels"] = _v - _v = arg.pop("showlines", None) - _v = showlines if showlines is not None else _v - if _v is not None: - self["showlines"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("start", None) - _v = start if start is not None else _v - if _v is not None: - self["start"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('coloring', arg, coloring) + self._init_provided('end', arg, end) + self._init_provided('labelfont', arg, labelfont) + self._init_provided('labelformat', arg, labelformat) + self._init_provided('operation', arg, operation) + self._init_provided('showlabels', arg, showlabels) + self._init_provided('showlines', arg, showlines) + self._init_provided('size', arg, size) + self._init_provided('start', arg, start) + self._init_provided('type', arg, type) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contour/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/contour/_hoverlabel.py index 52d7b6bf37a..09ba548cf43 100644 --- a/packages/python/plotly/plotly/graph_objs/contour/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/contour/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "contour" - _path_str = "contour.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'contour' + _path_str = 'contour.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.contour.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.contour.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.contour.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.contour.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contour/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/contour/_legendgrouptitle.py index 40421668d92..075b40a9b6c 100644 --- a/packages/python/plotly/plotly/graph_objs/contour/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/contour/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "contour" - _path_str = "contour.legendgrouptitle" + _parent_path_str = 'contour' + _path_str = 'contour.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.contour.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.contour.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.contour.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.contour.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contour/_line.py b/packages/python/plotly/plotly/graph_objs/contour/_line.py index 9e307806d73..fa4e8e3f7c3 100644 --- a/packages/python/plotly/plotly/graph_objs/contour/_line.py +++ b/packages/python/plotly/plotly/graph_objs/contour/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "contour" - _path_str = "contour.line" + _parent_path_str = 'contour' + _path_str = 'contour.line' _valid_props = {"color", "dash", "smoothing", "width"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # dash # ---- @@ -90,11 +57,11 @@ def dash(self): ------- str """ - return self["dash"] + return self['dash'] @dash.setter def dash(self, val): - self["dash"] = val + self['dash'] = val # smoothing # --------- @@ -111,11 +78,11 @@ def smoothing(self): ------- int|float """ - return self["smoothing"] + return self['smoothing'] @smoothing.setter def smoothing(self, val): - self["smoothing"] = val + self['smoothing'] = val # width # ----- @@ -133,11 +100,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -160,10 +127,14 @@ def _prop_descriptions(self): when `contours.type` is "levels". Defaults to 2 when `contour.type` is "constraint". """ - - def __init__( - self, arg=None, color=None, dash=None, smoothing=None, width=None, **kwargs - ): + def __init__(self, + arg=None, + color=None, + dash=None, + smoothing=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -192,10 +163,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -207,36 +178,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.contour.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.contour.Line`""" - ) +an instance of :class:`plotly.graph_objs.contour.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("dash", None) - _v = dash if dash is not None else _v - if _v is not None: - self["dash"] = _v - _v = arg.pop("smoothing", None) - _v = smoothing if smoothing is not None else _v - if _v is not None: - self["smoothing"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('dash', arg, dash) + self._init_provided('smoothing', arg, smoothing) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contour/_stream.py b/packages/python/plotly/plotly/graph_objs/contour/_stream.py index 25e7f6ff1d2..58ce04130ad 100644 --- a/packages/python/plotly/plotly/graph_objs/contour/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/contour/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "contour" - _path_str = "contour.stream" + _parent_path_str = 'contour' + _path_str = 'contour.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.contour.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.contour.Stream`""" - ) +an instance of :class:`plotly.graph_objs.contour.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contour/_textfont.py b/packages/python/plotly/plotly/graph_objs/contour/_textfont.py index 96dabd6ae98..ac613f307b7 100644 --- a/packages/python/plotly/plotly/graph_objs/contour/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/contour/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "contour" - _path_str = "contour.textfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'contour' + _path_str = 'contour.textfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Textfont object @@ -378,10 +333,10 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -393,56 +348,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.contour.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.contour.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.contour.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contour/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/contour/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/contour/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/contour/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/contour/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/contour/colorbar/_tickfont.py index b1bdca84196..3b691231b29 100644 --- a/packages/python/plotly/plotly/graph_objs/contour/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/contour/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "contour.colorbar" - _path_str = "contour.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'contour.colorbar' + _path_str = 'contour.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.contour.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.contour.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.contour.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contour/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/contour/colorbar/_tickformatstop.py index 6fc65bf4983..b7a6742a306 100644 --- a/packages/python/plotly/plotly/graph_objs/contour/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/contour/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "contour.colorbar" - _path_str = "contour.colorbar.tickformatstop" + _parent_path_str = 'contour.colorbar' + _path_str = 'contour.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.contour.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.contour.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.contour.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contour/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/contour/colorbar/_title.py index 6e1d84d778a..fe35c104f7c 100644 --- a/packages/python/plotly/plotly/graph_objs/contour/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/contour/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "contour.colorbar" - _path_str = "contour.colorbar.title" + _parent_path_str = 'contour.colorbar' + _path_str = 'contour.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.contour.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.contour.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.contour.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.contour.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contour/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/contour/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/contour/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/contour/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/contour/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/contour/colorbar/title/_font.py index 88ab8d63665..ca6a33add04 100644 --- a/packages/python/plotly/plotly/graph_objs/contour/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/contour/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "contour.colorbar.title" - _path_str = "contour.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'contour.colorbar.title' + _path_str = 'contour.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.contour.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.contour.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.contour.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contour/contours/__init__.py b/packages/python/plotly/plotly/graph_objs/contour/contours/__init__.py index f1ee5b7524b..7cedabc68e2 100644 --- a/packages/python/plotly/plotly/graph_objs/contour/contours/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/contour/contours/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._labelfont import Labelfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._labelfont.Labelfont"] + __name__, + [], + ['._labelfont.Labelfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/contour/contours/_labelfont.py b/packages/python/plotly/plotly/graph_objs/contour/contours/_labelfont.py index 1e3a2c32d38..a58ffd4045e 100644 --- a/packages/python/plotly/plotly/graph_objs/contour/contours/_labelfont.py +++ b/packages/python/plotly/plotly/graph_objs/contour/contours/_labelfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Labelfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "contour.contours" - _path_str = "contour.contours.labelfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'contour.contours' + _path_str = 'contour.contours.labelfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Labelfont object @@ -379,10 +334,10 @@ def __init__( ------- Labelfont """ - super(Labelfont, self).__init__("labelfont") + super(Labelfont, self).__init__('labelfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -394,56 +349,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.contour.contours.Labelfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.contour.contours.Labelfont`""" - ) +an instance of :class:`plotly.graph_objs.contour.contours.Labelfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contour/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/contour/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/contour/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/contour/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/contour/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/contour/hoverlabel/_font.py index 0eea706a79f..415dd748d42 100644 --- a/packages/python/plotly/plotly/graph_objs/contour/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/contour/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "contour.hoverlabel" - _path_str = "contour.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'contour.hoverlabel' + _path_str = 'contour.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.contour.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.contour.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.contour.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contour/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/contour/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/contour/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/contour/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/contour/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/contour/legendgrouptitle/_font.py index 936dcca095f..de4d8b71183 100644 --- a/packages/python/plotly/plotly/graph_objs/contour/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/contour/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "contour.legendgrouptitle" - _path_str = "contour.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'contour.legendgrouptitle' + _path_str = 'contour.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.contour.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.contour.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.contour.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contourcarpet/__init__.py b/packages/python/plotly/plotly/graph_objs/contourcarpet/__init__.py index 30f6437a533..37df9041d83 100644 --- a/packages/python/plotly/plotly/graph_objs/contourcarpet/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/contourcarpet/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._contours import Contours @@ -12,15 +11,10 @@ from . import legendgrouptitle else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".colorbar", ".contours", ".legendgrouptitle"], - [ - "._colorbar.ColorBar", - "._contours.Contours", - "._legendgrouptitle.Legendgrouptitle", - "._line.Line", - "._stream.Stream", - ], + ['.colorbar', '.contours', '.legendgrouptitle'], + ['._colorbar.ColorBar', '._contours.Contours', '._legendgrouptitle.Legendgrouptitle', '._line.Line', '._stream.Stream'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/contourcarpet/_colorbar.py b/packages/python/plotly/plotly/graph_objs/contourcarpet/_colorbar.py index 9a7d615e5f5..0042ce5331e 100644 --- a/packages/python/plotly/plotly/graph_objs/contourcarpet/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/contourcarpet/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "contourcarpet" - _path_str = "contourcarpet.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'contourcarpet' + _path_str = 'contourcarpet.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.contourcarpet.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.contourcarpet.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.contourcarpet.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.contourcarpet.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.contourcarpet.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.contourcarpet.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.contourcarpet.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contourcarpet/_contours.py b/packages/python/plotly/plotly/graph_objs/contourcarpet/_contours.py index 1a42279c362..4e53f507d7c 100644 --- a/packages/python/plotly/plotly/graph_objs/contourcarpet/_contours.py +++ b/packages/python/plotly/plotly/graph_objs/contourcarpet/_contours.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,21 +8,9 @@ class Contours(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "contourcarpet" - _path_str = "contourcarpet.contours" - _valid_props = { - "coloring", - "end", - "labelfont", - "labelformat", - "operation", - "showlabels", - "showlines", - "size", - "start", - "type", - "value", - } + _parent_path_str = 'contourcarpet' + _path_str = 'contourcarpet.contours' + _valid_props = {"coloring", "end", "labelfont", "labelformat", "operation", "showlabels", "showlines", "size", "start", "type", "value"} # coloring # -------- @@ -40,11 +30,11 @@ def coloring(self): ------- Any """ - return self["coloring"] + return self['coloring'] @coloring.setter def coloring(self, val): - self["coloring"] = val + self['coloring'] = val # end # --- @@ -61,11 +51,11 @@ def end(self): ------- int|float """ - return self["end"] + return self['end'] @end.setter def end(self, val): - self["end"] = val + self['end'] = val # labelfont # --------- @@ -82,61 +72,15 @@ def labelfont(self): - A dict of string/value properties that will be passed to the Labelfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.contourcarpet.contours.Labelfont """ - return self["labelfont"] + return self['labelfont'] @labelfont.setter def labelfont(self, val): - self["labelfont"] = val + self['labelfont'] = val # labelformat # ----------- @@ -156,11 +100,11 @@ def labelformat(self): ------- str """ - return self["labelformat"] + return self['labelformat'] @labelformat.setter def labelformat(self, val): - self["labelformat"] = val + self['labelformat'] = val # operation # --------- @@ -185,11 +129,11 @@ def operation(self): ------- Any """ - return self["operation"] + return self['operation'] @operation.setter def operation(self, val): - self["operation"] = val + self['operation'] = val # showlabels # ---------- @@ -206,11 +150,11 @@ def showlabels(self): ------- bool """ - return self["showlabels"] + return self['showlabels'] @showlabels.setter def showlabels(self, val): - self["showlabels"] = val + self['showlabels'] = val # showlines # --------- @@ -227,11 +171,11 @@ def showlines(self): ------- bool """ - return self["showlines"] + return self['showlines'] @showlines.setter def showlines(self, val): - self["showlines"] = val + self['showlines'] = val # size # ---- @@ -247,11 +191,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # start # ----- @@ -268,11 +212,11 @@ def start(self): ------- int|float """ - return self["start"] + return self['start'] @start.setter def start(self, val): - self["start"] = val + self['start'] = val # type # ---- @@ -292,11 +236,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # value # ----- @@ -317,11 +261,11 @@ def value(self): ------- Any """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -383,23 +327,21 @@ def _prop_descriptions(self): array of two numbers where the first is the lower bound and the second is the upper bound. """ - - def __init__( - self, - arg=None, - coloring=None, - end=None, - labelfont=None, - labelformat=None, - operation=None, - showlabels=None, - showlines=None, - size=None, - start=None, - type=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + coloring=None, + end=None, + labelfont=None, + labelformat=None, + operation=None, + showlabels=None, + showlines=None, + size=None, + start=None, + type=None, + value=None, + **kwargs + ): """ Construct a new Contours object @@ -468,10 +410,10 @@ def __init__( ------- Contours """ - super(Contours, self).__init__("contours") + super(Contours, self).__init__('contours') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,64 +425,30 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.contourcarpet.Contours constructor must be a dict or -an instance of :class:`plotly.graph_objs.contourcarpet.Contours`""" - ) +an instance of :class:`plotly.graph_objs.contourcarpet.Contours`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("coloring", None) - _v = coloring if coloring is not None else _v - if _v is not None: - self["coloring"] = _v - _v = arg.pop("end", None) - _v = end if end is not None else _v - if _v is not None: - self["end"] = _v - _v = arg.pop("labelfont", None) - _v = labelfont if labelfont is not None else _v - if _v is not None: - self["labelfont"] = _v - _v = arg.pop("labelformat", None) - _v = labelformat if labelformat is not None else _v - if _v is not None: - self["labelformat"] = _v - _v = arg.pop("operation", None) - _v = operation if operation is not None else _v - if _v is not None: - self["operation"] = _v - _v = arg.pop("showlabels", None) - _v = showlabels if showlabels is not None else _v - if _v is not None: - self["showlabels"] = _v - _v = arg.pop("showlines", None) - _v = showlines if showlines is not None else _v - if _v is not None: - self["showlines"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("start", None) - _v = start if start is not None else _v - if _v is not None: - self["start"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('coloring', arg, coloring) + self._init_provided('end', arg, end) + self._init_provided('labelfont', arg, labelfont) + self._init_provided('labelformat', arg, labelformat) + self._init_provided('operation', arg, operation) + self._init_provided('showlabels', arg, showlabels) + self._init_provided('showlines', arg, showlines) + self._init_provided('size', arg, size) + self._init_provided('start', arg, start) + self._init_provided('type', arg, type) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contourcarpet/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/contourcarpet/_legendgrouptitle.py index d2762d9296e..9ac34b4e78f 100644 --- a/packages/python/plotly/plotly/graph_objs/contourcarpet/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/contourcarpet/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "contourcarpet" - _path_str = "contourcarpet.legendgrouptitle" + _parent_path_str = 'contourcarpet' + _path_str = 'contourcarpet.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.contourcarpet.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.contourcarpet.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.contourcarpet.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.contourcarpet.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contourcarpet/_line.py b/packages/python/plotly/plotly/graph_objs/contourcarpet/_line.py index 3fb5eced234..d9ece6b8e9e 100644 --- a/packages/python/plotly/plotly/graph_objs/contourcarpet/_line.py +++ b/packages/python/plotly/plotly/graph_objs/contourcarpet/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "contourcarpet" - _path_str = "contourcarpet.line" + _parent_path_str = 'contourcarpet' + _path_str = 'contourcarpet.line' _valid_props = {"color", "dash", "smoothing", "width"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # dash # ---- @@ -90,11 +57,11 @@ def dash(self): ------- str """ - return self["dash"] + return self['dash'] @dash.setter def dash(self, val): - self["dash"] = val + self['dash'] = val # smoothing # --------- @@ -111,11 +78,11 @@ def smoothing(self): ------- int|float """ - return self["smoothing"] + return self['smoothing'] @smoothing.setter def smoothing(self, val): - self["smoothing"] = val + self['smoothing'] = val # width # ----- @@ -133,11 +100,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -160,10 +127,14 @@ def _prop_descriptions(self): when `contours.type` is "levels". Defaults to 2 when `contour.type` is "constraint". """ - - def __init__( - self, arg=None, color=None, dash=None, smoothing=None, width=None, **kwargs - ): + def __init__(self, + arg=None, + color=None, + dash=None, + smoothing=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -193,10 +164,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -208,36 +179,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.contourcarpet.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.contourcarpet.Line`""" - ) +an instance of :class:`plotly.graph_objs.contourcarpet.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("dash", None) - _v = dash if dash is not None else _v - if _v is not None: - self["dash"] = _v - _v = arg.pop("smoothing", None) - _v = smoothing if smoothing is not None else _v - if _v is not None: - self["smoothing"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('dash', arg, dash) + self._init_provided('smoothing', arg, smoothing) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contourcarpet/_stream.py b/packages/python/plotly/plotly/graph_objs/contourcarpet/_stream.py index a2e5b4b748d..69daf68afc9 100644 --- a/packages/python/plotly/plotly/graph_objs/contourcarpet/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/contourcarpet/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "contourcarpet" - _path_str = "contourcarpet.stream" + _parent_path_str = 'contourcarpet' + _path_str = 'contourcarpet.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.contourcarpet.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.contourcarpet.Stream`""" - ) +an instance of :class:`plotly.graph_objs.contourcarpet.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/_tickfont.py index f2b70b48f4a..6d48de3290f 100644 --- a/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "contourcarpet.colorbar" - _path_str = "contourcarpet.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'contourcarpet.colorbar' + _path_str = 'contourcarpet.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.contourcarpet.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.contourcarpet.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.contourcarpet.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/_tickformatstop.py index 6ebdca1e99a..41632a455b3 100644 --- a/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "contourcarpet.colorbar" - _path_str = "contourcarpet.colorbar.tickformatstop" + _parent_path_str = 'contourcarpet.colorbar' + _path_str = 'contourcarpet.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.contourcarpet.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.contourcarpet.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.contourcarpet.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/_title.py index 6bcccdb484c..b8e0fb00f78 100644 --- a/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "contourcarpet.colorbar" - _path_str = "contourcarpet.colorbar.title" + _parent_path_str = 'contourcarpet.colorbar' + _path_str = 'contourcarpet.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.contourcarpet.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.contourcarpet.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.contourcarpet.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.contourcarpet.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/title/_font.py index 088c55b62b9..b4d4af9b082 100644 --- a/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "contourcarpet.colorbar.title" - _path_str = "contourcarpet.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'contourcarpet.colorbar.title' + _path_str = 'contourcarpet.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.contourcarpet.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.contourcarpet.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.contourcarpet.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contourcarpet/contours/__init__.py b/packages/python/plotly/plotly/graph_objs/contourcarpet/contours/__init__.py index f1ee5b7524b..7cedabc68e2 100644 --- a/packages/python/plotly/plotly/graph_objs/contourcarpet/contours/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/contourcarpet/contours/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._labelfont import Labelfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._labelfont.Labelfont"] + __name__, + [], + ['._labelfont.Labelfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/contourcarpet/contours/_labelfont.py b/packages/python/plotly/plotly/graph_objs/contourcarpet/contours/_labelfont.py index b00c790bea3..48661ec9089 100644 --- a/packages/python/plotly/plotly/graph_objs/contourcarpet/contours/_labelfont.py +++ b/packages/python/plotly/plotly/graph_objs/contourcarpet/contours/_labelfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Labelfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "contourcarpet.contours" - _path_str = "contourcarpet.contours.labelfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'contourcarpet.contours' + _path_str = 'contourcarpet.contours.labelfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Labelfont object @@ -379,10 +334,10 @@ def __init__( ------- Labelfont """ - super(Labelfont, self).__init__("labelfont") + super(Labelfont, self).__init__('labelfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -394,56 +349,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.contourcarpet.contours.Labelfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.contourcarpet.contours.Labelfont`""" - ) +an instance of :class:`plotly.graph_objs.contourcarpet.contours.Labelfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contourcarpet/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/contourcarpet/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/contourcarpet/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/contourcarpet/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/contourcarpet/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/contourcarpet/legendgrouptitle/_font.py index 0a272365530..13ed8a86250 100644 --- a/packages/python/plotly/plotly/graph_objs/contourcarpet/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/contourcarpet/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "contourcarpet.legendgrouptitle" - _path_str = "contourcarpet.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'contourcarpet.legendgrouptitle' + _path_str = 'contourcarpet.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.contourcarpet.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.contourcarpet.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.contourcarpet.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/densitymap/__init__.py b/packages/python/plotly/plotly/graph_objs/densitymap/__init__.py index 1735c919dfa..43cbf8ab33d 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymap/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/densitymap/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._hoverlabel import Hoverlabel @@ -11,14 +10,10 @@ from . import legendgrouptitle else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".colorbar", ".hoverlabel", ".legendgrouptitle"], - [ - "._colorbar.ColorBar", - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._stream.Stream", - ], + ['.colorbar', '.hoverlabel', '.legendgrouptitle'], + ['._colorbar.ColorBar', '._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._stream.Stream'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/densitymap/_colorbar.py b/packages/python/plotly/plotly/graph_objs/densitymap/_colorbar.py index 5ebb30f470d..c45734c1462 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymap/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/densitymap/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "densitymap" - _path_str = "densitymap.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'densitymap' + _path_str = 'densitymap.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.densitymap.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.densitymap.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -912,17 +642,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.densitymap.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -942,11 +670,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -967,11 +695,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -993,11 +721,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1013,11 +741,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1040,11 +768,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1061,11 +789,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1084,11 +812,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1105,11 +833,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1127,11 +855,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1147,11 +875,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1168,11 +896,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1188,11 +916,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1208,11 +936,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1225,27 +953,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.densitymap.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1267,11 +983,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1291,11 +1007,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1311,11 +1027,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1334,11 +1050,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1360,11 +1076,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1384,11 +1100,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1404,11 +1120,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1427,11 +1143,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1677,61 +1393,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1984,10 +1698,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1999,216 +1713,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.densitymap.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.densitymap.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.densitymap.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/densitymap/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/densitymap/_hoverlabel.py index afefd7894b5..7f4da87b4b8 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymap/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/densitymap/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "densitymap" - _path_str = "densitymap.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'densitymap' + _path_str = 'densitymap.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.densitymap.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.densitymap.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.densitymap.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.densitymap.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/densitymap/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/densitymap/_legendgrouptitle.py index c5e3e599287..b610adef9c7 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymap/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/densitymap/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "densitymap" - _path_str = "densitymap.legendgrouptitle" + _parent_path_str = 'densitymap' + _path_str = 'densitymap.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.densitymap.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.densitymap.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.densitymap.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.densitymap.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/densitymap/_stream.py b/packages/python/plotly/plotly/graph_objs/densitymap/_stream.py index 07ae6f15464..f56ba1f54ae 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymap/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/densitymap/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "densitymap" - _path_str = "densitymap.stream" + _parent_path_str = 'densitymap' + _path_str = 'densitymap.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.densitymap.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.densitymap.Stream`""" - ) +an instance of :class:`plotly.graph_objs.densitymap.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/densitymap/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/densitymap/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymap/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/densitymap/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/densitymap/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/densitymap/colorbar/_tickfont.py index a015d64eead..816246cb165 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymap/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/densitymap/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "densitymap.colorbar" - _path_str = "densitymap.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'densitymap.colorbar' + _path_str = 'densitymap.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.densitymap.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.densitymap.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.densitymap.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/densitymap/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/densitymap/colorbar/_tickformatstop.py index c8dffcdf787..4e51bf043b5 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymap/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/densitymap/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "densitymap.colorbar" - _path_str = "densitymap.colorbar.tickformatstop" + _parent_path_str = 'densitymap.colorbar' + _path_str = 'densitymap.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.densitymap.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.densitymap.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.densitymap.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/densitymap/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/densitymap/colorbar/_title.py index 07e58bbd21e..cdce92b2a61 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymap/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/densitymap/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "densitymap.colorbar" - _path_str = "densitymap.colorbar.title" + _parent_path_str = 'densitymap.colorbar' + _path_str = 'densitymap.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.densitymap.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.densitymap.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.densitymap.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.densitymap.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/densitymap/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/densitymap/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymap/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/densitymap/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/densitymap/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/densitymap/colorbar/title/_font.py index 8d5633e92b2..7633a6bd452 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymap/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/densitymap/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "densitymap.colorbar.title" - _path_str = "densitymap.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'densitymap.colorbar.title' + _path_str = 'densitymap.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.densitymap.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.densitymap.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.densitymap.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/densitymap/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/densitymap/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymap/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/densitymap/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/densitymap/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/densitymap/hoverlabel/_font.py index 689a1d3fc79..857d0ca3849 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymap/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/densitymap/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "densitymap.hoverlabel" - _path_str = "densitymap.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'densitymap.hoverlabel' + _path_str = 'densitymap.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.densitymap.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.densitymap.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.densitymap.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/densitymap/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/densitymap/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymap/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/densitymap/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/densitymap/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/densitymap/legendgrouptitle/_font.py index d89764fba79..6aa564cdf44 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymap/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/densitymap/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "densitymap.legendgrouptitle" - _path_str = "densitymap.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'densitymap.legendgrouptitle' + _path_str = 'densitymap.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.densitymap.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.densitymap.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.densitymap.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/densitymapbox/__init__.py b/packages/python/plotly/plotly/graph_objs/densitymapbox/__init__.py index 1735c919dfa..43cbf8ab33d 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymapbox/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/densitymapbox/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._hoverlabel import Hoverlabel @@ -11,14 +10,10 @@ from . import legendgrouptitle else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".colorbar", ".hoverlabel", ".legendgrouptitle"], - [ - "._colorbar.ColorBar", - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._stream.Stream", - ], + ['.colorbar', '.hoverlabel', '.legendgrouptitle'], + ['._colorbar.ColorBar', '._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._stream.Stream'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/densitymapbox/_colorbar.py b/packages/python/plotly/plotly/graph_objs/densitymapbox/_colorbar.py index ea1484fe32d..f48867561a2 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymapbox/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/densitymapbox/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "densitymapbox" - _path_str = "densitymapbox.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'densitymapbox' + _path_str = 'densitymapbox.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.densitymapbox.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.densitymapbox.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.densitymapbox.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.densitymapbox.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.densitymapbox.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.densitymapbox.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.densitymapbox.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/densitymapbox/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/densitymapbox/_hoverlabel.py index 58d689d30ad..ef9fc30ca8b 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymapbox/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/densitymapbox/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "densitymapbox" - _path_str = "densitymapbox.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'densitymapbox' + _path_str = 'densitymapbox.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.densitymapbox.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.densitymapbox.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.densitymapbox.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.densitymapbox.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/densitymapbox/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/densitymapbox/_legendgrouptitle.py index 73db0982922..0e406975e96 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymapbox/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/densitymapbox/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "densitymapbox" - _path_str = "densitymapbox.legendgrouptitle" + _parent_path_str = 'densitymapbox' + _path_str = 'densitymapbox.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.densitymapbox.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.densitymapbox.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.densitymapbox.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.densitymapbox.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/densitymapbox/_stream.py b/packages/python/plotly/plotly/graph_objs/densitymapbox/_stream.py index de8233ade4b..72dd8b9f0df 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymapbox/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/densitymapbox/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "densitymapbox" - _path_str = "densitymapbox.stream" + _parent_path_str = 'densitymapbox' + _path_str = 'densitymapbox.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.densitymapbox.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.densitymapbox.Stream`""" - ) +an instance of :class:`plotly.graph_objs.densitymapbox.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/densitymapbox/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/densitymapbox/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymapbox/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/densitymapbox/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/densitymapbox/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/densitymapbox/colorbar/_tickfont.py index ea94f9a5371..911e18653f2 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymapbox/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/densitymapbox/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "densitymapbox.colorbar" - _path_str = "densitymapbox.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'densitymapbox.colorbar' + _path_str = 'densitymapbox.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.densitymapbox.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.densitymapbox.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.densitymapbox.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/densitymapbox/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/densitymapbox/colorbar/_tickformatstop.py index ac85a0876ec..b693b9866cd 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymapbox/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/densitymapbox/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "densitymapbox.colorbar" - _path_str = "densitymapbox.colorbar.tickformatstop" + _parent_path_str = 'densitymapbox.colorbar' + _path_str = 'densitymapbox.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.densitymapbox.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.densitymapbox.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.densitymapbox.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/densitymapbox/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/densitymapbox/colorbar/_title.py index 0e0f9e2bfd5..d8ef9b8e8bf 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymapbox/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/densitymapbox/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "densitymapbox.colorbar" - _path_str = "densitymapbox.colorbar.title" + _parent_path_str = 'densitymapbox.colorbar' + _path_str = 'densitymapbox.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.densitymapbox.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.densitymapbox.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.densitymapbox.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.densitymapbox.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/densitymapbox/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/densitymapbox/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymapbox/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/densitymapbox/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/densitymapbox/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/densitymapbox/colorbar/title/_font.py index b2df8f5e181..d529e349161 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymapbox/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/densitymapbox/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "densitymapbox.colorbar.title" - _path_str = "densitymapbox.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'densitymapbox.colorbar.title' + _path_str = 'densitymapbox.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.densitymapbox.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.densitymapbox.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.densitymapbox.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/densitymapbox/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/densitymapbox/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymapbox/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/densitymapbox/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/densitymapbox/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/densitymapbox/hoverlabel/_font.py index 911b301cd2b..be42074e465 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymapbox/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/densitymapbox/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "densitymapbox.hoverlabel" - _path_str = "densitymapbox.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'densitymapbox.hoverlabel' + _path_str = 'densitymapbox.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.densitymapbox.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.densitymapbox.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.densitymapbox.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/densitymapbox/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/densitymapbox/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymapbox/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/densitymapbox/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/densitymapbox/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/densitymapbox/legendgrouptitle/_font.py index 56a65819eb5..9e755a77633 100644 --- a/packages/python/plotly/plotly/graph_objs/densitymapbox/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/densitymapbox/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "densitymapbox.legendgrouptitle" - _path_str = "densitymapbox.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'densitymapbox.legendgrouptitle' + _path_str = 'densitymapbox.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.densitymapbox.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.densitymapbox.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.densitymapbox.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnel/__init__.py b/packages/python/plotly/plotly/graph_objs/funnel/__init__.py index 9123f70c419..cade63d9a9c 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._connector import Connector from ._hoverlabel import Hoverlabel @@ -16,18 +15,10 @@ from . import marker else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".connector", ".hoverlabel", ".legendgrouptitle", ".marker"], - [ - "._connector.Connector", - "._hoverlabel.Hoverlabel", - "._insidetextfont.Insidetextfont", - "._legendgrouptitle.Legendgrouptitle", - "._marker.Marker", - "._outsidetextfont.Outsidetextfont", - "._stream.Stream", - "._textfont.Textfont", - ], + ['.connector', '.hoverlabel', '.legendgrouptitle', '.marker'], + ['._connector.Connector', '._hoverlabel.Hoverlabel', '._insidetextfont.Insidetextfont', '._legendgrouptitle.Legendgrouptitle', '._marker.Marker', '._outsidetextfont.Outsidetextfont', '._stream.Stream', '._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/funnel/_connector.py b/packages/python/plotly/plotly/graph_objs/funnel/_connector.py index e50299bb7ba..d52a855252e 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/_connector.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/_connector.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Connector(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnel" - _path_str = "funnel.connector" + _parent_path_str = 'funnel' + _path_str = 'funnel.connector' _valid_props = {"fillcolor", "line", "visible"} # fillcolor @@ -22,52 +24,17 @@ def fillcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["fillcolor"] + return self['fillcolor'] @fillcolor.setter def fillcolor(self, val): - self["fillcolor"] = val + self['fillcolor'] = val # line # ---- @@ -80,27 +47,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the line color. - dash - 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"). - width - Sets the line width (in px). - Returns ------- plotly.graph_objs.funnel.connector.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # visible # ------- @@ -116,11 +71,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # Self properties description # --------------------------- @@ -135,8 +90,13 @@ def _prop_descriptions(self): visible Determines if connector regions and lines are drawn. """ - - def __init__(self, arg=None, fillcolor=None, line=None, visible=None, **kwargs): + def __init__(self, + arg=None, + fillcolor=None, + line=None, + visible=None, + **kwargs + ): """ Construct a new Connector object @@ -158,10 +118,10 @@ def __init__(self, arg=None, fillcolor=None, line=None, visible=None, **kwargs): ------- Connector """ - super(Connector, self).__init__("connector") + super(Connector, self).__init__('connector') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -173,32 +133,22 @@ def __init__(self, arg=None, fillcolor=None, line=None, visible=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnel.Connector constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnel.Connector`""" - ) +an instance of :class:`plotly.graph_objs.funnel.Connector`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("fillcolor", None) - _v = fillcolor if fillcolor is not None else _v - if _v is not None: - self["fillcolor"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('fillcolor', arg, fillcolor) + self._init_provided('line', arg, line) + self._init_provided('visible', arg, visible) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnel/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/funnel/_hoverlabel.py index 4b8cd699fd3..8edf82af810 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnel" - _path_str = "funnel.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'funnel' + _path_str = 'funnel.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.funnel.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnel.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnel.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.funnel.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnel/_insidetextfont.py b/packages/python/plotly/plotly/graph_objs/funnel/_insidetextfont.py index 15d1bd879c7..e2eaf965140 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/_insidetextfont.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/_insidetextfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Insidetextfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnel" - _path_str = "funnel.insidetextfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'funnel' + _path_str = 'funnel.insidetextfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Insidetextfont object @@ -639,10 +585,10 @@ def __init__( ------- Insidetextfont """ - super(Insidetextfont, self).__init__("insidetextfont") + super(Insidetextfont, self).__init__('insidetextfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnel.Insidetextfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnel.Insidetextfont`""" - ) +an instance of :class:`plotly.graph_objs.funnel.Insidetextfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnel/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/funnel/_legendgrouptitle.py index 832af37c03b..fa3749c3ef2 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnel" - _path_str = "funnel.legendgrouptitle" + _parent_path_str = 'funnel' + _path_str = 'funnel.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.funnel.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnel.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnel.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.funnel.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnel/_marker.py b/packages/python/plotly/plotly/graph_objs/funnel/_marker.py index ceb50cabef3..287fe56e502 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,25 +8,9 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnel" - _path_str = "funnel.marker" - _valid_props = { - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorbar", - "colorscale", - "colorsrc", - "line", - "opacity", - "opacitysrc", - "reversescale", - "showscale", - } + _parent_path_str = 'funnel' + _path_str = 'funnel.marker' + _valid_props = {"autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorbar", "colorscale", "colorsrc", "line", "opacity", "opacitysrc", "reversescale", "showscale"} # autocolorscale # -------------- @@ -46,11 +32,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -71,11 +57,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -94,11 +80,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -118,11 +104,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -141,11 +127,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -162,42 +148,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to funnel.marker.colorscale - A list or array of any of the above @@ -206,11 +157,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -233,11 +184,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -250,282 +201,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.funnel. - marker.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.funnel.marker.colorbar.tickformatstopdefaults - ), sets the default property values to use for - elements of - funnel.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.funnel.marker.colo - rbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.funnel.marker.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -575,11 +259,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -595,11 +279,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # line # ---- @@ -612,107 +296,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.line.colorscale`. Has an - effect only if in `marker.line.color` is set to - a numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.line.color`) or the bounds set in - `marker.line.cmin` and `marker.line.cmax` Has - an effect only if in `marker.line.color` is set - to a numerical array. Defaults to `false` when - `marker.line.cmin` and `marker.line.cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.line.cmin` and/or - `marker.line.cmax` to be equidistant to this - point. Has an effect only if in - `marker.line.color` is set to a numerical - array. Value should have the same units as in - `marker.line.color`. Has no effect when - `marker.line.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmax` must be set as well. - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorscale - Sets the colorscale. Has an effect only if in - `marker.line.color` is set to a numerical - array. The colorscale must be an array - containing arrays mapping a normalized value to - an rgb, rgba, hex, hsl, hsv, or named color - string. At minimum, a mapping for the lowest - (0) and highest (1) values are required. For - example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use - `marker.line.cmin` and `marker.line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.line.color` is set to - a numerical array. If true, `marker.line.cmin` - will correspond to the last color in the array - and `marker.line.cmax` will correspond to the - first color. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. - Returns ------- plotly.graph_objs.funnel.marker.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # opacity # ------- @@ -729,11 +321,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # opacitysrc # ---------- @@ -749,11 +341,11 @@ def opacitysrc(self): ------- str """ - return self["opacitysrc"] + return self['opacitysrc'] @opacitysrc.setter def opacitysrc(self, val): - self["opacitysrc"] = val + self['opacitysrc'] = val # reversescale # ------------ @@ -772,11 +364,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # showscale # --------- @@ -794,11 +386,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # Self properties description # --------------------------- @@ -890,27 +482,25 @@ def _prop_descriptions(self): this trace. Has an effect only if in `marker.color` is set to a numerical array. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorbar=None, - colorscale=None, - colorsrc=None, - line=None, - opacity=None, - opacitysrc=None, - reversescale=None, - showscale=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorbar=None, + colorscale=None, + colorsrc=None, + line=None, + opacity=None, + opacitysrc=None, + reversescale=None, + showscale=None, + **kwargs + ): """ Construct a new Marker object @@ -1008,10 +598,10 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1023,80 +613,34 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnel.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnel.Marker`""" - ) +an instance of :class:`plotly.graph_objs.funnel.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("opacitysrc", None) - _v = opacitysrc if opacitysrc is not None else _v - if _v is not None: - self["opacitysrc"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('line', arg, line) + self._init_provided('opacity', arg, opacity) + self._init_provided('opacitysrc', arg, opacitysrc) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('showscale', arg, showscale) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnel/_outsidetextfont.py b/packages/python/plotly/plotly/graph_objs/funnel/_outsidetextfont.py index cdd87277e50..0057edd8926 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/_outsidetextfont.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/_outsidetextfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Outsidetextfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnel" - _path_str = "funnel.outsidetextfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'funnel' + _path_str = 'funnel.outsidetextfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Outsidetextfont object @@ -639,10 +585,10 @@ def __init__( ------- Outsidetextfont """ - super(Outsidetextfont, self).__init__("outsidetextfont") + super(Outsidetextfont, self).__init__('outsidetextfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnel.Outsidetextfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnel.Outsidetextfont`""" - ) +an instance of :class:`plotly.graph_objs.funnel.Outsidetextfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnel/_stream.py b/packages/python/plotly/plotly/graph_objs/funnel/_stream.py index 9cc6b82f1cd..38d8b354f1b 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnel" - _path_str = "funnel.stream" + _parent_path_str = 'funnel' + _path_str = 'funnel.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -93,10 +99,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -108,28 +114,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnel.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnel.Stream`""" - ) +an instance of :class:`plotly.graph_objs.funnel.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnel/_textfont.py b/packages/python/plotly/plotly/graph_objs/funnel/_textfont.py index 819d8a9a27b..a825983ace2 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnel" - _path_str = "funnel.textfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'funnel' + _path_str = 'funnel.textfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Textfont object @@ -639,10 +585,10 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnel.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnel.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.funnel.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnel/connector/__init__.py b/packages/python/plotly/plotly/graph_objs/funnel/connector/__init__.py index 8722c15a2b8..a745ef6458a 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/connector/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/connector/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import Line else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._line.Line'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._line.Line"]) diff --git a/packages/python/plotly/plotly/graph_objs/funnel/connector/_line.py b/packages/python/plotly/plotly/graph_objs/funnel/connector/_line.py index 3439f83ecef..ca54c17757d 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/connector/_line.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/connector/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnel.connector" - _path_str = "funnel.connector.line" + _parent_path_str = 'funnel.connector' + _path_str = 'funnel.connector.line' _valid_props = {"color", "dash", "width"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # dash # ---- @@ -89,11 +56,11 @@ def dash(self): ------- str """ - return self["dash"] + return self['dash'] @dash.setter def dash(self, val): - self["dash"] = val + self['dash'] = val # width # ----- @@ -109,11 +76,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -130,8 +97,13 @@ def _prop_descriptions(self): width Sets the line width (in px). """ - - def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): + def __init__(self, + arg=None, + color=None, + dash=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -155,10 +127,10 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -170,32 +142,22 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnel.connector.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnel.connector.Line`""" - ) +an instance of :class:`plotly.graph_objs.funnel.connector.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("dash", None) - _v = dash if dash is not None else _v - if _v is not None: - self["dash"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('dash', arg, dash) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnel/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/funnel/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/funnel/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/funnel/hoverlabel/_font.py index 2a28014f018..7c5e47444cf 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnel.hoverlabel" - _path_str = "funnel.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'funnel.hoverlabel' + _path_str = 'funnel.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnel.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnel.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.funnel.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnel/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/funnel/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/funnel/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/funnel/legendgrouptitle/_font.py index dd8ff5b48a8..0e6958f4f90 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnel.legendgrouptitle" - _path_str = "funnel.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'funnel.legendgrouptitle' + _path_str = 'funnel.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnel.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnel.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.funnel.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnel/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/funnel/marker/__init__.py index 8481520e3c9..60bb7edb6d5 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/marker/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._line import Line from . import colorbar else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [".colorbar"], ["._colorbar.ColorBar", "._line.Line"] + __name__, + ['.colorbar'], + ['._colorbar.ColorBar', '._line.Line'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/funnel/marker/_colorbar.py b/packages/python/plotly/plotly/graph_objs/funnel/marker/_colorbar.py index 4d635419142..b287e46aa6a 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/marker/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/marker/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnel.marker" - _path_str = "funnel.marker.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'funnel.marker' + _path_str = 'funnel.marker.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.funnel.marker.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.funnel.marker.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.funnel.marker.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.funnel.marker.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnel.marker.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnel.marker.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.funnel.marker.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnel/marker/_line.py b/packages/python/plotly/plotly/graph_objs/funnel/marker/_line.py index cb030f324ad..892c9e414f0 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/marker/_line.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/marker/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,22 +8,9 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnel.marker" - _path_str = "funnel.marker.line" - _valid_props = { - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorscale", - "colorsrc", - "reversescale", - "width", - "widthsrc", - } + _parent_path_str = 'funnel.marker' + _path_str = 'funnel.marker.line' + _valid_props = {"autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorscale", "colorsrc", "reversescale", "width", "widthsrc"} # autocolorscale # -------------- @@ -43,11 +32,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -68,11 +57,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -91,11 +80,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -116,11 +105,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -139,11 +128,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -160,42 +149,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to funnel.marker.line.colorscale - A list or array of any of the above @@ -204,11 +158,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -231,11 +185,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorscale # ---------- @@ -286,11 +240,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -306,11 +260,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # reversescale # ------------ @@ -330,11 +284,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # width # ----- @@ -351,11 +305,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # widthsrc # -------- @@ -371,11 +325,11 @@ def widthsrc(self): ------- str """ - return self["widthsrc"] + return self['widthsrc'] @widthsrc.setter def widthsrc(self, val): - self["widthsrc"] = val + self['widthsrc'] = val # Self properties description # --------------------------- @@ -461,24 +415,22 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `width`. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorscale=None, - colorsrc=None, - reversescale=None, - width=None, - widthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorscale=None, + colorsrc=None, + reversescale=None, + width=None, + widthsrc=None, + **kwargs + ): """ Construct a new Line object @@ -571,10 +523,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -586,68 +538,31 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnel.marker.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnel.marker.Line`""" - ) +an instance of :class:`plotly.graph_objs.funnel.marker.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("widthsrc", None) - _v = widthsrc if widthsrc is not None else _v - if _v is not None: - self["widthsrc"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('width', arg, width) + self._init_provided('widthsrc', arg, widthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/_tickfont.py index fe9990088cc..15d824c35eb 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnel.marker.colorbar" - _path_str = "funnel.marker.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'funnel.marker.colorbar' + _path_str = 'funnel.marker.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnel.marker.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnel.marker.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.funnel.marker.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/_tickformatstop.py index 152426ad61a..069d3cbb08b 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnel.marker.colorbar" - _path_str = "funnel.marker.colorbar.tickformatstop" + _parent_path_str = 'funnel.marker.colorbar' + _path_str = 'funnel.marker.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnel.marker.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnel.marker.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.funnel.marker.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/_title.py index 9e42b318234..90fbabbe8f4 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnel.marker.colorbar" - _path_str = "funnel.marker.colorbar.title" + _parent_path_str = 'funnel.marker.colorbar' + _path_str = 'funnel.marker.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.funnel.marker.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnel.marker.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnel.marker.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.funnel.marker.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/title/_font.py index c4ec5defb1f..8a539be2a42 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnel.marker.colorbar.title" - _path_str = "funnel.marker.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'funnel.marker.colorbar.title' + _path_str = 'funnel.marker.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnel.marker.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnel.marker.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.funnel.marker.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnelarea/__init__.py b/packages/python/plotly/plotly/graph_objs/funnelarea/__init__.py index 735b2c9691a..c75a5948c4e 100644 --- a/packages/python/plotly/plotly/graph_objs/funnelarea/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/funnelarea/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._domain import Domain from ._hoverlabel import Hoverlabel @@ -16,18 +15,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".hoverlabel", ".legendgrouptitle", ".marker", ".title"], - [ - "._domain.Domain", - "._hoverlabel.Hoverlabel", - "._insidetextfont.Insidetextfont", - "._legendgrouptitle.Legendgrouptitle", - "._marker.Marker", - "._stream.Stream", - "._textfont.Textfont", - "._title.Title", - ], + ['.hoverlabel', '.legendgrouptitle', '.marker', '.title'], + ['._domain.Domain', '._hoverlabel.Hoverlabel', '._insidetextfont.Insidetextfont', '._legendgrouptitle.Legendgrouptitle', '._marker.Marker', '._stream.Stream', '._textfont.Textfont', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/funnelarea/_domain.py b/packages/python/plotly/plotly/graph_objs/funnelarea/_domain.py index 8768025974a..d9dba1d4c1e 100644 --- a/packages/python/plotly/plotly/graph_objs/funnelarea/_domain.py +++ b/packages/python/plotly/plotly/graph_objs/funnelarea/_domain.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Domain(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnelarea" - _path_str = "funnelarea.domain" + _parent_path_str = 'funnelarea' + _path_str = 'funnelarea.domain' _valid_props = {"column", "row", "x", "y"} # column @@ -26,11 +28,11 @@ def column(self): ------- int """ - return self["column"] + return self['column'] @column.setter def column(self, val): - self["column"] = val + self['column'] = val # row # --- @@ -48,63 +50,63 @@ def row(self): ------- int """ - return self["row"] + return self['row'] @row.setter def row(self, val): - self["row"] = val + self['row'] = val # x # - @property def x(self): """ - Sets the horizontal domain of this funnelarea trace (in plot - fraction). - - The 'x' property is an info array that may be specified as: + Sets the horizontal domain of this funnelarea trace (in plot + fraction). - * a list or tuple of 2 elements where: - (0) The 'x[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'x[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] + The 'x' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'x[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'x[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - Returns - ------- - list + Returns + ------- + list """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @property def y(self): """ - Sets the vertical domain of this funnelarea trace (in plot - fraction). + Sets the vertical domain of this funnelarea trace (in plot + fraction). - The 'y' property is an info array that may be specified as: + The 'y' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'y[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'y[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - * a list or tuple of 2 elements where: - (0) The 'y[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'y[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - - Returns - ------- - list + Returns + ------- + list """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # Self properties description # --------------------------- @@ -124,8 +126,14 @@ def _prop_descriptions(self): Sets the vertical domain of this funnelarea trace (in plot fraction). """ - - def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): + def __init__(self, + arg=None, + column=None, + row=None, + x=None, + y=None, + **kwargs + ): """ Construct a new Domain object @@ -152,10 +160,10 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") + super(Domain, self).__init__('domain') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -167,36 +175,23 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnelarea.Domain constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnelarea.Domain`""" - ) +an instance of :class:`plotly.graph_objs.funnelarea.Domain`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("column", None) - _v = column if column is not None else _v - if _v is not None: - self["column"] = _v - _v = arg.pop("row", None) - _v = row if row is not None else _v - if _v is not None: - self["row"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v + self._init_provided('column', arg, column) + self._init_provided('row', arg, row) + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnelarea/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/funnelarea/_hoverlabel.py index 68437d3f5b8..49f7fdf8ec1 100644 --- a/packages/python/plotly/plotly/graph_objs/funnelarea/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/funnelarea/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnelarea" - _path_str = "funnelarea.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'funnelarea' + _path_str = 'funnelarea.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.funnelarea.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnelarea.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnelarea.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.funnelarea.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnelarea/_insidetextfont.py b/packages/python/plotly/plotly/graph_objs/funnelarea/_insidetextfont.py index 1c8e79cf57c..cf4b5e56be1 100644 --- a/packages/python/plotly/plotly/graph_objs/funnelarea/_insidetextfont.py +++ b/packages/python/plotly/plotly/graph_objs/funnelarea/_insidetextfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Insidetextfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnelarea" - _path_str = "funnelarea.insidetextfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'funnelarea' + _path_str = 'funnelarea.insidetextfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Insidetextfont object @@ -639,10 +585,10 @@ def __init__( ------- Insidetextfont """ - super(Insidetextfont, self).__init__("insidetextfont") + super(Insidetextfont, self).__init__('insidetextfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnelarea.Insidetextfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnelarea.Insidetextfont`""" - ) +an instance of :class:`plotly.graph_objs.funnelarea.Insidetextfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnelarea/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/funnelarea/_legendgrouptitle.py index 4e4a440462f..3aea8a1edd6 100644 --- a/packages/python/plotly/plotly/graph_objs/funnelarea/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/funnelarea/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnelarea" - _path_str = "funnelarea.legendgrouptitle" + _parent_path_str = 'funnelarea' + _path_str = 'funnelarea.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.funnelarea.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnelarea.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnelarea.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.funnelarea.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnelarea/_marker.py b/packages/python/plotly/plotly/graph_objs/funnelarea/_marker.py index bcd9f7c595f..0c80579455e 100644 --- a/packages/python/plotly/plotly/graph_objs/funnelarea/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/funnelarea/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnelarea" - _path_str = "funnelarea.marker" + _parent_path_str = 'funnelarea' + _path_str = 'funnelarea.marker' _valid_props = {"colors", "colorssrc", "line", "pattern"} # colors @@ -25,11 +27,11 @@ def colors(self): ------- numpy.ndarray """ - return self["colors"] + return self['colors'] @colors.setter def colors(self, val): - self["colors"] = val + self['colors'] = val # colorssrc # --------- @@ -45,11 +47,11 @@ def colorssrc(self): ------- str """ - return self["colorssrc"] + return self['colorssrc'] @colorssrc.setter def colorssrc(self, val): - self["colorssrc"] = val + self['colorssrc'] = val # line # ---- @@ -62,30 +64,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the color of the line enclosing each - sector. Defaults to the `paper_bgcolor` value. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - width - Sets the width (in px) of the line enclosing - each sector. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. - Returns ------- plotly.graph_objs.funnelarea.marker.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # pattern # ------- @@ -100,66 +87,15 @@ def pattern(self): - A dict of string/value properties that will be passed to the Pattern constructor - Supported dict properties: - - bgcolor - When there is no colorscale sets the color of - background pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "overlay". Otherwise, defaults to a transparent - background. - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - fgcolor - When there is no colorscale sets the color of - foreground pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "replace". Otherwise, defaults to dark grey or - white to increase contrast with the `bgcolor`. - fgcolorsrc - Sets the source reference on Chart Studio Cloud - for `fgcolor`. - fgopacity - Sets the opacity of the foreground pattern - fill. Defaults to a 0.5 when `fillmode` is - "overlay". Otherwise, defaults to 1. - fillmode - Determines whether `marker.color` should be - used as a default to `bgcolor` or a `fgcolor`. - shape - Sets the shape of the pattern fill. By default, - no pattern is used for filling the area. - shapesrc - Sets the source reference on Chart Studio Cloud - for `shape`. - size - Sets the size of unit squares of the pattern - fill in pixels, which corresponds to the - interval of repetition of the pattern. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - solidity - Sets the solidity of the pattern fill. Solidity - is roughly the fraction of the area filled by - the pattern. Solidity of 0 shows only the - background color without pattern and solidty of - 1 shows only the foreground color without - pattern. - soliditysrc - Sets the source reference on Chart Studio Cloud - for `solidity`. - Returns ------- plotly.graph_objs.funnelarea.marker.Pattern """ - return self["pattern"] + return self['pattern'] @pattern.setter def pattern(self, val): - self["pattern"] = val + self['pattern'] = val # Self properties description # --------------------------- @@ -179,10 +115,14 @@ def _prop_descriptions(self): pattern Sets the pattern within the marker. """ - - def __init__( - self, arg=None, colors=None, colorssrc=None, line=None, pattern=None, **kwargs - ): + def __init__(self, + arg=None, + colors=None, + colorssrc=None, + line=None, + pattern=None, + **kwargs + ): """ Construct a new Marker object @@ -209,10 +149,10 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -224,36 +164,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnelarea.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnelarea.Marker`""" - ) +an instance of :class:`plotly.graph_objs.funnelarea.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("colors", None) - _v = colors if colors is not None else _v - if _v is not None: - self["colors"] = _v - _v = arg.pop("colorssrc", None) - _v = colorssrc if colorssrc is not None else _v - if _v is not None: - self["colorssrc"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("pattern", None) - _v = pattern if pattern is not None else _v - if _v is not None: - self["pattern"] = _v + self._init_provided('colors', arg, colors) + self._init_provided('colorssrc', arg, colorssrc) + self._init_provided('line', arg, line) + self._init_provided('pattern', arg, pattern) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnelarea/_stream.py b/packages/python/plotly/plotly/graph_objs/funnelarea/_stream.py index 2d4b1cbced1..0bd875356bb 100644 --- a/packages/python/plotly/plotly/graph_objs/funnelarea/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/funnelarea/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnelarea" - _path_str = "funnelarea.stream" + _parent_path_str = 'funnelarea' + _path_str = 'funnelarea.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnelarea.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnelarea.Stream`""" - ) +an instance of :class:`plotly.graph_objs.funnelarea.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnelarea/_textfont.py b/packages/python/plotly/plotly/graph_objs/funnelarea/_textfont.py index 3ba02007f05..5d0f555c77c 100644 --- a/packages/python/plotly/plotly/graph_objs/funnelarea/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/funnelarea/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnelarea" - _path_str = "funnelarea.textfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'funnelarea' + _path_str = 'funnelarea.textfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Textfont object @@ -639,10 +585,10 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnelarea.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnelarea.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.funnelarea.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnelarea/_title.py b/packages/python/plotly/plotly/graph_objs/funnelarea/_title.py index 18a6f7781e0..6020eff811a 100644 --- a/packages/python/plotly/plotly/graph_objs/funnelarea/_title.py +++ b/packages/python/plotly/plotly/graph_objs/funnelarea/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnelarea" - _path_str = "funnelarea.title" + _parent_path_str = 'funnelarea' + _path_str = 'funnelarea.title' _valid_props = {"font", "position", "text"} # font @@ -23,88 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.funnelarea.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # position # -------- @@ -121,11 +50,11 @@ def position(self): ------- Any """ - return self["position"] + return self['position'] @position.setter def position(self, val): - self["position"] = val + self['position'] = val # text # ---- @@ -143,11 +72,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -162,8 +91,13 @@ def _prop_descriptions(self): Sets the title of the chart. If it is empty, no title is displayed. """ - - def __init__(self, arg=None, font=None, position=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + position=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -185,10 +119,10 @@ def __init__(self, arg=None, font=None, position=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -200,32 +134,22 @@ def __init__(self, arg=None, font=None, position=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnelarea.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnelarea.Title`""" - ) +an instance of :class:`plotly.graph_objs.funnelarea.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("position", None) - _v = position if position is not None else _v - if _v is not None: - self["position"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('position', arg, position) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnelarea/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/funnelarea/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/funnelarea/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/funnelarea/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/funnelarea/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/funnelarea/hoverlabel/_font.py index 32d628d3c0c..baaf4ecb529 100644 --- a/packages/python/plotly/plotly/graph_objs/funnelarea/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/funnelarea/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnelarea.hoverlabel" - _path_str = "funnelarea.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'funnelarea.hoverlabel' + _path_str = 'funnelarea.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnelarea.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnelarea.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.funnelarea.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnelarea/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/funnelarea/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/funnelarea/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/funnelarea/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/funnelarea/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/funnelarea/legendgrouptitle/_font.py index 63d3af71471..f3db36f6db9 100644 --- a/packages/python/plotly/plotly/graph_objs/funnelarea/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/funnelarea/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnelarea.legendgrouptitle" - _path_str = "funnelarea.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'funnelarea.legendgrouptitle' + _path_str = 'funnelarea.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnelarea.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnelarea.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.funnelarea.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnelarea/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/funnelarea/marker/__init__.py index 9f8ac2640cb..16a84c1ec30 100644 --- a/packages/python/plotly/plotly/graph_objs/funnelarea/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/funnelarea/marker/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import Line from ._pattern import Pattern else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._line.Line", "._pattern.Pattern"] + __name__, + [], + ['._line.Line', '._pattern.Pattern'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/funnelarea/marker/_line.py b/packages/python/plotly/plotly/graph_objs/funnelarea/marker/_line.py index d7768d59e28..186bc8331e1 100644 --- a/packages/python/plotly/plotly/graph_objs/funnelarea/marker/_line.py +++ b/packages/python/plotly/plotly/graph_objs/funnelarea/marker/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnelarea.marker" - _path_str = "funnelarea.marker.line" + _parent_path_str = 'funnelarea.marker' + _path_str = 'funnelarea.marker.line' _valid_props = {"color", "colorsrc", "width", "widthsrc"} # color @@ -23,53 +25,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -85,11 +52,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # width # ----- @@ -106,11 +73,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # widthsrc # -------- @@ -126,11 +93,11 @@ def widthsrc(self): ------- str """ - return self["widthsrc"] + return self['widthsrc'] @widthsrc.setter def widthsrc(self, val): - self["widthsrc"] = val + self['widthsrc'] = val # Self properties description # --------------------------- @@ -150,10 +117,14 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `width`. """ - - def __init__( - self, arg=None, color=None, colorsrc=None, width=None, widthsrc=None, **kwargs - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + width=None, + widthsrc=None, + **kwargs + ): """ Construct a new Line object @@ -180,10 +151,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -195,36 +166,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnelarea.marker.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnelarea.marker.Line`""" - ) +an instance of :class:`plotly.graph_objs.funnelarea.marker.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("widthsrc", None) - _v = widthsrc if widthsrc is not None else _v - if _v is not None: - self["widthsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('width', arg, width) + self._init_provided('widthsrc', arg, widthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnelarea/marker/_pattern.py b/packages/python/plotly/plotly/graph_objs/funnelarea/marker/_pattern.py index fc694d431ab..6d8dd71d569 100644 --- a/packages/python/plotly/plotly/graph_objs/funnelarea/marker/_pattern.py +++ b/packages/python/plotly/plotly/graph_objs/funnelarea/marker/_pattern.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,22 +8,9 @@ class Pattern(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnelarea.marker" - _path_str = "funnelarea.marker.pattern" - _valid_props = { - "bgcolor", - "bgcolorsrc", - "fgcolor", - "fgcolorsrc", - "fgopacity", - "fillmode", - "shape", - "shapesrc", - "size", - "sizesrc", - "solidity", - "soliditysrc", - } + _parent_path_str = 'funnelarea.marker' + _path_str = 'funnelarea.marker.pattern' + _valid_props = {"bgcolor", "bgcolorsrc", "fgcolor", "fgcolorsrc", "fgopacity", "fillmode", "shape", "shapesrc", "size", "sizesrc", "solidity", "soliditysrc"} # bgcolor # ------- @@ -38,53 +27,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -100,11 +54,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # fgcolor # ------- @@ -121,53 +75,18 @@ def fgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["fgcolor"] + return self['fgcolor'] @fgcolor.setter def fgcolor(self, val): - self["fgcolor"] = val + self['fgcolor'] = val # fgcolorsrc # ---------- @@ -183,11 +102,11 @@ def fgcolorsrc(self): ------- str """ - return self["fgcolorsrc"] + return self['fgcolorsrc'] @fgcolorsrc.setter def fgcolorsrc(self, val): - self["fgcolorsrc"] = val + self['fgcolorsrc'] = val # fgopacity # --------- @@ -204,11 +123,11 @@ def fgopacity(self): ------- int|float """ - return self["fgopacity"] + return self['fgopacity'] @fgopacity.setter def fgopacity(self, val): - self["fgopacity"] = val + self['fgopacity'] = val # fillmode # -------- @@ -226,11 +145,11 @@ def fillmode(self): ------- Any """ - return self["fillmode"] + return self['fillmode'] @fillmode.setter def fillmode(self, val): - self["fillmode"] = val + self['fillmode'] = val # shape # ----- @@ -249,11 +168,11 @@ def shape(self): ------- Any|numpy.ndarray """ - return self["shape"] + return self['shape'] @shape.setter def shape(self, val): - self["shape"] = val + self['shape'] = val # shapesrc # -------- @@ -269,11 +188,11 @@ def shapesrc(self): ------- str """ - return self["shapesrc"] + return self['shapesrc'] @shapesrc.setter def shapesrc(self, val): - self["shapesrc"] = val + self['shapesrc'] = val # size # ---- @@ -291,11 +210,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -311,11 +230,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # solidity # -------- @@ -335,11 +254,11 @@ def solidity(self): ------- int|float|numpy.ndarray """ - return self["solidity"] + return self['solidity'] @solidity.setter def solidity(self, val): - self["solidity"] = val + self['solidity'] = val # soliditysrc # ----------- @@ -355,11 +274,11 @@ def soliditysrc(self): ------- str """ - return self["soliditysrc"] + return self['soliditysrc'] @soliditysrc.setter def soliditysrc(self, val): - self["soliditysrc"] = val + self['soliditysrc'] = val # Self properties description # --------------------------- @@ -413,24 +332,22 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `solidity`. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bgcolorsrc=None, - fgcolor=None, - fgcolorsrc=None, - fgopacity=None, - fillmode=None, - shape=None, - shapesrc=None, - size=None, - sizesrc=None, - solidity=None, - soliditysrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bgcolorsrc=None, + fgcolor=None, + fgcolorsrc=None, + fgopacity=None, + fillmode=None, + shape=None, + shapesrc=None, + size=None, + sizesrc=None, + solidity=None, + soliditysrc=None, + **kwargs + ): """ Construct a new Pattern object @@ -493,10 +410,10 @@ def __init__( ------- Pattern """ - super(Pattern, self).__init__("pattern") + super(Pattern, self).__init__('pattern') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -508,68 +425,31 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnelarea.marker.Pattern constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnelarea.marker.Pattern`""" - ) +an instance of :class:`plotly.graph_objs.funnelarea.marker.Pattern`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("fgcolor", None) - _v = fgcolor if fgcolor is not None else _v - if _v is not None: - self["fgcolor"] = _v - _v = arg.pop("fgcolorsrc", None) - _v = fgcolorsrc if fgcolorsrc is not None else _v - if _v is not None: - self["fgcolorsrc"] = _v - _v = arg.pop("fgopacity", None) - _v = fgopacity if fgopacity is not None else _v - if _v is not None: - self["fgopacity"] = _v - _v = arg.pop("fillmode", None) - _v = fillmode if fillmode is not None else _v - if _v is not None: - self["fillmode"] = _v - _v = arg.pop("shape", None) - _v = shape if shape is not None else _v - if _v is not None: - self["shape"] = _v - _v = arg.pop("shapesrc", None) - _v = shapesrc if shapesrc is not None else _v - if _v is not None: - self["shapesrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("solidity", None) - _v = solidity if solidity is not None else _v - if _v is not None: - self["solidity"] = _v - _v = arg.pop("soliditysrc", None) - _v = soliditysrc if soliditysrc is not None else _v - if _v is not None: - self["soliditysrc"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('fgcolor', arg, fgcolor) + self._init_provided('fgcolorsrc', arg, fgcolorsrc) + self._init_provided('fgopacity', arg, fgopacity) + self._init_provided('fillmode', arg, fillmode) + self._init_provided('shape', arg, shape) + self._init_provided('shapesrc', arg, shapesrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('solidity', arg, solidity) + self._init_provided('soliditysrc', arg, soliditysrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnelarea/title/__init__.py b/packages/python/plotly/plotly/graph_objs/funnelarea/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/funnelarea/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/funnelarea/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/funnelarea/title/_font.py b/packages/python/plotly/plotly/graph_objs/funnelarea/title/_font.py index 46206667e0e..ad79e57550c 100644 --- a/packages/python/plotly/plotly/graph_objs/funnelarea/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/funnelarea/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "funnelarea.title" - _path_str = "funnelarea.title.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'funnelarea.title' + _path_str = 'funnelarea.title.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.funnelarea.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.funnelarea.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.funnelarea.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/heatmap/__init__.py b/packages/python/plotly/plotly/graph_objs/heatmap/__init__.py index d11fcc4952f..89d9dcdf636 100644 --- a/packages/python/plotly/plotly/graph_objs/heatmap/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/heatmap/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._hoverlabel import Hoverlabel @@ -12,15 +11,10 @@ from . import legendgrouptitle else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".colorbar", ".hoverlabel", ".legendgrouptitle"], - [ - "._colorbar.ColorBar", - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._stream.Stream", - "._textfont.Textfont", - ], + ['.colorbar', '.hoverlabel', '.legendgrouptitle'], + ['._colorbar.ColorBar', '._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._stream.Stream', '._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/heatmap/_colorbar.py b/packages/python/plotly/plotly/graph_objs/heatmap/_colorbar.py index 65f4b6ccf6a..f6d6448850a 100644 --- a/packages/python/plotly/plotly/graph_objs/heatmap/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/heatmap/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "heatmap" - _path_str = "heatmap.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'heatmap' + _path_str = 'heatmap.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.heatmap.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.heatmap.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.heatmap.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.heatmap.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.heatmap.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.heatmap.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.heatmap.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/heatmap/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/heatmap/_hoverlabel.py index 736d3e4baf0..4546908cb15 100644 --- a/packages/python/plotly/plotly/graph_objs/heatmap/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/heatmap/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "heatmap" - _path_str = "heatmap.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'heatmap' + _path_str = 'heatmap.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.heatmap.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.heatmap.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.heatmap.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.heatmap.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/heatmap/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/heatmap/_legendgrouptitle.py index 36b4fc7f80e..ce287e1b087 100644 --- a/packages/python/plotly/plotly/graph_objs/heatmap/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/heatmap/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "heatmap" - _path_str = "heatmap.legendgrouptitle" + _parent_path_str = 'heatmap' + _path_str = 'heatmap.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.heatmap.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.heatmap.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.heatmap.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.heatmap.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/heatmap/_stream.py b/packages/python/plotly/plotly/graph_objs/heatmap/_stream.py index 9873a8efbd2..5b2c3356c78 100644 --- a/packages/python/plotly/plotly/graph_objs/heatmap/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/heatmap/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "heatmap" - _path_str = "heatmap.stream" + _parent_path_str = 'heatmap' + _path_str = 'heatmap.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.heatmap.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.heatmap.Stream`""" - ) +an instance of :class:`plotly.graph_objs.heatmap.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/heatmap/_textfont.py b/packages/python/plotly/plotly/graph_objs/heatmap/_textfont.py index 552355ffff7..0fd8566dbb7 100644 --- a/packages/python/plotly/plotly/graph_objs/heatmap/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/heatmap/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "heatmap" - _path_str = "heatmap.textfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'heatmap' + _path_str = 'heatmap.textfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Textfont object @@ -377,10 +332,10 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.heatmap.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.heatmap.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.heatmap.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/_tickfont.py index 41542ed4374..cb7295c6c3a 100644 --- a/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "heatmap.colorbar" - _path_str = "heatmap.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'heatmap.colorbar' + _path_str = 'heatmap.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.heatmap.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.heatmap.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.heatmap.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/_tickformatstop.py index 33191724a49..9515378764d 100644 --- a/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "heatmap.colorbar" - _path_str = "heatmap.colorbar.tickformatstop" + _parent_path_str = 'heatmap.colorbar' + _path_str = 'heatmap.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.heatmap.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.heatmap.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.heatmap.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/_title.py index 02cdcf64310..034530e41ec 100644 --- a/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "heatmap.colorbar" - _path_str = "heatmap.colorbar.title" + _parent_path_str = 'heatmap.colorbar' + _path_str = 'heatmap.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.heatmap.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.heatmap.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.heatmap.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.heatmap.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/title/_font.py index 81a2c54ac21..a2a22c125e4 100644 --- a/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "heatmap.colorbar.title" - _path_str = "heatmap.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'heatmap.colorbar.title' + _path_str = 'heatmap.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.heatmap.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.heatmap.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.heatmap.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/heatmap/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/heatmap/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/heatmap/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/heatmap/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/heatmap/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/heatmap/hoverlabel/_font.py index deaf08155df..e312b4d18f3 100644 --- a/packages/python/plotly/plotly/graph_objs/heatmap/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/heatmap/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "heatmap.hoverlabel" - _path_str = "heatmap.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'heatmap.hoverlabel' + _path_str = 'heatmap.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.heatmap.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.heatmap.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.heatmap.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/heatmap/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/heatmap/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/heatmap/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/heatmap/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/heatmap/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/heatmap/legendgrouptitle/_font.py index f426b334beb..23651c8d207 100644 --- a/packages/python/plotly/plotly/graph_objs/heatmap/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/heatmap/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "heatmap.legendgrouptitle" - _path_str = "heatmap.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'heatmap.legendgrouptitle' + _path_str = 'heatmap.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.heatmap.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.heatmap.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.heatmap.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram/__init__.py index 3817ff41de9..54264d0bdd9 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._cumulative import Cumulative from ._error_x import ErrorX @@ -23,24 +22,10 @@ from . import unselected else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".hoverlabel", ".legendgrouptitle", ".marker", ".selected", ".unselected"], - [ - "._cumulative.Cumulative", - "._error_x.ErrorX", - "._error_y.ErrorY", - "._hoverlabel.Hoverlabel", - "._insidetextfont.Insidetextfont", - "._legendgrouptitle.Legendgrouptitle", - "._marker.Marker", - "._outsidetextfont.Outsidetextfont", - "._selected.Selected", - "._stream.Stream", - "._textfont.Textfont", - "._unselected.Unselected", - "._xbins.XBins", - "._ybins.YBins", - ], + ['.hoverlabel', '.legendgrouptitle', '.marker', '.selected', '.unselected'], + ['._cumulative.Cumulative', '._error_x.ErrorX', '._error_y.ErrorY', '._hoverlabel.Hoverlabel', '._insidetextfont.Insidetextfont', '._legendgrouptitle.Legendgrouptitle', '._marker.Marker', '._outsidetextfont.Outsidetextfont', '._selected.Selected', '._stream.Stream', '._textfont.Textfont', '._unselected.Unselected', '._xbins.XBins', '._ybins.YBins'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/histogram/_cumulative.py b/packages/python/plotly/plotly/graph_objs/histogram/_cumulative.py index a0f4f94d07b..d70910da98e 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/_cumulative.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/_cumulative.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Cumulative(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram" - _path_str = "histogram.cumulative" + _parent_path_str = 'histogram' + _path_str = 'histogram.cumulative' _valid_props = {"currentbin", "direction", "enabled"} # currentbin @@ -30,11 +32,11 @@ def currentbin(self): ------- Any """ - return self["currentbin"] + return self['currentbin'] @currentbin.setter def currentbin(self, val): - self["currentbin"] = val + self['currentbin'] = val # direction # --------- @@ -54,11 +56,11 @@ def direction(self): ------- Any """ - return self["direction"] + return self['direction'] @direction.setter def direction(self, val): - self["direction"] = val + self['direction'] = val # enabled # ------- @@ -80,11 +82,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # Self properties description # --------------------------- @@ -114,10 +116,13 @@ def _prop_descriptions(self): "probability" and *probability density* both rise to the number of sample points. """ - - def __init__( - self, arg=None, currentbin=None, direction=None, enabled=None, **kwargs - ): + def __init__(self, + arg=None, + currentbin=None, + direction=None, + enabled=None, + **kwargs + ): """ Construct a new Cumulative object @@ -154,10 +159,10 @@ def __init__( ------- Cumulative """ - super(Cumulative, self).__init__("cumulative") + super(Cumulative, self).__init__('cumulative') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -169,32 +174,22 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram.Cumulative constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram.Cumulative`""" - ) +an instance of :class:`plotly.graph_objs.histogram.Cumulative`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("currentbin", None) - _v = currentbin if currentbin is not None else _v - if _v is not None: - self["currentbin"] = _v - _v = arg.pop("direction", None) - _v = direction if direction is not None else _v - if _v is not None: - self["direction"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v + self._init_provided('currentbin', arg, currentbin) + self._init_provided('direction', arg, direction) + self._init_provided('enabled', arg, enabled) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/_error_x.py b/packages/python/plotly/plotly/graph_objs/histogram/_error_x.py index 0a3abfec720..6a55f116360 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/_error_x.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/_error_x.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,25 +8,9 @@ class ErrorX(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram" - _path_str = "histogram.error_x" - _valid_props = { - "array", - "arrayminus", - "arrayminussrc", - "arraysrc", - "color", - "copy_ystyle", - "symmetric", - "thickness", - "traceref", - "tracerefminus", - "type", - "value", - "valueminus", - "visible", - "width", - } + _parent_path_str = 'histogram' + _path_str = 'histogram.error_x' + _valid_props = {"array", "arrayminus", "arrayminussrc", "arraysrc", "color", "copy_ystyle", "symmetric", "thickness", "traceref", "tracerefminus", "type", "value", "valueminus", "visible", "width"} # array # ----- @@ -41,11 +27,11 @@ def array(self): ------- numpy.ndarray """ - return self["array"] + return self['array'] @array.setter def array(self, val): - self["array"] = val + self['array'] = val # arrayminus # ---------- @@ -63,11 +49,11 @@ def arrayminus(self): ------- numpy.ndarray """ - return self["arrayminus"] + return self['arrayminus'] @arrayminus.setter def arrayminus(self, val): - self["arrayminus"] = val + self['arrayminus'] = val # arrayminussrc # ------------- @@ -84,11 +70,11 @@ def arrayminussrc(self): ------- str """ - return self["arrayminussrc"] + return self['arrayminussrc'] @arrayminussrc.setter def arrayminussrc(self, val): - self["arrayminussrc"] = val + self['arrayminussrc'] = val # arraysrc # -------- @@ -104,11 +90,11 @@ def arraysrc(self): ------- str """ - return self["arraysrc"] + return self['arraysrc'] @arraysrc.setter def arraysrc(self, val): - self["arraysrc"] = val + self['arraysrc'] = val # color # ----- @@ -122,52 +108,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # copy_ystyle # ----------- @@ -181,11 +132,11 @@ def copy_ystyle(self): ------- bool """ - return self["copy_ystyle"] + return self['copy_ystyle'] @copy_ystyle.setter def copy_ystyle(self, val): - self["copy_ystyle"] = val + self['copy_ystyle'] = val # symmetric # --------- @@ -203,11 +154,11 @@ def symmetric(self): ------- bool """ - return self["symmetric"] + return self['symmetric'] @symmetric.setter def symmetric(self, val): - self["symmetric"] = val + self['symmetric'] = val # thickness # --------- @@ -223,11 +174,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # traceref # -------- @@ -242,11 +193,11 @@ def traceref(self): ------- int """ - return self["traceref"] + return self['traceref'] @traceref.setter def traceref(self, val): - self["traceref"] = val + self['traceref'] = val # tracerefminus # ------------- @@ -261,11 +212,11 @@ def tracerefminus(self): ------- int """ - return self["tracerefminus"] + return self['tracerefminus'] @tracerefminus.setter def tracerefminus(self, val): - self["tracerefminus"] = val + self['tracerefminus'] = val # type # ---- @@ -288,11 +239,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # value # ----- @@ -310,11 +261,11 @@ def value(self): ------- int|float """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # valueminus # ---------- @@ -333,11 +284,11 @@ def valueminus(self): ------- int|float """ - return self["valueminus"] + return self['valueminus'] @valueminus.setter def valueminus(self, val): - self["valueminus"] = val + self['valueminus'] = val # visible # ------- @@ -353,11 +304,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # width # ----- @@ -374,11 +325,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -441,27 +392,25 @@ def _prop_descriptions(self): Sets the width (in px) of the cross-bar at both ends of the error bars. """ - - def __init__( - self, - arg=None, - array=None, - arrayminus=None, - arrayminussrc=None, - arraysrc=None, - color=None, - copy_ystyle=None, - symmetric=None, - thickness=None, - traceref=None, - tracerefminus=None, - type=None, - value=None, - valueminus=None, - visible=None, - width=None, - **kwargs, - ): + def __init__(self, + arg=None, + array=None, + arrayminus=None, + arrayminussrc=None, + arraysrc=None, + color=None, + copy_ystyle=None, + symmetric=None, + thickness=None, + traceref=None, + tracerefminus=None, + type=None, + value=None, + valueminus=None, + visible=None, + width=None, + **kwargs + ): """ Construct a new ErrorX object @@ -531,10 +480,10 @@ def __init__( ------- ErrorX """ - super(ErrorX, self).__init__("error_x") + super(ErrorX, self).__init__('error_x') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -546,80 +495,34 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram.ErrorX constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram.ErrorX`""" - ) +an instance of :class:`plotly.graph_objs.histogram.ErrorX`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("array", None) - _v = array if array is not None else _v - if _v is not None: - self["array"] = _v - _v = arg.pop("arrayminus", None) - _v = arrayminus if arrayminus is not None else _v - if _v is not None: - self["arrayminus"] = _v - _v = arg.pop("arrayminussrc", None) - _v = arrayminussrc if arrayminussrc is not None else _v - if _v is not None: - self["arrayminussrc"] = _v - _v = arg.pop("arraysrc", None) - _v = arraysrc if arraysrc is not None else _v - if _v is not None: - self["arraysrc"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("copy_ystyle", None) - _v = copy_ystyle if copy_ystyle is not None else _v - if _v is not None: - self["copy_ystyle"] = _v - _v = arg.pop("symmetric", None) - _v = symmetric if symmetric is not None else _v - if _v is not None: - self["symmetric"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("traceref", None) - _v = traceref if traceref is not None else _v - if _v is not None: - self["traceref"] = _v - _v = arg.pop("tracerefminus", None) - _v = tracerefminus if tracerefminus is not None else _v - if _v is not None: - self["tracerefminus"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v - _v = arg.pop("valueminus", None) - _v = valueminus if valueminus is not None else _v - if _v is not None: - self["valueminus"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('array', arg, array) + self._init_provided('arrayminus', arg, arrayminus) + self._init_provided('arrayminussrc', arg, arrayminussrc) + self._init_provided('arraysrc', arg, arraysrc) + self._init_provided('color', arg, color) + self._init_provided('copy_ystyle', arg, copy_ystyle) + self._init_provided('symmetric', arg, symmetric) + self._init_provided('thickness', arg, thickness) + self._init_provided('traceref', arg, traceref) + self._init_provided('tracerefminus', arg, tracerefminus) + self._init_provided('type', arg, type) + self._init_provided('value', arg, value) + self._init_provided('valueminus', arg, valueminus) + self._init_provided('visible', arg, visible) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/_error_y.py b/packages/python/plotly/plotly/graph_objs/histogram/_error_y.py index 3f8d67a8287..24c4359489d 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/_error_y.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/_error_y.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,24 +8,9 @@ class ErrorY(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram" - _path_str = "histogram.error_y" - _valid_props = { - "array", - "arrayminus", - "arrayminussrc", - "arraysrc", - "color", - "symmetric", - "thickness", - "traceref", - "tracerefminus", - "type", - "value", - "valueminus", - "visible", - "width", - } + _parent_path_str = 'histogram' + _path_str = 'histogram.error_y' + _valid_props = {"array", "arrayminus", "arrayminussrc", "arraysrc", "color", "symmetric", "thickness", "traceref", "tracerefminus", "type", "value", "valueminus", "visible", "width"} # array # ----- @@ -40,11 +27,11 @@ def array(self): ------- numpy.ndarray """ - return self["array"] + return self['array'] @array.setter def array(self, val): - self["array"] = val + self['array'] = val # arrayminus # ---------- @@ -62,11 +49,11 @@ def arrayminus(self): ------- numpy.ndarray """ - return self["arrayminus"] + return self['arrayminus'] @arrayminus.setter def arrayminus(self, val): - self["arrayminus"] = val + self['arrayminus'] = val # arrayminussrc # ------------- @@ -83,11 +70,11 @@ def arrayminussrc(self): ------- str """ - return self["arrayminussrc"] + return self['arrayminussrc'] @arrayminussrc.setter def arrayminussrc(self, val): - self["arrayminussrc"] = val + self['arrayminussrc'] = val # arraysrc # -------- @@ -103,11 +90,11 @@ def arraysrc(self): ------- str """ - return self["arraysrc"] + return self['arraysrc'] @arraysrc.setter def arraysrc(self, val): - self["arraysrc"] = val + self['arraysrc'] = val # color # ----- @@ -121,52 +108,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # symmetric # --------- @@ -184,11 +136,11 @@ def symmetric(self): ------- bool """ - return self["symmetric"] + return self['symmetric'] @symmetric.setter def symmetric(self, val): - self["symmetric"] = val + self['symmetric'] = val # thickness # --------- @@ -204,11 +156,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # traceref # -------- @@ -223,11 +175,11 @@ def traceref(self): ------- int """ - return self["traceref"] + return self['traceref'] @traceref.setter def traceref(self, val): - self["traceref"] = val + self['traceref'] = val # tracerefminus # ------------- @@ -242,11 +194,11 @@ def tracerefminus(self): ------- int """ - return self["tracerefminus"] + return self['tracerefminus'] @tracerefminus.setter def tracerefminus(self, val): - self["tracerefminus"] = val + self['tracerefminus'] = val # type # ---- @@ -269,11 +221,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # value # ----- @@ -291,11 +243,11 @@ def value(self): ------- int|float """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # valueminus # ---------- @@ -314,11 +266,11 @@ def valueminus(self): ------- int|float """ - return self["valueminus"] + return self['valueminus'] @valueminus.setter def valueminus(self, val): - self["valueminus"] = val + self['valueminus'] = val # visible # ------- @@ -334,11 +286,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # width # ----- @@ -355,11 +307,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -420,26 +372,24 @@ def _prop_descriptions(self): Sets the width (in px) of the cross-bar at both ends of the error bars. """ - - def __init__( - self, - arg=None, - array=None, - arrayminus=None, - arrayminussrc=None, - arraysrc=None, - color=None, - symmetric=None, - thickness=None, - traceref=None, - tracerefminus=None, - type=None, - value=None, - valueminus=None, - visible=None, - width=None, - **kwargs, - ): + def __init__(self, + arg=None, + array=None, + arrayminus=None, + arrayminussrc=None, + arraysrc=None, + color=None, + symmetric=None, + thickness=None, + traceref=None, + tracerefminus=None, + type=None, + value=None, + valueminus=None, + visible=None, + width=None, + **kwargs + ): """ Construct a new ErrorY object @@ -507,10 +457,10 @@ def __init__( ------- ErrorY """ - super(ErrorY, self).__init__("error_y") + super(ErrorY, self).__init__('error_y') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -522,76 +472,33 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram.ErrorY constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram.ErrorY`""" - ) +an instance of :class:`plotly.graph_objs.histogram.ErrorY`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("array", None) - _v = array if array is not None else _v - if _v is not None: - self["array"] = _v - _v = arg.pop("arrayminus", None) - _v = arrayminus if arrayminus is not None else _v - if _v is not None: - self["arrayminus"] = _v - _v = arg.pop("arrayminussrc", None) - _v = arrayminussrc if arrayminussrc is not None else _v - if _v is not None: - self["arrayminussrc"] = _v - _v = arg.pop("arraysrc", None) - _v = arraysrc if arraysrc is not None else _v - if _v is not None: - self["arraysrc"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("symmetric", None) - _v = symmetric if symmetric is not None else _v - if _v is not None: - self["symmetric"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("traceref", None) - _v = traceref if traceref is not None else _v - if _v is not None: - self["traceref"] = _v - _v = arg.pop("tracerefminus", None) - _v = tracerefminus if tracerefminus is not None else _v - if _v is not None: - self["tracerefminus"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v - _v = arg.pop("valueminus", None) - _v = valueminus if valueminus is not None else _v - if _v is not None: - self["valueminus"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('array', arg, array) + self._init_provided('arrayminus', arg, arrayminus) + self._init_provided('arrayminussrc', arg, arrayminussrc) + self._init_provided('arraysrc', arg, arraysrc) + self._init_provided('color', arg, color) + self._init_provided('symmetric', arg, symmetric) + self._init_provided('thickness', arg, thickness) + self._init_provided('traceref', arg, traceref) + self._init_provided('tracerefminus', arg, tracerefminus) + self._init_provided('type', arg, type) + self._init_provided('value', arg, value) + self._init_provided('valueminus', arg, valueminus) + self._init_provided('visible', arg, visible) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/histogram/_hoverlabel.py index 89296ba7022..1b1c2281292 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram" - _path_str = "histogram.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'histogram' + _path_str = 'histogram.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.histogram.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.histogram.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/_insidetextfont.py b/packages/python/plotly/plotly/graph_objs/histogram/_insidetextfont.py index e62907cb35b..e85774129ca 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/_insidetextfont.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/_insidetextfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Insidetextfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram" - _path_str = "histogram.insidetextfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'histogram' + _path_str = 'histogram.insidetextfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Insidetextfont object @@ -377,10 +332,10 @@ def __init__( ------- Insidetextfont """ - super(Insidetextfont, self).__init__("insidetextfont") + super(Insidetextfont, self).__init__('insidetextfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram.Insidetextfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram.Insidetextfont`""" - ) +an instance of :class:`plotly.graph_objs.histogram.Insidetextfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/histogram/_legendgrouptitle.py index 97d65c720d6..c87718fd883 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram" - _path_str = "histogram.legendgrouptitle" + _parent_path_str = 'histogram' + _path_str = 'histogram.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.histogram.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.histogram.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/_marker.py b/packages/python/plotly/plotly/graph_objs/histogram/_marker.py index d215a26dffa..13cf484d646 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,27 +8,9 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram" - _path_str = "histogram.marker" - _valid_props = { - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorbar", - "colorscale", - "colorsrc", - "cornerradius", - "line", - "opacity", - "opacitysrc", - "pattern", - "reversescale", - "showscale", - } + _parent_path_str = 'histogram' + _path_str = 'histogram.marker' + _valid_props = {"autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorbar", "colorscale", "colorsrc", "cornerradius", "line", "opacity", "opacitysrc", "pattern", "reversescale", "showscale"} # autocolorscale # -------------- @@ -48,11 +32,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -73,11 +57,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -96,11 +80,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -120,11 +104,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -143,11 +127,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -164,42 +148,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to histogram.marker.colorscale - A list or array of any of the above @@ -208,11 +157,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -235,11 +184,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -252,282 +201,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.histogr - am.marker.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.histogram.marker.colorbar.tickformatstopdefau - lts), sets the default property values to use - for elements of - histogram.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.histogram.marker.c - olorbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.histogram.marker.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -577,11 +259,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -597,11 +279,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # cornerradius # ------------ @@ -620,11 +302,11 @@ def cornerradius(self): ------- Any """ - return self["cornerradius"] + return self['cornerradius'] @cornerradius.setter def cornerradius(self, val): - self["cornerradius"] = val + self['cornerradius'] = val # line # ---- @@ -637,107 +319,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.line.colorscale`. Has an - effect only if in `marker.line.color` is set to - a numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.line.color`) or the bounds set in - `marker.line.cmin` and `marker.line.cmax` Has - an effect only if in `marker.line.color` is set - to a numerical array. Defaults to `false` when - `marker.line.cmin` and `marker.line.cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.line.cmin` and/or - `marker.line.cmax` to be equidistant to this - point. Has an effect only if in - `marker.line.color` is set to a numerical - array. Value should have the same units as in - `marker.line.color`. Has no effect when - `marker.line.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmax` must be set as well. - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorscale - Sets the colorscale. Has an effect only if in - `marker.line.color` is set to a numerical - array. The colorscale must be an array - containing arrays mapping a normalized value to - an rgb, rgba, hex, hsl, hsv, or named color - string. At minimum, a mapping for the lowest - (0) and highest (1) values are required. For - example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use - `marker.line.cmin` and `marker.line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.line.color` is set to - a numerical array. If true, `marker.line.cmin` - will correspond to the last color in the array - and `marker.line.cmax` will correspond to the - first color. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. - Returns ------- plotly.graph_objs.histogram.marker.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # opacity # ------- @@ -754,11 +344,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # opacitysrc # ---------- @@ -774,11 +364,11 @@ def opacitysrc(self): ------- str """ - return self["opacitysrc"] + return self['opacitysrc'] @opacitysrc.setter def opacitysrc(self, val): - self["opacitysrc"] = val + self['opacitysrc'] = val # pattern # ------- @@ -793,66 +383,15 @@ def pattern(self): - A dict of string/value properties that will be passed to the Pattern constructor - Supported dict properties: - - bgcolor - When there is no colorscale sets the color of - background pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "overlay". Otherwise, defaults to a transparent - background. - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - fgcolor - When there is no colorscale sets the color of - foreground pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "replace". Otherwise, defaults to dark grey or - white to increase contrast with the `bgcolor`. - fgcolorsrc - Sets the source reference on Chart Studio Cloud - for `fgcolor`. - fgopacity - Sets the opacity of the foreground pattern - fill. Defaults to a 0.5 when `fillmode` is - "overlay". Otherwise, defaults to 1. - fillmode - Determines whether `marker.color` should be - used as a default to `bgcolor` or a `fgcolor`. - shape - Sets the shape of the pattern fill. By default, - no pattern is used for filling the area. - shapesrc - Sets the source reference on Chart Studio Cloud - for `shape`. - size - Sets the size of unit squares of the pattern - fill in pixels, which corresponds to the - interval of repetition of the pattern. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - solidity - Sets the solidity of the pattern fill. Solidity - is roughly the fraction of the area filled by - the pattern. Solidity of 0 shows only the - background color without pattern and solidty of - 1 shows only the foreground color without - pattern. - soliditysrc - Sets the source reference on Chart Studio Cloud - for `solidity`. - Returns ------- plotly.graph_objs.histogram.marker.Pattern """ - return self["pattern"] + return self['pattern'] @pattern.setter def pattern(self, val): - self["pattern"] = val + self['pattern'] = val # reversescale # ------------ @@ -871,11 +410,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # showscale # --------- @@ -893,11 +432,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # Self properties description # --------------------------- @@ -997,29 +536,27 @@ def _prop_descriptions(self): this trace. Has an effect only if in `marker.color` is set to a numerical array. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorbar=None, - colorscale=None, - colorsrc=None, - cornerradius=None, - line=None, - opacity=None, - opacitysrc=None, - pattern=None, - reversescale=None, - showscale=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorbar=None, + colorscale=None, + colorsrc=None, + cornerradius=None, + line=None, + opacity=None, + opacitysrc=None, + pattern=None, + reversescale=None, + showscale=None, + **kwargs + ): """ Construct a new Marker object @@ -1126,10 +663,10 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1141,88 +678,36 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram.Marker`""" - ) +an instance of :class:`plotly.graph_objs.histogram.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("cornerradius", None) - _v = cornerradius if cornerradius is not None else _v - if _v is not None: - self["cornerradius"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("opacitysrc", None) - _v = opacitysrc if opacitysrc is not None else _v - if _v is not None: - self["opacitysrc"] = _v - _v = arg.pop("pattern", None) - _v = pattern if pattern is not None else _v - if _v is not None: - self["pattern"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('cornerradius', arg, cornerradius) + self._init_provided('line', arg, line) + self._init_provided('opacity', arg, opacity) + self._init_provided('opacitysrc', arg, opacitysrc) + self._init_provided('pattern', arg, pattern) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('showscale', arg, showscale) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/_outsidetextfont.py b/packages/python/plotly/plotly/graph_objs/histogram/_outsidetextfont.py index 2e9ff3e407c..b108d4c9c64 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/_outsidetextfont.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/_outsidetextfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Outsidetextfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram" - _path_str = "histogram.outsidetextfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'histogram' + _path_str = 'histogram.outsidetextfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Outsidetextfont object @@ -377,10 +332,10 @@ def __init__( ------- Outsidetextfont """ - super(Outsidetextfont, self).__init__("outsidetextfont") + super(Outsidetextfont, self).__init__('outsidetextfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram.Outsidetextfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram.Outsidetextfont`""" - ) +an instance of :class:`plotly.graph_objs.histogram.Outsidetextfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/_selected.py b/packages/python/plotly/plotly/graph_objs/histogram/_selected.py index 22a7e2d3c77..72dbbbf6294 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/_selected.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/_selected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Selected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram" - _path_str = "histogram.selected" + _parent_path_str = 'histogram' + _path_str = 'histogram.selected' _valid_props = {"marker", "textfont"} # marker @@ -21,22 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. - Returns ------- plotly.graph_objs.histogram.selected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # textfont # -------- @@ -49,20 +44,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - Sets the text font color of selected points. - Returns ------- plotly.graph_objs.histogram.selected.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # Self properties description # --------------------------- @@ -76,8 +66,12 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.histogram.selected.Textfon t` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, textfont=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + textfont=None, + **kwargs + ): """ Construct a new Selected object @@ -98,10 +92,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") + super(Selected, self).__init__('selected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -113,28 +107,21 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram.Selected constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram.Selected`""" - ) +an instance of :class:`plotly.graph_objs.histogram.Selected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v + self._init_provided('marker', arg, marker) + self._init_provided('textfont', arg, textfont) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/_stream.py b/packages/python/plotly/plotly/graph_objs/histogram/_stream.py index 8fbbfc36c8d..83267cb9730 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram" - _path_str = "histogram.stream" + _parent_path_str = 'histogram' + _path_str = 'histogram.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram.Stream`""" - ) +an instance of :class:`plotly.graph_objs.histogram.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/_textfont.py b/packages/python/plotly/plotly/graph_objs/histogram/_textfont.py index e8a97b2f5a8..8c8f2d3520a 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram" - _path_str = "histogram.textfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'histogram' + _path_str = 'histogram.textfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Textfont object @@ -377,10 +332,10 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.histogram.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/_unselected.py b/packages/python/plotly/plotly/graph_objs/histogram/_unselected.py index 833fb1aaa8c..004aafae39b 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/_unselected.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/_unselected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Unselected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram" - _path_str = "histogram.unselected" + _parent_path_str = 'histogram' + _path_str = 'histogram.unselected' _valid_props = {"marker", "textfont"} # marker @@ -21,24 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.histogram.unselected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # textfont # -------- @@ -51,21 +44,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - Sets the text font color of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.histogram.unselected.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # Self properties description # --------------------------- @@ -79,8 +66,12 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.histogram.unselected.Textf ont` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, textfont=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + textfont=None, + **kwargs + ): """ Construct a new Unselected object @@ -101,10 +92,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") + super(Unselected, self).__init__('unselected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -116,28 +107,21 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram.Unselected constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram.Unselected`""" - ) +an instance of :class:`plotly.graph_objs.histogram.Unselected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v + self._init_provided('marker', arg, marker) + self._init_provided('textfont', arg, textfont) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/_xbins.py b/packages/python/plotly/plotly/graph_objs/histogram/_xbins.py index 472c0125877..42229ec91fa 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/_xbins.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/_xbins.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class XBins(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram" - _path_str = "histogram.xbins" + _parent_path_str = 'histogram' + _path_str = 'histogram.xbins' _valid_props = {"end", "size", "start"} # end @@ -28,11 +30,11 @@ def end(self): ------- Any """ - return self["end"] + return self['end'] @end.setter def end(self, val): - self["end"] = val + self['end'] = val # size # ---- @@ -58,11 +60,11 @@ def size(self): ------- Any """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # start # ----- @@ -89,11 +91,11 @@ def start(self): ------- Any """ - return self["start"] + return self['start'] @start.setter def start(self, val): - self["start"] = val + self['start'] = val # Self properties description # --------------------------- @@ -138,8 +140,13 @@ def _prop_descriptions(self): are shifted down (if necessary) to differ from that one by an integer number of bins. """ - - def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): + def __init__(self, + arg=None, + end=None, + size=None, + start=None, + **kwargs + ): """ Construct a new XBins object @@ -191,10 +198,10 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): ------- XBins """ - super(XBins, self).__init__("xbins") + super(XBins, self).__init__('xbins') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -206,32 +213,22 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram.XBins constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram.XBins`""" - ) +an instance of :class:`plotly.graph_objs.histogram.XBins`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("end", None) - _v = end if end is not None else _v - if _v is not None: - self["end"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("start", None) - _v = start if start is not None else _v - if _v is not None: - self["start"] = _v + self._init_provided('end', arg, end) + self._init_provided('size', arg, size) + self._init_provided('start', arg, start) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/_ybins.py b/packages/python/plotly/plotly/graph_objs/histogram/_ybins.py index f5a44a21db4..affae18266b 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/_ybins.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/_ybins.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class YBins(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram" - _path_str = "histogram.ybins" + _parent_path_str = 'histogram' + _path_str = 'histogram.ybins' _valid_props = {"end", "size", "start"} # end @@ -28,11 +30,11 @@ def end(self): ------- Any """ - return self["end"] + return self['end'] @end.setter def end(self, val): - self["end"] = val + self['end'] = val # size # ---- @@ -58,11 +60,11 @@ def size(self): ------- Any """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # start # ----- @@ -89,11 +91,11 @@ def start(self): ------- Any """ - return self["start"] + return self['start'] @start.setter def start(self, val): - self["start"] = val + self['start'] = val # Self properties description # --------------------------- @@ -138,8 +140,13 @@ def _prop_descriptions(self): are shifted down (if necessary) to differ from that one by an integer number of bins. """ - - def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): + def __init__(self, + arg=None, + end=None, + size=None, + start=None, + **kwargs + ): """ Construct a new YBins object @@ -191,10 +198,10 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): ------- YBins """ - super(YBins, self).__init__("ybins") + super(YBins, self).__init__('ybins') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -206,32 +213,22 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram.YBins constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram.YBins`""" - ) +an instance of :class:`plotly.graph_objs.histogram.YBins`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("end", None) - _v = end if end is not None else _v - if _v is not None: - self["end"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("start", None) - _v = start if start is not None else _v - if _v is not None: - self["start"] = _v + self._init_provided('end', arg, end) + self._init_provided('size', arg, size) + self._init_provided('start', arg, start) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/histogram/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/histogram/hoverlabel/_font.py index 098db6c9dc4..3d302ca63df 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram.hoverlabel" - _path_str = "histogram.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'histogram.hoverlabel' + _path_str = 'histogram.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.histogram.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/histogram/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/histogram/legendgrouptitle/_font.py index 734c1a794ad..fd38fe32035 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram.legendgrouptitle" - _path_str = "histogram.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'histogram.legendgrouptitle' + _path_str = 'histogram.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.histogram.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram/marker/__init__.py index ce0279c5444..210a88dd222 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._line import Line @@ -8,9 +7,10 @@ from . import colorbar else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".colorbar"], - ["._colorbar.ColorBar", "._line.Line", "._pattern.Pattern"], + ['.colorbar'], + ['._colorbar.ColorBar', '._line.Line', '._pattern.Pattern'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/histogram/marker/_colorbar.py b/packages/python/plotly/plotly/graph_objs/histogram/marker/_colorbar.py index e7402db0a9a..1c81994dfb3 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/marker/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/marker/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram.marker" - _path_str = "histogram.marker.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'histogram.marker' + _path_str = 'histogram.marker.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.histogram.marker.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.histogram.marker.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.histogram.marker.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.histogram.marker.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram.marker.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram.marker.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.histogram.marker.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/marker/_line.py b/packages/python/plotly/plotly/graph_objs/histogram/marker/_line.py index cf6c096ec38..b0f635cc494 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/marker/_line.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/marker/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,22 +8,9 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram.marker" - _path_str = "histogram.marker.line" - _valid_props = { - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorscale", - "colorsrc", - "reversescale", - "width", - "widthsrc", - } + _parent_path_str = 'histogram.marker' + _path_str = 'histogram.marker.line' + _valid_props = {"autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorscale", "colorsrc", "reversescale", "width", "widthsrc"} # autocolorscale # -------------- @@ -43,11 +32,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -68,11 +57,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -91,11 +80,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -116,11 +105,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -139,11 +128,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -160,42 +149,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to histogram.marker.line.colorscale - A list or array of any of the above @@ -204,11 +158,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -231,11 +185,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorscale # ---------- @@ -286,11 +240,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -306,11 +260,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # reversescale # ------------ @@ -330,11 +284,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # width # ----- @@ -351,11 +305,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # widthsrc # -------- @@ -371,11 +325,11 @@ def widthsrc(self): ------- str """ - return self["widthsrc"] + return self['widthsrc'] @widthsrc.setter def widthsrc(self, val): - self["widthsrc"] = val + self['widthsrc'] = val # Self properties description # --------------------------- @@ -461,24 +415,22 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `width`. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorscale=None, - colorsrc=None, - reversescale=None, - width=None, - widthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorscale=None, + colorsrc=None, + reversescale=None, + width=None, + widthsrc=None, + **kwargs + ): """ Construct a new Line object @@ -571,10 +523,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -586,68 +538,31 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram.marker.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram.marker.Line`""" - ) +an instance of :class:`plotly.graph_objs.histogram.marker.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("widthsrc", None) - _v = widthsrc if widthsrc is not None else _v - if _v is not None: - self["widthsrc"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('width', arg, width) + self._init_provided('widthsrc', arg, widthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/marker/_pattern.py b/packages/python/plotly/plotly/graph_objs/histogram/marker/_pattern.py index 240c87677da..55124fa4ed5 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/marker/_pattern.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/marker/_pattern.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,22 +8,9 @@ class Pattern(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram.marker" - _path_str = "histogram.marker.pattern" - _valid_props = { - "bgcolor", - "bgcolorsrc", - "fgcolor", - "fgcolorsrc", - "fgopacity", - "fillmode", - "shape", - "shapesrc", - "size", - "sizesrc", - "solidity", - "soliditysrc", - } + _parent_path_str = 'histogram.marker' + _path_str = 'histogram.marker.pattern' + _valid_props = {"bgcolor", "bgcolorsrc", "fgcolor", "fgcolorsrc", "fgopacity", "fillmode", "shape", "shapesrc", "size", "sizesrc", "solidity", "soliditysrc"} # bgcolor # ------- @@ -38,53 +27,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -100,11 +54,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # fgcolor # ------- @@ -121,53 +75,18 @@ def fgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["fgcolor"] + return self['fgcolor'] @fgcolor.setter def fgcolor(self, val): - self["fgcolor"] = val + self['fgcolor'] = val # fgcolorsrc # ---------- @@ -183,11 +102,11 @@ def fgcolorsrc(self): ------- str """ - return self["fgcolorsrc"] + return self['fgcolorsrc'] @fgcolorsrc.setter def fgcolorsrc(self, val): - self["fgcolorsrc"] = val + self['fgcolorsrc'] = val # fgopacity # --------- @@ -204,11 +123,11 @@ def fgopacity(self): ------- int|float """ - return self["fgopacity"] + return self['fgopacity'] @fgopacity.setter def fgopacity(self, val): - self["fgopacity"] = val + self['fgopacity'] = val # fillmode # -------- @@ -226,11 +145,11 @@ def fillmode(self): ------- Any """ - return self["fillmode"] + return self['fillmode'] @fillmode.setter def fillmode(self, val): - self["fillmode"] = val + self['fillmode'] = val # shape # ----- @@ -249,11 +168,11 @@ def shape(self): ------- Any|numpy.ndarray """ - return self["shape"] + return self['shape'] @shape.setter def shape(self, val): - self["shape"] = val + self['shape'] = val # shapesrc # -------- @@ -269,11 +188,11 @@ def shapesrc(self): ------- str """ - return self["shapesrc"] + return self['shapesrc'] @shapesrc.setter def shapesrc(self, val): - self["shapesrc"] = val + self['shapesrc'] = val # size # ---- @@ -291,11 +210,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -311,11 +230,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # solidity # -------- @@ -335,11 +254,11 @@ def solidity(self): ------- int|float|numpy.ndarray """ - return self["solidity"] + return self['solidity'] @solidity.setter def solidity(self, val): - self["solidity"] = val + self['solidity'] = val # soliditysrc # ----------- @@ -355,11 +274,11 @@ def soliditysrc(self): ------- str """ - return self["soliditysrc"] + return self['soliditysrc'] @soliditysrc.setter def soliditysrc(self, val): - self["soliditysrc"] = val + self['soliditysrc'] = val # Self properties description # --------------------------- @@ -413,24 +332,22 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `solidity`. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bgcolorsrc=None, - fgcolor=None, - fgcolorsrc=None, - fgopacity=None, - fillmode=None, - shape=None, - shapesrc=None, - size=None, - sizesrc=None, - solidity=None, - soliditysrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bgcolorsrc=None, + fgcolor=None, + fgcolorsrc=None, + fgopacity=None, + fillmode=None, + shape=None, + shapesrc=None, + size=None, + sizesrc=None, + solidity=None, + soliditysrc=None, + **kwargs + ): """ Construct a new Pattern object @@ -493,10 +410,10 @@ def __init__( ------- Pattern """ - super(Pattern, self).__init__("pattern") + super(Pattern, self).__init__('pattern') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -508,68 +425,31 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram.marker.Pattern constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram.marker.Pattern`""" - ) +an instance of :class:`plotly.graph_objs.histogram.marker.Pattern`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("fgcolor", None) - _v = fgcolor if fgcolor is not None else _v - if _v is not None: - self["fgcolor"] = _v - _v = arg.pop("fgcolorsrc", None) - _v = fgcolorsrc if fgcolorsrc is not None else _v - if _v is not None: - self["fgcolorsrc"] = _v - _v = arg.pop("fgopacity", None) - _v = fgopacity if fgopacity is not None else _v - if _v is not None: - self["fgopacity"] = _v - _v = arg.pop("fillmode", None) - _v = fillmode if fillmode is not None else _v - if _v is not None: - self["fillmode"] = _v - _v = arg.pop("shape", None) - _v = shape if shape is not None else _v - if _v is not None: - self["shape"] = _v - _v = arg.pop("shapesrc", None) - _v = shapesrc if shapesrc is not None else _v - if _v is not None: - self["shapesrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("solidity", None) - _v = solidity if solidity is not None else _v - if _v is not None: - self["solidity"] = _v - _v = arg.pop("soliditysrc", None) - _v = soliditysrc if soliditysrc is not None else _v - if _v is not None: - self["soliditysrc"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('fgcolor', arg, fgcolor) + self._init_provided('fgcolorsrc', arg, fgcolorsrc) + self._init_provided('fgopacity', arg, fgopacity) + self._init_provided('fillmode', arg, fillmode) + self._init_provided('shape', arg, shape) + self._init_provided('shapesrc', arg, shapesrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('solidity', arg, solidity) + self._init_provided('soliditysrc', arg, soliditysrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/_tickfont.py index 645c1e21bfb..810d2b28aba 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram.marker.colorbar" - _path_str = "histogram.marker.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'histogram.marker.colorbar' + _path_str = 'histogram.marker.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram.marker.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram.marker.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.histogram.marker.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/_tickformatstop.py index 68061da88f2..3ca1090f09a 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram.marker.colorbar" - _path_str = "histogram.marker.colorbar.tickformatstop" + _parent_path_str = 'histogram.marker.colorbar' + _path_str = 'histogram.marker.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram.marker.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram.marker.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.histogram.marker.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/_title.py index 6a563fa9275..2529a93d09d 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram.marker.colorbar" - _path_str = "histogram.marker.colorbar.title" + _parent_path_str = 'histogram.marker.colorbar' + _path_str = 'histogram.marker.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.histogram.marker.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram.marker.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram.marker.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.histogram.marker.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/title/_font.py index 3cee6565b9f..5e4b0045e7e 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram.marker.colorbar.title" - _path_str = "histogram.marker.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'histogram.marker.colorbar.title' + _path_str = 'histogram.marker.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram.marker.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram.marker.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.histogram.marker.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram/selected/__init__.py index ae964f0b65f..4f70de0f5a9 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/selected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker from ._textfont import Textfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.Marker", "._textfont.Textfont"] + __name__, + [], + ['._marker.Marker', '._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/histogram/selected/_marker.py b/packages/python/plotly/plotly/graph_objs/histogram/selected/_marker.py index 5f9d22286ba..7fb79512194 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/selected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/selected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram.selected" - _path_str = "histogram.selected.marker" + _parent_path_str = 'histogram.selected' + _path_str = 'histogram.selected.marker' _valid_props = {"color", "opacity"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -83,11 +50,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # Self properties description # --------------------------- @@ -99,8 +66,12 @@ def _prop_descriptions(self): opacity Sets the marker opacity of selected points. """ - - def __init__(self, arg=None, color=None, opacity=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + **kwargs + ): """ Construct a new Marker object @@ -119,10 +90,10 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -134,28 +105,21 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram.selected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram.selected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.histogram.selected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/selected/_textfont.py b/packages/python/plotly/plotly/graph_objs/histogram/selected/_textfont.py index 90cc38844d9..07f8faf7a98 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/selected/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/selected/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram.selected" - _path_str = "histogram.selected.textfont" + _parent_path_str = 'histogram.selected' + _path_str = 'histogram.selected.textfont' _valid_props = {"color"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # Self properties description # --------------------------- @@ -77,8 +44,11 @@ def _prop_descriptions(self): color Sets the text font color of selected points. """ - - def __init__(self, arg=None, color=None, **kwargs): + def __init__(self, + arg=None, + color=None, + **kwargs + ): """ Construct a new Textfont object @@ -95,10 +65,10 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -110,24 +80,20 @@ def __init__(self, arg=None, color=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram.selected.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram.selected.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.histogram.selected.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v + self._init_provided('color', arg, color) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram/unselected/__init__.py index ae964f0b65f..4f70de0f5a9 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/unselected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker from ._textfont import Textfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.Marker", "._textfont.Textfont"] + __name__, + [], + ['._marker.Marker', '._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/histogram/unselected/_marker.py b/packages/python/plotly/plotly/graph_objs/histogram/unselected/_marker.py index 9db19dffb22..3542d9982ce 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/unselected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/unselected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram.unselected" - _path_str = "histogram.unselected.marker" + _parent_path_str = 'histogram.unselected' + _path_str = 'histogram.unselected.marker' _valid_props = {"color", "opacity"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -85,11 +52,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # Self properties description # --------------------------- @@ -103,8 +70,12 @@ def _prop_descriptions(self): Sets the marker opacity of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, color=None, opacity=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + **kwargs + ): """ Construct a new Marker object @@ -125,10 +96,10 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -140,28 +111,21 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram.unselected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram.unselected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.histogram.unselected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/unselected/_textfont.py b/packages/python/plotly/plotly/graph_objs/histogram/unselected/_textfont.py index 746af4b38c5..e5c0fdacdc4 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/unselected/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/unselected/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram.unselected" - _path_str = "histogram.unselected.textfont" + _parent_path_str = 'histogram.unselected' + _path_str = 'histogram.unselected.textfont' _valid_props = {"color"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # Self properties description # --------------------------- @@ -79,8 +46,11 @@ def _prop_descriptions(self): Sets the text font color of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, color=None, **kwargs): + def __init__(self, + arg=None, + color=None, + **kwargs + ): """ Construct a new Textfont object @@ -98,10 +68,10 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -113,24 +83,20 @@ def __init__(self, arg=None, color=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram.unselected.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram.unselected.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.histogram.unselected.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v + self._init_provided('color', arg, color) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2d/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram2d/__init__.py index 158cf59c396..7f267d2c55b 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2d/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2d/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._hoverlabel import Hoverlabel @@ -15,18 +14,10 @@ from . import legendgrouptitle else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".colorbar", ".hoverlabel", ".legendgrouptitle"], - [ - "._colorbar.ColorBar", - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._marker.Marker", - "._stream.Stream", - "._textfont.Textfont", - "._xbins.XBins", - "._ybins.YBins", - ], + ['.colorbar', '.hoverlabel', '.legendgrouptitle'], + ['._colorbar.ColorBar', '._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._marker.Marker', '._stream.Stream', '._textfont.Textfont', '._xbins.XBins', '._ybins.YBins'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/histogram2d/_colorbar.py b/packages/python/plotly/plotly/graph_objs/histogram2d/_colorbar.py index ab3d968697a..e05441b7f6d 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2d/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2d/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2d" - _path_str = "histogram2d.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'histogram2d' + _path_str = 'histogram2d.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.histogram2d.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.histogram2d.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.histogram2d.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.histogram2d.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2d.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2d.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.histogram2d.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2d/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/histogram2d/_hoverlabel.py index 715c1cc3dbf..524860fb165 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2d/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2d/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2d" - _path_str = "histogram2d.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'histogram2d' + _path_str = 'histogram2d.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.histogram2d.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2d.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2d.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.histogram2d.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2d/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/histogram2d/_legendgrouptitle.py index 979b092a178..b5d29e788eb 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2d/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2d/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2d" - _path_str = "histogram2d.legendgrouptitle" + _parent_path_str = 'histogram2d' + _path_str = 'histogram2d.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.histogram2d.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2d.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2d.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.histogram2d.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2d/_marker.py b/packages/python/plotly/plotly/graph_objs/histogram2d/_marker.py index 54184ac1ecd..8c7cbb43fd3 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2d/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2d/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2d" - _path_str = "histogram2d.marker" + _parent_path_str = 'histogram2d' + _path_str = 'histogram2d.marker' _valid_props = {"color", "colorsrc"} # color @@ -24,11 +26,11 @@ def color(self): ------- numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -44,11 +46,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # Self properties description # --------------------------- @@ -61,8 +63,12 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `color`. """ - - def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + **kwargs + ): """ Construct a new Marker object @@ -82,10 +88,10 @@ def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -97,28 +103,21 @@ def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2d.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2d.Marker`""" - ) +an instance of :class:`plotly.graph_objs.histogram2d.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2d/_stream.py b/packages/python/plotly/plotly/graph_objs/histogram2d/_stream.py index 6f36c5ab362..6a51cc74477 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2d/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2d/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2d" - _path_str = "histogram2d.stream" + _parent_path_str = 'histogram2d' + _path_str = 'histogram2d.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2d.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2d.Stream`""" - ) +an instance of :class:`plotly.graph_objs.histogram2d.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2d/_textfont.py b/packages/python/plotly/plotly/graph_objs/histogram2d/_textfont.py index ca9fc73e129..aaffd53f5cd 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2d/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2d/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2d" - _path_str = "histogram2d.textfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'histogram2d' + _path_str = 'histogram2d.textfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Textfont object @@ -377,10 +332,10 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2d.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2d.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.histogram2d.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2d/_xbins.py b/packages/python/plotly/plotly/graph_objs/histogram2d/_xbins.py index 0f81cdb0399..92336b4aa5b 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2d/_xbins.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2d/_xbins.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class XBins(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2d" - _path_str = "histogram2d.xbins" + _parent_path_str = 'histogram2d' + _path_str = 'histogram2d.xbins' _valid_props = {"end", "size", "start"} # end @@ -28,11 +30,11 @@ def end(self): ------- Any """ - return self["end"] + return self['end'] @end.setter def end(self, val): - self["end"] = val + self['end'] = val # size # ---- @@ -54,11 +56,11 @@ def size(self): ------- Any """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # start # ----- @@ -82,11 +84,11 @@ def start(self): ------- Any """ - return self["start"] + return self['start'] @start.setter def start(self, val): - self["start"] = val + self['start'] = val # Self properties description # --------------------------- @@ -123,8 +125,13 @@ def _prop_descriptions(self): string. For category data, `start` is based on the category serial numbers, and defaults to -0.5. """ - - def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): + def __init__(self, + arg=None, + end=None, + size=None, + start=None, + **kwargs + ): """ Construct a new XBins object @@ -168,10 +175,10 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): ------- XBins """ - super(XBins, self).__init__("xbins") + super(XBins, self).__init__('xbins') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -183,32 +190,22 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2d.XBins constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2d.XBins`""" - ) +an instance of :class:`plotly.graph_objs.histogram2d.XBins`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("end", None) - _v = end if end is not None else _v - if _v is not None: - self["end"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("start", None) - _v = start if start is not None else _v - if _v is not None: - self["start"] = _v + self._init_provided('end', arg, end) + self._init_provided('size', arg, size) + self._init_provided('start', arg, start) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2d/_ybins.py b/packages/python/plotly/plotly/graph_objs/histogram2d/_ybins.py index 1332dd8f480..d502ef51686 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2d/_ybins.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2d/_ybins.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class YBins(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2d" - _path_str = "histogram2d.ybins" + _parent_path_str = 'histogram2d' + _path_str = 'histogram2d.ybins' _valid_props = {"end", "size", "start"} # end @@ -28,11 +30,11 @@ def end(self): ------- Any """ - return self["end"] + return self['end'] @end.setter def end(self, val): - self["end"] = val + self['end'] = val # size # ---- @@ -54,11 +56,11 @@ def size(self): ------- Any """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # start # ----- @@ -82,11 +84,11 @@ def start(self): ------- Any """ - return self["start"] + return self['start'] @start.setter def start(self, val): - self["start"] = val + self['start'] = val # Self properties description # --------------------------- @@ -123,8 +125,13 @@ def _prop_descriptions(self): string. For category data, `start` is based on the category serial numbers, and defaults to -0.5. """ - - def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): + def __init__(self, + arg=None, + end=None, + size=None, + start=None, + **kwargs + ): """ Construct a new YBins object @@ -168,10 +175,10 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): ------- YBins """ - super(YBins, self).__init__("ybins") + super(YBins, self).__init__('ybins') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -183,32 +190,22 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2d.YBins constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2d.YBins`""" - ) +an instance of :class:`plotly.graph_objs.histogram2d.YBins`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("end", None) - _v = end if end is not None else _v - if _v is not None: - self["end"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("start", None) - _v = start if start is not None else _v - if _v is not None: - self["start"] = _v + self._init_provided('end', arg, end) + self._init_provided('size', arg, size) + self._init_provided('start', arg, start) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/_tickfont.py index 53a01f84f1c..8a37651114b 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2d.colorbar" - _path_str = "histogram2d.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'histogram2d.colorbar' + _path_str = 'histogram2d.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2d.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2d.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.histogram2d.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/_tickformatstop.py index 026a050d680..caf647e3de6 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2d.colorbar" - _path_str = "histogram2d.colorbar.tickformatstop" + _parent_path_str = 'histogram2d.colorbar' + _path_str = 'histogram2d.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2d.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2d.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.histogram2d.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/_title.py index fa7662a0ee4..7eb4470a8f3 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2d.colorbar" - _path_str = "histogram2d.colorbar.title" + _parent_path_str = 'histogram2d.colorbar' + _path_str = 'histogram2d.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.histogram2d.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2d.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2d.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.histogram2d.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/title/_font.py index f1d194ff41c..17c884fea3a 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2d.colorbar.title" - _path_str = "histogram2d.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'histogram2d.colorbar.title' + _path_str = 'histogram2d.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2d.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2d.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.histogram2d.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2d/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram2d/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2d/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2d/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/histogram2d/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/histogram2d/hoverlabel/_font.py index 91b139efb2a..91144407ed6 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2d/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2d/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2d.hoverlabel" - _path_str = "histogram2d.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'histogram2d.hoverlabel' + _path_str = 'histogram2d.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2d.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2d.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.histogram2d.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2d/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram2d/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2d/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2d/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/histogram2d/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/histogram2d/legendgrouptitle/_font.py index 37188e5d4e2..dfb33d0a558 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2d/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2d/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2d.legendgrouptitle" - _path_str = "histogram2d.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'histogram2d.legendgrouptitle' + _path_str = 'histogram2d.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2d.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2d.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.histogram2d.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/__init__.py index 91d3b3e29cd..9f09c7cf741 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._contours import Contours @@ -18,20 +17,10 @@ from . import legendgrouptitle else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".colorbar", ".contours", ".hoverlabel", ".legendgrouptitle"], - [ - "._colorbar.ColorBar", - "._contours.Contours", - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._line.Line", - "._marker.Marker", - "._stream.Stream", - "._textfont.Textfont", - "._xbins.XBins", - "._ybins.YBins", - ], + ['.colorbar', '.contours', '.hoverlabel', '.legendgrouptitle'], + ['._colorbar.ColorBar', '._contours.Contours', '._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._line.Line', '._marker.Marker', '._stream.Stream', '._textfont.Textfont', '._xbins.XBins', '._ybins.YBins'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_colorbar.py b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_colorbar.py index dafdc0e28b2..0cc4289656e 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2dcontour" - _path_str = "histogram2dcontour.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'histogram2dcontour' + _path_str = 'histogram2dcontour.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.histogram2dcontour.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.histogram2dcontour.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.histogram2dcontour.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.histogram2dcontour.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2dcontour.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2dcontour.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.histogram2dcontour.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_contours.py b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_contours.py index 3bde7c8a43d..e0a9263ad95 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_contours.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_contours.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,21 +8,9 @@ class Contours(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2dcontour" - _path_str = "histogram2dcontour.contours" - _valid_props = { - "coloring", - "end", - "labelfont", - "labelformat", - "operation", - "showlabels", - "showlines", - "size", - "start", - "type", - "value", - } + _parent_path_str = 'histogram2dcontour' + _path_str = 'histogram2dcontour.contours' + _valid_props = {"coloring", "end", "labelfont", "labelformat", "operation", "showlabels", "showlines", "size", "start", "type", "value"} # coloring # -------- @@ -41,11 +31,11 @@ def coloring(self): ------- Any """ - return self["coloring"] + return self['coloring'] @coloring.setter def coloring(self, val): - self["coloring"] = val + self['coloring'] = val # end # --- @@ -62,11 +52,11 @@ def end(self): ------- int|float """ - return self["end"] + return self['end'] @end.setter def end(self, val): - self["end"] = val + self['end'] = val # labelfont # --------- @@ -83,61 +73,15 @@ def labelfont(self): - A dict of string/value properties that will be passed to the Labelfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.histogram2dcontour.contours.Labelfont """ - return self["labelfont"] + return self['labelfont'] @labelfont.setter def labelfont(self, val): - self["labelfont"] = val + self['labelfont'] = val # labelformat # ----------- @@ -157,11 +101,11 @@ def labelformat(self): ------- str """ - return self["labelformat"] + return self['labelformat'] @labelformat.setter def labelformat(self, val): - self["labelformat"] = val + self['labelformat'] = val # operation # --------- @@ -186,11 +130,11 @@ def operation(self): ------- Any """ - return self["operation"] + return self['operation'] @operation.setter def operation(self, val): - self["operation"] = val + self['operation'] = val # showlabels # ---------- @@ -207,11 +151,11 @@ def showlabels(self): ------- bool """ - return self["showlabels"] + return self['showlabels'] @showlabels.setter def showlabels(self, val): - self["showlabels"] = val + self['showlabels'] = val # showlines # --------- @@ -228,11 +172,11 @@ def showlines(self): ------- bool """ - return self["showlines"] + return self['showlines'] @showlines.setter def showlines(self, val): - self["showlines"] = val + self['showlines'] = val # size # ---- @@ -248,11 +192,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # start # ----- @@ -269,11 +213,11 @@ def start(self): ------- int|float """ - return self["start"] + return self['start'] @start.setter def start(self, val): - self["start"] = val + self['start'] = val # type # ---- @@ -293,11 +237,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # value # ----- @@ -318,11 +262,11 @@ def value(self): ------- Any """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -385,23 +329,21 @@ def _prop_descriptions(self): array of two numbers where the first is the lower bound and the second is the upper bound. """ - - def __init__( - self, - arg=None, - coloring=None, - end=None, - labelfont=None, - labelformat=None, - operation=None, - showlabels=None, - showlines=None, - size=None, - start=None, - type=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + coloring=None, + end=None, + labelfont=None, + labelformat=None, + operation=None, + showlabels=None, + showlines=None, + size=None, + start=None, + type=None, + value=None, + **kwargs + ): """ Construct a new Contours object @@ -471,10 +413,10 @@ def __init__( ------- Contours """ - super(Contours, self).__init__("contours") + super(Contours, self).__init__('contours') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -486,64 +428,30 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2dcontour.Contours constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2dcontour.Contours`""" - ) +an instance of :class:`plotly.graph_objs.histogram2dcontour.Contours`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("coloring", None) - _v = coloring if coloring is not None else _v - if _v is not None: - self["coloring"] = _v - _v = arg.pop("end", None) - _v = end if end is not None else _v - if _v is not None: - self["end"] = _v - _v = arg.pop("labelfont", None) - _v = labelfont if labelfont is not None else _v - if _v is not None: - self["labelfont"] = _v - _v = arg.pop("labelformat", None) - _v = labelformat if labelformat is not None else _v - if _v is not None: - self["labelformat"] = _v - _v = arg.pop("operation", None) - _v = operation if operation is not None else _v - if _v is not None: - self["operation"] = _v - _v = arg.pop("showlabels", None) - _v = showlabels if showlabels is not None else _v - if _v is not None: - self["showlabels"] = _v - _v = arg.pop("showlines", None) - _v = showlines if showlines is not None else _v - if _v is not None: - self["showlines"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("start", None) - _v = start if start is not None else _v - if _v is not None: - self["start"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('coloring', arg, coloring) + self._init_provided('end', arg, end) + self._init_provided('labelfont', arg, labelfont) + self._init_provided('labelformat', arg, labelformat) + self._init_provided('operation', arg, operation) + self._init_provided('showlabels', arg, showlabels) + self._init_provided('showlines', arg, showlines) + self._init_provided('size', arg, size) + self._init_provided('start', arg, start) + self._init_provided('type', arg, type) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_hoverlabel.py index ff167f7ff37..a8e3fa75188 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2dcontour" - _path_str = "histogram2dcontour.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'histogram2dcontour' + _path_str = 'histogram2dcontour.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.histogram2dcontour.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2dcontour.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2dcontour.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.histogram2dcontour.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_legendgrouptitle.py index 2223befe895..4823c2ca474 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2dcontour" - _path_str = "histogram2dcontour.legendgrouptitle" + _parent_path_str = 'histogram2dcontour' + _path_str = 'histogram2dcontour.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.histogram2dcontour.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2dcontour.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2dcontour.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.histogram2dcontour.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_line.py b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_line.py index 5f94b32130a..d014931bc7a 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_line.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2dcontour" - _path_str = "histogram2dcontour.line" + _parent_path_str = 'histogram2dcontour' + _path_str = 'histogram2dcontour.line' _valid_props = {"color", "dash", "smoothing", "width"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # dash # ---- @@ -90,11 +57,11 @@ def dash(self): ------- str """ - return self["dash"] + return self['dash'] @dash.setter def dash(self, val): - self["dash"] = val + self['dash'] = val # smoothing # --------- @@ -111,11 +78,11 @@ def smoothing(self): ------- int|float """ - return self["smoothing"] + return self['smoothing'] @smoothing.setter def smoothing(self, val): - self["smoothing"] = val + self['smoothing'] = val # width # ----- @@ -131,11 +98,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -156,10 +123,14 @@ def _prop_descriptions(self): width Sets the contour line width in (in px) """ - - def __init__( - self, arg=None, color=None, dash=None, smoothing=None, width=None, **kwargs - ): + def __init__(self, + arg=None, + color=None, + dash=None, + smoothing=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -187,10 +158,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -202,36 +173,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2dcontour.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2dcontour.Line`""" - ) +an instance of :class:`plotly.graph_objs.histogram2dcontour.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("dash", None) - _v = dash if dash is not None else _v - if _v is not None: - self["dash"] = _v - _v = arg.pop("smoothing", None) - _v = smoothing if smoothing is not None else _v - if _v is not None: - self["smoothing"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('dash', arg, dash) + self._init_provided('smoothing', arg, smoothing) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_marker.py b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_marker.py index bb0de7e4386..907a97b73ad 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2dcontour" - _path_str = "histogram2dcontour.marker" + _parent_path_str = 'histogram2dcontour' + _path_str = 'histogram2dcontour.marker' _valid_props = {"color", "colorsrc"} # color @@ -24,11 +26,11 @@ def color(self): ------- numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -44,11 +46,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # Self properties description # --------------------------- @@ -61,8 +63,12 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `color`. """ - - def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + **kwargs + ): """ Construct a new Marker object @@ -82,10 +88,10 @@ def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -97,28 +103,21 @@ def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2dcontour.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2dcontour.Marker`""" - ) +an instance of :class:`plotly.graph_objs.histogram2dcontour.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_stream.py b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_stream.py index aa5f6ad0099..1e1cc744c5a 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2dcontour" - _path_str = "histogram2dcontour.stream" + _parent_path_str = 'histogram2dcontour' + _path_str = 'histogram2dcontour.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2dcontour.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2dcontour.Stream`""" - ) +an instance of :class:`plotly.graph_objs.histogram2dcontour.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_textfont.py b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_textfont.py index 7be04af0def..ed57b4416ab 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2dcontour" - _path_str = "histogram2dcontour.textfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'histogram2dcontour' + _path_str = 'histogram2dcontour.textfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Textfont object @@ -378,10 +333,10 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -393,56 +348,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2dcontour.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2dcontour.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.histogram2dcontour.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_xbins.py b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_xbins.py index 18519299c99..a3e5802ed0e 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_xbins.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_xbins.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class XBins(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2dcontour" - _path_str = "histogram2dcontour.xbins" + _parent_path_str = 'histogram2dcontour' + _path_str = 'histogram2dcontour.xbins' _valid_props = {"end", "size", "start"} # end @@ -28,11 +30,11 @@ def end(self): ------- Any """ - return self["end"] + return self['end'] @end.setter def end(self, val): - self["end"] = val + self['end'] = val # size # ---- @@ -54,11 +56,11 @@ def size(self): ------- Any """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # start # ----- @@ -82,11 +84,11 @@ def start(self): ------- Any """ - return self["start"] + return self['start'] @start.setter def start(self, val): - self["start"] = val + self['start'] = val # Self properties description # --------------------------- @@ -123,8 +125,13 @@ def _prop_descriptions(self): string. For category data, `start` is based on the category serial numbers, and defaults to -0.5. """ - - def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): + def __init__(self, + arg=None, + end=None, + size=None, + start=None, + **kwargs + ): """ Construct a new XBins object @@ -168,10 +175,10 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): ------- XBins """ - super(XBins, self).__init__("xbins") + super(XBins, self).__init__('xbins') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -183,32 +190,22 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2dcontour.XBins constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2dcontour.XBins`""" - ) +an instance of :class:`plotly.graph_objs.histogram2dcontour.XBins`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("end", None) - _v = end if end is not None else _v - if _v is not None: - self["end"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("start", None) - _v = start if start is not None else _v - if _v is not None: - self["start"] = _v + self._init_provided('end', arg, end) + self._init_provided('size', arg, size) + self._init_provided('start', arg, start) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_ybins.py b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_ybins.py index f34bcf29497..0d98ee2d738 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_ybins.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/_ybins.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class YBins(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2dcontour" - _path_str = "histogram2dcontour.ybins" + _parent_path_str = 'histogram2dcontour' + _path_str = 'histogram2dcontour.ybins' _valid_props = {"end", "size", "start"} # end @@ -28,11 +30,11 @@ def end(self): ------- Any """ - return self["end"] + return self['end'] @end.setter def end(self, val): - self["end"] = val + self['end'] = val # size # ---- @@ -54,11 +56,11 @@ def size(self): ------- Any """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # start # ----- @@ -82,11 +84,11 @@ def start(self): ------- Any """ - return self["start"] + return self['start'] @start.setter def start(self, val): - self["start"] = val + self['start'] = val # Self properties description # --------------------------- @@ -123,8 +125,13 @@ def _prop_descriptions(self): string. For category data, `start` is based on the category serial numbers, and defaults to -0.5. """ - - def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): + def __init__(self, + arg=None, + end=None, + size=None, + start=None, + **kwargs + ): """ Construct a new YBins object @@ -168,10 +175,10 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): ------- YBins """ - super(YBins, self).__init__("ybins") + super(YBins, self).__init__('ybins') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -183,32 +190,22 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2dcontour.YBins constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2dcontour.YBins`""" - ) +an instance of :class:`plotly.graph_objs.histogram2dcontour.YBins`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("end", None) - _v = end if end is not None else _v - if _v is not None: - self["end"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("start", None) - _v = start if start is not None else _v - if _v is not None: - self["start"] = _v + self._init_provided('end', arg, end) + self._init_provided('size', arg, size) + self._init_provided('start', arg, start) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/_tickfont.py index 0e9fb3405db..132ec0672a4 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2dcontour.colorbar" - _path_str = "histogram2dcontour.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'histogram2dcontour.colorbar' + _path_str = 'histogram2dcontour.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2dcontour.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2dcontour.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.histogram2dcontour.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/_tickformatstop.py index 1699fa77ad2..f9948d03fe3 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2dcontour.colorbar" - _path_str = "histogram2dcontour.colorbar.tickformatstop" + _parent_path_str = 'histogram2dcontour.colorbar' + _path_str = 'histogram2dcontour.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2dcontour.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2dcontour.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.histogram2dcontour.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/_title.py index 752885dec38..2830f1d887a 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2dcontour.colorbar" - _path_str = "histogram2dcontour.colorbar.title" + _parent_path_str = 'histogram2dcontour.colorbar' + _path_str = 'histogram2dcontour.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.histogram2dcontour.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2dcontour.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2dcontour.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.histogram2dcontour.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/title/_font.py index 50c3d16caee..e9b9bd0dacd 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2dcontour.colorbar.title" - _path_str = "histogram2dcontour.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'histogram2dcontour.colorbar.title' + _path_str = 'histogram2dcontour.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2dcontour.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2dcontour.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.histogram2dcontour.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/contours/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/contours/__init__.py index f1ee5b7524b..7cedabc68e2 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/contours/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/contours/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._labelfont import Labelfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._labelfont.Labelfont"] + __name__, + [], + ['._labelfont.Labelfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/contours/_labelfont.py b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/contours/_labelfont.py index 52126661afc..e6860becd35 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/contours/_labelfont.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/contours/_labelfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Labelfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2dcontour.contours" - _path_str = "histogram2dcontour.contours.labelfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'histogram2dcontour.contours' + _path_str = 'histogram2dcontour.contours.labelfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Labelfont object @@ -379,10 +334,10 @@ def __init__( ------- Labelfont """ - super(Labelfont, self).__init__("labelfont") + super(Labelfont, self).__init__('labelfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -394,56 +349,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2dcontour.contours.Labelfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2dcontour.contours.Labelfont`""" - ) +an instance of :class:`plotly.graph_objs.histogram2dcontour.contours.Labelfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/hoverlabel/_font.py index 405e7222a05..4950089aff3 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2dcontour.hoverlabel" - _path_str = "histogram2dcontour.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'histogram2dcontour.hoverlabel' + _path_str = 'histogram2dcontour.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2dcontour.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2dcontour.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.histogram2dcontour.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/legendgrouptitle/_font.py index 32527673293..6740892ddc6 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "histogram2dcontour.legendgrouptitle" - _path_str = "histogram2dcontour.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'histogram2dcontour.legendgrouptitle' + _path_str = 'histogram2dcontour.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.histogram2dcontour.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.histogram2dcontour.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.histogram2dcontour.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/icicle/__init__.py b/packages/python/plotly/plotly/graph_objs/icicle/__init__.py index 3fba9b90da8..07d4d478cf1 100644 --- a/packages/python/plotly/plotly/graph_objs/icicle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/icicle/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._domain import Domain from ._hoverlabel import Hoverlabel @@ -20,22 +19,10 @@ from . import pathbar else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".hoverlabel", ".legendgrouptitle", ".marker", ".pathbar"], - [ - "._domain.Domain", - "._hoverlabel.Hoverlabel", - "._insidetextfont.Insidetextfont", - "._leaf.Leaf", - "._legendgrouptitle.Legendgrouptitle", - "._marker.Marker", - "._outsidetextfont.Outsidetextfont", - "._pathbar.Pathbar", - "._root.Root", - "._stream.Stream", - "._textfont.Textfont", - "._tiling.Tiling", - ], + ['.hoverlabel', '.legendgrouptitle', '.marker', '.pathbar'], + ['._domain.Domain', '._hoverlabel.Hoverlabel', '._insidetextfont.Insidetextfont', '._leaf.Leaf', '._legendgrouptitle.Legendgrouptitle', '._marker.Marker', '._outsidetextfont.Outsidetextfont', '._pathbar.Pathbar', '._root.Root', '._stream.Stream', '._textfont.Textfont', '._tiling.Tiling'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/icicle/_domain.py b/packages/python/plotly/plotly/graph_objs/icicle/_domain.py index 756a061f1a0..945c82b2497 100644 --- a/packages/python/plotly/plotly/graph_objs/icicle/_domain.py +++ b/packages/python/plotly/plotly/graph_objs/icicle/_domain.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Domain(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "icicle" - _path_str = "icicle.domain" + _parent_path_str = 'icicle' + _path_str = 'icicle.domain' _valid_props = {"column", "row", "x", "y"} # column @@ -26,11 +28,11 @@ def column(self): ------- int """ - return self["column"] + return self['column'] @column.setter def column(self, val): - self["column"] = val + self['column'] = val # row # --- @@ -48,63 +50,63 @@ def row(self): ------- int """ - return self["row"] + return self['row'] @row.setter def row(self, val): - self["row"] = val + self['row'] = val # x # - @property def x(self): """ - Sets the horizontal domain of this icicle trace (in plot - fraction). + Sets the horizontal domain of this icicle trace (in plot + fraction). - The 'x' property is an info array that may be specified as: + The 'x' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'x[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'x[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - * a list or tuple of 2 elements where: - (0) The 'x[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'x[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - - Returns - ------- - list + Returns + ------- + list """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @property def y(self): """ - Sets the vertical domain of this icicle trace (in plot - fraction). - - The 'y' property is an info array that may be specified as: + Sets the vertical domain of this icicle trace (in plot + fraction). - * a list or tuple of 2 elements where: - (0) The 'y[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'y[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] + The 'y' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'y[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'y[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - Returns - ------- - list + Returns + ------- + list """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # Self properties description # --------------------------- @@ -124,8 +126,14 @@ def _prop_descriptions(self): Sets the vertical domain of this icicle trace (in plot fraction). """ - - def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): + def __init__(self, + arg=None, + column=None, + row=None, + x=None, + y=None, + **kwargs + ): """ Construct a new Domain object @@ -151,10 +159,10 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") + super(Domain, self).__init__('domain') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -166,36 +174,23 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.icicle.Domain constructor must be a dict or -an instance of :class:`plotly.graph_objs.icicle.Domain`""" - ) +an instance of :class:`plotly.graph_objs.icicle.Domain`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("column", None) - _v = column if column is not None else _v - if _v is not None: - self["column"] = _v - _v = arg.pop("row", None) - _v = row if row is not None else _v - if _v is not None: - self["row"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v + self._init_provided('column', arg, column) + self._init_provided('row', arg, row) + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/icicle/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/icicle/_hoverlabel.py index 6e4ba23e950..42a3d2f78f5 100644 --- a/packages/python/plotly/plotly/graph_objs/icicle/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/icicle/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "icicle" - _path_str = "icicle.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'icicle' + _path_str = 'icicle.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.icicle.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.icicle.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.icicle.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.icicle.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/icicle/_insidetextfont.py b/packages/python/plotly/plotly/graph_objs/icicle/_insidetextfont.py index 60f0e664fea..ac3fa8f2d04 100644 --- a/packages/python/plotly/plotly/graph_objs/icicle/_insidetextfont.py +++ b/packages/python/plotly/plotly/graph_objs/icicle/_insidetextfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Insidetextfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "icicle" - _path_str = "icicle.insidetextfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'icicle' + _path_str = 'icicle.insidetextfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Insidetextfont object @@ -639,10 +585,10 @@ def __init__( ------- Insidetextfont """ - super(Insidetextfont, self).__init__("insidetextfont") + super(Insidetextfont, self).__init__('insidetextfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.icicle.Insidetextfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.icicle.Insidetextfont`""" - ) +an instance of :class:`plotly.graph_objs.icicle.Insidetextfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/icicle/_leaf.py b/packages/python/plotly/plotly/graph_objs/icicle/_leaf.py index 9ba8f9a0433..e840eb30ada 100644 --- a/packages/python/plotly/plotly/graph_objs/icicle/_leaf.py +++ b/packages/python/plotly/plotly/graph_objs/icicle/_leaf.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Leaf(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "icicle" - _path_str = "icicle.leaf" + _parent_path_str = 'icicle' + _path_str = 'icicle.leaf' _valid_props = {"opacity"} # opacity @@ -25,11 +27,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # Self properties description # --------------------------- @@ -40,8 +42,11 @@ def _prop_descriptions(self): Sets the opacity of the leaves. With colorscale it is defaulted to 1; otherwise it is defaulted to 0.7 """ - - def __init__(self, arg=None, opacity=None, **kwargs): + def __init__(self, + arg=None, + opacity=None, + **kwargs + ): """ Construct a new Leaf object @@ -58,10 +63,10 @@ def __init__(self, arg=None, opacity=None, **kwargs): ------- Leaf """ - super(Leaf, self).__init__("leaf") + super(Leaf, self).__init__('leaf') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -73,24 +78,20 @@ def __init__(self, arg=None, opacity=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.icicle.Leaf constructor must be a dict or -an instance of :class:`plotly.graph_objs.icicle.Leaf`""" - ) +an instance of :class:`plotly.graph_objs.icicle.Leaf`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v + self._init_provided('opacity', arg, opacity) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/icicle/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/icicle/_legendgrouptitle.py index bf46d58bb5c..9892bd7cfab 100644 --- a/packages/python/plotly/plotly/graph_objs/icicle/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/icicle/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "icicle" - _path_str = "icicle.legendgrouptitle" + _parent_path_str = 'icicle' + _path_str = 'icicle.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.icicle.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.icicle.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.icicle.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.icicle.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/icicle/_marker.py b/packages/python/plotly/plotly/graph_objs/icicle/_marker.py index 4528bbdd1ff..cb38b841753 100644 --- a/packages/python/plotly/plotly/graph_objs/icicle/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/icicle/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,24 +8,9 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "icicle" - _path_str = "icicle.marker" - _valid_props = { - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "coloraxis", - "colorbar", - "colors", - "colorscale", - "colorssrc", - "line", - "pattern", - "reversescale", - "showscale", - } + _parent_path_str = 'icicle' + _path_str = 'icicle.marker' + _valid_props = {"autocolorscale", "cauto", "cmax", "cmid", "cmin", "coloraxis", "colorbar", "colors", "colorscale", "colorssrc", "line", "pattern", "reversescale", "showscale"} # autocolorscale # -------------- @@ -45,11 +32,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -69,11 +56,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -91,11 +78,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -115,11 +102,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -137,11 +124,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # coloraxis # --------- @@ -164,11 +151,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -181,282 +168,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.icicle. - marker.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.icicle.marker.colorbar.tickformatstopdefaults - ), sets the default property values to use for - elements of - icicle.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.icicle.marker.colo - rbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.icicle.marker.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colors # ------ @@ -473,11 +193,11 @@ def colors(self): ------- numpy.ndarray """ - return self["colors"] + return self['colors'] @colors.setter def colors(self, val): - self["colors"] = val + self['colors'] = val # colorscale # ---------- @@ -527,11 +247,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorssrc # --------- @@ -547,11 +267,11 @@ def colorssrc(self): ------- str """ - return self["colorssrc"] + return self['colorssrc'] @colorssrc.setter def colorssrc(self, val): - self["colorssrc"] = val + self['colorssrc'] = val # line # ---- @@ -564,30 +284,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the color of the line enclosing each - sector. Defaults to the `paper_bgcolor` value. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - width - Sets the width (in px) of the line enclosing - each sector. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. - Returns ------- plotly.graph_objs.icicle.marker.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # pattern # ------- @@ -602,66 +307,15 @@ def pattern(self): - A dict of string/value properties that will be passed to the Pattern constructor - Supported dict properties: - - bgcolor - When there is no colorscale sets the color of - background pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "overlay". Otherwise, defaults to a transparent - background. - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - fgcolor - When there is no colorscale sets the color of - foreground pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "replace". Otherwise, defaults to dark grey or - white to increase contrast with the `bgcolor`. - fgcolorsrc - Sets the source reference on Chart Studio Cloud - for `fgcolor`. - fgopacity - Sets the opacity of the foreground pattern - fill. Defaults to a 0.5 when `fillmode` is - "overlay". Otherwise, defaults to 1. - fillmode - Determines whether `marker.color` should be - used as a default to `bgcolor` or a `fgcolor`. - shape - Sets the shape of the pattern fill. By default, - no pattern is used for filling the area. - shapesrc - Sets the source reference on Chart Studio Cloud - for `shape`. - size - Sets the size of unit squares of the pattern - fill in pixels, which corresponds to the - interval of repetition of the pattern. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - solidity - Sets the solidity of the pattern fill. Solidity - is roughly the fraction of the area filled by - the pattern. Solidity of 0 shows only the - background color without pattern and solidty of - 1 shows only the foreground color without - pattern. - soliditysrc - Sets the source reference on Chart Studio Cloud - for `solidity`. - Returns ------- plotly.graph_objs.icicle.marker.Pattern """ - return self["pattern"] + return self['pattern'] @pattern.setter def pattern(self, val): - self["pattern"] = val + self['pattern'] = val # reversescale # ------------ @@ -680,11 +334,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # showscale # --------- @@ -702,11 +356,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # Self properties description # --------------------------- @@ -792,26 +446,24 @@ def _prop_descriptions(self): this trace. Has an effect only if colors is set to a numerical array. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - coloraxis=None, - colorbar=None, - colors=None, - colorscale=None, - colorssrc=None, - line=None, - pattern=None, - reversescale=None, - showscale=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + coloraxis=None, + colorbar=None, + colors=None, + colorscale=None, + colorssrc=None, + line=None, + pattern=None, + reversescale=None, + showscale=None, + **kwargs + ): """ Construct a new Marker object @@ -903,10 +555,10 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -918,76 +570,33 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.icicle.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.icicle.Marker`""" - ) +an instance of :class:`plotly.graph_objs.icicle.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colors", None) - _v = colors if colors is not None else _v - if _v is not None: - self["colors"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorssrc", None) - _v = colorssrc if colorssrc is not None else _v - if _v is not None: - self["colorssrc"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("pattern", None) - _v = pattern if pattern is not None else _v - if _v is not None: - self["pattern"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colors', arg, colors) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorssrc', arg, colorssrc) + self._init_provided('line', arg, line) + self._init_provided('pattern', arg, pattern) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('showscale', arg, showscale) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/icicle/_outsidetextfont.py b/packages/python/plotly/plotly/graph_objs/icicle/_outsidetextfont.py index e6b2e9096c0..f294bb39844 100644 --- a/packages/python/plotly/plotly/graph_objs/icicle/_outsidetextfont.py +++ b/packages/python/plotly/plotly/graph_objs/icicle/_outsidetextfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Outsidetextfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "icicle" - _path_str = "icicle.outsidetextfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'icicle' + _path_str = 'icicle.outsidetextfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Outsidetextfont object @@ -643,10 +589,10 @@ def __init__( ------- Outsidetextfont """ - super(Outsidetextfont, self).__init__("outsidetextfont") + super(Outsidetextfont, self).__init__('outsidetextfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -658,92 +604,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.icicle.Outsidetextfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.icicle.Outsidetextfont`""" - ) +an instance of :class:`plotly.graph_objs.icicle.Outsidetextfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/icicle/_pathbar.py b/packages/python/plotly/plotly/graph_objs/icicle/_pathbar.py index ce07a887efa..b5b8785ced5 100644 --- a/packages/python/plotly/plotly/graph_objs/icicle/_pathbar.py +++ b/packages/python/plotly/plotly/graph_objs/icicle/_pathbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Pathbar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "icicle" - _path_str = "icicle.pathbar" + _parent_path_str = 'icicle' + _path_str = 'icicle.pathbar' _valid_props = {"edgeshape", "side", "textfont", "thickness", "visible"} # edgeshape @@ -26,11 +28,11 @@ def edgeshape(self): ------- Any """ - return self["edgeshape"] + return self['edgeshape'] @edgeshape.setter def edgeshape(self, val): - self["edgeshape"] = val + self['edgeshape'] = val # side # ---- @@ -48,11 +50,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # textfont # -------- @@ -67,88 +69,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.icicle.pathbar.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # thickness # --------- @@ -166,11 +95,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # visible # ------- @@ -187,11 +116,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # Self properties description # --------------------------- @@ -214,17 +143,15 @@ def _prop_descriptions(self): Determines if the path bar is drawn i.e. outside the trace `domain` and with one pixel gap. """ - - def __init__( - self, - arg=None, - edgeshape=None, - side=None, - textfont=None, - thickness=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + edgeshape=None, + side=None, + textfont=None, + thickness=None, + visible=None, + **kwargs + ): """ Construct a new Pathbar object @@ -254,10 +181,10 @@ def __init__( ------- Pathbar """ - super(Pathbar, self).__init__("pathbar") + super(Pathbar, self).__init__('pathbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -269,40 +196,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.icicle.Pathbar constructor must be a dict or -an instance of :class:`plotly.graph_objs.icicle.Pathbar`""" - ) +an instance of :class:`plotly.graph_objs.icicle.Pathbar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("edgeshape", None) - _v = edgeshape if edgeshape is not None else _v - if _v is not None: - self["edgeshape"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('edgeshape', arg, edgeshape) + self._init_provided('side', arg, side) + self._init_provided('textfont', arg, textfont) + self._init_provided('thickness', arg, thickness) + self._init_provided('visible', arg, visible) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/icicle/_root.py b/packages/python/plotly/plotly/graph_objs/icicle/_root.py index 40779280463..edd09bcb163 100644 --- a/packages/python/plotly/plotly/graph_objs/icicle/_root.py +++ b/packages/python/plotly/plotly/graph_objs/icicle/_root.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Root(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "icicle" - _path_str = "icicle.root" + _parent_path_str = 'icicle' + _path_str = 'icicle.root' _valid_props = {"color"} # color @@ -24,52 +26,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # Self properties description # --------------------------- @@ -81,8 +48,11 @@ def _prop_descriptions(self): sunburst/treemap/icicle trace. this has no effect when a colorscale is used to set the markers. """ - - def __init__(self, arg=None, color=None, **kwargs): + def __init__(self, + arg=None, + color=None, + **kwargs + ): """ Construct a new Root object @@ -100,10 +70,10 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Root """ - super(Root, self).__init__("root") + super(Root, self).__init__('root') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -115,24 +85,20 @@ def __init__(self, arg=None, color=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.icicle.Root constructor must be a dict or -an instance of :class:`plotly.graph_objs.icicle.Root`""" - ) +an instance of :class:`plotly.graph_objs.icicle.Root`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v + self._init_provided('color', arg, color) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/icicle/_stream.py b/packages/python/plotly/plotly/graph_objs/icicle/_stream.py index 9efe2d5e3bf..74242fc4001 100644 --- a/packages/python/plotly/plotly/graph_objs/icicle/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/icicle/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "icicle" - _path_str = "icicle.stream" + _parent_path_str = 'icicle' + _path_str = 'icicle.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -93,10 +99,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -108,28 +114,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.icicle.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.icicle.Stream`""" - ) +an instance of :class:`plotly.graph_objs.icicle.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/icicle/_textfont.py b/packages/python/plotly/plotly/graph_objs/icicle/_textfont.py index 98bcd51c137..8af9c6ac803 100644 --- a/packages/python/plotly/plotly/graph_objs/icicle/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/icicle/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "icicle" - _path_str = "icicle.textfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'icicle' + _path_str = 'icicle.textfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Textfont object @@ -639,10 +585,10 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.icicle.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.icicle.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.icicle.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/icicle/_tiling.py b/packages/python/plotly/plotly/graph_objs/icicle/_tiling.py index 59a3f881642..ebe081c2391 100644 --- a/packages/python/plotly/plotly/graph_objs/icicle/_tiling.py +++ b/packages/python/plotly/plotly/graph_objs/icicle/_tiling.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tiling(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "icicle" - _path_str = "icicle.tiling" + _parent_path_str = 'icicle' + _path_str = 'icicle.tiling' _valid_props = {"flip", "orientation", "pad"} # flip @@ -27,11 +29,11 @@ def flip(self): ------- Any """ - return self["flip"] + return self['flip'] @flip.setter def flip(self, val): - self["flip"] = val + self['flip'] = val # orientation # ----------- @@ -55,11 +57,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # pad # --- @@ -75,11 +77,11 @@ def pad(self): ------- int|float """ - return self["pad"] + return self['pad'] @pad.setter def pad(self, val): - self["pad"] = val + self['pad'] = val # Self properties description # --------------------------- @@ -103,8 +105,13 @@ def _prop_descriptions(self): pad Sets the inner padding (in px). """ - - def __init__(self, arg=None, flip=None, orientation=None, pad=None, **kwargs): + def __init__(self, + arg=None, + flip=None, + orientation=None, + pad=None, + **kwargs + ): """ Construct a new Tiling object @@ -134,10 +141,10 @@ def __init__(self, arg=None, flip=None, orientation=None, pad=None, **kwargs): ------- Tiling """ - super(Tiling, self).__init__("tiling") + super(Tiling, self).__init__('tiling') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -149,32 +156,22 @@ def __init__(self, arg=None, flip=None, orientation=None, pad=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.icicle.Tiling constructor must be a dict or -an instance of :class:`plotly.graph_objs.icicle.Tiling`""" - ) +an instance of :class:`plotly.graph_objs.icicle.Tiling`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("flip", None) - _v = flip if flip is not None else _v - if _v is not None: - self["flip"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("pad", None) - _v = pad if pad is not None else _v - if _v is not None: - self["pad"] = _v + self._init_provided('flip', arg, flip) + self._init_provided('orientation', arg, orientation) + self._init_provided('pad', arg, pad) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/icicle/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/icicle/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/icicle/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/icicle/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/icicle/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/icicle/hoverlabel/_font.py index 1a841012174..80f3ab62af7 100644 --- a/packages/python/plotly/plotly/graph_objs/icicle/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/icicle/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "icicle.hoverlabel" - _path_str = "icicle.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'icicle.hoverlabel' + _path_str = 'icicle.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.icicle.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.icicle.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.icicle.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/icicle/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/icicle/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/icicle/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/icicle/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/icicle/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/icicle/legendgrouptitle/_font.py index 7c43ff99fa9..a1b0dfbcbc5 100644 --- a/packages/python/plotly/plotly/graph_objs/icicle/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/icicle/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "icicle.legendgrouptitle" - _path_str = "icicle.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'icicle.legendgrouptitle' + _path_str = 'icicle.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.icicle.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.icicle.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.icicle.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/icicle/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/icicle/marker/__init__.py index ce0279c5444..210a88dd222 100644 --- a/packages/python/plotly/plotly/graph_objs/icicle/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/icicle/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._line import Line @@ -8,9 +7,10 @@ from . import colorbar else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".colorbar"], - ["._colorbar.ColorBar", "._line.Line", "._pattern.Pattern"], + ['.colorbar'], + ['._colorbar.ColorBar', '._line.Line', '._pattern.Pattern'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/icicle/marker/_colorbar.py b/packages/python/plotly/plotly/graph_objs/icicle/marker/_colorbar.py index 5eea701169d..8d585016e3a 100644 --- a/packages/python/plotly/plotly/graph_objs/icicle/marker/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/icicle/marker/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "icicle.marker" - _path_str = "icicle.marker.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'icicle.marker' + _path_str = 'icicle.marker.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.icicle.marker.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.icicle.marker.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.icicle.marker.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.icicle.marker.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.icicle.marker.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.icicle.marker.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.icicle.marker.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/icicle/marker/_line.py b/packages/python/plotly/plotly/graph_objs/icicle/marker/_line.py index ddf2495d2d9..9134c6635b5 100644 --- a/packages/python/plotly/plotly/graph_objs/icicle/marker/_line.py +++ b/packages/python/plotly/plotly/graph_objs/icicle/marker/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "icicle.marker" - _path_str = "icicle.marker.line" + _parent_path_str = 'icicle.marker' + _path_str = 'icicle.marker.line' _valid_props = {"color", "colorsrc", "width", "widthsrc"} # color @@ -23,53 +25,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -85,11 +52,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # width # ----- @@ -106,11 +73,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # widthsrc # -------- @@ -126,11 +93,11 @@ def widthsrc(self): ------- str """ - return self["widthsrc"] + return self['widthsrc'] @widthsrc.setter def widthsrc(self, val): - self["widthsrc"] = val + self['widthsrc'] = val # Self properties description # --------------------------- @@ -150,10 +117,14 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `width`. """ - - def __init__( - self, arg=None, color=None, colorsrc=None, width=None, widthsrc=None, **kwargs - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + width=None, + widthsrc=None, + **kwargs + ): """ Construct a new Line object @@ -180,10 +151,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -195,36 +166,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.icicle.marker.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.icicle.marker.Line`""" - ) +an instance of :class:`plotly.graph_objs.icicle.marker.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("widthsrc", None) - _v = widthsrc if widthsrc is not None else _v - if _v is not None: - self["widthsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('width', arg, width) + self._init_provided('widthsrc', arg, widthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/icicle/marker/_pattern.py b/packages/python/plotly/plotly/graph_objs/icicle/marker/_pattern.py index c98945bff6f..6d99376d42a 100644 --- a/packages/python/plotly/plotly/graph_objs/icicle/marker/_pattern.py +++ b/packages/python/plotly/plotly/graph_objs/icicle/marker/_pattern.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,22 +8,9 @@ class Pattern(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "icicle.marker" - _path_str = "icicle.marker.pattern" - _valid_props = { - "bgcolor", - "bgcolorsrc", - "fgcolor", - "fgcolorsrc", - "fgopacity", - "fillmode", - "shape", - "shapesrc", - "size", - "sizesrc", - "solidity", - "soliditysrc", - } + _parent_path_str = 'icicle.marker' + _path_str = 'icicle.marker.pattern' + _valid_props = {"bgcolor", "bgcolorsrc", "fgcolor", "fgcolorsrc", "fgopacity", "fillmode", "shape", "shapesrc", "size", "sizesrc", "solidity", "soliditysrc"} # bgcolor # ------- @@ -38,53 +27,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -100,11 +54,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # fgcolor # ------- @@ -121,53 +75,18 @@ def fgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["fgcolor"] + return self['fgcolor'] @fgcolor.setter def fgcolor(self, val): - self["fgcolor"] = val + self['fgcolor'] = val # fgcolorsrc # ---------- @@ -183,11 +102,11 @@ def fgcolorsrc(self): ------- str """ - return self["fgcolorsrc"] + return self['fgcolorsrc'] @fgcolorsrc.setter def fgcolorsrc(self, val): - self["fgcolorsrc"] = val + self['fgcolorsrc'] = val # fgopacity # --------- @@ -204,11 +123,11 @@ def fgopacity(self): ------- int|float """ - return self["fgopacity"] + return self['fgopacity'] @fgopacity.setter def fgopacity(self, val): - self["fgopacity"] = val + self['fgopacity'] = val # fillmode # -------- @@ -226,11 +145,11 @@ def fillmode(self): ------- Any """ - return self["fillmode"] + return self['fillmode'] @fillmode.setter def fillmode(self, val): - self["fillmode"] = val + self['fillmode'] = val # shape # ----- @@ -249,11 +168,11 @@ def shape(self): ------- Any|numpy.ndarray """ - return self["shape"] + return self['shape'] @shape.setter def shape(self, val): - self["shape"] = val + self['shape'] = val # shapesrc # -------- @@ -269,11 +188,11 @@ def shapesrc(self): ------- str """ - return self["shapesrc"] + return self['shapesrc'] @shapesrc.setter def shapesrc(self, val): - self["shapesrc"] = val + self['shapesrc'] = val # size # ---- @@ -291,11 +210,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -311,11 +230,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # solidity # -------- @@ -335,11 +254,11 @@ def solidity(self): ------- int|float|numpy.ndarray """ - return self["solidity"] + return self['solidity'] @solidity.setter def solidity(self, val): - self["solidity"] = val + self['solidity'] = val # soliditysrc # ----------- @@ -355,11 +274,11 @@ def soliditysrc(self): ------- str """ - return self["soliditysrc"] + return self['soliditysrc'] @soliditysrc.setter def soliditysrc(self, val): - self["soliditysrc"] = val + self['soliditysrc'] = val # Self properties description # --------------------------- @@ -413,24 +332,22 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `solidity`. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bgcolorsrc=None, - fgcolor=None, - fgcolorsrc=None, - fgopacity=None, - fillmode=None, - shape=None, - shapesrc=None, - size=None, - sizesrc=None, - solidity=None, - soliditysrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bgcolorsrc=None, + fgcolor=None, + fgcolorsrc=None, + fgopacity=None, + fillmode=None, + shape=None, + shapesrc=None, + size=None, + sizesrc=None, + solidity=None, + soliditysrc=None, + **kwargs + ): """ Construct a new Pattern object @@ -493,10 +410,10 @@ def __init__( ------- Pattern """ - super(Pattern, self).__init__("pattern") + super(Pattern, self).__init__('pattern') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -508,68 +425,31 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.icicle.marker.Pattern constructor must be a dict or -an instance of :class:`plotly.graph_objs.icicle.marker.Pattern`""" - ) +an instance of :class:`plotly.graph_objs.icicle.marker.Pattern`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("fgcolor", None) - _v = fgcolor if fgcolor is not None else _v - if _v is not None: - self["fgcolor"] = _v - _v = arg.pop("fgcolorsrc", None) - _v = fgcolorsrc if fgcolorsrc is not None else _v - if _v is not None: - self["fgcolorsrc"] = _v - _v = arg.pop("fgopacity", None) - _v = fgopacity if fgopacity is not None else _v - if _v is not None: - self["fgopacity"] = _v - _v = arg.pop("fillmode", None) - _v = fillmode if fillmode is not None else _v - if _v is not None: - self["fillmode"] = _v - _v = arg.pop("shape", None) - _v = shape if shape is not None else _v - if _v is not None: - self["shape"] = _v - _v = arg.pop("shapesrc", None) - _v = shapesrc if shapesrc is not None else _v - if _v is not None: - self["shapesrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("solidity", None) - _v = solidity if solidity is not None else _v - if _v is not None: - self["solidity"] = _v - _v = arg.pop("soliditysrc", None) - _v = soliditysrc if soliditysrc is not None else _v - if _v is not None: - self["soliditysrc"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('fgcolor', arg, fgcolor) + self._init_provided('fgcolorsrc', arg, fgcolorsrc) + self._init_provided('fgopacity', arg, fgopacity) + self._init_provided('fillmode', arg, fillmode) + self._init_provided('shape', arg, shape) + self._init_provided('shapesrc', arg, shapesrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('solidity', arg, solidity) + self._init_provided('soliditysrc', arg, soliditysrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/icicle/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/icicle/marker/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/icicle/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/icicle/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/icicle/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/icicle/marker/colorbar/_tickfont.py index 05ab514abec..7f575b5a752 100644 --- a/packages/python/plotly/plotly/graph_objs/icicle/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/icicle/marker/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "icicle.marker.colorbar" - _path_str = "icicle.marker.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'icicle.marker.colorbar' + _path_str = 'icicle.marker.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.icicle.marker.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.icicle.marker.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.icicle.marker.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/icicle/marker/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/icicle/marker/colorbar/_tickformatstop.py index 4eb45e70238..ae8609a94a1 100644 --- a/packages/python/plotly/plotly/graph_objs/icicle/marker/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/icicle/marker/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "icicle.marker.colorbar" - _path_str = "icicle.marker.colorbar.tickformatstop" + _parent_path_str = 'icicle.marker.colorbar' + _path_str = 'icicle.marker.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.icicle.marker.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.icicle.marker.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.icicle.marker.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/icicle/marker/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/icicle/marker/colorbar/_title.py index eb1a9c1402d..0d3dde9ab72 100644 --- a/packages/python/plotly/plotly/graph_objs/icicle/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/icicle/marker/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "icicle.marker.colorbar" - _path_str = "icicle.marker.colorbar.title" + _parent_path_str = 'icicle.marker.colorbar' + _path_str = 'icicle.marker.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.icicle.marker.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.icicle.marker.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.icicle.marker.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.icicle.marker.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/icicle/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/icicle/marker/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/icicle/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/icicle/marker/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/icicle/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/icicle/marker/colorbar/title/_font.py index a942b5896e6..a09abfb17cf 100644 --- a/packages/python/plotly/plotly/graph_objs/icicle/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/icicle/marker/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "icicle.marker.colorbar.title" - _path_str = "icicle.marker.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'icicle.marker.colorbar.title' + _path_str = 'icicle.marker.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.icicle.marker.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.icicle.marker.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.icicle.marker.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/icicle/pathbar/__init__.py b/packages/python/plotly/plotly/graph_objs/icicle/pathbar/__init__.py index 1640397aa7f..60a2c197f7c 100644 --- a/packages/python/plotly/plotly/graph_objs/icicle/pathbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/icicle/pathbar/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._textfont import Textfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._textfont.Textfont"] + __name__, + [], + ['._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/icicle/pathbar/_textfont.py b/packages/python/plotly/plotly/graph_objs/icicle/pathbar/_textfont.py index 2f4001cc85e..80133d3e557 100644 --- a/packages/python/plotly/plotly/graph_objs/icicle/pathbar/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/icicle/pathbar/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "icicle.pathbar" - _path_str = "icicle.pathbar.textfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'icicle.pathbar' + _path_str = 'icicle.pathbar.textfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Textfont object @@ -639,10 +585,10 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.icicle.pathbar.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.icicle.pathbar.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.icicle.pathbar.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/image/__init__.py b/packages/python/plotly/plotly/graph_objs/image/__init__.py index 7e9c849e6ef..f5473a8c84d 100644 --- a/packages/python/plotly/plotly/graph_objs/image/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/image/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._hoverlabel import Hoverlabel from ._legendgrouptitle import Legendgrouptitle @@ -9,13 +8,10 @@ from . import legendgrouptitle else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".hoverlabel", ".legendgrouptitle"], - [ - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._stream.Stream", - ], + ['.hoverlabel', '.legendgrouptitle'], + ['._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._stream.Stream'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/image/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/image/_hoverlabel.py index d478acc3c2a..10cc65d4ee0 100644 --- a/packages/python/plotly/plotly/graph_objs/image/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/image/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "image" - _path_str = "image.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'image' + _path_str = 'image.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.image.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.image.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.image.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.image.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/image/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/image/_legendgrouptitle.py index 42cc69f2e3a..f33438af09e 100644 --- a/packages/python/plotly/plotly/graph_objs/image/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/image/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "image" - _path_str = "image.legendgrouptitle" + _parent_path_str = 'image' + _path_str = 'image.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.image.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.image.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.image.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.image.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/image/_stream.py b/packages/python/plotly/plotly/graph_objs/image/_stream.py index 45ae5f21c95..148d6d9073f 100644 --- a/packages/python/plotly/plotly/graph_objs/image/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/image/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "image" - _path_str = "image.stream" + _parent_path_str = 'image' + _path_str = 'image.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -93,10 +99,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -108,28 +114,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.image.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.image.Stream`""" - ) +an instance of :class:`plotly.graph_objs.image.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/image/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/image/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/image/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/image/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/image/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/image/hoverlabel/_font.py index e50d253393d..756724a0635 100644 --- a/packages/python/plotly/plotly/graph_objs/image/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/image/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "image.hoverlabel" - _path_str = "image.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'image.hoverlabel' + _path_str = 'image.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.image.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.image.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.image.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/image/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/image/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/image/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/image/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/image/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/image/legendgrouptitle/_font.py index cedd56ff733..dd995b5a685 100644 --- a/packages/python/plotly/plotly/graph_objs/image/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/image/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "image.legendgrouptitle" - _path_str = "image.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'image.legendgrouptitle' + _path_str = 'image.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.image.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.image.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.image.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/indicator/__init__.py b/packages/python/plotly/plotly/graph_objs/indicator/__init__.py index a2ca09418fc..0761f31611a 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._delta import Delta from ._domain import Domain @@ -16,17 +15,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".delta", ".gauge", ".legendgrouptitle", ".number", ".title"], - [ - "._delta.Delta", - "._domain.Domain", - "._gauge.Gauge", - "._legendgrouptitle.Legendgrouptitle", - "._number.Number", - "._stream.Stream", - "._title.Title", - ], + ['.delta', '.gauge', '.legendgrouptitle', '.number', '.title'], + ['._delta.Delta', '._domain.Domain', '._gauge.Gauge', '._legendgrouptitle.Legendgrouptitle', '._number.Number', '._stream.Stream', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/indicator/_delta.py b/packages/python/plotly/plotly/graph_objs/indicator/_delta.py index ea1172bd317..a3dbed20c8c 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/_delta.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/_delta.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Delta(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "indicator" - _path_str = "indicator.delta" - _valid_props = { - "decreasing", - "font", - "increasing", - "position", - "prefix", - "reference", - "relative", - "suffix", - "valueformat", - } + _parent_path_str = 'indicator' + _path_str = 'indicator.delta' + _valid_props = {"decreasing", "font", "increasing", "position", "prefix", "reference", "relative", "suffix", "valueformat"} # decreasing # ---------- @@ -31,22 +23,15 @@ def decreasing(self): - A dict of string/value properties that will be passed to the Decreasing constructor - Supported dict properties: - - color - Sets the color for increasing value. - symbol - Sets the symbol to display for increasing value - Returns ------- plotly.graph_objs.indicator.delta.Decreasing """ - return self["decreasing"] + return self['decreasing'] @decreasing.setter def decreasing(self, val): - self["decreasing"] = val + self['decreasing'] = val # font # ---- @@ -61,61 +46,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.indicator.delta.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # increasing # ---------- @@ -128,22 +67,15 @@ def increasing(self): - A dict of string/value properties that will be passed to the Increasing constructor - Supported dict properties: - - color - Sets the color for increasing value. - symbol - Sets the symbol to display for increasing value - Returns ------- plotly.graph_objs.indicator.delta.Increasing """ - return self["increasing"] + return self['increasing'] @increasing.setter def increasing(self, val): - self["increasing"] = val + self['increasing'] = val # position # -------- @@ -160,11 +92,11 @@ def position(self): ------- Any """ - return self["position"] + return self['position'] @position.setter def position(self, val): - self["position"] = val + self['position'] = val # prefix # ------ @@ -181,11 +113,11 @@ def prefix(self): ------- str """ - return self["prefix"] + return self['prefix'] @prefix.setter def prefix(self, val): - self["prefix"] = val + self['prefix'] = val # reference # --------- @@ -202,11 +134,11 @@ def reference(self): ------- int|float """ - return self["reference"] + return self['reference'] @reference.setter def reference(self, val): - self["reference"] = val + self['reference'] = val # relative # -------- @@ -222,11 +154,11 @@ def relative(self): ------- bool """ - return self["relative"] + return self['relative'] @relative.setter def relative(self, val): - self["relative"] = val + self['relative'] = val # suffix # ------ @@ -243,11 +175,11 @@ def suffix(self): ------- str """ - return self["suffix"] + return self['suffix'] @suffix.setter def suffix(self, val): - self["suffix"] = val + self['suffix'] = val # valueformat # ----------- @@ -267,11 +199,11 @@ def valueformat(self): ------- str """ - return self["valueformat"] + return self['valueformat'] @valueformat.setter def valueformat(self, val): - self["valueformat"] = val + self['valueformat'] = val # Self properties description # --------------------------- @@ -303,21 +235,19 @@ def _prop_descriptions(self): Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. """ - - def __init__( - self, - arg=None, - decreasing=None, - font=None, - increasing=None, - position=None, - prefix=None, - reference=None, - relative=None, - suffix=None, - valueformat=None, - **kwargs, - ): + def __init__(self, + arg=None, + decreasing=None, + font=None, + increasing=None, + position=None, + prefix=None, + reference=None, + relative=None, + suffix=None, + valueformat=None, + **kwargs + ): """ Construct a new Delta object @@ -356,10 +286,10 @@ def __init__( ------- Delta """ - super(Delta, self).__init__("delta") + super(Delta, self).__init__('delta') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -371,56 +301,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.indicator.Delta constructor must be a dict or -an instance of :class:`plotly.graph_objs.indicator.Delta`""" - ) +an instance of :class:`plotly.graph_objs.indicator.Delta`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("decreasing", None) - _v = decreasing if decreasing is not None else _v - if _v is not None: - self["decreasing"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("increasing", None) - _v = increasing if increasing is not None else _v - if _v is not None: - self["increasing"] = _v - _v = arg.pop("position", None) - _v = position if position is not None else _v - if _v is not None: - self["position"] = _v - _v = arg.pop("prefix", None) - _v = prefix if prefix is not None else _v - if _v is not None: - self["prefix"] = _v - _v = arg.pop("reference", None) - _v = reference if reference is not None else _v - if _v is not None: - self["reference"] = _v - _v = arg.pop("relative", None) - _v = relative if relative is not None else _v - if _v is not None: - self["relative"] = _v - _v = arg.pop("suffix", None) - _v = suffix if suffix is not None else _v - if _v is not None: - self["suffix"] = _v - _v = arg.pop("valueformat", None) - _v = valueformat if valueformat is not None else _v - if _v is not None: - self["valueformat"] = _v + self._init_provided('decreasing', arg, decreasing) + self._init_provided('font', arg, font) + self._init_provided('increasing', arg, increasing) + self._init_provided('position', arg, position) + self._init_provided('prefix', arg, prefix) + self._init_provided('reference', arg, reference) + self._init_provided('relative', arg, relative) + self._init_provided('suffix', arg, suffix) + self._init_provided('valueformat', arg, valueformat) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/indicator/_domain.py b/packages/python/plotly/plotly/graph_objs/indicator/_domain.py index 1005dea1b0b..ab9ee1b0b70 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/_domain.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/_domain.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Domain(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "indicator" - _path_str = "indicator.domain" + _parent_path_str = 'indicator' + _path_str = 'indicator.domain' _valid_props = {"column", "row", "x", "y"} # column @@ -26,11 +28,11 @@ def column(self): ------- int """ - return self["column"] + return self['column'] @column.setter def column(self, val): - self["column"] = val + self['column'] = val # row # --- @@ -48,63 +50,63 @@ def row(self): ------- int """ - return self["row"] + return self['row'] @row.setter def row(self, val): - self["row"] = val + self['row'] = val # x # - @property def x(self): """ - Sets the horizontal domain of this indicator trace (in plot - fraction). - - The 'x' property is an info array that may be specified as: + Sets the horizontal domain of this indicator trace (in plot + fraction). - * a list or tuple of 2 elements where: - (0) The 'x[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'x[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] + The 'x' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'x[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'x[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - Returns - ------- - list + Returns + ------- + list """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @property def y(self): """ - Sets the vertical domain of this indicator trace (in plot - fraction). + Sets the vertical domain of this indicator trace (in plot + fraction). - The 'y' property is an info array that may be specified as: + The 'y' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'y[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'y[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - * a list or tuple of 2 elements where: - (0) The 'y[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'y[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - - Returns - ------- - list + Returns + ------- + list """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # Self properties description # --------------------------- @@ -124,8 +126,14 @@ def _prop_descriptions(self): Sets the vertical domain of this indicator trace (in plot fraction). """ - - def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): + def __init__(self, + arg=None, + column=None, + row=None, + x=None, + y=None, + **kwargs + ): """ Construct a new Domain object @@ -152,10 +160,10 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") + super(Domain, self).__init__('domain') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -167,36 +175,23 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.indicator.Domain constructor must be a dict or -an instance of :class:`plotly.graph_objs.indicator.Domain`""" - ) +an instance of :class:`plotly.graph_objs.indicator.Domain`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("column", None) - _v = column if column is not None else _v - if _v is not None: - self["column"] = _v - _v = arg.pop("row", None) - _v = row if row is not None else _v - if _v is not None: - self["row"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v + self._init_provided('column', arg, column) + self._init_provided('row', arg, row) + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/indicator/_gauge.py b/packages/python/plotly/plotly/graph_objs/indicator/_gauge.py index 0a4ce3b85b8..d1f48863cc6 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/_gauge.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/_gauge.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Gauge(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "indicator" - _path_str = "indicator.gauge" - _valid_props = { - "axis", - "bar", - "bgcolor", - "bordercolor", - "borderwidth", - "shape", - "stepdefaults", - "steps", - "threshold", - } + _parent_path_str = 'indicator' + _path_str = 'indicator.gauge' + _valid_props = {"axis", "bar", "bgcolor", "bordercolor", "borderwidth", "shape", "stepdefaults", "steps", "threshold"} # axis # ---- @@ -31,195 +23,15 @@ def axis(self): - A dict of string/value properties that will be passed to the Axis constructor - Supported dict properties: - - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - range - Sets the range of this axis. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.indicat - or.gauge.axis.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.indicator.gauge.axis.tickformatstopdefaults), - sets the default property values to use for - elements of - indicator.gauge.axis.tickformatstops - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - visible - A single toggle to hide the axis while - preserving interaction like dragging. Default - is true when a cheater plot is present on the - axis, otherwise false - Returns ------- plotly.graph_objs.indicator.gauge.Axis """ - return self["axis"] + return self['axis'] @axis.setter def axis(self, val): - self["axis"] = val + self['axis'] = val # bar # --- @@ -234,27 +46,15 @@ def bar(self): - A dict of string/value properties that will be passed to the Bar constructor - Supported dict properties: - - color - Sets the background color of the arc. - line - :class:`plotly.graph_objects.indicator.gauge.ba - r.Line` instance or dict with compatible - properties - thickness - Sets the thickness of the bar as a fraction of - the total thickness of the gauge. - Returns ------- plotly.graph_objs.indicator.gauge.Bar """ - return self["bar"] + return self['bar'] @bar.setter def bar(self, val): - self["bar"] = val + self['bar'] = val # bgcolor # ------- @@ -268,52 +68,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -327,52 +92,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -388,11 +118,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # shape # ----- @@ -409,11 +139,11 @@ def shape(self): ------- Any """ - return self["shape"] + return self['shape'] @shape.setter def shape(self, val): - self["shape"] = val + self['shape'] = val # steps # ----- @@ -426,50 +156,15 @@ def steps(self): - A list or tuple of dicts of string/value properties that will be passed to the Step constructor - Supported dict properties: - - color - Sets the background color of the arc. - line - :class:`plotly.graph_objects.indicator.gauge.st - ep.Line` instance or dict with compatible - properties - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - range - Sets the range of this axis. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - thickness - Sets the thickness of the bar as a fraction of - the total thickness of the gauge. - Returns ------- tuple[plotly.graph_objs.indicator.gauge.Step] """ - return self["steps"] + return self['steps'] @steps.setter def steps(self, val): - self["steps"] = val + self['steps'] = val # stepdefaults # ------------ @@ -487,17 +182,15 @@ def stepdefaults(self): - A dict of string/value properties that will be passed to the Step constructor - Supported dict properties: - Returns ------- plotly.graph_objs.indicator.gauge.Step """ - return self["stepdefaults"] + return self['stepdefaults'] @stepdefaults.setter def stepdefaults(self, val): - self["stepdefaults"] = val + self['stepdefaults'] = val # threshold # --------- @@ -510,27 +203,15 @@ def threshold(self): - A dict of string/value properties that will be passed to the Threshold constructor - Supported dict properties: - - line - :class:`plotly.graph_objects.indicator.gauge.th - reshold.Line` instance or dict with compatible - properties - thickness - Sets the thickness of the threshold line as a - fraction of the thickness of the gauge. - value - Sets a treshold value drawn as a line. - Returns ------- plotly.graph_objs.indicator.gauge.Threshold """ - return self["threshold"] + return self['threshold'] @threshold.setter def threshold(self, val): - self["threshold"] = val + self['threshold'] = val # Self properties description # --------------------------- @@ -564,21 +245,19 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.indicator.gauge.Threshold` instance or dict with compatible properties """ - - def __init__( - self, - arg=None, - axis=None, - bar=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - shape=None, - steps=None, - stepdefaults=None, - threshold=None, - **kwargs, - ): + def __init__(self, + arg=None, + axis=None, + bar=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + shape=None, + steps=None, + stepdefaults=None, + threshold=None, + **kwargs + ): """ Construct a new Gauge object @@ -621,10 +300,10 @@ def __init__( ------- Gauge """ - super(Gauge, self).__init__("gauge") + super(Gauge, self).__init__('gauge') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -636,56 +315,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.indicator.Gauge constructor must be a dict or -an instance of :class:`plotly.graph_objs.indicator.Gauge`""" - ) +an instance of :class:`plotly.graph_objs.indicator.Gauge`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("axis", None) - _v = axis if axis is not None else _v - if _v is not None: - self["axis"] = _v - _v = arg.pop("bar", None) - _v = bar if bar is not None else _v - if _v is not None: - self["bar"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("shape", None) - _v = shape if shape is not None else _v - if _v is not None: - self["shape"] = _v - _v = arg.pop("steps", None) - _v = steps if steps is not None else _v - if _v is not None: - self["steps"] = _v - _v = arg.pop("stepdefaults", None) - _v = stepdefaults if stepdefaults is not None else _v - if _v is not None: - self["stepdefaults"] = _v - _v = arg.pop("threshold", None) - _v = threshold if threshold is not None else _v - if _v is not None: - self["threshold"] = _v + self._init_provided('axis', arg, axis) + self._init_provided('bar', arg, bar) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('shape', arg, shape) + self._init_provided('steps', arg, steps) + self._init_provided('stepdefaults', arg, stepdefaults) + self._init_provided('threshold', arg, threshold) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/indicator/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/indicator/_legendgrouptitle.py index d577919e712..921522f880e 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "indicator" - _path_str = "indicator.legendgrouptitle" + _parent_path_str = 'indicator' + _path_str = 'indicator.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.indicator.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.indicator.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.indicator.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.indicator.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/indicator/_number.py b/packages/python/plotly/plotly/graph_objs/indicator/_number.py index bd09a52f1c0..ec050d2b816 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/_number.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/_number.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Number(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "indicator" - _path_str = "indicator.number" + _parent_path_str = 'indicator' + _path_str = 'indicator.number' _valid_props = {"font", "prefix", "suffix", "valueformat"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.indicator.number.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # prefix # ------ @@ -94,11 +50,11 @@ def prefix(self): ------- str """ - return self["prefix"] + return self['prefix'] @prefix.setter def prefix(self, val): - self["prefix"] = val + self['prefix'] = val # suffix # ------ @@ -115,11 +71,11 @@ def suffix(self): ------- str """ - return self["suffix"] + return self['suffix'] @suffix.setter def suffix(self, val): - self["suffix"] = val + self['suffix'] = val # valueformat # ----------- @@ -139,11 +95,11 @@ def valueformat(self): ------- str """ - return self["valueformat"] + return self['valueformat'] @valueformat.setter def valueformat(self, val): - self["valueformat"] = val + self['valueformat'] = val # Self properties description # --------------------------- @@ -162,10 +118,14 @@ def _prop_descriptions(self): Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. """ - - def __init__( - self, arg=None, font=None, prefix=None, suffix=None, valueformat=None, **kwargs - ): + def __init__(self, + arg=None, + font=None, + prefix=None, + suffix=None, + valueformat=None, + **kwargs + ): """ Construct a new Number object @@ -191,10 +151,10 @@ def __init__( ------- Number """ - super(Number, self).__init__("number") + super(Number, self).__init__('number') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -206,36 +166,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.indicator.Number constructor must be a dict or -an instance of :class:`plotly.graph_objs.indicator.Number`""" - ) +an instance of :class:`plotly.graph_objs.indicator.Number`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("prefix", None) - _v = prefix if prefix is not None else _v - if _v is not None: - self["prefix"] = _v - _v = arg.pop("suffix", None) - _v = suffix if suffix is not None else _v - if _v is not None: - self["suffix"] = _v - _v = arg.pop("valueformat", None) - _v = valueformat if valueformat is not None else _v - if _v is not None: - self["valueformat"] = _v + self._init_provided('font', arg, font) + self._init_provided('prefix', arg, prefix) + self._init_provided('suffix', arg, suffix) + self._init_provided('valueformat', arg, valueformat) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/indicator/_stream.py b/packages/python/plotly/plotly/graph_objs/indicator/_stream.py index 1d962228b67..28ac3781530 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "indicator" - _path_str = "indicator.stream" + _parent_path_str = 'indicator' + _path_str = 'indicator.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.indicator.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.indicator.Stream`""" - ) +an instance of :class:`plotly.graph_objs.indicator.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/indicator/_title.py b/packages/python/plotly/plotly/graph_objs/indicator/_title.py index 6f0b54ed75b..b498fe8bbaf 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/_title.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "indicator" - _path_str = "indicator.title" + _parent_path_str = 'indicator' + _path_str = 'indicator.title' _valid_props = {"align", "font", "text"} # align @@ -27,11 +29,11 @@ def align(self): ------- Any """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # font # ---- @@ -46,61 +48,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.indicator.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -137,8 +93,13 @@ def _prop_descriptions(self): text Sets the title of this indicator. """ - - def __init__(self, arg=None, align=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + align=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -161,10 +122,10 @@ def __init__(self, arg=None, align=None, font=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -176,32 +137,22 @@ def __init__(self, arg=None, align=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.indicator.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.indicator.Title`""" - ) +an instance of :class:`plotly.graph_objs.indicator.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('align', arg, align) + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/indicator/delta/__init__.py b/packages/python/plotly/plotly/graph_objs/indicator/delta/__init__.py index bb0867bc523..c59233a7788 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/delta/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/delta/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._decreasing import Decreasing from ._font import Font from ._increasing import Increasing else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._decreasing.Decreasing", "._font.Font", "._increasing.Increasing"], + ['._decreasing.Decreasing', '._font.Font', '._increasing.Increasing'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/indicator/delta/_decreasing.py b/packages/python/plotly/plotly/graph_objs/indicator/delta/_decreasing.py index 0cef41f0bed..6bc705df4e6 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/delta/_decreasing.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/delta/_decreasing.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Decreasing(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "indicator.delta" - _path_str = "indicator.delta.decreasing" + _parent_path_str = 'indicator.delta' + _path_str = 'indicator.delta.decreasing' _valid_props = {"color", "symbol"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # symbol # ------ @@ -84,11 +51,11 @@ def symbol(self): ------- str """ - return self["symbol"] + return self['symbol'] @symbol.setter def symbol(self, val): - self["symbol"] = val + self['symbol'] = val # Self properties description # --------------------------- @@ -100,8 +67,12 @@ def _prop_descriptions(self): symbol Sets the symbol to display for increasing value """ - - def __init__(self, arg=None, color=None, symbol=None, **kwargs): + def __init__(self, + arg=None, + color=None, + symbol=None, + **kwargs + ): """ Construct a new Decreasing object @@ -120,10 +91,10 @@ def __init__(self, arg=None, color=None, symbol=None, **kwargs): ------- Decreasing """ - super(Decreasing, self).__init__("decreasing") + super(Decreasing, self).__init__('decreasing') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -135,28 +106,21 @@ def __init__(self, arg=None, color=None, symbol=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.indicator.delta.Decreasing constructor must be a dict or -an instance of :class:`plotly.graph_objs.indicator.delta.Decreasing`""" - ) +an instance of :class:`plotly.graph_objs.indicator.delta.Decreasing`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("symbol", None) - _v = symbol if symbol is not None else _v - if _v is not None: - self["symbol"] = _v + self._init_provided('color', arg, color) + self._init_provided('symbol', arg, symbol) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/indicator/delta/_font.py b/packages/python/plotly/plotly/graph_objs/indicator/delta/_font.py index 41f9eababf3..71fce005b26 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/delta/_font.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/delta/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "indicator.delta" - _path_str = "indicator.delta.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'indicator.delta' + _path_str = 'indicator.delta.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.indicator.delta.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.indicator.delta.Font`""" - ) +an instance of :class:`plotly.graph_objs.indicator.delta.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/indicator/delta/_increasing.py b/packages/python/plotly/plotly/graph_objs/indicator/delta/_increasing.py index 842122770c5..e7075abf5f2 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/delta/_increasing.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/delta/_increasing.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Increasing(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "indicator.delta" - _path_str = "indicator.delta.increasing" + _parent_path_str = 'indicator.delta' + _path_str = 'indicator.delta.increasing' _valid_props = {"color", "symbol"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # symbol # ------ @@ -84,11 +51,11 @@ def symbol(self): ------- str """ - return self["symbol"] + return self['symbol'] @symbol.setter def symbol(self, val): - self["symbol"] = val + self['symbol'] = val # Self properties description # --------------------------- @@ -100,8 +67,12 @@ def _prop_descriptions(self): symbol Sets the symbol to display for increasing value """ - - def __init__(self, arg=None, color=None, symbol=None, **kwargs): + def __init__(self, + arg=None, + color=None, + symbol=None, + **kwargs + ): """ Construct a new Increasing object @@ -120,10 +91,10 @@ def __init__(self, arg=None, color=None, symbol=None, **kwargs): ------- Increasing """ - super(Increasing, self).__init__("increasing") + super(Increasing, self).__init__('increasing') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -135,28 +106,21 @@ def __init__(self, arg=None, color=None, symbol=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.indicator.delta.Increasing constructor must be a dict or -an instance of :class:`plotly.graph_objs.indicator.delta.Increasing`""" - ) +an instance of :class:`plotly.graph_objs.indicator.delta.Increasing`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("symbol", None) - _v = symbol if symbol is not None else _v - if _v is not None: - self["symbol"] = _v + self._init_provided('color', arg, color) + self._init_provided('symbol', arg, symbol) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/indicator/gauge/__init__.py b/packages/python/plotly/plotly/graph_objs/indicator/gauge/__init__.py index e7ae622591c..7335374aea1 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/gauge/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/gauge/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._axis import Axis from ._bar import Bar @@ -12,9 +11,10 @@ from . import threshold else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".axis", ".bar", ".step", ".threshold"], - ["._axis.Axis", "._bar.Bar", "._step.Step", "._threshold.Threshold"], + ['.axis', '.bar', '.step', '.threshold'], + ['._axis.Axis', '._bar.Bar', '._step.Step', '._threshold.Threshold'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/indicator/gauge/_axis.py b/packages/python/plotly/plotly/graph_objs/indicator/gauge/_axis.py index f35563e787f..0180b05d097 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/gauge/_axis.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/gauge/_axis.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,40 +8,9 @@ class Axis(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "indicator.gauge" - _path_str = "indicator.gauge.axis" - _valid_props = { - "dtick", - "exponentformat", - "labelalias", - "minexponent", - "nticks", - "range", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "visible", - } + _parent_path_str = 'indicator.gauge' + _path_str = 'indicator.gauge.axis' + _valid_props = {"dtick", "exponentformat", "labelalias", "minexponent", "nticks", "range", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "visible"} # dtick # ----- @@ -73,11 +44,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -98,11 +69,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -125,11 +96,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # minexponent # ----------- @@ -146,11 +117,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -170,36 +141,36 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # range # ----- @property def range(self): """ - Sets the range of this axis. + Sets the range of this axis. - The 'range' property is an info array that may be specified as: + The 'range' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'range[0]' property is a number and may be specified as: + - An int or float + (1) The 'range[1]' property is a number and may be specified as: + - An int or float - * a list or tuple of 2 elements where: - (0) The 'range[0]' property is a number and may be specified as: - - An int or float - (1) The 'range[1]' property is a number and may be specified as: - - An int or float - - Returns - ------- - list + Returns + ------- + list """ - return self["range"] + return self['range'] @range.setter def range(self, val): - self["range"] = val + self['range'] = val # separatethousands # ----------------- @@ -215,11 +186,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -239,11 +210,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -259,11 +230,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -283,11 +254,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -304,11 +275,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # tick0 # ----- @@ -331,11 +302,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -355,11 +326,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -373,52 +344,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -433,61 +369,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.indicator.gauge.axis.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -513,11 +403,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -530,51 +420,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.indicator.gauge.axis.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -592,17 +446,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.indicator.gauge.axis.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabelstep # ------------- @@ -624,11 +476,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -644,11 +496,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -671,11 +523,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -692,11 +544,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -715,11 +567,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -736,11 +588,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -758,11 +610,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -778,11 +630,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -799,11 +651,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -819,11 +671,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -839,11 +691,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # visible # ------- @@ -861,11 +713,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # Self properties description # --------------------------- @@ -1029,42 +881,40 @@ def _prop_descriptions(self): interaction like dragging. Default is true when a cheater plot is present on the axis, otherwise false """ - - def __init__( - self, - arg=None, - dtick=None, - exponentformat=None, - labelalias=None, - minexponent=None, - nticks=None, - range=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtick=None, + exponentformat=None, + labelalias=None, + minexponent=None, + nticks=None, + range=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + visible=None, + **kwargs + ): """ Construct a new Axis object @@ -1235,10 +1085,10 @@ def __init__( ------- Axis """ - super(Axis, self).__init__("axis") + super(Axis, self).__init__('axis') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1250,140 +1100,49 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.indicator.gauge.Axis constructor must be a dict or -an instance of :class:`plotly.graph_objs.indicator.gauge.Axis`""" - ) +an instance of :class:`plotly.graph_objs.indicator.gauge.Axis`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("range", None) - _v = range if range is not None else _v - if _v is not None: - self["range"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('range', arg, range) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('visible', arg, visible) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/indicator/gauge/_bar.py b/packages/python/plotly/plotly/graph_objs/indicator/gauge/_bar.py index 41160d59faf..47d6ce73886 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/gauge/_bar.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/gauge/_bar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Bar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "indicator.gauge" - _path_str = "indicator.gauge.bar" + _parent_path_str = 'indicator.gauge' + _path_str = 'indicator.gauge.bar' _valid_props = {"color", "line", "thickness"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # line # ---- @@ -80,24 +47,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the color of the line enclosing each - sector. - width - Sets the width (in px) of the line enclosing - each sector. - Returns ------- plotly.graph_objs.indicator.gauge.bar.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # thickness # --------- @@ -114,11 +72,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # Self properties description # --------------------------- @@ -134,8 +92,13 @@ def _prop_descriptions(self): Sets the thickness of the bar as a fraction of the total thickness of the gauge. """ - - def __init__(self, arg=None, color=None, line=None, thickness=None, **kwargs): + def __init__(self, + arg=None, + color=None, + line=None, + thickness=None, + **kwargs + ): """ Construct a new Bar object @@ -160,10 +123,10 @@ def __init__(self, arg=None, color=None, line=None, thickness=None, **kwargs): ------- Bar """ - super(Bar, self).__init__("bar") + super(Bar, self).__init__('bar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -175,32 +138,22 @@ def __init__(self, arg=None, color=None, line=None, thickness=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.indicator.gauge.Bar constructor must be a dict or -an instance of :class:`plotly.graph_objs.indicator.gauge.Bar`""" - ) +an instance of :class:`plotly.graph_objs.indicator.gauge.Bar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v + self._init_provided('color', arg, color) + self._init_provided('line', arg, line) + self._init_provided('thickness', arg, thickness) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/indicator/gauge/_step.py b/packages/python/plotly/plotly/graph_objs/indicator/gauge/_step.py index 6e69805fab4..c32cd1521fb 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/gauge/_step.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/gauge/_step.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Step(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "indicator.gauge" - _path_str = "indicator.gauge.step" + _parent_path_str = 'indicator.gauge' + _path_str = 'indicator.gauge.step' _valid_props = {"color", "line", "name", "range", "templateitemname", "thickness"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # line # ---- @@ -80,24 +47,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the color of the line enclosing each - sector. - width - Sets the width (in px) of the line enclosing - each sector. - Returns ------- plotly.graph_objs.indicator.gauge.step.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # name # ---- @@ -120,36 +78,36 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # range # ----- @property def range(self): """ - Sets the range of this axis. + Sets the range of this axis. - The 'range' property is an info array that may be specified as: + The 'range' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'range[0]' property is a number and may be specified as: + - An int or float + (1) The 'range[1]' property is a number and may be specified as: + - An int or float - * a list or tuple of 2 elements where: - (0) The 'range[0]' property is a number and may be specified as: - - An int or float - (1) The 'range[1]' property is a number and may be specified as: - - An int or float - - Returns - ------- - list + Returns + ------- + list """ - return self["range"] + return self['range'] @range.setter def range(self, val): - self["range"] = val + self['range'] = val # templateitemname # ---------------- @@ -173,11 +131,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # thickness # --------- @@ -194,11 +152,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # Self properties description # --------------------------- @@ -235,18 +193,16 @@ def _prop_descriptions(self): Sets the thickness of the bar as a fraction of the total thickness of the gauge. """ - - def __init__( - self, - arg=None, - color=None, - line=None, - name=None, - range=None, - templateitemname=None, - thickness=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + line=None, + name=None, + range=None, + templateitemname=None, + thickness=None, + **kwargs + ): """ Construct a new Step object @@ -290,10 +246,10 @@ def __init__( ------- Step """ - super(Step, self).__init__("steps") + super(Step, self).__init__('steps') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -305,44 +261,25 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.indicator.gauge.Step constructor must be a dict or -an instance of :class:`plotly.graph_objs.indicator.gauge.Step`""" - ) +an instance of :class:`plotly.graph_objs.indicator.gauge.Step`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("range", None) - _v = range if range is not None else _v - if _v is not None: - self["range"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v + self._init_provided('color', arg, color) + self._init_provided('line', arg, line) + self._init_provided('name', arg, name) + self._init_provided('range', arg, range) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('thickness', arg, thickness) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/indicator/gauge/_threshold.py b/packages/python/plotly/plotly/graph_objs/indicator/gauge/_threshold.py index 288a7fadfe3..c68160ce476 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/gauge/_threshold.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/gauge/_threshold.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Threshold(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "indicator.gauge" - _path_str = "indicator.gauge.threshold" + _parent_path_str = 'indicator.gauge' + _path_str = 'indicator.gauge.threshold' _valid_props = {"line", "thickness", "value"} # line @@ -21,22 +23,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the color of the threshold line. - width - Sets the width (in px) of the threshold line. - Returns ------- plotly.graph_objs.indicator.gauge.threshold.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # thickness # --------- @@ -53,11 +48,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # value # ----- @@ -73,11 +68,11 @@ def value(self): ------- int|float """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -93,8 +88,13 @@ def _prop_descriptions(self): value Sets a treshold value drawn as a line. """ - - def __init__(self, arg=None, line=None, thickness=None, value=None, **kwargs): + def __init__(self, + arg=None, + line=None, + thickness=None, + value=None, + **kwargs + ): """ Construct a new Threshold object @@ -117,10 +117,10 @@ def __init__(self, arg=None, line=None, thickness=None, value=None, **kwargs): ------- Threshold """ - super(Threshold, self).__init__("threshold") + super(Threshold, self).__init__('threshold') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -132,32 +132,22 @@ def __init__(self, arg=None, line=None, thickness=None, value=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.indicator.gauge.Threshold constructor must be a dict or -an instance of :class:`plotly.graph_objs.indicator.gauge.Threshold`""" - ) +an instance of :class:`plotly.graph_objs.indicator.gauge.Threshold`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('line', arg, line) + self._init_provided('thickness', arg, thickness) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/indicator/gauge/axis/__init__.py b/packages/python/plotly/plotly/graph_objs/indicator/gauge/axis/__init__.py index ae53e8859fc..e1969f3ff2e 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/gauge/axis/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/gauge/axis/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop"] + __name__, + [], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/indicator/gauge/axis/_tickfont.py b/packages/python/plotly/plotly/graph_objs/indicator/gauge/axis/_tickfont.py index fcb620a75eb..fcc02639f42 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/gauge/axis/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/gauge/axis/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "indicator.gauge.axis" - _path_str = "indicator.gauge.axis.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'indicator.gauge.axis' + _path_str = 'indicator.gauge.axis.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.indicator.gauge.axis.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.indicator.gauge.axis.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.indicator.gauge.axis.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/indicator/gauge/axis/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/indicator/gauge/axis/_tickformatstop.py index b6f48d2a697..0ee1a518f22 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/gauge/axis/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/gauge/axis/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "indicator.gauge.axis" - _path_str = "indicator.gauge.axis.tickformatstop" + _parent_path_str = 'indicator.gauge.axis' + _path_str = 'indicator.gauge.axis.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.indicator.gauge.axis.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.indicator.gauge.axis.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.indicator.gauge.axis.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/indicator/gauge/bar/__init__.py b/packages/python/plotly/plotly/graph_objs/indicator/gauge/bar/__init__.py index 8722c15a2b8..a745ef6458a 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/gauge/bar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/gauge/bar/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import Line else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._line.Line'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._line.Line"]) diff --git a/packages/python/plotly/plotly/graph_objs/indicator/gauge/bar/_line.py b/packages/python/plotly/plotly/graph_objs/indicator/gauge/bar/_line.py index 7e9b0f3d760..967f0414398 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/gauge/bar/_line.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/gauge/bar/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "indicator.gauge.bar" - _path_str = "indicator.gauge.bar.line" + _parent_path_str = 'indicator.gauge.bar' + _path_str = 'indicator.gauge.bar.line' _valid_props = {"color", "width"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # width # ----- @@ -83,11 +50,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -100,8 +67,12 @@ def _prop_descriptions(self): Sets the width (in px) of the line enclosing each sector. """ - - def __init__(self, arg=None, color=None, width=None, **kwargs): + def __init__(self, + arg=None, + color=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -121,10 +92,10 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -136,28 +107,21 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.indicator.gauge.bar.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.indicator.gauge.bar.Line`""" - ) +an instance of :class:`plotly.graph_objs.indicator.gauge.bar.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/indicator/gauge/step/__init__.py b/packages/python/plotly/plotly/graph_objs/indicator/gauge/step/__init__.py index 8722c15a2b8..a745ef6458a 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/gauge/step/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/gauge/step/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import Line else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._line.Line'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._line.Line"]) diff --git a/packages/python/plotly/plotly/graph_objs/indicator/gauge/step/_line.py b/packages/python/plotly/plotly/graph_objs/indicator/gauge/step/_line.py index ef6682be3be..8b983613cbe 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/gauge/step/_line.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/gauge/step/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "indicator.gauge.step" - _path_str = "indicator.gauge.step.line" + _parent_path_str = 'indicator.gauge.step' + _path_str = 'indicator.gauge.step.line' _valid_props = {"color", "width"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # width # ----- @@ -83,11 +50,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -100,8 +67,12 @@ def _prop_descriptions(self): Sets the width (in px) of the line enclosing each sector. """ - - def __init__(self, arg=None, color=None, width=None, **kwargs): + def __init__(self, + arg=None, + color=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -121,10 +92,10 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -136,28 +107,21 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.indicator.gauge.step.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.indicator.gauge.step.Line`""" - ) +an instance of :class:`plotly.graph_objs.indicator.gauge.step.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/indicator/gauge/threshold/__init__.py b/packages/python/plotly/plotly/graph_objs/indicator/gauge/threshold/__init__.py index 8722c15a2b8..a745ef6458a 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/gauge/threshold/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/gauge/threshold/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import Line else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._line.Line'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._line.Line"]) diff --git a/packages/python/plotly/plotly/graph_objs/indicator/gauge/threshold/_line.py b/packages/python/plotly/plotly/graph_objs/indicator/gauge/threshold/_line.py index 6a437a88d51..e7710655c2b 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/gauge/threshold/_line.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/gauge/threshold/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "indicator.gauge.threshold" - _path_str = "indicator.gauge.threshold.line" + _parent_path_str = 'indicator.gauge.threshold' + _path_str = 'indicator.gauge.threshold.line' _valid_props = {"color", "width"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # width # ----- @@ -83,11 +50,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -99,8 +66,12 @@ def _prop_descriptions(self): width Sets the width (in px) of the threshold line. """ - - def __init__(self, arg=None, color=None, width=None, **kwargs): + def __init__(self, + arg=None, + color=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -119,10 +90,10 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -134,28 +105,21 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.indicator.gauge.threshold.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.indicator.gauge.threshold.Line`""" - ) +an instance of :class:`plotly.graph_objs.indicator.gauge.threshold.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/indicator/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/indicator/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/indicator/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/indicator/legendgrouptitle/_font.py index 63989ccdd7a..7fbaec7f0b3 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "indicator.legendgrouptitle" - _path_str = "indicator.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'indicator.legendgrouptitle' + _path_str = 'indicator.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.indicator.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.indicator.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.indicator.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/indicator/number/__init__.py b/packages/python/plotly/plotly/graph_objs/indicator/number/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/number/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/number/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/indicator/number/_font.py b/packages/python/plotly/plotly/graph_objs/indicator/number/_font.py index abe14468617..d12f217f2fa 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/number/_font.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/number/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "indicator.number" - _path_str = "indicator.number.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'indicator.number' + _path_str = 'indicator.number.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.indicator.number.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.indicator.number.Font`""" - ) +an instance of :class:`plotly.graph_objs.indicator.number.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/indicator/title/__init__.py b/packages/python/plotly/plotly/graph_objs/indicator/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/indicator/title/_font.py b/packages/python/plotly/plotly/graph_objs/indicator/title/_font.py index d5ddfe375c4..96ac23bd157 100644 --- a/packages/python/plotly/plotly/graph_objs/indicator/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/indicator/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "indicator.title" - _path_str = "indicator.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'indicator.title' + _path_str = 'indicator.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.indicator.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.indicator.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.indicator.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/__init__.py b/packages/python/plotly/plotly/graph_objs/isosurface/__init__.py index 505fd03f998..3a08d868822 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._caps import Caps from ._colorbar import ColorBar @@ -20,21 +19,10 @@ from . import slices else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".caps", ".colorbar", ".hoverlabel", ".legendgrouptitle", ".slices"], - [ - "._caps.Caps", - "._colorbar.ColorBar", - "._contour.Contour", - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._lighting.Lighting", - "._lightposition.Lightposition", - "._slices.Slices", - "._spaceframe.Spaceframe", - "._stream.Stream", - "._surface.Surface", - ], + ['.caps', '.colorbar', '.hoverlabel', '.legendgrouptitle', '.slices'], + ['._caps.Caps', '._colorbar.ColorBar', '._contour.Contour', '._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._lighting.Lighting', '._lightposition.Lightposition', '._slices.Slices', '._spaceframe.Spaceframe', '._stream.Stream', '._surface.Surface'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/_caps.py b/packages/python/plotly/plotly/graph_objs/isosurface/_caps.py index f6dcf8ef17d..f2c87fe2910 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/_caps.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/_caps.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Caps(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "isosurface" - _path_str = "isosurface.caps" + _parent_path_str = 'isosurface' + _path_str = 'isosurface.caps' _valid_props = {"x", "y", "z"} # x @@ -21,31 +23,15 @@ def x(self): - A dict of string/value properties that will be passed to the X constructor - Supported dict properties: - - fill - Sets the fill ratio of the `caps`. The default - fill value of the `caps` is 1 meaning that they - are entirely shaded. On the other hand Applying - a `fill` ratio less than one would allow the - creation of openings parallel to the edges. - show - Sets the fill ratio of the `slices`. The - default fill value of the x `slices` is 1 - meaning that they are entirely shaded. On the - other hand Applying a `fill` ratio less than - one would allow the creation of openings - parallel to the edges. - Returns ------- plotly.graph_objs.isosurface.caps.X """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @@ -58,31 +44,15 @@ def y(self): - A dict of string/value properties that will be passed to the Y constructor - Supported dict properties: - - fill - Sets the fill ratio of the `caps`. The default - fill value of the `caps` is 1 meaning that they - are entirely shaded. On the other hand Applying - a `fill` ratio less than one would allow the - creation of openings parallel to the edges. - show - Sets the fill ratio of the `slices`. The - default fill value of the y `slices` is 1 - meaning that they are entirely shaded. On the - other hand Applying a `fill` ratio less than - one would allow the creation of openings - parallel to the edges. - Returns ------- plotly.graph_objs.isosurface.caps.Y """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # z # - @@ -95,31 +65,15 @@ def z(self): - A dict of string/value properties that will be passed to the Z constructor - Supported dict properties: - - fill - Sets the fill ratio of the `caps`. The default - fill value of the `caps` is 1 meaning that they - are entirely shaded. On the other hand Applying - a `fill` ratio less than one would allow the - creation of openings parallel to the edges. - show - Sets the fill ratio of the `slices`. The - default fill value of the z `slices` is 1 - meaning that they are entirely shaded. On the - other hand Applying a `fill` ratio less than - one would allow the creation of openings - parallel to the edges. - Returns ------- plotly.graph_objs.isosurface.caps.Z """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # Self properties description # --------------------------- @@ -136,8 +90,13 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.isosurface.caps.Z` instance or dict with compatible properties """ - - def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): + def __init__(self, + arg=None, + x=None, + y=None, + z=None, + **kwargs + ): """ Construct a new Caps object @@ -161,10 +120,10 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Caps """ - super(Caps, self).__init__("caps") + super(Caps, self).__init__('caps') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -176,32 +135,22 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.isosurface.Caps constructor must be a dict or -an instance of :class:`plotly.graph_objs.isosurface.Caps`""" - ) +an instance of :class:`plotly.graph_objs.isosurface.Caps`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) + self._init_provided('z', arg, z) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/_colorbar.py b/packages/python/plotly/plotly/graph_objs/isosurface/_colorbar.py index 3f9bbf779dd..abc1e4fd504 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "isosurface" - _path_str = "isosurface.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'isosurface' + _path_str = 'isosurface.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.isosurface.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.isosurface.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -912,17 +642,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.isosurface.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -942,11 +670,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -967,11 +695,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -993,11 +721,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1013,11 +741,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1040,11 +768,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1061,11 +789,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1084,11 +812,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1105,11 +833,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1127,11 +855,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1147,11 +875,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1168,11 +896,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1188,11 +916,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1208,11 +936,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1225,27 +953,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.isosurface.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1267,11 +983,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1291,11 +1007,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1311,11 +1027,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1334,11 +1050,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1360,11 +1076,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1384,11 +1100,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1404,11 +1120,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1427,11 +1143,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1677,61 +1393,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1984,10 +1698,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1999,216 +1713,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.isosurface.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.isosurface.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.isosurface.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/_contour.py b/packages/python/plotly/plotly/graph_objs/isosurface/_contour.py index 2ad2e6a31b7..b21f6b1a6a8 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/_contour.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/_contour.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Contour(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "isosurface" - _path_str = "isosurface.contour" + _parent_path_str = 'isosurface' + _path_str = 'isosurface.contour' _valid_props = {"color", "show", "width"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # show # ---- @@ -83,11 +50,11 @@ def show(self): ------- bool """ - return self["show"] + return self['show'] @show.setter def show(self, val): - self["show"] = val + self['show'] = val # width # ----- @@ -103,11 +70,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -121,8 +88,13 @@ def _prop_descriptions(self): width Sets the width of the contour lines. """ - - def __init__(self, arg=None, color=None, show=None, width=None, **kwargs): + def __init__(self, + arg=None, + color=None, + show=None, + width=None, + **kwargs + ): """ Construct a new Contour object @@ -143,10 +115,10 @@ def __init__(self, arg=None, color=None, show=None, width=None, **kwargs): ------- Contour """ - super(Contour, self).__init__("contour") + super(Contour, self).__init__('contour') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -158,32 +130,22 @@ def __init__(self, arg=None, color=None, show=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.isosurface.Contour constructor must be a dict or -an instance of :class:`plotly.graph_objs.isosurface.Contour`""" - ) +an instance of :class:`plotly.graph_objs.isosurface.Contour`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("show", None) - _v = show if show is not None else _v - if _v is not None: - self["show"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('show', arg, show) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/isosurface/_hoverlabel.py index 6e694043719..7344850e6e7 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "isosurface" - _path_str = "isosurface.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'isosurface' + _path_str = 'isosurface.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.isosurface.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.isosurface.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.isosurface.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.isosurface.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/isosurface/_legendgrouptitle.py index fa29490fb74..489de5c70d2 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "isosurface" - _path_str = "isosurface.legendgrouptitle" + _parent_path_str = 'isosurface' + _path_str = 'isosurface.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.isosurface.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.isosurface.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.isosurface.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.isosurface.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/_lighting.py b/packages/python/plotly/plotly/graph_objs/isosurface/_lighting.py index 33d5f3cdaa0..176922c781c 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/_lighting.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/_lighting.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,17 +8,9 @@ class Lighting(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "isosurface" - _path_str = "isosurface.lighting" - _valid_props = { - "ambient", - "diffuse", - "facenormalsepsilon", - "fresnel", - "roughness", - "specular", - "vertexnormalsepsilon", - } + _parent_path_str = 'isosurface' + _path_str = 'isosurface.lighting' + _valid_props = {"ambient", "diffuse", "facenormalsepsilon", "fresnel", "roughness", "specular", "vertexnormalsepsilon"} # ambient # ------- @@ -33,11 +27,11 @@ def ambient(self): ------- int|float """ - return self["ambient"] + return self['ambient'] @ambient.setter def ambient(self, val): - self["ambient"] = val + self['ambient'] = val # diffuse # ------- @@ -54,11 +48,11 @@ def diffuse(self): ------- int|float """ - return self["diffuse"] + return self['diffuse'] @diffuse.setter def diffuse(self, val): - self["diffuse"] = val + self['diffuse'] = val # facenormalsepsilon # ------------------ @@ -75,11 +69,11 @@ def facenormalsepsilon(self): ------- int|float """ - return self["facenormalsepsilon"] + return self['facenormalsepsilon'] @facenormalsepsilon.setter def facenormalsepsilon(self, val): - self["facenormalsepsilon"] = val + self['facenormalsepsilon'] = val # fresnel # ------- @@ -97,11 +91,11 @@ def fresnel(self): ------- int|float """ - return self["fresnel"] + return self['fresnel'] @fresnel.setter def fresnel(self, val): - self["fresnel"] = val + self['fresnel'] = val # roughness # --------- @@ -118,11 +112,11 @@ def roughness(self): ------- int|float """ - return self["roughness"] + return self['roughness'] @roughness.setter def roughness(self, val): - self["roughness"] = val + self['roughness'] = val # specular # -------- @@ -139,11 +133,11 @@ def specular(self): ------- int|float """ - return self["specular"] + return self['specular'] @specular.setter def specular(self, val): - self["specular"] = val + self['specular'] = val # vertexnormalsepsilon # -------------------- @@ -160,11 +154,11 @@ def vertexnormalsepsilon(self): ------- int|float """ - return self["vertexnormalsepsilon"] + return self['vertexnormalsepsilon'] @vertexnormalsepsilon.setter def vertexnormalsepsilon(self, val): - self["vertexnormalsepsilon"] = val + self['vertexnormalsepsilon'] = val # Self properties description # --------------------------- @@ -195,19 +189,17 @@ def _prop_descriptions(self): Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry. """ - - def __init__( - self, - arg=None, - ambient=None, - diffuse=None, - facenormalsepsilon=None, - fresnel=None, - roughness=None, - specular=None, - vertexnormalsepsilon=None, - **kwargs, - ): + def __init__(self, + arg=None, + ambient=None, + diffuse=None, + facenormalsepsilon=None, + fresnel=None, + roughness=None, + specular=None, + vertexnormalsepsilon=None, + **kwargs + ): """ Construct a new Lighting object @@ -245,10 +237,10 @@ def __init__( ------- Lighting """ - super(Lighting, self).__init__("lighting") + super(Lighting, self).__init__('lighting') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -260,48 +252,26 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.isosurface.Lighting constructor must be a dict or -an instance of :class:`plotly.graph_objs.isosurface.Lighting`""" - ) +an instance of :class:`plotly.graph_objs.isosurface.Lighting`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("ambient", None) - _v = ambient if ambient is not None else _v - if _v is not None: - self["ambient"] = _v - _v = arg.pop("diffuse", None) - _v = diffuse if diffuse is not None else _v - if _v is not None: - self["diffuse"] = _v - _v = arg.pop("facenormalsepsilon", None) - _v = facenormalsepsilon if facenormalsepsilon is not None else _v - if _v is not None: - self["facenormalsepsilon"] = _v - _v = arg.pop("fresnel", None) - _v = fresnel if fresnel is not None else _v - if _v is not None: - self["fresnel"] = _v - _v = arg.pop("roughness", None) - _v = roughness if roughness is not None else _v - if _v is not None: - self["roughness"] = _v - _v = arg.pop("specular", None) - _v = specular if specular is not None else _v - if _v is not None: - self["specular"] = _v - _v = arg.pop("vertexnormalsepsilon", None) - _v = vertexnormalsepsilon if vertexnormalsepsilon is not None else _v - if _v is not None: - self["vertexnormalsepsilon"] = _v + self._init_provided('ambient', arg, ambient) + self._init_provided('diffuse', arg, diffuse) + self._init_provided('facenormalsepsilon', arg, facenormalsepsilon) + self._init_provided('fresnel', arg, fresnel) + self._init_provided('roughness', arg, roughness) + self._init_provided('specular', arg, specular) + self._init_provided('vertexnormalsepsilon', arg, vertexnormalsepsilon) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/_lightposition.py b/packages/python/plotly/plotly/graph_objs/isosurface/_lightposition.py index c7ceea779b6..42b27209986 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/_lightposition.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/_lightposition.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Lightposition(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "isosurface" - _path_str = "isosurface.lightposition" + _parent_path_str = 'isosurface' + _path_str = 'isosurface.lightposition' _valid_props = {"x", "y", "z"} # x @@ -24,11 +26,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @@ -44,11 +46,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # z # - @@ -64,11 +66,11 @@ def z(self): ------- int|float """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # Self properties description # --------------------------- @@ -85,8 +87,13 @@ def _prop_descriptions(self): Numeric vector, representing the Z coordinate for each vertex. """ - - def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): + def __init__(self, + arg=None, + x=None, + y=None, + z=None, + **kwargs + ): """ Construct a new Lightposition object @@ -110,10 +117,10 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Lightposition """ - super(Lightposition, self).__init__("lightposition") + super(Lightposition, self).__init__('lightposition') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -125,32 +132,22 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.isosurface.Lightposition constructor must be a dict or -an instance of :class:`plotly.graph_objs.isosurface.Lightposition`""" - ) +an instance of :class:`plotly.graph_objs.isosurface.Lightposition`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) + self._init_provided('z', arg, z) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/_slices.py b/packages/python/plotly/plotly/graph_objs/isosurface/_slices.py index 73e504aaa82..bc0a428683d 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/_slices.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/_slices.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Slices(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "isosurface" - _path_str = "isosurface.slices" + _parent_path_str = 'isosurface' + _path_str = 'isosurface.slices' _valid_props = {"x", "y", "z"} # x @@ -21,36 +23,15 @@ def x(self): - A dict of string/value properties that will be passed to the X constructor - Supported dict properties: - - fill - Sets the fill ratio of the `slices`. The - default fill value of the `slices` is 1 meaning - that they are entirely shaded. On the other - hand Applying a `fill` ratio less than one - would allow the creation of openings parallel - to the edges. - locations - Specifies the location(s) of slices on the - axis. When not specified slices would be - created for all points of the axis x except - start and end. - locationssrc - Sets the source reference on Chart Studio Cloud - for `locations`. - show - Determines whether or not slice planes about - the x dimension are drawn. - Returns ------- plotly.graph_objs.isosurface.slices.X """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @@ -63,36 +44,15 @@ def y(self): - A dict of string/value properties that will be passed to the Y constructor - Supported dict properties: - - fill - Sets the fill ratio of the `slices`. The - default fill value of the `slices` is 1 meaning - that they are entirely shaded. On the other - hand Applying a `fill` ratio less than one - would allow the creation of openings parallel - to the edges. - locations - Specifies the location(s) of slices on the - axis. When not specified slices would be - created for all points of the axis y except - start and end. - locationssrc - Sets the source reference on Chart Studio Cloud - for `locations`. - show - Determines whether or not slice planes about - the y dimension are drawn. - Returns ------- plotly.graph_objs.isosurface.slices.Y """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # z # - @@ -105,36 +65,15 @@ def z(self): - A dict of string/value properties that will be passed to the Z constructor - Supported dict properties: - - fill - Sets the fill ratio of the `slices`. The - default fill value of the `slices` is 1 meaning - that they are entirely shaded. On the other - hand Applying a `fill` ratio less than one - would allow the creation of openings parallel - to the edges. - locations - Specifies the location(s) of slices on the - axis. When not specified slices would be - created for all points of the axis z except - start and end. - locationssrc - Sets the source reference on Chart Studio Cloud - for `locations`. - show - Determines whether or not slice planes about - the z dimension are drawn. - Returns ------- plotly.graph_objs.isosurface.slices.Z """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # Self properties description # --------------------------- @@ -151,8 +90,13 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.isosurface.slices.Z` instance or dict with compatible properties """ - - def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): + def __init__(self, + arg=None, + x=None, + y=None, + z=None, + **kwargs + ): """ Construct a new Slices object @@ -176,10 +120,10 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Slices """ - super(Slices, self).__init__("slices") + super(Slices, self).__init__('slices') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -191,32 +135,22 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.isosurface.Slices constructor must be a dict or -an instance of :class:`plotly.graph_objs.isosurface.Slices`""" - ) +an instance of :class:`plotly.graph_objs.isosurface.Slices`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) + self._init_provided('z', arg, z) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/_spaceframe.py b/packages/python/plotly/plotly/graph_objs/isosurface/_spaceframe.py index 867a10eba01..63917e8c7f5 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/_spaceframe.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/_spaceframe.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Spaceframe(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "isosurface" - _path_str = "isosurface.spaceframe" + _parent_path_str = 'isosurface' + _path_str = 'isosurface.spaceframe' _valid_props = {"fill", "show"} # fill @@ -28,11 +30,11 @@ def fill(self): ------- int|float """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # show # ---- @@ -50,11 +52,11 @@ def show(self): ------- bool """ - return self["show"] + return self['show'] @show.setter def show(self, val): - self["show"] = val + self['show'] = val # Self properties description # --------------------------- @@ -74,8 +76,12 @@ def _prop_descriptions(self): surfaces are disabled or filled with values less than 1. """ - - def __init__(self, arg=None, fill=None, show=None, **kwargs): + def __init__(self, + arg=None, + fill=None, + show=None, + **kwargs + ): """ Construct a new Spaceframe object @@ -102,10 +108,10 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): ------- Spaceframe """ - super(Spaceframe, self).__init__("spaceframe") + super(Spaceframe, self).__init__('spaceframe') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -117,28 +123,21 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.isosurface.Spaceframe constructor must be a dict or -an instance of :class:`plotly.graph_objs.isosurface.Spaceframe`""" - ) +an instance of :class:`plotly.graph_objs.isosurface.Spaceframe`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("show", None) - _v = show if show is not None else _v - if _v is not None: - self["show"] = _v + self._init_provided('fill', arg, fill) + self._init_provided('show', arg, show) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/_stream.py b/packages/python/plotly/plotly/graph_objs/isosurface/_stream.py index 02fac3ff9db..96390f279bc 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "isosurface" - _path_str = "isosurface.stream" + _parent_path_str = 'isosurface' + _path_str = 'isosurface.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.isosurface.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.isosurface.Stream`""" - ) +an instance of :class:`plotly.graph_objs.isosurface.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/_surface.py b/packages/python/plotly/plotly/graph_objs/isosurface/_surface.py index 7f8de2c6fad..336609cd8a3 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/_surface.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/_surface.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Surface(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "isosurface" - _path_str = "isosurface.surface" + _parent_path_str = 'isosurface' + _path_str = 'isosurface.surface' _valid_props = {"count", "fill", "pattern", "show"} # count @@ -27,11 +29,11 @@ def count(self): ------- int """ - return self["count"] + return self['count'] @count.setter def count(self, val): - self["count"] = val + self['count'] = val # fill # ---- @@ -50,11 +52,11 @@ def fill(self): ------- int|float """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # pattern # ------- @@ -79,11 +81,11 @@ def pattern(self): ------- Any """ - return self["pattern"] + return self['pattern'] @pattern.setter def pattern(self, val): - self["pattern"] = val + self['pattern'] = val # show # ---- @@ -99,11 +101,11 @@ def show(self): ------- bool """ - return self["show"] + return self['show'] @show.setter def show(self, val): - self["show"] = val + self['show'] = val # Self properties description # --------------------------- @@ -134,10 +136,14 @@ def _prop_descriptions(self): Hides/displays surfaces between minimum and maximum iso-values. """ - - def __init__( - self, arg=None, count=None, fill=None, pattern=None, show=None, **kwargs - ): + def __init__(self, + arg=None, + count=None, + fill=None, + pattern=None, + show=None, + **kwargs + ): """ Construct a new Surface object @@ -175,10 +181,10 @@ def __init__( ------- Surface """ - super(Surface, self).__init__("surface") + super(Surface, self).__init__('surface') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -190,36 +196,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.isosurface.Surface constructor must be a dict or -an instance of :class:`plotly.graph_objs.isosurface.Surface`""" - ) +an instance of :class:`plotly.graph_objs.isosurface.Surface`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("count", None) - _v = count if count is not None else _v - if _v is not None: - self["count"] = _v - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("pattern", None) - _v = pattern if pattern is not None else _v - if _v is not None: - self["pattern"] = _v - _v = arg.pop("show", None) - _v = show if show is not None else _v - if _v is not None: - self["show"] = _v + self._init_provided('count', arg, count) + self._init_provided('fill', arg, fill) + self._init_provided('pattern', arg, pattern) + self._init_provided('show', arg, show) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/caps/__init__.py b/packages/python/plotly/plotly/graph_objs/isosurface/caps/__init__.py index b7c57094513..bc24ca0a556 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/caps/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/caps/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._x import X from ._y import Y from ._z import Z else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._x.X", "._y.Y", "._z.Z"] + __name__, + [], + ['._x.X', '._y.Y', '._z.Z'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/caps/_x.py b/packages/python/plotly/plotly/graph_objs/isosurface/caps/_x.py index f1d966f3805..582196a3cf2 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/caps/_x.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/caps/_x.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class X(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "isosurface.caps" - _path_str = "isosurface.caps.x" + _parent_path_str = 'isosurface.caps' + _path_str = 'isosurface.caps.x' _valid_props = {"fill", "show"} # fill @@ -27,11 +29,11 @@ def fill(self): ------- int|float """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # show # ---- @@ -50,11 +52,11 @@ def show(self): ------- bool """ - return self["show"] + return self['show'] @show.setter def show(self, val): - self["show"] = val + self['show'] = val # Self properties description # --------------------------- @@ -74,8 +76,12 @@ def _prop_descriptions(self): ratio less than one would allow the creation of openings parallel to the edges. """ - - def __init__(self, arg=None, fill=None, show=None, **kwargs): + def __init__(self, + arg=None, + fill=None, + show=None, + **kwargs + ): """ Construct a new X object @@ -102,10 +108,10 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): ------- X """ - super(X, self).__init__("x") + super(X, self).__init__('x') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -117,28 +123,21 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.isosurface.caps.X constructor must be a dict or -an instance of :class:`plotly.graph_objs.isosurface.caps.X`""" - ) +an instance of :class:`plotly.graph_objs.isosurface.caps.X`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("show", None) - _v = show if show is not None else _v - if _v is not None: - self["show"] = _v + self._init_provided('fill', arg, fill) + self._init_provided('show', arg, show) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/caps/_y.py b/packages/python/plotly/plotly/graph_objs/isosurface/caps/_y.py index 8e4826bbb54..008ff745617 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/caps/_y.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/caps/_y.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Y(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "isosurface.caps" - _path_str = "isosurface.caps.y" + _parent_path_str = 'isosurface.caps' + _path_str = 'isosurface.caps.y' _valid_props = {"fill", "show"} # fill @@ -27,11 +29,11 @@ def fill(self): ------- int|float """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # show # ---- @@ -50,11 +52,11 @@ def show(self): ------- bool """ - return self["show"] + return self['show'] @show.setter def show(self, val): - self["show"] = val + self['show'] = val # Self properties description # --------------------------- @@ -74,8 +76,12 @@ def _prop_descriptions(self): ratio less than one would allow the creation of openings parallel to the edges. """ - - def __init__(self, arg=None, fill=None, show=None, **kwargs): + def __init__(self, + arg=None, + fill=None, + show=None, + **kwargs + ): """ Construct a new Y object @@ -102,10 +108,10 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): ------- Y """ - super(Y, self).__init__("y") + super(Y, self).__init__('y') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -117,28 +123,21 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.isosurface.caps.Y constructor must be a dict or -an instance of :class:`plotly.graph_objs.isosurface.caps.Y`""" - ) +an instance of :class:`plotly.graph_objs.isosurface.caps.Y`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("show", None) - _v = show if show is not None else _v - if _v is not None: - self["show"] = _v + self._init_provided('fill', arg, fill) + self._init_provided('show', arg, show) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/caps/_z.py b/packages/python/plotly/plotly/graph_objs/isosurface/caps/_z.py index 832186f522f..90488e1529f 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/caps/_z.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/caps/_z.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Z(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "isosurface.caps" - _path_str = "isosurface.caps.z" + _parent_path_str = 'isosurface.caps' + _path_str = 'isosurface.caps.z' _valid_props = {"fill", "show"} # fill @@ -27,11 +29,11 @@ def fill(self): ------- int|float """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # show # ---- @@ -50,11 +52,11 @@ def show(self): ------- bool """ - return self["show"] + return self['show'] @show.setter def show(self, val): - self["show"] = val + self['show'] = val # Self properties description # --------------------------- @@ -74,8 +76,12 @@ def _prop_descriptions(self): ratio less than one would allow the creation of openings parallel to the edges. """ - - def __init__(self, arg=None, fill=None, show=None, **kwargs): + def __init__(self, + arg=None, + fill=None, + show=None, + **kwargs + ): """ Construct a new Z object @@ -102,10 +108,10 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): ------- Z """ - super(Z, self).__init__("z") + super(Z, self).__init__('z') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -117,28 +123,21 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.isosurface.caps.Z constructor must be a dict or -an instance of :class:`plotly.graph_objs.isosurface.caps.Z`""" - ) +an instance of :class:`plotly.graph_objs.isosurface.caps.Z`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("show", None) - _v = show if show is not None else _v - if _v is not None: - self["show"] = _v + self._init_provided('fill', arg, fill) + self._init_provided('show', arg, show) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/_tickfont.py index 1caa4e05f71..5aba0cf0111 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "isosurface.colorbar" - _path_str = "isosurface.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'isosurface.colorbar' + _path_str = 'isosurface.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.isosurface.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.isosurface.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.isosurface.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/_tickformatstop.py index 12c9c0d1a1d..e5580ce9a14 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "isosurface.colorbar" - _path_str = "isosurface.colorbar.tickformatstop" + _parent_path_str = 'isosurface.colorbar' + _path_str = 'isosurface.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.isosurface.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.isosurface.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.isosurface.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/_title.py index d7985da2943..7fa1669e55c 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "isosurface.colorbar" - _path_str = "isosurface.colorbar.title" + _parent_path_str = 'isosurface.colorbar' + _path_str = 'isosurface.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.isosurface.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.isosurface.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.isosurface.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.isosurface.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/title/_font.py index 17b1b32fdd7..7a803495455 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "isosurface.colorbar.title" - _path_str = "isosurface.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'isosurface.colorbar.title' + _path_str = 'isosurface.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.isosurface.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.isosurface.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.isosurface.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/isosurface/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/isosurface/hoverlabel/_font.py index b1fe9aacd3b..a363f9a15a4 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "isosurface.hoverlabel" - _path_str = "isosurface.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'isosurface.hoverlabel' + _path_str = 'isosurface.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.isosurface.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.isosurface.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.isosurface.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/isosurface/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/isosurface/legendgrouptitle/_font.py index b84607e962f..74d4670da86 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "isosurface.legendgrouptitle" - _path_str = "isosurface.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'isosurface.legendgrouptitle' + _path_str = 'isosurface.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.isosurface.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.isosurface.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.isosurface.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/slices/__init__.py b/packages/python/plotly/plotly/graph_objs/isosurface/slices/__init__.py index b7c57094513..bc24ca0a556 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/slices/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/slices/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._x import X from ._y import Y from ._z import Z else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._x.X", "._y.Y", "._z.Z"] + __name__, + [], + ['._x.X', '._y.Y', '._z.Z'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/slices/_x.py b/packages/python/plotly/plotly/graph_objs/isosurface/slices/_x.py index b7efd330fdf..d7ba352dcf0 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/slices/_x.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/slices/_x.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class X(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "isosurface.slices" - _path_str = "isosurface.slices.x" + _parent_path_str = 'isosurface.slices' + _path_str = 'isosurface.slices.x' _valid_props = {"fill", "locations", "locationssrc", "show"} # fill @@ -27,11 +29,11 @@ def fill(self): ------- int|float """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # locations # --------- @@ -49,11 +51,11 @@ def locations(self): ------- numpy.ndarray """ - return self["locations"] + return self['locations'] @locations.setter def locations(self, val): - self["locations"] = val + self['locations'] = val # locationssrc # ------------ @@ -70,11 +72,11 @@ def locationssrc(self): ------- str """ - return self["locationssrc"] + return self['locationssrc'] @locationssrc.setter def locationssrc(self, val): - self["locationssrc"] = val + self['locationssrc'] = val # show # ---- @@ -91,11 +93,11 @@ def show(self): ------- bool """ - return self["show"] + return self['show'] @show.setter def show(self, val): - self["show"] = val + self['show'] = val # Self properties description # --------------------------- @@ -119,16 +121,14 @@ def _prop_descriptions(self): Determines whether or not slice planes about the x dimension are drawn. """ - - def __init__( - self, - arg=None, - fill=None, - locations=None, - locationssrc=None, - show=None, - **kwargs, - ): + def __init__(self, + arg=None, + fill=None, + locations=None, + locationssrc=None, + show=None, + **kwargs + ): """ Construct a new X object @@ -159,10 +159,10 @@ def __init__( ------- X """ - super(X, self).__init__("x") + super(X, self).__init__('x') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -174,36 +174,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.isosurface.slices.X constructor must be a dict or -an instance of :class:`plotly.graph_objs.isosurface.slices.X`""" - ) +an instance of :class:`plotly.graph_objs.isosurface.slices.X`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("locations", None) - _v = locations if locations is not None else _v - if _v is not None: - self["locations"] = _v - _v = arg.pop("locationssrc", None) - _v = locationssrc if locationssrc is not None else _v - if _v is not None: - self["locationssrc"] = _v - _v = arg.pop("show", None) - _v = show if show is not None else _v - if _v is not None: - self["show"] = _v + self._init_provided('fill', arg, fill) + self._init_provided('locations', arg, locations) + self._init_provided('locationssrc', arg, locationssrc) + self._init_provided('show', arg, show) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/slices/_y.py b/packages/python/plotly/plotly/graph_objs/isosurface/slices/_y.py index eb452611665..92faeacbaa3 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/slices/_y.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/slices/_y.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Y(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "isosurface.slices" - _path_str = "isosurface.slices.y" + _parent_path_str = 'isosurface.slices' + _path_str = 'isosurface.slices.y' _valid_props = {"fill", "locations", "locationssrc", "show"} # fill @@ -27,11 +29,11 @@ def fill(self): ------- int|float """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # locations # --------- @@ -49,11 +51,11 @@ def locations(self): ------- numpy.ndarray """ - return self["locations"] + return self['locations'] @locations.setter def locations(self, val): - self["locations"] = val + self['locations'] = val # locationssrc # ------------ @@ -70,11 +72,11 @@ def locationssrc(self): ------- str """ - return self["locationssrc"] + return self['locationssrc'] @locationssrc.setter def locationssrc(self, val): - self["locationssrc"] = val + self['locationssrc'] = val # show # ---- @@ -91,11 +93,11 @@ def show(self): ------- bool """ - return self["show"] + return self['show'] @show.setter def show(self, val): - self["show"] = val + self['show'] = val # Self properties description # --------------------------- @@ -119,16 +121,14 @@ def _prop_descriptions(self): Determines whether or not slice planes about the y dimension are drawn. """ - - def __init__( - self, - arg=None, - fill=None, - locations=None, - locationssrc=None, - show=None, - **kwargs, - ): + def __init__(self, + arg=None, + fill=None, + locations=None, + locationssrc=None, + show=None, + **kwargs + ): """ Construct a new Y object @@ -159,10 +159,10 @@ def __init__( ------- Y """ - super(Y, self).__init__("y") + super(Y, self).__init__('y') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -174,36 +174,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.isosurface.slices.Y constructor must be a dict or -an instance of :class:`plotly.graph_objs.isosurface.slices.Y`""" - ) +an instance of :class:`plotly.graph_objs.isosurface.slices.Y`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("locations", None) - _v = locations if locations is not None else _v - if _v is not None: - self["locations"] = _v - _v = arg.pop("locationssrc", None) - _v = locationssrc if locationssrc is not None else _v - if _v is not None: - self["locationssrc"] = _v - _v = arg.pop("show", None) - _v = show if show is not None else _v - if _v is not None: - self["show"] = _v + self._init_provided('fill', arg, fill) + self._init_provided('locations', arg, locations) + self._init_provided('locationssrc', arg, locationssrc) + self._init_provided('show', arg, show) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/slices/_z.py b/packages/python/plotly/plotly/graph_objs/isosurface/slices/_z.py index b0716f8a9e6..297b26e8e6a 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/slices/_z.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/slices/_z.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Z(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "isosurface.slices" - _path_str = "isosurface.slices.z" + _parent_path_str = 'isosurface.slices' + _path_str = 'isosurface.slices.z' _valid_props = {"fill", "locations", "locationssrc", "show"} # fill @@ -27,11 +29,11 @@ def fill(self): ------- int|float """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # locations # --------- @@ -49,11 +51,11 @@ def locations(self): ------- numpy.ndarray """ - return self["locations"] + return self['locations'] @locations.setter def locations(self, val): - self["locations"] = val + self['locations'] = val # locationssrc # ------------ @@ -70,11 +72,11 @@ def locationssrc(self): ------- str """ - return self["locationssrc"] + return self['locationssrc'] @locationssrc.setter def locationssrc(self, val): - self["locationssrc"] = val + self['locationssrc'] = val # show # ---- @@ -91,11 +93,11 @@ def show(self): ------- bool """ - return self["show"] + return self['show'] @show.setter def show(self, val): - self["show"] = val + self['show'] = val # Self properties description # --------------------------- @@ -119,16 +121,14 @@ def _prop_descriptions(self): Determines whether or not slice planes about the z dimension are drawn. """ - - def __init__( - self, - arg=None, - fill=None, - locations=None, - locationssrc=None, - show=None, - **kwargs, - ): + def __init__(self, + arg=None, + fill=None, + locations=None, + locationssrc=None, + show=None, + **kwargs + ): """ Construct a new Z object @@ -159,10 +159,10 @@ def __init__( ------- Z """ - super(Z, self).__init__("z") + super(Z, self).__init__('z') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -174,36 +174,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.isosurface.slices.Z constructor must be a dict or -an instance of :class:`plotly.graph_objs.isosurface.slices.Z`""" - ) +an instance of :class:`plotly.graph_objs.isosurface.slices.Z`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("locations", None) - _v = locations if locations is not None else _v - if _v is not None: - self["locations"] = _v - _v = arg.pop("locationssrc", None) - _v = locationssrc if locationssrc is not None else _v - if _v is not None: - self["locationssrc"] = _v - _v = arg.pop("show", None) - _v = show if show is not None else _v - if _v is not None: - self["show"] = _v + self._init_provided('fill', arg, fill) + self._init_provided('locations', arg, locations) + self._init_provided('locationssrc', arg, locationssrc) + self._init_provided('show', arg, show) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/__init__.py index 49f512f8e1a..b0c21d5501a 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._activeselection import Activeselection from ._activeshape import Activeshape @@ -57,64 +56,10 @@ from . import yaxis else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [ - ".annotation", - ".coloraxis", - ".geo", - ".grid", - ".hoverlabel", - ".legend", - ".map", - ".mapbox", - ".newselection", - ".newshape", - ".polar", - ".scene", - ".selection", - ".shape", - ".slider", - ".smith", - ".template", - ".ternary", - ".title", - ".updatemenu", - ".xaxis", - ".yaxis", - ], - [ - "._activeselection.Activeselection", - "._activeshape.Activeshape", - "._annotation.Annotation", - "._coloraxis.Coloraxis", - "._colorscale.Colorscale", - "._font.Font", - "._geo.Geo", - "._grid.Grid", - "._hoverlabel.Hoverlabel", - "._image.Image", - "._legend.Legend", - "._map.Map", - "._mapbox.Mapbox", - "._margin.Margin", - "._modebar.Modebar", - "._newselection.Newselection", - "._newshape.Newshape", - "._polar.Polar", - "._scene.Scene", - "._selection.Selection", - "._shape.Shape", - "._slider.Slider", - "._smith.Smith", - "._template.Template", - "._ternary.Ternary", - "._title.Title", - "._transition.Transition", - "._uniformtext.Uniformtext", - "._updatemenu.Updatemenu", - "._xaxis.XAxis", - "._yaxis.YAxis", - ], + ['.annotation', '.coloraxis', '.geo', '.grid', '.hoverlabel', '.legend', '.map', '.mapbox', '.newselection', '.newshape', '.polar', '.scene', '.selection', '.shape', '.slider', '.smith', '.template', '.ternary', '.title', '.updatemenu', '.xaxis', '.yaxis'], + ['._activeselection.Activeselection', '._activeshape.Activeshape', '._annotation.Annotation', '._coloraxis.Coloraxis', '._colorscale.Colorscale', '._font.Font', '._geo.Geo', '._grid.Grid', '._hoverlabel.Hoverlabel', '._image.Image', '._legend.Legend', '._map.Map', '._mapbox.Mapbox', '._margin.Margin', '._modebar.Modebar', '._newselection.Newselection', '._newshape.Newshape', '._polar.Polar', '._scene.Scene', '._selection.Selection', '._shape.Shape', '._slider.Slider', '._smith.Smith', '._template.Template', '._ternary.Ternary', '._title.Title', '._transition.Transition', '._uniformtext.Uniformtext', '._updatemenu.Updatemenu', '._xaxis.XAxis', '._yaxis.YAxis'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/_activeselection.py b/packages/python/plotly/plotly/graph_objs/layout/_activeselection.py index 97b804c061a..1ad73a0c645 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_activeselection.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_activeselection.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Activeselection(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.activeselection" + _parent_path_str = 'layout' + _path_str = 'layout.activeselection' _valid_props = {"fillcolor", "opacity"} # fillcolor @@ -22,52 +24,17 @@ def fillcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["fillcolor"] + return self['fillcolor'] @fillcolor.setter def fillcolor(self, val): - self["fillcolor"] = val + self['fillcolor'] = val # opacity # ------- @@ -83,11 +50,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # Self properties description # --------------------------- @@ -99,8 +66,12 @@ def _prop_descriptions(self): opacity Sets the opacity of the active selection. """ - - def __init__(self, arg=None, fillcolor=None, opacity=None, **kwargs): + def __init__(self, + arg=None, + fillcolor=None, + opacity=None, + **kwargs + ): """ Construct a new Activeselection object @@ -119,10 +90,10 @@ def __init__(self, arg=None, fillcolor=None, opacity=None, **kwargs): ------- Activeselection """ - super(Activeselection, self).__init__("activeselection") + super(Activeselection, self).__init__('activeselection') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -134,28 +105,21 @@ def __init__(self, arg=None, fillcolor=None, opacity=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.Activeselection constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.Activeselection`""" - ) +an instance of :class:`plotly.graph_objs.layout.Activeselection`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("fillcolor", None) - _v = fillcolor if fillcolor is not None else _v - if _v is not None: - self["fillcolor"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v + self._init_provided('fillcolor', arg, fillcolor) + self._init_provided('opacity', arg, opacity) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_activeshape.py b/packages/python/plotly/plotly/graph_objs/layout/_activeshape.py index de5f6c8c5f9..464e2233fef 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_activeshape.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_activeshape.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Activeshape(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.activeshape" + _parent_path_str = 'layout' + _path_str = 'layout.activeshape' _valid_props = {"fillcolor", "opacity"} # fillcolor @@ -22,52 +24,17 @@ def fillcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["fillcolor"] + return self['fillcolor'] @fillcolor.setter def fillcolor(self, val): - self["fillcolor"] = val + self['fillcolor'] = val # opacity # ------- @@ -83,11 +50,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # Self properties description # --------------------------- @@ -99,8 +66,12 @@ def _prop_descriptions(self): opacity Sets the opacity of the active shape. """ - - def __init__(self, arg=None, fillcolor=None, opacity=None, **kwargs): + def __init__(self, + arg=None, + fillcolor=None, + opacity=None, + **kwargs + ): """ Construct a new Activeshape object @@ -119,10 +90,10 @@ def __init__(self, arg=None, fillcolor=None, opacity=None, **kwargs): ------- Activeshape """ - super(Activeshape, self).__init__("activeshape") + super(Activeshape, self).__init__('activeshape') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -134,28 +105,21 @@ def __init__(self, arg=None, fillcolor=None, opacity=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.Activeshape constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.Activeshape`""" - ) +an instance of :class:`plotly.graph_objs.layout.Activeshape`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("fillcolor", None) - _v = fillcolor if fillcolor is not None else _v - if _v is not None: - self["fillcolor"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v + self._init_provided('fillcolor', arg, fillcolor) + self._init_provided('opacity', arg, opacity) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_annotation.py b/packages/python/plotly/plotly/graph_objs/layout/_annotation.py index dc021742cc4..e86912d4708 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_annotation.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_annotation.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,53 +8,9 @@ class Annotation(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.annotation" - _valid_props = { - "align", - "arrowcolor", - "arrowhead", - "arrowside", - "arrowsize", - "arrowwidth", - "ax", - "axref", - "ay", - "ayref", - "bgcolor", - "bordercolor", - "borderpad", - "borderwidth", - "captureevents", - "clicktoshow", - "font", - "height", - "hoverlabel", - "hovertext", - "name", - "opacity", - "showarrow", - "standoff", - "startarrowhead", - "startarrowsize", - "startstandoff", - "templateitemname", - "text", - "textangle", - "valign", - "visible", - "width", - "x", - "xanchor", - "xclick", - "xref", - "xshift", - "y", - "yanchor", - "yclick", - "yref", - "yshift", - } + _parent_path_str = 'layout' + _path_str = 'layout.annotation' + _valid_props = {"align", "arrowcolor", "arrowhead", "arrowside", "arrowsize", "arrowwidth", "ax", "axref", "ay", "ayref", "bgcolor", "bordercolor", "borderpad", "borderwidth", "captureevents", "clicktoshow", "font", "height", "hoverlabel", "hovertext", "name", "opacity", "showarrow", "standoff", "startarrowhead", "startarrowsize", "startstandoff", "templateitemname", "text", "textangle", "valign", "visible", "width", "x", "xanchor", "xclick", "xref", "xshift", "y", "yanchor", "yclick", "yref", "yshift"} # align # ----- @@ -72,11 +30,11 @@ def align(self): ------- Any """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # arrowcolor # ---------- @@ -90,52 +48,17 @@ def arrowcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["arrowcolor"] + return self['arrowcolor'] @arrowcolor.setter def arrowcolor(self, val): - self["arrowcolor"] = val + self['arrowcolor'] = val # arrowhead # --------- @@ -152,11 +75,11 @@ def arrowhead(self): ------- int """ - return self["arrowhead"] + return self['arrowhead'] @arrowhead.setter def arrowhead(self, val): - self["arrowhead"] = val + self['arrowhead'] = val # arrowside # --------- @@ -175,11 +98,11 @@ def arrowside(self): ------- Any """ - return self["arrowside"] + return self['arrowside'] @arrowside.setter def arrowside(self, val): - self["arrowside"] = val + self['arrowside'] = val # arrowsize # --------- @@ -197,11 +120,11 @@ def arrowsize(self): ------- int|float """ - return self["arrowsize"] + return self['arrowsize'] @arrowsize.setter def arrowsize(self, val): - self["arrowsize"] = val + self['arrowsize'] = val # arrowwidth # ---------- @@ -217,11 +140,11 @@ def arrowwidth(self): ------- int|float """ - return self["arrowwidth"] + return self['arrowwidth'] @arrowwidth.setter def arrowwidth(self, val): - self["arrowwidth"] = val + self['arrowwidth'] = val # ax # -- @@ -241,11 +164,11 @@ def ax(self): ------- Any """ - return self["ax"] + return self['ax'] @ax.setter def ax(self, val): - self["ax"] = val + self['ax'] = val # axref # ----- @@ -283,11 +206,11 @@ def axref(self): ------- Any """ - return self["axref"] + return self['axref'] @axref.setter def axref(self, val): - self["axref"] = val + self['axref'] = val # ay # -- @@ -307,11 +230,11 @@ def ay(self): ------- Any """ - return self["ay"] + return self['ay'] @ay.setter def ay(self, val): - self["ay"] = val + self['ay'] = val # ayref # ----- @@ -349,11 +272,11 @@ def ayref(self): ------- Any """ - return self["ayref"] + return self['ayref'] @ayref.setter def ayref(self, val): - self["ayref"] = val + self['ayref'] = val # bgcolor # ------- @@ -367,52 +290,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -426,52 +314,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderpad # --------- @@ -488,11 +341,11 @@ def borderpad(self): ------- int|float """ - return self["borderpad"] + return self['borderpad'] @borderpad.setter def borderpad(self, val): - self["borderpad"] = val + self['borderpad'] = val # borderwidth # ----------- @@ -509,11 +362,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # captureevents # ------------- @@ -534,11 +387,11 @@ def captureevents(self): ------- bool """ - return self["captureevents"] + return self['captureevents'] @captureevents.setter def captureevents(self, val): - self["captureevents"] = val + self['captureevents'] = val # clicktoshow # ----------- @@ -566,11 +419,11 @@ def clicktoshow(self): ------- Any """ - return self["clicktoshow"] + return self['clicktoshow'] @clicktoshow.setter def clicktoshow(self, val): - self["clicktoshow"] = val + self['clicktoshow'] = val # font # ---- @@ -585,61 +438,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.annotation.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # height # ------ @@ -656,11 +463,11 @@ def height(self): ------- int|float """ - return self["height"] + return self['height'] @height.setter def height(self, val): - self["height"] = val + self['height'] = val # hoverlabel # ---------- @@ -673,30 +480,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - bgcolor - Sets the background color of the hover label. - By default uses the annotation's `bgcolor` made - opaque, or white if it was transparent. - bordercolor - Sets the border color of the hover label. By - default uses either dark grey or white, for - maximum contrast with `hoverlabel.bgcolor`. - font - Sets the hover label text font. By default uses - the global hover font and size, with color from - `hoverlabel.bordercolor`. - Returns ------- plotly.graph_objs.layout.annotation.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertext # --------- @@ -714,11 +506,11 @@ def hovertext(self): ------- str """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # name # ---- @@ -741,11 +533,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -761,11 +553,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # showarrow # --------- @@ -783,11 +575,11 @@ def showarrow(self): ------- bool """ - return self["showarrow"] + return self['showarrow'] @showarrow.setter def showarrow(self, val): - self["showarrow"] = val + self['showarrow'] = val # standoff # -------- @@ -807,11 +599,11 @@ def standoff(self): ------- int|float """ - return self["standoff"] + return self['standoff'] @standoff.setter def standoff(self, val): - self["standoff"] = val + self['standoff'] = val # startarrowhead # -------------- @@ -828,11 +620,11 @@ def startarrowhead(self): ------- int """ - return self["startarrowhead"] + return self['startarrowhead'] @startarrowhead.setter def startarrowhead(self, val): - self["startarrowhead"] = val + self['startarrowhead'] = val # startarrowsize # -------------- @@ -850,11 +642,11 @@ def startarrowsize(self): ------- int|float """ - return self["startarrowsize"] + return self['startarrowsize'] @startarrowsize.setter def startarrowsize(self, val): - self["startarrowsize"] = val + self['startarrowsize'] = val # startstandoff # ------------- @@ -874,11 +666,11 @@ def startstandoff(self): ------- int|float """ - return self["startstandoff"] + return self['startstandoff'] @startstandoff.setter def startstandoff(self, val): - self["startstandoff"] = val + self['startstandoff'] = val # templateitemname # ---------------- @@ -902,11 +694,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # text # ---- @@ -926,11 +718,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textangle # --------- @@ -949,11 +741,11 @@ def textangle(self): ------- int|float """ - return self["textangle"] + return self['textangle'] @textangle.setter def textangle(self, val): - self["textangle"] = val + self['textangle'] = val # valign # ------ @@ -972,11 +764,11 @@ def valign(self): ------- Any """ - return self["valign"] + return self['valign'] @valign.setter def valign(self, val): - self["valign"] = val + self['valign'] = val # visible # ------- @@ -992,11 +784,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # width # ----- @@ -1014,11 +806,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # x # - @@ -1039,11 +831,11 @@ def x(self): ------- Any """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1068,11 +860,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xclick # ------ @@ -1088,11 +880,11 @@ def xclick(self): ------- Any """ - return self["xclick"] + return self['xclick'] @xclick.setter def xclick(self, val): - self["xclick"] = val + self['xclick'] = val # xref # ---- @@ -1121,11 +913,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # xshift # ------ @@ -1142,11 +934,11 @@ def xshift(self): ------- int|float """ - return self["xshift"] + return self['xshift'] @xshift.setter def xshift(self, val): - self["xshift"] = val + self['xshift'] = val # y # - @@ -1167,11 +959,11 @@ def y(self): ------- Any """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1196,11 +988,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # yclick # ------ @@ -1216,11 +1008,11 @@ def yclick(self): ------- Any """ - return self["yclick"] + return self['yclick'] @yclick.setter def yclick(self, val): - self["yclick"] = val + self['yclick'] = val # yref # ---- @@ -1249,11 +1041,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # yshift # ------ @@ -1270,11 +1062,11 @@ def yshift(self): ------- int|float """ - return self["yshift"] + return self['yshift'] @yshift.setter def yshift(self, val): - self["yshift"] = val + self['yshift'] = val # Self properties description # --------------------------- @@ -1560,55 +1352,53 @@ def _prop_descriptions(self): Shifts the position of the whole annotation and arrow up (positive) or down (negative) by this many pixels. """ - - def __init__( - self, - arg=None, - align=None, - arrowcolor=None, - arrowhead=None, - arrowside=None, - arrowsize=None, - arrowwidth=None, - ax=None, - axref=None, - ay=None, - ayref=None, - bgcolor=None, - bordercolor=None, - borderpad=None, - borderwidth=None, - captureevents=None, - clicktoshow=None, - font=None, - height=None, - hoverlabel=None, - hovertext=None, - name=None, - opacity=None, - showarrow=None, - standoff=None, - startarrowhead=None, - startarrowsize=None, - startstandoff=None, - templateitemname=None, - text=None, - textangle=None, - valign=None, - visible=None, - width=None, - x=None, - xanchor=None, - xclick=None, - xref=None, - xshift=None, - y=None, - yanchor=None, - yclick=None, - yref=None, - yshift=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + arrowcolor=None, + arrowhead=None, + arrowside=None, + arrowsize=None, + arrowwidth=None, + ax=None, + axref=None, + ay=None, + ayref=None, + bgcolor=None, + bordercolor=None, + borderpad=None, + borderwidth=None, + captureevents=None, + clicktoshow=None, + font=None, + height=None, + hoverlabel=None, + hovertext=None, + name=None, + opacity=None, + showarrow=None, + standoff=None, + startarrowhead=None, + startarrowsize=None, + startstandoff=None, + templateitemname=None, + text=None, + textangle=None, + valign=None, + visible=None, + width=None, + x=None, + xanchor=None, + xclick=None, + xref=None, + xshift=None, + y=None, + yanchor=None, + yclick=None, + yref=None, + yshift=None, + **kwargs + ): """ Construct a new Annotation object @@ -1901,10 +1691,10 @@ def __init__( ------- Annotation """ - super(Annotation, self).__init__("annotations") + super(Annotation, self).__init__('annotations') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1916,192 +1706,62 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.Annotation constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.Annotation`""" - ) +an instance of :class:`plotly.graph_objs.layout.Annotation`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("arrowcolor", None) - _v = arrowcolor if arrowcolor is not None else _v - if _v is not None: - self["arrowcolor"] = _v - _v = arg.pop("arrowhead", None) - _v = arrowhead if arrowhead is not None else _v - if _v is not None: - self["arrowhead"] = _v - _v = arg.pop("arrowside", None) - _v = arrowside if arrowside is not None else _v - if _v is not None: - self["arrowside"] = _v - _v = arg.pop("arrowsize", None) - _v = arrowsize if arrowsize is not None else _v - if _v is not None: - self["arrowsize"] = _v - _v = arg.pop("arrowwidth", None) - _v = arrowwidth if arrowwidth is not None else _v - if _v is not None: - self["arrowwidth"] = _v - _v = arg.pop("ax", None) - _v = ax if ax is not None else _v - if _v is not None: - self["ax"] = _v - _v = arg.pop("axref", None) - _v = axref if axref is not None else _v - if _v is not None: - self["axref"] = _v - _v = arg.pop("ay", None) - _v = ay if ay is not None else _v - if _v is not None: - self["ay"] = _v - _v = arg.pop("ayref", None) - _v = ayref if ayref is not None else _v - if _v is not None: - self["ayref"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderpad", None) - _v = borderpad if borderpad is not None else _v - if _v is not None: - self["borderpad"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("captureevents", None) - _v = captureevents if captureevents is not None else _v - if _v is not None: - self["captureevents"] = _v - _v = arg.pop("clicktoshow", None) - _v = clicktoshow if clicktoshow is not None else _v - if _v is not None: - self["clicktoshow"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("height", None) - _v = height if height is not None else _v - if _v is not None: - self["height"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("showarrow", None) - _v = showarrow if showarrow is not None else _v - if _v is not None: - self["showarrow"] = _v - _v = arg.pop("standoff", None) - _v = standoff if standoff is not None else _v - if _v is not None: - self["standoff"] = _v - _v = arg.pop("startarrowhead", None) - _v = startarrowhead if startarrowhead is not None else _v - if _v is not None: - self["startarrowhead"] = _v - _v = arg.pop("startarrowsize", None) - _v = startarrowsize if startarrowsize is not None else _v - if _v is not None: - self["startarrowsize"] = _v - _v = arg.pop("startstandoff", None) - _v = startstandoff if startstandoff is not None else _v - if _v is not None: - self["startstandoff"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textangle", None) - _v = textangle if textangle is not None else _v - if _v is not None: - self["textangle"] = _v - _v = arg.pop("valign", None) - _v = valign if valign is not None else _v - if _v is not None: - self["valign"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xclick", None) - _v = xclick if xclick is not None else _v - if _v is not None: - self["xclick"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("xshift", None) - _v = xshift if xshift is not None else _v - if _v is not None: - self["xshift"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("yclick", None) - _v = yclick if yclick is not None else _v - if _v is not None: - self["yclick"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v - _v = arg.pop("yshift", None) - _v = yshift if yshift is not None else _v - if _v is not None: - self["yshift"] = _v + self._init_provided('align', arg, align) + self._init_provided('arrowcolor', arg, arrowcolor) + self._init_provided('arrowhead', arg, arrowhead) + self._init_provided('arrowside', arg, arrowside) + self._init_provided('arrowsize', arg, arrowsize) + self._init_provided('arrowwidth', arg, arrowwidth) + self._init_provided('ax', arg, ax) + self._init_provided('axref', arg, axref) + self._init_provided('ay', arg, ay) + self._init_provided('ayref', arg, ayref) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderpad', arg, borderpad) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('captureevents', arg, captureevents) + self._init_provided('clicktoshow', arg, clicktoshow) + self._init_provided('font', arg, font) + self._init_provided('height', arg, height) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('showarrow', arg, showarrow) + self._init_provided('standoff', arg, standoff) + self._init_provided('startarrowhead', arg, startarrowhead) + self._init_provided('startarrowsize', arg, startarrowsize) + self._init_provided('startstandoff', arg, startstandoff) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('text', arg, text) + self._init_provided('textangle', arg, textangle) + self._init_provided('valign', arg, valign) + self._init_provided('visible', arg, visible) + self._init_provided('width', arg, width) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xclick', arg, xclick) + self._init_provided('xref', arg, xref) + self._init_provided('xshift', arg, xshift) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('yclick', arg, yclick) + self._init_provided('yref', arg, yref) + self._init_provided('yshift', arg, yshift) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_coloraxis.py b/packages/python/plotly/plotly/graph_objs/layout/_coloraxis.py index f2f5243b038..12425a435b9 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_coloraxis.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_coloraxis.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Coloraxis(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.coloraxis" - _valid_props = { - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "colorbar", - "colorscale", - "reversescale", - "showscale", - } + _parent_path_str = 'layout' + _path_str = 'layout.coloraxis' + _valid_props = {"autocolorscale", "cauto", "cmax", "cmid", "cmin", "colorbar", "colorscale", "reversescale", "showscale"} # autocolorscale # -------------- @@ -39,11 +31,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -62,11 +54,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -84,11 +76,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -107,11 +99,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -129,11 +121,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # colorbar # -------- @@ -146,282 +138,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.layout. - coloraxis.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.lay - out.coloraxis.colorbar.tickformatstopdefaults), - sets the default property values to use for - elements of - layout.coloraxis.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.layout.coloraxis.c - olorbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.layout.coloraxis.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -470,11 +195,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # reversescale # ------------ @@ -492,11 +217,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # showscale # --------- @@ -513,11 +238,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # Self properties description # --------------------------- @@ -573,21 +298,19 @@ def _prop_descriptions(self): Determines whether or not a colorbar is displayed for this trace. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - colorbar=None, - colorscale=None, - reversescale=None, - showscale=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + colorbar=None, + colorscale=None, + reversescale=None, + showscale=None, + **kwargs + ): """ Construct a new Coloraxis object @@ -650,10 +373,10 @@ def __init__( ------- Coloraxis """ - super(Coloraxis, self).__init__("coloraxis") + super(Coloraxis, self).__init__('coloraxis') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -665,56 +388,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.Coloraxis constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.Coloraxis`""" - ) +an instance of :class:`plotly.graph_objs.layout.Coloraxis`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('showscale', arg, showscale) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_colorscale.py b/packages/python/plotly/plotly/graph_objs/layout/_colorscale.py index d63cafaf8b1..47adc511dba 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_colorscale.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_colorscale.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Colorscale(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.colorscale" + _parent_path_str = 'layout' + _path_str = 'layout.colorscale' _valid_props = {"diverging", "sequential", "sequentialminus"} # diverging @@ -49,11 +51,11 @@ def diverging(self): ------- str """ - return self["diverging"] + return self['diverging'] @diverging.setter def diverging(self, val): - self["diverging"] = val + self['diverging'] = val # sequential # ---------- @@ -95,11 +97,11 @@ def sequential(self): ------- str """ - return self["sequential"] + return self['sequential'] @sequential.setter def sequential(self, val): - self["sequential"] = val + self['sequential'] = val # sequentialminus # --------------- @@ -141,11 +143,11 @@ def sequentialminus(self): ------- str """ - return self["sequentialminus"] + return self['sequentialminus'] @sequentialminus.setter def sequentialminus(self, val): - self["sequentialminus"] = val + self['sequentialminus'] = val # Self properties description # --------------------------- @@ -165,10 +167,13 @@ def _prop_descriptions(self): values. Note that `autocolorscale` must be true for this attribute to work. """ - - def __init__( - self, arg=None, diverging=None, sequential=None, sequentialminus=None, **kwargs - ): + def __init__(self, + arg=None, + diverging=None, + sequential=None, + sequentialminus=None, + **kwargs + ): """ Construct a new Colorscale object @@ -195,10 +200,10 @@ def __init__( ------- Colorscale """ - super(Colorscale, self).__init__("colorscale") + super(Colorscale, self).__init__('colorscale') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -210,32 +215,22 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.Colorscale constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.Colorscale`""" - ) +an instance of :class:`plotly.graph_objs.layout.Colorscale`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("diverging", None) - _v = diverging if diverging is not None else _v - if _v is not None: - self["diverging"] = _v - _v = arg.pop("sequential", None) - _v = sequential if sequential is not None else _v - if _v is not None: - self["sequential"] = _v - _v = arg.pop("sequentialminus", None) - _v = sequentialminus if sequentialminus is not None else _v - if _v is not None: - self["sequentialminus"] = _v + self._init_provided('diverging', arg, diverging) + self._init_provided('sequential', arg, sequential) + self._init_provided('sequentialminus', arg, sequentialminus) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_font.py b/packages/python/plotly/plotly/graph_objs/layout/_font.py index 2f24c33b388..c60ddaa50db 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_font.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout' + _path_str = 'layout.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.Font`""" - ) +an instance of :class:`plotly.graph_objs.layout.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_geo.py b/packages/python/plotly/plotly/graph_objs/layout/_geo.py index 9274b134d01..f8e87ba1098 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_geo.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_geo.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,42 +8,9 @@ class Geo(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.geo" - _valid_props = { - "bgcolor", - "center", - "coastlinecolor", - "coastlinewidth", - "countrycolor", - "countrywidth", - "domain", - "fitbounds", - "framecolor", - "framewidth", - "lakecolor", - "landcolor", - "lataxis", - "lonaxis", - "oceancolor", - "projection", - "resolution", - "rivercolor", - "riverwidth", - "scope", - "showcoastlines", - "showcountries", - "showframe", - "showlakes", - "showland", - "showocean", - "showrivers", - "showsubunits", - "subunitcolor", - "subunitwidth", - "uirevision", - "visible", - } + _parent_path_str = 'layout' + _path_str = 'layout.geo' + _valid_props = {"bgcolor", "center", "coastlinecolor", "coastlinewidth", "countrycolor", "countrywidth", "domain", "fitbounds", "framecolor", "framewidth", "lakecolor", "landcolor", "lataxis", "lonaxis", "oceancolor", "projection", "resolution", "rivercolor", "riverwidth", "scope", "showcoastlines", "showcountries", "showframe", "showlakes", "showland", "showocean", "showrivers", "showsubunits", "subunitcolor", "subunitwidth", "uirevision", "visible"} # bgcolor # ------- @@ -55,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # center # ------ @@ -113,29 +47,15 @@ def center(self): - A dict of string/value properties that will be passed to the Center constructor - Supported dict properties: - - 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. - Returns ------- plotly.graph_objs.layout.geo.Center """ - return self["center"] + return self['center'] @center.setter def center(self, val): - self["center"] = val + self['center'] = val # coastlinecolor # -------------- @@ -149,52 +69,17 @@ def coastlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["coastlinecolor"] + return self['coastlinecolor'] @coastlinecolor.setter def coastlinecolor(self, val): - self["coastlinecolor"] = val + self['coastlinecolor'] = val # coastlinewidth # -------------- @@ -210,11 +95,11 @@ def coastlinewidth(self): ------- int|float """ - return self["coastlinewidth"] + return self['coastlinewidth'] @coastlinewidth.setter def coastlinewidth(self, val): - self["coastlinewidth"] = val + self['coastlinewidth'] = val # countrycolor # ------------ @@ -228,52 +113,17 @@ def countrycolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["countrycolor"] + return self['countrycolor'] @countrycolor.setter def countrycolor(self, val): - self["countrycolor"] = val + self['countrycolor'] = val # countrywidth # ------------ @@ -289,11 +139,11 @@ def countrywidth(self): ------- int|float """ - return self["countrywidth"] + return self['countrywidth'] @countrywidth.setter def countrywidth(self, val): - self["countrywidth"] = val + self['countrywidth'] = val # domain # ------ @@ -306,44 +156,15 @@ def domain(self): - A dict of string/value properties that will be passed to the Domain constructor - Supported dict properties: - - 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. - Returns ------- plotly.graph_objs.layout.geo.Domain """ - return self["domain"] + return self['domain'] @domain.setter def domain(self, val): - self["domain"] = val + self['domain'] = val # fitbounds # --------- @@ -372,11 +193,11 @@ def fitbounds(self): ------- Any """ - return self["fitbounds"] + return self['fitbounds'] @fitbounds.setter def fitbounds(self, val): - self["fitbounds"] = val + self['fitbounds'] = val # framecolor # ---------- @@ -390,52 +211,17 @@ def framecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["framecolor"] + return self['framecolor'] @framecolor.setter def framecolor(self, val): - self["framecolor"] = val + self['framecolor'] = val # framewidth # ---------- @@ -451,11 +237,11 @@ def framewidth(self): ------- int|float """ - return self["framewidth"] + return self['framewidth'] @framewidth.setter def framewidth(self, val): - self["framewidth"] = val + self['framewidth'] = val # lakecolor # --------- @@ -469,52 +255,17 @@ def lakecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["lakecolor"] + return self['lakecolor'] @lakecolor.setter def lakecolor(self, val): - self["lakecolor"] = val + self['lakecolor'] = val # landcolor # --------- @@ -528,52 +279,17 @@ def landcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["landcolor"] + return self['landcolor'] @landcolor.setter def landcolor(self, val): - self["landcolor"] = val + self['landcolor'] = val # lataxis # ------- @@ -586,39 +302,15 @@ def lataxis(self): - A dict of string/value properties that will be passed to the Lataxis constructor - Supported dict properties: - - 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. - Returns ------- plotly.graph_objs.layout.geo.Lataxis """ - return self["lataxis"] + return self['lataxis'] @lataxis.setter def lataxis(self, val): - self["lataxis"] = val + self['lataxis'] = val # lonaxis # ------- @@ -631,39 +323,15 @@ def lonaxis(self): - A dict of string/value properties that will be passed to the Lonaxis constructor - Supported dict properties: - - 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. - Returns ------- plotly.graph_objs.layout.geo.Lonaxis """ - return self["lonaxis"] + return self['lonaxis'] @lonaxis.setter def lonaxis(self, val): - self["lonaxis"] = val + self['lonaxis'] = val # oceancolor # ---------- @@ -677,52 +345,17 @@ def oceancolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["oceancolor"] + return self['oceancolor'] @oceancolor.setter def oceancolor(self, val): - self["oceancolor"] = val + self['oceancolor'] = val # projection # ---------- @@ -735,40 +368,15 @@ def projection(self): - A dict of string/value properties that will be passed to the Projection constructor - Supported dict properties: - - 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 sphere’s - 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. - Returns ------- plotly.graph_objs.layout.geo.Projection """ - return self["projection"] + return self['projection'] @projection.setter def projection(self, val): - self["projection"] = val + self['projection'] = val # resolution # ---------- @@ -787,11 +395,11 @@ def resolution(self): ------- Any """ - return self["resolution"] + return self['resolution'] @resolution.setter def resolution(self, val): - self["resolution"] = val + self['resolution'] = val # rivercolor # ---------- @@ -805,52 +413,17 @@ def rivercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["rivercolor"] + return self['rivercolor'] @rivercolor.setter def rivercolor(self, val): - self["rivercolor"] = val + self['rivercolor'] = val # riverwidth # ---------- @@ -866,11 +439,11 @@ def riverwidth(self): ------- int|float """ - return self["riverwidth"] + return self['riverwidth'] @riverwidth.setter def riverwidth(self, val): - self["riverwidth"] = val + self['riverwidth'] = val # scope # ----- @@ -888,11 +461,11 @@ def scope(self): ------- Any """ - return self["scope"] + return self['scope'] @scope.setter def scope(self, val): - self["scope"] = val + self['scope'] = val # showcoastlines # -------------- @@ -908,11 +481,11 @@ def showcoastlines(self): ------- bool """ - return self["showcoastlines"] + return self['showcoastlines'] @showcoastlines.setter def showcoastlines(self, val): - self["showcoastlines"] = val + self['showcoastlines'] = val # showcountries # ------------- @@ -928,11 +501,11 @@ def showcountries(self): ------- bool """ - return self["showcountries"] + return self['showcountries'] @showcountries.setter def showcountries(self, val): - self["showcountries"] = val + self['showcountries'] = val # showframe # --------- @@ -948,11 +521,11 @@ def showframe(self): ------- bool """ - return self["showframe"] + return self['showframe'] @showframe.setter def showframe(self, val): - self["showframe"] = val + self['showframe'] = val # showlakes # --------- @@ -968,11 +541,11 @@ def showlakes(self): ------- bool """ - return self["showlakes"] + return self['showlakes'] @showlakes.setter def showlakes(self, val): - self["showlakes"] = val + self['showlakes'] = val # showland # -------- @@ -988,11 +561,11 @@ def showland(self): ------- bool """ - return self["showland"] + return self['showland'] @showland.setter def showland(self, val): - self["showland"] = val + self['showland'] = val # showocean # --------- @@ -1008,11 +581,11 @@ def showocean(self): ------- bool """ - return self["showocean"] + return self['showocean'] @showocean.setter def showocean(self, val): - self["showocean"] = val + self['showocean'] = val # showrivers # ---------- @@ -1028,11 +601,11 @@ def showrivers(self): ------- bool """ - return self["showrivers"] + return self['showrivers'] @showrivers.setter def showrivers(self, val): - self["showrivers"] = val + self['showrivers'] = val # showsubunits # ------------ @@ -1049,11 +622,11 @@ def showsubunits(self): ------- bool """ - return self["showsubunits"] + return self['showsubunits'] @showsubunits.setter def showsubunits(self, val): - self["showsubunits"] = val + self['showsubunits'] = val # subunitcolor # ------------ @@ -1067,52 +640,17 @@ def subunitcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["subunitcolor"] + return self['subunitcolor'] @subunitcolor.setter def subunitcolor(self, val): - self["subunitcolor"] = val + self['subunitcolor'] = val # subunitwidth # ------------ @@ -1128,11 +666,11 @@ def subunitwidth(self): ------- int|float """ - return self["subunitwidth"] + return self['subunitwidth'] @subunitwidth.setter def subunitwidth(self, val): - self["subunitwidth"] = val + self['subunitwidth'] = val # uirevision # ---------- @@ -1148,11 +686,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # visible # ------- @@ -1168,11 +706,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # Self properties description # --------------------------- @@ -1269,44 +807,42 @@ def _prop_descriptions(self): visible Sets the default visibility of the base layers. """ - - def __init__( - self, - arg=None, - bgcolor=None, - center=None, - coastlinecolor=None, - coastlinewidth=None, - countrycolor=None, - countrywidth=None, - domain=None, - fitbounds=None, - framecolor=None, - framewidth=None, - lakecolor=None, - landcolor=None, - lataxis=None, - lonaxis=None, - oceancolor=None, - projection=None, - resolution=None, - rivercolor=None, - riverwidth=None, - scope=None, - showcoastlines=None, - showcountries=None, - showframe=None, - showlakes=None, - showland=None, - showocean=None, - showrivers=None, - showsubunits=None, - subunitcolor=None, - subunitwidth=None, - uirevision=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + center=None, + coastlinecolor=None, + coastlinewidth=None, + countrycolor=None, + countrywidth=None, + domain=None, + fitbounds=None, + framecolor=None, + framewidth=None, + lakecolor=None, + landcolor=None, + lataxis=None, + lonaxis=None, + oceancolor=None, + projection=None, + resolution=None, + rivercolor=None, + riverwidth=None, + scope=None, + showcoastlines=None, + showcountries=None, + showframe=None, + showlakes=None, + showland=None, + showocean=None, + showrivers=None, + showsubunits=None, + subunitcolor=None, + subunitwidth=None, + uirevision=None, + visible=None, + **kwargs + ): """ Construct a new Geo object @@ -1409,10 +945,10 @@ def __init__( ------- Geo """ - super(Geo, self).__init__("geo") + super(Geo, self).__init__('geo') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1424,148 +960,51 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.Geo constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.Geo`""" - ) +an instance of :class:`plotly.graph_objs.layout.Geo`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("center", None) - _v = center if center is not None else _v - if _v is not None: - self["center"] = _v - _v = arg.pop("coastlinecolor", None) - _v = coastlinecolor if coastlinecolor is not None else _v - if _v is not None: - self["coastlinecolor"] = _v - _v = arg.pop("coastlinewidth", None) - _v = coastlinewidth if coastlinewidth is not None else _v - if _v is not None: - self["coastlinewidth"] = _v - _v = arg.pop("countrycolor", None) - _v = countrycolor if countrycolor is not None else _v - if _v is not None: - self["countrycolor"] = _v - _v = arg.pop("countrywidth", None) - _v = countrywidth if countrywidth is not None else _v - if _v is not None: - self["countrywidth"] = _v - _v = arg.pop("domain", None) - _v = domain if domain is not None else _v - if _v is not None: - self["domain"] = _v - _v = arg.pop("fitbounds", None) - _v = fitbounds if fitbounds is not None else _v - if _v is not None: - self["fitbounds"] = _v - _v = arg.pop("framecolor", None) - _v = framecolor if framecolor is not None else _v - if _v is not None: - self["framecolor"] = _v - _v = arg.pop("framewidth", None) - _v = framewidth if framewidth is not None else _v - if _v is not None: - self["framewidth"] = _v - _v = arg.pop("lakecolor", None) - _v = lakecolor if lakecolor is not None else _v - if _v is not None: - self["lakecolor"] = _v - _v = arg.pop("landcolor", None) - _v = landcolor if landcolor is not None else _v - if _v is not None: - self["landcolor"] = _v - _v = arg.pop("lataxis", None) - _v = lataxis if lataxis is not None else _v - if _v is not None: - self["lataxis"] = _v - _v = arg.pop("lonaxis", None) - _v = lonaxis if lonaxis is not None else _v - if _v is not None: - self["lonaxis"] = _v - _v = arg.pop("oceancolor", None) - _v = oceancolor if oceancolor is not None else _v - if _v is not None: - self["oceancolor"] = _v - _v = arg.pop("projection", None) - _v = projection if projection is not None else _v - if _v is not None: - self["projection"] = _v - _v = arg.pop("resolution", None) - _v = resolution if resolution is not None else _v - if _v is not None: - self["resolution"] = _v - _v = arg.pop("rivercolor", None) - _v = rivercolor if rivercolor is not None else _v - if _v is not None: - self["rivercolor"] = _v - _v = arg.pop("riverwidth", None) - _v = riverwidth if riverwidth is not None else _v - if _v is not None: - self["riverwidth"] = _v - _v = arg.pop("scope", None) - _v = scope if scope is not None else _v - if _v is not None: - self["scope"] = _v - _v = arg.pop("showcoastlines", None) - _v = showcoastlines if showcoastlines is not None else _v - if _v is not None: - self["showcoastlines"] = _v - _v = arg.pop("showcountries", None) - _v = showcountries if showcountries is not None else _v - if _v is not None: - self["showcountries"] = _v - _v = arg.pop("showframe", None) - _v = showframe if showframe is not None else _v - if _v is not None: - self["showframe"] = _v - _v = arg.pop("showlakes", None) - _v = showlakes if showlakes is not None else _v - if _v is not None: - self["showlakes"] = _v - _v = arg.pop("showland", None) - _v = showland if showland is not None else _v - if _v is not None: - self["showland"] = _v - _v = arg.pop("showocean", None) - _v = showocean if showocean is not None else _v - if _v is not None: - self["showocean"] = _v - _v = arg.pop("showrivers", None) - _v = showrivers if showrivers is not None else _v - if _v is not None: - self["showrivers"] = _v - _v = arg.pop("showsubunits", None) - _v = showsubunits if showsubunits is not None else _v - if _v is not None: - self["showsubunits"] = _v - _v = arg.pop("subunitcolor", None) - _v = subunitcolor if subunitcolor is not None else _v - if _v is not None: - self["subunitcolor"] = _v - _v = arg.pop("subunitwidth", None) - _v = subunitwidth if subunitwidth is not None else _v - if _v is not None: - self["subunitwidth"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('center', arg, center) + self._init_provided('coastlinecolor', arg, coastlinecolor) + self._init_provided('coastlinewidth', arg, coastlinewidth) + self._init_provided('countrycolor', arg, countrycolor) + self._init_provided('countrywidth', arg, countrywidth) + self._init_provided('domain', arg, domain) + self._init_provided('fitbounds', arg, fitbounds) + self._init_provided('framecolor', arg, framecolor) + self._init_provided('framewidth', arg, framewidth) + self._init_provided('lakecolor', arg, lakecolor) + self._init_provided('landcolor', arg, landcolor) + self._init_provided('lataxis', arg, lataxis) + self._init_provided('lonaxis', arg, lonaxis) + self._init_provided('oceancolor', arg, oceancolor) + self._init_provided('projection', arg, projection) + self._init_provided('resolution', arg, resolution) + self._init_provided('rivercolor', arg, rivercolor) + self._init_provided('riverwidth', arg, riverwidth) + self._init_provided('scope', arg, scope) + self._init_provided('showcoastlines', arg, showcoastlines) + self._init_provided('showcountries', arg, showcountries) + self._init_provided('showframe', arg, showframe) + self._init_provided('showlakes', arg, showlakes) + self._init_provided('showland', arg, showland) + self._init_provided('showocean', arg, showocean) + self._init_provided('showrivers', arg, showrivers) + self._init_provided('showsubunits', arg, showsubunits) + self._init_provided('subunitcolor', arg, subunitcolor) + self._init_provided('subunitwidth', arg, subunitwidth) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('visible', arg, visible) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_grid.py b/packages/python/plotly/plotly/graph_objs/layout/_grid.py index cd8ee19f6f4..cd99a327607 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_grid.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_grid.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,22 +8,9 @@ class Grid(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.grid" - _valid_props = { - "columns", - "domain", - "pattern", - "roworder", - "rows", - "subplots", - "xaxes", - "xgap", - "xside", - "yaxes", - "ygap", - "yside", - } + _parent_path_str = 'layout' + _path_str = 'layout.grid' + _valid_props = {"columns", "domain", "pattern", "roworder", "rows", "subplots", "xaxes", "xgap", "xside", "yaxes", "ygap", "yside"} # columns # ------- @@ -43,11 +32,11 @@ def columns(self): ------- int """ - return self["columns"] + return self['columns'] @columns.setter def columns(self, val): - self["columns"] = val + self['columns'] = val # domain # ------ @@ -60,28 +49,15 @@ def domain(self): - A dict of string/value properties that will be passed to the Domain constructor - Supported dict properties: - - x - Sets the horizontal domain of this grid subplot - (in plot fraction). The first and last cells - end exactly at the domain edges, with no grout - around the edges. - y - Sets the vertical domain of this grid subplot - (in plot fraction). The first and last cells - end exactly at the domain edges, with no grout - around the edges. - Returns ------- plotly.graph_objs.layout.grid.Domain """ - return self["domain"] + return self['domain'] @domain.setter def domain(self, val): - self["domain"] = val + self['domain'] = val # pattern # ------- @@ -103,11 +79,11 @@ def pattern(self): ------- Any """ - return self["pattern"] + return self['pattern'] @pattern.setter def pattern(self, val): - self["pattern"] = val + self['pattern'] = val # roworder # -------- @@ -125,11 +101,11 @@ def roworder(self): ------- Any """ - return self["roworder"] + return self['roworder'] @roworder.setter def roworder(self, val): - self["roworder"] = val + self['roworder'] = val # rows # ---- @@ -149,11 +125,11 @@ def rows(self): ------- int """ - return self["rows"] + return self['rows'] @rows.setter def rows(self, val): - self["rows"] = val + self['rows'] = val # subplots # -------- @@ -180,11 +156,11 @@ def subplots(self): ------- list """ - return self["subplots"] + return self['subplots'] @subplots.setter def subplots(self, val): - self["subplots"] = val + self['subplots'] = val # xaxes # ----- @@ -210,11 +186,11 @@ def xaxes(self): ------- list """ - return self["xaxes"] + return self['xaxes'] @xaxes.setter def xaxes(self, val): - self["xaxes"] = val + self['xaxes'] = val # xgap # ---- @@ -232,11 +208,11 @@ def xgap(self): ------- int|float """ - return self["xgap"] + return self['xgap'] @xgap.setter def xgap(self, val): - self["xgap"] = val + self['xgap'] = val # xside # ----- @@ -255,11 +231,11 @@ def xside(self): ------- Any """ - return self["xside"] + return self['xside'] @xside.setter def xside(self, val): - self["xside"] = val + self['xside'] = val # yaxes # ----- @@ -285,11 +261,11 @@ def yaxes(self): ------- list """ - return self["yaxes"] + return self['yaxes'] @yaxes.setter def yaxes(self, val): - self["yaxes"] = val + self['yaxes'] = val # ygap # ---- @@ -307,11 +283,11 @@ def ygap(self): ------- int|float """ - return self["ygap"] + return self['ygap'] @ygap.setter def ygap(self, val): - self["ygap"] = val + self['ygap'] = val # yside # ----- @@ -331,11 +307,11 @@ def yside(self): ------- Any """ - return self["yside"] + return self['yside'] @yside.setter def yside(self, val): - self["yside"] = val + self['yside'] = val # Self properties description # --------------------------- @@ -413,24 +389,22 @@ def _prop_descriptions(self): the leftmost plot that each y axis is used in. "right" and *right plot* are similar. """ - - def __init__( - self, - arg=None, - columns=None, - domain=None, - pattern=None, - roworder=None, - rows=None, - subplots=None, - xaxes=None, - xgap=None, - xside=None, - yaxes=None, - ygap=None, - yside=None, - **kwargs, - ): + def __init__(self, + arg=None, + columns=None, + domain=None, + pattern=None, + roworder=None, + rows=None, + subplots=None, + xaxes=None, + xgap=None, + xside=None, + yaxes=None, + ygap=None, + yside=None, + **kwargs + ): """ Construct a new Grid object @@ -514,10 +488,10 @@ def __init__( ------- Grid """ - super(Grid, self).__init__("grid") + super(Grid, self).__init__('grid') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -529,68 +503,31 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.Grid constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.Grid`""" - ) +an instance of :class:`plotly.graph_objs.layout.Grid`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("columns", None) - _v = columns if columns is not None else _v - if _v is not None: - self["columns"] = _v - _v = arg.pop("domain", None) - _v = domain if domain is not None else _v - if _v is not None: - self["domain"] = _v - _v = arg.pop("pattern", None) - _v = pattern if pattern is not None else _v - if _v is not None: - self["pattern"] = _v - _v = arg.pop("roworder", None) - _v = roworder if roworder is not None else _v - if _v is not None: - self["roworder"] = _v - _v = arg.pop("rows", None) - _v = rows if rows is not None else _v - if _v is not None: - self["rows"] = _v - _v = arg.pop("subplots", None) - _v = subplots if subplots is not None else _v - if _v is not None: - self["subplots"] = _v - _v = arg.pop("xaxes", None) - _v = xaxes if xaxes is not None else _v - if _v is not None: - self["xaxes"] = _v - _v = arg.pop("xgap", None) - _v = xgap if xgap is not None else _v - if _v is not None: - self["xgap"] = _v - _v = arg.pop("xside", None) - _v = xside if xside is not None else _v - if _v is not None: - self["xside"] = _v - _v = arg.pop("yaxes", None) - _v = yaxes if yaxes is not None else _v - if _v is not None: - self["yaxes"] = _v - _v = arg.pop("ygap", None) - _v = ygap if ygap is not None else _v - if _v is not None: - self["ygap"] = _v - _v = arg.pop("yside", None) - _v = yside if yside is not None else _v - if _v is not None: - self["yside"] = _v + self._init_provided('columns', arg, columns) + self._init_provided('domain', arg, domain) + self._init_provided('pattern', arg, pattern) + self._init_provided('roworder', arg, roworder) + self._init_provided('rows', arg, rows) + self._init_provided('subplots', arg, subplots) + self._init_provided('xaxes', arg, xaxes) + self._init_provided('xgap', arg, xgap) + self._init_provided('xside', arg, xside) + self._init_provided('yaxes', arg, yaxes) + self._init_provided('ygap', arg, ygap) + self._init_provided('yside', arg, yside) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/layout/_hoverlabel.py index 71b5ecdbdd3..eecb623ebfc 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,16 +8,9 @@ class Hoverlabel(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.hoverlabel" - _valid_props = { - "align", - "bgcolor", - "bordercolor", - "font", - "grouptitlefont", - "namelength", - } + _parent_path_str = 'layout' + _path_str = 'layout.hoverlabel' + _valid_props = {"align", "bgcolor", "bordercolor", "font", "grouptitlefont", "namelength"} # align # ----- @@ -34,11 +29,11 @@ def align(self): ------- Any """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # bgcolor # ------- @@ -52,52 +47,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -111,52 +71,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # font # ---- @@ -172,61 +97,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # grouptitlefont # -------------- @@ -242,61 +121,15 @@ def grouptitlefont(self): - A dict of string/value properties that will be passed to the Grouptitlefont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.hoverlabel.Grouptitlefont """ - return self["grouptitlefont"] + return self['grouptitlefont'] @grouptitlefont.setter def grouptitlefont(self, val): - self["grouptitlefont"] = val + self['grouptitlefont'] = val # namelength # ---------- @@ -318,11 +151,11 @@ def namelength(self): ------- int """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # Self properties description # --------------------------- @@ -352,18 +185,16 @@ def _prop_descriptions(self): but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. """ - - def __init__( - self, - arg=None, - align=None, - bgcolor=None, - bordercolor=None, - font=None, - grouptitlefont=None, - namelength=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + bgcolor=None, + bordercolor=None, + font=None, + grouptitlefont=None, + namelength=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -400,10 +231,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -415,44 +246,25 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.layout.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("grouptitlefont", None) - _v = grouptitlefont if grouptitlefont is not None else _v - if _v is not None: - self["grouptitlefont"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v + self._init_provided('align', arg, align) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('font', arg, font) + self._init_provided('grouptitlefont', arg, grouptitlefont) + self._init_provided('namelength', arg, namelength) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_image.py b/packages/python/plotly/plotly/graph_objs/layout/_image.py index af2a8257bd4..4a1f3c3f5fd 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_image.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_image.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,25 +8,9 @@ class Image(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.image" - _valid_props = { - "layer", - "name", - "opacity", - "sizex", - "sizey", - "sizing", - "source", - "templateitemname", - "visible", - "x", - "xanchor", - "xref", - "y", - "yanchor", - "yref", - } + _parent_path_str = 'layout' + _path_str = 'layout.image' + _valid_props = {"layer", "name", "opacity", "sizex", "sizey", "sizing", "source", "templateitemname", "visible", "x", "xanchor", "xref", "y", "yanchor", "yref"} # layer # ----- @@ -43,11 +29,11 @@ def layer(self): ------- Any """ - return self["layer"] + return self['layer'] @layer.setter def layer(self, val): - self["layer"] = val + self['layer'] = val # name # ---- @@ -70,11 +56,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -90,11 +76,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # sizex # ----- @@ -114,11 +100,11 @@ def sizex(self): ------- int|float """ - return self["sizex"] + return self['sizex'] @sizex.setter def sizex(self, val): - self["sizex"] = val + self['sizex'] = val # sizey # ----- @@ -138,11 +124,11 @@ def sizey(self): ------- int|float """ - return self["sizey"] + return self['sizey'] @sizey.setter def sizey(self, val): - self["sizey"] = val + self['sizey'] = val # sizing # ------ @@ -159,11 +145,11 @@ def sizing(self): ------- Any """ - return self["sizing"] + return self['sizing'] @sizing.setter def sizing(self, val): - self["sizing"] = val + self['sizing'] = val # source # ------ @@ -187,11 +173,11 @@ def source(self): ------- str """ - return self["source"] + return self['source'] @source.setter def source(self, val): - self["source"] = val + self['source'] = val # templateitemname # ---------------- @@ -215,11 +201,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # visible # ------- @@ -235,11 +221,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # x # - @@ -256,11 +242,11 @@ def x(self): ------- Any """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -277,11 +263,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xref # ---- @@ -310,11 +296,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -331,11 +317,11 @@ def y(self): ------- Any """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -352,11 +338,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # yref # ---- @@ -385,11 +371,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -482,27 +468,25 @@ def _prop_descriptions(self): refers to the point between the bottom and the top of the domain of the second y axis. """ - - def __init__( - self, - arg=None, - layer=None, - name=None, - opacity=None, - sizex=None, - sizey=None, - sizing=None, - source=None, - templateitemname=None, - visible=None, - x=None, - xanchor=None, - xref=None, - y=None, - yanchor=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + layer=None, + name=None, + opacity=None, + sizex=None, + sizey=None, + sizing=None, + source=None, + templateitemname=None, + visible=None, + x=None, + xanchor=None, + xref=None, + y=None, + yanchor=None, + yref=None, + **kwargs + ): """ Construct a new Image object @@ -601,10 +585,10 @@ def __init__( ------- Image """ - super(Image, self).__init__("images") + super(Image, self).__init__('images') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -616,80 +600,34 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.Image constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.Image`""" - ) +an instance of :class:`plotly.graph_objs.layout.Image`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("layer", None) - _v = layer if layer is not None else _v - if _v is not None: - self["layer"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("sizex", None) - _v = sizex if sizex is not None else _v - if _v is not None: - self["sizex"] = _v - _v = arg.pop("sizey", None) - _v = sizey if sizey is not None else _v - if _v is not None: - self["sizey"] = _v - _v = arg.pop("sizing", None) - _v = sizing if sizing is not None else _v - if _v is not None: - self["sizing"] = _v - _v = arg.pop("source", None) - _v = source if source is not None else _v - if _v is not None: - self["source"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('layer', arg, layer) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('sizex', arg, sizex) + self._init_provided('sizey', arg, sizey) + self._init_provided('sizing', arg, sizing) + self._init_provided('source', arg, source) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('visible', arg, visible) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_legend.py b/packages/python/plotly/plotly/graph_objs/layout/_legend.py index a5855085098..34c609f29a8 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_legend.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_legend.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,36 +8,9 @@ class Legend(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.legend" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "entrywidth", - "entrywidthmode", - "font", - "groupclick", - "grouptitlefont", - "indentation", - "itemclick", - "itemdoubleclick", - "itemsizing", - "itemwidth", - "orientation", - "title", - "tracegroupgap", - "traceorder", - "uirevision", - "valign", - "visible", - "x", - "xanchor", - "xref", - "y", - "yanchor", - "yref", - } + _parent_path_str = 'layout' + _path_str = 'layout.legend' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "entrywidth", "entrywidthmode", "font", "groupclick", "grouptitlefont", "indentation", "itemclick", "itemdoubleclick", "itemsizing", "itemwidth", "orientation", "title", "tracegroupgap", "traceorder", "uirevision", "valign", "visible", "x", "xanchor", "xref", "y", "yanchor", "yref"} # bgcolor # ------- @@ -50,52 +25,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -109,52 +49,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -170,11 +75,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # entrywidth # ---------- @@ -192,11 +97,11 @@ def entrywidth(self): ------- int|float """ - return self["entrywidth"] + return self['entrywidth'] @entrywidth.setter def entrywidth(self, val): - self["entrywidth"] = val + self['entrywidth'] = val # entrywidthmode # -------------- @@ -213,11 +118,11 @@ def entrywidthmode(self): ------- Any """ - return self["entrywidthmode"] + return self['entrywidthmode'] @entrywidthmode.setter def entrywidthmode(self, val): - self["entrywidthmode"] = val + self['entrywidthmode'] = val # font # ---- @@ -232,61 +137,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.legend.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # groupclick # ---------- @@ -307,11 +166,11 @@ def groupclick(self): ------- Any """ - return self["groupclick"] + return self['groupclick'] @groupclick.setter def groupclick(self, val): - self["groupclick"] = val + self['groupclick'] = val # grouptitlefont # -------------- @@ -327,61 +186,15 @@ def grouptitlefont(self): - A dict of string/value properties that will be passed to the Grouptitlefont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.legend.Grouptitlefont """ - return self["grouptitlefont"] + return self['grouptitlefont'] @grouptitlefont.setter def grouptitlefont(self, val): - self["grouptitlefont"] = val + self['grouptitlefont'] = val # indentation # ----------- @@ -397,11 +210,11 @@ def indentation(self): ------- int|float """ - return self["indentation"] + return self['indentation'] @indentation.setter def indentation(self, val): - self["indentation"] = val + self['indentation'] = val # itemclick # --------- @@ -421,11 +234,11 @@ def itemclick(self): ------- Any """ - return self["itemclick"] + return self['itemclick'] @itemclick.setter def itemclick(self, val): - self["itemclick"] = val + self['itemclick'] = val # itemdoubleclick # --------------- @@ -446,11 +259,11 @@ def itemdoubleclick(self): ------- Any """ - return self["itemdoubleclick"] + return self['itemdoubleclick'] @itemdoubleclick.setter def itemdoubleclick(self, val): - self["itemdoubleclick"] = val + self['itemdoubleclick'] = val # itemsizing # ---------- @@ -469,11 +282,11 @@ def itemsizing(self): ------- Any """ - return self["itemsizing"] + return self['itemsizing'] @itemsizing.setter def itemsizing(self, val): - self["itemsizing"] = val + self['itemsizing'] = val # itemwidth # --------- @@ -490,11 +303,11 @@ def itemwidth(self): ------- int|float """ - return self["itemwidth"] + return self['itemwidth'] @itemwidth.setter def itemwidth(self, val): - self["itemwidth"] = val + self['itemwidth'] = val # orientation # ----------- @@ -511,11 +324,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # title # ----- @@ -528,32 +341,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this legend's title font. Defaults to - `legend.font` with its size increased about - 20%. - side - Determines the location of legend's title with - respect to the legend items. Defaulted to "top" - with `orientation` is "h". Defaulted to "left" - with `orientation` is "v". The *top left* - options could be used to expand top center and - top right are for horizontal alignment legend - area in both x and y sides. - text - Sets the title of the legend. - Returns ------- plotly.graph_objs.layout.legend.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # tracegroupgap # ------------- @@ -570,11 +366,11 @@ def tracegroupgap(self): ------- int|float """ - return self["tracegroupgap"] + return self['tracegroupgap'] @tracegroupgap.setter def tracegroupgap(self, val): - self["tracegroupgap"] = val + self['tracegroupgap'] = val # traceorder # ---------- @@ -599,11 +395,11 @@ def traceorder(self): ------- Any """ - return self["traceorder"] + return self['traceorder'] @traceorder.setter def traceorder(self, val): - self["traceorder"] = val + self['traceorder'] = val # uirevision # ---------- @@ -619,11 +415,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # valign # ------ @@ -641,11 +437,11 @@ def valign(self): ------- Any """ - return self["valign"] + return self['valign'] @valign.setter def valign(self, val): - self["valign"] = val + self['valign'] = val # visible # ------- @@ -661,11 +457,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # x # - @@ -687,11 +483,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -713,11 +509,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xref # ---- @@ -736,11 +532,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -763,11 +559,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -789,11 +585,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # yref # ---- @@ -812,11 +608,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -939,38 +735,36 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - entrywidth=None, - entrywidthmode=None, - font=None, - groupclick=None, - grouptitlefont=None, - indentation=None, - itemclick=None, - itemdoubleclick=None, - itemsizing=None, - itemwidth=None, - orientation=None, - title=None, - tracegroupgap=None, - traceorder=None, - uirevision=None, - valign=None, - visible=None, - x=None, - xanchor=None, - xref=None, - y=None, - yanchor=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + entrywidth=None, + entrywidthmode=None, + font=None, + groupclick=None, + grouptitlefont=None, + indentation=None, + itemclick=None, + itemdoubleclick=None, + itemsizing=None, + itemwidth=None, + orientation=None, + title=None, + tracegroupgap=None, + traceorder=None, + uirevision=None, + valign=None, + visible=None, + x=None, + xanchor=None, + xref=None, + y=None, + yanchor=None, + yref=None, + **kwargs + ): """ Construct a new Legend object @@ -1099,10 +893,10 @@ def __init__( ------- Legend """ - super(Legend, self).__init__("legend") + super(Legend, self).__init__('legend') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1114,124 +908,45 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.Legend constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.Legend`""" - ) +an instance of :class:`plotly.graph_objs.layout.Legend`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("entrywidth", None) - _v = entrywidth if entrywidth is not None else _v - if _v is not None: - self["entrywidth"] = _v - _v = arg.pop("entrywidthmode", None) - _v = entrywidthmode if entrywidthmode is not None else _v - if _v is not None: - self["entrywidthmode"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("groupclick", None) - _v = groupclick if groupclick is not None else _v - if _v is not None: - self["groupclick"] = _v - _v = arg.pop("grouptitlefont", None) - _v = grouptitlefont if grouptitlefont is not None else _v - if _v is not None: - self["grouptitlefont"] = _v - _v = arg.pop("indentation", None) - _v = indentation if indentation is not None else _v - if _v is not None: - self["indentation"] = _v - _v = arg.pop("itemclick", None) - _v = itemclick if itemclick is not None else _v - if _v is not None: - self["itemclick"] = _v - _v = arg.pop("itemdoubleclick", None) - _v = itemdoubleclick if itemdoubleclick is not None else _v - if _v is not None: - self["itemdoubleclick"] = _v - _v = arg.pop("itemsizing", None) - _v = itemsizing if itemsizing is not None else _v - if _v is not None: - self["itemsizing"] = _v - _v = arg.pop("itemwidth", None) - _v = itemwidth if itemwidth is not None else _v - if _v is not None: - self["itemwidth"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("tracegroupgap", None) - _v = tracegroupgap if tracegroupgap is not None else _v - if _v is not None: - self["tracegroupgap"] = _v - _v = arg.pop("traceorder", None) - _v = traceorder if traceorder is not None else _v - if _v is not None: - self["traceorder"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("valign", None) - _v = valign if valign is not None else _v - if _v is not None: - self["valign"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('entrywidth', arg, entrywidth) + self._init_provided('entrywidthmode', arg, entrywidthmode) + self._init_provided('font', arg, font) + self._init_provided('groupclick', arg, groupclick) + self._init_provided('grouptitlefont', arg, grouptitlefont) + self._init_provided('indentation', arg, indentation) + self._init_provided('itemclick', arg, itemclick) + self._init_provided('itemdoubleclick', arg, itemdoubleclick) + self._init_provided('itemsizing', arg, itemsizing) + self._init_provided('itemwidth', arg, itemwidth) + self._init_provided('orientation', arg, orientation) + self._init_provided('title', arg, title) + self._init_provided('tracegroupgap', arg, tracegroupgap) + self._init_provided('traceorder', arg, traceorder) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('valign', arg, valign) + self._init_provided('visible', arg, visible) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_map.py b/packages/python/plotly/plotly/graph_objs/layout/_map.py index c6baeb81206..94116ba6e3a 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_map.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_map.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,20 +8,9 @@ class Map(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.map" - _valid_props = { - "bearing", - "bounds", - "center", - "domain", - "layerdefaults", - "layers", - "pitch", - "style", - "uirevision", - "zoom", - } + _parent_path_str = 'layout' + _path_str = 'layout.map' + _valid_props = {"bearing", "bounds", "center", "domain", "layerdefaults", "layers", "pitch", "style", "uirevision", "zoom"} # bearing # ------- @@ -36,11 +27,11 @@ def bearing(self): ------- int|float """ - return self["bearing"] + return self['bearing'] @bearing.setter def bearing(self, val): - self["bearing"] = val + self['bearing'] = val # bounds # ------ @@ -53,34 +44,15 @@ def bounds(self): - A dict of string/value properties that will be passed to the Bounds constructor - Supported dict properties: - - east - Sets the maximum longitude of the map (in - degrees East) if `west`, `south` and `north` - are declared. - north - Sets the maximum latitude of the map (in - degrees North) if `east`, `west` and `south` - are declared. - south - Sets the minimum latitude of the map (in - degrees North) if `east`, `west` and `north` - are declared. - west - Sets the minimum longitude of the map (in - degrees East) if `east`, `south` and `north` - are declared. - Returns ------- plotly.graph_objs.layout.map.Bounds """ - return self["bounds"] + return self['bounds'] @bounds.setter def bounds(self, val): - self["bounds"] = val + self['bounds'] = val # center # ------ @@ -93,24 +65,15 @@ def center(self): - A dict of string/value properties that will be passed to the Center constructor - Supported dict properties: - - lat - Sets the latitude of the center of the map (in - degrees North). - lon - Sets the longitude of the center of the map (in - degrees East). - Returns ------- plotly.graph_objs.layout.map.Center """ - return self["center"] + return self['center'] @center.setter def center(self, val): - self["center"] = val + self['center'] = val # domain # ------ @@ -123,30 +86,15 @@ def domain(self): - A dict of string/value properties that will be passed to the Domain constructor - Supported dict properties: - - column - If there is a layout grid, use the domain for - this column in the grid for this map subplot . - row - If there is a layout grid, use the domain for - this row in the grid for this map subplot . - x - Sets the horizontal domain of this map subplot - (in plot fraction). - y - Sets the vertical domain of this map subplot - (in plot fraction). - Returns ------- plotly.graph_objs.layout.map.Domain """ - return self["domain"] + return self['domain'] @domain.setter def domain(self, val): - self["domain"] = val + self['domain'] = val # layers # ------ @@ -159,129 +107,15 @@ def layers(self): - A list or tuple of dicts of string/value properties that will be passed to the Layer constructor - Supported dict properties: - - below - Determines if the layer will be inserted before - the layer with the specified ID. If omitted or - set to '', the layer will be inserted above - every existing layer. - circle - :class:`plotly.graph_objects.layout.map.layer.C - ircle` instance or dict with compatible - properties - color - Sets the primary layer color. If `type` is - "circle", color corresponds to the circle color - (map.layer.paint.circle-color) If `type` is - "line", color corresponds to the line color - (map.layer.paint.line-color) If `type` is - "fill", color corresponds to the fill color - (map.layer.paint.fill-color) If `type` is - "symbol", color corresponds to the icon color - (map.layer.paint.icon-color) - coordinates - Sets the coordinates array contains [longitude, - latitude] pairs for the image corners listed in - clockwise order: top left, top right, bottom - right, bottom left. Only has an effect for - "image" `sourcetype`. - fill - :class:`plotly.graph_objects.layout.map.layer.F - ill` instance or dict with compatible - properties - line - :class:`plotly.graph_objects.layout.map.layer.L - ine` instance or dict with compatible - properties - maxzoom - Sets the maximum zoom level - (map.layer.maxzoom). At zoom levels equal to or - greater than the maxzoom, the layer will be - hidden. - minzoom - Sets the minimum zoom level - (map.layer.minzoom). At zoom levels less than - the minzoom, the layer will be hidden. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - opacity - Sets the opacity of the layer. If `type` is - "circle", opacity corresponds to the circle - opacity (map.layer.paint.circle-opacity) If - `type` is "line", opacity corresponds to the - line opacity (map.layer.paint.line-opacity) If - `type` is "fill", opacity corresponds to the - fill opacity (map.layer.paint.fill-opacity) If - `type` is "symbol", opacity corresponds to the - icon/text opacity (map.layer.paint.text- - opacity) - source - Sets the source data for this layer - (map.layer.source). When `sourcetype` is set to - "geojson", `source` can be a URL to a GeoJSON - or a GeoJSON object. When `sourcetype` is set - to "vector" or "raster", `source` can be a URL - or an array of tile URLs. When `sourcetype` is - set to "image", `source` can be a URL to an - image. - sourceattribution - Sets the attribution for this source. - sourcelayer - Specifies the layer to use from a vector tile - source (map.layer.source-layer). Required for - "vector" source type that supports multiple - layers. - sourcetype - Sets the source type for this layer, that is - the type of the layer data. - symbol - :class:`plotly.graph_objects.layout.map.layer.S - ymbol` instance or dict with compatible - properties - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - type - Sets the layer type, that is the how the layer - data set in `source` will be rendered With - `sourcetype` set to "geojson", the following - values are allowed: "circle", "line", "fill" - and "symbol". but note that "line" and "fill" - are not compatible with Point GeoJSON - geometries. With `sourcetype` set to "vector", - the following values are allowed: "circle", - "line", "fill" and "symbol". With `sourcetype` - set to "raster" or `*image*`, only the "raster" - value is allowed. - visible - Determines whether this layer is displayed - Returns ------- tuple[plotly.graph_objs.layout.map.Layer] """ - return self["layers"] + return self['layers'] @layers.setter def layers(self, val): - self["layers"] = val + self['layers'] = val # layerdefaults # ------------- @@ -298,17 +132,15 @@ def layerdefaults(self): - A dict of string/value properties that will be passed to the Layer constructor - Supported dict properties: - Returns ------- plotly.graph_objs.layout.map.Layer """ - return self["layerdefaults"] + return self['layerdefaults'] @layerdefaults.setter def layerdefaults(self, val): - self["layerdefaults"] = val + self['layerdefaults'] = val # pitch # ----- @@ -325,11 +157,11 @@ def pitch(self): ------- int|float """ - return self["pitch"] + return self['pitch'] @pitch.setter def pitch(self, val): - self["pitch"] = val + self['pitch'] = val # style # ----- @@ -359,11 +191,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # uirevision # ---------- @@ -380,11 +212,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # zoom # ---- @@ -400,11 +232,11 @@ def zoom(self): ------- int|float """ - return self["zoom"] + return self['zoom'] @zoom.setter def zoom(self, val): - self["zoom"] = val + self['zoom'] = val # Self properties description # --------------------------- @@ -461,22 +293,20 @@ def _prop_descriptions(self): zoom Sets the zoom level of the map (map.zoom). """ - - def __init__( - self, - arg=None, - bearing=None, - bounds=None, - center=None, - domain=None, - layers=None, - layerdefaults=None, - pitch=None, - style=None, - uirevision=None, - zoom=None, - **kwargs, - ): + def __init__(self, + arg=None, + bearing=None, + bounds=None, + center=None, + domain=None, + layers=None, + layerdefaults=None, + pitch=None, + style=None, + uirevision=None, + zoom=None, + **kwargs + ): """ Construct a new Map object @@ -539,10 +369,10 @@ def __init__( ------- Map """ - super(Map, self).__init__("map") + super(Map, self).__init__('map') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -554,60 +384,29 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.Map constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.Map`""" - ) +an instance of :class:`plotly.graph_objs.layout.Map`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bearing", None) - _v = bearing if bearing is not None else _v - if _v is not None: - self["bearing"] = _v - _v = arg.pop("bounds", None) - _v = bounds if bounds is not None else _v - if _v is not None: - self["bounds"] = _v - _v = arg.pop("center", None) - _v = center if center is not None else _v - if _v is not None: - self["center"] = _v - _v = arg.pop("domain", None) - _v = domain if domain is not None else _v - if _v is not None: - self["domain"] = _v - _v = arg.pop("layers", None) - _v = layers if layers is not None else _v - if _v is not None: - self["layers"] = _v - _v = arg.pop("layerdefaults", None) - _v = layerdefaults if layerdefaults is not None else _v - if _v is not None: - self["layerdefaults"] = _v - _v = arg.pop("pitch", None) - _v = pitch if pitch is not None else _v - if _v is not None: - self["pitch"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("zoom", None) - _v = zoom if zoom is not None else _v - if _v is not None: - self["zoom"] = _v + self._init_provided('bearing', arg, bearing) + self._init_provided('bounds', arg, bounds) + self._init_provided('center', arg, center) + self._init_provided('domain', arg, domain) + self._init_provided('layers', arg, layers) + self._init_provided('layerdefaults', arg, layerdefaults) + self._init_provided('pitch', arg, pitch) + self._init_provided('style', arg, style) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('zoom', arg, zoom) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_mapbox.py b/packages/python/plotly/plotly/graph_objs/layout/_mapbox.py index 514895bd06f..7b5befc05b1 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_mapbox.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_mapbox.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,21 +8,9 @@ class Mapbox(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.mapbox" - _valid_props = { - "accesstoken", - "bearing", - "bounds", - "center", - "domain", - "layerdefaults", - "layers", - "pitch", - "style", - "uirevision", - "zoom", - } + _parent_path_str = 'layout' + _path_str = 'layout.mapbox' + _valid_props = {"accesstoken", "bearing", "bounds", "center", "domain", "layerdefaults", "layers", "pitch", "style", "uirevision", "zoom"} # accesstoken # ----------- @@ -41,11 +31,11 @@ def accesstoken(self): ------- str """ - return self["accesstoken"] + return self['accesstoken'] @accesstoken.setter def accesstoken(self, val): - self["accesstoken"] = val + self['accesstoken'] = val # bearing # ------- @@ -62,11 +52,11 @@ def bearing(self): ------- int|float """ - return self["bearing"] + return self['bearing'] @bearing.setter def bearing(self, val): - self["bearing"] = val + self['bearing'] = val # bounds # ------ @@ -79,34 +69,15 @@ def bounds(self): - A dict of string/value properties that will be passed to the Bounds constructor - Supported dict properties: - - east - Sets the maximum longitude of the map (in - degrees East) if `west`, `south` and `north` - are declared. - north - Sets the maximum latitude of the map (in - degrees North) if `east`, `west` and `south` - are declared. - south - Sets the minimum latitude of the map (in - degrees North) if `east`, `west` and `north` - are declared. - west - Sets the minimum longitude of the map (in - degrees East) if `east`, `south` and `north` - are declared. - Returns ------- plotly.graph_objs.layout.mapbox.Bounds """ - return self["bounds"] + return self['bounds'] @bounds.setter def bounds(self, val): - self["bounds"] = val + self['bounds'] = val # center # ------ @@ -119,24 +90,15 @@ def center(self): - A dict of string/value properties that will be passed to the Center constructor - Supported dict properties: - - lat - Sets the latitude of the center of the map (in - degrees North). - lon - Sets the longitude of the center of the map (in - degrees East). - Returns ------- plotly.graph_objs.layout.mapbox.Center """ - return self["center"] + return self['center'] @center.setter def center(self, val): - self["center"] = val + self['center'] = val # domain # ------ @@ -149,31 +111,15 @@ def domain(self): - A dict of string/value properties that will be passed to the Domain constructor - Supported dict properties: - - column - If there is a layout grid, use the domain for - this column in the grid for this mapbox subplot - . - row - If there is a layout grid, use the domain for - this row in the grid for this mapbox subplot . - x - Sets the horizontal domain of this mapbox - subplot (in plot fraction). - y - Sets the vertical domain of this mapbox subplot - (in plot fraction). - Returns ------- plotly.graph_objs.layout.mapbox.Domain """ - return self["domain"] + return self['domain'] @domain.setter def domain(self, val): - self["domain"] = val + self['domain'] = val # layers # ------ @@ -186,129 +132,15 @@ def layers(self): - A list or tuple of dicts of string/value properties that will be passed to the Layer constructor - Supported dict properties: - - below - Determines if the layer will be inserted before - the layer with the specified ID. If omitted or - set to '', the layer will be inserted above - every existing layer. - circle - :class:`plotly.graph_objects.layout.mapbox.laye - r.Circle` instance or dict with compatible - properties - color - Sets the primary layer color. If `type` is - "circle", color corresponds to the circle color - (mapbox.layer.paint.circle-color) If `type` is - "line", color corresponds to the line color - (mapbox.layer.paint.line-color) If `type` is - "fill", color corresponds to the fill color - (mapbox.layer.paint.fill-color) If `type` is - "symbol", color corresponds to the icon color - (mapbox.layer.paint.icon-color) - coordinates - Sets the coordinates array contains [longitude, - latitude] pairs for the image corners listed in - clockwise order: top left, top right, bottom - right, bottom left. Only has an effect for - "image" `sourcetype`. - fill - :class:`plotly.graph_objects.layout.mapbox.laye - r.Fill` instance or dict with compatible - properties - line - :class:`plotly.graph_objects.layout.mapbox.laye - r.Line` instance or dict with compatible - properties - maxzoom - Sets the maximum zoom level - (mapbox.layer.maxzoom). At zoom levels equal to - or greater than the maxzoom, the layer will be - hidden. - minzoom - Sets the minimum zoom level - (mapbox.layer.minzoom). At zoom levels less - than the minzoom, the layer will be hidden. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - opacity - Sets the opacity of the layer. If `type` is - "circle", opacity corresponds to the circle - opacity (mapbox.layer.paint.circle-opacity) If - `type` is "line", opacity corresponds to the - line opacity (mapbox.layer.paint.line-opacity) - If `type` is "fill", opacity corresponds to the - fill opacity (mapbox.layer.paint.fill-opacity) - If `type` is "symbol", opacity corresponds to - the icon/text opacity (mapbox.layer.paint.text- - opacity) - source - Sets the source data for this layer - (mapbox.layer.source). When `sourcetype` is set - to "geojson", `source` can be a URL to a - GeoJSON or a GeoJSON object. When `sourcetype` - is set to "vector" or "raster", `source` can be - a URL or an array of tile URLs. When - `sourcetype` is set to "image", `source` can be - a URL to an image. - sourceattribution - Sets the attribution for this source. - sourcelayer - Specifies the layer to use from a vector tile - source (mapbox.layer.source-layer). Required - for "vector" source type that supports multiple - layers. - sourcetype - Sets the source type for this layer, that is - the type of the layer data. - symbol - :class:`plotly.graph_objects.layout.mapbox.laye - r.Symbol` instance or dict with compatible - properties - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - type - Sets the layer type, that is the how the layer - data set in `source` will be rendered With - `sourcetype` set to "geojson", the following - values are allowed: "circle", "line", "fill" - and "symbol". but note that "line" and "fill" - are not compatible with Point GeoJSON - geometries. With `sourcetype` set to "vector", - the following values are allowed: "circle", - "line", "fill" and "symbol". With `sourcetype` - set to "raster" or `*image*`, only the "raster" - value is allowed. - visible - Determines whether this layer is displayed - Returns ------- tuple[plotly.graph_objs.layout.mapbox.Layer] """ - return self["layers"] + return self['layers'] @layers.setter def layers(self, val): - self["layers"] = val + self['layers'] = val # layerdefaults # ------------- @@ -325,17 +157,15 @@ def layerdefaults(self): - A dict of string/value properties that will be passed to the Layer constructor - Supported dict properties: - Returns ------- plotly.graph_objs.layout.mapbox.Layer """ - return self["layerdefaults"] + return self['layerdefaults'] @layerdefaults.setter def layerdefaults(self, val): - self["layerdefaults"] = val + self['layerdefaults'] = val # pitch # ----- @@ -352,11 +182,11 @@ def pitch(self): ------- int|float """ - return self["pitch"] + return self['pitch'] @pitch.setter def pitch(self, val): - self["pitch"] = val + self['pitch'] = val # style # ----- @@ -390,11 +220,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # uirevision # ---------- @@ -411,11 +241,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # zoom # ---- @@ -431,11 +261,11 @@ def zoom(self): ------- int|float """ - return self["zoom"] + return self['zoom'] @zoom.setter def zoom(self, val): - self["zoom"] = val + self['zoom'] = val # Self properties description # --------------------------- @@ -507,23 +337,21 @@ def _prop_descriptions(self): zoom Sets the zoom level of the map (mapbox.zoom). """ - - def __init__( - self, - arg=None, - accesstoken=None, - bearing=None, - bounds=None, - center=None, - domain=None, - layers=None, - layerdefaults=None, - pitch=None, - style=None, - uirevision=None, - zoom=None, - **kwargs, - ): + def __init__(self, + arg=None, + accesstoken=None, + bearing=None, + bounds=None, + center=None, + domain=None, + layers=None, + layerdefaults=None, + pitch=None, + style=None, + uirevision=None, + zoom=None, + **kwargs + ): """ Construct a new Mapbox object @@ -601,10 +429,10 @@ def __init__( ------- Mapbox """ - super(Mapbox, self).__init__("mapbox") + super(Mapbox, self).__init__('mapbox') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -616,64 +444,30 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.Mapbox constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.Mapbox`""" - ) +an instance of :class:`plotly.graph_objs.layout.Mapbox`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("accesstoken", None) - _v = accesstoken if accesstoken is not None else _v - if _v is not None: - self["accesstoken"] = _v - _v = arg.pop("bearing", None) - _v = bearing if bearing is not None else _v - if _v is not None: - self["bearing"] = _v - _v = arg.pop("bounds", None) - _v = bounds if bounds is not None else _v - if _v is not None: - self["bounds"] = _v - _v = arg.pop("center", None) - _v = center if center is not None else _v - if _v is not None: - self["center"] = _v - _v = arg.pop("domain", None) - _v = domain if domain is not None else _v - if _v is not None: - self["domain"] = _v - _v = arg.pop("layers", None) - _v = layers if layers is not None else _v - if _v is not None: - self["layers"] = _v - _v = arg.pop("layerdefaults", None) - _v = layerdefaults if layerdefaults is not None else _v - if _v is not None: - self["layerdefaults"] = _v - _v = arg.pop("pitch", None) - _v = pitch if pitch is not None else _v - if _v is not None: - self["pitch"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("zoom", None) - _v = zoom if zoom is not None else _v - if _v is not None: - self["zoom"] = _v + self._init_provided('accesstoken', arg, accesstoken) + self._init_provided('bearing', arg, bearing) + self._init_provided('bounds', arg, bounds) + self._init_provided('center', arg, center) + self._init_provided('domain', arg, domain) + self._init_provided('layers', arg, layers) + self._init_provided('layerdefaults', arg, layerdefaults) + self._init_provided('pitch', arg, pitch) + self._init_provided('style', arg, style) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('zoom', arg, zoom) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_margin.py b/packages/python/plotly/plotly/graph_objs/layout/_margin.py index dc8384d02f8..9875d315e04 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_margin.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_margin.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Margin(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.margin" + _parent_path_str = 'layout' + _path_str = 'layout.margin' _valid_props = {"autoexpand", "b", "l", "pad", "r", "t"} # autoexpand @@ -26,11 +28,11 @@ def autoexpand(self): ------- bool """ - return self["autoexpand"] + return self['autoexpand'] @autoexpand.setter def autoexpand(self, val): - self["autoexpand"] = val + self['autoexpand'] = val # b # - @@ -46,11 +48,11 @@ def b(self): ------- int|float """ - return self["b"] + return self['b'] @b.setter def b(self, val): - self["b"] = val + self['b'] = val # l # - @@ -66,11 +68,11 @@ def l(self): ------- int|float """ - return self["l"] + return self['l'] @l.setter def l(self, val): - self["l"] = val + self['l'] = val # pad # --- @@ -87,11 +89,11 @@ def pad(self): ------- int|float """ - return self["pad"] + return self['pad'] @pad.setter def pad(self, val): - self["pad"] = val + self['pad'] = val # r # - @@ -107,11 +109,11 @@ def r(self): ------- int|float """ - return self["r"] + return self['r'] @r.setter def r(self, val): - self["r"] = val + self['r'] = val # t # - @@ -127,11 +129,11 @@ def t(self): ------- int|float """ - return self["t"] + return self['t'] @t.setter def t(self, val): - self["t"] = val + self['t'] = val # Self properties description # --------------------------- @@ -155,18 +157,16 @@ def _prop_descriptions(self): t Sets the top margin (in px). """ - - def __init__( - self, - arg=None, - autoexpand=None, - b=None, - l=None, - pad=None, - r=None, - t=None, - **kwargs, - ): + def __init__(self, + arg=None, + autoexpand=None, + b=None, + l=None, + pad=None, + r=None, + t=None, + **kwargs + ): """ Construct a new Margin object @@ -196,10 +196,10 @@ def __init__( ------- Margin """ - super(Margin, self).__init__("margin") + super(Margin, self).__init__('margin') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -211,44 +211,25 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.Margin constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.Margin`""" - ) +an instance of :class:`plotly.graph_objs.layout.Margin`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autoexpand", None) - _v = autoexpand if autoexpand is not None else _v - if _v is not None: - self["autoexpand"] = _v - _v = arg.pop("b", None) - _v = b if b is not None else _v - if _v is not None: - self["b"] = _v - _v = arg.pop("l", None) - _v = l if l is not None else _v - if _v is not None: - self["l"] = _v - _v = arg.pop("pad", None) - _v = pad if pad is not None else _v - if _v is not None: - self["pad"] = _v - _v = arg.pop("r", None) - _v = r if r is not None else _v - if _v is not None: - self["r"] = _v - _v = arg.pop("t", None) - _v = t if t is not None else _v - if _v is not None: - self["t"] = _v + self._init_provided('autoexpand', arg, autoexpand) + self._init_provided('b', arg, b) + self._init_provided('l', arg, l) + self._init_provided('pad', arg, pad) + self._init_provided('r', arg, r) + self._init_provided('t', arg, t) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_modebar.py b/packages/python/plotly/plotly/graph_objs/layout/_modebar.py index 086af979cc2..beec3a4c849 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_modebar.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_modebar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Modebar(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.modebar" - _valid_props = { - "activecolor", - "add", - "addsrc", - "bgcolor", - "color", - "orientation", - "remove", - "removesrc", - "uirevision", - } + _parent_path_str = 'layout' + _path_str = 'layout.modebar' + _valid_props = {"activecolor", "add", "addsrc", "bgcolor", "color", "orientation", "remove", "removesrc", "uirevision"} # activecolor # ----------- @@ -33,52 +25,17 @@ def activecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["activecolor"] + return self['activecolor'] @activecolor.setter def activecolor(self, val): - self["activecolor"] = val + self['activecolor'] = val # add # --- @@ -102,11 +59,11 @@ def add(self): ------- str|numpy.ndarray """ - return self["add"] + return self['add'] @add.setter def add(self, val): - self["add"] = val + self['add'] = val # addsrc # ------ @@ -122,11 +79,11 @@ def addsrc(self): ------- str """ - return self["addsrc"] + return self['addsrc'] @addsrc.setter def addsrc(self, val): - self["addsrc"] = val + self['addsrc'] = val # bgcolor # ------- @@ -140,52 +97,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # color # ----- @@ -199,52 +121,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # orientation # ----------- @@ -261,11 +148,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # remove # ------ @@ -298,11 +185,11 @@ def remove(self): ------- str|numpy.ndarray """ - return self["remove"] + return self['remove'] @remove.setter def remove(self, val): - self["remove"] = val + self['remove'] = val # removesrc # --------- @@ -318,11 +205,11 @@ def removesrc(self): ------- str """ - return self["removesrc"] + return self['removesrc'] @removesrc.setter def removesrc(self, val): - self["removesrc"] = val + self['removesrc'] = val # uirevision # ---------- @@ -340,11 +227,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # Self properties description # --------------------------- @@ -401,21 +288,19 @@ def _prop_descriptions(self): `showspikes` at both the root level and inside subplots. Defaults to `layout.uirevision`. """ - - def __init__( - self, - arg=None, - activecolor=None, - add=None, - addsrc=None, - bgcolor=None, - color=None, - orientation=None, - remove=None, - removesrc=None, - uirevision=None, - **kwargs, - ): + def __init__(self, + arg=None, + activecolor=None, + add=None, + addsrc=None, + bgcolor=None, + color=None, + orientation=None, + remove=None, + removesrc=None, + uirevision=None, + **kwargs + ): """ Construct a new Modebar object @@ -479,10 +364,10 @@ def __init__( ------- Modebar """ - super(Modebar, self).__init__("modebar") + super(Modebar, self).__init__('modebar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -494,56 +379,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.Modebar constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.Modebar`""" - ) +an instance of :class:`plotly.graph_objs.layout.Modebar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("activecolor", None) - _v = activecolor if activecolor is not None else _v - if _v is not None: - self["activecolor"] = _v - _v = arg.pop("add", None) - _v = add if add is not None else _v - if _v is not None: - self["add"] = _v - _v = arg.pop("addsrc", None) - _v = addsrc if addsrc is not None else _v - if _v is not None: - self["addsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("remove", None) - _v = remove if remove is not None else _v - if _v is not None: - self["remove"] = _v - _v = arg.pop("removesrc", None) - _v = removesrc if removesrc is not None else _v - if _v is not None: - self["removesrc"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v + self._init_provided('activecolor', arg, activecolor) + self._init_provided('add', arg, add) + self._init_provided('addsrc', arg, addsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('color', arg, color) + self._init_provided('orientation', arg, orientation) + self._init_provided('remove', arg, remove) + self._init_provided('removesrc', arg, removesrc) + self._init_provided('uirevision', arg, uirevision) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_newselection.py b/packages/python/plotly/plotly/graph_objs/layout/_newselection.py index 7b6493418fd..04f7b356b8d 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_newselection.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_newselection.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Newselection(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.newselection" + _parent_path_str = 'layout' + _path_str = 'layout.newselection' _valid_props = {"line", "mode"} # line @@ -21,29 +23,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the line color. By default uses either - dark grey or white to increase contrast with - background color. - dash - 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"). - width - Sets the line width (in px). - Returns ------- plotly.graph_objs.layout.newselection.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # mode # ---- @@ -64,11 +52,11 @@ def mode(self): ------- Any """ - return self["mode"] + return self['mode'] @mode.setter def mode(self, val): - self["mode"] = val + self['mode'] = val # Self properties description # --------------------------- @@ -86,8 +74,12 @@ def _prop_descriptions(self): the initial selection, this option allows declaring extra outlines of the selection. """ - - def __init__(self, arg=None, line=None, mode=None, **kwargs): + def __init__(self, + arg=None, + line=None, + mode=None, + **kwargs + ): """ Construct a new Newselection object @@ -112,10 +104,10 @@ def __init__(self, arg=None, line=None, mode=None, **kwargs): ------- Newselection """ - super(Newselection, self).__init__("newselection") + super(Newselection, self).__init__('newselection') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -127,28 +119,21 @@ def __init__(self, arg=None, line=None, mode=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.Newselection constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.Newselection`""" - ) +an instance of :class:`plotly.graph_objs.layout.Newselection`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("mode", None) - _v = mode if mode is not None else _v - if _v is not None: - self["mode"] = _v + self._init_provided('line', arg, line) + self._init_provided('mode', arg, mode) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_newshape.py b/packages/python/plotly/plotly/graph_objs/layout/_newshape.py index ff282484fdc..46a4de52264 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_newshape.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_newshape.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,25 +8,9 @@ class Newshape(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.newshape" - _valid_props = { - "drawdirection", - "fillcolor", - "fillrule", - "label", - "layer", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "line", - "name", - "opacity", - "showlegend", - "visible", - } + _parent_path_str = 'layout' + _path_str = 'layout.newshape' + _valid_props = {"drawdirection", "fillcolor", "fillrule", "label", "layer", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "line", "name", "opacity", "showlegend", "visible"} # drawdirection # ------------- @@ -46,11 +32,11 @@ def drawdirection(self): ------- Any """ - return self["drawdirection"] + return self['drawdirection'] @drawdirection.setter def drawdirection(self, val): - self["drawdirection"] = val + self['drawdirection'] = val # fillcolor # --------- @@ -67,52 +53,17 @@ def fillcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["fillcolor"] + return self['fillcolor'] @fillcolor.setter def fillcolor(self, val): - self["fillcolor"] = val + self['fillcolor'] = val # fillrule # -------- @@ -131,11 +82,11 @@ def fillrule(self): ------- Any """ - return self["fillrule"] + return self['fillrule'] @fillrule.setter def fillrule(self, val): - self["fillrule"] = val + self['fillrule'] = val # label # ----- @@ -148,85 +99,15 @@ def label(self): - A dict of string/value properties that will be passed to the Label constructor - Supported dict properties: - - font - Sets the new shape label text font. - padding - Sets padding (in px) between edge of label and - edge of new shape. - text - Sets the text to display with the new shape. It - is also used for legend item if `name` is not - provided. - textangle - Sets the angle at which the label text is drawn - with respect to the horizontal. For lines, - angle "auto" is the same angle as the line. For - all other shapes, angle "auto" is horizontal. - textposition - Sets the position of the label text relative to - the new shape. Supported values for rectangles, - circles and paths are *top left*, *top center*, - *top right*, *middle left*, *middle center*, - *middle right*, *bottom left*, *bottom center*, - and *bottom right*. Supported values for lines - are "start", "middle", and "end". Default: - *middle center* for rectangles, circles, and - paths; "middle" for lines. - texttemplate - Template string used for rendering the new - shape's label. Note that this will override - `text`. Variables are inserted using - %{variable}, for example "x0: %{x0}". Numbers - are formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{x0:$.2f}". See https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{x0|%m %b %Y}". See - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. A single - multiplication or division operation may be - applied to numeric variables, and combined with - d3 number formatting, for example "Length in - cm: %{x0*2.54}", "%{slope*60:.1f} meters per - second." For log axes, variable values are - given in log units. For date axes, x/y - coordinate variables and center variables use - datetimes, while all other variable values use - values in ms. Finally, the template string has - access to variables `x0`, `x1`, `y0`, `y1`, - `slope`, `dx`, `dy`, `width`, `height`, - `length`, `xcenter` and `ycenter`. - xanchor - Sets the label's horizontal position anchor - This anchor binds the specified `textposition` - to the "left", "center" or "right" of the label - text. For example, if `textposition` is set to - *top right* and `xanchor` to "right" then the - right-most portion of the label text lines up - with the right-most edge of the new shape. - yanchor - Sets the label's vertical position anchor This - anchor binds the specified `textposition` to - the "top", "middle" or "bottom" of the label - text. For example, if `textposition` is set to - *top right* and `yanchor` to "top" then the - top-most portion of the label text lines up - with the top-most edge of the new shape. - Returns ------- plotly.graph_objs.layout.newshape.Label """ - return self["label"] + return self['label'] @label.setter def label(self, val): - self["label"] = val + self['label'] = val # layer # ----- @@ -245,11 +126,11 @@ def layer(self): ------- Any """ - return self["layer"] + return self['layer'] @layer.setter def layer(self, val): - self["layer"] = val + self['layer'] = val # legend # ------ @@ -270,11 +151,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -293,11 +174,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -310,22 +191,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.layout.newshape.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -346,11 +220,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -366,11 +240,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # line # ---- @@ -383,29 +257,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the line color. By default uses either - dark grey or white to increase contrast with - background color. - dash - 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"). - width - Sets the line width (in px). - Returns ------- plotly.graph_objs.layout.newshape.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # name # ---- @@ -422,11 +282,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -442,11 +302,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # showlegend # ---------- @@ -462,11 +322,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # visible # ------- @@ -485,11 +345,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # Self properties description # --------------------------- @@ -562,27 +422,25 @@ def _prop_descriptions(self): a legend item (provided that the legend itself is visible). """ - - def __init__( - self, - arg=None, - drawdirection=None, - fillcolor=None, - fillrule=None, - label=None, - layer=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - name=None, - opacity=None, - showlegend=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + drawdirection=None, + fillcolor=None, + fillrule=None, + label=None, + layer=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + name=None, + opacity=None, + showlegend=None, + visible=None, + **kwargs + ): """ Construct a new Newshape object @@ -662,10 +520,10 @@ def __init__( ------- Newshape """ - super(Newshape, self).__init__("newshape") + super(Newshape, self).__init__('newshape') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -677,80 +535,34 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.Newshape constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.Newshape`""" - ) +an instance of :class:`plotly.graph_objs.layout.Newshape`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("drawdirection", None) - _v = drawdirection if drawdirection is not None else _v - if _v is not None: - self["drawdirection"] = _v - _v = arg.pop("fillcolor", None) - _v = fillcolor if fillcolor is not None else _v - if _v is not None: - self["fillcolor"] = _v - _v = arg.pop("fillrule", None) - _v = fillrule if fillrule is not None else _v - if _v is not None: - self["fillrule"] = _v - _v = arg.pop("label", None) - _v = label if label is not None else _v - if _v is not None: - self["label"] = _v - _v = arg.pop("layer", None) - _v = layer if layer is not None else _v - if _v is not None: - self["layer"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('drawdirection', arg, drawdirection) + self._init_provided('fillcolor', arg, fillcolor) + self._init_provided('fillrule', arg, fillrule) + self._init_provided('label', arg, label) + self._init_provided('layer', arg, layer) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('line', arg, line) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('visible', arg, visible) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_polar.py b/packages/python/plotly/plotly/graph_objs/layout/_polar.py index fbf0a20b7f7..a665a718763 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_polar.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_polar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,20 +8,9 @@ class Polar(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.polar" - _valid_props = { - "angularaxis", - "bargap", - "barmode", - "bgcolor", - "domain", - "gridshape", - "hole", - "radialaxis", - "sector", - "uirevision", - } + _parent_path_str = 'layout' + _path_str = 'layout.polar' + _valid_props = {"angularaxis", "bargap", "barmode", "bgcolor", "domain", "gridshape", "hole", "radialaxis", "sector", "uirevision"} # angularaxis # ----------- @@ -32,306 +23,15 @@ def angularaxis(self): - A dict of string/value properties that will be passed to the AngularAxis constructor - Supported dict properties: - - autotypenumbers - Using "strict" a numeric string in trace data - is not converted to a number. Using *convert - types* a numeric string in trace data may be - treated as a number during automatic axis - `type` detection. Defaults to - layout.autotypenumbers. - categoryarray - Sets the order in which categories on this axis - appear. Only has an effect if `categoryorder` - is set to "array". Used with `categoryorder`. - categoryarraysrc - Sets the source reference on Chart Studio Cloud - for `categoryarray`. - categoryorder - Specifies the ordering logic for the case of - categorical variables. By default, plotly uses - "trace", which specifies the order that is - present in the data supplied. Set - `categoryorder` to *category ascending* or - *category descending* if order should be - determined by the alphanumerical order of the - category names. Set `categoryorder` to "array" - to derive the ordering from the attribute - `categoryarray`. If a category is not found in - the `categoryarray` array, the sorting behavior - for that attribute will be identical to the - "trace" mode. The unspecified categories will - follow the categories in `categoryarray`. Set - `categoryorder` to *total ascending* or *total - descending* if order should be determined by - the numerical order of the values. Similarly, - the order can be determined by the min, max, - sum, mean, geometric mean or median of all the - values. - color - Sets default for all colors associated with - this axis all at once: line, font, tick, and - grid colors. Grid color is lightened by - blending this with the plot background - Individual pieces can override this. - direction - Sets the direction corresponding to positive - angles. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - gridcolor - Sets the color of the grid lines. - 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 width (in px) of the grid lines. - hoverformat - Sets the hover text formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - layer - Sets the layer on which this axis is displayed. - If *above traces*, this axis is displayed above - all the subplot's traces If *below traces*, - this axis is displayed below all the subplot's - traces, but above the grid lines. Useful when - used together with scatter-like traces with - `cliponaxis` set to False to show markers - and/or text nodes above this axis. - linecolor - Sets the axis line color. - linewidth - Sets the width (in px) of the axis line. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - period - Set the angular period. Has an effect only when - `angularaxis.type` is "category". - rotation - Sets that start position (in degrees) of the - angular axis By default, polar subplots with - `direction` set to "counterclockwise" get a - `rotation` of 0 which corresponds to due East - (like what mathematicians prefer). In turn, - polar with `direction` set to "clockwise" get a - rotation of 90 which corresponds to due North - (like on a compass), - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - showline - Determines whether or not a line bounding this - axis is drawn. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thetaunit - Sets the format unit of the formatted "theta" - values. Has an effect only when - `angularaxis.type` is "linear". - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the tick font. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.layout. - polar.angularaxis.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.lay - out.polar.angularaxis.tickformatstopdefaults), - sets the default property values to use for - elements of - layout.polar.angularaxis.tickformatstops - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - type - Sets the angular axis type. If "linear", set - `thetaunit` to determine the unit in which axis - value are shown. If *category, use `period` to - set the number of integer coordinates around - polar axis. - uirevision - Controls persistence of user-driven changes in - axis `rotation`. Defaults to - `polar.uirevision`. - visible - A single toggle to hide the axis while - preserving interaction like dragging. Default - is true when a cheater plot is present on the - axis, otherwise false - Returns ------- plotly.graph_objs.layout.polar.AngularAxis """ - return self["angularaxis"] + return self['angularaxis'] @angularaxis.setter def angularaxis(self, val): - self["angularaxis"] = val + self['angularaxis'] = val # bargap # ------ @@ -349,11 +49,11 @@ def bargap(self): ------- int|float """ - return self["bargap"] + return self['bargap'] @bargap.setter def bargap(self, val): - self["bargap"] = val + self['bargap'] = val # barmode # ------- @@ -374,11 +74,11 @@ def barmode(self): ------- Any """ - return self["barmode"] + return self['barmode'] @barmode.setter def barmode(self, val): - self["barmode"] = val + self['barmode'] = val # bgcolor # ------- @@ -392,52 +92,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # domain # ------ @@ -450,31 +115,15 @@ def domain(self): - A dict of string/value properties that will be passed to the Domain constructor - Supported dict properties: - - column - If there is a layout grid, use the domain for - this column in the grid for this polar subplot - . - row - If there is a layout grid, use the domain for - this row in the grid for this polar subplot . - x - Sets the horizontal domain of this polar - subplot (in plot fraction). - y - Sets the vertical domain of this polar subplot - (in plot fraction). - Returns ------- plotly.graph_objs.layout.polar.Domain """ - return self["domain"] + return self['domain'] @domain.setter def domain(self, val): - self["domain"] = val + self['domain'] = val # gridshape # --------- @@ -496,11 +145,11 @@ def gridshape(self): ------- Any """ - return self["gridshape"] + return self['gridshape'] @gridshape.setter def gridshape(self, val): - self["gridshape"] = val + self['gridshape'] = val # hole # ---- @@ -517,11 +166,11 @@ def hole(self): ------- int|float """ - return self["hole"] + return self['hole'] @hole.setter def hole(self, val): - self["hole"] = val + self['hole'] = val # radialaxis # ---------- @@ -534,382 +183,43 @@ def radialaxis(self): - A dict of string/value properties that will be passed to the RadialAxis constructor - Supported dict properties: - - angle - Sets the angle (in degrees) from which the - radial axis is drawn. Note that by default, - radial axis line on the theta=0 line - corresponds to a line pointing right (like what - mathematicians prefer). Defaults to the first - `polar.sector` angle. - autorange - Determines whether or not the range of this - axis is computed in relation to the input data. - See `rangemode` for more info. If `range` is - provided and it has a value for both the lower - and upper bound, `autorange` is set to False. - Using "min" applies autorange only to set the - minimum. Using "max" applies autorange only to - set the maximum. Using *min reversed* applies - autorange only to set the minimum on a reversed - axis. Using *max reversed* applies autorange - only to set the maximum on a reversed axis. - Using "reversed" applies autorange on both ends - and reverses the axis direction. - autorangeoptions - :class:`plotly.graph_objects.layout.polar.radia - laxis.Autorangeoptions` instance or dict with - compatible properties - autotickangles - When `tickangle` is set to "auto", it will be - set to the first angle in this array that is - large enough to prevent label overlap. - autotypenumbers - Using "strict" a numeric string in trace data - is not converted to a number. Using *convert - types* a numeric string in trace data may be - treated as a number during automatic axis - `type` detection. Defaults to - layout.autotypenumbers. - calendar - Sets the calendar system to use for `range` and - `tick0` if this is a date axis. This does not - set the calendar for interpreting data on this - axis, that's specified in the trace or via the - global `layout.calendar` - categoryarray - Sets the order in which categories on this axis - appear. Only has an effect if `categoryorder` - is set to "array". Used with `categoryorder`. - categoryarraysrc - Sets the source reference on Chart Studio Cloud - for `categoryarray`. - categoryorder - Specifies the ordering logic for the case of - categorical variables. By default, plotly uses - "trace", which specifies the order that is - present in the data supplied. Set - `categoryorder` to *category ascending* or - *category descending* if order should be - determined by the alphanumerical order of the - category names. Set `categoryorder` to "array" - to derive the ordering from the attribute - `categoryarray`. If a category is not found in - the `categoryarray` array, the sorting behavior - for that attribute will be identical to the - "trace" mode. The unspecified categories will - follow the categories in `categoryarray`. Set - `categoryorder` to *total ascending* or *total - descending* if order should be determined by - the numerical order of the values. Similarly, - the order can be determined by the min, max, - sum, mean, geometric mean or median of all the - values. - color - Sets default for all colors associated with - this axis all at once: line, font, tick, and - grid colors. Grid color is lightened by - blending this with the plot background - Individual pieces can override this. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - gridcolor - Sets the color of the grid lines. - 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 width (in px) of the grid lines. - hoverformat - Sets the hover text formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - layer - Sets the layer on which this axis is displayed. - If *above traces*, this axis is displayed above - all the subplot's traces If *below traces*, - this axis is displayed below all the subplot's - traces, but above the grid lines. Useful when - used together with scatter-like traces with - `cliponaxis` set to False to show markers - and/or text nodes above this axis. - linecolor - Sets the axis line color. - linewidth - Sets the width (in px) of the axis line. - maxallowed - Determines the maximum range of this axis. - minallowed - Determines the minimum range of this axis. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - range - Sets the range of this axis. If the axis `type` - is "log", then you must take the log of your - desired range (e.g. to set the range from 1 to - 100, set the range from 0 to 2). If the axis - `type` is "date", it should be date strings, - like date data, though Date objects and unix - milliseconds will be accepted and converted to - strings. If the axis `type` is "category", it - should be numbers, using the scale where each - category is assigned a serial number from zero - in the order it appears. Leaving either or both - elements `null` impacts the default - `autorange`. - rangemode - If *tozero*`, the range extends to 0, - regardless of the input data If "nonnegative", - the range is non-negative, regardless of the - input data. If "normal", the range is computed - in relation to the extrema of the input data - (same behavior as for cartesian axes). - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - showline - Determines whether or not a line bounding this - axis is drawn. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - side - Determines on which side of radial axis line - the tick and tick labels appear. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the tick font. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.layout. - polar.radialaxis.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.lay - out.polar.radialaxis.tickformatstopdefaults), - sets the default property values to use for - elements of - layout.polar.radialaxis.tickformatstops - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.layout.polar.radia - laxis.Title` instance or dict with compatible - properties - type - Sets the axis type. By default, plotly attempts - to determined the axis type by looking into the - data of the traces that referenced the axis in - question. - uirevision - Controls persistence of user-driven changes in - axis `range`, `autorange`, `angle`, and `title` - if in `editable: true` configuration. Defaults - to `polar.uirevision`. - visible - A single toggle to hide the axis while - preserving interaction like dragging. Default - is true when a cheater plot is present on the - axis, otherwise false - Returns ------- plotly.graph_objs.layout.polar.RadialAxis """ - return self["radialaxis"] + return self['radialaxis'] @radialaxis.setter def radialaxis(self, val): - self["radialaxis"] = val + self['radialaxis'] = val # sector # ------ @property def sector(self): """ - Sets angular span of this polar subplot with two angles (in - degrees). Sector are assumed to be spanned in the - counterclockwise direction with 0 corresponding to rightmost - limit of the polar subplot. - - The 'sector' property is an info array that may be specified as: - - * a list or tuple of 2 elements where: - (0) The 'sector[0]' property is a number and may be specified as: - - An int or float - (1) The 'sector[1]' property is a number and may be specified as: - - An int or float + Sets angular span of this polar subplot with two angles (in + degrees). Sector are assumed to be spanned in the + counterclockwise direction with 0 corresponding to rightmost + limit of the polar subplot. + + The 'sector' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'sector[0]' property is a number and may be specified as: + - An int or float + (1) The 'sector[1]' property is a number and may be specified as: + - An int or float - Returns - ------- - list + Returns + ------- + list """ - return self["sector"] + return self['sector'] @sector.setter def sector(self, val): - self["sector"] = val + self['sector'] = val # uirevision # ---------- @@ -926,11 +236,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # Self properties description # --------------------------- @@ -980,22 +290,20 @@ def _prop_descriptions(self): attributes, if not overridden in the individual axes. Defaults to `layout.uirevision`. """ - - def __init__( - self, - arg=None, - angularaxis=None, - bargap=None, - barmode=None, - bgcolor=None, - domain=None, - gridshape=None, - hole=None, - radialaxis=None, - sector=None, - uirevision=None, - **kwargs, - ): + def __init__(self, + arg=None, + angularaxis=None, + bargap=None, + barmode=None, + bgcolor=None, + domain=None, + gridshape=None, + hole=None, + radialaxis=None, + sector=None, + uirevision=None, + **kwargs + ): """ Construct a new Polar object @@ -1051,10 +359,10 @@ def __init__( ------- Polar """ - super(Polar, self).__init__("polar") + super(Polar, self).__init__('polar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1066,60 +374,29 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.Polar constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.Polar`""" - ) +an instance of :class:`plotly.graph_objs.layout.Polar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("angularaxis", None) - _v = angularaxis if angularaxis is not None else _v - if _v is not None: - self["angularaxis"] = _v - _v = arg.pop("bargap", None) - _v = bargap if bargap is not None else _v - if _v is not None: - self["bargap"] = _v - _v = arg.pop("barmode", None) - _v = barmode if barmode is not None else _v - if _v is not None: - self["barmode"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("domain", None) - _v = domain if domain is not None else _v - if _v is not None: - self["domain"] = _v - _v = arg.pop("gridshape", None) - _v = gridshape if gridshape is not None else _v - if _v is not None: - self["gridshape"] = _v - _v = arg.pop("hole", None) - _v = hole if hole is not None else _v - if _v is not None: - self["hole"] = _v - _v = arg.pop("radialaxis", None) - _v = radialaxis if radialaxis is not None else _v - if _v is not None: - self["radialaxis"] = _v - _v = arg.pop("sector", None) - _v = sector if sector is not None else _v - if _v is not None: - self["sector"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v + self._init_provided('angularaxis', arg, angularaxis) + self._init_provided('bargap', arg, bargap) + self._init_provided('barmode', arg, barmode) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('domain', arg, domain) + self._init_provided('gridshape', arg, gridshape) + self._init_provided('hole', arg, hole) + self._init_provided('radialaxis', arg, radialaxis) + self._init_provided('sector', arg, sector) + self._init_provided('uirevision', arg, uirevision) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_scene.py b/packages/python/plotly/plotly/graph_objs/layout/_scene.py index 5e50a9c14c7..aefb2a306fd 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_scene.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_scene.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,23 +8,9 @@ class Scene(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.scene" - _valid_props = { - "annotationdefaults", - "annotations", - "aspectmode", - "aspectratio", - "bgcolor", - "camera", - "domain", - "dragmode", - "hovermode", - "uirevision", - "xaxis", - "yaxis", - "zaxis", - } + _parent_path_str = 'layout' + _path_str = 'layout.scene' + _valid_props = {"annotationdefaults", "annotations", "aspectmode", "aspectratio", "bgcolor", "camera", "domain", "dragmode", "hovermode", "uirevision", "xaxis", "yaxis", "zaxis"} # annotations # ----------- @@ -35,194 +23,15 @@ def annotations(self): - A list or tuple of dicts of string/value properties that will be passed to the Annotation constructor - Supported dict properties: - - align - Sets the horizontal alignment of the `text` - within the box. Has an effect only if `text` - spans two or more lines (i.e. `text` contains - one or more
HTML tags) or if an explicit - width is set to override the text width. - arrowcolor - Sets the color of the annotation arrow. - arrowhead - Sets the end annotation arrow head style. - arrowside - Sets the annotation arrow head position. - arrowsize - Sets the size of the end annotation arrow head, - relative to `arrowwidth`. A value of 1 - (default) gives a head about 3x as wide as the - line. - arrowwidth - Sets the width (in px) of annotation arrow - line. - ax - Sets the x component of the arrow tail about - the arrow head (in pixels). - ay - Sets the y component of the arrow tail about - the arrow head (in pixels). - bgcolor - Sets the background color of the annotation. - bordercolor - Sets the color of the border enclosing the - annotation `text`. - borderpad - Sets the padding (in px) between the `text` and - the enclosing border. - borderwidth - Sets the width (in px) of the border enclosing - the annotation `text`. - captureevents - Determines whether the annotation text box - captures mouse move and click events, or allows - those events to pass through to data points in - the plot that may be behind the annotation. By - default `captureevents` is False unless - `hovertext` is provided. If you use the event - `plotly_clickannotation` without `hovertext` - you must explicitly enable `captureevents`. - font - Sets the annotation text font. - height - Sets an explicit height for the text box. null - (default) lets the text set the box height. - Taller text will be clipped. - hoverlabel - :class:`plotly.graph_objects.layout.scene.annot - ation.Hoverlabel` instance or dict with - compatible properties - hovertext - Sets text to appear when hovering over this - annotation. If omitted or blank, no hover label - will appear. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - opacity - Sets the opacity of the annotation (text + - arrow). - showarrow - Determines whether or not the annotation is - drawn with an arrow. If True, `text` is placed - near the arrow's tail. If False, `text` lines - up with the `x` and `y` provided. - standoff - Sets a distance, in pixels, to move the end - arrowhead away from the position it is pointing - at, for example to point at the edge of a - marker independent of zoom. Note that this - shortens the arrow from the `ax` / `ay` vector, - in contrast to `xshift` / `yshift` which moves - everything by this amount. - startarrowhead - Sets the start annotation arrow head style. - startarrowsize - Sets the size of the start annotation arrow - head, relative to `arrowwidth`. A value of 1 - (default) gives a head about 3x as wide as the - line. - startstandoff - Sets a distance, in pixels, to move the start - arrowhead away from the position it is pointing - at, for example to point at the edge of a - marker independent of zoom. Note that this - shortens the arrow from the `ax` / `ay` vector, - in contrast to `xshift` / `yshift` which moves - everything by this amount. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - text - Sets the text associated with this annotation. - Plotly uses a subset of HTML tags to do things - like newline (
), bold (), italics - (), hyperlinks (). - Tags , , , , are - also supported. - textangle - Sets the angle at which the `text` is drawn - with respect to the horizontal. - valign - Sets the vertical alignment of the `text` - within the box. Has an effect only if an - explicit height is set to override the text - height. - visible - Determines whether or not this annotation is - visible. - width - Sets an explicit width for the text box. null - (default) lets the text set the box width. - Wider text will be clipped. There is no - automatic wrapping; use
to start a new - line. - x - Sets the annotation's x position. - xanchor - Sets the text box's horizontal position anchor - This anchor binds the `x` position to the - "left", "center" or "right" of the annotation. - For example, if `x` is set to 1, `xref` to - "paper" and `xanchor` to "right" then the - right-most portion of the annotation lines up - with the right-most edge of the plotting area. - If "auto", the anchor is equivalent to "center" - for data-referenced annotations or if there is - an arrow, whereas for paper-referenced with no - arrow, the anchor picked corresponds to the - closest side. - xshift - Shifts the position of the whole annotation and - arrow to the right (positive) or left - (negative) by this many pixels. - y - Sets the annotation's y position. - yanchor - Sets the text box's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the annotation. - For example, if `y` is set to 1, `yref` to - "paper" and `yanchor` to "top" then the top- - most portion of the annotation lines up with - the top-most edge of the plotting area. If - "auto", the anchor is equivalent to "middle" - for data-referenced annotations or if there is - an arrow, whereas for paper-referenced with no - arrow, the anchor picked corresponds to the - closest side. - yshift - Shifts the position of the whole annotation and - arrow up (positive) or down (negative) by this - many pixels. - z - Sets the annotation's z position. - Returns ------- tuple[plotly.graph_objs.layout.scene.Annotation] """ - return self["annotations"] + return self['annotations'] @annotations.setter def annotations(self, val): - self["annotations"] = val + self['annotations'] = val # annotationdefaults # ------------------ @@ -240,17 +49,15 @@ def annotationdefaults(self): - A dict of string/value properties that will be passed to the Annotation constructor - Supported dict properties: - Returns ------- plotly.graph_objs.layout.scene.Annotation """ - return self["annotationdefaults"] + return self['annotationdefaults'] @annotationdefaults.setter def annotationdefaults(self, val): - self["annotationdefaults"] = val + self['annotationdefaults'] = val # aspectmode # ---------- @@ -274,11 +81,11 @@ def aspectmode(self): ------- Any """ - return self["aspectmode"] + return self['aspectmode'] @aspectmode.setter def aspectmode(self, val): - self["aspectmode"] = val + self['aspectmode'] = val # aspectratio # ----------- @@ -293,23 +100,15 @@ def aspectratio(self): - A dict of string/value properties that will be passed to the Aspectratio constructor - Supported dict properties: - - x - - y - - z - Returns ------- plotly.graph_objs.layout.scene.Aspectratio """ - return self["aspectratio"] + return self['aspectratio'] @aspectratio.setter def aspectratio(self, val): - self["aspectratio"] = val + self['aspectratio'] = val # bgcolor # ------- @@ -321,52 +120,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # camera # ------ @@ -379,38 +143,15 @@ def camera(self): - A dict of string/value properties that will be passed to the Camera constructor - Supported dict properties: - - center - Sets the (x,y,z) components of the 'center' - camera vector This vector determines the - translation (x,y,z) space about the center of - this scene. By default, there is no such - translation. - eye - Sets the (x,y,z) components of the 'eye' camera - vector. This vector determines the view point - about the origin of this scene. - projection - :class:`plotly.graph_objects.layout.scene.camer - a.Projection` instance or dict with compatible - properties - up - Sets the (x,y,z) components of the 'up' camera - vector. This vector determines the up direction - of this scene with respect to the page. The - default is *{x: 0, y: 0, z: 1}* which means - that the z axis points up. - Returns ------- plotly.graph_objs.layout.scene.Camera """ - return self["camera"] + return self['camera'] @camera.setter def camera(self, val): - self["camera"] = val + self['camera'] = val # domain # ------ @@ -423,31 +164,15 @@ def domain(self): - A dict of string/value properties that will be passed to the Domain constructor - Supported dict properties: - - column - If there is a layout grid, use the domain for - this column in the grid for this scene subplot - . - row - If there is a layout grid, use the domain for - this row in the grid for this scene subplot . - x - Sets the horizontal domain of this scene - subplot (in plot fraction). - y - Sets the vertical domain of this scene subplot - (in plot fraction). - Returns ------- plotly.graph_objs.layout.scene.Domain """ - return self["domain"] + return self['domain'] @domain.setter def domain(self, val): - self["domain"] = val + self['domain'] = val # dragmode # -------- @@ -464,11 +189,11 @@ def dragmode(self): ------- Any """ - return self["dragmode"] + return self['dragmode'] @dragmode.setter def dragmode(self, val): - self["dragmode"] = val + self['dragmode'] = val # hovermode # --------- @@ -485,11 +210,11 @@ def hovermode(self): ------- Any """ - return self["hovermode"] + return self['hovermode'] @hovermode.setter def hovermode(self, val): - self["hovermode"] = val + self['hovermode'] = val # uirevision # ---------- @@ -505,11 +230,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # xaxis # ----- @@ -522,345 +247,15 @@ def xaxis(self): - A dict of string/value properties that will be passed to the XAxis constructor - Supported dict properties: - - autorange - Determines whether or not the range of this - axis is computed in relation to the input data. - See `rangemode` for more info. If `range` is - provided and it has a value for both the lower - and upper bound, `autorange` is set to False. - Using "min" applies autorange only to set the - minimum. Using "max" applies autorange only to - set the maximum. Using *min reversed* applies - autorange only to set the minimum on a reversed - axis. Using *max reversed* applies autorange - only to set the maximum on a reversed axis. - Using "reversed" applies autorange on both ends - and reverses the axis direction. - autorangeoptions - :class:`plotly.graph_objects.layout.scene.xaxis - .Autorangeoptions` instance or dict with - compatible properties - autotypenumbers - Using "strict" a numeric string in trace data - is not converted to a number. Using *convert - types* a numeric string in trace data may be - treated as a number during automatic axis - `type` detection. Defaults to - layout.autotypenumbers. - backgroundcolor - Sets the background color of this axis' wall. - calendar - Sets the calendar system to use for `range` and - `tick0` if this is a date axis. This does not - set the calendar for interpreting data on this - axis, that's specified in the trace or via the - global `layout.calendar` - categoryarray - Sets the order in which categories on this axis - appear. Only has an effect if `categoryorder` - is set to "array". Used with `categoryorder`. - categoryarraysrc - Sets the source reference on Chart Studio Cloud - for `categoryarray`. - categoryorder - Specifies the ordering logic for the case of - categorical variables. By default, plotly uses - "trace", which specifies the order that is - present in the data supplied. Set - `categoryorder` to *category ascending* or - *category descending* if order should be - determined by the alphanumerical order of the - category names. Set `categoryorder` to "array" - to derive the ordering from the attribute - `categoryarray`. If a category is not found in - the `categoryarray` array, the sorting behavior - for that attribute will be identical to the - "trace" mode. The unspecified categories will - follow the categories in `categoryarray`. Set - `categoryorder` to *total ascending* or *total - descending* if order should be determined by - the numerical order of the values. Similarly, - the order can be determined by the min, max, - sum, mean, geometric mean or median of all the - values. - color - Sets default for all colors associated with - this axis all at once: line, font, tick, and - grid colors. Grid color is lightened by - blending this with the plot background - Individual pieces can override this. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - gridcolor - Sets the color of the grid lines. - gridwidth - Sets the width (in px) of the grid lines. - hoverformat - Sets the hover text formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - linecolor - Sets the axis line color. - linewidth - Sets the width (in px) of the axis line. - maxallowed - Determines the maximum range of this axis. - minallowed - Determines the minimum range of this axis. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - mirror - Determines if the axis lines or/and ticks are - mirrored to the opposite side of the plotting - area. If True, the axis lines are mirrored. If - "ticks", the axis lines and ticks are mirrored. - If False, mirroring is disable. If "all", axis - lines are mirrored on all shared-axes subplots. - If "allticks", axis lines and ticks are - mirrored on all shared-axes subplots. - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - range - Sets the range of this axis. If the axis `type` - is "log", then you must take the log of your - desired range (e.g. to set the range from 1 to - 100, set the range from 0 to 2). If the axis - `type` is "date", it should be date strings, - like date data, though Date objects and unix - milliseconds will be accepted and converted to - strings. If the axis `type` is "category", it - should be numbers, using the scale where each - category is assigned a serial number from zero - in the order it appears. Leaving either or both - elements `null` impacts the default - `autorange`. - rangemode - If "normal", the range is computed in relation - to the extrema of the input data. If *tozero*`, - the range extends to 0, regardless of the input - data If "nonnegative", the range is non- - negative, regardless of the input data. Applies - only to linear axes. - separatethousands - If "true", even 4-digit integers are separated - showaxeslabels - Sets whether or not this axis is labeled - showbackground - Sets whether or not this axis' wall has a - background color. - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - showline - Determines whether or not a line bounding this - axis is drawn. - showspikes - Sets whether or not spikes starting from data - points to this axis' wall are shown on hover. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - spikecolor - Sets the color of the spikes. - spikesides - Sets whether or not spikes extending from the - projection data points to this axis' wall - boundaries are shown on hover. - spikethickness - Sets the thickness (in px) of the spikes. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the tick font. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.layout. - scene.xaxis.Tickformatstop` instances or dicts - with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.lay - out.scene.xaxis.tickformatstopdefaults), sets - the default property values to use for elements - of layout.scene.xaxis.tickformatstops - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.layout.scene.xaxis - .Title` instance or dict with compatible - properties - type - Sets the axis type. By default, plotly attempts - to determined the axis type by looking into the - data of the traces that referenced the axis in - question. - visible - A single toggle to hide the axis while - preserving interaction like dragging. Default - is true when a cheater plot is present on the - axis, otherwise false - zeroline - Determines whether or not a line is drawn at - along the 0 value of this axis. If True, the - zero line is drawn on top of the grid lines. - zerolinecolor - Sets the line color of the zero line. - zerolinewidth - Sets the width (in px) of the zero line. - Returns ------- plotly.graph_objs.layout.scene.XAxis """ - return self["xaxis"] + return self['xaxis'] @xaxis.setter def xaxis(self, val): - self["xaxis"] = val + self['xaxis'] = val # yaxis # ----- @@ -873,345 +268,15 @@ def yaxis(self): - A dict of string/value properties that will be passed to the YAxis constructor - Supported dict properties: - - autorange - Determines whether or not the range of this - axis is computed in relation to the input data. - See `rangemode` for more info. If `range` is - provided and it has a value for both the lower - and upper bound, `autorange` is set to False. - Using "min" applies autorange only to set the - minimum. Using "max" applies autorange only to - set the maximum. Using *min reversed* applies - autorange only to set the minimum on a reversed - axis. Using *max reversed* applies autorange - only to set the maximum on a reversed axis. - Using "reversed" applies autorange on both ends - and reverses the axis direction. - autorangeoptions - :class:`plotly.graph_objects.layout.scene.yaxis - .Autorangeoptions` instance or dict with - compatible properties - autotypenumbers - Using "strict" a numeric string in trace data - is not converted to a number. Using *convert - types* a numeric string in trace data may be - treated as a number during automatic axis - `type` detection. Defaults to - layout.autotypenumbers. - backgroundcolor - Sets the background color of this axis' wall. - calendar - Sets the calendar system to use for `range` and - `tick0` if this is a date axis. This does not - set the calendar for interpreting data on this - axis, that's specified in the trace or via the - global `layout.calendar` - categoryarray - Sets the order in which categories on this axis - appear. Only has an effect if `categoryorder` - is set to "array". Used with `categoryorder`. - categoryarraysrc - Sets the source reference on Chart Studio Cloud - for `categoryarray`. - categoryorder - Specifies the ordering logic for the case of - categorical variables. By default, plotly uses - "trace", which specifies the order that is - present in the data supplied. Set - `categoryorder` to *category ascending* or - *category descending* if order should be - determined by the alphanumerical order of the - category names. Set `categoryorder` to "array" - to derive the ordering from the attribute - `categoryarray`. If a category is not found in - the `categoryarray` array, the sorting behavior - for that attribute will be identical to the - "trace" mode. The unspecified categories will - follow the categories in `categoryarray`. Set - `categoryorder` to *total ascending* or *total - descending* if order should be determined by - the numerical order of the values. Similarly, - the order can be determined by the min, max, - sum, mean, geometric mean or median of all the - values. - color - Sets default for all colors associated with - this axis all at once: line, font, tick, and - grid colors. Grid color is lightened by - blending this with the plot background - Individual pieces can override this. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - gridcolor - Sets the color of the grid lines. - gridwidth - Sets the width (in px) of the grid lines. - hoverformat - Sets the hover text formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - linecolor - Sets the axis line color. - linewidth - Sets the width (in px) of the axis line. - maxallowed - Determines the maximum range of this axis. - minallowed - Determines the minimum range of this axis. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - mirror - Determines if the axis lines or/and ticks are - mirrored to the opposite side of the plotting - area. If True, the axis lines are mirrored. If - "ticks", the axis lines and ticks are mirrored. - If False, mirroring is disable. If "all", axis - lines are mirrored on all shared-axes subplots. - If "allticks", axis lines and ticks are - mirrored on all shared-axes subplots. - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - range - Sets the range of this axis. If the axis `type` - is "log", then you must take the log of your - desired range (e.g. to set the range from 1 to - 100, set the range from 0 to 2). If the axis - `type` is "date", it should be date strings, - like date data, though Date objects and unix - milliseconds will be accepted and converted to - strings. If the axis `type` is "category", it - should be numbers, using the scale where each - category is assigned a serial number from zero - in the order it appears. Leaving either or both - elements `null` impacts the default - `autorange`. - rangemode - If "normal", the range is computed in relation - to the extrema of the input data. If *tozero*`, - the range extends to 0, regardless of the input - data If "nonnegative", the range is non- - negative, regardless of the input data. Applies - only to linear axes. - separatethousands - If "true", even 4-digit integers are separated - showaxeslabels - Sets whether or not this axis is labeled - showbackground - Sets whether or not this axis' wall has a - background color. - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - showline - Determines whether or not a line bounding this - axis is drawn. - showspikes - Sets whether or not spikes starting from data - points to this axis' wall are shown on hover. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - spikecolor - Sets the color of the spikes. - spikesides - Sets whether or not spikes extending from the - projection data points to this axis' wall - boundaries are shown on hover. - spikethickness - Sets the thickness (in px) of the spikes. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the tick font. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.layout. - scene.yaxis.Tickformatstop` instances or dicts - with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.lay - out.scene.yaxis.tickformatstopdefaults), sets - the default property values to use for elements - of layout.scene.yaxis.tickformatstops - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.layout.scene.yaxis - .Title` instance or dict with compatible - properties - type - Sets the axis type. By default, plotly attempts - to determined the axis type by looking into the - data of the traces that referenced the axis in - question. - visible - A single toggle to hide the axis while - preserving interaction like dragging. Default - is true when a cheater plot is present on the - axis, otherwise false - zeroline - Determines whether or not a line is drawn at - along the 0 value of this axis. If True, the - zero line is drawn on top of the grid lines. - zerolinecolor - Sets the line color of the zero line. - zerolinewidth - Sets the width (in px) of the zero line. - Returns ------- plotly.graph_objs.layout.scene.YAxis """ - return self["yaxis"] + return self['yaxis'] @yaxis.setter def yaxis(self, val): - self["yaxis"] = val + self['yaxis'] = val # zaxis # ----- @@ -1224,345 +289,15 @@ def zaxis(self): - A dict of string/value properties that will be passed to the ZAxis constructor - Supported dict properties: - - autorange - Determines whether or not the range of this - axis is computed in relation to the input data. - See `rangemode` for more info. If `range` is - provided and it has a value for both the lower - and upper bound, `autorange` is set to False. - Using "min" applies autorange only to set the - minimum. Using "max" applies autorange only to - set the maximum. Using *min reversed* applies - autorange only to set the minimum on a reversed - axis. Using *max reversed* applies autorange - only to set the maximum on a reversed axis. - Using "reversed" applies autorange on both ends - and reverses the axis direction. - autorangeoptions - :class:`plotly.graph_objects.layout.scene.zaxis - .Autorangeoptions` instance or dict with - compatible properties - autotypenumbers - Using "strict" a numeric string in trace data - is not converted to a number. Using *convert - types* a numeric string in trace data may be - treated as a number during automatic axis - `type` detection. Defaults to - layout.autotypenumbers. - backgroundcolor - Sets the background color of this axis' wall. - calendar - Sets the calendar system to use for `range` and - `tick0` if this is a date axis. This does not - set the calendar for interpreting data on this - axis, that's specified in the trace or via the - global `layout.calendar` - categoryarray - Sets the order in which categories on this axis - appear. Only has an effect if `categoryorder` - is set to "array". Used with `categoryorder`. - categoryarraysrc - Sets the source reference on Chart Studio Cloud - for `categoryarray`. - categoryorder - Specifies the ordering logic for the case of - categorical variables. By default, plotly uses - "trace", which specifies the order that is - present in the data supplied. Set - `categoryorder` to *category ascending* or - *category descending* if order should be - determined by the alphanumerical order of the - category names. Set `categoryorder` to "array" - to derive the ordering from the attribute - `categoryarray`. If a category is not found in - the `categoryarray` array, the sorting behavior - for that attribute will be identical to the - "trace" mode. The unspecified categories will - follow the categories in `categoryarray`. Set - `categoryorder` to *total ascending* or *total - descending* if order should be determined by - the numerical order of the values. Similarly, - the order can be determined by the min, max, - sum, mean, geometric mean or median of all the - values. - color - Sets default for all colors associated with - this axis all at once: line, font, tick, and - grid colors. Grid color is lightened by - blending this with the plot background - Individual pieces can override this. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - gridcolor - Sets the color of the grid lines. - gridwidth - Sets the width (in px) of the grid lines. - hoverformat - Sets the hover text formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - linecolor - Sets the axis line color. - linewidth - Sets the width (in px) of the axis line. - maxallowed - Determines the maximum range of this axis. - minallowed - Determines the minimum range of this axis. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - mirror - Determines if the axis lines or/and ticks are - mirrored to the opposite side of the plotting - area. If True, the axis lines are mirrored. If - "ticks", the axis lines and ticks are mirrored. - If False, mirroring is disable. If "all", axis - lines are mirrored on all shared-axes subplots. - If "allticks", axis lines and ticks are - mirrored on all shared-axes subplots. - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - range - Sets the range of this axis. If the axis `type` - is "log", then you must take the log of your - desired range (e.g. to set the range from 1 to - 100, set the range from 0 to 2). If the axis - `type` is "date", it should be date strings, - like date data, though Date objects and unix - milliseconds will be accepted and converted to - strings. If the axis `type` is "category", it - should be numbers, using the scale where each - category is assigned a serial number from zero - in the order it appears. Leaving either or both - elements `null` impacts the default - `autorange`. - rangemode - If "normal", the range is computed in relation - to the extrema of the input data. If *tozero*`, - the range extends to 0, regardless of the input - data If "nonnegative", the range is non- - negative, regardless of the input data. Applies - only to linear axes. - separatethousands - If "true", even 4-digit integers are separated - showaxeslabels - Sets whether or not this axis is labeled - showbackground - Sets whether or not this axis' wall has a - background color. - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - showline - Determines whether or not a line bounding this - axis is drawn. - showspikes - Sets whether or not spikes starting from data - points to this axis' wall are shown on hover. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - spikecolor - Sets the color of the spikes. - spikesides - Sets whether or not spikes extending from the - projection data points to this axis' wall - boundaries are shown on hover. - spikethickness - Sets the thickness (in px) of the spikes. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the tick font. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.layout. - scene.zaxis.Tickformatstop` instances or dicts - with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.lay - out.scene.zaxis.tickformatstopdefaults), sets - the default property values to use for elements - of layout.scene.zaxis.tickformatstops - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.layout.scene.zaxis - .Title` instance or dict with compatible - properties - type - Sets the axis type. By default, plotly attempts - to determined the axis type by looking into the - data of the traces that referenced the axis in - question. - visible - A single toggle to hide the axis while - preserving interaction like dragging. Default - is true when a cheater plot is present on the - axis, otherwise false - zeroline - Determines whether or not a line is drawn at - along the 0 value of this axis. If True, the - zero line is drawn on top of the grid lines. - zerolinecolor - Sets the line color of the zero line. - zerolinewidth - Sets the width (in px) of the zero line. - Returns ------- plotly.graph_objs.layout.scene.ZAxis """ - return self["zaxis"] + return self['zaxis'] @zaxis.setter def zaxis(self, val): - self["zaxis"] = val + self['zaxis'] = val # Self properties description # --------------------------- @@ -1618,25 +353,23 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.layout.scene.ZAxis` instance or dict with compatible properties """ - - def __init__( - self, - arg=None, - annotations=None, - annotationdefaults=None, - aspectmode=None, - aspectratio=None, - bgcolor=None, - camera=None, - domain=None, - dragmode=None, - hovermode=None, - uirevision=None, - xaxis=None, - yaxis=None, - zaxis=None, - **kwargs, - ): + def __init__(self, + arg=None, + annotations=None, + annotationdefaults=None, + aspectmode=None, + aspectratio=None, + bgcolor=None, + camera=None, + domain=None, + dragmode=None, + hovermode=None, + uirevision=None, + xaxis=None, + yaxis=None, + zaxis=None, + **kwargs + ): """ Construct a new Scene object @@ -1698,10 +431,10 @@ def __init__( ------- Scene """ - super(Scene, self).__init__("scene") + super(Scene, self).__init__('scene') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1713,72 +446,32 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.Scene constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.Scene`""" - ) +an instance of :class:`plotly.graph_objs.layout.Scene`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("annotations", None) - _v = annotations if annotations is not None else _v - if _v is not None: - self["annotations"] = _v - _v = arg.pop("annotationdefaults", None) - _v = annotationdefaults if annotationdefaults is not None else _v - if _v is not None: - self["annotationdefaults"] = _v - _v = arg.pop("aspectmode", None) - _v = aspectmode if aspectmode is not None else _v - if _v is not None: - self["aspectmode"] = _v - _v = arg.pop("aspectratio", None) - _v = aspectratio if aspectratio is not None else _v - if _v is not None: - self["aspectratio"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("camera", None) - _v = camera if camera is not None else _v - if _v is not None: - self["camera"] = _v - _v = arg.pop("domain", None) - _v = domain if domain is not None else _v - if _v is not None: - self["domain"] = _v - _v = arg.pop("dragmode", None) - _v = dragmode if dragmode is not None else _v - if _v is not None: - self["dragmode"] = _v - _v = arg.pop("hovermode", None) - _v = hovermode if hovermode is not None else _v - if _v is not None: - self["hovermode"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("xaxis", None) - _v = xaxis if xaxis is not None else _v - if _v is not None: - self["xaxis"] = _v - _v = arg.pop("yaxis", None) - _v = yaxis if yaxis is not None else _v - if _v is not None: - self["yaxis"] = _v - _v = arg.pop("zaxis", None) - _v = zaxis if zaxis is not None else _v - if _v is not None: - self["zaxis"] = _v + self._init_provided('annotations', arg, annotations) + self._init_provided('annotationdefaults', arg, annotationdefaults) + self._init_provided('aspectmode', arg, aspectmode) + self._init_provided('aspectratio', arg, aspectratio) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('camera', arg, camera) + self._init_provided('domain', arg, domain) + self._init_provided('dragmode', arg, dragmode) + self._init_provided('hovermode', arg, hovermode) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('xaxis', arg, xaxis) + self._init_provided('yaxis', arg, yaxis) + self._init_provided('zaxis', arg, zaxis) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_selection.py b/packages/python/plotly/plotly/graph_objs/layout/_selection.py index f4b15935f3d..3b6f42f89fd 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_selection.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_selection.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,22 +8,9 @@ class Selection(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.selection" - _valid_props = { - "line", - "name", - "opacity", - "path", - "templateitemname", - "type", - "x0", - "x1", - "xref", - "y0", - "y1", - "yref", - } + _parent_path_str = 'layout' + _path_str = 'layout.selection' + _valid_props = {"line", "name", "opacity", "path", "templateitemname", "type", "x0", "x1", "xref", "y0", "y1", "yref"} # line # ---- @@ -34,27 +23,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the line color. - dash - 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"). - width - Sets the line width (in px). - Returns ------- plotly.graph_objs.layout.selection.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # name # ---- @@ -77,11 +54,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -97,11 +74,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # path # ---- @@ -119,11 +96,11 @@ def path(self): ------- str """ - return self["path"] + return self['path'] @path.setter def path(self, val): - self["path"] = val + self['path'] = val # templateitemname # ---------------- @@ -147,11 +124,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # type # ---- @@ -171,11 +148,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # x0 # -- @@ -190,11 +167,11 @@ def x0(self): ------- Any """ - return self["x0"] + return self['x0'] @x0.setter def x0(self, val): - self["x0"] = val + self['x0'] = val # x1 # -- @@ -209,11 +186,11 @@ def x1(self): ------- Any """ - return self["x1"] + return self['x1'] @x1.setter def x1(self, val): - self["x1"] = val + self['x1'] = val # xref # ---- @@ -242,11 +219,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y0 # -- @@ -261,11 +238,11 @@ def y0(self): ------- Any """ - return self["y0"] + return self['y0'] @y0.setter def y0(self, val): - self["y0"] = val + self['y0'] = val # y1 # -- @@ -280,11 +257,11 @@ def y1(self): ------- Any """ - return self["y1"] + return self['y1'] @y1.setter def y1(self, val): - self["y1"] = val + self['y1'] = val # yref # ---- @@ -313,11 +290,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -394,24 +371,22 @@ def _prop_descriptions(self): refers to the point between the bottom and the top of the domain of the second y axis. """ - - def __init__( - self, - arg=None, - line=None, - name=None, - opacity=None, - path=None, - templateitemname=None, - type=None, - x0=None, - x1=None, - xref=None, - y0=None, - y1=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + line=None, + name=None, + opacity=None, + path=None, + templateitemname=None, + type=None, + x0=None, + x1=None, + xref=None, + y0=None, + y1=None, + yref=None, + **kwargs + ): """ Construct a new Selection object @@ -495,10 +470,10 @@ def __init__( ------- Selection """ - super(Selection, self).__init__("selections") + super(Selection, self).__init__('selections') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -510,68 +485,31 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.Selection constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.Selection`""" - ) +an instance of :class:`plotly.graph_objs.layout.Selection`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("path", None) - _v = path if path is not None else _v - if _v is not None: - self["path"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("x0", None) - _v = x0 if x0 is not None else _v - if _v is not None: - self["x0"] = _v - _v = arg.pop("x1", None) - _v = x1 if x1 is not None else _v - if _v is not None: - self["x1"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y0", None) - _v = y0 if y0 is not None else _v - if _v is not None: - self["y0"] = _v - _v = arg.pop("y1", None) - _v = y1 if y1 is not None else _v - if _v is not None: - self["y1"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('line', arg, line) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('path', arg, path) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('type', arg, type) + self._init_provided('x0', arg, x0) + self._init_provided('x1', arg, x1) + self._init_provided('xref', arg, xref) + self._init_provided('y0', arg, y0) + self._init_provided('y1', arg, y1) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_shape.py b/packages/python/plotly/plotly/graph_objs/layout/_shape.py index 3ca398a3206..0298a91188a 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_shape.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_shape.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,42 +8,9 @@ class Shape(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.shape" - _valid_props = { - "editable", - "fillcolor", - "fillrule", - "label", - "layer", - "legend", - "legendgroup", - "legendgrouptitle", - "legendrank", - "legendwidth", - "line", - "name", - "opacity", - "path", - "showlegend", - "templateitemname", - "type", - "visible", - "x0", - "x0shift", - "x1", - "x1shift", - "xanchor", - "xref", - "xsizemode", - "y0", - "y0shift", - "y1", - "y1shift", - "yanchor", - "yref", - "ysizemode", - } + _parent_path_str = 'layout' + _path_str = 'layout.shape' + _valid_props = {"editable", "fillcolor", "fillrule", "label", "layer", "legend", "legendgroup", "legendgrouptitle", "legendrank", "legendwidth", "line", "name", "opacity", "path", "showlegend", "templateitemname", "type", "visible", "x0", "x0shift", "x1", "x1shift", "xanchor", "xref", "xsizemode", "y0", "y0shift", "y1", "y1shift", "yanchor", "yref", "ysizemode"} # editable # -------- @@ -59,11 +28,11 @@ def editable(self): ------- bool """ - return self["editable"] + return self['editable'] @editable.setter def editable(self, val): - self["editable"] = val + self['editable'] = val # fillcolor # --------- @@ -78,52 +47,17 @@ def fillcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["fillcolor"] + return self['fillcolor'] @fillcolor.setter def fillcolor(self, val): - self["fillcolor"] = val + self['fillcolor'] = val # fillrule # -------- @@ -143,11 +77,11 @@ def fillrule(self): ------- Any """ - return self["fillrule"] + return self['fillrule'] @fillrule.setter def fillrule(self, val): - self["fillrule"] = val + self['fillrule'] = val # label # ----- @@ -160,84 +94,15 @@ def label(self): - A dict of string/value properties that will be passed to the Label constructor - Supported dict properties: - - font - Sets the shape label text font. - padding - Sets padding (in px) between edge of label and - edge of shape. - text - Sets the text to display with shape. It is also - used for legend item if `name` is not provided. - textangle - Sets the angle at which the label text is drawn - with respect to the horizontal. For lines, - angle "auto" is the same angle as the line. For - all other shapes, angle "auto" is horizontal. - textposition - Sets the position of the label text relative to - the shape. Supported values for rectangles, - circles and paths are *top left*, *top center*, - *top right*, *middle left*, *middle center*, - *middle right*, *bottom left*, *bottom center*, - and *bottom right*. Supported values for lines - are "start", "middle", and "end". Default: - *middle center* for rectangles, circles, and - paths; "middle" for lines. - texttemplate - Template string used for rendering the shape's - label. Note that this will override `text`. - Variables are inserted using %{variable}, for - example "x0: %{x0}". Numbers are formatted - using d3-format's syntax %{variable:d3-format}, - for example "Price: %{x0:$.2f}". See https://gi - thub.com/d3/d3-format/tree/v1.4.5#d3-format for - details on the formatting syntax. Dates are - formatted using d3-time-format's syntax - %{variable|d3-time-format}, for example "Day: - %{x0|%m %b %Y}". See - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. A single - multiplication or division operation may be - applied to numeric variables, and combined with - d3 number formatting, for example "Length in - cm: %{x0*2.54}", "%{slope*60:.1f} meters per - second." For log axes, variable values are - given in log units. For date axes, x/y - coordinate variables and center variables use - datetimes, while all other variable values use - values in ms. Finally, the template string has - access to variables `x0`, `x1`, `y0`, `y1`, - `slope`, `dx`, `dy`, `width`, `height`, - `length`, `xcenter` and `ycenter`. - xanchor - Sets the label's horizontal position anchor - This anchor binds the specified `textposition` - to the "left", "center" or "right" of the label - text. For example, if `textposition` is set to - *top right* and `xanchor` to "right" then the - right-most portion of the label text lines up - with the right-most edge of the shape. - yanchor - Sets the label's vertical position anchor This - anchor binds the specified `textposition` to - the "top", "middle" or "bottom" of the label - text. For example, if `textposition` is set to - *top right* and `yanchor` to "top" then the - top-most portion of the label text lines up - with the top-most edge of the shape. - Returns ------- plotly.graph_objs.layout.shape.Label """ - return self["label"] + return self['label'] @label.setter def label(self, val): - self["label"] = val + self['label'] = val # layer # ----- @@ -256,11 +121,11 @@ def layer(self): ------- Any """ - return self["layer"] + return self['layer'] @layer.setter def layer(self, val): - self["layer"] = val + self['layer'] = val # legend # ------ @@ -281,11 +146,11 @@ def legend(self): ------- str """ - return self["legend"] + return self['legend'] @legend.setter def legend(self, val): - self["legend"] = val + self['legend'] = val # legendgroup # ----------- @@ -304,11 +169,11 @@ def legendgroup(self): ------- str """ - return self["legendgroup"] + return self['legendgroup'] @legendgroup.setter def legendgroup(self, val): - self["legendgroup"] = val + self['legendgroup'] = val # legendgrouptitle # ---------------- @@ -321,22 +186,15 @@ def legendgrouptitle(self): - A dict of string/value properties that will be passed to the Legendgrouptitle constructor - Supported dict properties: - - font - Sets this legend group's title font. - text - Sets the title of the legend group. - Returns ------- plotly.graph_objs.layout.shape.Legendgrouptitle """ - return self["legendgrouptitle"] + return self['legendgrouptitle'] @legendgrouptitle.setter def legendgrouptitle(self, val): - self["legendgrouptitle"] = val + self['legendgrouptitle'] = val # legendrank # ---------- @@ -359,11 +217,11 @@ def legendrank(self): ------- int|float """ - return self["legendrank"] + return self['legendrank'] @legendrank.setter def legendrank(self, val): - self["legendrank"] = val + self['legendrank'] = val # legendwidth # ----------- @@ -380,11 +238,11 @@ def legendwidth(self): ------- int|float """ - return self["legendwidth"] + return self['legendwidth'] @legendwidth.setter def legendwidth(self, val): - self["legendwidth"] = val + self['legendwidth'] = val # line # ---- @@ -397,27 +255,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the line color. - dash - 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"). - width - Sets the line width (in px). - Returns ------- plotly.graph_objs.layout.shape.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # name # ---- @@ -440,11 +286,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -460,11 +306,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # path # ---- @@ -499,11 +345,11 @@ def path(self): ------- str """ - return self["path"] + return self['path'] @path.setter def path(self, val): - self["path"] = val + self['path'] = val # showlegend # ---------- @@ -519,11 +365,11 @@ def showlegend(self): ------- bool """ - return self["showlegend"] + return self['showlegend'] @showlegend.setter def showlegend(self, val): - self["showlegend"] = val + self['showlegend'] = val # templateitemname # ---------------- @@ -547,11 +393,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # type # ---- @@ -576,11 +422,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # visible # ------- @@ -599,11 +445,11 @@ def visible(self): ------- Any """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # x0 # -- @@ -619,11 +465,11 @@ def x0(self): ------- Any """ - return self["x0"] + return self['x0'] @x0.setter def x0(self, val): - self["x0"] = val + self['x0'] = val # x0shift # ------- @@ -642,11 +488,11 @@ def x0shift(self): ------- int|float """ - return self["x0shift"] + return self['x0shift'] @x0shift.setter def x0shift(self, val): - self["x0shift"] = val + self['x0shift'] = val # x1 # -- @@ -662,11 +508,11 @@ def x1(self): ------- Any """ - return self["x1"] + return self['x1'] @x1.setter def x1(self, val): - self["x1"] = val + self['x1'] = val # x1shift # ------- @@ -685,11 +531,11 @@ def x1shift(self): ------- int|float """ - return self["x1shift"] + return self['x1shift'] @x1shift.setter def x1shift(self, val): - self["x1shift"] = val + self['x1shift'] = val # xanchor # ------- @@ -708,11 +554,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xref # ---- @@ -741,11 +587,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # xsizemode # --------- @@ -769,11 +615,11 @@ def xsizemode(self): ------- Any """ - return self["xsizemode"] + return self['xsizemode'] @xsizemode.setter def xsizemode(self, val): - self["xsizemode"] = val + self['xsizemode'] = val # y0 # -- @@ -789,11 +635,11 @@ def y0(self): ------- Any """ - return self["y0"] + return self['y0'] @y0.setter def y0(self, val): - self["y0"] = val + self['y0'] = val # y0shift # ------- @@ -812,11 +658,11 @@ def y0shift(self): ------- int|float """ - return self["y0shift"] + return self['y0shift'] @y0shift.setter def y0shift(self, val): - self["y0shift"] = val + self['y0shift'] = val # y1 # -- @@ -832,11 +678,11 @@ def y1(self): ------- Any """ - return self["y1"] + return self['y1'] @y1.setter def y1(self, val): - self["y1"] = val + self['y1'] = val # y1shift # ------- @@ -855,11 +701,11 @@ def y1shift(self): ------- int|float """ - return self["y1shift"] + return self['y1shift'] @y1shift.setter def y1shift(self, val): - self["y1shift"] = val + self['y1shift'] = val # yanchor # ------- @@ -878,11 +724,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # yref # ---- @@ -911,11 +757,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # ysizemode # --------- @@ -939,11 +785,11 @@ def ysizemode(self): ------- Any """ - return self["ysizemode"] + return self['ysizemode'] @ysizemode.setter def ysizemode(self, val): - self["ysizemode"] = val + self['ysizemode'] = val # Self properties description # --------------------------- @@ -1160,44 +1006,42 @@ def _prop_descriptions(self): maintaining a position relative to data or plot fraction. """ - - def __init__( - self, - arg=None, - editable=None, - fillcolor=None, - fillrule=None, - label=None, - layer=None, - legend=None, - legendgroup=None, - legendgrouptitle=None, - legendrank=None, - legendwidth=None, - line=None, - name=None, - opacity=None, - path=None, - showlegend=None, - templateitemname=None, - type=None, - visible=None, - x0=None, - x0shift=None, - x1=None, - x1shift=None, - xanchor=None, - xref=None, - xsizemode=None, - y0=None, - y0shift=None, - y1=None, - y1shift=None, - yanchor=None, - yref=None, - ysizemode=None, - **kwargs, - ): + def __init__(self, + arg=None, + editable=None, + fillcolor=None, + fillrule=None, + label=None, + layer=None, + legend=None, + legendgroup=None, + legendgrouptitle=None, + legendrank=None, + legendwidth=None, + line=None, + name=None, + opacity=None, + path=None, + showlegend=None, + templateitemname=None, + type=None, + visible=None, + x0=None, + x0shift=None, + x1=None, + x1shift=None, + xanchor=None, + xref=None, + xsizemode=None, + y0=None, + y0shift=None, + y1=None, + y1shift=None, + yanchor=None, + yref=None, + ysizemode=None, + **kwargs + ): """ Construct a new Shape object @@ -1420,10 +1264,10 @@ def __init__( ------- Shape """ - super(Shape, self).__init__("shapes") + super(Shape, self).__init__('shapes') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1435,148 +1279,51 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.Shape constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.Shape`""" - ) +an instance of :class:`plotly.graph_objs.layout.Shape`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("editable", None) - _v = editable if editable is not None else _v - if _v is not None: - self["editable"] = _v - _v = arg.pop("fillcolor", None) - _v = fillcolor if fillcolor is not None else _v - if _v is not None: - self["fillcolor"] = _v - _v = arg.pop("fillrule", None) - _v = fillrule if fillrule is not None else _v - if _v is not None: - self["fillrule"] = _v - _v = arg.pop("label", None) - _v = label if label is not None else _v - if _v is not None: - self["label"] = _v - _v = arg.pop("layer", None) - _v = layer if layer is not None else _v - if _v is not None: - self["layer"] = _v - _v = arg.pop("legend", None) - _v = legend if legend is not None else _v - if _v is not None: - self["legend"] = _v - _v = arg.pop("legendgroup", None) - _v = legendgroup if legendgroup is not None else _v - if _v is not None: - self["legendgroup"] = _v - _v = arg.pop("legendgrouptitle", None) - _v = legendgrouptitle if legendgrouptitle is not None else _v - if _v is not None: - self["legendgrouptitle"] = _v - _v = arg.pop("legendrank", None) - _v = legendrank if legendrank is not None else _v - if _v is not None: - self["legendrank"] = _v - _v = arg.pop("legendwidth", None) - _v = legendwidth if legendwidth is not None else _v - if _v is not None: - self["legendwidth"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("path", None) - _v = path if path is not None else _v - if _v is not None: - self["path"] = _v - _v = arg.pop("showlegend", None) - _v = showlegend if showlegend is not None else _v - if _v is not None: - self["showlegend"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("x0", None) - _v = x0 if x0 is not None else _v - if _v is not None: - self["x0"] = _v - _v = arg.pop("x0shift", None) - _v = x0shift if x0shift is not None else _v - if _v is not None: - self["x0shift"] = _v - _v = arg.pop("x1", None) - _v = x1 if x1 is not None else _v - if _v is not None: - self["x1"] = _v - _v = arg.pop("x1shift", None) - _v = x1shift if x1shift is not None else _v - if _v is not None: - self["x1shift"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("xsizemode", None) - _v = xsizemode if xsizemode is not None else _v - if _v is not None: - self["xsizemode"] = _v - _v = arg.pop("y0", None) - _v = y0 if y0 is not None else _v - if _v is not None: - self["y0"] = _v - _v = arg.pop("y0shift", None) - _v = y0shift if y0shift is not None else _v - if _v is not None: - self["y0shift"] = _v - _v = arg.pop("y1", None) - _v = y1 if y1 is not None else _v - if _v is not None: - self["y1"] = _v - _v = arg.pop("y1shift", None) - _v = y1shift if y1shift is not None else _v - if _v is not None: - self["y1shift"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v - _v = arg.pop("ysizemode", None) - _v = ysizemode if ysizemode is not None else _v - if _v is not None: - self["ysizemode"] = _v + self._init_provided('editable', arg, editable) + self._init_provided('fillcolor', arg, fillcolor) + self._init_provided('fillrule', arg, fillrule) + self._init_provided('label', arg, label) + self._init_provided('layer', arg, layer) + self._init_provided('legend', arg, legend) + self._init_provided('legendgroup', arg, legendgroup) + self._init_provided('legendgrouptitle', arg, legendgrouptitle) + self._init_provided('legendrank', arg, legendrank) + self._init_provided('legendwidth', arg, legendwidth) + self._init_provided('line', arg, line) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('path', arg, path) + self._init_provided('showlegend', arg, showlegend) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('type', arg, type) + self._init_provided('visible', arg, visible) + self._init_provided('x0', arg, x0) + self._init_provided('x0shift', arg, x0shift) + self._init_provided('x1', arg, x1) + self._init_provided('x1shift', arg, x1shift) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xref', arg, xref) + self._init_provided('xsizemode', arg, xsizemode) + self._init_provided('y0', arg, y0) + self._init_provided('y0shift', arg, y0shift) + self._init_provided('y1', arg, y1) + self._init_provided('y1shift', arg, y1shift) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('yref', arg, yref) + self._init_provided('ysizemode', arg, ysizemode) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_slider.py b/packages/python/plotly/plotly/graph_objs/layout/_slider.py index b341f45efcb..65a2bfb8698 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_slider.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_slider.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,34 +8,9 @@ class Slider(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.slider" - _valid_props = { - "active", - "activebgcolor", - "bgcolor", - "bordercolor", - "borderwidth", - "currentvalue", - "font", - "len", - "lenmode", - "minorticklen", - "name", - "pad", - "stepdefaults", - "steps", - "templateitemname", - "tickcolor", - "ticklen", - "tickwidth", - "transition", - "visible", - "x", - "xanchor", - "y", - "yanchor", - } + _parent_path_str = 'layout' + _path_str = 'layout.slider' + _valid_props = {"active", "activebgcolor", "bgcolor", "bordercolor", "borderwidth", "currentvalue", "font", "len", "lenmode", "minorticklen", "name", "pad", "stepdefaults", "steps", "templateitemname", "tickcolor", "ticklen", "tickwidth", "transition", "visible", "x", "xanchor", "y", "yanchor"} # active # ------ @@ -50,11 +27,11 @@ def active(self): ------- int|float """ - return self["active"] + return self['active'] @active.setter def active(self, val): - self["active"] = val + self['active'] = val # activebgcolor # ------------- @@ -68,52 +45,17 @@ def activebgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["activebgcolor"] + return self['activebgcolor'] @activebgcolor.setter def activebgcolor(self, val): - self["activebgcolor"] = val + self['activebgcolor'] = val # bgcolor # ------- @@ -127,52 +69,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -186,52 +93,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -247,11 +119,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # currentvalue # ------------ @@ -264,35 +136,15 @@ def currentvalue(self): - A dict of string/value properties that will be passed to the Currentvalue constructor - Supported dict properties: - - font - Sets the font of the current value label text. - offset - The amount of space, in pixels, between the - current value label and the slider. - prefix - When currentvalue.visible is true, this sets - the prefix of the label. - suffix - When currentvalue.visible is true, this sets - the suffix of the label. - visible - Shows the currently-selected value above the - slider. - xanchor - The alignment of the value readout relative to - the length of the slider. - Returns ------- plotly.graph_objs.layout.slider.Currentvalue """ - return self["currentvalue"] + return self['currentvalue'] @currentvalue.setter def currentvalue(self, val): - self["currentvalue"] = val + self['currentvalue'] = val # font # ---- @@ -307,61 +159,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.slider.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # len # --- @@ -379,11 +185,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -401,11 +207,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minorticklen # ------------ @@ -421,11 +227,11 @@ def minorticklen(self): ------- int|float """ - return self["minorticklen"] + return self['minorticklen'] @minorticklen.setter def minorticklen(self, val): - self["minorticklen"] = val + self['minorticklen'] = val # name # ---- @@ -448,11 +254,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # pad # --- @@ -467,30 +273,15 @@ def pad(self): - A dict of string/value properties that will be passed to the Pad constructor - Supported dict properties: - - b - The amount of padding (in px) along the bottom - of the component. - l - The amount of padding (in px) on the left side - of the component. - r - The amount of padding (in px) on the right side - of the component. - t - The amount of padding (in px) along the top of - the component. - Returns ------- plotly.graph_objs.layout.slider.Pad """ - return self["pad"] + return self['pad'] @pad.setter def pad(self, val): - self["pad"] = val + self['pad'] = val # steps # ----- @@ -503,69 +294,15 @@ def steps(self): - A list or tuple of dicts of string/value properties that will be passed to the Step constructor - Supported dict properties: - - args - Sets the arguments values to be passed to the - Plotly method set in `method` on slide. - execute - When true, the API method is executed. When - false, all other behaviors are the same and - command execution is skipped. This may be - useful when hooking into, for example, the - `plotly_sliderchange` method and executing the - API command manually without losing the benefit - of the slider automatically binding to the - state of the plot through the specification of - `method` and `args`. - label - Sets the text label to appear on the slider - method - Sets the Plotly method to be called when the - slider value is changed. If the `skip` method - is used, the API slider will function as normal - but will perform no API calls and will not bind - automatically to state updates. This may be - used to create a component interface and attach - to slider events manually via JavaScript. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - Sets the value of the slider step, used to - refer to the step programatically. Defaults to - the slider label if not provided. - visible - Determines whether or not this step is included - in the slider. - Returns ------- tuple[plotly.graph_objs.layout.slider.Step] """ - return self["steps"] + return self['steps'] @steps.setter def steps(self, val): - self["steps"] = val + self['steps'] = val # stepdefaults # ------------ @@ -582,17 +319,15 @@ def stepdefaults(self): - A dict of string/value properties that will be passed to the Step constructor - Supported dict properties: - Returns ------- plotly.graph_objs.layout.slider.Step """ - return self["stepdefaults"] + return self['stepdefaults'] @stepdefaults.setter def stepdefaults(self, val): - self["stepdefaults"] = val + self['stepdefaults'] = val # templateitemname # ---------------- @@ -616,11 +351,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # tickcolor # --------- @@ -634,52 +369,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # ticklen # ------- @@ -695,11 +395,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickwidth # --------- @@ -715,11 +415,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # transition # ---------- @@ -732,23 +432,15 @@ def transition(self): - A dict of string/value properties that will be passed to the Transition constructor - Supported dict properties: - - duration - Sets the duration of the slider transition - easing - Sets the easing function of the slider - transition - Returns ------- plotly.graph_objs.layout.slider.Transition """ - return self["transition"] + return self['transition'] @transition.setter def transition(self, val): - self["transition"] = val + self['transition'] = val # visible # ------- @@ -764,11 +456,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # x # - @@ -784,11 +476,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -807,11 +499,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # y # - @@ -827,11 +519,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -850,11 +542,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # Self properties description # --------------------------- @@ -946,36 +638,34 @@ def _prop_descriptions(self): binds the `y` position to the "top", "middle" or "bottom" of the range selector. """ - - def __init__( - self, - arg=None, - active=None, - activebgcolor=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - currentvalue=None, - font=None, - len=None, - lenmode=None, - minorticklen=None, - name=None, - pad=None, - steps=None, - stepdefaults=None, - templateitemname=None, - tickcolor=None, - ticklen=None, - tickwidth=None, - transition=None, - visible=None, - x=None, - xanchor=None, - y=None, - yanchor=None, - **kwargs, - ): + def __init__(self, + arg=None, + active=None, + activebgcolor=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + currentvalue=None, + font=None, + len=None, + lenmode=None, + minorticklen=None, + name=None, + pad=None, + steps=None, + stepdefaults=None, + templateitemname=None, + tickcolor=None, + ticklen=None, + tickwidth=None, + transition=None, + visible=None, + x=None, + xanchor=None, + y=None, + yanchor=None, + **kwargs + ): """ Construct a new Slider object @@ -1073,10 +763,10 @@ def __init__( ------- Slider """ - super(Slider, self).__init__("sliders") + super(Slider, self).__init__('sliders') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1088,116 +778,43 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.Slider constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.Slider`""" - ) +an instance of :class:`plotly.graph_objs.layout.Slider`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("active", None) - _v = active if active is not None else _v - if _v is not None: - self["active"] = _v - _v = arg.pop("activebgcolor", None) - _v = activebgcolor if activebgcolor is not None else _v - if _v is not None: - self["activebgcolor"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("currentvalue", None) - _v = currentvalue if currentvalue is not None else _v - if _v is not None: - self["currentvalue"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minorticklen", None) - _v = minorticklen if minorticklen is not None else _v - if _v is not None: - self["minorticklen"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("pad", None) - _v = pad if pad is not None else _v - if _v is not None: - self["pad"] = _v - _v = arg.pop("steps", None) - _v = steps if steps is not None else _v - if _v is not None: - self["steps"] = _v - _v = arg.pop("stepdefaults", None) - _v = stepdefaults if stepdefaults is not None else _v - if _v is not None: - self["stepdefaults"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("transition", None) - _v = transition if transition is not None else _v - if _v is not None: - self["transition"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v + self._init_provided('active', arg, active) + self._init_provided('activebgcolor', arg, activebgcolor) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('currentvalue', arg, currentvalue) + self._init_provided('font', arg, font) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minorticklen', arg, minorticklen) + self._init_provided('name', arg, name) + self._init_provided('pad', arg, pad) + self._init_provided('steps', arg, steps) + self._init_provided('stepdefaults', arg, stepdefaults) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('transition', arg, transition) + self._init_provided('visible', arg, visible) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_smith.py b/packages/python/plotly/plotly/graph_objs/layout/_smith.py index cca15510a81..1106113b129 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_smith.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_smith.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Smith(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.smith" + _parent_path_str = 'layout' + _path_str = 'layout.smith' _valid_props = {"bgcolor", "domain", "imaginaryaxis", "realaxis"} # bgcolor @@ -22,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # domain # ------ @@ -80,31 +47,15 @@ def domain(self): - A dict of string/value properties that will be passed to the Domain constructor - Supported dict properties: - - column - If there is a layout grid, use the domain for - this column in the grid for this smith subplot - . - row - If there is a layout grid, use the domain for - this row in the grid for this smith subplot . - x - Sets the horizontal domain of this smith - subplot (in plot fraction). - y - Sets the vertical domain of this smith subplot - (in plot fraction). - Returns ------- plotly.graph_objs.layout.smith.Domain """ - return self["domain"] + return self['domain'] @domain.setter def domain(self, val): - self["domain"] = val + self['domain'] = val # imaginaryaxis # ------------- @@ -117,134 +68,15 @@ def imaginaryaxis(self): - A dict of string/value properties that will be passed to the Imaginaryaxis constructor - Supported dict properties: - - color - Sets default for all colors associated with - this axis all at once: line, font, tick, and - grid colors. Grid color is lightened by - blending this with the plot background - Individual pieces can override this. - gridcolor - Sets the color of the grid lines. - 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 width (in px) of the grid lines. - hoverformat - Sets the hover text formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - layer - Sets the layer on which this axis is displayed. - If *above traces*, this axis is displayed above - all the subplot's traces If *below traces*, - this axis is displayed below all the subplot's - traces, but above the grid lines. Useful when - used together with scatter-like traces with - `cliponaxis` set to False to show markers - and/or text nodes above this axis. - linecolor - Sets the axis line color. - linewidth - Sets the width (in px) of the axis line. - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - showline - Determines whether or not a line bounding this - axis is drawn. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - tickcolor - Sets the tick color. - tickfont - Sets the tick font. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - ticklen - Sets the tick length (in px). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - tickvals - Sets the values at which ticks on this axis - appear. Defaults to `realaxis.tickvals` plus - the same as negatives and zero. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - visible - A single toggle to hide the axis while - preserving interaction like dragging. Default - is true when a cheater plot is present on the - axis, otherwise false - Returns ------- plotly.graph_objs.layout.smith.Imaginaryaxis """ - return self["imaginaryaxis"] + return self['imaginaryaxis'] @imaginaryaxis.setter def imaginaryaxis(self, val): - self["imaginaryaxis"] = val + self['imaginaryaxis'] = val # realaxis # -------- @@ -257,140 +89,15 @@ def realaxis(self): - A dict of string/value properties that will be passed to the Realaxis constructor - Supported dict properties: - - color - Sets default for all colors associated with - this axis all at once: line, font, tick, and - grid colors. Grid color is lightened by - blending this with the plot background - Individual pieces can override this. - gridcolor - Sets the color of the grid lines. - 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 width (in px) of the grid lines. - hoverformat - Sets the hover text formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - layer - Sets the layer on which this axis is displayed. - If *above traces*, this axis is displayed above - all the subplot's traces If *below traces*, - this axis is displayed below all the subplot's - traces, but above the grid lines. Useful when - used together with scatter-like traces with - `cliponaxis` set to False to show markers - and/or text nodes above this axis. - linecolor - Sets the axis line color. - linewidth - Sets the width (in px) of the axis line. - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - showline - Determines whether or not a line bounding this - axis is drawn. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - side - Determines on which side of real axis line the - tick and tick labels appear. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the tick font. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - ticklen - Sets the tick length (in px). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If "top" - ("bottom"), this axis' are drawn above (below) - the axis line. - ticksuffix - Sets a tick label suffix. - tickvals - Sets the values at which ticks on this axis - appear. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - visible - A single toggle to hide the axis while - preserving interaction like dragging. Default - is true when a cheater plot is present on the - axis, otherwise false - Returns ------- plotly.graph_objs.layout.smith.Realaxis """ - return self["realaxis"] + return self['realaxis'] @realaxis.setter def realaxis(self, val): - self["realaxis"] = val + self['realaxis'] = val # Self properties description # --------------------------- @@ -409,16 +116,14 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.layout.smith.Realaxis` instance or dict with compatible properties """ - - def __init__( - self, - arg=None, - bgcolor=None, - domain=None, - imaginaryaxis=None, - realaxis=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + domain=None, + imaginaryaxis=None, + realaxis=None, + **kwargs + ): """ Construct a new Smith object @@ -443,10 +148,10 @@ def __init__( ------- Smith """ - super(Smith, self).__init__("smith") + super(Smith, self).__init__('smith') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -458,36 +163,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.Smith constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.Smith`""" - ) +an instance of :class:`plotly.graph_objs.layout.Smith`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("domain", None) - _v = domain if domain is not None else _v - if _v is not None: - self["domain"] = _v - _v = arg.pop("imaginaryaxis", None) - _v = imaginaryaxis if imaginaryaxis is not None else _v - if _v is not None: - self["imaginaryaxis"] = _v - _v = arg.pop("realaxis", None) - _v = realaxis if realaxis is not None else _v - if _v is not None: - self["realaxis"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('domain', arg, domain) + self._init_provided('imaginaryaxis', arg, imaginaryaxis) + self._init_provided('realaxis', arg, realaxis) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_template.py b/packages/python/plotly/plotly/graph_objs/layout/_template.py index cc93069a078..9aa7021b612 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_template.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_template.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Template(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.template" + _parent_path_str = 'layout' + _path_str = 'layout.template' _valid_props = {"data", "layout"} # data @@ -21,199 +23,15 @@ def data(self): - A dict of string/value properties that will be passed to the Data constructor - Supported dict properties: - - barpolar - A tuple of - :class:`plotly.graph_objects.Barpolar` - instances or dicts with compatible properties - bar - A tuple of :class:`plotly.graph_objects.Bar` - instances or dicts with compatible properties - box - A tuple of :class:`plotly.graph_objects.Box` - instances or dicts with compatible properties - candlestick - A tuple of - :class:`plotly.graph_objects.Candlestick` - instances or dicts with compatible properties - carpet - A tuple of :class:`plotly.graph_objects.Carpet` - instances or dicts with compatible properties - choroplethmapbox - A tuple of - :class:`plotly.graph_objects.Choroplethmapbox` - instances or dicts with compatible properties - choroplethmap - A tuple of - :class:`plotly.graph_objects.Choroplethmap` - instances or dicts with compatible properties - choropleth - A tuple of - :class:`plotly.graph_objects.Choropleth` - instances or dicts with compatible properties - cone - A tuple of :class:`plotly.graph_objects.Cone` - instances or dicts with compatible properties - contourcarpet - A tuple of - :class:`plotly.graph_objects.Contourcarpet` - instances or dicts with compatible properties - contour - A tuple of - :class:`plotly.graph_objects.Contour` instances - or dicts with compatible properties - densitymapbox - A tuple of - :class:`plotly.graph_objects.Densitymapbox` - instances or dicts with compatible properties - densitymap - A tuple of - :class:`plotly.graph_objects.Densitymap` - instances or dicts with compatible properties - funnelarea - A tuple of - :class:`plotly.graph_objects.Funnelarea` - instances or dicts with compatible properties - funnel - A tuple of :class:`plotly.graph_objects.Funnel` - instances or dicts with compatible properties - heatmap - A tuple of - :class:`plotly.graph_objects.Heatmap` instances - or dicts with compatible properties - histogram2dcontour - A tuple of :class:`plotly.graph_objects.Histogr - am2dContour` instances or dicts with compatible - properties - histogram2d - A tuple of - :class:`plotly.graph_objects.Histogram2d` - instances or dicts with compatible properties - histogram - A tuple of - :class:`plotly.graph_objects.Histogram` - instances or dicts with compatible properties - icicle - A tuple of :class:`plotly.graph_objects.Icicle` - instances or dicts with compatible properties - image - A tuple of :class:`plotly.graph_objects.Image` - instances or dicts with compatible properties - indicator - A tuple of - :class:`plotly.graph_objects.Indicator` - instances or dicts with compatible properties - isosurface - A tuple of - :class:`plotly.graph_objects.Isosurface` - instances or dicts with compatible properties - mesh3d - A tuple of :class:`plotly.graph_objects.Mesh3d` - instances or dicts with compatible properties - ohlc - A tuple of :class:`plotly.graph_objects.Ohlc` - instances or dicts with compatible properties - parcats - A tuple of - :class:`plotly.graph_objects.Parcats` instances - or dicts with compatible properties - parcoords - A tuple of - :class:`plotly.graph_objects.Parcoords` - instances or dicts with compatible properties - pie - A tuple of :class:`plotly.graph_objects.Pie` - instances or dicts with compatible properties - sankey - A tuple of :class:`plotly.graph_objects.Sankey` - instances or dicts with compatible properties - scatter3d - A tuple of - :class:`plotly.graph_objects.Scatter3d` - instances or dicts with compatible properties - scattercarpet - A tuple of - :class:`plotly.graph_objects.Scattercarpet` - instances or dicts with compatible properties - scattergeo - A tuple of - :class:`plotly.graph_objects.Scattergeo` - instances or dicts with compatible properties - scattergl - A tuple of - :class:`plotly.graph_objects.Scattergl` - instances or dicts with compatible properties - scattermapbox - A tuple of - :class:`plotly.graph_objects.Scattermapbox` - instances or dicts with compatible properties - scattermap - A tuple of - :class:`plotly.graph_objects.Scattermap` - instances or dicts with compatible properties - scatterpolargl - A tuple of - :class:`plotly.graph_objects.Scatterpolargl` - instances or dicts with compatible properties - scatterpolar - A tuple of - :class:`plotly.graph_objects.Scatterpolar` - instances or dicts with compatible properties - scatter - A tuple of - :class:`plotly.graph_objects.Scatter` instances - or dicts with compatible properties - scattersmith - A tuple of - :class:`plotly.graph_objects.Scattersmith` - instances or dicts with compatible properties - scatterternary - A tuple of - :class:`plotly.graph_objects.Scatterternary` - instances or dicts with compatible properties - splom - A tuple of :class:`plotly.graph_objects.Splom` - instances or dicts with compatible properties - streamtube - A tuple of - :class:`plotly.graph_objects.Streamtube` - instances or dicts with compatible properties - sunburst - A tuple of - :class:`plotly.graph_objects.Sunburst` - instances or dicts with compatible properties - surface - A tuple of - :class:`plotly.graph_objects.Surface` instances - or dicts with compatible properties - table - A tuple of :class:`plotly.graph_objects.Table` - instances or dicts with compatible properties - treemap - A tuple of - :class:`plotly.graph_objects.Treemap` instances - or dicts with compatible properties - violin - A tuple of :class:`plotly.graph_objects.Violin` - instances or dicts with compatible properties - volume - A tuple of :class:`plotly.graph_objects.Volume` - instances or dicts with compatible properties - waterfall - A tuple of - :class:`plotly.graph_objects.Waterfall` - instances or dicts with compatible properties - Returns ------- plotly.graph_objs.layout.template.Data """ - return self["data"] + return self['data'] @data.setter def data(self, val): - self["data"] = val + self['data'] = val # layout # ------ @@ -226,17 +44,15 @@ def layout(self): - A dict of string/value properties that will be passed to the Layout constructor - Supported dict properties: - Returns ------- plotly.graph_objs.layout.template.Layout """ - return self["layout"] + return self['layout'] @layout.setter def layout(self, val): - self["layout"] = val + self['layout'] = val # Self properties description # --------------------------- @@ -250,8 +66,12 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.Layout` instance or dict with compatible properties """ - - def __init__(self, arg=None, data=None, layout=None, **kwargs): + def __init__(self, + arg=None, + data=None, + layout=None, + **kwargs + ): """ Construct a new Template object @@ -292,10 +112,10 @@ def __init__(self, arg=None, data=None, layout=None, **kwargs): ------- Template """ - super(Template, self).__init__("template") + super(Template, self).__init__('template') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -307,28 +127,21 @@ def __init__(self, arg=None, data=None, layout=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.Template constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.Template`""" - ) +an instance of :class:`plotly.graph_objs.layout.Template`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("data", None) - _v = data if data is not None else _v - if _v is not None: - self["data"] = _v - _v = arg.pop("layout", None) - _v = layout if layout is not None else _v - if _v is not None: - self["layout"] = _v + self._init_provided('data', arg, data) + self._init_provided('layout', arg, layout) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_ternary.py b/packages/python/plotly/plotly/graph_objs/layout/_ternary.py index 081987aefaa..be0c565caf2 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_ternary.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_ternary.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Ternary(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.ternary" + _parent_path_str = 'layout' + _path_str = 'layout.ternary' _valid_props = {"aaxis", "baxis", "bgcolor", "caxis", "domain", "sum", "uirevision"} # aaxis @@ -21,250 +23,15 @@ def aaxis(self): - A dict of string/value properties that will be passed to the Aaxis constructor - Supported dict properties: - - color - Sets default for all colors associated with - this axis all at once: line, font, tick, and - grid colors. Grid color is lightened by - blending this with the plot background - Individual pieces can override this. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - gridcolor - Sets the color of the grid lines. - 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 width (in px) of the grid lines. - hoverformat - Sets the hover text formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - layer - Sets the layer on which this axis is displayed. - If *above traces*, this axis is displayed above - all the subplot's traces If *below traces*, - this axis is displayed below all the subplot's - traces, but above the grid lines. Useful when - used together with scatter-like traces with - `cliponaxis` set to False to show markers - and/or text nodes above this axis. - linecolor - Sets the axis line color. - linewidth - Sets the width (in px) of the axis line. - min - The minimum value visible on this axis. The - maximum is determined by the sum minus the - minimum values of the other two axes. The full - view corresponds to all the minima set to zero. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - showline - Determines whether or not a line bounding this - axis is drawn. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the tick font. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.layout. - ternary.aaxis.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.lay - out.ternary.aaxis.tickformatstopdefaults), sets - the default property values to use for elements - of layout.ternary.aaxis.tickformatstops - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.layout.ternary.aax - is.Title` instance or dict with compatible - properties - uirevision - Controls persistence of user-driven changes in - axis `min`, and `title` if in `editable: true` - configuration. Defaults to - `ternary.uirevision`. - Returns ------- plotly.graph_objs.layout.ternary.Aaxis """ - return self["aaxis"] + return self['aaxis'] @aaxis.setter def aaxis(self, val): - self["aaxis"] = val + self['aaxis'] = val # baxis # ----- @@ -277,250 +44,15 @@ def baxis(self): - A dict of string/value properties that will be passed to the Baxis constructor - Supported dict properties: - - color - Sets default for all colors associated with - this axis all at once: line, font, tick, and - grid colors. Grid color is lightened by - blending this with the plot background - Individual pieces can override this. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - gridcolor - Sets the color of the grid lines. - 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 width (in px) of the grid lines. - hoverformat - Sets the hover text formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - layer - Sets the layer on which this axis is displayed. - If *above traces*, this axis is displayed above - all the subplot's traces If *below traces*, - this axis is displayed below all the subplot's - traces, but above the grid lines. Useful when - used together with scatter-like traces with - `cliponaxis` set to False to show markers - and/or text nodes above this axis. - linecolor - Sets the axis line color. - linewidth - Sets the width (in px) of the axis line. - min - The minimum value visible on this axis. The - maximum is determined by the sum minus the - minimum values of the other two axes. The full - view corresponds to all the minima set to zero. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - showline - Determines whether or not a line bounding this - axis is drawn. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the tick font. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.layout. - ternary.baxis.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.lay - out.ternary.baxis.tickformatstopdefaults), sets - the default property values to use for elements - of layout.ternary.baxis.tickformatstops - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.layout.ternary.bax - is.Title` instance or dict with compatible - properties - uirevision - Controls persistence of user-driven changes in - axis `min`, and `title` if in `editable: true` - configuration. Defaults to - `ternary.uirevision`. - Returns ------- plotly.graph_objs.layout.ternary.Baxis """ - return self["baxis"] + return self['baxis'] @baxis.setter def baxis(self, val): - self["baxis"] = val + self['baxis'] = val # bgcolor # ------- @@ -534,52 +66,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # caxis # ----- @@ -592,250 +89,15 @@ def caxis(self): - A dict of string/value properties that will be passed to the Caxis constructor - Supported dict properties: - - color - Sets default for all colors associated with - this axis all at once: line, font, tick, and - grid colors. Grid color is lightened by - blending this with the plot background - Individual pieces can override this. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - gridcolor - Sets the color of the grid lines. - 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 width (in px) of the grid lines. - hoverformat - Sets the hover text formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - layer - Sets the layer on which this axis is displayed. - If *above traces*, this axis is displayed above - all the subplot's traces If *below traces*, - this axis is displayed below all the subplot's - traces, but above the grid lines. Useful when - used together with scatter-like traces with - `cliponaxis` set to False to show markers - and/or text nodes above this axis. - linecolor - Sets the axis line color. - linewidth - Sets the width (in px) of the axis line. - min - The minimum value visible on this axis. The - maximum is determined by the sum minus the - minimum values of the other two axes. The full - view corresponds to all the minima set to zero. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - showline - Determines whether or not a line bounding this - axis is drawn. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the tick font. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.layout. - ternary.caxis.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.lay - out.ternary.caxis.tickformatstopdefaults), sets - the default property values to use for elements - of layout.ternary.caxis.tickformatstops - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.layout.ternary.cax - is.Title` instance or dict with compatible - properties - uirevision - Controls persistence of user-driven changes in - axis `min`, and `title` if in `editable: true` - configuration. Defaults to - `ternary.uirevision`. - Returns ------- plotly.graph_objs.layout.ternary.Caxis """ - return self["caxis"] + return self['caxis'] @caxis.setter def caxis(self, val): - self["caxis"] = val + self['caxis'] = val # domain # ------ @@ -848,31 +110,15 @@ def domain(self): - A dict of string/value properties that will be passed to the Domain constructor - Supported dict properties: - - column - If there is a layout grid, use the domain for - this column in the grid for this ternary - subplot . - row - If there is a layout grid, use the domain for - this row in the grid for this ternary subplot . - x - Sets the horizontal domain of this ternary - subplot (in plot fraction). - y - Sets the vertical domain of this ternary - subplot (in plot fraction). - Returns ------- plotly.graph_objs.layout.ternary.Domain """ - return self["domain"] + return self['domain'] @domain.setter def domain(self, val): - self["domain"] = val + self['domain'] = val # sum # --- @@ -889,11 +135,11 @@ def sum(self): ------- int|float """ - return self["sum"] + return self['sum'] @sum.setter def sum(self, val): - self["sum"] = val + self['sum'] = val # uirevision # ---------- @@ -910,11 +156,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # Self properties description # --------------------------- @@ -943,19 +189,17 @@ def _prop_descriptions(self): `min` and `title`, if not overridden in the individual axes. Defaults to `layout.uirevision`. """ - - def __init__( - self, - arg=None, - aaxis=None, - baxis=None, - bgcolor=None, - caxis=None, - domain=None, - sum=None, - uirevision=None, - **kwargs, - ): + def __init__(self, + arg=None, + aaxis=None, + baxis=None, + bgcolor=None, + caxis=None, + domain=None, + sum=None, + uirevision=None, + **kwargs + ): """ Construct a new Ternary object @@ -991,10 +235,10 @@ def __init__( ------- Ternary """ - super(Ternary, self).__init__("ternary") + super(Ternary, self).__init__('ternary') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1006,48 +250,26 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.Ternary constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.Ternary`""" - ) +an instance of :class:`plotly.graph_objs.layout.Ternary`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("aaxis", None) - _v = aaxis if aaxis is not None else _v - if _v is not None: - self["aaxis"] = _v - _v = arg.pop("baxis", None) - _v = baxis if baxis is not None else _v - if _v is not None: - self["baxis"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("caxis", None) - _v = caxis if caxis is not None else _v - if _v is not None: - self["caxis"] = _v - _v = arg.pop("domain", None) - _v = domain if domain is not None else _v - if _v is not None: - self["domain"] = _v - _v = arg.pop("sum", None) - _v = sum if sum is not None else _v - if _v is not None: - self["sum"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v + self._init_provided('aaxis', arg, aaxis) + self._init_provided('baxis', arg, baxis) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('caxis', arg, caxis) + self._init_provided('domain', arg, domain) + self._init_provided('sum', arg, sum) + self._init_provided('uirevision', arg, uirevision) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_title.py b/packages/python/plotly/plotly/graph_objs/layout/_title.py index f1500f4c492..908376b68d0 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_title.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,21 +8,9 @@ class Title(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.title" - _valid_props = { - "automargin", - "font", - "pad", - "subtitle", - "text", - "x", - "xanchor", - "xref", - "y", - "yanchor", - "yref", - } + _parent_path_str = 'layout' + _path_str = 'layout.title' + _valid_props = {"automargin", "font", "pad", "subtitle", "text", "x", "xanchor", "xref", "y", "yanchor", "yref"} # automargin # ---------- @@ -46,11 +36,11 @@ def automargin(self): ------- bool """ - return self["automargin"] + return self['automargin'] @automargin.setter def automargin(self, val): - self["automargin"] = val + self['automargin'] = val # font # ---- @@ -65,61 +55,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # pad # --- @@ -139,30 +83,15 @@ def pad(self): - A dict of string/value properties that will be passed to the Pad constructor - Supported dict properties: - - b - The amount of padding (in px) along the bottom - of the component. - l - The amount of padding (in px) on the left side - of the component. - r - The amount of padding (in px) on the right side - of the component. - t - The amount of padding (in px) along the top of - the component. - Returns ------- plotly.graph_objs.layout.title.Pad """ - return self["pad"] + return self['pad'] @pad.setter def pad(self, val): - self["pad"] = val + self['pad'] = val # subtitle # -------- @@ -175,22 +104,15 @@ def subtitle(self): - A dict of string/value properties that will be passed to the Subtitle constructor - Supported dict properties: - - font - Sets the subtitle font. - text - Sets the plot's subtitle. - Returns ------- plotly.graph_objs.layout.title.Subtitle """ - return self["subtitle"] + return self['subtitle'] @subtitle.setter def subtitle(self, val): - self["subtitle"] = val + self['subtitle'] = val # text # ---- @@ -207,11 +129,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # x # - @@ -228,11 +150,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -254,11 +176,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xref # ---- @@ -277,11 +199,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -300,11 +222,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -326,11 +248,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # yref # ---- @@ -349,11 +271,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -419,23 +341,21 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - automargin=None, - font=None, - pad=None, - subtitle=None, - text=None, - x=None, - xanchor=None, - xref=None, - y=None, - yanchor=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + automargin=None, + font=None, + pad=None, + subtitle=None, + text=None, + x=None, + xanchor=None, + xref=None, + y=None, + yanchor=None, + yref=None, + **kwargs + ): """ Construct a new Title object @@ -507,10 +427,10 @@ def __init__( ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -522,64 +442,30 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.Title`""" - ) +an instance of :class:`plotly.graph_objs.layout.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("automargin", None) - _v = automargin if automargin is not None else _v - if _v is not None: - self["automargin"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("pad", None) - _v = pad if pad is not None else _v - if _v is not None: - self["pad"] = _v - _v = arg.pop("subtitle", None) - _v = subtitle if subtitle is not None else _v - if _v is not None: - self["subtitle"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('automargin', arg, automargin) + self._init_provided('font', arg, font) + self._init_provided('pad', arg, pad) + self._init_provided('subtitle', arg, subtitle) + self._init_provided('text', arg, text) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_transition.py b/packages/python/plotly/plotly/graph_objs/layout/_transition.py index 63b3c71b3c4..e0495418a9a 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_transition.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_transition.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Transition(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.transition" + _parent_path_str = 'layout' + _path_str = 'layout.transition' _valid_props = {"duration", "easing", "ordering"} # duration @@ -25,11 +27,11 @@ def duration(self): ------- int|float """ - return self["duration"] + return self['duration'] @duration.setter def duration(self, val): - self["duration"] = val + self['duration'] = val # easing # ------ @@ -54,11 +56,11 @@ def easing(self): ------- Any """ - return self["easing"] + return self['easing'] @easing.setter def easing(self, val): - self["easing"] = val + self['easing'] = val # ordering # -------- @@ -77,11 +79,11 @@ def ordering(self): ------- Any """ - return self["ordering"] + return self['ordering'] @ordering.setter def ordering(self, val): - self["ordering"] = val + self['ordering'] = val # Self properties description # --------------------------- @@ -98,8 +100,13 @@ def _prop_descriptions(self): smoothly transitions during updates that make both traces and layout change. """ - - def __init__(self, arg=None, duration=None, easing=None, ordering=None, **kwargs): + def __init__(self, + arg=None, + duration=None, + easing=None, + ordering=None, + **kwargs + ): """ Construct a new Transition object @@ -125,10 +132,10 @@ def __init__(self, arg=None, duration=None, easing=None, ordering=None, **kwargs ------- Transition """ - super(Transition, self).__init__("transition") + super(Transition, self).__init__('transition') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -140,32 +147,22 @@ def __init__(self, arg=None, duration=None, easing=None, ordering=None, **kwargs elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.Transition constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.Transition`""" - ) +an instance of :class:`plotly.graph_objs.layout.Transition`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("duration", None) - _v = duration if duration is not None else _v - if _v is not None: - self["duration"] = _v - _v = arg.pop("easing", None) - _v = easing if easing is not None else _v - if _v is not None: - self["easing"] = _v - _v = arg.pop("ordering", None) - _v = ordering if ordering is not None else _v - if _v is not None: - self["ordering"] = _v + self._init_provided('duration', arg, duration) + self._init_provided('easing', arg, easing) + self._init_provided('ordering', arg, ordering) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_uniformtext.py b/packages/python/plotly/plotly/graph_objs/layout/_uniformtext.py index 1292524e0f9..93214c06f9f 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_uniformtext.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_uniformtext.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Uniformtext(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.uniformtext" + _parent_path_str = 'layout' + _path_str = 'layout.uniformtext' _valid_props = {"minsize", "mode"} # minsize @@ -24,11 +26,11 @@ def minsize(self): ------- int|float """ - return self["minsize"] + return self['minsize'] @minsize.setter def minsize(self, val): - self["minsize"] = val + self['minsize'] = val # mode # ---- @@ -52,11 +54,11 @@ def mode(self): ------- Any """ - return self["mode"] + return self['mode'] @mode.setter def mode(self, val): - self["mode"] = val + self['mode'] = val # Self properties description # --------------------------- @@ -76,8 +78,12 @@ def _prop_descriptions(self): defined by `minsize` is greater than the font size defined by trace, then the `minsize` is used. """ - - def __init__(self, arg=None, minsize=None, mode=None, **kwargs): + def __init__(self, + arg=None, + minsize=None, + mode=None, + **kwargs + ): """ Construct a new Uniformtext object @@ -104,10 +110,10 @@ def __init__(self, arg=None, minsize=None, mode=None, **kwargs): ------- Uniformtext """ - super(Uniformtext, self).__init__("uniformtext") + super(Uniformtext, self).__init__('uniformtext') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -119,28 +125,21 @@ def __init__(self, arg=None, minsize=None, mode=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.Uniformtext constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.Uniformtext`""" - ) +an instance of :class:`plotly.graph_objs.layout.Uniformtext`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("minsize", None) - _v = minsize if minsize is not None else _v - if _v is not None: - self["minsize"] = _v - _v = arg.pop("mode", None) - _v = mode if mode is not None else _v - if _v is not None: - self["mode"] = _v + self._init_provided('minsize', arg, minsize) + self._init_provided('mode', arg, mode) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_updatemenu.py b/packages/python/plotly/plotly/graph_objs/layout/_updatemenu.py index b12c165844f..a1a3b9d9dc2 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_updatemenu.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_updatemenu.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Updatemenu(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.updatemenu" - _valid_props = { - "active", - "bgcolor", - "bordercolor", - "borderwidth", - "buttondefaults", - "buttons", - "direction", - "font", - "name", - "pad", - "showactive", - "templateitemname", - "type", - "visible", - "x", - "xanchor", - "y", - "yanchor", - } + _parent_path_str = 'layout' + _path_str = 'layout.updatemenu' + _valid_props = {"active", "bgcolor", "bordercolor", "borderwidth", "buttondefaults", "buttons", "direction", "font", "name", "pad", "showactive", "templateitemname", "type", "visible", "x", "xanchor", "y", "yanchor"} # active # ------ @@ -45,11 +28,11 @@ def active(self): ------- int """ - return self["active"] + return self['active'] @active.setter def active(self, val): - self["active"] = val + self['active'] = val # bgcolor # ------- @@ -63,52 +46,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -122,52 +70,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -183,11 +96,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # buttons # ------- @@ -200,71 +113,15 @@ def buttons(self): - A list or tuple of dicts of string/value properties that will be passed to the Button constructor - Supported dict properties: - - args - Sets the arguments values to be passed to the - Plotly method set in `method` on click. - args2 - Sets a 2nd set of `args`, these arguments - values are passed to the Plotly method set in - `method` when clicking this button while in the - active state. Use this to create toggle - buttons. - execute - When true, the API method is executed. When - false, all other behaviors are the same and - command execution is skipped. This may be - useful when hooking into, for example, the - `plotly_buttonclicked` method and executing the - API command manually without losing the benefit - of the updatemenu automatically binding to the - state of the plot through the specification of - `method` and `args`. - label - Sets the text label to appear on the button. - method - Sets the Plotly method to be called on click. - If the `skip` method is used, the API - updatemenu will function as normal but will - perform no API calls and will not bind - automatically to state updates. This may be - used to create a component interface and attach - to updatemenu events manually via JavaScript. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - visible - Determines whether or not this button is - visible. - Returns ------- tuple[plotly.graph_objs.layout.updatemenu.Button] """ - return self["buttons"] + return self['buttons'] @buttons.setter def buttons(self, val): - self["buttons"] = val + self['buttons'] = val # buttondefaults # -------------- @@ -282,17 +139,15 @@ def buttondefaults(self): - A dict of string/value properties that will be passed to the Button constructor - Supported dict properties: - Returns ------- plotly.graph_objs.layout.updatemenu.Button """ - return self["buttondefaults"] + return self['buttondefaults'] @buttondefaults.setter def buttondefaults(self, val): - self["buttondefaults"] = val + self['buttondefaults'] = val # direction # --------- @@ -312,11 +167,11 @@ def direction(self): ------- Any """ - return self["direction"] + return self['direction'] @direction.setter def direction(self, val): - self["direction"] = val + self['direction'] = val # font # ---- @@ -331,61 +186,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.updatemenu.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # name # ---- @@ -408,11 +217,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # pad # --- @@ -427,30 +236,15 @@ def pad(self): - A dict of string/value properties that will be passed to the Pad constructor - Supported dict properties: - - b - The amount of padding (in px) along the bottom - of the component. - l - The amount of padding (in px) on the left side - of the component. - r - The amount of padding (in px) on the right side - of the component. - t - The amount of padding (in px) along the top of - the component. - Returns ------- plotly.graph_objs.layout.updatemenu.Pad """ - return self["pad"] + return self['pad'] @pad.setter def pad(self, val): - self["pad"] = val + self['pad'] = val # showactive # ---------- @@ -466,11 +260,11 @@ def showactive(self): ------- bool """ - return self["showactive"] + return self['showactive'] @showactive.setter def showactive(self, val): - self["showactive"] = val + self['showactive'] = val # templateitemname # ---------------- @@ -494,11 +288,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # type # ---- @@ -517,11 +311,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # visible # ------- @@ -537,11 +331,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # x # - @@ -558,11 +352,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -581,11 +375,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # y # - @@ -602,11 +396,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -625,11 +419,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # Self properties description # --------------------------- @@ -708,30 +502,28 @@ def _prop_descriptions(self): anchor binds the `y` position to the "top", "middle" or "bottom" of the range selector. """ - - def __init__( - self, - arg=None, - active=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - buttons=None, - buttondefaults=None, - direction=None, - font=None, - name=None, - pad=None, - showactive=None, - templateitemname=None, - type=None, - visible=None, - x=None, - xanchor=None, - y=None, - yanchor=None, - **kwargs, - ): + def __init__(self, + arg=None, + active=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + buttons=None, + buttondefaults=None, + direction=None, + font=None, + name=None, + pad=None, + showactive=None, + templateitemname=None, + type=None, + visible=None, + x=None, + xanchor=None, + y=None, + yanchor=None, + **kwargs + ): """ Construct a new Updatemenu object @@ -817,10 +609,10 @@ def __init__( ------- Updatemenu """ - super(Updatemenu, self).__init__("updatemenus") + super(Updatemenu, self).__init__('updatemenus') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -832,92 +624,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.Updatemenu constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.Updatemenu`""" - ) +an instance of :class:`plotly.graph_objs.layout.Updatemenu`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("active", None) - _v = active if active is not None else _v - if _v is not None: - self["active"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("buttons", None) - _v = buttons if buttons is not None else _v - if _v is not None: - self["buttons"] = _v - _v = arg.pop("buttondefaults", None) - _v = buttondefaults if buttondefaults is not None else _v - if _v is not None: - self["buttondefaults"] = _v - _v = arg.pop("direction", None) - _v = direction if direction is not None else _v - if _v is not None: - self["direction"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("pad", None) - _v = pad if pad is not None else _v - if _v is not None: - self["pad"] = _v - _v = arg.pop("showactive", None) - _v = showactive if showactive is not None else _v - if _v is not None: - self["showactive"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v + self._init_provided('active', arg, active) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('buttons', arg, buttons) + self._init_provided('buttondefaults', arg, buttondefaults) + self._init_provided('direction', arg, direction) + self._init_provided('font', arg, font) + self._init_provided('name', arg, name) + self._init_provided('pad', arg, pad) + self._init_provided('showactive', arg, showactive) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('type', arg, type) + self._init_provided('visible', arg, visible) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_xaxis.py b/packages/python/plotly/plotly/graph_objs/layout/_xaxis.py index 65d73f38e01..eb4535c2832 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_xaxis.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_xaxis.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,103 +8,9 @@ class XAxis(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.xaxis" - _valid_props = { - "anchor", - "automargin", - "autorange", - "autorangeoptions", - "autotickangles", - "autotypenumbers", - "calendar", - "categoryarray", - "categoryarraysrc", - "categoryorder", - "color", - "constrain", - "constraintoward", - "dividercolor", - "dividerwidth", - "domain", - "dtick", - "exponentformat", - "fixedrange", - "gridcolor", - "griddash", - "gridwidth", - "hoverformat", - "insiderange", - "labelalias", - "layer", - "linecolor", - "linewidth", - "matches", - "maxallowed", - "minallowed", - "minexponent", - "minor", - "mirror", - "nticks", - "overlaying", - "position", - "range", - "rangebreakdefaults", - "rangebreaks", - "rangemode", - "rangeselector", - "rangeslider", - "scaleanchor", - "scaleratio", - "separatethousands", - "showdividers", - "showexponent", - "showgrid", - "showline", - "showspikes", - "showticklabels", - "showtickprefix", - "showticksuffix", - "side", - "spikecolor", - "spikedash", - "spikemode", - "spikesnap", - "spikethickness", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabelindex", - "ticklabelindexsrc", - "ticklabelmode", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelshift", - "ticklabelstandoff", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "tickson", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "type", - "uirevision", - "visible", - "zeroline", - "zerolinecolor", - "zerolinewidth", - } + _parent_path_str = 'layout' + _path_str = 'layout.xaxis' + _valid_props = {"anchor", "automargin", "autorange", "autorangeoptions", "autotickangles", "autotypenumbers", "calendar", "categoryarray", "categoryarraysrc", "categoryorder", "color", "constrain", "constraintoward", "dividercolor", "dividerwidth", "domain", "dtick", "exponentformat", "fixedrange", "gridcolor", "griddash", "gridwidth", "hoverformat", "insiderange", "labelalias", "layer", "linecolor", "linewidth", "matches", "maxallowed", "minallowed", "minexponent", "minor", "mirror", "nticks", "overlaying", "position", "range", "rangebreakdefaults", "rangebreaks", "rangemode", "rangeselector", "rangeslider", "scaleanchor", "scaleratio", "separatethousands", "showdividers", "showexponent", "showgrid", "showline", "showspikes", "showticklabels", "showtickprefix", "showticksuffix", "side", "spikecolor", "spikedash", "spikemode", "spikesnap", "spikethickness", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabelindex", "ticklabelindexsrc", "ticklabelmode", "ticklabeloverflow", "ticklabelposition", "ticklabelshift", "ticklabelstandoff", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "tickson", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "type", "uirevision", "visible", "zeroline", "zerolinecolor", "zerolinewidth"} # anchor # ------ @@ -124,11 +32,11 @@ def anchor(self): ------- Any """ - return self["anchor"] + return self['anchor'] @anchor.setter def anchor(self, val): - self["anchor"] = val + self['anchor'] = val # automargin # ---------- @@ -148,11 +56,11 @@ def automargin(self): ------- Any """ - return self["automargin"] + return self['automargin'] @automargin.setter def automargin(self, val): - self["automargin"] = val + self['automargin'] = val # autorange # --------- @@ -179,11 +87,11 @@ def autorange(self): ------- Any """ - return self["autorange"] + return self['autorange'] @autorange.setter def autorange(self, val): - self["autorange"] = val + self['autorange'] = val # autorangeoptions # ---------------- @@ -196,35 +104,15 @@ def autorangeoptions(self): - A dict of string/value properties that will be passed to the Autorangeoptions constructor - Supported dict properties: - - clipmax - Clip autorange maximum if it goes beyond this - value. Has no effect when - `autorangeoptions.maxallowed` is provided. - clipmin - Clip autorange minimum if it goes beyond this - value. Has no effect when - `autorangeoptions.minallowed` is provided. - include - Ensure this value is included in autorange. - includesrc - Sets the source reference on Chart Studio Cloud - for `include`. - maxallowed - Use this value exactly as autorange maximum. - minallowed - Use this value exactly as autorange minimum. - Returns ------- plotly.graph_objs.layout.xaxis.Autorangeoptions """ - return self["autorangeoptions"] + return self['autorangeoptions'] @autorangeoptions.setter def autorangeoptions(self, val): - self["autorangeoptions"] = val + self['autorangeoptions'] = val # autotickangles # -------------- @@ -246,11 +134,11 @@ def autotickangles(self): ------- list """ - return self["autotickangles"] + return self['autotickangles'] @autotickangles.setter def autotickangles(self, val): - self["autotickangles"] = val + self['autotickangles'] = val # autotypenumbers # --------------- @@ -270,11 +158,11 @@ def autotypenumbers(self): ------- Any """ - return self["autotypenumbers"] + return self['autotypenumbers'] @autotypenumbers.setter def autotypenumbers(self, val): - self["autotypenumbers"] = val + self['autotypenumbers'] = val # calendar # -------- @@ -297,11 +185,11 @@ def calendar(self): ------- Any """ - return self["calendar"] + return self['calendar'] @calendar.setter def calendar(self, val): - self["calendar"] = val + self['calendar'] = val # categoryarray # ------------- @@ -319,11 +207,11 @@ def categoryarray(self): ------- numpy.ndarray """ - return self["categoryarray"] + return self['categoryarray'] @categoryarray.setter def categoryarray(self, val): - self["categoryarray"] = val + self['categoryarray'] = val # categoryarraysrc # ---------------- @@ -340,11 +228,11 @@ def categoryarraysrc(self): ------- str """ - return self["categoryarraysrc"] + return self['categoryarraysrc'] @categoryarraysrc.setter def categoryarraysrc(self, val): - self["categoryarraysrc"] = val + self['categoryarraysrc'] = val # categoryorder # ------------- @@ -381,11 +269,11 @@ def categoryorder(self): ------- Any """ - return self["categoryorder"] + return self['categoryorder'] @categoryorder.setter def categoryorder(self, val): - self["categoryorder"] = val + self['categoryorder'] = val # color # ----- @@ -402,52 +290,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # constrain # --------- @@ -468,11 +321,11 @@ def constrain(self): ------- Any """ - return self["constrain"] + return self['constrain'] @constrain.setter def constrain(self, val): - self["constrain"] = val + self['constrain'] = val # constraintoward # --------------- @@ -494,11 +347,11 @@ def constraintoward(self): ------- Any """ - return self["constraintoward"] + return self['constraintoward'] @constraintoward.setter def constraintoward(self, val): - self["constraintoward"] = val + self['constraintoward'] = val # dividercolor # ------------ @@ -513,52 +366,17 @@ def dividercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["dividercolor"] + return self['dividercolor'] @dividercolor.setter def dividercolor(self, val): - self["dividercolor"] = val + self['dividercolor'] = val # dividerwidth # ------------ @@ -575,36 +393,36 @@ def dividerwidth(self): ------- int|float """ - return self["dividerwidth"] + return self['dividerwidth'] @dividerwidth.setter def dividerwidth(self, val): - self["dividerwidth"] = val + self['dividerwidth'] = val # domain # ------ @property def domain(self): """ - Sets the domain of this axis (in plot fraction). + Sets the domain of this axis (in plot fraction). - The 'domain' property is an info array that may be specified as: - - * a list or tuple of 2 elements where: - (0) The 'domain[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'domain[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] + The 'domain' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'domain[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'domain[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - Returns - ------- - list + Returns + ------- + list """ - return self["domain"] + return self['domain'] @domain.setter def domain(self, val): - self["domain"] = val + self['domain'] = val # dtick # ----- @@ -638,11 +456,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -663,11 +481,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # fixedrange # ---------- @@ -684,11 +502,11 @@ def fixedrange(self): ------- bool """ - return self["fixedrange"] + return self['fixedrange'] @fixedrange.setter def fixedrange(self, val): - self["fixedrange"] = val + self['fixedrange'] = val # gridcolor # --------- @@ -702,52 +520,17 @@ def gridcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["gridcolor"] + return self['gridcolor'] @gridcolor.setter def gridcolor(self, val): - self["gridcolor"] = val + self['gridcolor'] = val # griddash # -------- @@ -769,11 +552,11 @@ def griddash(self): ------- str """ - return self["griddash"] + return self['griddash'] @griddash.setter def griddash(self, val): - self["griddash"] = val + self['griddash'] = val # gridwidth # --------- @@ -789,11 +572,11 @@ def gridwidth(self): ------- int|float """ - return self["gridwidth"] + return self['gridwidth'] @gridwidth.setter def gridwidth(self, val): - self["gridwidth"] = val + self['gridwidth'] = val # hoverformat # ----------- @@ -819,37 +602,37 @@ def hoverformat(self): ------- str """ - return self["hoverformat"] + return self['hoverformat'] @hoverformat.setter def hoverformat(self, val): - self["hoverformat"] = val + self['hoverformat'] = val # insiderange # ----------- @property def insiderange(self): """ - Could be used to set the desired inside range of this axis - (excluding the labels) when `ticklabelposition` of the anchored - axis has "inside". Not implemented for axes with `type` "log". - This would be ignored when `range` is provided. - - The 'insiderange' property is an info array that may be specified as: + Could be used to set the desired inside range of this axis + (excluding the labels) when `ticklabelposition` of the anchored + axis has "inside". Not implemented for axes with `type` "log". + This would be ignored when `range` is provided. - * a list or tuple of 2 elements where: - (0) The 'insiderange[0]' property accepts values of any type - (1) The 'insiderange[1]' property accepts values of any type + The 'insiderange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'insiderange[0]' property accepts values of any type + (1) The 'insiderange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["insiderange"] + return self['insiderange'] @insiderange.setter def insiderange(self, val): - self["insiderange"] = val + self['insiderange'] = val # labelalias # ---------- @@ -872,11 +655,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # layer # ----- @@ -898,11 +681,11 @@ def layer(self): ------- Any """ - return self["layer"] + return self['layer'] @layer.setter def layer(self, val): - self["layer"] = val + self['layer'] = val # linecolor # --------- @@ -916,52 +699,17 @@ def linecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["linecolor"] + return self['linecolor'] @linecolor.setter def linecolor(self, val): - self["linecolor"] = val + self['linecolor'] = val # linewidth # --------- @@ -977,11 +725,11 @@ def linewidth(self): ------- int|float """ - return self["linewidth"] + return self['linewidth'] @linewidth.setter def linewidth(self, val): - self["linewidth"] = val + self['linewidth'] = val # matches # ------- @@ -1005,11 +753,11 @@ def matches(self): ------- Any """ - return self["matches"] + return self['matches'] @matches.setter def matches(self, val): - self["matches"] = val + self['matches'] = val # maxallowed # ---------- @@ -1024,11 +772,11 @@ def maxallowed(self): ------- Any """ - return self["maxallowed"] + return self['maxallowed'] @maxallowed.setter def maxallowed(self, val): - self["maxallowed"] = val + self['maxallowed'] = val # minallowed # ---------- @@ -1043,11 +791,11 @@ def minallowed(self): ------- Any """ - return self["minallowed"] + return self['minallowed'] @minallowed.setter def minallowed(self, val): - self["minallowed"] = val + self['minallowed'] = val # minexponent # ----------- @@ -1064,11 +812,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # minor # ----- @@ -1081,106 +829,15 @@ def minor(self): - A dict of string/value properties that will be passed to the Minor constructor - Supported dict properties: - - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - gridcolor - Sets the color of the grid lines. - 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 width (in px) of the grid lines. - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickcolor - Sets the tick color. - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - Returns ------- plotly.graph_objs.layout.xaxis.Minor """ - return self["minor"] + return self['minor'] @minor.setter def minor(self, val): - self["minor"] = val + self['minor'] = val # mirror # ------ @@ -1202,11 +859,11 @@ def mirror(self): ------- Any """ - return self["mirror"] + return self['mirror'] @mirror.setter def mirror(self, val): - self["mirror"] = val + self['mirror'] = val # nticks # ------ @@ -1226,11 +883,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # overlaying # ---------- @@ -1254,11 +911,11 @@ def overlaying(self): ------- Any """ - return self["overlaying"] + return self['overlaying'] @overlaying.setter def overlaying(self, val): - self["overlaying"] = val + self['overlaying'] = val # position # -------- @@ -1276,43 +933,43 @@ def position(self): ------- int|float """ - return self["position"] + return self['position'] @position.setter def position(self, val): - self["position"] = val + self['position'] = val # range # ----- @property def range(self): """ - Sets the range of this axis. If the axis `type` is "log", then - you must take the log of your desired range (e.g. to set the - range from 1 to 100, set the range from 0 to 2). If the axis - `type` is "date", it should be date strings, like date data, - though Date objects and unix milliseconds will be accepted and - converted to strings. If the axis `type` is "category", it - should be numbers, using the scale where each category is - assigned a serial number from zero in the order it appears. - Leaving either or both elements `null` impacts the default - `autorange`. - - The 'range' property is an info array that may be specified as: + Sets the range of this axis. If the axis `type` is "log", then + you must take the log of your desired range (e.g. to set the + range from 1 to 100, set the range from 0 to 2). If the axis + `type` is "date", it should be date strings, like date data, + though Date objects and unix milliseconds will be accepted and + converted to strings. If the axis `type` is "category", it + should be numbers, using the scale where each category is + assigned a serial number from zero in the order it appears. + Leaving either or both elements `null` impacts the default + `autorange`. - * a list or tuple of 2 elements where: - (0) The 'range[0]' property accepts values of any type - (1) The 'range[1]' property accepts values of any type + The 'range' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'range[0]' property accepts values of any type + (1) The 'range[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["range"] + return self['range'] @range.setter def range(self, val): - self["range"] = val + self['range'] = val # rangebreaks # ----------- @@ -1325,69 +982,15 @@ def rangebreaks(self): - A list or tuple of dicts of string/value properties that will be passed to the Rangebreak constructor - Supported dict properties: - - bounds - Sets the lower and upper bounds of this axis - rangebreak. Can be used with `pattern`. - dvalue - Sets the size of each `values` item. The - default is one day in milliseconds. - enabled - Determines whether this axis rangebreak is - enabled or disabled. Please note that - `rangebreaks` only work for "date" axis type. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - pattern - Determines a pattern on the time line that - generates breaks. If *day of week* - days of - the week in English e.g. 'Sunday' or `sun` - (matching is case-insensitive and considers - only the first three characters), as well as - Sunday-based integers between 0 and 6. If - "hour" - hour (24-hour clock) as decimal - numbers between 0 and 24. for more info. - Examples: - { pattern: 'day of week', bounds: - [6, 1] } or simply { bounds: ['sat', 'mon'] } - breaks from Saturday to Monday (i.e. skips the - weekends). - { pattern: 'hour', bounds: [17, 8] - } breaks from 5pm to 8am (i.e. skips non-work - hours). - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - values - Sets the coordinate values corresponding to the - rangebreaks. An alternative to `bounds`. Use - `dvalue` to set the size of the values along - the axis. - Returns ------- tuple[plotly.graph_objs.layout.xaxis.Rangebreak] """ - return self["rangebreaks"] + return self['rangebreaks'] @rangebreaks.setter def rangebreaks(self, val): - self["rangebreaks"] = val + self['rangebreaks'] = val # rangebreakdefaults # ------------------ @@ -1405,17 +1008,15 @@ def rangebreakdefaults(self): - A dict of string/value properties that will be passed to the Rangebreak constructor - Supported dict properties: - Returns ------- plotly.graph_objs.layout.xaxis.Rangebreak """ - return self["rangebreakdefaults"] + return self['rangebreakdefaults'] @rangebreakdefaults.setter def rangebreakdefaults(self, val): - self["rangebreakdefaults"] = val + self['rangebreakdefaults'] = val # rangemode # --------- @@ -1436,11 +1037,11 @@ def rangemode(self): ------- Any """ - return self["rangemode"] + return self['rangemode'] @rangemode.setter def rangemode(self, val): - self["rangemode"] = val + self['rangemode'] = val # rangeselector # ------------- @@ -1453,63 +1054,15 @@ def rangeselector(self): - A dict of string/value properties that will be passed to the Rangeselector constructor - Supported dict properties: - - activecolor - Sets the background color of the active range - selector button. - bgcolor - Sets the background color of the range selector - buttons. - bordercolor - Sets the color of the border enclosing the - range selector. - borderwidth - Sets the width (in px) of the border enclosing - the range selector. - buttons - Sets the specifications for each buttons. By - default, a range selector comes with no - buttons. - buttondefaults - When used in a template (as layout.template.lay - out.xaxis.rangeselector.buttondefaults), sets - the default property values to use for elements - of layout.xaxis.rangeselector.buttons - font - Sets the font of the range selector button - text. - visible - Determines whether or not this range selector - is visible. Note that range selectors are only - available for x axes of `type` set to or auto- - typed to "date". - x - Sets the x position (in normalized coordinates) - of the range selector. - xanchor - Sets the range selector's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the range - selector. - y - Sets the y position (in normalized coordinates) - of the range selector. - yanchor - Sets the range selector's vertical position - anchor This anchor binds the `y` position to - the "top", "middle" or "bottom" of the range - selector. - Returns ------- plotly.graph_objs.layout.xaxis.Rangeselector """ - return self["rangeselector"] + return self['rangeselector'] @rangeselector.setter def rangeselector(self, val): - self["rangeselector"] = val + self['rangeselector'] = val # rangeslider # ----------- @@ -1522,52 +1075,15 @@ def rangeslider(self): - A dict of string/value properties that will be passed to the Rangeslider constructor - Supported dict properties: - - autorange - Determines whether or not the range slider - range is computed in relation to the input - data. If `range` is provided, then `autorange` - is set to False. - bgcolor - Sets the background color of the range slider. - bordercolor - Sets the border color of the range slider. - borderwidth - Sets the border width of the range slider. - range - Sets the range of the range slider. If not set, - defaults to the full xaxis range. If the axis - `type` is "log", then you must take the log of - your desired range. If the axis `type` is - "date", it should be date strings, like date - data, though Date objects and unix milliseconds - will be accepted and converted to strings. If - the axis `type` is "category", it should be - numbers, using the scale where each category is - assigned a serial number from zero in the order - it appears. - thickness - The height of the range slider as a fraction of - the total plot area height. - visible - Determines whether or not the range slider will - be visible. If visible, perpendicular axes will - be set to `fixedrange` - yaxis - :class:`plotly.graph_objects.layout.xaxis.range - slider.YAxis` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.layout.xaxis.Rangeslider """ - return self["rangeslider"] + return self['rangeslider'] @rangeslider.setter def rangeslider(self, val): - self["rangeslider"] = val + self['rangeslider'] = val # scaleanchor # ----------- @@ -1608,11 +1124,11 @@ def scaleanchor(self): ------- Any """ - return self["scaleanchor"] + return self['scaleanchor'] @scaleanchor.setter def scaleanchor(self, val): - self["scaleanchor"] = val + self['scaleanchor'] = val # scaleratio # ---------- @@ -1633,11 +1149,11 @@ def scaleratio(self): ------- int|float """ - return self["scaleratio"] + return self['scaleratio'] @scaleratio.setter def scaleratio(self, val): - self["scaleratio"] = val + self['scaleratio'] = val # separatethousands # ----------------- @@ -1653,11 +1169,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showdividers # ------------ @@ -1675,11 +1191,11 @@ def showdividers(self): ------- bool """ - return self["showdividers"] + return self['showdividers'] @showdividers.setter def showdividers(self, val): - self["showdividers"] = val + self['showdividers'] = val # showexponent # ------------ @@ -1699,11 +1215,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showgrid # -------- @@ -1720,11 +1236,11 @@ def showgrid(self): ------- bool """ - return self["showgrid"] + return self['showgrid'] @showgrid.setter def showgrid(self, val): - self["showgrid"] = val + self['showgrid'] = val # showline # -------- @@ -1740,11 +1256,11 @@ def showline(self): ------- bool """ - return self["showline"] + return self['showline'] @showline.setter def showline(self, val): - self["showline"] = val + self['showline'] = val # showspikes # ---------- @@ -1762,11 +1278,11 @@ def showspikes(self): ------- bool """ - return self["showspikes"] + return self['showspikes'] @showspikes.setter def showspikes(self, val): - self["showspikes"] = val + self['showspikes'] = val # showticklabels # -------------- @@ -1782,11 +1298,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -1806,11 +1322,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -1827,11 +1343,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # side # ---- @@ -1849,11 +1365,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # spikecolor # ---------- @@ -1867,52 +1383,17 @@ def spikecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["spikecolor"] + return self['spikecolor'] @spikecolor.setter def spikecolor(self, val): - self["spikecolor"] = val + self['spikecolor'] = val # spikedash # --------- @@ -1934,11 +1415,11 @@ def spikedash(self): ------- str """ - return self["spikedash"] + return self['spikedash'] @spikedash.setter def spikedash(self, val): - self["spikedash"] = val + self['spikedash'] = val # spikemode # --------- @@ -1960,11 +1441,11 @@ def spikemode(self): ------- Any """ - return self["spikemode"] + return self['spikemode'] @spikemode.setter def spikemode(self, val): - self["spikemode"] = val + self['spikemode'] = val # spikesnap # --------- @@ -1982,11 +1463,11 @@ def spikesnap(self): ------- Any """ - return self["spikesnap"] + return self['spikesnap'] @spikesnap.setter def spikesnap(self, val): - self["spikesnap"] = val + self['spikesnap'] = val # spikethickness # -------------- @@ -2002,11 +1483,11 @@ def spikethickness(self): ------- int|float """ - return self["spikethickness"] + return self['spikethickness'] @spikethickness.setter def spikethickness(self, val): - self["spikethickness"] = val + self['spikethickness'] = val # tick0 # ----- @@ -2029,11 +1510,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -2053,11 +1534,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -2071,52 +1552,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -2131,61 +1577,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.xaxis.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -2211,11 +1611,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -2228,51 +1628,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.layout.xaxis.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -2290,17 +1654,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.layout.xaxis.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabelindex # -------------- @@ -2324,11 +1686,11 @@ def ticklabelindex(self): ------- int|numpy.ndarray """ - return self["ticklabelindex"] + return self['ticklabelindex'] @ticklabelindex.setter def ticklabelindex(self, val): - self["ticklabelindex"] = val + self['ticklabelindex'] = val # ticklabelindexsrc # ----------------- @@ -2345,11 +1707,11 @@ def ticklabelindexsrc(self): ------- str """ - return self["ticklabelindexsrc"] + return self['ticklabelindexsrc'] @ticklabelindexsrc.setter def ticklabelindexsrc(self, val): - self["ticklabelindexsrc"] = val + self['ticklabelindexsrc'] = val # ticklabelmode # ------------- @@ -2369,11 +1731,11 @@ def ticklabelmode(self): ------- Any """ - return self["ticklabelmode"] + return self['ticklabelmode'] @ticklabelmode.setter def ticklabelmode(self, val): - self["ticklabelmode"] = val + self['ticklabelmode'] = val # ticklabeloverflow # ----------------- @@ -2394,11 +1756,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -2424,11 +1786,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelshift # -------------- @@ -2446,11 +1808,11 @@ def ticklabelshift(self): ------- int """ - return self["ticklabelshift"] + return self['ticklabelshift'] @ticklabelshift.setter def ticklabelshift(self, val): - self["ticklabelshift"] = val + self['ticklabelshift'] = val # ticklabelstandoff # ----------------- @@ -2474,11 +1836,11 @@ def ticklabelstandoff(self): ------- int """ - return self["ticklabelstandoff"] + return self['ticklabelstandoff'] @ticklabelstandoff.setter def ticklabelstandoff(self, val): - self["ticklabelstandoff"] = val + self['ticklabelstandoff'] = val # ticklabelstep # ------------- @@ -2500,11 +1862,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -2520,11 +1882,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -2549,11 +1911,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -2570,11 +1932,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -2593,11 +1955,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # tickson # ------- @@ -2618,11 +1980,11 @@ def tickson(self): ------- Any """ - return self["tickson"] + return self['tickson'] @tickson.setter def tickson(self, val): - self["tickson"] = val + self['tickson'] = val # ticksuffix # ---------- @@ -2639,11 +2001,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -2661,11 +2023,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -2681,11 +2043,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -2702,11 +2064,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -2722,11 +2084,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -2742,11 +2104,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -2759,34 +2121,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this axis' title font. - standoff - Sets the standoff distance (in px) between the - axis labels and the title text The default - value is a function of the axis tick labels, - the title `font.size` and the axis `linewidth`. - Note that the axis title position is always - constrained within the margins, so the actual - standoff distance is always less than the set - or default value. By setting `standoff` and - turning on `automargin`, plotly.js will push - the margins to fit the axis title at given - standoff distance. - text - Sets the title of this axis. - Returns ------- plotly.graph_objs.layout.xaxis.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # type # ---- @@ -2806,11 +2149,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # uirevision # ---------- @@ -2827,11 +2170,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # visible # ------- @@ -2849,11 +2192,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # zeroline # -------- @@ -2871,11 +2214,11 @@ def zeroline(self): ------- bool """ - return self["zeroline"] + return self['zeroline'] @zeroline.setter def zeroline(self, val): - self["zeroline"] = val + self['zeroline'] = val # zerolinecolor # ------------- @@ -2889,52 +2232,17 @@ def zerolinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["zerolinecolor"] + return self['zerolinecolor'] @zerolinecolor.setter def zerolinecolor(self, val): - self["zerolinecolor"] = val + self['zerolinecolor'] = val # zerolinewidth # ------------- @@ -2950,11 +2258,11 @@ def zerolinewidth(self): ------- int|float """ - return self["zerolinewidth"] + return self['zerolinewidth'] @zerolinewidth.setter def zerolinewidth(self, val): - self["zerolinewidth"] = val + self['zerolinewidth'] = val # Self properties description # --------------------------- @@ -3468,105 +2776,103 @@ def _prop_descriptions(self): zerolinewidth Sets the width (in px) of the zero line. """ - - def __init__( - self, - arg=None, - anchor=None, - automargin=None, - autorange=None, - autorangeoptions=None, - autotickangles=None, - autotypenumbers=None, - calendar=None, - categoryarray=None, - categoryarraysrc=None, - categoryorder=None, - color=None, - constrain=None, - constraintoward=None, - dividercolor=None, - dividerwidth=None, - domain=None, - dtick=None, - exponentformat=None, - fixedrange=None, - gridcolor=None, - griddash=None, - gridwidth=None, - hoverformat=None, - insiderange=None, - labelalias=None, - layer=None, - linecolor=None, - linewidth=None, - matches=None, - maxallowed=None, - minallowed=None, - minexponent=None, - minor=None, - mirror=None, - nticks=None, - overlaying=None, - position=None, - range=None, - rangebreaks=None, - rangebreakdefaults=None, - rangemode=None, - rangeselector=None, - rangeslider=None, - scaleanchor=None, - scaleratio=None, - separatethousands=None, - showdividers=None, - showexponent=None, - showgrid=None, - showline=None, - showspikes=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - side=None, - spikecolor=None, - spikedash=None, - spikemode=None, - spikesnap=None, - spikethickness=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabelindex=None, - ticklabelindexsrc=None, - ticklabelmode=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelshift=None, - ticklabelstandoff=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - tickson=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - type=None, - uirevision=None, - visible=None, - zeroline=None, - zerolinecolor=None, - zerolinewidth=None, - **kwargs, - ): + def __init__(self, + arg=None, + anchor=None, + automargin=None, + autorange=None, + autorangeoptions=None, + autotickangles=None, + autotypenumbers=None, + calendar=None, + categoryarray=None, + categoryarraysrc=None, + categoryorder=None, + color=None, + constrain=None, + constraintoward=None, + dividercolor=None, + dividerwidth=None, + domain=None, + dtick=None, + exponentformat=None, + fixedrange=None, + gridcolor=None, + griddash=None, + gridwidth=None, + hoverformat=None, + insiderange=None, + labelalias=None, + layer=None, + linecolor=None, + linewidth=None, + matches=None, + maxallowed=None, + minallowed=None, + minexponent=None, + minor=None, + mirror=None, + nticks=None, + overlaying=None, + position=None, + range=None, + rangebreaks=None, + rangebreakdefaults=None, + rangemode=None, + rangeselector=None, + rangeslider=None, + scaleanchor=None, + scaleratio=None, + separatethousands=None, + showdividers=None, + showexponent=None, + showgrid=None, + showline=None, + showspikes=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + side=None, + spikecolor=None, + spikedash=None, + spikemode=None, + spikesnap=None, + spikethickness=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabelindex=None, + ticklabelindexsrc=None, + ticklabelmode=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelshift=None, + ticklabelstandoff=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + tickson=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + type=None, + uirevision=None, + visible=None, + zeroline=None, + zerolinecolor=None, + zerolinewidth=None, + **kwargs + ): """ Construct a new XAxis object @@ -4086,10 +3392,10 @@ def __init__( ------- XAxis """ - super(XAxis, self).__init__("xaxis") + super(XAxis, self).__init__('xaxis') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -4101,392 +3407,112 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.XAxis constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.XAxis`""" - ) +an instance of :class:`plotly.graph_objs.layout.XAxis`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("anchor", None) - _v = anchor if anchor is not None else _v - if _v is not None: - self["anchor"] = _v - _v = arg.pop("automargin", None) - _v = automargin if automargin is not None else _v - if _v is not None: - self["automargin"] = _v - _v = arg.pop("autorange", None) - _v = autorange if autorange is not None else _v - if _v is not None: - self["autorange"] = _v - _v = arg.pop("autorangeoptions", None) - _v = autorangeoptions if autorangeoptions is not None else _v - if _v is not None: - self["autorangeoptions"] = _v - _v = arg.pop("autotickangles", None) - _v = autotickangles if autotickangles is not None else _v - if _v is not None: - self["autotickangles"] = _v - _v = arg.pop("autotypenumbers", None) - _v = autotypenumbers if autotypenumbers is not None else _v - if _v is not None: - self["autotypenumbers"] = _v - _v = arg.pop("calendar", None) - _v = calendar if calendar is not None else _v - if _v is not None: - self["calendar"] = _v - _v = arg.pop("categoryarray", None) - _v = categoryarray if categoryarray is not None else _v - if _v is not None: - self["categoryarray"] = _v - _v = arg.pop("categoryarraysrc", None) - _v = categoryarraysrc if categoryarraysrc is not None else _v - if _v is not None: - self["categoryarraysrc"] = _v - _v = arg.pop("categoryorder", None) - _v = categoryorder if categoryorder is not None else _v - if _v is not None: - self["categoryorder"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("constrain", None) - _v = constrain if constrain is not None else _v - if _v is not None: - self["constrain"] = _v - _v = arg.pop("constraintoward", None) - _v = constraintoward if constraintoward is not None else _v - if _v is not None: - self["constraintoward"] = _v - _v = arg.pop("dividercolor", None) - _v = dividercolor if dividercolor is not None else _v - if _v is not None: - self["dividercolor"] = _v - _v = arg.pop("dividerwidth", None) - _v = dividerwidth if dividerwidth is not None else _v - if _v is not None: - self["dividerwidth"] = _v - _v = arg.pop("domain", None) - _v = domain if domain is not None else _v - if _v is not None: - self["domain"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("fixedrange", None) - _v = fixedrange if fixedrange is not None else _v - if _v is not None: - self["fixedrange"] = _v - _v = arg.pop("gridcolor", None) - _v = gridcolor if gridcolor is not None else _v - if _v is not None: - self["gridcolor"] = _v - _v = arg.pop("griddash", None) - _v = griddash if griddash is not None else _v - if _v is not None: - self["griddash"] = _v - _v = arg.pop("gridwidth", None) - _v = gridwidth if gridwidth is not None else _v - if _v is not None: - self["gridwidth"] = _v - _v = arg.pop("hoverformat", None) - _v = hoverformat if hoverformat is not None else _v - if _v is not None: - self["hoverformat"] = _v - _v = arg.pop("insiderange", None) - _v = insiderange if insiderange is not None else _v - if _v is not None: - self["insiderange"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("layer", None) - _v = layer if layer is not None else _v - if _v is not None: - self["layer"] = _v - _v = arg.pop("linecolor", None) - _v = linecolor if linecolor is not None else _v - if _v is not None: - self["linecolor"] = _v - _v = arg.pop("linewidth", None) - _v = linewidth if linewidth is not None else _v - if _v is not None: - self["linewidth"] = _v - _v = arg.pop("matches", None) - _v = matches if matches is not None else _v - if _v is not None: - self["matches"] = _v - _v = arg.pop("maxallowed", None) - _v = maxallowed if maxallowed is not None else _v - if _v is not None: - self["maxallowed"] = _v - _v = arg.pop("minallowed", None) - _v = minallowed if minallowed is not None else _v - if _v is not None: - self["minallowed"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("minor", None) - _v = minor if minor is not None else _v - if _v is not None: - self["minor"] = _v - _v = arg.pop("mirror", None) - _v = mirror if mirror is not None else _v - if _v is not None: - self["mirror"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("overlaying", None) - _v = overlaying if overlaying is not None else _v - if _v is not None: - self["overlaying"] = _v - _v = arg.pop("position", None) - _v = position if position is not None else _v - if _v is not None: - self["position"] = _v - _v = arg.pop("range", None) - _v = range if range is not None else _v - if _v is not None: - self["range"] = _v - _v = arg.pop("rangebreaks", None) - _v = rangebreaks if rangebreaks is not None else _v - if _v is not None: - self["rangebreaks"] = _v - _v = arg.pop("rangebreakdefaults", None) - _v = rangebreakdefaults if rangebreakdefaults is not None else _v - if _v is not None: - self["rangebreakdefaults"] = _v - _v = arg.pop("rangemode", None) - _v = rangemode if rangemode is not None else _v - if _v is not None: - self["rangemode"] = _v - _v = arg.pop("rangeselector", None) - _v = rangeselector if rangeselector is not None else _v - if _v is not None: - self["rangeselector"] = _v - _v = arg.pop("rangeslider", None) - _v = rangeslider if rangeslider is not None else _v - if _v is not None: - self["rangeslider"] = _v - _v = arg.pop("scaleanchor", None) - _v = scaleanchor if scaleanchor is not None else _v - if _v is not None: - self["scaleanchor"] = _v - _v = arg.pop("scaleratio", None) - _v = scaleratio if scaleratio is not None else _v - if _v is not None: - self["scaleratio"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showdividers", None) - _v = showdividers if showdividers is not None else _v - if _v is not None: - self["showdividers"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showgrid", None) - _v = showgrid if showgrid is not None else _v - if _v is not None: - self["showgrid"] = _v - _v = arg.pop("showline", None) - _v = showline if showline is not None else _v - if _v is not None: - self["showline"] = _v - _v = arg.pop("showspikes", None) - _v = showspikes if showspikes is not None else _v - if _v is not None: - self["showspikes"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("spikecolor", None) - _v = spikecolor if spikecolor is not None else _v - if _v is not None: - self["spikecolor"] = _v - _v = arg.pop("spikedash", None) - _v = spikedash if spikedash is not None else _v - if _v is not None: - self["spikedash"] = _v - _v = arg.pop("spikemode", None) - _v = spikemode if spikemode is not None else _v - if _v is not None: - self["spikemode"] = _v - _v = arg.pop("spikesnap", None) - _v = spikesnap if spikesnap is not None else _v - if _v is not None: - self["spikesnap"] = _v - _v = arg.pop("spikethickness", None) - _v = spikethickness if spikethickness is not None else _v - if _v is not None: - self["spikethickness"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabelindex", None) - _v = ticklabelindex if ticklabelindex is not None else _v - if _v is not None: - self["ticklabelindex"] = _v - _v = arg.pop("ticklabelindexsrc", None) - _v = ticklabelindexsrc if ticklabelindexsrc is not None else _v - if _v is not None: - self["ticklabelindexsrc"] = _v - _v = arg.pop("ticklabelmode", None) - _v = ticklabelmode if ticklabelmode is not None else _v - if _v is not None: - self["ticklabelmode"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelshift", None) - _v = ticklabelshift if ticklabelshift is not None else _v - if _v is not None: - self["ticklabelshift"] = _v - _v = arg.pop("ticklabelstandoff", None) - _v = ticklabelstandoff if ticklabelstandoff is not None else _v - if _v is not None: - self["ticklabelstandoff"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("tickson", None) - _v = tickson if tickson is not None else _v - if _v is not None: - self["tickson"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("zeroline", None) - _v = zeroline if zeroline is not None else _v - if _v is not None: - self["zeroline"] = _v - _v = arg.pop("zerolinecolor", None) - _v = zerolinecolor if zerolinecolor is not None else _v - if _v is not None: - self["zerolinecolor"] = _v - _v = arg.pop("zerolinewidth", None) - _v = zerolinewidth if zerolinewidth is not None else _v - if _v is not None: - self["zerolinewidth"] = _v + self._init_provided('anchor', arg, anchor) + self._init_provided('automargin', arg, automargin) + self._init_provided('autorange', arg, autorange) + self._init_provided('autorangeoptions', arg, autorangeoptions) + self._init_provided('autotickangles', arg, autotickangles) + self._init_provided('autotypenumbers', arg, autotypenumbers) + self._init_provided('calendar', arg, calendar) + self._init_provided('categoryarray', arg, categoryarray) + self._init_provided('categoryarraysrc', arg, categoryarraysrc) + self._init_provided('categoryorder', arg, categoryorder) + self._init_provided('color', arg, color) + self._init_provided('constrain', arg, constrain) + self._init_provided('constraintoward', arg, constraintoward) + self._init_provided('dividercolor', arg, dividercolor) + self._init_provided('dividerwidth', arg, dividerwidth) + self._init_provided('domain', arg, domain) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('fixedrange', arg, fixedrange) + self._init_provided('gridcolor', arg, gridcolor) + self._init_provided('griddash', arg, griddash) + self._init_provided('gridwidth', arg, gridwidth) + self._init_provided('hoverformat', arg, hoverformat) + self._init_provided('insiderange', arg, insiderange) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('layer', arg, layer) + self._init_provided('linecolor', arg, linecolor) + self._init_provided('linewidth', arg, linewidth) + self._init_provided('matches', arg, matches) + self._init_provided('maxallowed', arg, maxallowed) + self._init_provided('minallowed', arg, minallowed) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('minor', arg, minor) + self._init_provided('mirror', arg, mirror) + self._init_provided('nticks', arg, nticks) + self._init_provided('overlaying', arg, overlaying) + self._init_provided('position', arg, position) + self._init_provided('range', arg, range) + self._init_provided('rangebreaks', arg, rangebreaks) + self._init_provided('rangebreakdefaults', arg, rangebreakdefaults) + self._init_provided('rangemode', arg, rangemode) + self._init_provided('rangeselector', arg, rangeselector) + self._init_provided('rangeslider', arg, rangeslider) + self._init_provided('scaleanchor', arg, scaleanchor) + self._init_provided('scaleratio', arg, scaleratio) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showdividers', arg, showdividers) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showgrid', arg, showgrid) + self._init_provided('showline', arg, showline) + self._init_provided('showspikes', arg, showspikes) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('side', arg, side) + self._init_provided('spikecolor', arg, spikecolor) + self._init_provided('spikedash', arg, spikedash) + self._init_provided('spikemode', arg, spikemode) + self._init_provided('spikesnap', arg, spikesnap) + self._init_provided('spikethickness', arg, spikethickness) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabelindex', arg, ticklabelindex) + self._init_provided('ticklabelindexsrc', arg, ticklabelindexsrc) + self._init_provided('ticklabelmode', arg, ticklabelmode) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelshift', arg, ticklabelshift) + self._init_provided('ticklabelstandoff', arg, ticklabelstandoff) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('tickson', arg, tickson) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('type', arg, type) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('visible', arg, visible) + self._init_provided('zeroline', arg, zeroline) + self._init_provided('zerolinecolor', arg, zerolinecolor) + self._init_provided('zerolinewidth', arg, zerolinewidth) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_yaxis.py b/packages/python/plotly/plotly/graph_objs/layout/_yaxis.py index c3deb7fbe01..8572610f85a 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_yaxis.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_yaxis.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,103 +8,9 @@ class YAxis(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout" - _path_str = "layout.yaxis" - _valid_props = { - "anchor", - "automargin", - "autorange", - "autorangeoptions", - "autoshift", - "autotickangles", - "autotypenumbers", - "calendar", - "categoryarray", - "categoryarraysrc", - "categoryorder", - "color", - "constrain", - "constraintoward", - "dividercolor", - "dividerwidth", - "domain", - "dtick", - "exponentformat", - "fixedrange", - "gridcolor", - "griddash", - "gridwidth", - "hoverformat", - "insiderange", - "labelalias", - "layer", - "linecolor", - "linewidth", - "matches", - "maxallowed", - "minallowed", - "minexponent", - "minor", - "mirror", - "nticks", - "overlaying", - "position", - "range", - "rangebreakdefaults", - "rangebreaks", - "rangemode", - "scaleanchor", - "scaleratio", - "separatethousands", - "shift", - "showdividers", - "showexponent", - "showgrid", - "showline", - "showspikes", - "showticklabels", - "showtickprefix", - "showticksuffix", - "side", - "spikecolor", - "spikedash", - "spikemode", - "spikesnap", - "spikethickness", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabelindex", - "ticklabelindexsrc", - "ticklabelmode", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelshift", - "ticklabelstandoff", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "tickson", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "type", - "uirevision", - "visible", - "zeroline", - "zerolinecolor", - "zerolinewidth", - } + _parent_path_str = 'layout' + _path_str = 'layout.yaxis' + _valid_props = {"anchor", "automargin", "autorange", "autorangeoptions", "autoshift", "autotickangles", "autotypenumbers", "calendar", "categoryarray", "categoryarraysrc", "categoryorder", "color", "constrain", "constraintoward", "dividercolor", "dividerwidth", "domain", "dtick", "exponentformat", "fixedrange", "gridcolor", "griddash", "gridwidth", "hoverformat", "insiderange", "labelalias", "layer", "linecolor", "linewidth", "matches", "maxallowed", "minallowed", "minexponent", "minor", "mirror", "nticks", "overlaying", "position", "range", "rangebreakdefaults", "rangebreaks", "rangemode", "scaleanchor", "scaleratio", "separatethousands", "shift", "showdividers", "showexponent", "showgrid", "showline", "showspikes", "showticklabels", "showtickprefix", "showticksuffix", "side", "spikecolor", "spikedash", "spikemode", "spikesnap", "spikethickness", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabelindex", "ticklabelindexsrc", "ticklabelmode", "ticklabeloverflow", "ticklabelposition", "ticklabelshift", "ticklabelstandoff", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "tickson", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "type", "uirevision", "visible", "zeroline", "zerolinecolor", "zerolinewidth"} # anchor # ------ @@ -124,11 +32,11 @@ def anchor(self): ------- Any """ - return self["anchor"] + return self['anchor'] @anchor.setter def anchor(self, val): - self["anchor"] = val + self['anchor'] = val # automargin # ---------- @@ -148,11 +56,11 @@ def automargin(self): ------- Any """ - return self["automargin"] + return self['automargin'] @automargin.setter def automargin(self, val): - self["automargin"] = val + self['automargin'] = val # autorange # --------- @@ -179,11 +87,11 @@ def autorange(self): ------- Any """ - return self["autorange"] + return self['autorange'] @autorange.setter def autorange(self, val): - self["autorange"] = val + self['autorange'] = val # autorangeoptions # ---------------- @@ -196,35 +104,15 @@ def autorangeoptions(self): - A dict of string/value properties that will be passed to the Autorangeoptions constructor - Supported dict properties: - - clipmax - Clip autorange maximum if it goes beyond this - value. Has no effect when - `autorangeoptions.maxallowed` is provided. - clipmin - Clip autorange minimum if it goes beyond this - value. Has no effect when - `autorangeoptions.minallowed` is provided. - include - Ensure this value is included in autorange. - includesrc - Sets the source reference on Chart Studio Cloud - for `include`. - maxallowed - Use this value exactly as autorange maximum. - minallowed - Use this value exactly as autorange minimum. - Returns ------- plotly.graph_objs.layout.yaxis.Autorangeoptions """ - return self["autorangeoptions"] + return self['autorangeoptions'] @autorangeoptions.setter def autorangeoptions(self, val): - self["autorangeoptions"] = val + self['autorangeoptions'] = val # autoshift # --------- @@ -244,11 +132,11 @@ def autoshift(self): ------- bool """ - return self["autoshift"] + return self['autoshift'] @autoshift.setter def autoshift(self, val): - self["autoshift"] = val + self['autoshift'] = val # autotickangles # -------------- @@ -270,11 +158,11 @@ def autotickangles(self): ------- list """ - return self["autotickangles"] + return self['autotickangles'] @autotickangles.setter def autotickangles(self, val): - self["autotickangles"] = val + self['autotickangles'] = val # autotypenumbers # --------------- @@ -294,11 +182,11 @@ def autotypenumbers(self): ------- Any """ - return self["autotypenumbers"] + return self['autotypenumbers'] @autotypenumbers.setter def autotypenumbers(self, val): - self["autotypenumbers"] = val + self['autotypenumbers'] = val # calendar # -------- @@ -321,11 +209,11 @@ def calendar(self): ------- Any """ - return self["calendar"] + return self['calendar'] @calendar.setter def calendar(self, val): - self["calendar"] = val + self['calendar'] = val # categoryarray # ------------- @@ -343,11 +231,11 @@ def categoryarray(self): ------- numpy.ndarray """ - return self["categoryarray"] + return self['categoryarray'] @categoryarray.setter def categoryarray(self, val): - self["categoryarray"] = val + self['categoryarray'] = val # categoryarraysrc # ---------------- @@ -364,11 +252,11 @@ def categoryarraysrc(self): ------- str """ - return self["categoryarraysrc"] + return self['categoryarraysrc'] @categoryarraysrc.setter def categoryarraysrc(self, val): - self["categoryarraysrc"] = val + self['categoryarraysrc'] = val # categoryorder # ------------- @@ -405,11 +293,11 @@ def categoryorder(self): ------- Any """ - return self["categoryorder"] + return self['categoryorder'] @categoryorder.setter def categoryorder(self, val): - self["categoryorder"] = val + self['categoryorder'] = val # color # ----- @@ -426,52 +314,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # constrain # --------- @@ -492,11 +345,11 @@ def constrain(self): ------- Any """ - return self["constrain"] + return self['constrain'] @constrain.setter def constrain(self, val): - self["constrain"] = val + self['constrain'] = val # constraintoward # --------------- @@ -518,11 +371,11 @@ def constraintoward(self): ------- Any """ - return self["constraintoward"] + return self['constraintoward'] @constraintoward.setter def constraintoward(self, val): - self["constraintoward"] = val + self['constraintoward'] = val # dividercolor # ------------ @@ -537,52 +390,17 @@ def dividercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["dividercolor"] + return self['dividercolor'] @dividercolor.setter def dividercolor(self, val): - self["dividercolor"] = val + self['dividercolor'] = val # dividerwidth # ------------ @@ -599,36 +417,36 @@ def dividerwidth(self): ------- int|float """ - return self["dividerwidth"] + return self['dividerwidth'] @dividerwidth.setter def dividerwidth(self, val): - self["dividerwidth"] = val + self['dividerwidth'] = val # domain # ------ @property def domain(self): """ - Sets the domain of this axis (in plot fraction). + Sets the domain of this axis (in plot fraction). - The 'domain' property is an info array that may be specified as: - - * a list or tuple of 2 elements where: - (0) The 'domain[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'domain[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] + The 'domain' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'domain[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'domain[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - Returns - ------- - list + Returns + ------- + list """ - return self["domain"] + return self['domain'] @domain.setter def domain(self, val): - self["domain"] = val + self['domain'] = val # dtick # ----- @@ -662,11 +480,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -687,11 +505,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # fixedrange # ---------- @@ -708,11 +526,11 @@ def fixedrange(self): ------- bool """ - return self["fixedrange"] + return self['fixedrange'] @fixedrange.setter def fixedrange(self, val): - self["fixedrange"] = val + self['fixedrange'] = val # gridcolor # --------- @@ -726,52 +544,17 @@ def gridcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["gridcolor"] + return self['gridcolor'] @gridcolor.setter def gridcolor(self, val): - self["gridcolor"] = val + self['gridcolor'] = val # griddash # -------- @@ -793,11 +576,11 @@ def griddash(self): ------- str """ - return self["griddash"] + return self['griddash'] @griddash.setter def griddash(self, val): - self["griddash"] = val + self['griddash'] = val # gridwidth # --------- @@ -813,11 +596,11 @@ def gridwidth(self): ------- int|float """ - return self["gridwidth"] + return self['gridwidth'] @gridwidth.setter def gridwidth(self, val): - self["gridwidth"] = val + self['gridwidth'] = val # hoverformat # ----------- @@ -843,37 +626,37 @@ def hoverformat(self): ------- str """ - return self["hoverformat"] + return self['hoverformat'] @hoverformat.setter def hoverformat(self, val): - self["hoverformat"] = val + self['hoverformat'] = val # insiderange # ----------- @property def insiderange(self): """ - Could be used to set the desired inside range of this axis - (excluding the labels) when `ticklabelposition` of the anchored - axis has "inside". Not implemented for axes with `type` "log". - This would be ignored when `range` is provided. + Could be used to set the desired inside range of this axis + (excluding the labels) when `ticklabelposition` of the anchored + axis has "inside". Not implemented for axes with `type` "log". + This would be ignored when `range` is provided. - The 'insiderange' property is an info array that may be specified as: + The 'insiderange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'insiderange[0]' property accepts values of any type + (1) The 'insiderange[1]' property accepts values of any type - * a list or tuple of 2 elements where: - (0) The 'insiderange[0]' property accepts values of any type - (1) The 'insiderange[1]' property accepts values of any type - - Returns - ------- - list + Returns + ------- + list """ - return self["insiderange"] + return self['insiderange'] @insiderange.setter def insiderange(self, val): - self["insiderange"] = val + self['insiderange'] = val # labelalias # ---------- @@ -896,11 +679,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # layer # ----- @@ -922,11 +705,11 @@ def layer(self): ------- Any """ - return self["layer"] + return self['layer'] @layer.setter def layer(self, val): - self["layer"] = val + self['layer'] = val # linecolor # --------- @@ -940,52 +723,17 @@ def linecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["linecolor"] + return self['linecolor'] @linecolor.setter def linecolor(self, val): - self["linecolor"] = val + self['linecolor'] = val # linewidth # --------- @@ -1001,11 +749,11 @@ def linewidth(self): ------- int|float """ - return self["linewidth"] + return self['linewidth'] @linewidth.setter def linewidth(self, val): - self["linewidth"] = val + self['linewidth'] = val # matches # ------- @@ -1029,11 +777,11 @@ def matches(self): ------- Any """ - return self["matches"] + return self['matches'] @matches.setter def matches(self, val): - self["matches"] = val + self['matches'] = val # maxallowed # ---------- @@ -1048,11 +796,11 @@ def maxallowed(self): ------- Any """ - return self["maxallowed"] + return self['maxallowed'] @maxallowed.setter def maxallowed(self, val): - self["maxallowed"] = val + self['maxallowed'] = val # minallowed # ---------- @@ -1067,11 +815,11 @@ def minallowed(self): ------- Any """ - return self["minallowed"] + return self['minallowed'] @minallowed.setter def minallowed(self, val): - self["minallowed"] = val + self['minallowed'] = val # minexponent # ----------- @@ -1088,11 +836,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # minor # ----- @@ -1105,106 +853,15 @@ def minor(self): - A dict of string/value properties that will be passed to the Minor constructor - Supported dict properties: - - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - gridcolor - Sets the color of the grid lines. - 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 width (in px) of the grid lines. - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickcolor - Sets the tick color. - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - Returns ------- plotly.graph_objs.layout.yaxis.Minor """ - return self["minor"] + return self['minor'] @minor.setter def minor(self, val): - self["minor"] = val + self['minor'] = val # mirror # ------ @@ -1226,11 +883,11 @@ def mirror(self): ------- Any """ - return self["mirror"] + return self['mirror'] @mirror.setter def mirror(self, val): - self["mirror"] = val + self['mirror'] = val # nticks # ------ @@ -1250,11 +907,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # overlaying # ---------- @@ -1278,11 +935,11 @@ def overlaying(self): ------- Any """ - return self["overlaying"] + return self['overlaying'] @overlaying.setter def overlaying(self, val): - self["overlaying"] = val + self['overlaying'] = val # position # -------- @@ -1300,43 +957,43 @@ def position(self): ------- int|float """ - return self["position"] + return self['position'] @position.setter def position(self, val): - self["position"] = val + self['position'] = val # range # ----- @property def range(self): """ - Sets the range of this axis. If the axis `type` is "log", then - you must take the log of your desired range (e.g. to set the - range from 1 to 100, set the range from 0 to 2). If the axis - `type` is "date", it should be date strings, like date data, - though Date objects and unix milliseconds will be accepted and - converted to strings. If the axis `type` is "category", it - should be numbers, using the scale where each category is - assigned a serial number from zero in the order it appears. - Leaving either or both elements `null` impacts the default - `autorange`. + Sets the range of this axis. If the axis `type` is "log", then + you must take the log of your desired range (e.g. to set the + range from 1 to 100, set the range from 0 to 2). If the axis + `type` is "date", it should be date strings, like date data, + though Date objects and unix milliseconds will be accepted and + converted to strings. If the axis `type` is "category", it + should be numbers, using the scale where each category is + assigned a serial number from zero in the order it appears. + Leaving either or both elements `null` impacts the default + `autorange`. - The 'range' property is an info array that may be specified as: + The 'range' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'range[0]' property accepts values of any type + (1) The 'range[1]' property accepts values of any type - * a list or tuple of 2 elements where: - (0) The 'range[0]' property accepts values of any type - (1) The 'range[1]' property accepts values of any type - - Returns - ------- - list + Returns + ------- + list """ - return self["range"] + return self['range'] @range.setter def range(self, val): - self["range"] = val + self['range'] = val # rangebreaks # ----------- @@ -1349,69 +1006,15 @@ def rangebreaks(self): - A list or tuple of dicts of string/value properties that will be passed to the Rangebreak constructor - Supported dict properties: - - bounds - Sets the lower and upper bounds of this axis - rangebreak. Can be used with `pattern`. - dvalue - Sets the size of each `values` item. The - default is one day in milliseconds. - enabled - Determines whether this axis rangebreak is - enabled or disabled. Please note that - `rangebreaks` only work for "date" axis type. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - pattern - Determines a pattern on the time line that - generates breaks. If *day of week* - days of - the week in English e.g. 'Sunday' or `sun` - (matching is case-insensitive and considers - only the first three characters), as well as - Sunday-based integers between 0 and 6. If - "hour" - hour (24-hour clock) as decimal - numbers between 0 and 24. for more info. - Examples: - { pattern: 'day of week', bounds: - [6, 1] } or simply { bounds: ['sat', 'mon'] } - breaks from Saturday to Monday (i.e. skips the - weekends). - { pattern: 'hour', bounds: [17, 8] - } breaks from 5pm to 8am (i.e. skips non-work - hours). - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - values - Sets the coordinate values corresponding to the - rangebreaks. An alternative to `bounds`. Use - `dvalue` to set the size of the values along - the axis. - Returns ------- tuple[plotly.graph_objs.layout.yaxis.Rangebreak] """ - return self["rangebreaks"] + return self['rangebreaks'] @rangebreaks.setter def rangebreaks(self, val): - self["rangebreaks"] = val + self['rangebreaks'] = val # rangebreakdefaults # ------------------ @@ -1429,17 +1032,15 @@ def rangebreakdefaults(self): - A dict of string/value properties that will be passed to the Rangebreak constructor - Supported dict properties: - Returns ------- plotly.graph_objs.layout.yaxis.Rangebreak """ - return self["rangebreakdefaults"] + return self['rangebreakdefaults'] @rangebreakdefaults.setter def rangebreakdefaults(self, val): - self["rangebreakdefaults"] = val + self['rangebreakdefaults'] = val # rangemode # --------- @@ -1460,11 +1061,11 @@ def rangemode(self): ------- Any """ - return self["rangemode"] + return self['rangemode'] @rangemode.setter def rangemode(self, val): - self["rangemode"] = val + self['rangemode'] = val # scaleanchor # ----------- @@ -1505,11 +1106,11 @@ def scaleanchor(self): ------- Any """ - return self["scaleanchor"] + return self['scaleanchor'] @scaleanchor.setter def scaleanchor(self, val): - self["scaleanchor"] = val + self['scaleanchor'] = val # scaleratio # ---------- @@ -1530,11 +1131,11 @@ def scaleratio(self): ------- int|float """ - return self["scaleratio"] + return self['scaleratio'] @scaleratio.setter def scaleratio(self, val): - self["scaleratio"] = val + self['scaleratio'] = val # separatethousands # ----------------- @@ -1550,11 +1151,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # shift # ----- @@ -1576,11 +1177,11 @@ def shift(self): ------- int|float """ - return self["shift"] + return self['shift'] @shift.setter def shift(self, val): - self["shift"] = val + self['shift'] = val # showdividers # ------------ @@ -1598,11 +1199,11 @@ def showdividers(self): ------- bool """ - return self["showdividers"] + return self['showdividers'] @showdividers.setter def showdividers(self, val): - self["showdividers"] = val + self['showdividers'] = val # showexponent # ------------ @@ -1622,11 +1223,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showgrid # -------- @@ -1643,11 +1244,11 @@ def showgrid(self): ------- bool """ - return self["showgrid"] + return self['showgrid'] @showgrid.setter def showgrid(self, val): - self["showgrid"] = val + self['showgrid'] = val # showline # -------- @@ -1663,11 +1264,11 @@ def showline(self): ------- bool """ - return self["showline"] + return self['showline'] @showline.setter def showline(self, val): - self["showline"] = val + self['showline'] = val # showspikes # ---------- @@ -1685,11 +1286,11 @@ def showspikes(self): ------- bool """ - return self["showspikes"] + return self['showspikes'] @showspikes.setter def showspikes(self, val): - self["showspikes"] = val + self['showspikes'] = val # showticklabels # -------------- @@ -1705,11 +1306,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -1729,11 +1330,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -1750,11 +1351,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # side # ---- @@ -1772,11 +1373,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # spikecolor # ---------- @@ -1790,52 +1391,17 @@ def spikecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["spikecolor"] + return self['spikecolor'] @spikecolor.setter def spikecolor(self, val): - self["spikecolor"] = val + self['spikecolor'] = val # spikedash # --------- @@ -1857,11 +1423,11 @@ def spikedash(self): ------- str """ - return self["spikedash"] + return self['spikedash'] @spikedash.setter def spikedash(self, val): - self["spikedash"] = val + self['spikedash'] = val # spikemode # --------- @@ -1883,11 +1449,11 @@ def spikemode(self): ------- Any """ - return self["spikemode"] + return self['spikemode'] @spikemode.setter def spikemode(self, val): - self["spikemode"] = val + self['spikemode'] = val # spikesnap # --------- @@ -1905,11 +1471,11 @@ def spikesnap(self): ------- Any """ - return self["spikesnap"] + return self['spikesnap'] @spikesnap.setter def spikesnap(self, val): - self["spikesnap"] = val + self['spikesnap'] = val # spikethickness # -------------- @@ -1925,11 +1491,11 @@ def spikethickness(self): ------- int|float """ - return self["spikethickness"] + return self['spikethickness'] @spikethickness.setter def spikethickness(self, val): - self["spikethickness"] = val + self['spikethickness'] = val # tick0 # ----- @@ -1952,11 +1518,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -1976,11 +1542,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -1994,52 +1560,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -2054,61 +1585,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.yaxis.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -2134,11 +1619,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -2151,51 +1636,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.layout.yaxis.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -2213,17 +1662,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.layout.yaxis.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabelindex # -------------- @@ -2247,11 +1694,11 @@ def ticklabelindex(self): ------- int|numpy.ndarray """ - return self["ticklabelindex"] + return self['ticklabelindex'] @ticklabelindex.setter def ticklabelindex(self, val): - self["ticklabelindex"] = val + self['ticklabelindex'] = val # ticklabelindexsrc # ----------------- @@ -2268,11 +1715,11 @@ def ticklabelindexsrc(self): ------- str """ - return self["ticklabelindexsrc"] + return self['ticklabelindexsrc'] @ticklabelindexsrc.setter def ticklabelindexsrc(self, val): - self["ticklabelindexsrc"] = val + self['ticklabelindexsrc'] = val # ticklabelmode # ------------- @@ -2292,11 +1739,11 @@ def ticklabelmode(self): ------- Any """ - return self["ticklabelmode"] + return self['ticklabelmode'] @ticklabelmode.setter def ticklabelmode(self, val): - self["ticklabelmode"] = val + self['ticklabelmode'] = val # ticklabeloverflow # ----------------- @@ -2317,11 +1764,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -2347,11 +1794,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelshift # -------------- @@ -2369,11 +1816,11 @@ def ticklabelshift(self): ------- int """ - return self["ticklabelshift"] + return self['ticklabelshift'] @ticklabelshift.setter def ticklabelshift(self, val): - self["ticklabelshift"] = val + self['ticklabelshift'] = val # ticklabelstandoff # ----------------- @@ -2397,11 +1844,11 @@ def ticklabelstandoff(self): ------- int """ - return self["ticklabelstandoff"] + return self['ticklabelstandoff'] @ticklabelstandoff.setter def ticklabelstandoff(self, val): - self["ticklabelstandoff"] = val + self['ticklabelstandoff'] = val # ticklabelstep # ------------- @@ -2423,11 +1870,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -2443,11 +1890,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -2472,11 +1919,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -2493,11 +1940,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -2516,11 +1963,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # tickson # ------- @@ -2541,11 +1988,11 @@ def tickson(self): ------- Any """ - return self["tickson"] + return self['tickson'] @tickson.setter def tickson(self, val): - self["tickson"] = val + self['tickson'] = val # ticksuffix # ---------- @@ -2562,11 +2009,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -2584,11 +2031,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -2604,11 +2051,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -2625,11 +2072,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -2645,11 +2092,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -2665,11 +2112,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -2682,34 +2129,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this axis' title font. - standoff - Sets the standoff distance (in px) between the - axis labels and the title text The default - value is a function of the axis tick labels, - the title `font.size` and the axis `linewidth`. - Note that the axis title position is always - constrained within the margins, so the actual - standoff distance is always less than the set - or default value. By setting `standoff` and - turning on `automargin`, plotly.js will push - the margins to fit the axis title at given - standoff distance. - text - Sets the title of this axis. - Returns ------- plotly.graph_objs.layout.yaxis.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # type # ---- @@ -2729,11 +2157,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # uirevision # ---------- @@ -2750,11 +2178,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # visible # ------- @@ -2772,11 +2200,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # zeroline # -------- @@ -2794,11 +2222,11 @@ def zeroline(self): ------- bool """ - return self["zeroline"] + return self['zeroline'] @zeroline.setter def zeroline(self, val): - self["zeroline"] = val + self['zeroline'] = val # zerolinecolor # ------------- @@ -2812,52 +2240,17 @@ def zerolinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["zerolinecolor"] + return self['zerolinecolor'] @zerolinecolor.setter def zerolinecolor(self, val): - self["zerolinecolor"] = val + self['zerolinecolor'] = val # zerolinewidth # ------------- @@ -2873,11 +2266,11 @@ def zerolinewidth(self): ------- int|float """ - return self["zerolinewidth"] + return self['zerolinewidth'] @zerolinewidth.setter def zerolinewidth(self, val): - self["zerolinewidth"] = val + self['zerolinewidth'] = val # Self properties description # --------------------------- @@ -3401,105 +2794,103 @@ def _prop_descriptions(self): zerolinewidth Sets the width (in px) of the zero line. """ - - def __init__( - self, - arg=None, - anchor=None, - automargin=None, - autorange=None, - autorangeoptions=None, - autoshift=None, - autotickangles=None, - autotypenumbers=None, - calendar=None, - categoryarray=None, - categoryarraysrc=None, - categoryorder=None, - color=None, - constrain=None, - constraintoward=None, - dividercolor=None, - dividerwidth=None, - domain=None, - dtick=None, - exponentformat=None, - fixedrange=None, - gridcolor=None, - griddash=None, - gridwidth=None, - hoverformat=None, - insiderange=None, - labelalias=None, - layer=None, - linecolor=None, - linewidth=None, - matches=None, - maxallowed=None, - minallowed=None, - minexponent=None, - minor=None, - mirror=None, - nticks=None, - overlaying=None, - position=None, - range=None, - rangebreaks=None, - rangebreakdefaults=None, - rangemode=None, - scaleanchor=None, - scaleratio=None, - separatethousands=None, - shift=None, - showdividers=None, - showexponent=None, - showgrid=None, - showline=None, - showspikes=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - side=None, - spikecolor=None, - spikedash=None, - spikemode=None, - spikesnap=None, - spikethickness=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabelindex=None, - ticklabelindexsrc=None, - ticklabelmode=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelshift=None, - ticklabelstandoff=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - tickson=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - type=None, - uirevision=None, - visible=None, - zeroline=None, - zerolinecolor=None, - zerolinewidth=None, - **kwargs, - ): + def __init__(self, + arg=None, + anchor=None, + automargin=None, + autorange=None, + autorangeoptions=None, + autoshift=None, + autotickangles=None, + autotypenumbers=None, + calendar=None, + categoryarray=None, + categoryarraysrc=None, + categoryorder=None, + color=None, + constrain=None, + constraintoward=None, + dividercolor=None, + dividerwidth=None, + domain=None, + dtick=None, + exponentformat=None, + fixedrange=None, + gridcolor=None, + griddash=None, + gridwidth=None, + hoverformat=None, + insiderange=None, + labelalias=None, + layer=None, + linecolor=None, + linewidth=None, + matches=None, + maxallowed=None, + minallowed=None, + minexponent=None, + minor=None, + mirror=None, + nticks=None, + overlaying=None, + position=None, + range=None, + rangebreaks=None, + rangebreakdefaults=None, + rangemode=None, + scaleanchor=None, + scaleratio=None, + separatethousands=None, + shift=None, + showdividers=None, + showexponent=None, + showgrid=None, + showline=None, + showspikes=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + side=None, + spikecolor=None, + spikedash=None, + spikemode=None, + spikesnap=None, + spikethickness=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabelindex=None, + ticklabelindexsrc=None, + ticklabelmode=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelshift=None, + ticklabelstandoff=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + tickson=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + type=None, + uirevision=None, + visible=None, + zeroline=None, + zerolinecolor=None, + zerolinewidth=None, + **kwargs + ): """ Construct a new YAxis object @@ -4029,10 +3420,10 @@ def __init__( ------- YAxis """ - super(YAxis, self).__init__("yaxis") + super(YAxis, self).__init__('yaxis') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -4044,392 +3435,112 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.YAxis constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.YAxis`""" - ) +an instance of :class:`plotly.graph_objs.layout.YAxis`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("anchor", None) - _v = anchor if anchor is not None else _v - if _v is not None: - self["anchor"] = _v - _v = arg.pop("automargin", None) - _v = automargin if automargin is not None else _v - if _v is not None: - self["automargin"] = _v - _v = arg.pop("autorange", None) - _v = autorange if autorange is not None else _v - if _v is not None: - self["autorange"] = _v - _v = arg.pop("autorangeoptions", None) - _v = autorangeoptions if autorangeoptions is not None else _v - if _v is not None: - self["autorangeoptions"] = _v - _v = arg.pop("autoshift", None) - _v = autoshift if autoshift is not None else _v - if _v is not None: - self["autoshift"] = _v - _v = arg.pop("autotickangles", None) - _v = autotickangles if autotickangles is not None else _v - if _v is not None: - self["autotickangles"] = _v - _v = arg.pop("autotypenumbers", None) - _v = autotypenumbers if autotypenumbers is not None else _v - if _v is not None: - self["autotypenumbers"] = _v - _v = arg.pop("calendar", None) - _v = calendar if calendar is not None else _v - if _v is not None: - self["calendar"] = _v - _v = arg.pop("categoryarray", None) - _v = categoryarray if categoryarray is not None else _v - if _v is not None: - self["categoryarray"] = _v - _v = arg.pop("categoryarraysrc", None) - _v = categoryarraysrc if categoryarraysrc is not None else _v - if _v is not None: - self["categoryarraysrc"] = _v - _v = arg.pop("categoryorder", None) - _v = categoryorder if categoryorder is not None else _v - if _v is not None: - self["categoryorder"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("constrain", None) - _v = constrain if constrain is not None else _v - if _v is not None: - self["constrain"] = _v - _v = arg.pop("constraintoward", None) - _v = constraintoward if constraintoward is not None else _v - if _v is not None: - self["constraintoward"] = _v - _v = arg.pop("dividercolor", None) - _v = dividercolor if dividercolor is not None else _v - if _v is not None: - self["dividercolor"] = _v - _v = arg.pop("dividerwidth", None) - _v = dividerwidth if dividerwidth is not None else _v - if _v is not None: - self["dividerwidth"] = _v - _v = arg.pop("domain", None) - _v = domain if domain is not None else _v - if _v is not None: - self["domain"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("fixedrange", None) - _v = fixedrange if fixedrange is not None else _v - if _v is not None: - self["fixedrange"] = _v - _v = arg.pop("gridcolor", None) - _v = gridcolor if gridcolor is not None else _v - if _v is not None: - self["gridcolor"] = _v - _v = arg.pop("griddash", None) - _v = griddash if griddash is not None else _v - if _v is not None: - self["griddash"] = _v - _v = arg.pop("gridwidth", None) - _v = gridwidth if gridwidth is not None else _v - if _v is not None: - self["gridwidth"] = _v - _v = arg.pop("hoverformat", None) - _v = hoverformat if hoverformat is not None else _v - if _v is not None: - self["hoverformat"] = _v - _v = arg.pop("insiderange", None) - _v = insiderange if insiderange is not None else _v - if _v is not None: - self["insiderange"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("layer", None) - _v = layer if layer is not None else _v - if _v is not None: - self["layer"] = _v - _v = arg.pop("linecolor", None) - _v = linecolor if linecolor is not None else _v - if _v is not None: - self["linecolor"] = _v - _v = arg.pop("linewidth", None) - _v = linewidth if linewidth is not None else _v - if _v is not None: - self["linewidth"] = _v - _v = arg.pop("matches", None) - _v = matches if matches is not None else _v - if _v is not None: - self["matches"] = _v - _v = arg.pop("maxallowed", None) - _v = maxallowed if maxallowed is not None else _v - if _v is not None: - self["maxallowed"] = _v - _v = arg.pop("minallowed", None) - _v = minallowed if minallowed is not None else _v - if _v is not None: - self["minallowed"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("minor", None) - _v = minor if minor is not None else _v - if _v is not None: - self["minor"] = _v - _v = arg.pop("mirror", None) - _v = mirror if mirror is not None else _v - if _v is not None: - self["mirror"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("overlaying", None) - _v = overlaying if overlaying is not None else _v - if _v is not None: - self["overlaying"] = _v - _v = arg.pop("position", None) - _v = position if position is not None else _v - if _v is not None: - self["position"] = _v - _v = arg.pop("range", None) - _v = range if range is not None else _v - if _v is not None: - self["range"] = _v - _v = arg.pop("rangebreaks", None) - _v = rangebreaks if rangebreaks is not None else _v - if _v is not None: - self["rangebreaks"] = _v - _v = arg.pop("rangebreakdefaults", None) - _v = rangebreakdefaults if rangebreakdefaults is not None else _v - if _v is not None: - self["rangebreakdefaults"] = _v - _v = arg.pop("rangemode", None) - _v = rangemode if rangemode is not None else _v - if _v is not None: - self["rangemode"] = _v - _v = arg.pop("scaleanchor", None) - _v = scaleanchor if scaleanchor is not None else _v - if _v is not None: - self["scaleanchor"] = _v - _v = arg.pop("scaleratio", None) - _v = scaleratio if scaleratio is not None else _v - if _v is not None: - self["scaleratio"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("shift", None) - _v = shift if shift is not None else _v - if _v is not None: - self["shift"] = _v - _v = arg.pop("showdividers", None) - _v = showdividers if showdividers is not None else _v - if _v is not None: - self["showdividers"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showgrid", None) - _v = showgrid if showgrid is not None else _v - if _v is not None: - self["showgrid"] = _v - _v = arg.pop("showline", None) - _v = showline if showline is not None else _v - if _v is not None: - self["showline"] = _v - _v = arg.pop("showspikes", None) - _v = showspikes if showspikes is not None else _v - if _v is not None: - self["showspikes"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("spikecolor", None) - _v = spikecolor if spikecolor is not None else _v - if _v is not None: - self["spikecolor"] = _v - _v = arg.pop("spikedash", None) - _v = spikedash if spikedash is not None else _v - if _v is not None: - self["spikedash"] = _v - _v = arg.pop("spikemode", None) - _v = spikemode if spikemode is not None else _v - if _v is not None: - self["spikemode"] = _v - _v = arg.pop("spikesnap", None) - _v = spikesnap if spikesnap is not None else _v - if _v is not None: - self["spikesnap"] = _v - _v = arg.pop("spikethickness", None) - _v = spikethickness if spikethickness is not None else _v - if _v is not None: - self["spikethickness"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabelindex", None) - _v = ticklabelindex if ticklabelindex is not None else _v - if _v is not None: - self["ticklabelindex"] = _v - _v = arg.pop("ticklabelindexsrc", None) - _v = ticklabelindexsrc if ticklabelindexsrc is not None else _v - if _v is not None: - self["ticklabelindexsrc"] = _v - _v = arg.pop("ticklabelmode", None) - _v = ticklabelmode if ticklabelmode is not None else _v - if _v is not None: - self["ticklabelmode"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelshift", None) - _v = ticklabelshift if ticklabelshift is not None else _v - if _v is not None: - self["ticklabelshift"] = _v - _v = arg.pop("ticklabelstandoff", None) - _v = ticklabelstandoff if ticklabelstandoff is not None else _v - if _v is not None: - self["ticklabelstandoff"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("tickson", None) - _v = tickson if tickson is not None else _v - if _v is not None: - self["tickson"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("zeroline", None) - _v = zeroline if zeroline is not None else _v - if _v is not None: - self["zeroline"] = _v - _v = arg.pop("zerolinecolor", None) - _v = zerolinecolor if zerolinecolor is not None else _v - if _v is not None: - self["zerolinecolor"] = _v - _v = arg.pop("zerolinewidth", None) - _v = zerolinewidth if zerolinewidth is not None else _v - if _v is not None: - self["zerolinewidth"] = _v + self._init_provided('anchor', arg, anchor) + self._init_provided('automargin', arg, automargin) + self._init_provided('autorange', arg, autorange) + self._init_provided('autorangeoptions', arg, autorangeoptions) + self._init_provided('autoshift', arg, autoshift) + self._init_provided('autotickangles', arg, autotickangles) + self._init_provided('autotypenumbers', arg, autotypenumbers) + self._init_provided('calendar', arg, calendar) + self._init_provided('categoryarray', arg, categoryarray) + self._init_provided('categoryarraysrc', arg, categoryarraysrc) + self._init_provided('categoryorder', arg, categoryorder) + self._init_provided('color', arg, color) + self._init_provided('constrain', arg, constrain) + self._init_provided('constraintoward', arg, constraintoward) + self._init_provided('dividercolor', arg, dividercolor) + self._init_provided('dividerwidth', arg, dividerwidth) + self._init_provided('domain', arg, domain) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('fixedrange', arg, fixedrange) + self._init_provided('gridcolor', arg, gridcolor) + self._init_provided('griddash', arg, griddash) + self._init_provided('gridwidth', arg, gridwidth) + self._init_provided('hoverformat', arg, hoverformat) + self._init_provided('insiderange', arg, insiderange) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('layer', arg, layer) + self._init_provided('linecolor', arg, linecolor) + self._init_provided('linewidth', arg, linewidth) + self._init_provided('matches', arg, matches) + self._init_provided('maxallowed', arg, maxallowed) + self._init_provided('minallowed', arg, minallowed) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('minor', arg, minor) + self._init_provided('mirror', arg, mirror) + self._init_provided('nticks', arg, nticks) + self._init_provided('overlaying', arg, overlaying) + self._init_provided('position', arg, position) + self._init_provided('range', arg, range) + self._init_provided('rangebreaks', arg, rangebreaks) + self._init_provided('rangebreakdefaults', arg, rangebreakdefaults) + self._init_provided('rangemode', arg, rangemode) + self._init_provided('scaleanchor', arg, scaleanchor) + self._init_provided('scaleratio', arg, scaleratio) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('shift', arg, shift) + self._init_provided('showdividers', arg, showdividers) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showgrid', arg, showgrid) + self._init_provided('showline', arg, showline) + self._init_provided('showspikes', arg, showspikes) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('side', arg, side) + self._init_provided('spikecolor', arg, spikecolor) + self._init_provided('spikedash', arg, spikedash) + self._init_provided('spikemode', arg, spikemode) + self._init_provided('spikesnap', arg, spikesnap) + self._init_provided('spikethickness', arg, spikethickness) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabelindex', arg, ticklabelindex) + self._init_provided('ticklabelindexsrc', arg, ticklabelindexsrc) + self._init_provided('ticklabelmode', arg, ticklabelmode) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelshift', arg, ticklabelshift) + self._init_provided('ticklabelstandoff', arg, ticklabelstandoff) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('tickson', arg, tickson) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('type', arg, type) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('visible', arg, visible) + self._init_provided('zeroline', arg, zeroline) + self._init_provided('zerolinecolor', arg, zerolinecolor) + self._init_provided('zerolinewidth', arg, zerolinewidth) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/annotation/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/annotation/__init__.py index 89cac20f5a9..a10fc8d3857 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/annotation/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/annotation/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font from ._hoverlabel import Hoverlabel from . import hoverlabel else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [".hoverlabel"], ["._font.Font", "._hoverlabel.Hoverlabel"] + __name__, + ['.hoverlabel'], + ['._font.Font', '._hoverlabel.Hoverlabel'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/annotation/_font.py b/packages/python/plotly/plotly/graph_objs/layout/annotation/_font.py index bc21715b61b..8cfd4d0cabd 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/annotation/_font.py +++ b/packages/python/plotly/plotly/graph_objs/layout/annotation/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.annotation" - _path_str = "layout.annotation.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.annotation' + _path_str = 'layout.annotation.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.annotation.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.annotation.Font`""" - ) +an instance of :class:`plotly.graph_objs.layout.annotation.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/annotation/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/layout/annotation/_hoverlabel.py index bdc4599445c..a15f3a851a9 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/annotation/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/layout/annotation/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Hoverlabel(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.annotation" - _path_str = "layout.annotation.hoverlabel" + _parent_path_str = 'layout.annotation' + _path_str = 'layout.annotation.hoverlabel' _valid_props = {"bgcolor", "bordercolor", "font"} # bgcolor @@ -24,52 +26,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -85,52 +52,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # font # ---- @@ -146,61 +78,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.annotation.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # Self properties description # --------------------------- @@ -220,8 +106,13 @@ def _prop_descriptions(self): global hover font and size, with color from `hoverlabel.bordercolor`. """ - - def __init__(self, arg=None, bgcolor=None, bordercolor=None, font=None, **kwargs): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + font=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -248,10 +139,10 @@ def __init__(self, arg=None, bgcolor=None, bordercolor=None, font=None, **kwargs ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -263,32 +154,22 @@ def __init__(self, arg=None, bgcolor=None, bordercolor=None, font=None, **kwargs elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.annotation.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.annotation.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.layout.annotation.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('font', arg, font) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/annotation/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/annotation/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/annotation/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/annotation/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/layout/annotation/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/layout/annotation/hoverlabel/_font.py index 81a13e5b65b..550aa7f0183 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/annotation/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/layout/annotation/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.annotation.hoverlabel" - _path_str = "layout.annotation.hoverlabel.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.annotation.hoverlabel' + _path_str = 'layout.annotation.hoverlabel.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -378,10 +333,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -393,56 +348,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.annotation.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.annotation.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.layout.annotation.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/coloraxis/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/coloraxis/__init__.py index 27dfc9e52fb..c35de683492 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/coloraxis/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/coloraxis/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from . import colorbar else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [".colorbar"], ["._colorbar.ColorBar"] + __name__, + ['.colorbar'], + ['._colorbar.ColorBar'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/coloraxis/_colorbar.py b/packages/python/plotly/plotly/graph_objs/layout/coloraxis/_colorbar.py index 3cb03c6cbc4..e15554db339 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/coloraxis/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/layout/coloraxis/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.coloraxis" - _path_str = "layout.coloraxis.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'layout.coloraxis' + _path_str = 'layout.coloraxis.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.coloraxis.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.layout.coloraxis.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.layout.coloraxis.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.layout.coloraxis.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.coloraxis.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.coloraxis.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.layout.coloraxis.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/_tickfont.py index b2026454440..72ac314fb6b 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.coloraxis.colorbar" - _path_str = "layout.coloraxis.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.coloraxis.colorbar' + _path_str = 'layout.coloraxis.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.coloraxis.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.coloraxis.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.layout.coloraxis.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/_tickformatstop.py index f1ba3651852..47208b2155c 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.coloraxis.colorbar" - _path_str = "layout.coloraxis.colorbar.tickformatstop" + _parent_path_str = 'layout.coloraxis.colorbar' + _path_str = 'layout.coloraxis.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseLayoutHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.coloraxis.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.coloraxis.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.layout.coloraxis.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/_title.py index 382d3ff94f3..35d5a75a02c 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.coloraxis.colorbar" - _path_str = "layout.coloraxis.colorbar.title" + _parent_path_str = 'layout.coloraxis.colorbar' + _path_str = 'layout.coloraxis.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.coloraxis.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.coloraxis.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.coloraxis.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.layout.coloraxis.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/title/_font.py index 8d4948e3a36..9533ea3be17 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.coloraxis.colorbar.title" - _path_str = "layout.coloraxis.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.coloraxis.colorbar.title' + _path_str = 'layout.coloraxis.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.coloraxis.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.coloraxis.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.layout.coloraxis.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/geo/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/geo/__init__.py index 3daa84b2180..6c2cf8fd891 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/geo/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/geo/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._center import Center from ._domain import Domain @@ -10,15 +9,10 @@ from . import projection else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".projection"], - [ - "._center.Center", - "._domain.Domain", - "._lataxis.Lataxis", - "._lonaxis.Lonaxis", - "._projection.Projection", - ], + ['.projection'], + ['._center.Center', '._domain.Domain', '._lataxis.Lataxis', '._lonaxis.Lonaxis', '._projection.Projection'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/geo/_center.py b/packages/python/plotly/plotly/graph_objs/layout/geo/_center.py index fee53e5dac5..9e00372e239 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/geo/_center.py +++ b/packages/python/plotly/plotly/graph_objs/layout/geo/_center.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Center(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.geo" - _path_str = "layout.geo.center" + _parent_path_str = 'layout.geo' + _path_str = 'layout.geo.center' _valid_props = {"lat", "lon"} # lat @@ -26,11 +28,11 @@ def lat(self): ------- int|float """ - return self["lat"] + return self['lat'] @lat.setter def lat(self, val): - self["lat"] = val + self['lat'] = val # lon # --- @@ -49,11 +51,11 @@ def lon(self): ------- int|float """ - return self["lon"] + return self['lon'] @lon.setter def lon(self, val): - self["lon"] = val + self['lon'] = val # Self properties description # --------------------------- @@ -70,8 +72,12 @@ def _prop_descriptions(self): longitude range for scoped projection and above `projection.rotation.lon` otherwise. """ - - def __init__(self, arg=None, lat=None, lon=None, **kwargs): + def __init__(self, + arg=None, + lat=None, + lon=None, + **kwargs + ): """ Construct a new Center object @@ -95,10 +101,10 @@ def __init__(self, arg=None, lat=None, lon=None, **kwargs): ------- Center """ - super(Center, self).__init__("center") + super(Center, self).__init__('center') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -110,28 +116,21 @@ def __init__(self, arg=None, lat=None, lon=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.geo.Center constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.geo.Center`""" - ) +an instance of :class:`plotly.graph_objs.layout.geo.Center`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("lat", None) - _v = lat if lat is not None else _v - if _v is not None: - self["lat"] = _v - _v = arg.pop("lon", None) - _v = lon if lon is not None else _v - if _v is not None: - self["lon"] = _v + self._init_provided('lat', arg, lat) + self._init_provided('lon', arg, lon) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/geo/_domain.py b/packages/python/plotly/plotly/graph_objs/layout/geo/_domain.py index f7e7ce38374..491bc0d2ffe 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/geo/_domain.py +++ b/packages/python/plotly/plotly/graph_objs/layout/geo/_domain.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Domain(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.geo" - _path_str = "layout.geo.domain" + _parent_path_str = 'layout.geo' + _path_str = 'layout.geo.domain' _valid_props = {"column", "row", "x", "y"} # column @@ -29,11 +31,11 @@ def column(self): ------- int """ - return self["column"] + return self['column'] @column.setter def column(self, val): - self["column"] = val + self['column'] = val # row # --- @@ -54,67 +56,67 @@ def row(self): ------- int """ - return self["row"] + return self['row'] @row.setter def row(self, val): - self["row"] = val + self['row'] = val # x # - @property def x(self): """ - 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. - - The 'x' property is an info array that may be specified as: + 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. + + The 'x' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'x[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'x[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - * a list or tuple of 2 elements where: - (0) The 'x[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'x[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - - Returns - ------- - list + Returns + ------- + list """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @property def y(self): """ - 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. - - The 'y' property is an info array that may be specified as: - - * a list or tuple of 2 elements where: - (0) The 'y[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'y[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] + 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. + + The 'y' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'y[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'y[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - Returns - ------- - list + Returns + ------- + list """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # Self properties description # --------------------------- @@ -146,8 +148,14 @@ def _prop_descriptions(self): 1. a map will fit either its x or y domain, but not both. """ - - def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): + def __init__(self, + arg=None, + column=None, + row=None, + x=None, + y=None, + **kwargs + ): """ Construct a new Domain object @@ -186,10 +194,10 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") + super(Domain, self).__init__('domain') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -201,36 +209,23 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.geo.Domain constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.geo.Domain`""" - ) +an instance of :class:`plotly.graph_objs.layout.geo.Domain`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("column", None) - _v = column if column is not None else _v - if _v is not None: - self["column"] = _v - _v = arg.pop("row", None) - _v = row if row is not None else _v - if _v is not None: - self["row"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v + self._init_provided('column', arg, column) + self._init_provided('row', arg, row) + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/geo/_lataxis.py b/packages/python/plotly/plotly/graph_objs/layout/geo/_lataxis.py index be44d0c62ff..1ce34e6e28e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/geo/_lataxis.py +++ b/packages/python/plotly/plotly/graph_objs/layout/geo/_lataxis.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,17 +8,9 @@ class Lataxis(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.geo" - _path_str = "layout.geo.lataxis" - _valid_props = { - "dtick", - "gridcolor", - "griddash", - "gridwidth", - "range", - "showgrid", - "tick0", - } + _parent_path_str = 'layout.geo' + _path_str = 'layout.geo.lataxis' + _valid_props = {"dtick", "gridcolor", "griddash", "gridwidth", "range", "showgrid", "tick0"} # dtick # ----- @@ -32,11 +26,11 @@ def dtick(self): ------- int|float """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # gridcolor # --------- @@ -50,52 +44,17 @@ def gridcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["gridcolor"] + return self['gridcolor'] @gridcolor.setter def gridcolor(self, val): - self["gridcolor"] = val + self['gridcolor'] = val # griddash # -------- @@ -117,11 +76,11 @@ def griddash(self): ------- str """ - return self["griddash"] + return self['griddash'] @griddash.setter def griddash(self, val): - self["griddash"] = val + self['griddash'] = val # gridwidth # --------- @@ -137,37 +96,37 @@ def gridwidth(self): ------- int|float """ - return self["gridwidth"] + return self['gridwidth'] @gridwidth.setter def gridwidth(self, val): - self["gridwidth"] = val + self['gridwidth'] = val # range # ----- @property def range(self): """ - Sets the range of this axis (in degrees), sets the map's - clipped coordinates. + Sets the range of this axis (in degrees), sets the map's + clipped coordinates. - The 'range' property is an info array that may be specified as: - - * a list or tuple of 2 elements where: - (0) The 'range[0]' property is a number and may be specified as: - - An int or float - (1) The 'range[1]' property is a number and may be specified as: - - An int or float + The 'range' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'range[0]' property is a number and may be specified as: + - An int or float + (1) The 'range[1]' property is a number and may be specified as: + - An int or float - Returns - ------- - list + Returns + ------- + list """ - return self["range"] + return self['range'] @range.setter def range(self, val): - self["range"] = val + self['range'] = val # showgrid # -------- @@ -183,11 +142,11 @@ def showgrid(self): ------- bool """ - return self["showgrid"] + return self['showgrid'] @showgrid.setter def showgrid(self, val): - self["showgrid"] = val + self['showgrid'] = val # tick0 # ----- @@ -203,11 +162,11 @@ def tick0(self): ------- int|float """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # Self properties description # --------------------------- @@ -233,19 +192,17 @@ def _prop_descriptions(self): tick0 Sets the graticule's starting tick longitude/latitude. """ - - def __init__( - self, - arg=None, - dtick=None, - gridcolor=None, - griddash=None, - gridwidth=None, - range=None, - showgrid=None, - tick0=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtick=None, + gridcolor=None, + griddash=None, + gridwidth=None, + range=None, + showgrid=None, + tick0=None, + **kwargs + ): """ Construct a new Lataxis object @@ -278,10 +235,10 @@ def __init__( ------- Lataxis """ - super(Lataxis, self).__init__("lataxis") + super(Lataxis, self).__init__('lataxis') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -293,48 +250,26 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.geo.Lataxis constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.geo.Lataxis`""" - ) +an instance of :class:`plotly.graph_objs.layout.geo.Lataxis`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("gridcolor", None) - _v = gridcolor if gridcolor is not None else _v - if _v is not None: - self["gridcolor"] = _v - _v = arg.pop("griddash", None) - _v = griddash if griddash is not None else _v - if _v is not None: - self["griddash"] = _v - _v = arg.pop("gridwidth", None) - _v = gridwidth if gridwidth is not None else _v - if _v is not None: - self["gridwidth"] = _v - _v = arg.pop("range", None) - _v = range if range is not None else _v - if _v is not None: - self["range"] = _v - _v = arg.pop("showgrid", None) - _v = showgrid if showgrid is not None else _v - if _v is not None: - self["showgrid"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v + self._init_provided('dtick', arg, dtick) + self._init_provided('gridcolor', arg, gridcolor) + self._init_provided('griddash', arg, griddash) + self._init_provided('gridwidth', arg, gridwidth) + self._init_provided('range', arg, range) + self._init_provided('showgrid', arg, showgrid) + self._init_provided('tick0', arg, tick0) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/geo/_lonaxis.py b/packages/python/plotly/plotly/graph_objs/layout/geo/_lonaxis.py index 5d36dd6fbcd..0122a91cf9c 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/geo/_lonaxis.py +++ b/packages/python/plotly/plotly/graph_objs/layout/geo/_lonaxis.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,17 +8,9 @@ class Lonaxis(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.geo" - _path_str = "layout.geo.lonaxis" - _valid_props = { - "dtick", - "gridcolor", - "griddash", - "gridwidth", - "range", - "showgrid", - "tick0", - } + _parent_path_str = 'layout.geo' + _path_str = 'layout.geo.lonaxis' + _valid_props = {"dtick", "gridcolor", "griddash", "gridwidth", "range", "showgrid", "tick0"} # dtick # ----- @@ -32,11 +26,11 @@ def dtick(self): ------- int|float """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # gridcolor # --------- @@ -50,52 +44,17 @@ def gridcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["gridcolor"] + return self['gridcolor'] @gridcolor.setter def gridcolor(self, val): - self["gridcolor"] = val + self['gridcolor'] = val # griddash # -------- @@ -117,11 +76,11 @@ def griddash(self): ------- str """ - return self["griddash"] + return self['griddash'] @griddash.setter def griddash(self, val): - self["griddash"] = val + self['griddash'] = val # gridwidth # --------- @@ -137,37 +96,37 @@ def gridwidth(self): ------- int|float """ - return self["gridwidth"] + return self['gridwidth'] @gridwidth.setter def gridwidth(self, val): - self["gridwidth"] = val + self['gridwidth'] = val # range # ----- @property def range(self): """ - Sets the range of this axis (in degrees), sets the map's - clipped coordinates. + Sets the range of this axis (in degrees), sets the map's + clipped coordinates. - The 'range' property is an info array that may be specified as: - - * a list or tuple of 2 elements where: - (0) The 'range[0]' property is a number and may be specified as: - - An int or float - (1) The 'range[1]' property is a number and may be specified as: - - An int or float + The 'range' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'range[0]' property is a number and may be specified as: + - An int or float + (1) The 'range[1]' property is a number and may be specified as: + - An int or float - Returns - ------- - list + Returns + ------- + list """ - return self["range"] + return self['range'] @range.setter def range(self, val): - self["range"] = val + self['range'] = val # showgrid # -------- @@ -183,11 +142,11 @@ def showgrid(self): ------- bool """ - return self["showgrid"] + return self['showgrid'] @showgrid.setter def showgrid(self, val): - self["showgrid"] = val + self['showgrid'] = val # tick0 # ----- @@ -203,11 +162,11 @@ def tick0(self): ------- int|float """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # Self properties description # --------------------------- @@ -233,19 +192,17 @@ def _prop_descriptions(self): tick0 Sets the graticule's starting tick longitude/latitude. """ - - def __init__( - self, - arg=None, - dtick=None, - gridcolor=None, - griddash=None, - gridwidth=None, - range=None, - showgrid=None, - tick0=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtick=None, + gridcolor=None, + griddash=None, + gridwidth=None, + range=None, + showgrid=None, + tick0=None, + **kwargs + ): """ Construct a new Lonaxis object @@ -278,10 +235,10 @@ def __init__( ------- Lonaxis """ - super(Lonaxis, self).__init__("lonaxis") + super(Lonaxis, self).__init__('lonaxis') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -293,48 +250,26 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.geo.Lonaxis constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.geo.Lonaxis`""" - ) +an instance of :class:`plotly.graph_objs.layout.geo.Lonaxis`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("gridcolor", None) - _v = gridcolor if gridcolor is not None else _v - if _v is not None: - self["gridcolor"] = _v - _v = arg.pop("griddash", None) - _v = griddash if griddash is not None else _v - if _v is not None: - self["griddash"] = _v - _v = arg.pop("gridwidth", None) - _v = gridwidth if gridwidth is not None else _v - if _v is not None: - self["gridwidth"] = _v - _v = arg.pop("range", None) - _v = range if range is not None else _v - if _v is not None: - self["range"] = _v - _v = arg.pop("showgrid", None) - _v = showgrid if showgrid is not None else _v - if _v is not None: - self["showgrid"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v + self._init_provided('dtick', arg, dtick) + self._init_provided('gridcolor', arg, gridcolor) + self._init_provided('griddash', arg, griddash) + self._init_provided('gridwidth', arg, gridwidth) + self._init_provided('range', arg, range) + self._init_provided('showgrid', arg, showgrid) + self._init_provided('tick0', arg, tick0) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/geo/_projection.py b/packages/python/plotly/plotly/graph_objs/layout/geo/_projection.py index 86710bdf21c..677d5a97a15 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/geo/_projection.py +++ b/packages/python/plotly/plotly/graph_objs/layout/geo/_projection.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Projection(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.geo" - _path_str = "layout.geo.projection" + _parent_path_str = 'layout.geo' + _path_str = 'layout.geo.projection' _valid_props = {"distance", "parallels", "rotation", "scale", "tilt", "type"} # distance @@ -26,37 +28,37 @@ def distance(self): ------- int|float """ - return self["distance"] + return self['distance'] @distance.setter def distance(self, val): - self["distance"] = val + self['distance'] = val # parallels # --------- @property def parallels(self): """ - For conic projection types only. Sets the parallels (tangent, - secant) where the cone intersects the sphere. - - The 'parallels' property is an info array that may be specified as: + For conic projection types only. Sets the parallels (tangent, + secant) where the cone intersects the sphere. - * a list or tuple of 2 elements where: - (0) The 'parallels[0]' property is a number and may be specified as: - - An int or float - (1) The 'parallels[1]' property is a number and may be specified as: - - An int or float + The 'parallels' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'parallels[0]' property is a number and may be specified as: + - An int or float + (1) The 'parallels[1]' property is a number and may be specified as: + - An int or float - Returns - ------- - list + Returns + ------- + list """ - return self["parallels"] + return self['parallels'] @parallels.setter def parallels(self, val): - self["parallels"] = val + self['parallels'] = val # rotation # -------- @@ -69,28 +71,15 @@ def rotation(self): - A dict of string/value properties that will be passed to the Rotation constructor - Supported dict properties: - - 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. - Returns ------- plotly.graph_objs.layout.geo.projection.Rotation """ - return self["rotation"] + return self['rotation'] @rotation.setter def rotation(self, val): - self["rotation"] = val + self['rotation'] = val # scale # ----- @@ -107,11 +96,11 @@ def scale(self): ------- int|float """ - return self["scale"] + return self['scale'] @scale.setter def scale(self, val): - self["scale"] = val + self['scale'] = val # tilt # ---- @@ -128,11 +117,11 @@ def tilt(self): ------- int|float """ - return self["tilt"] + return self['tilt'] @tilt.setter def tilt(self, val): - self["tilt"] = val + self['tilt'] = val # type # ---- @@ -172,11 +161,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # Self properties description # --------------------------- @@ -203,18 +192,16 @@ def _prop_descriptions(self): type Sets the projection type. """ - - def __init__( - self, - arg=None, - distance=None, - parallels=None, - rotation=None, - scale=None, - tilt=None, - type=None, - **kwargs, - ): + def __init__(self, + arg=None, + distance=None, + parallels=None, + rotation=None, + scale=None, + tilt=None, + type=None, + **kwargs + ): """ Construct a new Projection object @@ -248,10 +235,10 @@ def __init__( ------- Projection """ - super(Projection, self).__init__("projection") + super(Projection, self).__init__('projection') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -263,44 +250,25 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.geo.Projection constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.geo.Projection`""" - ) +an instance of :class:`plotly.graph_objs.layout.geo.Projection`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("distance", None) - _v = distance if distance is not None else _v - if _v is not None: - self["distance"] = _v - _v = arg.pop("parallels", None) - _v = parallels if parallels is not None else _v - if _v is not None: - self["parallels"] = _v - _v = arg.pop("rotation", None) - _v = rotation if rotation is not None else _v - if _v is not None: - self["rotation"] = _v - _v = arg.pop("scale", None) - _v = scale if scale is not None else _v - if _v is not None: - self["scale"] = _v - _v = arg.pop("tilt", None) - _v = tilt if tilt is not None else _v - if _v is not None: - self["tilt"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v + self._init_provided('distance', arg, distance) + self._init_provided('parallels', arg, parallels) + self._init_provided('rotation', arg, rotation) + self._init_provided('scale', arg, scale) + self._init_provided('tilt', arg, tilt) + self._init_provided('type', arg, type) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/geo/projection/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/geo/projection/__init__.py index 79df9326693..25ee63f982f 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/geo/projection/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/geo/projection/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._rotation import Rotation else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._rotation.Rotation"] + __name__, + [], + ['._rotation.Rotation'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/geo/projection/_rotation.py b/packages/python/plotly/plotly/graph_objs/layout/geo/projection/_rotation.py index cc9047b1826..200a4dd35df 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/geo/projection/_rotation.py +++ b/packages/python/plotly/plotly/graph_objs/layout/geo/projection/_rotation.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Rotation(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.geo.projection" - _path_str = "layout.geo.projection.rotation" + _parent_path_str = 'layout.geo.projection' + _path_str = 'layout.geo.projection.rotation' _valid_props = {"lat", "lon", "roll"} # lat @@ -24,11 +26,11 @@ def lat(self): ------- int|float """ - return self["lat"] + return self['lat'] @lat.setter def lat(self, val): - self["lat"] = val + self['lat'] = val # lon # --- @@ -45,11 +47,11 @@ def lon(self): ------- int|float """ - return self["lon"] + return self['lon'] @lon.setter def lon(self, val): - self["lon"] = val + self['lon'] = val # roll # ---- @@ -66,11 +68,11 @@ def roll(self): ------- int|float """ - return self["roll"] + return self['roll'] @roll.setter def roll(self, val): - self["roll"] = val + self['roll'] = val # Self properties description # --------------------------- @@ -86,8 +88,13 @@ def _prop_descriptions(self): Roll the map (in degrees) For example, a roll of 180 makes the map appear upside down. """ - - def __init__(self, arg=None, lat=None, lon=None, roll=None, **kwargs): + def __init__(self, + arg=None, + lat=None, + lon=None, + roll=None, + **kwargs + ): """ Construct a new Rotation object @@ -110,10 +117,10 @@ def __init__(self, arg=None, lat=None, lon=None, roll=None, **kwargs): ------- Rotation """ - super(Rotation, self).__init__("rotation") + super(Rotation, self).__init__('rotation') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -125,32 +132,22 @@ def __init__(self, arg=None, lat=None, lon=None, roll=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.geo.projection.Rotation constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.geo.projection.Rotation`""" - ) +an instance of :class:`plotly.graph_objs.layout.geo.projection.Rotation`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("lat", None) - _v = lat if lat is not None else _v - if _v is not None: - self["lat"] = _v - _v = arg.pop("lon", None) - _v = lon if lon is not None else _v - if _v is not None: - self["lon"] = _v - _v = arg.pop("roll", None) - _v = roll if roll is not None else _v - if _v is not None: - self["roll"] = _v + self._init_provided('lat', arg, lat) + self._init_provided('lon', arg, lon) + self._init_provided('roll', arg, roll) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/grid/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/grid/__init__.py index 36092994b8f..2337e92360e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/grid/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/grid/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._domain import Domain else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._domain.Domain'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._domain.Domain"]) diff --git a/packages/python/plotly/plotly/graph_objs/layout/grid/_domain.py b/packages/python/plotly/plotly/graph_objs/layout/grid/_domain.py index 683194b4d38..c5b35b36f42 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/grid/_domain.py +++ b/packages/python/plotly/plotly/graph_objs/layout/grid/_domain.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Domain(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.grid" - _path_str = "layout.grid.domain" + _parent_path_str = 'layout.grid' + _path_str = 'layout.grid.domain' _valid_props = {"x", "y"} # x @@ -15,54 +17,54 @@ class Domain(_BaseLayoutHierarchyType): @property def x(self): """ - Sets the horizontal domain of this grid subplot (in plot - fraction). The first and last cells end exactly at the domain - edges, with no grout around the edges. - - The 'x' property is an info array that may be specified as: + Sets the horizontal domain of this grid subplot (in plot + fraction). The first and last cells end exactly at the domain + edges, with no grout around the edges. + + The 'x' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'x[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'x[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - * a list or tuple of 2 elements where: - (0) The 'x[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'x[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - - Returns - ------- - list + Returns + ------- + list """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @property def y(self): """ - Sets the vertical domain of this grid subplot (in plot - fraction). The first and last cells end exactly at the domain - edges, with no grout around the edges. - - The 'y' property is an info array that may be specified as: - - * a list or tuple of 2 elements where: - (0) The 'y[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'y[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] + Sets the vertical domain of this grid subplot (in plot + fraction). The first and last cells end exactly at the domain + edges, with no grout around the edges. + + The 'y' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'y[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'y[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - Returns - ------- - list + Returns + ------- + list """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # Self properties description # --------------------------- @@ -78,8 +80,12 @@ def _prop_descriptions(self): fraction). The first and last cells end exactly at the domain edges, with no grout around the edges. """ - - def __init__(self, arg=None, x=None, y=None, **kwargs): + def __init__(self, + arg=None, + x=None, + y=None, + **kwargs + ): """ Construct a new Domain object @@ -102,10 +108,10 @@ def __init__(self, arg=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") + super(Domain, self).__init__('domain') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -117,28 +123,21 @@ def __init__(self, arg=None, x=None, y=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.grid.Domain constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.grid.Domain`""" - ) +an instance of :class:`plotly.graph_objs.layout.grid.Domain`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/hoverlabel/__init__.py index c6f9226f99c..e200bd8d3c6 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/hoverlabel/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font from ._grouptitlefont import Grouptitlefont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._font.Font", "._grouptitlefont.Grouptitlefont"] + __name__, + [], + ['._font.Font', '._grouptitlefont.Grouptitlefont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/layout/hoverlabel/_font.py index eb67ffe6f7c..62114ff1cf3 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/layout/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.hoverlabel" - _path_str = "layout.hoverlabel.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.hoverlabel' + _path_str = 'layout.hoverlabel.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -378,10 +333,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -393,56 +348,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.layout.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/hoverlabel/_grouptitlefont.py b/packages/python/plotly/plotly/graph_objs/layout/hoverlabel/_grouptitlefont.py index 648b74eeb5a..009e247d915 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/hoverlabel/_grouptitlefont.py +++ b/packages/python/plotly/plotly/graph_objs/layout/hoverlabel/_grouptitlefont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Grouptitlefont(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.hoverlabel" - _path_str = "layout.hoverlabel.grouptitlefont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.hoverlabel' + _path_str = 'layout.hoverlabel.grouptitlefont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Grouptitlefont object @@ -378,10 +333,10 @@ def __init__( ------- Grouptitlefont """ - super(Grouptitlefont, self).__init__("grouptitlefont") + super(Grouptitlefont, self).__init__('grouptitlefont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -393,56 +348,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.hoverlabel.Grouptitlefont constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.hoverlabel.Grouptitlefont`""" - ) +an instance of :class:`plotly.graph_objs.layout.hoverlabel.Grouptitlefont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/legend/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/legend/__init__.py index 451048fb0f6..2d950d8cf6b 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/legend/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/legend/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font from ._grouptitlefont import Grouptitlefont @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._font.Font", "._grouptitlefont.Grouptitlefont", "._title.Title"], + ['.title'], + ['._font.Font', '._grouptitlefont.Grouptitlefont', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/legend/_font.py b/packages/python/plotly/plotly/graph_objs/layout/legend/_font.py index ce4f319ceee..cccdbbe1218 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/legend/_font.py +++ b/packages/python/plotly/plotly/graph_objs/layout/legend/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.legend" - _path_str = "layout.legend.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.legend' + _path_str = 'layout.legend.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.legend.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.legend.Font`""" - ) +an instance of :class:`plotly.graph_objs.layout.legend.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/legend/_grouptitlefont.py b/packages/python/plotly/plotly/graph_objs/layout/legend/_grouptitlefont.py index 45a5cdf15ad..b2e40411489 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/legend/_grouptitlefont.py +++ b/packages/python/plotly/plotly/graph_objs/layout/legend/_grouptitlefont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Grouptitlefont(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.legend" - _path_str = "layout.legend.grouptitlefont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.legend' + _path_str = 'layout.legend.grouptitlefont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Grouptitlefont object @@ -378,10 +333,10 @@ def __init__( ------- Grouptitlefont """ - super(Grouptitlefont, self).__init__("grouptitlefont") + super(Grouptitlefont, self).__init__('grouptitlefont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -393,56 +348,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.legend.Grouptitlefont constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.legend.Grouptitlefont`""" - ) +an instance of :class:`plotly.graph_objs.layout.legend.Grouptitlefont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/legend/_title.py b/packages/python/plotly/plotly/graph_objs/layout/legend/_title.py index 5103c0a7e54..8b730ca4bf1 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/legend/_title.py +++ b/packages/python/plotly/plotly/graph_objs/layout/legend/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.legend" - _path_str = "layout.legend.title" + _parent_path_str = 'layout.legend' + _path_str = 'layout.legend.title' _valid_props = {"font", "side", "text"} # font @@ -24,61 +26,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.legend.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -99,11 +55,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -120,11 +76,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -144,8 +100,13 @@ def _prop_descriptions(self): text Sets the title of the legend. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -172,10 +133,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -187,32 +148,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.legend.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.legend.Title`""" - ) +an instance of :class:`plotly.graph_objs.layout.legend.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/legend/title/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/legend/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/legend/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/legend/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/layout/legend/title/_font.py b/packages/python/plotly/plotly/graph_objs/layout/legend/title/_font.py index dffba334e1e..99eab3f68b0 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/legend/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/layout/legend/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.legend.title" - _path_str = "layout.legend.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.legend.title' + _path_str = 'layout.legend.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -378,10 +333,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -393,56 +348,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.legend.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.legend.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.layout.legend.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/map/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/map/__init__.py index be0b2eed719..95b667b49df 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/map/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/map/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._bounds import Bounds from ._center import Center @@ -9,9 +8,10 @@ from . import layer else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".layer"], - ["._bounds.Bounds", "._center.Center", "._domain.Domain", "._layer.Layer"], + ['.layer'], + ['._bounds.Bounds', '._center.Center', '._domain.Domain', '._layer.Layer'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/map/_bounds.py b/packages/python/plotly/plotly/graph_objs/layout/map/_bounds.py index 9b47548b2da..96b37729e90 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/map/_bounds.py +++ b/packages/python/plotly/plotly/graph_objs/layout/map/_bounds.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Bounds(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.map" - _path_str = "layout.map.bounds" + _parent_path_str = 'layout.map' + _path_str = 'layout.map.bounds' _valid_props = {"east", "north", "south", "west"} # east @@ -25,11 +27,11 @@ def east(self): ------- int|float """ - return self["east"] + return self['east'] @east.setter def east(self, val): - self["east"] = val + self['east'] = val # north # ----- @@ -46,11 +48,11 @@ def north(self): ------- int|float """ - return self["north"] + return self['north'] @north.setter def north(self, val): - self["north"] = val + self['north'] = val # south # ----- @@ -67,11 +69,11 @@ def south(self): ------- int|float """ - return self["south"] + return self['south'] @south.setter def south(self, val): - self["south"] = val + self['south'] = val # west # ---- @@ -88,11 +90,11 @@ def west(self): ------- int|float """ - return self["west"] + return self['west'] @west.setter def west(self, val): - self["west"] = val + self['west'] = val # Self properties description # --------------------------- @@ -112,10 +114,14 @@ def _prop_descriptions(self): Sets the minimum longitude of the map (in degrees East) if `east`, `south` and `north` are declared. """ - - def __init__( - self, arg=None, east=None, north=None, south=None, west=None, **kwargs - ): + def __init__(self, + arg=None, + east=None, + north=None, + south=None, + west=None, + **kwargs + ): """ Construct a new Bounds object @@ -142,10 +148,10 @@ def __init__( ------- Bounds """ - super(Bounds, self).__init__("bounds") + super(Bounds, self).__init__('bounds') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -157,36 +163,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.map.Bounds constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.map.Bounds`""" - ) +an instance of :class:`plotly.graph_objs.layout.map.Bounds`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("east", None) - _v = east if east is not None else _v - if _v is not None: - self["east"] = _v - _v = arg.pop("north", None) - _v = north if north is not None else _v - if _v is not None: - self["north"] = _v - _v = arg.pop("south", None) - _v = south if south is not None else _v - if _v is not None: - self["south"] = _v - _v = arg.pop("west", None) - _v = west if west is not None else _v - if _v is not None: - self["west"] = _v + self._init_provided('east', arg, east) + self._init_provided('north', arg, north) + self._init_provided('south', arg, south) + self._init_provided('west', arg, west) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/map/_center.py b/packages/python/plotly/plotly/graph_objs/layout/map/_center.py index 5781184b1ae..51e2ec12b42 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/map/_center.py +++ b/packages/python/plotly/plotly/graph_objs/layout/map/_center.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Center(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.map" - _path_str = "layout.map.center" + _parent_path_str = 'layout.map' + _path_str = 'layout.map.center' _valid_props = {"lat", "lon"} # lat @@ -24,11 +26,11 @@ def lat(self): ------- int|float """ - return self["lat"] + return self['lat'] @lat.setter def lat(self, val): - self["lat"] = val + self['lat'] = val # lon # --- @@ -44,11 +46,11 @@ def lon(self): ------- int|float """ - return self["lon"] + return self['lon'] @lon.setter def lon(self, val): - self["lon"] = val + self['lon'] = val # Self properties description # --------------------------- @@ -62,8 +64,12 @@ def _prop_descriptions(self): Sets the longitude of the center of the map (in degrees East). """ - - def __init__(self, arg=None, lat=None, lon=None, **kwargs): + def __init__(self, + arg=None, + lat=None, + lon=None, + **kwargs + ): """ Construct a new Center object @@ -84,10 +90,10 @@ def __init__(self, arg=None, lat=None, lon=None, **kwargs): ------- Center """ - super(Center, self).__init__("center") + super(Center, self).__init__('center') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -99,28 +105,21 @@ def __init__(self, arg=None, lat=None, lon=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.map.Center constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.map.Center`""" - ) +an instance of :class:`plotly.graph_objs.layout.map.Center`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("lat", None) - _v = lat if lat is not None else _v - if _v is not None: - self["lat"] = _v - _v = arg.pop("lon", None) - _v = lon if lon is not None else _v - if _v is not None: - self["lon"] = _v + self._init_provided('lat', arg, lat) + self._init_provided('lon', arg, lon) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/map/_domain.py b/packages/python/plotly/plotly/graph_objs/layout/map/_domain.py index 6215eed6c19..69bb55019b5 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/map/_domain.py +++ b/packages/python/plotly/plotly/graph_objs/layout/map/_domain.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Domain(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.map" - _path_str = "layout.map.domain" + _parent_path_str = 'layout.map' + _path_str = 'layout.map.domain' _valid_props = {"column", "row", "x", "y"} # column @@ -26,11 +28,11 @@ def column(self): ------- int """ - return self["column"] + return self['column'] @column.setter def column(self, val): - self["column"] = val + self['column'] = val # row # --- @@ -48,63 +50,63 @@ def row(self): ------- int """ - return self["row"] + return self['row'] @row.setter def row(self, val): - self["row"] = val + self['row'] = val # x # - @property def x(self): """ - Sets the horizontal domain of this map subplot (in plot - fraction). + Sets the horizontal domain of this map subplot (in plot + fraction). - The 'x' property is an info array that may be specified as: + The 'x' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'x[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'x[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - * a list or tuple of 2 elements where: - (0) The 'x[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'x[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - - Returns - ------- - list + Returns + ------- + list """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @property def y(self): """ - Sets the vertical domain of this map subplot (in plot - fraction). - - The 'y' property is an info array that may be specified as: + Sets the vertical domain of this map subplot (in plot + fraction). - * a list or tuple of 2 elements where: - (0) The 'y[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'y[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] + The 'y' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'y[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'y[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - Returns - ------- - list + Returns + ------- + list """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # Self properties description # --------------------------- @@ -124,8 +126,14 @@ def _prop_descriptions(self): Sets the vertical domain of this map subplot (in plot fraction). """ - - def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): + def __init__(self, + arg=None, + column=None, + row=None, + x=None, + y=None, + **kwargs + ): """ Construct a new Domain object @@ -152,10 +160,10 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") + super(Domain, self).__init__('domain') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -167,36 +175,23 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.map.Domain constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.map.Domain`""" - ) +an instance of :class:`plotly.graph_objs.layout.map.Domain`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("column", None) - _v = column if column is not None else _v - if _v is not None: - self["column"] = _v - _v = arg.pop("row", None) - _v = row if row is not None else _v - if _v is not None: - self["row"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v + self._init_provided('column', arg, column) + self._init_provided('row', arg, row) + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/map/_layer.py b/packages/python/plotly/plotly/graph_objs/layout/map/_layer.py index 96a054caa95..8fa74c2a438 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/map/_layer.py +++ b/packages/python/plotly/plotly/graph_objs/layout/map/_layer.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Layer(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.map" - _path_str = "layout.map.layer" - _valid_props = { - "below", - "circle", - "color", - "coordinates", - "fill", - "line", - "maxzoom", - "minzoom", - "name", - "opacity", - "source", - "sourceattribution", - "sourcelayer", - "sourcetype", - "symbol", - "templateitemname", - "type", - "visible", - } + _parent_path_str = 'layout.map' + _path_str = 'layout.map.layer' + _valid_props = {"below", "circle", "color", "coordinates", "fill", "line", "maxzoom", "minzoom", "name", "opacity", "source", "sourceattribution", "sourcelayer", "sourcetype", "symbol", "templateitemname", "type", "visible"} # below # ----- @@ -46,11 +29,11 @@ def below(self): ------- str """ - return self["below"] + return self['below'] @below.setter def below(self, val): - self["below"] = val + self['below'] = val # circle # ------ @@ -63,22 +46,15 @@ def circle(self): - A dict of string/value properties that will be passed to the Circle constructor - Supported dict properties: - - radius - Sets the circle radius (map.layer.paint.circle- - radius). Has an effect only when `type` is set - to "circle". - Returns ------- plotly.graph_objs.layout.map.layer.Circle """ - return self["circle"] + return self['circle'] @circle.setter def circle(self, val): - self["circle"] = val + self['circle'] = val # color # ----- @@ -98,52 +74,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coordinates # ----------- @@ -161,11 +102,11 @@ def coordinates(self): ------- Any """ - return self["coordinates"] + return self['coordinates'] @coordinates.setter def coordinates(self, val): - self["coordinates"] = val + self['coordinates'] = val # fill # ---- @@ -178,22 +119,15 @@ def fill(self): - A dict of string/value properties that will be passed to the Fill constructor - Supported dict properties: - - outlinecolor - Sets the fill outline color - (map.layer.paint.fill-outline-color). Has an - effect only when `type` is set to "fill". - Returns ------- plotly.graph_objs.layout.map.layer.Fill """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # line # ---- @@ -206,29 +140,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - dash - Sets the length of dashes and gaps - (map.layer.paint.line-dasharray). Has an effect - only when `type` is set to "line". - dashsrc - Sets the source reference on Chart Studio Cloud - for `dash`. - width - Sets the line width (map.layer.paint.line- - width). Has an effect only when `type` is set - to "line". - Returns ------- plotly.graph_objs.layout.map.layer.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # maxzoom # ------- @@ -245,11 +165,11 @@ def maxzoom(self): ------- int|float """ - return self["maxzoom"] + return self['maxzoom'] @maxzoom.setter def maxzoom(self, val): - self["maxzoom"] = val + self['maxzoom'] = val # minzoom # ------- @@ -266,11 +186,11 @@ def minzoom(self): ------- int|float """ - return self["minzoom"] + return self['minzoom'] @minzoom.setter def minzoom(self, val): - self["minzoom"] = val + self['minzoom'] = val # name # ---- @@ -293,11 +213,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -319,11 +239,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # source # ------ @@ -343,11 +263,11 @@ def source(self): ------- Any """ - return self["source"] + return self['source'] @source.setter def source(self, val): - self["source"] = val + self['source'] = val # sourceattribution # ----------------- @@ -364,11 +284,11 @@ def sourceattribution(self): ------- str """ - return self["sourceattribution"] + return self['sourceattribution'] @sourceattribution.setter def sourceattribution(self, val): - self["sourceattribution"] = val + self['sourceattribution'] = val # sourcelayer # ----------- @@ -387,11 +307,11 @@ def sourcelayer(self): ------- str """ - return self["sourcelayer"] + return self['sourcelayer'] @sourcelayer.setter def sourcelayer(self, val): - self["sourcelayer"] = val + self['sourcelayer'] = val # sourcetype # ---------- @@ -409,11 +329,11 @@ def sourcetype(self): ------- Any """ - return self["sourcetype"] + return self['sourcetype'] @sourcetype.setter def sourcetype(self, val): - self["sourcetype"] = val + self['sourcetype'] = val # symbol # ------ @@ -426,46 +346,15 @@ def symbol(self): - A dict of string/value properties that will be passed to the Symbol constructor - Supported dict properties: - - icon - Sets the symbol icon image - (map.layer.layout.icon-image). Full list: - https://www.map.com/maki-icons/ - iconsize - Sets the symbol icon size - (map.layer.layout.icon-size). Has an effect - only when `type` is set to "symbol". - placement - Sets the symbol and/or text placement - (map.layer.layout.symbol-placement). If - `placement` is "point", the label is placed - where the geometry is located If `placement` is - "line", the label is placed along the line of - the geometry If `placement` is "line-center", - the label is placed on the center of the - geometry - text - Sets the symbol text (map.layer.layout.text- - field). - textfont - Sets the icon text font - (color=map.layer.paint.text-color, - size=map.layer.layout.text-size). Has an effect - only when `type` is set to "symbol". - textposition - Sets the positions of the `text` elements with - respects to the (x,y) coordinates. - Returns ------- plotly.graph_objs.layout.map.layer.Symbol """ - return self["symbol"] + return self['symbol'] @symbol.setter def symbol(self, val): - self["symbol"] = val + self['symbol'] = val # templateitemname # ---------------- @@ -489,11 +378,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # type # ---- @@ -517,11 +406,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # visible # ------- @@ -537,11 +426,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # Self properties description # --------------------------- @@ -646,30 +535,28 @@ def _prop_descriptions(self): visible Determines whether this layer is displayed """ - - def __init__( - self, - arg=None, - below=None, - circle=None, - color=None, - coordinates=None, - fill=None, - line=None, - maxzoom=None, - minzoom=None, - name=None, - opacity=None, - source=None, - sourceattribution=None, - sourcelayer=None, - sourcetype=None, - symbol=None, - templateitemname=None, - type=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + below=None, + circle=None, + color=None, + coordinates=None, + fill=None, + line=None, + maxzoom=None, + minzoom=None, + name=None, + opacity=None, + source=None, + sourceattribution=None, + sourcelayer=None, + sourcetype=None, + symbol=None, + templateitemname=None, + type=None, + visible=None, + **kwargs + ): """ Construct a new Layer object @@ -781,10 +668,10 @@ def __init__( ------- Layer """ - super(Layer, self).__init__("layers") + super(Layer, self).__init__('layers') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -796,92 +683,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.map.Layer constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.map.Layer`""" - ) +an instance of :class:`plotly.graph_objs.layout.map.Layer`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("below", None) - _v = below if below is not None else _v - if _v is not None: - self["below"] = _v - _v = arg.pop("circle", None) - _v = circle if circle is not None else _v - if _v is not None: - self["circle"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coordinates", None) - _v = coordinates if coordinates is not None else _v - if _v is not None: - self["coordinates"] = _v - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("maxzoom", None) - _v = maxzoom if maxzoom is not None else _v - if _v is not None: - self["maxzoom"] = _v - _v = arg.pop("minzoom", None) - _v = minzoom if minzoom is not None else _v - if _v is not None: - self["minzoom"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("source", None) - _v = source if source is not None else _v - if _v is not None: - self["source"] = _v - _v = arg.pop("sourceattribution", None) - _v = sourceattribution if sourceattribution is not None else _v - if _v is not None: - self["sourceattribution"] = _v - _v = arg.pop("sourcelayer", None) - _v = sourcelayer if sourcelayer is not None else _v - if _v is not None: - self["sourcelayer"] = _v - _v = arg.pop("sourcetype", None) - _v = sourcetype if sourcetype is not None else _v - if _v is not None: - self["sourcetype"] = _v - _v = arg.pop("symbol", None) - _v = symbol if symbol is not None else _v - if _v is not None: - self["symbol"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('below', arg, below) + self._init_provided('circle', arg, circle) + self._init_provided('color', arg, color) + self._init_provided('coordinates', arg, coordinates) + self._init_provided('fill', arg, fill) + self._init_provided('line', arg, line) + self._init_provided('maxzoom', arg, maxzoom) + self._init_provided('minzoom', arg, minzoom) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('source', arg, source) + self._init_provided('sourceattribution', arg, sourceattribution) + self._init_provided('sourcelayer', arg, sourcelayer) + self._init_provided('sourcetype', arg, sourcetype) + self._init_provided('symbol', arg, symbol) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('type', arg, type) + self._init_provided('visible', arg, visible) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/map/layer/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/map/layer/__init__.py index 1d0bf3340b3..7fbb5ae03e3 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/map/layer/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/map/layer/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._circle import Circle from ._fill import Fill @@ -9,9 +8,10 @@ from . import symbol else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".symbol"], - ["._circle.Circle", "._fill.Fill", "._line.Line", "._symbol.Symbol"], + ['.symbol'], + ['._circle.Circle', '._fill.Fill', '._line.Line', '._symbol.Symbol'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/map/layer/_circle.py b/packages/python/plotly/plotly/graph_objs/layout/map/layer/_circle.py index e72518e582a..6b24094cca9 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/map/layer/_circle.py +++ b/packages/python/plotly/plotly/graph_objs/layout/map/layer/_circle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Circle(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.map.layer" - _path_str = "layout.map.layer.circle" + _parent_path_str = 'layout.map.layer' + _path_str = 'layout.map.layer.circle' _valid_props = {"radius"} # radius @@ -25,11 +27,11 @@ def radius(self): ------- int|float """ - return self["radius"] + return self['radius'] @radius.setter def radius(self, val): - self["radius"] = val + self['radius'] = val # Self properties description # --------------------------- @@ -40,8 +42,11 @@ def _prop_descriptions(self): Sets the circle radius (map.layer.paint.circle-radius). Has an effect only when `type` is set to "circle". """ - - def __init__(self, arg=None, radius=None, **kwargs): + def __init__(self, + arg=None, + radius=None, + **kwargs + ): """ Construct a new Circle object @@ -59,10 +64,10 @@ def __init__(self, arg=None, radius=None, **kwargs): ------- Circle """ - super(Circle, self).__init__("circle") + super(Circle, self).__init__('circle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -74,24 +79,20 @@ def __init__(self, arg=None, radius=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.map.layer.Circle constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.map.layer.Circle`""" - ) +an instance of :class:`plotly.graph_objs.layout.map.layer.Circle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("radius", None) - _v = radius if radius is not None else _v - if _v is not None: - self["radius"] = _v + self._init_provided('radius', arg, radius) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/map/layer/_fill.py b/packages/python/plotly/plotly/graph_objs/layout/map/layer/_fill.py index 722461a3440..3c7ec6519a3 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/map/layer/_fill.py +++ b/packages/python/plotly/plotly/graph_objs/layout/map/layer/_fill.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Fill(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.map.layer" - _path_str = "layout.map.layer.fill" + _parent_path_str = 'layout.map.layer' + _path_str = 'layout.map.layer.fill' _valid_props = {"outlinecolor"} # outlinecolor @@ -23,52 +25,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # Self properties description # --------------------------- @@ -80,8 +47,11 @@ def _prop_descriptions(self): outline-color). Has an effect only when `type` is set to "fill". """ - - def __init__(self, arg=None, outlinecolor=None, **kwargs): + def __init__(self, + arg=None, + outlinecolor=None, + **kwargs + ): """ Construct a new Fill object @@ -100,10 +70,10 @@ def __init__(self, arg=None, outlinecolor=None, **kwargs): ------- Fill """ - super(Fill, self).__init__("fill") + super(Fill, self).__init__('fill') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -115,24 +85,20 @@ def __init__(self, arg=None, outlinecolor=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.map.layer.Fill constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.map.layer.Fill`""" - ) +an instance of :class:`plotly.graph_objs.layout.map.layer.Fill`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v + self._init_provided('outlinecolor', arg, outlinecolor) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/map/layer/_line.py b/packages/python/plotly/plotly/graph_objs/layout/map/layer/_line.py index 28ca30e2ce7..ad3a05e6619 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/map/layer/_line.py +++ b/packages/python/plotly/plotly/graph_objs/layout/map/layer/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.map.layer" - _path_str = "layout.map.layer.line" + _parent_path_str = 'layout.map.layer' + _path_str = 'layout.map.layer.line' _valid_props = {"dash", "dashsrc", "width"} # dash @@ -25,11 +27,11 @@ def dash(self): ------- numpy.ndarray """ - return self["dash"] + return self['dash'] @dash.setter def dash(self, val): - self["dash"] = val + self['dash'] = val # dashsrc # ------- @@ -45,11 +47,11 @@ def dashsrc(self): ------- str """ - return self["dashsrc"] + return self['dashsrc'] @dashsrc.setter def dashsrc(self, val): - self["dashsrc"] = val + self['dashsrc'] = val # width # ----- @@ -66,11 +68,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -88,8 +90,13 @@ def _prop_descriptions(self): Sets the line width (map.layer.paint.line-width). Has an effect only when `type` is set to "line". """ - - def __init__(self, arg=None, dash=None, dashsrc=None, width=None, **kwargs): + def __init__(self, + arg=None, + dash=None, + dashsrc=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -114,10 +121,10 @@ def __init__(self, arg=None, dash=None, dashsrc=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -129,32 +136,22 @@ def __init__(self, arg=None, dash=None, dashsrc=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.map.layer.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.map.layer.Line`""" - ) +an instance of :class:`plotly.graph_objs.layout.map.layer.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dash", None) - _v = dash if dash is not None else _v - if _v is not None: - self["dash"] = _v - _v = arg.pop("dashsrc", None) - _v = dashsrc if dashsrc is not None else _v - if _v is not None: - self["dashsrc"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('dash', arg, dash) + self._init_provided('dashsrc', arg, dashsrc) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/map/layer/_symbol.py b/packages/python/plotly/plotly/graph_objs/layout/map/layer/_symbol.py index 5c94cd79909..f1dec56882e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/map/layer/_symbol.py +++ b/packages/python/plotly/plotly/graph_objs/layout/map/layer/_symbol.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Symbol(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.map.layer" - _path_str = "layout.map.layer.symbol" + _parent_path_str = 'layout.map.layer' + _path_str = 'layout.map.layer.symbol' _valid_props = {"icon", "iconsize", "placement", "text", "textfont", "textposition"} # icon @@ -26,11 +28,11 @@ def icon(self): ------- str """ - return self["icon"] + return self['icon'] @icon.setter def icon(self, val): - self["icon"] = val + self['icon'] = val # iconsize # -------- @@ -47,11 +49,11 @@ def iconsize(self): ------- int|float """ - return self["iconsize"] + return self['iconsize'] @iconsize.setter def iconsize(self, val): - self["iconsize"] = val + self['iconsize'] = val # placement # --------- @@ -73,11 +75,11 @@ def placement(self): ------- Any """ - return self["placement"] + return self['placement'] @placement.setter def placement(self, val): - self["placement"] = val + self['placement'] = val # text # ---- @@ -94,11 +96,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textfont # -------- @@ -115,44 +117,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.map.layer.symbol.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # textposition # ------------ @@ -172,11 +145,11 @@ def textposition(self): ------- Any """ - return self["textposition"] + return self['textposition'] @textposition.setter def textposition(self, val): - self["textposition"] = val + self['textposition'] = val # Self properties description # --------------------------- @@ -207,18 +180,16 @@ def _prop_descriptions(self): Sets the positions of the `text` elements with respects to the (x,y) coordinates. """ - - def __init__( - self, - arg=None, - icon=None, - iconsize=None, - placement=None, - text=None, - textfont=None, - textposition=None, - **kwargs, - ): + def __init__(self, + arg=None, + icon=None, + iconsize=None, + placement=None, + text=None, + textfont=None, + textposition=None, + **kwargs + ): """ Construct a new Symbol object @@ -256,10 +227,10 @@ def __init__( ------- Symbol """ - super(Symbol, self).__init__("symbol") + super(Symbol, self).__init__('symbol') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -271,44 +242,25 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.map.layer.Symbol constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.map.layer.Symbol`""" - ) +an instance of :class:`plotly.graph_objs.layout.map.layer.Symbol`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("icon", None) - _v = icon if icon is not None else _v - if _v is not None: - self["icon"] = _v - _v = arg.pop("iconsize", None) - _v = iconsize if iconsize is not None else _v - if _v is not None: - self["iconsize"] = _v - _v = arg.pop("placement", None) - _v = placement if placement is not None else _v - if _v is not None: - self["placement"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v - _v = arg.pop("textposition", None) - _v = textposition if textposition is not None else _v - if _v is not None: - self["textposition"] = _v + self._init_provided('icon', arg, icon) + self._init_provided('iconsize', arg, iconsize) + self._init_provided('placement', arg, placement) + self._init_provided('text', arg, text) + self._init_provided('textfont', arg, textfont) + self._init_provided('textposition', arg, textposition) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/map/layer/symbol/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/map/layer/symbol/__init__.py index 1640397aa7f..60a2c197f7c 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/map/layer/symbol/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/map/layer/symbol/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._textfont import Textfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._textfont.Textfont"] + __name__, + [], + ['._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/map/layer/symbol/_textfont.py b/packages/python/plotly/plotly/graph_objs/layout/map/layer/symbol/_textfont.py index 9f7b12ff27d..b63d2141a98 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/map/layer/symbol/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/layout/map/layer/symbol/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Textfont(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.map.layer.symbol" - _path_str = "layout.map.layer.symbol.textfont" + _parent_path_str = 'layout.map.layer.symbol' + _path_str = 'layout.map.layer.symbol.textfont' _valid_props = {"color", "family", "size", "style", "weight"} # color @@ -20,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -92,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # size # ---- @@ -110,11 +77,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -132,11 +99,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # weight # ------ @@ -154,11 +121,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -189,17 +156,15 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - size=None, - style=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + size=None, + style=None, + weight=None, + **kwargs + ): """ Construct a new Textfont object @@ -241,10 +206,10 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -256,40 +221,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.map.layer.symbol.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.map.layer.symbol.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.layout.map.layer.symbol.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/mapbox/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/mapbox/__init__.py index be0b2eed719..95b667b49df 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/mapbox/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/mapbox/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._bounds import Bounds from ._center import Center @@ -9,9 +8,10 @@ from . import layer else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".layer"], - ["._bounds.Bounds", "._center.Center", "._domain.Domain", "._layer.Layer"], + ['.layer'], + ['._bounds.Bounds', '._center.Center', '._domain.Domain', '._layer.Layer'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/mapbox/_bounds.py b/packages/python/plotly/plotly/graph_objs/layout/mapbox/_bounds.py index b4c7d6b76ff..73c61e80e16 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/mapbox/_bounds.py +++ b/packages/python/plotly/plotly/graph_objs/layout/mapbox/_bounds.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Bounds(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.mapbox" - _path_str = "layout.mapbox.bounds" + _parent_path_str = 'layout.mapbox' + _path_str = 'layout.mapbox.bounds' _valid_props = {"east", "north", "south", "west"} # east @@ -25,11 +27,11 @@ def east(self): ------- int|float """ - return self["east"] + return self['east'] @east.setter def east(self, val): - self["east"] = val + self['east'] = val # north # ----- @@ -46,11 +48,11 @@ def north(self): ------- int|float """ - return self["north"] + return self['north'] @north.setter def north(self, val): - self["north"] = val + self['north'] = val # south # ----- @@ -67,11 +69,11 @@ def south(self): ------- int|float """ - return self["south"] + return self['south'] @south.setter def south(self, val): - self["south"] = val + self['south'] = val # west # ---- @@ -88,11 +90,11 @@ def west(self): ------- int|float """ - return self["west"] + return self['west'] @west.setter def west(self, val): - self["west"] = val + self['west'] = val # Self properties description # --------------------------- @@ -112,10 +114,14 @@ def _prop_descriptions(self): Sets the minimum longitude of the map (in degrees East) if `east`, `south` and `north` are declared. """ - - def __init__( - self, arg=None, east=None, north=None, south=None, west=None, **kwargs - ): + def __init__(self, + arg=None, + east=None, + north=None, + south=None, + west=None, + **kwargs + ): """ Construct a new Bounds object @@ -142,10 +148,10 @@ def __init__( ------- Bounds """ - super(Bounds, self).__init__("bounds") + super(Bounds, self).__init__('bounds') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -157,36 +163,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.mapbox.Bounds constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.mapbox.Bounds`""" - ) +an instance of :class:`plotly.graph_objs.layout.mapbox.Bounds`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("east", None) - _v = east if east is not None else _v - if _v is not None: - self["east"] = _v - _v = arg.pop("north", None) - _v = north if north is not None else _v - if _v is not None: - self["north"] = _v - _v = arg.pop("south", None) - _v = south if south is not None else _v - if _v is not None: - self["south"] = _v - _v = arg.pop("west", None) - _v = west if west is not None else _v - if _v is not None: - self["west"] = _v + self._init_provided('east', arg, east) + self._init_provided('north', arg, north) + self._init_provided('south', arg, south) + self._init_provided('west', arg, west) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/mapbox/_center.py b/packages/python/plotly/plotly/graph_objs/layout/mapbox/_center.py index 4bc1c2b0eed..5fa5b67af08 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/mapbox/_center.py +++ b/packages/python/plotly/plotly/graph_objs/layout/mapbox/_center.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Center(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.mapbox" - _path_str = "layout.mapbox.center" + _parent_path_str = 'layout.mapbox' + _path_str = 'layout.mapbox.center' _valid_props = {"lat", "lon"} # lat @@ -24,11 +26,11 @@ def lat(self): ------- int|float """ - return self["lat"] + return self['lat'] @lat.setter def lat(self, val): - self["lat"] = val + self['lat'] = val # lon # --- @@ -44,11 +46,11 @@ def lon(self): ------- int|float """ - return self["lon"] + return self['lon'] @lon.setter def lon(self, val): - self["lon"] = val + self['lon'] = val # Self properties description # --------------------------- @@ -62,8 +64,12 @@ def _prop_descriptions(self): Sets the longitude of the center of the map (in degrees East). """ - - def __init__(self, arg=None, lat=None, lon=None, **kwargs): + def __init__(self, + arg=None, + lat=None, + lon=None, + **kwargs + ): """ Construct a new Center object @@ -84,10 +90,10 @@ def __init__(self, arg=None, lat=None, lon=None, **kwargs): ------- Center """ - super(Center, self).__init__("center") + super(Center, self).__init__('center') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -99,28 +105,21 @@ def __init__(self, arg=None, lat=None, lon=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.mapbox.Center constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.mapbox.Center`""" - ) +an instance of :class:`plotly.graph_objs.layout.mapbox.Center`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("lat", None) - _v = lat if lat is not None else _v - if _v is not None: - self["lat"] = _v - _v = arg.pop("lon", None) - _v = lon if lon is not None else _v - if _v is not None: - self["lon"] = _v + self._init_provided('lat', arg, lat) + self._init_provided('lon', arg, lon) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/mapbox/_domain.py b/packages/python/plotly/plotly/graph_objs/layout/mapbox/_domain.py index b260365c6cb..5b5fe44a386 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/mapbox/_domain.py +++ b/packages/python/plotly/plotly/graph_objs/layout/mapbox/_domain.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Domain(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.mapbox" - _path_str = "layout.mapbox.domain" + _parent_path_str = 'layout.mapbox' + _path_str = 'layout.mapbox.domain' _valid_props = {"column", "row", "x", "y"} # column @@ -26,11 +28,11 @@ def column(self): ------- int """ - return self["column"] + return self['column'] @column.setter def column(self, val): - self["column"] = val + self['column'] = val # row # --- @@ -48,63 +50,63 @@ def row(self): ------- int """ - return self["row"] + return self['row'] @row.setter def row(self, val): - self["row"] = val + self['row'] = val # x # - @property def x(self): """ - Sets the horizontal domain of this mapbox subplot (in plot - fraction). - - The 'x' property is an info array that may be specified as: + Sets the horizontal domain of this mapbox subplot (in plot + fraction). - * a list or tuple of 2 elements where: - (0) The 'x[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'x[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] + The 'x' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'x[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'x[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - Returns - ------- - list + Returns + ------- + list """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @property def y(self): """ - Sets the vertical domain of this mapbox subplot (in plot - fraction). + Sets the vertical domain of this mapbox subplot (in plot + fraction). - The 'y' property is an info array that may be specified as: + The 'y' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'y[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'y[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - * a list or tuple of 2 elements where: - (0) The 'y[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'y[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - - Returns - ------- - list + Returns + ------- + list """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # Self properties description # --------------------------- @@ -124,8 +126,14 @@ def _prop_descriptions(self): Sets the vertical domain of this mapbox subplot (in plot fraction). """ - - def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): + def __init__(self, + arg=None, + column=None, + row=None, + x=None, + y=None, + **kwargs + ): """ Construct a new Domain object @@ -152,10 +160,10 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") + super(Domain, self).__init__('domain') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -167,36 +175,23 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.mapbox.Domain constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.mapbox.Domain`""" - ) +an instance of :class:`plotly.graph_objs.layout.mapbox.Domain`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("column", None) - _v = column if column is not None else _v - if _v is not None: - self["column"] = _v - _v = arg.pop("row", None) - _v = row if row is not None else _v - if _v is not None: - self["row"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v + self._init_provided('column', arg, column) + self._init_provided('row', arg, row) + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/mapbox/_layer.py b/packages/python/plotly/plotly/graph_objs/layout/mapbox/_layer.py index 8f66c76a29f..6b6f099dd0c 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/mapbox/_layer.py +++ b/packages/python/plotly/plotly/graph_objs/layout/mapbox/_layer.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Layer(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.mapbox" - _path_str = "layout.mapbox.layer" - _valid_props = { - "below", - "circle", - "color", - "coordinates", - "fill", - "line", - "maxzoom", - "minzoom", - "name", - "opacity", - "source", - "sourceattribution", - "sourcelayer", - "sourcetype", - "symbol", - "templateitemname", - "type", - "visible", - } + _parent_path_str = 'layout.mapbox' + _path_str = 'layout.mapbox.layer' + _valid_props = {"below", "circle", "color", "coordinates", "fill", "line", "maxzoom", "minzoom", "name", "opacity", "source", "sourceattribution", "sourcelayer", "sourcetype", "symbol", "templateitemname", "type", "visible"} # below # ----- @@ -46,11 +29,11 @@ def below(self): ------- str """ - return self["below"] + return self['below'] @below.setter def below(self, val): - self["below"] = val + self['below'] = val # circle # ------ @@ -63,22 +46,15 @@ def circle(self): - A dict of string/value properties that will be passed to the Circle constructor - Supported dict properties: - - radius - Sets the circle radius - (mapbox.layer.paint.circle-radius). Has an - effect only when `type` is set to "circle". - Returns ------- plotly.graph_objs.layout.mapbox.layer.Circle """ - return self["circle"] + return self['circle'] @circle.setter def circle(self, val): - self["circle"] = val + self['circle'] = val # color # ----- @@ -98,52 +74,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coordinates # ----------- @@ -161,11 +102,11 @@ def coordinates(self): ------- Any """ - return self["coordinates"] + return self['coordinates'] @coordinates.setter def coordinates(self, val): - self["coordinates"] = val + self['coordinates'] = val # fill # ---- @@ -178,22 +119,15 @@ def fill(self): - A dict of string/value properties that will be passed to the Fill constructor - Supported dict properties: - - outlinecolor - Sets the fill outline color - (mapbox.layer.paint.fill-outline-color). Has an - effect only when `type` is set to "fill". - Returns ------- plotly.graph_objs.layout.mapbox.layer.Fill """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # line # ---- @@ -206,29 +140,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - dash - Sets the length of dashes and gaps - (mapbox.layer.paint.line-dasharray). Has an - effect only when `type` is set to "line". - dashsrc - Sets the source reference on Chart Studio Cloud - for `dash`. - width - Sets the line width (mapbox.layer.paint.line- - width). Has an effect only when `type` is set - to "line". - Returns ------- plotly.graph_objs.layout.mapbox.layer.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # maxzoom # ------- @@ -246,11 +166,11 @@ def maxzoom(self): ------- int|float """ - return self["maxzoom"] + return self['maxzoom'] @maxzoom.setter def maxzoom(self, val): - self["maxzoom"] = val + self['maxzoom'] = val # minzoom # ------- @@ -267,11 +187,11 @@ def minzoom(self): ------- int|float """ - return self["minzoom"] + return self['minzoom'] @minzoom.setter def minzoom(self, val): - self["minzoom"] = val + self['minzoom'] = val # name # ---- @@ -294,11 +214,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -321,11 +241,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # source # ------ @@ -345,11 +265,11 @@ def source(self): ------- Any """ - return self["source"] + return self['source'] @source.setter def source(self, val): - self["source"] = val + self['source'] = val # sourceattribution # ----------------- @@ -366,11 +286,11 @@ def sourceattribution(self): ------- str """ - return self["sourceattribution"] + return self['sourceattribution'] @sourceattribution.setter def sourceattribution(self, val): - self["sourceattribution"] = val + self['sourceattribution'] = val # sourcelayer # ----------- @@ -389,11 +309,11 @@ def sourcelayer(self): ------- str """ - return self["sourcelayer"] + return self['sourcelayer'] @sourcelayer.setter def sourcelayer(self, val): - self["sourcelayer"] = val + self['sourcelayer'] = val # sourcetype # ---------- @@ -411,11 +331,11 @@ def sourcetype(self): ------- Any """ - return self["sourcetype"] + return self['sourcetype'] @sourcetype.setter def sourcetype(self, val): - self["sourcetype"] = val + self['sourcetype'] = val # symbol # ------ @@ -428,46 +348,15 @@ def symbol(self): - A dict of string/value properties that will be passed to the Symbol constructor - Supported dict properties: - - icon - Sets the symbol icon image - (mapbox.layer.layout.icon-image). Full list: - https://www.mapbox.com/maki-icons/ - iconsize - Sets the symbol icon size - (mapbox.layer.layout.icon-size). Has an effect - only when `type` is set to "symbol". - placement - Sets the symbol and/or text placement - (mapbox.layer.layout.symbol-placement). If - `placement` is "point", the label is placed - where the geometry is located If `placement` is - "line", the label is placed along the line of - the geometry If `placement` is "line-center", - the label is placed on the center of the - geometry - text - Sets the symbol text (mapbox.layer.layout.text- - field). - textfont - Sets the icon text font - (color=mapbox.layer.paint.text-color, - size=mapbox.layer.layout.text-size). Has an - effect only when `type` is set to "symbol". - textposition - Sets the positions of the `text` elements with - respects to the (x,y) coordinates. - Returns ------- plotly.graph_objs.layout.mapbox.layer.Symbol """ - return self["symbol"] + return self['symbol'] @symbol.setter def symbol(self, val): - self["symbol"] = val + self['symbol'] = val # templateitemname # ---------------- @@ -491,11 +380,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # type # ---- @@ -519,11 +408,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # visible # ------- @@ -539,11 +428,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # Self properties description # --------------------------- @@ -649,30 +538,28 @@ def _prop_descriptions(self): visible Determines whether this layer is displayed """ - - def __init__( - self, - arg=None, - below=None, - circle=None, - color=None, - coordinates=None, - fill=None, - line=None, - maxzoom=None, - minzoom=None, - name=None, - opacity=None, - source=None, - sourceattribution=None, - sourcelayer=None, - sourcetype=None, - symbol=None, - templateitemname=None, - type=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + below=None, + circle=None, + color=None, + coordinates=None, + fill=None, + line=None, + maxzoom=None, + minzoom=None, + name=None, + opacity=None, + source=None, + sourceattribution=None, + sourcelayer=None, + sourcetype=None, + symbol=None, + templateitemname=None, + type=None, + visible=None, + **kwargs + ): """ Construct a new Layer object @@ -785,10 +672,10 @@ def __init__( ------- Layer """ - super(Layer, self).__init__("layers") + super(Layer, self).__init__('layers') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -800,92 +687,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.mapbox.Layer constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.mapbox.Layer`""" - ) +an instance of :class:`plotly.graph_objs.layout.mapbox.Layer`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("below", None) - _v = below if below is not None else _v - if _v is not None: - self["below"] = _v - _v = arg.pop("circle", None) - _v = circle if circle is not None else _v - if _v is not None: - self["circle"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coordinates", None) - _v = coordinates if coordinates is not None else _v - if _v is not None: - self["coordinates"] = _v - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("maxzoom", None) - _v = maxzoom if maxzoom is not None else _v - if _v is not None: - self["maxzoom"] = _v - _v = arg.pop("minzoom", None) - _v = minzoom if minzoom is not None else _v - if _v is not None: - self["minzoom"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("source", None) - _v = source if source is not None else _v - if _v is not None: - self["source"] = _v - _v = arg.pop("sourceattribution", None) - _v = sourceattribution if sourceattribution is not None else _v - if _v is not None: - self["sourceattribution"] = _v - _v = arg.pop("sourcelayer", None) - _v = sourcelayer if sourcelayer is not None else _v - if _v is not None: - self["sourcelayer"] = _v - _v = arg.pop("sourcetype", None) - _v = sourcetype if sourcetype is not None else _v - if _v is not None: - self["sourcetype"] = _v - _v = arg.pop("symbol", None) - _v = symbol if symbol is not None else _v - if _v is not None: - self["symbol"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('below', arg, below) + self._init_provided('circle', arg, circle) + self._init_provided('color', arg, color) + self._init_provided('coordinates', arg, coordinates) + self._init_provided('fill', arg, fill) + self._init_provided('line', arg, line) + self._init_provided('maxzoom', arg, maxzoom) + self._init_provided('minzoom', arg, minzoom) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('source', arg, source) + self._init_provided('sourceattribution', arg, sourceattribution) + self._init_provided('sourcelayer', arg, sourcelayer) + self._init_provided('sourcetype', arg, sourcetype) + self._init_provided('symbol', arg, symbol) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('type', arg, type) + self._init_provided('visible', arg, visible) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/__init__.py index 1d0bf3340b3..7fbb5ae03e3 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._circle import Circle from ._fill import Fill @@ -9,9 +8,10 @@ from . import symbol else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".symbol"], - ["._circle.Circle", "._fill.Fill", "._line.Line", "._symbol.Symbol"], + ['.symbol'], + ['._circle.Circle', '._fill.Fill', '._line.Line', '._symbol.Symbol'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/_circle.py b/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/_circle.py index ef45838fc9e..294283942c9 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/_circle.py +++ b/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/_circle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Circle(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.mapbox.layer" - _path_str = "layout.mapbox.layer.circle" + _parent_path_str = 'layout.mapbox.layer' + _path_str = 'layout.mapbox.layer.circle' _valid_props = {"radius"} # radius @@ -25,11 +27,11 @@ def radius(self): ------- int|float """ - return self["radius"] + return self['radius'] @radius.setter def radius(self, val): - self["radius"] = val + self['radius'] = val # Self properties description # --------------------------- @@ -41,8 +43,11 @@ def _prop_descriptions(self): radius). Has an effect only when `type` is set to "circle". """ - - def __init__(self, arg=None, radius=None, **kwargs): + def __init__(self, + arg=None, + radius=None, + **kwargs + ): """ Construct a new Circle object @@ -61,10 +66,10 @@ def __init__(self, arg=None, radius=None, **kwargs): ------- Circle """ - super(Circle, self).__init__("circle") + super(Circle, self).__init__('circle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -76,24 +81,20 @@ def __init__(self, arg=None, radius=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.mapbox.layer.Circle constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.mapbox.layer.Circle`""" - ) +an instance of :class:`plotly.graph_objs.layout.mapbox.layer.Circle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("radius", None) - _v = radius if radius is not None else _v - if _v is not None: - self["radius"] = _v + self._init_provided('radius', arg, radius) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/_fill.py b/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/_fill.py index 6b9a02f53fb..bfd77d87fd7 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/_fill.py +++ b/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/_fill.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Fill(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.mapbox.layer" - _path_str = "layout.mapbox.layer.fill" + _parent_path_str = 'layout.mapbox.layer' + _path_str = 'layout.mapbox.layer.fill' _valid_props = {"outlinecolor"} # outlinecolor @@ -23,52 +25,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # Self properties description # --------------------------- @@ -80,8 +47,11 @@ def _prop_descriptions(self): outline-color). Has an effect only when `type` is set to "fill". """ - - def __init__(self, arg=None, outlinecolor=None, **kwargs): + def __init__(self, + arg=None, + outlinecolor=None, + **kwargs + ): """ Construct a new Fill object @@ -100,10 +70,10 @@ def __init__(self, arg=None, outlinecolor=None, **kwargs): ------- Fill """ - super(Fill, self).__init__("fill") + super(Fill, self).__init__('fill') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -115,24 +85,20 @@ def __init__(self, arg=None, outlinecolor=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.mapbox.layer.Fill constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.mapbox.layer.Fill`""" - ) +an instance of :class:`plotly.graph_objs.layout.mapbox.layer.Fill`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v + self._init_provided('outlinecolor', arg, outlinecolor) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/_line.py b/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/_line.py index 6831a11c6f7..a2cf820a85f 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/_line.py +++ b/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.mapbox.layer" - _path_str = "layout.mapbox.layer.line" + _parent_path_str = 'layout.mapbox.layer' + _path_str = 'layout.mapbox.layer.line' _valid_props = {"dash", "dashsrc", "width"} # dash @@ -25,11 +27,11 @@ def dash(self): ------- numpy.ndarray """ - return self["dash"] + return self['dash'] @dash.setter def dash(self, val): - self["dash"] = val + self['dash'] = val # dashsrc # ------- @@ -45,11 +47,11 @@ def dashsrc(self): ------- str """ - return self["dashsrc"] + return self['dashsrc'] @dashsrc.setter def dashsrc(self, val): - self["dashsrc"] = val + self['dashsrc'] = val # width # ----- @@ -66,11 +68,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -88,8 +90,13 @@ def _prop_descriptions(self): Sets the line width (mapbox.layer.paint.line-width). Has an effect only when `type` is set to "line". """ - - def __init__(self, arg=None, dash=None, dashsrc=None, width=None, **kwargs): + def __init__(self, + arg=None, + dash=None, + dashsrc=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -114,10 +121,10 @@ def __init__(self, arg=None, dash=None, dashsrc=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -129,32 +136,22 @@ def __init__(self, arg=None, dash=None, dashsrc=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.mapbox.layer.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.mapbox.layer.Line`""" - ) +an instance of :class:`plotly.graph_objs.layout.mapbox.layer.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dash", None) - _v = dash if dash is not None else _v - if _v is not None: - self["dash"] = _v - _v = arg.pop("dashsrc", None) - _v = dashsrc if dashsrc is not None else _v - if _v is not None: - self["dashsrc"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('dash', arg, dash) + self._init_provided('dashsrc', arg, dashsrc) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/_symbol.py b/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/_symbol.py index 5545054312e..b03e1387fc7 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/_symbol.py +++ b/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/_symbol.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Symbol(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.mapbox.layer" - _path_str = "layout.mapbox.layer.symbol" + _parent_path_str = 'layout.mapbox.layer' + _path_str = 'layout.mapbox.layer.symbol' _valid_props = {"icon", "iconsize", "placement", "text", "textfont", "textposition"} # icon @@ -26,11 +28,11 @@ def icon(self): ------- str """ - return self["icon"] + return self['icon'] @icon.setter def icon(self, val): - self["icon"] = val + self['icon'] = val # iconsize # -------- @@ -47,11 +49,11 @@ def iconsize(self): ------- int|float """ - return self["iconsize"] + return self['iconsize'] @iconsize.setter def iconsize(self, val): - self["iconsize"] = val + self['iconsize'] = val # placement # --------- @@ -73,11 +75,11 @@ def placement(self): ------- Any """ - return self["placement"] + return self['placement'] @placement.setter def placement(self, val): - self["placement"] = val + self['placement'] = val # text # ---- @@ -94,11 +96,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textfont # -------- @@ -115,44 +117,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.mapbox.layer.symbol.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # textposition # ------------ @@ -172,11 +145,11 @@ def textposition(self): ------- Any """ - return self["textposition"] + return self['textposition'] @textposition.setter def textposition(self, val): - self["textposition"] = val + self['textposition'] = val # Self properties description # --------------------------- @@ -208,18 +181,16 @@ def _prop_descriptions(self): Sets the positions of the `text` elements with respects to the (x,y) coordinates. """ - - def __init__( - self, - arg=None, - icon=None, - iconsize=None, - placement=None, - text=None, - textfont=None, - textposition=None, - **kwargs, - ): + def __init__(self, + arg=None, + icon=None, + iconsize=None, + placement=None, + text=None, + textfont=None, + textposition=None, + **kwargs + ): """ Construct a new Symbol object @@ -258,10 +229,10 @@ def __init__( ------- Symbol """ - super(Symbol, self).__init__("symbol") + super(Symbol, self).__init__('symbol') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -273,44 +244,25 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.mapbox.layer.Symbol constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.mapbox.layer.Symbol`""" - ) +an instance of :class:`plotly.graph_objs.layout.mapbox.layer.Symbol`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("icon", None) - _v = icon if icon is not None else _v - if _v is not None: - self["icon"] = _v - _v = arg.pop("iconsize", None) - _v = iconsize if iconsize is not None else _v - if _v is not None: - self["iconsize"] = _v - _v = arg.pop("placement", None) - _v = placement if placement is not None else _v - if _v is not None: - self["placement"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v - _v = arg.pop("textposition", None) - _v = textposition if textposition is not None else _v - if _v is not None: - self["textposition"] = _v + self._init_provided('icon', arg, icon) + self._init_provided('iconsize', arg, iconsize) + self._init_provided('placement', arg, placement) + self._init_provided('text', arg, text) + self._init_provided('textfont', arg, textfont) + self._init_provided('textposition', arg, textposition) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/symbol/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/symbol/__init__.py index 1640397aa7f..60a2c197f7c 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/symbol/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/symbol/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._textfont import Textfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._textfont.Textfont"] + __name__, + [], + ['._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/symbol/_textfont.py b/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/symbol/_textfont.py index 9902f6b8222..e9d26008798 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/symbol/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/symbol/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Textfont(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.mapbox.layer.symbol" - _path_str = "layout.mapbox.layer.symbol.textfont" + _parent_path_str = 'layout.mapbox.layer.symbol' + _path_str = 'layout.mapbox.layer.symbol.textfont' _valid_props = {"color", "family", "size", "style", "weight"} # color @@ -20,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -92,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # size # ---- @@ -110,11 +77,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -132,11 +99,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # weight # ------ @@ -154,11 +121,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -189,17 +156,15 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - size=None, - style=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + size=None, + style=None, + weight=None, + **kwargs + ): """ Construct a new Textfont object @@ -241,10 +206,10 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -256,40 +221,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.mapbox.layer.symbol.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.mapbox.layer.symbol.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.layout.mapbox.layer.symbol.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/newselection/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/newselection/__init__.py index 8722c15a2b8..a745ef6458a 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/newselection/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/newselection/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import Line else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._line.Line'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._line.Line"]) diff --git a/packages/python/plotly/plotly/graph_objs/layout/newselection/_line.py b/packages/python/plotly/plotly/graph_objs/layout/newselection/_line.py index b1a6065cc75..1ead83f53a2 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/newselection/_line.py +++ b/packages/python/plotly/plotly/graph_objs/layout/newselection/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.newselection" - _path_str = "layout.newselection.line" + _parent_path_str = 'layout.newselection' + _path_str = 'layout.newselection.line' _valid_props = {"color", "dash", "width"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # dash # ---- @@ -90,11 +57,11 @@ def dash(self): ------- str """ - return self["dash"] + return self['dash'] @dash.setter def dash(self, val): - self["dash"] = val + self['dash'] = val # width # ----- @@ -110,11 +77,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -132,8 +99,13 @@ def _prop_descriptions(self): width Sets the line width (in px). """ - - def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): + def __init__(self, + arg=None, + color=None, + dash=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -158,10 +130,10 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -173,32 +145,22 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.newselection.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.newselection.Line`""" - ) +an instance of :class:`plotly.graph_objs.layout.newselection.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("dash", None) - _v = dash if dash is not None else _v - if _v is not None: - self["dash"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('dash', arg, dash) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/newshape/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/newshape/__init__.py index dd5947b0496..d6a6449c75e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/newshape/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/newshape/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._label import Label from ._legendgrouptitle import Legendgrouptitle @@ -9,9 +8,10 @@ from . import legendgrouptitle else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".label", ".legendgrouptitle"], - ["._label.Label", "._legendgrouptitle.Legendgrouptitle", "._line.Line"], + ['.label', '.legendgrouptitle'], + ['._label.Label', '._legendgrouptitle.Legendgrouptitle', '._line.Line'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/newshape/_label.py b/packages/python/plotly/plotly/graph_objs/layout/newshape/_label.py index a4af9fcb2ac..1520a266ca8 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/newshape/_label.py +++ b/packages/python/plotly/plotly/graph_objs/layout/newshape/_label.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,18 +8,9 @@ class Label(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.newshape" - _path_str = "layout.newshape.label" - _valid_props = { - "font", - "padding", - "text", - "textangle", - "textposition", - "texttemplate", - "xanchor", - "yanchor", - } + _parent_path_str = 'layout.newshape' + _path_str = 'layout.newshape.label' + _valid_props = {"font", "padding", "text", "textangle", "textposition", "texttemplate", "xanchor", "yanchor"} # font # ---- @@ -32,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.newshape.label.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # padding # ------- @@ -103,11 +50,11 @@ def padding(self): ------- int|float """ - return self["padding"] + return self['padding'] @padding.setter def padding(self, val): - self["padding"] = val + self['padding'] = val # text # ---- @@ -125,11 +72,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textangle # --------- @@ -149,11 +96,11 @@ def textangle(self): ------- int|float """ - return self["textangle"] + return self['textangle'] @textangle.setter def textangle(self, val): - self["textangle"] = val + self['textangle'] = val # textposition # ------------ @@ -178,11 +125,11 @@ def textposition(self): ------- Any """ - return self["textposition"] + return self['textposition'] @textposition.setter def textposition(self, val): - self["textposition"] = val + self['textposition'] = val # texttemplate # ------------ @@ -218,11 +165,11 @@ def texttemplate(self): ------- str """ - return self["texttemplate"] + return self['texttemplate'] @texttemplate.setter def texttemplate(self, val): - self["texttemplate"] = val + self['texttemplate'] = val # xanchor # ------- @@ -244,11 +191,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # yanchor # ------- @@ -269,11 +216,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # Self properties description # --------------------------- @@ -341,20 +288,18 @@ def _prop_descriptions(self): "top" then the top-most portion of the label text lines up with the top-most edge of the new shape. """ - - def __init__( - self, - arg=None, - font=None, - padding=None, - text=None, - textangle=None, - textposition=None, - texttemplate=None, - xanchor=None, - yanchor=None, - **kwargs, - ): + def __init__(self, + arg=None, + font=None, + padding=None, + text=None, + textangle=None, + textposition=None, + texttemplate=None, + xanchor=None, + yanchor=None, + **kwargs + ): """ Construct a new Label object @@ -429,10 +374,10 @@ def __init__( ------- Label """ - super(Label, self).__init__("label") + super(Label, self).__init__('label') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -444,52 +389,27 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.newshape.Label constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.newshape.Label`""" - ) +an instance of :class:`plotly.graph_objs.layout.newshape.Label`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("padding", None) - _v = padding if padding is not None else _v - if _v is not None: - self["padding"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textangle", None) - _v = textangle if textangle is not None else _v - if _v is not None: - self["textangle"] = _v - _v = arg.pop("textposition", None) - _v = textposition if textposition is not None else _v - if _v is not None: - self["textposition"] = _v - _v = arg.pop("texttemplate", None) - _v = texttemplate if texttemplate is not None else _v - if _v is not None: - self["texttemplate"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v + self._init_provided('font', arg, font) + self._init_provided('padding', arg, padding) + self._init_provided('text', arg, text) + self._init_provided('textangle', arg, textangle) + self._init_provided('textposition', arg, textposition) + self._init_provided('texttemplate', arg, texttemplate) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('yanchor', arg, yanchor) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/newshape/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/layout/newshape/_legendgrouptitle.py index d843bc2bae3..99fc61a1d45 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/newshape/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/layout/newshape/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.newshape" - _path_str = "layout.newshape.legendgrouptitle" + _parent_path_str = 'layout.newshape' + _path_str = 'layout.newshape.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.newshape.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.newshape.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.newshape.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.layout.newshape.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/newshape/_line.py b/packages/python/plotly/plotly/graph_objs/layout/newshape/_line.py index 9c512912686..818f6d2ccab 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/newshape/_line.py +++ b/packages/python/plotly/plotly/graph_objs/layout/newshape/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.newshape" - _path_str = "layout.newshape.line" + _parent_path_str = 'layout.newshape' + _path_str = 'layout.newshape.line' _valid_props = {"color", "dash", "width"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # dash # ---- @@ -90,11 +57,11 @@ def dash(self): ------- str """ - return self["dash"] + return self['dash'] @dash.setter def dash(self, val): - self["dash"] = val + self['dash'] = val # width # ----- @@ -110,11 +77,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -132,8 +99,13 @@ def _prop_descriptions(self): width Sets the line width (in px). """ - - def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): + def __init__(self, + arg=None, + color=None, + dash=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -158,10 +130,10 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -173,32 +145,22 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.newshape.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.newshape.Line`""" - ) +an instance of :class:`plotly.graph_objs.layout.newshape.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("dash", None) - _v = dash if dash is not None else _v - if _v is not None: - self["dash"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('dash', arg, dash) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/newshape/label/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/newshape/label/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/newshape/label/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/newshape/label/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/layout/newshape/label/_font.py b/packages/python/plotly/plotly/graph_objs/layout/newshape/label/_font.py index 91a86ef4cfc..a03f8b768cc 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/newshape/label/_font.py +++ b/packages/python/plotly/plotly/graph_objs/layout/newshape/label/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.newshape.label" - _path_str = "layout.newshape.label.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.newshape.label' + _path_str = 'layout.newshape.label.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.newshape.label.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.newshape.label.Font`""" - ) +an instance of :class:`plotly.graph_objs.layout.newshape.label.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/newshape/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/newshape/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/newshape/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/newshape/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/layout/newshape/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/layout/newshape/legendgrouptitle/_font.py index 83acb231a70..b8d08f171e9 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/newshape/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/layout/newshape/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.newshape.legendgrouptitle" - _path_str = "layout.newshape.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.newshape.legendgrouptitle' + _path_str = 'layout.newshape.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.newshape.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.newshape.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.layout.newshape.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/polar/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/polar/__init__.py index d40a4555109..7653ac0dcb9 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/polar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/polar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._angularaxis import AngularAxis from ._domain import Domain @@ -9,9 +8,10 @@ from . import radialaxis else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".angularaxis", ".radialaxis"], - ["._angularaxis.AngularAxis", "._domain.Domain", "._radialaxis.RadialAxis"], + ['.angularaxis', '.radialaxis'], + ['._angularaxis.AngularAxis', '._domain.Domain', '._radialaxis.RadialAxis'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/polar/_angularaxis.py b/packages/python/plotly/plotly/graph_objs/layout/polar/_angularaxis.py index 25ce58b1a52..345fbdcce67 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/polar/_angularaxis.py +++ b/packages/python/plotly/plotly/graph_objs/layout/polar/_angularaxis.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class AngularAxis(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.polar" - _path_str = "layout.polar.angularaxis" - _valid_props = { - "autotypenumbers", - "categoryarray", - "categoryarraysrc", - "categoryorder", - "color", - "direction", - "dtick", - "exponentformat", - "gridcolor", - "griddash", - "gridwidth", - "hoverformat", - "labelalias", - "layer", - "linecolor", - "linewidth", - "minexponent", - "nticks", - "period", - "rotation", - "separatethousands", - "showexponent", - "showgrid", - "showline", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thetaunit", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "type", - "uirevision", - "visible", - } + _parent_path_str = 'layout.polar' + _path_str = 'layout.polar.angularaxis' + _valid_props = {"autotypenumbers", "categoryarray", "categoryarraysrc", "categoryorder", "color", "direction", "dtick", "exponentformat", "gridcolor", "griddash", "gridwidth", "hoverformat", "labelalias", "layer", "linecolor", "linewidth", "minexponent", "nticks", "period", "rotation", "separatethousands", "showexponent", "showgrid", "showline", "showticklabels", "showtickprefix", "showticksuffix", "thetaunit", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "type", "uirevision", "visible"} # autotypenumbers # --------------- @@ -78,11 +30,11 @@ def autotypenumbers(self): ------- Any """ - return self["autotypenumbers"] + return self['autotypenumbers'] @autotypenumbers.setter def autotypenumbers(self, val): - self["autotypenumbers"] = val + self['autotypenumbers'] = val # categoryarray # ------------- @@ -100,11 +52,11 @@ def categoryarray(self): ------- numpy.ndarray """ - return self["categoryarray"] + return self['categoryarray'] @categoryarray.setter def categoryarray(self, val): - self["categoryarray"] = val + self['categoryarray'] = val # categoryarraysrc # ---------------- @@ -121,11 +73,11 @@ def categoryarraysrc(self): ------- str """ - return self["categoryarraysrc"] + return self['categoryarraysrc'] @categoryarraysrc.setter def categoryarraysrc(self, val): - self["categoryarraysrc"] = val + self['categoryarraysrc'] = val # categoryorder # ------------- @@ -162,11 +114,11 @@ def categoryorder(self): ------- Any """ - return self["categoryorder"] + return self['categoryorder'] @categoryorder.setter def categoryorder(self, val): - self["categoryorder"] = val + self['categoryorder'] = val # color # ----- @@ -183,52 +135,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # direction # --------- @@ -245,11 +162,11 @@ def direction(self): ------- Any """ - return self["direction"] + return self['direction'] @direction.setter def direction(self, val): - self["direction"] = val + self['direction'] = val # dtick # ----- @@ -283,11 +200,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -308,11 +225,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # gridcolor # --------- @@ -326,52 +243,17 @@ def gridcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["gridcolor"] + return self['gridcolor'] @gridcolor.setter def gridcolor(self, val): - self["gridcolor"] = val + self['gridcolor'] = val # griddash # -------- @@ -393,11 +275,11 @@ def griddash(self): ------- str """ - return self["griddash"] + return self['griddash'] @griddash.setter def griddash(self, val): - self["griddash"] = val + self['griddash'] = val # gridwidth # --------- @@ -413,11 +295,11 @@ def gridwidth(self): ------- int|float """ - return self["gridwidth"] + return self['gridwidth'] @gridwidth.setter def gridwidth(self, val): - self["gridwidth"] = val + self['gridwidth'] = val # hoverformat # ----------- @@ -443,11 +325,11 @@ def hoverformat(self): ------- str """ - return self["hoverformat"] + return self['hoverformat'] @hoverformat.setter def hoverformat(self, val): - self["hoverformat"] = val + self['hoverformat'] = val # labelalias # ---------- @@ -470,11 +352,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # layer # ----- @@ -496,11 +378,11 @@ def layer(self): ------- Any """ - return self["layer"] + return self['layer'] @layer.setter def layer(self, val): - self["layer"] = val + self['layer'] = val # linecolor # --------- @@ -514,52 +396,17 @@ def linecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["linecolor"] + return self['linecolor'] @linecolor.setter def linecolor(self, val): - self["linecolor"] = val + self['linecolor'] = val # linewidth # --------- @@ -575,11 +422,11 @@ def linewidth(self): ------- int|float """ - return self["linewidth"] + return self['linewidth'] @linewidth.setter def linewidth(self, val): - self["linewidth"] = val + self['linewidth'] = val # minexponent # ----------- @@ -596,11 +443,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -620,11 +467,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # period # ------ @@ -641,11 +488,11 @@ def period(self): ------- int|float """ - return self["period"] + return self['period'] @period.setter def period(self, val): - self["period"] = val + self['period'] = val # rotation # -------- @@ -668,11 +515,11 @@ def rotation(self): ------- int|float """ - return self["rotation"] + return self['rotation'] @rotation.setter def rotation(self, val): - self["rotation"] = val + self['rotation'] = val # separatethousands # ----------------- @@ -688,11 +535,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -712,11 +559,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showgrid # -------- @@ -733,11 +580,11 @@ def showgrid(self): ------- bool """ - return self["showgrid"] + return self['showgrid'] @showgrid.setter def showgrid(self, val): - self["showgrid"] = val + self['showgrid'] = val # showline # -------- @@ -753,11 +600,11 @@ def showline(self): ------- bool """ - return self["showline"] + return self['showline'] @showline.setter def showline(self, val): - self["showline"] = val + self['showline'] = val # showticklabels # -------------- @@ -773,11 +620,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -797,11 +644,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -818,11 +665,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thetaunit # --------- @@ -840,11 +687,11 @@ def thetaunit(self): ------- Any """ - return self["thetaunit"] + return self['thetaunit'] @thetaunit.setter def thetaunit(self, val): - self["thetaunit"] = val + self['thetaunit'] = val # tick0 # ----- @@ -867,11 +714,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -891,11 +738,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -909,52 +756,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -969,61 +781,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.polar.angularaxis.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -1049,11 +815,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -1066,51 +832,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.layout.polar.angularaxis.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -1127,17 +857,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.layout.polar.angularaxis.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabelstep # ------------- @@ -1159,11 +887,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1179,11 +907,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1206,11 +934,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1227,11 +955,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1250,11 +978,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1271,11 +999,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1293,11 +1021,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1313,11 +1041,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1334,11 +1062,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1354,11 +1082,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1374,11 +1102,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # type # ---- @@ -1398,11 +1126,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # uirevision # ---------- @@ -1418,11 +1146,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # visible # ------- @@ -1440,11 +1168,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # Self properties description # --------------------------- @@ -1705,61 +1433,59 @@ def _prop_descriptions(self): interaction like dragging. Default is true when a cheater plot is present on the axis, otherwise false """ - - def __init__( - self, - arg=None, - autotypenumbers=None, - categoryarray=None, - categoryarraysrc=None, - categoryorder=None, - color=None, - direction=None, - dtick=None, - exponentformat=None, - gridcolor=None, - griddash=None, - gridwidth=None, - hoverformat=None, - labelalias=None, - layer=None, - linecolor=None, - linewidth=None, - minexponent=None, - nticks=None, - period=None, - rotation=None, - separatethousands=None, - showexponent=None, - showgrid=None, - showline=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thetaunit=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - type=None, - uirevision=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + autotypenumbers=None, + categoryarray=None, + categoryarraysrc=None, + categoryorder=None, + color=None, + direction=None, + dtick=None, + exponentformat=None, + gridcolor=None, + griddash=None, + gridwidth=None, + hoverformat=None, + labelalias=None, + layer=None, + linecolor=None, + linewidth=None, + minexponent=None, + nticks=None, + period=None, + rotation=None, + separatethousands=None, + showexponent=None, + showgrid=None, + showline=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thetaunit=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + type=None, + uirevision=None, + visible=None, + **kwargs + ): """ Construct a new AngularAxis object @@ -2027,10 +1753,10 @@ def __init__( ------- AngularAxis """ - super(AngularAxis, self).__init__("angularaxis") + super(AngularAxis, self).__init__('angularaxis') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2042,216 +1768,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.polar.AngularAxis constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.polar.AngularAxis`""" - ) +an instance of :class:`plotly.graph_objs.layout.polar.AngularAxis`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autotypenumbers", None) - _v = autotypenumbers if autotypenumbers is not None else _v - if _v is not None: - self["autotypenumbers"] = _v - _v = arg.pop("categoryarray", None) - _v = categoryarray if categoryarray is not None else _v - if _v is not None: - self["categoryarray"] = _v - _v = arg.pop("categoryarraysrc", None) - _v = categoryarraysrc if categoryarraysrc is not None else _v - if _v is not None: - self["categoryarraysrc"] = _v - _v = arg.pop("categoryorder", None) - _v = categoryorder if categoryorder is not None else _v - if _v is not None: - self["categoryorder"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("direction", None) - _v = direction if direction is not None else _v - if _v is not None: - self["direction"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("gridcolor", None) - _v = gridcolor if gridcolor is not None else _v - if _v is not None: - self["gridcolor"] = _v - _v = arg.pop("griddash", None) - _v = griddash if griddash is not None else _v - if _v is not None: - self["griddash"] = _v - _v = arg.pop("gridwidth", None) - _v = gridwidth if gridwidth is not None else _v - if _v is not None: - self["gridwidth"] = _v - _v = arg.pop("hoverformat", None) - _v = hoverformat if hoverformat is not None else _v - if _v is not None: - self["hoverformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("layer", None) - _v = layer if layer is not None else _v - if _v is not None: - self["layer"] = _v - _v = arg.pop("linecolor", None) - _v = linecolor if linecolor is not None else _v - if _v is not None: - self["linecolor"] = _v - _v = arg.pop("linewidth", None) - _v = linewidth if linewidth is not None else _v - if _v is not None: - self["linewidth"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("period", None) - _v = period if period is not None else _v - if _v is not None: - self["period"] = _v - _v = arg.pop("rotation", None) - _v = rotation if rotation is not None else _v - if _v is not None: - self["rotation"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showgrid", None) - _v = showgrid if showgrid is not None else _v - if _v is not None: - self["showgrid"] = _v - _v = arg.pop("showline", None) - _v = showline if showline is not None else _v - if _v is not None: - self["showline"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thetaunit", None) - _v = thetaunit if thetaunit is not None else _v - if _v is not None: - self["thetaunit"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('autotypenumbers', arg, autotypenumbers) + self._init_provided('categoryarray', arg, categoryarray) + self._init_provided('categoryarraysrc', arg, categoryarraysrc) + self._init_provided('categoryorder', arg, categoryorder) + self._init_provided('color', arg, color) + self._init_provided('direction', arg, direction) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('gridcolor', arg, gridcolor) + self._init_provided('griddash', arg, griddash) + self._init_provided('gridwidth', arg, gridwidth) + self._init_provided('hoverformat', arg, hoverformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('layer', arg, layer) + self._init_provided('linecolor', arg, linecolor) + self._init_provided('linewidth', arg, linewidth) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('period', arg, period) + self._init_provided('rotation', arg, rotation) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showgrid', arg, showgrid) + self._init_provided('showline', arg, showline) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thetaunit', arg, thetaunit) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('type', arg, type) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('visible', arg, visible) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/polar/_domain.py b/packages/python/plotly/plotly/graph_objs/layout/polar/_domain.py index 9850010fd92..39276ad51a9 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/polar/_domain.py +++ b/packages/python/plotly/plotly/graph_objs/layout/polar/_domain.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Domain(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.polar" - _path_str = "layout.polar.domain" + _parent_path_str = 'layout.polar' + _path_str = 'layout.polar.domain' _valid_props = {"column", "row", "x", "y"} # column @@ -26,11 +28,11 @@ def column(self): ------- int """ - return self["column"] + return self['column'] @column.setter def column(self, val): - self["column"] = val + self['column'] = val # row # --- @@ -48,63 +50,63 @@ def row(self): ------- int """ - return self["row"] + return self['row'] @row.setter def row(self, val): - self["row"] = val + self['row'] = val # x # - @property def x(self): """ - Sets the horizontal domain of this polar subplot (in plot - fraction). + Sets the horizontal domain of this polar subplot (in plot + fraction). - The 'x' property is an info array that may be specified as: + The 'x' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'x[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'x[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - * a list or tuple of 2 elements where: - (0) The 'x[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'x[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - - Returns - ------- - list + Returns + ------- + list """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @property def y(self): """ - Sets the vertical domain of this polar subplot (in plot - fraction). - - The 'y' property is an info array that may be specified as: + Sets the vertical domain of this polar subplot (in plot + fraction). - * a list or tuple of 2 elements where: - (0) The 'y[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'y[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] + The 'y' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'y[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'y[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - Returns - ------- - list + Returns + ------- + list """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # Self properties description # --------------------------- @@ -124,8 +126,14 @@ def _prop_descriptions(self): Sets the vertical domain of this polar subplot (in plot fraction). """ - - def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): + def __init__(self, + arg=None, + column=None, + row=None, + x=None, + y=None, + **kwargs + ): """ Construct a new Domain object @@ -152,10 +160,10 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") + super(Domain, self).__init__('domain') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -167,36 +175,23 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.polar.Domain constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.polar.Domain`""" - ) +an instance of :class:`plotly.graph_objs.layout.polar.Domain`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("column", None) - _v = column if column is not None else _v - if _v is not None: - self["column"] = _v - _v = arg.pop("row", None) - _v = row if row is not None else _v - if _v is not None: - self["row"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v + self._init_provided('column', arg, column) + self._init_provided('row', arg, row) + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/polar/_radialaxis.py b/packages/python/plotly/plotly/graph_objs/layout/polar/_radialaxis.py index 53c916777b0..acba47a3fa9 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/polar/_radialaxis.py +++ b/packages/python/plotly/plotly/graph_objs/layout/polar/_radialaxis.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,66 +8,9 @@ class RadialAxis(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.polar" - _path_str = "layout.polar.radialaxis" - _valid_props = { - "angle", - "autorange", - "autorangeoptions", - "autotickangles", - "autotypenumbers", - "calendar", - "categoryarray", - "categoryarraysrc", - "categoryorder", - "color", - "dtick", - "exponentformat", - "gridcolor", - "griddash", - "gridwidth", - "hoverformat", - "labelalias", - "layer", - "linecolor", - "linewidth", - "maxallowed", - "minallowed", - "minexponent", - "nticks", - "range", - "rangemode", - "separatethousands", - "showexponent", - "showgrid", - "showline", - "showticklabels", - "showtickprefix", - "showticksuffix", - "side", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "type", - "uirevision", - "visible", - } + _parent_path_str = 'layout.polar' + _path_str = 'layout.polar.radialaxis' + _valid_props = {"angle", "autorange", "autorangeoptions", "autotickangles", "autotypenumbers", "calendar", "categoryarray", "categoryarraysrc", "categoryorder", "color", "dtick", "exponentformat", "gridcolor", "griddash", "gridwidth", "hoverformat", "labelalias", "layer", "linecolor", "linewidth", "maxallowed", "minallowed", "minexponent", "nticks", "range", "rangemode", "separatethousands", "showexponent", "showgrid", "showline", "showticklabels", "showtickprefix", "showticksuffix", "side", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "type", "uirevision", "visible"} # angle # ----- @@ -87,11 +32,11 @@ def angle(self): ------- int|float """ - return self["angle"] + return self['angle'] @angle.setter def angle(self, val): - self["angle"] = val + self['angle'] = val # autorange # --------- @@ -118,11 +63,11 @@ def autorange(self): ------- Any """ - return self["autorange"] + return self['autorange'] @autorange.setter def autorange(self, val): - self["autorange"] = val + self['autorange'] = val # autorangeoptions # ---------------- @@ -135,35 +80,15 @@ def autorangeoptions(self): - A dict of string/value properties that will be passed to the Autorangeoptions constructor - Supported dict properties: - - clipmax - Clip autorange maximum if it goes beyond this - value. Has no effect when - `autorangeoptions.maxallowed` is provided. - clipmin - Clip autorange minimum if it goes beyond this - value. Has no effect when - `autorangeoptions.minallowed` is provided. - include - Ensure this value is included in autorange. - includesrc - Sets the source reference on Chart Studio Cloud - for `include`. - maxallowed - Use this value exactly as autorange maximum. - minallowed - Use this value exactly as autorange minimum. - Returns ------- plotly.graph_objs.layout.polar.radialaxis.Autorangeoptions """ - return self["autorangeoptions"] + return self['autorangeoptions'] @autorangeoptions.setter def autorangeoptions(self, val): - self["autorangeoptions"] = val + self['autorangeoptions'] = val # autotickangles # -------------- @@ -185,11 +110,11 @@ def autotickangles(self): ------- list """ - return self["autotickangles"] + return self['autotickangles'] @autotickangles.setter def autotickangles(self, val): - self["autotickangles"] = val + self['autotickangles'] = val # autotypenumbers # --------------- @@ -209,11 +134,11 @@ def autotypenumbers(self): ------- Any """ - return self["autotypenumbers"] + return self['autotypenumbers'] @autotypenumbers.setter def autotypenumbers(self, val): - self["autotypenumbers"] = val + self['autotypenumbers'] = val # calendar # -------- @@ -236,11 +161,11 @@ def calendar(self): ------- Any """ - return self["calendar"] + return self['calendar'] @calendar.setter def calendar(self, val): - self["calendar"] = val + self['calendar'] = val # categoryarray # ------------- @@ -258,11 +183,11 @@ def categoryarray(self): ------- numpy.ndarray """ - return self["categoryarray"] + return self['categoryarray'] @categoryarray.setter def categoryarray(self, val): - self["categoryarray"] = val + self['categoryarray'] = val # categoryarraysrc # ---------------- @@ -279,11 +204,11 @@ def categoryarraysrc(self): ------- str """ - return self["categoryarraysrc"] + return self['categoryarraysrc'] @categoryarraysrc.setter def categoryarraysrc(self, val): - self["categoryarraysrc"] = val + self['categoryarraysrc'] = val # categoryorder # ------------- @@ -320,11 +245,11 @@ def categoryorder(self): ------- Any """ - return self["categoryorder"] + return self['categoryorder'] @categoryorder.setter def categoryorder(self, val): - self["categoryorder"] = val + self['categoryorder'] = val # color # ----- @@ -341,52 +266,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # dtick # ----- @@ -420,11 +310,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -445,11 +335,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # gridcolor # --------- @@ -463,52 +353,17 @@ def gridcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["gridcolor"] + return self['gridcolor'] @gridcolor.setter def gridcolor(self, val): - self["gridcolor"] = val + self['gridcolor'] = val # griddash # -------- @@ -530,11 +385,11 @@ def griddash(self): ------- str """ - return self["griddash"] + return self['griddash'] @griddash.setter def griddash(self, val): - self["griddash"] = val + self['griddash'] = val # gridwidth # --------- @@ -550,11 +405,11 @@ def gridwidth(self): ------- int|float """ - return self["gridwidth"] + return self['gridwidth'] @gridwidth.setter def gridwidth(self, val): - self["gridwidth"] = val + self['gridwidth'] = val # hoverformat # ----------- @@ -580,11 +435,11 @@ def hoverformat(self): ------- str """ - return self["hoverformat"] + return self['hoverformat'] @hoverformat.setter def hoverformat(self, val): - self["hoverformat"] = val + self['hoverformat'] = val # labelalias # ---------- @@ -607,11 +462,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # layer # ----- @@ -633,11 +488,11 @@ def layer(self): ------- Any """ - return self["layer"] + return self['layer'] @layer.setter def layer(self, val): - self["layer"] = val + self['layer'] = val # linecolor # --------- @@ -651,52 +506,17 @@ def linecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["linecolor"] + return self['linecolor'] @linecolor.setter def linecolor(self, val): - self["linecolor"] = val + self['linecolor'] = val # linewidth # --------- @@ -712,11 +532,11 @@ def linewidth(self): ------- int|float """ - return self["linewidth"] + return self['linewidth'] @linewidth.setter def linewidth(self, val): - self["linewidth"] = val + self['linewidth'] = val # maxallowed # ---------- @@ -731,11 +551,11 @@ def maxallowed(self): ------- Any """ - return self["maxallowed"] + return self['maxallowed'] @maxallowed.setter def maxallowed(self, val): - self["maxallowed"] = val + self['maxallowed'] = val # minallowed # ---------- @@ -750,11 +570,11 @@ def minallowed(self): ------- Any """ - return self["minallowed"] + return self['minallowed'] @minallowed.setter def minallowed(self, val): - self["minallowed"] = val + self['minallowed'] = val # minexponent # ----------- @@ -771,11 +591,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -795,43 +615,43 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # range # ----- @property def range(self): """ - Sets the range of this axis. If the axis `type` is "log", then - you must take the log of your desired range (e.g. to set the - range from 1 to 100, set the range from 0 to 2). If the axis - `type` is "date", it should be date strings, like date data, - though Date objects and unix milliseconds will be accepted and - converted to strings. If the axis `type` is "category", it - should be numbers, using the scale where each category is - assigned a serial number from zero in the order it appears. - Leaving either or both elements `null` impacts the default - `autorange`. - - The 'range' property is an info array that may be specified as: + Sets the range of this axis. If the axis `type` is "log", then + you must take the log of your desired range (e.g. to set the + range from 1 to 100, set the range from 0 to 2). If the axis + `type` is "date", it should be date strings, like date data, + though Date objects and unix milliseconds will be accepted and + converted to strings. If the axis `type` is "category", it + should be numbers, using the scale where each category is + assigned a serial number from zero in the order it appears. + Leaving either or both elements `null` impacts the default + `autorange`. + + The 'range' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'range[0]' property accepts values of any type + (1) The 'range[1]' property accepts values of any type - * a list or tuple of 2 elements where: - (0) The 'range[0]' property accepts values of any type - (1) The 'range[1]' property accepts values of any type - - Returns - ------- - list + Returns + ------- + list """ - return self["range"] + return self['range'] @range.setter def range(self, val): - self["range"] = val + self['range'] = val # rangemode # --------- @@ -852,11 +672,11 @@ def rangemode(self): ------- Any """ - return self["rangemode"] + return self['rangemode'] @rangemode.setter def rangemode(self, val): - self["rangemode"] = val + self['rangemode'] = val # separatethousands # ----------------- @@ -872,11 +692,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -896,11 +716,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showgrid # -------- @@ -917,11 +737,11 @@ def showgrid(self): ------- bool """ - return self["showgrid"] + return self['showgrid'] @showgrid.setter def showgrid(self, val): - self["showgrid"] = val + self['showgrid'] = val # showline # -------- @@ -937,11 +757,11 @@ def showline(self): ------- bool """ - return self["showline"] + return self['showline'] @showline.setter def showline(self, val): - self["showline"] = val + self['showline'] = val # showticklabels # -------------- @@ -957,11 +777,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -981,11 +801,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -1002,11 +822,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # side # ---- @@ -1024,11 +844,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # tick0 # ----- @@ -1051,11 +871,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -1075,11 +895,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -1093,52 +913,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -1153,61 +938,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.polar.radialaxis.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -1233,11 +972,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -1250,51 +989,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.layout.polar.radialaxis.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -1311,17 +1014,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.layout.polar.radialaxis.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabelstep # ------------- @@ -1343,11 +1044,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1363,11 +1064,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1390,11 +1091,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1411,11 +1112,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1434,11 +1135,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1455,11 +1156,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1477,11 +1178,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1497,11 +1198,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1518,11 +1219,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1538,11 +1239,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1558,11 +1259,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1575,22 +1276,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this axis' title font. - text - Sets the title of this axis. - Returns ------- plotly.graph_objs.layout.polar.radialaxis.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # type # ---- @@ -1609,11 +1303,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # uirevision # ---------- @@ -1630,11 +1324,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # visible # ------- @@ -1652,11 +1346,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # Self properties description # --------------------------- @@ -1961,68 +1655,66 @@ def _prop_descriptions(self): interaction like dragging. Default is true when a cheater plot is present on the axis, otherwise false """ - - def __init__( - self, - arg=None, - angle=None, - autorange=None, - autorangeoptions=None, - autotickangles=None, - autotypenumbers=None, - calendar=None, - categoryarray=None, - categoryarraysrc=None, - categoryorder=None, - color=None, - dtick=None, - exponentformat=None, - gridcolor=None, - griddash=None, - gridwidth=None, - hoverformat=None, - labelalias=None, - layer=None, - linecolor=None, - linewidth=None, - maxallowed=None, - minallowed=None, - minexponent=None, - nticks=None, - range=None, - rangemode=None, - separatethousands=None, - showexponent=None, - showgrid=None, - showline=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - side=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - type=None, - uirevision=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + angle=None, + autorange=None, + autorangeoptions=None, + autotickangles=None, + autotypenumbers=None, + calendar=None, + categoryarray=None, + categoryarraysrc=None, + categoryorder=None, + color=None, + dtick=None, + exponentformat=None, + gridcolor=None, + griddash=None, + gridwidth=None, + hoverformat=None, + labelalias=None, + layer=None, + linecolor=None, + linewidth=None, + maxallowed=None, + minallowed=None, + minexponent=None, + nticks=None, + range=None, + rangemode=None, + separatethousands=None, + showexponent=None, + showgrid=None, + showline=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + side=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + type=None, + uirevision=None, + visible=None, + **kwargs + ): """ Construct a new RadialAxis object @@ -2334,10 +2026,10 @@ def __init__( ------- RadialAxis """ - super(RadialAxis, self).__init__("radialaxis") + super(RadialAxis, self).__init__('radialaxis') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2349,244 +2041,75 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.polar.RadialAxis constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.polar.RadialAxis`""" - ) +an instance of :class:`plotly.graph_objs.layout.polar.RadialAxis`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("angle", None) - _v = angle if angle is not None else _v - if _v is not None: - self["angle"] = _v - _v = arg.pop("autorange", None) - _v = autorange if autorange is not None else _v - if _v is not None: - self["autorange"] = _v - _v = arg.pop("autorangeoptions", None) - _v = autorangeoptions if autorangeoptions is not None else _v - if _v is not None: - self["autorangeoptions"] = _v - _v = arg.pop("autotickangles", None) - _v = autotickangles if autotickangles is not None else _v - if _v is not None: - self["autotickangles"] = _v - _v = arg.pop("autotypenumbers", None) - _v = autotypenumbers if autotypenumbers is not None else _v - if _v is not None: - self["autotypenumbers"] = _v - _v = arg.pop("calendar", None) - _v = calendar if calendar is not None else _v - if _v is not None: - self["calendar"] = _v - _v = arg.pop("categoryarray", None) - _v = categoryarray if categoryarray is not None else _v - if _v is not None: - self["categoryarray"] = _v - _v = arg.pop("categoryarraysrc", None) - _v = categoryarraysrc if categoryarraysrc is not None else _v - if _v is not None: - self["categoryarraysrc"] = _v - _v = arg.pop("categoryorder", None) - _v = categoryorder if categoryorder is not None else _v - if _v is not None: - self["categoryorder"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("gridcolor", None) - _v = gridcolor if gridcolor is not None else _v - if _v is not None: - self["gridcolor"] = _v - _v = arg.pop("griddash", None) - _v = griddash if griddash is not None else _v - if _v is not None: - self["griddash"] = _v - _v = arg.pop("gridwidth", None) - _v = gridwidth if gridwidth is not None else _v - if _v is not None: - self["gridwidth"] = _v - _v = arg.pop("hoverformat", None) - _v = hoverformat if hoverformat is not None else _v - if _v is not None: - self["hoverformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("layer", None) - _v = layer if layer is not None else _v - if _v is not None: - self["layer"] = _v - _v = arg.pop("linecolor", None) - _v = linecolor if linecolor is not None else _v - if _v is not None: - self["linecolor"] = _v - _v = arg.pop("linewidth", None) - _v = linewidth if linewidth is not None else _v - if _v is not None: - self["linewidth"] = _v - _v = arg.pop("maxallowed", None) - _v = maxallowed if maxallowed is not None else _v - if _v is not None: - self["maxallowed"] = _v - _v = arg.pop("minallowed", None) - _v = minallowed if minallowed is not None else _v - if _v is not None: - self["minallowed"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("range", None) - _v = range if range is not None else _v - if _v is not None: - self["range"] = _v - _v = arg.pop("rangemode", None) - _v = rangemode if rangemode is not None else _v - if _v is not None: - self["rangemode"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showgrid", None) - _v = showgrid if showgrid is not None else _v - if _v is not None: - self["showgrid"] = _v - _v = arg.pop("showline", None) - _v = showline if showline is not None else _v - if _v is not None: - self["showline"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('angle', arg, angle) + self._init_provided('autorange', arg, autorange) + self._init_provided('autorangeoptions', arg, autorangeoptions) + self._init_provided('autotickangles', arg, autotickangles) + self._init_provided('autotypenumbers', arg, autotypenumbers) + self._init_provided('calendar', arg, calendar) + self._init_provided('categoryarray', arg, categoryarray) + self._init_provided('categoryarraysrc', arg, categoryarraysrc) + self._init_provided('categoryorder', arg, categoryorder) + self._init_provided('color', arg, color) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('gridcolor', arg, gridcolor) + self._init_provided('griddash', arg, griddash) + self._init_provided('gridwidth', arg, gridwidth) + self._init_provided('hoverformat', arg, hoverformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('layer', arg, layer) + self._init_provided('linecolor', arg, linecolor) + self._init_provided('linewidth', arg, linewidth) + self._init_provided('maxallowed', arg, maxallowed) + self._init_provided('minallowed', arg, minallowed) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('range', arg, range) + self._init_provided('rangemode', arg, rangemode) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showgrid', arg, showgrid) + self._init_provided('showline', arg, showline) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('side', arg, side) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('type', arg, type) + self._init_provided('uirevision', arg, uirevision) + self._init_provided('visible', arg, visible) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/polar/angularaxis/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/polar/angularaxis/__init__.py index ae53e8859fc..e1969f3ff2e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/polar/angularaxis/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/polar/angularaxis/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop"] + __name__, + [], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/polar/angularaxis/_tickfont.py b/packages/python/plotly/plotly/graph_objs/layout/polar/angularaxis/_tickfont.py index 8254cd3aed6..8f5432cb8a7 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/polar/angularaxis/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/layout/polar/angularaxis/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.polar.angularaxis" - _path_str = "layout.polar.angularaxis.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.polar.angularaxis' + _path_str = 'layout.polar.angularaxis.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.polar.angularaxis.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.polar.angularaxis.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.layout.polar.angularaxis.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/polar/angularaxis/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/layout/polar/angularaxis/_tickformatstop.py index 5755c26e99b..cf8cbd949f9 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/polar/angularaxis/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/layout/polar/angularaxis/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.polar.angularaxis" - _path_str = "layout.polar.angularaxis.tickformatstop" + _parent_path_str = 'layout.polar.angularaxis' + _path_str = 'layout.polar.angularaxis.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseLayoutHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.polar.angularaxis.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.polar.angularaxis.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.layout.polar.angularaxis.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/__init__.py index 7004d6695b3..9608419f0db 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._autorangeoptions import Autorangeoptions from ._tickfont import Tickfont @@ -9,14 +8,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - [ - "._autorangeoptions.Autorangeoptions", - "._tickfont.Tickfont", - "._tickformatstop.Tickformatstop", - "._title.Title", - ], + ['.title'], + ['._autorangeoptions.Autorangeoptions', '._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/_autorangeoptions.py b/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/_autorangeoptions.py index 15276a0d8b3..bed3294abcf 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/_autorangeoptions.py +++ b/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/_autorangeoptions.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,16 +8,9 @@ class Autorangeoptions(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.polar.radialaxis" - _path_str = "layout.polar.radialaxis.autorangeoptions" - _valid_props = { - "clipmax", - "clipmin", - "include", - "includesrc", - "maxallowed", - "minallowed", - } + _parent_path_str = 'layout.polar.radialaxis' + _path_str = 'layout.polar.radialaxis.autorangeoptions' + _valid_props = {"clipmax", "clipmin", "include", "includesrc", "maxallowed", "minallowed"} # clipmax # ------- @@ -31,11 +26,11 @@ def clipmax(self): ------- Any """ - return self["clipmax"] + return self['clipmax'] @clipmax.setter def clipmax(self, val): - self["clipmax"] = val + self['clipmax'] = val # clipmin # ------- @@ -51,11 +46,11 @@ def clipmin(self): ------- Any """ - return self["clipmin"] + return self['clipmin'] @clipmin.setter def clipmin(self, val): - self["clipmin"] = val + self['clipmin'] = val # include # ------- @@ -70,11 +65,11 @@ def include(self): ------- Any|numpy.ndarray """ - return self["include"] + return self['include'] @include.setter def include(self, val): - self["include"] = val + self['include'] = val # includesrc # ---------- @@ -90,11 +85,11 @@ def includesrc(self): ------- str """ - return self["includesrc"] + return self['includesrc'] @includesrc.setter def includesrc(self, val): - self["includesrc"] = val + self['includesrc'] = val # maxallowed # ---------- @@ -109,11 +104,11 @@ def maxallowed(self): ------- Any """ - return self["maxallowed"] + return self['maxallowed'] @maxallowed.setter def maxallowed(self, val): - self["maxallowed"] = val + self['maxallowed'] = val # minallowed # ---------- @@ -128,11 +123,11 @@ def minallowed(self): ------- Any """ - return self["minallowed"] + return self['minallowed'] @minallowed.setter def minallowed(self, val): - self["minallowed"] = val + self['minallowed'] = val # Self properties description # --------------------------- @@ -157,18 +152,16 @@ def _prop_descriptions(self): minallowed Use this value exactly as autorange minimum. """ - - def __init__( - self, - arg=None, - clipmax=None, - clipmin=None, - include=None, - includesrc=None, - maxallowed=None, - minallowed=None, - **kwargs, - ): + def __init__(self, + arg=None, + clipmax=None, + clipmin=None, + include=None, + includesrc=None, + maxallowed=None, + minallowed=None, + **kwargs + ): """ Construct a new Autorangeoptions object @@ -200,10 +193,10 @@ def __init__( ------- Autorangeoptions """ - super(Autorangeoptions, self).__init__("autorangeoptions") + super(Autorangeoptions, self).__init__('autorangeoptions') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -215,44 +208,25 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.polar.radialaxis.Autorangeoptions constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.polar.radialaxis.Autorangeoptions`""" - ) +an instance of :class:`plotly.graph_objs.layout.polar.radialaxis.Autorangeoptions`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("clipmax", None) - _v = clipmax if clipmax is not None else _v - if _v is not None: - self["clipmax"] = _v - _v = arg.pop("clipmin", None) - _v = clipmin if clipmin is not None else _v - if _v is not None: - self["clipmin"] = _v - _v = arg.pop("include", None) - _v = include if include is not None else _v - if _v is not None: - self["include"] = _v - _v = arg.pop("includesrc", None) - _v = includesrc if includesrc is not None else _v - if _v is not None: - self["includesrc"] = _v - _v = arg.pop("maxallowed", None) - _v = maxallowed if maxallowed is not None else _v - if _v is not None: - self["maxallowed"] = _v - _v = arg.pop("minallowed", None) - _v = minallowed if minallowed is not None else _v - if _v is not None: - self["minallowed"] = _v + self._init_provided('clipmax', arg, clipmax) + self._init_provided('clipmin', arg, clipmin) + self._init_provided('include', arg, include) + self._init_provided('includesrc', arg, includesrc) + self._init_provided('maxallowed', arg, maxallowed) + self._init_provided('minallowed', arg, minallowed) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/_tickfont.py b/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/_tickfont.py index c5b5f6fa4eb..b4723c19d69 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.polar.radialaxis" - _path_str = "layout.polar.radialaxis.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.polar.radialaxis' + _path_str = 'layout.polar.radialaxis.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.polar.radialaxis.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.polar.radialaxis.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.layout.polar.radialaxis.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/_tickformatstop.py index 720199cfb2a..40a47d65016 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.polar.radialaxis" - _path_str = "layout.polar.radialaxis.tickformatstop" + _parent_path_str = 'layout.polar.radialaxis' + _path_str = 'layout.polar.radialaxis.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseLayoutHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.polar.radialaxis.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.polar.radialaxis.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.layout.polar.radialaxis.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/_title.py b/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/_title.py index 07a9decdbab..2aaa4273452 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/_title.py +++ b/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.polar.radialaxis" - _path_str = "layout.polar.radialaxis.title" + _parent_path_str = 'layout.polar.radialaxis' + _path_str = 'layout.polar.radialaxis.title' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.polar.radialaxis.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of this axis. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.polar.radialaxis.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.polar.radialaxis.Title`""" - ) +an instance of :class:`plotly.graph_objs.layout.polar.radialaxis.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/title/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/title/_font.py b/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/title/_font.py index c3a6f3d8a32..41ca28b7ddc 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.polar.radialaxis.title" - _path_str = "layout.polar.radialaxis.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.polar.radialaxis.title' + _path_str = 'layout.polar.radialaxis.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.polar.radialaxis.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.polar.radialaxis.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.layout.polar.radialaxis.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/scene/__init__.py index 3e5e2f1ee43..672c127a3c2 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._annotation import Annotation from ._aspectratio import Aspectratio @@ -16,17 +15,10 @@ from . import zaxis else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".annotation", ".camera", ".xaxis", ".yaxis", ".zaxis"], - [ - "._annotation.Annotation", - "._aspectratio.Aspectratio", - "._camera.Camera", - "._domain.Domain", - "._xaxis.XAxis", - "._yaxis.YAxis", - "._zaxis.ZAxis", - ], + ['.annotation', '.camera', '.xaxis', '.yaxis', '.zaxis'], + ['._annotation.Annotation', '._aspectratio.Aspectratio', '._camera.Camera', '._domain.Domain', '._xaxis.XAxis', '._yaxis.YAxis', '._zaxis.ZAxis'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/_annotation.py b/packages/python/plotly/plotly/graph_objs/layout/scene/_annotation.py index be9baaf5a11..d3a26a197de 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/_annotation.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/_annotation.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,47 +8,9 @@ class Annotation(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.scene" - _path_str = "layout.scene.annotation" - _valid_props = { - "align", - "arrowcolor", - "arrowhead", - "arrowside", - "arrowsize", - "arrowwidth", - "ax", - "ay", - "bgcolor", - "bordercolor", - "borderpad", - "borderwidth", - "captureevents", - "font", - "height", - "hoverlabel", - "hovertext", - "name", - "opacity", - "showarrow", - "standoff", - "startarrowhead", - "startarrowsize", - "startstandoff", - "templateitemname", - "text", - "textangle", - "valign", - "visible", - "width", - "x", - "xanchor", - "xshift", - "y", - "yanchor", - "yshift", - "z", - } + _parent_path_str = 'layout.scene' + _path_str = 'layout.scene.annotation' + _valid_props = {"align", "arrowcolor", "arrowhead", "arrowside", "arrowsize", "arrowwidth", "ax", "ay", "bgcolor", "bordercolor", "borderpad", "borderwidth", "captureevents", "font", "height", "hoverlabel", "hovertext", "name", "opacity", "showarrow", "standoff", "startarrowhead", "startarrowsize", "startstandoff", "templateitemname", "text", "textangle", "valign", "visible", "width", "x", "xanchor", "xshift", "y", "yanchor", "yshift", "z"} # align # ----- @@ -66,11 +30,11 @@ def align(self): ------- Any """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # arrowcolor # ---------- @@ -84,52 +48,17 @@ def arrowcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["arrowcolor"] + return self['arrowcolor'] @arrowcolor.setter def arrowcolor(self, val): - self["arrowcolor"] = val + self['arrowcolor'] = val # arrowhead # --------- @@ -146,11 +75,11 @@ def arrowhead(self): ------- int """ - return self["arrowhead"] + return self['arrowhead'] @arrowhead.setter def arrowhead(self, val): - self["arrowhead"] = val + self['arrowhead'] = val # arrowside # --------- @@ -169,11 +98,11 @@ def arrowside(self): ------- Any """ - return self["arrowside"] + return self['arrowside'] @arrowside.setter def arrowside(self, val): - self["arrowside"] = val + self['arrowside'] = val # arrowsize # --------- @@ -191,11 +120,11 @@ def arrowsize(self): ------- int|float """ - return self["arrowsize"] + return self['arrowsize'] @arrowsize.setter def arrowsize(self, val): - self["arrowsize"] = val + self['arrowsize'] = val # arrowwidth # ---------- @@ -211,11 +140,11 @@ def arrowwidth(self): ------- int|float """ - return self["arrowwidth"] + return self['arrowwidth'] @arrowwidth.setter def arrowwidth(self, val): - self["arrowwidth"] = val + self['arrowwidth'] = val # ax # -- @@ -232,11 +161,11 @@ def ax(self): ------- int|float """ - return self["ax"] + return self['ax'] @ax.setter def ax(self, val): - self["ax"] = val + self['ax'] = val # ay # -- @@ -253,11 +182,11 @@ def ay(self): ------- int|float """ - return self["ay"] + return self['ay'] @ay.setter def ay(self, val): - self["ay"] = val + self['ay'] = val # bgcolor # ------- @@ -271,52 +200,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -330,52 +224,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderpad # --------- @@ -392,11 +251,11 @@ def borderpad(self): ------- int|float """ - return self["borderpad"] + return self['borderpad'] @borderpad.setter def borderpad(self, val): - self["borderpad"] = val + self['borderpad'] = val # borderwidth # ----------- @@ -413,11 +272,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # captureevents # ------------- @@ -438,11 +297,11 @@ def captureevents(self): ------- bool """ - return self["captureevents"] + return self['captureevents'] @captureevents.setter def captureevents(self, val): - self["captureevents"] = val + self['captureevents'] = val # font # ---- @@ -457,61 +316,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.scene.annotation.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # height # ------ @@ -528,11 +341,11 @@ def height(self): ------- int|float """ - return self["height"] + return self['height'] @height.setter def height(self, val): - self["height"] = val + self['height'] = val # hoverlabel # ---------- @@ -545,30 +358,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - bgcolor - Sets the background color of the hover label. - By default uses the annotation's `bgcolor` made - opaque, or white if it was transparent. - bordercolor - Sets the border color of the hover label. By - default uses either dark grey or white, for - maximum contrast with `hoverlabel.bgcolor`. - font - Sets the hover label text font. By default uses - the global hover font and size, with color from - `hoverlabel.bordercolor`. - Returns ------- plotly.graph_objs.layout.scene.annotation.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertext # --------- @@ -586,11 +384,11 @@ def hovertext(self): ------- str """ - return self["hovertext"] + return self['hovertext'] @hovertext.setter def hovertext(self, val): - self["hovertext"] = val + self['hovertext'] = val # name # ---- @@ -613,11 +411,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # opacity # ------- @@ -633,11 +431,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # showarrow # --------- @@ -655,11 +453,11 @@ def showarrow(self): ------- bool """ - return self["showarrow"] + return self['showarrow'] @showarrow.setter def showarrow(self, val): - self["showarrow"] = val + self['showarrow'] = val # standoff # -------- @@ -679,11 +477,11 @@ def standoff(self): ------- int|float """ - return self["standoff"] + return self['standoff'] @standoff.setter def standoff(self, val): - self["standoff"] = val + self['standoff'] = val # startarrowhead # -------------- @@ -700,11 +498,11 @@ def startarrowhead(self): ------- int """ - return self["startarrowhead"] + return self['startarrowhead'] @startarrowhead.setter def startarrowhead(self, val): - self["startarrowhead"] = val + self['startarrowhead'] = val # startarrowsize # -------------- @@ -722,11 +520,11 @@ def startarrowsize(self): ------- int|float """ - return self["startarrowsize"] + return self['startarrowsize'] @startarrowsize.setter def startarrowsize(self, val): - self["startarrowsize"] = val + self['startarrowsize'] = val # startstandoff # ------------- @@ -746,11 +544,11 @@ def startstandoff(self): ------- int|float """ - return self["startstandoff"] + return self['startstandoff'] @startstandoff.setter def startstandoff(self, val): - self["startstandoff"] = val + self['startstandoff'] = val # templateitemname # ---------------- @@ -774,11 +572,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # text # ---- @@ -798,11 +596,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textangle # --------- @@ -821,11 +619,11 @@ def textangle(self): ------- int|float """ - return self["textangle"] + return self['textangle'] @textangle.setter def textangle(self, val): - self["textangle"] = val + self['textangle'] = val # valign # ------ @@ -844,11 +642,11 @@ def valign(self): ------- Any """ - return self["valign"] + return self['valign'] @valign.setter def valign(self, val): - self["valign"] = val + self['valign'] = val # visible # ------- @@ -864,11 +662,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # width # ----- @@ -886,11 +684,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # x # - @@ -905,11 +703,11 @@ def x(self): ------- Any """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -934,11 +732,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xshift # ------ @@ -955,11 +753,11 @@ def xshift(self): ------- int|float """ - return self["xshift"] + return self['xshift'] @xshift.setter def xshift(self, val): - self["xshift"] = val + self['xshift'] = val # y # - @@ -974,11 +772,11 @@ def y(self): ------- Any """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1003,11 +801,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # yshift # ------ @@ -1024,11 +822,11 @@ def yshift(self): ------- int|float """ - return self["yshift"] + return self['yshift'] @yshift.setter def yshift(self, val): - self["yshift"] = val + self['yshift'] = val # z # - @@ -1043,11 +841,11 @@ def z(self): ------- Any """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # Self properties description # --------------------------- @@ -1211,49 +1009,47 @@ def _prop_descriptions(self): z Sets the annotation's z position. """ - - def __init__( - self, - arg=None, - align=None, - arrowcolor=None, - arrowhead=None, - arrowside=None, - arrowsize=None, - arrowwidth=None, - ax=None, - ay=None, - bgcolor=None, - bordercolor=None, - borderpad=None, - borderwidth=None, - captureevents=None, - font=None, - height=None, - hoverlabel=None, - hovertext=None, - name=None, - opacity=None, - showarrow=None, - standoff=None, - startarrowhead=None, - startarrowsize=None, - startstandoff=None, - templateitemname=None, - text=None, - textangle=None, - valign=None, - visible=None, - width=None, - x=None, - xanchor=None, - xshift=None, - y=None, - yanchor=None, - yshift=None, - z=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + arrowcolor=None, + arrowhead=None, + arrowside=None, + arrowsize=None, + arrowwidth=None, + ax=None, + ay=None, + bgcolor=None, + bordercolor=None, + borderpad=None, + borderwidth=None, + captureevents=None, + font=None, + height=None, + hoverlabel=None, + hovertext=None, + name=None, + opacity=None, + showarrow=None, + standoff=None, + startarrowhead=None, + startarrowsize=None, + startstandoff=None, + templateitemname=None, + text=None, + textangle=None, + valign=None, + visible=None, + width=None, + x=None, + xanchor=None, + xshift=None, + y=None, + yanchor=None, + yshift=None, + z=None, + **kwargs + ): """ Construct a new Annotation object @@ -1424,10 +1220,10 @@ def __init__( ------- Annotation """ - super(Annotation, self).__init__("annotations") + super(Annotation, self).__init__('annotations') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1439,168 +1235,56 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.scene.Annotation constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.scene.Annotation`""" - ) +an instance of :class:`plotly.graph_objs.layout.scene.Annotation`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("arrowcolor", None) - _v = arrowcolor if arrowcolor is not None else _v - if _v is not None: - self["arrowcolor"] = _v - _v = arg.pop("arrowhead", None) - _v = arrowhead if arrowhead is not None else _v - if _v is not None: - self["arrowhead"] = _v - _v = arg.pop("arrowside", None) - _v = arrowside if arrowside is not None else _v - if _v is not None: - self["arrowside"] = _v - _v = arg.pop("arrowsize", None) - _v = arrowsize if arrowsize is not None else _v - if _v is not None: - self["arrowsize"] = _v - _v = arg.pop("arrowwidth", None) - _v = arrowwidth if arrowwidth is not None else _v - if _v is not None: - self["arrowwidth"] = _v - _v = arg.pop("ax", None) - _v = ax if ax is not None else _v - if _v is not None: - self["ax"] = _v - _v = arg.pop("ay", None) - _v = ay if ay is not None else _v - if _v is not None: - self["ay"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderpad", None) - _v = borderpad if borderpad is not None else _v - if _v is not None: - self["borderpad"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("captureevents", None) - _v = captureevents if captureevents is not None else _v - if _v is not None: - self["captureevents"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("height", None) - _v = height if height is not None else _v - if _v is not None: - self["height"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertext", None) - _v = hovertext if hovertext is not None else _v - if _v is not None: - self["hovertext"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("showarrow", None) - _v = showarrow if showarrow is not None else _v - if _v is not None: - self["showarrow"] = _v - _v = arg.pop("standoff", None) - _v = standoff if standoff is not None else _v - if _v is not None: - self["standoff"] = _v - _v = arg.pop("startarrowhead", None) - _v = startarrowhead if startarrowhead is not None else _v - if _v is not None: - self["startarrowhead"] = _v - _v = arg.pop("startarrowsize", None) - _v = startarrowsize if startarrowsize is not None else _v - if _v is not None: - self["startarrowsize"] = _v - _v = arg.pop("startstandoff", None) - _v = startstandoff if startstandoff is not None else _v - if _v is not None: - self["startstandoff"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textangle", None) - _v = textangle if textangle is not None else _v - if _v is not None: - self["textangle"] = _v - _v = arg.pop("valign", None) - _v = valign if valign is not None else _v - if _v is not None: - self["valign"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xshift", None) - _v = xshift if xshift is not None else _v - if _v is not None: - self["xshift"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("yshift", None) - _v = yshift if yshift is not None else _v - if _v is not None: - self["yshift"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v + self._init_provided('align', arg, align) + self._init_provided('arrowcolor', arg, arrowcolor) + self._init_provided('arrowhead', arg, arrowhead) + self._init_provided('arrowside', arg, arrowside) + self._init_provided('arrowsize', arg, arrowsize) + self._init_provided('arrowwidth', arg, arrowwidth) + self._init_provided('ax', arg, ax) + self._init_provided('ay', arg, ay) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderpad', arg, borderpad) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('captureevents', arg, captureevents) + self._init_provided('font', arg, font) + self._init_provided('height', arg, height) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertext', arg, hovertext) + self._init_provided('name', arg, name) + self._init_provided('opacity', arg, opacity) + self._init_provided('showarrow', arg, showarrow) + self._init_provided('standoff', arg, standoff) + self._init_provided('startarrowhead', arg, startarrowhead) + self._init_provided('startarrowsize', arg, startarrowsize) + self._init_provided('startstandoff', arg, startstandoff) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('text', arg, text) + self._init_provided('textangle', arg, textangle) + self._init_provided('valign', arg, valign) + self._init_provided('visible', arg, visible) + self._init_provided('width', arg, width) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xshift', arg, xshift) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('yshift', arg, yshift) + self._init_provided('z', arg, z) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/_aspectratio.py b/packages/python/plotly/plotly/graph_objs/layout/scene/_aspectratio.py index 24255052568..91d367361a4 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/_aspectratio.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/_aspectratio.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Aspectratio(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.scene" - _path_str = "layout.scene.aspectratio" + _parent_path_str = 'layout.scene' + _path_str = 'layout.scene.aspectratio' _valid_props = {"x", "y", "z"} # x @@ -22,11 +24,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @@ -40,11 +42,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # z # - @@ -58,11 +60,11 @@ def z(self): ------- int|float """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # Self properties description # --------------------------- @@ -76,8 +78,13 @@ def _prop_descriptions(self): z """ - - def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): + def __init__(self, + arg=None, + x=None, + y=None, + z=None, + **kwargs + ): """ Construct a new Aspectratio object @@ -100,10 +107,10 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Aspectratio """ - super(Aspectratio, self).__init__("aspectratio") + super(Aspectratio, self).__init__('aspectratio') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -115,32 +122,22 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.scene.Aspectratio constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.scene.Aspectratio`""" - ) +an instance of :class:`plotly.graph_objs.layout.scene.Aspectratio`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) + self._init_provided('z', arg, z) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/_camera.py b/packages/python/plotly/plotly/graph_objs/layout/scene/_camera.py index e824e0ba54c..8657cefc2c5 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/_camera.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/_camera.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Camera(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.scene" - _path_str = "layout.scene.camera" + _parent_path_str = 'layout.scene' + _path_str = 'layout.scene.camera' _valid_props = {"center", "eye", "projection", "up"} # center @@ -25,23 +27,15 @@ def center(self): - A dict of string/value properties that will be passed to the Center constructor - Supported dict properties: - - x - - y - - z - Returns ------- plotly.graph_objs.layout.scene.camera.Center """ - return self["center"] + return self['center'] @center.setter def center(self, val): - self["center"] = val + self['center'] = val # eye # --- @@ -58,23 +52,15 @@ def eye(self): - A dict of string/value properties that will be passed to the Eye constructor - Supported dict properties: - - x - - y - - z - Returns ------- plotly.graph_objs.layout.scene.camera.Eye """ - return self["eye"] + return self['eye'] @eye.setter def eye(self, val): - self["eye"] = val + self['eye'] = val # projection # ---------- @@ -87,22 +73,15 @@ def projection(self): - A dict of string/value properties that will be passed to the Projection constructor - Supported dict properties: - - type - Sets the projection type. The projection type - could be either "perspective" or - "orthographic". The default is "perspective". - Returns ------- plotly.graph_objs.layout.scene.camera.Projection """ - return self["projection"] + return self['projection'] @projection.setter def projection(self, val): - self["projection"] = val + self['projection'] = val # up # -- @@ -120,23 +99,15 @@ def up(self): - A dict of string/value properties that will be passed to the Up constructor - Supported dict properties: - - x - - y - - z - Returns ------- plotly.graph_objs.layout.scene.camera.Up """ - return self["up"] + return self['up'] @up.setter def up(self, val): - self["up"] = val + self['up'] = val # Self properties description # --------------------------- @@ -161,10 +132,14 @@ def _prop_descriptions(self): with respect to the page. The default is *{x: 0, y: 0, z: 1}* which means that the z axis points up. """ - - def __init__( - self, arg=None, center=None, eye=None, projection=None, up=None, **kwargs - ): + def __init__(self, + arg=None, + center=None, + eye=None, + projection=None, + up=None, + **kwargs + ): """ Construct a new Camera object @@ -196,10 +171,10 @@ def __init__( ------- Camera """ - super(Camera, self).__init__("camera") + super(Camera, self).__init__('camera') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -211,36 +186,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.scene.Camera constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.scene.Camera`""" - ) +an instance of :class:`plotly.graph_objs.layout.scene.Camera`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("center", None) - _v = center if center is not None else _v - if _v is not None: - self["center"] = _v - _v = arg.pop("eye", None) - _v = eye if eye is not None else _v - if _v is not None: - self["eye"] = _v - _v = arg.pop("projection", None) - _v = projection if projection is not None else _v - if _v is not None: - self["projection"] = _v - _v = arg.pop("up", None) - _v = up if up is not None else _v - if _v is not None: - self["up"] = _v + self._init_provided('center', arg, center) + self._init_provided('eye', arg, eye) + self._init_provided('projection', arg, projection) + self._init_provided('up', arg, up) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/_domain.py b/packages/python/plotly/plotly/graph_objs/layout/scene/_domain.py index 15bb284ced9..4cc21e691fb 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/_domain.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/_domain.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Domain(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.scene" - _path_str = "layout.scene.domain" + _parent_path_str = 'layout.scene' + _path_str = 'layout.scene.domain' _valid_props = {"column", "row", "x", "y"} # column @@ -26,11 +28,11 @@ def column(self): ------- int """ - return self["column"] + return self['column'] @column.setter def column(self, val): - self["column"] = val + self['column'] = val # row # --- @@ -48,63 +50,63 @@ def row(self): ------- int """ - return self["row"] + return self['row'] @row.setter def row(self, val): - self["row"] = val + self['row'] = val # x # - @property def x(self): """ - Sets the horizontal domain of this scene subplot (in plot - fraction). + Sets the horizontal domain of this scene subplot (in plot + fraction). - The 'x' property is an info array that may be specified as: + The 'x' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'x[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'x[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - * a list or tuple of 2 elements where: - (0) The 'x[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'x[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - - Returns - ------- - list + Returns + ------- + list """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @property def y(self): """ - Sets the vertical domain of this scene subplot (in plot - fraction). - - The 'y' property is an info array that may be specified as: + Sets the vertical domain of this scene subplot (in plot + fraction). - * a list or tuple of 2 elements where: - (0) The 'y[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'y[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] + The 'y' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'y[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'y[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - Returns - ------- - list + Returns + ------- + list """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # Self properties description # --------------------------- @@ -124,8 +126,14 @@ def _prop_descriptions(self): Sets the vertical domain of this scene subplot (in plot fraction). """ - - def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): + def __init__(self, + arg=None, + column=None, + row=None, + x=None, + y=None, + **kwargs + ): """ Construct a new Domain object @@ -152,10 +160,10 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") + super(Domain, self).__init__('domain') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -167,36 +175,23 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.scene.Domain constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.scene.Domain`""" - ) +an instance of :class:`plotly.graph_objs.layout.scene.Domain`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("column", None) - _v = column if column is not None else _v - if _v is not None: - self["column"] = _v - _v = arg.pop("row", None) - _v = row if row is not None else _v - if _v is not None: - self["row"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v + self._init_provided('column', arg, column) + self._init_provided('row', arg, row) + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/_xaxis.py b/packages/python/plotly/plotly/graph_objs/layout/scene/_xaxis.py index 8946252620a..0750607aed9 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/_xaxis.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/_xaxis.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,70 +8,9 @@ class XAxis(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.scene" - _path_str = "layout.scene.xaxis" - _valid_props = { - "autorange", - "autorangeoptions", - "autotypenumbers", - "backgroundcolor", - "calendar", - "categoryarray", - "categoryarraysrc", - "categoryorder", - "color", - "dtick", - "exponentformat", - "gridcolor", - "gridwidth", - "hoverformat", - "labelalias", - "linecolor", - "linewidth", - "maxallowed", - "minallowed", - "minexponent", - "mirror", - "nticks", - "range", - "rangemode", - "separatethousands", - "showaxeslabels", - "showbackground", - "showexponent", - "showgrid", - "showline", - "showspikes", - "showticklabels", - "showtickprefix", - "showticksuffix", - "spikecolor", - "spikesides", - "spikethickness", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "type", - "visible", - "zeroline", - "zerolinecolor", - "zerolinewidth", - } + _parent_path_str = 'layout.scene' + _path_str = 'layout.scene.xaxis' + _valid_props = {"autorange", "autorangeoptions", "autotypenumbers", "backgroundcolor", "calendar", "categoryarray", "categoryarraysrc", "categoryorder", "color", "dtick", "exponentformat", "gridcolor", "gridwidth", "hoverformat", "labelalias", "linecolor", "linewidth", "maxallowed", "minallowed", "minexponent", "mirror", "nticks", "range", "rangemode", "separatethousands", "showaxeslabels", "showbackground", "showexponent", "showgrid", "showline", "showspikes", "showticklabels", "showtickprefix", "showticksuffix", "spikecolor", "spikesides", "spikethickness", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "type", "visible", "zeroline", "zerolinecolor", "zerolinewidth"} # autorange # --------- @@ -96,11 +37,11 @@ def autorange(self): ------- Any """ - return self["autorange"] + return self['autorange'] @autorange.setter def autorange(self, val): - self["autorange"] = val + self['autorange'] = val # autorangeoptions # ---------------- @@ -113,35 +54,15 @@ def autorangeoptions(self): - A dict of string/value properties that will be passed to the Autorangeoptions constructor - Supported dict properties: - - clipmax - Clip autorange maximum if it goes beyond this - value. Has no effect when - `autorangeoptions.maxallowed` is provided. - clipmin - Clip autorange minimum if it goes beyond this - value. Has no effect when - `autorangeoptions.minallowed` is provided. - include - Ensure this value is included in autorange. - includesrc - Sets the source reference on Chart Studio Cloud - for `include`. - maxallowed - Use this value exactly as autorange maximum. - minallowed - Use this value exactly as autorange minimum. - Returns ------- plotly.graph_objs.layout.scene.xaxis.Autorangeoptions """ - return self["autorangeoptions"] + return self['autorangeoptions'] @autorangeoptions.setter def autorangeoptions(self, val): - self["autorangeoptions"] = val + self['autorangeoptions'] = val # autotypenumbers # --------------- @@ -161,11 +82,11 @@ def autotypenumbers(self): ------- Any """ - return self["autotypenumbers"] + return self['autotypenumbers'] @autotypenumbers.setter def autotypenumbers(self, val): - self["autotypenumbers"] = val + self['autotypenumbers'] = val # backgroundcolor # --------------- @@ -179,52 +100,17 @@ def backgroundcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["backgroundcolor"] + return self['backgroundcolor'] @backgroundcolor.setter def backgroundcolor(self, val): - self["backgroundcolor"] = val + self['backgroundcolor'] = val # calendar # -------- @@ -247,11 +133,11 @@ def calendar(self): ------- Any """ - return self["calendar"] + return self['calendar'] @calendar.setter def calendar(self, val): - self["calendar"] = val + self['calendar'] = val # categoryarray # ------------- @@ -269,11 +155,11 @@ def categoryarray(self): ------- numpy.ndarray """ - return self["categoryarray"] + return self['categoryarray'] @categoryarray.setter def categoryarray(self, val): - self["categoryarray"] = val + self['categoryarray'] = val # categoryarraysrc # ---------------- @@ -290,11 +176,11 @@ def categoryarraysrc(self): ------- str """ - return self["categoryarraysrc"] + return self['categoryarraysrc'] @categoryarraysrc.setter def categoryarraysrc(self, val): - self["categoryarraysrc"] = val + self['categoryarraysrc'] = val # categoryorder # ------------- @@ -331,11 +217,11 @@ def categoryorder(self): ------- Any """ - return self["categoryorder"] + return self['categoryorder'] @categoryorder.setter def categoryorder(self, val): - self["categoryorder"] = val + self['categoryorder'] = val # color # ----- @@ -352,52 +238,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # dtick # ----- @@ -431,11 +282,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -456,11 +307,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # gridcolor # --------- @@ -474,52 +325,17 @@ def gridcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["gridcolor"] + return self['gridcolor'] @gridcolor.setter def gridcolor(self, val): - self["gridcolor"] = val + self['gridcolor'] = val # gridwidth # --------- @@ -535,11 +351,11 @@ def gridwidth(self): ------- int|float """ - return self["gridwidth"] + return self['gridwidth'] @gridwidth.setter def gridwidth(self, val): - self["gridwidth"] = val + self['gridwidth'] = val # hoverformat # ----------- @@ -565,11 +381,11 @@ def hoverformat(self): ------- str """ - return self["hoverformat"] + return self['hoverformat'] @hoverformat.setter def hoverformat(self, val): - self["hoverformat"] = val + self['hoverformat'] = val # labelalias # ---------- @@ -592,11 +408,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # linecolor # --------- @@ -610,52 +426,17 @@ def linecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["linecolor"] + return self['linecolor'] @linecolor.setter def linecolor(self, val): - self["linecolor"] = val + self['linecolor'] = val # linewidth # --------- @@ -671,11 +452,11 @@ def linewidth(self): ------- int|float """ - return self["linewidth"] + return self['linewidth'] @linewidth.setter def linewidth(self, val): - self["linewidth"] = val + self['linewidth'] = val # maxallowed # ---------- @@ -690,11 +471,11 @@ def maxallowed(self): ------- Any """ - return self["maxallowed"] + return self['maxallowed'] @maxallowed.setter def maxallowed(self, val): - self["maxallowed"] = val + self['maxallowed'] = val # minallowed # ---------- @@ -709,11 +490,11 @@ def minallowed(self): ------- Any """ - return self["minallowed"] + return self['minallowed'] @minallowed.setter def minallowed(self, val): - self["minallowed"] = val + self['minallowed'] = val # minexponent # ----------- @@ -730,11 +511,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # mirror # ------ @@ -756,11 +537,11 @@ def mirror(self): ------- Any """ - return self["mirror"] + return self['mirror'] @mirror.setter def mirror(self, val): - self["mirror"] = val + self['mirror'] = val # nticks # ------ @@ -780,43 +561,43 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # range # ----- @property def range(self): """ - Sets the range of this axis. If the axis `type` is "log", then - you must take the log of your desired range (e.g. to set the - range from 1 to 100, set the range from 0 to 2). If the axis - `type` is "date", it should be date strings, like date data, - though Date objects and unix milliseconds will be accepted and - converted to strings. If the axis `type` is "category", it - should be numbers, using the scale where each category is - assigned a serial number from zero in the order it appears. - Leaving either or both elements `null` impacts the default - `autorange`. - - The 'range' property is an info array that may be specified as: + Sets the range of this axis. If the axis `type` is "log", then + you must take the log of your desired range (e.g. to set the + range from 1 to 100, set the range from 0 to 2). If the axis + `type` is "date", it should be date strings, like date data, + though Date objects and unix milliseconds will be accepted and + converted to strings. If the axis `type` is "category", it + should be numbers, using the scale where each category is + assigned a serial number from zero in the order it appears. + Leaving either or both elements `null` impacts the default + `autorange`. + + The 'range' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'range[0]' property accepts values of any type + (1) The 'range[1]' property accepts values of any type - * a list or tuple of 2 elements where: - (0) The 'range[0]' property accepts values of any type - (1) The 'range[1]' property accepts values of any type - - Returns - ------- - list + Returns + ------- + list """ - return self["range"] + return self['range'] @range.setter def range(self, val): - self["range"] = val + self['range'] = val # rangemode # --------- @@ -837,11 +618,11 @@ def rangemode(self): ------- Any """ - return self["rangemode"] + return self['rangemode'] @rangemode.setter def rangemode(self, val): - self["rangemode"] = val + self['rangemode'] = val # separatethousands # ----------------- @@ -857,11 +638,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showaxeslabels # -------------- @@ -877,11 +658,11 @@ def showaxeslabels(self): ------- bool """ - return self["showaxeslabels"] + return self['showaxeslabels'] @showaxeslabels.setter def showaxeslabels(self, val): - self["showaxeslabels"] = val + self['showaxeslabels'] = val # showbackground # -------------- @@ -897,11 +678,11 @@ def showbackground(self): ------- bool """ - return self["showbackground"] + return self['showbackground'] @showbackground.setter def showbackground(self, val): - self["showbackground"] = val + self['showbackground'] = val # showexponent # ------------ @@ -921,11 +702,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showgrid # -------- @@ -942,11 +723,11 @@ def showgrid(self): ------- bool """ - return self["showgrid"] + return self['showgrid'] @showgrid.setter def showgrid(self, val): - self["showgrid"] = val + self['showgrid'] = val # showline # -------- @@ -962,11 +743,11 @@ def showline(self): ------- bool """ - return self["showline"] + return self['showline'] @showline.setter def showline(self, val): - self["showline"] = val + self['showline'] = val # showspikes # ---------- @@ -983,11 +764,11 @@ def showspikes(self): ------- bool """ - return self["showspikes"] + return self['showspikes'] @showspikes.setter def showspikes(self, val): - self["showspikes"] = val + self['showspikes'] = val # showticklabels # -------------- @@ -1003,11 +784,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -1027,11 +808,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -1048,11 +829,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # spikecolor # ---------- @@ -1066,52 +847,17 @@ def spikecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["spikecolor"] + return self['spikecolor'] @spikecolor.setter def spikecolor(self, val): - self["spikecolor"] = val + self['spikecolor'] = val # spikesides # ---------- @@ -1128,11 +874,11 @@ def spikesides(self): ------- bool """ - return self["spikesides"] + return self['spikesides'] @spikesides.setter def spikesides(self, val): - self["spikesides"] = val + self['spikesides'] = val # spikethickness # -------------- @@ -1148,11 +894,11 @@ def spikethickness(self): ------- int|float """ - return self["spikethickness"] + return self['spikethickness'] @spikethickness.setter def spikethickness(self, val): - self["spikethickness"] = val + self['spikethickness'] = val # tick0 # ----- @@ -1175,11 +921,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -1199,11 +945,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -1217,52 +963,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -1277,61 +988,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.scene.xaxis.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -1357,11 +1022,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -1374,51 +1039,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.layout.scene.xaxis.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -1436,17 +1065,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.layout.scene.xaxis.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklen # ------- @@ -1462,11 +1089,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1489,11 +1116,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1510,11 +1137,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1533,11 +1160,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1554,11 +1181,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1576,11 +1203,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1596,11 +1223,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1617,11 +1244,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1637,11 +1264,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1657,11 +1284,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1674,22 +1301,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this axis' title font. - text - Sets the title of this axis. - Returns ------- plotly.graph_objs.layout.scene.xaxis.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # type # ---- @@ -1708,11 +1328,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # visible # ------- @@ -1730,11 +1350,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # zeroline # -------- @@ -1752,11 +1372,11 @@ def zeroline(self): ------- bool """ - return self["zeroline"] + return self['zeroline'] @zeroline.setter def zeroline(self, val): - self["zeroline"] = val + self['zeroline'] = val # zerolinecolor # ------------- @@ -1770,52 +1390,17 @@ def zerolinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["zerolinecolor"] + return self['zerolinecolor'] @zerolinecolor.setter def zerolinecolor(self, val): - self["zerolinecolor"] = val + self['zerolinecolor'] = val # zerolinewidth # ------------- @@ -1831,11 +1416,11 @@ def zerolinewidth(self): ------- int|float """ - return self["zerolinewidth"] + return self['zerolinewidth'] @zerolinewidth.setter def zerolinewidth(self, val): - self["zerolinewidth"] = val + self['zerolinewidth'] = val # Self properties description # --------------------------- @@ -2134,72 +1719,70 @@ def _prop_descriptions(self): zerolinewidth Sets the width (in px) of the zero line. """ - - def __init__( - self, - arg=None, - autorange=None, - autorangeoptions=None, - autotypenumbers=None, - backgroundcolor=None, - calendar=None, - categoryarray=None, - categoryarraysrc=None, - categoryorder=None, - color=None, - dtick=None, - exponentformat=None, - gridcolor=None, - gridwidth=None, - hoverformat=None, - labelalias=None, - linecolor=None, - linewidth=None, - maxallowed=None, - minallowed=None, - minexponent=None, - mirror=None, - nticks=None, - range=None, - rangemode=None, - separatethousands=None, - showaxeslabels=None, - showbackground=None, - showexponent=None, - showgrid=None, - showline=None, - showspikes=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - spikecolor=None, - spikesides=None, - spikethickness=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - type=None, - visible=None, - zeroline=None, - zerolinecolor=None, - zerolinewidth=None, - **kwargs, - ): + def __init__(self, + arg=None, + autorange=None, + autorangeoptions=None, + autotypenumbers=None, + backgroundcolor=None, + calendar=None, + categoryarray=None, + categoryarraysrc=None, + categoryorder=None, + color=None, + dtick=None, + exponentformat=None, + gridcolor=None, + gridwidth=None, + hoverformat=None, + labelalias=None, + linecolor=None, + linewidth=None, + maxallowed=None, + minallowed=None, + minexponent=None, + mirror=None, + nticks=None, + range=None, + rangemode=None, + separatethousands=None, + showaxeslabels=None, + showbackground=None, + showexponent=None, + showgrid=None, + showline=None, + showspikes=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + spikecolor=None, + spikesides=None, + spikethickness=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + type=None, + visible=None, + zeroline=None, + zerolinecolor=None, + zerolinewidth=None, + **kwargs + ): """ Construct a new XAxis object @@ -2505,10 +2088,10 @@ def __init__( ------- XAxis """ - super(XAxis, self).__init__("xaxis") + super(XAxis, self).__init__('xaxis') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2520,260 +2103,79 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.scene.XAxis constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.scene.XAxis`""" - ) +an instance of :class:`plotly.graph_objs.layout.scene.XAxis`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autorange", None) - _v = autorange if autorange is not None else _v - if _v is not None: - self["autorange"] = _v - _v = arg.pop("autorangeoptions", None) - _v = autorangeoptions if autorangeoptions is not None else _v - if _v is not None: - self["autorangeoptions"] = _v - _v = arg.pop("autotypenumbers", None) - _v = autotypenumbers if autotypenumbers is not None else _v - if _v is not None: - self["autotypenumbers"] = _v - _v = arg.pop("backgroundcolor", None) - _v = backgroundcolor if backgroundcolor is not None else _v - if _v is not None: - self["backgroundcolor"] = _v - _v = arg.pop("calendar", None) - _v = calendar if calendar is not None else _v - if _v is not None: - self["calendar"] = _v - _v = arg.pop("categoryarray", None) - _v = categoryarray if categoryarray is not None else _v - if _v is not None: - self["categoryarray"] = _v - _v = arg.pop("categoryarraysrc", None) - _v = categoryarraysrc if categoryarraysrc is not None else _v - if _v is not None: - self["categoryarraysrc"] = _v - _v = arg.pop("categoryorder", None) - _v = categoryorder if categoryorder is not None else _v - if _v is not None: - self["categoryorder"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("gridcolor", None) - _v = gridcolor if gridcolor is not None else _v - if _v is not None: - self["gridcolor"] = _v - _v = arg.pop("gridwidth", None) - _v = gridwidth if gridwidth is not None else _v - if _v is not None: - self["gridwidth"] = _v - _v = arg.pop("hoverformat", None) - _v = hoverformat if hoverformat is not None else _v - if _v is not None: - self["hoverformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("linecolor", None) - _v = linecolor if linecolor is not None else _v - if _v is not None: - self["linecolor"] = _v - _v = arg.pop("linewidth", None) - _v = linewidth if linewidth is not None else _v - if _v is not None: - self["linewidth"] = _v - _v = arg.pop("maxallowed", None) - _v = maxallowed if maxallowed is not None else _v - if _v is not None: - self["maxallowed"] = _v - _v = arg.pop("minallowed", None) - _v = minallowed if minallowed is not None else _v - if _v is not None: - self["minallowed"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("mirror", None) - _v = mirror if mirror is not None else _v - if _v is not None: - self["mirror"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("range", None) - _v = range if range is not None else _v - if _v is not None: - self["range"] = _v - _v = arg.pop("rangemode", None) - _v = rangemode if rangemode is not None else _v - if _v is not None: - self["rangemode"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showaxeslabels", None) - _v = showaxeslabels if showaxeslabels is not None else _v - if _v is not None: - self["showaxeslabels"] = _v - _v = arg.pop("showbackground", None) - _v = showbackground if showbackground is not None else _v - if _v is not None: - self["showbackground"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showgrid", None) - _v = showgrid if showgrid is not None else _v - if _v is not None: - self["showgrid"] = _v - _v = arg.pop("showline", None) - _v = showline if showline is not None else _v - if _v is not None: - self["showline"] = _v - _v = arg.pop("showspikes", None) - _v = showspikes if showspikes is not None else _v - if _v is not None: - self["showspikes"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("spikecolor", None) - _v = spikecolor if spikecolor is not None else _v - if _v is not None: - self["spikecolor"] = _v - _v = arg.pop("spikesides", None) - _v = spikesides if spikesides is not None else _v - if _v is not None: - self["spikesides"] = _v - _v = arg.pop("spikethickness", None) - _v = spikethickness if spikethickness is not None else _v - if _v is not None: - self["spikethickness"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("zeroline", None) - _v = zeroline if zeroline is not None else _v - if _v is not None: - self["zeroline"] = _v - _v = arg.pop("zerolinecolor", None) - _v = zerolinecolor if zerolinecolor is not None else _v - if _v is not None: - self["zerolinecolor"] = _v - _v = arg.pop("zerolinewidth", None) - _v = zerolinewidth if zerolinewidth is not None else _v - if _v is not None: - self["zerolinewidth"] = _v + self._init_provided('autorange', arg, autorange) + self._init_provided('autorangeoptions', arg, autorangeoptions) + self._init_provided('autotypenumbers', arg, autotypenumbers) + self._init_provided('backgroundcolor', arg, backgroundcolor) + self._init_provided('calendar', arg, calendar) + self._init_provided('categoryarray', arg, categoryarray) + self._init_provided('categoryarraysrc', arg, categoryarraysrc) + self._init_provided('categoryorder', arg, categoryorder) + self._init_provided('color', arg, color) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('gridcolor', arg, gridcolor) + self._init_provided('gridwidth', arg, gridwidth) + self._init_provided('hoverformat', arg, hoverformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('linecolor', arg, linecolor) + self._init_provided('linewidth', arg, linewidth) + self._init_provided('maxallowed', arg, maxallowed) + self._init_provided('minallowed', arg, minallowed) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('mirror', arg, mirror) + self._init_provided('nticks', arg, nticks) + self._init_provided('range', arg, range) + self._init_provided('rangemode', arg, rangemode) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showaxeslabels', arg, showaxeslabels) + self._init_provided('showbackground', arg, showbackground) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showgrid', arg, showgrid) + self._init_provided('showline', arg, showline) + self._init_provided('showspikes', arg, showspikes) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('spikecolor', arg, spikecolor) + self._init_provided('spikesides', arg, spikesides) + self._init_provided('spikethickness', arg, spikethickness) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('type', arg, type) + self._init_provided('visible', arg, visible) + self._init_provided('zeroline', arg, zeroline) + self._init_provided('zerolinecolor', arg, zerolinecolor) + self._init_provided('zerolinewidth', arg, zerolinewidth) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/_yaxis.py b/packages/python/plotly/plotly/graph_objs/layout/scene/_yaxis.py index 75c65cfb7ab..38f2a632686 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/_yaxis.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/_yaxis.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,70 +8,9 @@ class YAxis(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.scene" - _path_str = "layout.scene.yaxis" - _valid_props = { - "autorange", - "autorangeoptions", - "autotypenumbers", - "backgroundcolor", - "calendar", - "categoryarray", - "categoryarraysrc", - "categoryorder", - "color", - "dtick", - "exponentformat", - "gridcolor", - "gridwidth", - "hoverformat", - "labelalias", - "linecolor", - "linewidth", - "maxallowed", - "minallowed", - "minexponent", - "mirror", - "nticks", - "range", - "rangemode", - "separatethousands", - "showaxeslabels", - "showbackground", - "showexponent", - "showgrid", - "showline", - "showspikes", - "showticklabels", - "showtickprefix", - "showticksuffix", - "spikecolor", - "spikesides", - "spikethickness", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "type", - "visible", - "zeroline", - "zerolinecolor", - "zerolinewidth", - } + _parent_path_str = 'layout.scene' + _path_str = 'layout.scene.yaxis' + _valid_props = {"autorange", "autorangeoptions", "autotypenumbers", "backgroundcolor", "calendar", "categoryarray", "categoryarraysrc", "categoryorder", "color", "dtick", "exponentformat", "gridcolor", "gridwidth", "hoverformat", "labelalias", "linecolor", "linewidth", "maxallowed", "minallowed", "minexponent", "mirror", "nticks", "range", "rangemode", "separatethousands", "showaxeslabels", "showbackground", "showexponent", "showgrid", "showline", "showspikes", "showticklabels", "showtickprefix", "showticksuffix", "spikecolor", "spikesides", "spikethickness", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "type", "visible", "zeroline", "zerolinecolor", "zerolinewidth"} # autorange # --------- @@ -96,11 +37,11 @@ def autorange(self): ------- Any """ - return self["autorange"] + return self['autorange'] @autorange.setter def autorange(self, val): - self["autorange"] = val + self['autorange'] = val # autorangeoptions # ---------------- @@ -113,35 +54,15 @@ def autorangeoptions(self): - A dict of string/value properties that will be passed to the Autorangeoptions constructor - Supported dict properties: - - clipmax - Clip autorange maximum if it goes beyond this - value. Has no effect when - `autorangeoptions.maxallowed` is provided. - clipmin - Clip autorange minimum if it goes beyond this - value. Has no effect when - `autorangeoptions.minallowed` is provided. - include - Ensure this value is included in autorange. - includesrc - Sets the source reference on Chart Studio Cloud - for `include`. - maxallowed - Use this value exactly as autorange maximum. - minallowed - Use this value exactly as autorange minimum. - Returns ------- plotly.graph_objs.layout.scene.yaxis.Autorangeoptions """ - return self["autorangeoptions"] + return self['autorangeoptions'] @autorangeoptions.setter def autorangeoptions(self, val): - self["autorangeoptions"] = val + self['autorangeoptions'] = val # autotypenumbers # --------------- @@ -161,11 +82,11 @@ def autotypenumbers(self): ------- Any """ - return self["autotypenumbers"] + return self['autotypenumbers'] @autotypenumbers.setter def autotypenumbers(self, val): - self["autotypenumbers"] = val + self['autotypenumbers'] = val # backgroundcolor # --------------- @@ -179,52 +100,17 @@ def backgroundcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["backgroundcolor"] + return self['backgroundcolor'] @backgroundcolor.setter def backgroundcolor(self, val): - self["backgroundcolor"] = val + self['backgroundcolor'] = val # calendar # -------- @@ -247,11 +133,11 @@ def calendar(self): ------- Any """ - return self["calendar"] + return self['calendar'] @calendar.setter def calendar(self, val): - self["calendar"] = val + self['calendar'] = val # categoryarray # ------------- @@ -269,11 +155,11 @@ def categoryarray(self): ------- numpy.ndarray """ - return self["categoryarray"] + return self['categoryarray'] @categoryarray.setter def categoryarray(self, val): - self["categoryarray"] = val + self['categoryarray'] = val # categoryarraysrc # ---------------- @@ -290,11 +176,11 @@ def categoryarraysrc(self): ------- str """ - return self["categoryarraysrc"] + return self['categoryarraysrc'] @categoryarraysrc.setter def categoryarraysrc(self, val): - self["categoryarraysrc"] = val + self['categoryarraysrc'] = val # categoryorder # ------------- @@ -331,11 +217,11 @@ def categoryorder(self): ------- Any """ - return self["categoryorder"] + return self['categoryorder'] @categoryorder.setter def categoryorder(self, val): - self["categoryorder"] = val + self['categoryorder'] = val # color # ----- @@ -352,52 +238,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # dtick # ----- @@ -431,11 +282,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -456,11 +307,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # gridcolor # --------- @@ -474,52 +325,17 @@ def gridcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["gridcolor"] + return self['gridcolor'] @gridcolor.setter def gridcolor(self, val): - self["gridcolor"] = val + self['gridcolor'] = val # gridwidth # --------- @@ -535,11 +351,11 @@ def gridwidth(self): ------- int|float """ - return self["gridwidth"] + return self['gridwidth'] @gridwidth.setter def gridwidth(self, val): - self["gridwidth"] = val + self['gridwidth'] = val # hoverformat # ----------- @@ -565,11 +381,11 @@ def hoverformat(self): ------- str """ - return self["hoverformat"] + return self['hoverformat'] @hoverformat.setter def hoverformat(self, val): - self["hoverformat"] = val + self['hoverformat'] = val # labelalias # ---------- @@ -592,11 +408,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # linecolor # --------- @@ -610,52 +426,17 @@ def linecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["linecolor"] + return self['linecolor'] @linecolor.setter def linecolor(self, val): - self["linecolor"] = val + self['linecolor'] = val # linewidth # --------- @@ -671,11 +452,11 @@ def linewidth(self): ------- int|float """ - return self["linewidth"] + return self['linewidth'] @linewidth.setter def linewidth(self, val): - self["linewidth"] = val + self['linewidth'] = val # maxallowed # ---------- @@ -690,11 +471,11 @@ def maxallowed(self): ------- Any """ - return self["maxallowed"] + return self['maxallowed'] @maxallowed.setter def maxallowed(self, val): - self["maxallowed"] = val + self['maxallowed'] = val # minallowed # ---------- @@ -709,11 +490,11 @@ def minallowed(self): ------- Any """ - return self["minallowed"] + return self['minallowed'] @minallowed.setter def minallowed(self, val): - self["minallowed"] = val + self['minallowed'] = val # minexponent # ----------- @@ -730,11 +511,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # mirror # ------ @@ -756,11 +537,11 @@ def mirror(self): ------- Any """ - return self["mirror"] + return self['mirror'] @mirror.setter def mirror(self, val): - self["mirror"] = val + self['mirror'] = val # nticks # ------ @@ -780,43 +561,43 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # range # ----- @property def range(self): """ - Sets the range of this axis. If the axis `type` is "log", then - you must take the log of your desired range (e.g. to set the - range from 1 to 100, set the range from 0 to 2). If the axis - `type` is "date", it should be date strings, like date data, - though Date objects and unix milliseconds will be accepted and - converted to strings. If the axis `type` is "category", it - should be numbers, using the scale where each category is - assigned a serial number from zero in the order it appears. - Leaving either or both elements `null` impacts the default - `autorange`. - - The 'range' property is an info array that may be specified as: + Sets the range of this axis. If the axis `type` is "log", then + you must take the log of your desired range (e.g. to set the + range from 1 to 100, set the range from 0 to 2). If the axis + `type` is "date", it should be date strings, like date data, + though Date objects and unix milliseconds will be accepted and + converted to strings. If the axis `type` is "category", it + should be numbers, using the scale where each category is + assigned a serial number from zero in the order it appears. + Leaving either or both elements `null` impacts the default + `autorange`. + + The 'range' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'range[0]' property accepts values of any type + (1) The 'range[1]' property accepts values of any type - * a list or tuple of 2 elements where: - (0) The 'range[0]' property accepts values of any type - (1) The 'range[1]' property accepts values of any type - - Returns - ------- - list + Returns + ------- + list """ - return self["range"] + return self['range'] @range.setter def range(self, val): - self["range"] = val + self['range'] = val # rangemode # --------- @@ -837,11 +618,11 @@ def rangemode(self): ------- Any """ - return self["rangemode"] + return self['rangemode'] @rangemode.setter def rangemode(self, val): - self["rangemode"] = val + self['rangemode'] = val # separatethousands # ----------------- @@ -857,11 +638,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showaxeslabels # -------------- @@ -877,11 +658,11 @@ def showaxeslabels(self): ------- bool """ - return self["showaxeslabels"] + return self['showaxeslabels'] @showaxeslabels.setter def showaxeslabels(self, val): - self["showaxeslabels"] = val + self['showaxeslabels'] = val # showbackground # -------------- @@ -897,11 +678,11 @@ def showbackground(self): ------- bool """ - return self["showbackground"] + return self['showbackground'] @showbackground.setter def showbackground(self, val): - self["showbackground"] = val + self['showbackground'] = val # showexponent # ------------ @@ -921,11 +702,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showgrid # -------- @@ -942,11 +723,11 @@ def showgrid(self): ------- bool """ - return self["showgrid"] + return self['showgrid'] @showgrid.setter def showgrid(self, val): - self["showgrid"] = val + self['showgrid'] = val # showline # -------- @@ -962,11 +743,11 @@ def showline(self): ------- bool """ - return self["showline"] + return self['showline'] @showline.setter def showline(self, val): - self["showline"] = val + self['showline'] = val # showspikes # ---------- @@ -983,11 +764,11 @@ def showspikes(self): ------- bool """ - return self["showspikes"] + return self['showspikes'] @showspikes.setter def showspikes(self, val): - self["showspikes"] = val + self['showspikes'] = val # showticklabels # -------------- @@ -1003,11 +784,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -1027,11 +808,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -1048,11 +829,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # spikecolor # ---------- @@ -1066,52 +847,17 @@ def spikecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["spikecolor"] + return self['spikecolor'] @spikecolor.setter def spikecolor(self, val): - self["spikecolor"] = val + self['spikecolor'] = val # spikesides # ---------- @@ -1128,11 +874,11 @@ def spikesides(self): ------- bool """ - return self["spikesides"] + return self['spikesides'] @spikesides.setter def spikesides(self, val): - self["spikesides"] = val + self['spikesides'] = val # spikethickness # -------------- @@ -1148,11 +894,11 @@ def spikethickness(self): ------- int|float """ - return self["spikethickness"] + return self['spikethickness'] @spikethickness.setter def spikethickness(self, val): - self["spikethickness"] = val + self['spikethickness'] = val # tick0 # ----- @@ -1175,11 +921,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -1199,11 +945,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -1217,52 +963,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -1277,61 +988,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.scene.yaxis.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -1357,11 +1022,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -1374,51 +1039,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.layout.scene.yaxis.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -1436,17 +1065,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.layout.scene.yaxis.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklen # ------- @@ -1462,11 +1089,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1489,11 +1116,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1510,11 +1137,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1533,11 +1160,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1554,11 +1181,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1576,11 +1203,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1596,11 +1223,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1617,11 +1244,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1637,11 +1264,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1657,11 +1284,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1674,22 +1301,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this axis' title font. - text - Sets the title of this axis. - Returns ------- plotly.graph_objs.layout.scene.yaxis.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # type # ---- @@ -1708,11 +1328,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # visible # ------- @@ -1730,11 +1350,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # zeroline # -------- @@ -1752,11 +1372,11 @@ def zeroline(self): ------- bool """ - return self["zeroline"] + return self['zeroline'] @zeroline.setter def zeroline(self, val): - self["zeroline"] = val + self['zeroline'] = val # zerolinecolor # ------------- @@ -1770,52 +1390,17 @@ def zerolinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["zerolinecolor"] + return self['zerolinecolor'] @zerolinecolor.setter def zerolinecolor(self, val): - self["zerolinecolor"] = val + self['zerolinecolor'] = val # zerolinewidth # ------------- @@ -1831,11 +1416,11 @@ def zerolinewidth(self): ------- int|float """ - return self["zerolinewidth"] + return self['zerolinewidth'] @zerolinewidth.setter def zerolinewidth(self, val): - self["zerolinewidth"] = val + self['zerolinewidth'] = val # Self properties description # --------------------------- @@ -2134,72 +1719,70 @@ def _prop_descriptions(self): zerolinewidth Sets the width (in px) of the zero line. """ - - def __init__( - self, - arg=None, - autorange=None, - autorangeoptions=None, - autotypenumbers=None, - backgroundcolor=None, - calendar=None, - categoryarray=None, - categoryarraysrc=None, - categoryorder=None, - color=None, - dtick=None, - exponentformat=None, - gridcolor=None, - gridwidth=None, - hoverformat=None, - labelalias=None, - linecolor=None, - linewidth=None, - maxallowed=None, - minallowed=None, - minexponent=None, - mirror=None, - nticks=None, - range=None, - rangemode=None, - separatethousands=None, - showaxeslabels=None, - showbackground=None, - showexponent=None, - showgrid=None, - showline=None, - showspikes=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - spikecolor=None, - spikesides=None, - spikethickness=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - type=None, - visible=None, - zeroline=None, - zerolinecolor=None, - zerolinewidth=None, - **kwargs, - ): + def __init__(self, + arg=None, + autorange=None, + autorangeoptions=None, + autotypenumbers=None, + backgroundcolor=None, + calendar=None, + categoryarray=None, + categoryarraysrc=None, + categoryorder=None, + color=None, + dtick=None, + exponentformat=None, + gridcolor=None, + gridwidth=None, + hoverformat=None, + labelalias=None, + linecolor=None, + linewidth=None, + maxallowed=None, + minallowed=None, + minexponent=None, + mirror=None, + nticks=None, + range=None, + rangemode=None, + separatethousands=None, + showaxeslabels=None, + showbackground=None, + showexponent=None, + showgrid=None, + showline=None, + showspikes=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + spikecolor=None, + spikesides=None, + spikethickness=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + type=None, + visible=None, + zeroline=None, + zerolinecolor=None, + zerolinewidth=None, + **kwargs + ): """ Construct a new YAxis object @@ -2505,10 +2088,10 @@ def __init__( ------- YAxis """ - super(YAxis, self).__init__("yaxis") + super(YAxis, self).__init__('yaxis') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2520,260 +2103,79 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.scene.YAxis constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.scene.YAxis`""" - ) +an instance of :class:`plotly.graph_objs.layout.scene.YAxis`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autorange", None) - _v = autorange if autorange is not None else _v - if _v is not None: - self["autorange"] = _v - _v = arg.pop("autorangeoptions", None) - _v = autorangeoptions if autorangeoptions is not None else _v - if _v is not None: - self["autorangeoptions"] = _v - _v = arg.pop("autotypenumbers", None) - _v = autotypenumbers if autotypenumbers is not None else _v - if _v is not None: - self["autotypenumbers"] = _v - _v = arg.pop("backgroundcolor", None) - _v = backgroundcolor if backgroundcolor is not None else _v - if _v is not None: - self["backgroundcolor"] = _v - _v = arg.pop("calendar", None) - _v = calendar if calendar is not None else _v - if _v is not None: - self["calendar"] = _v - _v = arg.pop("categoryarray", None) - _v = categoryarray if categoryarray is not None else _v - if _v is not None: - self["categoryarray"] = _v - _v = arg.pop("categoryarraysrc", None) - _v = categoryarraysrc if categoryarraysrc is not None else _v - if _v is not None: - self["categoryarraysrc"] = _v - _v = arg.pop("categoryorder", None) - _v = categoryorder if categoryorder is not None else _v - if _v is not None: - self["categoryorder"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("gridcolor", None) - _v = gridcolor if gridcolor is not None else _v - if _v is not None: - self["gridcolor"] = _v - _v = arg.pop("gridwidth", None) - _v = gridwidth if gridwidth is not None else _v - if _v is not None: - self["gridwidth"] = _v - _v = arg.pop("hoverformat", None) - _v = hoverformat if hoverformat is not None else _v - if _v is not None: - self["hoverformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("linecolor", None) - _v = linecolor if linecolor is not None else _v - if _v is not None: - self["linecolor"] = _v - _v = arg.pop("linewidth", None) - _v = linewidth if linewidth is not None else _v - if _v is not None: - self["linewidth"] = _v - _v = arg.pop("maxallowed", None) - _v = maxallowed if maxallowed is not None else _v - if _v is not None: - self["maxallowed"] = _v - _v = arg.pop("minallowed", None) - _v = minallowed if minallowed is not None else _v - if _v is not None: - self["minallowed"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("mirror", None) - _v = mirror if mirror is not None else _v - if _v is not None: - self["mirror"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("range", None) - _v = range if range is not None else _v - if _v is not None: - self["range"] = _v - _v = arg.pop("rangemode", None) - _v = rangemode if rangemode is not None else _v - if _v is not None: - self["rangemode"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showaxeslabels", None) - _v = showaxeslabels if showaxeslabels is not None else _v - if _v is not None: - self["showaxeslabels"] = _v - _v = arg.pop("showbackground", None) - _v = showbackground if showbackground is not None else _v - if _v is not None: - self["showbackground"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showgrid", None) - _v = showgrid if showgrid is not None else _v - if _v is not None: - self["showgrid"] = _v - _v = arg.pop("showline", None) - _v = showline if showline is not None else _v - if _v is not None: - self["showline"] = _v - _v = arg.pop("showspikes", None) - _v = showspikes if showspikes is not None else _v - if _v is not None: - self["showspikes"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("spikecolor", None) - _v = spikecolor if spikecolor is not None else _v - if _v is not None: - self["spikecolor"] = _v - _v = arg.pop("spikesides", None) - _v = spikesides if spikesides is not None else _v - if _v is not None: - self["spikesides"] = _v - _v = arg.pop("spikethickness", None) - _v = spikethickness if spikethickness is not None else _v - if _v is not None: - self["spikethickness"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("zeroline", None) - _v = zeroline if zeroline is not None else _v - if _v is not None: - self["zeroline"] = _v - _v = arg.pop("zerolinecolor", None) - _v = zerolinecolor if zerolinecolor is not None else _v - if _v is not None: - self["zerolinecolor"] = _v - _v = arg.pop("zerolinewidth", None) - _v = zerolinewidth if zerolinewidth is not None else _v - if _v is not None: - self["zerolinewidth"] = _v + self._init_provided('autorange', arg, autorange) + self._init_provided('autorangeoptions', arg, autorangeoptions) + self._init_provided('autotypenumbers', arg, autotypenumbers) + self._init_provided('backgroundcolor', arg, backgroundcolor) + self._init_provided('calendar', arg, calendar) + self._init_provided('categoryarray', arg, categoryarray) + self._init_provided('categoryarraysrc', arg, categoryarraysrc) + self._init_provided('categoryorder', arg, categoryorder) + self._init_provided('color', arg, color) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('gridcolor', arg, gridcolor) + self._init_provided('gridwidth', arg, gridwidth) + self._init_provided('hoverformat', arg, hoverformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('linecolor', arg, linecolor) + self._init_provided('linewidth', arg, linewidth) + self._init_provided('maxallowed', arg, maxallowed) + self._init_provided('minallowed', arg, minallowed) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('mirror', arg, mirror) + self._init_provided('nticks', arg, nticks) + self._init_provided('range', arg, range) + self._init_provided('rangemode', arg, rangemode) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showaxeslabels', arg, showaxeslabels) + self._init_provided('showbackground', arg, showbackground) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showgrid', arg, showgrid) + self._init_provided('showline', arg, showline) + self._init_provided('showspikes', arg, showspikes) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('spikecolor', arg, spikecolor) + self._init_provided('spikesides', arg, spikesides) + self._init_provided('spikethickness', arg, spikethickness) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('type', arg, type) + self._init_provided('visible', arg, visible) + self._init_provided('zeroline', arg, zeroline) + self._init_provided('zerolinecolor', arg, zerolinecolor) + self._init_provided('zerolinewidth', arg, zerolinewidth) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/_zaxis.py b/packages/python/plotly/plotly/graph_objs/layout/scene/_zaxis.py index 7bf8c78d8b3..8d19b433339 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/_zaxis.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/_zaxis.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,70 +8,9 @@ class ZAxis(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.scene" - _path_str = "layout.scene.zaxis" - _valid_props = { - "autorange", - "autorangeoptions", - "autotypenumbers", - "backgroundcolor", - "calendar", - "categoryarray", - "categoryarraysrc", - "categoryorder", - "color", - "dtick", - "exponentformat", - "gridcolor", - "gridwidth", - "hoverformat", - "labelalias", - "linecolor", - "linewidth", - "maxallowed", - "minallowed", - "minexponent", - "mirror", - "nticks", - "range", - "rangemode", - "separatethousands", - "showaxeslabels", - "showbackground", - "showexponent", - "showgrid", - "showline", - "showspikes", - "showticklabels", - "showtickprefix", - "showticksuffix", - "spikecolor", - "spikesides", - "spikethickness", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "type", - "visible", - "zeroline", - "zerolinecolor", - "zerolinewidth", - } + _parent_path_str = 'layout.scene' + _path_str = 'layout.scene.zaxis' + _valid_props = {"autorange", "autorangeoptions", "autotypenumbers", "backgroundcolor", "calendar", "categoryarray", "categoryarraysrc", "categoryorder", "color", "dtick", "exponentformat", "gridcolor", "gridwidth", "hoverformat", "labelalias", "linecolor", "linewidth", "maxallowed", "minallowed", "minexponent", "mirror", "nticks", "range", "rangemode", "separatethousands", "showaxeslabels", "showbackground", "showexponent", "showgrid", "showline", "showspikes", "showticklabels", "showtickprefix", "showticksuffix", "spikecolor", "spikesides", "spikethickness", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "type", "visible", "zeroline", "zerolinecolor", "zerolinewidth"} # autorange # --------- @@ -96,11 +37,11 @@ def autorange(self): ------- Any """ - return self["autorange"] + return self['autorange'] @autorange.setter def autorange(self, val): - self["autorange"] = val + self['autorange'] = val # autorangeoptions # ---------------- @@ -113,35 +54,15 @@ def autorangeoptions(self): - A dict of string/value properties that will be passed to the Autorangeoptions constructor - Supported dict properties: - - clipmax - Clip autorange maximum if it goes beyond this - value. Has no effect when - `autorangeoptions.maxallowed` is provided. - clipmin - Clip autorange minimum if it goes beyond this - value. Has no effect when - `autorangeoptions.minallowed` is provided. - include - Ensure this value is included in autorange. - includesrc - Sets the source reference on Chart Studio Cloud - for `include`. - maxallowed - Use this value exactly as autorange maximum. - minallowed - Use this value exactly as autorange minimum. - Returns ------- plotly.graph_objs.layout.scene.zaxis.Autorangeoptions """ - return self["autorangeoptions"] + return self['autorangeoptions'] @autorangeoptions.setter def autorangeoptions(self, val): - self["autorangeoptions"] = val + self['autorangeoptions'] = val # autotypenumbers # --------------- @@ -161,11 +82,11 @@ def autotypenumbers(self): ------- Any """ - return self["autotypenumbers"] + return self['autotypenumbers'] @autotypenumbers.setter def autotypenumbers(self, val): - self["autotypenumbers"] = val + self['autotypenumbers'] = val # backgroundcolor # --------------- @@ -179,52 +100,17 @@ def backgroundcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["backgroundcolor"] + return self['backgroundcolor'] @backgroundcolor.setter def backgroundcolor(self, val): - self["backgroundcolor"] = val + self['backgroundcolor'] = val # calendar # -------- @@ -247,11 +133,11 @@ def calendar(self): ------- Any """ - return self["calendar"] + return self['calendar'] @calendar.setter def calendar(self, val): - self["calendar"] = val + self['calendar'] = val # categoryarray # ------------- @@ -269,11 +155,11 @@ def categoryarray(self): ------- numpy.ndarray """ - return self["categoryarray"] + return self['categoryarray'] @categoryarray.setter def categoryarray(self, val): - self["categoryarray"] = val + self['categoryarray'] = val # categoryarraysrc # ---------------- @@ -290,11 +176,11 @@ def categoryarraysrc(self): ------- str """ - return self["categoryarraysrc"] + return self['categoryarraysrc'] @categoryarraysrc.setter def categoryarraysrc(self, val): - self["categoryarraysrc"] = val + self['categoryarraysrc'] = val # categoryorder # ------------- @@ -331,11 +217,11 @@ def categoryorder(self): ------- Any """ - return self["categoryorder"] + return self['categoryorder'] @categoryorder.setter def categoryorder(self, val): - self["categoryorder"] = val + self['categoryorder'] = val # color # ----- @@ -352,52 +238,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # dtick # ----- @@ -431,11 +282,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -456,11 +307,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # gridcolor # --------- @@ -474,52 +325,17 @@ def gridcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["gridcolor"] + return self['gridcolor'] @gridcolor.setter def gridcolor(self, val): - self["gridcolor"] = val + self['gridcolor'] = val # gridwidth # --------- @@ -535,11 +351,11 @@ def gridwidth(self): ------- int|float """ - return self["gridwidth"] + return self['gridwidth'] @gridwidth.setter def gridwidth(self, val): - self["gridwidth"] = val + self['gridwidth'] = val # hoverformat # ----------- @@ -565,11 +381,11 @@ def hoverformat(self): ------- str """ - return self["hoverformat"] + return self['hoverformat'] @hoverformat.setter def hoverformat(self, val): - self["hoverformat"] = val + self['hoverformat'] = val # labelalias # ---------- @@ -592,11 +408,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # linecolor # --------- @@ -610,52 +426,17 @@ def linecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["linecolor"] + return self['linecolor'] @linecolor.setter def linecolor(self, val): - self["linecolor"] = val + self['linecolor'] = val # linewidth # --------- @@ -671,11 +452,11 @@ def linewidth(self): ------- int|float """ - return self["linewidth"] + return self['linewidth'] @linewidth.setter def linewidth(self, val): - self["linewidth"] = val + self['linewidth'] = val # maxallowed # ---------- @@ -690,11 +471,11 @@ def maxallowed(self): ------- Any """ - return self["maxallowed"] + return self['maxallowed'] @maxallowed.setter def maxallowed(self, val): - self["maxallowed"] = val + self['maxallowed'] = val # minallowed # ---------- @@ -709,11 +490,11 @@ def minallowed(self): ------- Any """ - return self["minallowed"] + return self['minallowed'] @minallowed.setter def minallowed(self, val): - self["minallowed"] = val + self['minallowed'] = val # minexponent # ----------- @@ -730,11 +511,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # mirror # ------ @@ -756,11 +537,11 @@ def mirror(self): ------- Any """ - return self["mirror"] + return self['mirror'] @mirror.setter def mirror(self, val): - self["mirror"] = val + self['mirror'] = val # nticks # ------ @@ -780,43 +561,43 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # range # ----- @property def range(self): """ - Sets the range of this axis. If the axis `type` is "log", then - you must take the log of your desired range (e.g. to set the - range from 1 to 100, set the range from 0 to 2). If the axis - `type` is "date", it should be date strings, like date data, - though Date objects and unix milliseconds will be accepted and - converted to strings. If the axis `type` is "category", it - should be numbers, using the scale where each category is - assigned a serial number from zero in the order it appears. - Leaving either or both elements `null` impacts the default - `autorange`. - - The 'range' property is an info array that may be specified as: + Sets the range of this axis. If the axis `type` is "log", then + you must take the log of your desired range (e.g. to set the + range from 1 to 100, set the range from 0 to 2). If the axis + `type` is "date", it should be date strings, like date data, + though Date objects and unix milliseconds will be accepted and + converted to strings. If the axis `type` is "category", it + should be numbers, using the scale where each category is + assigned a serial number from zero in the order it appears. + Leaving either or both elements `null` impacts the default + `autorange`. + + The 'range' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'range[0]' property accepts values of any type + (1) The 'range[1]' property accepts values of any type - * a list or tuple of 2 elements where: - (0) The 'range[0]' property accepts values of any type - (1) The 'range[1]' property accepts values of any type - - Returns - ------- - list + Returns + ------- + list """ - return self["range"] + return self['range'] @range.setter def range(self, val): - self["range"] = val + self['range'] = val # rangemode # --------- @@ -837,11 +618,11 @@ def rangemode(self): ------- Any """ - return self["rangemode"] + return self['rangemode'] @rangemode.setter def rangemode(self, val): - self["rangemode"] = val + self['rangemode'] = val # separatethousands # ----------------- @@ -857,11 +638,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showaxeslabels # -------------- @@ -877,11 +658,11 @@ def showaxeslabels(self): ------- bool """ - return self["showaxeslabels"] + return self['showaxeslabels'] @showaxeslabels.setter def showaxeslabels(self, val): - self["showaxeslabels"] = val + self['showaxeslabels'] = val # showbackground # -------------- @@ -897,11 +678,11 @@ def showbackground(self): ------- bool """ - return self["showbackground"] + return self['showbackground'] @showbackground.setter def showbackground(self, val): - self["showbackground"] = val + self['showbackground'] = val # showexponent # ------------ @@ -921,11 +702,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showgrid # -------- @@ -942,11 +723,11 @@ def showgrid(self): ------- bool """ - return self["showgrid"] + return self['showgrid'] @showgrid.setter def showgrid(self, val): - self["showgrid"] = val + self['showgrid'] = val # showline # -------- @@ -962,11 +743,11 @@ def showline(self): ------- bool """ - return self["showline"] + return self['showline'] @showline.setter def showline(self, val): - self["showline"] = val + self['showline'] = val # showspikes # ---------- @@ -983,11 +764,11 @@ def showspikes(self): ------- bool """ - return self["showspikes"] + return self['showspikes'] @showspikes.setter def showspikes(self, val): - self["showspikes"] = val + self['showspikes'] = val # showticklabels # -------------- @@ -1003,11 +784,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -1027,11 +808,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -1048,11 +829,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # spikecolor # ---------- @@ -1066,52 +847,17 @@ def spikecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["spikecolor"] + return self['spikecolor'] @spikecolor.setter def spikecolor(self, val): - self["spikecolor"] = val + self['spikecolor'] = val # spikesides # ---------- @@ -1128,11 +874,11 @@ def spikesides(self): ------- bool """ - return self["spikesides"] + return self['spikesides'] @spikesides.setter def spikesides(self, val): - self["spikesides"] = val + self['spikesides'] = val # spikethickness # -------------- @@ -1148,11 +894,11 @@ def spikethickness(self): ------- int|float """ - return self["spikethickness"] + return self['spikethickness'] @spikethickness.setter def spikethickness(self, val): - self["spikethickness"] = val + self['spikethickness'] = val # tick0 # ----- @@ -1175,11 +921,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -1199,11 +945,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -1217,52 +963,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -1277,61 +988,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.scene.zaxis.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -1357,11 +1022,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -1374,51 +1039,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.layout.scene.zaxis.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -1436,17 +1065,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.layout.scene.zaxis.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklen # ------- @@ -1462,11 +1089,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1489,11 +1116,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1510,11 +1137,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1533,11 +1160,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1554,11 +1181,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1576,11 +1203,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1596,11 +1223,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1617,11 +1244,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1637,11 +1264,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1657,11 +1284,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1674,22 +1301,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this axis' title font. - text - Sets the title of this axis. - Returns ------- plotly.graph_objs.layout.scene.zaxis.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # type # ---- @@ -1708,11 +1328,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # visible # ------- @@ -1730,11 +1350,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # zeroline # -------- @@ -1752,11 +1372,11 @@ def zeroline(self): ------- bool """ - return self["zeroline"] + return self['zeroline'] @zeroline.setter def zeroline(self, val): - self["zeroline"] = val + self['zeroline'] = val # zerolinecolor # ------------- @@ -1770,52 +1390,17 @@ def zerolinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["zerolinecolor"] + return self['zerolinecolor'] @zerolinecolor.setter def zerolinecolor(self, val): - self["zerolinecolor"] = val + self['zerolinecolor'] = val # zerolinewidth # ------------- @@ -1831,11 +1416,11 @@ def zerolinewidth(self): ------- int|float """ - return self["zerolinewidth"] + return self['zerolinewidth'] @zerolinewidth.setter def zerolinewidth(self, val): - self["zerolinewidth"] = val + self['zerolinewidth'] = val # Self properties description # --------------------------- @@ -2134,72 +1719,70 @@ def _prop_descriptions(self): zerolinewidth Sets the width (in px) of the zero line. """ - - def __init__( - self, - arg=None, - autorange=None, - autorangeoptions=None, - autotypenumbers=None, - backgroundcolor=None, - calendar=None, - categoryarray=None, - categoryarraysrc=None, - categoryorder=None, - color=None, - dtick=None, - exponentformat=None, - gridcolor=None, - gridwidth=None, - hoverformat=None, - labelalias=None, - linecolor=None, - linewidth=None, - maxallowed=None, - minallowed=None, - minexponent=None, - mirror=None, - nticks=None, - range=None, - rangemode=None, - separatethousands=None, - showaxeslabels=None, - showbackground=None, - showexponent=None, - showgrid=None, - showline=None, - showspikes=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - spikecolor=None, - spikesides=None, - spikethickness=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - type=None, - visible=None, - zeroline=None, - zerolinecolor=None, - zerolinewidth=None, - **kwargs, - ): + def __init__(self, + arg=None, + autorange=None, + autorangeoptions=None, + autotypenumbers=None, + backgroundcolor=None, + calendar=None, + categoryarray=None, + categoryarraysrc=None, + categoryorder=None, + color=None, + dtick=None, + exponentformat=None, + gridcolor=None, + gridwidth=None, + hoverformat=None, + labelalias=None, + linecolor=None, + linewidth=None, + maxallowed=None, + minallowed=None, + minexponent=None, + mirror=None, + nticks=None, + range=None, + rangemode=None, + separatethousands=None, + showaxeslabels=None, + showbackground=None, + showexponent=None, + showgrid=None, + showline=None, + showspikes=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + spikecolor=None, + spikesides=None, + spikethickness=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + type=None, + visible=None, + zeroline=None, + zerolinecolor=None, + zerolinewidth=None, + **kwargs + ): """ Construct a new ZAxis object @@ -2505,10 +2088,10 @@ def __init__( ------- ZAxis """ - super(ZAxis, self).__init__("zaxis") + super(ZAxis, self).__init__('zaxis') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2520,260 +2103,79 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.scene.ZAxis constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.scene.ZAxis`""" - ) +an instance of :class:`plotly.graph_objs.layout.scene.ZAxis`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autorange", None) - _v = autorange if autorange is not None else _v - if _v is not None: - self["autorange"] = _v - _v = arg.pop("autorangeoptions", None) - _v = autorangeoptions if autorangeoptions is not None else _v - if _v is not None: - self["autorangeoptions"] = _v - _v = arg.pop("autotypenumbers", None) - _v = autotypenumbers if autotypenumbers is not None else _v - if _v is not None: - self["autotypenumbers"] = _v - _v = arg.pop("backgroundcolor", None) - _v = backgroundcolor if backgroundcolor is not None else _v - if _v is not None: - self["backgroundcolor"] = _v - _v = arg.pop("calendar", None) - _v = calendar if calendar is not None else _v - if _v is not None: - self["calendar"] = _v - _v = arg.pop("categoryarray", None) - _v = categoryarray if categoryarray is not None else _v - if _v is not None: - self["categoryarray"] = _v - _v = arg.pop("categoryarraysrc", None) - _v = categoryarraysrc if categoryarraysrc is not None else _v - if _v is not None: - self["categoryarraysrc"] = _v - _v = arg.pop("categoryorder", None) - _v = categoryorder if categoryorder is not None else _v - if _v is not None: - self["categoryorder"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("gridcolor", None) - _v = gridcolor if gridcolor is not None else _v - if _v is not None: - self["gridcolor"] = _v - _v = arg.pop("gridwidth", None) - _v = gridwidth if gridwidth is not None else _v - if _v is not None: - self["gridwidth"] = _v - _v = arg.pop("hoverformat", None) - _v = hoverformat if hoverformat is not None else _v - if _v is not None: - self["hoverformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("linecolor", None) - _v = linecolor if linecolor is not None else _v - if _v is not None: - self["linecolor"] = _v - _v = arg.pop("linewidth", None) - _v = linewidth if linewidth is not None else _v - if _v is not None: - self["linewidth"] = _v - _v = arg.pop("maxallowed", None) - _v = maxallowed if maxallowed is not None else _v - if _v is not None: - self["maxallowed"] = _v - _v = arg.pop("minallowed", None) - _v = minallowed if minallowed is not None else _v - if _v is not None: - self["minallowed"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("mirror", None) - _v = mirror if mirror is not None else _v - if _v is not None: - self["mirror"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("range", None) - _v = range if range is not None else _v - if _v is not None: - self["range"] = _v - _v = arg.pop("rangemode", None) - _v = rangemode if rangemode is not None else _v - if _v is not None: - self["rangemode"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showaxeslabels", None) - _v = showaxeslabels if showaxeslabels is not None else _v - if _v is not None: - self["showaxeslabels"] = _v - _v = arg.pop("showbackground", None) - _v = showbackground if showbackground is not None else _v - if _v is not None: - self["showbackground"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showgrid", None) - _v = showgrid if showgrid is not None else _v - if _v is not None: - self["showgrid"] = _v - _v = arg.pop("showline", None) - _v = showline if showline is not None else _v - if _v is not None: - self["showline"] = _v - _v = arg.pop("showspikes", None) - _v = showspikes if showspikes is not None else _v - if _v is not None: - self["showspikes"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("spikecolor", None) - _v = spikecolor if spikecolor is not None else _v - if _v is not None: - self["spikecolor"] = _v - _v = arg.pop("spikesides", None) - _v = spikesides if spikesides is not None else _v - if _v is not None: - self["spikesides"] = _v - _v = arg.pop("spikethickness", None) - _v = spikethickness if spikethickness is not None else _v - if _v is not None: - self["spikethickness"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("zeroline", None) - _v = zeroline if zeroline is not None else _v - if _v is not None: - self["zeroline"] = _v - _v = arg.pop("zerolinecolor", None) - _v = zerolinecolor if zerolinecolor is not None else _v - if _v is not None: - self["zerolinecolor"] = _v - _v = arg.pop("zerolinewidth", None) - _v = zerolinewidth if zerolinewidth is not None else _v - if _v is not None: - self["zerolinewidth"] = _v + self._init_provided('autorange', arg, autorange) + self._init_provided('autorangeoptions', arg, autorangeoptions) + self._init_provided('autotypenumbers', arg, autotypenumbers) + self._init_provided('backgroundcolor', arg, backgroundcolor) + self._init_provided('calendar', arg, calendar) + self._init_provided('categoryarray', arg, categoryarray) + self._init_provided('categoryarraysrc', arg, categoryarraysrc) + self._init_provided('categoryorder', arg, categoryorder) + self._init_provided('color', arg, color) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('gridcolor', arg, gridcolor) + self._init_provided('gridwidth', arg, gridwidth) + self._init_provided('hoverformat', arg, hoverformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('linecolor', arg, linecolor) + self._init_provided('linewidth', arg, linewidth) + self._init_provided('maxallowed', arg, maxallowed) + self._init_provided('minallowed', arg, minallowed) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('mirror', arg, mirror) + self._init_provided('nticks', arg, nticks) + self._init_provided('range', arg, range) + self._init_provided('rangemode', arg, rangemode) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showaxeslabels', arg, showaxeslabels) + self._init_provided('showbackground', arg, showbackground) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showgrid', arg, showgrid) + self._init_provided('showline', arg, showline) + self._init_provided('showspikes', arg, showspikes) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('spikecolor', arg, spikecolor) + self._init_provided('spikesides', arg, spikesides) + self._init_provided('spikethickness', arg, spikethickness) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('type', arg, type) + self._init_provided('visible', arg, visible) + self._init_provided('zeroline', arg, zeroline) + self._init_provided('zerolinecolor', arg, zerolinecolor) + self._init_provided('zerolinewidth', arg, zerolinewidth) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/annotation/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/scene/annotation/__init__.py index 89cac20f5a9..a10fc8d3857 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/annotation/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/annotation/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font from ._hoverlabel import Hoverlabel from . import hoverlabel else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [".hoverlabel"], ["._font.Font", "._hoverlabel.Hoverlabel"] + __name__, + ['.hoverlabel'], + ['._font.Font', '._hoverlabel.Hoverlabel'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/annotation/_font.py b/packages/python/plotly/plotly/graph_objs/layout/scene/annotation/_font.py index b7708d1c41d..ca454bd208f 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/annotation/_font.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/annotation/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.scene.annotation" - _path_str = "layout.scene.annotation.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.scene.annotation' + _path_str = 'layout.scene.annotation.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.scene.annotation.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.scene.annotation.Font`""" - ) +an instance of :class:`plotly.graph_objs.layout.scene.annotation.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/annotation/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/layout/scene/annotation/_hoverlabel.py index 38a130745a9..9211d17531d 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/annotation/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/annotation/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Hoverlabel(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.scene.annotation" - _path_str = "layout.scene.annotation.hoverlabel" + _parent_path_str = 'layout.scene.annotation' + _path_str = 'layout.scene.annotation.hoverlabel' _valid_props = {"bgcolor", "bordercolor", "font"} # bgcolor @@ -24,52 +26,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -85,52 +52,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # font # ---- @@ -146,61 +78,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.scene.annotation.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # Self properties description # --------------------------- @@ -220,8 +106,13 @@ def _prop_descriptions(self): global hover font and size, with color from `hoverlabel.bordercolor`. """ - - def __init__(self, arg=None, bgcolor=None, bordercolor=None, font=None, **kwargs): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + font=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -248,10 +139,10 @@ def __init__(self, arg=None, bgcolor=None, bordercolor=None, font=None, **kwargs ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -263,32 +154,22 @@ def __init__(self, arg=None, bgcolor=None, bordercolor=None, font=None, **kwargs elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.scene.annotation.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.scene.annotation.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.layout.scene.annotation.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('font', arg, font) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/annotation/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/scene/annotation/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/annotation/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/annotation/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/annotation/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/layout/scene/annotation/hoverlabel/_font.py index e90d539336b..1129fadcf76 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/annotation/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/annotation/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.scene.annotation.hoverlabel" - _path_str = "layout.scene.annotation.hoverlabel.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.scene.annotation.hoverlabel' + _path_str = 'layout.scene.annotation.hoverlabel.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -378,10 +333,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -393,56 +348,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.scene.annotation.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.scene.annotation.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.layout.scene.annotation.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/camera/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/scene/camera/__init__.py index 9478fa29e01..165cf423251 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/camera/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/camera/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._center import Center from ._eye import Eye @@ -8,9 +7,10 @@ from ._up import Up else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._center.Center", "._eye.Eye", "._projection.Projection", "._up.Up"], + ['._center.Center', '._eye.Eye', '._projection.Projection', '._up.Up'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/camera/_center.py b/packages/python/plotly/plotly/graph_objs/layout/scene/camera/_center.py index 1d2e3dfb043..487f1f2a33a 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/camera/_center.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/camera/_center.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Center(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.scene.camera" - _path_str = "layout.scene.camera.center" + _parent_path_str = 'layout.scene.camera' + _path_str = 'layout.scene.camera.center' _valid_props = {"x", "y", "z"} # x @@ -22,11 +24,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @@ -40,11 +42,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # z # - @@ -58,11 +60,11 @@ def z(self): ------- int|float """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # Self properties description # --------------------------- @@ -76,8 +78,13 @@ def _prop_descriptions(self): z """ - - def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): + def __init__(self, + arg=None, + x=None, + y=None, + z=None, + **kwargs + ): """ Construct a new Center object @@ -102,10 +109,10 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Center """ - super(Center, self).__init__("center") + super(Center, self).__init__('center') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -117,32 +124,22 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.scene.camera.Center constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.scene.camera.Center`""" - ) +an instance of :class:`plotly.graph_objs.layout.scene.camera.Center`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) + self._init_provided('z', arg, z) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/camera/_eye.py b/packages/python/plotly/plotly/graph_objs/layout/scene/camera/_eye.py index 3c43284f61e..ad1309e753b 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/camera/_eye.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/camera/_eye.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Eye(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.scene.camera" - _path_str = "layout.scene.camera.eye" + _parent_path_str = 'layout.scene.camera' + _path_str = 'layout.scene.camera.eye' _valid_props = {"x", "y", "z"} # x @@ -22,11 +24,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @@ -40,11 +42,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # z # - @@ -58,11 +60,11 @@ def z(self): ------- int|float """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # Self properties description # --------------------------- @@ -76,8 +78,13 @@ def _prop_descriptions(self): z """ - - def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): + def __init__(self, + arg=None, + x=None, + y=None, + z=None, + **kwargs + ): """ Construct a new Eye object @@ -102,10 +109,10 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Eye """ - super(Eye, self).__init__("eye") + super(Eye, self).__init__('eye') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -117,32 +124,22 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.scene.camera.Eye constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.scene.camera.Eye`""" - ) +an instance of :class:`plotly.graph_objs.layout.scene.camera.Eye`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) + self._init_provided('z', arg, z) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/camera/_projection.py b/packages/python/plotly/plotly/graph_objs/layout/scene/camera/_projection.py index b0b87ba7946..8355449b2cf 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/camera/_projection.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/camera/_projection.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Projection(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.scene.camera" - _path_str = "layout.scene.camera.projection" + _parent_path_str = 'layout.scene.camera' + _path_str = 'layout.scene.camera.projection' _valid_props = {"type"} # type @@ -26,11 +28,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # Self properties description # --------------------------- @@ -42,8 +44,11 @@ def _prop_descriptions(self): either "perspective" or "orthographic". The default is "perspective". """ - - def __init__(self, arg=None, type=None, **kwargs): + def __init__(self, + arg=None, + type=None, + **kwargs + ): """ Construct a new Projection object @@ -62,10 +67,10 @@ def __init__(self, arg=None, type=None, **kwargs): ------- Projection """ - super(Projection, self).__init__("projection") + super(Projection, self).__init__('projection') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -77,24 +82,20 @@ def __init__(self, arg=None, type=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.scene.camera.Projection constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.scene.camera.Projection`""" - ) +an instance of :class:`plotly.graph_objs.layout.scene.camera.Projection`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v + self._init_provided('type', arg, type) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/camera/_up.py b/packages/python/plotly/plotly/graph_objs/layout/scene/camera/_up.py index 503519c0e2d..e55b369c347 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/camera/_up.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/camera/_up.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Up(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.scene.camera" - _path_str = "layout.scene.camera.up" + _parent_path_str = 'layout.scene.camera' + _path_str = 'layout.scene.camera.up' _valid_props = {"x", "y", "z"} # x @@ -22,11 +24,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @@ -40,11 +42,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # z # - @@ -58,11 +60,11 @@ def z(self): ------- int|float """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # Self properties description # --------------------------- @@ -76,8 +78,13 @@ def _prop_descriptions(self): z """ - - def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): + def __init__(self, + arg=None, + x=None, + y=None, + z=None, + **kwargs + ): """ Construct a new Up object @@ -103,10 +110,10 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Up """ - super(Up, self).__init__("up") + super(Up, self).__init__('up') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -118,32 +125,22 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.scene.camera.Up constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.scene.camera.Up`""" - ) +an instance of :class:`plotly.graph_objs.layout.scene.camera.Up`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) + self._init_provided('z', arg, z) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/__init__.py index 7004d6695b3..9608419f0db 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._autorangeoptions import Autorangeoptions from ._tickfont import Tickfont @@ -9,14 +8,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - [ - "._autorangeoptions.Autorangeoptions", - "._tickfont.Tickfont", - "._tickformatstop.Tickformatstop", - "._title.Title", - ], + ['.title'], + ['._autorangeoptions.Autorangeoptions', '._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/_autorangeoptions.py b/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/_autorangeoptions.py index 5513d919089..2d569a1f8d7 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/_autorangeoptions.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/_autorangeoptions.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,16 +8,9 @@ class Autorangeoptions(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.scene.xaxis" - _path_str = "layout.scene.xaxis.autorangeoptions" - _valid_props = { - "clipmax", - "clipmin", - "include", - "includesrc", - "maxallowed", - "minallowed", - } + _parent_path_str = 'layout.scene.xaxis' + _path_str = 'layout.scene.xaxis.autorangeoptions' + _valid_props = {"clipmax", "clipmin", "include", "includesrc", "maxallowed", "minallowed"} # clipmax # ------- @@ -31,11 +26,11 @@ def clipmax(self): ------- Any """ - return self["clipmax"] + return self['clipmax'] @clipmax.setter def clipmax(self, val): - self["clipmax"] = val + self['clipmax'] = val # clipmin # ------- @@ -51,11 +46,11 @@ def clipmin(self): ------- Any """ - return self["clipmin"] + return self['clipmin'] @clipmin.setter def clipmin(self, val): - self["clipmin"] = val + self['clipmin'] = val # include # ------- @@ -70,11 +65,11 @@ def include(self): ------- Any|numpy.ndarray """ - return self["include"] + return self['include'] @include.setter def include(self, val): - self["include"] = val + self['include'] = val # includesrc # ---------- @@ -90,11 +85,11 @@ def includesrc(self): ------- str """ - return self["includesrc"] + return self['includesrc'] @includesrc.setter def includesrc(self, val): - self["includesrc"] = val + self['includesrc'] = val # maxallowed # ---------- @@ -109,11 +104,11 @@ def maxallowed(self): ------- Any """ - return self["maxallowed"] + return self['maxallowed'] @maxallowed.setter def maxallowed(self, val): - self["maxallowed"] = val + self['maxallowed'] = val # minallowed # ---------- @@ -128,11 +123,11 @@ def minallowed(self): ------- Any """ - return self["minallowed"] + return self['minallowed'] @minallowed.setter def minallowed(self, val): - self["minallowed"] = val + self['minallowed'] = val # Self properties description # --------------------------- @@ -157,18 +152,16 @@ def _prop_descriptions(self): minallowed Use this value exactly as autorange minimum. """ - - def __init__( - self, - arg=None, - clipmax=None, - clipmin=None, - include=None, - includesrc=None, - maxallowed=None, - minallowed=None, - **kwargs, - ): + def __init__(self, + arg=None, + clipmax=None, + clipmin=None, + include=None, + includesrc=None, + maxallowed=None, + minallowed=None, + **kwargs + ): """ Construct a new Autorangeoptions object @@ -200,10 +193,10 @@ def __init__( ------- Autorangeoptions """ - super(Autorangeoptions, self).__init__("autorangeoptions") + super(Autorangeoptions, self).__init__('autorangeoptions') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -215,44 +208,25 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.scene.xaxis.Autorangeoptions constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.scene.xaxis.Autorangeoptions`""" - ) +an instance of :class:`plotly.graph_objs.layout.scene.xaxis.Autorangeoptions`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("clipmax", None) - _v = clipmax if clipmax is not None else _v - if _v is not None: - self["clipmax"] = _v - _v = arg.pop("clipmin", None) - _v = clipmin if clipmin is not None else _v - if _v is not None: - self["clipmin"] = _v - _v = arg.pop("include", None) - _v = include if include is not None else _v - if _v is not None: - self["include"] = _v - _v = arg.pop("includesrc", None) - _v = includesrc if includesrc is not None else _v - if _v is not None: - self["includesrc"] = _v - _v = arg.pop("maxallowed", None) - _v = maxallowed if maxallowed is not None else _v - if _v is not None: - self["maxallowed"] = _v - _v = arg.pop("minallowed", None) - _v = minallowed if minallowed is not None else _v - if _v is not None: - self["minallowed"] = _v + self._init_provided('clipmax', arg, clipmax) + self._init_provided('clipmin', arg, clipmin) + self._init_provided('include', arg, include) + self._init_provided('includesrc', arg, includesrc) + self._init_provided('maxallowed', arg, maxallowed) + self._init_provided('minallowed', arg, minallowed) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/_tickfont.py b/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/_tickfont.py index 3dd73b17abc..d5c92657468 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.scene.xaxis" - _path_str = "layout.scene.xaxis.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.scene.xaxis' + _path_str = 'layout.scene.xaxis.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.scene.xaxis.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.scene.xaxis.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.layout.scene.xaxis.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/_tickformatstop.py index d7d3fc22d70..dda18c09eb9 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.scene.xaxis" - _path_str = "layout.scene.xaxis.tickformatstop" + _parent_path_str = 'layout.scene.xaxis' + _path_str = 'layout.scene.xaxis.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseLayoutHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.scene.xaxis.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.scene.xaxis.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.layout.scene.xaxis.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/_title.py b/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/_title.py index b2f98fbb60d..375b9e7af11 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/_title.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.scene.xaxis" - _path_str = "layout.scene.xaxis.title" + _parent_path_str = 'layout.scene.xaxis' + _path_str = 'layout.scene.xaxis.title' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.scene.xaxis.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of this axis. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.scene.xaxis.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.scene.xaxis.Title`""" - ) +an instance of :class:`plotly.graph_objs.layout.scene.xaxis.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/title/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/title/_font.py b/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/title/_font.py index 4beada0babf..e5bb85dcdc7 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.scene.xaxis.title" - _path_str = "layout.scene.xaxis.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.scene.xaxis.title' + _path_str = 'layout.scene.xaxis.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.scene.xaxis.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.scene.xaxis.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.layout.scene.xaxis.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/__init__.py index 7004d6695b3..9608419f0db 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._autorangeoptions import Autorangeoptions from ._tickfont import Tickfont @@ -9,14 +8,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - [ - "._autorangeoptions.Autorangeoptions", - "._tickfont.Tickfont", - "._tickformatstop.Tickformatstop", - "._title.Title", - ], + ['.title'], + ['._autorangeoptions.Autorangeoptions', '._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/_autorangeoptions.py b/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/_autorangeoptions.py index 51f99b2c27e..3707a793211 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/_autorangeoptions.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/_autorangeoptions.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,16 +8,9 @@ class Autorangeoptions(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.scene.yaxis" - _path_str = "layout.scene.yaxis.autorangeoptions" - _valid_props = { - "clipmax", - "clipmin", - "include", - "includesrc", - "maxallowed", - "minallowed", - } + _parent_path_str = 'layout.scene.yaxis' + _path_str = 'layout.scene.yaxis.autorangeoptions' + _valid_props = {"clipmax", "clipmin", "include", "includesrc", "maxallowed", "minallowed"} # clipmax # ------- @@ -31,11 +26,11 @@ def clipmax(self): ------- Any """ - return self["clipmax"] + return self['clipmax'] @clipmax.setter def clipmax(self, val): - self["clipmax"] = val + self['clipmax'] = val # clipmin # ------- @@ -51,11 +46,11 @@ def clipmin(self): ------- Any """ - return self["clipmin"] + return self['clipmin'] @clipmin.setter def clipmin(self, val): - self["clipmin"] = val + self['clipmin'] = val # include # ------- @@ -70,11 +65,11 @@ def include(self): ------- Any|numpy.ndarray """ - return self["include"] + return self['include'] @include.setter def include(self, val): - self["include"] = val + self['include'] = val # includesrc # ---------- @@ -90,11 +85,11 @@ def includesrc(self): ------- str """ - return self["includesrc"] + return self['includesrc'] @includesrc.setter def includesrc(self, val): - self["includesrc"] = val + self['includesrc'] = val # maxallowed # ---------- @@ -109,11 +104,11 @@ def maxallowed(self): ------- Any """ - return self["maxallowed"] + return self['maxallowed'] @maxallowed.setter def maxallowed(self, val): - self["maxallowed"] = val + self['maxallowed'] = val # minallowed # ---------- @@ -128,11 +123,11 @@ def minallowed(self): ------- Any """ - return self["minallowed"] + return self['minallowed'] @minallowed.setter def minallowed(self, val): - self["minallowed"] = val + self['minallowed'] = val # Self properties description # --------------------------- @@ -157,18 +152,16 @@ def _prop_descriptions(self): minallowed Use this value exactly as autorange minimum. """ - - def __init__( - self, - arg=None, - clipmax=None, - clipmin=None, - include=None, - includesrc=None, - maxallowed=None, - minallowed=None, - **kwargs, - ): + def __init__(self, + arg=None, + clipmax=None, + clipmin=None, + include=None, + includesrc=None, + maxallowed=None, + minallowed=None, + **kwargs + ): """ Construct a new Autorangeoptions object @@ -200,10 +193,10 @@ def __init__( ------- Autorangeoptions """ - super(Autorangeoptions, self).__init__("autorangeoptions") + super(Autorangeoptions, self).__init__('autorangeoptions') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -215,44 +208,25 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.scene.yaxis.Autorangeoptions constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.scene.yaxis.Autorangeoptions`""" - ) +an instance of :class:`plotly.graph_objs.layout.scene.yaxis.Autorangeoptions`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("clipmax", None) - _v = clipmax if clipmax is not None else _v - if _v is not None: - self["clipmax"] = _v - _v = arg.pop("clipmin", None) - _v = clipmin if clipmin is not None else _v - if _v is not None: - self["clipmin"] = _v - _v = arg.pop("include", None) - _v = include if include is not None else _v - if _v is not None: - self["include"] = _v - _v = arg.pop("includesrc", None) - _v = includesrc if includesrc is not None else _v - if _v is not None: - self["includesrc"] = _v - _v = arg.pop("maxallowed", None) - _v = maxallowed if maxallowed is not None else _v - if _v is not None: - self["maxallowed"] = _v - _v = arg.pop("minallowed", None) - _v = minallowed if minallowed is not None else _v - if _v is not None: - self["minallowed"] = _v + self._init_provided('clipmax', arg, clipmax) + self._init_provided('clipmin', arg, clipmin) + self._init_provided('include', arg, include) + self._init_provided('includesrc', arg, includesrc) + self._init_provided('maxallowed', arg, maxallowed) + self._init_provided('minallowed', arg, minallowed) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/_tickfont.py b/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/_tickfont.py index 268c0432ab2..7e10b047499 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.scene.yaxis" - _path_str = "layout.scene.yaxis.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.scene.yaxis' + _path_str = 'layout.scene.yaxis.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.scene.yaxis.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.scene.yaxis.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.layout.scene.yaxis.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/_tickformatstop.py index 6f4c72426ec..dc740355ce8 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.scene.yaxis" - _path_str = "layout.scene.yaxis.tickformatstop" + _parent_path_str = 'layout.scene.yaxis' + _path_str = 'layout.scene.yaxis.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseLayoutHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.scene.yaxis.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.scene.yaxis.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.layout.scene.yaxis.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/_title.py b/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/_title.py index c0ddf835d5a..6b25069d840 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/_title.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.scene.yaxis" - _path_str = "layout.scene.yaxis.title" + _parent_path_str = 'layout.scene.yaxis' + _path_str = 'layout.scene.yaxis.title' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.scene.yaxis.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of this axis. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.scene.yaxis.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.scene.yaxis.Title`""" - ) +an instance of :class:`plotly.graph_objs.layout.scene.yaxis.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/title/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/title/_font.py b/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/title/_font.py index 4cda20e0a59..f899336e566 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.scene.yaxis.title" - _path_str = "layout.scene.yaxis.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.scene.yaxis.title' + _path_str = 'layout.scene.yaxis.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.scene.yaxis.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.scene.yaxis.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.layout.scene.yaxis.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/__init__.py index 7004d6695b3..9608419f0db 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._autorangeoptions import Autorangeoptions from ._tickfont import Tickfont @@ -9,14 +8,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - [ - "._autorangeoptions.Autorangeoptions", - "._tickfont.Tickfont", - "._tickformatstop.Tickformatstop", - "._title.Title", - ], + ['.title'], + ['._autorangeoptions.Autorangeoptions', '._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/_autorangeoptions.py b/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/_autorangeoptions.py index 64a49fbb7ea..383c390b528 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/_autorangeoptions.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/_autorangeoptions.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,16 +8,9 @@ class Autorangeoptions(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.scene.zaxis" - _path_str = "layout.scene.zaxis.autorangeoptions" - _valid_props = { - "clipmax", - "clipmin", - "include", - "includesrc", - "maxallowed", - "minallowed", - } + _parent_path_str = 'layout.scene.zaxis' + _path_str = 'layout.scene.zaxis.autorangeoptions' + _valid_props = {"clipmax", "clipmin", "include", "includesrc", "maxallowed", "minallowed"} # clipmax # ------- @@ -31,11 +26,11 @@ def clipmax(self): ------- Any """ - return self["clipmax"] + return self['clipmax'] @clipmax.setter def clipmax(self, val): - self["clipmax"] = val + self['clipmax'] = val # clipmin # ------- @@ -51,11 +46,11 @@ def clipmin(self): ------- Any """ - return self["clipmin"] + return self['clipmin'] @clipmin.setter def clipmin(self, val): - self["clipmin"] = val + self['clipmin'] = val # include # ------- @@ -70,11 +65,11 @@ def include(self): ------- Any|numpy.ndarray """ - return self["include"] + return self['include'] @include.setter def include(self, val): - self["include"] = val + self['include'] = val # includesrc # ---------- @@ -90,11 +85,11 @@ def includesrc(self): ------- str """ - return self["includesrc"] + return self['includesrc'] @includesrc.setter def includesrc(self, val): - self["includesrc"] = val + self['includesrc'] = val # maxallowed # ---------- @@ -109,11 +104,11 @@ def maxallowed(self): ------- Any """ - return self["maxallowed"] + return self['maxallowed'] @maxallowed.setter def maxallowed(self, val): - self["maxallowed"] = val + self['maxallowed'] = val # minallowed # ---------- @@ -128,11 +123,11 @@ def minallowed(self): ------- Any """ - return self["minallowed"] + return self['minallowed'] @minallowed.setter def minallowed(self, val): - self["minallowed"] = val + self['minallowed'] = val # Self properties description # --------------------------- @@ -157,18 +152,16 @@ def _prop_descriptions(self): minallowed Use this value exactly as autorange minimum. """ - - def __init__( - self, - arg=None, - clipmax=None, - clipmin=None, - include=None, - includesrc=None, - maxallowed=None, - minallowed=None, - **kwargs, - ): + def __init__(self, + arg=None, + clipmax=None, + clipmin=None, + include=None, + includesrc=None, + maxallowed=None, + minallowed=None, + **kwargs + ): """ Construct a new Autorangeoptions object @@ -200,10 +193,10 @@ def __init__( ------- Autorangeoptions """ - super(Autorangeoptions, self).__init__("autorangeoptions") + super(Autorangeoptions, self).__init__('autorangeoptions') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -215,44 +208,25 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.scene.zaxis.Autorangeoptions constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.scene.zaxis.Autorangeoptions`""" - ) +an instance of :class:`plotly.graph_objs.layout.scene.zaxis.Autorangeoptions`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("clipmax", None) - _v = clipmax if clipmax is not None else _v - if _v is not None: - self["clipmax"] = _v - _v = arg.pop("clipmin", None) - _v = clipmin if clipmin is not None else _v - if _v is not None: - self["clipmin"] = _v - _v = arg.pop("include", None) - _v = include if include is not None else _v - if _v is not None: - self["include"] = _v - _v = arg.pop("includesrc", None) - _v = includesrc if includesrc is not None else _v - if _v is not None: - self["includesrc"] = _v - _v = arg.pop("maxallowed", None) - _v = maxallowed if maxallowed is not None else _v - if _v is not None: - self["maxallowed"] = _v - _v = arg.pop("minallowed", None) - _v = minallowed if minallowed is not None else _v - if _v is not None: - self["minallowed"] = _v + self._init_provided('clipmax', arg, clipmax) + self._init_provided('clipmin', arg, clipmin) + self._init_provided('include', arg, include) + self._init_provided('includesrc', arg, includesrc) + self._init_provided('maxallowed', arg, maxallowed) + self._init_provided('minallowed', arg, minallowed) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/_tickfont.py b/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/_tickfont.py index 532537a3879..46f0278fe05 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.scene.zaxis" - _path_str = "layout.scene.zaxis.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.scene.zaxis' + _path_str = 'layout.scene.zaxis.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.scene.zaxis.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.scene.zaxis.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.layout.scene.zaxis.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/_tickformatstop.py index c5ebcd31841..21ce503e936 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.scene.zaxis" - _path_str = "layout.scene.zaxis.tickformatstop" + _parent_path_str = 'layout.scene.zaxis' + _path_str = 'layout.scene.zaxis.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseLayoutHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.scene.zaxis.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.scene.zaxis.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.layout.scene.zaxis.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/_title.py b/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/_title.py index 4e0739754a4..23bb3b28026 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/_title.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.scene.zaxis" - _path_str = "layout.scene.zaxis.title" + _parent_path_str = 'layout.scene.zaxis' + _path_str = 'layout.scene.zaxis.title' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.scene.zaxis.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of this axis. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.scene.zaxis.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.scene.zaxis.Title`""" - ) +an instance of :class:`plotly.graph_objs.layout.scene.zaxis.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/title/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/title/_font.py b/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/title/_font.py index cb23aedeed3..1d505b77c76 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.scene.zaxis.title" - _path_str = "layout.scene.zaxis.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.scene.zaxis.title' + _path_str = 'layout.scene.zaxis.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.scene.zaxis.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.scene.zaxis.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.layout.scene.zaxis.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/selection/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/selection/__init__.py index 8722c15a2b8..a745ef6458a 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/selection/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/selection/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import Line else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._line.Line'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._line.Line"]) diff --git a/packages/python/plotly/plotly/graph_objs/layout/selection/_line.py b/packages/python/plotly/plotly/graph_objs/layout/selection/_line.py index 7a8ea631772..eaf648a3d7f 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/selection/_line.py +++ b/packages/python/plotly/plotly/graph_objs/layout/selection/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.selection" - _path_str = "layout.selection.line" + _parent_path_str = 'layout.selection' + _path_str = 'layout.selection.line' _valid_props = {"color", "dash", "width"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # dash # ---- @@ -89,11 +56,11 @@ def dash(self): ------- str """ - return self["dash"] + return self['dash'] @dash.setter def dash(self, val): - self["dash"] = val + self['dash'] = val # width # ----- @@ -109,11 +76,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -130,8 +97,13 @@ def _prop_descriptions(self): width Sets the line width (in px). """ - - def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): + def __init__(self, + arg=None, + color=None, + dash=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -155,10 +127,10 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -170,32 +142,22 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.selection.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.selection.Line`""" - ) +an instance of :class:`plotly.graph_objs.layout.selection.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("dash", None) - _v = dash if dash is not None else _v - if _v is not None: - self["dash"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('dash', arg, dash) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/shape/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/shape/__init__.py index dd5947b0496..d6a6449c75e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/shape/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/shape/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._label import Label from ._legendgrouptitle import Legendgrouptitle @@ -9,9 +8,10 @@ from . import legendgrouptitle else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".label", ".legendgrouptitle"], - ["._label.Label", "._legendgrouptitle.Legendgrouptitle", "._line.Line"], + ['.label', '.legendgrouptitle'], + ['._label.Label', '._legendgrouptitle.Legendgrouptitle', '._line.Line'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/shape/_label.py b/packages/python/plotly/plotly/graph_objs/layout/shape/_label.py index 580b0eb6276..262687627e6 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/shape/_label.py +++ b/packages/python/plotly/plotly/graph_objs/layout/shape/_label.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,18 +8,9 @@ class Label(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.shape" - _path_str = "layout.shape.label" - _valid_props = { - "font", - "padding", - "text", - "textangle", - "textposition", - "texttemplate", - "xanchor", - "yanchor", - } + _parent_path_str = 'layout.shape' + _path_str = 'layout.shape.label' + _valid_props = {"font", "padding", "text", "textangle", "textposition", "texttemplate", "xanchor", "yanchor"} # font # ---- @@ -32,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.shape.label.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # padding # ------- @@ -102,11 +49,11 @@ def padding(self): ------- int|float """ - return self["padding"] + return self['padding'] @padding.setter def padding(self, val): - self["padding"] = val + self['padding'] = val # text # ---- @@ -124,11 +71,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # textangle # --------- @@ -148,11 +95,11 @@ def textangle(self): ------- int|float """ - return self["textangle"] + return self['textangle'] @textangle.setter def textangle(self, val): - self["textangle"] = val + self['textangle'] = val # textposition # ------------ @@ -177,11 +124,11 @@ def textposition(self): ------- Any """ - return self["textposition"] + return self['textposition'] @textposition.setter def textposition(self, val): - self["textposition"] = val + self['textposition'] = val # texttemplate # ------------ @@ -217,11 +164,11 @@ def texttemplate(self): ------- str """ - return self["texttemplate"] + return self['texttemplate'] @texttemplate.setter def texttemplate(self, val): - self["texttemplate"] = val + self['texttemplate'] = val # xanchor # ------- @@ -243,11 +190,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # yanchor # ------- @@ -268,11 +215,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # Self properties description # --------------------------- @@ -340,20 +287,18 @@ def _prop_descriptions(self): "top" then the top-most portion of the label text lines up with the top-most edge of the shape. """ - - def __init__( - self, - arg=None, - font=None, - padding=None, - text=None, - textangle=None, - textposition=None, - texttemplate=None, - xanchor=None, - yanchor=None, - **kwargs, - ): + def __init__(self, + arg=None, + font=None, + padding=None, + text=None, + textangle=None, + textposition=None, + texttemplate=None, + xanchor=None, + yanchor=None, + **kwargs + ): """ Construct a new Label object @@ -428,10 +373,10 @@ def __init__( ------- Label """ - super(Label, self).__init__("label") + super(Label, self).__init__('label') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -443,52 +388,27 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.shape.Label constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.shape.Label`""" - ) +an instance of :class:`plotly.graph_objs.layout.shape.Label`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("padding", None) - _v = padding if padding is not None else _v - if _v is not None: - self["padding"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v - _v = arg.pop("textangle", None) - _v = textangle if textangle is not None else _v - if _v is not None: - self["textangle"] = _v - _v = arg.pop("textposition", None) - _v = textposition if textposition is not None else _v - if _v is not None: - self["textposition"] = _v - _v = arg.pop("texttemplate", None) - _v = texttemplate if texttemplate is not None else _v - if _v is not None: - self["texttemplate"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v + self._init_provided('font', arg, font) + self._init_provided('padding', arg, padding) + self._init_provided('text', arg, text) + self._init_provided('textangle', arg, textangle) + self._init_provided('textposition', arg, textposition) + self._init_provided('texttemplate', arg, texttemplate) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('yanchor', arg, yanchor) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/shape/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/layout/shape/_legendgrouptitle.py index d9be0874373..f9249f88a7d 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/shape/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/layout/shape/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.shape" - _path_str = "layout.shape.legendgrouptitle" + _parent_path_str = 'layout.shape' + _path_str = 'layout.shape.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.shape.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.shape.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.shape.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.layout.shape.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/shape/_line.py b/packages/python/plotly/plotly/graph_objs/layout/shape/_line.py index cdddbeee78a..0859ffcf295 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/shape/_line.py +++ b/packages/python/plotly/plotly/graph_objs/layout/shape/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.shape" - _path_str = "layout.shape.line" + _parent_path_str = 'layout.shape' + _path_str = 'layout.shape.line' _valid_props = {"color", "dash", "width"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # dash # ---- @@ -89,11 +56,11 @@ def dash(self): ------- str """ - return self["dash"] + return self['dash'] @dash.setter def dash(self, val): - self["dash"] = val + self['dash'] = val # width # ----- @@ -109,11 +76,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -130,8 +97,13 @@ def _prop_descriptions(self): width Sets the line width (in px). """ - - def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): + def __init__(self, + arg=None, + color=None, + dash=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -155,10 +127,10 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -170,32 +142,22 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.shape.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.shape.Line`""" - ) +an instance of :class:`plotly.graph_objs.layout.shape.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("dash", None) - _v = dash if dash is not None else _v - if _v is not None: - self["dash"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('dash', arg, dash) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/shape/label/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/shape/label/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/shape/label/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/shape/label/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/layout/shape/label/_font.py b/packages/python/plotly/plotly/graph_objs/layout/shape/label/_font.py index 19d7cd5103b..dc5936f7652 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/shape/label/_font.py +++ b/packages/python/plotly/plotly/graph_objs/layout/shape/label/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.shape.label" - _path_str = "layout.shape.label.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.shape.label' + _path_str = 'layout.shape.label.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.shape.label.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.shape.label.Font`""" - ) +an instance of :class:`plotly.graph_objs.layout.shape.label.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/shape/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/shape/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/shape/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/shape/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/layout/shape/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/layout/shape/legendgrouptitle/_font.py index 0e35784692f..fa30e6f0674 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/shape/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/layout/shape/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.shape.legendgrouptitle" - _path_str = "layout.shape.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.shape.legendgrouptitle' + _path_str = 'layout.shape.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.shape.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.shape.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.layout.shape.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/slider/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/slider/__init__.py index 7d9334c1505..c06159973df 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/slider/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/slider/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._currentvalue import Currentvalue from ._font import Font @@ -10,15 +9,10 @@ from . import currentvalue else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".currentvalue"], - [ - "._currentvalue.Currentvalue", - "._font.Font", - "._pad.Pad", - "._step.Step", - "._transition.Transition", - ], + ['.currentvalue'], + ['._currentvalue.Currentvalue', '._font.Font', '._pad.Pad', '._step.Step', '._transition.Transition'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/slider/_currentvalue.py b/packages/python/plotly/plotly/graph_objs/layout/slider/_currentvalue.py index 61cdc95aba6..63a64619693 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/slider/_currentvalue.py +++ b/packages/python/plotly/plotly/graph_objs/layout/slider/_currentvalue.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Currentvalue(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.slider" - _path_str = "layout.slider.currentvalue" + _parent_path_str = 'layout.slider' + _path_str = 'layout.slider.currentvalue' _valid_props = {"font", "offset", "prefix", "suffix", "visible", "xanchor"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.slider.currentvalue.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # offset # ------ @@ -94,11 +50,11 @@ def offset(self): ------- int|float """ - return self["offset"] + return self['offset'] @offset.setter def offset(self, val): - self["offset"] = val + self['offset'] = val # prefix # ------ @@ -116,11 +72,11 @@ def prefix(self): ------- str """ - return self["prefix"] + return self['prefix'] @prefix.setter def prefix(self, val): - self["prefix"] = val + self['prefix'] = val # suffix # ------ @@ -138,11 +94,11 @@ def suffix(self): ------- str """ - return self["suffix"] + return self['suffix'] @suffix.setter def suffix(self, val): - self["suffix"] = val + self['suffix'] = val # visible # ------- @@ -158,11 +114,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # xanchor # ------- @@ -180,11 +136,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # Self properties description # --------------------------- @@ -208,18 +164,16 @@ def _prop_descriptions(self): The alignment of the value readout relative to the length of the slider. """ - - def __init__( - self, - arg=None, - font=None, - offset=None, - prefix=None, - suffix=None, - visible=None, - xanchor=None, - **kwargs, - ): + def __init__(self, + arg=None, + font=None, + offset=None, + prefix=None, + suffix=None, + visible=None, + xanchor=None, + **kwargs + ): """ Construct a new Currentvalue object @@ -250,10 +204,10 @@ def __init__( ------- Currentvalue """ - super(Currentvalue, self).__init__("currentvalue") + super(Currentvalue, self).__init__('currentvalue') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -265,44 +219,25 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.slider.Currentvalue constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.slider.Currentvalue`""" - ) +an instance of :class:`plotly.graph_objs.layout.slider.Currentvalue`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("offset", None) - _v = offset if offset is not None else _v - if _v is not None: - self["offset"] = _v - _v = arg.pop("prefix", None) - _v = prefix if prefix is not None else _v - if _v is not None: - self["prefix"] = _v - _v = arg.pop("suffix", None) - _v = suffix if suffix is not None else _v - if _v is not None: - self["suffix"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v + self._init_provided('font', arg, font) + self._init_provided('offset', arg, offset) + self._init_provided('prefix', arg, prefix) + self._init_provided('suffix', arg, suffix) + self._init_provided('visible', arg, visible) + self._init_provided('xanchor', arg, xanchor) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/slider/_font.py b/packages/python/plotly/plotly/graph_objs/layout/slider/_font.py index f727d35bf66..8e7e540aea6 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/slider/_font.py +++ b/packages/python/plotly/plotly/graph_objs/layout/slider/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.slider" - _path_str = "layout.slider.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.slider' + _path_str = 'layout.slider.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.slider.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.slider.Font`""" - ) +an instance of :class:`plotly.graph_objs.layout.slider.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/slider/_pad.py b/packages/python/plotly/plotly/graph_objs/layout/slider/_pad.py index 89b85a83d8e..63f063e0137 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/slider/_pad.py +++ b/packages/python/plotly/plotly/graph_objs/layout/slider/_pad.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Pad(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.slider" - _path_str = "layout.slider.pad" + _parent_path_str = 'layout.slider' + _path_str = 'layout.slider.pad' _valid_props = {"b", "l", "r", "t"} # b @@ -25,11 +27,11 @@ def b(self): ------- int|float """ - return self["b"] + return self['b'] @b.setter def b(self, val): - self["b"] = val + self['b'] = val # l # - @@ -46,11 +48,11 @@ def l(self): ------- int|float """ - return self["l"] + return self['l'] @l.setter def l(self, val): - self["l"] = val + self['l'] = val # r # - @@ -67,11 +69,11 @@ def r(self): ------- int|float """ - return self["r"] + return self['r'] @r.setter def r(self, val): - self["r"] = val + self['r'] = val # t # - @@ -87,11 +89,11 @@ def t(self): ------- int|float """ - return self["t"] + return self['t'] @t.setter def t(self, val): - self["t"] = val + self['t'] = val # Self properties description # --------------------------- @@ -111,8 +113,14 @@ def _prop_descriptions(self): The amount of padding (in px) along the top of the component. """ - - def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs): + def __init__(self, + arg=None, + b=None, + l=None, + r=None, + t=None, + **kwargs + ): """ Construct a new Pad object @@ -141,10 +149,10 @@ def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs): ------- Pad """ - super(Pad, self).__init__("pad") + super(Pad, self).__init__('pad') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -156,36 +164,23 @@ def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.slider.Pad constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.slider.Pad`""" - ) +an instance of :class:`plotly.graph_objs.layout.slider.Pad`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("b", None) - _v = b if b is not None else _v - if _v is not None: - self["b"] = _v - _v = arg.pop("l", None) - _v = l if l is not None else _v - if _v is not None: - self["l"] = _v - _v = arg.pop("r", None) - _v = r if r is not None else _v - if _v is not None: - self["r"] = _v - _v = arg.pop("t", None) - _v = t if t is not None else _v - if _v is not None: - self["t"] = _v + self._init_provided('b', arg, b) + self._init_provided('l', arg, l) + self._init_provided('r', arg, r) + self._init_provided('t', arg, t) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/slider/_step.py b/packages/python/plotly/plotly/graph_objs/layout/slider/_step.py index 67a6efa0c0e..f2d9380d60e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/slider/_step.py +++ b/packages/python/plotly/plotly/graph_objs/layout/slider/_step.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,43 +8,34 @@ class Step(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.slider" - _path_str = "layout.slider.step" - _valid_props = { - "args", - "execute", - "label", - "method", - "name", - "templateitemname", - "value", - "visible", - } + _parent_path_str = 'layout.slider' + _path_str = 'layout.slider.step' + _valid_props = {"args", "execute", "label", "method", "name", "templateitemname", "value", "visible"} # args # ---- @property def args(self): """ - Sets the arguments values to be passed to the Plotly method set - in `method` on slide. - - The 'args' property is an info array that may be specified as: + Sets the arguments values to be passed to the Plotly method set + in `method` on slide. - * a list or tuple of up to 3 elements where: - (0) The 'args[0]' property accepts values of any type - (1) The 'args[1]' property accepts values of any type - (2) The 'args[2]' property accepts values of any type + The 'args' property is an info array that may be specified as: + + * a list or tuple of up to 3 elements where: + (0) The 'args[0]' property accepts values of any type + (1) The 'args[1]' property accepts values of any type + (2) The 'args[2]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["args"] + return self['args'] @args.setter def args(self, val): - self["args"] = val + self['args'] = val # execute # ------- @@ -64,11 +57,11 @@ def execute(self): ------- bool """ - return self["execute"] + return self['execute'] @execute.setter def execute(self, val): - self["execute"] = val + self['execute'] = val # label # ----- @@ -85,11 +78,11 @@ def label(self): ------- str """ - return self["label"] + return self['label'] @label.setter def label(self, val): - self["label"] = val + self['label'] = val # method # ------ @@ -111,11 +104,11 @@ def method(self): ------- Any """ - return self["method"] + return self['method'] @method.setter def method(self, val): - self["method"] = val + self['method'] = val # name # ---- @@ -138,11 +131,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -166,11 +159,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -188,11 +181,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # visible # ------- @@ -208,11 +201,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # Self properties description # --------------------------- @@ -266,20 +259,18 @@ def _prop_descriptions(self): Determines whether or not this step is included in the slider. """ - - def __init__( - self, - arg=None, - args=None, - execute=None, - label=None, - method=None, - name=None, - templateitemname=None, - value=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + args=None, + execute=None, + label=None, + method=None, + name=None, + templateitemname=None, + value=None, + visible=None, + **kwargs + ): """ Construct a new Step object @@ -340,10 +331,10 @@ def __init__( ------- Step """ - super(Step, self).__init__("steps") + super(Step, self).__init__('steps') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -355,52 +346,27 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.slider.Step constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.slider.Step`""" - ) +an instance of :class:`plotly.graph_objs.layout.slider.Step`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("args", None) - _v = args if args is not None else _v - if _v is not None: - self["args"] = _v - _v = arg.pop("execute", None) - _v = execute if execute is not None else _v - if _v is not None: - self["execute"] = _v - _v = arg.pop("label", None) - _v = label if label is not None else _v - if _v is not None: - self["label"] = _v - _v = arg.pop("method", None) - _v = method if method is not None else _v - if _v is not None: - self["method"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('args', arg, args) + self._init_provided('execute', arg, execute) + self._init_provided('label', arg, label) + self._init_provided('method', arg, method) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) + self._init_provided('visible', arg, visible) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/slider/_transition.py b/packages/python/plotly/plotly/graph_objs/layout/slider/_transition.py index 9565cfb6bf8..b5ed3f52ac8 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/slider/_transition.py +++ b/packages/python/plotly/plotly/graph_objs/layout/slider/_transition.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Transition(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.slider" - _path_str = "layout.slider.transition" + _parent_path_str = 'layout.slider' + _path_str = 'layout.slider.transition' _valid_props = {"duration", "easing"} # duration @@ -24,11 +26,11 @@ def duration(self): ------- int|float """ - return self["duration"] + return self['duration'] @duration.setter def duration(self, val): - self["duration"] = val + self['duration'] = val # easing # ------ @@ -53,11 +55,11 @@ def easing(self): ------- Any """ - return self["easing"] + return self['easing'] @easing.setter def easing(self, val): - self["easing"] = val + self['easing'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): easing Sets the easing function of the slider transition """ - - def __init__(self, arg=None, duration=None, easing=None, **kwargs): + def __init__(self, + arg=None, + duration=None, + easing=None, + **kwargs + ): """ Construct a new Transition object @@ -89,10 +95,10 @@ def __init__(self, arg=None, duration=None, easing=None, **kwargs): ------- Transition """ - super(Transition, self).__init__("transition") + super(Transition, self).__init__('transition') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -104,28 +110,21 @@ def __init__(self, arg=None, duration=None, easing=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.slider.Transition constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.slider.Transition`""" - ) +an instance of :class:`plotly.graph_objs.layout.slider.Transition`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("duration", None) - _v = duration if duration is not None else _v - if _v is not None: - self["duration"] = _v - _v = arg.pop("easing", None) - _v = easing if easing is not None else _v - if _v is not None: - self["easing"] = _v + self._init_provided('duration', arg, duration) + self._init_provided('easing', arg, easing) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/slider/currentvalue/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/slider/currentvalue/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/slider/currentvalue/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/slider/currentvalue/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/layout/slider/currentvalue/_font.py b/packages/python/plotly/plotly/graph_objs/layout/slider/currentvalue/_font.py index 761196a2b3f..0a7444f1dc5 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/slider/currentvalue/_font.py +++ b/packages/python/plotly/plotly/graph_objs/layout/slider/currentvalue/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.slider.currentvalue" - _path_str = "layout.slider.currentvalue.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.slider.currentvalue' + _path_str = 'layout.slider.currentvalue.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.slider.currentvalue.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.slider.currentvalue.Font`""" - ) +an instance of :class:`plotly.graph_objs.layout.slider.currentvalue.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/smith/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/smith/__init__.py index 0ebc73bd0ae..4dc0e936704 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/smith/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/smith/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._domain import Domain from ._imaginaryaxis import Imaginaryaxis @@ -9,9 +8,10 @@ from . import realaxis else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".imaginaryaxis", ".realaxis"], - ["._domain.Domain", "._imaginaryaxis.Imaginaryaxis", "._realaxis.Realaxis"], + ['.imaginaryaxis', '.realaxis'], + ['._domain.Domain', '._imaginaryaxis.Imaginaryaxis', '._realaxis.Realaxis'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/smith/_domain.py b/packages/python/plotly/plotly/graph_objs/layout/smith/_domain.py index 09870f36937..27a88122c7e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/smith/_domain.py +++ b/packages/python/plotly/plotly/graph_objs/layout/smith/_domain.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Domain(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.smith" - _path_str = "layout.smith.domain" + _parent_path_str = 'layout.smith' + _path_str = 'layout.smith.domain' _valid_props = {"column", "row", "x", "y"} # column @@ -26,11 +28,11 @@ def column(self): ------- int """ - return self["column"] + return self['column'] @column.setter def column(self, val): - self["column"] = val + self['column'] = val # row # --- @@ -48,63 +50,63 @@ def row(self): ------- int """ - return self["row"] + return self['row'] @row.setter def row(self, val): - self["row"] = val + self['row'] = val # x # - @property def x(self): """ - Sets the horizontal domain of this smith subplot (in plot - fraction). + Sets the horizontal domain of this smith subplot (in plot + fraction). - The 'x' property is an info array that may be specified as: + The 'x' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'x[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'x[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - * a list or tuple of 2 elements where: - (0) The 'x[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'x[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - - Returns - ------- - list + Returns + ------- + list """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @property def y(self): """ - Sets the vertical domain of this smith subplot (in plot - fraction). - - The 'y' property is an info array that may be specified as: + Sets the vertical domain of this smith subplot (in plot + fraction). - * a list or tuple of 2 elements where: - (0) The 'y[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'y[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] + The 'y' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'y[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'y[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - Returns - ------- - list + Returns + ------- + list """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # Self properties description # --------------------------- @@ -124,8 +126,14 @@ def _prop_descriptions(self): Sets the vertical domain of this smith subplot (in plot fraction). """ - - def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): + def __init__(self, + arg=None, + column=None, + row=None, + x=None, + y=None, + **kwargs + ): """ Construct a new Domain object @@ -152,10 +160,10 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") + super(Domain, self).__init__('domain') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -167,36 +175,23 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.smith.Domain constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.smith.Domain`""" - ) +an instance of :class:`plotly.graph_objs.layout.smith.Domain`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("column", None) - _v = column if column is not None else _v - if _v is not None: - self["column"] = _v - _v = arg.pop("row", None) - _v = row if row is not None else _v - if _v is not None: - self["row"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v + self._init_provided('column', arg, column) + self._init_provided('row', arg, row) + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/smith/_imaginaryaxis.py b/packages/python/plotly/plotly/graph_objs/layout/smith/_imaginaryaxis.py index 7a666c1e53a..4afe912841e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/smith/_imaginaryaxis.py +++ b/packages/python/plotly/plotly/graph_objs/layout/smith/_imaginaryaxis.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,35 +8,9 @@ class Imaginaryaxis(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.smith" - _path_str = "layout.smith.imaginaryaxis" - _valid_props = { - "color", - "gridcolor", - "griddash", - "gridwidth", - "hoverformat", - "labelalias", - "layer", - "linecolor", - "linewidth", - "showgrid", - "showline", - "showticklabels", - "showtickprefix", - "showticksuffix", - "tickcolor", - "tickfont", - "tickformat", - "ticklen", - "tickprefix", - "ticks", - "ticksuffix", - "tickvals", - "tickvalssrc", - "tickwidth", - "visible", - } + _parent_path_str = 'layout.smith' + _path_str = 'layout.smith.imaginaryaxis' + _valid_props = {"color", "gridcolor", "griddash", "gridwidth", "hoverformat", "labelalias", "layer", "linecolor", "linewidth", "showgrid", "showline", "showticklabels", "showtickprefix", "showticksuffix", "tickcolor", "tickfont", "tickformat", "ticklen", "tickprefix", "ticks", "ticksuffix", "tickvals", "tickvalssrc", "tickwidth", "visible"} # color # ----- @@ -51,52 +27,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # gridcolor # --------- @@ -110,52 +51,17 @@ def gridcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["gridcolor"] + return self['gridcolor'] @gridcolor.setter def gridcolor(self, val): - self["gridcolor"] = val + self['gridcolor'] = val # griddash # -------- @@ -177,11 +83,11 @@ def griddash(self): ------- str """ - return self["griddash"] + return self['griddash'] @griddash.setter def griddash(self, val): - self["griddash"] = val + self['griddash'] = val # gridwidth # --------- @@ -197,11 +103,11 @@ def gridwidth(self): ------- int|float """ - return self["gridwidth"] + return self['gridwidth'] @gridwidth.setter def gridwidth(self, val): - self["gridwidth"] = val + self['gridwidth'] = val # hoverformat # ----------- @@ -227,11 +133,11 @@ def hoverformat(self): ------- str """ - return self["hoverformat"] + return self['hoverformat'] @hoverformat.setter def hoverformat(self, val): - self["hoverformat"] = val + self['hoverformat'] = val # labelalias # ---------- @@ -254,11 +160,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # layer # ----- @@ -280,11 +186,11 @@ def layer(self): ------- Any """ - return self["layer"] + return self['layer'] @layer.setter def layer(self, val): - self["layer"] = val + self['layer'] = val # linecolor # --------- @@ -298,52 +204,17 @@ def linecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["linecolor"] + return self['linecolor'] @linecolor.setter def linecolor(self, val): - self["linecolor"] = val + self['linecolor'] = val # linewidth # --------- @@ -359,11 +230,11 @@ def linewidth(self): ------- int|float """ - return self["linewidth"] + return self['linewidth'] @linewidth.setter def linewidth(self, val): - self["linewidth"] = val + self['linewidth'] = val # showgrid # -------- @@ -380,11 +251,11 @@ def showgrid(self): ------- bool """ - return self["showgrid"] + return self['showgrid'] @showgrid.setter def showgrid(self, val): - self["showgrid"] = val + self['showgrid'] = val # showline # -------- @@ -400,11 +271,11 @@ def showline(self): ------- bool """ - return self["showline"] + return self['showline'] @showline.setter def showline(self, val): - self["showline"] = val + self['showline'] = val # showticklabels # -------------- @@ -420,11 +291,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -444,11 +315,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -465,11 +336,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # tickcolor # --------- @@ -483,52 +354,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -543,61 +379,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.smith.imaginaryaxis.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -623,11 +413,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # ticklen # ------- @@ -643,11 +433,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickprefix # ---------- @@ -664,11 +454,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -687,11 +477,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -708,11 +498,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # tickvals # -------- @@ -729,11 +519,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -749,11 +539,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -769,11 +559,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # visible # ------- @@ -791,11 +581,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # Self properties description # --------------------------- @@ -906,37 +696,35 @@ def _prop_descriptions(self): interaction like dragging. Default is true when a cheater plot is present on the axis, otherwise false """ - - def __init__( - self, - arg=None, - color=None, - gridcolor=None, - griddash=None, - gridwidth=None, - hoverformat=None, - labelalias=None, - layer=None, - linecolor=None, - linewidth=None, - showgrid=None, - showline=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - tickcolor=None, - tickfont=None, - tickformat=None, - ticklen=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + gridcolor=None, + griddash=None, + gridwidth=None, + hoverformat=None, + labelalias=None, + layer=None, + linecolor=None, + linewidth=None, + showgrid=None, + showline=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + tickcolor=None, + tickfont=None, + tickformat=None, + ticklen=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + visible=None, + **kwargs + ): """ Construct a new Imaginaryaxis object @@ -1054,10 +842,10 @@ def __init__( ------- Imaginaryaxis """ - super(Imaginaryaxis, self).__init__("imaginaryaxis") + super(Imaginaryaxis, self).__init__('imaginaryaxis') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1069,120 +857,44 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.smith.Imaginaryaxis constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.smith.Imaginaryaxis`""" - ) +an instance of :class:`plotly.graph_objs.layout.smith.Imaginaryaxis`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("gridcolor", None) - _v = gridcolor if gridcolor is not None else _v - if _v is not None: - self["gridcolor"] = _v - _v = arg.pop("griddash", None) - _v = griddash if griddash is not None else _v - if _v is not None: - self["griddash"] = _v - _v = arg.pop("gridwidth", None) - _v = gridwidth if gridwidth is not None else _v - if _v is not None: - self["gridwidth"] = _v - _v = arg.pop("hoverformat", None) - _v = hoverformat if hoverformat is not None else _v - if _v is not None: - self["hoverformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("layer", None) - _v = layer if layer is not None else _v - if _v is not None: - self["layer"] = _v - _v = arg.pop("linecolor", None) - _v = linecolor if linecolor is not None else _v - if _v is not None: - self["linecolor"] = _v - _v = arg.pop("linewidth", None) - _v = linewidth if linewidth is not None else _v - if _v is not None: - self["linewidth"] = _v - _v = arg.pop("showgrid", None) - _v = showgrid if showgrid is not None else _v - if _v is not None: - self["showgrid"] = _v - _v = arg.pop("showline", None) - _v = showline if showline is not None else _v - if _v is not None: - self["showline"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('color', arg, color) + self._init_provided('gridcolor', arg, gridcolor) + self._init_provided('griddash', arg, griddash) + self._init_provided('gridwidth', arg, gridwidth) + self._init_provided('hoverformat', arg, hoverformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('layer', arg, layer) + self._init_provided('linecolor', arg, linecolor) + self._init_provided('linewidth', arg, linewidth) + self._init_provided('showgrid', arg, showgrid) + self._init_provided('showline', arg, showline) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('visible', arg, visible) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/smith/_realaxis.py b/packages/python/plotly/plotly/graph_objs/layout/smith/_realaxis.py index 3aa26e70a5d..41b3f9ace8b 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/smith/_realaxis.py +++ b/packages/python/plotly/plotly/graph_objs/layout/smith/_realaxis.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,37 +8,9 @@ class Realaxis(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.smith" - _path_str = "layout.smith.realaxis" - _valid_props = { - "color", - "gridcolor", - "griddash", - "gridwidth", - "hoverformat", - "labelalias", - "layer", - "linecolor", - "linewidth", - "showgrid", - "showline", - "showticklabels", - "showtickprefix", - "showticksuffix", - "side", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "ticklen", - "tickprefix", - "ticks", - "ticksuffix", - "tickvals", - "tickvalssrc", - "tickwidth", - "visible", - } + _parent_path_str = 'layout.smith' + _path_str = 'layout.smith.realaxis' + _valid_props = {"color", "gridcolor", "griddash", "gridwidth", "hoverformat", "labelalias", "layer", "linecolor", "linewidth", "showgrid", "showline", "showticklabels", "showtickprefix", "showticksuffix", "side", "tickangle", "tickcolor", "tickfont", "tickformat", "ticklen", "tickprefix", "ticks", "ticksuffix", "tickvals", "tickvalssrc", "tickwidth", "visible"} # color # ----- @@ -53,52 +27,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # gridcolor # --------- @@ -112,52 +51,17 @@ def gridcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["gridcolor"] + return self['gridcolor'] @gridcolor.setter def gridcolor(self, val): - self["gridcolor"] = val + self['gridcolor'] = val # griddash # -------- @@ -179,11 +83,11 @@ def griddash(self): ------- str """ - return self["griddash"] + return self['griddash'] @griddash.setter def griddash(self, val): - self["griddash"] = val + self['griddash'] = val # gridwidth # --------- @@ -199,11 +103,11 @@ def gridwidth(self): ------- int|float """ - return self["gridwidth"] + return self['gridwidth'] @gridwidth.setter def gridwidth(self, val): - self["gridwidth"] = val + self['gridwidth'] = val # hoverformat # ----------- @@ -229,11 +133,11 @@ def hoverformat(self): ------- str """ - return self["hoverformat"] + return self['hoverformat'] @hoverformat.setter def hoverformat(self, val): - self["hoverformat"] = val + self['hoverformat'] = val # labelalias # ---------- @@ -256,11 +160,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # layer # ----- @@ -282,11 +186,11 @@ def layer(self): ------- Any """ - return self["layer"] + return self['layer'] @layer.setter def layer(self, val): - self["layer"] = val + self['layer'] = val # linecolor # --------- @@ -300,52 +204,17 @@ def linecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["linecolor"] + return self['linecolor'] @linecolor.setter def linecolor(self, val): - self["linecolor"] = val + self['linecolor'] = val # linewidth # --------- @@ -361,11 +230,11 @@ def linewidth(self): ------- int|float """ - return self["linewidth"] + return self['linewidth'] @linewidth.setter def linewidth(self, val): - self["linewidth"] = val + self['linewidth'] = val # showgrid # -------- @@ -382,11 +251,11 @@ def showgrid(self): ------- bool """ - return self["showgrid"] + return self['showgrid'] @showgrid.setter def showgrid(self, val): - self["showgrid"] = val + self['showgrid'] = val # showline # -------- @@ -402,11 +271,11 @@ def showline(self): ------- bool """ - return self["showline"] + return self['showline'] @showline.setter def showline(self, val): - self["showline"] = val + self['showline'] = val # showticklabels # -------------- @@ -422,11 +291,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -446,11 +315,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -467,11 +336,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # side # ---- @@ -489,11 +358,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # tickangle # --------- @@ -513,11 +382,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -531,52 +400,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -591,61 +425,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.smith.realaxis.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -671,11 +459,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # ticklen # ------- @@ -691,11 +479,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickprefix # ---------- @@ -712,11 +500,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -735,11 +523,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -756,11 +544,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # tickvals # -------- @@ -776,11 +564,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -796,11 +584,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -816,11 +604,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # visible # ------- @@ -838,11 +626,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # Self properties description # --------------------------- @@ -958,39 +746,37 @@ def _prop_descriptions(self): interaction like dragging. Default is true when a cheater plot is present on the axis, otherwise false """ - - def __init__( - self, - arg=None, - color=None, - gridcolor=None, - griddash=None, - gridwidth=None, - hoverformat=None, - labelalias=None, - layer=None, - linecolor=None, - linewidth=None, - showgrid=None, - showline=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - side=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - ticklen=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + gridcolor=None, + griddash=None, + gridwidth=None, + hoverformat=None, + labelalias=None, + layer=None, + linecolor=None, + linewidth=None, + showgrid=None, + showline=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + side=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + ticklen=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + visible=None, + **kwargs + ): """ Construct a new Realaxis object @@ -1113,10 +899,10 @@ def __init__( ------- Realaxis """ - super(Realaxis, self).__init__("realaxis") + super(Realaxis, self).__init__('realaxis') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1128,128 +914,46 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.smith.Realaxis constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.smith.Realaxis`""" - ) +an instance of :class:`plotly.graph_objs.layout.smith.Realaxis`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("gridcolor", None) - _v = gridcolor if gridcolor is not None else _v - if _v is not None: - self["gridcolor"] = _v - _v = arg.pop("griddash", None) - _v = griddash if griddash is not None else _v - if _v is not None: - self["griddash"] = _v - _v = arg.pop("gridwidth", None) - _v = gridwidth if gridwidth is not None else _v - if _v is not None: - self["gridwidth"] = _v - _v = arg.pop("hoverformat", None) - _v = hoverformat if hoverformat is not None else _v - if _v is not None: - self["hoverformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("layer", None) - _v = layer if layer is not None else _v - if _v is not None: - self["layer"] = _v - _v = arg.pop("linecolor", None) - _v = linecolor if linecolor is not None else _v - if _v is not None: - self["linecolor"] = _v - _v = arg.pop("linewidth", None) - _v = linewidth if linewidth is not None else _v - if _v is not None: - self["linewidth"] = _v - _v = arg.pop("showgrid", None) - _v = showgrid if showgrid is not None else _v - if _v is not None: - self["showgrid"] = _v - _v = arg.pop("showline", None) - _v = showline if showline is not None else _v - if _v is not None: - self["showline"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('color', arg, color) + self._init_provided('gridcolor', arg, gridcolor) + self._init_provided('griddash', arg, griddash) + self._init_provided('gridwidth', arg, gridwidth) + self._init_provided('hoverformat', arg, hoverformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('layer', arg, layer) + self._init_provided('linecolor', arg, linecolor) + self._init_provided('linewidth', arg, linewidth) + self._init_provided('showgrid', arg, showgrid) + self._init_provided('showline', arg, showline) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('side', arg, side) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('visible', arg, visible) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/smith/imaginaryaxis/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/smith/imaginaryaxis/__init__.py index 0224c78e2f7..0bc34fedf7c 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/smith/imaginaryaxis/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/smith/imaginaryaxis/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._tickfont.Tickfont"] + __name__, + [], + ['._tickfont.Tickfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/smith/imaginaryaxis/_tickfont.py b/packages/python/plotly/plotly/graph_objs/layout/smith/imaginaryaxis/_tickfont.py index 95278b10cf6..a076b391ad9 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/smith/imaginaryaxis/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/layout/smith/imaginaryaxis/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.smith.imaginaryaxis" - _path_str = "layout.smith.imaginaryaxis.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.smith.imaginaryaxis' + _path_str = 'layout.smith.imaginaryaxis.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.smith.imaginaryaxis.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.smith.imaginaryaxis.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.layout.smith.imaginaryaxis.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/smith/realaxis/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/smith/realaxis/__init__.py index 0224c78e2f7..0bc34fedf7c 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/smith/realaxis/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/smith/realaxis/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._tickfont.Tickfont"] + __name__, + [], + ['._tickfont.Tickfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/smith/realaxis/_tickfont.py b/packages/python/plotly/plotly/graph_objs/layout/smith/realaxis/_tickfont.py index c3e38dfbcbb..854d11848ea 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/smith/realaxis/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/layout/smith/realaxis/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.smith.realaxis" - _path_str = "layout.smith.realaxis.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.smith.realaxis' + _path_str = 'layout.smith.realaxis.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.smith.realaxis.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.smith.realaxis.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.layout.smith.realaxis.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/template/__init__.py index 6b4972a4618..62889e1f94f 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._data import Data from ._layout import Layout from . import data else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [".data"], ["._data.Data", "._layout.Layout"] + __name__, + ['.data'], + ['._data.Data', '._layout.Layout'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/_data.py b/packages/python/plotly/plotly/graph_objs/layout/template/_data.py index a27b0679751..9d458cbac79 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/_data.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/_data.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class Data(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.template" - _path_str = "layout.template.data" - _valid_props = { - "bar", - "barpolar", - "box", - "candlestick", - "carpet", - "choropleth", - "choroplethmap", - "choroplethmapbox", - "cone", - "contour", - "contourcarpet", - "densitymap", - "densitymapbox", - "funnel", - "funnelarea", - "heatmap", - "histogram", - "histogram2d", - "histogram2dcontour", - "icicle", - "image", - "indicator", - "isosurface", - "mesh3d", - "ohlc", - "parcats", - "parcoords", - "pie", - "sankey", - "scatter", - "scatter3d", - "scattercarpet", - "scattergeo", - "scattergl", - "scattermap", - "scattermapbox", - "scatterpolar", - "scatterpolargl", - "scattersmith", - "scatterternary", - "splom", - "streamtube", - "sunburst", - "surface", - "table", - "treemap", - "violin", - "volume", - "waterfall", - } + _parent_path_str = 'layout.template' + _path_str = 'layout.template.data' + _valid_props = {"bar", "barpolar", "box", "candlestick", "carpet", "choropleth", "choroplethmap", "choroplethmapbox", "cone", "contour", "contourcarpet", "densitymap", "densitymapbox", "funnel", "funnelarea", "heatmap", "histogram", "histogram2d", "histogram2dcontour", "icicle", "image", "indicator", "isosurface", "mesh3d", "ohlc", "parcats", "parcoords", "pie", "sankey", "scatter", "scatter3d", "scattercarpet", "scattergeo", "scattergl", "scattermap", "scattermapbox", "scatterpolar", "scatterpolargl", "scattersmith", "scatterternary", "splom", "streamtube", "sunburst", "surface", "table", "treemap", "violin", "volume", "waterfall"} # barpolar # -------- @@ -71,17 +23,15 @@ def barpolar(self): - A list or tuple of dicts of string/value properties that will be passed to the Barpolar constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Barpolar] """ - return self["barpolar"] + return self['barpolar'] @barpolar.setter def barpolar(self, val): - self["barpolar"] = val + self['barpolar'] = val # bar # --- @@ -94,17 +44,15 @@ def bar(self): - A list or tuple of dicts of string/value properties that will be passed to the Bar constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Bar] """ - return self["bar"] + return self['bar'] @bar.setter def bar(self, val): - self["bar"] = val + self['bar'] = val # box # --- @@ -117,17 +65,15 @@ def box(self): - A list or tuple of dicts of string/value properties that will be passed to the Box constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Box] """ - return self["box"] + return self['box'] @box.setter def box(self, val): - self["box"] = val + self['box'] = val # candlestick # ----------- @@ -140,17 +86,15 @@ def candlestick(self): - A list or tuple of dicts of string/value properties that will be passed to the Candlestick constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Candlestick] """ - return self["candlestick"] + return self['candlestick'] @candlestick.setter def candlestick(self, val): - self["candlestick"] = val + self['candlestick'] = val # carpet # ------ @@ -163,17 +107,15 @@ def carpet(self): - A list or tuple of dicts of string/value properties that will be passed to the Carpet constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Carpet] """ - return self["carpet"] + return self['carpet'] @carpet.setter def carpet(self, val): - self["carpet"] = val + self['carpet'] = val # choroplethmapbox # ---------------- @@ -186,17 +128,15 @@ def choroplethmapbox(self): - A list or tuple of dicts of string/value properties that will be passed to the Choroplethmapbox constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Choroplethmapbox] """ - return self["choroplethmapbox"] + return self['choroplethmapbox'] @choroplethmapbox.setter def choroplethmapbox(self, val): - self["choroplethmapbox"] = val + self['choroplethmapbox'] = val # choroplethmap # ------------- @@ -209,17 +149,15 @@ def choroplethmap(self): - A list or tuple of dicts of string/value properties that will be passed to the Choroplethmap constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Choroplethmap] """ - return self["choroplethmap"] + return self['choroplethmap'] @choroplethmap.setter def choroplethmap(self, val): - self["choroplethmap"] = val + self['choroplethmap'] = val # choropleth # ---------- @@ -232,17 +170,15 @@ def choropleth(self): - A list or tuple of dicts of string/value properties that will be passed to the Choropleth constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Choropleth] """ - return self["choropleth"] + return self['choropleth'] @choropleth.setter def choropleth(self, val): - self["choropleth"] = val + self['choropleth'] = val # cone # ---- @@ -255,17 +191,15 @@ def cone(self): - A list or tuple of dicts of string/value properties that will be passed to the Cone constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Cone] """ - return self["cone"] + return self['cone'] @cone.setter def cone(self, val): - self["cone"] = val + self['cone'] = val # contourcarpet # ------------- @@ -278,17 +212,15 @@ def contourcarpet(self): - A list or tuple of dicts of string/value properties that will be passed to the Contourcarpet constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Contourcarpet] """ - return self["contourcarpet"] + return self['contourcarpet'] @contourcarpet.setter def contourcarpet(self, val): - self["contourcarpet"] = val + self['contourcarpet'] = val # contour # ------- @@ -301,17 +233,15 @@ def contour(self): - A list or tuple of dicts of string/value properties that will be passed to the Contour constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Contour] """ - return self["contour"] + return self['contour'] @contour.setter def contour(self, val): - self["contour"] = val + self['contour'] = val # densitymapbox # ------------- @@ -324,17 +254,15 @@ def densitymapbox(self): - A list or tuple of dicts of string/value properties that will be passed to the Densitymapbox constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Densitymapbox] """ - return self["densitymapbox"] + return self['densitymapbox'] @densitymapbox.setter def densitymapbox(self, val): - self["densitymapbox"] = val + self['densitymapbox'] = val # densitymap # ---------- @@ -347,17 +275,15 @@ def densitymap(self): - A list or tuple of dicts of string/value properties that will be passed to the Densitymap constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Densitymap] """ - return self["densitymap"] + return self['densitymap'] @densitymap.setter def densitymap(self, val): - self["densitymap"] = val + self['densitymap'] = val # funnelarea # ---------- @@ -370,17 +296,15 @@ def funnelarea(self): - A list or tuple of dicts of string/value properties that will be passed to the Funnelarea constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Funnelarea] """ - return self["funnelarea"] + return self['funnelarea'] @funnelarea.setter def funnelarea(self, val): - self["funnelarea"] = val + self['funnelarea'] = val # funnel # ------ @@ -393,17 +317,15 @@ def funnel(self): - A list or tuple of dicts of string/value properties that will be passed to the Funnel constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Funnel] """ - return self["funnel"] + return self['funnel'] @funnel.setter def funnel(self, val): - self["funnel"] = val + self['funnel'] = val # heatmap # ------- @@ -416,17 +338,15 @@ def heatmap(self): - A list or tuple of dicts of string/value properties that will be passed to the Heatmap constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Heatmap] """ - return self["heatmap"] + return self['heatmap'] @heatmap.setter def heatmap(self, val): - self["heatmap"] = val + self['heatmap'] = val # histogram2dcontour # ------------------ @@ -439,17 +359,15 @@ def histogram2dcontour(self): - A list or tuple of dicts of string/value properties that will be passed to the Histogram2dContour constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Histogram2dContour] """ - return self["histogram2dcontour"] + return self['histogram2dcontour'] @histogram2dcontour.setter def histogram2dcontour(self, val): - self["histogram2dcontour"] = val + self['histogram2dcontour'] = val # histogram2d # ----------- @@ -462,17 +380,15 @@ def histogram2d(self): - A list or tuple of dicts of string/value properties that will be passed to the Histogram2d constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Histogram2d] """ - return self["histogram2d"] + return self['histogram2d'] @histogram2d.setter def histogram2d(self, val): - self["histogram2d"] = val + self['histogram2d'] = val # histogram # --------- @@ -485,17 +401,15 @@ def histogram(self): - A list or tuple of dicts of string/value properties that will be passed to the Histogram constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Histogram] """ - return self["histogram"] + return self['histogram'] @histogram.setter def histogram(self, val): - self["histogram"] = val + self['histogram'] = val # icicle # ------ @@ -508,17 +422,15 @@ def icicle(self): - A list or tuple of dicts of string/value properties that will be passed to the Icicle constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Icicle] """ - return self["icicle"] + return self['icicle'] @icicle.setter def icicle(self, val): - self["icicle"] = val + self['icicle'] = val # image # ----- @@ -531,17 +443,15 @@ def image(self): - A list or tuple of dicts of string/value properties that will be passed to the Image constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Image] """ - return self["image"] + return self['image'] @image.setter def image(self, val): - self["image"] = val + self['image'] = val # indicator # --------- @@ -554,17 +464,15 @@ def indicator(self): - A list or tuple of dicts of string/value properties that will be passed to the Indicator constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Indicator] """ - return self["indicator"] + return self['indicator'] @indicator.setter def indicator(self, val): - self["indicator"] = val + self['indicator'] = val # isosurface # ---------- @@ -577,17 +485,15 @@ def isosurface(self): - A list or tuple of dicts of string/value properties that will be passed to the Isosurface constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Isosurface] """ - return self["isosurface"] + return self['isosurface'] @isosurface.setter def isosurface(self, val): - self["isosurface"] = val + self['isosurface'] = val # mesh3d # ------ @@ -600,17 +506,15 @@ def mesh3d(self): - A list or tuple of dicts of string/value properties that will be passed to the Mesh3d constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Mesh3d] """ - return self["mesh3d"] + return self['mesh3d'] @mesh3d.setter def mesh3d(self, val): - self["mesh3d"] = val + self['mesh3d'] = val # ohlc # ---- @@ -623,17 +527,15 @@ def ohlc(self): - A list or tuple of dicts of string/value properties that will be passed to the Ohlc constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Ohlc] """ - return self["ohlc"] + return self['ohlc'] @ohlc.setter def ohlc(self, val): - self["ohlc"] = val + self['ohlc'] = val # parcats # ------- @@ -646,17 +548,15 @@ def parcats(self): - A list or tuple of dicts of string/value properties that will be passed to the Parcats constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Parcats] """ - return self["parcats"] + return self['parcats'] @parcats.setter def parcats(self, val): - self["parcats"] = val + self['parcats'] = val # parcoords # --------- @@ -669,17 +569,15 @@ def parcoords(self): - A list or tuple of dicts of string/value properties that will be passed to the Parcoords constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Parcoords] """ - return self["parcoords"] + return self['parcoords'] @parcoords.setter def parcoords(self, val): - self["parcoords"] = val + self['parcoords'] = val # pie # --- @@ -692,17 +590,15 @@ def pie(self): - A list or tuple of dicts of string/value properties that will be passed to the Pie constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Pie] """ - return self["pie"] + return self['pie'] @pie.setter def pie(self, val): - self["pie"] = val + self['pie'] = val # sankey # ------ @@ -715,17 +611,15 @@ def sankey(self): - A list or tuple of dicts of string/value properties that will be passed to the Sankey constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Sankey] """ - return self["sankey"] + return self['sankey'] @sankey.setter def sankey(self, val): - self["sankey"] = val + self['sankey'] = val # scatter3d # --------- @@ -738,17 +632,15 @@ def scatter3d(self): - A list or tuple of dicts of string/value properties that will be passed to the Scatter3d constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Scatter3d] """ - return self["scatter3d"] + return self['scatter3d'] @scatter3d.setter def scatter3d(self, val): - self["scatter3d"] = val + self['scatter3d'] = val # scattercarpet # ------------- @@ -761,17 +653,15 @@ def scattercarpet(self): - A list or tuple of dicts of string/value properties that will be passed to the Scattercarpet constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Scattercarpet] """ - return self["scattercarpet"] + return self['scattercarpet'] @scattercarpet.setter def scattercarpet(self, val): - self["scattercarpet"] = val + self['scattercarpet'] = val # scattergeo # ---------- @@ -784,17 +674,15 @@ def scattergeo(self): - A list or tuple of dicts of string/value properties that will be passed to the Scattergeo constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Scattergeo] """ - return self["scattergeo"] + return self['scattergeo'] @scattergeo.setter def scattergeo(self, val): - self["scattergeo"] = val + self['scattergeo'] = val # scattergl # --------- @@ -807,17 +695,15 @@ def scattergl(self): - A list or tuple of dicts of string/value properties that will be passed to the Scattergl constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Scattergl] """ - return self["scattergl"] + return self['scattergl'] @scattergl.setter def scattergl(self, val): - self["scattergl"] = val + self['scattergl'] = val # scattermapbox # ------------- @@ -830,17 +716,15 @@ def scattermapbox(self): - A list or tuple of dicts of string/value properties that will be passed to the Scattermapbox constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Scattermapbox] """ - return self["scattermapbox"] + return self['scattermapbox'] @scattermapbox.setter def scattermapbox(self, val): - self["scattermapbox"] = val + self['scattermapbox'] = val # scattermap # ---------- @@ -853,17 +737,15 @@ def scattermap(self): - A list or tuple of dicts of string/value properties that will be passed to the Scattermap constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Scattermap] """ - return self["scattermap"] + return self['scattermap'] @scattermap.setter def scattermap(self, val): - self["scattermap"] = val + self['scattermap'] = val # scatterpolargl # -------------- @@ -876,17 +758,15 @@ def scatterpolargl(self): - A list or tuple of dicts of string/value properties that will be passed to the Scatterpolargl constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Scatterpolargl] """ - return self["scatterpolargl"] + return self['scatterpolargl'] @scatterpolargl.setter def scatterpolargl(self, val): - self["scatterpolargl"] = val + self['scatterpolargl'] = val # scatterpolar # ------------ @@ -899,17 +779,15 @@ def scatterpolar(self): - A list or tuple of dicts of string/value properties that will be passed to the Scatterpolar constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Scatterpolar] """ - return self["scatterpolar"] + return self['scatterpolar'] @scatterpolar.setter def scatterpolar(self, val): - self["scatterpolar"] = val + self['scatterpolar'] = val # scatter # ------- @@ -922,17 +800,15 @@ def scatter(self): - A list or tuple of dicts of string/value properties that will be passed to the Scatter constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Scatter] """ - return self["scatter"] + return self['scatter'] @scatter.setter def scatter(self, val): - self["scatter"] = val + self['scatter'] = val # scattersmith # ------------ @@ -945,17 +821,15 @@ def scattersmith(self): - A list or tuple of dicts of string/value properties that will be passed to the Scattersmith constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Scattersmith] """ - return self["scattersmith"] + return self['scattersmith'] @scattersmith.setter def scattersmith(self, val): - self["scattersmith"] = val + self['scattersmith'] = val # scatterternary # -------------- @@ -968,17 +842,15 @@ def scatterternary(self): - A list or tuple of dicts of string/value properties that will be passed to the Scatterternary constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Scatterternary] """ - return self["scatterternary"] + return self['scatterternary'] @scatterternary.setter def scatterternary(self, val): - self["scatterternary"] = val + self['scatterternary'] = val # splom # ----- @@ -991,17 +863,15 @@ def splom(self): - A list or tuple of dicts of string/value properties that will be passed to the Splom constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Splom] """ - return self["splom"] + return self['splom'] @splom.setter def splom(self, val): - self["splom"] = val + self['splom'] = val # streamtube # ---------- @@ -1014,17 +884,15 @@ def streamtube(self): - A list or tuple of dicts of string/value properties that will be passed to the Streamtube constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Streamtube] """ - return self["streamtube"] + return self['streamtube'] @streamtube.setter def streamtube(self, val): - self["streamtube"] = val + self['streamtube'] = val # sunburst # -------- @@ -1037,17 +905,15 @@ def sunburst(self): - A list or tuple of dicts of string/value properties that will be passed to the Sunburst constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Sunburst] """ - return self["sunburst"] + return self['sunburst'] @sunburst.setter def sunburst(self, val): - self["sunburst"] = val + self['sunburst'] = val # surface # ------- @@ -1060,17 +926,15 @@ def surface(self): - A list or tuple of dicts of string/value properties that will be passed to the Surface constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Surface] """ - return self["surface"] + return self['surface'] @surface.setter def surface(self, val): - self["surface"] = val + self['surface'] = val # table # ----- @@ -1083,17 +947,15 @@ def table(self): - A list or tuple of dicts of string/value properties that will be passed to the Table constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Table] """ - return self["table"] + return self['table'] @table.setter def table(self, val): - self["table"] = val + self['table'] = val # treemap # ------- @@ -1106,17 +968,15 @@ def treemap(self): - A list or tuple of dicts of string/value properties that will be passed to the Treemap constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Treemap] """ - return self["treemap"] + return self['treemap'] @treemap.setter def treemap(self, val): - self["treemap"] = val + self['treemap'] = val # violin # ------ @@ -1129,17 +989,15 @@ def violin(self): - A list or tuple of dicts of string/value properties that will be passed to the Violin constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Violin] """ - return self["violin"] + return self['violin'] @violin.setter def violin(self, val): - self["violin"] = val + self['violin'] = val # volume # ------ @@ -1152,17 +1010,15 @@ def volume(self): - A list or tuple of dicts of string/value properties that will be passed to the Volume constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Volume] """ - return self["volume"] + return self['volume'] @volume.setter def volume(self, val): - self["volume"] = val + self['volume'] = val # waterfall # --------- @@ -1175,17 +1031,15 @@ def waterfall(self): - A list or tuple of dicts of string/value properties that will be passed to the Waterfall constructor - Supported dict properties: - Returns ------- tuple[plotly.graph_objs.layout.template.data.Waterfall] """ - return self["waterfall"] + return self['waterfall'] @waterfall.setter def waterfall(self, val): - self["waterfall"] = val + self['waterfall'] = val # Self properties description # --------------------------- @@ -1342,61 +1196,59 @@ def _prop_descriptions(self): A tuple of :class:`plotly.graph_objects.Waterfall` instances or dicts with compatible properties """ - - def __init__( - self, - arg=None, - barpolar=None, - bar=None, - box=None, - candlestick=None, - carpet=None, - choroplethmapbox=None, - choroplethmap=None, - choropleth=None, - cone=None, - contourcarpet=None, - contour=None, - densitymapbox=None, - densitymap=None, - funnelarea=None, - funnel=None, - heatmap=None, - histogram2dcontour=None, - histogram2d=None, - histogram=None, - icicle=None, - image=None, - indicator=None, - isosurface=None, - mesh3d=None, - ohlc=None, - parcats=None, - parcoords=None, - pie=None, - sankey=None, - scatter3d=None, - scattercarpet=None, - scattergeo=None, - scattergl=None, - scattermapbox=None, - scattermap=None, - scatterpolargl=None, - scatterpolar=None, - scatter=None, - scattersmith=None, - scatterternary=None, - splom=None, - streamtube=None, - sunburst=None, - surface=None, - table=None, - treemap=None, - violin=None, - volume=None, - waterfall=None, - **kwargs, - ): + def __init__(self, + arg=None, + barpolar=None, + bar=None, + box=None, + candlestick=None, + carpet=None, + choroplethmapbox=None, + choroplethmap=None, + choropleth=None, + cone=None, + contourcarpet=None, + contour=None, + densitymapbox=None, + densitymap=None, + funnelarea=None, + funnel=None, + heatmap=None, + histogram2dcontour=None, + histogram2d=None, + histogram=None, + icicle=None, + image=None, + indicator=None, + isosurface=None, + mesh3d=None, + ohlc=None, + parcats=None, + parcoords=None, + pie=None, + sankey=None, + scatter3d=None, + scattercarpet=None, + scattergeo=None, + scattergl=None, + scattermapbox=None, + scattermap=None, + scatterpolargl=None, + scatterpolar=None, + scatter=None, + scattersmith=None, + scatterternary=None, + splom=None, + streamtube=None, + sunburst=None, + surface=None, + table=None, + treemap=None, + violin=None, + volume=None, + waterfall=None, + **kwargs + ): """ Construct a new Data object @@ -1560,10 +1412,10 @@ def __init__( ------- Data """ - super(Data, self).__init__("data") + super(Data, self).__init__('data') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1575,216 +1427,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.template.Data constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.template.Data`""" - ) +an instance of :class:`plotly.graph_objs.layout.template.Data`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("barpolar", None) - _v = barpolar if barpolar is not None else _v - if _v is not None: - self["barpolar"] = _v - _v = arg.pop("bar", None) - _v = bar if bar is not None else _v - if _v is not None: - self["bar"] = _v - _v = arg.pop("box", None) - _v = box if box is not None else _v - if _v is not None: - self["box"] = _v - _v = arg.pop("candlestick", None) - _v = candlestick if candlestick is not None else _v - if _v is not None: - self["candlestick"] = _v - _v = arg.pop("carpet", None) - _v = carpet if carpet is not None else _v - if _v is not None: - self["carpet"] = _v - _v = arg.pop("choroplethmapbox", None) - _v = choroplethmapbox if choroplethmapbox is not None else _v - if _v is not None: - self["choroplethmapbox"] = _v - _v = arg.pop("choroplethmap", None) - _v = choroplethmap if choroplethmap is not None else _v - if _v is not None: - self["choroplethmap"] = _v - _v = arg.pop("choropleth", None) - _v = choropleth if choropleth is not None else _v - if _v is not None: - self["choropleth"] = _v - _v = arg.pop("cone", None) - _v = cone if cone is not None else _v - if _v is not None: - self["cone"] = _v - _v = arg.pop("contourcarpet", None) - _v = contourcarpet if contourcarpet is not None else _v - if _v is not None: - self["contourcarpet"] = _v - _v = arg.pop("contour", None) - _v = contour if contour is not None else _v - if _v is not None: - self["contour"] = _v - _v = arg.pop("densitymapbox", None) - _v = densitymapbox if densitymapbox is not None else _v - if _v is not None: - self["densitymapbox"] = _v - _v = arg.pop("densitymap", None) - _v = densitymap if densitymap is not None else _v - if _v is not None: - self["densitymap"] = _v - _v = arg.pop("funnelarea", None) - _v = funnelarea if funnelarea is not None else _v - if _v is not None: - self["funnelarea"] = _v - _v = arg.pop("funnel", None) - _v = funnel if funnel is not None else _v - if _v is not None: - self["funnel"] = _v - _v = arg.pop("heatmap", None) - _v = heatmap if heatmap is not None else _v - if _v is not None: - self["heatmap"] = _v - _v = arg.pop("histogram2dcontour", None) - _v = histogram2dcontour if histogram2dcontour is not None else _v - if _v is not None: - self["histogram2dcontour"] = _v - _v = arg.pop("histogram2d", None) - _v = histogram2d if histogram2d is not None else _v - if _v is not None: - self["histogram2d"] = _v - _v = arg.pop("histogram", None) - _v = histogram if histogram is not None else _v - if _v is not None: - self["histogram"] = _v - _v = arg.pop("icicle", None) - _v = icicle if icicle is not None else _v - if _v is not None: - self["icicle"] = _v - _v = arg.pop("image", None) - _v = image if image is not None else _v - if _v is not None: - self["image"] = _v - _v = arg.pop("indicator", None) - _v = indicator if indicator is not None else _v - if _v is not None: - self["indicator"] = _v - _v = arg.pop("isosurface", None) - _v = isosurface if isosurface is not None else _v - if _v is not None: - self["isosurface"] = _v - _v = arg.pop("mesh3d", None) - _v = mesh3d if mesh3d is not None else _v - if _v is not None: - self["mesh3d"] = _v - _v = arg.pop("ohlc", None) - _v = ohlc if ohlc is not None else _v - if _v is not None: - self["ohlc"] = _v - _v = arg.pop("parcats", None) - _v = parcats if parcats is not None else _v - if _v is not None: - self["parcats"] = _v - _v = arg.pop("parcoords", None) - _v = parcoords if parcoords is not None else _v - if _v is not None: - self["parcoords"] = _v - _v = arg.pop("pie", None) - _v = pie if pie is not None else _v - if _v is not None: - self["pie"] = _v - _v = arg.pop("sankey", None) - _v = sankey if sankey is not None else _v - if _v is not None: - self["sankey"] = _v - _v = arg.pop("scatter3d", None) - _v = scatter3d if scatter3d is not None else _v - if _v is not None: - self["scatter3d"] = _v - _v = arg.pop("scattercarpet", None) - _v = scattercarpet if scattercarpet is not None else _v - if _v is not None: - self["scattercarpet"] = _v - _v = arg.pop("scattergeo", None) - _v = scattergeo if scattergeo is not None else _v - if _v is not None: - self["scattergeo"] = _v - _v = arg.pop("scattergl", None) - _v = scattergl if scattergl is not None else _v - if _v is not None: - self["scattergl"] = _v - _v = arg.pop("scattermapbox", None) - _v = scattermapbox if scattermapbox is not None else _v - if _v is not None: - self["scattermapbox"] = _v - _v = arg.pop("scattermap", None) - _v = scattermap if scattermap is not None else _v - if _v is not None: - self["scattermap"] = _v - _v = arg.pop("scatterpolargl", None) - _v = scatterpolargl if scatterpolargl is not None else _v - if _v is not None: - self["scatterpolargl"] = _v - _v = arg.pop("scatterpolar", None) - _v = scatterpolar if scatterpolar is not None else _v - if _v is not None: - self["scatterpolar"] = _v - _v = arg.pop("scatter", None) - _v = scatter if scatter is not None else _v - if _v is not None: - self["scatter"] = _v - _v = arg.pop("scattersmith", None) - _v = scattersmith if scattersmith is not None else _v - if _v is not None: - self["scattersmith"] = _v - _v = arg.pop("scatterternary", None) - _v = scatterternary if scatterternary is not None else _v - if _v is not None: - self["scatterternary"] = _v - _v = arg.pop("splom", None) - _v = splom if splom is not None else _v - if _v is not None: - self["splom"] = _v - _v = arg.pop("streamtube", None) - _v = streamtube if streamtube is not None else _v - if _v is not None: - self["streamtube"] = _v - _v = arg.pop("sunburst", None) - _v = sunburst if sunburst is not None else _v - if _v is not None: - self["sunburst"] = _v - _v = arg.pop("surface", None) - _v = surface if surface is not None else _v - if _v is not None: - self["surface"] = _v - _v = arg.pop("table", None) - _v = table if table is not None else _v - if _v is not None: - self["table"] = _v - _v = arg.pop("treemap", None) - _v = treemap if treemap is not None else _v - if _v is not None: - self["treemap"] = _v - _v = arg.pop("violin", None) - _v = violin if violin is not None else _v - if _v is not None: - self["violin"] = _v - _v = arg.pop("volume", None) - _v = volume if volume is not None else _v - if _v is not None: - self["volume"] = _v - _v = arg.pop("waterfall", None) - _v = waterfall if waterfall is not None else _v - if _v is not None: - self["waterfall"] = _v + self._init_provided('barpolar', arg, barpolar) + self._init_provided('bar', arg, bar) + self._init_provided('box', arg, box) + self._init_provided('candlestick', arg, candlestick) + self._init_provided('carpet', arg, carpet) + self._init_provided('choroplethmapbox', arg, choroplethmapbox) + self._init_provided('choroplethmap', arg, choroplethmap) + self._init_provided('choropleth', arg, choropleth) + self._init_provided('cone', arg, cone) + self._init_provided('contourcarpet', arg, contourcarpet) + self._init_provided('contour', arg, contour) + self._init_provided('densitymapbox', arg, densitymapbox) + self._init_provided('densitymap', arg, densitymap) + self._init_provided('funnelarea', arg, funnelarea) + self._init_provided('funnel', arg, funnel) + self._init_provided('heatmap', arg, heatmap) + self._init_provided('histogram2dcontour', arg, histogram2dcontour) + self._init_provided('histogram2d', arg, histogram2d) + self._init_provided('histogram', arg, histogram) + self._init_provided('icicle', arg, icicle) + self._init_provided('image', arg, image) + self._init_provided('indicator', arg, indicator) + self._init_provided('isosurface', arg, isosurface) + self._init_provided('mesh3d', arg, mesh3d) + self._init_provided('ohlc', arg, ohlc) + self._init_provided('parcats', arg, parcats) + self._init_provided('parcoords', arg, parcoords) + self._init_provided('pie', arg, pie) + self._init_provided('sankey', arg, sankey) + self._init_provided('scatter3d', arg, scatter3d) + self._init_provided('scattercarpet', arg, scattercarpet) + self._init_provided('scattergeo', arg, scattergeo) + self._init_provided('scattergl', arg, scattergl) + self._init_provided('scattermapbox', arg, scattermapbox) + self._init_provided('scattermap', arg, scattermap) + self._init_provided('scatterpolargl', arg, scatterpolargl) + self._init_provided('scatterpolar', arg, scatterpolar) + self._init_provided('scatter', arg, scatter) + self._init_provided('scattersmith', arg, scattersmith) + self._init_provided('scatterternary', arg, scatterternary) + self._init_provided('splom', arg, splom) + self._init_provided('streamtube', arg, streamtube) + self._init_provided('sunburst', arg, sunburst) + self._init_provided('surface', arg, surface) + self._init_provided('table', arg, table) + self._init_provided('treemap', arg, treemap) + self._init_provided('violin', arg, violin) + self._init_provided('volume', arg, volume) + self._init_provided('waterfall', arg, waterfall) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/_layout.py b/packages/python/plotly/plotly/graph_objs/layout/template/_layout.py index 058b60b807d..ffa8e3b4f71 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/_layout.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/_layout.py @@ -1 +1,3 @@ -from plotly.graph_objs import Layout + + +from plotly.graph_objs import Layout \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/__init__.py index 3a11f830497..2e798391f0f 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._bar import Bar from ._barpolar import Barpolar @@ -53,59 +52,10 @@ from ._waterfall import Waterfall else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._bar.Bar", - "._barpolar.Barpolar", - "._box.Box", - "._candlestick.Candlestick", - "._carpet.Carpet", - "._choropleth.Choropleth", - "._choroplethmap.Choroplethmap", - "._choroplethmapbox.Choroplethmapbox", - "._cone.Cone", - "._contour.Contour", - "._contourcarpet.Contourcarpet", - "._densitymap.Densitymap", - "._densitymapbox.Densitymapbox", - "._funnel.Funnel", - "._funnelarea.Funnelarea", - "._heatmap.Heatmap", - "._histogram.Histogram", - "._histogram2d.Histogram2d", - "._histogram2dcontour.Histogram2dContour", - "._icicle.Icicle", - "._image.Image", - "._indicator.Indicator", - "._isosurface.Isosurface", - "._mesh3d.Mesh3d", - "._ohlc.Ohlc", - "._parcats.Parcats", - "._parcoords.Parcoords", - "._pie.Pie", - "._sankey.Sankey", - "._scatter.Scatter", - "._scatter3d.Scatter3d", - "._scattercarpet.Scattercarpet", - "._scattergeo.Scattergeo", - "._scattergl.Scattergl", - "._scattermap.Scattermap", - "._scattermapbox.Scattermapbox", - "._scatterpolar.Scatterpolar", - "._scatterpolargl.Scatterpolargl", - "._scattersmith.Scattersmith", - "._scatterternary.Scatterternary", - "._splom.Splom", - "._streamtube.Streamtube", - "._sunburst.Sunburst", - "._surface.Surface", - "._table.Table", - "._treemap.Treemap", - "._violin.Violin", - "._volume.Volume", - "._waterfall.Waterfall", - ], + ['._bar.Bar', '._barpolar.Barpolar', '._box.Box', '._candlestick.Candlestick', '._carpet.Carpet', '._choropleth.Choropleth', '._choroplethmap.Choroplethmap', '._choroplethmapbox.Choroplethmapbox', '._cone.Cone', '._contour.Contour', '._contourcarpet.Contourcarpet', '._densitymap.Densitymap', '._densitymapbox.Densitymapbox', '._funnel.Funnel', '._funnelarea.Funnelarea', '._heatmap.Heatmap', '._histogram.Histogram', '._histogram2d.Histogram2d', '._histogram2dcontour.Histogram2dContour', '._icicle.Icicle', '._image.Image', '._indicator.Indicator', '._isosurface.Isosurface', '._mesh3d.Mesh3d', '._ohlc.Ohlc', '._parcats.Parcats', '._parcoords.Parcoords', '._pie.Pie', '._sankey.Sankey', '._scatter.Scatter', '._scatter3d.Scatter3d', '._scattercarpet.Scattercarpet', '._scattergeo.Scattergeo', '._scattergl.Scattergl', '._scattermap.Scattermap', '._scattermapbox.Scattermapbox', '._scatterpolar.Scatterpolar', '._scatterpolargl.Scatterpolargl', '._scattersmith.Scattersmith', '._scatterternary.Scatterternary', '._splom.Splom', '._streamtube.Streamtube', '._sunburst.Sunburst', '._surface.Surface', '._table.Table', '._treemap.Treemap', '._violin.Violin', '._volume.Volume', '._waterfall.Waterfall'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_bar.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_bar.py index 5a800e64085..943a96e3591 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_bar.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_bar.py @@ -1 +1,3 @@ -from plotly.graph_objs import Bar + + +from plotly.graph_objs import Bar \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_barpolar.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_barpolar.py index 18abed8bbb6..7fbf124b3d9 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_barpolar.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_barpolar.py @@ -1 +1,3 @@ -from plotly.graph_objs import Barpolar + + +from plotly.graph_objs import Barpolar \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_box.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_box.py index ffdd1d92139..f322aff8495 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_box.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_box.py @@ -1 +1,3 @@ -from plotly.graph_objs import Box + + +from plotly.graph_objs import Box \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_candlestick.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_candlestick.py index 5d11b448593..5aa709f383a 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_candlestick.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_candlestick.py @@ -1 +1,3 @@ -from plotly.graph_objs import Candlestick + + +from plotly.graph_objs import Candlestick \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_carpet.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_carpet.py index b923d73904d..bddc6ffa3f3 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_carpet.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_carpet.py @@ -1 +1,3 @@ -from plotly.graph_objs import Carpet + + +from plotly.graph_objs import Carpet \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_choropleth.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_choropleth.py index 733e12709cc..9bc87e67901 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_choropleth.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_choropleth.py @@ -1 +1,3 @@ -from plotly.graph_objs import Choropleth + + +from plotly.graph_objs import Choropleth \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_choroplethmap.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_choroplethmap.py index 855102a43f2..c3eae799b67 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_choroplethmap.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_choroplethmap.py @@ -1 +1,3 @@ -from plotly.graph_objs import Choroplethmap + + +from plotly.graph_objs import Choroplethmap \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_choroplethmapbox.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_choroplethmapbox.py index 220b93564e7..70273c10af0 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_choroplethmapbox.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_choroplethmapbox.py @@ -1 +1,3 @@ -from plotly.graph_objs import Choroplethmapbox + + +from plotly.graph_objs import Choroplethmapbox \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_cone.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_cone.py index 7a284527a8d..428306a94c8 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_cone.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_cone.py @@ -1 +1,3 @@ -from plotly.graph_objs import Cone + + +from plotly.graph_objs import Cone \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_contour.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_contour.py index e474909a4d2..690b8b0ab87 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_contour.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_contour.py @@ -1 +1,3 @@ -from plotly.graph_objs import Contour + + +from plotly.graph_objs import Contour \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_contourcarpet.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_contourcarpet.py index 6240faf5100..00a1985d017 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_contourcarpet.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_contourcarpet.py @@ -1 +1,3 @@ -from plotly.graph_objs import Contourcarpet + + +from plotly.graph_objs import Contourcarpet \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_densitymap.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_densitymap.py index c73e108c7cf..b00dfa41fe6 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_densitymap.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_densitymap.py @@ -1 +1,3 @@ -from plotly.graph_objs import Densitymap + + +from plotly.graph_objs import Densitymap \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_densitymapbox.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_densitymapbox.py index d655b21ab3f..ac527bdcff5 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_densitymapbox.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_densitymapbox.py @@ -1 +1,3 @@ -from plotly.graph_objs import Densitymapbox + + +from plotly.graph_objs import Densitymapbox \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_funnel.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_funnel.py index 70e2ba74d48..bc8bdc29374 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_funnel.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_funnel.py @@ -1 +1,3 @@ -from plotly.graph_objs import Funnel + + +from plotly.graph_objs import Funnel \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_funnelarea.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_funnelarea.py index 242d0fcc962..51fcca01d6c 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_funnelarea.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_funnelarea.py @@ -1 +1,3 @@ -from plotly.graph_objs import Funnelarea + + +from plotly.graph_objs import Funnelarea \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_heatmap.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_heatmap.py index 6098ee83e70..54e1a235ba1 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_heatmap.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_heatmap.py @@ -1 +1,3 @@ -from plotly.graph_objs import Heatmap + + +from plotly.graph_objs import Heatmap \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_histogram.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_histogram.py index 7ba4c6df2fe..03e7bf05b25 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_histogram.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_histogram.py @@ -1 +1,3 @@ -from plotly.graph_objs import Histogram + + +from plotly.graph_objs import Histogram \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_histogram2d.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_histogram2d.py index 710f7f99296..8cf2929c7b9 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_histogram2d.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_histogram2d.py @@ -1 +1,3 @@ -from plotly.graph_objs import Histogram2d + + +from plotly.graph_objs import Histogram2d \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_histogram2dcontour.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_histogram2dcontour.py index 94af41aa922..b949ed98818 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_histogram2dcontour.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_histogram2dcontour.py @@ -1 +1,3 @@ -from plotly.graph_objs import Histogram2dContour + + +from plotly.graph_objs import Histogram2dContour \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_icicle.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_icicle.py index 6749cbe60ab..d11c61aa155 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_icicle.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_icicle.py @@ -1 +1,3 @@ -from plotly.graph_objs import Icicle + + +from plotly.graph_objs import Icicle \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_image.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_image.py index 828920ac697..9ebb0d113be 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_image.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_image.py @@ -1 +1,3 @@ -from plotly.graph_objs import Image + + +from plotly.graph_objs import Image \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_indicator.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_indicator.py index a5a488f8bbe..6e6e3cb1ec8 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_indicator.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_indicator.py @@ -1 +1,3 @@ -from plotly.graph_objs import Indicator + + +from plotly.graph_objs import Indicator \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_isosurface.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_isosurface.py index 5a7885ab64b..f30c6b726f4 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_isosurface.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_isosurface.py @@ -1 +1,3 @@ -from plotly.graph_objs import Isosurface + + +from plotly.graph_objs import Isosurface \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_mesh3d.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_mesh3d.py index 2172a23bd4b..25b9c35852f 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_mesh3d.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_mesh3d.py @@ -1 +1,3 @@ -from plotly.graph_objs import Mesh3d + + +from plotly.graph_objs import Mesh3d \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_ohlc.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_ohlc.py index d3f857428cc..e463c728236 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_ohlc.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_ohlc.py @@ -1 +1,3 @@ -from plotly.graph_objs import Ohlc + + +from plotly.graph_objs import Ohlc \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_parcats.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_parcats.py index 9b0290bcce8..27ece8bc1ec 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_parcats.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_parcats.py @@ -1 +1,3 @@ -from plotly.graph_objs import Parcats + + +from plotly.graph_objs import Parcats \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_parcoords.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_parcoords.py index ccf5629c54f..5b9c3e1a5ed 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_parcoords.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_parcoords.py @@ -1 +1,3 @@ -from plotly.graph_objs import Parcoords + + +from plotly.graph_objs import Parcoords \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_pie.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_pie.py index 0625fd28881..6a78e2c63b0 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_pie.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_pie.py @@ -1 +1,3 @@ -from plotly.graph_objs import Pie + + +from plotly.graph_objs import Pie \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_sankey.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_sankey.py index b572f657ce9..c538eda0135 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_sankey.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_sankey.py @@ -1 +1,3 @@ -from plotly.graph_objs import Sankey + + +from plotly.graph_objs import Sankey \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_scatter.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_scatter.py index afcfab30afa..39f6ca073fe 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_scatter.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_scatter.py @@ -1 +1,3 @@ -from plotly.graph_objs import Scatter + + +from plotly.graph_objs import Scatter \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_scatter3d.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_scatter3d.py index 93146220e39..ea881b93c1a 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_scatter3d.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_scatter3d.py @@ -1 +1,3 @@ -from plotly.graph_objs import Scatter3d + + +from plotly.graph_objs import Scatter3d \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_scattercarpet.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_scattercarpet.py index 26d87ca7c1c..c582b699056 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_scattercarpet.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_scattercarpet.py @@ -1 +1,3 @@ -from plotly.graph_objs import Scattercarpet + + +from plotly.graph_objs import Scattercarpet \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_scattergeo.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_scattergeo.py index 34308e1a081..dcdfa774135 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_scattergeo.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_scattergeo.py @@ -1 +1,3 @@ -from plotly.graph_objs import Scattergeo + + +from plotly.graph_objs import Scattergeo \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_scattergl.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_scattergl.py index 30bd3712b80..df1e5c9a3ee 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_scattergl.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_scattergl.py @@ -1 +1,3 @@ -from plotly.graph_objs import Scattergl + + +from plotly.graph_objs import Scattergl \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_scattermap.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_scattermap.py index 5a494e23208..8323f4b4e69 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_scattermap.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_scattermap.py @@ -1 +1,3 @@ -from plotly.graph_objs import Scattermap + + +from plotly.graph_objs import Scattermap \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_scattermapbox.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_scattermapbox.py index 6c3333aa945..00ff37e719a 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_scattermapbox.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_scattermapbox.py @@ -1 +1,3 @@ -from plotly.graph_objs import Scattermapbox + + +from plotly.graph_objs import Scattermapbox \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_scatterpolar.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_scatterpolar.py index e1417b23810..656c5442eff 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_scatterpolar.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_scatterpolar.py @@ -1 +1,3 @@ -from plotly.graph_objs import Scatterpolar + + +from plotly.graph_objs import Scatterpolar \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_scatterpolargl.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_scatterpolargl.py index 60b023a581b..01624697693 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_scatterpolargl.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_scatterpolargl.py @@ -1 +1,3 @@ -from plotly.graph_objs import Scatterpolargl + + +from plotly.graph_objs import Scatterpolargl \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_scattersmith.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_scattersmith.py index e2dcf41bd0c..1aab38fe63b 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_scattersmith.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_scattersmith.py @@ -1 +1,3 @@ -from plotly.graph_objs import Scattersmith + + +from plotly.graph_objs import Scattersmith \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_scatterternary.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_scatterternary.py index 2221eadd54d..06a2c8dfb0e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_scatterternary.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_scatterternary.py @@ -1 +1,3 @@ -from plotly.graph_objs import Scatterternary + + +from plotly.graph_objs import Scatterternary \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_splom.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_splom.py index 0909cdfd9dd..3297dbe91e2 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_splom.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_splom.py @@ -1 +1,3 @@ -from plotly.graph_objs import Splom + + +from plotly.graph_objs import Splom \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_streamtube.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_streamtube.py index 8b23c3161cb..fbfccad346e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_streamtube.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_streamtube.py @@ -1 +1,3 @@ -from plotly.graph_objs import Streamtube + + +from plotly.graph_objs import Streamtube \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_sunburst.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_sunburst.py index 1b9511c7d5b..a256f9b1bf7 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_sunburst.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_sunburst.py @@ -1 +1,3 @@ -from plotly.graph_objs import Sunburst + + +from plotly.graph_objs import Sunburst \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_surface.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_surface.py index cfaa55d7385..6dd4afd6776 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_surface.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_surface.py @@ -1 +1,3 @@ -from plotly.graph_objs import Surface + + +from plotly.graph_objs import Surface \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_table.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_table.py index 2b6d4ad1e57..a49f52cf71e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_table.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_table.py @@ -1 +1,3 @@ -from plotly.graph_objs import Table + + +from plotly.graph_objs import Table \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_treemap.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_treemap.py index 5c648e7108e..680ff7ac6b9 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_treemap.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_treemap.py @@ -1 +1,3 @@ -from plotly.graph_objs import Treemap + + +from plotly.graph_objs import Treemap \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_violin.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_violin.py index 23221b66776..6838828ed74 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_violin.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_violin.py @@ -1 +1,3 @@ -from plotly.graph_objs import Violin + + +from plotly.graph_objs import Violin \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_volume.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_volume.py index 1128580ca0f..04b26214bd7 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_volume.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_volume.py @@ -1 +1,3 @@ -from plotly.graph_objs import Volume + + +from plotly.graph_objs import Volume \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/_waterfall.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/_waterfall.py index c45e7852a2c..bc1f8f12c86 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/_waterfall.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/_waterfall.py @@ -1 +1,3 @@ -from plotly.graph_objs import Waterfall + + +from plotly.graph_objs import Waterfall \ No newline at end of file diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/__init__.py index 5bd479382d0..4b9644a0a53 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._aaxis import Aaxis from ._baxis import Baxis @@ -11,9 +10,10 @@ from . import caxis else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".aaxis", ".baxis", ".caxis"], - ["._aaxis.Aaxis", "._baxis.Baxis", "._caxis.Caxis", "._domain.Domain"], + ['.aaxis', '.baxis', '.caxis'], + ['._aaxis.Aaxis', '._baxis.Baxis', '._caxis.Caxis', '._domain.Domain'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/_aaxis.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/_aaxis.py index 8b003c58c3b..3a4c1771d99 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/_aaxis.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/_aaxis.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,51 +8,9 @@ class Aaxis(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.ternary" - _path_str = "layout.ternary.aaxis" - _valid_props = { - "color", - "dtick", - "exponentformat", - "gridcolor", - "griddash", - "gridwidth", - "hoverformat", - "labelalias", - "layer", - "linecolor", - "linewidth", - "min", - "minexponent", - "nticks", - "separatethousands", - "showexponent", - "showgrid", - "showline", - "showticklabels", - "showtickprefix", - "showticksuffix", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "uirevision", - } + _parent_path_str = 'layout.ternary' + _path_str = 'layout.ternary.aaxis' + _valid_props = {"color", "dtick", "exponentformat", "gridcolor", "griddash", "gridwidth", "hoverformat", "labelalias", "layer", "linecolor", "linewidth", "min", "minexponent", "nticks", "separatethousands", "showexponent", "showgrid", "showline", "showticklabels", "showtickprefix", "showticksuffix", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "uirevision"} # color # ----- @@ -67,52 +27,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # dtick # ----- @@ -146,11 +71,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -171,11 +96,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # gridcolor # --------- @@ -189,52 +114,17 @@ def gridcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["gridcolor"] + return self['gridcolor'] @gridcolor.setter def gridcolor(self, val): - self["gridcolor"] = val + self['gridcolor'] = val # griddash # -------- @@ -256,11 +146,11 @@ def griddash(self): ------- str """ - return self["griddash"] + return self['griddash'] @griddash.setter def griddash(self, val): - self["griddash"] = val + self['griddash'] = val # gridwidth # --------- @@ -276,11 +166,11 @@ def gridwidth(self): ------- int|float """ - return self["gridwidth"] + return self['gridwidth'] @gridwidth.setter def gridwidth(self, val): - self["gridwidth"] = val + self['gridwidth'] = val # hoverformat # ----------- @@ -306,11 +196,11 @@ def hoverformat(self): ------- str """ - return self["hoverformat"] + return self['hoverformat'] @hoverformat.setter def hoverformat(self, val): - self["hoverformat"] = val + self['hoverformat'] = val # labelalias # ---------- @@ -333,11 +223,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # layer # ----- @@ -359,11 +249,11 @@ def layer(self): ------- Any """ - return self["layer"] + return self['layer'] @layer.setter def layer(self, val): - self["layer"] = val + self['layer'] = val # linecolor # --------- @@ -377,52 +267,17 @@ def linecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["linecolor"] + return self['linecolor'] @linecolor.setter def linecolor(self, val): - self["linecolor"] = val + self['linecolor'] = val # linewidth # --------- @@ -438,11 +293,11 @@ def linewidth(self): ------- int|float """ - return self["linewidth"] + return self['linewidth'] @linewidth.setter def linewidth(self, val): - self["linewidth"] = val + self['linewidth'] = val # min # --- @@ -460,11 +315,11 @@ def min(self): ------- int|float """ - return self["min"] + return self['min'] @min.setter def min(self, val): - self["min"] = val + self['min'] = val # minexponent # ----------- @@ -481,11 +336,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -505,11 +360,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # separatethousands # ----------------- @@ -525,11 +380,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -549,11 +404,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showgrid # -------- @@ -570,11 +425,11 @@ def showgrid(self): ------- bool """ - return self["showgrid"] + return self['showgrid'] @showgrid.setter def showgrid(self, val): - self["showgrid"] = val + self['showgrid'] = val # showline # -------- @@ -590,11 +445,11 @@ def showline(self): ------- bool """ - return self["showline"] + return self['showline'] @showline.setter def showline(self, val): - self["showline"] = val + self['showline'] = val # showticklabels # -------------- @@ -610,11 +465,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -634,11 +489,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -655,11 +510,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # tick0 # ----- @@ -682,11 +537,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -706,11 +561,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -724,52 +579,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -784,61 +604,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.ternary.aaxis.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -864,11 +638,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -881,51 +655,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.layout.ternary.aaxis.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -943,17 +681,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.layout.ternary.aaxis.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabelstep # ------------- @@ -975,11 +711,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -995,11 +731,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1022,11 +758,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1043,11 +779,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1066,11 +802,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1087,11 +823,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1109,11 +845,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1129,11 +865,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1150,11 +886,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1170,11 +906,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1190,11 +926,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1207,22 +943,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this axis' title font. - text - Sets the title of this axis. - Returns ------- plotly.graph_objs.layout.ternary.aaxis.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # uirevision # ---------- @@ -1239,11 +968,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # Self properties description # --------------------------- @@ -1457,53 +1186,51 @@ def _prop_descriptions(self): `min`, and `title` if in `editable: true` configuration. Defaults to `ternary.uirevision`. """ - - def __init__( - self, - arg=None, - color=None, - dtick=None, - exponentformat=None, - gridcolor=None, - griddash=None, - gridwidth=None, - hoverformat=None, - labelalias=None, - layer=None, - linecolor=None, - linewidth=None, - min=None, - minexponent=None, - nticks=None, - separatethousands=None, - showexponent=None, - showgrid=None, - showline=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - uirevision=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + dtick=None, + exponentformat=None, + gridcolor=None, + griddash=None, + gridwidth=None, + hoverformat=None, + labelalias=None, + layer=None, + linecolor=None, + linewidth=None, + min=None, + minexponent=None, + nticks=None, + separatethousands=None, + showexponent=None, + showgrid=None, + showline=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + uirevision=None, + **kwargs + ): """ Construct a new Aaxis object @@ -1724,10 +1451,10 @@ def __init__( ------- Aaxis """ - super(Aaxis, self).__init__("aaxis") + super(Aaxis, self).__init__('aaxis') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1739,184 +1466,60 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.ternary.Aaxis constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.ternary.Aaxis`""" - ) +an instance of :class:`plotly.graph_objs.layout.ternary.Aaxis`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("gridcolor", None) - _v = gridcolor if gridcolor is not None else _v - if _v is not None: - self["gridcolor"] = _v - _v = arg.pop("griddash", None) - _v = griddash if griddash is not None else _v - if _v is not None: - self["griddash"] = _v - _v = arg.pop("gridwidth", None) - _v = gridwidth if gridwidth is not None else _v - if _v is not None: - self["gridwidth"] = _v - _v = arg.pop("hoverformat", None) - _v = hoverformat if hoverformat is not None else _v - if _v is not None: - self["hoverformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("layer", None) - _v = layer if layer is not None else _v - if _v is not None: - self["layer"] = _v - _v = arg.pop("linecolor", None) - _v = linecolor if linecolor is not None else _v - if _v is not None: - self["linecolor"] = _v - _v = arg.pop("linewidth", None) - _v = linewidth if linewidth is not None else _v - if _v is not None: - self["linewidth"] = _v - _v = arg.pop("min", None) - _v = min if min is not None else _v - if _v is not None: - self["min"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showgrid", None) - _v = showgrid if showgrid is not None else _v - if _v is not None: - self["showgrid"] = _v - _v = arg.pop("showline", None) - _v = showline if showline is not None else _v - if _v is not None: - self["showline"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v + self._init_provided('color', arg, color) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('gridcolor', arg, gridcolor) + self._init_provided('griddash', arg, griddash) + self._init_provided('gridwidth', arg, gridwidth) + self._init_provided('hoverformat', arg, hoverformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('layer', arg, layer) + self._init_provided('linecolor', arg, linecolor) + self._init_provided('linewidth', arg, linewidth) + self._init_provided('min', arg, min) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showgrid', arg, showgrid) + self._init_provided('showline', arg, showline) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('uirevision', arg, uirevision) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/_baxis.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/_baxis.py index 3c5060624bd..d35e3ac75f8 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/_baxis.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/_baxis.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,51 +8,9 @@ class Baxis(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.ternary" - _path_str = "layout.ternary.baxis" - _valid_props = { - "color", - "dtick", - "exponentformat", - "gridcolor", - "griddash", - "gridwidth", - "hoverformat", - "labelalias", - "layer", - "linecolor", - "linewidth", - "min", - "minexponent", - "nticks", - "separatethousands", - "showexponent", - "showgrid", - "showline", - "showticklabels", - "showtickprefix", - "showticksuffix", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "uirevision", - } + _parent_path_str = 'layout.ternary' + _path_str = 'layout.ternary.baxis' + _valid_props = {"color", "dtick", "exponentformat", "gridcolor", "griddash", "gridwidth", "hoverformat", "labelalias", "layer", "linecolor", "linewidth", "min", "minexponent", "nticks", "separatethousands", "showexponent", "showgrid", "showline", "showticklabels", "showtickprefix", "showticksuffix", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "uirevision"} # color # ----- @@ -67,52 +27,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # dtick # ----- @@ -146,11 +71,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -171,11 +96,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # gridcolor # --------- @@ -189,52 +114,17 @@ def gridcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["gridcolor"] + return self['gridcolor'] @gridcolor.setter def gridcolor(self, val): - self["gridcolor"] = val + self['gridcolor'] = val # griddash # -------- @@ -256,11 +146,11 @@ def griddash(self): ------- str """ - return self["griddash"] + return self['griddash'] @griddash.setter def griddash(self, val): - self["griddash"] = val + self['griddash'] = val # gridwidth # --------- @@ -276,11 +166,11 @@ def gridwidth(self): ------- int|float """ - return self["gridwidth"] + return self['gridwidth'] @gridwidth.setter def gridwidth(self, val): - self["gridwidth"] = val + self['gridwidth'] = val # hoverformat # ----------- @@ -306,11 +196,11 @@ def hoverformat(self): ------- str """ - return self["hoverformat"] + return self['hoverformat'] @hoverformat.setter def hoverformat(self, val): - self["hoverformat"] = val + self['hoverformat'] = val # labelalias # ---------- @@ -333,11 +223,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # layer # ----- @@ -359,11 +249,11 @@ def layer(self): ------- Any """ - return self["layer"] + return self['layer'] @layer.setter def layer(self, val): - self["layer"] = val + self['layer'] = val # linecolor # --------- @@ -377,52 +267,17 @@ def linecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["linecolor"] + return self['linecolor'] @linecolor.setter def linecolor(self, val): - self["linecolor"] = val + self['linecolor'] = val # linewidth # --------- @@ -438,11 +293,11 @@ def linewidth(self): ------- int|float """ - return self["linewidth"] + return self['linewidth'] @linewidth.setter def linewidth(self, val): - self["linewidth"] = val + self['linewidth'] = val # min # --- @@ -460,11 +315,11 @@ def min(self): ------- int|float """ - return self["min"] + return self['min'] @min.setter def min(self, val): - self["min"] = val + self['min'] = val # minexponent # ----------- @@ -481,11 +336,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -505,11 +360,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # separatethousands # ----------------- @@ -525,11 +380,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -549,11 +404,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showgrid # -------- @@ -570,11 +425,11 @@ def showgrid(self): ------- bool """ - return self["showgrid"] + return self['showgrid'] @showgrid.setter def showgrid(self, val): - self["showgrid"] = val + self['showgrid'] = val # showline # -------- @@ -590,11 +445,11 @@ def showline(self): ------- bool """ - return self["showline"] + return self['showline'] @showline.setter def showline(self, val): - self["showline"] = val + self['showline'] = val # showticklabels # -------------- @@ -610,11 +465,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -634,11 +489,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -655,11 +510,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # tick0 # ----- @@ -682,11 +537,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -706,11 +561,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -724,52 +579,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -784,61 +604,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.ternary.baxis.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -864,11 +638,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -881,51 +655,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.layout.ternary.baxis.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -943,17 +681,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.layout.ternary.baxis.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabelstep # ------------- @@ -975,11 +711,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -995,11 +731,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1022,11 +758,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1043,11 +779,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1066,11 +802,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1087,11 +823,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1109,11 +845,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1129,11 +865,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1150,11 +886,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1170,11 +906,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1190,11 +926,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1207,22 +943,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this axis' title font. - text - Sets the title of this axis. - Returns ------- plotly.graph_objs.layout.ternary.baxis.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # uirevision # ---------- @@ -1239,11 +968,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # Self properties description # --------------------------- @@ -1457,53 +1186,51 @@ def _prop_descriptions(self): `min`, and `title` if in `editable: true` configuration. Defaults to `ternary.uirevision`. """ - - def __init__( - self, - arg=None, - color=None, - dtick=None, - exponentformat=None, - gridcolor=None, - griddash=None, - gridwidth=None, - hoverformat=None, - labelalias=None, - layer=None, - linecolor=None, - linewidth=None, - min=None, - minexponent=None, - nticks=None, - separatethousands=None, - showexponent=None, - showgrid=None, - showline=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - uirevision=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + dtick=None, + exponentformat=None, + gridcolor=None, + griddash=None, + gridwidth=None, + hoverformat=None, + labelalias=None, + layer=None, + linecolor=None, + linewidth=None, + min=None, + minexponent=None, + nticks=None, + separatethousands=None, + showexponent=None, + showgrid=None, + showline=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + uirevision=None, + **kwargs + ): """ Construct a new Baxis object @@ -1724,10 +1451,10 @@ def __init__( ------- Baxis """ - super(Baxis, self).__init__("baxis") + super(Baxis, self).__init__('baxis') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1739,184 +1466,60 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.ternary.Baxis constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.ternary.Baxis`""" - ) +an instance of :class:`plotly.graph_objs.layout.ternary.Baxis`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("gridcolor", None) - _v = gridcolor if gridcolor is not None else _v - if _v is not None: - self["gridcolor"] = _v - _v = arg.pop("griddash", None) - _v = griddash if griddash is not None else _v - if _v is not None: - self["griddash"] = _v - _v = arg.pop("gridwidth", None) - _v = gridwidth if gridwidth is not None else _v - if _v is not None: - self["gridwidth"] = _v - _v = arg.pop("hoverformat", None) - _v = hoverformat if hoverformat is not None else _v - if _v is not None: - self["hoverformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("layer", None) - _v = layer if layer is not None else _v - if _v is not None: - self["layer"] = _v - _v = arg.pop("linecolor", None) - _v = linecolor if linecolor is not None else _v - if _v is not None: - self["linecolor"] = _v - _v = arg.pop("linewidth", None) - _v = linewidth if linewidth is not None else _v - if _v is not None: - self["linewidth"] = _v - _v = arg.pop("min", None) - _v = min if min is not None else _v - if _v is not None: - self["min"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showgrid", None) - _v = showgrid if showgrid is not None else _v - if _v is not None: - self["showgrid"] = _v - _v = arg.pop("showline", None) - _v = showline if showline is not None else _v - if _v is not None: - self["showline"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v + self._init_provided('color', arg, color) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('gridcolor', arg, gridcolor) + self._init_provided('griddash', arg, griddash) + self._init_provided('gridwidth', arg, gridwidth) + self._init_provided('hoverformat', arg, hoverformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('layer', arg, layer) + self._init_provided('linecolor', arg, linecolor) + self._init_provided('linewidth', arg, linewidth) + self._init_provided('min', arg, min) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showgrid', arg, showgrid) + self._init_provided('showline', arg, showline) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('uirevision', arg, uirevision) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/_caxis.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/_caxis.py index 336b50f7c8c..c755fc949c5 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/_caxis.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/_caxis.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,51 +8,9 @@ class Caxis(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.ternary" - _path_str = "layout.ternary.caxis" - _valid_props = { - "color", - "dtick", - "exponentformat", - "gridcolor", - "griddash", - "gridwidth", - "hoverformat", - "labelalias", - "layer", - "linecolor", - "linewidth", - "min", - "minexponent", - "nticks", - "separatethousands", - "showexponent", - "showgrid", - "showline", - "showticklabels", - "showtickprefix", - "showticksuffix", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "uirevision", - } + _parent_path_str = 'layout.ternary' + _path_str = 'layout.ternary.caxis' + _valid_props = {"color", "dtick", "exponentformat", "gridcolor", "griddash", "gridwidth", "hoverformat", "labelalias", "layer", "linecolor", "linewidth", "min", "minexponent", "nticks", "separatethousands", "showexponent", "showgrid", "showline", "showticklabels", "showtickprefix", "showticksuffix", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "uirevision"} # color # ----- @@ -67,52 +27,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # dtick # ----- @@ -146,11 +71,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -171,11 +96,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # gridcolor # --------- @@ -189,52 +114,17 @@ def gridcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["gridcolor"] + return self['gridcolor'] @gridcolor.setter def gridcolor(self, val): - self["gridcolor"] = val + self['gridcolor'] = val # griddash # -------- @@ -256,11 +146,11 @@ def griddash(self): ------- str """ - return self["griddash"] + return self['griddash'] @griddash.setter def griddash(self, val): - self["griddash"] = val + self['griddash'] = val # gridwidth # --------- @@ -276,11 +166,11 @@ def gridwidth(self): ------- int|float """ - return self["gridwidth"] + return self['gridwidth'] @gridwidth.setter def gridwidth(self, val): - self["gridwidth"] = val + self['gridwidth'] = val # hoverformat # ----------- @@ -306,11 +196,11 @@ def hoverformat(self): ------- str """ - return self["hoverformat"] + return self['hoverformat'] @hoverformat.setter def hoverformat(self, val): - self["hoverformat"] = val + self['hoverformat'] = val # labelalias # ---------- @@ -333,11 +223,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # layer # ----- @@ -359,11 +249,11 @@ def layer(self): ------- Any """ - return self["layer"] + return self['layer'] @layer.setter def layer(self, val): - self["layer"] = val + self['layer'] = val # linecolor # --------- @@ -377,52 +267,17 @@ def linecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["linecolor"] + return self['linecolor'] @linecolor.setter def linecolor(self, val): - self["linecolor"] = val + self['linecolor'] = val # linewidth # --------- @@ -438,11 +293,11 @@ def linewidth(self): ------- int|float """ - return self["linewidth"] + return self['linewidth'] @linewidth.setter def linewidth(self, val): - self["linewidth"] = val + self['linewidth'] = val # min # --- @@ -460,11 +315,11 @@ def min(self): ------- int|float """ - return self["min"] + return self['min'] @min.setter def min(self, val): - self["min"] = val + self['min'] = val # minexponent # ----------- @@ -481,11 +336,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -505,11 +360,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # separatethousands # ----------------- @@ -525,11 +380,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -549,11 +404,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showgrid # -------- @@ -570,11 +425,11 @@ def showgrid(self): ------- bool """ - return self["showgrid"] + return self['showgrid'] @showgrid.setter def showgrid(self, val): - self["showgrid"] = val + self['showgrid'] = val # showline # -------- @@ -590,11 +445,11 @@ def showline(self): ------- bool """ - return self["showline"] + return self['showline'] @showline.setter def showline(self, val): - self["showline"] = val + self['showline'] = val # showticklabels # -------------- @@ -610,11 +465,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -634,11 +489,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -655,11 +510,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # tick0 # ----- @@ -682,11 +537,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -706,11 +561,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -724,52 +579,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -784,61 +604,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.ternary.caxis.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -864,11 +638,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -881,51 +655,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.layout.ternary.caxis.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -943,17 +681,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.layout.ternary.caxis.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabelstep # ------------- @@ -975,11 +711,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -995,11 +731,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1022,11 +758,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1043,11 +779,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1066,11 +802,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1087,11 +823,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1109,11 +845,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1129,11 +865,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1150,11 +886,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1170,11 +906,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1190,11 +926,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1207,22 +943,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this axis' title font. - text - Sets the title of this axis. - Returns ------- plotly.graph_objs.layout.ternary.caxis.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # uirevision # ---------- @@ -1239,11 +968,11 @@ def uirevision(self): ------- Any """ - return self["uirevision"] + return self['uirevision'] @uirevision.setter def uirevision(self, val): - self["uirevision"] = val + self['uirevision'] = val # Self properties description # --------------------------- @@ -1457,53 +1186,51 @@ def _prop_descriptions(self): `min`, and `title` if in `editable: true` configuration. Defaults to `ternary.uirevision`. """ - - def __init__( - self, - arg=None, - color=None, - dtick=None, - exponentformat=None, - gridcolor=None, - griddash=None, - gridwidth=None, - hoverformat=None, - labelalias=None, - layer=None, - linecolor=None, - linewidth=None, - min=None, - minexponent=None, - nticks=None, - separatethousands=None, - showexponent=None, - showgrid=None, - showline=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - uirevision=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + dtick=None, + exponentformat=None, + gridcolor=None, + griddash=None, + gridwidth=None, + hoverformat=None, + labelalias=None, + layer=None, + linecolor=None, + linewidth=None, + min=None, + minexponent=None, + nticks=None, + separatethousands=None, + showexponent=None, + showgrid=None, + showline=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + uirevision=None, + **kwargs + ): """ Construct a new Caxis object @@ -1724,10 +1451,10 @@ def __init__( ------- Caxis """ - super(Caxis, self).__init__("caxis") + super(Caxis, self).__init__('caxis') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1739,184 +1466,60 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.ternary.Caxis constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.ternary.Caxis`""" - ) +an instance of :class:`plotly.graph_objs.layout.ternary.Caxis`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("gridcolor", None) - _v = gridcolor if gridcolor is not None else _v - if _v is not None: - self["gridcolor"] = _v - _v = arg.pop("griddash", None) - _v = griddash if griddash is not None else _v - if _v is not None: - self["griddash"] = _v - _v = arg.pop("gridwidth", None) - _v = gridwidth if gridwidth is not None else _v - if _v is not None: - self["gridwidth"] = _v - _v = arg.pop("hoverformat", None) - _v = hoverformat if hoverformat is not None else _v - if _v is not None: - self["hoverformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("layer", None) - _v = layer if layer is not None else _v - if _v is not None: - self["layer"] = _v - _v = arg.pop("linecolor", None) - _v = linecolor if linecolor is not None else _v - if _v is not None: - self["linecolor"] = _v - _v = arg.pop("linewidth", None) - _v = linewidth if linewidth is not None else _v - if _v is not None: - self["linewidth"] = _v - _v = arg.pop("min", None) - _v = min if min is not None else _v - if _v is not None: - self["min"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showgrid", None) - _v = showgrid if showgrid is not None else _v - if _v is not None: - self["showgrid"] = _v - _v = arg.pop("showline", None) - _v = showline if showline is not None else _v - if _v is not None: - self["showline"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("uirevision", None) - _v = uirevision if uirevision is not None else _v - if _v is not None: - self["uirevision"] = _v + self._init_provided('color', arg, color) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('gridcolor', arg, gridcolor) + self._init_provided('griddash', arg, griddash) + self._init_provided('gridwidth', arg, gridwidth) + self._init_provided('hoverformat', arg, hoverformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('layer', arg, layer) + self._init_provided('linecolor', arg, linecolor) + self._init_provided('linewidth', arg, linewidth) + self._init_provided('min', arg, min) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showgrid', arg, showgrid) + self._init_provided('showline', arg, showline) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('uirevision', arg, uirevision) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/_domain.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/_domain.py index 91212c905f9..3e854c6521e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/_domain.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/_domain.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Domain(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.ternary" - _path_str = "layout.ternary.domain" + _parent_path_str = 'layout.ternary' + _path_str = 'layout.ternary.domain' _valid_props = {"column", "row", "x", "y"} # column @@ -26,11 +28,11 @@ def column(self): ------- int """ - return self["column"] + return self['column'] @column.setter def column(self, val): - self["column"] = val + self['column'] = val # row # --- @@ -48,63 +50,63 @@ def row(self): ------- int """ - return self["row"] + return self['row'] @row.setter def row(self, val): - self["row"] = val + self['row'] = val # x # - @property def x(self): """ - Sets the horizontal domain of this ternary subplot (in plot - fraction). - - The 'x' property is an info array that may be specified as: + Sets the horizontal domain of this ternary subplot (in plot + fraction). - * a list or tuple of 2 elements where: - (0) The 'x[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'x[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] + The 'x' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'x[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'x[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - Returns - ------- - list + Returns + ------- + list """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @property def y(self): """ - Sets the vertical domain of this ternary subplot (in plot - fraction). + Sets the vertical domain of this ternary subplot (in plot + fraction). - The 'y' property is an info array that may be specified as: + The 'y' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'y[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'y[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - * a list or tuple of 2 elements where: - (0) The 'y[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'y[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - - Returns - ------- - list + Returns + ------- + list """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # Self properties description # --------------------------- @@ -124,8 +126,14 @@ def _prop_descriptions(self): Sets the vertical domain of this ternary subplot (in plot fraction). """ - - def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): + def __init__(self, + arg=None, + column=None, + row=None, + x=None, + y=None, + **kwargs + ): """ Construct a new Domain object @@ -152,10 +160,10 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") + super(Domain, self).__init__('domain') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -167,36 +175,23 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.ternary.Domain constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.ternary.Domain`""" - ) +an instance of :class:`plotly.graph_objs.layout.ternary.Domain`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("column", None) - _v = column if column is not None else _v - if _v is not None: - self["column"] = _v - _v = arg.pop("row", None) - _v = row if row is not None else _v - if _v is not None: - self["row"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v + self._init_provided('column', arg, column) + self._init_provided('row', arg, row) + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/_tickfont.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/_tickfont.py index d8a8c8459d5..87d57d199d1 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.ternary.aaxis" - _path_str = "layout.ternary.aaxis.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.ternary.aaxis' + _path_str = 'layout.ternary.aaxis.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.ternary.aaxis.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.ternary.aaxis.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.layout.ternary.aaxis.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/_tickformatstop.py index 6ee8859eefb..cf83726aee9 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.ternary.aaxis" - _path_str = "layout.ternary.aaxis.tickformatstop" + _parent_path_str = 'layout.ternary.aaxis' + _path_str = 'layout.ternary.aaxis.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseLayoutHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.ternary.aaxis.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.ternary.aaxis.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.layout.ternary.aaxis.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/_title.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/_title.py index be6f0f13253..23f03e8d403 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/_title.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.ternary.aaxis" - _path_str = "layout.ternary.aaxis.title" + _parent_path_str = 'layout.ternary.aaxis' + _path_str = 'layout.ternary.aaxis.title' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.ternary.aaxis.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of this axis. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.ternary.aaxis.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.ternary.aaxis.Title`""" - ) +an instance of :class:`plotly.graph_objs.layout.ternary.aaxis.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/title/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/title/_font.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/title/_font.py index 8103e3d5782..e30ed49ac90 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.ternary.aaxis.title" - _path_str = "layout.ternary.aaxis.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.ternary.aaxis.title' + _path_str = 'layout.ternary.aaxis.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.ternary.aaxis.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.ternary.aaxis.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.layout.ternary.aaxis.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/_tickfont.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/_tickfont.py index c958d1f66c7..9af0569141b 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.ternary.baxis" - _path_str = "layout.ternary.baxis.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.ternary.baxis' + _path_str = 'layout.ternary.baxis.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.ternary.baxis.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.ternary.baxis.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.layout.ternary.baxis.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/_tickformatstop.py index 0463b4a018d..5762295e75b 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.ternary.baxis" - _path_str = "layout.ternary.baxis.tickformatstop" + _parent_path_str = 'layout.ternary.baxis' + _path_str = 'layout.ternary.baxis.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseLayoutHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.ternary.baxis.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.ternary.baxis.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.layout.ternary.baxis.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/_title.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/_title.py index b6e9612703b..b24f6fa1250 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/_title.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.ternary.baxis" - _path_str = "layout.ternary.baxis.title" + _parent_path_str = 'layout.ternary.baxis' + _path_str = 'layout.ternary.baxis.title' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.ternary.baxis.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of this axis. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.ternary.baxis.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.ternary.baxis.Title`""" - ) +an instance of :class:`plotly.graph_objs.layout.ternary.baxis.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/title/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/title/_font.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/title/_font.py index 2f020fe77b7..2603333f58c 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.ternary.baxis.title" - _path_str = "layout.ternary.baxis.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.ternary.baxis.title' + _path_str = 'layout.ternary.baxis.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.ternary.baxis.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.ternary.baxis.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.layout.ternary.baxis.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/_tickfont.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/_tickfont.py index ec1c27272b4..a66ad4467e6 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.ternary.caxis" - _path_str = "layout.ternary.caxis.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.ternary.caxis' + _path_str = 'layout.ternary.caxis.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.ternary.caxis.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.ternary.caxis.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.layout.ternary.caxis.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/_tickformatstop.py index 10dc85cd7c1..335d20cd83b 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.ternary.caxis" - _path_str = "layout.ternary.caxis.tickformatstop" + _parent_path_str = 'layout.ternary.caxis' + _path_str = 'layout.ternary.caxis.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseLayoutHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.ternary.caxis.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.ternary.caxis.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.layout.ternary.caxis.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/_title.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/_title.py index f12aca460c8..4f831610162 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/_title.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.ternary.caxis" - _path_str = "layout.ternary.caxis.title" + _parent_path_str = 'layout.ternary.caxis' + _path_str = 'layout.ternary.caxis.title' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.ternary.caxis.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of this axis. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.ternary.caxis.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.ternary.caxis.Title`""" - ) +an instance of :class:`plotly.graph_objs.layout.ternary.caxis.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/title/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/title/_font.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/title/_font.py index 1549ec20970..1f192708c01 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.ternary.caxis.title" - _path_str = "layout.ternary.caxis.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.ternary.caxis.title' + _path_str = 'layout.ternary.caxis.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.ternary.caxis.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.ternary.caxis.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.layout.ternary.caxis.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/title/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/title/__init__.py index d37379b99dc..3dee413ac74 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/title/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font from ._pad import Pad @@ -8,7 +7,10 @@ from . import subtitle else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [".subtitle"], ["._font.Font", "._pad.Pad", "._subtitle.Subtitle"] + __name__, + ['.subtitle'], + ['._font.Font', '._pad.Pad', '._subtitle.Subtitle'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/title/_font.py b/packages/python/plotly/plotly/graph_objs/layout/title/_font.py index ff9ad168589..2222790660a 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/layout/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.title" - _path_str = "layout.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.title' + _path_str = 'layout.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.layout.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/title/_pad.py b/packages/python/plotly/plotly/graph_objs/layout/title/_pad.py index 6653b1896d1..5eab756e9ee 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/title/_pad.py +++ b/packages/python/plotly/plotly/graph_objs/layout/title/_pad.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Pad(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.title" - _path_str = "layout.title.pad" + _parent_path_str = 'layout.title' + _path_str = 'layout.title.pad' _valid_props = {"b", "l", "r", "t"} # b @@ -25,11 +27,11 @@ def b(self): ------- int|float """ - return self["b"] + return self['b'] @b.setter def b(self, val): - self["b"] = val + self['b'] = val # l # - @@ -46,11 +48,11 @@ def l(self): ------- int|float """ - return self["l"] + return self['l'] @l.setter def l(self, val): - self["l"] = val + self['l'] = val # r # - @@ -67,11 +69,11 @@ def r(self): ------- int|float """ - return self["r"] + return self['r'] @r.setter def r(self, val): - self["r"] = val + self['r'] = val # t # - @@ -87,11 +89,11 @@ def t(self): ------- int|float """ - return self["t"] + return self['t'] @t.setter def t(self, val): - self["t"] = val + self['t'] = val # Self properties description # --------------------------- @@ -111,8 +113,14 @@ def _prop_descriptions(self): The amount of padding (in px) along the top of the component. """ - - def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs): + def __init__(self, + arg=None, + b=None, + l=None, + r=None, + t=None, + **kwargs + ): """ Construct a new Pad object @@ -146,10 +154,10 @@ def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs): ------- Pad """ - super(Pad, self).__init__("pad") + super(Pad, self).__init__('pad') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -161,36 +169,23 @@ def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.title.Pad constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.title.Pad`""" - ) +an instance of :class:`plotly.graph_objs.layout.title.Pad`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("b", None) - _v = b if b is not None else _v - if _v is not None: - self["b"] = _v - _v = arg.pop("l", None) - _v = l if l is not None else _v - if _v is not None: - self["l"] = _v - _v = arg.pop("r", None) - _v = r if r is not None else _v - if _v is not None: - self["r"] = _v - _v = arg.pop("t", None) - _v = t if t is not None else _v - if _v is not None: - self["t"] = _v + self._init_provided('b', arg, b) + self._init_provided('l', arg, l) + self._init_provided('r', arg, r) + self._init_provided('t', arg, t) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/title/_subtitle.py b/packages/python/plotly/plotly/graph_objs/layout/title/_subtitle.py index 24f04287984..8b292cc8311 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/title/_subtitle.py +++ b/packages/python/plotly/plotly/graph_objs/layout/title/_subtitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Subtitle(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.title" - _path_str = "layout.title.subtitle" + _parent_path_str = 'layout.title' + _path_str = 'layout.title.subtitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.title.subtitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the plot's subtitle. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Subtitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Subtitle """ - super(Subtitle, self).__init__("subtitle") + super(Subtitle, self).__init__('subtitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.title.Subtitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.title.Subtitle`""" - ) +an instance of :class:`plotly.graph_objs.layout.title.Subtitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/title/subtitle/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/title/subtitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/title/subtitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/title/subtitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/layout/title/subtitle/_font.py b/packages/python/plotly/plotly/graph_objs/layout/title/subtitle/_font.py index 711b816a064..192a66ed65e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/title/subtitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/layout/title/subtitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.title.subtitle" - _path_str = "layout.title.subtitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.title.subtitle' + _path_str = 'layout.title.subtitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.title.subtitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.title.subtitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.layout.title.subtitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/updatemenu/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/updatemenu/__init__.py index 2a9ee9dca66..a4292e115cd 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/updatemenu/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/updatemenu/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._button import Button from ._font import Font from ._pad import Pad else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._button.Button", "._font.Font", "._pad.Pad"] + __name__, + [], + ['._button.Button', '._font.Font', '._pad.Pad'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/updatemenu/_button.py b/packages/python/plotly/plotly/graph_objs/layout/updatemenu/_button.py index e3bfcfb77f2..083eebe14e6 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/updatemenu/_button.py +++ b/packages/python/plotly/plotly/graph_objs/layout/updatemenu/_button.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,69 +8,60 @@ class Button(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.updatemenu" - _path_str = "layout.updatemenu.button" - _valid_props = { - "args", - "args2", - "execute", - "label", - "method", - "name", - "templateitemname", - "visible", - } + _parent_path_str = 'layout.updatemenu' + _path_str = 'layout.updatemenu.button' + _valid_props = {"args", "args2", "execute", "label", "method", "name", "templateitemname", "visible"} # args # ---- @property def args(self): """ - Sets the arguments values to be passed to the Plotly method set - in `method` on click. - - The 'args' property is an info array that may be specified as: + Sets the arguments values to be passed to the Plotly method set + in `method` on click. - * a list or tuple of up to 3 elements where: - (0) The 'args[0]' property accepts values of any type - (1) The 'args[1]' property accepts values of any type - (2) The 'args[2]' property accepts values of any type + The 'args' property is an info array that may be specified as: + + * a list or tuple of up to 3 elements where: + (0) The 'args[0]' property accepts values of any type + (1) The 'args[1]' property accepts values of any type + (2) The 'args[2]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["args"] + return self['args'] @args.setter def args(self, val): - self["args"] = val + self['args'] = val # args2 # ----- @property def args2(self): """ - Sets a 2nd set of `args`, these arguments values are passed to - the Plotly method set in `method` when clicking this button - while in the active state. Use this to create toggle buttons. + Sets a 2nd set of `args`, these arguments values are passed to + the Plotly method set in `method` when clicking this button + while in the active state. Use this to create toggle buttons. - The 'args2' property is an info array that may be specified as: + The 'args2' property is an info array that may be specified as: + + * a list or tuple of up to 3 elements where: + (0) The 'args2[0]' property accepts values of any type + (1) The 'args2[1]' property accepts values of any type + (2) The 'args2[2]' property accepts values of any type - * a list or tuple of up to 3 elements where: - (0) The 'args2[0]' property accepts values of any type - (1) The 'args2[1]' property accepts values of any type - (2) The 'args2[2]' property accepts values of any type - - Returns - ------- - list + Returns + ------- + list """ - return self["args2"] + return self['args2'] @args2.setter def args2(self, val): - self["args2"] = val + self['args2'] = val # execute # ------- @@ -90,11 +83,11 @@ def execute(self): ------- bool """ - return self["execute"] + return self['execute'] @execute.setter def execute(self, val): - self["execute"] = val + self['execute'] = val # label # ----- @@ -111,11 +104,11 @@ def label(self): ------- str """ - return self["label"] + return self['label'] @label.setter def label(self, val): - self["label"] = val + self['label'] = val # method # ------ @@ -136,11 +129,11 @@ def method(self): ------- Any """ - return self["method"] + return self['method'] @method.setter def method(self, val): - self["method"] = val + self['method'] = val # name # ---- @@ -163,11 +156,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -191,11 +184,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # visible # ------- @@ -211,11 +204,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # Self properties description # --------------------------- @@ -270,20 +263,18 @@ def _prop_descriptions(self): visible Determines whether or not this button is visible. """ - - def __init__( - self, - arg=None, - args=None, - args2=None, - execute=None, - label=None, - method=None, - name=None, - templateitemname=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + args=None, + args2=None, + execute=None, + label=None, + method=None, + name=None, + templateitemname=None, + visible=None, + **kwargs + ): """ Construct a new Button object @@ -345,10 +336,10 @@ def __init__( ------- Button """ - super(Button, self).__init__("buttons") + super(Button, self).__init__('buttons') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -360,52 +351,27 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.updatemenu.Button constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.updatemenu.Button`""" - ) +an instance of :class:`plotly.graph_objs.layout.updatemenu.Button`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("args", None) - _v = args if args is not None else _v - if _v is not None: - self["args"] = _v - _v = arg.pop("args2", None) - _v = args2 if args2 is not None else _v - if _v is not None: - self["args2"] = _v - _v = arg.pop("execute", None) - _v = execute if execute is not None else _v - if _v is not None: - self["execute"] = _v - _v = arg.pop("label", None) - _v = label if label is not None else _v - if _v is not None: - self["label"] = _v - _v = arg.pop("method", None) - _v = method if method is not None else _v - if _v is not None: - self["method"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('args', arg, args) + self._init_provided('args2', arg, args2) + self._init_provided('execute', arg, execute) + self._init_provided('label', arg, label) + self._init_provided('method', arg, method) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('visible', arg, visible) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/updatemenu/_font.py b/packages/python/plotly/plotly/graph_objs/layout/updatemenu/_font.py index 862e5738b9d..3ecf0f36f8c 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/updatemenu/_font.py +++ b/packages/python/plotly/plotly/graph_objs/layout/updatemenu/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.updatemenu" - _path_str = "layout.updatemenu.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.updatemenu' + _path_str = 'layout.updatemenu.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.updatemenu.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.updatemenu.Font`""" - ) +an instance of :class:`plotly.graph_objs.layout.updatemenu.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/updatemenu/_pad.py b/packages/python/plotly/plotly/graph_objs/layout/updatemenu/_pad.py index 3cadc5a794f..9543d1b9967 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/updatemenu/_pad.py +++ b/packages/python/plotly/plotly/graph_objs/layout/updatemenu/_pad.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Pad(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.updatemenu" - _path_str = "layout.updatemenu.pad" + _parent_path_str = 'layout.updatemenu' + _path_str = 'layout.updatemenu.pad' _valid_props = {"b", "l", "r", "t"} # b @@ -25,11 +27,11 @@ def b(self): ------- int|float """ - return self["b"] + return self['b'] @b.setter def b(self, val): - self["b"] = val + self['b'] = val # l # - @@ -46,11 +48,11 @@ def l(self): ------- int|float """ - return self["l"] + return self['l'] @l.setter def l(self, val): - self["l"] = val + self['l'] = val # r # - @@ -67,11 +69,11 @@ def r(self): ------- int|float """ - return self["r"] + return self['r'] @r.setter def r(self, val): - self["r"] = val + self['r'] = val # t # - @@ -87,11 +89,11 @@ def t(self): ------- int|float """ - return self["t"] + return self['t'] @t.setter def t(self, val): - self["t"] = val + self['t'] = val # Self properties description # --------------------------- @@ -111,8 +113,14 @@ def _prop_descriptions(self): The amount of padding (in px) along the top of the component. """ - - def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs): + def __init__(self, + arg=None, + b=None, + l=None, + r=None, + t=None, + **kwargs + ): """ Construct a new Pad object @@ -141,10 +149,10 @@ def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs): ------- Pad """ - super(Pad, self).__init__("pad") + super(Pad, self).__init__('pad') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -156,36 +164,23 @@ def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.updatemenu.Pad constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.updatemenu.Pad`""" - ) +an instance of :class:`plotly.graph_objs.layout.updatemenu.Pad`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("b", None) - _v = b if b is not None else _v - if _v is not None: - self["b"] = _v - _v = arg.pop("l", None) - _v = l if l is not None else _v - if _v is not None: - self["l"] = _v - _v = arg.pop("r", None) - _v = r if r is not None else _v - if _v is not None: - self["r"] = _v - _v = arg.pop("t", None) - _v = t if t is not None else _v - if _v is not None: - self["t"] = _v + self._init_provided('b', arg, b) + self._init_provided('l', arg, l) + self._init_provided('r', arg, r) + self._init_provided('t', arg, t) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/xaxis/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/xaxis/__init__.py index ebf011b8b6c..d93679a430f 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/xaxis/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/xaxis/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._autorangeoptions import Autorangeoptions from ._minor import Minor @@ -15,18 +14,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".rangeselector", ".rangeslider", ".title"], - [ - "._autorangeoptions.Autorangeoptions", - "._minor.Minor", - "._rangebreak.Rangebreak", - "._rangeselector.Rangeselector", - "._rangeslider.Rangeslider", - "._tickfont.Tickfont", - "._tickformatstop.Tickformatstop", - "._title.Title", - ], + ['.rangeselector', '.rangeslider', '.title'], + ['._autorangeoptions.Autorangeoptions', '._minor.Minor', '._rangebreak.Rangebreak', '._rangeselector.Rangeselector', '._rangeslider.Rangeslider', '._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/xaxis/_autorangeoptions.py b/packages/python/plotly/plotly/graph_objs/layout/xaxis/_autorangeoptions.py index 81df0b01e4a..dc575e9c89e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/xaxis/_autorangeoptions.py +++ b/packages/python/plotly/plotly/graph_objs/layout/xaxis/_autorangeoptions.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,16 +8,9 @@ class Autorangeoptions(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.xaxis" - _path_str = "layout.xaxis.autorangeoptions" - _valid_props = { - "clipmax", - "clipmin", - "include", - "includesrc", - "maxallowed", - "minallowed", - } + _parent_path_str = 'layout.xaxis' + _path_str = 'layout.xaxis.autorangeoptions' + _valid_props = {"clipmax", "clipmin", "include", "includesrc", "maxallowed", "minallowed"} # clipmax # ------- @@ -31,11 +26,11 @@ def clipmax(self): ------- Any """ - return self["clipmax"] + return self['clipmax'] @clipmax.setter def clipmax(self, val): - self["clipmax"] = val + self['clipmax'] = val # clipmin # ------- @@ -51,11 +46,11 @@ def clipmin(self): ------- Any """ - return self["clipmin"] + return self['clipmin'] @clipmin.setter def clipmin(self, val): - self["clipmin"] = val + self['clipmin'] = val # include # ------- @@ -70,11 +65,11 @@ def include(self): ------- Any|numpy.ndarray """ - return self["include"] + return self['include'] @include.setter def include(self, val): - self["include"] = val + self['include'] = val # includesrc # ---------- @@ -90,11 +85,11 @@ def includesrc(self): ------- str """ - return self["includesrc"] + return self['includesrc'] @includesrc.setter def includesrc(self, val): - self["includesrc"] = val + self['includesrc'] = val # maxallowed # ---------- @@ -109,11 +104,11 @@ def maxallowed(self): ------- Any """ - return self["maxallowed"] + return self['maxallowed'] @maxallowed.setter def maxallowed(self, val): - self["maxallowed"] = val + self['maxallowed'] = val # minallowed # ---------- @@ -128,11 +123,11 @@ def minallowed(self): ------- Any """ - return self["minallowed"] + return self['minallowed'] @minallowed.setter def minallowed(self, val): - self["minallowed"] = val + self['minallowed'] = val # Self properties description # --------------------------- @@ -157,18 +152,16 @@ def _prop_descriptions(self): minallowed Use this value exactly as autorange minimum. """ - - def __init__( - self, - arg=None, - clipmax=None, - clipmin=None, - include=None, - includesrc=None, - maxallowed=None, - minallowed=None, - **kwargs, - ): + def __init__(self, + arg=None, + clipmax=None, + clipmin=None, + include=None, + includesrc=None, + maxallowed=None, + minallowed=None, + **kwargs + ): """ Construct a new Autorangeoptions object @@ -200,10 +193,10 @@ def __init__( ------- Autorangeoptions """ - super(Autorangeoptions, self).__init__("autorangeoptions") + super(Autorangeoptions, self).__init__('autorangeoptions') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -215,44 +208,25 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.xaxis.Autorangeoptions constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.xaxis.Autorangeoptions`""" - ) +an instance of :class:`plotly.graph_objs.layout.xaxis.Autorangeoptions`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("clipmax", None) - _v = clipmax if clipmax is not None else _v - if _v is not None: - self["clipmax"] = _v - _v = arg.pop("clipmin", None) - _v = clipmin if clipmin is not None else _v - if _v is not None: - self["clipmin"] = _v - _v = arg.pop("include", None) - _v = include if include is not None else _v - if _v is not None: - self["include"] = _v - _v = arg.pop("includesrc", None) - _v = includesrc if includesrc is not None else _v - if _v is not None: - self["includesrc"] = _v - _v = arg.pop("maxallowed", None) - _v = maxallowed if maxallowed is not None else _v - if _v is not None: - self["maxallowed"] = _v - _v = arg.pop("minallowed", None) - _v = minallowed if minallowed is not None else _v - if _v is not None: - self["minallowed"] = _v + self._init_provided('clipmax', arg, clipmax) + self._init_provided('clipmin', arg, clipmin) + self._init_provided('include', arg, include) + self._init_provided('includesrc', arg, includesrc) + self._init_provided('maxallowed', arg, maxallowed) + self._init_provided('minallowed', arg, minallowed) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/xaxis/_minor.py b/packages/python/plotly/plotly/graph_objs/layout/xaxis/_minor.py index 08ccaacfc71..48b871acbbd 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/xaxis/_minor.py +++ b/packages/python/plotly/plotly/graph_objs/layout/xaxis/_minor.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,24 +8,9 @@ class Minor(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.xaxis" - _path_str = "layout.xaxis.minor" - _valid_props = { - "dtick", - "gridcolor", - "griddash", - "gridwidth", - "nticks", - "showgrid", - "tick0", - "tickcolor", - "ticklen", - "tickmode", - "ticks", - "tickvals", - "tickvalssrc", - "tickwidth", - } + _parent_path_str = 'layout.xaxis' + _path_str = 'layout.xaxis.minor' + _valid_props = {"dtick", "gridcolor", "griddash", "gridwidth", "nticks", "showgrid", "tick0", "tickcolor", "ticklen", "tickmode", "ticks", "tickvals", "tickvalssrc", "tickwidth"} # dtick # ----- @@ -57,11 +44,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # gridcolor # --------- @@ -75,52 +62,17 @@ def gridcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["gridcolor"] + return self['gridcolor'] @gridcolor.setter def gridcolor(self, val): - self["gridcolor"] = val + self['gridcolor'] = val # griddash # -------- @@ -142,11 +94,11 @@ def griddash(self): ------- str """ - return self["griddash"] + return self['griddash'] @griddash.setter def griddash(self, val): - self["griddash"] = val + self['griddash'] = val # gridwidth # --------- @@ -162,11 +114,11 @@ def gridwidth(self): ------- int|float """ - return self["gridwidth"] + return self['gridwidth'] @gridwidth.setter def gridwidth(self, val): - self["gridwidth"] = val + self['gridwidth'] = val # nticks # ------ @@ -186,11 +138,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # showgrid # -------- @@ -207,11 +159,11 @@ def showgrid(self): ------- bool """ - return self["showgrid"] + return self['showgrid'] @showgrid.setter def showgrid(self, val): - self["showgrid"] = val + self['showgrid'] = val # tick0 # ----- @@ -234,11 +186,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickcolor # --------- @@ -252,52 +204,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # ticklen # ------- @@ -313,11 +230,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -340,11 +257,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # ticks # ----- @@ -363,11 +280,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # tickvals # -------- @@ -384,11 +301,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -404,11 +321,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -424,11 +341,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # Self properties description # --------------------------- @@ -515,26 +432,24 @@ def _prop_descriptions(self): tickwidth Sets the tick width (in px). """ - - def __init__( - self, - arg=None, - dtick=None, - gridcolor=None, - griddash=None, - gridwidth=None, - nticks=None, - showgrid=None, - tick0=None, - tickcolor=None, - ticklen=None, - tickmode=None, - ticks=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtick=None, + gridcolor=None, + griddash=None, + gridwidth=None, + nticks=None, + showgrid=None, + tick0=None, + tickcolor=None, + ticklen=None, + tickmode=None, + ticks=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + **kwargs + ): """ Construct a new Minor object @@ -628,10 +543,10 @@ def __init__( ------- Minor """ - super(Minor, self).__init__("minor") + super(Minor, self).__init__('minor') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -643,76 +558,33 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.xaxis.Minor constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.xaxis.Minor`""" - ) +an instance of :class:`plotly.graph_objs.layout.xaxis.Minor`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("gridcolor", None) - _v = gridcolor if gridcolor is not None else _v - if _v is not None: - self["gridcolor"] = _v - _v = arg.pop("griddash", None) - _v = griddash if griddash is not None else _v - if _v is not None: - self["griddash"] = _v - _v = arg.pop("gridwidth", None) - _v = gridwidth if gridwidth is not None else _v - if _v is not None: - self["gridwidth"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("showgrid", None) - _v = showgrid if showgrid is not None else _v - if _v is not None: - self["showgrid"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v + self._init_provided('dtick', arg, dtick) + self._init_provided('gridcolor', arg, gridcolor) + self._init_provided('griddash', arg, griddash) + self._init_provided('gridwidth', arg, gridwidth) + self._init_provided('nticks', arg, nticks) + self._init_provided('showgrid', arg, showgrid) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('ticks', arg, ticks) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/xaxis/_rangebreak.py b/packages/python/plotly/plotly/graph_objs/layout/xaxis/_rangebreak.py index aad40eb59a7..aac27c6834f 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/xaxis/_rangebreak.py +++ b/packages/python/plotly/plotly/graph_objs/layout/xaxis/_rangebreak.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,41 +8,33 @@ class Rangebreak(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.xaxis" - _path_str = "layout.xaxis.rangebreak" - _valid_props = { - "bounds", - "dvalue", - "enabled", - "name", - "pattern", - "templateitemname", - "values", - } + _parent_path_str = 'layout.xaxis' + _path_str = 'layout.xaxis.rangebreak' + _valid_props = {"bounds", "dvalue", "enabled", "name", "pattern", "templateitemname", "values"} # bounds # ------ @property def bounds(self): """ - Sets the lower and upper bounds of this axis rangebreak. Can be - used with `pattern`. + Sets the lower and upper bounds of this axis rangebreak. Can be + used with `pattern`. - The 'bounds' property is an info array that may be specified as: + The 'bounds' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'bounds[0]' property accepts values of any type + (1) The 'bounds[1]' property accepts values of any type - * a list or tuple of 2 elements where: - (0) The 'bounds[0]' property accepts values of any type - (1) The 'bounds[1]' property accepts values of any type - - Returns - ------- - list + Returns + ------- + list """ - return self["bounds"] + return self['bounds'] @bounds.setter def bounds(self, val): - self["bounds"] = val + self['bounds'] = val # dvalue # ------ @@ -57,11 +51,11 @@ def dvalue(self): ------- int|float """ - return self["dvalue"] + return self['dvalue'] @dvalue.setter def dvalue(self, val): - self["dvalue"] = val + self['dvalue'] = val # enabled # ------- @@ -78,11 +72,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -105,11 +99,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # pattern # ------- @@ -135,11 +129,11 @@ def pattern(self): ------- Any """ - return self["pattern"] + return self['pattern'] @pattern.setter def pattern(self, val): - self["pattern"] = val + self['pattern'] = val # templateitemname # ---------------- @@ -163,11 +157,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # values # ------ @@ -186,11 +180,11 @@ def values(self): ------- list """ - return self["values"] + return self['values'] @values.setter def values(self, val): - self["values"] = val + self['values'] = val # Self properties description # --------------------------- @@ -243,19 +237,17 @@ def _prop_descriptions(self): rangebreaks. An alternative to `bounds`. Use `dvalue` to set the size of the values along the axis. """ - - def __init__( - self, - arg=None, - bounds=None, - dvalue=None, - enabled=None, - name=None, - pattern=None, - templateitemname=None, - values=None, - **kwargs, - ): + def __init__(self, + arg=None, + bounds=None, + dvalue=None, + enabled=None, + name=None, + pattern=None, + templateitemname=None, + values=None, + **kwargs + ): """ Construct a new Rangebreak object @@ -315,10 +307,10 @@ def __init__( ------- Rangebreak """ - super(Rangebreak, self).__init__("rangebreaks") + super(Rangebreak, self).__init__('rangebreaks') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -330,48 +322,26 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.xaxis.Rangebreak constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.xaxis.Rangebreak`""" - ) +an instance of :class:`plotly.graph_objs.layout.xaxis.Rangebreak`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bounds", None) - _v = bounds if bounds is not None else _v - if _v is not None: - self["bounds"] = _v - _v = arg.pop("dvalue", None) - _v = dvalue if dvalue is not None else _v - if _v is not None: - self["dvalue"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("pattern", None) - _v = pattern if pattern is not None else _v - if _v is not None: - self["pattern"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("values", None) - _v = values if values is not None else _v - if _v is not None: - self["values"] = _v + self._init_provided('bounds', arg, bounds) + self._init_provided('dvalue', arg, dvalue) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('pattern', arg, pattern) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('values', arg, values) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/xaxis/_rangeselector.py b/packages/python/plotly/plotly/graph_objs/layout/xaxis/_rangeselector.py index 472fd80915b..d9826586916 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/xaxis/_rangeselector.py +++ b/packages/python/plotly/plotly/graph_objs/layout/xaxis/_rangeselector.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,22 +8,9 @@ class Rangeselector(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.xaxis" - _path_str = "layout.xaxis.rangeselector" - _valid_props = { - "activecolor", - "bgcolor", - "bordercolor", - "borderwidth", - "buttondefaults", - "buttons", - "font", - "visible", - "x", - "xanchor", - "y", - "yanchor", - } + _parent_path_str = 'layout.xaxis' + _path_str = 'layout.xaxis.rangeselector' + _valid_props = {"activecolor", "bgcolor", "bordercolor", "borderwidth", "buttondefaults", "buttons", "font", "visible", "x", "xanchor", "y", "yanchor"} # activecolor # ----------- @@ -35,52 +24,17 @@ def activecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["activecolor"] + return self['activecolor'] @activecolor.setter def activecolor(self, val): - self["activecolor"] = val + self['activecolor'] = val # bgcolor # ------- @@ -94,52 +48,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -153,52 +72,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -215,11 +99,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # buttons # ------- @@ -235,63 +119,15 @@ def buttons(self): - A list or tuple of dicts of string/value properties that will be passed to the Button constructor - Supported dict properties: - - count - Sets the number of steps to take to update the - range. Use with `step` to specify the update - interval. - label - Sets the text label to appear on the button. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - step - The unit of measurement that the `count` value - will set the range by. - stepmode - Sets the range update mode. If "backward", the - range update shifts the start of range back - "count" times "step" milliseconds. If "todate", - the range update shifts the start of range back - to the first timestamp from "count" times - "step" milliseconds back. For example, with - `step` set to "year" and `count` set to 1 the - range update shifts the start of the range back - to January 01 of the current year. Month and - year "todate" are currently available only for - the built-in (Gregorian) calendar. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - visible - Determines whether or not this button is - visible. - Returns ------- tuple[plotly.graph_objs.layout.xaxis.rangeselector.Button] """ - return self["buttons"] + return self['buttons'] @buttons.setter def buttons(self, val): - self["buttons"] = val + self['buttons'] = val # buttondefaults # -------------- @@ -309,17 +145,15 @@ def buttondefaults(self): - A dict of string/value properties that will be passed to the Button constructor - Supported dict properties: - Returns ------- plotly.graph_objs.layout.xaxis.rangeselector.Button """ - return self["buttondefaults"] + return self['buttondefaults'] @buttondefaults.setter def buttondefaults(self, val): - self["buttondefaults"] = val + self['buttondefaults'] = val # font # ---- @@ -334,61 +168,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.xaxis.rangeselector.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # visible # ------- @@ -406,11 +194,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # x # - @@ -427,11 +215,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -450,11 +238,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # y # - @@ -471,11 +259,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -494,11 +282,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # Self properties description # --------------------------- @@ -546,24 +334,22 @@ def _prop_descriptions(self): anchor binds the `y` position to the "top", "middle" or "bottom" of the range selector. """ - - def __init__( - self, - arg=None, - activecolor=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - buttons=None, - buttondefaults=None, - font=None, - visible=None, - x=None, - xanchor=None, - y=None, - yanchor=None, - **kwargs, - ): + def __init__(self, + arg=None, + activecolor=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + buttons=None, + buttondefaults=None, + font=None, + visible=None, + x=None, + xanchor=None, + y=None, + yanchor=None, + **kwargs + ): """ Construct a new Rangeselector object @@ -618,10 +404,10 @@ def __init__( ------- Rangeselector """ - super(Rangeselector, self).__init__("rangeselector") + super(Rangeselector, self).__init__('rangeselector') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -633,68 +419,31 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.xaxis.Rangeselector constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.xaxis.Rangeselector`""" - ) +an instance of :class:`plotly.graph_objs.layout.xaxis.Rangeselector`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("activecolor", None) - _v = activecolor if activecolor is not None else _v - if _v is not None: - self["activecolor"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("buttons", None) - _v = buttons if buttons is not None else _v - if _v is not None: - self["buttons"] = _v - _v = arg.pop("buttondefaults", None) - _v = buttondefaults if buttondefaults is not None else _v - if _v is not None: - self["buttondefaults"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v + self._init_provided('activecolor', arg, activecolor) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('buttons', arg, buttons) + self._init_provided('buttondefaults', arg, buttondefaults) + self._init_provided('font', arg, font) + self._init_provided('visible', arg, visible) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/xaxis/_rangeslider.py b/packages/python/plotly/plotly/graph_objs/layout/xaxis/_rangeslider.py index 4d0a987bcbb..3d585651532 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/xaxis/_rangeslider.py +++ b/packages/python/plotly/plotly/graph_objs/layout/xaxis/_rangeslider.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,18 +8,9 @@ class Rangeslider(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.xaxis" - _path_str = "layout.xaxis.rangeslider" - _valid_props = { - "autorange", - "bgcolor", - "bordercolor", - "borderwidth", - "range", - "thickness", - "visible", - "yaxis", - } + _parent_path_str = 'layout.xaxis' + _path_str = 'layout.xaxis.rangeslider' + _valid_props = {"autorange", "bgcolor", "bordercolor", "borderwidth", "range", "thickness", "visible", "yaxis"} # autorange # --------- @@ -35,11 +28,11 @@ def autorange(self): ------- bool """ - return self["autorange"] + return self['autorange'] @autorange.setter def autorange(self, val): - self["autorange"] = val + self['autorange'] = val # bgcolor # ------- @@ -53,52 +46,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -112,52 +70,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -174,41 +97,41 @@ def borderwidth(self): ------- int """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # range # ----- @property def range(self): """ - Sets the range of the range slider. If not set, defaults to the - full xaxis range. If the axis `type` is "log", then you must - take the log of your desired range. If the axis `type` is - "date", it should be date strings, like date data, though Date - objects and unix milliseconds will be accepted and converted to - strings. If the axis `type` is "category", it should be - numbers, using the scale where each category is assigned a - serial number from zero in the order it appears. - - The 'range' property is an info array that may be specified as: - - * a list or tuple of 2 elements where: - (0) The 'range[0]' property accepts values of any type - (1) The 'range[1]' property accepts values of any type + Sets the range of the range slider. If not set, defaults to the + full xaxis range. If the axis `type` is "log", then you must + take the log of your desired range. If the axis `type` is + "date", it should be date strings, like date data, though Date + objects and unix milliseconds will be accepted and converted to + strings. If the axis `type` is "category", it should be + numbers, using the scale where each category is assigned a + serial number from zero in the order it appears. + + The 'range' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'range[0]' property accepts values of any type + (1) The 'range[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["range"] + return self['range'] @range.setter def range(self, val): - self["range"] = val + self['range'] = val # thickness # --------- @@ -225,11 +148,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # visible # ------- @@ -246,11 +169,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # yaxis # ----- @@ -263,29 +186,15 @@ def yaxis(self): - A dict of string/value properties that will be passed to the YAxis constructor - Supported dict properties: - - range - Sets the range of this axis for the - rangeslider. - rangemode - Determines whether or not the range of this - axis in the rangeslider use the same value than - in the main plot when zooming in/out. If - "auto", the autorange will be used. If "fixed", - the `range` is used. If "match", the current - range of the corresponding y-axis on the main - subplot is used. - Returns ------- plotly.graph_objs.layout.xaxis.rangeslider.YAxis """ - return self["yaxis"] + return self['yaxis'] @yaxis.setter def yaxis(self, val): - self["yaxis"] = val + self['yaxis'] = val # Self properties description # --------------------------- @@ -323,20 +232,18 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.layout.xaxis.rangeslider.Y Axis` instance or dict with compatible properties """ - - def __init__( - self, - arg=None, - autorange=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - range=None, - thickness=None, - visible=None, - yaxis=None, - **kwargs, - ): + def __init__(self, + arg=None, + autorange=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + range=None, + thickness=None, + visible=None, + yaxis=None, + **kwargs + ): """ Construct a new Rangeslider object @@ -381,10 +288,10 @@ def __init__( ------- Rangeslider """ - super(Rangeslider, self).__init__("rangeslider") + super(Rangeslider, self).__init__('rangeslider') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -396,52 +303,27 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.xaxis.Rangeslider constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.xaxis.Rangeslider`""" - ) +an instance of :class:`plotly.graph_objs.layout.xaxis.Rangeslider`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autorange", None) - _v = autorange if autorange is not None else _v - if _v is not None: - self["autorange"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("range", None) - _v = range if range is not None else _v - if _v is not None: - self["range"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("yaxis", None) - _v = yaxis if yaxis is not None else _v - if _v is not None: - self["yaxis"] = _v + self._init_provided('autorange', arg, autorange) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('range', arg, range) + self._init_provided('thickness', arg, thickness) + self._init_provided('visible', arg, visible) + self._init_provided('yaxis', arg, yaxis) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/xaxis/_tickfont.py b/packages/python/plotly/plotly/graph_objs/layout/xaxis/_tickfont.py index 77944969fe7..a3d8a4c0844 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/xaxis/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/layout/xaxis/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.xaxis" - _path_str = "layout.xaxis.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.xaxis' + _path_str = 'layout.xaxis.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.xaxis.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.xaxis.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.layout.xaxis.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/xaxis/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/layout/xaxis/_tickformatstop.py index 75674f2ee20..fd8e4d9d9d1 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/xaxis/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/layout/xaxis/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.xaxis" - _path_str = "layout.xaxis.tickformatstop" + _parent_path_str = 'layout.xaxis' + _path_str = 'layout.xaxis.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseLayoutHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.xaxis.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.xaxis.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.layout.xaxis.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/xaxis/_title.py b/packages/python/plotly/plotly/graph_objs/layout/xaxis/_title.py index a2a53e4d986..56a432890f6 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/xaxis/_title.py +++ b/packages/python/plotly/plotly/graph_objs/layout/xaxis/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.xaxis" - _path_str = "layout.xaxis.title" + _parent_path_str = 'layout.xaxis' + _path_str = 'layout.xaxis.title' _valid_props = {"font", "standoff", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.xaxis.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # standoff # -------- @@ -100,11 +56,11 @@ def standoff(self): ------- int|float """ - return self["standoff"] + return self['standoff'] @standoff.setter def standoff(self, val): - self["standoff"] = val + self['standoff'] = val # text # ---- @@ -121,11 +77,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -147,8 +103,13 @@ def _prop_descriptions(self): text Sets the title of this axis. """ - - def __init__(self, arg=None, font=None, standoff=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + standoff=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -177,10 +138,10 @@ def __init__(self, arg=None, font=None, standoff=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -192,32 +153,22 @@ def __init__(self, arg=None, font=None, standoff=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.xaxis.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.xaxis.Title`""" - ) +an instance of :class:`plotly.graph_objs.layout.xaxis.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("standoff", None) - _v = standoff if standoff is not None else _v - if _v is not None: - self["standoff"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('standoff', arg, standoff) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/xaxis/rangeselector/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/xaxis/rangeselector/__init__.py index 5f2046f921b..92f6b1860ad 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/xaxis/rangeselector/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/xaxis/rangeselector/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._button import Button from ._font import Font else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._button.Button", "._font.Font"] + __name__, + [], + ['._button.Button', '._font.Font'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/xaxis/rangeselector/_button.py b/packages/python/plotly/plotly/graph_objs/layout/xaxis/rangeselector/_button.py index 80344305e21..bdd5fa07603 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/xaxis/rangeselector/_button.py +++ b/packages/python/plotly/plotly/graph_objs/layout/xaxis/rangeselector/_button.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,17 +8,9 @@ class Button(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.xaxis.rangeselector" - _path_str = "layout.xaxis.rangeselector.button" - _valid_props = { - "count", - "label", - "name", - "step", - "stepmode", - "templateitemname", - "visible", - } + _parent_path_str = 'layout.xaxis.rangeselector' + _path_str = 'layout.xaxis.rangeselector.button' + _valid_props = {"count", "label", "name", "step", "stepmode", "templateitemname", "visible"} # count # ----- @@ -33,11 +27,11 @@ def count(self): ------- int|float """ - return self["count"] + return self['count'] @count.setter def count(self, val): - self["count"] = val + self['count'] = val # label # ----- @@ -54,11 +48,11 @@ def label(self): ------- str """ - return self["label"] + return self['label'] @label.setter def label(self, val): - self["label"] = val + self['label'] = val # name # ---- @@ -81,11 +75,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # step # ---- @@ -104,11 +98,11 @@ def step(self): ------- Any """ - return self["step"] + return self['step'] @step.setter def step(self, val): - self["step"] = val + self['step'] = val # stepmode # -------- @@ -133,11 +127,11 @@ def stepmode(self): ------- Any """ - return self["stepmode"] + return self['stepmode'] @stepmode.setter def stepmode(self, val): - self["stepmode"] = val + self['stepmode'] = val # templateitemname # ---------------- @@ -161,11 +155,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # visible # ------- @@ -181,11 +175,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # Self properties description # --------------------------- @@ -233,19 +227,17 @@ def _prop_descriptions(self): visible Determines whether or not this button is visible. """ - - def __init__( - self, - arg=None, - count=None, - label=None, - name=None, - step=None, - stepmode=None, - templateitemname=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + count=None, + label=None, + name=None, + step=None, + stepmode=None, + templateitemname=None, + visible=None, + **kwargs + ): """ Construct a new Button object @@ -303,10 +295,10 @@ def __init__( ------- Button """ - super(Button, self).__init__("buttons") + super(Button, self).__init__('buttons') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -318,48 +310,26 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.xaxis.rangeselector.Button constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.xaxis.rangeselector.Button`""" - ) +an instance of :class:`plotly.graph_objs.layout.xaxis.rangeselector.Button`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("count", None) - _v = count if count is not None else _v - if _v is not None: - self["count"] = _v - _v = arg.pop("label", None) - _v = label if label is not None else _v - if _v is not None: - self["label"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("step", None) - _v = step if step is not None else _v - if _v is not None: - self["step"] = _v - _v = arg.pop("stepmode", None) - _v = stepmode if stepmode is not None else _v - if _v is not None: - self["stepmode"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('count', arg, count) + self._init_provided('label', arg, label) + self._init_provided('name', arg, name) + self._init_provided('step', arg, step) + self._init_provided('stepmode', arg, stepmode) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('visible', arg, visible) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/xaxis/rangeselector/_font.py b/packages/python/plotly/plotly/graph_objs/layout/xaxis/rangeselector/_font.py index 60fe186eea3..953baf92ccb 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/xaxis/rangeselector/_font.py +++ b/packages/python/plotly/plotly/graph_objs/layout/xaxis/rangeselector/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.xaxis.rangeselector" - _path_str = "layout.xaxis.rangeselector.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.xaxis.rangeselector' + _path_str = 'layout.xaxis.rangeselector.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.xaxis.rangeselector.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.xaxis.rangeselector.Font`""" - ) +an instance of :class:`plotly.graph_objs.layout.xaxis.rangeselector.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/xaxis/rangeslider/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/xaxis/rangeslider/__init__.py index 0eaf7ecc595..8f177fe5ae8 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/xaxis/rangeslider/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/xaxis/rangeslider/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yaxis import YAxis else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._yaxis.YAxis'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._yaxis.YAxis"]) diff --git a/packages/python/plotly/plotly/graph_objs/layout/xaxis/rangeslider/_yaxis.py b/packages/python/plotly/plotly/graph_objs/layout/xaxis/rangeslider/_yaxis.py index f6d65c62d37..6e8a9acaba3 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/xaxis/rangeslider/_yaxis.py +++ b/packages/python/plotly/plotly/graph_objs/layout/xaxis/rangeslider/_yaxis.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class YAxis(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.xaxis.rangeslider" - _path_str = "layout.xaxis.rangeslider.yaxis" + _parent_path_str = 'layout.xaxis.rangeslider' + _path_str = 'layout.xaxis.rangeslider.yaxis' _valid_props = {"range", "rangemode"} # range @@ -15,23 +17,23 @@ class YAxis(_BaseLayoutHierarchyType): @property def range(self): """ - Sets the range of this axis for the rangeslider. - - The 'range' property is an info array that may be specified as: + Sets the range of this axis for the rangeslider. - * a list or tuple of 2 elements where: - (0) The 'range[0]' property accepts values of any type - (1) The 'range[1]' property accepts values of any type + The 'range' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'range[0]' property accepts values of any type + (1) The 'range[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["range"] + return self['range'] @range.setter def range(self, val): - self["range"] = val + self['range'] = val # rangemode # --------- @@ -52,11 +54,11 @@ def rangemode(self): ------- Any """ - return self["rangemode"] + return self['rangemode'] @rangemode.setter def rangemode(self, val): - self["rangemode"] = val + self['rangemode'] = val # Self properties description # --------------------------- @@ -73,8 +75,12 @@ def _prop_descriptions(self): current range of the corresponding y-axis on the main subplot is used. """ - - def __init__(self, arg=None, range=None, rangemode=None, **kwargs): + def __init__(self, + arg=None, + range=None, + rangemode=None, + **kwargs + ): """ Construct a new YAxis object @@ -98,10 +104,10 @@ def __init__(self, arg=None, range=None, rangemode=None, **kwargs): ------- YAxis """ - super(YAxis, self).__init__("yaxis") + super(YAxis, self).__init__('yaxis') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -113,28 +119,21 @@ def __init__(self, arg=None, range=None, rangemode=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.xaxis.rangeslider.YAxis constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.xaxis.rangeslider.YAxis`""" - ) +an instance of :class:`plotly.graph_objs.layout.xaxis.rangeslider.YAxis`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("range", None) - _v = range if range is not None else _v - if _v is not None: - self["range"] = _v - _v = arg.pop("rangemode", None) - _v = rangemode if rangemode is not None else _v - if _v is not None: - self["rangemode"] = _v + self._init_provided('range', arg, range) + self._init_provided('rangemode', arg, rangemode) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/xaxis/title/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/xaxis/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/xaxis/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/xaxis/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/layout/xaxis/title/_font.py b/packages/python/plotly/plotly/graph_objs/layout/xaxis/title/_font.py index c03035018bc..8dd114ceaed 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/xaxis/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/layout/xaxis/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.xaxis.title" - _path_str = "layout.xaxis.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.xaxis.title' + _path_str = 'layout.xaxis.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.xaxis.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.xaxis.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.layout.xaxis.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/yaxis/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/yaxis/__init__.py index 0772a2b9bc8..7c927f49ab4 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/yaxis/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/yaxis/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._autorangeoptions import Autorangeoptions from ._minor import Minor @@ -11,16 +10,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - [ - "._autorangeoptions.Autorangeoptions", - "._minor.Minor", - "._rangebreak.Rangebreak", - "._tickfont.Tickfont", - "._tickformatstop.Tickformatstop", - "._title.Title", - ], + ['.title'], + ['._autorangeoptions.Autorangeoptions', '._minor.Minor', '._rangebreak.Rangebreak', '._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/layout/yaxis/_autorangeoptions.py b/packages/python/plotly/plotly/graph_objs/layout/yaxis/_autorangeoptions.py index 9824e15d8e0..fd30527fab9 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/yaxis/_autorangeoptions.py +++ b/packages/python/plotly/plotly/graph_objs/layout/yaxis/_autorangeoptions.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,16 +8,9 @@ class Autorangeoptions(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.yaxis" - _path_str = "layout.yaxis.autorangeoptions" - _valid_props = { - "clipmax", - "clipmin", - "include", - "includesrc", - "maxallowed", - "minallowed", - } + _parent_path_str = 'layout.yaxis' + _path_str = 'layout.yaxis.autorangeoptions' + _valid_props = {"clipmax", "clipmin", "include", "includesrc", "maxallowed", "minallowed"} # clipmax # ------- @@ -31,11 +26,11 @@ def clipmax(self): ------- Any """ - return self["clipmax"] + return self['clipmax'] @clipmax.setter def clipmax(self, val): - self["clipmax"] = val + self['clipmax'] = val # clipmin # ------- @@ -51,11 +46,11 @@ def clipmin(self): ------- Any """ - return self["clipmin"] + return self['clipmin'] @clipmin.setter def clipmin(self, val): - self["clipmin"] = val + self['clipmin'] = val # include # ------- @@ -70,11 +65,11 @@ def include(self): ------- Any|numpy.ndarray """ - return self["include"] + return self['include'] @include.setter def include(self, val): - self["include"] = val + self['include'] = val # includesrc # ---------- @@ -90,11 +85,11 @@ def includesrc(self): ------- str """ - return self["includesrc"] + return self['includesrc'] @includesrc.setter def includesrc(self, val): - self["includesrc"] = val + self['includesrc'] = val # maxallowed # ---------- @@ -109,11 +104,11 @@ def maxallowed(self): ------- Any """ - return self["maxallowed"] + return self['maxallowed'] @maxallowed.setter def maxallowed(self, val): - self["maxallowed"] = val + self['maxallowed'] = val # minallowed # ---------- @@ -128,11 +123,11 @@ def minallowed(self): ------- Any """ - return self["minallowed"] + return self['minallowed'] @minallowed.setter def minallowed(self, val): - self["minallowed"] = val + self['minallowed'] = val # Self properties description # --------------------------- @@ -157,18 +152,16 @@ def _prop_descriptions(self): minallowed Use this value exactly as autorange minimum. """ - - def __init__( - self, - arg=None, - clipmax=None, - clipmin=None, - include=None, - includesrc=None, - maxallowed=None, - minallowed=None, - **kwargs, - ): + def __init__(self, + arg=None, + clipmax=None, + clipmin=None, + include=None, + includesrc=None, + maxallowed=None, + minallowed=None, + **kwargs + ): """ Construct a new Autorangeoptions object @@ -200,10 +193,10 @@ def __init__( ------- Autorangeoptions """ - super(Autorangeoptions, self).__init__("autorangeoptions") + super(Autorangeoptions, self).__init__('autorangeoptions') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -215,44 +208,25 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.yaxis.Autorangeoptions constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.yaxis.Autorangeoptions`""" - ) +an instance of :class:`plotly.graph_objs.layout.yaxis.Autorangeoptions`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("clipmax", None) - _v = clipmax if clipmax is not None else _v - if _v is not None: - self["clipmax"] = _v - _v = arg.pop("clipmin", None) - _v = clipmin if clipmin is not None else _v - if _v is not None: - self["clipmin"] = _v - _v = arg.pop("include", None) - _v = include if include is not None else _v - if _v is not None: - self["include"] = _v - _v = arg.pop("includesrc", None) - _v = includesrc if includesrc is not None else _v - if _v is not None: - self["includesrc"] = _v - _v = arg.pop("maxallowed", None) - _v = maxallowed if maxallowed is not None else _v - if _v is not None: - self["maxallowed"] = _v - _v = arg.pop("minallowed", None) - _v = minallowed if minallowed is not None else _v - if _v is not None: - self["minallowed"] = _v + self._init_provided('clipmax', arg, clipmax) + self._init_provided('clipmin', arg, clipmin) + self._init_provided('include', arg, include) + self._init_provided('includesrc', arg, includesrc) + self._init_provided('maxallowed', arg, maxallowed) + self._init_provided('minallowed', arg, minallowed) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/yaxis/_minor.py b/packages/python/plotly/plotly/graph_objs/layout/yaxis/_minor.py index c48c590f843..df2c9c585ae 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/yaxis/_minor.py +++ b/packages/python/plotly/plotly/graph_objs/layout/yaxis/_minor.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,24 +8,9 @@ class Minor(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.yaxis" - _path_str = "layout.yaxis.minor" - _valid_props = { - "dtick", - "gridcolor", - "griddash", - "gridwidth", - "nticks", - "showgrid", - "tick0", - "tickcolor", - "ticklen", - "tickmode", - "ticks", - "tickvals", - "tickvalssrc", - "tickwidth", - } + _parent_path_str = 'layout.yaxis' + _path_str = 'layout.yaxis.minor' + _valid_props = {"dtick", "gridcolor", "griddash", "gridwidth", "nticks", "showgrid", "tick0", "tickcolor", "ticklen", "tickmode", "ticks", "tickvals", "tickvalssrc", "tickwidth"} # dtick # ----- @@ -57,11 +44,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # gridcolor # --------- @@ -75,52 +62,17 @@ def gridcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["gridcolor"] + return self['gridcolor'] @gridcolor.setter def gridcolor(self, val): - self["gridcolor"] = val + self['gridcolor'] = val # griddash # -------- @@ -142,11 +94,11 @@ def griddash(self): ------- str """ - return self["griddash"] + return self['griddash'] @griddash.setter def griddash(self, val): - self["griddash"] = val + self['griddash'] = val # gridwidth # --------- @@ -162,11 +114,11 @@ def gridwidth(self): ------- int|float """ - return self["gridwidth"] + return self['gridwidth'] @gridwidth.setter def gridwidth(self, val): - self["gridwidth"] = val + self['gridwidth'] = val # nticks # ------ @@ -186,11 +138,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # showgrid # -------- @@ -207,11 +159,11 @@ def showgrid(self): ------- bool """ - return self["showgrid"] + return self['showgrid'] @showgrid.setter def showgrid(self, val): - self["showgrid"] = val + self['showgrid'] = val # tick0 # ----- @@ -234,11 +186,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickcolor # --------- @@ -252,52 +204,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # ticklen # ------- @@ -313,11 +230,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -340,11 +257,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # ticks # ----- @@ -363,11 +280,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # tickvals # -------- @@ -384,11 +301,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -404,11 +321,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -424,11 +341,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # Self properties description # --------------------------- @@ -515,26 +432,24 @@ def _prop_descriptions(self): tickwidth Sets the tick width (in px). """ - - def __init__( - self, - arg=None, - dtick=None, - gridcolor=None, - griddash=None, - gridwidth=None, - nticks=None, - showgrid=None, - tick0=None, - tickcolor=None, - ticklen=None, - tickmode=None, - ticks=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtick=None, + gridcolor=None, + griddash=None, + gridwidth=None, + nticks=None, + showgrid=None, + tick0=None, + tickcolor=None, + ticklen=None, + tickmode=None, + ticks=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + **kwargs + ): """ Construct a new Minor object @@ -628,10 +543,10 @@ def __init__( ------- Minor """ - super(Minor, self).__init__("minor") + super(Minor, self).__init__('minor') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -643,76 +558,33 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.yaxis.Minor constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.yaxis.Minor`""" - ) +an instance of :class:`plotly.graph_objs.layout.yaxis.Minor`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("gridcolor", None) - _v = gridcolor if gridcolor is not None else _v - if _v is not None: - self["gridcolor"] = _v - _v = arg.pop("griddash", None) - _v = griddash if griddash is not None else _v - if _v is not None: - self["griddash"] = _v - _v = arg.pop("gridwidth", None) - _v = gridwidth if gridwidth is not None else _v - if _v is not None: - self["gridwidth"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("showgrid", None) - _v = showgrid if showgrid is not None else _v - if _v is not None: - self["showgrid"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v + self._init_provided('dtick', arg, dtick) + self._init_provided('gridcolor', arg, gridcolor) + self._init_provided('griddash', arg, griddash) + self._init_provided('gridwidth', arg, gridwidth) + self._init_provided('nticks', arg, nticks) + self._init_provided('showgrid', arg, showgrid) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('ticks', arg, ticks) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/yaxis/_rangebreak.py b/packages/python/plotly/plotly/graph_objs/layout/yaxis/_rangebreak.py index fc61da1c7ea..9615fc1e188 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/yaxis/_rangebreak.py +++ b/packages/python/plotly/plotly/graph_objs/layout/yaxis/_rangebreak.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,41 +8,33 @@ class Rangebreak(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.yaxis" - _path_str = "layout.yaxis.rangebreak" - _valid_props = { - "bounds", - "dvalue", - "enabled", - "name", - "pattern", - "templateitemname", - "values", - } + _parent_path_str = 'layout.yaxis' + _path_str = 'layout.yaxis.rangebreak' + _valid_props = {"bounds", "dvalue", "enabled", "name", "pattern", "templateitemname", "values"} # bounds # ------ @property def bounds(self): """ - Sets the lower and upper bounds of this axis rangebreak. Can be - used with `pattern`. + Sets the lower and upper bounds of this axis rangebreak. Can be + used with `pattern`. - The 'bounds' property is an info array that may be specified as: + The 'bounds' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'bounds[0]' property accepts values of any type + (1) The 'bounds[1]' property accepts values of any type - * a list or tuple of 2 elements where: - (0) The 'bounds[0]' property accepts values of any type - (1) The 'bounds[1]' property accepts values of any type - - Returns - ------- - list + Returns + ------- + list """ - return self["bounds"] + return self['bounds'] @bounds.setter def bounds(self, val): - self["bounds"] = val + self['bounds'] = val # dvalue # ------ @@ -57,11 +51,11 @@ def dvalue(self): ------- int|float """ - return self["dvalue"] + return self['dvalue'] @dvalue.setter def dvalue(self, val): - self["dvalue"] = val + self['dvalue'] = val # enabled # ------- @@ -78,11 +72,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -105,11 +99,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # pattern # ------- @@ -135,11 +129,11 @@ def pattern(self): ------- Any """ - return self["pattern"] + return self['pattern'] @pattern.setter def pattern(self, val): - self["pattern"] = val + self['pattern'] = val # templateitemname # ---------------- @@ -163,11 +157,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # values # ------ @@ -186,11 +180,11 @@ def values(self): ------- list """ - return self["values"] + return self['values'] @values.setter def values(self, val): - self["values"] = val + self['values'] = val # Self properties description # --------------------------- @@ -243,19 +237,17 @@ def _prop_descriptions(self): rangebreaks. An alternative to `bounds`. Use `dvalue` to set the size of the values along the axis. """ - - def __init__( - self, - arg=None, - bounds=None, - dvalue=None, - enabled=None, - name=None, - pattern=None, - templateitemname=None, - values=None, - **kwargs, - ): + def __init__(self, + arg=None, + bounds=None, + dvalue=None, + enabled=None, + name=None, + pattern=None, + templateitemname=None, + values=None, + **kwargs + ): """ Construct a new Rangebreak object @@ -315,10 +307,10 @@ def __init__( ------- Rangebreak """ - super(Rangebreak, self).__init__("rangebreaks") + super(Rangebreak, self).__init__('rangebreaks') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -330,48 +322,26 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.yaxis.Rangebreak constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.yaxis.Rangebreak`""" - ) +an instance of :class:`plotly.graph_objs.layout.yaxis.Rangebreak`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bounds", None) - _v = bounds if bounds is not None else _v - if _v is not None: - self["bounds"] = _v - _v = arg.pop("dvalue", None) - _v = dvalue if dvalue is not None else _v - if _v is not None: - self["dvalue"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("pattern", None) - _v = pattern if pattern is not None else _v - if _v is not None: - self["pattern"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("values", None) - _v = values if values is not None else _v - if _v is not None: - self["values"] = _v + self._init_provided('bounds', arg, bounds) + self._init_provided('dvalue', arg, dvalue) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('pattern', arg, pattern) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('values', arg, values) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/yaxis/_tickfont.py b/packages/python/plotly/plotly/graph_objs/layout/yaxis/_tickfont.py index 9b851ae09e2..991d3507d33 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/yaxis/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/layout/yaxis/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.yaxis" - _path_str = "layout.yaxis.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.yaxis' + _path_str = 'layout.yaxis.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.yaxis.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.yaxis.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.layout.yaxis.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/yaxis/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/layout/yaxis/_tickformatstop.py index d765ca20524..a2025d59b1e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/yaxis/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/layout/yaxis/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.yaxis" - _path_str = "layout.yaxis.tickformatstop" + _parent_path_str = 'layout.yaxis' + _path_str = 'layout.yaxis.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseLayoutHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.yaxis.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.yaxis.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.layout.yaxis.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/yaxis/_title.py b/packages/python/plotly/plotly/graph_objs/layout/yaxis/_title.py index 550928ce2b9..4f49c140487 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/yaxis/_title.py +++ b/packages/python/plotly/plotly/graph_objs/layout/yaxis/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.yaxis" - _path_str = "layout.yaxis.title" + _parent_path_str = 'layout.yaxis' + _path_str = 'layout.yaxis.title' _valid_props = {"font", "standoff", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.layout.yaxis.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # standoff # -------- @@ -100,11 +56,11 @@ def standoff(self): ------- int|float """ - return self["standoff"] + return self['standoff'] @standoff.setter def standoff(self, val): - self["standoff"] = val + self['standoff'] = val # text # ---- @@ -121,11 +77,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -147,8 +103,13 @@ def _prop_descriptions(self): text Sets the title of this axis. """ - - def __init__(self, arg=None, font=None, standoff=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + standoff=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -177,10 +138,10 @@ def __init__(self, arg=None, font=None, standoff=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -192,32 +153,22 @@ def __init__(self, arg=None, font=None, standoff=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.yaxis.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.yaxis.Title`""" - ) +an instance of :class:`plotly.graph_objs.layout.yaxis.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("standoff", None) - _v = standoff if standoff is not None else _v - if _v is not None: - self["standoff"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('standoff', arg, standoff) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/yaxis/title/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/yaxis/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/yaxis/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/yaxis/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/layout/yaxis/title/_font.py b/packages/python/plotly/plotly/graph_objs/layout/yaxis/title/_font.py index 678a3a27060..1738390d4b5 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/yaxis/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/layout/yaxis/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseLayoutHierarchyType): # class properties # -------------------- - _parent_path_str = "layout.yaxis.title" - _path_str = "layout.yaxis.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'layout.yaxis.title' + _path_str = 'layout.yaxis.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.layout.yaxis.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.layout.yaxis.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.layout.yaxis.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/mesh3d/__init__.py b/packages/python/plotly/plotly/graph_objs/mesh3d/__init__.py index f3d446f51f5..3900385a55a 100644 --- a/packages/python/plotly/plotly/graph_objs/mesh3d/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/mesh3d/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._contour import Contour @@ -14,17 +13,10 @@ from . import legendgrouptitle else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".colorbar", ".hoverlabel", ".legendgrouptitle"], - [ - "._colorbar.ColorBar", - "._contour.Contour", - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._lighting.Lighting", - "._lightposition.Lightposition", - "._stream.Stream", - ], + ['.colorbar', '.hoverlabel', '.legendgrouptitle'], + ['._colorbar.ColorBar', '._contour.Contour', '._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._lighting.Lighting', '._lightposition.Lightposition', '._stream.Stream'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/mesh3d/_colorbar.py b/packages/python/plotly/plotly/graph_objs/mesh3d/_colorbar.py index e10aa7db5c6..c092df5d9ed 100644 --- a/packages/python/plotly/plotly/graph_objs/mesh3d/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/mesh3d/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "mesh3d" - _path_str = "mesh3d.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'mesh3d' + _path_str = 'mesh3d.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.mesh3d.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.mesh3d.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.mesh3d.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.mesh3d.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.mesh3d.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.mesh3d.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.mesh3d.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/mesh3d/_contour.py b/packages/python/plotly/plotly/graph_objs/mesh3d/_contour.py index fdf0646c027..3e0d037a91f 100644 --- a/packages/python/plotly/plotly/graph_objs/mesh3d/_contour.py +++ b/packages/python/plotly/plotly/graph_objs/mesh3d/_contour.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Contour(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "mesh3d" - _path_str = "mesh3d.contour" + _parent_path_str = 'mesh3d' + _path_str = 'mesh3d.contour' _valid_props = {"color", "show", "width"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # show # ---- @@ -83,11 +50,11 @@ def show(self): ------- bool """ - return self["show"] + return self['show'] @show.setter def show(self, val): - self["show"] = val + self['show'] = val # width # ----- @@ -103,11 +70,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -121,8 +88,13 @@ def _prop_descriptions(self): width Sets the width of the contour lines. """ - - def __init__(self, arg=None, color=None, show=None, width=None, **kwargs): + def __init__(self, + arg=None, + color=None, + show=None, + width=None, + **kwargs + ): """ Construct a new Contour object @@ -143,10 +115,10 @@ def __init__(self, arg=None, color=None, show=None, width=None, **kwargs): ------- Contour """ - super(Contour, self).__init__("contour") + super(Contour, self).__init__('contour') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -158,32 +130,22 @@ def __init__(self, arg=None, color=None, show=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.mesh3d.Contour constructor must be a dict or -an instance of :class:`plotly.graph_objs.mesh3d.Contour`""" - ) +an instance of :class:`plotly.graph_objs.mesh3d.Contour`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("show", None) - _v = show if show is not None else _v - if _v is not None: - self["show"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('show', arg, show) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/mesh3d/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/mesh3d/_hoverlabel.py index dfeab519ddf..8110367d294 100644 --- a/packages/python/plotly/plotly/graph_objs/mesh3d/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/mesh3d/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "mesh3d" - _path_str = "mesh3d.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'mesh3d' + _path_str = 'mesh3d.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.mesh3d.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.mesh3d.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.mesh3d.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.mesh3d.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/mesh3d/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/mesh3d/_legendgrouptitle.py index d4bf7d207e1..ca478fa5ae0 100644 --- a/packages/python/plotly/plotly/graph_objs/mesh3d/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/mesh3d/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "mesh3d" - _path_str = "mesh3d.legendgrouptitle" + _parent_path_str = 'mesh3d' + _path_str = 'mesh3d.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.mesh3d.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.mesh3d.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.mesh3d.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.mesh3d.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/mesh3d/_lighting.py b/packages/python/plotly/plotly/graph_objs/mesh3d/_lighting.py index 6659b4f7d9a..290a149997c 100644 --- a/packages/python/plotly/plotly/graph_objs/mesh3d/_lighting.py +++ b/packages/python/plotly/plotly/graph_objs/mesh3d/_lighting.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,17 +8,9 @@ class Lighting(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "mesh3d" - _path_str = "mesh3d.lighting" - _valid_props = { - "ambient", - "diffuse", - "facenormalsepsilon", - "fresnel", - "roughness", - "specular", - "vertexnormalsepsilon", - } + _parent_path_str = 'mesh3d' + _path_str = 'mesh3d.lighting' + _valid_props = {"ambient", "diffuse", "facenormalsepsilon", "fresnel", "roughness", "specular", "vertexnormalsepsilon"} # ambient # ------- @@ -33,11 +27,11 @@ def ambient(self): ------- int|float """ - return self["ambient"] + return self['ambient'] @ambient.setter def ambient(self, val): - self["ambient"] = val + self['ambient'] = val # diffuse # ------- @@ -54,11 +48,11 @@ def diffuse(self): ------- int|float """ - return self["diffuse"] + return self['diffuse'] @diffuse.setter def diffuse(self, val): - self["diffuse"] = val + self['diffuse'] = val # facenormalsepsilon # ------------------ @@ -75,11 +69,11 @@ def facenormalsepsilon(self): ------- int|float """ - return self["facenormalsepsilon"] + return self['facenormalsepsilon'] @facenormalsepsilon.setter def facenormalsepsilon(self, val): - self["facenormalsepsilon"] = val + self['facenormalsepsilon'] = val # fresnel # ------- @@ -97,11 +91,11 @@ def fresnel(self): ------- int|float """ - return self["fresnel"] + return self['fresnel'] @fresnel.setter def fresnel(self, val): - self["fresnel"] = val + self['fresnel'] = val # roughness # --------- @@ -118,11 +112,11 @@ def roughness(self): ------- int|float """ - return self["roughness"] + return self['roughness'] @roughness.setter def roughness(self, val): - self["roughness"] = val + self['roughness'] = val # specular # -------- @@ -139,11 +133,11 @@ def specular(self): ------- int|float """ - return self["specular"] + return self['specular'] @specular.setter def specular(self, val): - self["specular"] = val + self['specular'] = val # vertexnormalsepsilon # -------------------- @@ -160,11 +154,11 @@ def vertexnormalsepsilon(self): ------- int|float """ - return self["vertexnormalsepsilon"] + return self['vertexnormalsepsilon'] @vertexnormalsepsilon.setter def vertexnormalsepsilon(self, val): - self["vertexnormalsepsilon"] = val + self['vertexnormalsepsilon'] = val # Self properties description # --------------------------- @@ -195,19 +189,17 @@ def _prop_descriptions(self): Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry. """ - - def __init__( - self, - arg=None, - ambient=None, - diffuse=None, - facenormalsepsilon=None, - fresnel=None, - roughness=None, - specular=None, - vertexnormalsepsilon=None, - **kwargs, - ): + def __init__(self, + arg=None, + ambient=None, + diffuse=None, + facenormalsepsilon=None, + fresnel=None, + roughness=None, + specular=None, + vertexnormalsepsilon=None, + **kwargs + ): """ Construct a new Lighting object @@ -245,10 +237,10 @@ def __init__( ------- Lighting """ - super(Lighting, self).__init__("lighting") + super(Lighting, self).__init__('lighting') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -260,48 +252,26 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.mesh3d.Lighting constructor must be a dict or -an instance of :class:`plotly.graph_objs.mesh3d.Lighting`""" - ) +an instance of :class:`plotly.graph_objs.mesh3d.Lighting`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("ambient", None) - _v = ambient if ambient is not None else _v - if _v is not None: - self["ambient"] = _v - _v = arg.pop("diffuse", None) - _v = diffuse if diffuse is not None else _v - if _v is not None: - self["diffuse"] = _v - _v = arg.pop("facenormalsepsilon", None) - _v = facenormalsepsilon if facenormalsepsilon is not None else _v - if _v is not None: - self["facenormalsepsilon"] = _v - _v = arg.pop("fresnel", None) - _v = fresnel if fresnel is not None else _v - if _v is not None: - self["fresnel"] = _v - _v = arg.pop("roughness", None) - _v = roughness if roughness is not None else _v - if _v is not None: - self["roughness"] = _v - _v = arg.pop("specular", None) - _v = specular if specular is not None else _v - if _v is not None: - self["specular"] = _v - _v = arg.pop("vertexnormalsepsilon", None) - _v = vertexnormalsepsilon if vertexnormalsepsilon is not None else _v - if _v is not None: - self["vertexnormalsepsilon"] = _v + self._init_provided('ambient', arg, ambient) + self._init_provided('diffuse', arg, diffuse) + self._init_provided('facenormalsepsilon', arg, facenormalsepsilon) + self._init_provided('fresnel', arg, fresnel) + self._init_provided('roughness', arg, roughness) + self._init_provided('specular', arg, specular) + self._init_provided('vertexnormalsepsilon', arg, vertexnormalsepsilon) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/mesh3d/_lightposition.py b/packages/python/plotly/plotly/graph_objs/mesh3d/_lightposition.py index 13b71533086..32ed37bcb4d 100644 --- a/packages/python/plotly/plotly/graph_objs/mesh3d/_lightposition.py +++ b/packages/python/plotly/plotly/graph_objs/mesh3d/_lightposition.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Lightposition(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "mesh3d" - _path_str = "mesh3d.lightposition" + _parent_path_str = 'mesh3d' + _path_str = 'mesh3d.lightposition' _valid_props = {"x", "y", "z"} # x @@ -24,11 +26,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @@ -44,11 +46,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # z # - @@ -64,11 +66,11 @@ def z(self): ------- int|float """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # Self properties description # --------------------------- @@ -85,8 +87,13 @@ def _prop_descriptions(self): Numeric vector, representing the Z coordinate for each vertex. """ - - def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): + def __init__(self, + arg=None, + x=None, + y=None, + z=None, + **kwargs + ): """ Construct a new Lightposition object @@ -110,10 +117,10 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Lightposition """ - super(Lightposition, self).__init__("lightposition") + super(Lightposition, self).__init__('lightposition') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -125,32 +132,22 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.mesh3d.Lightposition constructor must be a dict or -an instance of :class:`plotly.graph_objs.mesh3d.Lightposition`""" - ) +an instance of :class:`plotly.graph_objs.mesh3d.Lightposition`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) + self._init_provided('z', arg, z) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/mesh3d/_stream.py b/packages/python/plotly/plotly/graph_objs/mesh3d/_stream.py index f7d4198cbe7..fc35f0d42df 100644 --- a/packages/python/plotly/plotly/graph_objs/mesh3d/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/mesh3d/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "mesh3d" - _path_str = "mesh3d.stream" + _parent_path_str = 'mesh3d' + _path_str = 'mesh3d.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -93,10 +99,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -108,28 +114,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.mesh3d.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.mesh3d.Stream`""" - ) +an instance of :class:`plotly.graph_objs.mesh3d.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/_tickfont.py index aba97dec3d1..771a75969d2 100644 --- a/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "mesh3d.colorbar" - _path_str = "mesh3d.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'mesh3d.colorbar' + _path_str = 'mesh3d.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.mesh3d.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.mesh3d.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.mesh3d.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/_tickformatstop.py index fb0a98cabeb..07541502069 100644 --- a/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "mesh3d.colorbar" - _path_str = "mesh3d.colorbar.tickformatstop" + _parent_path_str = 'mesh3d.colorbar' + _path_str = 'mesh3d.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.mesh3d.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.mesh3d.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.mesh3d.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/_title.py index 223a84cafb7..21a2262821d 100644 --- a/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "mesh3d.colorbar" - _path_str = "mesh3d.colorbar.title" + _parent_path_str = 'mesh3d.colorbar' + _path_str = 'mesh3d.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.mesh3d.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.mesh3d.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.mesh3d.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.mesh3d.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/title/_font.py index c2b0ed72b76..f8fce889147 100644 --- a/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "mesh3d.colorbar.title" - _path_str = "mesh3d.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'mesh3d.colorbar.title' + _path_str = 'mesh3d.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.mesh3d.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.mesh3d.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.mesh3d.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/mesh3d/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/mesh3d/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/mesh3d/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/mesh3d/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/mesh3d/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/mesh3d/hoverlabel/_font.py index 42d07b7c570..13e9ac646b4 100644 --- a/packages/python/plotly/plotly/graph_objs/mesh3d/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/mesh3d/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "mesh3d.hoverlabel" - _path_str = "mesh3d.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'mesh3d.hoverlabel' + _path_str = 'mesh3d.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.mesh3d.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.mesh3d.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.mesh3d.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/mesh3d/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/mesh3d/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/mesh3d/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/mesh3d/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/mesh3d/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/mesh3d/legendgrouptitle/_font.py index 8c6d3e267a6..09a26e15213 100644 --- a/packages/python/plotly/plotly/graph_objs/mesh3d/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/mesh3d/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "mesh3d.legendgrouptitle" - _path_str = "mesh3d.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'mesh3d.legendgrouptitle' + _path_str = 'mesh3d.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.mesh3d.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.mesh3d.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.mesh3d.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/ohlc/__init__.py b/packages/python/plotly/plotly/graph_objs/ohlc/__init__.py index eef010c1409..c26dcfef0af 100644 --- a/packages/python/plotly/plotly/graph_objs/ohlc/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/ohlc/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._decreasing import Decreasing from ._hoverlabel import Hoverlabel @@ -14,16 +13,10 @@ from . import legendgrouptitle else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".decreasing", ".hoverlabel", ".increasing", ".legendgrouptitle"], - [ - "._decreasing.Decreasing", - "._hoverlabel.Hoverlabel", - "._increasing.Increasing", - "._legendgrouptitle.Legendgrouptitle", - "._line.Line", - "._stream.Stream", - ], + ['.decreasing', '.hoverlabel', '.increasing', '.legendgrouptitle'], + ['._decreasing.Decreasing', '._hoverlabel.Hoverlabel', '._increasing.Increasing', '._legendgrouptitle.Legendgrouptitle', '._line.Line', '._stream.Stream'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/ohlc/_decreasing.py b/packages/python/plotly/plotly/graph_objs/ohlc/_decreasing.py index 77bb5be5d62..3eb7b7845fa 100644 --- a/packages/python/plotly/plotly/graph_objs/ohlc/_decreasing.py +++ b/packages/python/plotly/plotly/graph_objs/ohlc/_decreasing.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Decreasing(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "ohlc" - _path_str = "ohlc.decreasing" + _parent_path_str = 'ohlc' + _path_str = 'ohlc.decreasing' _valid_props = {"line"} # line @@ -21,27 +23,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the line color. - dash - 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"). - width - Sets the line width (in px). - Returns ------- plotly.graph_objs.ohlc.decreasing.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # Self properties description # --------------------------- @@ -52,8 +42,11 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.ohlc.decreasing.Line` instance or dict with compatible properties """ - - def __init__(self, arg=None, line=None, **kwargs): + def __init__(self, + arg=None, + line=None, + **kwargs + ): """ Construct a new Decreasing object @@ -71,10 +64,10 @@ def __init__(self, arg=None, line=None, **kwargs): ------- Decreasing """ - super(Decreasing, self).__init__("decreasing") + super(Decreasing, self).__init__('decreasing') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -86,24 +79,20 @@ def __init__(self, arg=None, line=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.ohlc.Decreasing constructor must be a dict or -an instance of :class:`plotly.graph_objs.ohlc.Decreasing`""" - ) +an instance of :class:`plotly.graph_objs.ohlc.Decreasing`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v + self._init_provided('line', arg, line) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/ohlc/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/ohlc/_hoverlabel.py index c28c687109e..51f3786410c 100644 --- a/packages/python/plotly/plotly/graph_objs/ohlc/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/ohlc/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,20 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "ohlc" - _path_str = "ohlc.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - "split", - } + _parent_path_str = 'ohlc' + _path_str = 'ohlc.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc", "split"} # align # ----- @@ -39,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -59,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -77,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -139,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -157,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -220,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -239,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.ohlc.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -343,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -364,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # split # ----- @@ -385,11 +233,11 @@ def split(self): ------- bool """ - return self["split"] + return self['split'] @split.setter def split(self, val): - self["split"] = val + self['split'] = val # Self properties description # --------------------------- @@ -432,22 +280,20 @@ def _prop_descriptions(self): Show hover information (open, close, high, low) in separate labels. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - split=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + split=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -497,10 +343,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -512,60 +358,29 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.ohlc.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.ohlc.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.ohlc.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v - _v = arg.pop("split", None) - _v = split if split is not None else _v - if _v is not None: - self["split"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) + self._init_provided('split', arg, split) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/ohlc/_increasing.py b/packages/python/plotly/plotly/graph_objs/ohlc/_increasing.py index 41f7cb8666d..94eee07387b 100644 --- a/packages/python/plotly/plotly/graph_objs/ohlc/_increasing.py +++ b/packages/python/plotly/plotly/graph_objs/ohlc/_increasing.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Increasing(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "ohlc" - _path_str = "ohlc.increasing" + _parent_path_str = 'ohlc' + _path_str = 'ohlc.increasing' _valid_props = {"line"} # line @@ -21,27 +23,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the line color. - dash - 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"). - width - Sets the line width (in px). - Returns ------- plotly.graph_objs.ohlc.increasing.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # Self properties description # --------------------------- @@ -52,8 +42,11 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.ohlc.increasing.Line` instance or dict with compatible properties """ - - def __init__(self, arg=None, line=None, **kwargs): + def __init__(self, + arg=None, + line=None, + **kwargs + ): """ Construct a new Increasing object @@ -71,10 +64,10 @@ def __init__(self, arg=None, line=None, **kwargs): ------- Increasing """ - super(Increasing, self).__init__("increasing") + super(Increasing, self).__init__('increasing') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -86,24 +79,20 @@ def __init__(self, arg=None, line=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.ohlc.Increasing constructor must be a dict or -an instance of :class:`plotly.graph_objs.ohlc.Increasing`""" - ) +an instance of :class:`plotly.graph_objs.ohlc.Increasing`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v + self._init_provided('line', arg, line) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/ohlc/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/ohlc/_legendgrouptitle.py index 9d81684613e..c6b5bc437bd 100644 --- a/packages/python/plotly/plotly/graph_objs/ohlc/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/ohlc/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "ohlc" - _path_str = "ohlc.legendgrouptitle" + _parent_path_str = 'ohlc' + _path_str = 'ohlc.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.ohlc.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.ohlc.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.ohlc.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.ohlc.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/ohlc/_line.py b/packages/python/plotly/plotly/graph_objs/ohlc/_line.py index 84916db5c8d..28daf8bf7d3 100644 --- a/packages/python/plotly/plotly/graph_objs/ohlc/_line.py +++ b/packages/python/plotly/plotly/graph_objs/ohlc/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "ohlc" - _path_str = "ohlc.line" + _parent_path_str = 'ohlc' + _path_str = 'ohlc.line' _valid_props = {"dash", "width"} # dash @@ -32,11 +34,11 @@ def dash(self): ------- str """ - return self["dash"] + return self['dash'] @dash.setter def dash(self, val): - self["dash"] = val + self['dash'] = val # width # ----- @@ -54,11 +56,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -77,8 +79,12 @@ def _prop_descriptions(self): be set per direction via `increasing.line.width` and `decreasing.line.width`. """ - - def __init__(self, arg=None, dash=None, width=None, **kwargs): + def __init__(self, + arg=None, + dash=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -103,10 +109,10 @@ def __init__(self, arg=None, dash=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -118,28 +124,21 @@ def __init__(self, arg=None, dash=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.ohlc.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.ohlc.Line`""" - ) +an instance of :class:`plotly.graph_objs.ohlc.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dash", None) - _v = dash if dash is not None else _v - if _v is not None: - self["dash"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('dash', arg, dash) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/ohlc/_stream.py b/packages/python/plotly/plotly/graph_objs/ohlc/_stream.py index 9267a3c3efa..eca003b482a 100644 --- a/packages/python/plotly/plotly/graph_objs/ohlc/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/ohlc/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "ohlc" - _path_str = "ohlc.stream" + _parent_path_str = 'ohlc' + _path_str = 'ohlc.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -93,10 +99,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -108,28 +114,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.ohlc.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.ohlc.Stream`""" - ) +an instance of :class:`plotly.graph_objs.ohlc.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/ohlc/decreasing/__init__.py b/packages/python/plotly/plotly/graph_objs/ohlc/decreasing/__init__.py index 8722c15a2b8..a745ef6458a 100644 --- a/packages/python/plotly/plotly/graph_objs/ohlc/decreasing/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/ohlc/decreasing/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import Line else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._line.Line'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._line.Line"]) diff --git a/packages/python/plotly/plotly/graph_objs/ohlc/decreasing/_line.py b/packages/python/plotly/plotly/graph_objs/ohlc/decreasing/_line.py index 099e75438a7..722636dbd2e 100644 --- a/packages/python/plotly/plotly/graph_objs/ohlc/decreasing/_line.py +++ b/packages/python/plotly/plotly/graph_objs/ohlc/decreasing/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "ohlc.decreasing" - _path_str = "ohlc.decreasing.line" + _parent_path_str = 'ohlc.decreasing' + _path_str = 'ohlc.decreasing.line' _valid_props = {"color", "dash", "width"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # dash # ---- @@ -89,11 +56,11 @@ def dash(self): ------- str """ - return self["dash"] + return self['dash'] @dash.setter def dash(self, val): - self["dash"] = val + self['dash'] = val # width # ----- @@ -109,11 +76,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -130,8 +97,13 @@ def _prop_descriptions(self): width Sets the line width (in px). """ - - def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): + def __init__(self, + arg=None, + color=None, + dash=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -155,10 +127,10 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -170,32 +142,22 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.ohlc.decreasing.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.ohlc.decreasing.Line`""" - ) +an instance of :class:`plotly.graph_objs.ohlc.decreasing.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("dash", None) - _v = dash if dash is not None else _v - if _v is not None: - self["dash"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('dash', arg, dash) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/ohlc/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/ohlc/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/ohlc/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/ohlc/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/ohlc/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/ohlc/hoverlabel/_font.py index da3d4b93a8e..33676c971a3 100644 --- a/packages/python/plotly/plotly/graph_objs/ohlc/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/ohlc/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "ohlc.hoverlabel" - _path_str = "ohlc.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'ohlc.hoverlabel' + _path_str = 'ohlc.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.ohlc.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.ohlc.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.ohlc.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/ohlc/increasing/__init__.py b/packages/python/plotly/plotly/graph_objs/ohlc/increasing/__init__.py index 8722c15a2b8..a745ef6458a 100644 --- a/packages/python/plotly/plotly/graph_objs/ohlc/increasing/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/ohlc/increasing/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import Line else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._line.Line'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._line.Line"]) diff --git a/packages/python/plotly/plotly/graph_objs/ohlc/increasing/_line.py b/packages/python/plotly/plotly/graph_objs/ohlc/increasing/_line.py index ff05abf073a..2fcfb12ba7c 100644 --- a/packages/python/plotly/plotly/graph_objs/ohlc/increasing/_line.py +++ b/packages/python/plotly/plotly/graph_objs/ohlc/increasing/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "ohlc.increasing" - _path_str = "ohlc.increasing.line" + _parent_path_str = 'ohlc.increasing' + _path_str = 'ohlc.increasing.line' _valid_props = {"color", "dash", "width"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # dash # ---- @@ -89,11 +56,11 @@ def dash(self): ------- str """ - return self["dash"] + return self['dash'] @dash.setter def dash(self, val): - self["dash"] = val + self['dash'] = val # width # ----- @@ -109,11 +76,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -130,8 +97,13 @@ def _prop_descriptions(self): width Sets the line width (in px). """ - - def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): + def __init__(self, + arg=None, + color=None, + dash=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -155,10 +127,10 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -170,32 +142,22 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.ohlc.increasing.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.ohlc.increasing.Line`""" - ) +an instance of :class:`plotly.graph_objs.ohlc.increasing.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("dash", None) - _v = dash if dash is not None else _v - if _v is not None: - self["dash"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('dash', arg, dash) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/ohlc/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/ohlc/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/ohlc/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/ohlc/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/ohlc/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/ohlc/legendgrouptitle/_font.py index 2e02263e141..c0a5f3ad080 100644 --- a/packages/python/plotly/plotly/graph_objs/ohlc/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/ohlc/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "ohlc.legendgrouptitle" - _path_str = "ohlc.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'ohlc.legendgrouptitle' + _path_str = 'ohlc.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.ohlc.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.ohlc.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.ohlc.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcats/__init__.py b/packages/python/plotly/plotly/graph_objs/parcats/__init__.py index 97248e8a019..cc8e93725fe 100644 --- a/packages/python/plotly/plotly/graph_objs/parcats/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/parcats/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._dimension import Dimension from ._domain import Domain @@ -13,17 +12,10 @@ from . import line else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".legendgrouptitle", ".line"], - [ - "._dimension.Dimension", - "._domain.Domain", - "._labelfont.Labelfont", - "._legendgrouptitle.Legendgrouptitle", - "._line.Line", - "._stream.Stream", - "._tickfont.Tickfont", - ], + ['.legendgrouptitle', '.line'], + ['._dimension.Dimension', '._domain.Domain', '._labelfont.Labelfont', '._legendgrouptitle.Legendgrouptitle', '._line.Line', '._stream.Stream', '._tickfont.Tickfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/parcats/_dimension.py b/packages/python/plotly/plotly/graph_objs/parcats/_dimension.py index 7b1e105823d..52a1177f9a2 100644 --- a/packages/python/plotly/plotly/graph_objs/parcats/_dimension.py +++ b/packages/python/plotly/plotly/graph_objs/parcats/_dimension.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,20 +8,9 @@ class Dimension(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "parcats" - _path_str = "parcats.dimension" - _valid_props = { - "categoryarray", - "categoryarraysrc", - "categoryorder", - "displayindex", - "label", - "ticktext", - "ticktextsrc", - "values", - "valuessrc", - "visible", - } + _parent_path_str = 'parcats' + _path_str = 'parcats.dimension' + _valid_props = {"categoryarray", "categoryarraysrc", "categoryorder", "displayindex", "label", "ticktext", "ticktextsrc", "values", "valuessrc", "visible"} # categoryarray # ------------- @@ -37,11 +28,11 @@ def categoryarray(self): ------- numpy.ndarray """ - return self["categoryarray"] + return self['categoryarray'] @categoryarray.setter def categoryarray(self, val): - self["categoryarray"] = val + self['categoryarray'] = val # categoryarraysrc # ---------------- @@ -58,11 +49,11 @@ def categoryarraysrc(self): ------- str """ - return self["categoryarraysrc"] + return self['categoryarraysrc'] @categoryarraysrc.setter def categoryarraysrc(self, val): - self["categoryarraysrc"] = val + self['categoryarraysrc'] = val # categoryorder # ------------- @@ -90,11 +81,11 @@ def categoryorder(self): ------- Any """ - return self["categoryorder"] + return self['categoryorder'] @categoryorder.setter def categoryorder(self, val): - self["categoryorder"] = val + self['categoryorder'] = val # displayindex # ------------ @@ -111,11 +102,11 @@ def displayindex(self): ------- int """ - return self["displayindex"] + return self['displayindex'] @displayindex.setter def displayindex(self, val): - self["displayindex"] = val + self['displayindex'] = val # label # ----- @@ -132,11 +123,11 @@ def label(self): ------- str """ - return self["label"] + return self['label'] @label.setter def label(self, val): - self["label"] = val + self['label'] = val # ticktext # -------- @@ -155,11 +146,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -175,11 +166,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # values # ------ @@ -198,11 +189,11 @@ def values(self): ------- numpy.ndarray """ - return self["values"] + return self['values'] @values.setter def values(self, val): - self["values"] = val + self['values'] = val # valuessrc # --------- @@ -218,11 +209,11 @@ def valuessrc(self): ------- str """ - return self["valuessrc"] + return self['valuessrc'] @valuessrc.setter def valuessrc(self, val): - self["valuessrc"] = val + self['valuessrc'] = val # visible # ------- @@ -239,11 +230,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # Self properties description # --------------------------- @@ -295,22 +286,20 @@ def _prop_descriptions(self): Shows the dimension when set to `true` (the default). Hides the dimension for `false`. """ - - def __init__( - self, - arg=None, - categoryarray=None, - categoryarraysrc=None, - categoryorder=None, - displayindex=None, - label=None, - ticktext=None, - ticktextsrc=None, - values=None, - valuessrc=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + categoryarray=None, + categoryarraysrc=None, + categoryorder=None, + displayindex=None, + label=None, + ticktext=None, + ticktextsrc=None, + values=None, + valuessrc=None, + visible=None, + **kwargs + ): """ Construct a new Dimension object @@ -371,10 +360,10 @@ def __init__( ------- Dimension """ - super(Dimension, self).__init__("dimensions") + super(Dimension, self).__init__('dimensions') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -386,60 +375,29 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.parcats.Dimension constructor must be a dict or -an instance of :class:`plotly.graph_objs.parcats.Dimension`""" - ) +an instance of :class:`plotly.graph_objs.parcats.Dimension`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("categoryarray", None) - _v = categoryarray if categoryarray is not None else _v - if _v is not None: - self["categoryarray"] = _v - _v = arg.pop("categoryarraysrc", None) - _v = categoryarraysrc if categoryarraysrc is not None else _v - if _v is not None: - self["categoryarraysrc"] = _v - _v = arg.pop("categoryorder", None) - _v = categoryorder if categoryorder is not None else _v - if _v is not None: - self["categoryorder"] = _v - _v = arg.pop("displayindex", None) - _v = displayindex if displayindex is not None else _v - if _v is not None: - self["displayindex"] = _v - _v = arg.pop("label", None) - _v = label if label is not None else _v - if _v is not None: - self["label"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("values", None) - _v = values if values is not None else _v - if _v is not None: - self["values"] = _v - _v = arg.pop("valuessrc", None) - _v = valuessrc if valuessrc is not None else _v - if _v is not None: - self["valuessrc"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('categoryarray', arg, categoryarray) + self._init_provided('categoryarraysrc', arg, categoryarraysrc) + self._init_provided('categoryorder', arg, categoryorder) + self._init_provided('displayindex', arg, displayindex) + self._init_provided('label', arg, label) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('values', arg, values) + self._init_provided('valuessrc', arg, valuessrc) + self._init_provided('visible', arg, visible) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcats/_domain.py b/packages/python/plotly/plotly/graph_objs/parcats/_domain.py index 7d55c70b7ae..2b9d210d6c4 100644 --- a/packages/python/plotly/plotly/graph_objs/parcats/_domain.py +++ b/packages/python/plotly/plotly/graph_objs/parcats/_domain.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Domain(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "parcats" - _path_str = "parcats.domain" + _parent_path_str = 'parcats' + _path_str = 'parcats.domain' _valid_props = {"column", "row", "x", "y"} # column @@ -26,11 +28,11 @@ def column(self): ------- int """ - return self["column"] + return self['column'] @column.setter def column(self, val): - self["column"] = val + self['column'] = val # row # --- @@ -48,63 +50,63 @@ def row(self): ------- int """ - return self["row"] + return self['row'] @row.setter def row(self, val): - self["row"] = val + self['row'] = val # x # - @property def x(self): """ - Sets the horizontal domain of this parcats trace (in plot - fraction). + Sets the horizontal domain of this parcats trace (in plot + fraction). - The 'x' property is an info array that may be specified as: + The 'x' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'x[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'x[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - * a list or tuple of 2 elements where: - (0) The 'x[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'x[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - - Returns - ------- - list + Returns + ------- + list """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @property def y(self): """ - Sets the vertical domain of this parcats trace (in plot - fraction). - - The 'y' property is an info array that may be specified as: + Sets the vertical domain of this parcats trace (in plot + fraction). - * a list or tuple of 2 elements where: - (0) The 'y[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'y[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] + The 'y' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'y[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'y[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - Returns - ------- - list + Returns + ------- + list """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # Self properties description # --------------------------- @@ -124,8 +126,14 @@ def _prop_descriptions(self): Sets the vertical domain of this parcats trace (in plot fraction). """ - - def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): + def __init__(self, + arg=None, + column=None, + row=None, + x=None, + y=None, + **kwargs + ): """ Construct a new Domain object @@ -152,10 +160,10 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") + super(Domain, self).__init__('domain') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -167,36 +175,23 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.parcats.Domain constructor must be a dict or -an instance of :class:`plotly.graph_objs.parcats.Domain`""" - ) +an instance of :class:`plotly.graph_objs.parcats.Domain`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("column", None) - _v = column if column is not None else _v - if _v is not None: - self["column"] = _v - _v = arg.pop("row", None) - _v = row if row is not None else _v - if _v is not None: - self["row"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v + self._init_provided('column', arg, column) + self._init_provided('row', arg, row) + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcats/_labelfont.py b/packages/python/plotly/plotly/graph_objs/parcats/_labelfont.py index a701d114d24..5b5ae13cc05 100644 --- a/packages/python/plotly/plotly/graph_objs/parcats/_labelfont.py +++ b/packages/python/plotly/plotly/graph_objs/parcats/_labelfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Labelfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "parcats" - _path_str = "parcats.labelfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'parcats' + _path_str = 'parcats.labelfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Labelfont object @@ -377,10 +332,10 @@ def __init__( ------- Labelfont """ - super(Labelfont, self).__init__("labelfont") + super(Labelfont, self).__init__('labelfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.parcats.Labelfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.parcats.Labelfont`""" - ) +an instance of :class:`plotly.graph_objs.parcats.Labelfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcats/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/parcats/_legendgrouptitle.py index bd0472960e3..e93aa3fce4c 100644 --- a/packages/python/plotly/plotly/graph_objs/parcats/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/parcats/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "parcats" - _path_str = "parcats.legendgrouptitle" + _parent_path_str = 'parcats' + _path_str = 'parcats.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.parcats.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.parcats.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.parcats.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.parcats.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcats/_line.py b/packages/python/plotly/plotly/graph_objs/parcats/_line.py index 63058ebe062..38836786755 100644 --- a/packages/python/plotly/plotly/graph_objs/parcats/_line.py +++ b/packages/python/plotly/plotly/graph_objs/parcats/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,24 +8,9 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "parcats" - _path_str = "parcats.line" - _valid_props = { - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorbar", - "colorscale", - "colorsrc", - "hovertemplate", - "reversescale", - "shape", - "showscale", - } + _parent_path_str = 'parcats' + _path_str = 'parcats.line' + _valid_props = {"autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorbar", "colorscale", "colorsrc", "hovertemplate", "reversescale", "shape", "showscale"} # autocolorscale # -------------- @@ -45,11 +32,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -69,11 +56,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -92,11 +79,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -116,11 +103,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -139,11 +126,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -160,42 +147,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to parcats.line.colorscale - A list or array of any of the above @@ -204,11 +156,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -231,11 +183,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -248,282 +200,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.parcats - .line.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.parcats.line.colorbar.tickformatstopdefaults) - , sets the default property values to use for - elements of - parcats.line.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.parcats.line.color - bar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.parcats.line.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -573,11 +258,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -593,11 +278,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # hovertemplate # ------------- @@ -639,11 +324,11 @@ def hovertemplate(self): ------- str """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # reversescale # ------------ @@ -662,11 +347,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # shape # ----- @@ -685,11 +370,11 @@ def shape(self): ------- Any """ - return self["shape"] + return self['shape'] @shape.setter def shape(self, val): - self["shape"] = val + self['shape'] = val # showscale # --------- @@ -707,11 +392,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # Self properties description # --------------------------- @@ -830,26 +515,24 @@ def _prop_descriptions(self): this trace. Has an effect only if in `line.color` is set to a numerical array. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorbar=None, - colorscale=None, - colorsrc=None, - hovertemplate=None, - reversescale=None, - shape=None, - showscale=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorbar=None, + colorscale=None, + colorsrc=None, + hovertemplate=None, + reversescale=None, + shape=None, + showscale=None, + **kwargs + ): """ Construct a new Line object @@ -974,10 +657,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -989,76 +672,33 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.parcats.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.parcats.Line`""" - ) +an instance of :class:`plotly.graph_objs.parcats.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("shape", None) - _v = shape if shape is not None else _v - if _v is not None: - self["shape"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('shape', arg, shape) + self._init_provided('showscale', arg, showscale) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcats/_stream.py b/packages/python/plotly/plotly/graph_objs/parcats/_stream.py index b6e389c866b..3fc1c9b60e9 100644 --- a/packages/python/plotly/plotly/graph_objs/parcats/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/parcats/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "parcats" - _path_str = "parcats.stream" + _parent_path_str = 'parcats' + _path_str = 'parcats.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.parcats.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.parcats.Stream`""" - ) +an instance of :class:`plotly.graph_objs.parcats.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcats/_tickfont.py b/packages/python/plotly/plotly/graph_objs/parcats/_tickfont.py index b017ce51e67..06a2105c024 100644 --- a/packages/python/plotly/plotly/graph_objs/parcats/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/parcats/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "parcats" - _path_str = "parcats.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'parcats' + _path_str = 'parcats.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.parcats.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.parcats.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.parcats.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcats/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/parcats/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/parcats/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/parcats/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/parcats/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/parcats/legendgrouptitle/_font.py index 99d15aa1adb..819b0b70772 100644 --- a/packages/python/plotly/plotly/graph_objs/parcats/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/parcats/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "parcats.legendgrouptitle" - _path_str = "parcats.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'parcats.legendgrouptitle' + _path_str = 'parcats.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.parcats.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.parcats.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.parcats.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcats/line/__init__.py b/packages/python/plotly/plotly/graph_objs/parcats/line/__init__.py index 27dfc9e52fb..c35de683492 100644 --- a/packages/python/plotly/plotly/graph_objs/parcats/line/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/parcats/line/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from . import colorbar else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [".colorbar"], ["._colorbar.ColorBar"] + __name__, + ['.colorbar'], + ['._colorbar.ColorBar'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/parcats/line/_colorbar.py b/packages/python/plotly/plotly/graph_objs/parcats/line/_colorbar.py index 82337cb2db0..e090d241836 100644 --- a/packages/python/plotly/plotly/graph_objs/parcats/line/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/parcats/line/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "parcats.line" - _path_str = "parcats.line.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'parcats.line' + _path_str = 'parcats.line.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.parcats.line.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.parcats.line.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.parcats.line.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.parcats.line.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.parcats.line.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.parcats.line.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.parcats.line.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/_tickfont.py index e4bbb61a590..46f0efcea10 100644 --- a/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "parcats.line.colorbar" - _path_str = "parcats.line.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'parcats.line.colorbar' + _path_str = 'parcats.line.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.parcats.line.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.parcats.line.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.parcats.line.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/_tickformatstop.py index 792d45da523..25c09f064a8 100644 --- a/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "parcats.line.colorbar" - _path_str = "parcats.line.colorbar.tickformatstop" + _parent_path_str = 'parcats.line.colorbar' + _path_str = 'parcats.line.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.parcats.line.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.parcats.line.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.parcats.line.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/_title.py index 0e202a829fb..645cc393f31 100644 --- a/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "parcats.line.colorbar" - _path_str = "parcats.line.colorbar.title" + _parent_path_str = 'parcats.line.colorbar' + _path_str = 'parcats.line.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.parcats.line.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.parcats.line.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.parcats.line.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.parcats.line.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/title/_font.py index 8758ccea9fa..569c3140fed 100644 --- a/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "parcats.line.colorbar.title" - _path_str = "parcats.line.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'parcats.line.colorbar.title' + _path_str = 'parcats.line.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.parcats.line.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.parcats.line.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.parcats.line.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcoords/__init__.py b/packages/python/plotly/plotly/graph_objs/parcoords/__init__.py index 61ee5f1d402..f86a4be1783 100644 --- a/packages/python/plotly/plotly/graph_objs/parcoords/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/parcoords/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._dimension import Dimension from ._domain import Domain @@ -16,19 +15,10 @@ from . import unselected else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".legendgrouptitle", ".line", ".unselected"], - [ - "._dimension.Dimension", - "._domain.Domain", - "._labelfont.Labelfont", - "._legendgrouptitle.Legendgrouptitle", - "._line.Line", - "._rangefont.Rangefont", - "._stream.Stream", - "._tickfont.Tickfont", - "._unselected.Unselected", - ], + ['.legendgrouptitle', '.line', '.unselected'], + ['._dimension.Dimension', '._domain.Domain', '._labelfont.Labelfont', '._legendgrouptitle.Legendgrouptitle', '._line.Line', '._rangefont.Rangefont', '._stream.Stream', '._tickfont.Tickfont', '._unselected.Unselected'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/parcoords/_dimension.py b/packages/python/plotly/plotly/graph_objs/parcoords/_dimension.py index 61e6334eef3..857c53239f7 100644 --- a/packages/python/plotly/plotly/graph_objs/parcoords/_dimension.py +++ b/packages/python/plotly/plotly/graph_objs/parcoords/_dimension.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,55 +8,40 @@ class Dimension(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "parcoords" - _path_str = "parcoords.dimension" - _valid_props = { - "constraintrange", - "label", - "multiselect", - "name", - "range", - "templateitemname", - "tickformat", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "values", - "valuessrc", - "visible", - } + _parent_path_str = 'parcoords' + _path_str = 'parcoords.dimension' + _valid_props = {"constraintrange", "label", "multiselect", "name", "range", "templateitemname", "tickformat", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "values", "valuessrc", "visible"} # constraintrange # --------------- @property def constraintrange(self): """ - The domain range to which the filter on the dimension is - constrained. Must be an array of `[fromValue, toValue]` with - `fromValue <= toValue`, or if `multiselect` is not disabled, - you may give an array of arrays, where each inner array is - `[fromValue, toValue]`. - - The 'constraintrange' property is an info array that may be specified as: + The domain range to which the filter on the dimension is + constrained. Must be an array of `[fromValue, toValue]` with + `fromValue <= toValue`, or if `multiselect` is not disabled, + you may give an array of arrays, where each inner array is + `[fromValue, toValue]`. + + The 'constraintrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'constraintrange[0]' property accepts values of any type + (1) The 'constraintrange[1]' property accepts values of any type + + * a 2D list where: + (0) The 'constraintrange[i][0]' property accepts values of any type + (1) The 'constraintrange[i][1]' property accepts values of any type - * a list or tuple of 2 elements where: - (0) The 'constraintrange[0]' property accepts values of any type - (1) The 'constraintrange[1]' property accepts values of any type - - * a 2D list where: - (0) The 'constraintrange[i][0]' property accepts values of any type - (1) The 'constraintrange[i][1]' property accepts values of any type - - Returns - ------- - list + Returns + ------- + list """ - return self["constraintrange"] + return self['constraintrange'] @constraintrange.setter def constraintrange(self, val): - self["constraintrange"] = val + self['constraintrange'] = val # label # ----- @@ -71,11 +58,11 @@ def label(self): ------- str """ - return self["label"] + return self['label'] @label.setter def label(self, val): - self["label"] = val + self['label'] = val # multiselect # ----------- @@ -91,11 +78,11 @@ def multiselect(self): ------- bool """ - return self["multiselect"] + return self['multiselect'] @multiselect.setter def multiselect(self, val): - self["multiselect"] = val + self['multiselect'] = val # name # ---- @@ -118,38 +105,38 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # range # ----- @property def range(self): """ - The domain range that represents the full, shown axis extent. - Defaults to the `values` extent. Must be an array of - `[fromValue, toValue]` with finite numbers as elements. - - The 'range' property is an info array that may be specified as: - - * a list or tuple of 2 elements where: - (0) The 'range[0]' property is a number and may be specified as: - - An int or float - (1) The 'range[1]' property is a number and may be specified as: - - An int or float + The domain range that represents the full, shown axis extent. + Defaults to the `values` extent. Must be an array of + `[fromValue, toValue]` with finite numbers as elements. + + The 'range' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'range[0]' property is a number and may be specified as: + - An int or float + (1) The 'range[1]' property is a number and may be specified as: + - An int or float - Returns - ------- - list + Returns + ------- + list """ - return self["range"] + return self['range'] @range.setter def range(self, val): - self["range"] = val + self['range'] = val # templateitemname # ---------------- @@ -173,11 +160,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # tickformat # ---------- @@ -203,11 +190,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # ticktext # -------- @@ -223,11 +210,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -243,11 +230,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -263,11 +250,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -283,11 +270,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # values # ------ @@ -306,11 +293,11 @@ def values(self): ------- numpy.ndarray """ - return self["values"] + return self['values'] @values.setter def values(self, val): - self["values"] = val + self['values'] = val # valuessrc # --------- @@ -326,11 +313,11 @@ def valuessrc(self): ------- str """ - return self["valuessrc"] + return self['valuessrc'] @valuessrc.setter def valuessrc(self, val): - self["valuessrc"] = val + self['valuessrc'] = val # visible # ------- @@ -347,11 +334,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # Self properties description # --------------------------- @@ -430,26 +417,24 @@ def _prop_descriptions(self): Shows the dimension when set to `true` (the default). Hides the dimension for `false`. """ - - def __init__( - self, - arg=None, - constraintrange=None, - label=None, - multiselect=None, - name=None, - range=None, - templateitemname=None, - tickformat=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - values=None, - valuessrc=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + constraintrange=None, + label=None, + multiselect=None, + name=None, + range=None, + templateitemname=None, + tickformat=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + values=None, + valuessrc=None, + visible=None, + **kwargs + ): """ Construct a new Dimension object @@ -538,10 +523,10 @@ def __init__( ------- Dimension """ - super(Dimension, self).__init__("dimensions") + super(Dimension, self).__init__('dimensions') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -553,76 +538,33 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.parcoords.Dimension constructor must be a dict or -an instance of :class:`plotly.graph_objs.parcoords.Dimension`""" - ) +an instance of :class:`plotly.graph_objs.parcoords.Dimension`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("constraintrange", None) - _v = constraintrange if constraintrange is not None else _v - if _v is not None: - self["constraintrange"] = _v - _v = arg.pop("label", None) - _v = label if label is not None else _v - if _v is not None: - self["label"] = _v - _v = arg.pop("multiselect", None) - _v = multiselect if multiselect is not None else _v - if _v is not None: - self["multiselect"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("range", None) - _v = range if range is not None else _v - if _v is not None: - self["range"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("values", None) - _v = values if values is not None else _v - if _v is not None: - self["values"] = _v - _v = arg.pop("valuessrc", None) - _v = valuessrc if valuessrc is not None else _v - if _v is not None: - self["valuessrc"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('constraintrange', arg, constraintrange) + self._init_provided('label', arg, label) + self._init_provided('multiselect', arg, multiselect) + self._init_provided('name', arg, name) + self._init_provided('range', arg, range) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('values', arg, values) + self._init_provided('valuessrc', arg, valuessrc) + self._init_provided('visible', arg, visible) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcoords/_domain.py b/packages/python/plotly/plotly/graph_objs/parcoords/_domain.py index cec9642abeb..2090542c4e7 100644 --- a/packages/python/plotly/plotly/graph_objs/parcoords/_domain.py +++ b/packages/python/plotly/plotly/graph_objs/parcoords/_domain.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Domain(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "parcoords" - _path_str = "parcoords.domain" + _parent_path_str = 'parcoords' + _path_str = 'parcoords.domain' _valid_props = {"column", "row", "x", "y"} # column @@ -26,11 +28,11 @@ def column(self): ------- int """ - return self["column"] + return self['column'] @column.setter def column(self, val): - self["column"] = val + self['column'] = val # row # --- @@ -48,63 +50,63 @@ def row(self): ------- int """ - return self["row"] + return self['row'] @row.setter def row(self, val): - self["row"] = val + self['row'] = val # x # - @property def x(self): """ - Sets the horizontal domain of this parcoords trace (in plot - fraction). - - The 'x' property is an info array that may be specified as: + Sets the horizontal domain of this parcoords trace (in plot + fraction). - * a list or tuple of 2 elements where: - (0) The 'x[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'x[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] + The 'x' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'x[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'x[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - Returns - ------- - list + Returns + ------- + list """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @property def y(self): """ - Sets the vertical domain of this parcoords trace (in plot - fraction). + Sets the vertical domain of this parcoords trace (in plot + fraction). - The 'y' property is an info array that may be specified as: + The 'y' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'y[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'y[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - * a list or tuple of 2 elements where: - (0) The 'y[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'y[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - - Returns - ------- - list + Returns + ------- + list """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # Self properties description # --------------------------- @@ -124,8 +126,14 @@ def _prop_descriptions(self): Sets the vertical domain of this parcoords trace (in plot fraction). """ - - def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): + def __init__(self, + arg=None, + column=None, + row=None, + x=None, + y=None, + **kwargs + ): """ Construct a new Domain object @@ -152,10 +160,10 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") + super(Domain, self).__init__('domain') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -167,36 +175,23 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.parcoords.Domain constructor must be a dict or -an instance of :class:`plotly.graph_objs.parcoords.Domain`""" - ) +an instance of :class:`plotly.graph_objs.parcoords.Domain`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("column", None) - _v = column if column is not None else _v - if _v is not None: - self["column"] = _v - _v = arg.pop("row", None) - _v = row if row is not None else _v - if _v is not None: - self["row"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v + self._init_provided('column', arg, column) + self._init_provided('row', arg, row) + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcoords/_labelfont.py b/packages/python/plotly/plotly/graph_objs/parcoords/_labelfont.py index a8304d126cc..c7b3eff9612 100644 --- a/packages/python/plotly/plotly/graph_objs/parcoords/_labelfont.py +++ b/packages/python/plotly/plotly/graph_objs/parcoords/_labelfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Labelfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "parcoords" - _path_str = "parcoords.labelfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'parcoords' + _path_str = 'parcoords.labelfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Labelfont object @@ -377,10 +332,10 @@ def __init__( ------- Labelfont """ - super(Labelfont, self).__init__("labelfont") + super(Labelfont, self).__init__('labelfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.parcoords.Labelfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.parcoords.Labelfont`""" - ) +an instance of :class:`plotly.graph_objs.parcoords.Labelfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcoords/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/parcoords/_legendgrouptitle.py index f667d43b067..22bdea148ae 100644 --- a/packages/python/plotly/plotly/graph_objs/parcoords/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/parcoords/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "parcoords" - _path_str = "parcoords.legendgrouptitle" + _parent_path_str = 'parcoords' + _path_str = 'parcoords.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.parcoords.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.parcoords.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.parcoords.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.parcoords.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcoords/_line.py b/packages/python/plotly/plotly/graph_objs/parcoords/_line.py index ea91782124c..4d57007be71 100644 --- a/packages/python/plotly/plotly/graph_objs/parcoords/_line.py +++ b/packages/python/plotly/plotly/graph_objs/parcoords/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,22 +8,9 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "parcoords" - _path_str = "parcoords.line" - _valid_props = { - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorbar", - "colorscale", - "colorsrc", - "reversescale", - "showscale", - } + _parent_path_str = 'parcoords' + _path_str = 'parcoords.line' + _valid_props = {"autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorbar", "colorscale", "colorsrc", "reversescale", "showscale"} # autocolorscale # -------------- @@ -43,11 +32,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -67,11 +56,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -90,11 +79,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -114,11 +103,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -137,11 +126,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -158,42 +147,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to parcoords.line.colorscale - A list or array of any of the above @@ -202,11 +156,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -229,11 +183,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -246,282 +200,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.parcoor - ds.line.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.parcoords.line.colorbar.tickformatstopdefault - s), sets the default property values to use for - elements of - parcoords.line.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.parcoords.line.col - orbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.parcoords.line.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -571,11 +258,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -591,11 +278,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # reversescale # ------------ @@ -614,11 +301,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # showscale # --------- @@ -636,11 +323,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # Self properties description # --------------------------- @@ -724,24 +411,22 @@ def _prop_descriptions(self): this trace. Has an effect only if in `line.color` is set to a numerical array. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorbar=None, - colorscale=None, - colorsrc=None, - reversescale=None, - showscale=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorbar=None, + colorscale=None, + colorsrc=None, + reversescale=None, + showscale=None, + **kwargs + ): """ Construct a new Line object @@ -832,10 +517,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -847,68 +532,31 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.parcoords.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.parcoords.Line`""" - ) +an instance of :class:`plotly.graph_objs.parcoords.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('showscale', arg, showscale) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcoords/_rangefont.py b/packages/python/plotly/plotly/graph_objs/parcoords/_rangefont.py index d0dcb16b33a..22f9715962d 100644 --- a/packages/python/plotly/plotly/graph_objs/parcoords/_rangefont.py +++ b/packages/python/plotly/plotly/graph_objs/parcoords/_rangefont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Rangefont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "parcoords" - _path_str = "parcoords.rangefont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'parcoords' + _path_str = 'parcoords.rangefont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Rangefont object @@ -377,10 +332,10 @@ def __init__( ------- Rangefont """ - super(Rangefont, self).__init__("rangefont") + super(Rangefont, self).__init__('rangefont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.parcoords.Rangefont constructor must be a dict or -an instance of :class:`plotly.graph_objs.parcoords.Rangefont`""" - ) +an instance of :class:`plotly.graph_objs.parcoords.Rangefont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcoords/_stream.py b/packages/python/plotly/plotly/graph_objs/parcoords/_stream.py index a9b1a52f27d..eddac4d9668 100644 --- a/packages/python/plotly/plotly/graph_objs/parcoords/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/parcoords/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "parcoords" - _path_str = "parcoords.stream" + _parent_path_str = 'parcoords' + _path_str = 'parcoords.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.parcoords.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.parcoords.Stream`""" - ) +an instance of :class:`plotly.graph_objs.parcoords.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcoords/_tickfont.py b/packages/python/plotly/plotly/graph_objs/parcoords/_tickfont.py index 122825fb055..18ee160dbb2 100644 --- a/packages/python/plotly/plotly/graph_objs/parcoords/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/parcoords/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "parcoords" - _path_str = "parcoords.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'parcoords' + _path_str = 'parcoords.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.parcoords.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.parcoords.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.parcoords.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcoords/_unselected.py b/packages/python/plotly/plotly/graph_objs/parcoords/_unselected.py index b6afc15d1c3..dc04167f635 100644 --- a/packages/python/plotly/plotly/graph_objs/parcoords/_unselected.py +++ b/packages/python/plotly/plotly/graph_objs/parcoords/_unselected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Unselected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "parcoords" - _path_str = "parcoords.unselected" + _parent_path_str = 'parcoords' + _path_str = 'parcoords.unselected' _valid_props = {"line"} # line @@ -21,26 +23,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the base color of unselected lines. in - connection with `unselected.line.opacity`. - opacity - Sets the opacity of unselected lines. The - default "auto" decreases the opacity smoothly - as the number of lines increases. Use 1 to - achieve exact `unselected.line.color`. - Returns ------- plotly.graph_objs.parcoords.unselected.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # Self properties description # --------------------------- @@ -51,8 +42,11 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.parcoords.unselected.Line` instance or dict with compatible properties """ - - def __init__(self, arg=None, line=None, **kwargs): + def __init__(self, + arg=None, + line=None, + **kwargs + ): """ Construct a new Unselected object @@ -70,10 +64,10 @@ def __init__(self, arg=None, line=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") + super(Unselected, self).__init__('unselected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -85,24 +79,20 @@ def __init__(self, arg=None, line=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.parcoords.Unselected constructor must be a dict or -an instance of :class:`plotly.graph_objs.parcoords.Unselected`""" - ) +an instance of :class:`plotly.graph_objs.parcoords.Unselected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v + self._init_provided('line', arg, line) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcoords/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/parcoords/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/parcoords/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/parcoords/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/parcoords/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/parcoords/legendgrouptitle/_font.py index 43406e96f30..2f2f0e7de93 100644 --- a/packages/python/plotly/plotly/graph_objs/parcoords/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/parcoords/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "parcoords.legendgrouptitle" - _path_str = "parcoords.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'parcoords.legendgrouptitle' + _path_str = 'parcoords.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.parcoords.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.parcoords.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.parcoords.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcoords/line/__init__.py b/packages/python/plotly/plotly/graph_objs/parcoords/line/__init__.py index 27dfc9e52fb..c35de683492 100644 --- a/packages/python/plotly/plotly/graph_objs/parcoords/line/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/parcoords/line/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from . import colorbar else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [".colorbar"], ["._colorbar.ColorBar"] + __name__, + ['.colorbar'], + ['._colorbar.ColorBar'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/parcoords/line/_colorbar.py b/packages/python/plotly/plotly/graph_objs/parcoords/line/_colorbar.py index 0b2e3b6a186..94e489993e8 100644 --- a/packages/python/plotly/plotly/graph_objs/parcoords/line/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/parcoords/line/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "parcoords.line" - _path_str = "parcoords.line.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'parcoords.line' + _path_str = 'parcoords.line.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.parcoords.line.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.parcoords.line.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.parcoords.line.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.parcoords.line.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.parcoords.line.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.parcoords.line.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.parcoords.line.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/_tickfont.py index 9214f96fc0f..637011e69a7 100644 --- a/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "parcoords.line.colorbar" - _path_str = "parcoords.line.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'parcoords.line.colorbar' + _path_str = 'parcoords.line.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.parcoords.line.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.parcoords.line.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.parcoords.line.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/_tickformatstop.py index 91e8d618f6e..2d34552a1b4 100644 --- a/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "parcoords.line.colorbar" - _path_str = "parcoords.line.colorbar.tickformatstop" + _parent_path_str = 'parcoords.line.colorbar' + _path_str = 'parcoords.line.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.parcoords.line.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.parcoords.line.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.parcoords.line.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/_title.py index 61d3ae54009..9f2245a730c 100644 --- a/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "parcoords.line.colorbar" - _path_str = "parcoords.line.colorbar.title" + _parent_path_str = 'parcoords.line.colorbar' + _path_str = 'parcoords.line.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.parcoords.line.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.parcoords.line.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.parcoords.line.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.parcoords.line.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/title/_font.py index abd968c6cef..707e265b064 100644 --- a/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "parcoords.line.colorbar.title" - _path_str = "parcoords.line.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'parcoords.line.colorbar.title' + _path_str = 'parcoords.line.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.parcoords.line.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.parcoords.line.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.parcoords.line.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcoords/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/parcoords/unselected/__init__.py index 8722c15a2b8..a745ef6458a 100644 --- a/packages/python/plotly/plotly/graph_objs/parcoords/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/parcoords/unselected/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import Line else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._line.Line'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._line.Line"]) diff --git a/packages/python/plotly/plotly/graph_objs/parcoords/unselected/_line.py b/packages/python/plotly/plotly/graph_objs/parcoords/unselected/_line.py index a71fe07e08b..590fbacdab4 100644 --- a/packages/python/plotly/plotly/graph_objs/parcoords/unselected/_line.py +++ b/packages/python/plotly/plotly/graph_objs/parcoords/unselected/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "parcoords.unselected" - _path_str = "parcoords.unselected.line" + _parent_path_str = 'parcoords.unselected' + _path_str = 'parcoords.unselected.line' _valid_props = {"color", "opacity"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -86,11 +53,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # Self properties description # --------------------------- @@ -106,8 +73,12 @@ def _prop_descriptions(self): lines increases. Use 1 to achieve exact `unselected.line.color`. """ - - def __init__(self, arg=None, color=None, opacity=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + **kwargs + ): """ Construct a new Line object @@ -130,10 +101,10 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +116,21 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.parcoords.unselected.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.parcoords.unselected.Line`""" - ) +an instance of :class:`plotly.graph_objs.parcoords.unselected.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/pie/__init__.py b/packages/python/plotly/plotly/graph_objs/pie/__init__.py index 7f472afeb9b..b1c318b792d 100644 --- a/packages/python/plotly/plotly/graph_objs/pie/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/pie/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._domain import Domain from ._hoverlabel import Hoverlabel @@ -17,19 +16,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".hoverlabel", ".legendgrouptitle", ".marker", ".title"], - [ - "._domain.Domain", - "._hoverlabel.Hoverlabel", - "._insidetextfont.Insidetextfont", - "._legendgrouptitle.Legendgrouptitle", - "._marker.Marker", - "._outsidetextfont.Outsidetextfont", - "._stream.Stream", - "._textfont.Textfont", - "._title.Title", - ], + ['.hoverlabel', '.legendgrouptitle', '.marker', '.title'], + ['._domain.Domain', '._hoverlabel.Hoverlabel', '._insidetextfont.Insidetextfont', '._legendgrouptitle.Legendgrouptitle', '._marker.Marker', '._outsidetextfont.Outsidetextfont', '._stream.Stream', '._textfont.Textfont', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/pie/_domain.py b/packages/python/plotly/plotly/graph_objs/pie/_domain.py index 66bbaa0e232..37805d07b88 100644 --- a/packages/python/plotly/plotly/graph_objs/pie/_domain.py +++ b/packages/python/plotly/plotly/graph_objs/pie/_domain.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Domain(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "pie" - _path_str = "pie.domain" + _parent_path_str = 'pie' + _path_str = 'pie.domain' _valid_props = {"column", "row", "x", "y"} # column @@ -26,11 +28,11 @@ def column(self): ------- int """ - return self["column"] + return self['column'] @column.setter def column(self, val): - self["column"] = val + self['column'] = val # row # --- @@ -48,62 +50,62 @@ def row(self): ------- int """ - return self["row"] + return self['row'] @row.setter def row(self, val): - self["row"] = val + self['row'] = val # x # - @property def x(self): """ - Sets the horizontal domain of this pie trace (in plot - fraction). - - The 'x' property is an info array that may be specified as: + Sets the horizontal domain of this pie trace (in plot + fraction). - * a list or tuple of 2 elements where: - (0) The 'x[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'x[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] + The 'x' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'x[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'x[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - Returns - ------- - list + Returns + ------- + list """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @property def y(self): """ - Sets the vertical domain of this pie trace (in plot fraction). - - The 'y' property is an info array that may be specified as: + Sets the vertical domain of this pie trace (in plot fraction). - * a list or tuple of 2 elements where: - (0) The 'y[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'y[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] + The 'y' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'y[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'y[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - Returns - ------- - list + Returns + ------- + list """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # Self properties description # --------------------------- @@ -123,8 +125,14 @@ def _prop_descriptions(self): Sets the vertical domain of this pie trace (in plot fraction). """ - - def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): + def __init__(self, + arg=None, + column=None, + row=None, + x=None, + y=None, + **kwargs + ): """ Construct a new Domain object @@ -150,10 +158,10 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") + super(Domain, self).__init__('domain') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -165,36 +173,23 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.pie.Domain constructor must be a dict or -an instance of :class:`plotly.graph_objs.pie.Domain`""" - ) +an instance of :class:`plotly.graph_objs.pie.Domain`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("column", None) - _v = column if column is not None else _v - if _v is not None: - self["column"] = _v - _v = arg.pop("row", None) - _v = row if row is not None else _v - if _v is not None: - self["row"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v + self._init_provided('column', arg, column) + self._init_provided('row', arg, row) + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/pie/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/pie/_hoverlabel.py index 6eea4b083db..0f8ad2c1a6d 100644 --- a/packages/python/plotly/plotly/graph_objs/pie/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/pie/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "pie" - _path_str = "pie.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'pie' + _path_str = 'pie.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.pie.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.pie.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.pie.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.pie.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/pie/_insidetextfont.py b/packages/python/plotly/plotly/graph_objs/pie/_insidetextfont.py index 405e49af4ad..a27ea03dd38 100644 --- a/packages/python/plotly/plotly/graph_objs/pie/_insidetextfont.py +++ b/packages/python/plotly/plotly/graph_objs/pie/_insidetextfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Insidetextfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "pie" - _path_str = "pie.insidetextfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'pie' + _path_str = 'pie.insidetextfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Insidetextfont object @@ -639,10 +585,10 @@ def __init__( ------- Insidetextfont """ - super(Insidetextfont, self).__init__("insidetextfont") + super(Insidetextfont, self).__init__('insidetextfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.pie.Insidetextfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.pie.Insidetextfont`""" - ) +an instance of :class:`plotly.graph_objs.pie.Insidetextfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/pie/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/pie/_legendgrouptitle.py index 6e519996c6d..842309d728d 100644 --- a/packages/python/plotly/plotly/graph_objs/pie/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/pie/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "pie" - _path_str = "pie.legendgrouptitle" + _parent_path_str = 'pie' + _path_str = 'pie.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.pie.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.pie.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.pie.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.pie.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/pie/_marker.py b/packages/python/plotly/plotly/graph_objs/pie/_marker.py index 5dc68dd8e2a..e306aa77cb3 100644 --- a/packages/python/plotly/plotly/graph_objs/pie/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/pie/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "pie" - _path_str = "pie.marker" + _parent_path_str = 'pie' + _path_str = 'pie.marker' _valid_props = {"colors", "colorssrc", "line", "pattern"} # colors @@ -25,11 +27,11 @@ def colors(self): ------- numpy.ndarray """ - return self["colors"] + return self['colors'] @colors.setter def colors(self, val): - self["colors"] = val + self['colors'] = val # colorssrc # --------- @@ -45,11 +47,11 @@ def colorssrc(self): ------- str """ - return self["colorssrc"] + return self['colorssrc'] @colorssrc.setter def colorssrc(self, val): - self["colorssrc"] = val + self['colorssrc'] = val # line # ---- @@ -62,30 +64,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the color of the line enclosing each - sector. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - width - Sets the width (in px) of the line enclosing - each sector. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. - Returns ------- plotly.graph_objs.pie.marker.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # pattern # ------- @@ -100,66 +87,15 @@ def pattern(self): - A dict of string/value properties that will be passed to the Pattern constructor - Supported dict properties: - - bgcolor - When there is no colorscale sets the color of - background pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "overlay". Otherwise, defaults to a transparent - background. - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - fgcolor - When there is no colorscale sets the color of - foreground pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "replace". Otherwise, defaults to dark grey or - white to increase contrast with the `bgcolor`. - fgcolorsrc - Sets the source reference on Chart Studio Cloud - for `fgcolor`. - fgopacity - Sets the opacity of the foreground pattern - fill. Defaults to a 0.5 when `fillmode` is - "overlay". Otherwise, defaults to 1. - fillmode - Determines whether `marker.color` should be - used as a default to `bgcolor` or a `fgcolor`. - shape - Sets the shape of the pattern fill. By default, - no pattern is used for filling the area. - shapesrc - Sets the source reference on Chart Studio Cloud - for `shape`. - size - Sets the size of unit squares of the pattern - fill in pixels, which corresponds to the - interval of repetition of the pattern. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - solidity - Sets the solidity of the pattern fill. Solidity - is roughly the fraction of the area filled by - the pattern. Solidity of 0 shows only the - background color without pattern and solidty of - 1 shows only the foreground color without - pattern. - soliditysrc - Sets the source reference on Chart Studio Cloud - for `solidity`. - Returns ------- plotly.graph_objs.pie.marker.Pattern """ - return self["pattern"] + return self['pattern'] @pattern.setter def pattern(self, val): - self["pattern"] = val + self['pattern'] = val # Self properties description # --------------------------- @@ -179,10 +115,14 @@ def _prop_descriptions(self): pattern Sets the pattern within the marker. """ - - def __init__( - self, arg=None, colors=None, colorssrc=None, line=None, pattern=None, **kwargs - ): + def __init__(self, + arg=None, + colors=None, + colorssrc=None, + line=None, + pattern=None, + **kwargs + ): """ Construct a new Marker object @@ -208,10 +148,10 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -223,36 +163,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.pie.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.pie.Marker`""" - ) +an instance of :class:`plotly.graph_objs.pie.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("colors", None) - _v = colors if colors is not None else _v - if _v is not None: - self["colors"] = _v - _v = arg.pop("colorssrc", None) - _v = colorssrc if colorssrc is not None else _v - if _v is not None: - self["colorssrc"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("pattern", None) - _v = pattern if pattern is not None else _v - if _v is not None: - self["pattern"] = _v + self._init_provided('colors', arg, colors) + self._init_provided('colorssrc', arg, colorssrc) + self._init_provided('line', arg, line) + self._init_provided('pattern', arg, pattern) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/pie/_outsidetextfont.py b/packages/python/plotly/plotly/graph_objs/pie/_outsidetextfont.py index 2b989c8eee0..bedb561b03e 100644 --- a/packages/python/plotly/plotly/graph_objs/pie/_outsidetextfont.py +++ b/packages/python/plotly/plotly/graph_objs/pie/_outsidetextfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Outsidetextfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "pie" - _path_str = "pie.outsidetextfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'pie' + _path_str = 'pie.outsidetextfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Outsidetextfont object @@ -639,10 +585,10 @@ def __init__( ------- Outsidetextfont """ - super(Outsidetextfont, self).__init__("outsidetextfont") + super(Outsidetextfont, self).__init__('outsidetextfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.pie.Outsidetextfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.pie.Outsidetextfont`""" - ) +an instance of :class:`plotly.graph_objs.pie.Outsidetextfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/pie/_stream.py b/packages/python/plotly/plotly/graph_objs/pie/_stream.py index 258d1201fb2..02b50070b7a 100644 --- a/packages/python/plotly/plotly/graph_objs/pie/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/pie/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "pie" - _path_str = "pie.stream" + _parent_path_str = 'pie' + _path_str = 'pie.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -93,10 +99,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -108,28 +114,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.pie.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.pie.Stream`""" - ) +an instance of :class:`plotly.graph_objs.pie.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/pie/_textfont.py b/packages/python/plotly/plotly/graph_objs/pie/_textfont.py index dd100565b66..febe29289a7 100644 --- a/packages/python/plotly/plotly/graph_objs/pie/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/pie/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "pie" - _path_str = "pie.textfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'pie' + _path_str = 'pie.textfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Textfont object @@ -638,10 +584,10 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -653,92 +599,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.pie.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.pie.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.pie.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/pie/_title.py b/packages/python/plotly/plotly/graph_objs/pie/_title.py index a353059e419..14265a6df3d 100644 --- a/packages/python/plotly/plotly/graph_objs/pie/_title.py +++ b/packages/python/plotly/plotly/graph_objs/pie/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "pie" - _path_str = "pie.title" + _parent_path_str = 'pie' + _path_str = 'pie.title' _valid_props = {"font", "position", "text"} # font @@ -23,88 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.pie.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # position # -------- @@ -122,11 +51,11 @@ def position(self): ------- Any """ - return self["position"] + return self['position'] @position.setter def position(self, val): - self["position"] = val + self['position'] = val # text # ---- @@ -144,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -163,8 +92,13 @@ def _prop_descriptions(self): Sets the title of the chart. If it is empty, no title is displayed. """ - - def __init__(self, arg=None, font=None, position=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + position=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -185,10 +119,10 @@ def __init__(self, arg=None, font=None, position=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -200,32 +134,22 @@ def __init__(self, arg=None, font=None, position=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.pie.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.pie.Title`""" - ) +an instance of :class:`plotly.graph_objs.pie.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("position", None) - _v = position if position is not None else _v - if _v is not None: - self["position"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('position', arg, position) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/pie/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/pie/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/pie/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/pie/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/pie/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/pie/hoverlabel/_font.py index 4dbd06c8e33..3edf379ca57 100644 --- a/packages/python/plotly/plotly/graph_objs/pie/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/pie/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "pie.hoverlabel" - _path_str = "pie.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'pie.hoverlabel' + _path_str = 'pie.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.pie.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.pie.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.pie.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/pie/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/pie/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/pie/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/pie/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/pie/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/pie/legendgrouptitle/_font.py index f06c6ce659c..5aeeb92debf 100644 --- a/packages/python/plotly/plotly/graph_objs/pie/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/pie/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "pie.legendgrouptitle" - _path_str = "pie.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'pie.legendgrouptitle' + _path_str = 'pie.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.pie.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.pie.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.pie.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/pie/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/pie/marker/__init__.py index 9f8ac2640cb..16a84c1ec30 100644 --- a/packages/python/plotly/plotly/graph_objs/pie/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/pie/marker/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import Line from ._pattern import Pattern else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._line.Line", "._pattern.Pattern"] + __name__, + [], + ['._line.Line', '._pattern.Pattern'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/pie/marker/_line.py b/packages/python/plotly/plotly/graph_objs/pie/marker/_line.py index 01e91301afb..306f5294dcb 100644 --- a/packages/python/plotly/plotly/graph_objs/pie/marker/_line.py +++ b/packages/python/plotly/plotly/graph_objs/pie/marker/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "pie.marker" - _path_str = "pie.marker.line" + _parent_path_str = 'pie.marker' + _path_str = 'pie.marker.line' _valid_props = {"color", "colorsrc", "width", "widthsrc"} # color @@ -22,53 +24,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -84,11 +51,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # width # ----- @@ -105,11 +72,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # widthsrc # -------- @@ -125,11 +92,11 @@ def widthsrc(self): ------- str """ - return self["widthsrc"] + return self['widthsrc'] @widthsrc.setter def widthsrc(self, val): - self["widthsrc"] = val + self['widthsrc'] = val # Self properties description # --------------------------- @@ -148,10 +115,14 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `width`. """ - - def __init__( - self, arg=None, color=None, colorsrc=None, width=None, widthsrc=None, **kwargs - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + width=None, + widthsrc=None, + **kwargs + ): """ Construct a new Line object @@ -177,10 +148,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -192,36 +163,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.pie.marker.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.pie.marker.Line`""" - ) +an instance of :class:`plotly.graph_objs.pie.marker.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("widthsrc", None) - _v = widthsrc if widthsrc is not None else _v - if _v is not None: - self["widthsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('width', arg, width) + self._init_provided('widthsrc', arg, widthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/pie/marker/_pattern.py b/packages/python/plotly/plotly/graph_objs/pie/marker/_pattern.py index 9f9e0d31db6..fb557b0483b 100644 --- a/packages/python/plotly/plotly/graph_objs/pie/marker/_pattern.py +++ b/packages/python/plotly/plotly/graph_objs/pie/marker/_pattern.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,22 +8,9 @@ class Pattern(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "pie.marker" - _path_str = "pie.marker.pattern" - _valid_props = { - "bgcolor", - "bgcolorsrc", - "fgcolor", - "fgcolorsrc", - "fgopacity", - "fillmode", - "shape", - "shapesrc", - "size", - "sizesrc", - "solidity", - "soliditysrc", - } + _parent_path_str = 'pie.marker' + _path_str = 'pie.marker.pattern' + _valid_props = {"bgcolor", "bgcolorsrc", "fgcolor", "fgcolorsrc", "fgopacity", "fillmode", "shape", "shapesrc", "size", "sizesrc", "solidity", "soliditysrc"} # bgcolor # ------- @@ -38,53 +27,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -100,11 +54,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # fgcolor # ------- @@ -121,53 +75,18 @@ def fgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["fgcolor"] + return self['fgcolor'] @fgcolor.setter def fgcolor(self, val): - self["fgcolor"] = val + self['fgcolor'] = val # fgcolorsrc # ---------- @@ -183,11 +102,11 @@ def fgcolorsrc(self): ------- str """ - return self["fgcolorsrc"] + return self['fgcolorsrc'] @fgcolorsrc.setter def fgcolorsrc(self, val): - self["fgcolorsrc"] = val + self['fgcolorsrc'] = val # fgopacity # --------- @@ -204,11 +123,11 @@ def fgopacity(self): ------- int|float """ - return self["fgopacity"] + return self['fgopacity'] @fgopacity.setter def fgopacity(self, val): - self["fgopacity"] = val + self['fgopacity'] = val # fillmode # -------- @@ -226,11 +145,11 @@ def fillmode(self): ------- Any """ - return self["fillmode"] + return self['fillmode'] @fillmode.setter def fillmode(self, val): - self["fillmode"] = val + self['fillmode'] = val # shape # ----- @@ -249,11 +168,11 @@ def shape(self): ------- Any|numpy.ndarray """ - return self["shape"] + return self['shape'] @shape.setter def shape(self, val): - self["shape"] = val + self['shape'] = val # shapesrc # -------- @@ -269,11 +188,11 @@ def shapesrc(self): ------- str """ - return self["shapesrc"] + return self['shapesrc'] @shapesrc.setter def shapesrc(self, val): - self["shapesrc"] = val + self['shapesrc'] = val # size # ---- @@ -291,11 +210,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -311,11 +230,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # solidity # -------- @@ -335,11 +254,11 @@ def solidity(self): ------- int|float|numpy.ndarray """ - return self["solidity"] + return self['solidity'] @solidity.setter def solidity(self, val): - self["solidity"] = val + self['solidity'] = val # soliditysrc # ----------- @@ -355,11 +274,11 @@ def soliditysrc(self): ------- str """ - return self["soliditysrc"] + return self['soliditysrc'] @soliditysrc.setter def soliditysrc(self, val): - self["soliditysrc"] = val + self['soliditysrc'] = val # Self properties description # --------------------------- @@ -413,24 +332,22 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `solidity`. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bgcolorsrc=None, - fgcolor=None, - fgcolorsrc=None, - fgopacity=None, - fillmode=None, - shape=None, - shapesrc=None, - size=None, - sizesrc=None, - solidity=None, - soliditysrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bgcolorsrc=None, + fgcolor=None, + fgcolorsrc=None, + fgopacity=None, + fillmode=None, + shape=None, + shapesrc=None, + size=None, + sizesrc=None, + solidity=None, + soliditysrc=None, + **kwargs + ): """ Construct a new Pattern object @@ -493,10 +410,10 @@ def __init__( ------- Pattern """ - super(Pattern, self).__init__("pattern") + super(Pattern, self).__init__('pattern') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -508,68 +425,31 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.pie.marker.Pattern constructor must be a dict or -an instance of :class:`plotly.graph_objs.pie.marker.Pattern`""" - ) +an instance of :class:`plotly.graph_objs.pie.marker.Pattern`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("fgcolor", None) - _v = fgcolor if fgcolor is not None else _v - if _v is not None: - self["fgcolor"] = _v - _v = arg.pop("fgcolorsrc", None) - _v = fgcolorsrc if fgcolorsrc is not None else _v - if _v is not None: - self["fgcolorsrc"] = _v - _v = arg.pop("fgopacity", None) - _v = fgopacity if fgopacity is not None else _v - if _v is not None: - self["fgopacity"] = _v - _v = arg.pop("fillmode", None) - _v = fillmode if fillmode is not None else _v - if _v is not None: - self["fillmode"] = _v - _v = arg.pop("shape", None) - _v = shape if shape is not None else _v - if _v is not None: - self["shape"] = _v - _v = arg.pop("shapesrc", None) - _v = shapesrc if shapesrc is not None else _v - if _v is not None: - self["shapesrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("solidity", None) - _v = solidity if solidity is not None else _v - if _v is not None: - self["solidity"] = _v - _v = arg.pop("soliditysrc", None) - _v = soliditysrc if soliditysrc is not None else _v - if _v is not None: - self["soliditysrc"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('fgcolor', arg, fgcolor) + self._init_provided('fgcolorsrc', arg, fgcolorsrc) + self._init_provided('fgopacity', arg, fgopacity) + self._init_provided('fillmode', arg, fillmode) + self._init_provided('shape', arg, shape) + self._init_provided('shapesrc', arg, shapesrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('solidity', arg, solidity) + self._init_provided('soliditysrc', arg, soliditysrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/pie/title/__init__.py b/packages/python/plotly/plotly/graph_objs/pie/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/pie/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/pie/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/pie/title/_font.py b/packages/python/plotly/plotly/graph_objs/pie/title/_font.py index 94abdc6fad0..130caaeba57 100644 --- a/packages/python/plotly/plotly/graph_objs/pie/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/pie/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "pie.title" - _path_str = "pie.title.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'pie.title' + _path_str = 'pie.title.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.pie.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.pie.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.pie.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sankey/__init__.py b/packages/python/plotly/plotly/graph_objs/sankey/__init__.py index 546ebd48cfe..f8d8c5f70b3 100644 --- a/packages/python/plotly/plotly/graph_objs/sankey/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/sankey/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._domain import Domain from ._hoverlabel import Hoverlabel @@ -15,17 +14,10 @@ from . import node else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".hoverlabel", ".legendgrouptitle", ".link", ".node"], - [ - "._domain.Domain", - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._link.Link", - "._node.Node", - "._stream.Stream", - "._textfont.Textfont", - ], + ['.hoverlabel', '.legendgrouptitle', '.link', '.node'], + ['._domain.Domain', '._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._link.Link', '._node.Node', '._stream.Stream', '._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/sankey/_domain.py b/packages/python/plotly/plotly/graph_objs/sankey/_domain.py index a4d04fd60b3..18018c781c9 100644 --- a/packages/python/plotly/plotly/graph_objs/sankey/_domain.py +++ b/packages/python/plotly/plotly/graph_objs/sankey/_domain.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Domain(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sankey" - _path_str = "sankey.domain" + _parent_path_str = 'sankey' + _path_str = 'sankey.domain' _valid_props = {"column", "row", "x", "y"} # column @@ -26,11 +28,11 @@ def column(self): ------- int """ - return self["column"] + return self['column'] @column.setter def column(self, val): - self["column"] = val + self['column'] = val # row # --- @@ -48,63 +50,63 @@ def row(self): ------- int """ - return self["row"] + return self['row'] @row.setter def row(self, val): - self["row"] = val + self['row'] = val # x # - @property def x(self): """ - Sets the horizontal domain of this sankey trace (in plot - fraction). + Sets the horizontal domain of this sankey trace (in plot + fraction). - The 'x' property is an info array that may be specified as: + The 'x' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'x[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'x[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - * a list or tuple of 2 elements where: - (0) The 'x[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'x[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - - Returns - ------- - list + Returns + ------- + list """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @property def y(self): """ - Sets the vertical domain of this sankey trace (in plot - fraction). - - The 'y' property is an info array that may be specified as: + Sets the vertical domain of this sankey trace (in plot + fraction). - * a list or tuple of 2 elements where: - (0) The 'y[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'y[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] + The 'y' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'y[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'y[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - Returns - ------- - list + Returns + ------- + list """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # Self properties description # --------------------------- @@ -124,8 +126,14 @@ def _prop_descriptions(self): Sets the vertical domain of this sankey trace (in plot fraction). """ - - def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): + def __init__(self, + arg=None, + column=None, + row=None, + x=None, + y=None, + **kwargs + ): """ Construct a new Domain object @@ -151,10 +159,10 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") + super(Domain, self).__init__('domain') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -166,36 +174,23 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sankey.Domain constructor must be a dict or -an instance of :class:`plotly.graph_objs.sankey.Domain`""" - ) +an instance of :class:`plotly.graph_objs.sankey.Domain`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("column", None) - _v = column if column is not None else _v - if _v is not None: - self["column"] = _v - _v = arg.pop("row", None) - _v = row if row is not None else _v - if _v is not None: - self["row"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v + self._init_provided('column', arg, column) + self._init_provided('row', arg, row) + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sankey/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/sankey/_hoverlabel.py index d83a32f20ac..d4dd8709138 100644 --- a/packages/python/plotly/plotly/graph_objs/sankey/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/sankey/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sankey" - _path_str = "sankey.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'sankey' + _path_str = 'sankey.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.sankey.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sankey.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.sankey.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.sankey.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sankey/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/sankey/_legendgrouptitle.py index 244ff4aece1..13f48bf31a7 100644 --- a/packages/python/plotly/plotly/graph_objs/sankey/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/sankey/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sankey" - _path_str = "sankey.legendgrouptitle" + _parent_path_str = 'sankey' + _path_str = 'sankey.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.sankey.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sankey.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.sankey.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.sankey.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sankey/_link.py b/packages/python/plotly/plotly/graph_objs/sankey/_link.py index 0dfcced2195..fef4eefbb9a 100644 --- a/packages/python/plotly/plotly/graph_objs/sankey/_link.py +++ b/packages/python/plotly/plotly/graph_objs/sankey/_link.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,32 +8,9 @@ class Link(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sankey" - _path_str = "sankey.link" - _valid_props = { - "arrowlen", - "color", - "colorscaledefaults", - "colorscales", - "colorsrc", - "customdata", - "customdatasrc", - "hovercolor", - "hovercolorsrc", - "hoverinfo", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "label", - "labelsrc", - "line", - "source", - "sourcesrc", - "target", - "targetsrc", - "value", - "valuesrc", - } + _parent_path_str = 'sankey' + _path_str = 'sankey.link' + _valid_props = {"arrowlen", "color", "colorscaledefaults", "colorscales", "colorsrc", "customdata", "customdatasrc", "hovercolor", "hovercolorsrc", "hoverinfo", "hoverlabel", "hovertemplate", "hovertemplatesrc", "label", "labelsrc", "line", "source", "sourcesrc", "target", "targetsrc", "value", "valuesrc"} # arrowlen # -------- @@ -48,11 +27,11 @@ def arrowlen(self): ------- int|float """ - return self["arrowlen"] + return self['arrowlen'] @arrowlen.setter def arrowlen(self, val): - self["arrowlen"] = val + self['arrowlen'] = val # color # ----- @@ -68,53 +47,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorscales # ----------- @@ -127,60 +71,15 @@ def colorscales(self): - A list or tuple of dicts of string/value properties that will be passed to the Colorscale constructor - Supported dict properties: - - cmax - Sets the upper bound of the color domain. - cmin - Sets the lower bound of the color domain. - colorscale - Sets the colorscale. The colorscale must be an - array containing arrays mapping a normalized - value to an rgb, rgba, hex, hsl, hsv, or named - color string. At minimum, a mapping for the - lowest (0) and highest (1) values are required. - For example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use `cmin` and - `cmax`. Alternatively, `colorscale` may be a - palette name string of the following list: Blac - kbody,Bluered,Blues,Cividis,Earth,Electric,Gree - ns,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,R - eds,Viridis,YlGnBu,YlOrRd. - label - The label of the links to color based on their - concentration within a flow. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - Returns ------- tuple[plotly.graph_objs.sankey.link.Colorscale] """ - return self["colorscales"] + return self['colorscales'] @colorscales.setter def colorscales(self, val): - self["colorscales"] = val + self['colorscales'] = val # colorscaledefaults # ------------------ @@ -198,17 +97,15 @@ def colorscaledefaults(self): - A dict of string/value properties that will be passed to the Colorscale constructor - Supported dict properties: - Returns ------- plotly.graph_objs.sankey.link.Colorscale """ - return self["colorscaledefaults"] + return self['colorscaledefaults'] @colorscaledefaults.setter def colorscaledefaults(self, val): - self["colorscaledefaults"] = val + self['colorscaledefaults'] = val # colorsrc # -------- @@ -224,11 +121,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # customdata # ---------- @@ -244,11 +141,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -265,11 +162,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # hovercolor # ---------- @@ -286,53 +183,18 @@ def hovercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["hovercolor"] + return self['hovercolor'] @hovercolor.setter def hovercolor(self, val): - self["hovercolor"] = val + self['hovercolor'] = val # hovercolorsrc # ------------- @@ -349,11 +211,11 @@ def hovercolorsrc(self): ------- str """ - return self["hovercolorsrc"] + return self['hovercolorsrc'] @hovercolorsrc.setter def hovercolorsrc(self, val): - self["hovercolorsrc"] = val + self['hovercolorsrc'] = val # hoverinfo # --------- @@ -373,11 +235,11 @@ def hoverinfo(self): ------- Any """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverlabel # ---------- @@ -390,53 +252,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.sankey.link.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -478,11 +302,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -499,11 +323,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # label # ----- @@ -519,11 +343,11 @@ def label(self): ------- numpy.ndarray """ - return self["label"] + return self['label'] @label.setter def label(self, val): - self["label"] = val + self['label'] = val # labelsrc # -------- @@ -539,11 +363,11 @@ def labelsrc(self): ------- str """ - return self["labelsrc"] + return self['labelsrc'] @labelsrc.setter def labelsrc(self, val): - self["labelsrc"] = val + self['labelsrc'] = val # line # ---- @@ -556,30 +380,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the color of the `line` around each - `link`. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - width - Sets the width (in px) of the `line` around - each `link`. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. - Returns ------- plotly.graph_objs.sankey.link.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # source # ------ @@ -596,11 +405,11 @@ def source(self): ------- numpy.ndarray """ - return self["source"] + return self['source'] @source.setter def source(self, val): - self["source"] = val + self['source'] = val # sourcesrc # --------- @@ -616,11 +425,11 @@ def sourcesrc(self): ------- str """ - return self["sourcesrc"] + return self['sourcesrc'] @sourcesrc.setter def sourcesrc(self, val): - self["sourcesrc"] = val + self['sourcesrc'] = val # target # ------ @@ -637,11 +446,11 @@ def target(self): ------- numpy.ndarray """ - return self["target"] + return self['target'] @target.setter def target(self, val): - self["target"] = val + self['target'] = val # targetsrc # --------- @@ -657,11 +466,11 @@ def targetsrc(self): ------- str """ - return self["targetsrc"] + return self['targetsrc'] @targetsrc.setter def targetsrc(self, val): - self["targetsrc"] = val + self['targetsrc'] = val # value # ----- @@ -677,11 +486,11 @@ def value(self): ------- numpy.ndarray """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # valuesrc # -------- @@ -697,11 +506,11 @@ def valuesrc(self): ------- str """ - return self["valuesrc"] + return self['valuesrc'] @valuesrc.setter def valuesrc(self, val): - self["valuesrc"] = val + self['valuesrc'] = val # Self properties description # --------------------------- @@ -810,34 +619,32 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `value`. """ - - def __init__( - self, - arg=None, - arrowlen=None, - color=None, - colorscales=None, - colorscaledefaults=None, - colorsrc=None, - customdata=None, - customdatasrc=None, - hovercolor=None, - hovercolorsrc=None, - hoverinfo=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - label=None, - labelsrc=None, - line=None, - source=None, - sourcesrc=None, - target=None, - targetsrc=None, - value=None, - valuesrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + arrowlen=None, + color=None, + colorscales=None, + colorscaledefaults=None, + colorsrc=None, + customdata=None, + customdatasrc=None, + hovercolor=None, + hovercolorsrc=None, + hoverinfo=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + label=None, + labelsrc=None, + line=None, + source=None, + sourcesrc=None, + target=None, + targetsrc=None, + value=None, + valuesrc=None, + **kwargs + ): """ Construct a new Link object @@ -954,10 +761,10 @@ def __init__( ------- Link """ - super(Link, self).__init__("link") + super(Link, self).__init__('link') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -969,108 +776,41 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sankey.Link constructor must be a dict or -an instance of :class:`plotly.graph_objs.sankey.Link`""" - ) +an instance of :class:`plotly.graph_objs.sankey.Link`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("arrowlen", None) - _v = arrowlen if arrowlen is not None else _v - if _v is not None: - self["arrowlen"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorscales", None) - _v = colorscales if colorscales is not None else _v - if _v is not None: - self["colorscales"] = _v - _v = arg.pop("colorscaledefaults", None) - _v = colorscaledefaults if colorscaledefaults is not None else _v - if _v is not None: - self["colorscaledefaults"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("hovercolor", None) - _v = hovercolor if hovercolor is not None else _v - if _v is not None: - self["hovercolor"] = _v - _v = arg.pop("hovercolorsrc", None) - _v = hovercolorsrc if hovercolorsrc is not None else _v - if _v is not None: - self["hovercolorsrc"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("label", None) - _v = label if label is not None else _v - if _v is not None: - self["label"] = _v - _v = arg.pop("labelsrc", None) - _v = labelsrc if labelsrc is not None else _v - if _v is not None: - self["labelsrc"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("source", None) - _v = source if source is not None else _v - if _v is not None: - self["source"] = _v - _v = arg.pop("sourcesrc", None) - _v = sourcesrc if sourcesrc is not None else _v - if _v is not None: - self["sourcesrc"] = _v - _v = arg.pop("target", None) - _v = target if target is not None else _v - if _v is not None: - self["target"] = _v - _v = arg.pop("targetsrc", None) - _v = targetsrc if targetsrc is not None else _v - if _v is not None: - self["targetsrc"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v - _v = arg.pop("valuesrc", None) - _v = valuesrc if valuesrc is not None else _v - if _v is not None: - self["valuesrc"] = _v + self._init_provided('arrowlen', arg, arrowlen) + self._init_provided('color', arg, color) + self._init_provided('colorscales', arg, colorscales) + self._init_provided('colorscaledefaults', arg, colorscaledefaults) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('hovercolor', arg, hovercolor) + self._init_provided('hovercolorsrc', arg, hovercolorsrc) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('label', arg, label) + self._init_provided('labelsrc', arg, labelsrc) + self._init_provided('line', arg, line) + self._init_provided('source', arg, source) + self._init_provided('sourcesrc', arg, sourcesrc) + self._init_provided('target', arg, target) + self._init_provided('targetsrc', arg, targetsrc) + self._init_provided('value', arg, value) + self._init_provided('valuesrc', arg, valuesrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sankey/_node.py b/packages/python/plotly/plotly/graph_objs/sankey/_node.py index 61d7d275fba..85ed2e3262e 100644 --- a/packages/python/plotly/plotly/graph_objs/sankey/_node.py +++ b/packages/python/plotly/plotly/graph_objs/sankey/_node.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,29 +8,9 @@ class Node(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sankey" - _path_str = "sankey.node" - _valid_props = { - "align", - "color", - "colorsrc", - "customdata", - "customdatasrc", - "groups", - "hoverinfo", - "hoverlabel", - "hovertemplate", - "hovertemplatesrc", - "label", - "labelsrc", - "line", - "pad", - "thickness", - "x", - "xsrc", - "y", - "ysrc", - } + _parent_path_str = 'sankey' + _path_str = 'sankey.node' + _valid_props = {"align", "color", "colorsrc", "customdata", "customdatasrc", "groups", "hoverinfo", "hoverlabel", "hovertemplate", "hovertemplatesrc", "label", "labelsrc", "line", "pad", "thickness", "x", "xsrc", "y", "ysrc"} # align # ----- @@ -46,11 +28,11 @@ def align(self): ------- Any """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # color # ----- @@ -69,53 +51,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -131,11 +78,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # customdata # ---------- @@ -151,11 +98,11 @@ def customdata(self): ------- numpy.ndarray """ - return self["customdata"] + return self['customdata'] @customdata.setter def customdata(self, val): - self["customdata"] = val + self['customdata'] = val # customdatasrc # ------------- @@ -172,11 +119,11 @@ def customdatasrc(self): ------- str """ - return self["customdatasrc"] + return self['customdatasrc'] @customdatasrc.setter def customdatasrc(self, val): - self["customdatasrc"] = val + self['customdatasrc'] = val # groups # ------ @@ -196,11 +143,11 @@ def groups(self): ------- list """ - return self["groups"] + return self['groups'] @groups.setter def groups(self, val): - self["groups"] = val + self['groups'] = val # hoverinfo # --------- @@ -220,11 +167,11 @@ def hoverinfo(self): ------- Any """ - return self["hoverinfo"] + return self['hoverinfo'] @hoverinfo.setter def hoverinfo(self, val): - self["hoverinfo"] = val + self['hoverinfo'] = val # hoverlabel # ---------- @@ -237,53 +184,15 @@ def hoverlabel(self): - A dict of string/value properties that will be passed to the Hoverlabel constructor - Supported dict properties: - - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - Returns ------- plotly.graph_objs.sankey.node.Hoverlabel """ - return self["hoverlabel"] + return self['hoverlabel'] @hoverlabel.setter def hoverlabel(self, val): - self["hoverlabel"] = val + self['hoverlabel'] = val # hovertemplate # ------------- @@ -326,11 +235,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self["hovertemplate"] + return self['hovertemplate'] @hovertemplate.setter def hovertemplate(self, val): - self["hovertemplate"] = val + self['hovertemplate'] = val # hovertemplatesrc # ---------------- @@ -347,11 +256,11 @@ def hovertemplatesrc(self): ------- str """ - return self["hovertemplatesrc"] + return self['hovertemplatesrc'] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self["hovertemplatesrc"] = val + self['hovertemplatesrc'] = val # label # ----- @@ -367,11 +276,11 @@ def label(self): ------- numpy.ndarray """ - return self["label"] + return self['label'] @label.setter def label(self, val): - self["label"] = val + self['label'] = val # labelsrc # -------- @@ -387,11 +296,11 @@ def labelsrc(self): ------- str """ - return self["labelsrc"] + return self['labelsrc'] @labelsrc.setter def labelsrc(self, val): - self["labelsrc"] = val + self['labelsrc'] = val # line # ---- @@ -404,30 +313,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the color of the `line` around each - `node`. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - width - Sets the width (in px) of the `line` around - each `node`. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. - Returns ------- plotly.graph_objs.sankey.node.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # pad # --- @@ -443,11 +337,11 @@ def pad(self): ------- int|float """ - return self["pad"] + return self['pad'] @pad.setter def pad(self, val): - self["pad"] = val + self['pad'] = val # thickness # --------- @@ -463,11 +357,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # x # - @@ -483,11 +377,11 @@ def x(self): ------- numpy.ndarray """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xsrc # ---- @@ -503,11 +397,11 @@ def xsrc(self): ------- str """ - return self["xsrc"] + return self['xsrc'] @xsrc.setter def xsrc(self, val): - self["xsrc"] = val + self['xsrc'] = val # y # - @@ -523,11 +417,11 @@ def y(self): ------- numpy.ndarray """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # ysrc # ---- @@ -543,11 +437,11 @@ def ysrc(self): ------- str """ - return self["ysrc"] + return self['ysrc'] @ysrc.setter def ysrc(self, val): - self["ysrc"] = val + self['ysrc'] = val # Self properties description # --------------------------- @@ -641,31 +535,29 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `y`. """ - - def __init__( - self, - arg=None, - align=None, - color=None, - colorsrc=None, - customdata=None, - customdatasrc=None, - groups=None, - hoverinfo=None, - hoverlabel=None, - hovertemplate=None, - hovertemplatesrc=None, - label=None, - labelsrc=None, - line=None, - pad=None, - thickness=None, - x=None, - xsrc=None, - y=None, - ysrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + color=None, + colorsrc=None, + customdata=None, + customdatasrc=None, + groups=None, + hoverinfo=None, + hoverlabel=None, + hovertemplate=None, + hovertemplatesrc=None, + label=None, + labelsrc=None, + line=None, + pad=None, + thickness=None, + x=None, + xsrc=None, + y=None, + ysrc=None, + **kwargs + ): """ Construct a new Node object @@ -767,10 +659,10 @@ def __init__( ------- Node """ - super(Node, self).__init__("node") + super(Node, self).__init__('node') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -782,96 +674,38 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sankey.Node constructor must be a dict or -an instance of :class:`plotly.graph_objs.sankey.Node`""" - ) +an instance of :class:`plotly.graph_objs.sankey.Node`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("customdata", None) - _v = customdata if customdata is not None else _v - if _v is not None: - self["customdata"] = _v - _v = arg.pop("customdatasrc", None) - _v = customdatasrc if customdatasrc is not None else _v - if _v is not None: - self["customdatasrc"] = _v - _v = arg.pop("groups", None) - _v = groups if groups is not None else _v - if _v is not None: - self["groups"] = _v - _v = arg.pop("hoverinfo", None) - _v = hoverinfo if hoverinfo is not None else _v - if _v is not None: - self["hoverinfo"] = _v - _v = arg.pop("hoverlabel", None) - _v = hoverlabel if hoverlabel is not None else _v - if _v is not None: - self["hoverlabel"] = _v - _v = arg.pop("hovertemplate", None) - _v = hovertemplate if hovertemplate is not None else _v - if _v is not None: - self["hovertemplate"] = _v - _v = arg.pop("hovertemplatesrc", None) - _v = hovertemplatesrc if hovertemplatesrc is not None else _v - if _v is not None: - self["hovertemplatesrc"] = _v - _v = arg.pop("label", None) - _v = label if label is not None else _v - if _v is not None: - self["label"] = _v - _v = arg.pop("labelsrc", None) - _v = labelsrc if labelsrc is not None else _v - if _v is not None: - self["labelsrc"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("pad", None) - _v = pad if pad is not None else _v - if _v is not None: - self["pad"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xsrc", None) - _v = xsrc if xsrc is not None else _v - if _v is not None: - self["xsrc"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("ysrc", None) - _v = ysrc if ysrc is not None else _v - if _v is not None: - self["ysrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('customdata', arg, customdata) + self._init_provided('customdatasrc', arg, customdatasrc) + self._init_provided('groups', arg, groups) + self._init_provided('hoverinfo', arg, hoverinfo) + self._init_provided('hoverlabel', arg, hoverlabel) + self._init_provided('hovertemplate', arg, hovertemplate) + self._init_provided('hovertemplatesrc', arg, hovertemplatesrc) + self._init_provided('label', arg, label) + self._init_provided('labelsrc', arg, labelsrc) + self._init_provided('line', arg, line) + self._init_provided('pad', arg, pad) + self._init_provided('thickness', arg, thickness) + self._init_provided('x', arg, x) + self._init_provided('xsrc', arg, xsrc) + self._init_provided('y', arg, y) + self._init_provided('ysrc', arg, ysrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sankey/_stream.py b/packages/python/plotly/plotly/graph_objs/sankey/_stream.py index 72583c9471f..d051b5d0a9b 100644 --- a/packages/python/plotly/plotly/graph_objs/sankey/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/sankey/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sankey" - _path_str = "sankey.stream" + _parent_path_str = 'sankey' + _path_str = 'sankey.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -93,10 +99,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -108,28 +114,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sankey.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.sankey.Stream`""" - ) +an instance of :class:`plotly.graph_objs.sankey.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sankey/_textfont.py b/packages/python/plotly/plotly/graph_objs/sankey/_textfont.py index 1bb9d7fd84f..0b2495ea86d 100644 --- a/packages/python/plotly/plotly/graph_objs/sankey/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/sankey/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sankey" - _path_str = "sankey.textfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'sankey' + _path_str = 'sankey.textfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Textfont object @@ -377,10 +332,10 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sankey.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.sankey.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.sankey.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sankey/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/sankey/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/sankey/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/sankey/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/sankey/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/sankey/hoverlabel/_font.py index 502fe432bc8..28abb05ba00 100644 --- a/packages/python/plotly/plotly/graph_objs/sankey/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/sankey/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sankey.hoverlabel" - _path_str = "sankey.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'sankey.hoverlabel' + _path_str = 'sankey.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sankey.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.sankey.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.sankey.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sankey/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/sankey/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/sankey/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/sankey/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/sankey/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/sankey/legendgrouptitle/_font.py index 34d067b55ff..f35ef54bc4e 100644 --- a/packages/python/plotly/plotly/graph_objs/sankey/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/sankey/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sankey.legendgrouptitle" - _path_str = "sankey.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'sankey.legendgrouptitle' + _path_str = 'sankey.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sankey.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.sankey.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.sankey.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sankey/link/__init__.py b/packages/python/plotly/plotly/graph_objs/sankey/link/__init__.py index be51e67f10d..f71f504194e 100644 --- a/packages/python/plotly/plotly/graph_objs/sankey/link/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/sankey/link/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorscale import Colorscale from ._hoverlabel import Hoverlabel @@ -8,9 +7,10 @@ from . import hoverlabel else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".hoverlabel"], - ["._colorscale.Colorscale", "._hoverlabel.Hoverlabel", "._line.Line"], + ['.hoverlabel'], + ['._colorscale.Colorscale', '._hoverlabel.Hoverlabel', '._line.Line'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/sankey/link/_colorscale.py b/packages/python/plotly/plotly/graph_objs/sankey/link/_colorscale.py index a7734e691f7..fe16dfc64a5 100644 --- a/packages/python/plotly/plotly/graph_objs/sankey/link/_colorscale.py +++ b/packages/python/plotly/plotly/graph_objs/sankey/link/_colorscale.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Colorscale(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sankey.link" - _path_str = "sankey.link.colorscale" + _parent_path_str = 'sankey.link' + _path_str = 'sankey.link.colorscale' _valid_props = {"cmax", "cmin", "colorscale", "label", "name", "templateitemname"} # cmax @@ -24,11 +26,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmin # ---- @@ -44,11 +46,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # colorscale # ---------- @@ -97,11 +99,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # label # ----- @@ -119,11 +121,11 @@ def label(self): ------- str """ - return self["label"] + return self['label'] @label.setter def label(self, val): - self["label"] = val + self['label'] = val # name # ---- @@ -146,11 +148,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -174,11 +176,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # Self properties description # --------------------------- @@ -224,18 +226,16 @@ def _prop_descriptions(self): matching item, this item will be hidden unless you explicitly show it with `visible: true`. """ - - def __init__( - self, - arg=None, - cmax=None, - cmin=None, - colorscale=None, - label=None, - name=None, - templateitemname=None, - **kwargs, - ): + def __init__(self, + arg=None, + cmax=None, + cmin=None, + colorscale=None, + label=None, + name=None, + templateitemname=None, + **kwargs + ): """ Construct a new Colorscale object @@ -288,10 +288,10 @@ def __init__( ------- Colorscale """ - super(Colorscale, self).__init__("colorscales") + super(Colorscale, self).__init__('colorscales') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -303,44 +303,25 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sankey.link.Colorscale constructor must be a dict or -an instance of :class:`plotly.graph_objs.sankey.link.Colorscale`""" - ) +an instance of :class:`plotly.graph_objs.sankey.link.Colorscale`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("label", None) - _v = label if label is not None else _v - if _v is not None: - self["label"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v + self._init_provided('cmax', arg, cmax) + self._init_provided('cmin', arg, cmin) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('label', arg, label) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sankey/link/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/sankey/link/_hoverlabel.py index 8a63e71700d..853c6dc6a38 100644 --- a/packages/python/plotly/plotly/graph_objs/sankey/link/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/sankey/link/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sankey.link" - _path_str = "sankey.link.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'sankey.link' + _path_str = 'sankey.link.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.sankey.link.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sankey.link.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.sankey.link.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.sankey.link.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sankey/link/_line.py b/packages/python/plotly/plotly/graph_objs/sankey/link/_line.py index d1c1d9b4aff..838a52c43a0 100644 --- a/packages/python/plotly/plotly/graph_objs/sankey/link/_line.py +++ b/packages/python/plotly/plotly/graph_objs/sankey/link/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sankey.link" - _path_str = "sankey.link.line" + _parent_path_str = 'sankey.link' + _path_str = 'sankey.link.line' _valid_props = {"color", "colorsrc", "width", "widthsrc"} # color @@ -22,53 +24,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -84,11 +51,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # width # ----- @@ -105,11 +72,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # widthsrc # -------- @@ -125,11 +92,11 @@ def widthsrc(self): ------- str """ - return self["widthsrc"] + return self['widthsrc'] @widthsrc.setter def widthsrc(self, val): - self["widthsrc"] = val + self['widthsrc'] = val # Self properties description # --------------------------- @@ -148,10 +115,14 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `width`. """ - - def __init__( - self, arg=None, color=None, colorsrc=None, width=None, widthsrc=None, **kwargs - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + width=None, + widthsrc=None, + **kwargs + ): """ Construct a new Line object @@ -177,10 +148,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -192,36 +163,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sankey.link.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.sankey.link.Line`""" - ) +an instance of :class:`plotly.graph_objs.sankey.link.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("widthsrc", None) - _v = widthsrc if widthsrc is not None else _v - if _v is not None: - self["widthsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('width', arg, width) + self._init_provided('widthsrc', arg, widthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sankey/link/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/sankey/link/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/sankey/link/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/sankey/link/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/sankey/link/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/sankey/link/hoverlabel/_font.py index b9fb526bee9..1d7bf3258f5 100644 --- a/packages/python/plotly/plotly/graph_objs/sankey/link/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/sankey/link/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sankey.link.hoverlabel" - _path_str = "sankey.link.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'sankey.link.hoverlabel' + _path_str = 'sankey.link.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sankey.link.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.sankey.link.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.sankey.link.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sankey/node/__init__.py b/packages/python/plotly/plotly/graph_objs/sankey/node/__init__.py index de720a3b81a..1e536edd800 100644 --- a/packages/python/plotly/plotly/graph_objs/sankey/node/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/sankey/node/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._hoverlabel import Hoverlabel from ._line import Line from . import hoverlabel else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [".hoverlabel"], ["._hoverlabel.Hoverlabel", "._line.Line"] + __name__, + ['.hoverlabel'], + ['._hoverlabel.Hoverlabel', '._line.Line'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/sankey/node/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/sankey/node/_hoverlabel.py index bc10f646bd8..70d983a3ccb 100644 --- a/packages/python/plotly/plotly/graph_objs/sankey/node/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/sankey/node/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sankey.node" - _path_str = "sankey.node.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'sankey.node' + _path_str = 'sankey.node.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.sankey.node.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sankey.node.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.sankey.node.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.sankey.node.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sankey/node/_line.py b/packages/python/plotly/plotly/graph_objs/sankey/node/_line.py index 26b939ac119..e7d1c202d42 100644 --- a/packages/python/plotly/plotly/graph_objs/sankey/node/_line.py +++ b/packages/python/plotly/plotly/graph_objs/sankey/node/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sankey.node" - _path_str = "sankey.node.line" + _parent_path_str = 'sankey.node' + _path_str = 'sankey.node.line' _valid_props = {"color", "colorsrc", "width", "widthsrc"} # color @@ -22,53 +24,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -84,11 +51,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # width # ----- @@ -105,11 +72,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # widthsrc # -------- @@ -125,11 +92,11 @@ def widthsrc(self): ------- str """ - return self["widthsrc"] + return self['widthsrc'] @widthsrc.setter def widthsrc(self, val): - self["widthsrc"] = val + self['widthsrc'] = val # Self properties description # --------------------------- @@ -148,10 +115,14 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `width`. """ - - def __init__( - self, arg=None, color=None, colorsrc=None, width=None, widthsrc=None, **kwargs - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + width=None, + widthsrc=None, + **kwargs + ): """ Construct a new Line object @@ -177,10 +148,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -192,36 +163,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sankey.node.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.sankey.node.Line`""" - ) +an instance of :class:`plotly.graph_objs.sankey.node.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("widthsrc", None) - _v = widthsrc if widthsrc is not None else _v - if _v is not None: - self["widthsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('width', arg, width) + self._init_provided('widthsrc', arg, widthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sankey/node/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/sankey/node/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/sankey/node/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/sankey/node/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/sankey/node/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/sankey/node/hoverlabel/_font.py index 25c367c4d3c..5d72eb78f04 100644 --- a/packages/python/plotly/plotly/graph_objs/sankey/node/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/sankey/node/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sankey.node.hoverlabel" - _path_str = "sankey.node.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'sankey.node.hoverlabel' + _path_str = 'sankey.node.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sankey.node.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.sankey.node.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.sankey.node.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter/__init__.py index 8f8eb55b571..b2d833a6ba1 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._error_x import ErrorX from ._error_y import ErrorY @@ -21,22 +20,10 @@ from . import unselected else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".hoverlabel", ".legendgrouptitle", ".marker", ".selected", ".unselected"], - [ - "._error_x.ErrorX", - "._error_y.ErrorY", - "._fillgradient.Fillgradient", - "._fillpattern.Fillpattern", - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._line.Line", - "._marker.Marker", - "._selected.Selected", - "._stream.Stream", - "._textfont.Textfont", - "._unselected.Unselected", - ], + ['.hoverlabel', '.legendgrouptitle', '.marker', '.selected', '.unselected'], + ['._error_x.ErrorX', '._error_y.ErrorY', '._fillgradient.Fillgradient', '._fillpattern.Fillpattern', '._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._line.Line', '._marker.Marker', '._selected.Selected', '._stream.Stream', '._textfont.Textfont', '._unselected.Unselected'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scatter/_error_x.py b/packages/python/plotly/plotly/graph_objs/scatter/_error_x.py index 60a4663ad00..26e13e93449 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/_error_x.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/_error_x.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,25 +8,9 @@ class ErrorX(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter" - _path_str = "scatter.error_x" - _valid_props = { - "array", - "arrayminus", - "arrayminussrc", - "arraysrc", - "color", - "copy_ystyle", - "symmetric", - "thickness", - "traceref", - "tracerefminus", - "type", - "value", - "valueminus", - "visible", - "width", - } + _parent_path_str = 'scatter' + _path_str = 'scatter.error_x' + _valid_props = {"array", "arrayminus", "arrayminussrc", "arraysrc", "color", "copy_ystyle", "symmetric", "thickness", "traceref", "tracerefminus", "type", "value", "valueminus", "visible", "width"} # array # ----- @@ -41,11 +27,11 @@ def array(self): ------- numpy.ndarray """ - return self["array"] + return self['array'] @array.setter def array(self, val): - self["array"] = val + self['array'] = val # arrayminus # ---------- @@ -63,11 +49,11 @@ def arrayminus(self): ------- numpy.ndarray """ - return self["arrayminus"] + return self['arrayminus'] @arrayminus.setter def arrayminus(self, val): - self["arrayminus"] = val + self['arrayminus'] = val # arrayminussrc # ------------- @@ -84,11 +70,11 @@ def arrayminussrc(self): ------- str """ - return self["arrayminussrc"] + return self['arrayminussrc'] @arrayminussrc.setter def arrayminussrc(self, val): - self["arrayminussrc"] = val + self['arrayminussrc'] = val # arraysrc # -------- @@ -104,11 +90,11 @@ def arraysrc(self): ------- str """ - return self["arraysrc"] + return self['arraysrc'] @arraysrc.setter def arraysrc(self, val): - self["arraysrc"] = val + self['arraysrc'] = val # color # ----- @@ -122,52 +108,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # copy_ystyle # ----------- @@ -181,11 +132,11 @@ def copy_ystyle(self): ------- bool """ - return self["copy_ystyle"] + return self['copy_ystyle'] @copy_ystyle.setter def copy_ystyle(self, val): - self["copy_ystyle"] = val + self['copy_ystyle'] = val # symmetric # --------- @@ -203,11 +154,11 @@ def symmetric(self): ------- bool """ - return self["symmetric"] + return self['symmetric'] @symmetric.setter def symmetric(self, val): - self["symmetric"] = val + self['symmetric'] = val # thickness # --------- @@ -223,11 +174,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # traceref # -------- @@ -242,11 +193,11 @@ def traceref(self): ------- int """ - return self["traceref"] + return self['traceref'] @traceref.setter def traceref(self, val): - self["traceref"] = val + self['traceref'] = val # tracerefminus # ------------- @@ -261,11 +212,11 @@ def tracerefminus(self): ------- int """ - return self["tracerefminus"] + return self['tracerefminus'] @tracerefminus.setter def tracerefminus(self, val): - self["tracerefminus"] = val + self['tracerefminus'] = val # type # ---- @@ -288,11 +239,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # value # ----- @@ -310,11 +261,11 @@ def value(self): ------- int|float """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # valueminus # ---------- @@ -333,11 +284,11 @@ def valueminus(self): ------- int|float """ - return self["valueminus"] + return self['valueminus'] @valueminus.setter def valueminus(self, val): - self["valueminus"] = val + self['valueminus'] = val # visible # ------- @@ -353,11 +304,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # width # ----- @@ -374,11 +325,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -441,27 +392,25 @@ def _prop_descriptions(self): Sets the width (in px) of the cross-bar at both ends of the error bars. """ - - def __init__( - self, - arg=None, - array=None, - arrayminus=None, - arrayminussrc=None, - arraysrc=None, - color=None, - copy_ystyle=None, - symmetric=None, - thickness=None, - traceref=None, - tracerefminus=None, - type=None, - value=None, - valueminus=None, - visible=None, - width=None, - **kwargs, - ): + def __init__(self, + arg=None, + array=None, + arrayminus=None, + arrayminussrc=None, + arraysrc=None, + color=None, + copy_ystyle=None, + symmetric=None, + thickness=None, + traceref=None, + tracerefminus=None, + type=None, + value=None, + valueminus=None, + visible=None, + width=None, + **kwargs + ): """ Construct a new ErrorX object @@ -531,10 +480,10 @@ def __init__( ------- ErrorX """ - super(ErrorX, self).__init__("error_x") + super(ErrorX, self).__init__('error_x') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -546,80 +495,34 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter.ErrorX constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter.ErrorX`""" - ) +an instance of :class:`plotly.graph_objs.scatter.ErrorX`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("array", None) - _v = array if array is not None else _v - if _v is not None: - self["array"] = _v - _v = arg.pop("arrayminus", None) - _v = arrayminus if arrayminus is not None else _v - if _v is not None: - self["arrayminus"] = _v - _v = arg.pop("arrayminussrc", None) - _v = arrayminussrc if arrayminussrc is not None else _v - if _v is not None: - self["arrayminussrc"] = _v - _v = arg.pop("arraysrc", None) - _v = arraysrc if arraysrc is not None else _v - if _v is not None: - self["arraysrc"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("copy_ystyle", None) - _v = copy_ystyle if copy_ystyle is not None else _v - if _v is not None: - self["copy_ystyle"] = _v - _v = arg.pop("symmetric", None) - _v = symmetric if symmetric is not None else _v - if _v is not None: - self["symmetric"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("traceref", None) - _v = traceref if traceref is not None else _v - if _v is not None: - self["traceref"] = _v - _v = arg.pop("tracerefminus", None) - _v = tracerefminus if tracerefminus is not None else _v - if _v is not None: - self["tracerefminus"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v - _v = arg.pop("valueminus", None) - _v = valueminus if valueminus is not None else _v - if _v is not None: - self["valueminus"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('array', arg, array) + self._init_provided('arrayminus', arg, arrayminus) + self._init_provided('arrayminussrc', arg, arrayminussrc) + self._init_provided('arraysrc', arg, arraysrc) + self._init_provided('color', arg, color) + self._init_provided('copy_ystyle', arg, copy_ystyle) + self._init_provided('symmetric', arg, symmetric) + self._init_provided('thickness', arg, thickness) + self._init_provided('traceref', arg, traceref) + self._init_provided('tracerefminus', arg, tracerefminus) + self._init_provided('type', arg, type) + self._init_provided('value', arg, value) + self._init_provided('valueminus', arg, valueminus) + self._init_provided('visible', arg, visible) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/_error_y.py b/packages/python/plotly/plotly/graph_objs/scatter/_error_y.py index 6c40ce1c2f9..f67a51796f5 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/_error_y.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/_error_y.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,24 +8,9 @@ class ErrorY(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter" - _path_str = "scatter.error_y" - _valid_props = { - "array", - "arrayminus", - "arrayminussrc", - "arraysrc", - "color", - "symmetric", - "thickness", - "traceref", - "tracerefminus", - "type", - "value", - "valueminus", - "visible", - "width", - } + _parent_path_str = 'scatter' + _path_str = 'scatter.error_y' + _valid_props = {"array", "arrayminus", "arrayminussrc", "arraysrc", "color", "symmetric", "thickness", "traceref", "tracerefminus", "type", "value", "valueminus", "visible", "width"} # array # ----- @@ -40,11 +27,11 @@ def array(self): ------- numpy.ndarray """ - return self["array"] + return self['array'] @array.setter def array(self, val): - self["array"] = val + self['array'] = val # arrayminus # ---------- @@ -62,11 +49,11 @@ def arrayminus(self): ------- numpy.ndarray """ - return self["arrayminus"] + return self['arrayminus'] @arrayminus.setter def arrayminus(self, val): - self["arrayminus"] = val + self['arrayminus'] = val # arrayminussrc # ------------- @@ -83,11 +70,11 @@ def arrayminussrc(self): ------- str """ - return self["arrayminussrc"] + return self['arrayminussrc'] @arrayminussrc.setter def arrayminussrc(self, val): - self["arrayminussrc"] = val + self['arrayminussrc'] = val # arraysrc # -------- @@ -103,11 +90,11 @@ def arraysrc(self): ------- str """ - return self["arraysrc"] + return self['arraysrc'] @arraysrc.setter def arraysrc(self, val): - self["arraysrc"] = val + self['arraysrc'] = val # color # ----- @@ -121,52 +108,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # symmetric # --------- @@ -184,11 +136,11 @@ def symmetric(self): ------- bool """ - return self["symmetric"] + return self['symmetric'] @symmetric.setter def symmetric(self, val): - self["symmetric"] = val + self['symmetric'] = val # thickness # --------- @@ -204,11 +156,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # traceref # -------- @@ -223,11 +175,11 @@ def traceref(self): ------- int """ - return self["traceref"] + return self['traceref'] @traceref.setter def traceref(self, val): - self["traceref"] = val + self['traceref'] = val # tracerefminus # ------------- @@ -242,11 +194,11 @@ def tracerefminus(self): ------- int """ - return self["tracerefminus"] + return self['tracerefminus'] @tracerefminus.setter def tracerefminus(self, val): - self["tracerefminus"] = val + self['tracerefminus'] = val # type # ---- @@ -269,11 +221,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # value # ----- @@ -291,11 +243,11 @@ def value(self): ------- int|float """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # valueminus # ---------- @@ -314,11 +266,11 @@ def valueminus(self): ------- int|float """ - return self["valueminus"] + return self['valueminus'] @valueminus.setter def valueminus(self, val): - self["valueminus"] = val + self['valueminus'] = val # visible # ------- @@ -334,11 +286,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # width # ----- @@ -355,11 +307,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -420,26 +372,24 @@ def _prop_descriptions(self): Sets the width (in px) of the cross-bar at both ends of the error bars. """ - - def __init__( - self, - arg=None, - array=None, - arrayminus=None, - arrayminussrc=None, - arraysrc=None, - color=None, - symmetric=None, - thickness=None, - traceref=None, - tracerefminus=None, - type=None, - value=None, - valueminus=None, - visible=None, - width=None, - **kwargs, - ): + def __init__(self, + arg=None, + array=None, + arrayminus=None, + arrayminussrc=None, + arraysrc=None, + color=None, + symmetric=None, + thickness=None, + traceref=None, + tracerefminus=None, + type=None, + value=None, + valueminus=None, + visible=None, + width=None, + **kwargs + ): """ Construct a new ErrorY object @@ -507,10 +457,10 @@ def __init__( ------- ErrorY """ - super(ErrorY, self).__init__("error_y") + super(ErrorY, self).__init__('error_y') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -522,76 +472,33 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter.ErrorY constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter.ErrorY`""" - ) +an instance of :class:`plotly.graph_objs.scatter.ErrorY`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("array", None) - _v = array if array is not None else _v - if _v is not None: - self["array"] = _v - _v = arg.pop("arrayminus", None) - _v = arrayminus if arrayminus is not None else _v - if _v is not None: - self["arrayminus"] = _v - _v = arg.pop("arrayminussrc", None) - _v = arrayminussrc if arrayminussrc is not None else _v - if _v is not None: - self["arrayminussrc"] = _v - _v = arg.pop("arraysrc", None) - _v = arraysrc if arraysrc is not None else _v - if _v is not None: - self["arraysrc"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("symmetric", None) - _v = symmetric if symmetric is not None else _v - if _v is not None: - self["symmetric"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("traceref", None) - _v = traceref if traceref is not None else _v - if _v is not None: - self["traceref"] = _v - _v = arg.pop("tracerefminus", None) - _v = tracerefminus if tracerefminus is not None else _v - if _v is not None: - self["tracerefminus"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v - _v = arg.pop("valueminus", None) - _v = valueminus if valueminus is not None else _v - if _v is not None: - self["valueminus"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('array', arg, array) + self._init_provided('arrayminus', arg, arrayminus) + self._init_provided('arrayminussrc', arg, arrayminussrc) + self._init_provided('arraysrc', arg, arraysrc) + self._init_provided('color', arg, color) + self._init_provided('symmetric', arg, symmetric) + self._init_provided('thickness', arg, thickness) + self._init_provided('traceref', arg, traceref) + self._init_provided('tracerefminus', arg, tracerefminus) + self._init_provided('type', arg, type) + self._init_provided('value', arg, value) + self._init_provided('valueminus', arg, valueminus) + self._init_provided('visible', arg, visible) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/_fillgradient.py b/packages/python/plotly/plotly/graph_objs/scatter/_fillgradient.py index be664349849..c14a39cfaef 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/_fillgradient.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/_fillgradient.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Fillgradient(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter" - _path_str = "scatter.fillgradient" + _parent_path_str = 'scatter' + _path_str = 'scatter.fillgradient' _valid_props = {"colorscale", "start", "stop", "type"} # colorscale @@ -52,11 +54,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # start # ----- @@ -77,11 +79,11 @@ def start(self): ------- int|float """ - return self["start"] + return self['start'] @start.setter def start(self, val): - self["start"] = val + self['start'] = val # stop # ---- @@ -102,11 +104,11 @@ def stop(self): ------- int|float """ - return self["stop"] + return self['stop'] @stop.setter def stop(self, val): - self["stop"] = val + self['stop'] = val # type # ---- @@ -124,11 +126,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # Self properties description # --------------------------- @@ -162,10 +164,14 @@ def _prop_descriptions(self): Sets the type/orientation of the color gradient for the fill. Defaults to "none". """ - - def __init__( - self, arg=None, colorscale=None, start=None, stop=None, type=None, **kwargs - ): + def __init__(self, + arg=None, + colorscale=None, + start=None, + stop=None, + type=None, + **kwargs + ): """ Construct a new Fillgradient object @@ -209,10 +215,10 @@ def __init__( ------- Fillgradient """ - super(Fillgradient, self).__init__("fillgradient") + super(Fillgradient, self).__init__('fillgradient') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -224,36 +230,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter.Fillgradient constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter.Fillgradient`""" - ) +an instance of :class:`plotly.graph_objs.scatter.Fillgradient`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("start", None) - _v = start if start is not None else _v - if _v is not None: - self["start"] = _v - _v = arg.pop("stop", None) - _v = stop if stop is not None else _v - if _v is not None: - self["stop"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v + self._init_provided('colorscale', arg, colorscale) + self._init_provided('start', arg, start) + self._init_provided('stop', arg, stop) + self._init_provided('type', arg, type) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/_fillpattern.py b/packages/python/plotly/plotly/graph_objs/scatter/_fillpattern.py index 4c164136fa1..edd55e7e5c5 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/_fillpattern.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/_fillpattern.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,22 +8,9 @@ class Fillpattern(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter" - _path_str = "scatter.fillpattern" - _valid_props = { - "bgcolor", - "bgcolorsrc", - "fgcolor", - "fgcolorsrc", - "fgopacity", - "fillmode", - "shape", - "shapesrc", - "size", - "sizesrc", - "solidity", - "soliditysrc", - } + _parent_path_str = 'scatter' + _path_str = 'scatter.fillpattern' + _valid_props = {"bgcolor", "bgcolorsrc", "fgcolor", "fgcolorsrc", "fgopacity", "fillmode", "shape", "shapesrc", "size", "sizesrc", "solidity", "soliditysrc"} # bgcolor # ------- @@ -38,53 +27,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -100,11 +54,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # fgcolor # ------- @@ -121,53 +75,18 @@ def fgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["fgcolor"] + return self['fgcolor'] @fgcolor.setter def fgcolor(self, val): - self["fgcolor"] = val + self['fgcolor'] = val # fgcolorsrc # ---------- @@ -183,11 +102,11 @@ def fgcolorsrc(self): ------- str """ - return self["fgcolorsrc"] + return self['fgcolorsrc'] @fgcolorsrc.setter def fgcolorsrc(self, val): - self["fgcolorsrc"] = val + self['fgcolorsrc'] = val # fgopacity # --------- @@ -204,11 +123,11 @@ def fgopacity(self): ------- int|float """ - return self["fgopacity"] + return self['fgopacity'] @fgopacity.setter def fgopacity(self, val): - self["fgopacity"] = val + self['fgopacity'] = val # fillmode # -------- @@ -226,11 +145,11 @@ def fillmode(self): ------- Any """ - return self["fillmode"] + return self['fillmode'] @fillmode.setter def fillmode(self, val): - self["fillmode"] = val + self['fillmode'] = val # shape # ----- @@ -249,11 +168,11 @@ def shape(self): ------- Any|numpy.ndarray """ - return self["shape"] + return self['shape'] @shape.setter def shape(self, val): - self["shape"] = val + self['shape'] = val # shapesrc # -------- @@ -269,11 +188,11 @@ def shapesrc(self): ------- str """ - return self["shapesrc"] + return self['shapesrc'] @shapesrc.setter def shapesrc(self, val): - self["shapesrc"] = val + self['shapesrc'] = val # size # ---- @@ -291,11 +210,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -311,11 +230,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # solidity # -------- @@ -335,11 +254,11 @@ def solidity(self): ------- int|float|numpy.ndarray """ - return self["solidity"] + return self['solidity'] @solidity.setter def solidity(self, val): - self["solidity"] = val + self['solidity'] = val # soliditysrc # ----------- @@ -355,11 +274,11 @@ def soliditysrc(self): ------- str """ - return self["soliditysrc"] + return self['soliditysrc'] @soliditysrc.setter def soliditysrc(self, val): - self["soliditysrc"] = val + self['soliditysrc'] = val # Self properties description # --------------------------- @@ -413,24 +332,22 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `solidity`. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bgcolorsrc=None, - fgcolor=None, - fgcolorsrc=None, - fgopacity=None, - fillmode=None, - shape=None, - shapesrc=None, - size=None, - sizesrc=None, - solidity=None, - soliditysrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bgcolorsrc=None, + fgcolor=None, + fgcolorsrc=None, + fgopacity=None, + fillmode=None, + shape=None, + shapesrc=None, + size=None, + sizesrc=None, + solidity=None, + soliditysrc=None, + **kwargs + ): """ Construct a new Fillpattern object @@ -493,10 +410,10 @@ def __init__( ------- Fillpattern """ - super(Fillpattern, self).__init__("fillpattern") + super(Fillpattern, self).__init__('fillpattern') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -508,68 +425,31 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter.Fillpattern constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter.Fillpattern`""" - ) +an instance of :class:`plotly.graph_objs.scatter.Fillpattern`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("fgcolor", None) - _v = fgcolor if fgcolor is not None else _v - if _v is not None: - self["fgcolor"] = _v - _v = arg.pop("fgcolorsrc", None) - _v = fgcolorsrc if fgcolorsrc is not None else _v - if _v is not None: - self["fgcolorsrc"] = _v - _v = arg.pop("fgopacity", None) - _v = fgopacity if fgopacity is not None else _v - if _v is not None: - self["fgopacity"] = _v - _v = arg.pop("fillmode", None) - _v = fillmode if fillmode is not None else _v - if _v is not None: - self["fillmode"] = _v - _v = arg.pop("shape", None) - _v = shape if shape is not None else _v - if _v is not None: - self["shape"] = _v - _v = arg.pop("shapesrc", None) - _v = shapesrc if shapesrc is not None else _v - if _v is not None: - self["shapesrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("solidity", None) - _v = solidity if solidity is not None else _v - if _v is not None: - self["solidity"] = _v - _v = arg.pop("soliditysrc", None) - _v = soliditysrc if soliditysrc is not None else _v - if _v is not None: - self["soliditysrc"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('fgcolor', arg, fgcolor) + self._init_provided('fgcolorsrc', arg, fgcolorsrc) + self._init_provided('fgopacity', arg, fgopacity) + self._init_provided('fillmode', arg, fillmode) + self._init_provided('shape', arg, shape) + self._init_provided('shapesrc', arg, shapesrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('solidity', arg, solidity) + self._init_provided('soliditysrc', arg, soliditysrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/scatter/_hoverlabel.py index 226227c4fa8..95a08fde2d1 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter" - _path_str = "scatter.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'scatter' + _path_str = 'scatter.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.scatter.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.scatter.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/scatter/_legendgrouptitle.py index 3616b9bf6f5..25591b4dfd1 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter" - _path_str = "scatter.legendgrouptitle" + _parent_path_str = 'scatter' + _path_str = 'scatter.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scatter.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.scatter.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/_line.py b/packages/python/plotly/plotly/graph_objs/scatter/_line.py index 3044fc2fcc7..9df24624055 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/_line.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,18 +8,9 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter" - _path_str = "scatter.line" - _valid_props = { - "backoff", - "backoffsrc", - "color", - "dash", - "shape", - "simplify", - "smoothing", - "width", - } + _parent_path_str = 'scatter' + _path_str = 'scatter.line' + _valid_props = {"backoff", "backoffsrc", "color", "dash", "shape", "simplify", "smoothing", "width"} # backoff # ------- @@ -37,11 +30,11 @@ def backoff(self): ------- int|float|numpy.ndarray """ - return self["backoff"] + return self['backoff'] @backoff.setter def backoff(self, val): - self["backoff"] = val + self['backoff'] = val # backoffsrc # ---------- @@ -57,11 +50,11 @@ def backoffsrc(self): ------- str """ - return self["backoffsrc"] + return self['backoffsrc'] @backoffsrc.setter def backoffsrc(self, val): - self["backoffsrc"] = val + self['backoffsrc'] = val # color # ----- @@ -75,52 +68,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # dash # ---- @@ -142,11 +100,11 @@ def dash(self): ------- str """ - return self["dash"] + return self['dash'] @dash.setter def dash(self, val): - self["dash"] = val + self['dash'] = val # shape # ----- @@ -165,11 +123,11 @@ def shape(self): ------- Any """ - return self["shape"] + return self['shape'] @shape.setter def shape(self, val): - self["shape"] = val + self['shape'] = val # simplify # -------- @@ -188,11 +146,11 @@ def simplify(self): ------- bool """ - return self["simplify"] + return self['simplify'] @simplify.setter def simplify(self, val): - self["simplify"] = val + self['simplify'] = val # smoothing # --------- @@ -210,11 +168,11 @@ def smoothing(self): ------- int|float """ - return self["smoothing"] + return self['smoothing'] @smoothing.setter def smoothing(self, val): - self["smoothing"] = val + self['smoothing'] = val # width # ----- @@ -230,11 +188,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -273,20 +231,18 @@ def _prop_descriptions(self): width Sets the line width (in px). """ - - def __init__( - self, - arg=None, - backoff=None, - backoffsrc=None, - color=None, - dash=None, - shape=None, - simplify=None, - smoothing=None, - width=None, - **kwargs, - ): + def __init__(self, + arg=None, + backoff=None, + backoffsrc=None, + color=None, + dash=None, + shape=None, + simplify=None, + smoothing=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -331,10 +287,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -346,52 +302,27 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter.Line`""" - ) +an instance of :class:`plotly.graph_objs.scatter.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("backoff", None) - _v = backoff if backoff is not None else _v - if _v is not None: - self["backoff"] = _v - _v = arg.pop("backoffsrc", None) - _v = backoffsrc if backoffsrc is not None else _v - if _v is not None: - self["backoffsrc"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("dash", None) - _v = dash if dash is not None else _v - if _v is not None: - self["dash"] = _v - _v = arg.pop("shape", None) - _v = shape if shape is not None else _v - if _v is not None: - self["shape"] = _v - _v = arg.pop("simplify", None) - _v = simplify if simplify is not None else _v - if _v is not None: - self["simplify"] = _v - _v = arg.pop("smoothing", None) - _v = smoothing if smoothing is not None else _v - if _v is not None: - self["smoothing"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('backoff', arg, backoff) + self._init_provided('backoffsrc', arg, backoffsrc) + self._init_provided('color', arg, color) + self._init_provided('dash', arg, dash) + self._init_provided('shape', arg, shape) + self._init_provided('simplify', arg, simplify) + self._init_provided('smoothing', arg, smoothing) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/_marker.py b/packages/python/plotly/plotly/graph_objs/scatter/_marker.py index f3dd1eb2974..3eb976c6cd7 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,39 +8,9 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter" - _path_str = "scatter.marker" - _valid_props = { - "angle", - "angleref", - "anglesrc", - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorbar", - "colorscale", - "colorsrc", - "gradient", - "line", - "maxdisplayed", - "opacity", - "opacitysrc", - "reversescale", - "showscale", - "size", - "sizemin", - "sizemode", - "sizeref", - "sizesrc", - "standoff", - "standoffsrc", - "symbol", - "symbolsrc", - } + _parent_path_str = 'scatter' + _path_str = 'scatter.marker' + _valid_props = {"angle", "angleref", "anglesrc", "autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorbar", "colorscale", "colorsrc", "gradient", "line", "maxdisplayed", "opacity", "opacitysrc", "reversescale", "showscale", "size", "sizemin", "sizemode", "sizeref", "sizesrc", "standoff", "standoffsrc", "symbol", "symbolsrc"} # angle # ----- @@ -56,11 +28,11 @@ def angle(self): ------- int|float|numpy.ndarray """ - return self["angle"] + return self['angle'] @angle.setter def angle(self, val): - self["angle"] = val + self['angle'] = val # angleref # -------- @@ -79,11 +51,11 @@ def angleref(self): ------- Any """ - return self["angleref"] + return self['angleref'] @angleref.setter def angleref(self, val): - self["angleref"] = val + self['angleref'] = val # anglesrc # -------- @@ -99,11 +71,11 @@ def anglesrc(self): ------- str """ - return self["anglesrc"] + return self['anglesrc'] @anglesrc.setter def anglesrc(self, val): - self["anglesrc"] = val + self['anglesrc'] = val # autocolorscale # -------------- @@ -125,11 +97,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -150,11 +122,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -173,11 +145,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -197,11 +169,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -220,11 +192,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -241,42 +213,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to scatter.marker.colorscale - A list or array of any of the above @@ -285,11 +222,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -312,11 +249,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -329,282 +266,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.scatter - .marker.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.scatter.marker.colorbar.tickformatstopdefault - s), sets the default property values to use for - elements of - scatter.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.scatter.marker.col - orbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.scatter.marker.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -654,11 +324,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -674,11 +344,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # gradient # -------- @@ -691,31 +361,15 @@ def gradient(self): - A dict of string/value properties that will be passed to the Gradient constructor - Supported dict properties: - - color - Sets the final color of the gradient fill: the - center color for radial, the right for - horizontal, or the bottom for vertical. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - type - Sets the type of gradient used to fill the - markers - typesrc - Sets the source reference on Chart Studio Cloud - for `type`. - Returns ------- plotly.graph_objs.scatter.marker.Gradient """ - return self["gradient"] + return self['gradient'] @gradient.setter def gradient(self, val): - self["gradient"] = val + self['gradient'] = val # line # ---- @@ -728,107 +382,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.line.colorscale`. Has an - effect only if in `marker.line.color` is set to - a numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.line.color`) or the bounds set in - `marker.line.cmin` and `marker.line.cmax` Has - an effect only if in `marker.line.color` is set - to a numerical array. Defaults to `false` when - `marker.line.cmin` and `marker.line.cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.line.cmin` and/or - `marker.line.cmax` to be equidistant to this - point. Has an effect only if in - `marker.line.color` is set to a numerical - array. Value should have the same units as in - `marker.line.color`. Has no effect when - `marker.line.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmax` must be set as well. - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorscale - Sets the colorscale. Has an effect only if in - `marker.line.color` is set to a numerical - array. The colorscale must be an array - containing arrays mapping a normalized value to - an rgb, rgba, hex, hsl, hsv, or named color - string. At minimum, a mapping for the lowest - (0) and highest (1) values are required. For - example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use - `marker.line.cmin` and `marker.line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.line.color` is set to - a numerical array. If true, `marker.line.cmin` - will correspond to the last color in the array - and `marker.line.cmax` will correspond to the - first color. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. - Returns ------- plotly.graph_objs.scatter.marker.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # maxdisplayed # ------------ @@ -845,11 +407,11 @@ def maxdisplayed(self): ------- int|float """ - return self["maxdisplayed"] + return self['maxdisplayed'] @maxdisplayed.setter def maxdisplayed(self, val): - self["maxdisplayed"] = val + self['maxdisplayed'] = val # opacity # ------- @@ -866,11 +428,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # opacitysrc # ---------- @@ -886,11 +448,11 @@ def opacitysrc(self): ------- str """ - return self["opacitysrc"] + return self['opacitysrc'] @opacitysrc.setter def opacitysrc(self, val): - self["opacitysrc"] = val + self['opacitysrc'] = val # reversescale # ------------ @@ -909,11 +471,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # showscale # --------- @@ -931,11 +493,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # size # ---- @@ -952,11 +514,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizemin # ------- @@ -974,11 +536,11 @@ def sizemin(self): ------- int|float """ - return self["sizemin"] + return self['sizemin'] @sizemin.setter def sizemin(self, val): - self["sizemin"] = val + self['sizemin'] = val # sizemode # -------- @@ -997,11 +559,11 @@ def sizemode(self): ------- Any """ - return self["sizemode"] + return self['sizemode'] @sizemode.setter def sizemode(self, val): - self["sizemode"] = val + self['sizemode'] = val # sizeref # ------- @@ -1019,11 +581,11 @@ def sizeref(self): ------- int|float """ - return self["sizeref"] + return self['sizeref'] @sizeref.setter def sizeref(self, val): - self["sizeref"] = val + self['sizeref'] = val # sizesrc # ------- @@ -1039,11 +601,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # standoff # -------- @@ -1063,11 +625,11 @@ def standoff(self): ------- int|float|numpy.ndarray """ - return self["standoff"] + return self['standoff'] @standoff.setter def standoff(self, val): - self["standoff"] = val + self['standoff'] = val # standoffsrc # ----------- @@ -1083,11 +645,11 @@ def standoffsrc(self): ------- str """ - return self["standoffsrc"] + return self['standoffsrc'] @standoffsrc.setter def standoffsrc(self, val): - self["standoffsrc"] = val + self['standoffsrc'] = val # symbol # ------ @@ -1196,11 +758,11 @@ def symbol(self): ------- Any|numpy.ndarray """ - return self["symbol"] + return self['symbol'] @symbol.setter def symbol(self, val): - self["symbol"] = val + self['symbol'] = val # symbolsrc # --------- @@ -1216,11 +778,11 @@ def symbolsrc(self): ------- str """ - return self["symbolsrc"] + return self['symbolsrc'] @symbolsrc.setter def symbolsrc(self, val): - self["symbolsrc"] = val + self['symbolsrc'] = val # Self properties description # --------------------------- @@ -1363,41 +925,39 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `symbol`. """ - - def __init__( - self, - arg=None, - angle=None, - angleref=None, - anglesrc=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorbar=None, - colorscale=None, - colorsrc=None, - gradient=None, - line=None, - maxdisplayed=None, - opacity=None, - opacitysrc=None, - reversescale=None, - showscale=None, - size=None, - sizemin=None, - sizemode=None, - sizeref=None, - sizesrc=None, - standoff=None, - standoffsrc=None, - symbol=None, - symbolsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + angle=None, + angleref=None, + anglesrc=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorbar=None, + colorscale=None, + colorsrc=None, + gradient=None, + line=None, + maxdisplayed=None, + opacity=None, + opacitysrc=None, + reversescale=None, + showscale=None, + size=None, + sizemin=None, + sizemode=None, + sizeref=None, + sizesrc=None, + standoff=None, + standoffsrc=None, + symbol=None, + symbolsrc=None, + **kwargs + ): """ Construct a new Marker object @@ -1547,10 +1107,10 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1562,136 +1122,48 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scatter.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("angle", None) - _v = angle if angle is not None else _v - if _v is not None: - self["angle"] = _v - _v = arg.pop("angleref", None) - _v = angleref if angleref is not None else _v - if _v is not None: - self["angleref"] = _v - _v = arg.pop("anglesrc", None) - _v = anglesrc if anglesrc is not None else _v - if _v is not None: - self["anglesrc"] = _v - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("gradient", None) - _v = gradient if gradient is not None else _v - if _v is not None: - self["gradient"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("maxdisplayed", None) - _v = maxdisplayed if maxdisplayed is not None else _v - if _v is not None: - self["maxdisplayed"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("opacitysrc", None) - _v = opacitysrc if opacitysrc is not None else _v - if _v is not None: - self["opacitysrc"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizemin", None) - _v = sizemin if sizemin is not None else _v - if _v is not None: - self["sizemin"] = _v - _v = arg.pop("sizemode", None) - _v = sizemode if sizemode is not None else _v - if _v is not None: - self["sizemode"] = _v - _v = arg.pop("sizeref", None) - _v = sizeref if sizeref is not None else _v - if _v is not None: - self["sizeref"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("standoff", None) - _v = standoff if standoff is not None else _v - if _v is not None: - self["standoff"] = _v - _v = arg.pop("standoffsrc", None) - _v = standoffsrc if standoffsrc is not None else _v - if _v is not None: - self["standoffsrc"] = _v - _v = arg.pop("symbol", None) - _v = symbol if symbol is not None else _v - if _v is not None: - self["symbol"] = _v - _v = arg.pop("symbolsrc", None) - _v = symbolsrc if symbolsrc is not None else _v - if _v is not None: - self["symbolsrc"] = _v + self._init_provided('angle', arg, angle) + self._init_provided('angleref', arg, angleref) + self._init_provided('anglesrc', arg, anglesrc) + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('gradient', arg, gradient) + self._init_provided('line', arg, line) + self._init_provided('maxdisplayed', arg, maxdisplayed) + self._init_provided('opacity', arg, opacity) + self._init_provided('opacitysrc', arg, opacitysrc) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('showscale', arg, showscale) + self._init_provided('size', arg, size) + self._init_provided('sizemin', arg, sizemin) + self._init_provided('sizemode', arg, sizemode) + self._init_provided('sizeref', arg, sizeref) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('standoff', arg, standoff) + self._init_provided('standoffsrc', arg, standoffsrc) + self._init_provided('symbol', arg, symbol) + self._init_provided('symbolsrc', arg, symbolsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/_selected.py b/packages/python/plotly/plotly/graph_objs/scatter/_selected.py index 3d44a1a65ad..6dc9f1814c3 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/_selected.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/_selected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Selected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter" - _path_str = "scatter.selected" + _parent_path_str = 'scatter' + _path_str = 'scatter.selected' _valid_props = {"marker", "textfont"} # marker @@ -21,24 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. - size - Sets the marker size of selected points. - Returns ------- plotly.graph_objs.scatter.selected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # textfont # -------- @@ -51,20 +44,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - Sets the text font color of selected points. - Returns ------- plotly.graph_objs.scatter.selected.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # Self properties description # --------------------------- @@ -78,8 +66,12 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.scatter.selected.Textfont` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, textfont=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + textfont=None, + **kwargs + ): """ Construct a new Selected object @@ -100,10 +92,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") + super(Selected, self).__init__('selected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -115,28 +107,21 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter.Selected constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter.Selected`""" - ) +an instance of :class:`plotly.graph_objs.scatter.Selected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v + self._init_provided('marker', arg, marker) + self._init_provided('textfont', arg, textfont) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/_stream.py b/packages/python/plotly/plotly/graph_objs/scatter/_stream.py index 9308720d14c..c640063d719 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter" - _path_str = "scatter.stream" + _parent_path_str = 'scatter' + _path_str = 'scatter.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter.Stream`""" - ) +an instance of :class:`plotly.graph_objs.scatter.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/_textfont.py b/packages/python/plotly/plotly/graph_objs/scatter/_textfont.py index 543761a304e..bc606010d73 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter" - _path_str = "scatter.textfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'scatter' + _path_str = 'scatter.textfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Textfont object @@ -639,10 +585,10 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.scatter.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/_unselected.py b/packages/python/plotly/plotly/graph_objs/scatter/_unselected.py index b2f8099aa1f..1717457bc3c 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/_unselected.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/_unselected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Unselected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter" - _path_str = "scatter.unselected" + _parent_path_str = 'scatter' + _path_str = 'scatter.unselected' _valid_props = {"marker", "textfont"} # marker @@ -21,27 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - size - Sets the marker size of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.scatter.unselected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # textfont # -------- @@ -54,21 +44,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - Sets the text font color of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.scatter.unselected.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # Self properties description # --------------------------- @@ -82,8 +66,12 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.scatter.unselected.Textfon t` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, textfont=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + textfont=None, + **kwargs + ): """ Construct a new Unselected object @@ -104,10 +92,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") + super(Unselected, self).__init__('unselected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -119,28 +107,21 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter.Unselected constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter.Unselected`""" - ) +an instance of :class:`plotly.graph_objs.scatter.Unselected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v + self._init_provided('marker', arg, marker) + self._init_provided('textfont', arg, textfont) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scatter/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/scatter/hoverlabel/_font.py index 4550c310d94..540e397a693 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter.hoverlabel" - _path_str = "scatter.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'scatter.hoverlabel' + _path_str = 'scatter.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.scatter.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scatter/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/scatter/legendgrouptitle/_font.py index a7c09043261..36439c10e7f 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter.legendgrouptitle" - _path_str = "scatter.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scatter.legendgrouptitle' + _path_str = 'scatter.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.scatter.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter/marker/__init__.py index f1897fb0aa7..b07f6ce198a 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._gradient import Gradient @@ -8,9 +7,10 @@ from . import colorbar else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".colorbar"], - ["._colorbar.ColorBar", "._gradient.Gradient", "._line.Line"], + ['.colorbar'], + ['._colorbar.ColorBar', '._gradient.Gradient', '._line.Line'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scatter/marker/_colorbar.py b/packages/python/plotly/plotly/graph_objs/scatter/marker/_colorbar.py index dc0ff92db98..245be199e90 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/marker/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/marker/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter.marker" - _path_str = "scatter.marker.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'scatter.marker' + _path_str = 'scatter.marker.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scatter.marker.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.scatter.marker.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.scatter.marker.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.scatter.marker.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter.marker.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter.marker.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.scatter.marker.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/marker/_gradient.py b/packages/python/plotly/plotly/graph_objs/scatter/marker/_gradient.py index b20e34c67a0..9f24b79482d 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/marker/_gradient.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/marker/_gradient.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Gradient(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter.marker" - _path_str = "scatter.marker.gradient" + _parent_path_str = 'scatter.marker' + _path_str = 'scatter.marker.gradient' _valid_props = {"color", "colorsrc", "type", "typesrc"} # color @@ -23,53 +25,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -85,11 +52,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # type # ---- @@ -107,11 +74,11 @@ def type(self): ------- Any|numpy.ndarray """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # typesrc # ------- @@ -127,11 +94,11 @@ def typesrc(self): ------- str """ - return self["typesrc"] + return self['typesrc'] @typesrc.setter def typesrc(self, val): - self["typesrc"] = val + self['typesrc'] = val # Self properties description # --------------------------- @@ -151,10 +118,14 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `type`. """ - - def __init__( - self, arg=None, color=None, colorsrc=None, type=None, typesrc=None, **kwargs - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + type=None, + typesrc=None, + **kwargs + ): """ Construct a new Gradient object @@ -181,10 +152,10 @@ def __init__( ------- Gradient """ - super(Gradient, self).__init__("gradient") + super(Gradient, self).__init__('gradient') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -196,36 +167,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter.marker.Gradient constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter.marker.Gradient`""" - ) +an instance of :class:`plotly.graph_objs.scatter.marker.Gradient`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("typesrc", None) - _v = typesrc if typesrc is not None else _v - if _v is not None: - self["typesrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('type', arg, type) + self._init_provided('typesrc', arg, typesrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/marker/_line.py b/packages/python/plotly/plotly/graph_objs/scatter/marker/_line.py index d845e067897..40543f027c1 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/marker/_line.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/marker/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,22 +8,9 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter.marker" - _path_str = "scatter.marker.line" - _valid_props = { - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorscale", - "colorsrc", - "reversescale", - "width", - "widthsrc", - } + _parent_path_str = 'scatter.marker' + _path_str = 'scatter.marker.line' + _valid_props = {"autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorscale", "colorsrc", "reversescale", "width", "widthsrc"} # autocolorscale # -------------- @@ -43,11 +32,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -68,11 +57,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -91,11 +80,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -116,11 +105,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -139,11 +128,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -160,42 +149,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to scatter.marker.line.colorscale - A list or array of any of the above @@ -204,11 +158,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -231,11 +185,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorscale # ---------- @@ -286,11 +240,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -306,11 +260,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # reversescale # ------------ @@ -330,11 +284,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # width # ----- @@ -351,11 +305,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # widthsrc # -------- @@ -371,11 +325,11 @@ def widthsrc(self): ------- str """ - return self["widthsrc"] + return self['widthsrc'] @widthsrc.setter def widthsrc(self, val): - self["widthsrc"] = val + self['widthsrc'] = val # Self properties description # --------------------------- @@ -461,24 +415,22 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `width`. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorscale=None, - colorsrc=None, - reversescale=None, - width=None, - widthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorscale=None, + colorsrc=None, + reversescale=None, + width=None, + widthsrc=None, + **kwargs + ): """ Construct a new Line object @@ -571,10 +523,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -586,68 +538,31 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter.marker.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter.marker.Line`""" - ) +an instance of :class:`plotly.graph_objs.scatter.marker.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("widthsrc", None) - _v = widthsrc if widthsrc is not None else _v - if _v is not None: - self["widthsrc"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('width', arg, width) + self._init_provided('widthsrc', arg, widthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/_tickfont.py index 34e6f9d5e3d..8f2771c6fc8 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter.marker.colorbar" - _path_str = "scatter.marker.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scatter.marker.colorbar' + _path_str = 'scatter.marker.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter.marker.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter.marker.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.scatter.marker.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/_tickformatstop.py index 1d1fb7c597c..48ceac0a44b 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter.marker.colorbar" - _path_str = "scatter.marker.colorbar.tickformatstop" + _parent_path_str = 'scatter.marker.colorbar' + _path_str = 'scatter.marker.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter.marker.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter.marker.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.scatter.marker.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/_title.py index d4f420caf94..236f4f89afd 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter.marker.colorbar" - _path_str = "scatter.marker.colorbar.title" + _parent_path_str = 'scatter.marker.colorbar' + _path_str = 'scatter.marker.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scatter.marker.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter.marker.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter.marker.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.scatter.marker.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/title/_font.py index a15f2dfb700..fbc0925f5a5 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter.marker.colorbar.title" - _path_str = "scatter.marker.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scatter.marker.colorbar.title' + _path_str = 'scatter.marker.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter.marker.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter.marker.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.scatter.marker.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter/selected/__init__.py index ae964f0b65f..4f70de0f5a9 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/selected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker from ._textfont import Textfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.Marker", "._textfont.Textfont"] + __name__, + [], + ['._marker.Marker', '._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scatter/selected/_marker.py b/packages/python/plotly/plotly/graph_objs/scatter/selected/_marker.py index bc65de46a85..e0475273a19 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/selected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/selected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter.selected" - _path_str = "scatter.selected.marker" + _parent_path_str = 'scatter.selected' + _path_str = 'scatter.selected.marker' _valid_props = {"color", "opacity", "size"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -83,11 +50,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # size # ---- @@ -103,11 +70,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # Self properties description # --------------------------- @@ -121,8 +88,13 @@ def _prop_descriptions(self): size Sets the marker size of selected points. """ - - def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + size=None, + **kwargs + ): """ Construct a new Marker object @@ -143,10 +115,10 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -158,32 +130,22 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter.selected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter.selected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scatter.selected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) + self._init_provided('size', arg, size) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/selected/_textfont.py b/packages/python/plotly/plotly/graph_objs/scatter/selected/_textfont.py index a1ee91470a3..a13bf910454 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/selected/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/selected/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter.selected" - _path_str = "scatter.selected.textfont" + _parent_path_str = 'scatter.selected' + _path_str = 'scatter.selected.textfont' _valid_props = {"color"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # Self properties description # --------------------------- @@ -77,8 +44,11 @@ def _prop_descriptions(self): color Sets the text font color of selected points. """ - - def __init__(self, arg=None, color=None, **kwargs): + def __init__(self, + arg=None, + color=None, + **kwargs + ): """ Construct a new Textfont object @@ -95,10 +65,10 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -110,24 +80,20 @@ def __init__(self, arg=None, color=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter.selected.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter.selected.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.scatter.selected.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v + self._init_provided('color', arg, color) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter/unselected/__init__.py index ae964f0b65f..4f70de0f5a9 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/unselected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker from ._textfont import Textfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.Marker", "._textfont.Textfont"] + __name__, + [], + ['._marker.Marker', '._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scatter/unselected/_marker.py b/packages/python/plotly/plotly/graph_objs/scatter/unselected/_marker.py index 3de2a9e417e..7057f559b28 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/unselected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/unselected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter.unselected" - _path_str = "scatter.unselected.marker" + _parent_path_str = 'scatter.unselected' + _path_str = 'scatter.unselected.marker' _valid_props = {"color", "opacity", "size"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -85,11 +52,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # size # ---- @@ -106,11 +73,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # Self properties description # --------------------------- @@ -127,8 +94,13 @@ def _prop_descriptions(self): Sets the marker size of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + size=None, + **kwargs + ): """ Construct a new Marker object @@ -152,10 +124,10 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -167,32 +139,22 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter.unselected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter.unselected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scatter.unselected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) + self._init_provided('size', arg, size) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/unselected/_textfont.py b/packages/python/plotly/plotly/graph_objs/scatter/unselected/_textfont.py index 486e02e29c5..630266a5fa5 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/unselected/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/unselected/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter.unselected" - _path_str = "scatter.unselected.textfont" + _parent_path_str = 'scatter.unselected' + _path_str = 'scatter.unselected.textfont' _valid_props = {"color"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # Self properties description # --------------------------- @@ -79,8 +46,11 @@ def _prop_descriptions(self): Sets the text font color of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, color=None, **kwargs): + def __init__(self, + arg=None, + color=None, + **kwargs + ): """ Construct a new Textfont object @@ -98,10 +68,10 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -113,24 +83,20 @@ def __init__(self, arg=None, color=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter.unselected.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter.unselected.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.scatter.unselected.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v + self._init_provided('color', arg, color) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter3d/__init__.py index 47dbd27a854..457d8c738f3 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._error_x import ErrorX from ._error_y import ErrorY @@ -19,20 +18,10 @@ from . import projection else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".hoverlabel", ".legendgrouptitle", ".line", ".marker", ".projection"], - [ - "._error_x.ErrorX", - "._error_y.ErrorY", - "._error_z.ErrorZ", - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._line.Line", - "._marker.Marker", - "._projection.Projection", - "._stream.Stream", - "._textfont.Textfont", - ], + ['.hoverlabel', '.legendgrouptitle', '.line', '.marker', '.projection'], + ['._error_x.ErrorX', '._error_y.ErrorY', '._error_z.ErrorZ', '._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._line.Line', '._marker.Marker', '._projection.Projection', '._stream.Stream', '._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/_error_x.py b/packages/python/plotly/plotly/graph_objs/scatter3d/_error_x.py index 7a2abacc6c9..507c3997b33 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/_error_x.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/_error_x.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,25 +8,9 @@ class ErrorX(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter3d" - _path_str = "scatter3d.error_x" - _valid_props = { - "array", - "arrayminus", - "arrayminussrc", - "arraysrc", - "color", - "copy_zstyle", - "symmetric", - "thickness", - "traceref", - "tracerefminus", - "type", - "value", - "valueminus", - "visible", - "width", - } + _parent_path_str = 'scatter3d' + _path_str = 'scatter3d.error_x' + _valid_props = {"array", "arrayminus", "arrayminussrc", "arraysrc", "color", "copy_zstyle", "symmetric", "thickness", "traceref", "tracerefminus", "type", "value", "valueminus", "visible", "width"} # array # ----- @@ -41,11 +27,11 @@ def array(self): ------- numpy.ndarray """ - return self["array"] + return self['array'] @array.setter def array(self, val): - self["array"] = val + self['array'] = val # arrayminus # ---------- @@ -63,11 +49,11 @@ def arrayminus(self): ------- numpy.ndarray """ - return self["arrayminus"] + return self['arrayminus'] @arrayminus.setter def arrayminus(self, val): - self["arrayminus"] = val + self['arrayminus'] = val # arrayminussrc # ------------- @@ -84,11 +70,11 @@ def arrayminussrc(self): ------- str """ - return self["arrayminussrc"] + return self['arrayminussrc'] @arrayminussrc.setter def arrayminussrc(self, val): - self["arrayminussrc"] = val + self['arrayminussrc'] = val # arraysrc # -------- @@ -104,11 +90,11 @@ def arraysrc(self): ------- str """ - return self["arraysrc"] + return self['arraysrc'] @arraysrc.setter def arraysrc(self, val): - self["arraysrc"] = val + self['arraysrc'] = val # color # ----- @@ -122,52 +108,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # copy_zstyle # ----------- @@ -181,11 +132,11 @@ def copy_zstyle(self): ------- bool """ - return self["copy_zstyle"] + return self['copy_zstyle'] @copy_zstyle.setter def copy_zstyle(self, val): - self["copy_zstyle"] = val + self['copy_zstyle'] = val # symmetric # --------- @@ -203,11 +154,11 @@ def symmetric(self): ------- bool """ - return self["symmetric"] + return self['symmetric'] @symmetric.setter def symmetric(self, val): - self["symmetric"] = val + self['symmetric'] = val # thickness # --------- @@ -223,11 +174,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # traceref # -------- @@ -242,11 +193,11 @@ def traceref(self): ------- int """ - return self["traceref"] + return self['traceref'] @traceref.setter def traceref(self, val): - self["traceref"] = val + self['traceref'] = val # tracerefminus # ------------- @@ -261,11 +212,11 @@ def tracerefminus(self): ------- int """ - return self["tracerefminus"] + return self['tracerefminus'] @tracerefminus.setter def tracerefminus(self, val): - self["tracerefminus"] = val + self['tracerefminus'] = val # type # ---- @@ -288,11 +239,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # value # ----- @@ -310,11 +261,11 @@ def value(self): ------- int|float """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # valueminus # ---------- @@ -333,11 +284,11 @@ def valueminus(self): ------- int|float """ - return self["valueminus"] + return self['valueminus'] @valueminus.setter def valueminus(self, val): - self["valueminus"] = val + self['valueminus'] = val # visible # ------- @@ -353,11 +304,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # width # ----- @@ -374,11 +325,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -441,27 +392,25 @@ def _prop_descriptions(self): Sets the width (in px) of the cross-bar at both ends of the error bars. """ - - def __init__( - self, - arg=None, - array=None, - arrayminus=None, - arrayminussrc=None, - arraysrc=None, - color=None, - copy_zstyle=None, - symmetric=None, - thickness=None, - traceref=None, - tracerefminus=None, - type=None, - value=None, - valueminus=None, - visible=None, - width=None, - **kwargs, - ): + def __init__(self, + arg=None, + array=None, + arrayminus=None, + arrayminussrc=None, + arraysrc=None, + color=None, + copy_zstyle=None, + symmetric=None, + thickness=None, + traceref=None, + tracerefminus=None, + type=None, + value=None, + valueminus=None, + visible=None, + width=None, + **kwargs + ): """ Construct a new ErrorX object @@ -531,10 +480,10 @@ def __init__( ------- ErrorX """ - super(ErrorX, self).__init__("error_x") + super(ErrorX, self).__init__('error_x') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -546,80 +495,34 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter3d.ErrorX constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter3d.ErrorX`""" - ) +an instance of :class:`plotly.graph_objs.scatter3d.ErrorX`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("array", None) - _v = array if array is not None else _v - if _v is not None: - self["array"] = _v - _v = arg.pop("arrayminus", None) - _v = arrayminus if arrayminus is not None else _v - if _v is not None: - self["arrayminus"] = _v - _v = arg.pop("arrayminussrc", None) - _v = arrayminussrc if arrayminussrc is not None else _v - if _v is not None: - self["arrayminussrc"] = _v - _v = arg.pop("arraysrc", None) - _v = arraysrc if arraysrc is not None else _v - if _v is not None: - self["arraysrc"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("copy_zstyle", None) - _v = copy_zstyle if copy_zstyle is not None else _v - if _v is not None: - self["copy_zstyle"] = _v - _v = arg.pop("symmetric", None) - _v = symmetric if symmetric is not None else _v - if _v is not None: - self["symmetric"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("traceref", None) - _v = traceref if traceref is not None else _v - if _v is not None: - self["traceref"] = _v - _v = arg.pop("tracerefminus", None) - _v = tracerefminus if tracerefminus is not None else _v - if _v is not None: - self["tracerefminus"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v - _v = arg.pop("valueminus", None) - _v = valueminus if valueminus is not None else _v - if _v is not None: - self["valueminus"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('array', arg, array) + self._init_provided('arrayminus', arg, arrayminus) + self._init_provided('arrayminussrc', arg, arrayminussrc) + self._init_provided('arraysrc', arg, arraysrc) + self._init_provided('color', arg, color) + self._init_provided('copy_zstyle', arg, copy_zstyle) + self._init_provided('symmetric', arg, symmetric) + self._init_provided('thickness', arg, thickness) + self._init_provided('traceref', arg, traceref) + self._init_provided('tracerefminus', arg, tracerefminus) + self._init_provided('type', arg, type) + self._init_provided('value', arg, value) + self._init_provided('valueminus', arg, valueminus) + self._init_provided('visible', arg, visible) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/_error_y.py b/packages/python/plotly/plotly/graph_objs/scatter3d/_error_y.py index 6e011a401d4..4f19376c329 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/_error_y.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/_error_y.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,25 +8,9 @@ class ErrorY(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter3d" - _path_str = "scatter3d.error_y" - _valid_props = { - "array", - "arrayminus", - "arrayminussrc", - "arraysrc", - "color", - "copy_zstyle", - "symmetric", - "thickness", - "traceref", - "tracerefminus", - "type", - "value", - "valueminus", - "visible", - "width", - } + _parent_path_str = 'scatter3d' + _path_str = 'scatter3d.error_y' + _valid_props = {"array", "arrayminus", "arrayminussrc", "arraysrc", "color", "copy_zstyle", "symmetric", "thickness", "traceref", "tracerefminus", "type", "value", "valueminus", "visible", "width"} # array # ----- @@ -41,11 +27,11 @@ def array(self): ------- numpy.ndarray """ - return self["array"] + return self['array'] @array.setter def array(self, val): - self["array"] = val + self['array'] = val # arrayminus # ---------- @@ -63,11 +49,11 @@ def arrayminus(self): ------- numpy.ndarray """ - return self["arrayminus"] + return self['arrayminus'] @arrayminus.setter def arrayminus(self, val): - self["arrayminus"] = val + self['arrayminus'] = val # arrayminussrc # ------------- @@ -84,11 +70,11 @@ def arrayminussrc(self): ------- str """ - return self["arrayminussrc"] + return self['arrayminussrc'] @arrayminussrc.setter def arrayminussrc(self, val): - self["arrayminussrc"] = val + self['arrayminussrc'] = val # arraysrc # -------- @@ -104,11 +90,11 @@ def arraysrc(self): ------- str """ - return self["arraysrc"] + return self['arraysrc'] @arraysrc.setter def arraysrc(self, val): - self["arraysrc"] = val + self['arraysrc'] = val # color # ----- @@ -122,52 +108,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # copy_zstyle # ----------- @@ -181,11 +132,11 @@ def copy_zstyle(self): ------- bool """ - return self["copy_zstyle"] + return self['copy_zstyle'] @copy_zstyle.setter def copy_zstyle(self, val): - self["copy_zstyle"] = val + self['copy_zstyle'] = val # symmetric # --------- @@ -203,11 +154,11 @@ def symmetric(self): ------- bool """ - return self["symmetric"] + return self['symmetric'] @symmetric.setter def symmetric(self, val): - self["symmetric"] = val + self['symmetric'] = val # thickness # --------- @@ -223,11 +174,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # traceref # -------- @@ -242,11 +193,11 @@ def traceref(self): ------- int """ - return self["traceref"] + return self['traceref'] @traceref.setter def traceref(self, val): - self["traceref"] = val + self['traceref'] = val # tracerefminus # ------------- @@ -261,11 +212,11 @@ def tracerefminus(self): ------- int """ - return self["tracerefminus"] + return self['tracerefminus'] @tracerefminus.setter def tracerefminus(self, val): - self["tracerefminus"] = val + self['tracerefminus'] = val # type # ---- @@ -288,11 +239,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # value # ----- @@ -310,11 +261,11 @@ def value(self): ------- int|float """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # valueminus # ---------- @@ -333,11 +284,11 @@ def valueminus(self): ------- int|float """ - return self["valueminus"] + return self['valueminus'] @valueminus.setter def valueminus(self, val): - self["valueminus"] = val + self['valueminus'] = val # visible # ------- @@ -353,11 +304,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # width # ----- @@ -374,11 +325,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -441,27 +392,25 @@ def _prop_descriptions(self): Sets the width (in px) of the cross-bar at both ends of the error bars. """ - - def __init__( - self, - arg=None, - array=None, - arrayminus=None, - arrayminussrc=None, - arraysrc=None, - color=None, - copy_zstyle=None, - symmetric=None, - thickness=None, - traceref=None, - tracerefminus=None, - type=None, - value=None, - valueminus=None, - visible=None, - width=None, - **kwargs, - ): + def __init__(self, + arg=None, + array=None, + arrayminus=None, + arrayminussrc=None, + arraysrc=None, + color=None, + copy_zstyle=None, + symmetric=None, + thickness=None, + traceref=None, + tracerefminus=None, + type=None, + value=None, + valueminus=None, + visible=None, + width=None, + **kwargs + ): """ Construct a new ErrorY object @@ -531,10 +480,10 @@ def __init__( ------- ErrorY """ - super(ErrorY, self).__init__("error_y") + super(ErrorY, self).__init__('error_y') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -546,80 +495,34 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter3d.ErrorY constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter3d.ErrorY`""" - ) +an instance of :class:`plotly.graph_objs.scatter3d.ErrorY`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("array", None) - _v = array if array is not None else _v - if _v is not None: - self["array"] = _v - _v = arg.pop("arrayminus", None) - _v = arrayminus if arrayminus is not None else _v - if _v is not None: - self["arrayminus"] = _v - _v = arg.pop("arrayminussrc", None) - _v = arrayminussrc if arrayminussrc is not None else _v - if _v is not None: - self["arrayminussrc"] = _v - _v = arg.pop("arraysrc", None) - _v = arraysrc if arraysrc is not None else _v - if _v is not None: - self["arraysrc"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("copy_zstyle", None) - _v = copy_zstyle if copy_zstyle is not None else _v - if _v is not None: - self["copy_zstyle"] = _v - _v = arg.pop("symmetric", None) - _v = symmetric if symmetric is not None else _v - if _v is not None: - self["symmetric"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("traceref", None) - _v = traceref if traceref is not None else _v - if _v is not None: - self["traceref"] = _v - _v = arg.pop("tracerefminus", None) - _v = tracerefminus if tracerefminus is not None else _v - if _v is not None: - self["tracerefminus"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v - _v = arg.pop("valueminus", None) - _v = valueminus if valueminus is not None else _v - if _v is not None: - self["valueminus"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('array', arg, array) + self._init_provided('arrayminus', arg, arrayminus) + self._init_provided('arrayminussrc', arg, arrayminussrc) + self._init_provided('arraysrc', arg, arraysrc) + self._init_provided('color', arg, color) + self._init_provided('copy_zstyle', arg, copy_zstyle) + self._init_provided('symmetric', arg, symmetric) + self._init_provided('thickness', arg, thickness) + self._init_provided('traceref', arg, traceref) + self._init_provided('tracerefminus', arg, tracerefminus) + self._init_provided('type', arg, type) + self._init_provided('value', arg, value) + self._init_provided('valueminus', arg, valueminus) + self._init_provided('visible', arg, visible) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/_error_z.py b/packages/python/plotly/plotly/graph_objs/scatter3d/_error_z.py index 961f07cac04..4db8b6ef13c 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/_error_z.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/_error_z.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,24 +8,9 @@ class ErrorZ(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter3d" - _path_str = "scatter3d.error_z" - _valid_props = { - "array", - "arrayminus", - "arrayminussrc", - "arraysrc", - "color", - "symmetric", - "thickness", - "traceref", - "tracerefminus", - "type", - "value", - "valueminus", - "visible", - "width", - } + _parent_path_str = 'scatter3d' + _path_str = 'scatter3d.error_z' + _valid_props = {"array", "arrayminus", "arrayminussrc", "arraysrc", "color", "symmetric", "thickness", "traceref", "tracerefminus", "type", "value", "valueminus", "visible", "width"} # array # ----- @@ -40,11 +27,11 @@ def array(self): ------- numpy.ndarray """ - return self["array"] + return self['array'] @array.setter def array(self, val): - self["array"] = val + self['array'] = val # arrayminus # ---------- @@ -62,11 +49,11 @@ def arrayminus(self): ------- numpy.ndarray """ - return self["arrayminus"] + return self['arrayminus'] @arrayminus.setter def arrayminus(self, val): - self["arrayminus"] = val + self['arrayminus'] = val # arrayminussrc # ------------- @@ -83,11 +70,11 @@ def arrayminussrc(self): ------- str """ - return self["arrayminussrc"] + return self['arrayminussrc'] @arrayminussrc.setter def arrayminussrc(self, val): - self["arrayminussrc"] = val + self['arrayminussrc'] = val # arraysrc # -------- @@ -103,11 +90,11 @@ def arraysrc(self): ------- str """ - return self["arraysrc"] + return self['arraysrc'] @arraysrc.setter def arraysrc(self, val): - self["arraysrc"] = val + self['arraysrc'] = val # color # ----- @@ -121,52 +108,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # symmetric # --------- @@ -184,11 +136,11 @@ def symmetric(self): ------- bool """ - return self["symmetric"] + return self['symmetric'] @symmetric.setter def symmetric(self, val): - self["symmetric"] = val + self['symmetric'] = val # thickness # --------- @@ -204,11 +156,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # traceref # -------- @@ -223,11 +175,11 @@ def traceref(self): ------- int """ - return self["traceref"] + return self['traceref'] @traceref.setter def traceref(self, val): - self["traceref"] = val + self['traceref'] = val # tracerefminus # ------------- @@ -242,11 +194,11 @@ def tracerefminus(self): ------- int """ - return self["tracerefminus"] + return self['tracerefminus'] @tracerefminus.setter def tracerefminus(self, val): - self["tracerefminus"] = val + self['tracerefminus'] = val # type # ---- @@ -269,11 +221,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # value # ----- @@ -291,11 +243,11 @@ def value(self): ------- int|float """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # valueminus # ---------- @@ -314,11 +266,11 @@ def valueminus(self): ------- int|float """ - return self["valueminus"] + return self['valueminus'] @valueminus.setter def valueminus(self, val): - self["valueminus"] = val + self['valueminus'] = val # visible # ------- @@ -334,11 +286,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # width # ----- @@ -355,11 +307,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -420,26 +372,24 @@ def _prop_descriptions(self): Sets the width (in px) of the cross-bar at both ends of the error bars. """ - - def __init__( - self, - arg=None, - array=None, - arrayminus=None, - arrayminussrc=None, - arraysrc=None, - color=None, - symmetric=None, - thickness=None, - traceref=None, - tracerefminus=None, - type=None, - value=None, - valueminus=None, - visible=None, - width=None, - **kwargs, - ): + def __init__(self, + arg=None, + array=None, + arrayminus=None, + arrayminussrc=None, + arraysrc=None, + color=None, + symmetric=None, + thickness=None, + traceref=None, + tracerefminus=None, + type=None, + value=None, + valueminus=None, + visible=None, + width=None, + **kwargs + ): """ Construct a new ErrorZ object @@ -507,10 +457,10 @@ def __init__( ------- ErrorZ """ - super(ErrorZ, self).__init__("error_z") + super(ErrorZ, self).__init__('error_z') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -522,76 +472,33 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter3d.ErrorZ constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter3d.ErrorZ`""" - ) +an instance of :class:`plotly.graph_objs.scatter3d.ErrorZ`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("array", None) - _v = array if array is not None else _v - if _v is not None: - self["array"] = _v - _v = arg.pop("arrayminus", None) - _v = arrayminus if arrayminus is not None else _v - if _v is not None: - self["arrayminus"] = _v - _v = arg.pop("arrayminussrc", None) - _v = arrayminussrc if arrayminussrc is not None else _v - if _v is not None: - self["arrayminussrc"] = _v - _v = arg.pop("arraysrc", None) - _v = arraysrc if arraysrc is not None else _v - if _v is not None: - self["arraysrc"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("symmetric", None) - _v = symmetric if symmetric is not None else _v - if _v is not None: - self["symmetric"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("traceref", None) - _v = traceref if traceref is not None else _v - if _v is not None: - self["traceref"] = _v - _v = arg.pop("tracerefminus", None) - _v = tracerefminus if tracerefminus is not None else _v - if _v is not None: - self["tracerefminus"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v - _v = arg.pop("valueminus", None) - _v = valueminus if valueminus is not None else _v - if _v is not None: - self["valueminus"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('array', arg, array) + self._init_provided('arrayminus', arg, arrayminus) + self._init_provided('arrayminussrc', arg, arrayminussrc) + self._init_provided('arraysrc', arg, arraysrc) + self._init_provided('color', arg, color) + self._init_provided('symmetric', arg, symmetric) + self._init_provided('thickness', arg, thickness) + self._init_provided('traceref', arg, traceref) + self._init_provided('tracerefminus', arg, tracerefminus) + self._init_provided('type', arg, type) + self._init_provided('value', arg, value) + self._init_provided('valueminus', arg, valueminus) + self._init_provided('visible', arg, visible) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/scatter3d/_hoverlabel.py index db24a5c7661..d7f30e7ee54 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter3d" - _path_str = "scatter3d.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'scatter3d' + _path_str = 'scatter3d.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.scatter3d.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter3d.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter3d.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.scatter3d.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/scatter3d/_legendgrouptitle.py index 48507d5d806..eee757ab117 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter3d" - _path_str = "scatter3d.legendgrouptitle" + _parent_path_str = 'scatter3d' + _path_str = 'scatter3d.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scatter3d.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter3d.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter3d.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.scatter3d.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/_line.py b/packages/python/plotly/plotly/graph_objs/scatter3d/_line.py index 3005090f810..9bbe91cc738 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/_line.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,24 +8,9 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter3d" - _path_str = "scatter3d.line" - _valid_props = { - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorbar", - "colorscale", - "colorsrc", - "dash", - "reversescale", - "showscale", - "width", - } + _parent_path_str = 'scatter3d' + _path_str = 'scatter3d.line' + _valid_props = {"autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorbar", "colorscale", "colorsrc", "dash", "reversescale", "showscale", "width"} # autocolorscale # -------------- @@ -45,11 +32,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -69,11 +56,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -92,11 +79,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -116,11 +103,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -139,11 +126,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -160,42 +147,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to scatter3d.line.colorscale - A list or array of any of the above @@ -204,11 +156,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -231,11 +183,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -248,282 +200,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.scatter - 3d.line.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.scatter3d.line.colorbar.tickformatstopdefault - s), sets the default property values to use for - elements of - scatter3d.line.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.scatter3d.line.col - orbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.scatter3d.line.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -573,11 +258,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -593,11 +278,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # dash # ---- @@ -615,11 +300,11 @@ def dash(self): ------- Any """ - return self["dash"] + return self['dash'] @dash.setter def dash(self, val): - self["dash"] = val + self['dash'] = val # reversescale # ------------ @@ -638,11 +323,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # showscale # --------- @@ -660,11 +345,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # width # ----- @@ -680,11 +365,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -772,26 +457,24 @@ def _prop_descriptions(self): width Sets the line width (in px). """ - - def __init__( - self, - arg=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorbar=None, - colorscale=None, - colorsrc=None, - dash=None, - reversescale=None, - showscale=None, - width=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorbar=None, + colorscale=None, + colorsrc=None, + dash=None, + reversescale=None, + showscale=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -886,10 +569,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -901,76 +584,33 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter3d.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter3d.Line`""" - ) +an instance of :class:`plotly.graph_objs.scatter3d.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("dash", None) - _v = dash if dash is not None else _v - if _v is not None: - self["dash"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('dash', arg, dash) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('showscale', arg, showscale) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/_marker.py b/packages/python/plotly/plotly/graph_objs/scatter3d/_marker.py index 36d86b9fda5..4f7934a63c3 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,31 +8,9 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter3d" - _path_str = "scatter3d.marker" - _valid_props = { - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorbar", - "colorscale", - "colorsrc", - "line", - "opacity", - "reversescale", - "showscale", - "size", - "sizemin", - "sizemode", - "sizeref", - "sizesrc", - "symbol", - "symbolsrc", - } + _parent_path_str = 'scatter3d' + _path_str = 'scatter3d.marker' + _valid_props = {"autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorbar", "colorscale", "colorsrc", "line", "opacity", "reversescale", "showscale", "size", "sizemin", "sizemode", "sizeref", "sizesrc", "symbol", "symbolsrc"} # autocolorscale # -------------- @@ -52,11 +32,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -77,11 +57,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -100,11 +80,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -124,11 +104,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -147,11 +127,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -168,42 +148,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to scatter3d.marker.colorscale - A list or array of any of the above @@ -212,11 +157,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -239,11 +184,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -256,282 +201,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.scatter - 3d.marker.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.scatter3d.marker.colorbar.tickformatstopdefau - lts), sets the default property values to use - for elements of - scatter3d.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.scatter3d.marker.c - olorbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.scatter3d.marker.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -581,11 +259,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -601,11 +279,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # line # ---- @@ -618,104 +296,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.line.colorscale`. Has an - effect only if in `marker.line.color` is set to - a numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.line.color`) or the bounds set in - `marker.line.cmin` and `marker.line.cmax` Has - an effect only if in `marker.line.color` is set - to a numerical array. Defaults to `false` when - `marker.line.cmin` and `marker.line.cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.line.cmin` and/or - `marker.line.cmax` to be equidistant to this - point. Has an effect only if in - `marker.line.color` is set to a numerical - array. Value should have the same units as in - `marker.line.color`. Has no effect when - `marker.line.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmax` must be set as well. - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorscale - Sets the colorscale. Has an effect only if in - `marker.line.color` is set to a numerical - array. The colorscale must be an array - containing arrays mapping a normalized value to - an rgb, rgba, hex, hsl, hsv, or named color - string. At minimum, a mapping for the lowest - (0) and highest (1) values are required. For - example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use - `marker.line.cmin` and `marker.line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.line.color` is set to - a numerical array. If true, `marker.line.cmin` - will correspond to the last color in the array - and `marker.line.cmax` will correspond to the - first color. - width - Sets the width (in px) of the lines bounding - the marker points. - Returns ------- plotly.graph_objs.scatter3d.marker.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # opacity # ------- @@ -735,11 +324,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # reversescale # ------------ @@ -758,11 +347,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # showscale # --------- @@ -780,11 +369,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # size # ---- @@ -801,11 +390,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizemin # ------- @@ -823,11 +412,11 @@ def sizemin(self): ------- int|float """ - return self["sizemin"] + return self['sizemin'] @sizemin.setter def sizemin(self, val): - self["sizemin"] = val + self['sizemin'] = val # sizemode # -------- @@ -846,11 +435,11 @@ def sizemode(self): ------- Any """ - return self["sizemode"] + return self['sizemode'] @sizemode.setter def sizemode(self, val): - self["sizemode"] = val + self['sizemode'] = val # sizeref # ------- @@ -868,11 +457,11 @@ def sizeref(self): ------- int|float """ - return self["sizeref"] + return self['sizeref'] @sizeref.setter def sizeref(self, val): - self["sizeref"] = val + self['sizeref'] = val # sizesrc # ------- @@ -888,11 +477,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # symbol # ------ @@ -911,11 +500,11 @@ def symbol(self): ------- Any|numpy.ndarray """ - return self["symbol"] + return self['symbol'] @symbol.setter def symbol(self, val): - self["symbol"] = val + self['symbol'] = val # symbolsrc # --------- @@ -931,11 +520,11 @@ def symbolsrc(self): ------- str """ - return self["symbolsrc"] + return self['symbolsrc'] @symbolsrc.setter def symbolsrc(self, val): - self["symbolsrc"] = val + self['symbolsrc'] = val # Self properties description # --------------------------- @@ -1051,33 +640,31 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `symbol`. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorbar=None, - colorscale=None, - colorsrc=None, - line=None, - opacity=None, - reversescale=None, - showscale=None, - size=None, - sizemin=None, - sizemode=None, - sizeref=None, - sizesrc=None, - symbol=None, - symbolsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorbar=None, + colorscale=None, + colorsrc=None, + line=None, + opacity=None, + reversescale=None, + showscale=None, + size=None, + sizemin=None, + sizemode=None, + sizeref=None, + sizesrc=None, + symbol=None, + symbolsrc=None, + **kwargs + ): """ Construct a new Marker object @@ -1200,10 +787,10 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1215,104 +802,40 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter3d.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter3d.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scatter3d.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizemin", None) - _v = sizemin if sizemin is not None else _v - if _v is not None: - self["sizemin"] = _v - _v = arg.pop("sizemode", None) - _v = sizemode if sizemode is not None else _v - if _v is not None: - self["sizemode"] = _v - _v = arg.pop("sizeref", None) - _v = sizeref if sizeref is not None else _v - if _v is not None: - self["sizeref"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("symbol", None) - _v = symbol if symbol is not None else _v - if _v is not None: - self["symbol"] = _v - _v = arg.pop("symbolsrc", None) - _v = symbolsrc if symbolsrc is not None else _v - if _v is not None: - self["symbolsrc"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('line', arg, line) + self._init_provided('opacity', arg, opacity) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('showscale', arg, showscale) + self._init_provided('size', arg, size) + self._init_provided('sizemin', arg, sizemin) + self._init_provided('sizemode', arg, sizemode) + self._init_provided('sizeref', arg, sizeref) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('symbol', arg, symbol) + self._init_provided('symbolsrc', arg, symbolsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/_projection.py b/packages/python/plotly/plotly/graph_objs/scatter3d/_projection.py index 3b34ae5f6dc..f27c1cb33c1 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/_projection.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/_projection.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Projection(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter3d" - _path_str = "scatter3d.projection" + _parent_path_str = 'scatter3d' + _path_str = 'scatter3d.projection' _valid_props = {"x", "y", "z"} # x @@ -21,26 +23,15 @@ def x(self): - A dict of string/value properties that will be passed to the X constructor - Supported dict properties: - - opacity - Sets the projection color. - scale - Sets the scale factor determining the size of - the projection marker points. - show - Sets whether or not projections are shown along - the x axis. - Returns ------- plotly.graph_objs.scatter3d.projection.X """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @@ -53,26 +44,15 @@ def y(self): - A dict of string/value properties that will be passed to the Y constructor - Supported dict properties: - - opacity - Sets the projection color. - scale - Sets the scale factor determining the size of - the projection marker points. - show - Sets whether or not projections are shown along - the y axis. - Returns ------- plotly.graph_objs.scatter3d.projection.Y """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # z # - @@ -85,26 +65,15 @@ def z(self): - A dict of string/value properties that will be passed to the Z constructor - Supported dict properties: - - opacity - Sets the projection color. - scale - Sets the scale factor determining the size of - the projection marker points. - show - Sets whether or not projections are shown along - the z axis. - Returns ------- plotly.graph_objs.scatter3d.projection.Z """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # Self properties description # --------------------------- @@ -121,8 +90,13 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.scatter3d.projection.Z` instance or dict with compatible properties """ - - def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): + def __init__(self, + arg=None, + x=None, + y=None, + z=None, + **kwargs + ): """ Construct a new Projection object @@ -146,10 +120,10 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Projection """ - super(Projection, self).__init__("projection") + super(Projection, self).__init__('projection') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -161,32 +135,22 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter3d.Projection constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter3d.Projection`""" - ) +an instance of :class:`plotly.graph_objs.scatter3d.Projection`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) + self._init_provided('z', arg, z) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/_stream.py b/packages/python/plotly/plotly/graph_objs/scatter3d/_stream.py index f1f3adf6132..cae7fa0cb5d 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter3d" - _path_str = "scatter3d.stream" + _parent_path_str = 'scatter3d' + _path_str = 'scatter3d.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter3d.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter3d.Stream`""" - ) +an instance of :class:`plotly.graph_objs.scatter3d.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/_textfont.py b/packages/python/plotly/plotly/graph_objs/scatter3d/_textfont.py index 6e931a0181e..ceb6bf5a1a7 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,22 +8,9 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter3d" - _path_str = "scatter3d.textfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "size", - "sizesrc", - "style", - "stylesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'scatter3d' + _path_str = 'scatter3d.textfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "size", "sizesrc", "style", "stylesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -33,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -95,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -127,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -147,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # size # ---- @@ -166,11 +120,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -186,11 +140,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -209,11 +163,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -229,11 +183,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # variant # ------- @@ -251,11 +205,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -271,11 +225,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -294,11 +248,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -314,11 +268,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -369,24 +323,22 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Textfont object @@ -446,10 +398,10 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -461,68 +413,31 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter3d.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter3d.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.scatter3d.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter3d/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/scatter3d/hoverlabel/_font.py index a3dd6d32e38..09625cfbd88 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter3d.hoverlabel" - _path_str = "scatter3d.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'scatter3d.hoverlabel' + _path_str = 'scatter3d.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter3d.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter3d.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.scatter3d.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter3d/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/scatter3d/legendgrouptitle/_font.py index dc518d92cbe..1efe3a83284 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter3d.legendgrouptitle" - _path_str = "scatter3d.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scatter3d.legendgrouptitle' + _path_str = 'scatter3d.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter3d.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter3d.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.scatter3d.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/line/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter3d/line/__init__.py index 27dfc9e52fb..c35de683492 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/line/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/line/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from . import colorbar else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [".colorbar"], ["._colorbar.ColorBar"] + __name__, + ['.colorbar'], + ['._colorbar.ColorBar'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/line/_colorbar.py b/packages/python/plotly/plotly/graph_objs/scatter3d/line/_colorbar.py index d987d717ba6..cc1fe1be6ac 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/line/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/line/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter3d.line" - _path_str = "scatter3d.line.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'scatter3d.line' + _path_str = 'scatter3d.line.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scatter3d.line.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.scatter3d.line.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.scatter3d.line.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.scatter3d.line.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter3d.line.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter3d.line.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.scatter3d.line.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/_tickfont.py index 8515f8dbefb..608ba1e4189 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter3d.line.colorbar" - _path_str = "scatter3d.line.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scatter3d.line.colorbar' + _path_str = 'scatter3d.line.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter3d.line.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter3d.line.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.scatter3d.line.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/_tickformatstop.py index 04e9d2fa7b0..78658e6d121 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter3d.line.colorbar" - _path_str = "scatter3d.line.colorbar.tickformatstop" + _parent_path_str = 'scatter3d.line.colorbar' + _path_str = 'scatter3d.line.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter3d.line.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter3d.line.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.scatter3d.line.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/_title.py index 3483e9e4a68..7a98bf219a2 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter3d.line.colorbar" - _path_str = "scatter3d.line.colorbar.title" + _parent_path_str = 'scatter3d.line.colorbar' + _path_str = 'scatter3d.line.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scatter3d.line.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter3d.line.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter3d.line.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.scatter3d.line.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/title/_font.py index a98fdfd8b26..6fdef38bebb 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter3d.line.colorbar.title" - _path_str = "scatter3d.line.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scatter3d.line.colorbar.title' + _path_str = 'scatter3d.line.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter3d.line.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter3d.line.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.scatter3d.line.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter3d/marker/__init__.py index 8481520e3c9..60bb7edb6d5 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/marker/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._line import Line from . import colorbar else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [".colorbar"], ["._colorbar.ColorBar", "._line.Line"] + __name__, + ['.colorbar'], + ['._colorbar.ColorBar', '._line.Line'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/marker/_colorbar.py b/packages/python/plotly/plotly/graph_objs/scatter3d/marker/_colorbar.py index 19904e58459..69b7b9ff3e2 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/marker/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/marker/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter3d.marker" - _path_str = "scatter3d.marker.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'scatter3d.marker' + _path_str = 'scatter3d.marker.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scatter3d.marker.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.scatter3d.marker.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.scatter3d.marker.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.scatter3d.marker.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter3d.marker.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter3d.marker.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.scatter3d.marker.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/marker/_line.py b/packages/python/plotly/plotly/graph_objs/scatter3d/marker/_line.py index bf7ebcf385c..879d770326c 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/marker/_line.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/marker/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,21 +8,9 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter3d.marker" - _path_str = "scatter3d.marker.line" - _valid_props = { - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorscale", - "colorsrc", - "reversescale", - "width", - } + _parent_path_str = 'scatter3d.marker' + _path_str = 'scatter3d.marker.line' + _valid_props = {"autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorscale", "colorsrc", "reversescale", "width"} # autocolorscale # -------------- @@ -42,11 +32,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -67,11 +57,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -90,11 +80,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -115,11 +105,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -138,11 +128,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -159,42 +149,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to scatter3d.marker.line.colorscale - A list or array of any of the above @@ -203,11 +158,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -230,11 +185,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorscale # ---------- @@ -285,11 +240,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -305,11 +260,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # reversescale # ------------ @@ -329,11 +284,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # width # ----- @@ -349,11 +304,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -436,23 +391,21 @@ def _prop_descriptions(self): Sets the width (in px) of the lines bounding the marker points. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorscale=None, - colorsrc=None, - reversescale=None, - width=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorscale=None, + colorsrc=None, + reversescale=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -542,10 +495,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -557,64 +510,30 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter3d.marker.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter3d.marker.Line`""" - ) +an instance of :class:`plotly.graph_objs.scatter3d.marker.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/_tickfont.py index 725d247cb5f..8dd18c7c464 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter3d.marker.colorbar" - _path_str = "scatter3d.marker.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scatter3d.marker.colorbar' + _path_str = 'scatter3d.marker.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter3d.marker.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter3d.marker.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.scatter3d.marker.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/_tickformatstop.py index f9537736504..072bd937051 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter3d.marker.colorbar" - _path_str = "scatter3d.marker.colorbar.tickformatstop" + _parent_path_str = 'scatter3d.marker.colorbar' + _path_str = 'scatter3d.marker.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter3d.marker.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter3d.marker.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.scatter3d.marker.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/_title.py index c048363a0c2..6c7425c0a7a 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter3d.marker.colorbar" - _path_str = "scatter3d.marker.colorbar.title" + _parent_path_str = 'scatter3d.marker.colorbar' + _path_str = 'scatter3d.marker.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scatter3d.marker.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter3d.marker.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter3d.marker.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.scatter3d.marker.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/title/_font.py index 1da64423030..6d8c6017c2a 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter3d.marker.colorbar.title" - _path_str = "scatter3d.marker.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scatter3d.marker.colorbar.title' + _path_str = 'scatter3d.marker.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter3d.marker.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter3d.marker.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.scatter3d.marker.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/projection/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter3d/projection/__init__.py index b7c57094513..bc24ca0a556 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/projection/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/projection/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._x import X from ._y import Y from ._z import Z else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._x.X", "._y.Y", "._z.Z"] + __name__, + [], + ['._x.X', '._y.Y', '._z.Z'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/projection/_x.py b/packages/python/plotly/plotly/graph_objs/scatter3d/projection/_x.py index 28728a3c8d6..5f39b5823fc 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/projection/_x.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/projection/_x.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class X(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter3d.projection" - _path_str = "scatter3d.projection.x" + _parent_path_str = 'scatter3d.projection' + _path_str = 'scatter3d.projection.x' _valid_props = {"opacity", "scale", "show"} # opacity @@ -24,11 +26,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # scale # ----- @@ -45,11 +47,11 @@ def scale(self): ------- int|float """ - return self["scale"] + return self['scale'] @scale.setter def scale(self, val): - self["scale"] = val + self['scale'] = val # show # ---- @@ -65,11 +67,11 @@ def show(self): ------- bool """ - return self["show"] + return self['show'] @show.setter def show(self, val): - self["show"] = val + self['show'] = val # Self properties description # --------------------------- @@ -85,8 +87,13 @@ def _prop_descriptions(self): Sets whether or not projections are shown along the x axis. """ - - def __init__(self, arg=None, opacity=None, scale=None, show=None, **kwargs): + def __init__(self, + arg=None, + opacity=None, + scale=None, + show=None, + **kwargs + ): """ Construct a new X object @@ -109,10 +116,10 @@ def __init__(self, arg=None, opacity=None, scale=None, show=None, **kwargs): ------- X """ - super(X, self).__init__("x") + super(X, self).__init__('x') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -124,32 +131,22 @@ def __init__(self, arg=None, opacity=None, scale=None, show=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter3d.projection.X constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter3d.projection.X`""" - ) +an instance of :class:`plotly.graph_objs.scatter3d.projection.X`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("scale", None) - _v = scale if scale is not None else _v - if _v is not None: - self["scale"] = _v - _v = arg.pop("show", None) - _v = show if show is not None else _v - if _v is not None: - self["show"] = _v + self._init_provided('opacity', arg, opacity) + self._init_provided('scale', arg, scale) + self._init_provided('show', arg, show) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/projection/_y.py b/packages/python/plotly/plotly/graph_objs/scatter3d/projection/_y.py index b36d3902c3a..ad5e5189a80 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/projection/_y.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/projection/_y.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Y(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter3d.projection" - _path_str = "scatter3d.projection.y" + _parent_path_str = 'scatter3d.projection' + _path_str = 'scatter3d.projection.y' _valid_props = {"opacity", "scale", "show"} # opacity @@ -24,11 +26,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # scale # ----- @@ -45,11 +47,11 @@ def scale(self): ------- int|float """ - return self["scale"] + return self['scale'] @scale.setter def scale(self, val): - self["scale"] = val + self['scale'] = val # show # ---- @@ -65,11 +67,11 @@ def show(self): ------- bool """ - return self["show"] + return self['show'] @show.setter def show(self, val): - self["show"] = val + self['show'] = val # Self properties description # --------------------------- @@ -85,8 +87,13 @@ def _prop_descriptions(self): Sets whether or not projections are shown along the y axis. """ - - def __init__(self, arg=None, opacity=None, scale=None, show=None, **kwargs): + def __init__(self, + arg=None, + opacity=None, + scale=None, + show=None, + **kwargs + ): """ Construct a new Y object @@ -109,10 +116,10 @@ def __init__(self, arg=None, opacity=None, scale=None, show=None, **kwargs): ------- Y """ - super(Y, self).__init__("y") + super(Y, self).__init__('y') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -124,32 +131,22 @@ def __init__(self, arg=None, opacity=None, scale=None, show=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter3d.projection.Y constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter3d.projection.Y`""" - ) +an instance of :class:`plotly.graph_objs.scatter3d.projection.Y`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("scale", None) - _v = scale if scale is not None else _v - if _v is not None: - self["scale"] = _v - _v = arg.pop("show", None) - _v = show if show is not None else _v - if _v is not None: - self["show"] = _v + self._init_provided('opacity', arg, opacity) + self._init_provided('scale', arg, scale) + self._init_provided('show', arg, show) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/projection/_z.py b/packages/python/plotly/plotly/graph_objs/scatter3d/projection/_z.py index 5ca5e519e88..f0a931cfbc1 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/projection/_z.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/projection/_z.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Z(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatter3d.projection" - _path_str = "scatter3d.projection.z" + _parent_path_str = 'scatter3d.projection' + _path_str = 'scatter3d.projection.z' _valid_props = {"opacity", "scale", "show"} # opacity @@ -24,11 +26,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # scale # ----- @@ -45,11 +47,11 @@ def scale(self): ------- int|float """ - return self["scale"] + return self['scale'] @scale.setter def scale(self, val): - self["scale"] = val + self['scale'] = val # show # ---- @@ -65,11 +67,11 @@ def show(self): ------- bool """ - return self["show"] + return self['show'] @show.setter def show(self, val): - self["show"] = val + self['show'] = val # Self properties description # --------------------------- @@ -85,8 +87,13 @@ def _prop_descriptions(self): Sets whether or not projections are shown along the z axis. """ - - def __init__(self, arg=None, opacity=None, scale=None, show=None, **kwargs): + def __init__(self, + arg=None, + opacity=None, + scale=None, + show=None, + **kwargs + ): """ Construct a new Z object @@ -109,10 +116,10 @@ def __init__(self, arg=None, opacity=None, scale=None, show=None, **kwargs): ------- Z """ - super(Z, self).__init__("z") + super(Z, self).__init__('z') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -124,32 +131,22 @@ def __init__(self, arg=None, opacity=None, scale=None, show=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatter3d.projection.Z constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatter3d.projection.Z`""" - ) +an instance of :class:`plotly.graph_objs.scatter3d.projection.Z`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("scale", None) - _v = scale if scale is not None else _v - if _v is not None: - self["scale"] = _v - _v = arg.pop("show", None) - _v = show if show is not None else _v - if _v is not None: - self["show"] = _v + self._init_provided('opacity', arg, opacity) + self._init_provided('scale', arg, scale) + self._init_provided('show', arg, show) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/__init__.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/__init__.py index 382e87019f6..9103ab10864 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._hoverlabel import Hoverlabel from ._legendgrouptitle import Legendgrouptitle @@ -17,18 +16,10 @@ from . import unselected else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".hoverlabel", ".legendgrouptitle", ".marker", ".selected", ".unselected"], - [ - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._line.Line", - "._marker.Marker", - "._selected.Selected", - "._stream.Stream", - "._textfont.Textfont", - "._unselected.Unselected", - ], + ['.hoverlabel', '.legendgrouptitle', '.marker', '.selected', '.unselected'], + ['._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._line.Line', '._marker.Marker', '._selected.Selected', '._stream.Stream', '._textfont.Textfont', '._unselected.Unselected'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/_hoverlabel.py index d8a228b5bf2..040a8b112b8 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattercarpet" - _path_str = "scattercarpet.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'scattercarpet' + _path_str = 'scattercarpet.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.scattercarpet.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattercarpet.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattercarpet.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.scattercarpet.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/_legendgrouptitle.py index 0ef210fb5c9..4dd950bdd1d 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattercarpet" - _path_str = "scattercarpet.legendgrouptitle" + _parent_path_str = 'scattercarpet' + _path_str = 'scattercarpet.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scattercarpet.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattercarpet.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattercarpet.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.scattercarpet.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/_line.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/_line.py index e90e05f8f89..51f02ee8779 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/_line.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,17 +8,9 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattercarpet" - _path_str = "scattercarpet.line" - _valid_props = { - "backoff", - "backoffsrc", - "color", - "dash", - "shape", - "smoothing", - "width", - } + _parent_path_str = 'scattercarpet' + _path_str = 'scattercarpet.line' + _valid_props = {"backoff", "backoffsrc", "color", "dash", "shape", "smoothing", "width"} # backoff # ------- @@ -36,11 +30,11 @@ def backoff(self): ------- int|float|numpy.ndarray """ - return self["backoff"] + return self['backoff'] @backoff.setter def backoff(self, val): - self["backoff"] = val + self['backoff'] = val # backoffsrc # ---------- @@ -56,11 +50,11 @@ def backoffsrc(self): ------- str """ - return self["backoffsrc"] + return self['backoffsrc'] @backoffsrc.setter def backoffsrc(self, val): - self["backoffsrc"] = val + self['backoffsrc'] = val # color # ----- @@ -74,52 +68,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # dash # ---- @@ -141,11 +100,11 @@ def dash(self): ------- str """ - return self["dash"] + return self['dash'] @dash.setter def dash(self, val): - self["dash"] = val + self['dash'] = val # shape # ----- @@ -164,11 +123,11 @@ def shape(self): ------- Any """ - return self["shape"] + return self['shape'] @shape.setter def shape(self, val): - self["shape"] = val + self['shape'] = val # smoothing # --------- @@ -186,11 +145,11 @@ def smoothing(self): ------- int|float """ - return self["smoothing"] + return self['smoothing'] @smoothing.setter def smoothing(self, val): - self["smoothing"] = val + self['smoothing'] = val # width # ----- @@ -206,11 +165,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -244,19 +203,17 @@ def _prop_descriptions(self): width Sets the line width (in px). """ - - def __init__( - self, - arg=None, - backoff=None, - backoffsrc=None, - color=None, - dash=None, - shape=None, - smoothing=None, - width=None, - **kwargs, - ): + def __init__(self, + arg=None, + backoff=None, + backoffsrc=None, + color=None, + dash=None, + shape=None, + smoothing=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -297,10 +254,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -312,48 +269,26 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattercarpet.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattercarpet.Line`""" - ) +an instance of :class:`plotly.graph_objs.scattercarpet.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("backoff", None) - _v = backoff if backoff is not None else _v - if _v is not None: - self["backoff"] = _v - _v = arg.pop("backoffsrc", None) - _v = backoffsrc if backoffsrc is not None else _v - if _v is not None: - self["backoffsrc"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("dash", None) - _v = dash if dash is not None else _v - if _v is not None: - self["dash"] = _v - _v = arg.pop("shape", None) - _v = shape if shape is not None else _v - if _v is not None: - self["shape"] = _v - _v = arg.pop("smoothing", None) - _v = smoothing if smoothing is not None else _v - if _v is not None: - self["smoothing"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('backoff', arg, backoff) + self._init_provided('backoffsrc', arg, backoffsrc) + self._init_provided('color', arg, color) + self._init_provided('dash', arg, dash) + self._init_provided('shape', arg, shape) + self._init_provided('smoothing', arg, smoothing) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/_marker.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/_marker.py index 1d1e05bd353..a7f1c5fabba 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,39 +8,9 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattercarpet" - _path_str = "scattercarpet.marker" - _valid_props = { - "angle", - "angleref", - "anglesrc", - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorbar", - "colorscale", - "colorsrc", - "gradient", - "line", - "maxdisplayed", - "opacity", - "opacitysrc", - "reversescale", - "showscale", - "size", - "sizemin", - "sizemode", - "sizeref", - "sizesrc", - "standoff", - "standoffsrc", - "symbol", - "symbolsrc", - } + _parent_path_str = 'scattercarpet' + _path_str = 'scattercarpet.marker' + _valid_props = {"angle", "angleref", "anglesrc", "autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorbar", "colorscale", "colorsrc", "gradient", "line", "maxdisplayed", "opacity", "opacitysrc", "reversescale", "showscale", "size", "sizemin", "sizemode", "sizeref", "sizesrc", "standoff", "standoffsrc", "symbol", "symbolsrc"} # angle # ----- @@ -56,11 +28,11 @@ def angle(self): ------- int|float|numpy.ndarray """ - return self["angle"] + return self['angle'] @angle.setter def angle(self, val): - self["angle"] = val + self['angle'] = val # angleref # -------- @@ -79,11 +51,11 @@ def angleref(self): ------- Any """ - return self["angleref"] + return self['angleref'] @angleref.setter def angleref(self, val): - self["angleref"] = val + self['angleref'] = val # anglesrc # -------- @@ -99,11 +71,11 @@ def anglesrc(self): ------- str """ - return self["anglesrc"] + return self['anglesrc'] @anglesrc.setter def anglesrc(self, val): - self["anglesrc"] = val + self['anglesrc'] = val # autocolorscale # -------------- @@ -125,11 +97,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -150,11 +122,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -173,11 +145,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -197,11 +169,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -220,11 +192,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -241,42 +213,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to scattercarpet.marker.colorscale - A list or array of any of the above @@ -285,11 +222,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -312,11 +249,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -329,282 +266,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.scatter - carpet.marker.colorbar.Tickformatstop` - instances or dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.scattercarpet.marker.colorbar.tickformatstopd - efaults), sets the default property values to - use for elements of - scattercarpet.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.scattercarpet.mark - er.colorbar.Title` instance or dict with - compatible properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.scattercarpet.marker.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -654,11 +324,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -674,11 +344,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # gradient # -------- @@ -691,31 +361,15 @@ def gradient(self): - A dict of string/value properties that will be passed to the Gradient constructor - Supported dict properties: - - color - Sets the final color of the gradient fill: the - center color for radial, the right for - horizontal, or the bottom for vertical. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - type - Sets the type of gradient used to fill the - markers - typesrc - Sets the source reference on Chart Studio Cloud - for `type`. - Returns ------- plotly.graph_objs.scattercarpet.marker.Gradient """ - return self["gradient"] + return self['gradient'] @gradient.setter def gradient(self, val): - self["gradient"] = val + self['gradient'] = val # line # ---- @@ -728,107 +382,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.line.colorscale`. Has an - effect only if in `marker.line.color` is set to - a numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.line.color`) or the bounds set in - `marker.line.cmin` and `marker.line.cmax` Has - an effect only if in `marker.line.color` is set - to a numerical array. Defaults to `false` when - `marker.line.cmin` and `marker.line.cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.line.cmin` and/or - `marker.line.cmax` to be equidistant to this - point. Has an effect only if in - `marker.line.color` is set to a numerical - array. Value should have the same units as in - `marker.line.color`. Has no effect when - `marker.line.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmax` must be set as well. - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorscale - Sets the colorscale. Has an effect only if in - `marker.line.color` is set to a numerical - array. The colorscale must be an array - containing arrays mapping a normalized value to - an rgb, rgba, hex, hsl, hsv, or named color - string. At minimum, a mapping for the lowest - (0) and highest (1) values are required. For - example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use - `marker.line.cmin` and `marker.line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.line.color` is set to - a numerical array. If true, `marker.line.cmin` - will correspond to the last color in the array - and `marker.line.cmax` will correspond to the - first color. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. - Returns ------- plotly.graph_objs.scattercarpet.marker.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # maxdisplayed # ------------ @@ -845,11 +407,11 @@ def maxdisplayed(self): ------- int|float """ - return self["maxdisplayed"] + return self['maxdisplayed'] @maxdisplayed.setter def maxdisplayed(self, val): - self["maxdisplayed"] = val + self['maxdisplayed'] = val # opacity # ------- @@ -866,11 +428,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # opacitysrc # ---------- @@ -886,11 +448,11 @@ def opacitysrc(self): ------- str """ - return self["opacitysrc"] + return self['opacitysrc'] @opacitysrc.setter def opacitysrc(self, val): - self["opacitysrc"] = val + self['opacitysrc'] = val # reversescale # ------------ @@ -909,11 +471,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # showscale # --------- @@ -931,11 +493,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # size # ---- @@ -952,11 +514,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizemin # ------- @@ -974,11 +536,11 @@ def sizemin(self): ------- int|float """ - return self["sizemin"] + return self['sizemin'] @sizemin.setter def sizemin(self, val): - self["sizemin"] = val + self['sizemin'] = val # sizemode # -------- @@ -997,11 +559,11 @@ def sizemode(self): ------- Any """ - return self["sizemode"] + return self['sizemode'] @sizemode.setter def sizemode(self, val): - self["sizemode"] = val + self['sizemode'] = val # sizeref # ------- @@ -1019,11 +581,11 @@ def sizeref(self): ------- int|float """ - return self["sizeref"] + return self['sizeref'] @sizeref.setter def sizeref(self, val): - self["sizeref"] = val + self['sizeref'] = val # sizesrc # ------- @@ -1039,11 +601,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # standoff # -------- @@ -1063,11 +625,11 @@ def standoff(self): ------- int|float|numpy.ndarray """ - return self["standoff"] + return self['standoff'] @standoff.setter def standoff(self, val): - self["standoff"] = val + self['standoff'] = val # standoffsrc # ----------- @@ -1083,11 +645,11 @@ def standoffsrc(self): ------- str """ - return self["standoffsrc"] + return self['standoffsrc'] @standoffsrc.setter def standoffsrc(self, val): - self["standoffsrc"] = val + self['standoffsrc'] = val # symbol # ------ @@ -1196,11 +758,11 @@ def symbol(self): ------- Any|numpy.ndarray """ - return self["symbol"] + return self['symbol'] @symbol.setter def symbol(self, val): - self["symbol"] = val + self['symbol'] = val # symbolsrc # --------- @@ -1216,11 +778,11 @@ def symbolsrc(self): ------- str """ - return self["symbolsrc"] + return self['symbolsrc'] @symbolsrc.setter def symbolsrc(self, val): - self["symbolsrc"] = val + self['symbolsrc'] = val # Self properties description # --------------------------- @@ -1363,41 +925,39 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `symbol`. """ - - def __init__( - self, - arg=None, - angle=None, - angleref=None, - anglesrc=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorbar=None, - colorscale=None, - colorsrc=None, - gradient=None, - line=None, - maxdisplayed=None, - opacity=None, - opacitysrc=None, - reversescale=None, - showscale=None, - size=None, - sizemin=None, - sizemode=None, - sizeref=None, - sizesrc=None, - standoff=None, - standoffsrc=None, - symbol=None, - symbolsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + angle=None, + angleref=None, + anglesrc=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorbar=None, + colorscale=None, + colorsrc=None, + gradient=None, + line=None, + maxdisplayed=None, + opacity=None, + opacitysrc=None, + reversescale=None, + showscale=None, + size=None, + sizemin=None, + sizemode=None, + sizeref=None, + sizesrc=None, + standoff=None, + standoffsrc=None, + symbol=None, + symbolsrc=None, + **kwargs + ): """ Construct a new Marker object @@ -1547,10 +1107,10 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1562,136 +1122,48 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattercarpet.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattercarpet.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scattercarpet.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("angle", None) - _v = angle if angle is not None else _v - if _v is not None: - self["angle"] = _v - _v = arg.pop("angleref", None) - _v = angleref if angleref is not None else _v - if _v is not None: - self["angleref"] = _v - _v = arg.pop("anglesrc", None) - _v = anglesrc if anglesrc is not None else _v - if _v is not None: - self["anglesrc"] = _v - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("gradient", None) - _v = gradient if gradient is not None else _v - if _v is not None: - self["gradient"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("maxdisplayed", None) - _v = maxdisplayed if maxdisplayed is not None else _v - if _v is not None: - self["maxdisplayed"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("opacitysrc", None) - _v = opacitysrc if opacitysrc is not None else _v - if _v is not None: - self["opacitysrc"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizemin", None) - _v = sizemin if sizemin is not None else _v - if _v is not None: - self["sizemin"] = _v - _v = arg.pop("sizemode", None) - _v = sizemode if sizemode is not None else _v - if _v is not None: - self["sizemode"] = _v - _v = arg.pop("sizeref", None) - _v = sizeref if sizeref is not None else _v - if _v is not None: - self["sizeref"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("standoff", None) - _v = standoff if standoff is not None else _v - if _v is not None: - self["standoff"] = _v - _v = arg.pop("standoffsrc", None) - _v = standoffsrc if standoffsrc is not None else _v - if _v is not None: - self["standoffsrc"] = _v - _v = arg.pop("symbol", None) - _v = symbol if symbol is not None else _v - if _v is not None: - self["symbol"] = _v - _v = arg.pop("symbolsrc", None) - _v = symbolsrc if symbolsrc is not None else _v - if _v is not None: - self["symbolsrc"] = _v + self._init_provided('angle', arg, angle) + self._init_provided('angleref', arg, angleref) + self._init_provided('anglesrc', arg, anglesrc) + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('gradient', arg, gradient) + self._init_provided('line', arg, line) + self._init_provided('maxdisplayed', arg, maxdisplayed) + self._init_provided('opacity', arg, opacity) + self._init_provided('opacitysrc', arg, opacitysrc) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('showscale', arg, showscale) + self._init_provided('size', arg, size) + self._init_provided('sizemin', arg, sizemin) + self._init_provided('sizemode', arg, sizemode) + self._init_provided('sizeref', arg, sizeref) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('standoff', arg, standoff) + self._init_provided('standoffsrc', arg, standoffsrc) + self._init_provided('symbol', arg, symbol) + self._init_provided('symbolsrc', arg, symbolsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/_selected.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/_selected.py index f304c520ea8..64bf4d3caa0 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/_selected.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/_selected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Selected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattercarpet" - _path_str = "scattercarpet.selected" + _parent_path_str = 'scattercarpet' + _path_str = 'scattercarpet.selected' _valid_props = {"marker", "textfont"} # marker @@ -21,24 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. - size - Sets the marker size of selected points. - Returns ------- plotly.graph_objs.scattercarpet.selected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # textfont # -------- @@ -51,20 +44,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - Sets the text font color of selected points. - Returns ------- plotly.graph_objs.scattercarpet.selected.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # Self properties description # --------------------------- @@ -78,8 +66,12 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.scattercarpet.selected.Tex tfont` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, textfont=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + textfont=None, + **kwargs + ): """ Construct a new Selected object @@ -100,10 +92,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") + super(Selected, self).__init__('selected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -115,28 +107,21 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattercarpet.Selected constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattercarpet.Selected`""" - ) +an instance of :class:`plotly.graph_objs.scattercarpet.Selected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v + self._init_provided('marker', arg, marker) + self._init_provided('textfont', arg, textfont) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/_stream.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/_stream.py index bc4d38873db..a8cc5ad2146 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattercarpet" - _path_str = "scattercarpet.stream" + _parent_path_str = 'scattercarpet' + _path_str = 'scattercarpet.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattercarpet.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattercarpet.Stream`""" - ) +an instance of :class:`plotly.graph_objs.scattercarpet.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/_textfont.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/_textfont.py index 480d5806bb7..20b1e27c216 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattercarpet" - _path_str = "scattercarpet.textfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'scattercarpet' + _path_str = 'scattercarpet.textfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Textfont object @@ -639,10 +585,10 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattercarpet.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattercarpet.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.scattercarpet.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/_unselected.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/_unselected.py index 15420192376..510b17770a6 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/_unselected.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/_unselected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Unselected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattercarpet" - _path_str = "scattercarpet.unselected" + _parent_path_str = 'scattercarpet' + _path_str = 'scattercarpet.unselected' _valid_props = {"marker", "textfont"} # marker @@ -21,27 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - size - Sets the marker size of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.scattercarpet.unselected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # textfont # -------- @@ -54,21 +44,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - Sets the text font color of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.scattercarpet.unselected.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # Self properties description # --------------------------- @@ -82,8 +66,12 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.scattercarpet.unselected.T extfont` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, textfont=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + textfont=None, + **kwargs + ): """ Construct a new Unselected object @@ -104,10 +92,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") + super(Unselected, self).__init__('unselected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -119,28 +107,21 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattercarpet.Unselected constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattercarpet.Unselected`""" - ) +an instance of :class:`plotly.graph_objs.scattercarpet.Unselected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v + self._init_provided('marker', arg, marker) + self._init_provided('textfont', arg, textfont) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/hoverlabel/_font.py index 1f5f52ddbad..a156e5b3253 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattercarpet.hoverlabel" - _path_str = "scattercarpet.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'scattercarpet.hoverlabel' + _path_str = 'scattercarpet.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattercarpet.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattercarpet.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.scattercarpet.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/legendgrouptitle/_font.py index 0f72cb4373b..acafe6d6d99 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattercarpet.legendgrouptitle" - _path_str = "scattercarpet.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scattercarpet.legendgrouptitle' + _path_str = 'scattercarpet.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattercarpet.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattercarpet.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.scattercarpet.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/__init__.py index f1897fb0aa7..b07f6ce198a 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._gradient import Gradient @@ -8,9 +7,10 @@ from . import colorbar else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".colorbar"], - ["._colorbar.ColorBar", "._gradient.Gradient", "._line.Line"], + ['.colorbar'], + ['._colorbar.ColorBar', '._gradient.Gradient', '._line.Line'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/_colorbar.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/_colorbar.py index 6b7cd89da43..40fc4462a0c 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattercarpet.marker" - _path_str = "scattercarpet.marker.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'scattercarpet.marker' + _path_str = 'scattercarpet.marker.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scattercarpet.marker.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.scattercarpet.marker.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.scattercarpet.marker.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.scattercarpet.marker.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattercarpet.marker.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattercarpet.marker.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.scattercarpet.marker.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/_gradient.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/_gradient.py index e1d631261b4..89fd7025765 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/_gradient.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/_gradient.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Gradient(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattercarpet.marker" - _path_str = "scattercarpet.marker.gradient" + _parent_path_str = 'scattercarpet.marker' + _path_str = 'scattercarpet.marker.gradient' _valid_props = {"color", "colorsrc", "type", "typesrc"} # color @@ -23,53 +25,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -85,11 +52,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # type # ---- @@ -107,11 +74,11 @@ def type(self): ------- Any|numpy.ndarray """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # typesrc # ------- @@ -127,11 +94,11 @@ def typesrc(self): ------- str """ - return self["typesrc"] + return self['typesrc'] @typesrc.setter def typesrc(self, val): - self["typesrc"] = val + self['typesrc'] = val # Self properties description # --------------------------- @@ -151,10 +118,14 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `type`. """ - - def __init__( - self, arg=None, color=None, colorsrc=None, type=None, typesrc=None, **kwargs - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + type=None, + typesrc=None, + **kwargs + ): """ Construct a new Gradient object @@ -181,10 +152,10 @@ def __init__( ------- Gradient """ - super(Gradient, self).__init__("gradient") + super(Gradient, self).__init__('gradient') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -196,36 +167,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattercarpet.marker.Gradient constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattercarpet.marker.Gradient`""" - ) +an instance of :class:`plotly.graph_objs.scattercarpet.marker.Gradient`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("typesrc", None) - _v = typesrc if typesrc is not None else _v - if _v is not None: - self["typesrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('type', arg, type) + self._init_provided('typesrc', arg, typesrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/_line.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/_line.py index 55baf406f2c..58026060427 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/_line.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,22 +8,9 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattercarpet.marker" - _path_str = "scattercarpet.marker.line" - _valid_props = { - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorscale", - "colorsrc", - "reversescale", - "width", - "widthsrc", - } + _parent_path_str = 'scattercarpet.marker' + _path_str = 'scattercarpet.marker.line' + _valid_props = {"autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorscale", "colorsrc", "reversescale", "width", "widthsrc"} # autocolorscale # -------------- @@ -43,11 +32,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -68,11 +57,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -91,11 +80,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -116,11 +105,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -139,11 +128,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -160,42 +149,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to scattercarpet.marker.line.colorscale - A list or array of any of the above @@ -204,11 +158,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -231,11 +185,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorscale # ---------- @@ -286,11 +240,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -306,11 +260,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # reversescale # ------------ @@ -330,11 +284,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # width # ----- @@ -351,11 +305,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # widthsrc # -------- @@ -371,11 +325,11 @@ def widthsrc(self): ------- str """ - return self["widthsrc"] + return self['widthsrc'] @widthsrc.setter def widthsrc(self, val): - self["widthsrc"] = val + self['widthsrc'] = val # Self properties description # --------------------------- @@ -461,24 +415,22 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `width`. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorscale=None, - colorsrc=None, - reversescale=None, - width=None, - widthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorscale=None, + colorsrc=None, + reversescale=None, + width=None, + widthsrc=None, + **kwargs + ): """ Construct a new Line object @@ -571,10 +523,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -586,68 +538,31 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattercarpet.marker.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattercarpet.marker.Line`""" - ) +an instance of :class:`plotly.graph_objs.scattercarpet.marker.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("widthsrc", None) - _v = widthsrc if widthsrc is not None else _v - if _v is not None: - self["widthsrc"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('width', arg, width) + self._init_provided('widthsrc', arg, widthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/_tickfont.py index e21f9eba0d9..df65280925b 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattercarpet.marker.colorbar" - _path_str = "scattercarpet.marker.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scattercarpet.marker.colorbar' + _path_str = 'scattercarpet.marker.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattercarpet.marker.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattercarpet.marker.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.scattercarpet.marker.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/_tickformatstop.py index 1d6a29ee8f4..e76eed8ad10 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattercarpet.marker.colorbar" - _path_str = "scattercarpet.marker.colorbar.tickformatstop" + _parent_path_str = 'scattercarpet.marker.colorbar' + _path_str = 'scattercarpet.marker.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattercarpet.marker.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattercarpet.marker.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.scattercarpet.marker.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/_title.py index 537a7994e5f..a4d88ba9cfd 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattercarpet.marker.colorbar" - _path_str = "scattercarpet.marker.colorbar.title" + _parent_path_str = 'scattercarpet.marker.colorbar' + _path_str = 'scattercarpet.marker.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scattercarpet.marker.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattercarpet.marker.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattercarpet.marker.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.scattercarpet.marker.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/title/_font.py index 7df5a819af3..6b2c08d54ef 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattercarpet.marker.colorbar.title" - _path_str = "scattercarpet.marker.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scattercarpet.marker.colorbar.title' + _path_str = 'scattercarpet.marker.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattercarpet.marker.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattercarpet.marker.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.scattercarpet.marker.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/selected/__init__.py index ae964f0b65f..4f70de0f5a9 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/selected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker from ._textfont import Textfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.Marker", "._textfont.Textfont"] + __name__, + [], + ['._marker.Marker', '._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/selected/_marker.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/selected/_marker.py index 1b24f8856f9..0cadeb17e44 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/selected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/selected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattercarpet.selected" - _path_str = "scattercarpet.selected.marker" + _parent_path_str = 'scattercarpet.selected' + _path_str = 'scattercarpet.selected.marker' _valid_props = {"color", "opacity", "size"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -83,11 +50,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # size # ---- @@ -103,11 +70,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # Self properties description # --------------------------- @@ -121,8 +88,13 @@ def _prop_descriptions(self): size Sets the marker size of selected points. """ - - def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + size=None, + **kwargs + ): """ Construct a new Marker object @@ -143,10 +115,10 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -158,32 +130,22 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattercarpet.selected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattercarpet.selected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scattercarpet.selected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) + self._init_provided('size', arg, size) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/selected/_textfont.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/selected/_textfont.py index 0b331010650..b57257c0ecf 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/selected/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/selected/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattercarpet.selected" - _path_str = "scattercarpet.selected.textfont" + _parent_path_str = 'scattercarpet.selected' + _path_str = 'scattercarpet.selected.textfont' _valid_props = {"color"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # Self properties description # --------------------------- @@ -77,8 +44,11 @@ def _prop_descriptions(self): color Sets the text font color of selected points. """ - - def __init__(self, arg=None, color=None, **kwargs): + def __init__(self, + arg=None, + color=None, + **kwargs + ): """ Construct a new Textfont object @@ -95,10 +65,10 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -110,24 +80,20 @@ def __init__(self, arg=None, color=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattercarpet.selected.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattercarpet.selected.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.scattercarpet.selected.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v + self._init_provided('color', arg, color) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/unselected/__init__.py index ae964f0b65f..4f70de0f5a9 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/unselected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker from ._textfont import Textfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.Marker", "._textfont.Textfont"] + __name__, + [], + ['._marker.Marker', '._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/unselected/_marker.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/unselected/_marker.py index 5d0b8a5d0d9..0481ff7a68b 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/unselected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/unselected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattercarpet.unselected" - _path_str = "scattercarpet.unselected.marker" + _parent_path_str = 'scattercarpet.unselected' + _path_str = 'scattercarpet.unselected.marker' _valid_props = {"color", "opacity", "size"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -85,11 +52,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # size # ---- @@ -106,11 +73,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # Self properties description # --------------------------- @@ -127,8 +94,13 @@ def _prop_descriptions(self): Sets the marker size of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + size=None, + **kwargs + ): """ Construct a new Marker object @@ -152,10 +124,10 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -167,32 +139,22 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattercarpet.unselected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattercarpet.unselected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scattercarpet.unselected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) + self._init_provided('size', arg, size) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/unselected/_textfont.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/unselected/_textfont.py index 95209e17917..56b4a8c4f01 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/unselected/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/unselected/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattercarpet.unselected" - _path_str = "scattercarpet.unselected.textfont" + _parent_path_str = 'scattercarpet.unselected' + _path_str = 'scattercarpet.unselected.textfont' _valid_props = {"color"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # Self properties description # --------------------------- @@ -79,8 +46,11 @@ def _prop_descriptions(self): Sets the text font color of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, color=None, **kwargs): + def __init__(self, + arg=None, + color=None, + **kwargs + ): """ Construct a new Textfont object @@ -98,10 +68,10 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -113,24 +83,20 @@ def __init__(self, arg=None, color=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattercarpet.unselected.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattercarpet.unselected.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.scattercarpet.unselected.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v + self._init_provided('color', arg, color) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergeo/__init__.py index 382e87019f6..9103ab10864 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._hoverlabel import Hoverlabel from ._legendgrouptitle import Legendgrouptitle @@ -17,18 +16,10 @@ from . import unselected else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".hoverlabel", ".legendgrouptitle", ".marker", ".selected", ".unselected"], - [ - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._line.Line", - "._marker.Marker", - "._selected.Selected", - "._stream.Stream", - "._textfont.Textfont", - "._unselected.Unselected", - ], + ['.hoverlabel', '.legendgrouptitle', '.marker', '.selected', '.unselected'], + ['._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._line.Line', '._marker.Marker', '._selected.Selected', '._stream.Stream', '._textfont.Textfont', '._unselected.Unselected'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/scattergeo/_hoverlabel.py index 50bc99f0072..9c0a083ba90 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergeo" - _path_str = "scattergeo.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'scattergeo' + _path_str = 'scattergeo.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.scattergeo.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergeo.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergeo.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.scattergeo.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/scattergeo/_legendgrouptitle.py index 128be95b353..0e4bb685a88 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergeo" - _path_str = "scattergeo.legendgrouptitle" + _parent_path_str = 'scattergeo' + _path_str = 'scattergeo.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scattergeo.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergeo.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergeo.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.scattergeo.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/_line.py b/packages/python/plotly/plotly/graph_objs/scattergeo/_line.py index 7567b732492..39fd913a55e 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/_line.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergeo" - _path_str = "scattergeo.line" + _parent_path_str = 'scattergeo' + _path_str = 'scattergeo.line' _valid_props = {"color", "dash", "width"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # dash # ---- @@ -89,11 +56,11 @@ def dash(self): ------- str """ - return self["dash"] + return self['dash'] @dash.setter def dash(self, val): - self["dash"] = val + self['dash'] = val # width # ----- @@ -109,11 +76,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -130,8 +97,13 @@ def _prop_descriptions(self): width Sets the line width (in px). """ - - def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): + def __init__(self, + arg=None, + color=None, + dash=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -155,10 +127,10 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -170,32 +142,22 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergeo.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergeo.Line`""" - ) +an instance of :class:`plotly.graph_objs.scattergeo.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("dash", None) - _v = dash if dash is not None else _v - if _v is not None: - self["dash"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('dash', arg, dash) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/_marker.py b/packages/python/plotly/plotly/graph_objs/scattergeo/_marker.py index ac1ea833746..811fd363ec2 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,38 +8,9 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergeo" - _path_str = "scattergeo.marker" - _valid_props = { - "angle", - "angleref", - "anglesrc", - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorbar", - "colorscale", - "colorsrc", - "gradient", - "line", - "opacity", - "opacitysrc", - "reversescale", - "showscale", - "size", - "sizemin", - "sizemode", - "sizeref", - "sizesrc", - "standoff", - "standoffsrc", - "symbol", - "symbolsrc", - } + _parent_path_str = 'scattergeo' + _path_str = 'scattergeo.marker' + _valid_props = {"angle", "angleref", "anglesrc", "autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorbar", "colorscale", "colorsrc", "gradient", "line", "opacity", "opacitysrc", "reversescale", "showscale", "size", "sizemin", "sizemode", "sizeref", "sizesrc", "standoff", "standoffsrc", "symbol", "symbolsrc"} # angle # ----- @@ -55,11 +28,11 @@ def angle(self): ------- int|float|numpy.ndarray """ - return self["angle"] + return self['angle'] @angle.setter def angle(self, val): - self["angle"] = val + self['angle'] = val # angleref # -------- @@ -80,11 +53,11 @@ def angleref(self): ------- Any """ - return self["angleref"] + return self['angleref'] @angleref.setter def angleref(self, val): - self["angleref"] = val + self['angleref'] = val # anglesrc # -------- @@ -100,11 +73,11 @@ def anglesrc(self): ------- str """ - return self["anglesrc"] + return self['anglesrc'] @anglesrc.setter def anglesrc(self, val): - self["anglesrc"] = val + self['anglesrc'] = val # autocolorscale # -------------- @@ -126,11 +99,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -151,11 +124,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -174,11 +147,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -198,11 +171,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -221,11 +194,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -242,42 +215,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to scattergeo.marker.colorscale - A list or array of any of the above @@ -286,11 +224,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -313,11 +251,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -330,282 +268,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.scatter - geo.marker.colorbar.Tickformatstop` instances - or dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.scattergeo.marker.colorbar.tickformatstopdefa - ults), sets the default property values to use - for elements of - scattergeo.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.scattergeo.marker. - colorbar.Title` instance or dict with - compatible properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.scattergeo.marker.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -655,11 +326,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -675,11 +346,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # gradient # -------- @@ -692,31 +363,15 @@ def gradient(self): - A dict of string/value properties that will be passed to the Gradient constructor - Supported dict properties: - - color - Sets the final color of the gradient fill: the - center color for radial, the right for - horizontal, or the bottom for vertical. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - type - Sets the type of gradient used to fill the - markers - typesrc - Sets the source reference on Chart Studio Cloud - for `type`. - Returns ------- plotly.graph_objs.scattergeo.marker.Gradient """ - return self["gradient"] + return self['gradient'] @gradient.setter def gradient(self, val): - self["gradient"] = val + self['gradient'] = val # line # ---- @@ -729,107 +384,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.line.colorscale`. Has an - effect only if in `marker.line.color` is set to - a numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.line.color`) or the bounds set in - `marker.line.cmin` and `marker.line.cmax` Has - an effect only if in `marker.line.color` is set - to a numerical array. Defaults to `false` when - `marker.line.cmin` and `marker.line.cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.line.cmin` and/or - `marker.line.cmax` to be equidistant to this - point. Has an effect only if in - `marker.line.color` is set to a numerical - array. Value should have the same units as in - `marker.line.color`. Has no effect when - `marker.line.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmax` must be set as well. - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorscale - Sets the colorscale. Has an effect only if in - `marker.line.color` is set to a numerical - array. The colorscale must be an array - containing arrays mapping a normalized value to - an rgb, rgba, hex, hsl, hsv, or named color - string. At minimum, a mapping for the lowest - (0) and highest (1) values are required. For - example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use - `marker.line.cmin` and `marker.line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.line.color` is set to - a numerical array. If true, `marker.line.cmin` - will correspond to the last color in the array - and `marker.line.cmax` will correspond to the - first color. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. - Returns ------- plotly.graph_objs.scattergeo.marker.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # opacity # ------- @@ -846,11 +409,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # opacitysrc # ---------- @@ -866,11 +429,11 @@ def opacitysrc(self): ------- str """ - return self["opacitysrc"] + return self['opacitysrc'] @opacitysrc.setter def opacitysrc(self, val): - self["opacitysrc"] = val + self['opacitysrc'] = val # reversescale # ------------ @@ -889,11 +452,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # showscale # --------- @@ -911,11 +474,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # size # ---- @@ -932,11 +495,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizemin # ------- @@ -954,11 +517,11 @@ def sizemin(self): ------- int|float """ - return self["sizemin"] + return self['sizemin'] @sizemin.setter def sizemin(self, val): - self["sizemin"] = val + self['sizemin'] = val # sizemode # -------- @@ -977,11 +540,11 @@ def sizemode(self): ------- Any """ - return self["sizemode"] + return self['sizemode'] @sizemode.setter def sizemode(self, val): - self["sizemode"] = val + self['sizemode'] = val # sizeref # ------- @@ -999,11 +562,11 @@ def sizeref(self): ------- int|float """ - return self["sizeref"] + return self['sizeref'] @sizeref.setter def sizeref(self, val): - self["sizeref"] = val + self['sizeref'] = val # sizesrc # ------- @@ -1019,11 +582,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # standoff # -------- @@ -1043,11 +606,11 @@ def standoff(self): ------- int|float|numpy.ndarray """ - return self["standoff"] + return self['standoff'] @standoff.setter def standoff(self, val): - self["standoff"] = val + self['standoff'] = val # standoffsrc # ----------- @@ -1063,11 +626,11 @@ def standoffsrc(self): ------- str """ - return self["standoffsrc"] + return self['standoffsrc'] @standoffsrc.setter def standoffsrc(self, val): - self["standoffsrc"] = val + self['standoffsrc'] = val # symbol # ------ @@ -1176,11 +739,11 @@ def symbol(self): ------- Any|numpy.ndarray """ - return self["symbol"] + return self['symbol'] @symbol.setter def symbol(self, val): - self["symbol"] = val + self['symbol'] = val # symbolsrc # --------- @@ -1196,11 +759,11 @@ def symbolsrc(self): ------- str """ - return self["symbolsrc"] + return self['symbolsrc'] @symbolsrc.setter def symbolsrc(self, val): - self["symbolsrc"] = val + self['symbolsrc'] = val # Self properties description # --------------------------- @@ -1341,40 +904,38 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `symbol`. """ - - def __init__( - self, - arg=None, - angle=None, - angleref=None, - anglesrc=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorbar=None, - colorscale=None, - colorsrc=None, - gradient=None, - line=None, - opacity=None, - opacitysrc=None, - reversescale=None, - showscale=None, - size=None, - sizemin=None, - sizemode=None, - sizeref=None, - sizesrc=None, - standoff=None, - standoffsrc=None, - symbol=None, - symbolsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + angle=None, + angleref=None, + anglesrc=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorbar=None, + colorscale=None, + colorsrc=None, + gradient=None, + line=None, + opacity=None, + opacitysrc=None, + reversescale=None, + showscale=None, + size=None, + sizemin=None, + sizemode=None, + sizeref=None, + sizesrc=None, + standoff=None, + standoffsrc=None, + symbol=None, + symbolsrc=None, + **kwargs + ): """ Construct a new Marker object @@ -1522,10 +1083,10 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1537,132 +1098,47 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergeo.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergeo.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scattergeo.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("angle", None) - _v = angle if angle is not None else _v - if _v is not None: - self["angle"] = _v - _v = arg.pop("angleref", None) - _v = angleref if angleref is not None else _v - if _v is not None: - self["angleref"] = _v - _v = arg.pop("anglesrc", None) - _v = anglesrc if anglesrc is not None else _v - if _v is not None: - self["anglesrc"] = _v - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("gradient", None) - _v = gradient if gradient is not None else _v - if _v is not None: - self["gradient"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("opacitysrc", None) - _v = opacitysrc if opacitysrc is not None else _v - if _v is not None: - self["opacitysrc"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizemin", None) - _v = sizemin if sizemin is not None else _v - if _v is not None: - self["sizemin"] = _v - _v = arg.pop("sizemode", None) - _v = sizemode if sizemode is not None else _v - if _v is not None: - self["sizemode"] = _v - _v = arg.pop("sizeref", None) - _v = sizeref if sizeref is not None else _v - if _v is not None: - self["sizeref"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("standoff", None) - _v = standoff if standoff is not None else _v - if _v is not None: - self["standoff"] = _v - _v = arg.pop("standoffsrc", None) - _v = standoffsrc if standoffsrc is not None else _v - if _v is not None: - self["standoffsrc"] = _v - _v = arg.pop("symbol", None) - _v = symbol if symbol is not None else _v - if _v is not None: - self["symbol"] = _v - _v = arg.pop("symbolsrc", None) - _v = symbolsrc if symbolsrc is not None else _v - if _v is not None: - self["symbolsrc"] = _v + self._init_provided('angle', arg, angle) + self._init_provided('angleref', arg, angleref) + self._init_provided('anglesrc', arg, anglesrc) + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('gradient', arg, gradient) + self._init_provided('line', arg, line) + self._init_provided('opacity', arg, opacity) + self._init_provided('opacitysrc', arg, opacitysrc) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('showscale', arg, showscale) + self._init_provided('size', arg, size) + self._init_provided('sizemin', arg, sizemin) + self._init_provided('sizemode', arg, sizemode) + self._init_provided('sizeref', arg, sizeref) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('standoff', arg, standoff) + self._init_provided('standoffsrc', arg, standoffsrc) + self._init_provided('symbol', arg, symbol) + self._init_provided('symbolsrc', arg, symbolsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/_selected.py b/packages/python/plotly/plotly/graph_objs/scattergeo/_selected.py index c1277c1ae25..b17b0e6f4bf 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/_selected.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/_selected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Selected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergeo" - _path_str = "scattergeo.selected" + _parent_path_str = 'scattergeo' + _path_str = 'scattergeo.selected' _valid_props = {"marker", "textfont"} # marker @@ -21,24 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. - size - Sets the marker size of selected points. - Returns ------- plotly.graph_objs.scattergeo.selected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # textfont # -------- @@ -51,20 +44,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - Sets the text font color of selected points. - Returns ------- plotly.graph_objs.scattergeo.selected.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # Self properties description # --------------------------- @@ -78,8 +66,12 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.scattergeo.selected.Textfo nt` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, textfont=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + textfont=None, + **kwargs + ): """ Construct a new Selected object @@ -100,10 +92,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") + super(Selected, self).__init__('selected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -115,28 +107,21 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergeo.Selected constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergeo.Selected`""" - ) +an instance of :class:`plotly.graph_objs.scattergeo.Selected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v + self._init_provided('marker', arg, marker) + self._init_provided('textfont', arg, textfont) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/_stream.py b/packages/python/plotly/plotly/graph_objs/scattergeo/_stream.py index fafa62d6278..dc13c086758 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergeo" - _path_str = "scattergeo.stream" + _parent_path_str = 'scattergeo' + _path_str = 'scattergeo.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergeo.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergeo.Stream`""" - ) +an instance of :class:`plotly.graph_objs.scattergeo.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/_textfont.py b/packages/python/plotly/plotly/graph_objs/scattergeo/_textfont.py index 4c356905991..f8a0258b835 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergeo" - _path_str = "scattergeo.textfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'scattergeo' + _path_str = 'scattergeo.textfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Textfont object @@ -639,10 +585,10 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergeo.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergeo.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.scattergeo.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/_unselected.py b/packages/python/plotly/plotly/graph_objs/scattergeo/_unselected.py index 5925e303523..1a692258e0a 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/_unselected.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/_unselected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Unselected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergeo" - _path_str = "scattergeo.unselected" + _parent_path_str = 'scattergeo' + _path_str = 'scattergeo.unselected' _valid_props = {"marker", "textfont"} # marker @@ -21,27 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - size - Sets the marker size of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.scattergeo.unselected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # textfont # -------- @@ -54,21 +44,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - Sets the text font color of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.scattergeo.unselected.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # Self properties description # --------------------------- @@ -82,8 +66,12 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.scattergeo.unselected.Text font` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, textfont=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + textfont=None, + **kwargs + ): """ Construct a new Unselected object @@ -104,10 +92,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") + super(Unselected, self).__init__('unselected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -119,28 +107,21 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergeo.Unselected constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergeo.Unselected`""" - ) +an instance of :class:`plotly.graph_objs.scattergeo.Unselected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v + self._init_provided('marker', arg, marker) + self._init_provided('textfont', arg, textfont) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergeo/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/scattergeo/hoverlabel/_font.py index c3e1ef39d09..9223ae7b117 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergeo.hoverlabel" - _path_str = "scattergeo.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'scattergeo.hoverlabel' + _path_str = 'scattergeo.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergeo.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergeo.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.scattergeo.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergeo/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/scattergeo/legendgrouptitle/_font.py index 0de9e4179c9..48735a18173 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergeo.legendgrouptitle" - _path_str = "scattergeo.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scattergeo.legendgrouptitle' + _path_str = 'scattergeo.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergeo.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergeo.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.scattergeo.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergeo/marker/__init__.py index f1897fb0aa7..b07f6ce198a 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._gradient import Gradient @@ -8,9 +7,10 @@ from . import colorbar else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".colorbar"], - ["._colorbar.ColorBar", "._gradient.Gradient", "._line.Line"], + ['.colorbar'], + ['._colorbar.ColorBar', '._gradient.Gradient', '._line.Line'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/marker/_colorbar.py b/packages/python/plotly/plotly/graph_objs/scattergeo/marker/_colorbar.py index 7751a1ac295..5b5b33e938f 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/marker/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/marker/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergeo.marker" - _path_str = "scattergeo.marker.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'scattergeo.marker' + _path_str = 'scattergeo.marker.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scattergeo.marker.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.scattergeo.marker.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.scattergeo.marker.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.scattergeo.marker.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergeo.marker.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergeo.marker.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.scattergeo.marker.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/marker/_gradient.py b/packages/python/plotly/plotly/graph_objs/scattergeo/marker/_gradient.py index 9da07fb17f3..b70d118eba8 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/marker/_gradient.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/marker/_gradient.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Gradient(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergeo.marker" - _path_str = "scattergeo.marker.gradient" + _parent_path_str = 'scattergeo.marker' + _path_str = 'scattergeo.marker.gradient' _valid_props = {"color", "colorsrc", "type", "typesrc"} # color @@ -23,53 +25,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -85,11 +52,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # type # ---- @@ -107,11 +74,11 @@ def type(self): ------- Any|numpy.ndarray """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # typesrc # ------- @@ -127,11 +94,11 @@ def typesrc(self): ------- str """ - return self["typesrc"] + return self['typesrc'] @typesrc.setter def typesrc(self, val): - self["typesrc"] = val + self['typesrc'] = val # Self properties description # --------------------------- @@ -151,10 +118,14 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `type`. """ - - def __init__( - self, arg=None, color=None, colorsrc=None, type=None, typesrc=None, **kwargs - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + type=None, + typesrc=None, + **kwargs + ): """ Construct a new Gradient object @@ -181,10 +152,10 @@ def __init__( ------- Gradient """ - super(Gradient, self).__init__("gradient") + super(Gradient, self).__init__('gradient') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -196,36 +167,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergeo.marker.Gradient constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergeo.marker.Gradient`""" - ) +an instance of :class:`plotly.graph_objs.scattergeo.marker.Gradient`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("typesrc", None) - _v = typesrc if typesrc is not None else _v - if _v is not None: - self["typesrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('type', arg, type) + self._init_provided('typesrc', arg, typesrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/marker/_line.py b/packages/python/plotly/plotly/graph_objs/scattergeo/marker/_line.py index 59ba236da40..c271432f686 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/marker/_line.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/marker/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,22 +8,9 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergeo.marker" - _path_str = "scattergeo.marker.line" - _valid_props = { - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorscale", - "colorsrc", - "reversescale", - "width", - "widthsrc", - } + _parent_path_str = 'scattergeo.marker' + _path_str = 'scattergeo.marker.line' + _valid_props = {"autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorscale", "colorsrc", "reversescale", "width", "widthsrc"} # autocolorscale # -------------- @@ -43,11 +32,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -68,11 +57,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -91,11 +80,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -116,11 +105,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -139,11 +128,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -160,42 +149,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to scattergeo.marker.line.colorscale - A list or array of any of the above @@ -204,11 +158,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -231,11 +185,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorscale # ---------- @@ -286,11 +240,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -306,11 +260,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # reversescale # ------------ @@ -330,11 +284,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # width # ----- @@ -351,11 +305,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # widthsrc # -------- @@ -371,11 +325,11 @@ def widthsrc(self): ------- str """ - return self["widthsrc"] + return self['widthsrc'] @widthsrc.setter def widthsrc(self, val): - self["widthsrc"] = val + self['widthsrc'] = val # Self properties description # --------------------------- @@ -461,24 +415,22 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `width`. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorscale=None, - colorsrc=None, - reversescale=None, - width=None, - widthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorscale=None, + colorsrc=None, + reversescale=None, + width=None, + widthsrc=None, + **kwargs + ): """ Construct a new Line object @@ -571,10 +523,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -586,68 +538,31 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergeo.marker.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergeo.marker.Line`""" - ) +an instance of :class:`plotly.graph_objs.scattergeo.marker.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("widthsrc", None) - _v = widthsrc if widthsrc is not None else _v - if _v is not None: - self["widthsrc"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('width', arg, width) + self._init_provided('widthsrc', arg, widthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/_tickfont.py index ab7398f6c39..fed0b0cd000 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergeo.marker.colorbar" - _path_str = "scattergeo.marker.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scattergeo.marker.colorbar' + _path_str = 'scattergeo.marker.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergeo.marker.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergeo.marker.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.scattergeo.marker.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/_tickformatstop.py index 8f39cd0d149..d4a2e5446b2 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergeo.marker.colorbar" - _path_str = "scattergeo.marker.colorbar.tickformatstop" + _parent_path_str = 'scattergeo.marker.colorbar' + _path_str = 'scattergeo.marker.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergeo.marker.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergeo.marker.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.scattergeo.marker.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/_title.py index 6194cbbed48..e401039a028 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergeo.marker.colorbar" - _path_str = "scattergeo.marker.colorbar.title" + _parent_path_str = 'scattergeo.marker.colorbar' + _path_str = 'scattergeo.marker.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scattergeo.marker.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergeo.marker.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergeo.marker.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.scattergeo.marker.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/title/_font.py index 600b1baf026..ee339bd64de 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergeo.marker.colorbar.title" - _path_str = "scattergeo.marker.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scattergeo.marker.colorbar.title' + _path_str = 'scattergeo.marker.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergeo.marker.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergeo.marker.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.scattergeo.marker.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergeo/selected/__init__.py index ae964f0b65f..4f70de0f5a9 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/selected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker from ._textfont import Textfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.Marker", "._textfont.Textfont"] + __name__, + [], + ['._marker.Marker', '._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/selected/_marker.py b/packages/python/plotly/plotly/graph_objs/scattergeo/selected/_marker.py index 3d1b18e39be..ae467d7b705 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/selected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/selected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergeo.selected" - _path_str = "scattergeo.selected.marker" + _parent_path_str = 'scattergeo.selected' + _path_str = 'scattergeo.selected.marker' _valid_props = {"color", "opacity", "size"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -83,11 +50,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # size # ---- @@ -103,11 +70,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # Self properties description # --------------------------- @@ -121,8 +88,13 @@ def _prop_descriptions(self): size Sets the marker size of selected points. """ - - def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + size=None, + **kwargs + ): """ Construct a new Marker object @@ -143,10 +115,10 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -158,32 +130,22 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergeo.selected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergeo.selected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scattergeo.selected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) + self._init_provided('size', arg, size) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/selected/_textfont.py b/packages/python/plotly/plotly/graph_objs/scattergeo/selected/_textfont.py index dc542178414..b4c7903ea07 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/selected/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/selected/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergeo.selected" - _path_str = "scattergeo.selected.textfont" + _parent_path_str = 'scattergeo.selected' + _path_str = 'scattergeo.selected.textfont' _valid_props = {"color"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # Self properties description # --------------------------- @@ -77,8 +44,11 @@ def _prop_descriptions(self): color Sets the text font color of selected points. """ - - def __init__(self, arg=None, color=None, **kwargs): + def __init__(self, + arg=None, + color=None, + **kwargs + ): """ Construct a new Textfont object @@ -95,10 +65,10 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -110,24 +80,20 @@ def __init__(self, arg=None, color=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergeo.selected.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergeo.selected.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.scattergeo.selected.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v + self._init_provided('color', arg, color) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergeo/unselected/__init__.py index ae964f0b65f..4f70de0f5a9 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/unselected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker from ._textfont import Textfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.Marker", "._textfont.Textfont"] + __name__, + [], + ['._marker.Marker', '._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/unselected/_marker.py b/packages/python/plotly/plotly/graph_objs/scattergeo/unselected/_marker.py index 12476e64cfe..1bcb11c8b3d 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/unselected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/unselected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergeo.unselected" - _path_str = "scattergeo.unselected.marker" + _parent_path_str = 'scattergeo.unselected' + _path_str = 'scattergeo.unselected.marker' _valid_props = {"color", "opacity", "size"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -85,11 +52,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # size # ---- @@ -106,11 +73,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # Self properties description # --------------------------- @@ -127,8 +94,13 @@ def _prop_descriptions(self): Sets the marker size of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + size=None, + **kwargs + ): """ Construct a new Marker object @@ -152,10 +124,10 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -167,32 +139,22 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergeo.unselected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergeo.unselected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scattergeo.unselected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) + self._init_provided('size', arg, size) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/unselected/_textfont.py b/packages/python/plotly/plotly/graph_objs/scattergeo/unselected/_textfont.py index 3202d39ac8c..1f037d96642 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/unselected/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/unselected/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergeo.unselected" - _path_str = "scattergeo.unselected.textfont" + _parent_path_str = 'scattergeo.unselected' + _path_str = 'scattergeo.unselected.textfont' _valid_props = {"color"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # Self properties description # --------------------------- @@ -79,8 +46,11 @@ def _prop_descriptions(self): Sets the text font color of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, color=None, **kwargs): + def __init__(self, + arg=None, + color=None, + **kwargs + ): """ Construct a new Textfont object @@ -98,10 +68,10 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -113,24 +83,20 @@ def __init__(self, arg=None, color=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergeo.unselected.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergeo.unselected.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.scattergeo.unselected.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v + self._init_provided('color', arg, color) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergl/__init__.py index 151ee1c144e..374669a13c8 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._error_x import ErrorX from ._error_y import ErrorY @@ -19,20 +18,10 @@ from . import unselected else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".hoverlabel", ".legendgrouptitle", ".marker", ".selected", ".unselected"], - [ - "._error_x.ErrorX", - "._error_y.ErrorY", - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._line.Line", - "._marker.Marker", - "._selected.Selected", - "._stream.Stream", - "._textfont.Textfont", - "._unselected.Unselected", - ], + ['.hoverlabel', '.legendgrouptitle', '.marker', '.selected', '.unselected'], + ['._error_x.ErrorX', '._error_y.ErrorY', '._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._line.Line', '._marker.Marker', '._selected.Selected', '._stream.Stream', '._textfont.Textfont', '._unselected.Unselected'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/_error_x.py b/packages/python/plotly/plotly/graph_objs/scattergl/_error_x.py index 3daa2b17ed5..7e6a3e21c77 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/_error_x.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/_error_x.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,25 +8,9 @@ class ErrorX(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergl" - _path_str = "scattergl.error_x" - _valid_props = { - "array", - "arrayminus", - "arrayminussrc", - "arraysrc", - "color", - "copy_ystyle", - "symmetric", - "thickness", - "traceref", - "tracerefminus", - "type", - "value", - "valueminus", - "visible", - "width", - } + _parent_path_str = 'scattergl' + _path_str = 'scattergl.error_x' + _valid_props = {"array", "arrayminus", "arrayminussrc", "arraysrc", "color", "copy_ystyle", "symmetric", "thickness", "traceref", "tracerefminus", "type", "value", "valueminus", "visible", "width"} # array # ----- @@ -41,11 +27,11 @@ def array(self): ------- numpy.ndarray """ - return self["array"] + return self['array'] @array.setter def array(self, val): - self["array"] = val + self['array'] = val # arrayminus # ---------- @@ -63,11 +49,11 @@ def arrayminus(self): ------- numpy.ndarray """ - return self["arrayminus"] + return self['arrayminus'] @arrayminus.setter def arrayminus(self, val): - self["arrayminus"] = val + self['arrayminus'] = val # arrayminussrc # ------------- @@ -84,11 +70,11 @@ def arrayminussrc(self): ------- str """ - return self["arrayminussrc"] + return self['arrayminussrc'] @arrayminussrc.setter def arrayminussrc(self, val): - self["arrayminussrc"] = val + self['arrayminussrc'] = val # arraysrc # -------- @@ -104,11 +90,11 @@ def arraysrc(self): ------- str """ - return self["arraysrc"] + return self['arraysrc'] @arraysrc.setter def arraysrc(self, val): - self["arraysrc"] = val + self['arraysrc'] = val # color # ----- @@ -122,52 +108,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # copy_ystyle # ----------- @@ -181,11 +132,11 @@ def copy_ystyle(self): ------- bool """ - return self["copy_ystyle"] + return self['copy_ystyle'] @copy_ystyle.setter def copy_ystyle(self, val): - self["copy_ystyle"] = val + self['copy_ystyle'] = val # symmetric # --------- @@ -203,11 +154,11 @@ def symmetric(self): ------- bool """ - return self["symmetric"] + return self['symmetric'] @symmetric.setter def symmetric(self, val): - self["symmetric"] = val + self['symmetric'] = val # thickness # --------- @@ -223,11 +174,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # traceref # -------- @@ -242,11 +193,11 @@ def traceref(self): ------- int """ - return self["traceref"] + return self['traceref'] @traceref.setter def traceref(self, val): - self["traceref"] = val + self['traceref'] = val # tracerefminus # ------------- @@ -261,11 +212,11 @@ def tracerefminus(self): ------- int """ - return self["tracerefminus"] + return self['tracerefminus'] @tracerefminus.setter def tracerefminus(self, val): - self["tracerefminus"] = val + self['tracerefminus'] = val # type # ---- @@ -288,11 +239,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # value # ----- @@ -310,11 +261,11 @@ def value(self): ------- int|float """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # valueminus # ---------- @@ -333,11 +284,11 @@ def valueminus(self): ------- int|float """ - return self["valueminus"] + return self['valueminus'] @valueminus.setter def valueminus(self, val): - self["valueminus"] = val + self['valueminus'] = val # visible # ------- @@ -353,11 +304,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # width # ----- @@ -374,11 +325,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -441,27 +392,25 @@ def _prop_descriptions(self): Sets the width (in px) of the cross-bar at both ends of the error bars. """ - - def __init__( - self, - arg=None, - array=None, - arrayminus=None, - arrayminussrc=None, - arraysrc=None, - color=None, - copy_ystyle=None, - symmetric=None, - thickness=None, - traceref=None, - tracerefminus=None, - type=None, - value=None, - valueminus=None, - visible=None, - width=None, - **kwargs, - ): + def __init__(self, + arg=None, + array=None, + arrayminus=None, + arrayminussrc=None, + arraysrc=None, + color=None, + copy_ystyle=None, + symmetric=None, + thickness=None, + traceref=None, + tracerefminus=None, + type=None, + value=None, + valueminus=None, + visible=None, + width=None, + **kwargs + ): """ Construct a new ErrorX object @@ -531,10 +480,10 @@ def __init__( ------- ErrorX """ - super(ErrorX, self).__init__("error_x") + super(ErrorX, self).__init__('error_x') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -546,80 +495,34 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergl.ErrorX constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergl.ErrorX`""" - ) +an instance of :class:`plotly.graph_objs.scattergl.ErrorX`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("array", None) - _v = array if array is not None else _v - if _v is not None: - self["array"] = _v - _v = arg.pop("arrayminus", None) - _v = arrayminus if arrayminus is not None else _v - if _v is not None: - self["arrayminus"] = _v - _v = arg.pop("arrayminussrc", None) - _v = arrayminussrc if arrayminussrc is not None else _v - if _v is not None: - self["arrayminussrc"] = _v - _v = arg.pop("arraysrc", None) - _v = arraysrc if arraysrc is not None else _v - if _v is not None: - self["arraysrc"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("copy_ystyle", None) - _v = copy_ystyle if copy_ystyle is not None else _v - if _v is not None: - self["copy_ystyle"] = _v - _v = arg.pop("symmetric", None) - _v = symmetric if symmetric is not None else _v - if _v is not None: - self["symmetric"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("traceref", None) - _v = traceref if traceref is not None else _v - if _v is not None: - self["traceref"] = _v - _v = arg.pop("tracerefminus", None) - _v = tracerefminus if tracerefminus is not None else _v - if _v is not None: - self["tracerefminus"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v - _v = arg.pop("valueminus", None) - _v = valueminus if valueminus is not None else _v - if _v is not None: - self["valueminus"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('array', arg, array) + self._init_provided('arrayminus', arg, arrayminus) + self._init_provided('arrayminussrc', arg, arrayminussrc) + self._init_provided('arraysrc', arg, arraysrc) + self._init_provided('color', arg, color) + self._init_provided('copy_ystyle', arg, copy_ystyle) + self._init_provided('symmetric', arg, symmetric) + self._init_provided('thickness', arg, thickness) + self._init_provided('traceref', arg, traceref) + self._init_provided('tracerefminus', arg, tracerefminus) + self._init_provided('type', arg, type) + self._init_provided('value', arg, value) + self._init_provided('valueminus', arg, valueminus) + self._init_provided('visible', arg, visible) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/_error_y.py b/packages/python/plotly/plotly/graph_objs/scattergl/_error_y.py index 9b261c703f7..893d6f581cb 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/_error_y.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/_error_y.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,24 +8,9 @@ class ErrorY(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergl" - _path_str = "scattergl.error_y" - _valid_props = { - "array", - "arrayminus", - "arrayminussrc", - "arraysrc", - "color", - "symmetric", - "thickness", - "traceref", - "tracerefminus", - "type", - "value", - "valueminus", - "visible", - "width", - } + _parent_path_str = 'scattergl' + _path_str = 'scattergl.error_y' + _valid_props = {"array", "arrayminus", "arrayminussrc", "arraysrc", "color", "symmetric", "thickness", "traceref", "tracerefminus", "type", "value", "valueminus", "visible", "width"} # array # ----- @@ -40,11 +27,11 @@ def array(self): ------- numpy.ndarray """ - return self["array"] + return self['array'] @array.setter def array(self, val): - self["array"] = val + self['array'] = val # arrayminus # ---------- @@ -62,11 +49,11 @@ def arrayminus(self): ------- numpy.ndarray """ - return self["arrayminus"] + return self['arrayminus'] @arrayminus.setter def arrayminus(self, val): - self["arrayminus"] = val + self['arrayminus'] = val # arrayminussrc # ------------- @@ -83,11 +70,11 @@ def arrayminussrc(self): ------- str """ - return self["arrayminussrc"] + return self['arrayminussrc'] @arrayminussrc.setter def arrayminussrc(self, val): - self["arrayminussrc"] = val + self['arrayminussrc'] = val # arraysrc # -------- @@ -103,11 +90,11 @@ def arraysrc(self): ------- str """ - return self["arraysrc"] + return self['arraysrc'] @arraysrc.setter def arraysrc(self, val): - self["arraysrc"] = val + self['arraysrc'] = val # color # ----- @@ -121,52 +108,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # symmetric # --------- @@ -184,11 +136,11 @@ def symmetric(self): ------- bool """ - return self["symmetric"] + return self['symmetric'] @symmetric.setter def symmetric(self, val): - self["symmetric"] = val + self['symmetric'] = val # thickness # --------- @@ -204,11 +156,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # traceref # -------- @@ -223,11 +175,11 @@ def traceref(self): ------- int """ - return self["traceref"] + return self['traceref'] @traceref.setter def traceref(self, val): - self["traceref"] = val + self['traceref'] = val # tracerefminus # ------------- @@ -242,11 +194,11 @@ def tracerefminus(self): ------- int """ - return self["tracerefminus"] + return self['tracerefminus'] @tracerefminus.setter def tracerefminus(self, val): - self["tracerefminus"] = val + self['tracerefminus'] = val # type # ---- @@ -269,11 +221,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # value # ----- @@ -291,11 +243,11 @@ def value(self): ------- int|float """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # valueminus # ---------- @@ -314,11 +266,11 @@ def valueminus(self): ------- int|float """ - return self["valueminus"] + return self['valueminus'] @valueminus.setter def valueminus(self, val): - self["valueminus"] = val + self['valueminus'] = val # visible # ------- @@ -334,11 +286,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # width # ----- @@ -355,11 +307,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -420,26 +372,24 @@ def _prop_descriptions(self): Sets the width (in px) of the cross-bar at both ends of the error bars. """ - - def __init__( - self, - arg=None, - array=None, - arrayminus=None, - arrayminussrc=None, - arraysrc=None, - color=None, - symmetric=None, - thickness=None, - traceref=None, - tracerefminus=None, - type=None, - value=None, - valueminus=None, - visible=None, - width=None, - **kwargs, - ): + def __init__(self, + arg=None, + array=None, + arrayminus=None, + arrayminussrc=None, + arraysrc=None, + color=None, + symmetric=None, + thickness=None, + traceref=None, + tracerefminus=None, + type=None, + value=None, + valueminus=None, + visible=None, + width=None, + **kwargs + ): """ Construct a new ErrorY object @@ -507,10 +457,10 @@ def __init__( ------- ErrorY """ - super(ErrorY, self).__init__("error_y") + super(ErrorY, self).__init__('error_y') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -522,76 +472,33 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergl.ErrorY constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergl.ErrorY`""" - ) +an instance of :class:`plotly.graph_objs.scattergl.ErrorY`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("array", None) - _v = array if array is not None else _v - if _v is not None: - self["array"] = _v - _v = arg.pop("arrayminus", None) - _v = arrayminus if arrayminus is not None else _v - if _v is not None: - self["arrayminus"] = _v - _v = arg.pop("arrayminussrc", None) - _v = arrayminussrc if arrayminussrc is not None else _v - if _v is not None: - self["arrayminussrc"] = _v - _v = arg.pop("arraysrc", None) - _v = arraysrc if arraysrc is not None else _v - if _v is not None: - self["arraysrc"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("symmetric", None) - _v = symmetric if symmetric is not None else _v - if _v is not None: - self["symmetric"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("traceref", None) - _v = traceref if traceref is not None else _v - if _v is not None: - self["traceref"] = _v - _v = arg.pop("tracerefminus", None) - _v = tracerefminus if tracerefminus is not None else _v - if _v is not None: - self["tracerefminus"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v - _v = arg.pop("valueminus", None) - _v = valueminus if valueminus is not None else _v - if _v is not None: - self["valueminus"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('array', arg, array) + self._init_provided('arrayminus', arg, arrayminus) + self._init_provided('arrayminussrc', arg, arrayminussrc) + self._init_provided('arraysrc', arg, arraysrc) + self._init_provided('color', arg, color) + self._init_provided('symmetric', arg, symmetric) + self._init_provided('thickness', arg, thickness) + self._init_provided('traceref', arg, traceref) + self._init_provided('tracerefminus', arg, tracerefminus) + self._init_provided('type', arg, type) + self._init_provided('value', arg, value) + self._init_provided('valueminus', arg, valueminus) + self._init_provided('visible', arg, visible) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/scattergl/_hoverlabel.py index 84dd7fdc416..ae7fbb33e3a 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergl" - _path_str = "scattergl.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'scattergl' + _path_str = 'scattergl.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.scattergl.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergl.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergl.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.scattergl.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/scattergl/_legendgrouptitle.py index 345973ad4c0..54e68248415 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergl" - _path_str = "scattergl.legendgrouptitle" + _parent_path_str = 'scattergl' + _path_str = 'scattergl.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scattergl.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergl.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergl.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.scattergl.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/_line.py b/packages/python/plotly/plotly/graph_objs/scattergl/_line.py index 9659fbba199..7f8f4338e20 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/_line.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergl" - _path_str = "scattergl.line" + _parent_path_str = 'scattergl' + _path_str = 'scattergl.line' _valid_props = {"color", "dash", "shape", "width"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # dash # ---- @@ -85,11 +52,11 @@ def dash(self): ------- Any """ - return self["dash"] + return self['dash'] @dash.setter def dash(self, val): - self["dash"] = val + self['dash'] = val # shape # ----- @@ -107,11 +74,11 @@ def shape(self): ------- Any """ - return self["shape"] + return self['shape'] @shape.setter def shape(self, val): - self["shape"] = val + self['shape'] = val # width # ----- @@ -127,11 +94,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -148,10 +115,14 @@ def _prop_descriptions(self): width Sets the line width (in px). """ - - def __init__( - self, arg=None, color=None, dash=None, shape=None, width=None, **kwargs - ): + def __init__(self, + arg=None, + color=None, + dash=None, + shape=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -175,10 +146,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -190,36 +161,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergl.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergl.Line`""" - ) +an instance of :class:`plotly.graph_objs.scattergl.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("dash", None) - _v = dash if dash is not None else _v - if _v is not None: - self["dash"] = _v - _v = arg.pop("shape", None) - _v = shape if shape is not None else _v - if _v is not None: - self["shape"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('dash', arg, dash) + self._init_provided('shape', arg, shape) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/_marker.py b/packages/python/plotly/plotly/graph_objs/scattergl/_marker.py index b7f020b8949..11f165839e6 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,34 +8,9 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergl" - _path_str = "scattergl.marker" - _valid_props = { - "angle", - "anglesrc", - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorbar", - "colorscale", - "colorsrc", - "line", - "opacity", - "opacitysrc", - "reversescale", - "showscale", - "size", - "sizemin", - "sizemode", - "sizeref", - "sizesrc", - "symbol", - "symbolsrc", - } + _parent_path_str = 'scattergl' + _path_str = 'scattergl.marker' + _valid_props = {"angle", "anglesrc", "autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorbar", "colorscale", "colorsrc", "line", "opacity", "opacitysrc", "reversescale", "showscale", "size", "sizemin", "sizemode", "sizeref", "sizesrc", "symbol", "symbolsrc"} # angle # ----- @@ -51,11 +28,11 @@ def angle(self): ------- int|float|numpy.ndarray """ - return self["angle"] + return self['angle'] @angle.setter def angle(self, val): - self["angle"] = val + self['angle'] = val # anglesrc # -------- @@ -71,11 +48,11 @@ def anglesrc(self): ------- str """ - return self["anglesrc"] + return self['anglesrc'] @anglesrc.setter def anglesrc(self, val): - self["anglesrc"] = val + self['anglesrc'] = val # autocolorscale # -------------- @@ -97,11 +74,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -122,11 +99,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -145,11 +122,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -169,11 +146,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -192,11 +169,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -213,42 +190,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to scattergl.marker.colorscale - A list or array of any of the above @@ -257,11 +199,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -284,11 +226,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -301,282 +243,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.scatter - gl.marker.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.scattergl.marker.colorbar.tickformatstopdefau - lts), sets the default property values to use - for elements of - scattergl.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.scattergl.marker.c - olorbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.scattergl.marker.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -626,11 +301,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -646,11 +321,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # line # ---- @@ -663,107 +338,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.line.colorscale`. Has an - effect only if in `marker.line.color` is set to - a numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.line.color`) or the bounds set in - `marker.line.cmin` and `marker.line.cmax` Has - an effect only if in `marker.line.color` is set - to a numerical array. Defaults to `false` when - `marker.line.cmin` and `marker.line.cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.line.cmin` and/or - `marker.line.cmax` to be equidistant to this - point. Has an effect only if in - `marker.line.color` is set to a numerical - array. Value should have the same units as in - `marker.line.color`. Has no effect when - `marker.line.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmax` must be set as well. - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorscale - Sets the colorscale. Has an effect only if in - `marker.line.color` is set to a numerical - array. The colorscale must be an array - containing arrays mapping a normalized value to - an rgb, rgba, hex, hsl, hsv, or named color - string. At minimum, a mapping for the lowest - (0) and highest (1) values are required. For - example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use - `marker.line.cmin` and `marker.line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.line.color` is set to - a numerical array. If true, `marker.line.cmin` - will correspond to the last color in the array - and `marker.line.cmax` will correspond to the - first color. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. - Returns ------- plotly.graph_objs.scattergl.marker.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # opacity # ------- @@ -780,11 +363,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # opacitysrc # ---------- @@ -800,11 +383,11 @@ def opacitysrc(self): ------- str """ - return self["opacitysrc"] + return self['opacitysrc'] @opacitysrc.setter def opacitysrc(self, val): - self["opacitysrc"] = val + self['opacitysrc'] = val # reversescale # ------------ @@ -823,11 +406,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # showscale # --------- @@ -845,11 +428,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # size # ---- @@ -866,11 +449,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizemin # ------- @@ -888,11 +471,11 @@ def sizemin(self): ------- int|float """ - return self["sizemin"] + return self['sizemin'] @sizemin.setter def sizemin(self, val): - self["sizemin"] = val + self['sizemin'] = val # sizemode # -------- @@ -911,11 +494,11 @@ def sizemode(self): ------- Any """ - return self["sizemode"] + return self['sizemode'] @sizemode.setter def sizemode(self, val): - self["sizemode"] = val + self['sizemode'] = val # sizeref # ------- @@ -933,11 +516,11 @@ def sizeref(self): ------- int|float """ - return self["sizeref"] + return self['sizeref'] @sizeref.setter def sizeref(self, val): - self["sizeref"] = val + self['sizeref'] = val # sizesrc # ------- @@ -953,11 +536,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # symbol # ------ @@ -1066,11 +649,11 @@ def symbol(self): ------- Any|numpy.ndarray """ - return self["symbol"] + return self['symbol'] @symbol.setter def symbol(self, val): - self["symbol"] = val + self['symbol'] = val # symbolsrc # --------- @@ -1086,11 +669,11 @@ def symbolsrc(self): ------- str """ - return self["symbolsrc"] + return self['symbolsrc'] @symbolsrc.setter def symbolsrc(self, val): - self["symbolsrc"] = val + self['symbolsrc'] = val # Self properties description # --------------------------- @@ -1214,36 +797,34 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `symbol`. """ - - def __init__( - self, - arg=None, - angle=None, - anglesrc=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorbar=None, - colorscale=None, - colorsrc=None, - line=None, - opacity=None, - opacitysrc=None, - reversescale=None, - showscale=None, - size=None, - sizemin=None, - sizemode=None, - sizeref=None, - sizesrc=None, - symbol=None, - symbolsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + angle=None, + anglesrc=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorbar=None, + colorscale=None, + colorsrc=None, + line=None, + opacity=None, + opacitysrc=None, + reversescale=None, + showscale=None, + size=None, + sizemin=None, + sizemode=None, + sizeref=None, + sizesrc=None, + symbol=None, + symbolsrc=None, + **kwargs + ): """ Construct a new Marker object @@ -1374,10 +955,10 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1389,116 +970,43 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergl.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergl.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scattergl.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("angle", None) - _v = angle if angle is not None else _v - if _v is not None: - self["angle"] = _v - _v = arg.pop("anglesrc", None) - _v = anglesrc if anglesrc is not None else _v - if _v is not None: - self["anglesrc"] = _v - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("opacitysrc", None) - _v = opacitysrc if opacitysrc is not None else _v - if _v is not None: - self["opacitysrc"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizemin", None) - _v = sizemin if sizemin is not None else _v - if _v is not None: - self["sizemin"] = _v - _v = arg.pop("sizemode", None) - _v = sizemode if sizemode is not None else _v - if _v is not None: - self["sizemode"] = _v - _v = arg.pop("sizeref", None) - _v = sizeref if sizeref is not None else _v - if _v is not None: - self["sizeref"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("symbol", None) - _v = symbol if symbol is not None else _v - if _v is not None: - self["symbol"] = _v - _v = arg.pop("symbolsrc", None) - _v = symbolsrc if symbolsrc is not None else _v - if _v is not None: - self["symbolsrc"] = _v + self._init_provided('angle', arg, angle) + self._init_provided('anglesrc', arg, anglesrc) + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('line', arg, line) + self._init_provided('opacity', arg, opacity) + self._init_provided('opacitysrc', arg, opacitysrc) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('showscale', arg, showscale) + self._init_provided('size', arg, size) + self._init_provided('sizemin', arg, sizemin) + self._init_provided('sizemode', arg, sizemode) + self._init_provided('sizeref', arg, sizeref) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('symbol', arg, symbol) + self._init_provided('symbolsrc', arg, symbolsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/_selected.py b/packages/python/plotly/plotly/graph_objs/scattergl/_selected.py index a7fabdd410a..16c28e2767a 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/_selected.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/_selected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Selected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergl" - _path_str = "scattergl.selected" + _parent_path_str = 'scattergl' + _path_str = 'scattergl.selected' _valid_props = {"marker", "textfont"} # marker @@ -21,24 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. - size - Sets the marker size of selected points. - Returns ------- plotly.graph_objs.scattergl.selected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # textfont # -------- @@ -51,20 +44,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - Sets the text font color of selected points. - Returns ------- plotly.graph_objs.scattergl.selected.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # Self properties description # --------------------------- @@ -78,8 +66,12 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.scattergl.selected.Textfon t` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, textfont=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + textfont=None, + **kwargs + ): """ Construct a new Selected object @@ -100,10 +92,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") + super(Selected, self).__init__('selected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -115,28 +107,21 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergl.Selected constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergl.Selected`""" - ) +an instance of :class:`plotly.graph_objs.scattergl.Selected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v + self._init_provided('marker', arg, marker) + self._init_provided('textfont', arg, textfont) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/_stream.py b/packages/python/plotly/plotly/graph_objs/scattergl/_stream.py index 9377ded88d1..d1f37abf3e5 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergl" - _path_str = "scattergl.stream" + _parent_path_str = 'scattergl' + _path_str = 'scattergl.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergl.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergl.Stream`""" - ) +an instance of :class:`plotly.graph_objs.scattergl.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/_textfont.py b/packages/python/plotly/plotly/graph_objs/scattergl/_textfont.py index 243984489ea..dc5de4af349 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,22 +8,9 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergl" - _path_str = "scattergl.textfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "size", - "sizesrc", - "style", - "stylesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'scattergl' + _path_str = 'scattergl.textfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "size", "sizesrc", "style", "stylesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -33,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -95,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -127,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -147,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # size # ---- @@ -166,11 +120,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -186,11 +140,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -209,11 +163,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -229,11 +183,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # variant # ------- @@ -251,11 +205,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -271,11 +225,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -293,11 +247,11 @@ def weight(self): ------- Any|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -313,11 +267,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -368,24 +322,22 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Textfont object @@ -445,10 +397,10 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -460,68 +412,31 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergl.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergl.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.scattergl.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/_unselected.py b/packages/python/plotly/plotly/graph_objs/scattergl/_unselected.py index b7c165da06c..36537af467f 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/_unselected.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/_unselected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Unselected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergl" - _path_str = "scattergl.unselected" + _parent_path_str = 'scattergl' + _path_str = 'scattergl.unselected' _valid_props = {"marker", "textfont"} # marker @@ -21,27 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - size - Sets the marker size of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.scattergl.unselected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # textfont # -------- @@ -54,21 +44,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - Sets the text font color of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.scattergl.unselected.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # Self properties description # --------------------------- @@ -82,8 +66,12 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.scattergl.unselected.Textf ont` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, textfont=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + textfont=None, + **kwargs + ): """ Construct a new Unselected object @@ -104,10 +92,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") + super(Unselected, self).__init__('unselected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -119,28 +107,21 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergl.Unselected constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergl.Unselected`""" - ) +an instance of :class:`plotly.graph_objs.scattergl.Unselected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v + self._init_provided('marker', arg, marker) + self._init_provided('textfont', arg, textfont) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergl/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/scattergl/hoverlabel/_font.py index 49fddb0c4c5..aaaa5873e74 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergl.hoverlabel" - _path_str = "scattergl.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'scattergl.hoverlabel' + _path_str = 'scattergl.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergl.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergl.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.scattergl.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergl/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/scattergl/legendgrouptitle/_font.py index c491f7f013e..701534147a3 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergl.legendgrouptitle" - _path_str = "scattergl.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scattergl.legendgrouptitle' + _path_str = 'scattergl.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergl.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergl.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.scattergl.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergl/marker/__init__.py index 8481520e3c9..60bb7edb6d5 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/marker/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._line import Line from . import colorbar else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [".colorbar"], ["._colorbar.ColorBar", "._line.Line"] + __name__, + ['.colorbar'], + ['._colorbar.ColorBar', '._line.Line'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/marker/_colorbar.py b/packages/python/plotly/plotly/graph_objs/scattergl/marker/_colorbar.py index 06c915818d1..224ceb20cc9 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/marker/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/marker/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergl.marker" - _path_str = "scattergl.marker.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'scattergl.marker' + _path_str = 'scattergl.marker.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scattergl.marker.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.scattergl.marker.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.scattergl.marker.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.scattergl.marker.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergl.marker.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergl.marker.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.scattergl.marker.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/marker/_line.py b/packages/python/plotly/plotly/graph_objs/scattergl/marker/_line.py index 2e04595e353..37ae695a18d 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/marker/_line.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/marker/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,22 +8,9 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergl.marker" - _path_str = "scattergl.marker.line" - _valid_props = { - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorscale", - "colorsrc", - "reversescale", - "width", - "widthsrc", - } + _parent_path_str = 'scattergl.marker' + _path_str = 'scattergl.marker.line' + _valid_props = {"autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorscale", "colorsrc", "reversescale", "width", "widthsrc"} # autocolorscale # -------------- @@ -43,11 +32,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -68,11 +57,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -91,11 +80,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -116,11 +105,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -139,11 +128,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -160,42 +149,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to scattergl.marker.line.colorscale - A list or array of any of the above @@ -204,11 +158,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -231,11 +185,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorscale # ---------- @@ -286,11 +240,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -306,11 +260,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # reversescale # ------------ @@ -330,11 +284,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # width # ----- @@ -351,11 +305,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # widthsrc # -------- @@ -371,11 +325,11 @@ def widthsrc(self): ------- str """ - return self["widthsrc"] + return self['widthsrc'] @widthsrc.setter def widthsrc(self, val): - self["widthsrc"] = val + self['widthsrc'] = val # Self properties description # --------------------------- @@ -461,24 +415,22 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `width`. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorscale=None, - colorsrc=None, - reversescale=None, - width=None, - widthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorscale=None, + colorsrc=None, + reversescale=None, + width=None, + widthsrc=None, + **kwargs + ): """ Construct a new Line object @@ -571,10 +523,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -586,68 +538,31 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergl.marker.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergl.marker.Line`""" - ) +an instance of :class:`plotly.graph_objs.scattergl.marker.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("widthsrc", None) - _v = widthsrc if widthsrc is not None else _v - if _v is not None: - self["widthsrc"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('width', arg, width) + self._init_provided('widthsrc', arg, widthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/_tickfont.py index aeca1b6fced..4883c69be51 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergl.marker.colorbar" - _path_str = "scattergl.marker.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scattergl.marker.colorbar' + _path_str = 'scattergl.marker.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergl.marker.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergl.marker.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.scattergl.marker.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/_tickformatstop.py index d6a4a14943d..f0ebd23e90f 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergl.marker.colorbar" - _path_str = "scattergl.marker.colorbar.tickformatstop" + _parent_path_str = 'scattergl.marker.colorbar' + _path_str = 'scattergl.marker.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergl.marker.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergl.marker.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.scattergl.marker.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/_title.py index 2f432c735b5..08a523312e1 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergl.marker.colorbar" - _path_str = "scattergl.marker.colorbar.title" + _parent_path_str = 'scattergl.marker.colorbar' + _path_str = 'scattergl.marker.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scattergl.marker.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergl.marker.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergl.marker.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.scattergl.marker.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/title/_font.py index 6ecbf0502cd..799ed3e00ae 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergl.marker.colorbar.title" - _path_str = "scattergl.marker.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scattergl.marker.colorbar.title' + _path_str = 'scattergl.marker.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergl.marker.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergl.marker.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.scattergl.marker.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergl/selected/__init__.py index ae964f0b65f..4f70de0f5a9 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/selected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker from ._textfont import Textfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.Marker", "._textfont.Textfont"] + __name__, + [], + ['._marker.Marker', '._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/selected/_marker.py b/packages/python/plotly/plotly/graph_objs/scattergl/selected/_marker.py index 7c75bf66ca0..5342503953f 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/selected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/selected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergl.selected" - _path_str = "scattergl.selected.marker" + _parent_path_str = 'scattergl.selected' + _path_str = 'scattergl.selected.marker' _valid_props = {"color", "opacity", "size"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -83,11 +50,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # size # ---- @@ -103,11 +70,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # Self properties description # --------------------------- @@ -121,8 +88,13 @@ def _prop_descriptions(self): size Sets the marker size of selected points. """ - - def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + size=None, + **kwargs + ): """ Construct a new Marker object @@ -143,10 +115,10 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -158,32 +130,22 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergl.selected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergl.selected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scattergl.selected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) + self._init_provided('size', arg, size) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/selected/_textfont.py b/packages/python/plotly/plotly/graph_objs/scattergl/selected/_textfont.py index d72808f27ea..048e6ddfb6c 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/selected/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/selected/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergl.selected" - _path_str = "scattergl.selected.textfont" + _parent_path_str = 'scattergl.selected' + _path_str = 'scattergl.selected.textfont' _valid_props = {"color"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # Self properties description # --------------------------- @@ -77,8 +44,11 @@ def _prop_descriptions(self): color Sets the text font color of selected points. """ - - def __init__(self, arg=None, color=None, **kwargs): + def __init__(self, + arg=None, + color=None, + **kwargs + ): """ Construct a new Textfont object @@ -95,10 +65,10 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -110,24 +80,20 @@ def __init__(self, arg=None, color=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergl.selected.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergl.selected.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.scattergl.selected.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v + self._init_provided('color', arg, color) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergl/unselected/__init__.py index ae964f0b65f..4f70de0f5a9 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/unselected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker from ._textfont import Textfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.Marker", "._textfont.Textfont"] + __name__, + [], + ['._marker.Marker', '._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/unselected/_marker.py b/packages/python/plotly/plotly/graph_objs/scattergl/unselected/_marker.py index 188144c355f..53eeb10eecc 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/unselected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/unselected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergl.unselected" - _path_str = "scattergl.unselected.marker" + _parent_path_str = 'scattergl.unselected' + _path_str = 'scattergl.unselected.marker' _valid_props = {"color", "opacity", "size"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -85,11 +52,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # size # ---- @@ -106,11 +73,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # Self properties description # --------------------------- @@ -127,8 +94,13 @@ def _prop_descriptions(self): Sets the marker size of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + size=None, + **kwargs + ): """ Construct a new Marker object @@ -152,10 +124,10 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -167,32 +139,22 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergl.unselected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergl.unselected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scattergl.unselected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) + self._init_provided('size', arg, size) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/unselected/_textfont.py b/packages/python/plotly/plotly/graph_objs/scattergl/unselected/_textfont.py index 03f459b9dc7..320aba6777b 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/unselected/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/unselected/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattergl.unselected" - _path_str = "scattergl.unselected.textfont" + _parent_path_str = 'scattergl.unselected' + _path_str = 'scattergl.unselected.textfont' _valid_props = {"color"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # Self properties description # --------------------------- @@ -79,8 +46,11 @@ def _prop_descriptions(self): Sets the text font color of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, color=None, **kwargs): + def __init__(self, + arg=None, + color=None, + **kwargs + ): """ Construct a new Textfont object @@ -98,10 +68,10 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -113,24 +83,20 @@ def __init__(self, arg=None, color=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattergl.unselected.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattergl.unselected.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.scattergl.unselected.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v + self._init_provided('color', arg, color) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermap/__init__.py b/packages/python/plotly/plotly/graph_objs/scattermap/__init__.py index a32d23f4388..dc08dfdaa14 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermap/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattermap/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._cluster import Cluster from ._hoverlabel import Hoverlabel @@ -18,19 +17,10 @@ from . import unselected else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".hoverlabel", ".legendgrouptitle", ".marker", ".selected", ".unselected"], - [ - "._cluster.Cluster", - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._line.Line", - "._marker.Marker", - "._selected.Selected", - "._stream.Stream", - "._textfont.Textfont", - "._unselected.Unselected", - ], + ['.hoverlabel', '.legendgrouptitle', '.marker', '.selected', '.unselected'], + ['._cluster.Cluster', '._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._line.Line', '._marker.Marker', '._selected.Selected', '._stream.Stream', '._textfont.Textfont', '._unselected.Unselected'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scattermap/_cluster.py b/packages/python/plotly/plotly/graph_objs/scattermap/_cluster.py index ebfd9bfa66a..6edfadb3cd4 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermap/_cluster.py +++ b/packages/python/plotly/plotly/graph_objs/scattermap/_cluster.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,20 +8,9 @@ class Cluster(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermap" - _path_str = "scattermap.cluster" - _valid_props = { - "color", - "colorsrc", - "enabled", - "maxzoom", - "opacity", - "opacitysrc", - "size", - "sizesrc", - "step", - "stepsrc", - } + _parent_path_str = 'scattermap' + _path_str = 'scattermap.cluster' + _valid_props = {"color", "colorsrc", "enabled", "maxzoom", "opacity", "opacitysrc", "size", "sizesrc", "step", "stepsrc"} # color # ----- @@ -33,53 +24,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -95,11 +51,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # enabled # ------- @@ -115,11 +71,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # maxzoom # ------- @@ -136,11 +92,11 @@ def maxzoom(self): ------- int|float """ - return self["maxzoom"] + return self['maxzoom'] @maxzoom.setter def maxzoom(self, val): - self["maxzoom"] = val + self['maxzoom'] = val # opacity # ------- @@ -157,11 +113,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # opacitysrc # ---------- @@ -177,11 +133,11 @@ def opacitysrc(self): ------- str """ - return self["opacitysrc"] + return self['opacitysrc'] @opacitysrc.setter def opacitysrc(self, val): - self["opacitysrc"] = val + self['opacitysrc'] = val # size # ---- @@ -198,11 +154,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -218,11 +174,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # step # ---- @@ -243,11 +199,11 @@ def step(self): ------- int|float|numpy.ndarray """ - return self["step"] + return self['step'] @step.setter def step(self, val): - self["step"] = val + self['step'] = val # stepsrc # ------- @@ -263,11 +219,11 @@ def stepsrc(self): ------- str """ - return self["stepsrc"] + return self['stepsrc'] @stepsrc.setter def stepsrc(self, val): - self["stepsrc"] = val + self['stepsrc'] = val # Self properties description # --------------------------- @@ -305,22 +261,20 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `step`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - enabled=None, - maxzoom=None, - opacity=None, - opacitysrc=None, - size=None, - sizesrc=None, - step=None, - stepsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + enabled=None, + maxzoom=None, + opacity=None, + opacitysrc=None, + size=None, + sizesrc=None, + step=None, + stepsrc=None, + **kwargs + ): """ Construct a new Cluster object @@ -365,10 +319,10 @@ def __init__( ------- Cluster """ - super(Cluster, self).__init__("cluster") + super(Cluster, self).__init__('cluster') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -380,60 +334,29 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermap.Cluster constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermap.Cluster`""" - ) +an instance of :class:`plotly.graph_objs.scattermap.Cluster`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("maxzoom", None) - _v = maxzoom if maxzoom is not None else _v - if _v is not None: - self["maxzoom"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("opacitysrc", None) - _v = opacitysrc if opacitysrc is not None else _v - if _v is not None: - self["opacitysrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("step", None) - _v = step if step is not None else _v - if _v is not None: - self["step"] = _v - _v = arg.pop("stepsrc", None) - _v = stepsrc if stepsrc is not None else _v - if _v is not None: - self["stepsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('enabled', arg, enabled) + self._init_provided('maxzoom', arg, maxzoom) + self._init_provided('opacity', arg, opacity) + self._init_provided('opacitysrc', arg, opacitysrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('step', arg, step) + self._init_provided('stepsrc', arg, stepsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermap/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/scattermap/_hoverlabel.py index 3918b3de3cf..3733c10ab16 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermap/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/scattermap/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermap" - _path_str = "scattermap.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'scattermap' + _path_str = 'scattermap.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.scattermap.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermap.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermap.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.scattermap.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermap/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/scattermap/_legendgrouptitle.py index 7c149aebb30..257129f75e1 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermap/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/scattermap/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermap" - _path_str = "scattermap.legendgrouptitle" + _parent_path_str = 'scattermap' + _path_str = 'scattermap.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scattermap.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermap.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermap.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.scattermap.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermap/_line.py b/packages/python/plotly/plotly/graph_objs/scattermap/_line.py index 1ea2f18c47b..be5251d169d 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermap/_line.py +++ b/packages/python/plotly/plotly/graph_objs/scattermap/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermap" - _path_str = "scattermap.line" + _parent_path_str = 'scattermap' + _path_str = 'scattermap.line' _valid_props = {"color", "width"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # width # ----- @@ -83,11 +50,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -99,8 +66,12 @@ def _prop_descriptions(self): width Sets the line width (in px). """ - - def __init__(self, arg=None, color=None, width=None, **kwargs): + def __init__(self, + arg=None, + color=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -119,10 +90,10 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -134,28 +105,21 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermap.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermap.Line`""" - ) +an instance of :class:`plotly.graph_objs.scattermap.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermap/_marker.py b/packages/python/plotly/plotly/graph_objs/scattermap/_marker.py index df69d1b826d..4255417ebc7 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermap/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scattermap/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,34 +8,9 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermap" - _path_str = "scattermap.marker" - _valid_props = { - "allowoverlap", - "angle", - "anglesrc", - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorbar", - "colorscale", - "colorsrc", - "opacity", - "opacitysrc", - "reversescale", - "showscale", - "size", - "sizemin", - "sizemode", - "sizeref", - "sizesrc", - "symbol", - "symbolsrc", - } + _parent_path_str = 'scattermap' + _path_str = 'scattermap.marker' + _valid_props = {"allowoverlap", "angle", "anglesrc", "autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorbar", "colorscale", "colorsrc", "opacity", "opacitysrc", "reversescale", "showscale", "size", "sizemin", "sizemode", "sizeref", "sizesrc", "symbol", "symbolsrc"} # allowoverlap # ------------ @@ -49,11 +26,11 @@ def allowoverlap(self): ------- bool """ - return self["allowoverlap"] + return self['allowoverlap'] @allowoverlap.setter def allowoverlap(self, val): - self["allowoverlap"] = val + self['allowoverlap'] = val # angle # ----- @@ -73,11 +50,11 @@ def angle(self): ------- int|float|numpy.ndarray """ - return self["angle"] + return self['angle'] @angle.setter def angle(self, val): - self["angle"] = val + self['angle'] = val # anglesrc # -------- @@ -93,11 +70,11 @@ def anglesrc(self): ------- str """ - return self["anglesrc"] + return self['anglesrc'] @anglesrc.setter def anglesrc(self, val): - self["anglesrc"] = val + self['anglesrc'] = val # autocolorscale # -------------- @@ -119,11 +96,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -144,11 +121,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -167,11 +144,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -191,11 +168,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -214,11 +191,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -235,42 +212,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to scattermap.marker.colorscale - A list or array of any of the above @@ -279,11 +221,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -306,11 +248,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -323,282 +265,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.scatter - map.marker.colorbar.Tickformatstop` instances - or dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.scattermap.marker.colorbar.tickformatstopdefa - ults), sets the default property values to use - for elements of - scattermap.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.scattermap.marker. - colorbar.Title` instance or dict with - compatible properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.scattermap.marker.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -648,11 +323,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -668,11 +343,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # opacity # ------- @@ -689,11 +364,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # opacitysrc # ---------- @@ -709,11 +384,11 @@ def opacitysrc(self): ------- str """ - return self["opacitysrc"] + return self['opacitysrc'] @opacitysrc.setter def opacitysrc(self, val): - self["opacitysrc"] = val + self['opacitysrc'] = val # reversescale # ------------ @@ -732,11 +407,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # showscale # --------- @@ -754,11 +429,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # size # ---- @@ -775,11 +450,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizemin # ------- @@ -797,11 +472,11 @@ def sizemin(self): ------- int|float """ - return self["sizemin"] + return self['sizemin'] @sizemin.setter def sizemin(self, val): - self["sizemin"] = val + self['sizemin'] = val # sizemode # -------- @@ -820,11 +495,11 @@ def sizemode(self): ------- Any """ - return self["sizemode"] + return self['sizemode'] @sizemode.setter def sizemode(self, val): - self["sizemode"] = val + self['sizemode'] = val # sizeref # ------- @@ -842,11 +517,11 @@ def sizeref(self): ------- int|float """ - return self["sizeref"] + return self['sizeref'] @sizeref.setter def sizeref(self, val): - self["sizeref"] = val + self['sizeref'] = val # sizesrc # ------- @@ -862,11 +537,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # symbol # ------ @@ -886,11 +561,11 @@ def symbol(self): ------- str|numpy.ndarray """ - return self["symbol"] + return self['symbol'] @symbol.setter def symbol(self, val): - self["symbol"] = val + self['symbol'] = val # symbolsrc # --------- @@ -906,11 +581,11 @@ def symbolsrc(self): ------- str """ - return self["symbolsrc"] + return self['symbolsrc'] @symbolsrc.setter def symbolsrc(self, val): - self["symbolsrc"] = val + self['symbolsrc'] = val # Self properties description # --------------------------- @@ -1035,36 +710,34 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `symbol`. """ - - def __init__( - self, - arg=None, - allowoverlap=None, - angle=None, - anglesrc=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorbar=None, - colorscale=None, - colorsrc=None, - opacity=None, - opacitysrc=None, - reversescale=None, - showscale=None, - size=None, - sizemin=None, - sizemode=None, - sizeref=None, - sizesrc=None, - symbol=None, - symbolsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + allowoverlap=None, + angle=None, + anglesrc=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorbar=None, + colorscale=None, + colorsrc=None, + opacity=None, + opacitysrc=None, + reversescale=None, + showscale=None, + size=None, + sizemin=None, + sizemode=None, + sizeref=None, + sizesrc=None, + symbol=None, + symbolsrc=None, + **kwargs + ): """ Construct a new Marker object @@ -1196,10 +869,10 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1211,116 +884,43 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermap.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermap.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scattermap.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("allowoverlap", None) - _v = allowoverlap if allowoverlap is not None else _v - if _v is not None: - self["allowoverlap"] = _v - _v = arg.pop("angle", None) - _v = angle if angle is not None else _v - if _v is not None: - self["angle"] = _v - _v = arg.pop("anglesrc", None) - _v = anglesrc if anglesrc is not None else _v - if _v is not None: - self["anglesrc"] = _v - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("opacitysrc", None) - _v = opacitysrc if opacitysrc is not None else _v - if _v is not None: - self["opacitysrc"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizemin", None) - _v = sizemin if sizemin is not None else _v - if _v is not None: - self["sizemin"] = _v - _v = arg.pop("sizemode", None) - _v = sizemode if sizemode is not None else _v - if _v is not None: - self["sizemode"] = _v - _v = arg.pop("sizeref", None) - _v = sizeref if sizeref is not None else _v - if _v is not None: - self["sizeref"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("symbol", None) - _v = symbol if symbol is not None else _v - if _v is not None: - self["symbol"] = _v - _v = arg.pop("symbolsrc", None) - _v = symbolsrc if symbolsrc is not None else _v - if _v is not None: - self["symbolsrc"] = _v + self._init_provided('allowoverlap', arg, allowoverlap) + self._init_provided('angle', arg, angle) + self._init_provided('anglesrc', arg, anglesrc) + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('opacity', arg, opacity) + self._init_provided('opacitysrc', arg, opacitysrc) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('showscale', arg, showscale) + self._init_provided('size', arg, size) + self._init_provided('sizemin', arg, sizemin) + self._init_provided('sizemode', arg, sizemode) + self._init_provided('sizeref', arg, sizeref) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('symbol', arg, symbol) + self._init_provided('symbolsrc', arg, symbolsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermap/_selected.py b/packages/python/plotly/plotly/graph_objs/scattermap/_selected.py index bdfc7067fd6..94e854e3f6a 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermap/_selected.py +++ b/packages/python/plotly/plotly/graph_objs/scattermap/_selected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Selected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermap" - _path_str = "scattermap.selected" + _parent_path_str = 'scattermap' + _path_str = 'scattermap.selected' _valid_props = {"marker"} # marker @@ -21,24 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. - size - Sets the marker size of selected points. - Returns ------- plotly.graph_objs.scattermap.selected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # Self properties description # --------------------------- @@ -49,8 +42,11 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.scattermap.selected.Marker ` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + **kwargs + ): """ Construct a new Selected object @@ -68,10 +64,10 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") + super(Selected, self).__init__('selected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -83,24 +79,20 @@ def __init__(self, arg=None, marker=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermap.Selected constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermap.Selected`""" - ) +an instance of :class:`plotly.graph_objs.scattermap.Selected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v + self._init_provided('marker', arg, marker) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermap/_stream.py b/packages/python/plotly/plotly/graph_objs/scattermap/_stream.py index 0147e4aeff9..88f5ddfb0c9 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermap/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/scattermap/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermap" - _path_str = "scattermap.stream" + _parent_path_str = 'scattermap' + _path_str = 'scattermap.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermap.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermap.Stream`""" - ) +an instance of :class:`plotly.graph_objs.scattermap.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermap/_textfont.py b/packages/python/plotly/plotly/graph_objs/scattermap/_textfont.py index 411bc39f1ec..93ab6d72134 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermap/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/scattermap/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermap" - _path_str = "scattermap.textfont" + _parent_path_str = 'scattermap' + _path_str = 'scattermap.textfont' _valid_props = {"color", "family", "size", "style", "weight"} # color @@ -20,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -92,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # size # ---- @@ -110,11 +77,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -132,11 +99,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # weight # ------ @@ -154,11 +121,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -189,17 +156,15 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - size=None, - style=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + size=None, + style=None, + weight=None, + **kwargs + ): """ Construct a new Textfont object @@ -241,10 +206,10 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -256,40 +221,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermap.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermap.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.scattermap.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermap/_unselected.py b/packages/python/plotly/plotly/graph_objs/scattermap/_unselected.py index adc562b607f..653fdcfa75d 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermap/_unselected.py +++ b/packages/python/plotly/plotly/graph_objs/scattermap/_unselected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Unselected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermap" - _path_str = "scattermap.unselected" + _parent_path_str = 'scattermap' + _path_str = 'scattermap.unselected' _valid_props = {"marker"} # marker @@ -21,27 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - size - Sets the marker size of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.scattermap.unselected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # Self properties description # --------------------------- @@ -52,8 +42,11 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.scattermap.unselected.Mark er` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + **kwargs + ): """ Construct a new Unselected object @@ -71,10 +64,10 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") + super(Unselected, self).__init__('unselected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -86,24 +79,20 @@ def __init__(self, arg=None, marker=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermap.Unselected constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermap.Unselected`""" - ) +an instance of :class:`plotly.graph_objs.scattermap.Unselected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v + self._init_provided('marker', arg, marker) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermap/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/scattermap/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermap/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattermap/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scattermap/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/scattermap/hoverlabel/_font.py index a64e1f6a3cc..5d081317302 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermap/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scattermap/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermap.hoverlabel" - _path_str = "scattermap.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'scattermap.hoverlabel' + _path_str = 'scattermap.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermap.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermap.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.scattermap.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermap/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/scattermap/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermap/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattermap/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scattermap/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/scattermap/legendgrouptitle/_font.py index 36f64875e88..eb2592aeee4 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermap/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scattermap/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermap.legendgrouptitle" - _path_str = "scattermap.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scattermap.legendgrouptitle' + _path_str = 'scattermap.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermap.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermap.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.scattermap.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermap/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/scattermap/marker/__init__.py index 27dfc9e52fb..c35de683492 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermap/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattermap/marker/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from . import colorbar else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [".colorbar"], ["._colorbar.ColorBar"] + __name__, + ['.colorbar'], + ['._colorbar.ColorBar'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scattermap/marker/_colorbar.py b/packages/python/plotly/plotly/graph_objs/scattermap/marker/_colorbar.py index cbacaa4732e..1b467c4e411 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermap/marker/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/scattermap/marker/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermap.marker" - _path_str = "scattermap.marker.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'scattermap.marker' + _path_str = 'scattermap.marker.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scattermap.marker.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.scattermap.marker.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.scattermap.marker.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.scattermap.marker.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermap.marker.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermap.marker.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.scattermap.marker.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermap/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/scattermap/marker/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermap/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattermap/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scattermap/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/scattermap/marker/colorbar/_tickfont.py index b5237c2f9ef..310736d1f5e 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermap/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/scattermap/marker/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermap.marker.colorbar" - _path_str = "scattermap.marker.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scattermap.marker.colorbar' + _path_str = 'scattermap.marker.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermap.marker.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermap.marker.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.scattermap.marker.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermap/marker/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/scattermap/marker/colorbar/_tickformatstop.py index aac9f8bafb2..4795688833e 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermap/marker/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/scattermap/marker/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermap.marker.colorbar" - _path_str = "scattermap.marker.colorbar.tickformatstop" + _parent_path_str = 'scattermap.marker.colorbar' + _path_str = 'scattermap.marker.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermap.marker.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermap.marker.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.scattermap.marker.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermap/marker/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/scattermap/marker/colorbar/_title.py index ee796ffbb09..aca73e92204 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermap/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/scattermap/marker/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermap.marker.colorbar" - _path_str = "scattermap.marker.colorbar.title" + _parent_path_str = 'scattermap.marker.colorbar' + _path_str = 'scattermap.marker.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scattermap.marker.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermap.marker.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermap.marker.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.scattermap.marker.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermap/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/scattermap/marker/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermap/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattermap/marker/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scattermap/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/scattermap/marker/colorbar/title/_font.py index 0914990dcba..c067cb80539 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermap/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scattermap/marker/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermap.marker.colorbar.title" - _path_str = "scattermap.marker.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scattermap.marker.colorbar.title' + _path_str = 'scattermap.marker.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermap.marker.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermap.marker.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.scattermap.marker.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermap/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/scattermap/selected/__init__.py index dfd34067137..5abe297c1ca 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermap/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattermap/selected/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._marker.Marker'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._marker.Marker"]) diff --git a/packages/python/plotly/plotly/graph_objs/scattermap/selected/_marker.py b/packages/python/plotly/plotly/graph_objs/scattermap/selected/_marker.py index 7d820a8fcd2..bcbaf989c39 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermap/selected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scattermap/selected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermap.selected" - _path_str = "scattermap.selected.marker" + _parent_path_str = 'scattermap.selected' + _path_str = 'scattermap.selected.marker' _valid_props = {"color", "opacity", "size"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -83,11 +50,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # size # ---- @@ -103,11 +70,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # Self properties description # --------------------------- @@ -121,8 +88,13 @@ def _prop_descriptions(self): size Sets the marker size of selected points. """ - - def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + size=None, + **kwargs + ): """ Construct a new Marker object @@ -143,10 +115,10 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -158,32 +130,22 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermap.selected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermap.selected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scattermap.selected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) + self._init_provided('size', arg, size) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermap/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/scattermap/unselected/__init__.py index dfd34067137..5abe297c1ca 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermap/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattermap/unselected/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._marker.Marker'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._marker.Marker"]) diff --git a/packages/python/plotly/plotly/graph_objs/scattermap/unselected/_marker.py b/packages/python/plotly/plotly/graph_objs/scattermap/unselected/_marker.py index 0722a0f7b1a..378de04b427 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermap/unselected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scattermap/unselected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermap.unselected" - _path_str = "scattermap.unselected.marker" + _parent_path_str = 'scattermap.unselected' + _path_str = 'scattermap.unselected.marker' _valid_props = {"color", "opacity", "size"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -85,11 +52,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # size # ---- @@ -106,11 +73,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # Self properties description # --------------------------- @@ -127,8 +94,13 @@ def _prop_descriptions(self): Sets the marker size of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + size=None, + **kwargs + ): """ Construct a new Marker object @@ -152,10 +124,10 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -167,32 +139,22 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermap.unselected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermap.unselected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scattermap.unselected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) + self._init_provided('size', arg, size) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/__init__.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/__init__.py index a32d23f4388..dc08dfdaa14 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._cluster import Cluster from ._hoverlabel import Hoverlabel @@ -18,19 +17,10 @@ from . import unselected else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".hoverlabel", ".legendgrouptitle", ".marker", ".selected", ".unselected"], - [ - "._cluster.Cluster", - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._line.Line", - "._marker.Marker", - "._selected.Selected", - "._stream.Stream", - "._textfont.Textfont", - "._unselected.Unselected", - ], + ['.hoverlabel', '.legendgrouptitle', '.marker', '.selected', '.unselected'], + ['._cluster.Cluster', '._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._line.Line', '._marker.Marker', '._selected.Selected', '._stream.Stream', '._textfont.Textfont', '._unselected.Unselected'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/_cluster.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/_cluster.py index 2d34eb4c16a..e0ce492e880 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/_cluster.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/_cluster.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,20 +8,9 @@ class Cluster(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermapbox" - _path_str = "scattermapbox.cluster" - _valid_props = { - "color", - "colorsrc", - "enabled", - "maxzoom", - "opacity", - "opacitysrc", - "size", - "sizesrc", - "step", - "stepsrc", - } + _parent_path_str = 'scattermapbox' + _path_str = 'scattermapbox.cluster' + _valid_props = {"color", "colorsrc", "enabled", "maxzoom", "opacity", "opacitysrc", "size", "sizesrc", "step", "stepsrc"} # color # ----- @@ -33,53 +24,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -95,11 +51,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # enabled # ------- @@ -115,11 +71,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # maxzoom # ------- @@ -136,11 +92,11 @@ def maxzoom(self): ------- int|float """ - return self["maxzoom"] + return self['maxzoom'] @maxzoom.setter def maxzoom(self, val): - self["maxzoom"] = val + self['maxzoom'] = val # opacity # ------- @@ -157,11 +113,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # opacitysrc # ---------- @@ -177,11 +133,11 @@ def opacitysrc(self): ------- str """ - return self["opacitysrc"] + return self['opacitysrc'] @opacitysrc.setter def opacitysrc(self, val): - self["opacitysrc"] = val + self['opacitysrc'] = val # size # ---- @@ -198,11 +154,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -218,11 +174,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # step # ---- @@ -243,11 +199,11 @@ def step(self): ------- int|float|numpy.ndarray """ - return self["step"] + return self['step'] @step.setter def step(self, val): - self["step"] = val + self['step'] = val # stepsrc # ------- @@ -263,11 +219,11 @@ def stepsrc(self): ------- str """ - return self["stepsrc"] + return self['stepsrc'] @stepsrc.setter def stepsrc(self, val): - self["stepsrc"] = val + self['stepsrc'] = val # Self properties description # --------------------------- @@ -305,22 +261,20 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `step`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - enabled=None, - maxzoom=None, - opacity=None, - opacitysrc=None, - size=None, - sizesrc=None, - step=None, - stepsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + enabled=None, + maxzoom=None, + opacity=None, + opacitysrc=None, + size=None, + sizesrc=None, + step=None, + stepsrc=None, + **kwargs + ): """ Construct a new Cluster object @@ -365,10 +319,10 @@ def __init__( ------- Cluster """ - super(Cluster, self).__init__("cluster") + super(Cluster, self).__init__('cluster') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -380,60 +334,29 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermapbox.Cluster constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermapbox.Cluster`""" - ) +an instance of :class:`plotly.graph_objs.scattermapbox.Cluster`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("maxzoom", None) - _v = maxzoom if maxzoom is not None else _v - if _v is not None: - self["maxzoom"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("opacitysrc", None) - _v = opacitysrc if opacitysrc is not None else _v - if _v is not None: - self["opacitysrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("step", None) - _v = step if step is not None else _v - if _v is not None: - self["step"] = _v - _v = arg.pop("stepsrc", None) - _v = stepsrc if stepsrc is not None else _v - if _v is not None: - self["stepsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('enabled', arg, enabled) + self._init_provided('maxzoom', arg, maxzoom) + self._init_provided('opacity', arg, opacity) + self._init_provided('opacitysrc', arg, opacitysrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('step', arg, step) + self._init_provided('stepsrc', arg, stepsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/_hoverlabel.py index 56376844a03..da5671c80b5 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermapbox" - _path_str = "scattermapbox.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'scattermapbox' + _path_str = 'scattermapbox.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.scattermapbox.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermapbox.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermapbox.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.scattermapbox.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/_legendgrouptitle.py index 9468d3e87d0..f94b15bcba8 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermapbox" - _path_str = "scattermapbox.legendgrouptitle" + _parent_path_str = 'scattermapbox' + _path_str = 'scattermapbox.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scattermapbox.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermapbox.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermapbox.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.scattermapbox.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/_line.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/_line.py index 53702c28166..bca8b577caf 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/_line.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermapbox" - _path_str = "scattermapbox.line" + _parent_path_str = 'scattermapbox' + _path_str = 'scattermapbox.line' _valid_props = {"color", "width"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # width # ----- @@ -83,11 +50,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -99,8 +66,12 @@ def _prop_descriptions(self): width Sets the line width (in px). """ - - def __init__(self, arg=None, color=None, width=None, **kwargs): + def __init__(self, + arg=None, + color=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -119,10 +90,10 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -134,28 +105,21 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermapbox.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermapbox.Line`""" - ) +an instance of :class:`plotly.graph_objs.scattermapbox.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/_marker.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/_marker.py index 089412374da..37b5c43a1f2 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,34 +8,9 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermapbox" - _path_str = "scattermapbox.marker" - _valid_props = { - "allowoverlap", - "angle", - "anglesrc", - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorbar", - "colorscale", - "colorsrc", - "opacity", - "opacitysrc", - "reversescale", - "showscale", - "size", - "sizemin", - "sizemode", - "sizeref", - "sizesrc", - "symbol", - "symbolsrc", - } + _parent_path_str = 'scattermapbox' + _path_str = 'scattermapbox.marker' + _valid_props = {"allowoverlap", "angle", "anglesrc", "autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorbar", "colorscale", "colorsrc", "opacity", "opacitysrc", "reversescale", "showscale", "size", "sizemin", "sizemode", "sizeref", "sizesrc", "symbol", "symbolsrc"} # allowoverlap # ------------ @@ -49,11 +26,11 @@ def allowoverlap(self): ------- bool """ - return self["allowoverlap"] + return self['allowoverlap'] @allowoverlap.setter def allowoverlap(self, val): - self["allowoverlap"] = val + self['allowoverlap'] = val # angle # ----- @@ -73,11 +50,11 @@ def angle(self): ------- int|float|numpy.ndarray """ - return self["angle"] + return self['angle'] @angle.setter def angle(self, val): - self["angle"] = val + self['angle'] = val # anglesrc # -------- @@ -93,11 +70,11 @@ def anglesrc(self): ------- str """ - return self["anglesrc"] + return self['anglesrc'] @anglesrc.setter def anglesrc(self, val): - self["anglesrc"] = val + self['anglesrc'] = val # autocolorscale # -------------- @@ -119,11 +96,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -144,11 +121,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -167,11 +144,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -191,11 +168,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -214,11 +191,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -235,42 +212,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to scattermapbox.marker.colorscale - A list or array of any of the above @@ -279,11 +221,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -306,11 +248,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -323,282 +265,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.scatter - mapbox.marker.colorbar.Tickformatstop` - instances or dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.scattermapbox.marker.colorbar.tickformatstopd - efaults), sets the default property values to - use for elements of - scattermapbox.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.scattermapbox.mark - er.colorbar.Title` instance or dict with - compatible properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.scattermapbox.marker.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -648,11 +323,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -668,11 +343,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # opacity # ------- @@ -689,11 +364,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # opacitysrc # ---------- @@ -709,11 +384,11 @@ def opacitysrc(self): ------- str """ - return self["opacitysrc"] + return self['opacitysrc'] @opacitysrc.setter def opacitysrc(self, val): - self["opacitysrc"] = val + self['opacitysrc'] = val # reversescale # ------------ @@ -732,11 +407,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # showscale # --------- @@ -754,11 +429,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # size # ---- @@ -775,11 +450,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizemin # ------- @@ -797,11 +472,11 @@ def sizemin(self): ------- int|float """ - return self["sizemin"] + return self['sizemin'] @sizemin.setter def sizemin(self, val): - self["sizemin"] = val + self['sizemin'] = val # sizemode # -------- @@ -820,11 +495,11 @@ def sizemode(self): ------- Any """ - return self["sizemode"] + return self['sizemode'] @sizemode.setter def sizemode(self, val): - self["sizemode"] = val + self['sizemode'] = val # sizeref # ------- @@ -842,11 +517,11 @@ def sizeref(self): ------- int|float """ - return self["sizeref"] + return self['sizeref'] @sizeref.setter def sizeref(self, val): - self["sizeref"] = val + self['sizeref'] = val # sizesrc # ------- @@ -862,11 +537,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # symbol # ------ @@ -886,11 +561,11 @@ def symbol(self): ------- str|numpy.ndarray """ - return self["symbol"] + return self['symbol'] @symbol.setter def symbol(self, val): - self["symbol"] = val + self['symbol'] = val # symbolsrc # --------- @@ -906,11 +581,11 @@ def symbolsrc(self): ------- str """ - return self["symbolsrc"] + return self['symbolsrc'] @symbolsrc.setter def symbolsrc(self, val): - self["symbolsrc"] = val + self['symbolsrc'] = val # Self properties description # --------------------------- @@ -1035,36 +710,34 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `symbol`. """ - - def __init__( - self, - arg=None, - allowoverlap=None, - angle=None, - anglesrc=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorbar=None, - colorscale=None, - colorsrc=None, - opacity=None, - opacitysrc=None, - reversescale=None, - showscale=None, - size=None, - sizemin=None, - sizemode=None, - sizeref=None, - sizesrc=None, - symbol=None, - symbolsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + allowoverlap=None, + angle=None, + anglesrc=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorbar=None, + colorscale=None, + colorsrc=None, + opacity=None, + opacitysrc=None, + reversescale=None, + showscale=None, + size=None, + sizemin=None, + sizemode=None, + sizeref=None, + sizesrc=None, + symbol=None, + symbolsrc=None, + **kwargs + ): """ Construct a new Marker object @@ -1196,10 +869,10 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1211,116 +884,43 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermapbox.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermapbox.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scattermapbox.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("allowoverlap", None) - _v = allowoverlap if allowoverlap is not None else _v - if _v is not None: - self["allowoverlap"] = _v - _v = arg.pop("angle", None) - _v = angle if angle is not None else _v - if _v is not None: - self["angle"] = _v - _v = arg.pop("anglesrc", None) - _v = anglesrc if anglesrc is not None else _v - if _v is not None: - self["anglesrc"] = _v - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("opacitysrc", None) - _v = opacitysrc if opacitysrc is not None else _v - if _v is not None: - self["opacitysrc"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizemin", None) - _v = sizemin if sizemin is not None else _v - if _v is not None: - self["sizemin"] = _v - _v = arg.pop("sizemode", None) - _v = sizemode if sizemode is not None else _v - if _v is not None: - self["sizemode"] = _v - _v = arg.pop("sizeref", None) - _v = sizeref if sizeref is not None else _v - if _v is not None: - self["sizeref"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("symbol", None) - _v = symbol if symbol is not None else _v - if _v is not None: - self["symbol"] = _v - _v = arg.pop("symbolsrc", None) - _v = symbolsrc if symbolsrc is not None else _v - if _v is not None: - self["symbolsrc"] = _v + self._init_provided('allowoverlap', arg, allowoverlap) + self._init_provided('angle', arg, angle) + self._init_provided('anglesrc', arg, anglesrc) + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('opacity', arg, opacity) + self._init_provided('opacitysrc', arg, opacitysrc) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('showscale', arg, showscale) + self._init_provided('size', arg, size) + self._init_provided('sizemin', arg, sizemin) + self._init_provided('sizemode', arg, sizemode) + self._init_provided('sizeref', arg, sizeref) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('symbol', arg, symbol) + self._init_provided('symbolsrc', arg, symbolsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/_selected.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/_selected.py index 21df8b5b8c5..d66971bfb84 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/_selected.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/_selected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Selected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermapbox" - _path_str = "scattermapbox.selected" + _parent_path_str = 'scattermapbox' + _path_str = 'scattermapbox.selected' _valid_props = {"marker"} # marker @@ -21,24 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. - size - Sets the marker size of selected points. - Returns ------- plotly.graph_objs.scattermapbox.selected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # Self properties description # --------------------------- @@ -49,8 +42,11 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.scattermapbox.selected.Mar ker` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + **kwargs + ): """ Construct a new Selected object @@ -68,10 +64,10 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") + super(Selected, self).__init__('selected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -83,24 +79,20 @@ def __init__(self, arg=None, marker=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermapbox.Selected constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermapbox.Selected`""" - ) +an instance of :class:`plotly.graph_objs.scattermapbox.Selected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v + self._init_provided('marker', arg, marker) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/_stream.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/_stream.py index 20424942566..255c8c4d9fd 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermapbox" - _path_str = "scattermapbox.stream" + _parent_path_str = 'scattermapbox' + _path_str = 'scattermapbox.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermapbox.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermapbox.Stream`""" - ) +an instance of :class:`plotly.graph_objs.scattermapbox.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/_textfont.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/_textfont.py index 76e95486447..77d46129c62 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermapbox" - _path_str = "scattermapbox.textfont" + _parent_path_str = 'scattermapbox' + _path_str = 'scattermapbox.textfont' _valid_props = {"color", "family", "size", "style", "weight"} # color @@ -20,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -92,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # size # ---- @@ -110,11 +77,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -132,11 +99,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # weight # ------ @@ -154,11 +121,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -189,17 +156,15 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - size=None, - style=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + size=None, + style=None, + weight=None, + **kwargs + ): """ Construct a new Textfont object @@ -241,10 +206,10 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -256,40 +221,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermapbox.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermapbox.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.scattermapbox.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/_unselected.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/_unselected.py index 789952d317c..0975cea2185 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/_unselected.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/_unselected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Unselected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermapbox" - _path_str = "scattermapbox.unselected" + _parent_path_str = 'scattermapbox' + _path_str = 'scattermapbox.unselected' _valid_props = {"marker"} # marker @@ -21,27 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - size - Sets the marker size of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.scattermapbox.unselected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # Self properties description # --------------------------- @@ -52,8 +42,11 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.scattermapbox.unselected.M arker` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + **kwargs + ): """ Construct a new Unselected object @@ -71,10 +64,10 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") + super(Unselected, self).__init__('unselected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -86,24 +79,20 @@ def __init__(self, arg=None, marker=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermapbox.Unselected constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermapbox.Unselected`""" - ) +an instance of :class:`plotly.graph_objs.scattermapbox.Unselected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v + self._init_provided('marker', arg, marker) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/hoverlabel/_font.py index 8fda3dd0c0c..735b2113929 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermapbox.hoverlabel" - _path_str = "scattermapbox.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'scattermapbox.hoverlabel' + _path_str = 'scattermapbox.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermapbox.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermapbox.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.scattermapbox.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/legendgrouptitle/_font.py index bc6e44c4da0..34c8cbee069 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermapbox.legendgrouptitle" - _path_str = "scattermapbox.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scattermapbox.legendgrouptitle' + _path_str = 'scattermapbox.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermapbox.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermapbox.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.scattermapbox.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/__init__.py index 27dfc9e52fb..c35de683492 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from . import colorbar else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [".colorbar"], ["._colorbar.ColorBar"] + __name__, + ['.colorbar'], + ['._colorbar.ColorBar'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/_colorbar.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/_colorbar.py index 684ef30a369..a00dd325b0d 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermapbox.marker" - _path_str = "scattermapbox.marker.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'scattermapbox.marker' + _path_str = 'scattermapbox.marker.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scattermapbox.marker.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.scattermapbox.marker.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.scattermapbox.marker.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.scattermapbox.marker.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermapbox.marker.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermapbox.marker.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.scattermapbox.marker.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/_tickfont.py index 903e0b3c9b8..e4f5107361d 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermapbox.marker.colorbar" - _path_str = "scattermapbox.marker.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scattermapbox.marker.colorbar' + _path_str = 'scattermapbox.marker.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermapbox.marker.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermapbox.marker.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.scattermapbox.marker.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/_tickformatstop.py index 1c215a3bf2b..a2c7b3121f7 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermapbox.marker.colorbar" - _path_str = "scattermapbox.marker.colorbar.tickformatstop" + _parent_path_str = 'scattermapbox.marker.colorbar' + _path_str = 'scattermapbox.marker.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermapbox.marker.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermapbox.marker.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.scattermapbox.marker.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/_title.py index 812ba8dfe0a..b2c187a371e 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermapbox.marker.colorbar" - _path_str = "scattermapbox.marker.colorbar.title" + _parent_path_str = 'scattermapbox.marker.colorbar' + _path_str = 'scattermapbox.marker.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scattermapbox.marker.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermapbox.marker.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermapbox.marker.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.scattermapbox.marker.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/title/_font.py index 0e046a0e6d4..6ad2e5cf616 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermapbox.marker.colorbar.title" - _path_str = "scattermapbox.marker.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scattermapbox.marker.colorbar.title' + _path_str = 'scattermapbox.marker.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermapbox.marker.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermapbox.marker.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.scattermapbox.marker.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/selected/__init__.py index dfd34067137..5abe297c1ca 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/selected/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._marker.Marker'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._marker.Marker"]) diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/selected/_marker.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/selected/_marker.py index 14f82d5fa06..8d113251b0e 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/selected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/selected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermapbox.selected" - _path_str = "scattermapbox.selected.marker" + _parent_path_str = 'scattermapbox.selected' + _path_str = 'scattermapbox.selected.marker' _valid_props = {"color", "opacity", "size"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -83,11 +50,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # size # ---- @@ -103,11 +70,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # Self properties description # --------------------------- @@ -121,8 +88,13 @@ def _prop_descriptions(self): size Sets the marker size of selected points. """ - - def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + size=None, + **kwargs + ): """ Construct a new Marker object @@ -143,10 +115,10 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -158,32 +130,22 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermapbox.selected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermapbox.selected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scattermapbox.selected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) + self._init_provided('size', arg, size) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/unselected/__init__.py index dfd34067137..5abe297c1ca 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/unselected/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._marker.Marker'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._marker.Marker"]) diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/unselected/_marker.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/unselected/_marker.py index 4712c12b0d6..02dd03700d7 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/unselected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/unselected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattermapbox.unselected" - _path_str = "scattermapbox.unselected.marker" + _parent_path_str = 'scattermapbox.unselected' + _path_str = 'scattermapbox.unselected.marker' _valid_props = {"color", "opacity", "size"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -85,11 +52,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # size # ---- @@ -106,11 +73,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # Self properties description # --------------------------- @@ -127,8 +94,13 @@ def _prop_descriptions(self): Sets the marker size of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + size=None, + **kwargs + ): """ Construct a new Marker object @@ -152,10 +124,10 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -167,32 +139,22 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattermapbox.unselected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattermapbox.unselected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scattermapbox.unselected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) + self._init_provided('size', arg, size) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/__init__.py index 382e87019f6..9103ab10864 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._hoverlabel import Hoverlabel from ._legendgrouptitle import Legendgrouptitle @@ -17,18 +16,10 @@ from . import unselected else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".hoverlabel", ".legendgrouptitle", ".marker", ".selected", ".unselected"], - [ - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._line.Line", - "._marker.Marker", - "._selected.Selected", - "._stream.Stream", - "._textfont.Textfont", - "._unselected.Unselected", - ], + ['.hoverlabel', '.legendgrouptitle', '.marker', '.selected', '.unselected'], + ['._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._line.Line', '._marker.Marker', '._selected.Selected', '._stream.Stream', '._textfont.Textfont', '._unselected.Unselected'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/_hoverlabel.py index 9298560b418..62ddd4b745b 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolar" - _path_str = "scatterpolar.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'scatterpolar' + _path_str = 'scatterpolar.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.scatterpolar.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolar.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolar.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolar.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/_legendgrouptitle.py index 2383375ac09..e3f2617ceb9 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolar" - _path_str = "scatterpolar.legendgrouptitle" + _parent_path_str = 'scatterpolar' + _path_str = 'scatterpolar.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scatterpolar.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolar.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolar.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolar.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/_line.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/_line.py index d62c4ea2d50..abe088f6403 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/_line.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,17 +8,9 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolar" - _path_str = "scatterpolar.line" - _valid_props = { - "backoff", - "backoffsrc", - "color", - "dash", - "shape", - "smoothing", - "width", - } + _parent_path_str = 'scatterpolar' + _path_str = 'scatterpolar.line' + _valid_props = {"backoff", "backoffsrc", "color", "dash", "shape", "smoothing", "width"} # backoff # ------- @@ -36,11 +30,11 @@ def backoff(self): ------- int|float|numpy.ndarray """ - return self["backoff"] + return self['backoff'] @backoff.setter def backoff(self, val): - self["backoff"] = val + self['backoff'] = val # backoffsrc # ---------- @@ -56,11 +50,11 @@ def backoffsrc(self): ------- str """ - return self["backoffsrc"] + return self['backoffsrc'] @backoffsrc.setter def backoffsrc(self, val): - self["backoffsrc"] = val + self['backoffsrc'] = val # color # ----- @@ -74,52 +68,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # dash # ---- @@ -141,11 +100,11 @@ def dash(self): ------- str """ - return self["dash"] + return self['dash'] @dash.setter def dash(self, val): - self["dash"] = val + self['dash'] = val # shape # ----- @@ -164,11 +123,11 @@ def shape(self): ------- Any """ - return self["shape"] + return self['shape'] @shape.setter def shape(self, val): - self["shape"] = val + self['shape'] = val # smoothing # --------- @@ -186,11 +145,11 @@ def smoothing(self): ------- int|float """ - return self["smoothing"] + return self['smoothing'] @smoothing.setter def smoothing(self, val): - self["smoothing"] = val + self['smoothing'] = val # width # ----- @@ -206,11 +165,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -244,19 +203,17 @@ def _prop_descriptions(self): width Sets the line width (in px). """ - - def __init__( - self, - arg=None, - backoff=None, - backoffsrc=None, - color=None, - dash=None, - shape=None, - smoothing=None, - width=None, - **kwargs, - ): + def __init__(self, + arg=None, + backoff=None, + backoffsrc=None, + color=None, + dash=None, + shape=None, + smoothing=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -297,10 +254,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -312,48 +269,26 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolar.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolar.Line`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolar.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("backoff", None) - _v = backoff if backoff is not None else _v - if _v is not None: - self["backoff"] = _v - _v = arg.pop("backoffsrc", None) - _v = backoffsrc if backoffsrc is not None else _v - if _v is not None: - self["backoffsrc"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("dash", None) - _v = dash if dash is not None else _v - if _v is not None: - self["dash"] = _v - _v = arg.pop("shape", None) - _v = shape if shape is not None else _v - if _v is not None: - self["shape"] = _v - _v = arg.pop("smoothing", None) - _v = smoothing if smoothing is not None else _v - if _v is not None: - self["smoothing"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('backoff', arg, backoff) + self._init_provided('backoffsrc', arg, backoffsrc) + self._init_provided('color', arg, color) + self._init_provided('dash', arg, dash) + self._init_provided('shape', arg, shape) + self._init_provided('smoothing', arg, smoothing) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/_marker.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/_marker.py index 048167b8902..1ea0722d372 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,39 +8,9 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolar" - _path_str = "scatterpolar.marker" - _valid_props = { - "angle", - "angleref", - "anglesrc", - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorbar", - "colorscale", - "colorsrc", - "gradient", - "line", - "maxdisplayed", - "opacity", - "opacitysrc", - "reversescale", - "showscale", - "size", - "sizemin", - "sizemode", - "sizeref", - "sizesrc", - "standoff", - "standoffsrc", - "symbol", - "symbolsrc", - } + _parent_path_str = 'scatterpolar' + _path_str = 'scatterpolar.marker' + _valid_props = {"angle", "angleref", "anglesrc", "autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorbar", "colorscale", "colorsrc", "gradient", "line", "maxdisplayed", "opacity", "opacitysrc", "reversescale", "showscale", "size", "sizemin", "sizemode", "sizeref", "sizesrc", "standoff", "standoffsrc", "symbol", "symbolsrc"} # angle # ----- @@ -56,11 +28,11 @@ def angle(self): ------- int|float|numpy.ndarray """ - return self["angle"] + return self['angle'] @angle.setter def angle(self, val): - self["angle"] = val + self['angle'] = val # angleref # -------- @@ -79,11 +51,11 @@ def angleref(self): ------- Any """ - return self["angleref"] + return self['angleref'] @angleref.setter def angleref(self, val): - self["angleref"] = val + self['angleref'] = val # anglesrc # -------- @@ -99,11 +71,11 @@ def anglesrc(self): ------- str """ - return self["anglesrc"] + return self['anglesrc'] @anglesrc.setter def anglesrc(self, val): - self["anglesrc"] = val + self['anglesrc'] = val # autocolorscale # -------------- @@ -125,11 +97,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -150,11 +122,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -173,11 +145,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -197,11 +169,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -220,11 +192,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -241,42 +213,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to scatterpolar.marker.colorscale - A list or array of any of the above @@ -285,11 +222,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -312,11 +249,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -329,282 +266,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.scatter - polar.marker.colorbar.Tickformatstop` instances - or dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.scatterpolar.marker.colorbar.tickformatstopde - faults), sets the default property values to - use for elements of - scatterpolar.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.scatterpolar.marke - r.colorbar.Title` instance or dict with - compatible properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.scatterpolar.marker.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -654,11 +324,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -674,11 +344,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # gradient # -------- @@ -691,31 +361,15 @@ def gradient(self): - A dict of string/value properties that will be passed to the Gradient constructor - Supported dict properties: - - color - Sets the final color of the gradient fill: the - center color for radial, the right for - horizontal, or the bottom for vertical. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - type - Sets the type of gradient used to fill the - markers - typesrc - Sets the source reference on Chart Studio Cloud - for `type`. - Returns ------- plotly.graph_objs.scatterpolar.marker.Gradient """ - return self["gradient"] + return self['gradient'] @gradient.setter def gradient(self, val): - self["gradient"] = val + self['gradient'] = val # line # ---- @@ -728,107 +382,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.line.colorscale`. Has an - effect only if in `marker.line.color` is set to - a numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.line.color`) or the bounds set in - `marker.line.cmin` and `marker.line.cmax` Has - an effect only if in `marker.line.color` is set - to a numerical array. Defaults to `false` when - `marker.line.cmin` and `marker.line.cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.line.cmin` and/or - `marker.line.cmax` to be equidistant to this - point. Has an effect only if in - `marker.line.color` is set to a numerical - array. Value should have the same units as in - `marker.line.color`. Has no effect when - `marker.line.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmax` must be set as well. - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorscale - Sets the colorscale. Has an effect only if in - `marker.line.color` is set to a numerical - array. The colorscale must be an array - containing arrays mapping a normalized value to - an rgb, rgba, hex, hsl, hsv, or named color - string. At minimum, a mapping for the lowest - (0) and highest (1) values are required. For - example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use - `marker.line.cmin` and `marker.line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.line.color` is set to - a numerical array. If true, `marker.line.cmin` - will correspond to the last color in the array - and `marker.line.cmax` will correspond to the - first color. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. - Returns ------- plotly.graph_objs.scatterpolar.marker.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # maxdisplayed # ------------ @@ -845,11 +407,11 @@ def maxdisplayed(self): ------- int|float """ - return self["maxdisplayed"] + return self['maxdisplayed'] @maxdisplayed.setter def maxdisplayed(self, val): - self["maxdisplayed"] = val + self['maxdisplayed'] = val # opacity # ------- @@ -866,11 +428,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # opacitysrc # ---------- @@ -886,11 +448,11 @@ def opacitysrc(self): ------- str """ - return self["opacitysrc"] + return self['opacitysrc'] @opacitysrc.setter def opacitysrc(self, val): - self["opacitysrc"] = val + self['opacitysrc'] = val # reversescale # ------------ @@ -909,11 +471,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # showscale # --------- @@ -931,11 +493,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # size # ---- @@ -952,11 +514,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizemin # ------- @@ -974,11 +536,11 @@ def sizemin(self): ------- int|float """ - return self["sizemin"] + return self['sizemin'] @sizemin.setter def sizemin(self, val): - self["sizemin"] = val + self['sizemin'] = val # sizemode # -------- @@ -997,11 +559,11 @@ def sizemode(self): ------- Any """ - return self["sizemode"] + return self['sizemode'] @sizemode.setter def sizemode(self, val): - self["sizemode"] = val + self['sizemode'] = val # sizeref # ------- @@ -1019,11 +581,11 @@ def sizeref(self): ------- int|float """ - return self["sizeref"] + return self['sizeref'] @sizeref.setter def sizeref(self, val): - self["sizeref"] = val + self['sizeref'] = val # sizesrc # ------- @@ -1039,11 +601,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # standoff # -------- @@ -1063,11 +625,11 @@ def standoff(self): ------- int|float|numpy.ndarray """ - return self["standoff"] + return self['standoff'] @standoff.setter def standoff(self, val): - self["standoff"] = val + self['standoff'] = val # standoffsrc # ----------- @@ -1083,11 +645,11 @@ def standoffsrc(self): ------- str """ - return self["standoffsrc"] + return self['standoffsrc'] @standoffsrc.setter def standoffsrc(self, val): - self["standoffsrc"] = val + self['standoffsrc'] = val # symbol # ------ @@ -1196,11 +758,11 @@ def symbol(self): ------- Any|numpy.ndarray """ - return self["symbol"] + return self['symbol'] @symbol.setter def symbol(self, val): - self["symbol"] = val + self['symbol'] = val # symbolsrc # --------- @@ -1216,11 +778,11 @@ def symbolsrc(self): ------- str """ - return self["symbolsrc"] + return self['symbolsrc'] @symbolsrc.setter def symbolsrc(self, val): - self["symbolsrc"] = val + self['symbolsrc'] = val # Self properties description # --------------------------- @@ -1363,41 +925,39 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `symbol`. """ - - def __init__( - self, - arg=None, - angle=None, - angleref=None, - anglesrc=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorbar=None, - colorscale=None, - colorsrc=None, - gradient=None, - line=None, - maxdisplayed=None, - opacity=None, - opacitysrc=None, - reversescale=None, - showscale=None, - size=None, - sizemin=None, - sizemode=None, - sizeref=None, - sizesrc=None, - standoff=None, - standoffsrc=None, - symbol=None, - symbolsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + angle=None, + angleref=None, + anglesrc=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorbar=None, + colorscale=None, + colorsrc=None, + gradient=None, + line=None, + maxdisplayed=None, + opacity=None, + opacitysrc=None, + reversescale=None, + showscale=None, + size=None, + sizemin=None, + sizemode=None, + sizeref=None, + sizesrc=None, + standoff=None, + standoffsrc=None, + symbol=None, + symbolsrc=None, + **kwargs + ): """ Construct a new Marker object @@ -1547,10 +1107,10 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1562,136 +1122,48 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolar.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolar.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolar.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("angle", None) - _v = angle if angle is not None else _v - if _v is not None: - self["angle"] = _v - _v = arg.pop("angleref", None) - _v = angleref if angleref is not None else _v - if _v is not None: - self["angleref"] = _v - _v = arg.pop("anglesrc", None) - _v = anglesrc if anglesrc is not None else _v - if _v is not None: - self["anglesrc"] = _v - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("gradient", None) - _v = gradient if gradient is not None else _v - if _v is not None: - self["gradient"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("maxdisplayed", None) - _v = maxdisplayed if maxdisplayed is not None else _v - if _v is not None: - self["maxdisplayed"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("opacitysrc", None) - _v = opacitysrc if opacitysrc is not None else _v - if _v is not None: - self["opacitysrc"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizemin", None) - _v = sizemin if sizemin is not None else _v - if _v is not None: - self["sizemin"] = _v - _v = arg.pop("sizemode", None) - _v = sizemode if sizemode is not None else _v - if _v is not None: - self["sizemode"] = _v - _v = arg.pop("sizeref", None) - _v = sizeref if sizeref is not None else _v - if _v is not None: - self["sizeref"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("standoff", None) - _v = standoff if standoff is not None else _v - if _v is not None: - self["standoff"] = _v - _v = arg.pop("standoffsrc", None) - _v = standoffsrc if standoffsrc is not None else _v - if _v is not None: - self["standoffsrc"] = _v - _v = arg.pop("symbol", None) - _v = symbol if symbol is not None else _v - if _v is not None: - self["symbol"] = _v - _v = arg.pop("symbolsrc", None) - _v = symbolsrc if symbolsrc is not None else _v - if _v is not None: - self["symbolsrc"] = _v + self._init_provided('angle', arg, angle) + self._init_provided('angleref', arg, angleref) + self._init_provided('anglesrc', arg, anglesrc) + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('gradient', arg, gradient) + self._init_provided('line', arg, line) + self._init_provided('maxdisplayed', arg, maxdisplayed) + self._init_provided('opacity', arg, opacity) + self._init_provided('opacitysrc', arg, opacitysrc) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('showscale', arg, showscale) + self._init_provided('size', arg, size) + self._init_provided('sizemin', arg, sizemin) + self._init_provided('sizemode', arg, sizemode) + self._init_provided('sizeref', arg, sizeref) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('standoff', arg, standoff) + self._init_provided('standoffsrc', arg, standoffsrc) + self._init_provided('symbol', arg, symbol) + self._init_provided('symbolsrc', arg, symbolsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/_selected.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/_selected.py index df8415c49eb..b362dbad2c1 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/_selected.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/_selected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Selected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolar" - _path_str = "scatterpolar.selected" + _parent_path_str = 'scatterpolar' + _path_str = 'scatterpolar.selected' _valid_props = {"marker", "textfont"} # marker @@ -21,24 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. - size - Sets the marker size of selected points. - Returns ------- plotly.graph_objs.scatterpolar.selected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # textfont # -------- @@ -51,20 +44,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - Sets the text font color of selected points. - Returns ------- plotly.graph_objs.scatterpolar.selected.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # Self properties description # --------------------------- @@ -78,8 +66,12 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.scatterpolar.selected.Text font` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, textfont=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + textfont=None, + **kwargs + ): """ Construct a new Selected object @@ -100,10 +92,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") + super(Selected, self).__init__('selected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -115,28 +107,21 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolar.Selected constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolar.Selected`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolar.Selected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v + self._init_provided('marker', arg, marker) + self._init_provided('textfont', arg, textfont) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/_stream.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/_stream.py index 444327ede9f..bfe1046a987 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolar" - _path_str = "scatterpolar.stream" + _parent_path_str = 'scatterpolar' + _path_str = 'scatterpolar.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolar.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolar.Stream`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolar.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/_textfont.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/_textfont.py index d120f4de43e..f15597bb9dd 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolar" - _path_str = "scatterpolar.textfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'scatterpolar' + _path_str = 'scatterpolar.textfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Textfont object @@ -639,10 +585,10 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolar.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolar.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolar.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/_unselected.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/_unselected.py index 2cbe5169a3d..44db94effb2 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/_unselected.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/_unselected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Unselected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolar" - _path_str = "scatterpolar.unselected" + _parent_path_str = 'scatterpolar' + _path_str = 'scatterpolar.unselected' _valid_props = {"marker", "textfont"} # marker @@ -21,27 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - size - Sets the marker size of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.scatterpolar.unselected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # textfont # -------- @@ -54,21 +44,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - Sets the text font color of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.scatterpolar.unselected.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # Self properties description # --------------------------- @@ -82,8 +66,12 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.scatterpolar.unselected.Te xtfont` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, textfont=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + textfont=None, + **kwargs + ): """ Construct a new Unselected object @@ -104,10 +92,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") + super(Unselected, self).__init__('unselected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -119,28 +107,21 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolar.Unselected constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolar.Unselected`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolar.Unselected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v + self._init_provided('marker', arg, marker) + self._init_provided('textfont', arg, textfont) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/hoverlabel/_font.py index 2e9f6fdbdf9..35de8a1519f 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolar.hoverlabel" - _path_str = "scatterpolar.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'scatterpolar.hoverlabel' + _path_str = 'scatterpolar.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolar.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolar.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolar.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/legendgrouptitle/_font.py index 94a44b838f9..15100604fef 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolar.legendgrouptitle" - _path_str = "scatterpolar.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scatterpolar.legendgrouptitle' + _path_str = 'scatterpolar.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolar.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolar.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolar.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/__init__.py index f1897fb0aa7..b07f6ce198a 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._gradient import Gradient @@ -8,9 +7,10 @@ from . import colorbar else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".colorbar"], - ["._colorbar.ColorBar", "._gradient.Gradient", "._line.Line"], + ['.colorbar'], + ['._colorbar.ColorBar', '._gradient.Gradient', '._line.Line'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/_colorbar.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/_colorbar.py index 1dea820c837..ca884dd30a5 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolar.marker" - _path_str = "scatterpolar.marker.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'scatterpolar.marker' + _path_str = 'scatterpolar.marker.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scatterpolar.marker.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.scatterpolar.marker.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.scatterpolar.marker.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.scatterpolar.marker.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolar.marker.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolar.marker.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolar.marker.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/_gradient.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/_gradient.py index 9c29c769c99..bd4ef9320a6 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/_gradient.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/_gradient.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Gradient(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolar.marker" - _path_str = "scatterpolar.marker.gradient" + _parent_path_str = 'scatterpolar.marker' + _path_str = 'scatterpolar.marker.gradient' _valid_props = {"color", "colorsrc", "type", "typesrc"} # color @@ -23,53 +25,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -85,11 +52,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # type # ---- @@ -107,11 +74,11 @@ def type(self): ------- Any|numpy.ndarray """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # typesrc # ------- @@ -127,11 +94,11 @@ def typesrc(self): ------- str """ - return self["typesrc"] + return self['typesrc'] @typesrc.setter def typesrc(self, val): - self["typesrc"] = val + self['typesrc'] = val # Self properties description # --------------------------- @@ -151,10 +118,14 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `type`. """ - - def __init__( - self, arg=None, color=None, colorsrc=None, type=None, typesrc=None, **kwargs - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + type=None, + typesrc=None, + **kwargs + ): """ Construct a new Gradient object @@ -181,10 +152,10 @@ def __init__( ------- Gradient """ - super(Gradient, self).__init__("gradient") + super(Gradient, self).__init__('gradient') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -196,36 +167,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolar.marker.Gradient constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolar.marker.Gradient`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolar.marker.Gradient`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("typesrc", None) - _v = typesrc if typesrc is not None else _v - if _v is not None: - self["typesrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('type', arg, type) + self._init_provided('typesrc', arg, typesrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/_line.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/_line.py index 2484f5e5a50..4589125cb03 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/_line.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,22 +8,9 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolar.marker" - _path_str = "scatterpolar.marker.line" - _valid_props = { - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorscale", - "colorsrc", - "reversescale", - "width", - "widthsrc", - } + _parent_path_str = 'scatterpolar.marker' + _path_str = 'scatterpolar.marker.line' + _valid_props = {"autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorscale", "colorsrc", "reversescale", "width", "widthsrc"} # autocolorscale # -------------- @@ -43,11 +32,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -68,11 +57,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -91,11 +80,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -116,11 +105,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -139,11 +128,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -160,42 +149,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to scatterpolar.marker.line.colorscale - A list or array of any of the above @@ -204,11 +158,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -231,11 +185,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorscale # ---------- @@ -286,11 +240,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -306,11 +260,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # reversescale # ------------ @@ -330,11 +284,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # width # ----- @@ -351,11 +305,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # widthsrc # -------- @@ -371,11 +325,11 @@ def widthsrc(self): ------- str """ - return self["widthsrc"] + return self['widthsrc'] @widthsrc.setter def widthsrc(self, val): - self["widthsrc"] = val + self['widthsrc'] = val # Self properties description # --------------------------- @@ -461,24 +415,22 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `width`. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorscale=None, - colorsrc=None, - reversescale=None, - width=None, - widthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorscale=None, + colorsrc=None, + reversescale=None, + width=None, + widthsrc=None, + **kwargs + ): """ Construct a new Line object @@ -571,10 +523,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -586,68 +538,31 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolar.marker.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolar.marker.Line`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolar.marker.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("widthsrc", None) - _v = widthsrc if widthsrc is not None else _v - if _v is not None: - self["widthsrc"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('width', arg, width) + self._init_provided('widthsrc', arg, widthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/_tickfont.py index 759310f638f..9040a7da6d4 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolar.marker.colorbar" - _path_str = "scatterpolar.marker.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scatterpolar.marker.colorbar' + _path_str = 'scatterpolar.marker.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolar.marker.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolar.marker.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolar.marker.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/_tickformatstop.py index 61eeba82553..d72e5e22acc 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolar.marker.colorbar" - _path_str = "scatterpolar.marker.colorbar.tickformatstop" + _parent_path_str = 'scatterpolar.marker.colorbar' + _path_str = 'scatterpolar.marker.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolar.marker.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolar.marker.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolar.marker.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/_title.py index e62ca01ff1b..b4a1f264900 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolar.marker.colorbar" - _path_str = "scatterpolar.marker.colorbar.title" + _parent_path_str = 'scatterpolar.marker.colorbar' + _path_str = 'scatterpolar.marker.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scatterpolar.marker.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolar.marker.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolar.marker.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolar.marker.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/title/_font.py index 41fce0c7023..c6baa383cfb 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolar.marker.colorbar.title" - _path_str = "scatterpolar.marker.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scatterpolar.marker.colorbar.title' + _path_str = 'scatterpolar.marker.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolar.marker.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolar.marker.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolar.marker.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/selected/__init__.py index ae964f0b65f..4f70de0f5a9 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/selected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker from ._textfont import Textfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.Marker", "._textfont.Textfont"] + __name__, + [], + ['._marker.Marker', '._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/selected/_marker.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/selected/_marker.py index 65c47bd19c8..e5e7b1b97eb 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/selected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/selected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolar.selected" - _path_str = "scatterpolar.selected.marker" + _parent_path_str = 'scatterpolar.selected' + _path_str = 'scatterpolar.selected.marker' _valid_props = {"color", "opacity", "size"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -83,11 +50,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # size # ---- @@ -103,11 +70,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # Self properties description # --------------------------- @@ -121,8 +88,13 @@ def _prop_descriptions(self): size Sets the marker size of selected points. """ - - def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + size=None, + **kwargs + ): """ Construct a new Marker object @@ -143,10 +115,10 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -158,32 +130,22 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolar.selected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolar.selected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolar.selected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) + self._init_provided('size', arg, size) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/selected/_textfont.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/selected/_textfont.py index 33b7ae9a0b7..6cfd873da11 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/selected/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/selected/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolar.selected" - _path_str = "scatterpolar.selected.textfont" + _parent_path_str = 'scatterpolar.selected' + _path_str = 'scatterpolar.selected.textfont' _valid_props = {"color"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # Self properties description # --------------------------- @@ -77,8 +44,11 @@ def _prop_descriptions(self): color Sets the text font color of selected points. """ - - def __init__(self, arg=None, color=None, **kwargs): + def __init__(self, + arg=None, + color=None, + **kwargs + ): """ Construct a new Textfont object @@ -95,10 +65,10 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -110,24 +80,20 @@ def __init__(self, arg=None, color=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolar.selected.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolar.selected.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolar.selected.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v + self._init_provided('color', arg, color) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/unselected/__init__.py index ae964f0b65f..4f70de0f5a9 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/unselected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker from ._textfont import Textfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.Marker", "._textfont.Textfont"] + __name__, + [], + ['._marker.Marker', '._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/unselected/_marker.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/unselected/_marker.py index c92b7503448..cc84def2889 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/unselected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/unselected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolar.unselected" - _path_str = "scatterpolar.unselected.marker" + _parent_path_str = 'scatterpolar.unselected' + _path_str = 'scatterpolar.unselected.marker' _valid_props = {"color", "opacity", "size"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -85,11 +52,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # size # ---- @@ -106,11 +73,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # Self properties description # --------------------------- @@ -127,8 +94,13 @@ def _prop_descriptions(self): Sets the marker size of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + size=None, + **kwargs + ): """ Construct a new Marker object @@ -152,10 +124,10 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -167,32 +139,22 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolar.unselected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolar.unselected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolar.unselected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) + self._init_provided('size', arg, size) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/unselected/_textfont.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/unselected/_textfont.py index 8330c2f1d8e..4f36301e6c7 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/unselected/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/unselected/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolar.unselected" - _path_str = "scatterpolar.unselected.textfont" + _parent_path_str = 'scatterpolar.unselected' + _path_str = 'scatterpolar.unselected.textfont' _valid_props = {"color"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # Self properties description # --------------------------- @@ -79,8 +46,11 @@ def _prop_descriptions(self): Sets the text font color of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, color=None, **kwargs): + def __init__(self, + arg=None, + color=None, + **kwargs + ): """ Construct a new Textfont object @@ -98,10 +68,10 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -113,24 +83,20 @@ def __init__(self, arg=None, color=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolar.unselected.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolar.unselected.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolar.unselected.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v + self._init_provided('color', arg, color) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/__init__.py index 382e87019f6..9103ab10864 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._hoverlabel import Hoverlabel from ._legendgrouptitle import Legendgrouptitle @@ -17,18 +16,10 @@ from . import unselected else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".hoverlabel", ".legendgrouptitle", ".marker", ".selected", ".unselected"], - [ - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._line.Line", - "._marker.Marker", - "._selected.Selected", - "._stream.Stream", - "._textfont.Textfont", - "._unselected.Unselected", - ], + ['.hoverlabel', '.legendgrouptitle', '.marker', '.selected', '.unselected'], + ['._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._line.Line', '._marker.Marker', '._selected.Selected', '._stream.Stream', '._textfont.Textfont', '._unselected.Unselected'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/_hoverlabel.py index 8785f555d42..5a0903d4591 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolargl" - _path_str = "scatterpolargl.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'scatterpolargl' + _path_str = 'scatterpolargl.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.scatterpolargl.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolargl.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolargl.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolargl.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/_legendgrouptitle.py index a2519c9a458..2aa9b1a4853 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolargl" - _path_str = "scatterpolargl.legendgrouptitle" + _parent_path_str = 'scatterpolargl' + _path_str = 'scatterpolargl.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scatterpolargl.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolargl.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolargl.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolargl.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/_line.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/_line.py index 35a581a8e45..e719a1601f3 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/_line.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolargl" - _path_str = "scatterpolargl.line" + _parent_path_str = 'scatterpolargl' + _path_str = 'scatterpolargl.line' _valid_props = {"color", "dash", "width"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # dash # ---- @@ -85,11 +52,11 @@ def dash(self): ------- Any """ - return self["dash"] + return self['dash'] @dash.setter def dash(self, val): - self["dash"] = val + self['dash'] = val # width # ----- @@ -105,11 +72,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -123,8 +90,13 @@ def _prop_descriptions(self): width Sets the line width (in px). """ - - def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): + def __init__(self, + arg=None, + color=None, + dash=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -145,10 +117,10 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -160,32 +132,22 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolargl.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolargl.Line`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolargl.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("dash", None) - _v = dash if dash is not None else _v - if _v is not None: - self["dash"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('dash', arg, dash) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/_marker.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/_marker.py index 8fa0d4b2c69..331a287db0b 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,34 +8,9 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolargl" - _path_str = "scatterpolargl.marker" - _valid_props = { - "angle", - "anglesrc", - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorbar", - "colorscale", - "colorsrc", - "line", - "opacity", - "opacitysrc", - "reversescale", - "showscale", - "size", - "sizemin", - "sizemode", - "sizeref", - "sizesrc", - "symbol", - "symbolsrc", - } + _parent_path_str = 'scatterpolargl' + _path_str = 'scatterpolargl.marker' + _valid_props = {"angle", "anglesrc", "autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorbar", "colorscale", "colorsrc", "line", "opacity", "opacitysrc", "reversescale", "showscale", "size", "sizemin", "sizemode", "sizeref", "sizesrc", "symbol", "symbolsrc"} # angle # ----- @@ -51,11 +28,11 @@ def angle(self): ------- int|float|numpy.ndarray """ - return self["angle"] + return self['angle'] @angle.setter def angle(self, val): - self["angle"] = val + self['angle'] = val # anglesrc # -------- @@ -71,11 +48,11 @@ def anglesrc(self): ------- str """ - return self["anglesrc"] + return self['anglesrc'] @anglesrc.setter def anglesrc(self, val): - self["anglesrc"] = val + self['anglesrc'] = val # autocolorscale # -------------- @@ -97,11 +74,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -122,11 +99,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -145,11 +122,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -169,11 +146,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -192,11 +169,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -213,42 +190,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to scatterpolargl.marker.colorscale - A list or array of any of the above @@ -257,11 +199,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -284,11 +226,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -301,282 +243,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.scatter - polargl.marker.colorbar.Tickformatstop` - instances or dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.scatterpolargl.marker.colorbar.tickformatstop - defaults), sets the default property values to - use for elements of - scatterpolargl.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.scatterpolargl.mar - ker.colorbar.Title` instance or dict with - compatible properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.scatterpolargl.marker.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -626,11 +301,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -646,11 +321,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # line # ---- @@ -663,107 +338,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.line.colorscale`. Has an - effect only if in `marker.line.color` is set to - a numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.line.color`) or the bounds set in - `marker.line.cmin` and `marker.line.cmax` Has - an effect only if in `marker.line.color` is set - to a numerical array. Defaults to `false` when - `marker.line.cmin` and `marker.line.cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.line.cmin` and/or - `marker.line.cmax` to be equidistant to this - point. Has an effect only if in - `marker.line.color` is set to a numerical - array. Value should have the same units as in - `marker.line.color`. Has no effect when - `marker.line.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmax` must be set as well. - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorscale - Sets the colorscale. Has an effect only if in - `marker.line.color` is set to a numerical - array. The colorscale must be an array - containing arrays mapping a normalized value to - an rgb, rgba, hex, hsl, hsv, or named color - string. At minimum, a mapping for the lowest - (0) and highest (1) values are required. For - example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use - `marker.line.cmin` and `marker.line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.line.color` is set to - a numerical array. If true, `marker.line.cmin` - will correspond to the last color in the array - and `marker.line.cmax` will correspond to the - first color. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. - Returns ------- plotly.graph_objs.scatterpolargl.marker.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # opacity # ------- @@ -780,11 +363,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # opacitysrc # ---------- @@ -800,11 +383,11 @@ def opacitysrc(self): ------- str """ - return self["opacitysrc"] + return self['opacitysrc'] @opacitysrc.setter def opacitysrc(self, val): - self["opacitysrc"] = val + self['opacitysrc'] = val # reversescale # ------------ @@ -823,11 +406,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # showscale # --------- @@ -845,11 +428,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # size # ---- @@ -866,11 +449,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizemin # ------- @@ -888,11 +471,11 @@ def sizemin(self): ------- int|float """ - return self["sizemin"] + return self['sizemin'] @sizemin.setter def sizemin(self, val): - self["sizemin"] = val + self['sizemin'] = val # sizemode # -------- @@ -911,11 +494,11 @@ def sizemode(self): ------- Any """ - return self["sizemode"] + return self['sizemode'] @sizemode.setter def sizemode(self, val): - self["sizemode"] = val + self['sizemode'] = val # sizeref # ------- @@ -933,11 +516,11 @@ def sizeref(self): ------- int|float """ - return self["sizeref"] + return self['sizeref'] @sizeref.setter def sizeref(self, val): - self["sizeref"] = val + self['sizeref'] = val # sizesrc # ------- @@ -953,11 +536,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # symbol # ------ @@ -1066,11 +649,11 @@ def symbol(self): ------- Any|numpy.ndarray """ - return self["symbol"] + return self['symbol'] @symbol.setter def symbol(self, val): - self["symbol"] = val + self['symbol'] = val # symbolsrc # --------- @@ -1086,11 +669,11 @@ def symbolsrc(self): ------- str """ - return self["symbolsrc"] + return self['symbolsrc'] @symbolsrc.setter def symbolsrc(self, val): - self["symbolsrc"] = val + self['symbolsrc'] = val # Self properties description # --------------------------- @@ -1214,36 +797,34 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `symbol`. """ - - def __init__( - self, - arg=None, - angle=None, - anglesrc=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorbar=None, - colorscale=None, - colorsrc=None, - line=None, - opacity=None, - opacitysrc=None, - reversescale=None, - showscale=None, - size=None, - sizemin=None, - sizemode=None, - sizeref=None, - sizesrc=None, - symbol=None, - symbolsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + angle=None, + anglesrc=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorbar=None, + colorscale=None, + colorsrc=None, + line=None, + opacity=None, + opacitysrc=None, + reversescale=None, + showscale=None, + size=None, + sizemin=None, + sizemode=None, + sizeref=None, + sizesrc=None, + symbol=None, + symbolsrc=None, + **kwargs + ): """ Construct a new Marker object @@ -1374,10 +955,10 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1389,116 +970,43 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolargl.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolargl.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolargl.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("angle", None) - _v = angle if angle is not None else _v - if _v is not None: - self["angle"] = _v - _v = arg.pop("anglesrc", None) - _v = anglesrc if anglesrc is not None else _v - if _v is not None: - self["anglesrc"] = _v - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("opacitysrc", None) - _v = opacitysrc if opacitysrc is not None else _v - if _v is not None: - self["opacitysrc"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizemin", None) - _v = sizemin if sizemin is not None else _v - if _v is not None: - self["sizemin"] = _v - _v = arg.pop("sizemode", None) - _v = sizemode if sizemode is not None else _v - if _v is not None: - self["sizemode"] = _v - _v = arg.pop("sizeref", None) - _v = sizeref if sizeref is not None else _v - if _v is not None: - self["sizeref"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("symbol", None) - _v = symbol if symbol is not None else _v - if _v is not None: - self["symbol"] = _v - _v = arg.pop("symbolsrc", None) - _v = symbolsrc if symbolsrc is not None else _v - if _v is not None: - self["symbolsrc"] = _v + self._init_provided('angle', arg, angle) + self._init_provided('anglesrc', arg, anglesrc) + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('line', arg, line) + self._init_provided('opacity', arg, opacity) + self._init_provided('opacitysrc', arg, opacitysrc) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('showscale', arg, showscale) + self._init_provided('size', arg, size) + self._init_provided('sizemin', arg, sizemin) + self._init_provided('sizemode', arg, sizemode) + self._init_provided('sizeref', arg, sizeref) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('symbol', arg, symbol) + self._init_provided('symbolsrc', arg, symbolsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/_selected.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/_selected.py index 3633cbd509c..71cb6020df6 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/_selected.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/_selected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Selected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolargl" - _path_str = "scatterpolargl.selected" + _parent_path_str = 'scatterpolargl' + _path_str = 'scatterpolargl.selected' _valid_props = {"marker", "textfont"} # marker @@ -21,24 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. - size - Sets the marker size of selected points. - Returns ------- plotly.graph_objs.scatterpolargl.selected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # textfont # -------- @@ -51,20 +44,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - Sets the text font color of selected points. - Returns ------- plotly.graph_objs.scatterpolargl.selected.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # Self properties description # --------------------------- @@ -78,8 +66,12 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.scatterpolargl.selected.Te xtfont` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, textfont=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + textfont=None, + **kwargs + ): """ Construct a new Selected object @@ -100,10 +92,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") + super(Selected, self).__init__('selected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -115,28 +107,21 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolargl.Selected constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolargl.Selected`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolargl.Selected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v + self._init_provided('marker', arg, marker) + self._init_provided('textfont', arg, textfont) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/_stream.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/_stream.py index 1446c900980..bc08c4bb222 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolargl" - _path_str = "scatterpolargl.stream" + _parent_path_str = 'scatterpolargl' + _path_str = 'scatterpolargl.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolargl.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolargl.Stream`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolargl.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/_textfont.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/_textfont.py index 94dabaa4a25..c2dd44d14c3 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,22 +8,9 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolargl" - _path_str = "scatterpolargl.textfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "size", - "sizesrc", - "style", - "stylesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'scatterpolargl' + _path_str = 'scatterpolargl.textfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "size", "sizesrc", "style", "stylesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -33,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -95,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -127,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -147,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # size # ---- @@ -166,11 +120,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -186,11 +140,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -209,11 +163,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -229,11 +183,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # variant # ------- @@ -251,11 +205,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -271,11 +225,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -293,11 +247,11 @@ def weight(self): ------- Any|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -313,11 +267,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -368,24 +322,22 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Textfont object @@ -445,10 +397,10 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -460,68 +412,31 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolargl.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolargl.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolargl.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/_unselected.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/_unselected.py index 41ad0befffc..d100b1e1ceb 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/_unselected.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/_unselected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Unselected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolargl" - _path_str = "scatterpolargl.unselected" + _parent_path_str = 'scatterpolargl' + _path_str = 'scatterpolargl.unselected' _valid_props = {"marker", "textfont"} # marker @@ -21,27 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - size - Sets the marker size of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.scatterpolargl.unselected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # textfont # -------- @@ -54,21 +44,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - Sets the text font color of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.scatterpolargl.unselected.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # Self properties description # --------------------------- @@ -82,8 +66,12 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.scatterpolargl.unselected. Textfont` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, textfont=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + textfont=None, + **kwargs + ): """ Construct a new Unselected object @@ -104,10 +92,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") + super(Unselected, self).__init__('unselected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -119,28 +107,21 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolargl.Unselected constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolargl.Unselected`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolargl.Unselected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v + self._init_provided('marker', arg, marker) + self._init_provided('textfont', arg, textfont) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/hoverlabel/_font.py index 2bb67d5d532..f7f7e26f096 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolargl.hoverlabel" - _path_str = "scatterpolargl.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'scatterpolargl.hoverlabel' + _path_str = 'scatterpolargl.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolargl.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolargl.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolargl.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/legendgrouptitle/_font.py index c8ef040bdc5..0df1d9711a5 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolargl.legendgrouptitle" - _path_str = "scatterpolargl.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scatterpolargl.legendgrouptitle' + _path_str = 'scatterpolargl.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolargl.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolargl.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolargl.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/__init__.py index 8481520e3c9..60bb7edb6d5 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._line import Line from . import colorbar else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [".colorbar"], ["._colorbar.ColorBar", "._line.Line"] + __name__, + ['.colorbar'], + ['._colorbar.ColorBar', '._line.Line'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/_colorbar.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/_colorbar.py index 0d80f886c76..c0de3abe719 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolargl.marker" - _path_str = "scatterpolargl.marker.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'scatterpolargl.marker' + _path_str = 'scatterpolargl.marker.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scatterpolargl.marker.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.scatterpolargl.marker.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.scatterpolargl.marker.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.scatterpolargl.marker.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolargl.marker.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolargl.marker.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolargl.marker.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/_line.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/_line.py index 7d11a59689f..f0c661eb04d 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/_line.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,22 +8,9 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolargl.marker" - _path_str = "scatterpolargl.marker.line" - _valid_props = { - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorscale", - "colorsrc", - "reversescale", - "width", - "widthsrc", - } + _parent_path_str = 'scatterpolargl.marker' + _path_str = 'scatterpolargl.marker.line' + _valid_props = {"autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorscale", "colorsrc", "reversescale", "width", "widthsrc"} # autocolorscale # -------------- @@ -43,11 +32,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -68,11 +57,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -91,11 +80,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -116,11 +105,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -139,11 +128,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -160,42 +149,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to scatterpolargl.marker.line.colorscale - A list or array of any of the above @@ -204,11 +158,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -231,11 +185,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorscale # ---------- @@ -286,11 +240,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -306,11 +260,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # reversescale # ------------ @@ -330,11 +284,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # width # ----- @@ -351,11 +305,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # widthsrc # -------- @@ -371,11 +325,11 @@ def widthsrc(self): ------- str """ - return self["widthsrc"] + return self['widthsrc'] @widthsrc.setter def widthsrc(self, val): - self["widthsrc"] = val + self['widthsrc'] = val # Self properties description # --------------------------- @@ -461,24 +415,22 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `width`. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorscale=None, - colorsrc=None, - reversescale=None, - width=None, - widthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorscale=None, + colorsrc=None, + reversescale=None, + width=None, + widthsrc=None, + **kwargs + ): """ Construct a new Line object @@ -571,10 +523,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -586,68 +538,31 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolargl.marker.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolargl.marker.Line`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolargl.marker.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("widthsrc", None) - _v = widthsrc if widthsrc is not None else _v - if _v is not None: - self["widthsrc"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('width', arg, width) + self._init_provided('widthsrc', arg, widthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/_tickfont.py index cac486d95db..25c5071d1da 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolargl.marker.colorbar" - _path_str = "scatterpolargl.marker.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scatterpolargl.marker.colorbar' + _path_str = 'scatterpolargl.marker.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolargl.marker.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolargl.marker.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolargl.marker.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/_tickformatstop.py index 4cf6020fc0f..158f8fe5438 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolargl.marker.colorbar" - _path_str = "scatterpolargl.marker.colorbar.tickformatstop" + _parent_path_str = 'scatterpolargl.marker.colorbar' + _path_str = 'scatterpolargl.marker.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolargl.marker.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolargl.marker.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolargl.marker.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/_title.py index 313c0a1fa8c..01582e3ec82 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolargl.marker.colorbar" - _path_str = "scatterpolargl.marker.colorbar.title" + _parent_path_str = 'scatterpolargl.marker.colorbar' + _path_str = 'scatterpolargl.marker.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scatterpolargl.marker.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolargl.marker.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolargl.marker.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolargl.marker.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/title/_font.py index 2334e829c09..f4213b7103f 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolargl.marker.colorbar.title" - _path_str = "scatterpolargl.marker.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scatterpolargl.marker.colorbar.title' + _path_str = 'scatterpolargl.marker.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolargl.marker.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolargl.marker.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolargl.marker.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/selected/__init__.py index ae964f0b65f..4f70de0f5a9 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/selected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker from ._textfont import Textfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.Marker", "._textfont.Textfont"] + __name__, + [], + ['._marker.Marker', '._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/selected/_marker.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/selected/_marker.py index f8b22058a9d..520a93ac3e8 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/selected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/selected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolargl.selected" - _path_str = "scatterpolargl.selected.marker" + _parent_path_str = 'scatterpolargl.selected' + _path_str = 'scatterpolargl.selected.marker' _valid_props = {"color", "opacity", "size"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -83,11 +50,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # size # ---- @@ -103,11 +70,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # Self properties description # --------------------------- @@ -121,8 +88,13 @@ def _prop_descriptions(self): size Sets the marker size of selected points. """ - - def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + size=None, + **kwargs + ): """ Construct a new Marker object @@ -143,10 +115,10 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -158,32 +130,22 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolargl.selected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolargl.selected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolargl.selected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) + self._init_provided('size', arg, size) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/selected/_textfont.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/selected/_textfont.py index b37d165bd01..51bf98dba2d 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/selected/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/selected/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolargl.selected" - _path_str = "scatterpolargl.selected.textfont" + _parent_path_str = 'scatterpolargl.selected' + _path_str = 'scatterpolargl.selected.textfont' _valid_props = {"color"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # Self properties description # --------------------------- @@ -77,8 +44,11 @@ def _prop_descriptions(self): color Sets the text font color of selected points. """ - - def __init__(self, arg=None, color=None, **kwargs): + def __init__(self, + arg=None, + color=None, + **kwargs + ): """ Construct a new Textfont object @@ -95,10 +65,10 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -110,24 +80,20 @@ def __init__(self, arg=None, color=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolargl.selected.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolargl.selected.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolargl.selected.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v + self._init_provided('color', arg, color) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/unselected/__init__.py index ae964f0b65f..4f70de0f5a9 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/unselected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker from ._textfont import Textfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.Marker", "._textfont.Textfont"] + __name__, + [], + ['._marker.Marker', '._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/unselected/_marker.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/unselected/_marker.py index 005c8a9e079..a078499d9e7 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/unselected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/unselected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolargl.unselected" - _path_str = "scatterpolargl.unselected.marker" + _parent_path_str = 'scatterpolargl.unselected' + _path_str = 'scatterpolargl.unselected.marker' _valid_props = {"color", "opacity", "size"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -85,11 +52,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # size # ---- @@ -106,11 +73,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # Self properties description # --------------------------- @@ -127,8 +94,13 @@ def _prop_descriptions(self): Sets the marker size of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + size=None, + **kwargs + ): """ Construct a new Marker object @@ -152,10 +124,10 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -167,32 +139,22 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolargl.unselected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolargl.unselected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolargl.unselected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) + self._init_provided('size', arg, size) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/unselected/_textfont.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/unselected/_textfont.py index b05e65f33d7..3c0f590ba87 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/unselected/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/unselected/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterpolargl.unselected" - _path_str = "scatterpolargl.unselected.textfont" + _parent_path_str = 'scatterpolargl.unselected' + _path_str = 'scatterpolargl.unselected.textfont' _valid_props = {"color"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # Self properties description # --------------------------- @@ -79,8 +46,11 @@ def _prop_descriptions(self): Sets the text font color of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, color=None, **kwargs): + def __init__(self, + arg=None, + color=None, + **kwargs + ): """ Construct a new Textfont object @@ -98,10 +68,10 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -113,24 +83,20 @@ def __init__(self, arg=None, color=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterpolargl.unselected.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterpolargl.unselected.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.scatterpolargl.unselected.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v + self._init_provided('color', arg, color) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/__init__.py b/packages/python/plotly/plotly/graph_objs/scattersmith/__init__.py index 382e87019f6..9103ab10864 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._hoverlabel import Hoverlabel from ._legendgrouptitle import Legendgrouptitle @@ -17,18 +16,10 @@ from . import unselected else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".hoverlabel", ".legendgrouptitle", ".marker", ".selected", ".unselected"], - [ - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._line.Line", - "._marker.Marker", - "._selected.Selected", - "._stream.Stream", - "._textfont.Textfont", - "._unselected.Unselected", - ], + ['.hoverlabel', '.legendgrouptitle', '.marker', '.selected', '.unselected'], + ['._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._line.Line', '._marker.Marker', '._selected.Selected', '._stream.Stream', '._textfont.Textfont', '._unselected.Unselected'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/scattersmith/_hoverlabel.py index 28e0674fdb6..75f80c6f1c8 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattersmith" - _path_str = "scattersmith.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'scattersmith' + _path_str = 'scattersmith.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.scattersmith.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattersmith.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattersmith.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.scattersmith.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/scattersmith/_legendgrouptitle.py index fcb0392a7c1..4619093e9a2 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattersmith" - _path_str = "scattersmith.legendgrouptitle" + _parent_path_str = 'scattersmith' + _path_str = 'scattersmith.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scattersmith.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattersmith.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattersmith.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.scattersmith.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/_line.py b/packages/python/plotly/plotly/graph_objs/scattersmith/_line.py index 2ec059f0f0b..3c4f1581faf 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/_line.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,17 +8,9 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattersmith" - _path_str = "scattersmith.line" - _valid_props = { - "backoff", - "backoffsrc", - "color", - "dash", - "shape", - "smoothing", - "width", - } + _parent_path_str = 'scattersmith' + _path_str = 'scattersmith.line' + _valid_props = {"backoff", "backoffsrc", "color", "dash", "shape", "smoothing", "width"} # backoff # ------- @@ -36,11 +30,11 @@ def backoff(self): ------- int|float|numpy.ndarray """ - return self["backoff"] + return self['backoff'] @backoff.setter def backoff(self, val): - self["backoff"] = val + self['backoff'] = val # backoffsrc # ---------- @@ -56,11 +50,11 @@ def backoffsrc(self): ------- str """ - return self["backoffsrc"] + return self['backoffsrc'] @backoffsrc.setter def backoffsrc(self, val): - self["backoffsrc"] = val + self['backoffsrc'] = val # color # ----- @@ -74,52 +68,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # dash # ---- @@ -141,11 +100,11 @@ def dash(self): ------- str """ - return self["dash"] + return self['dash'] @dash.setter def dash(self, val): - self["dash"] = val + self['dash'] = val # shape # ----- @@ -164,11 +123,11 @@ def shape(self): ------- Any """ - return self["shape"] + return self['shape'] @shape.setter def shape(self, val): - self["shape"] = val + self['shape'] = val # smoothing # --------- @@ -186,11 +145,11 @@ def smoothing(self): ------- int|float """ - return self["smoothing"] + return self['smoothing'] @smoothing.setter def smoothing(self, val): - self["smoothing"] = val + self['smoothing'] = val # width # ----- @@ -206,11 +165,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -244,19 +203,17 @@ def _prop_descriptions(self): width Sets the line width (in px). """ - - def __init__( - self, - arg=None, - backoff=None, - backoffsrc=None, - color=None, - dash=None, - shape=None, - smoothing=None, - width=None, - **kwargs, - ): + def __init__(self, + arg=None, + backoff=None, + backoffsrc=None, + color=None, + dash=None, + shape=None, + smoothing=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -297,10 +254,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -312,48 +269,26 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattersmith.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattersmith.Line`""" - ) +an instance of :class:`plotly.graph_objs.scattersmith.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("backoff", None) - _v = backoff if backoff is not None else _v - if _v is not None: - self["backoff"] = _v - _v = arg.pop("backoffsrc", None) - _v = backoffsrc if backoffsrc is not None else _v - if _v is not None: - self["backoffsrc"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("dash", None) - _v = dash if dash is not None else _v - if _v is not None: - self["dash"] = _v - _v = arg.pop("shape", None) - _v = shape if shape is not None else _v - if _v is not None: - self["shape"] = _v - _v = arg.pop("smoothing", None) - _v = smoothing if smoothing is not None else _v - if _v is not None: - self["smoothing"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('backoff', arg, backoff) + self._init_provided('backoffsrc', arg, backoffsrc) + self._init_provided('color', arg, color) + self._init_provided('dash', arg, dash) + self._init_provided('shape', arg, shape) + self._init_provided('smoothing', arg, smoothing) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/_marker.py b/packages/python/plotly/plotly/graph_objs/scattersmith/_marker.py index 5b78c98321a..91d5e504739 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,39 +8,9 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattersmith" - _path_str = "scattersmith.marker" - _valid_props = { - "angle", - "angleref", - "anglesrc", - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorbar", - "colorscale", - "colorsrc", - "gradient", - "line", - "maxdisplayed", - "opacity", - "opacitysrc", - "reversescale", - "showscale", - "size", - "sizemin", - "sizemode", - "sizeref", - "sizesrc", - "standoff", - "standoffsrc", - "symbol", - "symbolsrc", - } + _parent_path_str = 'scattersmith' + _path_str = 'scattersmith.marker' + _valid_props = {"angle", "angleref", "anglesrc", "autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorbar", "colorscale", "colorsrc", "gradient", "line", "maxdisplayed", "opacity", "opacitysrc", "reversescale", "showscale", "size", "sizemin", "sizemode", "sizeref", "sizesrc", "standoff", "standoffsrc", "symbol", "symbolsrc"} # angle # ----- @@ -56,11 +28,11 @@ def angle(self): ------- int|float|numpy.ndarray """ - return self["angle"] + return self['angle'] @angle.setter def angle(self, val): - self["angle"] = val + self['angle'] = val # angleref # -------- @@ -79,11 +51,11 @@ def angleref(self): ------- Any """ - return self["angleref"] + return self['angleref'] @angleref.setter def angleref(self, val): - self["angleref"] = val + self['angleref'] = val # anglesrc # -------- @@ -99,11 +71,11 @@ def anglesrc(self): ------- str """ - return self["anglesrc"] + return self['anglesrc'] @anglesrc.setter def anglesrc(self, val): - self["anglesrc"] = val + self['anglesrc'] = val # autocolorscale # -------------- @@ -125,11 +97,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -150,11 +122,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -173,11 +145,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -197,11 +169,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -220,11 +192,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -241,42 +213,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to scattersmith.marker.colorscale - A list or array of any of the above @@ -285,11 +222,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -312,11 +249,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -329,282 +266,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.scatter - smith.marker.colorbar.Tickformatstop` instances - or dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.scattersmith.marker.colorbar.tickformatstopde - faults), sets the default property values to - use for elements of - scattersmith.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.scattersmith.marke - r.colorbar.Title` instance or dict with - compatible properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.scattersmith.marker.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -654,11 +324,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -674,11 +344,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # gradient # -------- @@ -691,31 +361,15 @@ def gradient(self): - A dict of string/value properties that will be passed to the Gradient constructor - Supported dict properties: - - color - Sets the final color of the gradient fill: the - center color for radial, the right for - horizontal, or the bottom for vertical. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - type - Sets the type of gradient used to fill the - markers - typesrc - Sets the source reference on Chart Studio Cloud - for `type`. - Returns ------- plotly.graph_objs.scattersmith.marker.Gradient """ - return self["gradient"] + return self['gradient'] @gradient.setter def gradient(self, val): - self["gradient"] = val + self['gradient'] = val # line # ---- @@ -728,107 +382,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.line.colorscale`. Has an - effect only if in `marker.line.color` is set to - a numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.line.color`) or the bounds set in - `marker.line.cmin` and `marker.line.cmax` Has - an effect only if in `marker.line.color` is set - to a numerical array. Defaults to `false` when - `marker.line.cmin` and `marker.line.cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.line.cmin` and/or - `marker.line.cmax` to be equidistant to this - point. Has an effect only if in - `marker.line.color` is set to a numerical - array. Value should have the same units as in - `marker.line.color`. Has no effect when - `marker.line.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmax` must be set as well. - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorscale - Sets the colorscale. Has an effect only if in - `marker.line.color` is set to a numerical - array. The colorscale must be an array - containing arrays mapping a normalized value to - an rgb, rgba, hex, hsl, hsv, or named color - string. At minimum, a mapping for the lowest - (0) and highest (1) values are required. For - example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use - `marker.line.cmin` and `marker.line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.line.color` is set to - a numerical array. If true, `marker.line.cmin` - will correspond to the last color in the array - and `marker.line.cmax` will correspond to the - first color. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. - Returns ------- plotly.graph_objs.scattersmith.marker.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # maxdisplayed # ------------ @@ -845,11 +407,11 @@ def maxdisplayed(self): ------- int|float """ - return self["maxdisplayed"] + return self['maxdisplayed'] @maxdisplayed.setter def maxdisplayed(self, val): - self["maxdisplayed"] = val + self['maxdisplayed'] = val # opacity # ------- @@ -866,11 +428,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # opacitysrc # ---------- @@ -886,11 +448,11 @@ def opacitysrc(self): ------- str """ - return self["opacitysrc"] + return self['opacitysrc'] @opacitysrc.setter def opacitysrc(self, val): - self["opacitysrc"] = val + self['opacitysrc'] = val # reversescale # ------------ @@ -909,11 +471,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # showscale # --------- @@ -931,11 +493,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # size # ---- @@ -952,11 +514,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizemin # ------- @@ -974,11 +536,11 @@ def sizemin(self): ------- int|float """ - return self["sizemin"] + return self['sizemin'] @sizemin.setter def sizemin(self, val): - self["sizemin"] = val + self['sizemin'] = val # sizemode # -------- @@ -997,11 +559,11 @@ def sizemode(self): ------- Any """ - return self["sizemode"] + return self['sizemode'] @sizemode.setter def sizemode(self, val): - self["sizemode"] = val + self['sizemode'] = val # sizeref # ------- @@ -1019,11 +581,11 @@ def sizeref(self): ------- int|float """ - return self["sizeref"] + return self['sizeref'] @sizeref.setter def sizeref(self, val): - self["sizeref"] = val + self['sizeref'] = val # sizesrc # ------- @@ -1039,11 +601,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # standoff # -------- @@ -1063,11 +625,11 @@ def standoff(self): ------- int|float|numpy.ndarray """ - return self["standoff"] + return self['standoff'] @standoff.setter def standoff(self, val): - self["standoff"] = val + self['standoff'] = val # standoffsrc # ----------- @@ -1083,11 +645,11 @@ def standoffsrc(self): ------- str """ - return self["standoffsrc"] + return self['standoffsrc'] @standoffsrc.setter def standoffsrc(self, val): - self["standoffsrc"] = val + self['standoffsrc'] = val # symbol # ------ @@ -1196,11 +758,11 @@ def symbol(self): ------- Any|numpy.ndarray """ - return self["symbol"] + return self['symbol'] @symbol.setter def symbol(self, val): - self["symbol"] = val + self['symbol'] = val # symbolsrc # --------- @@ -1216,11 +778,11 @@ def symbolsrc(self): ------- str """ - return self["symbolsrc"] + return self['symbolsrc'] @symbolsrc.setter def symbolsrc(self, val): - self["symbolsrc"] = val + self['symbolsrc'] = val # Self properties description # --------------------------- @@ -1363,41 +925,39 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `symbol`. """ - - def __init__( - self, - arg=None, - angle=None, - angleref=None, - anglesrc=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorbar=None, - colorscale=None, - colorsrc=None, - gradient=None, - line=None, - maxdisplayed=None, - opacity=None, - opacitysrc=None, - reversescale=None, - showscale=None, - size=None, - sizemin=None, - sizemode=None, - sizeref=None, - sizesrc=None, - standoff=None, - standoffsrc=None, - symbol=None, - symbolsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + angle=None, + angleref=None, + anglesrc=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorbar=None, + colorscale=None, + colorsrc=None, + gradient=None, + line=None, + maxdisplayed=None, + opacity=None, + opacitysrc=None, + reversescale=None, + showscale=None, + size=None, + sizemin=None, + sizemode=None, + sizeref=None, + sizesrc=None, + standoff=None, + standoffsrc=None, + symbol=None, + symbolsrc=None, + **kwargs + ): """ Construct a new Marker object @@ -1547,10 +1107,10 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1562,136 +1122,48 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattersmith.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattersmith.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scattersmith.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("angle", None) - _v = angle if angle is not None else _v - if _v is not None: - self["angle"] = _v - _v = arg.pop("angleref", None) - _v = angleref if angleref is not None else _v - if _v is not None: - self["angleref"] = _v - _v = arg.pop("anglesrc", None) - _v = anglesrc if anglesrc is not None else _v - if _v is not None: - self["anglesrc"] = _v - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("gradient", None) - _v = gradient if gradient is not None else _v - if _v is not None: - self["gradient"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("maxdisplayed", None) - _v = maxdisplayed if maxdisplayed is not None else _v - if _v is not None: - self["maxdisplayed"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("opacitysrc", None) - _v = opacitysrc if opacitysrc is not None else _v - if _v is not None: - self["opacitysrc"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizemin", None) - _v = sizemin if sizemin is not None else _v - if _v is not None: - self["sizemin"] = _v - _v = arg.pop("sizemode", None) - _v = sizemode if sizemode is not None else _v - if _v is not None: - self["sizemode"] = _v - _v = arg.pop("sizeref", None) - _v = sizeref if sizeref is not None else _v - if _v is not None: - self["sizeref"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("standoff", None) - _v = standoff if standoff is not None else _v - if _v is not None: - self["standoff"] = _v - _v = arg.pop("standoffsrc", None) - _v = standoffsrc if standoffsrc is not None else _v - if _v is not None: - self["standoffsrc"] = _v - _v = arg.pop("symbol", None) - _v = symbol if symbol is not None else _v - if _v is not None: - self["symbol"] = _v - _v = arg.pop("symbolsrc", None) - _v = symbolsrc if symbolsrc is not None else _v - if _v is not None: - self["symbolsrc"] = _v + self._init_provided('angle', arg, angle) + self._init_provided('angleref', arg, angleref) + self._init_provided('anglesrc', arg, anglesrc) + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('gradient', arg, gradient) + self._init_provided('line', arg, line) + self._init_provided('maxdisplayed', arg, maxdisplayed) + self._init_provided('opacity', arg, opacity) + self._init_provided('opacitysrc', arg, opacitysrc) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('showscale', arg, showscale) + self._init_provided('size', arg, size) + self._init_provided('sizemin', arg, sizemin) + self._init_provided('sizemode', arg, sizemode) + self._init_provided('sizeref', arg, sizeref) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('standoff', arg, standoff) + self._init_provided('standoffsrc', arg, standoffsrc) + self._init_provided('symbol', arg, symbol) + self._init_provided('symbolsrc', arg, symbolsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/_selected.py b/packages/python/plotly/plotly/graph_objs/scattersmith/_selected.py index f556045466f..84143f77214 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/_selected.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/_selected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Selected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattersmith" - _path_str = "scattersmith.selected" + _parent_path_str = 'scattersmith' + _path_str = 'scattersmith.selected' _valid_props = {"marker", "textfont"} # marker @@ -21,24 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. - size - Sets the marker size of selected points. - Returns ------- plotly.graph_objs.scattersmith.selected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # textfont # -------- @@ -51,20 +44,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - Sets the text font color of selected points. - Returns ------- plotly.graph_objs.scattersmith.selected.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # Self properties description # --------------------------- @@ -78,8 +66,12 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.scattersmith.selected.Text font` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, textfont=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + textfont=None, + **kwargs + ): """ Construct a new Selected object @@ -100,10 +92,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") + super(Selected, self).__init__('selected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -115,28 +107,21 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattersmith.Selected constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattersmith.Selected`""" - ) +an instance of :class:`plotly.graph_objs.scattersmith.Selected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v + self._init_provided('marker', arg, marker) + self._init_provided('textfont', arg, textfont) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/_stream.py b/packages/python/plotly/plotly/graph_objs/scattersmith/_stream.py index bbc9dd202c3..b2000111b96 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattersmith" - _path_str = "scattersmith.stream" + _parent_path_str = 'scattersmith' + _path_str = 'scattersmith.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattersmith.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattersmith.Stream`""" - ) +an instance of :class:`plotly.graph_objs.scattersmith.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/_textfont.py b/packages/python/plotly/plotly/graph_objs/scattersmith/_textfont.py index 585ec66e3de..c64db878b5d 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattersmith" - _path_str = "scattersmith.textfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'scattersmith' + _path_str = 'scattersmith.textfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Textfont object @@ -639,10 +585,10 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattersmith.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattersmith.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.scattersmith.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/_unselected.py b/packages/python/plotly/plotly/graph_objs/scattersmith/_unselected.py index df78faca870..d28de761dcd 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/_unselected.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/_unselected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Unselected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattersmith" - _path_str = "scattersmith.unselected" + _parent_path_str = 'scattersmith' + _path_str = 'scattersmith.unselected' _valid_props = {"marker", "textfont"} # marker @@ -21,27 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - size - Sets the marker size of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.scattersmith.unselected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # textfont # -------- @@ -54,21 +44,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - Sets the text font color of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.scattersmith.unselected.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # Self properties description # --------------------------- @@ -82,8 +66,12 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.scattersmith.unselected.Te xtfont` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, textfont=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + textfont=None, + **kwargs + ): """ Construct a new Unselected object @@ -104,10 +92,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") + super(Unselected, self).__init__('unselected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -119,28 +107,21 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattersmith.Unselected constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattersmith.Unselected`""" - ) +an instance of :class:`plotly.graph_objs.scattersmith.Unselected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v + self._init_provided('marker', arg, marker) + self._init_provided('textfont', arg, textfont) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/scattersmith/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/scattersmith/hoverlabel/_font.py index 2a719994369..8a038073433 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattersmith.hoverlabel" - _path_str = "scattersmith.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'scattersmith.hoverlabel' + _path_str = 'scattersmith.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattersmith.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattersmith.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.scattersmith.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/scattersmith/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/scattersmith/legendgrouptitle/_font.py index 29bc39f98be..b342b1f66be 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattersmith.legendgrouptitle" - _path_str = "scattersmith.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scattersmith.legendgrouptitle' + _path_str = 'scattersmith.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattersmith.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattersmith.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.scattersmith.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/scattersmith/marker/__init__.py index f1897fb0aa7..b07f6ce198a 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._gradient import Gradient @@ -8,9 +7,10 @@ from . import colorbar else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".colorbar"], - ["._colorbar.ColorBar", "._gradient.Gradient", "._line.Line"], + ['.colorbar'], + ['._colorbar.ColorBar', '._gradient.Gradient', '._line.Line'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/marker/_colorbar.py b/packages/python/plotly/plotly/graph_objs/scattersmith/marker/_colorbar.py index 67c324202e0..6dbe59e2591 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/marker/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/marker/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattersmith.marker" - _path_str = "scattersmith.marker.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'scattersmith.marker' + _path_str = 'scattersmith.marker.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scattersmith.marker.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.scattersmith.marker.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.scattersmith.marker.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.scattersmith.marker.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattersmith.marker.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattersmith.marker.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.scattersmith.marker.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/marker/_gradient.py b/packages/python/plotly/plotly/graph_objs/scattersmith/marker/_gradient.py index e1e91ba222f..c2a1287b173 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/marker/_gradient.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/marker/_gradient.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Gradient(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattersmith.marker" - _path_str = "scattersmith.marker.gradient" + _parent_path_str = 'scattersmith.marker' + _path_str = 'scattersmith.marker.gradient' _valid_props = {"color", "colorsrc", "type", "typesrc"} # color @@ -23,53 +25,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -85,11 +52,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # type # ---- @@ -107,11 +74,11 @@ def type(self): ------- Any|numpy.ndarray """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # typesrc # ------- @@ -127,11 +94,11 @@ def typesrc(self): ------- str """ - return self["typesrc"] + return self['typesrc'] @typesrc.setter def typesrc(self, val): - self["typesrc"] = val + self['typesrc'] = val # Self properties description # --------------------------- @@ -151,10 +118,14 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `type`. """ - - def __init__( - self, arg=None, color=None, colorsrc=None, type=None, typesrc=None, **kwargs - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + type=None, + typesrc=None, + **kwargs + ): """ Construct a new Gradient object @@ -181,10 +152,10 @@ def __init__( ------- Gradient """ - super(Gradient, self).__init__("gradient") + super(Gradient, self).__init__('gradient') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -196,36 +167,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattersmith.marker.Gradient constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattersmith.marker.Gradient`""" - ) +an instance of :class:`plotly.graph_objs.scattersmith.marker.Gradient`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("typesrc", None) - _v = typesrc if typesrc is not None else _v - if _v is not None: - self["typesrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('type', arg, type) + self._init_provided('typesrc', arg, typesrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/marker/_line.py b/packages/python/plotly/plotly/graph_objs/scattersmith/marker/_line.py index 9ff74b103ab..88a16269492 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/marker/_line.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/marker/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,22 +8,9 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattersmith.marker" - _path_str = "scattersmith.marker.line" - _valid_props = { - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorscale", - "colorsrc", - "reversescale", - "width", - "widthsrc", - } + _parent_path_str = 'scattersmith.marker' + _path_str = 'scattersmith.marker.line' + _valid_props = {"autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorscale", "colorsrc", "reversescale", "width", "widthsrc"} # autocolorscale # -------------- @@ -43,11 +32,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -68,11 +57,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -91,11 +80,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -116,11 +105,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -139,11 +128,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -160,42 +149,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to scattersmith.marker.line.colorscale - A list or array of any of the above @@ -204,11 +158,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -231,11 +185,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorscale # ---------- @@ -286,11 +240,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -306,11 +260,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # reversescale # ------------ @@ -330,11 +284,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # width # ----- @@ -351,11 +305,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # widthsrc # -------- @@ -371,11 +325,11 @@ def widthsrc(self): ------- str """ - return self["widthsrc"] + return self['widthsrc'] @widthsrc.setter def widthsrc(self, val): - self["widthsrc"] = val + self['widthsrc'] = val # Self properties description # --------------------------- @@ -461,24 +415,22 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `width`. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorscale=None, - colorsrc=None, - reversescale=None, - width=None, - widthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorscale=None, + colorsrc=None, + reversescale=None, + width=None, + widthsrc=None, + **kwargs + ): """ Construct a new Line object @@ -571,10 +523,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -586,68 +538,31 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattersmith.marker.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattersmith.marker.Line`""" - ) +an instance of :class:`plotly.graph_objs.scattersmith.marker.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("widthsrc", None) - _v = widthsrc if widthsrc is not None else _v - if _v is not None: - self["widthsrc"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('width', arg, width) + self._init_provided('widthsrc', arg, widthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/scattersmith/marker/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/scattersmith/marker/colorbar/_tickfont.py index 9d22fc1a4e1..19c51296e3c 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/marker/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattersmith.marker.colorbar" - _path_str = "scattersmith.marker.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scattersmith.marker.colorbar' + _path_str = 'scattersmith.marker.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattersmith.marker.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattersmith.marker.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.scattersmith.marker.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/marker/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/scattersmith/marker/colorbar/_tickformatstop.py index 48b94ce5fd9..3e849d0ce8a 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/marker/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/marker/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattersmith.marker.colorbar" - _path_str = "scattersmith.marker.colorbar.tickformatstop" + _parent_path_str = 'scattersmith.marker.colorbar' + _path_str = 'scattersmith.marker.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattersmith.marker.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattersmith.marker.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.scattersmith.marker.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/marker/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/scattersmith/marker/colorbar/_title.py index b6233e1f9f6..083c63a40b2 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/marker/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattersmith.marker.colorbar" - _path_str = "scattersmith.marker.colorbar.title" + _parent_path_str = 'scattersmith.marker.colorbar' + _path_str = 'scattersmith.marker.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scattersmith.marker.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattersmith.marker.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattersmith.marker.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.scattersmith.marker.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/scattersmith/marker/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/marker/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/scattersmith/marker/colorbar/title/_font.py index ae836aa723b..1723aa02856 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/marker/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattersmith.marker.colorbar.title" - _path_str = "scattersmith.marker.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scattersmith.marker.colorbar.title' + _path_str = 'scattersmith.marker.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattersmith.marker.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattersmith.marker.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.scattersmith.marker.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/scattersmith/selected/__init__.py index ae964f0b65f..4f70de0f5a9 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/selected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker from ._textfont import Textfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.Marker", "._textfont.Textfont"] + __name__, + [], + ['._marker.Marker', '._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/selected/_marker.py b/packages/python/plotly/plotly/graph_objs/scattersmith/selected/_marker.py index 17f622a0913..0d79deb4058 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/selected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/selected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattersmith.selected" - _path_str = "scattersmith.selected.marker" + _parent_path_str = 'scattersmith.selected' + _path_str = 'scattersmith.selected.marker' _valid_props = {"color", "opacity", "size"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -83,11 +50,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # size # ---- @@ -103,11 +70,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # Self properties description # --------------------------- @@ -121,8 +88,13 @@ def _prop_descriptions(self): size Sets the marker size of selected points. """ - - def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + size=None, + **kwargs + ): """ Construct a new Marker object @@ -143,10 +115,10 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -158,32 +130,22 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattersmith.selected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattersmith.selected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scattersmith.selected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) + self._init_provided('size', arg, size) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/selected/_textfont.py b/packages/python/plotly/plotly/graph_objs/scattersmith/selected/_textfont.py index d6207f10d58..9b7062a2e77 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/selected/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/selected/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattersmith.selected" - _path_str = "scattersmith.selected.textfont" + _parent_path_str = 'scattersmith.selected' + _path_str = 'scattersmith.selected.textfont' _valid_props = {"color"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # Self properties description # --------------------------- @@ -77,8 +44,11 @@ def _prop_descriptions(self): color Sets the text font color of selected points. """ - - def __init__(self, arg=None, color=None, **kwargs): + def __init__(self, + arg=None, + color=None, + **kwargs + ): """ Construct a new Textfont object @@ -95,10 +65,10 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -110,24 +80,20 @@ def __init__(self, arg=None, color=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattersmith.selected.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattersmith.selected.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.scattersmith.selected.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v + self._init_provided('color', arg, color) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/scattersmith/unselected/__init__.py index ae964f0b65f..4f70de0f5a9 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/unselected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker from ._textfont import Textfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.Marker", "._textfont.Textfont"] + __name__, + [], + ['._marker.Marker', '._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/unselected/_marker.py b/packages/python/plotly/plotly/graph_objs/scattersmith/unselected/_marker.py index 3e20eea5db1..1ae56478d19 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/unselected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/unselected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattersmith.unselected" - _path_str = "scattersmith.unselected.marker" + _parent_path_str = 'scattersmith.unselected' + _path_str = 'scattersmith.unselected.marker' _valid_props = {"color", "opacity", "size"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -85,11 +52,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # size # ---- @@ -106,11 +73,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # Self properties description # --------------------------- @@ -127,8 +94,13 @@ def _prop_descriptions(self): Sets the marker size of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + size=None, + **kwargs + ): """ Construct a new Marker object @@ -152,10 +124,10 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -167,32 +139,22 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattersmith.unselected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattersmith.unselected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scattersmith.unselected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) + self._init_provided('size', arg, size) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/unselected/_textfont.py b/packages/python/plotly/plotly/graph_objs/scattersmith/unselected/_textfont.py index f2fdfda870d..f964b2bc8e4 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/unselected/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/unselected/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scattersmith.unselected" - _path_str = "scattersmith.unselected.textfont" + _parent_path_str = 'scattersmith.unselected' + _path_str = 'scattersmith.unselected.textfont' _valid_props = {"color"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # Self properties description # --------------------------- @@ -79,8 +46,11 @@ def _prop_descriptions(self): Sets the text font color of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, color=None, **kwargs): + def __init__(self, + arg=None, + color=None, + **kwargs + ): """ Construct a new Textfont object @@ -98,10 +68,10 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -113,24 +83,20 @@ def __init__(self, arg=None, color=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scattersmith.unselected.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scattersmith.unselected.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.scattersmith.unselected.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v + self._init_provided('color', arg, color) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterternary/__init__.py index 382e87019f6..9103ab10864 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._hoverlabel import Hoverlabel from ._legendgrouptitle import Legendgrouptitle @@ -17,18 +16,10 @@ from . import unselected else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".hoverlabel", ".legendgrouptitle", ".marker", ".selected", ".unselected"], - [ - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._line.Line", - "._marker.Marker", - "._selected.Selected", - "._stream.Stream", - "._textfont.Textfont", - "._unselected.Unselected", - ], + ['.hoverlabel', '.legendgrouptitle', '.marker', '.selected', '.unselected'], + ['._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._line.Line', '._marker.Marker', '._selected.Selected', '._stream.Stream', '._textfont.Textfont', '._unselected.Unselected'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/scatterternary/_hoverlabel.py index 00ac960324f..d8d760c87b1 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterternary" - _path_str = "scatterternary.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'scatterternary' + _path_str = 'scatterternary.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.scatterternary.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterternary.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterternary.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.scatterternary.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/scatterternary/_legendgrouptitle.py index 71ceaf3c505..b81a497ab31 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterternary" - _path_str = "scatterternary.legendgrouptitle" + _parent_path_str = 'scatterternary' + _path_str = 'scatterternary.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scatterternary.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterternary.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterternary.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.scatterternary.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/_line.py b/packages/python/plotly/plotly/graph_objs/scatterternary/_line.py index c64fe4eee6c..7ecf93af723 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/_line.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,17 +8,9 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterternary" - _path_str = "scatterternary.line" - _valid_props = { - "backoff", - "backoffsrc", - "color", - "dash", - "shape", - "smoothing", - "width", - } + _parent_path_str = 'scatterternary' + _path_str = 'scatterternary.line' + _valid_props = {"backoff", "backoffsrc", "color", "dash", "shape", "smoothing", "width"} # backoff # ------- @@ -36,11 +30,11 @@ def backoff(self): ------- int|float|numpy.ndarray """ - return self["backoff"] + return self['backoff'] @backoff.setter def backoff(self, val): - self["backoff"] = val + self['backoff'] = val # backoffsrc # ---------- @@ -56,11 +50,11 @@ def backoffsrc(self): ------- str """ - return self["backoffsrc"] + return self['backoffsrc'] @backoffsrc.setter def backoffsrc(self, val): - self["backoffsrc"] = val + self['backoffsrc'] = val # color # ----- @@ -74,52 +68,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # dash # ---- @@ -141,11 +100,11 @@ def dash(self): ------- str """ - return self["dash"] + return self['dash'] @dash.setter def dash(self, val): - self["dash"] = val + self['dash'] = val # shape # ----- @@ -164,11 +123,11 @@ def shape(self): ------- Any """ - return self["shape"] + return self['shape'] @shape.setter def shape(self, val): - self["shape"] = val + self['shape'] = val # smoothing # --------- @@ -186,11 +145,11 @@ def smoothing(self): ------- int|float """ - return self["smoothing"] + return self['smoothing'] @smoothing.setter def smoothing(self, val): - self["smoothing"] = val + self['smoothing'] = val # width # ----- @@ -206,11 +165,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -244,19 +203,17 @@ def _prop_descriptions(self): width Sets the line width (in px). """ - - def __init__( - self, - arg=None, - backoff=None, - backoffsrc=None, - color=None, - dash=None, - shape=None, - smoothing=None, - width=None, - **kwargs, - ): + def __init__(self, + arg=None, + backoff=None, + backoffsrc=None, + color=None, + dash=None, + shape=None, + smoothing=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -297,10 +254,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -312,48 +269,26 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterternary.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterternary.Line`""" - ) +an instance of :class:`plotly.graph_objs.scatterternary.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("backoff", None) - _v = backoff if backoff is not None else _v - if _v is not None: - self["backoff"] = _v - _v = arg.pop("backoffsrc", None) - _v = backoffsrc if backoffsrc is not None else _v - if _v is not None: - self["backoffsrc"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("dash", None) - _v = dash if dash is not None else _v - if _v is not None: - self["dash"] = _v - _v = arg.pop("shape", None) - _v = shape if shape is not None else _v - if _v is not None: - self["shape"] = _v - _v = arg.pop("smoothing", None) - _v = smoothing if smoothing is not None else _v - if _v is not None: - self["smoothing"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('backoff', arg, backoff) + self._init_provided('backoffsrc', arg, backoffsrc) + self._init_provided('color', arg, color) + self._init_provided('dash', arg, dash) + self._init_provided('shape', arg, shape) + self._init_provided('smoothing', arg, smoothing) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/_marker.py b/packages/python/plotly/plotly/graph_objs/scatterternary/_marker.py index a8f50cb5123..b86e92dbe7d 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,39 +8,9 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterternary" - _path_str = "scatterternary.marker" - _valid_props = { - "angle", - "angleref", - "anglesrc", - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorbar", - "colorscale", - "colorsrc", - "gradient", - "line", - "maxdisplayed", - "opacity", - "opacitysrc", - "reversescale", - "showscale", - "size", - "sizemin", - "sizemode", - "sizeref", - "sizesrc", - "standoff", - "standoffsrc", - "symbol", - "symbolsrc", - } + _parent_path_str = 'scatterternary' + _path_str = 'scatterternary.marker' + _valid_props = {"angle", "angleref", "anglesrc", "autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorbar", "colorscale", "colorsrc", "gradient", "line", "maxdisplayed", "opacity", "opacitysrc", "reversescale", "showscale", "size", "sizemin", "sizemode", "sizeref", "sizesrc", "standoff", "standoffsrc", "symbol", "symbolsrc"} # angle # ----- @@ -56,11 +28,11 @@ def angle(self): ------- int|float|numpy.ndarray """ - return self["angle"] + return self['angle'] @angle.setter def angle(self, val): - self["angle"] = val + self['angle'] = val # angleref # -------- @@ -79,11 +51,11 @@ def angleref(self): ------- Any """ - return self["angleref"] + return self['angleref'] @angleref.setter def angleref(self, val): - self["angleref"] = val + self['angleref'] = val # anglesrc # -------- @@ -99,11 +71,11 @@ def anglesrc(self): ------- str """ - return self["anglesrc"] + return self['anglesrc'] @anglesrc.setter def anglesrc(self, val): - self["anglesrc"] = val + self['anglesrc'] = val # autocolorscale # -------------- @@ -125,11 +97,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -150,11 +122,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -173,11 +145,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -197,11 +169,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -220,11 +192,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -241,42 +213,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to scatterternary.marker.colorscale - A list or array of any of the above @@ -285,11 +222,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -312,11 +249,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -329,282 +266,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.scatter - ternary.marker.colorbar.Tickformatstop` - instances or dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.scatterternary.marker.colorbar.tickformatstop - defaults), sets the default property values to - use for elements of - scatterternary.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.scatterternary.mar - ker.colorbar.Title` instance or dict with - compatible properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.scatterternary.marker.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -654,11 +324,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -674,11 +344,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # gradient # -------- @@ -691,31 +361,15 @@ def gradient(self): - A dict of string/value properties that will be passed to the Gradient constructor - Supported dict properties: - - color - Sets the final color of the gradient fill: the - center color for radial, the right for - horizontal, or the bottom for vertical. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - type - Sets the type of gradient used to fill the - markers - typesrc - Sets the source reference on Chart Studio Cloud - for `type`. - Returns ------- plotly.graph_objs.scatterternary.marker.Gradient """ - return self["gradient"] + return self['gradient'] @gradient.setter def gradient(self, val): - self["gradient"] = val + self['gradient'] = val # line # ---- @@ -728,107 +382,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.line.colorscale`. Has an - effect only if in `marker.line.color` is set to - a numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.line.color`) or the bounds set in - `marker.line.cmin` and `marker.line.cmax` Has - an effect only if in `marker.line.color` is set - to a numerical array. Defaults to `false` when - `marker.line.cmin` and `marker.line.cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.line.cmin` and/or - `marker.line.cmax` to be equidistant to this - point. Has an effect only if in - `marker.line.color` is set to a numerical - array. Value should have the same units as in - `marker.line.color`. Has no effect when - `marker.line.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmax` must be set as well. - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorscale - Sets the colorscale. Has an effect only if in - `marker.line.color` is set to a numerical - array. The colorscale must be an array - containing arrays mapping a normalized value to - an rgb, rgba, hex, hsl, hsv, or named color - string. At minimum, a mapping for the lowest - (0) and highest (1) values are required. For - example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use - `marker.line.cmin` and `marker.line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.line.color` is set to - a numerical array. If true, `marker.line.cmin` - will correspond to the last color in the array - and `marker.line.cmax` will correspond to the - first color. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. - Returns ------- plotly.graph_objs.scatterternary.marker.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # maxdisplayed # ------------ @@ -845,11 +407,11 @@ def maxdisplayed(self): ------- int|float """ - return self["maxdisplayed"] + return self['maxdisplayed'] @maxdisplayed.setter def maxdisplayed(self, val): - self["maxdisplayed"] = val + self['maxdisplayed'] = val # opacity # ------- @@ -866,11 +428,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # opacitysrc # ---------- @@ -886,11 +448,11 @@ def opacitysrc(self): ------- str """ - return self["opacitysrc"] + return self['opacitysrc'] @opacitysrc.setter def opacitysrc(self, val): - self["opacitysrc"] = val + self['opacitysrc'] = val # reversescale # ------------ @@ -909,11 +471,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # showscale # --------- @@ -931,11 +493,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # size # ---- @@ -952,11 +514,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizemin # ------- @@ -974,11 +536,11 @@ def sizemin(self): ------- int|float """ - return self["sizemin"] + return self['sizemin'] @sizemin.setter def sizemin(self, val): - self["sizemin"] = val + self['sizemin'] = val # sizemode # -------- @@ -997,11 +559,11 @@ def sizemode(self): ------- Any """ - return self["sizemode"] + return self['sizemode'] @sizemode.setter def sizemode(self, val): - self["sizemode"] = val + self['sizemode'] = val # sizeref # ------- @@ -1019,11 +581,11 @@ def sizeref(self): ------- int|float """ - return self["sizeref"] + return self['sizeref'] @sizeref.setter def sizeref(self, val): - self["sizeref"] = val + self['sizeref'] = val # sizesrc # ------- @@ -1039,11 +601,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # standoff # -------- @@ -1063,11 +625,11 @@ def standoff(self): ------- int|float|numpy.ndarray """ - return self["standoff"] + return self['standoff'] @standoff.setter def standoff(self, val): - self["standoff"] = val + self['standoff'] = val # standoffsrc # ----------- @@ -1083,11 +645,11 @@ def standoffsrc(self): ------- str """ - return self["standoffsrc"] + return self['standoffsrc'] @standoffsrc.setter def standoffsrc(self, val): - self["standoffsrc"] = val + self['standoffsrc'] = val # symbol # ------ @@ -1196,11 +758,11 @@ def symbol(self): ------- Any|numpy.ndarray """ - return self["symbol"] + return self['symbol'] @symbol.setter def symbol(self, val): - self["symbol"] = val + self['symbol'] = val # symbolsrc # --------- @@ -1216,11 +778,11 @@ def symbolsrc(self): ------- str """ - return self["symbolsrc"] + return self['symbolsrc'] @symbolsrc.setter def symbolsrc(self, val): - self["symbolsrc"] = val + self['symbolsrc'] = val # Self properties description # --------------------------- @@ -1363,41 +925,39 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `symbol`. """ - - def __init__( - self, - arg=None, - angle=None, - angleref=None, - anglesrc=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorbar=None, - colorscale=None, - colorsrc=None, - gradient=None, - line=None, - maxdisplayed=None, - opacity=None, - opacitysrc=None, - reversescale=None, - showscale=None, - size=None, - sizemin=None, - sizemode=None, - sizeref=None, - sizesrc=None, - standoff=None, - standoffsrc=None, - symbol=None, - symbolsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + angle=None, + angleref=None, + anglesrc=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorbar=None, + colorscale=None, + colorsrc=None, + gradient=None, + line=None, + maxdisplayed=None, + opacity=None, + opacitysrc=None, + reversescale=None, + showscale=None, + size=None, + sizemin=None, + sizemode=None, + sizeref=None, + sizesrc=None, + standoff=None, + standoffsrc=None, + symbol=None, + symbolsrc=None, + **kwargs + ): """ Construct a new Marker object @@ -1547,10 +1107,10 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1562,136 +1122,48 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterternary.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterternary.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scatterternary.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("angle", None) - _v = angle if angle is not None else _v - if _v is not None: - self["angle"] = _v - _v = arg.pop("angleref", None) - _v = angleref if angleref is not None else _v - if _v is not None: - self["angleref"] = _v - _v = arg.pop("anglesrc", None) - _v = anglesrc if anglesrc is not None else _v - if _v is not None: - self["anglesrc"] = _v - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("gradient", None) - _v = gradient if gradient is not None else _v - if _v is not None: - self["gradient"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("maxdisplayed", None) - _v = maxdisplayed if maxdisplayed is not None else _v - if _v is not None: - self["maxdisplayed"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("opacitysrc", None) - _v = opacitysrc if opacitysrc is not None else _v - if _v is not None: - self["opacitysrc"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizemin", None) - _v = sizemin if sizemin is not None else _v - if _v is not None: - self["sizemin"] = _v - _v = arg.pop("sizemode", None) - _v = sizemode if sizemode is not None else _v - if _v is not None: - self["sizemode"] = _v - _v = arg.pop("sizeref", None) - _v = sizeref if sizeref is not None else _v - if _v is not None: - self["sizeref"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("standoff", None) - _v = standoff if standoff is not None else _v - if _v is not None: - self["standoff"] = _v - _v = arg.pop("standoffsrc", None) - _v = standoffsrc if standoffsrc is not None else _v - if _v is not None: - self["standoffsrc"] = _v - _v = arg.pop("symbol", None) - _v = symbol if symbol is not None else _v - if _v is not None: - self["symbol"] = _v - _v = arg.pop("symbolsrc", None) - _v = symbolsrc if symbolsrc is not None else _v - if _v is not None: - self["symbolsrc"] = _v + self._init_provided('angle', arg, angle) + self._init_provided('angleref', arg, angleref) + self._init_provided('anglesrc', arg, anglesrc) + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('gradient', arg, gradient) + self._init_provided('line', arg, line) + self._init_provided('maxdisplayed', arg, maxdisplayed) + self._init_provided('opacity', arg, opacity) + self._init_provided('opacitysrc', arg, opacitysrc) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('showscale', arg, showscale) + self._init_provided('size', arg, size) + self._init_provided('sizemin', arg, sizemin) + self._init_provided('sizemode', arg, sizemode) + self._init_provided('sizeref', arg, sizeref) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('standoff', arg, standoff) + self._init_provided('standoffsrc', arg, standoffsrc) + self._init_provided('symbol', arg, symbol) + self._init_provided('symbolsrc', arg, symbolsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/_selected.py b/packages/python/plotly/plotly/graph_objs/scatterternary/_selected.py index ea416db8aa6..ad1c30dc803 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/_selected.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/_selected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Selected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterternary" - _path_str = "scatterternary.selected" + _parent_path_str = 'scatterternary' + _path_str = 'scatterternary.selected' _valid_props = {"marker", "textfont"} # marker @@ -21,24 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. - size - Sets the marker size of selected points. - Returns ------- plotly.graph_objs.scatterternary.selected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # textfont # -------- @@ -51,20 +44,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - Sets the text font color of selected points. - Returns ------- plotly.graph_objs.scatterternary.selected.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # Self properties description # --------------------------- @@ -78,8 +66,12 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.scatterternary.selected.Te xtfont` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, textfont=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + textfont=None, + **kwargs + ): """ Construct a new Selected object @@ -100,10 +92,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") + super(Selected, self).__init__('selected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -115,28 +107,21 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterternary.Selected constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterternary.Selected`""" - ) +an instance of :class:`plotly.graph_objs.scatterternary.Selected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v + self._init_provided('marker', arg, marker) + self._init_provided('textfont', arg, textfont) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/_stream.py b/packages/python/plotly/plotly/graph_objs/scatterternary/_stream.py index 6f12b626be9..0de83bab615 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterternary" - _path_str = "scatterternary.stream" + _parent_path_str = 'scatterternary' + _path_str = 'scatterternary.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterternary.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterternary.Stream`""" - ) +an instance of :class:`plotly.graph_objs.scatterternary.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/_textfont.py b/packages/python/plotly/plotly/graph_objs/scatterternary/_textfont.py index b4c9e896d55..8a8a59ff368 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterternary" - _path_str = "scatterternary.textfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'scatterternary' + _path_str = 'scatterternary.textfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Textfont object @@ -639,10 +585,10 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterternary.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterternary.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.scatterternary.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/_unselected.py b/packages/python/plotly/plotly/graph_objs/scatterternary/_unselected.py index 5546e8c40be..3329f2da5db 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/_unselected.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/_unselected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Unselected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterternary" - _path_str = "scatterternary.unselected" + _parent_path_str = 'scatterternary' + _path_str = 'scatterternary.unselected' _valid_props = {"marker", "textfont"} # marker @@ -21,27 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - size - Sets the marker size of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.scatterternary.unselected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # textfont # -------- @@ -54,21 +44,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - Sets the text font color of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.scatterternary.unselected.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # Self properties description # --------------------------- @@ -82,8 +66,12 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.scatterternary.unselected. Textfont` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, textfont=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + textfont=None, + **kwargs + ): """ Construct a new Unselected object @@ -104,10 +92,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") + super(Unselected, self).__init__('unselected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -119,28 +107,21 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterternary.Unselected constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterternary.Unselected`""" - ) +an instance of :class:`plotly.graph_objs.scatterternary.Unselected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v + self._init_provided('marker', arg, marker) + self._init_provided('textfont', arg, textfont) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterternary/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/scatterternary/hoverlabel/_font.py index 30b26aa4bae..47d5724ca53 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterternary.hoverlabel" - _path_str = "scatterternary.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'scatterternary.hoverlabel' + _path_str = 'scatterternary.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterternary.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterternary.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.scatterternary.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterternary/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/scatterternary/legendgrouptitle/_font.py index 6880a3857b7..89fccc7d190 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterternary.legendgrouptitle" - _path_str = "scatterternary.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scatterternary.legendgrouptitle' + _path_str = 'scatterternary.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterternary.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterternary.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.scatterternary.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterternary/marker/__init__.py index f1897fb0aa7..b07f6ce198a 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._gradient import Gradient @@ -8,9 +7,10 @@ from . import colorbar else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".colorbar"], - ["._colorbar.ColorBar", "._gradient.Gradient", "._line.Line"], + ['.colorbar'], + ['._colorbar.ColorBar', '._gradient.Gradient', '._line.Line'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/marker/_colorbar.py b/packages/python/plotly/plotly/graph_objs/scatterternary/marker/_colorbar.py index f0a2344cf5f..c70e09eecf1 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/marker/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/marker/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterternary.marker" - _path_str = "scatterternary.marker.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'scatterternary.marker' + _path_str = 'scatterternary.marker.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scatterternary.marker.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.scatterternary.marker.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.scatterternary.marker.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.scatterternary.marker.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterternary.marker.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterternary.marker.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.scatterternary.marker.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/marker/_gradient.py b/packages/python/plotly/plotly/graph_objs/scatterternary/marker/_gradient.py index b5face9cc49..adc09fee7d9 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/marker/_gradient.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/marker/_gradient.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Gradient(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterternary.marker" - _path_str = "scatterternary.marker.gradient" + _parent_path_str = 'scatterternary.marker' + _path_str = 'scatterternary.marker.gradient' _valid_props = {"color", "colorsrc", "type", "typesrc"} # color @@ -23,53 +25,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -85,11 +52,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # type # ---- @@ -107,11 +74,11 @@ def type(self): ------- Any|numpy.ndarray """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # typesrc # ------- @@ -127,11 +94,11 @@ def typesrc(self): ------- str """ - return self["typesrc"] + return self['typesrc'] @typesrc.setter def typesrc(self, val): - self["typesrc"] = val + self['typesrc'] = val # Self properties description # --------------------------- @@ -151,10 +118,14 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `type`. """ - - def __init__( - self, arg=None, color=None, colorsrc=None, type=None, typesrc=None, **kwargs - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + type=None, + typesrc=None, + **kwargs + ): """ Construct a new Gradient object @@ -181,10 +152,10 @@ def __init__( ------- Gradient """ - super(Gradient, self).__init__("gradient") + super(Gradient, self).__init__('gradient') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -196,36 +167,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterternary.marker.Gradient constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterternary.marker.Gradient`""" - ) +an instance of :class:`plotly.graph_objs.scatterternary.marker.Gradient`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v - _v = arg.pop("typesrc", None) - _v = typesrc if typesrc is not None else _v - if _v is not None: - self["typesrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('type', arg, type) + self._init_provided('typesrc', arg, typesrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/marker/_line.py b/packages/python/plotly/plotly/graph_objs/scatterternary/marker/_line.py index 28c73d58e87..d58c7a772b5 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/marker/_line.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/marker/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,22 +8,9 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterternary.marker" - _path_str = "scatterternary.marker.line" - _valid_props = { - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorscale", - "colorsrc", - "reversescale", - "width", - "widthsrc", - } + _parent_path_str = 'scatterternary.marker' + _path_str = 'scatterternary.marker.line' + _valid_props = {"autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorscale", "colorsrc", "reversescale", "width", "widthsrc"} # autocolorscale # -------------- @@ -43,11 +32,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -68,11 +57,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -91,11 +80,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -116,11 +105,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -139,11 +128,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -160,42 +149,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to scatterternary.marker.line.colorscale - A list or array of any of the above @@ -204,11 +158,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -231,11 +185,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorscale # ---------- @@ -286,11 +240,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -306,11 +260,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # reversescale # ------------ @@ -330,11 +284,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # width # ----- @@ -351,11 +305,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # widthsrc # -------- @@ -371,11 +325,11 @@ def widthsrc(self): ------- str """ - return self["widthsrc"] + return self['widthsrc'] @widthsrc.setter def widthsrc(self, val): - self["widthsrc"] = val + self['widthsrc'] = val # Self properties description # --------------------------- @@ -461,24 +415,22 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `width`. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorscale=None, - colorsrc=None, - reversescale=None, - width=None, - widthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorscale=None, + colorsrc=None, + reversescale=None, + width=None, + widthsrc=None, + **kwargs + ): """ Construct a new Line object @@ -571,10 +523,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -586,68 +538,31 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterternary.marker.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterternary.marker.Line`""" - ) +an instance of :class:`plotly.graph_objs.scatterternary.marker.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("widthsrc", None) - _v = widthsrc if widthsrc is not None else _v - if _v is not None: - self["widthsrc"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('width', arg, width) + self._init_provided('widthsrc', arg, widthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/_tickfont.py index 5a07c4f1726..075f5967ffc 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterternary.marker.colorbar" - _path_str = "scatterternary.marker.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scatterternary.marker.colorbar' + _path_str = 'scatterternary.marker.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterternary.marker.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterternary.marker.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.scatterternary.marker.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/_tickformatstop.py index 20545634ca8..aac4dc9ef02 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterternary.marker.colorbar" - _path_str = "scatterternary.marker.colorbar.tickformatstop" + _parent_path_str = 'scatterternary.marker.colorbar' + _path_str = 'scatterternary.marker.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterternary.marker.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterternary.marker.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.scatterternary.marker.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/_title.py index 1dfe75b4246..ece2e6d5be3 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterternary.marker.colorbar" - _path_str = "scatterternary.marker.colorbar.title" + _parent_path_str = 'scatterternary.marker.colorbar' + _path_str = 'scatterternary.marker.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.scatterternary.marker.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterternary.marker.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterternary.marker.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.scatterternary.marker.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/title/_font.py index 3771ba64a78..08fc14555e1 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterternary.marker.colorbar.title" - _path_str = "scatterternary.marker.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'scatterternary.marker.colorbar.title' + _path_str = 'scatterternary.marker.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterternary.marker.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterternary.marker.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.scatterternary.marker.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterternary/selected/__init__.py index ae964f0b65f..4f70de0f5a9 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/selected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker from ._textfont import Textfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.Marker", "._textfont.Textfont"] + __name__, + [], + ['._marker.Marker', '._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/selected/_marker.py b/packages/python/plotly/plotly/graph_objs/scatterternary/selected/_marker.py index 26bb1a9435c..6c6c5f58961 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/selected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/selected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterternary.selected" - _path_str = "scatterternary.selected.marker" + _parent_path_str = 'scatterternary.selected' + _path_str = 'scatterternary.selected.marker' _valid_props = {"color", "opacity", "size"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -83,11 +50,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # size # ---- @@ -103,11 +70,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # Self properties description # --------------------------- @@ -121,8 +88,13 @@ def _prop_descriptions(self): size Sets the marker size of selected points. """ - - def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + size=None, + **kwargs + ): """ Construct a new Marker object @@ -143,10 +115,10 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -158,32 +130,22 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterternary.selected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterternary.selected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scatterternary.selected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) + self._init_provided('size', arg, size) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/selected/_textfont.py b/packages/python/plotly/plotly/graph_objs/scatterternary/selected/_textfont.py index afb97493ebc..ab6247b0055 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/selected/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/selected/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterternary.selected" - _path_str = "scatterternary.selected.textfont" + _parent_path_str = 'scatterternary.selected' + _path_str = 'scatterternary.selected.textfont' _valid_props = {"color"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # Self properties description # --------------------------- @@ -77,8 +44,11 @@ def _prop_descriptions(self): color Sets the text font color of selected points. """ - - def __init__(self, arg=None, color=None, **kwargs): + def __init__(self, + arg=None, + color=None, + **kwargs + ): """ Construct a new Textfont object @@ -95,10 +65,10 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -110,24 +80,20 @@ def __init__(self, arg=None, color=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterternary.selected.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterternary.selected.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.scatterternary.selected.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v + self._init_provided('color', arg, color) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterternary/unselected/__init__.py index ae964f0b65f..4f70de0f5a9 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/unselected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker from ._textfont import Textfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.Marker", "._textfont.Textfont"] + __name__, + [], + ['._marker.Marker', '._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/unselected/_marker.py b/packages/python/plotly/plotly/graph_objs/scatterternary/unselected/_marker.py index bef9394b204..8de65a5e7cb 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/unselected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/unselected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterternary.unselected" - _path_str = "scatterternary.unselected.marker" + _parent_path_str = 'scatterternary.unselected' + _path_str = 'scatterternary.unselected.marker' _valid_props = {"color", "opacity", "size"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -85,11 +52,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # size # ---- @@ -106,11 +73,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # Self properties description # --------------------------- @@ -127,8 +94,13 @@ def _prop_descriptions(self): Sets the marker size of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + size=None, + **kwargs + ): """ Construct a new Marker object @@ -152,10 +124,10 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -167,32 +139,22 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterternary.unselected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterternary.unselected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.scatterternary.unselected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) + self._init_provided('size', arg, size) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/unselected/_textfont.py b/packages/python/plotly/plotly/graph_objs/scatterternary/unselected/_textfont.py index 1c452ced1d0..e38e298baab 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/unselected/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/unselected/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "scatterternary.unselected" - _path_str = "scatterternary.unselected.textfont" + _parent_path_str = 'scatterternary.unselected' + _path_str = 'scatterternary.unselected.textfont' _valid_props = {"color"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # Self properties description # --------------------------- @@ -79,8 +46,11 @@ def _prop_descriptions(self): Sets the text font color of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, color=None, **kwargs): + def __init__(self, + arg=None, + color=None, + **kwargs + ): """ Construct a new Textfont object @@ -98,10 +68,10 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -113,24 +83,20 @@ def __init__(self, arg=None, color=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.scatterternary.unselected.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.scatterternary.unselected.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.scatterternary.unselected.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v + self._init_provided('color', arg, color) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/splom/__init__.py b/packages/python/plotly/plotly/graph_objs/splom/__init__.py index fc09843582f..cde123fa96b 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/splom/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._diagonal import Diagonal from ._dimension import Dimension @@ -18,25 +17,10 @@ from . import unselected else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [ - ".dimension", - ".hoverlabel", - ".legendgrouptitle", - ".marker", - ".selected", - ".unselected", - ], - [ - "._diagonal.Diagonal", - "._dimension.Dimension", - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._marker.Marker", - "._selected.Selected", - "._stream.Stream", - "._unselected.Unselected", - ], + ['.dimension', '.hoverlabel', '.legendgrouptitle', '.marker', '.selected', '.unselected'], + ['._diagonal.Diagonal', '._dimension.Dimension', '._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._marker.Marker', '._selected.Selected', '._stream.Stream', '._unselected.Unselected'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/splom/_diagonal.py b/packages/python/plotly/plotly/graph_objs/splom/_diagonal.py index fbfdc261a55..88abf652f21 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/_diagonal.py +++ b/packages/python/plotly/plotly/graph_objs/splom/_diagonal.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Diagonal(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "splom" - _path_str = "splom.diagonal" + _parent_path_str = 'splom' + _path_str = 'splom.diagonal' _valid_props = {"visible"} # visible @@ -25,11 +27,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # Self properties description # --------------------------- @@ -40,8 +42,11 @@ def _prop_descriptions(self): Determines whether or not subplots on the diagonal are displayed. """ - - def __init__(self, arg=None, visible=None, **kwargs): + def __init__(self, + arg=None, + visible=None, + **kwargs + ): """ Construct a new Diagonal object @@ -59,10 +64,10 @@ def __init__(self, arg=None, visible=None, **kwargs): ------- Diagonal """ - super(Diagonal, self).__init__("diagonal") + super(Diagonal, self).__init__('diagonal') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -74,24 +79,20 @@ def __init__(self, arg=None, visible=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.splom.Diagonal constructor must be a dict or -an instance of :class:`plotly.graph_objs.splom.Diagonal`""" - ) +an instance of :class:`plotly.graph_objs.splom.Diagonal`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('visible', arg, visible) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/splom/_dimension.py b/packages/python/plotly/plotly/graph_objs/splom/_dimension.py index c9a7ffe2662..4ddee35d50d 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/_dimension.py +++ b/packages/python/plotly/plotly/graph_objs/splom/_dimension.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,17 +8,9 @@ class Dimension(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "splom" - _path_str = "splom.dimension" - _valid_props = { - "axis", - "label", - "name", - "templateitemname", - "values", - "valuessrc", - "visible", - } + _parent_path_str = 'splom' + _path_str = 'splom.dimension' + _valid_props = {"axis", "label", "name", "templateitemname", "values", "valuessrc", "visible"} # axis # ---- @@ -29,28 +23,15 @@ def axis(self): - A dict of string/value properties that will be passed to the Axis constructor - Supported dict properties: - - matches - Determines whether or not the x & y axes - generated by this dimension match. Equivalent - to setting the `matches` axis attribute in the - layout with the correct axis id. - type - Sets the axis type for this dimension's - generated x and y axes. Note that the axis - `type` values set in layout take precedence - over this attribute. - Returns ------- plotly.graph_objs.splom.dimension.Axis """ - return self["axis"] + return self['axis'] @axis.setter def axis(self, val): - self["axis"] = val + self['axis'] = val # label # ----- @@ -67,11 +48,11 @@ def label(self): ------- str """ - return self["label"] + return self['label'] @label.setter def label(self, val): - self["label"] = val + self['label'] = val # name # ---- @@ -94,11 +75,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -122,11 +103,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # values # ------ @@ -142,11 +123,11 @@ def values(self): ------- numpy.ndarray """ - return self["values"] + return self['values'] @values.setter def values(self, val): - self["values"] = val + self['values'] = val # valuessrc # --------- @@ -162,11 +143,11 @@ def valuessrc(self): ------- str """ - return self["valuessrc"] + return self['valuessrc'] @valuessrc.setter def valuessrc(self, val): - self["valuessrc"] = val + self['valuessrc'] = val # visible # ------- @@ -184,11 +165,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # Self properties description # --------------------------- @@ -230,19 +211,17 @@ def _prop_descriptions(self): contribute to the default grid generate by this splom trace. """ - - def __init__( - self, - arg=None, - axis=None, - label=None, - name=None, - templateitemname=None, - values=None, - valuessrc=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + axis=None, + label=None, + name=None, + templateitemname=None, + values=None, + valuessrc=None, + visible=None, + **kwargs + ): """ Construct a new Dimension object @@ -291,10 +270,10 @@ def __init__( ------- Dimension """ - super(Dimension, self).__init__("dimensions") + super(Dimension, self).__init__('dimensions') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -306,48 +285,26 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.splom.Dimension constructor must be a dict or -an instance of :class:`plotly.graph_objs.splom.Dimension`""" - ) +an instance of :class:`plotly.graph_objs.splom.Dimension`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("axis", None) - _v = axis if axis is not None else _v - if _v is not None: - self["axis"] = _v - _v = arg.pop("label", None) - _v = label if label is not None else _v - if _v is not None: - self["label"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("values", None) - _v = values if values is not None else _v - if _v is not None: - self["values"] = _v - _v = arg.pop("valuessrc", None) - _v = valuessrc if valuessrc is not None else _v - if _v is not None: - self["valuessrc"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('axis', arg, axis) + self._init_provided('label', arg, label) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('values', arg, values) + self._init_provided('valuessrc', arg, valuessrc) + self._init_provided('visible', arg, visible) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/splom/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/splom/_hoverlabel.py index 6730d8e3b2f..52daac6742b 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/splom/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "splom" - _path_str = "splom.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'splom' + _path_str = 'splom.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.splom.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.splom.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.splom.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.splom.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/splom/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/splom/_legendgrouptitle.py index ba249acc8c5..795ec044838 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/splom/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "splom" - _path_str = "splom.legendgrouptitle" + _parent_path_str = 'splom' + _path_str = 'splom.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.splom.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.splom.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.splom.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.splom.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/splom/_marker.py b/packages/python/plotly/plotly/graph_objs/splom/_marker.py index 741c7de383f..aa7425e58ff 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/splom/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,34 +8,9 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "splom" - _path_str = "splom.marker" - _valid_props = { - "angle", - "anglesrc", - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorbar", - "colorscale", - "colorsrc", - "line", - "opacity", - "opacitysrc", - "reversescale", - "showscale", - "size", - "sizemin", - "sizemode", - "sizeref", - "sizesrc", - "symbol", - "symbolsrc", - } + _parent_path_str = 'splom' + _path_str = 'splom.marker' + _valid_props = {"angle", "anglesrc", "autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorbar", "colorscale", "colorsrc", "line", "opacity", "opacitysrc", "reversescale", "showscale", "size", "sizemin", "sizemode", "sizeref", "sizesrc", "symbol", "symbolsrc"} # angle # ----- @@ -51,11 +28,11 @@ def angle(self): ------- int|float|numpy.ndarray """ - return self["angle"] + return self['angle'] @angle.setter def angle(self, val): - self["angle"] = val + self['angle'] = val # anglesrc # -------- @@ -71,11 +48,11 @@ def anglesrc(self): ------- str """ - return self["anglesrc"] + return self['anglesrc'] @anglesrc.setter def anglesrc(self, val): - self["anglesrc"] = val + self['anglesrc'] = val # autocolorscale # -------------- @@ -97,11 +74,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -122,11 +99,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -145,11 +122,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -169,11 +146,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -192,11 +169,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -213,42 +190,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to splom.marker.colorscale - A list or array of any of the above @@ -257,11 +199,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -284,11 +226,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -301,282 +243,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.splom.m - arker.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.splom.marker.colorbar.tickformatstopdefaults) - , sets the default property values to use for - elements of - splom.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.splom.marker.color - bar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.splom.marker.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colorscale # ---------- @@ -626,11 +301,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -646,11 +321,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # line # ---- @@ -663,107 +338,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.line.colorscale`. Has an - effect only if in `marker.line.color` is set to - a numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.line.color`) or the bounds set in - `marker.line.cmin` and `marker.line.cmax` Has - an effect only if in `marker.line.color` is set - to a numerical array. Defaults to `false` when - `marker.line.cmin` and `marker.line.cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.line.cmin` and/or - `marker.line.cmax` to be equidistant to this - point. Has an effect only if in - `marker.line.color` is set to a numerical - array. Value should have the same units as in - `marker.line.color`. Has no effect when - `marker.line.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmax` must be set as well. - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorscale - Sets the colorscale. Has an effect only if in - `marker.line.color` is set to a numerical - array. The colorscale must be an array - containing arrays mapping a normalized value to - an rgb, rgba, hex, hsl, hsv, or named color - string. At minimum, a mapping for the lowest - (0) and highest (1) values are required. For - example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use - `marker.line.cmin` and `marker.line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.line.color` is set to - a numerical array. If true, `marker.line.cmin` - will correspond to the last color in the array - and `marker.line.cmax` will correspond to the - first color. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. - Returns ------- plotly.graph_objs.splom.marker.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # opacity # ------- @@ -780,11 +363,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # opacitysrc # ---------- @@ -800,11 +383,11 @@ def opacitysrc(self): ------- str """ - return self["opacitysrc"] + return self['opacitysrc'] @opacitysrc.setter def opacitysrc(self, val): - self["opacitysrc"] = val + self['opacitysrc'] = val # reversescale # ------------ @@ -823,11 +406,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # showscale # --------- @@ -845,11 +428,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # size # ---- @@ -866,11 +449,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizemin # ------- @@ -888,11 +471,11 @@ def sizemin(self): ------- int|float """ - return self["sizemin"] + return self['sizemin'] @sizemin.setter def sizemin(self, val): - self["sizemin"] = val + self['sizemin'] = val # sizemode # -------- @@ -911,11 +494,11 @@ def sizemode(self): ------- Any """ - return self["sizemode"] + return self['sizemode'] @sizemode.setter def sizemode(self, val): - self["sizemode"] = val + self['sizemode'] = val # sizeref # ------- @@ -933,11 +516,11 @@ def sizeref(self): ------- int|float """ - return self["sizeref"] + return self['sizeref'] @sizeref.setter def sizeref(self, val): - self["sizeref"] = val + self['sizeref'] = val # sizesrc # ------- @@ -953,11 +536,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # symbol # ------ @@ -1066,11 +649,11 @@ def symbol(self): ------- Any|numpy.ndarray """ - return self["symbol"] + return self['symbol'] @symbol.setter def symbol(self, val): - self["symbol"] = val + self['symbol'] = val # symbolsrc # --------- @@ -1086,11 +669,11 @@ def symbolsrc(self): ------- str """ - return self["symbolsrc"] + return self['symbolsrc'] @symbolsrc.setter def symbolsrc(self, val): - self["symbolsrc"] = val + self['symbolsrc'] = val # Self properties description # --------------------------- @@ -1214,36 +797,34 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `symbol`. """ - - def __init__( - self, - arg=None, - angle=None, - anglesrc=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorbar=None, - colorscale=None, - colorsrc=None, - line=None, - opacity=None, - opacitysrc=None, - reversescale=None, - showscale=None, - size=None, - sizemin=None, - sizemode=None, - sizeref=None, - sizesrc=None, - symbol=None, - symbolsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + angle=None, + anglesrc=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorbar=None, + colorscale=None, + colorsrc=None, + line=None, + opacity=None, + opacitysrc=None, + reversescale=None, + showscale=None, + size=None, + sizemin=None, + sizemode=None, + sizeref=None, + sizesrc=None, + symbol=None, + symbolsrc=None, + **kwargs + ): """ Construct a new Marker object @@ -1373,10 +954,10 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1388,116 +969,43 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.splom.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.splom.Marker`""" - ) +an instance of :class:`plotly.graph_objs.splom.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("angle", None) - _v = angle if angle is not None else _v - if _v is not None: - self["angle"] = _v - _v = arg.pop("anglesrc", None) - _v = anglesrc if anglesrc is not None else _v - if _v is not None: - self["anglesrc"] = _v - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("opacitysrc", None) - _v = opacitysrc if opacitysrc is not None else _v - if _v is not None: - self["opacitysrc"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizemin", None) - _v = sizemin if sizemin is not None else _v - if _v is not None: - self["sizemin"] = _v - _v = arg.pop("sizemode", None) - _v = sizemode if sizemode is not None else _v - if _v is not None: - self["sizemode"] = _v - _v = arg.pop("sizeref", None) - _v = sizeref if sizeref is not None else _v - if _v is not None: - self["sizeref"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("symbol", None) - _v = symbol if symbol is not None else _v - if _v is not None: - self["symbol"] = _v - _v = arg.pop("symbolsrc", None) - _v = symbolsrc if symbolsrc is not None else _v - if _v is not None: - self["symbolsrc"] = _v + self._init_provided('angle', arg, angle) + self._init_provided('anglesrc', arg, anglesrc) + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('line', arg, line) + self._init_provided('opacity', arg, opacity) + self._init_provided('opacitysrc', arg, opacitysrc) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('showscale', arg, showscale) + self._init_provided('size', arg, size) + self._init_provided('sizemin', arg, sizemin) + self._init_provided('sizemode', arg, sizemode) + self._init_provided('sizeref', arg, sizeref) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('symbol', arg, symbol) + self._init_provided('symbolsrc', arg, symbolsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/splom/_selected.py b/packages/python/plotly/plotly/graph_objs/splom/_selected.py index 391699e3e3c..20e9e02d996 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/_selected.py +++ b/packages/python/plotly/plotly/graph_objs/splom/_selected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Selected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "splom" - _path_str = "splom.selected" + _parent_path_str = 'splom' + _path_str = 'splom.selected' _valid_props = {"marker"} # marker @@ -21,24 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. - size - Sets the marker size of selected points. - Returns ------- plotly.graph_objs.splom.selected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # Self properties description # --------------------------- @@ -49,8 +42,11 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.splom.selected.Marker` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + **kwargs + ): """ Construct a new Selected object @@ -68,10 +64,10 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") + super(Selected, self).__init__('selected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -83,24 +79,20 @@ def __init__(self, arg=None, marker=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.splom.Selected constructor must be a dict or -an instance of :class:`plotly.graph_objs.splom.Selected`""" - ) +an instance of :class:`plotly.graph_objs.splom.Selected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v + self._init_provided('marker', arg, marker) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/splom/_stream.py b/packages/python/plotly/plotly/graph_objs/splom/_stream.py index c97ab999fe8..e3fbd195595 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/splom/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "splom" - _path_str = "splom.stream" + _parent_path_str = 'splom' + _path_str = 'splom.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -93,10 +99,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -108,28 +114,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.splom.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.splom.Stream`""" - ) +an instance of :class:`plotly.graph_objs.splom.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/splom/_unselected.py b/packages/python/plotly/plotly/graph_objs/splom/_unselected.py index 70ba03e6c21..9314bba6b08 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/_unselected.py +++ b/packages/python/plotly/plotly/graph_objs/splom/_unselected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Unselected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "splom" - _path_str = "splom.unselected" + _parent_path_str = 'splom' + _path_str = 'splom.unselected' _valid_props = {"marker"} # marker @@ -21,27 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - size - Sets the marker size of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.splom.unselected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # Self properties description # --------------------------- @@ -52,8 +42,11 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.splom.unselected.Marker` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + **kwargs + ): """ Construct a new Unselected object @@ -71,10 +64,10 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") + super(Unselected, self).__init__('unselected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -86,24 +79,20 @@ def __init__(self, arg=None, marker=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.splom.Unselected constructor must be a dict or -an instance of :class:`plotly.graph_objs.splom.Unselected`""" - ) +an instance of :class:`plotly.graph_objs.splom.Unselected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v + self._init_provided('marker', arg, marker) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/splom/dimension/__init__.py b/packages/python/plotly/plotly/graph_objs/splom/dimension/__init__.py index fa2cdec08b3..482097a6da5 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/dimension/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/splom/dimension/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._axis import Axis else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._axis.Axis'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._axis.Axis"]) diff --git a/packages/python/plotly/plotly/graph_objs/splom/dimension/_axis.py b/packages/python/plotly/plotly/graph_objs/splom/dimension/_axis.py index 9d82b980af0..e9da6fa1bcc 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/dimension/_axis.py +++ b/packages/python/plotly/plotly/graph_objs/splom/dimension/_axis.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Axis(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "splom.dimension" - _path_str = "splom.dimension.axis" + _parent_path_str = 'splom.dimension' + _path_str = 'splom.dimension.axis' _valid_props = {"matches", "type"} # matches @@ -26,11 +28,11 @@ def matches(self): ------- bool """ - return self["matches"] + return self['matches'] @matches.setter def matches(self, val): - self["matches"] = val + self['matches'] = val # type # ---- @@ -49,11 +51,11 @@ def type(self): ------- Any """ - return self["type"] + return self['type'] @type.setter def type(self, val): - self["type"] = val + self['type'] = val # Self properties description # --------------------------- @@ -70,8 +72,12 @@ def _prop_descriptions(self): y axes. Note that the axis `type` values set in layout take precedence over this attribute. """ - - def __init__(self, arg=None, matches=None, type=None, **kwargs): + def __init__(self, + arg=None, + matches=None, + type=None, + **kwargs + ): """ Construct a new Axis object @@ -95,10 +101,10 @@ def __init__(self, arg=None, matches=None, type=None, **kwargs): ------- Axis """ - super(Axis, self).__init__("axis") + super(Axis, self).__init__('axis') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -110,28 +116,21 @@ def __init__(self, arg=None, matches=None, type=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.splom.dimension.Axis constructor must be a dict or -an instance of :class:`plotly.graph_objs.splom.dimension.Axis`""" - ) +an instance of :class:`plotly.graph_objs.splom.dimension.Axis`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("matches", None) - _v = matches if matches is not None else _v - if _v is not None: - self["matches"] = _v - _v = arg.pop("type", None) - _v = type if type is not None else _v - if _v is not None: - self["type"] = _v + self._init_provided('matches', arg, matches) + self._init_provided('type', arg, type) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/splom/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/splom/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/splom/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/splom/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/splom/hoverlabel/_font.py index 32c53ae9b31..8aeb176d64f 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/splom/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "splom.hoverlabel" - _path_str = "splom.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'splom.hoverlabel' + _path_str = 'splom.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.splom.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.splom.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.splom.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/splom/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/splom/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/splom/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/splom/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/splom/legendgrouptitle/_font.py index 42cdd4ebc54..2cafe2cefdb 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/splom/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "splom.legendgrouptitle" - _path_str = "splom.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'splom.legendgrouptitle' + _path_str = 'splom.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.splom.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.splom.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.splom.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/splom/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/splom/marker/__init__.py index 8481520e3c9..60bb7edb6d5 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/splom/marker/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._line import Line from . import colorbar else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [".colorbar"], ["._colorbar.ColorBar", "._line.Line"] + __name__, + ['.colorbar'], + ['._colorbar.ColorBar', '._line.Line'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/splom/marker/_colorbar.py b/packages/python/plotly/plotly/graph_objs/splom/marker/_colorbar.py index ecef7af8e6a..c4685b00e08 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/marker/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/splom/marker/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "splom.marker" - _path_str = "splom.marker.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'splom.marker' + _path_str = 'splom.marker.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.splom.marker.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.splom.marker.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.splom.marker.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.splom.marker.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.splom.marker.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.splom.marker.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.splom.marker.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/splom/marker/_line.py b/packages/python/plotly/plotly/graph_objs/splom/marker/_line.py index a6263ebb07a..08c8efab01f 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/marker/_line.py +++ b/packages/python/plotly/plotly/graph_objs/splom/marker/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,22 +8,9 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "splom.marker" - _path_str = "splom.marker.line" - _valid_props = { - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "color", - "coloraxis", - "colorscale", - "colorsrc", - "reversescale", - "width", - "widthsrc", - } + _parent_path_str = 'splom.marker' + _path_str = 'splom.marker.line' + _valid_props = {"autocolorscale", "cauto", "cmax", "cmid", "cmin", "color", "coloraxis", "colorscale", "colorsrc", "reversescale", "width", "widthsrc"} # autocolorscale # -------------- @@ -43,11 +32,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -68,11 +57,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -91,11 +80,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -116,11 +105,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -139,11 +128,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # color # ----- @@ -160,42 +149,7 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A number that will be interpreted as a color according to splom.marker.line.colorscale - A list or array of any of the above @@ -204,11 +158,11 @@ def color(self): ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # coloraxis # --------- @@ -231,11 +185,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorscale # ---------- @@ -286,11 +240,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorsrc # -------- @@ -306,11 +260,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # reversescale # ------------ @@ -330,11 +284,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # width # ----- @@ -351,11 +305,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # widthsrc # -------- @@ -371,11 +325,11 @@ def widthsrc(self): ------- str """ - return self["widthsrc"] + return self['widthsrc'] @widthsrc.setter def widthsrc(self, val): - self["widthsrc"] = val + self['widthsrc'] = val # Self properties description # --------------------------- @@ -461,24 +415,22 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `width`. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - color=None, - coloraxis=None, - colorscale=None, - colorsrc=None, - reversescale=None, - width=None, - widthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + color=None, + coloraxis=None, + colorscale=None, + colorsrc=None, + reversescale=None, + width=None, + widthsrc=None, + **kwargs + ): """ Construct a new Line object @@ -571,10 +523,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -586,68 +538,31 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.splom.marker.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.splom.marker.Line`""" - ) +an instance of :class:`plotly.graph_objs.splom.marker.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("widthsrc", None) - _v = widthsrc if widthsrc is not None else _v - if _v is not None: - self["widthsrc"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('color', arg, color) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('width', arg, width) + self._init_provided('widthsrc', arg, widthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/_tickfont.py index f2de99543b4..cb295e1263a 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "splom.marker.colorbar" - _path_str = "splom.marker.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'splom.marker.colorbar' + _path_str = 'splom.marker.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.splom.marker.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.splom.marker.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.splom.marker.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/_tickformatstop.py index 7cd0145ad2f..e219a29857b 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "splom.marker.colorbar" - _path_str = "splom.marker.colorbar.tickformatstop" + _parent_path_str = 'splom.marker.colorbar' + _path_str = 'splom.marker.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.splom.marker.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.splom.marker.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.splom.marker.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/_title.py index 4d797f78762..285c788f570 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "splom.marker.colorbar" - _path_str = "splom.marker.colorbar.title" + _parent_path_str = 'splom.marker.colorbar' + _path_str = 'splom.marker.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.splom.marker.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.splom.marker.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.splom.marker.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.splom.marker.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/title/_font.py index c1c9028036e..4f430465712 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "splom.marker.colorbar.title" - _path_str = "splom.marker.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'splom.marker.colorbar.title' + _path_str = 'splom.marker.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.splom.marker.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.splom.marker.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.splom.marker.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/splom/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/splom/selected/__init__.py index dfd34067137..5abe297c1ca 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/splom/selected/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._marker.Marker'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._marker.Marker"]) diff --git a/packages/python/plotly/plotly/graph_objs/splom/selected/_marker.py b/packages/python/plotly/plotly/graph_objs/splom/selected/_marker.py index 0d8d5e39b4e..3d6a99eacf9 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/selected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/splom/selected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "splom.selected" - _path_str = "splom.selected.marker" + _parent_path_str = 'splom.selected' + _path_str = 'splom.selected.marker' _valid_props = {"color", "opacity", "size"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -83,11 +50,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # size # ---- @@ -103,11 +70,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # Self properties description # --------------------------- @@ -121,8 +88,13 @@ def _prop_descriptions(self): size Sets the marker size of selected points. """ - - def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + size=None, + **kwargs + ): """ Construct a new Marker object @@ -143,10 +115,10 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -158,32 +130,22 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.splom.selected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.splom.selected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.splom.selected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) + self._init_provided('size', arg, size) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/splom/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/splom/unselected/__init__.py index dfd34067137..5abe297c1ca 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/splom/unselected/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._marker.Marker'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._marker.Marker"]) diff --git a/packages/python/plotly/plotly/graph_objs/splom/unselected/_marker.py b/packages/python/plotly/plotly/graph_objs/splom/unselected/_marker.py index b86833b9c09..fe76b7880dd 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/unselected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/splom/unselected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "splom.unselected" - _path_str = "splom.unselected.marker" + _parent_path_str = 'splom.unselected' + _path_str = 'splom.unselected.marker' _valid_props = {"color", "opacity", "size"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -85,11 +52,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # size # ---- @@ -106,11 +73,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # Self properties description # --------------------------- @@ -127,8 +94,13 @@ def _prop_descriptions(self): Sets the marker size of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + size=None, + **kwargs + ): """ Construct a new Marker object @@ -152,10 +124,10 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -167,32 +139,22 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.splom.unselected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.splom.unselected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.splom.unselected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) + self._init_provided('size', arg, size) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/streamtube/__init__.py b/packages/python/plotly/plotly/graph_objs/streamtube/__init__.py index 09773e9fa9a..a8e680faec0 100644 --- a/packages/python/plotly/plotly/graph_objs/streamtube/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/streamtube/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._hoverlabel import Hoverlabel @@ -14,17 +13,10 @@ from . import legendgrouptitle else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".colorbar", ".hoverlabel", ".legendgrouptitle"], - [ - "._colorbar.ColorBar", - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._lighting.Lighting", - "._lightposition.Lightposition", - "._starts.Starts", - "._stream.Stream", - ], + ['.colorbar', '.hoverlabel', '.legendgrouptitle'], + ['._colorbar.ColorBar', '._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._lighting.Lighting', '._lightposition.Lightposition', '._starts.Starts', '._stream.Stream'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/streamtube/_colorbar.py b/packages/python/plotly/plotly/graph_objs/streamtube/_colorbar.py index 86e15098f2a..fd026d0452b 100644 --- a/packages/python/plotly/plotly/graph_objs/streamtube/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/streamtube/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "streamtube" - _path_str = "streamtube.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'streamtube' + _path_str = 'streamtube.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.streamtube.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.streamtube.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -912,17 +642,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.streamtube.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -942,11 +670,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -967,11 +695,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -993,11 +721,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1013,11 +741,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1040,11 +768,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1061,11 +789,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1084,11 +812,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1105,11 +833,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1127,11 +855,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1147,11 +875,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1168,11 +896,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1188,11 +916,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1208,11 +936,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1225,27 +953,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.streamtube.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1267,11 +983,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1291,11 +1007,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1311,11 +1027,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1334,11 +1050,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1360,11 +1076,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1384,11 +1100,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1404,11 +1120,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1427,11 +1143,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1677,61 +1393,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1984,10 +1698,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1999,216 +1713,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.streamtube.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.streamtube.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.streamtube.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/streamtube/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/streamtube/_hoverlabel.py index 8b643599ea8..0dffe2f6c08 100644 --- a/packages/python/plotly/plotly/graph_objs/streamtube/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/streamtube/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "streamtube" - _path_str = "streamtube.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'streamtube' + _path_str = 'streamtube.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.streamtube.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.streamtube.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.streamtube.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.streamtube.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/streamtube/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/streamtube/_legendgrouptitle.py index f8e894a8ae7..028f29e9b22 100644 --- a/packages/python/plotly/plotly/graph_objs/streamtube/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/streamtube/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "streamtube" - _path_str = "streamtube.legendgrouptitle" + _parent_path_str = 'streamtube' + _path_str = 'streamtube.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.streamtube.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.streamtube.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.streamtube.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.streamtube.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/streamtube/_lighting.py b/packages/python/plotly/plotly/graph_objs/streamtube/_lighting.py index c1093659289..ff778c00460 100644 --- a/packages/python/plotly/plotly/graph_objs/streamtube/_lighting.py +++ b/packages/python/plotly/plotly/graph_objs/streamtube/_lighting.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,17 +8,9 @@ class Lighting(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "streamtube" - _path_str = "streamtube.lighting" - _valid_props = { - "ambient", - "diffuse", - "facenormalsepsilon", - "fresnel", - "roughness", - "specular", - "vertexnormalsepsilon", - } + _parent_path_str = 'streamtube' + _path_str = 'streamtube.lighting' + _valid_props = {"ambient", "diffuse", "facenormalsepsilon", "fresnel", "roughness", "specular", "vertexnormalsepsilon"} # ambient # ------- @@ -33,11 +27,11 @@ def ambient(self): ------- int|float """ - return self["ambient"] + return self['ambient'] @ambient.setter def ambient(self, val): - self["ambient"] = val + self['ambient'] = val # diffuse # ------- @@ -54,11 +48,11 @@ def diffuse(self): ------- int|float """ - return self["diffuse"] + return self['diffuse'] @diffuse.setter def diffuse(self, val): - self["diffuse"] = val + self['diffuse'] = val # facenormalsepsilon # ------------------ @@ -75,11 +69,11 @@ def facenormalsepsilon(self): ------- int|float """ - return self["facenormalsepsilon"] + return self['facenormalsepsilon'] @facenormalsepsilon.setter def facenormalsepsilon(self, val): - self["facenormalsepsilon"] = val + self['facenormalsepsilon'] = val # fresnel # ------- @@ -97,11 +91,11 @@ def fresnel(self): ------- int|float """ - return self["fresnel"] + return self['fresnel'] @fresnel.setter def fresnel(self, val): - self["fresnel"] = val + self['fresnel'] = val # roughness # --------- @@ -118,11 +112,11 @@ def roughness(self): ------- int|float """ - return self["roughness"] + return self['roughness'] @roughness.setter def roughness(self, val): - self["roughness"] = val + self['roughness'] = val # specular # -------- @@ -139,11 +133,11 @@ def specular(self): ------- int|float """ - return self["specular"] + return self['specular'] @specular.setter def specular(self, val): - self["specular"] = val + self['specular'] = val # vertexnormalsepsilon # -------------------- @@ -160,11 +154,11 @@ def vertexnormalsepsilon(self): ------- int|float """ - return self["vertexnormalsepsilon"] + return self['vertexnormalsepsilon'] @vertexnormalsepsilon.setter def vertexnormalsepsilon(self, val): - self["vertexnormalsepsilon"] = val + self['vertexnormalsepsilon'] = val # Self properties description # --------------------------- @@ -195,19 +189,17 @@ def _prop_descriptions(self): Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry. """ - - def __init__( - self, - arg=None, - ambient=None, - diffuse=None, - facenormalsepsilon=None, - fresnel=None, - roughness=None, - specular=None, - vertexnormalsepsilon=None, - **kwargs, - ): + def __init__(self, + arg=None, + ambient=None, + diffuse=None, + facenormalsepsilon=None, + fresnel=None, + roughness=None, + specular=None, + vertexnormalsepsilon=None, + **kwargs + ): """ Construct a new Lighting object @@ -245,10 +237,10 @@ def __init__( ------- Lighting """ - super(Lighting, self).__init__("lighting") + super(Lighting, self).__init__('lighting') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -260,48 +252,26 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.streamtube.Lighting constructor must be a dict or -an instance of :class:`plotly.graph_objs.streamtube.Lighting`""" - ) +an instance of :class:`plotly.graph_objs.streamtube.Lighting`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("ambient", None) - _v = ambient if ambient is not None else _v - if _v is not None: - self["ambient"] = _v - _v = arg.pop("diffuse", None) - _v = diffuse if diffuse is not None else _v - if _v is not None: - self["diffuse"] = _v - _v = arg.pop("facenormalsepsilon", None) - _v = facenormalsepsilon if facenormalsepsilon is not None else _v - if _v is not None: - self["facenormalsepsilon"] = _v - _v = arg.pop("fresnel", None) - _v = fresnel if fresnel is not None else _v - if _v is not None: - self["fresnel"] = _v - _v = arg.pop("roughness", None) - _v = roughness if roughness is not None else _v - if _v is not None: - self["roughness"] = _v - _v = arg.pop("specular", None) - _v = specular if specular is not None else _v - if _v is not None: - self["specular"] = _v - _v = arg.pop("vertexnormalsepsilon", None) - _v = vertexnormalsepsilon if vertexnormalsepsilon is not None else _v - if _v is not None: - self["vertexnormalsepsilon"] = _v + self._init_provided('ambient', arg, ambient) + self._init_provided('diffuse', arg, diffuse) + self._init_provided('facenormalsepsilon', arg, facenormalsepsilon) + self._init_provided('fresnel', arg, fresnel) + self._init_provided('roughness', arg, roughness) + self._init_provided('specular', arg, specular) + self._init_provided('vertexnormalsepsilon', arg, vertexnormalsepsilon) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/streamtube/_lightposition.py b/packages/python/plotly/plotly/graph_objs/streamtube/_lightposition.py index d42b300a241..d4b98b419d8 100644 --- a/packages/python/plotly/plotly/graph_objs/streamtube/_lightposition.py +++ b/packages/python/plotly/plotly/graph_objs/streamtube/_lightposition.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Lightposition(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "streamtube" - _path_str = "streamtube.lightposition" + _parent_path_str = 'streamtube' + _path_str = 'streamtube.lightposition' _valid_props = {"x", "y", "z"} # x @@ -24,11 +26,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @@ -44,11 +46,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # z # - @@ -64,11 +66,11 @@ def z(self): ------- int|float """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # Self properties description # --------------------------- @@ -85,8 +87,13 @@ def _prop_descriptions(self): Numeric vector, representing the Z coordinate for each vertex. """ - - def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): + def __init__(self, + arg=None, + x=None, + y=None, + z=None, + **kwargs + ): """ Construct a new Lightposition object @@ -110,10 +117,10 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Lightposition """ - super(Lightposition, self).__init__("lightposition") + super(Lightposition, self).__init__('lightposition') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -125,32 +132,22 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.streamtube.Lightposition constructor must be a dict or -an instance of :class:`plotly.graph_objs.streamtube.Lightposition`""" - ) +an instance of :class:`plotly.graph_objs.streamtube.Lightposition`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) + self._init_provided('z', arg, z) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/streamtube/_starts.py b/packages/python/plotly/plotly/graph_objs/streamtube/_starts.py index 8eaeb8062c8..c800e9efa1d 100644 --- a/packages/python/plotly/plotly/graph_objs/streamtube/_starts.py +++ b/packages/python/plotly/plotly/graph_objs/streamtube/_starts.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Starts(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "streamtube" - _path_str = "streamtube.starts" + _parent_path_str = 'streamtube' + _path_str = 'streamtube.starts' _valid_props = {"x", "xsrc", "y", "ysrc", "z", "zsrc"} # x @@ -25,11 +27,11 @@ def x(self): ------- numpy.ndarray """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xsrc # ---- @@ -45,11 +47,11 @@ def xsrc(self): ------- str """ - return self["xsrc"] + return self['xsrc'] @xsrc.setter def xsrc(self, val): - self["xsrc"] = val + self['xsrc'] = val # y # - @@ -66,11 +68,11 @@ def y(self): ------- numpy.ndarray """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # ysrc # ---- @@ -86,11 +88,11 @@ def ysrc(self): ------- str """ - return self["ysrc"] + return self['ysrc'] @ysrc.setter def ysrc(self, val): - self["ysrc"] = val + self['ysrc'] = val # z # - @@ -107,11 +109,11 @@ def z(self): ------- numpy.ndarray """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # zsrc # ---- @@ -127,11 +129,11 @@ def zsrc(self): ------- str """ - return self["zsrc"] + return self['zsrc'] @zsrc.setter def zsrc(self, val): - self["zsrc"] = val + self['zsrc'] = val # Self properties description # --------------------------- @@ -157,18 +159,16 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `z`. """ - - def __init__( - self, - arg=None, - x=None, - xsrc=None, - y=None, - ysrc=None, - z=None, - zsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + x=None, + xsrc=None, + y=None, + ysrc=None, + z=None, + zsrc=None, + **kwargs + ): """ Construct a new Starts object @@ -201,10 +201,10 @@ def __init__( ------- Starts """ - super(Starts, self).__init__("starts") + super(Starts, self).__init__('starts') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -216,44 +216,25 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.streamtube.Starts constructor must be a dict or -an instance of :class:`plotly.graph_objs.streamtube.Starts`""" - ) +an instance of :class:`plotly.graph_objs.streamtube.Starts`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xsrc", None) - _v = xsrc if xsrc is not None else _v - if _v is not None: - self["xsrc"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("ysrc", None) - _v = ysrc if ysrc is not None else _v - if _v is not None: - self["ysrc"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v - _v = arg.pop("zsrc", None) - _v = zsrc if zsrc is not None else _v - if _v is not None: - self["zsrc"] = _v + self._init_provided('x', arg, x) + self._init_provided('xsrc', arg, xsrc) + self._init_provided('y', arg, y) + self._init_provided('ysrc', arg, ysrc) + self._init_provided('z', arg, z) + self._init_provided('zsrc', arg, zsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/streamtube/_stream.py b/packages/python/plotly/plotly/graph_objs/streamtube/_stream.py index c9eaaf8e934..f20d4e9bca0 100644 --- a/packages/python/plotly/plotly/graph_objs/streamtube/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/streamtube/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "streamtube" - _path_str = "streamtube.stream" + _parent_path_str = 'streamtube' + _path_str = 'streamtube.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.streamtube.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.streamtube.Stream`""" - ) +an instance of :class:`plotly.graph_objs.streamtube.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/_tickfont.py index 0f597fb9c90..d2159c08487 100644 --- a/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "streamtube.colorbar" - _path_str = "streamtube.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'streamtube.colorbar' + _path_str = 'streamtube.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.streamtube.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.streamtube.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.streamtube.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/_tickformatstop.py index 25a8b253f13..7e987c0f1b3 100644 --- a/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "streamtube.colorbar" - _path_str = "streamtube.colorbar.tickformatstop" + _parent_path_str = 'streamtube.colorbar' + _path_str = 'streamtube.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.streamtube.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.streamtube.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.streamtube.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/_title.py index 6c24e5e24dc..21a4608ddb5 100644 --- a/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "streamtube.colorbar" - _path_str = "streamtube.colorbar.title" + _parent_path_str = 'streamtube.colorbar' + _path_str = 'streamtube.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.streamtube.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.streamtube.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.streamtube.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.streamtube.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/title/_font.py index 8c95f54bacc..3d1d02b0e81 100644 --- a/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "streamtube.colorbar.title" - _path_str = "streamtube.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'streamtube.colorbar.title' + _path_str = 'streamtube.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.streamtube.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.streamtube.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.streamtube.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/streamtube/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/streamtube/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/streamtube/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/streamtube/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/streamtube/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/streamtube/hoverlabel/_font.py index 3d4540b1d13..bbe91de9b29 100644 --- a/packages/python/plotly/plotly/graph_objs/streamtube/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/streamtube/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "streamtube.hoverlabel" - _path_str = "streamtube.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'streamtube.hoverlabel' + _path_str = 'streamtube.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.streamtube.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.streamtube.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.streamtube.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/streamtube/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/streamtube/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/streamtube/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/streamtube/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/streamtube/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/streamtube/legendgrouptitle/_font.py index fd884b55564..9f1f889260c 100644 --- a/packages/python/plotly/plotly/graph_objs/streamtube/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/streamtube/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "streamtube.legendgrouptitle" - _path_str = "streamtube.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'streamtube.legendgrouptitle' + _path_str = 'streamtube.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.streamtube.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.streamtube.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.streamtube.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sunburst/__init__.py b/packages/python/plotly/plotly/graph_objs/sunburst/__init__.py index 07004d8c8aa..263b607ab82 100644 --- a/packages/python/plotly/plotly/graph_objs/sunburst/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/sunburst/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._domain import Domain from ._hoverlabel import Hoverlabel @@ -17,20 +16,10 @@ from . import marker else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".hoverlabel", ".legendgrouptitle", ".marker"], - [ - "._domain.Domain", - "._hoverlabel.Hoverlabel", - "._insidetextfont.Insidetextfont", - "._leaf.Leaf", - "._legendgrouptitle.Legendgrouptitle", - "._marker.Marker", - "._outsidetextfont.Outsidetextfont", - "._root.Root", - "._stream.Stream", - "._textfont.Textfont", - ], + ['.hoverlabel', '.legendgrouptitle', '.marker'], + ['._domain.Domain', '._hoverlabel.Hoverlabel', '._insidetextfont.Insidetextfont', '._leaf.Leaf', '._legendgrouptitle.Legendgrouptitle', '._marker.Marker', '._outsidetextfont.Outsidetextfont', '._root.Root', '._stream.Stream', '._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/sunburst/_domain.py b/packages/python/plotly/plotly/graph_objs/sunburst/_domain.py index 31cf6f6bad0..5fe3a37cf5d 100644 --- a/packages/python/plotly/plotly/graph_objs/sunburst/_domain.py +++ b/packages/python/plotly/plotly/graph_objs/sunburst/_domain.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Domain(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sunburst" - _path_str = "sunburst.domain" + _parent_path_str = 'sunburst' + _path_str = 'sunburst.domain' _valid_props = {"column", "row", "x", "y"} # column @@ -26,11 +28,11 @@ def column(self): ------- int """ - return self["column"] + return self['column'] @column.setter def column(self, val): - self["column"] = val + self['column'] = val # row # --- @@ -48,63 +50,63 @@ def row(self): ------- int """ - return self["row"] + return self['row'] @row.setter def row(self, val): - self["row"] = val + self['row'] = val # x # - @property def x(self): """ - Sets the horizontal domain of this sunburst trace (in plot - fraction). - - The 'x' property is an info array that may be specified as: + Sets the horizontal domain of this sunburst trace (in plot + fraction). - * a list or tuple of 2 elements where: - (0) The 'x[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'x[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] + The 'x' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'x[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'x[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - Returns - ------- - list + Returns + ------- + list """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @property def y(self): """ - Sets the vertical domain of this sunburst trace (in plot - fraction). + Sets the vertical domain of this sunburst trace (in plot + fraction). - The 'y' property is an info array that may be specified as: + The 'y' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'y[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'y[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - * a list or tuple of 2 elements where: - (0) The 'y[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'y[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - - Returns - ------- - list + Returns + ------- + list """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # Self properties description # --------------------------- @@ -124,8 +126,14 @@ def _prop_descriptions(self): Sets the vertical domain of this sunburst trace (in plot fraction). """ - - def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): + def __init__(self, + arg=None, + column=None, + row=None, + x=None, + y=None, + **kwargs + ): """ Construct a new Domain object @@ -152,10 +160,10 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") + super(Domain, self).__init__('domain') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -167,36 +175,23 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sunburst.Domain constructor must be a dict or -an instance of :class:`plotly.graph_objs.sunburst.Domain`""" - ) +an instance of :class:`plotly.graph_objs.sunburst.Domain`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("column", None) - _v = column if column is not None else _v - if _v is not None: - self["column"] = _v - _v = arg.pop("row", None) - _v = row if row is not None else _v - if _v is not None: - self["row"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v + self._init_provided('column', arg, column) + self._init_provided('row', arg, row) + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sunburst/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/sunburst/_hoverlabel.py index 1cd3581b97f..b85b4e5bd61 100644 --- a/packages/python/plotly/plotly/graph_objs/sunburst/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/sunburst/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sunburst" - _path_str = "sunburst.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'sunburst' + _path_str = 'sunburst.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.sunburst.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sunburst.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.sunburst.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.sunburst.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sunburst/_insidetextfont.py b/packages/python/plotly/plotly/graph_objs/sunburst/_insidetextfont.py index 4a803225926..64a135eecb9 100644 --- a/packages/python/plotly/plotly/graph_objs/sunburst/_insidetextfont.py +++ b/packages/python/plotly/plotly/graph_objs/sunburst/_insidetextfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Insidetextfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sunburst" - _path_str = "sunburst.insidetextfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'sunburst' + _path_str = 'sunburst.insidetextfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Insidetextfont object @@ -639,10 +585,10 @@ def __init__( ------- Insidetextfont """ - super(Insidetextfont, self).__init__("insidetextfont") + super(Insidetextfont, self).__init__('insidetextfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sunburst.Insidetextfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.sunburst.Insidetextfont`""" - ) +an instance of :class:`plotly.graph_objs.sunburst.Insidetextfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sunburst/_leaf.py b/packages/python/plotly/plotly/graph_objs/sunburst/_leaf.py index 7c343bbba98..179a268963c 100644 --- a/packages/python/plotly/plotly/graph_objs/sunburst/_leaf.py +++ b/packages/python/plotly/plotly/graph_objs/sunburst/_leaf.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Leaf(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sunburst" - _path_str = "sunburst.leaf" + _parent_path_str = 'sunburst' + _path_str = 'sunburst.leaf' _valid_props = {"opacity"} # opacity @@ -25,11 +27,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # Self properties description # --------------------------- @@ -40,8 +42,11 @@ def _prop_descriptions(self): Sets the opacity of the leaves. With colorscale it is defaulted to 1; otherwise it is defaulted to 0.7 """ - - def __init__(self, arg=None, opacity=None, **kwargs): + def __init__(self, + arg=None, + opacity=None, + **kwargs + ): """ Construct a new Leaf object @@ -58,10 +63,10 @@ def __init__(self, arg=None, opacity=None, **kwargs): ------- Leaf """ - super(Leaf, self).__init__("leaf") + super(Leaf, self).__init__('leaf') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -73,24 +78,20 @@ def __init__(self, arg=None, opacity=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sunburst.Leaf constructor must be a dict or -an instance of :class:`plotly.graph_objs.sunburst.Leaf`""" - ) +an instance of :class:`plotly.graph_objs.sunburst.Leaf`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v + self._init_provided('opacity', arg, opacity) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sunburst/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/sunburst/_legendgrouptitle.py index 9baa8cd8da5..2320ece5137 100644 --- a/packages/python/plotly/plotly/graph_objs/sunburst/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/sunburst/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sunburst" - _path_str = "sunburst.legendgrouptitle" + _parent_path_str = 'sunburst' + _path_str = 'sunburst.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.sunburst.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sunburst.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.sunburst.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.sunburst.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sunburst/_marker.py b/packages/python/plotly/plotly/graph_objs/sunburst/_marker.py index 8c49c93c22a..9cfff5bfea4 100644 --- a/packages/python/plotly/plotly/graph_objs/sunburst/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/sunburst/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,24 +8,9 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sunburst" - _path_str = "sunburst.marker" - _valid_props = { - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "coloraxis", - "colorbar", - "colors", - "colorscale", - "colorssrc", - "line", - "pattern", - "reversescale", - "showscale", - } + _parent_path_str = 'sunburst' + _path_str = 'sunburst.marker' + _valid_props = {"autocolorscale", "cauto", "cmax", "cmid", "cmin", "coloraxis", "colorbar", "colors", "colorscale", "colorssrc", "line", "pattern", "reversescale", "showscale"} # autocolorscale # -------------- @@ -45,11 +32,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -69,11 +56,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -91,11 +78,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -115,11 +102,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -137,11 +124,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # coloraxis # --------- @@ -164,11 +151,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -181,282 +168,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.sunburs - t.marker.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.sunburst.marker.colorbar.tickformatstopdefaul - ts), sets the default property values to use - for elements of - sunburst.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.sunburst.marker.co - lorbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.sunburst.marker.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colors # ------ @@ -473,11 +193,11 @@ def colors(self): ------- numpy.ndarray """ - return self["colors"] + return self['colors'] @colors.setter def colors(self, val): - self["colors"] = val + self['colors'] = val # colorscale # ---------- @@ -527,11 +247,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorssrc # --------- @@ -547,11 +267,11 @@ def colorssrc(self): ------- str """ - return self["colorssrc"] + return self['colorssrc'] @colorssrc.setter def colorssrc(self, val): - self["colorssrc"] = val + self['colorssrc'] = val # line # ---- @@ -564,30 +284,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the color of the line enclosing each - sector. Defaults to the `paper_bgcolor` value. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - width - Sets the width (in px) of the line enclosing - each sector. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. - Returns ------- plotly.graph_objs.sunburst.marker.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # pattern # ------- @@ -602,66 +307,15 @@ def pattern(self): - A dict of string/value properties that will be passed to the Pattern constructor - Supported dict properties: - - bgcolor - When there is no colorscale sets the color of - background pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "overlay". Otherwise, defaults to a transparent - background. - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - fgcolor - When there is no colorscale sets the color of - foreground pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "replace". Otherwise, defaults to dark grey or - white to increase contrast with the `bgcolor`. - fgcolorsrc - Sets the source reference on Chart Studio Cloud - for `fgcolor`. - fgopacity - Sets the opacity of the foreground pattern - fill. Defaults to a 0.5 when `fillmode` is - "overlay". Otherwise, defaults to 1. - fillmode - Determines whether `marker.color` should be - used as a default to `bgcolor` or a `fgcolor`. - shape - Sets the shape of the pattern fill. By default, - no pattern is used for filling the area. - shapesrc - Sets the source reference on Chart Studio Cloud - for `shape`. - size - Sets the size of unit squares of the pattern - fill in pixels, which corresponds to the - interval of repetition of the pattern. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - solidity - Sets the solidity of the pattern fill. Solidity - is roughly the fraction of the area filled by - the pattern. Solidity of 0 shows only the - background color without pattern and solidty of - 1 shows only the foreground color without - pattern. - soliditysrc - Sets the source reference on Chart Studio Cloud - for `solidity`. - Returns ------- plotly.graph_objs.sunburst.marker.Pattern """ - return self["pattern"] + return self['pattern'] @pattern.setter def pattern(self, val): - self["pattern"] = val + self['pattern'] = val # reversescale # ------------ @@ -680,11 +334,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # showscale # --------- @@ -702,11 +356,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # Self properties description # --------------------------- @@ -792,26 +446,24 @@ def _prop_descriptions(self): this trace. Has an effect only if colors is set to a numerical array. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - coloraxis=None, - colorbar=None, - colors=None, - colorscale=None, - colorssrc=None, - line=None, - pattern=None, - reversescale=None, - showscale=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + coloraxis=None, + colorbar=None, + colors=None, + colorscale=None, + colorssrc=None, + line=None, + pattern=None, + reversescale=None, + showscale=None, + **kwargs + ): """ Construct a new Marker object @@ -904,10 +556,10 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -919,76 +571,33 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sunburst.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.sunburst.Marker`""" - ) +an instance of :class:`plotly.graph_objs.sunburst.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colors", None) - _v = colors if colors is not None else _v - if _v is not None: - self["colors"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorssrc", None) - _v = colorssrc if colorssrc is not None else _v - if _v is not None: - self["colorssrc"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("pattern", None) - _v = pattern if pattern is not None else _v - if _v is not None: - self["pattern"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colors', arg, colors) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorssrc', arg, colorssrc) + self._init_provided('line', arg, line) + self._init_provided('pattern', arg, pattern) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('showscale', arg, showscale) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sunburst/_outsidetextfont.py b/packages/python/plotly/plotly/graph_objs/sunburst/_outsidetextfont.py index dfb0670a2f0..36471ebca76 100644 --- a/packages/python/plotly/plotly/graph_objs/sunburst/_outsidetextfont.py +++ b/packages/python/plotly/plotly/graph_objs/sunburst/_outsidetextfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Outsidetextfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sunburst" - _path_str = "sunburst.outsidetextfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'sunburst' + _path_str = 'sunburst.outsidetextfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Outsidetextfont object @@ -643,10 +589,10 @@ def __init__( ------- Outsidetextfont """ - super(Outsidetextfont, self).__init__("outsidetextfont") + super(Outsidetextfont, self).__init__('outsidetextfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -658,92 +604,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sunburst.Outsidetextfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.sunburst.Outsidetextfont`""" - ) +an instance of :class:`plotly.graph_objs.sunburst.Outsidetextfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sunburst/_root.py b/packages/python/plotly/plotly/graph_objs/sunburst/_root.py index cd4a949f20f..e2812865891 100644 --- a/packages/python/plotly/plotly/graph_objs/sunburst/_root.py +++ b/packages/python/plotly/plotly/graph_objs/sunburst/_root.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Root(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sunburst" - _path_str = "sunburst.root" + _parent_path_str = 'sunburst' + _path_str = 'sunburst.root' _valid_props = {"color"} # color @@ -24,52 +26,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # Self properties description # --------------------------- @@ -81,8 +48,11 @@ def _prop_descriptions(self): sunburst/treemap/icicle trace. this has no effect when a colorscale is used to set the markers. """ - - def __init__(self, arg=None, color=None, **kwargs): + def __init__(self, + arg=None, + color=None, + **kwargs + ): """ Construct a new Root object @@ -100,10 +70,10 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Root """ - super(Root, self).__init__("root") + super(Root, self).__init__('root') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -115,24 +85,20 @@ def __init__(self, arg=None, color=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sunburst.Root constructor must be a dict or -an instance of :class:`plotly.graph_objs.sunburst.Root`""" - ) +an instance of :class:`plotly.graph_objs.sunburst.Root`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v + self._init_provided('color', arg, color) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sunburst/_stream.py b/packages/python/plotly/plotly/graph_objs/sunburst/_stream.py index ee2526e662a..6e893a8f06c 100644 --- a/packages/python/plotly/plotly/graph_objs/sunburst/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/sunburst/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sunburst" - _path_str = "sunburst.stream" + _parent_path_str = 'sunburst' + _path_str = 'sunburst.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sunburst.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.sunburst.Stream`""" - ) +an instance of :class:`plotly.graph_objs.sunburst.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sunburst/_textfont.py b/packages/python/plotly/plotly/graph_objs/sunburst/_textfont.py index 1321419a24c..c10c321db08 100644 --- a/packages/python/plotly/plotly/graph_objs/sunburst/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/sunburst/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sunburst" - _path_str = "sunburst.textfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'sunburst' + _path_str = 'sunburst.textfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Textfont object @@ -639,10 +585,10 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sunburst.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.sunburst.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.sunburst.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sunburst/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/sunburst/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/sunburst/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/sunburst/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/sunburst/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/sunburst/hoverlabel/_font.py index a28575d99db..652d4c74e30 100644 --- a/packages/python/plotly/plotly/graph_objs/sunburst/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/sunburst/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sunburst.hoverlabel" - _path_str = "sunburst.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'sunburst.hoverlabel' + _path_str = 'sunburst.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sunburst.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.sunburst.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.sunburst.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sunburst/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/sunburst/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/sunburst/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/sunburst/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/sunburst/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/sunburst/legendgrouptitle/_font.py index af15a8c9fe0..8a8d96d846f 100644 --- a/packages/python/plotly/plotly/graph_objs/sunburst/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/sunburst/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sunburst.legendgrouptitle" - _path_str = "sunburst.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'sunburst.legendgrouptitle' + _path_str = 'sunburst.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sunburst.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.sunburst.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.sunburst.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sunburst/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/sunburst/marker/__init__.py index ce0279c5444..210a88dd222 100644 --- a/packages/python/plotly/plotly/graph_objs/sunburst/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/sunburst/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._line import Line @@ -8,9 +7,10 @@ from . import colorbar else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".colorbar"], - ["._colorbar.ColorBar", "._line.Line", "._pattern.Pattern"], + ['.colorbar'], + ['._colorbar.ColorBar', '._line.Line', '._pattern.Pattern'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/sunburst/marker/_colorbar.py b/packages/python/plotly/plotly/graph_objs/sunburst/marker/_colorbar.py index f267810f51f..2e1c276cd7c 100644 --- a/packages/python/plotly/plotly/graph_objs/sunburst/marker/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/sunburst/marker/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sunburst.marker" - _path_str = "sunburst.marker.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'sunburst.marker' + _path_str = 'sunburst.marker.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.sunburst.marker.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.sunburst.marker.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.sunburst.marker.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.sunburst.marker.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sunburst.marker.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.sunburst.marker.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.sunburst.marker.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sunburst/marker/_line.py b/packages/python/plotly/plotly/graph_objs/sunburst/marker/_line.py index c116e5d9615..502e5632d05 100644 --- a/packages/python/plotly/plotly/graph_objs/sunburst/marker/_line.py +++ b/packages/python/plotly/plotly/graph_objs/sunburst/marker/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sunburst.marker" - _path_str = "sunburst.marker.line" + _parent_path_str = 'sunburst.marker' + _path_str = 'sunburst.marker.line' _valid_props = {"color", "colorsrc", "width", "widthsrc"} # color @@ -23,53 +25,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -85,11 +52,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # width # ----- @@ -106,11 +73,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # widthsrc # -------- @@ -126,11 +93,11 @@ def widthsrc(self): ------- str """ - return self["widthsrc"] + return self['widthsrc'] @widthsrc.setter def widthsrc(self, val): - self["widthsrc"] = val + self['widthsrc'] = val # Self properties description # --------------------------- @@ -150,10 +117,14 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `width`. """ - - def __init__( - self, arg=None, color=None, colorsrc=None, width=None, widthsrc=None, **kwargs - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + width=None, + widthsrc=None, + **kwargs + ): """ Construct a new Line object @@ -180,10 +151,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -195,36 +166,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sunburst.marker.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.sunburst.marker.Line`""" - ) +an instance of :class:`plotly.graph_objs.sunburst.marker.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("widthsrc", None) - _v = widthsrc if widthsrc is not None else _v - if _v is not None: - self["widthsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('width', arg, width) + self._init_provided('widthsrc', arg, widthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sunburst/marker/_pattern.py b/packages/python/plotly/plotly/graph_objs/sunburst/marker/_pattern.py index 802761107d8..ee6bc2abc66 100644 --- a/packages/python/plotly/plotly/graph_objs/sunburst/marker/_pattern.py +++ b/packages/python/plotly/plotly/graph_objs/sunburst/marker/_pattern.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,22 +8,9 @@ class Pattern(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sunburst.marker" - _path_str = "sunburst.marker.pattern" - _valid_props = { - "bgcolor", - "bgcolorsrc", - "fgcolor", - "fgcolorsrc", - "fgopacity", - "fillmode", - "shape", - "shapesrc", - "size", - "sizesrc", - "solidity", - "soliditysrc", - } + _parent_path_str = 'sunburst.marker' + _path_str = 'sunburst.marker.pattern' + _valid_props = {"bgcolor", "bgcolorsrc", "fgcolor", "fgcolorsrc", "fgopacity", "fillmode", "shape", "shapesrc", "size", "sizesrc", "solidity", "soliditysrc"} # bgcolor # ------- @@ -38,53 +27,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -100,11 +54,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # fgcolor # ------- @@ -121,53 +75,18 @@ def fgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["fgcolor"] + return self['fgcolor'] @fgcolor.setter def fgcolor(self, val): - self["fgcolor"] = val + self['fgcolor'] = val # fgcolorsrc # ---------- @@ -183,11 +102,11 @@ def fgcolorsrc(self): ------- str """ - return self["fgcolorsrc"] + return self['fgcolorsrc'] @fgcolorsrc.setter def fgcolorsrc(self, val): - self["fgcolorsrc"] = val + self['fgcolorsrc'] = val # fgopacity # --------- @@ -204,11 +123,11 @@ def fgopacity(self): ------- int|float """ - return self["fgopacity"] + return self['fgopacity'] @fgopacity.setter def fgopacity(self, val): - self["fgopacity"] = val + self['fgopacity'] = val # fillmode # -------- @@ -226,11 +145,11 @@ def fillmode(self): ------- Any """ - return self["fillmode"] + return self['fillmode'] @fillmode.setter def fillmode(self, val): - self["fillmode"] = val + self['fillmode'] = val # shape # ----- @@ -249,11 +168,11 @@ def shape(self): ------- Any|numpy.ndarray """ - return self["shape"] + return self['shape'] @shape.setter def shape(self, val): - self["shape"] = val + self['shape'] = val # shapesrc # -------- @@ -269,11 +188,11 @@ def shapesrc(self): ------- str """ - return self["shapesrc"] + return self['shapesrc'] @shapesrc.setter def shapesrc(self, val): - self["shapesrc"] = val + self['shapesrc'] = val # size # ---- @@ -291,11 +210,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -311,11 +230,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # solidity # -------- @@ -335,11 +254,11 @@ def solidity(self): ------- int|float|numpy.ndarray """ - return self["solidity"] + return self['solidity'] @solidity.setter def solidity(self, val): - self["solidity"] = val + self['solidity'] = val # soliditysrc # ----------- @@ -355,11 +274,11 @@ def soliditysrc(self): ------- str """ - return self["soliditysrc"] + return self['soliditysrc'] @soliditysrc.setter def soliditysrc(self, val): - self["soliditysrc"] = val + self['soliditysrc'] = val # Self properties description # --------------------------- @@ -413,24 +332,22 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `solidity`. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bgcolorsrc=None, - fgcolor=None, - fgcolorsrc=None, - fgopacity=None, - fillmode=None, - shape=None, - shapesrc=None, - size=None, - sizesrc=None, - solidity=None, - soliditysrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bgcolorsrc=None, + fgcolor=None, + fgcolorsrc=None, + fgopacity=None, + fillmode=None, + shape=None, + shapesrc=None, + size=None, + sizesrc=None, + solidity=None, + soliditysrc=None, + **kwargs + ): """ Construct a new Pattern object @@ -493,10 +410,10 @@ def __init__( ------- Pattern """ - super(Pattern, self).__init__("pattern") + super(Pattern, self).__init__('pattern') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -508,68 +425,31 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sunburst.marker.Pattern constructor must be a dict or -an instance of :class:`plotly.graph_objs.sunburst.marker.Pattern`""" - ) +an instance of :class:`plotly.graph_objs.sunburst.marker.Pattern`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("fgcolor", None) - _v = fgcolor if fgcolor is not None else _v - if _v is not None: - self["fgcolor"] = _v - _v = arg.pop("fgcolorsrc", None) - _v = fgcolorsrc if fgcolorsrc is not None else _v - if _v is not None: - self["fgcolorsrc"] = _v - _v = arg.pop("fgopacity", None) - _v = fgopacity if fgopacity is not None else _v - if _v is not None: - self["fgopacity"] = _v - _v = arg.pop("fillmode", None) - _v = fillmode if fillmode is not None else _v - if _v is not None: - self["fillmode"] = _v - _v = arg.pop("shape", None) - _v = shape if shape is not None else _v - if _v is not None: - self["shape"] = _v - _v = arg.pop("shapesrc", None) - _v = shapesrc if shapesrc is not None else _v - if _v is not None: - self["shapesrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("solidity", None) - _v = solidity if solidity is not None else _v - if _v is not None: - self["solidity"] = _v - _v = arg.pop("soliditysrc", None) - _v = soliditysrc if soliditysrc is not None else _v - if _v is not None: - self["soliditysrc"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('fgcolor', arg, fgcolor) + self._init_provided('fgcolorsrc', arg, fgcolorsrc) + self._init_provided('fgopacity', arg, fgopacity) + self._init_provided('fillmode', arg, fillmode) + self._init_provided('shape', arg, shape) + self._init_provided('shapesrc', arg, shapesrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('solidity', arg, solidity) + self._init_provided('soliditysrc', arg, soliditysrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sunburst/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/sunburst/marker/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/sunburst/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/sunburst/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/sunburst/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/sunburst/marker/colorbar/_tickfont.py index 5bcfe54bb78..c0b3740fc1f 100644 --- a/packages/python/plotly/plotly/graph_objs/sunburst/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/sunburst/marker/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sunburst.marker.colorbar" - _path_str = "sunburst.marker.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'sunburst.marker.colorbar' + _path_str = 'sunburst.marker.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sunburst.marker.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.sunburst.marker.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.sunburst.marker.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sunburst/marker/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/sunburst/marker/colorbar/_tickformatstop.py index 28d48b5b733..969763cb0cb 100644 --- a/packages/python/plotly/plotly/graph_objs/sunburst/marker/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/sunburst/marker/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sunburst.marker.colorbar" - _path_str = "sunburst.marker.colorbar.tickformatstop" + _parent_path_str = 'sunburst.marker.colorbar' + _path_str = 'sunburst.marker.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sunburst.marker.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.sunburst.marker.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.sunburst.marker.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sunburst/marker/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/sunburst/marker/colorbar/_title.py index 98b6c074b97..861d83fd0f5 100644 --- a/packages/python/plotly/plotly/graph_objs/sunburst/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/sunburst/marker/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sunburst.marker.colorbar" - _path_str = "sunburst.marker.colorbar.title" + _parent_path_str = 'sunburst.marker.colorbar' + _path_str = 'sunburst.marker.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.sunburst.marker.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sunburst.marker.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.sunburst.marker.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.sunburst.marker.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sunburst/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/sunburst/marker/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/sunburst/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/sunburst/marker/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/sunburst/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/sunburst/marker/colorbar/title/_font.py index d03f4499dc3..3b9137ccfe1 100644 --- a/packages/python/plotly/plotly/graph_objs/sunburst/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/sunburst/marker/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "sunburst.marker.colorbar.title" - _path_str = "sunburst.marker.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'sunburst.marker.colorbar.title' + _path_str = 'sunburst.marker.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.sunburst.marker.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.sunburst.marker.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.sunburst.marker.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/surface/__init__.py b/packages/python/plotly/plotly/graph_objs/surface/__init__.py index 934476fba3f..024b2cd938d 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/surface/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._contours import Contours @@ -15,17 +14,10 @@ from . import legendgrouptitle else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".colorbar", ".contours", ".hoverlabel", ".legendgrouptitle"], - [ - "._colorbar.ColorBar", - "._contours.Contours", - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._lighting.Lighting", - "._lightposition.Lightposition", - "._stream.Stream", - ], + ['.colorbar', '.contours', '.hoverlabel', '.legendgrouptitle'], + ['._colorbar.ColorBar', '._contours.Contours', '._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._lighting.Lighting', '._lightposition.Lightposition', '._stream.Stream'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/surface/_colorbar.py b/packages/python/plotly/plotly/graph_objs/surface/_colorbar.py index 435be9c932a..77cc2790d67 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/surface/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "surface" - _path_str = "surface.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'surface' + _path_str = 'surface.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.surface.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.surface.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.surface.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.surface.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.surface.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.surface.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.surface.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/surface/_contours.py b/packages/python/plotly/plotly/graph_objs/surface/_contours.py index f07540cf592..3b43dc72cde 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/_contours.py +++ b/packages/python/plotly/plotly/graph_objs/surface/_contours.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Contours(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "surface" - _path_str = "surface.contours" + _parent_path_str = 'surface' + _path_str = 'surface.contours' _valid_props = {"x", "y", "z"} # x @@ -21,51 +23,15 @@ def x(self): - A dict of string/value properties that will be passed to the X constructor - Supported dict properties: - - color - Sets the color of the contour lines. - end - Sets the end contour level value. Must be more - than `contours.start` - highlight - Determines whether or not contour lines about - the x dimension are highlighted on hover. - highlightcolor - Sets the color of the highlighted contour - lines. - highlightwidth - Sets the width of the highlighted contour - lines. - project - :class:`plotly.graph_objects.surface.contours.x - .Project` instance or dict with compatible - properties - show - Determines whether or not contour lines about - the x dimension are drawn. - size - Sets the step between each contour level. Must - be positive. - start - Sets the starting contour level value. Must be - less than `contours.end` - usecolormap - An alternate to "color". Determines whether or - not the contour lines are colored using the - trace "colorscale". - width - Sets the width of the contour lines. - Returns ------- plotly.graph_objs.surface.contours.X """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @@ -78,51 +44,15 @@ def y(self): - A dict of string/value properties that will be passed to the Y constructor - Supported dict properties: - - color - Sets the color of the contour lines. - end - Sets the end contour level value. Must be more - than `contours.start` - highlight - Determines whether or not contour lines about - the y dimension are highlighted on hover. - highlightcolor - Sets the color of the highlighted contour - lines. - highlightwidth - Sets the width of the highlighted contour - lines. - project - :class:`plotly.graph_objects.surface.contours.y - .Project` instance or dict with compatible - properties - show - Determines whether or not contour lines about - the y dimension are drawn. - size - Sets the step between each contour level. Must - be positive. - start - Sets the starting contour level value. Must be - less than `contours.end` - usecolormap - An alternate to "color". Determines whether or - not the contour lines are colored using the - trace "colorscale". - width - Sets the width of the contour lines. - Returns ------- plotly.graph_objs.surface.contours.Y """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # z # - @@ -135,51 +65,15 @@ def z(self): - A dict of string/value properties that will be passed to the Z constructor - Supported dict properties: - - color - Sets the color of the contour lines. - end - Sets the end contour level value. Must be more - than `contours.start` - highlight - Determines whether or not contour lines about - the z dimension are highlighted on hover. - highlightcolor - Sets the color of the highlighted contour - lines. - highlightwidth - Sets the width of the highlighted contour - lines. - project - :class:`plotly.graph_objects.surface.contours.z - .Project` instance or dict with compatible - properties - show - Determines whether or not contour lines about - the z dimension are drawn. - size - Sets the step between each contour level. Must - be positive. - start - Sets the starting contour level value. Must be - less than `contours.end` - usecolormap - An alternate to "color". Determines whether or - not the contour lines are colored using the - trace "colorscale". - width - Sets the width of the contour lines. - Returns ------- plotly.graph_objs.surface.contours.Z """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # Self properties description # --------------------------- @@ -196,8 +90,13 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.surface.contours.Z` instance or dict with compatible properties """ - - def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): + def __init__(self, + arg=None, + x=None, + y=None, + z=None, + **kwargs + ): """ Construct a new Contours object @@ -221,10 +120,10 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Contours """ - super(Contours, self).__init__("contours") + super(Contours, self).__init__('contours') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -236,32 +135,22 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.surface.Contours constructor must be a dict or -an instance of :class:`plotly.graph_objs.surface.Contours`""" - ) +an instance of :class:`plotly.graph_objs.surface.Contours`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) + self._init_provided('z', arg, z) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/surface/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/surface/_hoverlabel.py index c245fe36b99..05f0d5ef757 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/surface/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "surface" - _path_str = "surface.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'surface' + _path_str = 'surface.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.surface.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.surface.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.surface.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.surface.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/surface/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/surface/_legendgrouptitle.py index d8fb5dcc8a7..88bf1e6ea51 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/surface/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "surface" - _path_str = "surface.legendgrouptitle" + _parent_path_str = 'surface' + _path_str = 'surface.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.surface.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.surface.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.surface.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.surface.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/surface/_lighting.py b/packages/python/plotly/plotly/graph_objs/surface/_lighting.py index 91e7ff62ee1..8ca5e507bd0 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/_lighting.py +++ b/packages/python/plotly/plotly/graph_objs/surface/_lighting.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Lighting(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "surface" - _path_str = "surface.lighting" + _parent_path_str = 'surface' + _path_str = 'surface.lighting' _valid_props = {"ambient", "diffuse", "fresnel", "roughness", "specular"} # ambient @@ -25,11 +27,11 @@ def ambient(self): ------- int|float """ - return self["ambient"] + return self['ambient'] @ambient.setter def ambient(self, val): - self["ambient"] = val + self['ambient'] = val # diffuse # ------- @@ -46,11 +48,11 @@ def diffuse(self): ------- int|float """ - return self["diffuse"] + return self['diffuse'] @diffuse.setter def diffuse(self, val): - self["diffuse"] = val + self['diffuse'] = val # fresnel # ------- @@ -68,11 +70,11 @@ def fresnel(self): ------- int|float """ - return self["fresnel"] + return self['fresnel'] @fresnel.setter def fresnel(self, val): - self["fresnel"] = val + self['fresnel'] = val # roughness # --------- @@ -89,11 +91,11 @@ def roughness(self): ------- int|float """ - return self["roughness"] + return self['roughness'] @roughness.setter def roughness(self, val): - self["roughness"] = val + self['roughness'] = val # specular # -------- @@ -110,11 +112,11 @@ def specular(self): ------- int|float """ - return self["specular"] + return self['specular'] @specular.setter def specular(self, val): - self["specular"] = val + self['specular'] = val # Self properties description # --------------------------- @@ -139,17 +141,15 @@ def _prop_descriptions(self): Represents the level that incident rays are reflected in a single direction, causing shine. """ - - def __init__( - self, - arg=None, - ambient=None, - diffuse=None, - fresnel=None, - roughness=None, - specular=None, - **kwargs, - ): + def __init__(self, + arg=None, + ambient=None, + diffuse=None, + fresnel=None, + roughness=None, + specular=None, + **kwargs + ): """ Construct a new Lighting object @@ -181,10 +181,10 @@ def __init__( ------- Lighting """ - super(Lighting, self).__init__("lighting") + super(Lighting, self).__init__('lighting') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -196,40 +196,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.surface.Lighting constructor must be a dict or -an instance of :class:`plotly.graph_objs.surface.Lighting`""" - ) +an instance of :class:`plotly.graph_objs.surface.Lighting`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("ambient", None) - _v = ambient if ambient is not None else _v - if _v is not None: - self["ambient"] = _v - _v = arg.pop("diffuse", None) - _v = diffuse if diffuse is not None else _v - if _v is not None: - self["diffuse"] = _v - _v = arg.pop("fresnel", None) - _v = fresnel if fresnel is not None else _v - if _v is not None: - self["fresnel"] = _v - _v = arg.pop("roughness", None) - _v = roughness if roughness is not None else _v - if _v is not None: - self["roughness"] = _v - _v = arg.pop("specular", None) - _v = specular if specular is not None else _v - if _v is not None: - self["specular"] = _v + self._init_provided('ambient', arg, ambient) + self._init_provided('diffuse', arg, diffuse) + self._init_provided('fresnel', arg, fresnel) + self._init_provided('roughness', arg, roughness) + self._init_provided('specular', arg, specular) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/surface/_lightposition.py b/packages/python/plotly/plotly/graph_objs/surface/_lightposition.py index 29e5ac30ae5..02fad21712c 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/_lightposition.py +++ b/packages/python/plotly/plotly/graph_objs/surface/_lightposition.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Lightposition(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "surface" - _path_str = "surface.lightposition" + _parent_path_str = 'surface' + _path_str = 'surface.lightposition' _valid_props = {"x", "y", "z"} # x @@ -24,11 +26,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @@ -44,11 +46,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # z # - @@ -64,11 +66,11 @@ def z(self): ------- int|float """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # Self properties description # --------------------------- @@ -85,8 +87,13 @@ def _prop_descriptions(self): Numeric vector, representing the Z coordinate for each vertex. """ - - def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): + def __init__(self, + arg=None, + x=None, + y=None, + z=None, + **kwargs + ): """ Construct a new Lightposition object @@ -110,10 +117,10 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Lightposition """ - super(Lightposition, self).__init__("lightposition") + super(Lightposition, self).__init__('lightposition') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -125,32 +132,22 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.surface.Lightposition constructor must be a dict or -an instance of :class:`plotly.graph_objs.surface.Lightposition`""" - ) +an instance of :class:`plotly.graph_objs.surface.Lightposition`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) + self._init_provided('z', arg, z) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/surface/_stream.py b/packages/python/plotly/plotly/graph_objs/surface/_stream.py index 38f7bcbdc5c..83b5b87104d 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/surface/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "surface" - _path_str = "surface.stream" + _parent_path_str = 'surface' + _path_str = 'surface.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.surface.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.surface.Stream`""" - ) +an instance of :class:`plotly.graph_objs.surface.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/surface/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/surface/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/surface/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/surface/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/surface/colorbar/_tickfont.py index be029b14e8a..50638dfbca1 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/surface/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "surface.colorbar" - _path_str = "surface.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'surface.colorbar' + _path_str = 'surface.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.surface.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.surface.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.surface.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/surface/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/surface/colorbar/_tickformatstop.py index 89bdc997b58..7716fcf2ac2 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/surface/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "surface.colorbar" - _path_str = "surface.colorbar.tickformatstop" + _parent_path_str = 'surface.colorbar' + _path_str = 'surface.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.surface.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.surface.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.surface.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/surface/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/surface/colorbar/_title.py index 5d7455b4bca..d3f08a19177 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/surface/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "surface.colorbar" - _path_str = "surface.colorbar.title" + _parent_path_str = 'surface.colorbar' + _path_str = 'surface.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.surface.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.surface.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.surface.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.surface.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/surface/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/surface/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/surface/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/surface/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/surface/colorbar/title/_font.py index 45fc210c2dd..b4a9cc39567 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/surface/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "surface.colorbar.title" - _path_str = "surface.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'surface.colorbar.title' + _path_str = 'surface.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.surface.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.surface.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.surface.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/surface/contours/__init__.py b/packages/python/plotly/plotly/graph_objs/surface/contours/__init__.py index 40e571c2c87..1087635087f 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/contours/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/surface/contours/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._x import X from ._y import Y @@ -10,7 +9,10 @@ from . import z else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [".x", ".y", ".z"], ["._x.X", "._y.Y", "._z.Z"] + __name__, + ['.x', '.y', '.z'], + ['._x.X', '._y.Y', '._z.Z'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/surface/contours/_x.py b/packages/python/plotly/plotly/graph_objs/surface/contours/_x.py index 3a0122ad5de..c35ec198139 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/contours/_x.py +++ b/packages/python/plotly/plotly/graph_objs/surface/contours/_x.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,21 +8,9 @@ class X(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "surface.contours" - _path_str = "surface.contours.x" - _valid_props = { - "color", - "end", - "highlight", - "highlightcolor", - "highlightwidth", - "project", - "show", - "size", - "start", - "usecolormap", - "width", - } + _parent_path_str = 'surface.contours' + _path_str = 'surface.contours.x' + _valid_props = {"color", "end", "highlight", "highlightcolor", "highlightwidth", "project", "show", "size", "start", "usecolormap", "width"} # color # ----- @@ -34,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # end # --- @@ -96,11 +51,11 @@ def end(self): ------- int|float """ - return self["end"] + return self['end'] @end.setter def end(self, val): - self["end"] = val + self['end'] = val # highlight # --------- @@ -117,11 +72,11 @@ def highlight(self): ------- bool """ - return self["highlight"] + return self['highlight'] @highlight.setter def highlight(self, val): - self["highlight"] = val + self['highlight'] = val # highlightcolor # -------------- @@ -135,52 +90,17 @@ def highlightcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["highlightcolor"] + return self['highlightcolor'] @highlightcolor.setter def highlightcolor(self, val): - self["highlightcolor"] = val + self['highlightcolor'] = val # highlightwidth # -------------- @@ -196,11 +116,11 @@ def highlightwidth(self): ------- int|float """ - return self["highlightwidth"] + return self['highlightwidth'] @highlightwidth.setter def highlightwidth(self, val): - self["highlightwidth"] = val + self['highlightwidth'] = val # project # ------- @@ -213,36 +133,15 @@ def project(self): - A dict of string/value properties that will be passed to the Project constructor - Supported dict properties: - - x - Determines whether or not these contour lines - are projected on the x plane. If `highlight` is - set to True (the default), the projected lines - are shown on hover. If `show` is set to True, - the projected lines are shown in permanence. - y - Determines whether or not these contour lines - are projected on the y plane. If `highlight` is - set to True (the default), the projected lines - are shown on hover. If `show` is set to True, - the projected lines are shown in permanence. - z - Determines whether or not these contour lines - are projected on the z plane. If `highlight` is - set to True (the default), the projected lines - are shown on hover. If `show` is set to True, - the projected lines are shown in permanence. - Returns ------- plotly.graph_objs.surface.contours.x.Project """ - return self["project"] + return self['project'] @project.setter def project(self, val): - self["project"] = val + self['project'] = val # show # ---- @@ -259,11 +158,11 @@ def show(self): ------- bool """ - return self["show"] + return self['show'] @show.setter def show(self, val): - self["show"] = val + self['show'] = val # size # ---- @@ -279,11 +178,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # start # ----- @@ -300,11 +199,11 @@ def start(self): ------- int|float """ - return self["start"] + return self['start'] @start.setter def start(self, val): - self["start"] = val + self['start'] = val # usecolormap # ----------- @@ -321,11 +220,11 @@ def usecolormap(self): ------- bool """ - return self["usecolormap"] + return self['usecolormap'] @usecolormap.setter def usecolormap(self, val): - self["usecolormap"] = val + self['usecolormap'] = val # width # ----- @@ -341,11 +240,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -382,23 +281,21 @@ def _prop_descriptions(self): width Sets the width of the contour lines. """ - - def __init__( - self, - arg=None, - color=None, - end=None, - highlight=None, - highlightcolor=None, - highlightwidth=None, - project=None, - show=None, - size=None, - start=None, - usecolormap=None, - width=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + end=None, + highlight=None, + highlightcolor=None, + highlightwidth=None, + project=None, + show=None, + size=None, + start=None, + usecolormap=None, + width=None, + **kwargs + ): """ Construct a new X object @@ -442,10 +339,10 @@ def __init__( ------- X """ - super(X, self).__init__("x") + super(X, self).__init__('x') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -457,64 +354,30 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.surface.contours.X constructor must be a dict or -an instance of :class:`plotly.graph_objs.surface.contours.X`""" - ) +an instance of :class:`plotly.graph_objs.surface.contours.X`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("end", None) - _v = end if end is not None else _v - if _v is not None: - self["end"] = _v - _v = arg.pop("highlight", None) - _v = highlight if highlight is not None else _v - if _v is not None: - self["highlight"] = _v - _v = arg.pop("highlightcolor", None) - _v = highlightcolor if highlightcolor is not None else _v - if _v is not None: - self["highlightcolor"] = _v - _v = arg.pop("highlightwidth", None) - _v = highlightwidth if highlightwidth is not None else _v - if _v is not None: - self["highlightwidth"] = _v - _v = arg.pop("project", None) - _v = project if project is not None else _v - if _v is not None: - self["project"] = _v - _v = arg.pop("show", None) - _v = show if show is not None else _v - if _v is not None: - self["show"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("start", None) - _v = start if start is not None else _v - if _v is not None: - self["start"] = _v - _v = arg.pop("usecolormap", None) - _v = usecolormap if usecolormap is not None else _v - if _v is not None: - self["usecolormap"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('end', arg, end) + self._init_provided('highlight', arg, highlight) + self._init_provided('highlightcolor', arg, highlightcolor) + self._init_provided('highlightwidth', arg, highlightwidth) + self._init_provided('project', arg, project) + self._init_provided('show', arg, show) + self._init_provided('size', arg, size) + self._init_provided('start', arg, start) + self._init_provided('usecolormap', arg, usecolormap) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/surface/contours/_y.py b/packages/python/plotly/plotly/graph_objs/surface/contours/_y.py index faf7eccca32..827fa9baf3e 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/contours/_y.py +++ b/packages/python/plotly/plotly/graph_objs/surface/contours/_y.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,21 +8,9 @@ class Y(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "surface.contours" - _path_str = "surface.contours.y" - _valid_props = { - "color", - "end", - "highlight", - "highlightcolor", - "highlightwidth", - "project", - "show", - "size", - "start", - "usecolormap", - "width", - } + _parent_path_str = 'surface.contours' + _path_str = 'surface.contours.y' + _valid_props = {"color", "end", "highlight", "highlightcolor", "highlightwidth", "project", "show", "size", "start", "usecolormap", "width"} # color # ----- @@ -34,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # end # --- @@ -96,11 +51,11 @@ def end(self): ------- int|float """ - return self["end"] + return self['end'] @end.setter def end(self, val): - self["end"] = val + self['end'] = val # highlight # --------- @@ -117,11 +72,11 @@ def highlight(self): ------- bool """ - return self["highlight"] + return self['highlight'] @highlight.setter def highlight(self, val): - self["highlight"] = val + self['highlight'] = val # highlightcolor # -------------- @@ -135,52 +90,17 @@ def highlightcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["highlightcolor"] + return self['highlightcolor'] @highlightcolor.setter def highlightcolor(self, val): - self["highlightcolor"] = val + self['highlightcolor'] = val # highlightwidth # -------------- @@ -196,11 +116,11 @@ def highlightwidth(self): ------- int|float """ - return self["highlightwidth"] + return self['highlightwidth'] @highlightwidth.setter def highlightwidth(self, val): - self["highlightwidth"] = val + self['highlightwidth'] = val # project # ------- @@ -213,36 +133,15 @@ def project(self): - A dict of string/value properties that will be passed to the Project constructor - Supported dict properties: - - x - Determines whether or not these contour lines - are projected on the x plane. If `highlight` is - set to True (the default), the projected lines - are shown on hover. If `show` is set to True, - the projected lines are shown in permanence. - y - Determines whether or not these contour lines - are projected on the y plane. If `highlight` is - set to True (the default), the projected lines - are shown on hover. If `show` is set to True, - the projected lines are shown in permanence. - z - Determines whether or not these contour lines - are projected on the z plane. If `highlight` is - set to True (the default), the projected lines - are shown on hover. If `show` is set to True, - the projected lines are shown in permanence. - Returns ------- plotly.graph_objs.surface.contours.y.Project """ - return self["project"] + return self['project'] @project.setter def project(self, val): - self["project"] = val + self['project'] = val # show # ---- @@ -259,11 +158,11 @@ def show(self): ------- bool """ - return self["show"] + return self['show'] @show.setter def show(self, val): - self["show"] = val + self['show'] = val # size # ---- @@ -279,11 +178,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # start # ----- @@ -300,11 +199,11 @@ def start(self): ------- int|float """ - return self["start"] + return self['start'] @start.setter def start(self, val): - self["start"] = val + self['start'] = val # usecolormap # ----------- @@ -321,11 +220,11 @@ def usecolormap(self): ------- bool """ - return self["usecolormap"] + return self['usecolormap'] @usecolormap.setter def usecolormap(self, val): - self["usecolormap"] = val + self['usecolormap'] = val # width # ----- @@ -341,11 +240,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -382,23 +281,21 @@ def _prop_descriptions(self): width Sets the width of the contour lines. """ - - def __init__( - self, - arg=None, - color=None, - end=None, - highlight=None, - highlightcolor=None, - highlightwidth=None, - project=None, - show=None, - size=None, - start=None, - usecolormap=None, - width=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + end=None, + highlight=None, + highlightcolor=None, + highlightwidth=None, + project=None, + show=None, + size=None, + start=None, + usecolormap=None, + width=None, + **kwargs + ): """ Construct a new Y object @@ -442,10 +339,10 @@ def __init__( ------- Y """ - super(Y, self).__init__("y") + super(Y, self).__init__('y') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -457,64 +354,30 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.surface.contours.Y constructor must be a dict or -an instance of :class:`plotly.graph_objs.surface.contours.Y`""" - ) +an instance of :class:`plotly.graph_objs.surface.contours.Y`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("end", None) - _v = end if end is not None else _v - if _v is not None: - self["end"] = _v - _v = arg.pop("highlight", None) - _v = highlight if highlight is not None else _v - if _v is not None: - self["highlight"] = _v - _v = arg.pop("highlightcolor", None) - _v = highlightcolor if highlightcolor is not None else _v - if _v is not None: - self["highlightcolor"] = _v - _v = arg.pop("highlightwidth", None) - _v = highlightwidth if highlightwidth is not None else _v - if _v is not None: - self["highlightwidth"] = _v - _v = arg.pop("project", None) - _v = project if project is not None else _v - if _v is not None: - self["project"] = _v - _v = arg.pop("show", None) - _v = show if show is not None else _v - if _v is not None: - self["show"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("start", None) - _v = start if start is not None else _v - if _v is not None: - self["start"] = _v - _v = arg.pop("usecolormap", None) - _v = usecolormap if usecolormap is not None else _v - if _v is not None: - self["usecolormap"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('end', arg, end) + self._init_provided('highlight', arg, highlight) + self._init_provided('highlightcolor', arg, highlightcolor) + self._init_provided('highlightwidth', arg, highlightwidth) + self._init_provided('project', arg, project) + self._init_provided('show', arg, show) + self._init_provided('size', arg, size) + self._init_provided('start', arg, start) + self._init_provided('usecolormap', arg, usecolormap) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/surface/contours/_z.py b/packages/python/plotly/plotly/graph_objs/surface/contours/_z.py index 21a4dc7262a..68bb21c6991 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/contours/_z.py +++ b/packages/python/plotly/plotly/graph_objs/surface/contours/_z.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,21 +8,9 @@ class Z(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "surface.contours" - _path_str = "surface.contours.z" - _valid_props = { - "color", - "end", - "highlight", - "highlightcolor", - "highlightwidth", - "project", - "show", - "size", - "start", - "usecolormap", - "width", - } + _parent_path_str = 'surface.contours' + _path_str = 'surface.contours.z' + _valid_props = {"color", "end", "highlight", "highlightcolor", "highlightwidth", "project", "show", "size", "start", "usecolormap", "width"} # color # ----- @@ -34,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # end # --- @@ -96,11 +51,11 @@ def end(self): ------- int|float """ - return self["end"] + return self['end'] @end.setter def end(self, val): - self["end"] = val + self['end'] = val # highlight # --------- @@ -117,11 +72,11 @@ def highlight(self): ------- bool """ - return self["highlight"] + return self['highlight'] @highlight.setter def highlight(self, val): - self["highlight"] = val + self['highlight'] = val # highlightcolor # -------------- @@ -135,52 +90,17 @@ def highlightcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["highlightcolor"] + return self['highlightcolor'] @highlightcolor.setter def highlightcolor(self, val): - self["highlightcolor"] = val + self['highlightcolor'] = val # highlightwidth # -------------- @@ -196,11 +116,11 @@ def highlightwidth(self): ------- int|float """ - return self["highlightwidth"] + return self['highlightwidth'] @highlightwidth.setter def highlightwidth(self, val): - self["highlightwidth"] = val + self['highlightwidth'] = val # project # ------- @@ -213,36 +133,15 @@ def project(self): - A dict of string/value properties that will be passed to the Project constructor - Supported dict properties: - - x - Determines whether or not these contour lines - are projected on the x plane. If `highlight` is - set to True (the default), the projected lines - are shown on hover. If `show` is set to True, - the projected lines are shown in permanence. - y - Determines whether or not these contour lines - are projected on the y plane. If `highlight` is - set to True (the default), the projected lines - are shown on hover. If `show` is set to True, - the projected lines are shown in permanence. - z - Determines whether or not these contour lines - are projected on the z plane. If `highlight` is - set to True (the default), the projected lines - are shown on hover. If `show` is set to True, - the projected lines are shown in permanence. - Returns ------- plotly.graph_objs.surface.contours.z.Project """ - return self["project"] + return self['project'] @project.setter def project(self, val): - self["project"] = val + self['project'] = val # show # ---- @@ -259,11 +158,11 @@ def show(self): ------- bool """ - return self["show"] + return self['show'] @show.setter def show(self, val): - self["show"] = val + self['show'] = val # size # ---- @@ -279,11 +178,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # start # ----- @@ -300,11 +199,11 @@ def start(self): ------- int|float """ - return self["start"] + return self['start'] @start.setter def start(self, val): - self["start"] = val + self['start'] = val # usecolormap # ----------- @@ -321,11 +220,11 @@ def usecolormap(self): ------- bool """ - return self["usecolormap"] + return self['usecolormap'] @usecolormap.setter def usecolormap(self, val): - self["usecolormap"] = val + self['usecolormap'] = val # width # ----- @@ -341,11 +240,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -382,23 +281,21 @@ def _prop_descriptions(self): width Sets the width of the contour lines. """ - - def __init__( - self, - arg=None, - color=None, - end=None, - highlight=None, - highlightcolor=None, - highlightwidth=None, - project=None, - show=None, - size=None, - start=None, - usecolormap=None, - width=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + end=None, + highlight=None, + highlightcolor=None, + highlightwidth=None, + project=None, + show=None, + size=None, + start=None, + usecolormap=None, + width=None, + **kwargs + ): """ Construct a new Z object @@ -442,10 +339,10 @@ def __init__( ------- Z """ - super(Z, self).__init__("z") + super(Z, self).__init__('z') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -457,64 +354,30 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.surface.contours.Z constructor must be a dict or -an instance of :class:`plotly.graph_objs.surface.contours.Z`""" - ) +an instance of :class:`plotly.graph_objs.surface.contours.Z`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("end", None) - _v = end if end is not None else _v - if _v is not None: - self["end"] = _v - _v = arg.pop("highlight", None) - _v = highlight if highlight is not None else _v - if _v is not None: - self["highlight"] = _v - _v = arg.pop("highlightcolor", None) - _v = highlightcolor if highlightcolor is not None else _v - if _v is not None: - self["highlightcolor"] = _v - _v = arg.pop("highlightwidth", None) - _v = highlightwidth if highlightwidth is not None else _v - if _v is not None: - self["highlightwidth"] = _v - _v = arg.pop("project", None) - _v = project if project is not None else _v - if _v is not None: - self["project"] = _v - _v = arg.pop("show", None) - _v = show if show is not None else _v - if _v is not None: - self["show"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("start", None) - _v = start if start is not None else _v - if _v is not None: - self["start"] = _v - _v = arg.pop("usecolormap", None) - _v = usecolormap if usecolormap is not None else _v - if _v is not None: - self["usecolormap"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('end', arg, end) + self._init_provided('highlight', arg, highlight) + self._init_provided('highlightcolor', arg, highlightcolor) + self._init_provided('highlightwidth', arg, highlightwidth) + self._init_provided('project', arg, project) + self._init_provided('show', arg, show) + self._init_provided('size', arg, size) + self._init_provided('start', arg, start) + self._init_provided('usecolormap', arg, usecolormap) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/surface/contours/x/__init__.py b/packages/python/plotly/plotly/graph_objs/surface/contours/x/__init__.py index c01cb585258..7316df57f9c 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/contours/x/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/surface/contours/x/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._project import Project else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._project.Project'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._project.Project"]) diff --git a/packages/python/plotly/plotly/graph_objs/surface/contours/x/_project.py b/packages/python/plotly/plotly/graph_objs/surface/contours/x/_project.py index 158db85158d..ff399fd113f 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/contours/x/_project.py +++ b/packages/python/plotly/plotly/graph_objs/surface/contours/x/_project.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Project(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "surface.contours.x" - _path_str = "surface.contours.x.project" + _parent_path_str = 'surface.contours.x' + _path_str = 'surface.contours.x.project' _valid_props = {"x", "y", "z"} # x @@ -27,11 +29,11 @@ def x(self): ------- bool """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @@ -50,11 +52,11 @@ def y(self): ------- bool """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # z # - @@ -73,11 +75,11 @@ def z(self): ------- bool """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # Self properties description # --------------------------- @@ -103,8 +105,13 @@ def _prop_descriptions(self): If `show` is set to True, the projected lines are shown in permanence. """ - - def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): + def __init__(self, + arg=None, + x=None, + y=None, + z=None, + **kwargs + ): """ Construct a new Project object @@ -137,10 +144,10 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Project """ - super(Project, self).__init__("project") + super(Project, self).__init__('project') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -152,32 +159,22 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.surface.contours.x.Project constructor must be a dict or -an instance of :class:`plotly.graph_objs.surface.contours.x.Project`""" - ) +an instance of :class:`plotly.graph_objs.surface.contours.x.Project`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) + self._init_provided('z', arg, z) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/surface/contours/y/__init__.py b/packages/python/plotly/plotly/graph_objs/surface/contours/y/__init__.py index c01cb585258..7316df57f9c 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/contours/y/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/surface/contours/y/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._project import Project else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._project.Project'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._project.Project"]) diff --git a/packages/python/plotly/plotly/graph_objs/surface/contours/y/_project.py b/packages/python/plotly/plotly/graph_objs/surface/contours/y/_project.py index 68ff9fd518c..8ad7c8d3482 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/contours/y/_project.py +++ b/packages/python/plotly/plotly/graph_objs/surface/contours/y/_project.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Project(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "surface.contours.y" - _path_str = "surface.contours.y.project" + _parent_path_str = 'surface.contours.y' + _path_str = 'surface.contours.y.project' _valid_props = {"x", "y", "z"} # x @@ -27,11 +29,11 @@ def x(self): ------- bool """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @@ -50,11 +52,11 @@ def y(self): ------- bool """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # z # - @@ -73,11 +75,11 @@ def z(self): ------- bool """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # Self properties description # --------------------------- @@ -103,8 +105,13 @@ def _prop_descriptions(self): If `show` is set to True, the projected lines are shown in permanence. """ - - def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): + def __init__(self, + arg=None, + x=None, + y=None, + z=None, + **kwargs + ): """ Construct a new Project object @@ -137,10 +144,10 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Project """ - super(Project, self).__init__("project") + super(Project, self).__init__('project') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -152,32 +159,22 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.surface.contours.y.Project constructor must be a dict or -an instance of :class:`plotly.graph_objs.surface.contours.y.Project`""" - ) +an instance of :class:`plotly.graph_objs.surface.contours.y.Project`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) + self._init_provided('z', arg, z) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/surface/contours/z/__init__.py b/packages/python/plotly/plotly/graph_objs/surface/contours/z/__init__.py index c01cb585258..7316df57f9c 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/contours/z/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/surface/contours/z/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._project import Project else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._project.Project'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._project.Project"]) diff --git a/packages/python/plotly/plotly/graph_objs/surface/contours/z/_project.py b/packages/python/plotly/plotly/graph_objs/surface/contours/z/_project.py index 17efc1ae04a..e3cad3cc03f 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/contours/z/_project.py +++ b/packages/python/plotly/plotly/graph_objs/surface/contours/z/_project.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Project(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "surface.contours.z" - _path_str = "surface.contours.z.project" + _parent_path_str = 'surface.contours.z' + _path_str = 'surface.contours.z.project' _valid_props = {"x", "y", "z"} # x @@ -27,11 +29,11 @@ def x(self): ------- bool """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @@ -50,11 +52,11 @@ def y(self): ------- bool """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # z # - @@ -73,11 +75,11 @@ def z(self): ------- bool """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # Self properties description # --------------------------- @@ -103,8 +105,13 @@ def _prop_descriptions(self): If `show` is set to True, the projected lines are shown in permanence. """ - - def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): + def __init__(self, + arg=None, + x=None, + y=None, + z=None, + **kwargs + ): """ Construct a new Project object @@ -137,10 +144,10 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Project """ - super(Project, self).__init__("project") + super(Project, self).__init__('project') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -152,32 +159,22 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.surface.contours.z.Project constructor must be a dict or -an instance of :class:`plotly.graph_objs.surface.contours.z.Project`""" - ) +an instance of :class:`plotly.graph_objs.surface.contours.z.Project`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) + self._init_provided('z', arg, z) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/surface/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/surface/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/surface/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/surface/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/surface/hoverlabel/_font.py index 59a9809f1a9..ce986baa0ec 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/surface/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "surface.hoverlabel" - _path_str = "surface.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'surface.hoverlabel' + _path_str = 'surface.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.surface.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.surface.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.surface.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/surface/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/surface/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/surface/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/surface/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/surface/legendgrouptitle/_font.py index b79a937969a..288c6a0770a 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/surface/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "surface.legendgrouptitle" - _path_str = "surface.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'surface.legendgrouptitle' + _path_str = 'surface.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.surface.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.surface.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.surface.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/table/__init__.py b/packages/python/plotly/plotly/graph_objs/table/__init__.py index 21b4bd6230e..99d60514338 100644 --- a/packages/python/plotly/plotly/graph_objs/table/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/table/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._cells import Cells from ._domain import Domain @@ -14,16 +13,10 @@ from . import legendgrouptitle else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".cells", ".header", ".hoverlabel", ".legendgrouptitle"], - [ - "._cells.Cells", - "._domain.Domain", - "._header.Header", - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._stream.Stream", - ], + ['.cells', '.header', '.hoverlabel', '.legendgrouptitle'], + ['._cells.Cells', '._domain.Domain', '._header.Header', '._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._stream.Stream'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/table/_cells.py b/packages/python/plotly/plotly/graph_objs/table/_cells.py index 812f9dda455..7828c89b508 100644 --- a/packages/python/plotly/plotly/graph_objs/table/_cells.py +++ b/packages/python/plotly/plotly/graph_objs/table/_cells.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,24 +8,9 @@ class Cells(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "table" - _path_str = "table.cells" - _valid_props = { - "align", - "alignsrc", - "fill", - "font", - "format", - "formatsrc", - "height", - "line", - "prefix", - "prefixsrc", - "suffix", - "suffixsrc", - "values", - "valuessrc", - } + _parent_path_str = 'table' + _path_str = 'table.cells' + _valid_props = {"align", "alignsrc", "fill", "font", "format", "formatsrc", "height", "line", "prefix", "prefixsrc", "suffix", "suffixsrc", "values", "valuessrc"} # align # ----- @@ -44,11 +31,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -64,11 +51,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # fill # ---- @@ -81,25 +68,15 @@ def fill(self): - A dict of string/value properties that will be passed to the Fill constructor - Supported dict properties: - - color - Sets the cell fill color. It accepts either a - specific color or an array of colors or a 2D - array of colors. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - Returns ------- plotly.graph_objs.table.cells.Fill """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # font # ---- @@ -112,88 +89,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.table.cells.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # format # ------ @@ -212,11 +116,11 @@ def format(self): ------- numpy.ndarray """ - return self["format"] + return self['format'] @format.setter def format(self, val): - self["format"] = val + self['format'] = val # formatsrc # --------- @@ -232,11 +136,11 @@ def formatsrc(self): ------- str """ - return self["formatsrc"] + return self['formatsrc'] @formatsrc.setter def formatsrc(self, val): - self["formatsrc"] = val + self['formatsrc'] = val # height # ------ @@ -252,11 +156,11 @@ def height(self): ------- int|float """ - return self["height"] + return self['height'] @height.setter def height(self, val): - self["height"] = val + self['height'] = val # line # ---- @@ -269,28 +173,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - width - - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. - Returns ------- plotly.graph_objs.table.cells.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # prefix # ------ @@ -308,11 +199,11 @@ def prefix(self): ------- str|numpy.ndarray """ - return self["prefix"] + return self['prefix'] @prefix.setter def prefix(self, val): - self["prefix"] = val + self['prefix'] = val # prefixsrc # --------- @@ -328,11 +219,11 @@ def prefixsrc(self): ------- str """ - return self["prefixsrc"] + return self['prefixsrc'] @prefixsrc.setter def prefixsrc(self, val): - self["prefixsrc"] = val + self['prefixsrc'] = val # suffix # ------ @@ -350,11 +241,11 @@ def suffix(self): ------- str|numpy.ndarray """ - return self["suffix"] + return self['suffix'] @suffix.setter def suffix(self, val): - self["suffix"] = val + self['suffix'] = val # suffixsrc # --------- @@ -370,11 +261,11 @@ def suffixsrc(self): ------- str """ - return self["suffixsrc"] + return self['suffixsrc'] @suffixsrc.setter def suffixsrc(self, val): - self["suffixsrc"] = val + self['suffixsrc'] = val # values # ------ @@ -393,11 +284,11 @@ def values(self): ------- numpy.ndarray """ - return self["values"] + return self['values'] @values.setter def values(self, val): - self["values"] = val + self['values'] = val # valuessrc # --------- @@ -413,11 +304,11 @@ def valuessrc(self): ------- str """ - return self["valuessrc"] + return self['valuessrc'] @valuessrc.setter def valuessrc(self, val): - self["valuessrc"] = val + self['valuessrc'] = val # Self properties description # --------------------------- @@ -472,26 +363,24 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `values`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - fill=None, - font=None, - format=None, - formatsrc=None, - height=None, - line=None, - prefix=None, - prefixsrc=None, - suffix=None, - suffixsrc=None, - values=None, - valuessrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + fill=None, + font=None, + format=None, + formatsrc=None, + height=None, + line=None, + prefix=None, + prefixsrc=None, + suffix=None, + suffixsrc=None, + values=None, + valuessrc=None, + **kwargs + ): """ Construct a new Cells object @@ -552,10 +441,10 @@ def __init__( ------- Cells """ - super(Cells, self).__init__("cells") + super(Cells, self).__init__('cells') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -567,76 +456,33 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.table.Cells constructor must be a dict or -an instance of :class:`plotly.graph_objs.table.Cells`""" - ) +an instance of :class:`plotly.graph_objs.table.Cells`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("format", None) - _v = format if format is not None else _v - if _v is not None: - self["format"] = _v - _v = arg.pop("formatsrc", None) - _v = formatsrc if formatsrc is not None else _v - if _v is not None: - self["formatsrc"] = _v - _v = arg.pop("height", None) - _v = height if height is not None else _v - if _v is not None: - self["height"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("prefix", None) - _v = prefix if prefix is not None else _v - if _v is not None: - self["prefix"] = _v - _v = arg.pop("prefixsrc", None) - _v = prefixsrc if prefixsrc is not None else _v - if _v is not None: - self["prefixsrc"] = _v - _v = arg.pop("suffix", None) - _v = suffix if suffix is not None else _v - if _v is not None: - self["suffix"] = _v - _v = arg.pop("suffixsrc", None) - _v = suffixsrc if suffixsrc is not None else _v - if _v is not None: - self["suffixsrc"] = _v - _v = arg.pop("values", None) - _v = values if values is not None else _v - if _v is not None: - self["values"] = _v - _v = arg.pop("valuessrc", None) - _v = valuessrc if valuessrc is not None else _v - if _v is not None: - self["valuessrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('fill', arg, fill) + self._init_provided('font', arg, font) + self._init_provided('format', arg, format) + self._init_provided('formatsrc', arg, formatsrc) + self._init_provided('height', arg, height) + self._init_provided('line', arg, line) + self._init_provided('prefix', arg, prefix) + self._init_provided('prefixsrc', arg, prefixsrc) + self._init_provided('suffix', arg, suffix) + self._init_provided('suffixsrc', arg, suffixsrc) + self._init_provided('values', arg, values) + self._init_provided('valuessrc', arg, valuessrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/table/_domain.py b/packages/python/plotly/plotly/graph_objs/table/_domain.py index 7b3274e955e..c3112ae0cea 100644 --- a/packages/python/plotly/plotly/graph_objs/table/_domain.py +++ b/packages/python/plotly/plotly/graph_objs/table/_domain.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Domain(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "table" - _path_str = "table.domain" + _parent_path_str = 'table' + _path_str = 'table.domain' _valid_props = {"column", "row", "x", "y"} # column @@ -26,11 +28,11 @@ def column(self): ------- int """ - return self["column"] + return self['column'] @column.setter def column(self, val): - self["column"] = val + self['column'] = val # row # --- @@ -48,63 +50,63 @@ def row(self): ------- int """ - return self["row"] + return self['row'] @row.setter def row(self, val): - self["row"] = val + self['row'] = val # x # - @property def x(self): """ - Sets the horizontal domain of this table trace (in plot - fraction). + Sets the horizontal domain of this table trace (in plot + fraction). - The 'x' property is an info array that may be specified as: + The 'x' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'x[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'x[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - * a list or tuple of 2 elements where: - (0) The 'x[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'x[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - - Returns - ------- - list + Returns + ------- + list """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @property def y(self): """ - Sets the vertical domain of this table trace (in plot - fraction). - - The 'y' property is an info array that may be specified as: + Sets the vertical domain of this table trace (in plot + fraction). - * a list or tuple of 2 elements where: - (0) The 'y[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'y[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] + The 'y' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'y[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'y[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - Returns - ------- - list + Returns + ------- + list """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # Self properties description # --------------------------- @@ -124,8 +126,14 @@ def _prop_descriptions(self): Sets the vertical domain of this table trace (in plot fraction). """ - - def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): + def __init__(self, + arg=None, + column=None, + row=None, + x=None, + y=None, + **kwargs + ): """ Construct a new Domain object @@ -151,10 +159,10 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") + super(Domain, self).__init__('domain') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -166,36 +174,23 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.table.Domain constructor must be a dict or -an instance of :class:`plotly.graph_objs.table.Domain`""" - ) +an instance of :class:`plotly.graph_objs.table.Domain`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("column", None) - _v = column if column is not None else _v - if _v is not None: - self["column"] = _v - _v = arg.pop("row", None) - _v = row if row is not None else _v - if _v is not None: - self["row"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v + self._init_provided('column', arg, column) + self._init_provided('row', arg, row) + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/table/_header.py b/packages/python/plotly/plotly/graph_objs/table/_header.py index 6ba73d3b9ff..6b7e3001518 100644 --- a/packages/python/plotly/plotly/graph_objs/table/_header.py +++ b/packages/python/plotly/plotly/graph_objs/table/_header.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,24 +8,9 @@ class Header(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "table" - _path_str = "table.header" - _valid_props = { - "align", - "alignsrc", - "fill", - "font", - "format", - "formatsrc", - "height", - "line", - "prefix", - "prefixsrc", - "suffix", - "suffixsrc", - "values", - "valuessrc", - } + _parent_path_str = 'table' + _path_str = 'table.header' + _valid_props = {"align", "alignsrc", "fill", "font", "format", "formatsrc", "height", "line", "prefix", "prefixsrc", "suffix", "suffixsrc", "values", "valuessrc"} # align # ----- @@ -44,11 +31,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -64,11 +51,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # fill # ---- @@ -81,25 +68,15 @@ def fill(self): - A dict of string/value properties that will be passed to the Fill constructor - Supported dict properties: - - color - Sets the cell fill color. It accepts either a - specific color or an array of colors or a 2D - array of colors. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - Returns ------- plotly.graph_objs.table.header.Fill """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # font # ---- @@ -112,88 +89,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.table.header.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # format # ------ @@ -212,11 +116,11 @@ def format(self): ------- numpy.ndarray """ - return self["format"] + return self['format'] @format.setter def format(self, val): - self["format"] = val + self['format'] = val # formatsrc # --------- @@ -232,11 +136,11 @@ def formatsrc(self): ------- str """ - return self["formatsrc"] + return self['formatsrc'] @formatsrc.setter def formatsrc(self, val): - self["formatsrc"] = val + self['formatsrc'] = val # height # ------ @@ -252,11 +156,11 @@ def height(self): ------- int|float """ - return self["height"] + return self['height'] @height.setter def height(self, val): - self["height"] = val + self['height'] = val # line # ---- @@ -269,28 +173,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - width - - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. - Returns ------- plotly.graph_objs.table.header.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # prefix # ------ @@ -308,11 +199,11 @@ def prefix(self): ------- str|numpy.ndarray """ - return self["prefix"] + return self['prefix'] @prefix.setter def prefix(self, val): - self["prefix"] = val + self['prefix'] = val # prefixsrc # --------- @@ -328,11 +219,11 @@ def prefixsrc(self): ------- str """ - return self["prefixsrc"] + return self['prefixsrc'] @prefixsrc.setter def prefixsrc(self, val): - self["prefixsrc"] = val + self['prefixsrc'] = val # suffix # ------ @@ -350,11 +241,11 @@ def suffix(self): ------- str|numpy.ndarray """ - return self["suffix"] + return self['suffix'] @suffix.setter def suffix(self, val): - self["suffix"] = val + self['suffix'] = val # suffixsrc # --------- @@ -370,11 +261,11 @@ def suffixsrc(self): ------- str """ - return self["suffixsrc"] + return self['suffixsrc'] @suffixsrc.setter def suffixsrc(self, val): - self["suffixsrc"] = val + self['suffixsrc'] = val # values # ------ @@ -393,11 +284,11 @@ def values(self): ------- numpy.ndarray """ - return self["values"] + return self['values'] @values.setter def values(self, val): - self["values"] = val + self['values'] = val # valuessrc # --------- @@ -413,11 +304,11 @@ def valuessrc(self): ------- str """ - return self["valuessrc"] + return self['valuessrc'] @valuessrc.setter def valuessrc(self, val): - self["valuessrc"] = val + self['valuessrc'] = val # Self properties description # --------------------------- @@ -472,26 +363,24 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `values`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - fill=None, - font=None, - format=None, - formatsrc=None, - height=None, - line=None, - prefix=None, - prefixsrc=None, - suffix=None, - suffixsrc=None, - values=None, - valuessrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + fill=None, + font=None, + format=None, + formatsrc=None, + height=None, + line=None, + prefix=None, + prefixsrc=None, + suffix=None, + suffixsrc=None, + values=None, + valuessrc=None, + **kwargs + ): """ Construct a new Header object @@ -552,10 +441,10 @@ def __init__( ------- Header """ - super(Header, self).__init__("header") + super(Header, self).__init__('header') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -567,76 +456,33 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.table.Header constructor must be a dict or -an instance of :class:`plotly.graph_objs.table.Header`""" - ) +an instance of :class:`plotly.graph_objs.table.Header`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("format", None) - _v = format if format is not None else _v - if _v is not None: - self["format"] = _v - _v = arg.pop("formatsrc", None) - _v = formatsrc if formatsrc is not None else _v - if _v is not None: - self["formatsrc"] = _v - _v = arg.pop("height", None) - _v = height if height is not None else _v - if _v is not None: - self["height"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("prefix", None) - _v = prefix if prefix is not None else _v - if _v is not None: - self["prefix"] = _v - _v = arg.pop("prefixsrc", None) - _v = prefixsrc if prefixsrc is not None else _v - if _v is not None: - self["prefixsrc"] = _v - _v = arg.pop("suffix", None) - _v = suffix if suffix is not None else _v - if _v is not None: - self["suffix"] = _v - _v = arg.pop("suffixsrc", None) - _v = suffixsrc if suffixsrc is not None else _v - if _v is not None: - self["suffixsrc"] = _v - _v = arg.pop("values", None) - _v = values if values is not None else _v - if _v is not None: - self["values"] = _v - _v = arg.pop("valuessrc", None) - _v = valuessrc if valuessrc is not None else _v - if _v is not None: - self["valuessrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('fill', arg, fill) + self._init_provided('font', arg, font) + self._init_provided('format', arg, format) + self._init_provided('formatsrc', arg, formatsrc) + self._init_provided('height', arg, height) + self._init_provided('line', arg, line) + self._init_provided('prefix', arg, prefix) + self._init_provided('prefixsrc', arg, prefixsrc) + self._init_provided('suffix', arg, suffix) + self._init_provided('suffixsrc', arg, suffixsrc) + self._init_provided('values', arg, values) + self._init_provided('valuessrc', arg, valuessrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/table/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/table/_hoverlabel.py index 5ef832aa688..0c587dbddfa 100644 --- a/packages/python/plotly/plotly/graph_objs/table/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/table/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "table" - _path_str = "table.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'table' + _path_str = 'table.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.table.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.table.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.table.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.table.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/table/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/table/_legendgrouptitle.py index 150d30abb7f..db788bc51d3 100644 --- a/packages/python/plotly/plotly/graph_objs/table/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/table/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "table" - _path_str = "table.legendgrouptitle" + _parent_path_str = 'table' + _path_str = 'table.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.table.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.table.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.table.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.table.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/table/_stream.py b/packages/python/plotly/plotly/graph_objs/table/_stream.py index f42337b2e04..12dc2b7b8d0 100644 --- a/packages/python/plotly/plotly/graph_objs/table/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/table/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "table" - _path_str = "table.stream" + _parent_path_str = 'table' + _path_str = 'table.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -93,10 +99,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -108,28 +114,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.table.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.table.Stream`""" - ) +an instance of :class:`plotly.graph_objs.table.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/table/cells/__init__.py b/packages/python/plotly/plotly/graph_objs/table/cells/__init__.py index bc3fbf02cd3..cfcaeb39a19 100644 --- a/packages/python/plotly/plotly/graph_objs/table/cells/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/table/cells/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._fill import Fill from ._font import Font from ._line import Line else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._fill.Fill", "._font.Font", "._line.Line"] + __name__, + [], + ['._fill.Fill', '._font.Font', '._line.Line'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/table/cells/_fill.py b/packages/python/plotly/plotly/graph_objs/table/cells/_fill.py index c081a9b2ddc..c44c18eeeaf 100644 --- a/packages/python/plotly/plotly/graph_objs/table/cells/_fill.py +++ b/packages/python/plotly/plotly/graph_objs/table/cells/_fill.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Fill(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "table.cells" - _path_str = "table.cells.fill" + _parent_path_str = 'table.cells' + _path_str = 'table.cells.fill' _valid_props = {"color", "colorsrc"} # color @@ -23,53 +25,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -85,11 +52,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # Self properties description # --------------------------- @@ -103,8 +70,12 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `color`. """ - - def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + **kwargs + ): """ Construct a new Fill object @@ -125,10 +96,10 @@ def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): ------- Fill """ - super(Fill, self).__init__("fill") + super(Fill, self).__init__('fill') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -140,28 +111,21 @@ def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.table.cells.Fill constructor must be a dict or -an instance of :class:`plotly.graph_objs.table.cells.Fill`""" - ) +an instance of :class:`plotly.graph_objs.table.cells.Fill`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/table/cells/_font.py b/packages/python/plotly/plotly/graph_objs/table/cells/_font.py index cc5c3ce58db..088155193b5 100644 --- a/packages/python/plotly/plotly/graph_objs/table/cells/_font.py +++ b/packages/python/plotly/plotly/graph_objs/table/cells/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "table.cells" - _path_str = "table.cells.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'table.cells' + _path_str = 'table.cells.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -637,10 +583,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -652,92 +598,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.table.cells.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.table.cells.Font`""" - ) +an instance of :class:`plotly.graph_objs.table.cells.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/table/cells/_line.py b/packages/python/plotly/plotly/graph_objs/table/cells/_line.py index 6483287201f..a2f8e56d606 100644 --- a/packages/python/plotly/plotly/graph_objs/table/cells/_line.py +++ b/packages/python/plotly/plotly/graph_objs/table/cells/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "table.cells" - _path_str = "table.cells.line" + _parent_path_str = 'table.cells' + _path_str = 'table.cells.line' _valid_props = {"color", "colorsrc", "width", "widthsrc"} # color @@ -20,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -82,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # width # ----- @@ -101,11 +68,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # widthsrc # -------- @@ -121,11 +88,11 @@ def widthsrc(self): ------- str """ - return self["widthsrc"] + return self['widthsrc'] @widthsrc.setter def widthsrc(self, val): - self["widthsrc"] = val + self['widthsrc'] = val # Self properties description # --------------------------- @@ -143,10 +110,14 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `width`. """ - - def __init__( - self, arg=None, color=None, colorsrc=None, width=None, widthsrc=None, **kwargs - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + width=None, + widthsrc=None, + **kwargs + ): """ Construct a new Line object @@ -171,10 +142,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -186,36 +157,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.table.cells.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.table.cells.Line`""" - ) +an instance of :class:`plotly.graph_objs.table.cells.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("widthsrc", None) - _v = widthsrc if widthsrc is not None else _v - if _v is not None: - self["widthsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('width', arg, width) + self._init_provided('widthsrc', arg, widthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/table/header/__init__.py b/packages/python/plotly/plotly/graph_objs/table/header/__init__.py index bc3fbf02cd3..cfcaeb39a19 100644 --- a/packages/python/plotly/plotly/graph_objs/table/header/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/table/header/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._fill import Fill from ._font import Font from ._line import Line else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._fill.Fill", "._font.Font", "._line.Line"] + __name__, + [], + ['._fill.Fill', '._font.Font', '._line.Line'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/table/header/_fill.py b/packages/python/plotly/plotly/graph_objs/table/header/_fill.py index 92353609339..76ff090bd6f 100644 --- a/packages/python/plotly/plotly/graph_objs/table/header/_fill.py +++ b/packages/python/plotly/plotly/graph_objs/table/header/_fill.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Fill(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "table.header" - _path_str = "table.header.fill" + _parent_path_str = 'table.header' + _path_str = 'table.header.fill' _valid_props = {"color", "colorsrc"} # color @@ -23,53 +25,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -85,11 +52,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # Self properties description # --------------------------- @@ -103,8 +70,12 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `color`. """ - - def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + **kwargs + ): """ Construct a new Fill object @@ -125,10 +96,10 @@ def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): ------- Fill """ - super(Fill, self).__init__("fill") + super(Fill, self).__init__('fill') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -140,28 +111,21 @@ def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.table.header.Fill constructor must be a dict or -an instance of :class:`plotly.graph_objs.table.header.Fill`""" - ) +an instance of :class:`plotly.graph_objs.table.header.Fill`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/table/header/_font.py b/packages/python/plotly/plotly/graph_objs/table/header/_font.py index 3ea8afe3f0a..5a1eea763ce 100644 --- a/packages/python/plotly/plotly/graph_objs/table/header/_font.py +++ b/packages/python/plotly/plotly/graph_objs/table/header/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "table.header" - _path_str = "table.header.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'table.header' + _path_str = 'table.header.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -637,10 +583,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -652,92 +598,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.table.header.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.table.header.Font`""" - ) +an instance of :class:`plotly.graph_objs.table.header.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/table/header/_line.py b/packages/python/plotly/plotly/graph_objs/table/header/_line.py index 8f0e41c9395..5a291469303 100644 --- a/packages/python/plotly/plotly/graph_objs/table/header/_line.py +++ b/packages/python/plotly/plotly/graph_objs/table/header/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "table.header" - _path_str = "table.header.line" + _parent_path_str = 'table.header' + _path_str = 'table.header.line' _valid_props = {"color", "colorsrc", "width", "widthsrc"} # color @@ -20,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -82,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # width # ----- @@ -101,11 +68,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # widthsrc # -------- @@ -121,11 +88,11 @@ def widthsrc(self): ------- str """ - return self["widthsrc"] + return self['widthsrc'] @widthsrc.setter def widthsrc(self, val): - self["widthsrc"] = val + self['widthsrc'] = val # Self properties description # --------------------------- @@ -143,10 +110,14 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `width`. """ - - def __init__( - self, arg=None, color=None, colorsrc=None, width=None, widthsrc=None, **kwargs - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + width=None, + widthsrc=None, + **kwargs + ): """ Construct a new Line object @@ -171,10 +142,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -186,36 +157,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.table.header.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.table.header.Line`""" - ) +an instance of :class:`plotly.graph_objs.table.header.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("widthsrc", None) - _v = widthsrc if widthsrc is not None else _v - if _v is not None: - self["widthsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('width', arg, width) + self._init_provided('widthsrc', arg, widthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/table/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/table/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/table/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/table/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/table/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/table/hoverlabel/_font.py index 5a72bf219d6..876c2a78ae1 100644 --- a/packages/python/plotly/plotly/graph_objs/table/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/table/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "table.hoverlabel" - _path_str = "table.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'table.hoverlabel' + _path_str = 'table.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.table.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.table.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.table.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/table/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/table/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/table/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/table/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/table/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/table/legendgrouptitle/_font.py index c458e0e5a4b..9dce386e299 100644 --- a/packages/python/plotly/plotly/graph_objs/table/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/table/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "table.legendgrouptitle" - _path_str = "table.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'table.legendgrouptitle' + _path_str = 'table.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.table.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.table.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.table.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/treemap/__init__.py b/packages/python/plotly/plotly/graph_objs/treemap/__init__.py index 3e1752e4e63..d271bb3cf0e 100644 --- a/packages/python/plotly/plotly/graph_objs/treemap/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/treemap/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._domain import Domain from ._hoverlabel import Hoverlabel @@ -19,21 +18,10 @@ from . import pathbar else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".hoverlabel", ".legendgrouptitle", ".marker", ".pathbar"], - [ - "._domain.Domain", - "._hoverlabel.Hoverlabel", - "._insidetextfont.Insidetextfont", - "._legendgrouptitle.Legendgrouptitle", - "._marker.Marker", - "._outsidetextfont.Outsidetextfont", - "._pathbar.Pathbar", - "._root.Root", - "._stream.Stream", - "._textfont.Textfont", - "._tiling.Tiling", - ], + ['.hoverlabel', '.legendgrouptitle', '.marker', '.pathbar'], + ['._domain.Domain', '._hoverlabel.Hoverlabel', '._insidetextfont.Insidetextfont', '._legendgrouptitle.Legendgrouptitle', '._marker.Marker', '._outsidetextfont.Outsidetextfont', '._pathbar.Pathbar', '._root.Root', '._stream.Stream', '._textfont.Textfont', '._tiling.Tiling'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/treemap/_domain.py b/packages/python/plotly/plotly/graph_objs/treemap/_domain.py index 25cbbdb69c5..a7009ecc152 100644 --- a/packages/python/plotly/plotly/graph_objs/treemap/_domain.py +++ b/packages/python/plotly/plotly/graph_objs/treemap/_domain.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Domain(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "treemap" - _path_str = "treemap.domain" + _parent_path_str = 'treemap' + _path_str = 'treemap.domain' _valid_props = {"column", "row", "x", "y"} # column @@ -26,11 +28,11 @@ def column(self): ------- int """ - return self["column"] + return self['column'] @column.setter def column(self, val): - self["column"] = val + self['column'] = val # row # --- @@ -48,63 +50,63 @@ def row(self): ------- int """ - return self["row"] + return self['row'] @row.setter def row(self, val): - self["row"] = val + self['row'] = val # x # - @property def x(self): """ - Sets the horizontal domain of this treemap trace (in plot - fraction). + Sets the horizontal domain of this treemap trace (in plot + fraction). - The 'x' property is an info array that may be specified as: + The 'x' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'x[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'x[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - * a list or tuple of 2 elements where: - (0) The 'x[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'x[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - - Returns - ------- - list + Returns + ------- + list """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @property def y(self): """ - Sets the vertical domain of this treemap trace (in plot - fraction). - - The 'y' property is an info array that may be specified as: + Sets the vertical domain of this treemap trace (in plot + fraction). - * a list or tuple of 2 elements where: - (0) The 'y[0]' property is a number and may be specified as: - - An int or float in the interval [0, 1] - (1) The 'y[1]' property is a number and may be specified as: - - An int or float in the interval [0, 1] + The 'y' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'y[0]' property is a number and may be specified as: + - An int or float in the interval [0, 1] + (1) The 'y[1]' property is a number and may be specified as: + - An int or float in the interval [0, 1] - Returns - ------- - list + Returns + ------- + list """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # Self properties description # --------------------------- @@ -124,8 +126,14 @@ def _prop_descriptions(self): Sets the vertical domain of this treemap trace (in plot fraction). """ - - def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): + def __init__(self, + arg=None, + column=None, + row=None, + x=None, + y=None, + **kwargs + ): """ Construct a new Domain object @@ -152,10 +160,10 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") + super(Domain, self).__init__('domain') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -167,36 +175,23 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.treemap.Domain constructor must be a dict or -an instance of :class:`plotly.graph_objs.treemap.Domain`""" - ) +an instance of :class:`plotly.graph_objs.treemap.Domain`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("column", None) - _v = column if column is not None else _v - if _v is not None: - self["column"] = _v - _v = arg.pop("row", None) - _v = row if row is not None else _v - if _v is not None: - self["row"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v + self._init_provided('column', arg, column) + self._init_provided('row', arg, row) + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/treemap/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/treemap/_hoverlabel.py index 302184f1d32..0275971502b 100644 --- a/packages/python/plotly/plotly/graph_objs/treemap/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/treemap/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "treemap" - _path_str = "treemap.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'treemap' + _path_str = 'treemap.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.treemap.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.treemap.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.treemap.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.treemap.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/treemap/_insidetextfont.py b/packages/python/plotly/plotly/graph_objs/treemap/_insidetextfont.py index 2d6af94a578..58c2e388a94 100644 --- a/packages/python/plotly/plotly/graph_objs/treemap/_insidetextfont.py +++ b/packages/python/plotly/plotly/graph_objs/treemap/_insidetextfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Insidetextfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "treemap" - _path_str = "treemap.insidetextfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'treemap' + _path_str = 'treemap.insidetextfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Insidetextfont object @@ -639,10 +585,10 @@ def __init__( ------- Insidetextfont """ - super(Insidetextfont, self).__init__("insidetextfont") + super(Insidetextfont, self).__init__('insidetextfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.treemap.Insidetextfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.treemap.Insidetextfont`""" - ) +an instance of :class:`plotly.graph_objs.treemap.Insidetextfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/treemap/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/treemap/_legendgrouptitle.py index 064f6b74b97..118fce90ade 100644 --- a/packages/python/plotly/plotly/graph_objs/treemap/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/treemap/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "treemap" - _path_str = "treemap.legendgrouptitle" + _parent_path_str = 'treemap' + _path_str = 'treemap.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.treemap.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.treemap.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.treemap.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.treemap.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/treemap/_marker.py b/packages/python/plotly/plotly/graph_objs/treemap/_marker.py index cf89025eb15..125221d584a 100644 --- a/packages/python/plotly/plotly/graph_objs/treemap/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/treemap/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,27 +8,9 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "treemap" - _path_str = "treemap.marker" - _valid_props = { - "autocolorscale", - "cauto", - "cmax", - "cmid", - "cmin", - "coloraxis", - "colorbar", - "colors", - "colorscale", - "colorssrc", - "cornerradius", - "depthfade", - "line", - "pad", - "pattern", - "reversescale", - "showscale", - } + _parent_path_str = 'treemap' + _path_str = 'treemap.marker' + _valid_props = {"autocolorscale", "cauto", "cmax", "cmid", "cmin", "coloraxis", "colorbar", "colors", "colorscale", "colorssrc", "cornerradius", "depthfade", "line", "pad", "pattern", "reversescale", "showscale"} # autocolorscale # -------------- @@ -48,11 +32,11 @@ def autocolorscale(self): ------- bool """ - return self["autocolorscale"] + return self['autocolorscale'] @autocolorscale.setter def autocolorscale(self, val): - self["autocolorscale"] = val + self['autocolorscale'] = val # cauto # ----- @@ -72,11 +56,11 @@ def cauto(self): ------- bool """ - return self["cauto"] + return self['cauto'] @cauto.setter def cauto(self, val): - self["cauto"] = val + self['cauto'] = val # cmax # ---- @@ -94,11 +78,11 @@ def cmax(self): ------- int|float """ - return self["cmax"] + return self['cmax'] @cmax.setter def cmax(self, val): - self["cmax"] = val + self['cmax'] = val # cmid # ---- @@ -118,11 +102,11 @@ def cmid(self): ------- int|float """ - return self["cmid"] + return self['cmid'] @cmid.setter def cmid(self, val): - self["cmid"] = val + self['cmid'] = val # cmin # ---- @@ -140,11 +124,11 @@ def cmin(self): ------- int|float """ - return self["cmin"] + return self['cmin'] @cmin.setter def cmin(self, val): - self["cmin"] = val + self['cmin'] = val # coloraxis # --------- @@ -167,11 +151,11 @@ def coloraxis(self): ------- str """ - return self["coloraxis"] + return self['coloraxis'] @coloraxis.setter def coloraxis(self, val): - self["coloraxis"] = val + self['coloraxis'] = val # colorbar # -------- @@ -184,282 +168,15 @@ def colorbar(self): - A dict of string/value properties that will be passed to the ColorBar constructor - Supported dict properties: - - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.treemap - .marker.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.treemap.marker.colorbar.tickformatstopdefault - s), sets the default property values to use for - elements of - treemap.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.treemap.marker.col - orbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. - Returns ------- plotly.graph_objs.treemap.marker.ColorBar """ - return self["colorbar"] + return self['colorbar'] @colorbar.setter def colorbar(self, val): - self["colorbar"] = val + self['colorbar'] = val # colors # ------ @@ -476,11 +193,11 @@ def colors(self): ------- numpy.ndarray """ - return self["colors"] + return self['colors'] @colors.setter def colors(self, val): - self["colors"] = val + self['colors'] = val # colorscale # ---------- @@ -530,11 +247,11 @@ def colorscale(self): ------- str """ - return self["colorscale"] + return self['colorscale'] @colorscale.setter def colorscale(self, val): - self["colorscale"] = val + self['colorscale'] = val # colorssrc # --------- @@ -550,11 +267,11 @@ def colorssrc(self): ------- str """ - return self["colorssrc"] + return self['colorssrc'] @colorssrc.setter def colorssrc(self, val): - self["colorssrc"] = val + self['colorssrc'] = val # cornerradius # ------------ @@ -570,11 +287,11 @@ def cornerradius(self): ------- int|float """ - return self["cornerradius"] + return self['cornerradius'] @cornerradius.setter def cornerradius(self, val): - self["cornerradius"] = val + self['cornerradius'] = val # depthfade # --------- @@ -598,11 +315,11 @@ def depthfade(self): ------- Any """ - return self["depthfade"] + return self['depthfade'] @depthfade.setter def depthfade(self, val): - self["depthfade"] = val + self['depthfade'] = val # line # ---- @@ -615,30 +332,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the color of the line enclosing each - sector. Defaults to the `paper_bgcolor` value. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - width - Sets the width (in px) of the line enclosing - each sector. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. - Returns ------- plotly.graph_objs.treemap.marker.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # pad # --- @@ -651,26 +353,15 @@ def pad(self): - A dict of string/value properties that will be passed to the Pad constructor - Supported dict properties: - - b - Sets the padding form the bottom (in px). - l - Sets the padding form the left (in px). - r - Sets the padding form the right (in px). - t - Sets the padding form the top (in px). - Returns ------- plotly.graph_objs.treemap.marker.Pad """ - return self["pad"] + return self['pad'] @pad.setter def pad(self, val): - self["pad"] = val + self['pad'] = val # pattern # ------- @@ -685,66 +376,15 @@ def pattern(self): - A dict of string/value properties that will be passed to the Pattern constructor - Supported dict properties: - - bgcolor - When there is no colorscale sets the color of - background pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "overlay". Otherwise, defaults to a transparent - background. - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - fgcolor - When there is no colorscale sets the color of - foreground pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "replace". Otherwise, defaults to dark grey or - white to increase contrast with the `bgcolor`. - fgcolorsrc - Sets the source reference on Chart Studio Cloud - for `fgcolor`. - fgopacity - Sets the opacity of the foreground pattern - fill. Defaults to a 0.5 when `fillmode` is - "overlay". Otherwise, defaults to 1. - fillmode - Determines whether `marker.color` should be - used as a default to `bgcolor` or a `fgcolor`. - shape - Sets the shape of the pattern fill. By default, - no pattern is used for filling the area. - shapesrc - Sets the source reference on Chart Studio Cloud - for `shape`. - size - Sets the size of unit squares of the pattern - fill in pixels, which corresponds to the - interval of repetition of the pattern. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - solidity - Sets the solidity of the pattern fill. Solidity - is roughly the fraction of the area filled by - the pattern. Solidity of 0 shows only the - background color without pattern and solidty of - 1 shows only the foreground color without - pattern. - soliditysrc - Sets the source reference on Chart Studio Cloud - for `solidity`. - Returns ------- plotly.graph_objs.treemap.marker.Pattern """ - return self["pattern"] + return self['pattern'] @pattern.setter def pattern(self, val): - self["pattern"] = val + self['pattern'] = val # reversescale # ------------ @@ -763,11 +403,11 @@ def reversescale(self): ------- bool """ - return self["reversescale"] + return self['reversescale'] @reversescale.setter def reversescale(self, val): - self["reversescale"] = val + self['reversescale'] = val # showscale # --------- @@ -785,11 +425,11 @@ def showscale(self): ------- bool """ - return self["showscale"] + return self['showscale'] @showscale.setter def showscale(self, val): - self["showscale"] = val + self['showscale'] = val # Self properties description # --------------------------- @@ -890,29 +530,27 @@ def _prop_descriptions(self): this trace. Has an effect only if colors is set to a numerical array. """ - - def __init__( - self, - arg=None, - autocolorscale=None, - cauto=None, - cmax=None, - cmid=None, - cmin=None, - coloraxis=None, - colorbar=None, - colors=None, - colorscale=None, - colorssrc=None, - cornerradius=None, - depthfade=None, - line=None, - pad=None, - pattern=None, - reversescale=None, - showscale=None, - **kwargs, - ): + def __init__(self, + arg=None, + autocolorscale=None, + cauto=None, + cmax=None, + cmid=None, + cmin=None, + coloraxis=None, + colorbar=None, + colors=None, + colorscale=None, + colorssrc=None, + cornerradius=None, + depthfade=None, + line=None, + pad=None, + pattern=None, + reversescale=None, + showscale=None, + **kwargs + ): """ Construct a new Marker object @@ -1020,10 +658,10 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -1035,88 +673,36 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.treemap.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.treemap.Marker`""" - ) +an instance of :class:`plotly.graph_objs.treemap.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("autocolorscale", None) - _v = autocolorscale if autocolorscale is not None else _v - if _v is not None: - self["autocolorscale"] = _v - _v = arg.pop("cauto", None) - _v = cauto if cauto is not None else _v - if _v is not None: - self["cauto"] = _v - _v = arg.pop("cmax", None) - _v = cmax if cmax is not None else _v - if _v is not None: - self["cmax"] = _v - _v = arg.pop("cmid", None) - _v = cmid if cmid is not None else _v - if _v is not None: - self["cmid"] = _v - _v = arg.pop("cmin", None) - _v = cmin if cmin is not None else _v - if _v is not None: - self["cmin"] = _v - _v = arg.pop("coloraxis", None) - _v = coloraxis if coloraxis is not None else _v - if _v is not None: - self["coloraxis"] = _v - _v = arg.pop("colorbar", None) - _v = colorbar if colorbar is not None else _v - if _v is not None: - self["colorbar"] = _v - _v = arg.pop("colors", None) - _v = colors if colors is not None else _v - if _v is not None: - self["colors"] = _v - _v = arg.pop("colorscale", None) - _v = colorscale if colorscale is not None else _v - if _v is not None: - self["colorscale"] = _v - _v = arg.pop("colorssrc", None) - _v = colorssrc if colorssrc is not None else _v - if _v is not None: - self["colorssrc"] = _v - _v = arg.pop("cornerradius", None) - _v = cornerradius if cornerradius is not None else _v - if _v is not None: - self["cornerradius"] = _v - _v = arg.pop("depthfade", None) - _v = depthfade if depthfade is not None else _v - if _v is not None: - self["depthfade"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("pad", None) - _v = pad if pad is not None else _v - if _v is not None: - self["pad"] = _v - _v = arg.pop("pattern", None) - _v = pattern if pattern is not None else _v - if _v is not None: - self["pattern"] = _v - _v = arg.pop("reversescale", None) - _v = reversescale if reversescale is not None else _v - if _v is not None: - self["reversescale"] = _v - _v = arg.pop("showscale", None) - _v = showscale if showscale is not None else _v - if _v is not None: - self["showscale"] = _v + self._init_provided('autocolorscale', arg, autocolorscale) + self._init_provided('cauto', arg, cauto) + self._init_provided('cmax', arg, cmax) + self._init_provided('cmid', arg, cmid) + self._init_provided('cmin', arg, cmin) + self._init_provided('coloraxis', arg, coloraxis) + self._init_provided('colorbar', arg, colorbar) + self._init_provided('colors', arg, colors) + self._init_provided('colorscale', arg, colorscale) + self._init_provided('colorssrc', arg, colorssrc) + self._init_provided('cornerradius', arg, cornerradius) + self._init_provided('depthfade', arg, depthfade) + self._init_provided('line', arg, line) + self._init_provided('pad', arg, pad) + self._init_provided('pattern', arg, pattern) + self._init_provided('reversescale', arg, reversescale) + self._init_provided('showscale', arg, showscale) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/treemap/_outsidetextfont.py b/packages/python/plotly/plotly/graph_objs/treemap/_outsidetextfont.py index 835637951d6..badb383c1b1 100644 --- a/packages/python/plotly/plotly/graph_objs/treemap/_outsidetextfont.py +++ b/packages/python/plotly/plotly/graph_objs/treemap/_outsidetextfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Outsidetextfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "treemap" - _path_str = "treemap.outsidetextfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'treemap' + _path_str = 'treemap.outsidetextfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Outsidetextfont object @@ -643,10 +589,10 @@ def __init__( ------- Outsidetextfont """ - super(Outsidetextfont, self).__init__("outsidetextfont") + super(Outsidetextfont, self).__init__('outsidetextfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -658,92 +604,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.treemap.Outsidetextfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.treemap.Outsidetextfont`""" - ) +an instance of :class:`plotly.graph_objs.treemap.Outsidetextfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/treemap/_pathbar.py b/packages/python/plotly/plotly/graph_objs/treemap/_pathbar.py index 8cdf60c0be4..eaee1816f6d 100644 --- a/packages/python/plotly/plotly/graph_objs/treemap/_pathbar.py +++ b/packages/python/plotly/plotly/graph_objs/treemap/_pathbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Pathbar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "treemap" - _path_str = "treemap.pathbar" + _parent_path_str = 'treemap' + _path_str = 'treemap.pathbar' _valid_props = {"edgeshape", "side", "textfont", "thickness", "visible"} # edgeshape @@ -26,11 +28,11 @@ def edgeshape(self): ------- Any """ - return self["edgeshape"] + return self['edgeshape'] @edgeshape.setter def edgeshape(self, val): - self["edgeshape"] = val + self['edgeshape'] = val # side # ---- @@ -48,11 +50,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # textfont # -------- @@ -67,88 +69,15 @@ def textfont(self): - A dict of string/value properties that will be passed to the Textfont constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.treemap.pathbar.Textfont """ - return self["textfont"] + return self['textfont'] @textfont.setter def textfont(self, val): - self["textfont"] = val + self['textfont'] = val # thickness # --------- @@ -166,11 +95,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # visible # ------- @@ -187,11 +116,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # Self properties description # --------------------------- @@ -214,17 +143,15 @@ def _prop_descriptions(self): Determines if the path bar is drawn i.e. outside the trace `domain` and with one pixel gap. """ - - def __init__( - self, - arg=None, - edgeshape=None, - side=None, - textfont=None, - thickness=None, - visible=None, - **kwargs, - ): + def __init__(self, + arg=None, + edgeshape=None, + side=None, + textfont=None, + thickness=None, + visible=None, + **kwargs + ): """ Construct a new Pathbar object @@ -254,10 +181,10 @@ def __init__( ------- Pathbar """ - super(Pathbar, self).__init__("pathbar") + super(Pathbar, self).__init__('pathbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -269,40 +196,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.treemap.Pathbar constructor must be a dict or -an instance of :class:`plotly.graph_objs.treemap.Pathbar`""" - ) +an instance of :class:`plotly.graph_objs.treemap.Pathbar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("edgeshape", None) - _v = edgeshape if edgeshape is not None else _v - if _v is not None: - self["edgeshape"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("textfont", None) - _v = textfont if textfont is not None else _v - if _v is not None: - self["textfont"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('edgeshape', arg, edgeshape) + self._init_provided('side', arg, side) + self._init_provided('textfont', arg, textfont) + self._init_provided('thickness', arg, thickness) + self._init_provided('visible', arg, visible) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/treemap/_root.py b/packages/python/plotly/plotly/graph_objs/treemap/_root.py index 19fb073608e..279b7dd9256 100644 --- a/packages/python/plotly/plotly/graph_objs/treemap/_root.py +++ b/packages/python/plotly/plotly/graph_objs/treemap/_root.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Root(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "treemap" - _path_str = "treemap.root" + _parent_path_str = 'treemap' + _path_str = 'treemap.root' _valid_props = {"color"} # color @@ -24,52 +26,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # Self properties description # --------------------------- @@ -81,8 +48,11 @@ def _prop_descriptions(self): sunburst/treemap/icicle trace. this has no effect when a colorscale is used to set the markers. """ - - def __init__(self, arg=None, color=None, **kwargs): + def __init__(self, + arg=None, + color=None, + **kwargs + ): """ Construct a new Root object @@ -100,10 +70,10 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Root """ - super(Root, self).__init__("root") + super(Root, self).__init__('root') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -115,24 +85,20 @@ def __init__(self, arg=None, color=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.treemap.Root constructor must be a dict or -an instance of :class:`plotly.graph_objs.treemap.Root`""" - ) +an instance of :class:`plotly.graph_objs.treemap.Root`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v + self._init_provided('color', arg, color) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/treemap/_stream.py b/packages/python/plotly/plotly/graph_objs/treemap/_stream.py index 8f1c320912a..225a5a18b2a 100644 --- a/packages/python/plotly/plotly/graph_objs/treemap/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/treemap/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "treemap" - _path_str = "treemap.stream" + _parent_path_str = 'treemap' + _path_str = 'treemap.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.treemap.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.treemap.Stream`""" - ) +an instance of :class:`plotly.graph_objs.treemap.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/treemap/_textfont.py b/packages/python/plotly/plotly/graph_objs/treemap/_textfont.py index 9e1aabaa353..80a07d8d74b 100644 --- a/packages/python/plotly/plotly/graph_objs/treemap/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/treemap/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "treemap" - _path_str = "treemap.textfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'treemap' + _path_str = 'treemap.textfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Textfont object @@ -639,10 +585,10 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.treemap.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.treemap.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.treemap.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/treemap/_tiling.py b/packages/python/plotly/plotly/graph_objs/treemap/_tiling.py index b892e7bdec8..46e76ffd8de 100644 --- a/packages/python/plotly/plotly/graph_objs/treemap/_tiling.py +++ b/packages/python/plotly/plotly/graph_objs/treemap/_tiling.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tiling(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "treemap" - _path_str = "treemap.tiling" + _parent_path_str = 'treemap' + _path_str = 'treemap.tiling' _valid_props = {"flip", "packing", "pad", "squarifyratio"} # flip @@ -27,11 +29,11 @@ def flip(self): ------- Any """ - return self["flip"] + return self['flip'] @flip.setter def flip(self, val): - self["flip"] = val + self['flip'] = val # packing # ------- @@ -50,11 +52,11 @@ def packing(self): ------- Any """ - return self["packing"] + return self['packing'] @packing.setter def packing(self, val): - self["packing"] = val + self['packing'] = val # pad # --- @@ -70,11 +72,11 @@ def pad(self): ------- int|float """ - return self["pad"] + return self['pad'] @pad.setter def pad(self, val): - self["pad"] = val + self['pad'] = val # squarifyratio # ------------- @@ -101,11 +103,11 @@ def squarifyratio(self): ------- int|float """ - return self["squarifyratio"] + return self['squarifyratio'] @squarifyratio.setter def squarifyratio(self, val): - self["squarifyratio"] = val + self['squarifyratio'] = val # Self properties description # --------------------------- @@ -136,10 +138,14 @@ def _prop_descriptions(self): i.e. 1.618034, Plotly applies 1 to increase squares in treemap layouts. """ - - def __init__( - self, arg=None, flip=None, packing=None, pad=None, squarifyratio=None, **kwargs - ): + def __init__(self, + arg=None, + flip=None, + packing=None, + pad=None, + squarifyratio=None, + **kwargs + ): """ Construct a new Tiling object @@ -177,10 +183,10 @@ def __init__( ------- Tiling """ - super(Tiling, self).__init__("tiling") + super(Tiling, self).__init__('tiling') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -192,36 +198,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.treemap.Tiling constructor must be a dict or -an instance of :class:`plotly.graph_objs.treemap.Tiling`""" - ) +an instance of :class:`plotly.graph_objs.treemap.Tiling`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("flip", None) - _v = flip if flip is not None else _v - if _v is not None: - self["flip"] = _v - _v = arg.pop("packing", None) - _v = packing if packing is not None else _v - if _v is not None: - self["packing"] = _v - _v = arg.pop("pad", None) - _v = pad if pad is not None else _v - if _v is not None: - self["pad"] = _v - _v = arg.pop("squarifyratio", None) - _v = squarifyratio if squarifyratio is not None else _v - if _v is not None: - self["squarifyratio"] = _v + self._init_provided('flip', arg, flip) + self._init_provided('packing', arg, packing) + self._init_provided('pad', arg, pad) + self._init_provided('squarifyratio', arg, squarifyratio) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/treemap/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/treemap/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/treemap/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/treemap/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/treemap/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/treemap/hoverlabel/_font.py index ca452284ed0..e624bc71e07 100644 --- a/packages/python/plotly/plotly/graph_objs/treemap/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/treemap/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "treemap.hoverlabel" - _path_str = "treemap.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'treemap.hoverlabel' + _path_str = 'treemap.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.treemap.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.treemap.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.treemap.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/treemap/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/treemap/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/treemap/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/treemap/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/treemap/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/treemap/legendgrouptitle/_font.py index ff4b1beca02..de08ea1e699 100644 --- a/packages/python/plotly/plotly/graph_objs/treemap/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/treemap/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "treemap.legendgrouptitle" - _path_str = "treemap.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'treemap.legendgrouptitle' + _path_str = 'treemap.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.treemap.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.treemap.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.treemap.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/treemap/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/treemap/marker/__init__.py index a8a98bb5ff6..3b7e07213e2 100644 --- a/packages/python/plotly/plotly/graph_objs/treemap/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/treemap/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorbar import ColorBar from ._line import Line @@ -9,9 +8,10 @@ from . import colorbar else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".colorbar"], - ["._colorbar.ColorBar", "._line.Line", "._pad.Pad", "._pattern.Pattern"], + ['.colorbar'], + ['._colorbar.ColorBar', '._line.Line', '._pad.Pad', '._pattern.Pattern'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/treemap/marker/_colorbar.py b/packages/python/plotly/plotly/graph_objs/treemap/marker/_colorbar.py index 14184370a38..3915dc5014e 100644 --- a/packages/python/plotly/plotly/graph_objs/treemap/marker/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/treemap/marker/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "treemap.marker" - _path_str = "treemap.marker.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'treemap.marker' + _path_str = 'treemap.marker.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.treemap.marker.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.treemap.marker.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.treemap.marker.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.treemap.marker.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.treemap.marker.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.treemap.marker.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.treemap.marker.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/treemap/marker/_line.py b/packages/python/plotly/plotly/graph_objs/treemap/marker/_line.py index 10d261ee159..5aadf09f68b 100644 --- a/packages/python/plotly/plotly/graph_objs/treemap/marker/_line.py +++ b/packages/python/plotly/plotly/graph_objs/treemap/marker/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "treemap.marker" - _path_str = "treemap.marker.line" + _parent_path_str = 'treemap.marker' + _path_str = 'treemap.marker.line' _valid_props = {"color", "colorsrc", "width", "widthsrc"} # color @@ -23,53 +25,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -85,11 +52,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # width # ----- @@ -106,11 +73,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # widthsrc # -------- @@ -126,11 +93,11 @@ def widthsrc(self): ------- str """ - return self["widthsrc"] + return self['widthsrc'] @widthsrc.setter def widthsrc(self, val): - self["widthsrc"] = val + self['widthsrc'] = val # Self properties description # --------------------------- @@ -150,10 +117,14 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `width`. """ - - def __init__( - self, arg=None, color=None, colorsrc=None, width=None, widthsrc=None, **kwargs - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + width=None, + widthsrc=None, + **kwargs + ): """ Construct a new Line object @@ -180,10 +151,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -195,36 +166,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.treemap.marker.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.treemap.marker.Line`""" - ) +an instance of :class:`plotly.graph_objs.treemap.marker.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v - _v = arg.pop("widthsrc", None) - _v = widthsrc if widthsrc is not None else _v - if _v is not None: - self["widthsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('width', arg, width) + self._init_provided('widthsrc', arg, widthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/treemap/marker/_pad.py b/packages/python/plotly/plotly/graph_objs/treemap/marker/_pad.py index 33e35a2cb60..63bc27c3456 100644 --- a/packages/python/plotly/plotly/graph_objs/treemap/marker/_pad.py +++ b/packages/python/plotly/plotly/graph_objs/treemap/marker/_pad.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Pad(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "treemap.marker" - _path_str = "treemap.marker.pad" + _parent_path_str = 'treemap.marker' + _path_str = 'treemap.marker.pad' _valid_props = {"b", "l", "r", "t"} # b @@ -24,11 +26,11 @@ def b(self): ------- int|float """ - return self["b"] + return self['b'] @b.setter def b(self, val): - self["b"] = val + self['b'] = val # l # - @@ -44,11 +46,11 @@ def l(self): ------- int|float """ - return self["l"] + return self['l'] @l.setter def l(self, val): - self["l"] = val + self['l'] = val # r # - @@ -64,11 +66,11 @@ def r(self): ------- int|float """ - return self["r"] + return self['r'] @r.setter def r(self, val): - self["r"] = val + self['r'] = val # t # - @@ -84,11 +86,11 @@ def t(self): ------- int|float """ - return self["t"] + return self['t'] @t.setter def t(self, val): - self["t"] = val + self['t'] = val # Self properties description # --------------------------- @@ -104,8 +106,14 @@ def _prop_descriptions(self): t Sets the padding form the top (in px). """ - - def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs): + def __init__(self, + arg=None, + b=None, + l=None, + r=None, + t=None, + **kwargs + ): """ Construct a new Pad object @@ -128,10 +136,10 @@ def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs): ------- Pad """ - super(Pad, self).__init__("pad") + super(Pad, self).__init__('pad') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -143,36 +151,23 @@ def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.treemap.marker.Pad constructor must be a dict or -an instance of :class:`plotly.graph_objs.treemap.marker.Pad`""" - ) +an instance of :class:`plotly.graph_objs.treemap.marker.Pad`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("b", None) - _v = b if b is not None else _v - if _v is not None: - self["b"] = _v - _v = arg.pop("l", None) - _v = l if l is not None else _v - if _v is not None: - self["l"] = _v - _v = arg.pop("r", None) - _v = r if r is not None else _v - if _v is not None: - self["r"] = _v - _v = arg.pop("t", None) - _v = t if t is not None else _v - if _v is not None: - self["t"] = _v + self._init_provided('b', arg, b) + self._init_provided('l', arg, l) + self._init_provided('r', arg, r) + self._init_provided('t', arg, t) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/treemap/marker/_pattern.py b/packages/python/plotly/plotly/graph_objs/treemap/marker/_pattern.py index a5f40d53878..f648a6c9bf1 100644 --- a/packages/python/plotly/plotly/graph_objs/treemap/marker/_pattern.py +++ b/packages/python/plotly/plotly/graph_objs/treemap/marker/_pattern.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,22 +8,9 @@ class Pattern(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "treemap.marker" - _path_str = "treemap.marker.pattern" - _valid_props = { - "bgcolor", - "bgcolorsrc", - "fgcolor", - "fgcolorsrc", - "fgopacity", - "fillmode", - "shape", - "shapesrc", - "size", - "sizesrc", - "solidity", - "soliditysrc", - } + _parent_path_str = 'treemap.marker' + _path_str = 'treemap.marker.pattern' + _valid_props = {"bgcolor", "bgcolorsrc", "fgcolor", "fgcolorsrc", "fgopacity", "fillmode", "shape", "shapesrc", "size", "sizesrc", "solidity", "soliditysrc"} # bgcolor # ------- @@ -38,53 +27,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -100,11 +54,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # fgcolor # ------- @@ -121,53 +75,18 @@ def fgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["fgcolor"] + return self['fgcolor'] @fgcolor.setter def fgcolor(self, val): - self["fgcolor"] = val + self['fgcolor'] = val # fgcolorsrc # ---------- @@ -183,11 +102,11 @@ def fgcolorsrc(self): ------- str """ - return self["fgcolorsrc"] + return self['fgcolorsrc'] @fgcolorsrc.setter def fgcolorsrc(self, val): - self["fgcolorsrc"] = val + self['fgcolorsrc'] = val # fgopacity # --------- @@ -204,11 +123,11 @@ def fgopacity(self): ------- int|float """ - return self["fgopacity"] + return self['fgopacity'] @fgopacity.setter def fgopacity(self, val): - self["fgopacity"] = val + self['fgopacity'] = val # fillmode # -------- @@ -226,11 +145,11 @@ def fillmode(self): ------- Any """ - return self["fillmode"] + return self['fillmode'] @fillmode.setter def fillmode(self, val): - self["fillmode"] = val + self['fillmode'] = val # shape # ----- @@ -249,11 +168,11 @@ def shape(self): ------- Any|numpy.ndarray """ - return self["shape"] + return self['shape'] @shape.setter def shape(self, val): - self["shape"] = val + self['shape'] = val # shapesrc # -------- @@ -269,11 +188,11 @@ def shapesrc(self): ------- str """ - return self["shapesrc"] + return self['shapesrc'] @shapesrc.setter def shapesrc(self, val): - self["shapesrc"] = val + self['shapesrc'] = val # size # ---- @@ -291,11 +210,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -311,11 +230,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # solidity # -------- @@ -335,11 +254,11 @@ def solidity(self): ------- int|float|numpy.ndarray """ - return self["solidity"] + return self['solidity'] @solidity.setter def solidity(self, val): - self["solidity"] = val + self['solidity'] = val # soliditysrc # ----------- @@ -355,11 +274,11 @@ def soliditysrc(self): ------- str """ - return self["soliditysrc"] + return self['soliditysrc'] @soliditysrc.setter def soliditysrc(self, val): - self["soliditysrc"] = val + self['soliditysrc'] = val # Self properties description # --------------------------- @@ -413,24 +332,22 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `solidity`. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bgcolorsrc=None, - fgcolor=None, - fgcolorsrc=None, - fgopacity=None, - fillmode=None, - shape=None, - shapesrc=None, - size=None, - sizesrc=None, - solidity=None, - soliditysrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bgcolorsrc=None, + fgcolor=None, + fgcolorsrc=None, + fgopacity=None, + fillmode=None, + shape=None, + shapesrc=None, + size=None, + sizesrc=None, + solidity=None, + soliditysrc=None, + **kwargs + ): """ Construct a new Pattern object @@ -493,10 +410,10 @@ def __init__( ------- Pattern """ - super(Pattern, self).__init__("pattern") + super(Pattern, self).__init__('pattern') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -508,68 +425,31 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.treemap.marker.Pattern constructor must be a dict or -an instance of :class:`plotly.graph_objs.treemap.marker.Pattern`""" - ) +an instance of :class:`plotly.graph_objs.treemap.marker.Pattern`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("fgcolor", None) - _v = fgcolor if fgcolor is not None else _v - if _v is not None: - self["fgcolor"] = _v - _v = arg.pop("fgcolorsrc", None) - _v = fgcolorsrc if fgcolorsrc is not None else _v - if _v is not None: - self["fgcolorsrc"] = _v - _v = arg.pop("fgopacity", None) - _v = fgopacity if fgopacity is not None else _v - if _v is not None: - self["fgopacity"] = _v - _v = arg.pop("fillmode", None) - _v = fillmode if fillmode is not None else _v - if _v is not None: - self["fillmode"] = _v - _v = arg.pop("shape", None) - _v = shape if shape is not None else _v - if _v is not None: - self["shape"] = _v - _v = arg.pop("shapesrc", None) - _v = shapesrc if shapesrc is not None else _v - if _v is not None: - self["shapesrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("solidity", None) - _v = solidity if solidity is not None else _v - if _v is not None: - self["solidity"] = _v - _v = arg.pop("soliditysrc", None) - _v = soliditysrc if soliditysrc is not None else _v - if _v is not None: - self["soliditysrc"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('fgcolor', arg, fgcolor) + self._init_provided('fgcolorsrc', arg, fgcolorsrc) + self._init_provided('fgopacity', arg, fgopacity) + self._init_provided('fillmode', arg, fillmode) + self._init_provided('shape', arg, shape) + self._init_provided('shapesrc', arg, shapesrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('solidity', arg, solidity) + self._init_provided('soliditysrc', arg, soliditysrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/treemap/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/treemap/marker/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/treemap/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/treemap/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/treemap/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/treemap/marker/colorbar/_tickfont.py index 6c79bda5d44..64f58c0bfe4 100644 --- a/packages/python/plotly/plotly/graph_objs/treemap/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/treemap/marker/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "treemap.marker.colorbar" - _path_str = "treemap.marker.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'treemap.marker.colorbar' + _path_str = 'treemap.marker.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.treemap.marker.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.treemap.marker.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.treemap.marker.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/treemap/marker/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/treemap/marker/colorbar/_tickformatstop.py index fa3754e45da..87090303b1d 100644 --- a/packages/python/plotly/plotly/graph_objs/treemap/marker/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/treemap/marker/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "treemap.marker.colorbar" - _path_str = "treemap.marker.colorbar.tickformatstop" + _parent_path_str = 'treemap.marker.colorbar' + _path_str = 'treemap.marker.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.treemap.marker.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.treemap.marker.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.treemap.marker.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/treemap/marker/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/treemap/marker/colorbar/_title.py index 98cc61b0050..d272cfb60a8 100644 --- a/packages/python/plotly/plotly/graph_objs/treemap/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/treemap/marker/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "treemap.marker.colorbar" - _path_str = "treemap.marker.colorbar.title" + _parent_path_str = 'treemap.marker.colorbar' + _path_str = 'treemap.marker.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.treemap.marker.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.treemap.marker.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.treemap.marker.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.treemap.marker.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/treemap/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/treemap/marker/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/treemap/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/treemap/marker/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/treemap/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/treemap/marker/colorbar/title/_font.py index 77ed3544d4e..60b268c84a5 100644 --- a/packages/python/plotly/plotly/graph_objs/treemap/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/treemap/marker/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "treemap.marker.colorbar.title" - _path_str = "treemap.marker.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'treemap.marker.colorbar.title' + _path_str = 'treemap.marker.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.treemap.marker.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.treemap.marker.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.treemap.marker.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/treemap/pathbar/__init__.py b/packages/python/plotly/plotly/graph_objs/treemap/pathbar/__init__.py index 1640397aa7f..60a2c197f7c 100644 --- a/packages/python/plotly/plotly/graph_objs/treemap/pathbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/treemap/pathbar/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._textfont import Textfont else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._textfont.Textfont"] + __name__, + [], + ['._textfont.Textfont'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/treemap/pathbar/_textfont.py b/packages/python/plotly/plotly/graph_objs/treemap/pathbar/_textfont.py index 9695927e46a..8c33d63fe55 100644 --- a/packages/python/plotly/plotly/graph_objs/treemap/pathbar/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/treemap/pathbar/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "treemap.pathbar" - _path_str = "treemap.pathbar.textfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'treemap.pathbar' + _path_str = 'treemap.pathbar.textfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Textfont object @@ -639,10 +585,10 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.treemap.pathbar.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.treemap.pathbar.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.treemap.pathbar.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/violin/__init__.py b/packages/python/plotly/plotly/graph_objs/violin/__init__.py index e172bcbf7dd..d0619fcd273 100644 --- a/packages/python/plotly/plotly/graph_objs/violin/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/violin/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._box import Box from ._hoverlabel import Hoverlabel @@ -19,26 +18,10 @@ from . import unselected else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [ - ".box", - ".hoverlabel", - ".legendgrouptitle", - ".marker", - ".selected", - ".unselected", - ], - [ - "._box.Box", - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._line.Line", - "._marker.Marker", - "._meanline.Meanline", - "._selected.Selected", - "._stream.Stream", - "._unselected.Unselected", - ], + ['.box', '.hoverlabel', '.legendgrouptitle', '.marker', '.selected', '.unselected'], + ['._box.Box', '._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._line.Line', '._marker.Marker', '._meanline.Meanline', '._selected.Selected', '._stream.Stream', '._unselected.Unselected'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/violin/_box.py b/packages/python/plotly/plotly/graph_objs/violin/_box.py index 5b343e830e7..5db17f5adf3 100644 --- a/packages/python/plotly/plotly/graph_objs/violin/_box.py +++ b/packages/python/plotly/plotly/graph_objs/violin/_box.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Box(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "violin" - _path_str = "violin.box" + _parent_path_str = 'violin' + _path_str = 'violin.box' _valid_props = {"fillcolor", "line", "visible", "width"} # fillcolor @@ -22,52 +24,17 @@ def fillcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["fillcolor"] + return self['fillcolor'] @fillcolor.setter def fillcolor(self, val): - self["fillcolor"] = val + self['fillcolor'] = val # line # ---- @@ -80,22 +47,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the inner box plot bounding line color. - width - Sets the inner box plot bounding line width. - Returns ------- plotly.graph_objs.violin.box.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # visible # ------- @@ -112,11 +72,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # width # ----- @@ -134,11 +94,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -158,10 +118,14 @@ def _prop_descriptions(self): violins' width. For example, with 1, the inner box plots are as wide as the violins. """ - - def __init__( - self, arg=None, fillcolor=None, line=None, visible=None, width=None, **kwargs - ): + def __init__(self, + arg=None, + fillcolor=None, + line=None, + visible=None, + width=None, + **kwargs + ): """ Construct a new Box object @@ -187,10 +151,10 @@ def __init__( ------- Box """ - super(Box, self).__init__("box") + super(Box, self).__init__('box') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -202,36 +166,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.violin.Box constructor must be a dict or -an instance of :class:`plotly.graph_objs.violin.Box`""" - ) +an instance of :class:`plotly.graph_objs.violin.Box`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("fillcolor", None) - _v = fillcolor if fillcolor is not None else _v - if _v is not None: - self["fillcolor"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('fillcolor', arg, fillcolor) + self._init_provided('line', arg, line) + self._init_provided('visible', arg, visible) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/violin/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/violin/_hoverlabel.py index 9577b2e5193..f86ac1ded55 100644 --- a/packages/python/plotly/plotly/graph_objs/violin/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/violin/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "violin" - _path_str = "violin.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'violin' + _path_str = 'violin.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.violin.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.violin.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.violin.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.violin.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/violin/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/violin/_legendgrouptitle.py index 422d55b6069..b5ac1876807 100644 --- a/packages/python/plotly/plotly/graph_objs/violin/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/violin/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "violin" - _path_str = "violin.legendgrouptitle" + _parent_path_str = 'violin' + _path_str = 'violin.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.violin.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.violin.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.violin.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.violin.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/violin/_line.py b/packages/python/plotly/plotly/graph_objs/violin/_line.py index b345e21426e..51c2eb9b47e 100644 --- a/packages/python/plotly/plotly/graph_objs/violin/_line.py +++ b/packages/python/plotly/plotly/graph_objs/violin/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "violin" - _path_str = "violin.line" + _parent_path_str = 'violin' + _path_str = 'violin.line' _valid_props = {"color", "width"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # width # ----- @@ -83,11 +50,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -99,8 +66,12 @@ def _prop_descriptions(self): width Sets the width (in px) of line bounding the violin(s). """ - - def __init__(self, arg=None, color=None, width=None, **kwargs): + def __init__(self, + arg=None, + color=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -118,10 +89,10 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -133,28 +104,21 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.violin.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.violin.Line`""" - ) +an instance of :class:`plotly.graph_objs.violin.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/violin/_marker.py b/packages/python/plotly/plotly/graph_objs/violin/_marker.py index 6cc91d17846..ef1d3ffcf64 100644 --- a/packages/python/plotly/plotly/graph_objs/violin/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/violin/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,17 +8,9 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "violin" - _path_str = "violin.marker" - _valid_props = { - "angle", - "color", - "line", - "opacity", - "outliercolor", - "size", - "symbol", - } + _parent_path_str = 'violin' + _path_str = 'violin.marker' + _valid_props = {"angle", "color", "line", "opacity", "outliercolor", "size", "symbol"} # angle # ----- @@ -34,11 +28,11 @@ def angle(self): ------- int|float """ - return self["angle"] + return self['angle'] @angle.setter def angle(self, val): - self["angle"] = val + self['angle'] = val # color # ----- @@ -55,52 +49,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # line # ---- @@ -113,34 +72,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - outliercolor - Sets the border line color of the outlier - sample points. Defaults to marker.color - outlierwidth - Sets the border line width (in px) of the - outlier sample points. - width - Sets the width (in px) of the lines bounding - the marker points. - Returns ------- plotly.graph_objs.violin.marker.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # opacity # ------- @@ -156,11 +96,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # outliercolor # ------------ @@ -174,52 +114,17 @@ def outliercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outliercolor"] + return self['outliercolor'] @outliercolor.setter def outliercolor(self, val): - self["outliercolor"] = val + self['outliercolor'] = val # size # ---- @@ -235,11 +140,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # symbol # ------ @@ -347,11 +252,11 @@ def symbol(self): ------- Any """ - return self["symbol"] + return self['symbol'] @symbol.setter def symbol(self, val): - self["symbol"] = val + self['symbol'] = val # Self properties description # --------------------------- @@ -382,19 +287,17 @@ def _prop_descriptions(self): 300 is equivalent to appending "-open-dot" or "dot- open" to a symbol name. """ - - def __init__( - self, - arg=None, - angle=None, - color=None, - line=None, - opacity=None, - outliercolor=None, - size=None, - symbol=None, - **kwargs, - ): + def __init__(self, + arg=None, + angle=None, + color=None, + line=None, + opacity=None, + outliercolor=None, + size=None, + symbol=None, + **kwargs + ): """ Construct a new Marker object @@ -431,10 +334,10 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -446,48 +349,26 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.violin.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.violin.Marker`""" - ) +an instance of :class:`plotly.graph_objs.violin.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("angle", None) - _v = angle if angle is not None else _v - if _v is not None: - self["angle"] = _v - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("outliercolor", None) - _v = outliercolor if outliercolor is not None else _v - if _v is not None: - self["outliercolor"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("symbol", None) - _v = symbol if symbol is not None else _v - if _v is not None: - self["symbol"] = _v + self._init_provided('angle', arg, angle) + self._init_provided('color', arg, color) + self._init_provided('line', arg, line) + self._init_provided('opacity', arg, opacity) + self._init_provided('outliercolor', arg, outliercolor) + self._init_provided('size', arg, size) + self._init_provided('symbol', arg, symbol) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/violin/_meanline.py b/packages/python/plotly/plotly/graph_objs/violin/_meanline.py index a01a203c037..ada4cebec51 100644 --- a/packages/python/plotly/plotly/graph_objs/violin/_meanline.py +++ b/packages/python/plotly/plotly/graph_objs/violin/_meanline.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Meanline(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "violin" - _path_str = "violin.meanline" + _parent_path_str = 'violin' + _path_str = 'violin.meanline' _valid_props = {"color", "visible", "width"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # visible # ------- @@ -86,11 +53,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # width # ----- @@ -106,11 +73,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -128,8 +95,13 @@ def _prop_descriptions(self): width Sets the mean line width. """ - - def __init__(self, arg=None, color=None, visible=None, width=None, **kwargs): + def __init__(self, + arg=None, + color=None, + visible=None, + width=None, + **kwargs + ): """ Construct a new Meanline object @@ -154,10 +126,10 @@ def __init__(self, arg=None, color=None, visible=None, width=None, **kwargs): ------- Meanline """ - super(Meanline, self).__init__("meanline") + super(Meanline, self).__init__('meanline') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -169,32 +141,22 @@ def __init__(self, arg=None, color=None, visible=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.violin.Meanline constructor must be a dict or -an instance of :class:`plotly.graph_objs.violin.Meanline`""" - ) +an instance of :class:`plotly.graph_objs.violin.Meanline`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('visible', arg, visible) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/violin/_selected.py b/packages/python/plotly/plotly/graph_objs/violin/_selected.py index 5af0f9da161..2653a22538f 100644 --- a/packages/python/plotly/plotly/graph_objs/violin/_selected.py +++ b/packages/python/plotly/plotly/graph_objs/violin/_selected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Selected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "violin" - _path_str = "violin.selected" + _parent_path_str = 'violin' + _path_str = 'violin.selected' _valid_props = {"marker"} # marker @@ -21,24 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. - size - Sets the marker size of selected points. - Returns ------- plotly.graph_objs.violin.selected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # Self properties description # --------------------------- @@ -49,8 +42,11 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.violin.selected.Marker` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + **kwargs + ): """ Construct a new Selected object @@ -68,10 +64,10 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") + super(Selected, self).__init__('selected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -83,24 +79,20 @@ def __init__(self, arg=None, marker=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.violin.Selected constructor must be a dict or -an instance of :class:`plotly.graph_objs.violin.Selected`""" - ) +an instance of :class:`plotly.graph_objs.violin.Selected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v + self._init_provided('marker', arg, marker) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/violin/_stream.py b/packages/python/plotly/plotly/graph_objs/violin/_stream.py index 1650d9e04ae..0eb6eecf56f 100644 --- a/packages/python/plotly/plotly/graph_objs/violin/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/violin/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "violin" - _path_str = "violin.stream" + _parent_path_str = 'violin' + _path_str = 'violin.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -93,10 +99,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -108,28 +114,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.violin.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.violin.Stream`""" - ) +an instance of :class:`plotly.graph_objs.violin.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/violin/_unselected.py b/packages/python/plotly/plotly/graph_objs/violin/_unselected.py index b2bbee1581a..42317dfa8be 100644 --- a/packages/python/plotly/plotly/graph_objs/violin/_unselected.py +++ b/packages/python/plotly/plotly/graph_objs/violin/_unselected.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Unselected(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "violin" - _path_str = "violin.unselected" + _parent_path_str = 'violin' + _path_str = 'violin.unselected' _valid_props = {"marker"} # marker @@ -21,27 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - size - Sets the marker size of unselected points, - applied only when a selection exists. - Returns ------- plotly.graph_objs.violin.unselected.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # Self properties description # --------------------------- @@ -52,8 +42,11 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.violin.unselected.Marker` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + **kwargs + ): """ Construct a new Unselected object @@ -71,10 +64,10 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") + super(Unselected, self).__init__('unselected') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -86,24 +79,20 @@ def __init__(self, arg=None, marker=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.violin.Unselected constructor must be a dict or -an instance of :class:`plotly.graph_objs.violin.Unselected`""" - ) +an instance of :class:`plotly.graph_objs.violin.Unselected`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v + self._init_provided('marker', arg, marker) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/violin/box/__init__.py b/packages/python/plotly/plotly/graph_objs/violin/box/__init__.py index 8722c15a2b8..a745ef6458a 100644 --- a/packages/python/plotly/plotly/graph_objs/violin/box/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/violin/box/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import Line else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._line.Line'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._line.Line"]) diff --git a/packages/python/plotly/plotly/graph_objs/violin/box/_line.py b/packages/python/plotly/plotly/graph_objs/violin/box/_line.py index 82009a329ef..c4458a108f3 100644 --- a/packages/python/plotly/plotly/graph_objs/violin/box/_line.py +++ b/packages/python/plotly/plotly/graph_objs/violin/box/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "violin.box" - _path_str = "violin.box.line" + _parent_path_str = 'violin.box' + _path_str = 'violin.box.line' _valid_props = {"color", "width"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # width # ----- @@ -83,11 +50,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -99,8 +66,12 @@ def _prop_descriptions(self): width Sets the inner box plot bounding line width. """ - - def __init__(self, arg=None, color=None, width=None, **kwargs): + def __init__(self, + arg=None, + color=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -119,10 +90,10 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -134,28 +105,21 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.violin.box.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.violin.box.Line`""" - ) +an instance of :class:`plotly.graph_objs.violin.box.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/violin/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/violin/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/violin/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/violin/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/violin/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/violin/hoverlabel/_font.py index 57c2ce2323d..5b31381539e 100644 --- a/packages/python/plotly/plotly/graph_objs/violin/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/violin/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "violin.hoverlabel" - _path_str = "violin.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'violin.hoverlabel' + _path_str = 'violin.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.violin.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.violin.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.violin.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/violin/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/violin/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/violin/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/violin/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/violin/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/violin/legendgrouptitle/_font.py index a29afec5011..15d17daf452 100644 --- a/packages/python/plotly/plotly/graph_objs/violin/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/violin/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "violin.legendgrouptitle" - _path_str = "violin.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'violin.legendgrouptitle' + _path_str = 'violin.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.violin.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.violin.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.violin.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/violin/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/violin/marker/__init__.py index 8722c15a2b8..a745ef6458a 100644 --- a/packages/python/plotly/plotly/graph_objs/violin/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/violin/marker/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import Line else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._line.Line'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._line.Line"]) diff --git a/packages/python/plotly/plotly/graph_objs/violin/marker/_line.py b/packages/python/plotly/plotly/graph_objs/violin/marker/_line.py index 1b5ca38df24..5265b139a78 100644 --- a/packages/python/plotly/plotly/graph_objs/violin/marker/_line.py +++ b/packages/python/plotly/plotly/graph_objs/violin/marker/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "violin.marker" - _path_str = "violin.marker.line" + _parent_path_str = 'violin.marker' + _path_str = 'violin.marker.line' _valid_props = {"color", "outliercolor", "outlierwidth", "width"} # color @@ -25,52 +27,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # outliercolor # ------------ @@ -85,52 +52,17 @@ def outliercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outliercolor"] + return self['outliercolor'] @outliercolor.setter def outliercolor(self, val): - self["outliercolor"] = val + self['outliercolor'] = val # outlierwidth # ------------ @@ -147,11 +79,11 @@ def outlierwidth(self): ------- int|float """ - return self["outlierwidth"] + return self['outlierwidth'] @outlierwidth.setter def outlierwidth(self, val): - self["outlierwidth"] = val + self['outlierwidth'] = val # width # ----- @@ -167,11 +99,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -194,16 +126,14 @@ def _prop_descriptions(self): Sets the width (in px) of the lines bounding the marker points. """ - - def __init__( - self, - arg=None, - color=None, - outliercolor=None, - outlierwidth=None, - width=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + outliercolor=None, + outlierwidth=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -233,10 +163,10 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -248,36 +178,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.violin.marker.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.violin.marker.Line`""" - ) +an instance of :class:`plotly.graph_objs.violin.marker.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("outliercolor", None) - _v = outliercolor if outliercolor is not None else _v - if _v is not None: - self["outliercolor"] = _v - _v = arg.pop("outlierwidth", None) - _v = outlierwidth if outlierwidth is not None else _v - if _v is not None: - self["outlierwidth"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('outliercolor', arg, outliercolor) + self._init_provided('outlierwidth', arg, outlierwidth) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/violin/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/violin/selected/__init__.py index dfd34067137..5abe297c1ca 100644 --- a/packages/python/plotly/plotly/graph_objs/violin/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/violin/selected/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._marker.Marker'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._marker.Marker"]) diff --git a/packages/python/plotly/plotly/graph_objs/violin/selected/_marker.py b/packages/python/plotly/plotly/graph_objs/violin/selected/_marker.py index ab927292f80..4388b3e4f7a 100644 --- a/packages/python/plotly/plotly/graph_objs/violin/selected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/violin/selected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "violin.selected" - _path_str = "violin.selected.marker" + _parent_path_str = 'violin.selected' + _path_str = 'violin.selected.marker' _valid_props = {"color", "opacity", "size"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -83,11 +50,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # size # ---- @@ -103,11 +70,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # Self properties description # --------------------------- @@ -121,8 +88,13 @@ def _prop_descriptions(self): size Sets the marker size of selected points. """ - - def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + size=None, + **kwargs + ): """ Construct a new Marker object @@ -143,10 +115,10 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -158,32 +130,22 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.violin.selected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.violin.selected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.violin.selected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) + self._init_provided('size', arg, size) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/violin/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/violin/unselected/__init__.py index dfd34067137..5abe297c1ca 100644 --- a/packages/python/plotly/plotly/graph_objs/violin/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/violin/unselected/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._marker.Marker'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._marker.Marker"]) diff --git a/packages/python/plotly/plotly/graph_objs/violin/unselected/_marker.py b/packages/python/plotly/plotly/graph_objs/violin/unselected/_marker.py index 76449d2b9b8..3a8aedbad79 100644 --- a/packages/python/plotly/plotly/graph_objs/violin/unselected/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/violin/unselected/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "violin.unselected" - _path_str = "violin.unselected.marker" + _parent_path_str = 'violin.unselected' + _path_str = 'violin.unselected.marker' _valid_props = {"color", "opacity", "size"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # opacity # ------- @@ -85,11 +52,11 @@ def opacity(self): ------- int|float """ - return self["opacity"] + return self['opacity'] @opacity.setter def opacity(self, val): - self["opacity"] = val + self['opacity'] = val # size # ---- @@ -106,11 +73,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # Self properties description # --------------------------- @@ -127,8 +94,13 @@ def _prop_descriptions(self): Sets the marker size of unselected points, applied only when a selection exists. """ - - def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): + def __init__(self, + arg=None, + color=None, + opacity=None, + size=None, + **kwargs + ): """ Construct a new Marker object @@ -152,10 +124,10 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -167,32 +139,22 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.violin.unselected.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.violin.unselected.Marker`""" - ) +an instance of :class:`plotly.graph_objs.violin.unselected.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("opacity", None) - _v = opacity if opacity is not None else _v - if _v is not None: - self["opacity"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v + self._init_provided('color', arg, color) + self._init_provided('opacity', arg, opacity) + self._init_provided('size', arg, size) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/volume/__init__.py b/packages/python/plotly/plotly/graph_objs/volume/__init__.py index 505fd03f998..3a08d868822 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/volume/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._caps import Caps from ._colorbar import ColorBar @@ -20,21 +19,10 @@ from . import slices else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".caps", ".colorbar", ".hoverlabel", ".legendgrouptitle", ".slices"], - [ - "._caps.Caps", - "._colorbar.ColorBar", - "._contour.Contour", - "._hoverlabel.Hoverlabel", - "._legendgrouptitle.Legendgrouptitle", - "._lighting.Lighting", - "._lightposition.Lightposition", - "._slices.Slices", - "._spaceframe.Spaceframe", - "._stream.Stream", - "._surface.Surface", - ], + ['.caps', '.colorbar', '.hoverlabel', '.legendgrouptitle', '.slices'], + ['._caps.Caps', '._colorbar.ColorBar', '._contour.Contour', '._hoverlabel.Hoverlabel', '._legendgrouptitle.Legendgrouptitle', '._lighting.Lighting', '._lightposition.Lightposition', '._slices.Slices', '._spaceframe.Spaceframe', '._stream.Stream', '._surface.Surface'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/volume/_caps.py b/packages/python/plotly/plotly/graph_objs/volume/_caps.py index 9d6462ccc81..0fc2d1848e6 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/_caps.py +++ b/packages/python/plotly/plotly/graph_objs/volume/_caps.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Caps(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "volume" - _path_str = "volume.caps" + _parent_path_str = 'volume' + _path_str = 'volume.caps' _valid_props = {"x", "y", "z"} # x @@ -21,31 +23,15 @@ def x(self): - A dict of string/value properties that will be passed to the X constructor - Supported dict properties: - - fill - Sets the fill ratio of the `caps`. The default - fill value of the `caps` is 1 meaning that they - are entirely shaded. On the other hand Applying - a `fill` ratio less than one would allow the - creation of openings parallel to the edges. - show - Sets the fill ratio of the `slices`. The - default fill value of the x `slices` is 1 - meaning that they are entirely shaded. On the - other hand Applying a `fill` ratio less than - one would allow the creation of openings - parallel to the edges. - Returns ------- plotly.graph_objs.volume.caps.X """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @@ -58,31 +44,15 @@ def y(self): - A dict of string/value properties that will be passed to the Y constructor - Supported dict properties: - - fill - Sets the fill ratio of the `caps`. The default - fill value of the `caps` is 1 meaning that they - are entirely shaded. On the other hand Applying - a `fill` ratio less than one would allow the - creation of openings parallel to the edges. - show - Sets the fill ratio of the `slices`. The - default fill value of the y `slices` is 1 - meaning that they are entirely shaded. On the - other hand Applying a `fill` ratio less than - one would allow the creation of openings - parallel to the edges. - Returns ------- plotly.graph_objs.volume.caps.Y """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # z # - @@ -95,31 +65,15 @@ def z(self): - A dict of string/value properties that will be passed to the Z constructor - Supported dict properties: - - fill - Sets the fill ratio of the `caps`. The default - fill value of the `caps` is 1 meaning that they - are entirely shaded. On the other hand Applying - a `fill` ratio less than one would allow the - creation of openings parallel to the edges. - show - Sets the fill ratio of the `slices`. The - default fill value of the z `slices` is 1 - meaning that they are entirely shaded. On the - other hand Applying a `fill` ratio less than - one would allow the creation of openings - parallel to the edges. - Returns ------- plotly.graph_objs.volume.caps.Z """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # Self properties description # --------------------------- @@ -136,8 +90,13 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.volume.caps.Z` instance or dict with compatible properties """ - - def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): + def __init__(self, + arg=None, + x=None, + y=None, + z=None, + **kwargs + ): """ Construct a new Caps object @@ -160,10 +119,10 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Caps """ - super(Caps, self).__init__("caps") + super(Caps, self).__init__('caps') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -175,32 +134,22 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.volume.Caps constructor must be a dict or -an instance of :class:`plotly.graph_objs.volume.Caps`""" - ) +an instance of :class:`plotly.graph_objs.volume.Caps`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) + self._init_provided('z', arg, z) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/volume/_colorbar.py b/packages/python/plotly/plotly/graph_objs/volume/_colorbar.py index a71748a52c8..72cb0a34b56 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/_colorbar.py +++ b/packages/python/plotly/plotly/graph_objs/volume/_colorbar.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,59 +8,9 @@ class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "volume" - _path_str = "volume.colorbar" - _valid_props = { - "bgcolor", - "bordercolor", - "borderwidth", - "dtick", - "exponentformat", - "labelalias", - "len", - "lenmode", - "minexponent", - "nticks", - "orientation", - "outlinecolor", - "outlinewidth", - "separatethousands", - "showexponent", - "showticklabels", - "showtickprefix", - "showticksuffix", - "thickness", - "thicknessmode", - "tick0", - "tickangle", - "tickcolor", - "tickfont", - "tickformat", - "tickformatstopdefaults", - "tickformatstops", - "ticklabeloverflow", - "ticklabelposition", - "ticklabelstep", - "ticklen", - "tickmode", - "tickprefix", - "ticks", - "ticksuffix", - "ticktext", - "ticktextsrc", - "tickvals", - "tickvalssrc", - "tickwidth", - "title", - "x", - "xanchor", - "xpad", - "xref", - "y", - "yanchor", - "ypad", - "yref", - } + _parent_path_str = 'volume' + _path_str = 'volume.colorbar' + _valid_props = {"bgcolor", "bordercolor", "borderwidth", "dtick", "exponentformat", "labelalias", "len", "lenmode", "minexponent", "nticks", "orientation", "outlinecolor", "outlinewidth", "separatethousands", "showexponent", "showticklabels", "showtickprefix", "showticksuffix", "thickness", "thicknessmode", "tick0", "tickangle", "tickcolor", "tickfont", "tickformat", "tickformatstopdefaults", "tickformatstops", "ticklabeloverflow", "ticklabelposition", "ticklabelstep", "ticklen", "tickmode", "tickprefix", "ticks", "ticksuffix", "ticktext", "ticktextsrc", "tickvals", "tickvalssrc", "tickwidth", "title", "x", "xanchor", "xpad", "xref", "y", "yanchor", "ypad", "yref"} # bgcolor # ------- @@ -72,52 +24,17 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bordercolor # ----------- @@ -131,52 +48,17 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # borderwidth # ----------- @@ -192,11 +74,11 @@ def borderwidth(self): ------- int|float """ - return self["borderwidth"] + return self['borderwidth'] @borderwidth.setter def borderwidth(self, val): - self["borderwidth"] = val + self['borderwidth'] = val # dtick # ----- @@ -230,11 +112,11 @@ def dtick(self): ------- Any """ - return self["dtick"] + return self['dtick'] @dtick.setter def dtick(self, val): - self["dtick"] = val + self['dtick'] = val # exponentformat # -------------- @@ -255,11 +137,11 @@ def exponentformat(self): ------- Any """ - return self["exponentformat"] + return self['exponentformat'] @exponentformat.setter def exponentformat(self, val): - self["exponentformat"] = val + self['exponentformat'] = val # labelalias # ---------- @@ -282,11 +164,11 @@ def labelalias(self): ------- Any """ - return self["labelalias"] + return self['labelalias'] @labelalias.setter def labelalias(self, val): - self["labelalias"] = val + self['labelalias'] = val # len # --- @@ -304,11 +186,11 @@ def len(self): ------- int|float """ - return self["len"] + return self['len'] @len.setter def len(self, val): - self["len"] = val + self['len'] = val # lenmode # ------- @@ -327,11 +209,11 @@ def lenmode(self): ------- Any """ - return self["lenmode"] + return self['lenmode'] @lenmode.setter def lenmode(self, val): - self["lenmode"] = val + self['lenmode'] = val # minexponent # ----------- @@ -348,11 +230,11 @@ def minexponent(self): ------- int|float """ - return self["minexponent"] + return self['minexponent'] @minexponent.setter def minexponent(self, val): - self["minexponent"] = val + self['minexponent'] = val # nticks # ------ @@ -372,11 +254,11 @@ def nticks(self): ------- int """ - return self["nticks"] + return self['nticks'] @nticks.setter def nticks(self, val): - self["nticks"] = val + self['nticks'] = val # orientation # ----------- @@ -393,11 +275,11 @@ def orientation(self): ------- Any """ - return self["orientation"] + return self['orientation'] @orientation.setter def orientation(self, val): - self["orientation"] = val + self['orientation'] = val # outlinecolor # ------------ @@ -411,52 +293,17 @@ def outlinecolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["outlinecolor"] + return self['outlinecolor'] @outlinecolor.setter def outlinecolor(self, val): - self["outlinecolor"] = val + self['outlinecolor'] = val # outlinewidth # ------------ @@ -472,11 +319,11 @@ def outlinewidth(self): ------- int|float """ - return self["outlinewidth"] + return self['outlinewidth'] @outlinewidth.setter def outlinewidth(self, val): - self["outlinewidth"] = val + self['outlinewidth'] = val # separatethousands # ----------------- @@ -492,11 +339,11 @@ def separatethousands(self): ------- bool """ - return self["separatethousands"] + return self['separatethousands'] @separatethousands.setter def separatethousands(self, val): - self["separatethousands"] = val + self['separatethousands'] = val # showexponent # ------------ @@ -516,11 +363,11 @@ def showexponent(self): ------- Any """ - return self["showexponent"] + return self['showexponent'] @showexponent.setter def showexponent(self, val): - self["showexponent"] = val + self['showexponent'] = val # showticklabels # -------------- @@ -536,11 +383,11 @@ def showticklabels(self): ------- bool """ - return self["showticklabels"] + return self['showticklabels'] @showticklabels.setter def showticklabels(self, val): - self["showticklabels"] = val + self['showticklabels'] = val # showtickprefix # -------------- @@ -560,11 +407,11 @@ def showtickprefix(self): ------- Any """ - return self["showtickprefix"] + return self['showtickprefix'] @showtickprefix.setter def showtickprefix(self, val): - self["showtickprefix"] = val + self['showtickprefix'] = val # showticksuffix # -------------- @@ -581,11 +428,11 @@ def showticksuffix(self): ------- Any """ - return self["showticksuffix"] + return self['showticksuffix'] @showticksuffix.setter def showticksuffix(self, val): - self["showticksuffix"] = val + self['showticksuffix'] = val # thickness # --------- @@ -602,11 +449,11 @@ def thickness(self): ------- int|float """ - return self["thickness"] + return self['thickness'] @thickness.setter def thickness(self, val): - self["thickness"] = val + self['thickness'] = val # thicknessmode # ------------- @@ -625,11 +472,11 @@ def thicknessmode(self): ------- Any """ - return self["thicknessmode"] + return self['thicknessmode'] @thicknessmode.setter def thicknessmode(self, val): - self["thicknessmode"] = val + self['thicknessmode'] = val # tick0 # ----- @@ -652,11 +499,11 @@ def tick0(self): ------- Any """ - return self["tick0"] + return self['tick0'] @tick0.setter def tick0(self, val): - self["tick0"] = val + self['tick0'] = val # tickangle # --------- @@ -676,11 +523,11 @@ def tickangle(self): ------- int|float """ - return self["tickangle"] + return self['tickangle'] @tickangle.setter def tickangle(self, val): - self["tickangle"] = val + self['tickangle'] = val # tickcolor # --------- @@ -694,52 +541,17 @@ def tickcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["tickcolor"] + return self['tickcolor'] @tickcolor.setter def tickcolor(self, val): - self["tickcolor"] = val + self['tickcolor'] = val # tickfont # -------- @@ -754,61 +566,15 @@ def tickfont(self): - A dict of string/value properties that will be passed to the Tickfont constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.volume.colorbar.Tickfont """ - return self["tickfont"] + return self['tickfont'] @tickfont.setter def tickfont(self, val): - self["tickfont"] = val + self['tickfont'] = val # tickformat # ---------- @@ -834,11 +600,11 @@ def tickformat(self): ------- str """ - return self["tickformat"] + return self['tickformat'] @tickformat.setter def tickformat(self, val): - self["tickformat"] = val + self['tickformat'] = val # tickformatstops # --------------- @@ -851,51 +617,15 @@ def tickformatstops(self): - A list or tuple of dicts of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" - Returns ------- tuple[plotly.graph_objs.volume.colorbar.Tickformatstop] """ - return self["tickformatstops"] + return self['tickformatstops'] @tickformatstops.setter def tickformatstops(self, val): - self["tickformatstops"] = val + self['tickformatstops'] = val # tickformatstopdefaults # ---------------------- @@ -913,17 +643,15 @@ def tickformatstopdefaults(self): - A dict of string/value properties that will be passed to the Tickformatstop constructor - Supported dict properties: - Returns ------- plotly.graph_objs.volume.colorbar.Tickformatstop """ - return self["tickformatstopdefaults"] + return self['tickformatstopdefaults'] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self["tickformatstopdefaults"] = val + self['tickformatstopdefaults'] = val # ticklabeloverflow # ----------------- @@ -943,11 +671,11 @@ def ticklabeloverflow(self): ------- Any """ - return self["ticklabeloverflow"] + return self['ticklabeloverflow'] @ticklabeloverflow.setter def ticklabeloverflow(self, val): - self["ticklabeloverflow"] = val + self['ticklabeloverflow'] = val # ticklabelposition # ----------------- @@ -968,11 +696,11 @@ def ticklabelposition(self): ------- Any """ - return self["ticklabelposition"] + return self['ticklabelposition'] @ticklabelposition.setter def ticklabelposition(self, val): - self["ticklabelposition"] = val + self['ticklabelposition'] = val # ticklabelstep # ------------- @@ -994,11 +722,11 @@ def ticklabelstep(self): ------- int """ - return self["ticklabelstep"] + return self['ticklabelstep'] @ticklabelstep.setter def ticklabelstep(self, val): - self["ticklabelstep"] = val + self['ticklabelstep'] = val # ticklen # ------- @@ -1014,11 +742,11 @@ def ticklen(self): ------- int|float """ - return self["ticklen"] + return self['ticklen'] @ticklen.setter def ticklen(self, val): - self["ticklen"] = val + self['ticklen'] = val # tickmode # -------- @@ -1041,11 +769,11 @@ def tickmode(self): ------- Any """ - return self["tickmode"] + return self['tickmode'] @tickmode.setter def tickmode(self, val): - self["tickmode"] = val + self['tickmode'] = val # tickprefix # ---------- @@ -1062,11 +790,11 @@ def tickprefix(self): ------- str """ - return self["tickprefix"] + return self['tickprefix'] @tickprefix.setter def tickprefix(self, val): - self["tickprefix"] = val + self['tickprefix'] = val # ticks # ----- @@ -1085,11 +813,11 @@ def ticks(self): ------- Any """ - return self["ticks"] + return self['ticks'] @ticks.setter def ticks(self, val): - self["ticks"] = val + self['ticks'] = val # ticksuffix # ---------- @@ -1106,11 +834,11 @@ def ticksuffix(self): ------- str """ - return self["ticksuffix"] + return self['ticksuffix'] @ticksuffix.setter def ticksuffix(self, val): - self["ticksuffix"] = val + self['ticksuffix'] = val # ticktext # -------- @@ -1128,11 +856,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self["ticktext"] + return self['ticktext'] @ticktext.setter def ticktext(self, val): - self["ticktext"] = val + self['ticktext'] = val # ticktextsrc # ----------- @@ -1148,11 +876,11 @@ def ticktextsrc(self): ------- str """ - return self["ticktextsrc"] + return self['ticktextsrc'] @ticktextsrc.setter def ticktextsrc(self, val): - self["ticktextsrc"] = val + self['ticktextsrc'] = val # tickvals # -------- @@ -1169,11 +897,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self["tickvals"] + return self['tickvals'] @tickvals.setter def tickvals(self, val): - self["tickvals"] = val + self['tickvals'] = val # tickvalssrc # ----------- @@ -1189,11 +917,11 @@ def tickvalssrc(self): ------- str """ - return self["tickvalssrc"] + return self['tickvalssrc'] @tickvalssrc.setter def tickvalssrc(self, val): - self["tickvalssrc"] = val + self['tickvalssrc'] = val # tickwidth # --------- @@ -1209,11 +937,11 @@ def tickwidth(self): ------- int|float """ - return self["tickwidth"] + return self['tickwidth'] @tickwidth.setter def tickwidth(self, val): - self["tickwidth"] = val + self['tickwidth'] = val # title # ----- @@ -1226,27 +954,15 @@ def title(self): - A dict of string/value properties that will be passed to the Title constructor - Supported dict properties: - - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. - Returns ------- plotly.graph_objs.volume.colorbar.Title """ - return self["title"] + return self['title'] @title.setter def title(self, val): - self["title"] = val + self['title'] = val # x # - @@ -1268,11 +984,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # xanchor # ------- @@ -1292,11 +1008,11 @@ def xanchor(self): ------- Any """ - return self["xanchor"] + return self['xanchor'] @xanchor.setter def xanchor(self, val): - self["xanchor"] = val + self['xanchor'] = val # xpad # ---- @@ -1312,11 +1028,11 @@ def xpad(self): ------- int|float """ - return self["xpad"] + return self['xpad'] @xpad.setter def xpad(self, val): - self["xpad"] = val + self['xpad'] = val # xref # ---- @@ -1335,11 +1051,11 @@ def xref(self): ------- Any """ - return self["xref"] + return self['xref'] @xref.setter def xref(self, val): - self["xref"] = val + self['xref'] = val # y # - @@ -1361,11 +1077,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # yanchor # ------- @@ -1385,11 +1101,11 @@ def yanchor(self): ------- Any """ - return self["yanchor"] + return self['yanchor'] @yanchor.setter def yanchor(self, val): - self["yanchor"] = val + self['yanchor'] = val # ypad # ---- @@ -1405,11 +1121,11 @@ def ypad(self): ------- int|float """ - return self["ypad"] + return self['ypad'] @ypad.setter def ypad(self, val): - self["ypad"] = val + self['ypad'] = val # yref # ---- @@ -1428,11 +1144,11 @@ def yref(self): ------- Any """ - return self["yref"] + return self['yref'] @yref.setter def yref(self, val): - self["yref"] = val + self['yref'] = val # Self properties description # --------------------------- @@ -1678,61 +1394,59 @@ def _prop_descriptions(self): entire `height` of the plot. "paper" refers to the height of the plotting area only. """ - - def __init__( - self, - arg=None, - bgcolor=None, - bordercolor=None, - borderwidth=None, - dtick=None, - exponentformat=None, - labelalias=None, - len=None, - lenmode=None, - minexponent=None, - nticks=None, - orientation=None, - outlinecolor=None, - outlinewidth=None, - separatethousands=None, - showexponent=None, - showticklabels=None, - showtickprefix=None, - showticksuffix=None, - thickness=None, - thicknessmode=None, - tick0=None, - tickangle=None, - tickcolor=None, - tickfont=None, - tickformat=None, - tickformatstops=None, - tickformatstopdefaults=None, - ticklabeloverflow=None, - ticklabelposition=None, - ticklabelstep=None, - ticklen=None, - tickmode=None, - tickprefix=None, - ticks=None, - ticksuffix=None, - ticktext=None, - ticktextsrc=None, - tickvals=None, - tickvalssrc=None, - tickwidth=None, - title=None, - x=None, - xanchor=None, - xpad=None, - xref=None, - y=None, - yanchor=None, - ypad=None, - yref=None, - **kwargs, - ): + def __init__(self, + arg=None, + bgcolor=None, + bordercolor=None, + borderwidth=None, + dtick=None, + exponentformat=None, + labelalias=None, + len=None, + lenmode=None, + minexponent=None, + nticks=None, + orientation=None, + outlinecolor=None, + outlinewidth=None, + separatethousands=None, + showexponent=None, + showticklabels=None, + showtickprefix=None, + showticksuffix=None, + thickness=None, + thicknessmode=None, + tick0=None, + tickangle=None, + tickcolor=None, + tickfont=None, + tickformat=None, + tickformatstops=None, + tickformatstopdefaults=None, + ticklabeloverflow=None, + ticklabelposition=None, + ticklabelstep=None, + ticklen=None, + tickmode=None, + tickprefix=None, + ticks=None, + ticksuffix=None, + ticktext=None, + ticktextsrc=None, + tickvals=None, + tickvalssrc=None, + tickwidth=None, + title=None, + x=None, + xanchor=None, + xpad=None, + xref=None, + y=None, + yanchor=None, + ypad=None, + yref=None, + **kwargs + ): """ Construct a new ColorBar object @@ -1985,10 +1699,10 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") + super(ColorBar, self).__init__('colorbar') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -2000,216 +1714,68 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.volume.ColorBar constructor must be a dict or -an instance of :class:`plotly.graph_objs.volume.ColorBar`""" - ) +an instance of :class:`plotly.graph_objs.volume.ColorBar`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("borderwidth", None) - _v = borderwidth if borderwidth is not None else _v - if _v is not None: - self["borderwidth"] = _v - _v = arg.pop("dtick", None) - _v = dtick if dtick is not None else _v - if _v is not None: - self["dtick"] = _v - _v = arg.pop("exponentformat", None) - _v = exponentformat if exponentformat is not None else _v - if _v is not None: - self["exponentformat"] = _v - _v = arg.pop("labelalias", None) - _v = labelalias if labelalias is not None else _v - if _v is not None: - self["labelalias"] = _v - _v = arg.pop("len", None) - _v = len if len is not None else _v - if _v is not None: - self["len"] = _v - _v = arg.pop("lenmode", None) - _v = lenmode if lenmode is not None else _v - if _v is not None: - self["lenmode"] = _v - _v = arg.pop("minexponent", None) - _v = minexponent if minexponent is not None else _v - if _v is not None: - self["minexponent"] = _v - _v = arg.pop("nticks", None) - _v = nticks if nticks is not None else _v - if _v is not None: - self["nticks"] = _v - _v = arg.pop("orientation", None) - _v = orientation if orientation is not None else _v - if _v is not None: - self["orientation"] = _v - _v = arg.pop("outlinecolor", None) - _v = outlinecolor if outlinecolor is not None else _v - if _v is not None: - self["outlinecolor"] = _v - _v = arg.pop("outlinewidth", None) - _v = outlinewidth if outlinewidth is not None else _v - if _v is not None: - self["outlinewidth"] = _v - _v = arg.pop("separatethousands", None) - _v = separatethousands if separatethousands is not None else _v - if _v is not None: - self["separatethousands"] = _v - _v = arg.pop("showexponent", None) - _v = showexponent if showexponent is not None else _v - if _v is not None: - self["showexponent"] = _v - _v = arg.pop("showticklabels", None) - _v = showticklabels if showticklabels is not None else _v - if _v is not None: - self["showticklabels"] = _v - _v = arg.pop("showtickprefix", None) - _v = showtickprefix if showtickprefix is not None else _v - if _v is not None: - self["showtickprefix"] = _v - _v = arg.pop("showticksuffix", None) - _v = showticksuffix if showticksuffix is not None else _v - if _v is not None: - self["showticksuffix"] = _v - _v = arg.pop("thickness", None) - _v = thickness if thickness is not None else _v - if _v is not None: - self["thickness"] = _v - _v = arg.pop("thicknessmode", None) - _v = thicknessmode if thicknessmode is not None else _v - if _v is not None: - self["thicknessmode"] = _v - _v = arg.pop("tick0", None) - _v = tick0 if tick0 is not None else _v - if _v is not None: - self["tick0"] = _v - _v = arg.pop("tickangle", None) - _v = tickangle if tickangle is not None else _v - if _v is not None: - self["tickangle"] = _v - _v = arg.pop("tickcolor", None) - _v = tickcolor if tickcolor is not None else _v - if _v is not None: - self["tickcolor"] = _v - _v = arg.pop("tickfont", None) - _v = tickfont if tickfont is not None else _v - if _v is not None: - self["tickfont"] = _v - _v = arg.pop("tickformat", None) - _v = tickformat if tickformat is not None else _v - if _v is not None: - self["tickformat"] = _v - _v = arg.pop("tickformatstops", None) - _v = tickformatstops if tickformatstops is not None else _v - if _v is not None: - self["tickformatstops"] = _v - _v = arg.pop("tickformatstopdefaults", None) - _v = tickformatstopdefaults if tickformatstopdefaults is not None else _v - if _v is not None: - self["tickformatstopdefaults"] = _v - _v = arg.pop("ticklabeloverflow", None) - _v = ticklabeloverflow if ticklabeloverflow is not None else _v - if _v is not None: - self["ticklabeloverflow"] = _v - _v = arg.pop("ticklabelposition", None) - _v = ticklabelposition if ticklabelposition is not None else _v - if _v is not None: - self["ticklabelposition"] = _v - _v = arg.pop("ticklabelstep", None) - _v = ticklabelstep if ticklabelstep is not None else _v - if _v is not None: - self["ticklabelstep"] = _v - _v = arg.pop("ticklen", None) - _v = ticklen if ticklen is not None else _v - if _v is not None: - self["ticklen"] = _v - _v = arg.pop("tickmode", None) - _v = tickmode if tickmode is not None else _v - if _v is not None: - self["tickmode"] = _v - _v = arg.pop("tickprefix", None) - _v = tickprefix if tickprefix is not None else _v - if _v is not None: - self["tickprefix"] = _v - _v = arg.pop("ticks", None) - _v = ticks if ticks is not None else _v - if _v is not None: - self["ticks"] = _v - _v = arg.pop("ticksuffix", None) - _v = ticksuffix if ticksuffix is not None else _v - if _v is not None: - self["ticksuffix"] = _v - _v = arg.pop("ticktext", None) - _v = ticktext if ticktext is not None else _v - if _v is not None: - self["ticktext"] = _v - _v = arg.pop("ticktextsrc", None) - _v = ticktextsrc if ticktextsrc is not None else _v - if _v is not None: - self["ticktextsrc"] = _v - _v = arg.pop("tickvals", None) - _v = tickvals if tickvals is not None else _v - if _v is not None: - self["tickvals"] = _v - _v = arg.pop("tickvalssrc", None) - _v = tickvalssrc if tickvalssrc is not None else _v - if _v is not None: - self["tickvalssrc"] = _v - _v = arg.pop("tickwidth", None) - _v = tickwidth if tickwidth is not None else _v - if _v is not None: - self["tickwidth"] = _v - _v = arg.pop("title", None) - _v = title if title is not None else _v - if _v is not None: - self["title"] = _v - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("xanchor", None) - _v = xanchor if xanchor is not None else _v - if _v is not None: - self["xanchor"] = _v - _v = arg.pop("xpad", None) - _v = xpad if xpad is not None else _v - if _v is not None: - self["xpad"] = _v - _v = arg.pop("xref", None) - _v = xref if xref is not None else _v - if _v is not None: - self["xref"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("yanchor", None) - _v = yanchor if yanchor is not None else _v - if _v is not None: - self["yanchor"] = _v - _v = arg.pop("ypad", None) - _v = ypad if ypad is not None else _v - if _v is not None: - self["ypad"] = _v - _v = arg.pop("yref", None) - _v = yref if yref is not None else _v - if _v is not None: - self["yref"] = _v + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('borderwidth', arg, borderwidth) + self._init_provided('dtick', arg, dtick) + self._init_provided('exponentformat', arg, exponentformat) + self._init_provided('labelalias', arg, labelalias) + self._init_provided('len', arg, len) + self._init_provided('lenmode', arg, lenmode) + self._init_provided('minexponent', arg, minexponent) + self._init_provided('nticks', arg, nticks) + self._init_provided('orientation', arg, orientation) + self._init_provided('outlinecolor', arg, outlinecolor) + self._init_provided('outlinewidth', arg, outlinewidth) + self._init_provided('separatethousands', arg, separatethousands) + self._init_provided('showexponent', arg, showexponent) + self._init_provided('showticklabels', arg, showticklabels) + self._init_provided('showtickprefix', arg, showtickprefix) + self._init_provided('showticksuffix', arg, showticksuffix) + self._init_provided('thickness', arg, thickness) + self._init_provided('thicknessmode', arg, thicknessmode) + self._init_provided('tick0', arg, tick0) + self._init_provided('tickangle', arg, tickangle) + self._init_provided('tickcolor', arg, tickcolor) + self._init_provided('tickfont', arg, tickfont) + self._init_provided('tickformat', arg, tickformat) + self._init_provided('tickformatstops', arg, tickformatstops) + self._init_provided('tickformatstopdefaults', arg, tickformatstopdefaults) + self._init_provided('ticklabeloverflow', arg, ticklabeloverflow) + self._init_provided('ticklabelposition', arg, ticklabelposition) + self._init_provided('ticklabelstep', arg, ticklabelstep) + self._init_provided('ticklen', arg, ticklen) + self._init_provided('tickmode', arg, tickmode) + self._init_provided('tickprefix', arg, tickprefix) + self._init_provided('ticks', arg, ticks) + self._init_provided('ticksuffix', arg, ticksuffix) + self._init_provided('ticktext', arg, ticktext) + self._init_provided('ticktextsrc', arg, ticktextsrc) + self._init_provided('tickvals', arg, tickvals) + self._init_provided('tickvalssrc', arg, tickvalssrc) + self._init_provided('tickwidth', arg, tickwidth) + self._init_provided('title', arg, title) + self._init_provided('x', arg, x) + self._init_provided('xanchor', arg, xanchor) + self._init_provided('xpad', arg, xpad) + self._init_provided('xref', arg, xref) + self._init_provided('y', arg, y) + self._init_provided('yanchor', arg, yanchor) + self._init_provided('ypad', arg, ypad) + self._init_provided('yref', arg, yref) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/volume/_contour.py b/packages/python/plotly/plotly/graph_objs/volume/_contour.py index 4faf0876afb..46b48b16d56 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/_contour.py +++ b/packages/python/plotly/plotly/graph_objs/volume/_contour.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Contour(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "volume" - _path_str = "volume.contour" + _parent_path_str = 'volume' + _path_str = 'volume.contour' _valid_props = {"color", "show", "width"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # show # ---- @@ -83,11 +50,11 @@ def show(self): ------- bool """ - return self["show"] + return self['show'] @show.setter def show(self, val): - self["show"] = val + self['show'] = val # width # ----- @@ -103,11 +70,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -121,8 +88,13 @@ def _prop_descriptions(self): width Sets the width of the contour lines. """ - - def __init__(self, arg=None, color=None, show=None, width=None, **kwargs): + def __init__(self, + arg=None, + color=None, + show=None, + width=None, + **kwargs + ): """ Construct a new Contour object @@ -143,10 +115,10 @@ def __init__(self, arg=None, color=None, show=None, width=None, **kwargs): ------- Contour """ - super(Contour, self).__init__("contour") + super(Contour, self).__init__('contour') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -158,32 +130,22 @@ def __init__(self, arg=None, color=None, show=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.volume.Contour constructor must be a dict or -an instance of :class:`plotly.graph_objs.volume.Contour`""" - ) +an instance of :class:`plotly.graph_objs.volume.Contour`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("show", None) - _v = show if show is not None else _v - if _v is not None: - self["show"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('show', arg, show) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/volume/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/volume/_hoverlabel.py index 77b90918410..3afc6c210f4 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/volume/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "volume" - _path_str = "volume.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'volume' + _path_str = 'volume.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.volume.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.volume.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.volume.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.volume.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/volume/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/volume/_legendgrouptitle.py index 5a47d427594..d2bfe9d5c94 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/volume/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "volume" - _path_str = "volume.legendgrouptitle" + _parent_path_str = 'volume' + _path_str = 'volume.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.volume.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.volume.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.volume.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.volume.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/volume/_lighting.py b/packages/python/plotly/plotly/graph_objs/volume/_lighting.py index d27f9d1e9cb..f41c1c89037 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/_lighting.py +++ b/packages/python/plotly/plotly/graph_objs/volume/_lighting.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,17 +8,9 @@ class Lighting(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "volume" - _path_str = "volume.lighting" - _valid_props = { - "ambient", - "diffuse", - "facenormalsepsilon", - "fresnel", - "roughness", - "specular", - "vertexnormalsepsilon", - } + _parent_path_str = 'volume' + _path_str = 'volume.lighting' + _valid_props = {"ambient", "diffuse", "facenormalsepsilon", "fresnel", "roughness", "specular", "vertexnormalsepsilon"} # ambient # ------- @@ -33,11 +27,11 @@ def ambient(self): ------- int|float """ - return self["ambient"] + return self['ambient'] @ambient.setter def ambient(self, val): - self["ambient"] = val + self['ambient'] = val # diffuse # ------- @@ -54,11 +48,11 @@ def diffuse(self): ------- int|float """ - return self["diffuse"] + return self['diffuse'] @diffuse.setter def diffuse(self, val): - self["diffuse"] = val + self['diffuse'] = val # facenormalsepsilon # ------------------ @@ -75,11 +69,11 @@ def facenormalsepsilon(self): ------- int|float """ - return self["facenormalsepsilon"] + return self['facenormalsepsilon'] @facenormalsepsilon.setter def facenormalsepsilon(self, val): - self["facenormalsepsilon"] = val + self['facenormalsepsilon'] = val # fresnel # ------- @@ -97,11 +91,11 @@ def fresnel(self): ------- int|float """ - return self["fresnel"] + return self['fresnel'] @fresnel.setter def fresnel(self, val): - self["fresnel"] = val + self['fresnel'] = val # roughness # --------- @@ -118,11 +112,11 @@ def roughness(self): ------- int|float """ - return self["roughness"] + return self['roughness'] @roughness.setter def roughness(self, val): - self["roughness"] = val + self['roughness'] = val # specular # -------- @@ -139,11 +133,11 @@ def specular(self): ------- int|float """ - return self["specular"] + return self['specular'] @specular.setter def specular(self, val): - self["specular"] = val + self['specular'] = val # vertexnormalsepsilon # -------------------- @@ -160,11 +154,11 @@ def vertexnormalsepsilon(self): ------- int|float """ - return self["vertexnormalsepsilon"] + return self['vertexnormalsepsilon'] @vertexnormalsepsilon.setter def vertexnormalsepsilon(self, val): - self["vertexnormalsepsilon"] = val + self['vertexnormalsepsilon'] = val # Self properties description # --------------------------- @@ -195,19 +189,17 @@ def _prop_descriptions(self): Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry. """ - - def __init__( - self, - arg=None, - ambient=None, - diffuse=None, - facenormalsepsilon=None, - fresnel=None, - roughness=None, - specular=None, - vertexnormalsepsilon=None, - **kwargs, - ): + def __init__(self, + arg=None, + ambient=None, + diffuse=None, + facenormalsepsilon=None, + fresnel=None, + roughness=None, + specular=None, + vertexnormalsepsilon=None, + **kwargs + ): """ Construct a new Lighting object @@ -245,10 +237,10 @@ def __init__( ------- Lighting """ - super(Lighting, self).__init__("lighting") + super(Lighting, self).__init__('lighting') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -260,48 +252,26 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.volume.Lighting constructor must be a dict or -an instance of :class:`plotly.graph_objs.volume.Lighting`""" - ) +an instance of :class:`plotly.graph_objs.volume.Lighting`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("ambient", None) - _v = ambient if ambient is not None else _v - if _v is not None: - self["ambient"] = _v - _v = arg.pop("diffuse", None) - _v = diffuse if diffuse is not None else _v - if _v is not None: - self["diffuse"] = _v - _v = arg.pop("facenormalsepsilon", None) - _v = facenormalsepsilon if facenormalsepsilon is not None else _v - if _v is not None: - self["facenormalsepsilon"] = _v - _v = arg.pop("fresnel", None) - _v = fresnel if fresnel is not None else _v - if _v is not None: - self["fresnel"] = _v - _v = arg.pop("roughness", None) - _v = roughness if roughness is not None else _v - if _v is not None: - self["roughness"] = _v - _v = arg.pop("specular", None) - _v = specular if specular is not None else _v - if _v is not None: - self["specular"] = _v - _v = arg.pop("vertexnormalsepsilon", None) - _v = vertexnormalsepsilon if vertexnormalsepsilon is not None else _v - if _v is not None: - self["vertexnormalsepsilon"] = _v + self._init_provided('ambient', arg, ambient) + self._init_provided('diffuse', arg, diffuse) + self._init_provided('facenormalsepsilon', arg, facenormalsepsilon) + self._init_provided('fresnel', arg, fresnel) + self._init_provided('roughness', arg, roughness) + self._init_provided('specular', arg, specular) + self._init_provided('vertexnormalsepsilon', arg, vertexnormalsepsilon) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/volume/_lightposition.py b/packages/python/plotly/plotly/graph_objs/volume/_lightposition.py index a0e0eb1f86f..b7ee9ee54dd 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/_lightposition.py +++ b/packages/python/plotly/plotly/graph_objs/volume/_lightposition.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Lightposition(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "volume" - _path_str = "volume.lightposition" + _parent_path_str = 'volume' + _path_str = 'volume.lightposition' _valid_props = {"x", "y", "z"} # x @@ -24,11 +26,11 @@ def x(self): ------- int|float """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @@ -44,11 +46,11 @@ def y(self): ------- int|float """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # z # - @@ -64,11 +66,11 @@ def z(self): ------- int|float """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # Self properties description # --------------------------- @@ -85,8 +87,13 @@ def _prop_descriptions(self): Numeric vector, representing the Z coordinate for each vertex. """ - - def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): + def __init__(self, + arg=None, + x=None, + y=None, + z=None, + **kwargs + ): """ Construct a new Lightposition object @@ -110,10 +117,10 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Lightposition """ - super(Lightposition, self).__init__("lightposition") + super(Lightposition, self).__init__('lightposition') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -125,32 +132,22 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.volume.Lightposition constructor must be a dict or -an instance of :class:`plotly.graph_objs.volume.Lightposition`""" - ) +an instance of :class:`plotly.graph_objs.volume.Lightposition`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) + self._init_provided('z', arg, z) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/volume/_slices.py b/packages/python/plotly/plotly/graph_objs/volume/_slices.py index e5b47a34eec..e92224fc193 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/_slices.py +++ b/packages/python/plotly/plotly/graph_objs/volume/_slices.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Slices(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "volume" - _path_str = "volume.slices" + _parent_path_str = 'volume' + _path_str = 'volume.slices' _valid_props = {"x", "y", "z"} # x @@ -21,36 +23,15 @@ def x(self): - A dict of string/value properties that will be passed to the X constructor - Supported dict properties: - - fill - Sets the fill ratio of the `slices`. The - default fill value of the `slices` is 1 meaning - that they are entirely shaded. On the other - hand Applying a `fill` ratio less than one - would allow the creation of openings parallel - to the edges. - locations - Specifies the location(s) of slices on the - axis. When not specified slices would be - created for all points of the axis x except - start and end. - locationssrc - Sets the source reference on Chart Studio Cloud - for `locations`. - show - Determines whether or not slice planes about - the x dimension are drawn. - Returns ------- plotly.graph_objs.volume.slices.X """ - return self["x"] + return self['x'] @x.setter def x(self, val): - self["x"] = val + self['x'] = val # y # - @@ -63,36 +44,15 @@ def y(self): - A dict of string/value properties that will be passed to the Y constructor - Supported dict properties: - - fill - Sets the fill ratio of the `slices`. The - default fill value of the `slices` is 1 meaning - that they are entirely shaded. On the other - hand Applying a `fill` ratio less than one - would allow the creation of openings parallel - to the edges. - locations - Specifies the location(s) of slices on the - axis. When not specified slices would be - created for all points of the axis y except - start and end. - locationssrc - Sets the source reference on Chart Studio Cloud - for `locations`. - show - Determines whether or not slice planes about - the y dimension are drawn. - Returns ------- plotly.graph_objs.volume.slices.Y """ - return self["y"] + return self['y'] @y.setter def y(self, val): - self["y"] = val + self['y'] = val # z # - @@ -105,36 +65,15 @@ def z(self): - A dict of string/value properties that will be passed to the Z constructor - Supported dict properties: - - fill - Sets the fill ratio of the `slices`. The - default fill value of the `slices` is 1 meaning - that they are entirely shaded. On the other - hand Applying a `fill` ratio less than one - would allow the creation of openings parallel - to the edges. - locations - Specifies the location(s) of slices on the - axis. When not specified slices would be - created for all points of the axis z except - start and end. - locationssrc - Sets the source reference on Chart Studio Cloud - for `locations`. - show - Determines whether or not slice planes about - the z dimension are drawn. - Returns ------- plotly.graph_objs.volume.slices.Z """ - return self["z"] + return self['z'] @z.setter def z(self, val): - self["z"] = val + self['z'] = val # Self properties description # --------------------------- @@ -151,8 +90,13 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.volume.slices.Z` instance or dict with compatible properties """ - - def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): + def __init__(self, + arg=None, + x=None, + y=None, + z=None, + **kwargs + ): """ Construct a new Slices object @@ -175,10 +119,10 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Slices """ - super(Slices, self).__init__("slices") + super(Slices, self).__init__('slices') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -190,32 +134,22 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.volume.Slices constructor must be a dict or -an instance of :class:`plotly.graph_objs.volume.Slices`""" - ) +an instance of :class:`plotly.graph_objs.volume.Slices`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("x", None) - _v = x if x is not None else _v - if _v is not None: - self["x"] = _v - _v = arg.pop("y", None) - _v = y if y is not None else _v - if _v is not None: - self["y"] = _v - _v = arg.pop("z", None) - _v = z if z is not None else _v - if _v is not None: - self["z"] = _v + self._init_provided('x', arg, x) + self._init_provided('y', arg, y) + self._init_provided('z', arg, z) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/volume/_spaceframe.py b/packages/python/plotly/plotly/graph_objs/volume/_spaceframe.py index 8912ff3c280..19360fcaf76 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/_spaceframe.py +++ b/packages/python/plotly/plotly/graph_objs/volume/_spaceframe.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Spaceframe(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "volume" - _path_str = "volume.spaceframe" + _parent_path_str = 'volume' + _path_str = 'volume.spaceframe' _valid_props = {"fill", "show"} # fill @@ -27,11 +29,11 @@ def fill(self): ------- int|float """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # show # ---- @@ -49,11 +51,11 @@ def show(self): ------- bool """ - return self["show"] + return self['show'] @show.setter def show(self, val): - self["show"] = val + self['show'] = val # Self properties description # --------------------------- @@ -71,8 +73,12 @@ def _prop_descriptions(self): surfaces are disabled or filled with values less than 1. """ - - def __init__(self, arg=None, fill=None, show=None, **kwargs): + def __init__(self, + arg=None, + fill=None, + show=None, + **kwargs + ): """ Construct a new Spaceframe object @@ -97,10 +103,10 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): ------- Spaceframe """ - super(Spaceframe, self).__init__("spaceframe") + super(Spaceframe, self).__init__('spaceframe') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -112,28 +118,21 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.volume.Spaceframe constructor must be a dict or -an instance of :class:`plotly.graph_objs.volume.Spaceframe`""" - ) +an instance of :class:`plotly.graph_objs.volume.Spaceframe`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("show", None) - _v = show if show is not None else _v - if _v is not None: - self["show"] = _v + self._init_provided('fill', arg, fill) + self._init_provided('show', arg, show) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/volume/_stream.py b/packages/python/plotly/plotly/graph_objs/volume/_stream.py index 3c5778090a1..801ec056023 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/volume/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "volume" - _path_str = "volume.stream" + _parent_path_str = 'volume' + _path_str = 'volume.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -93,10 +99,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -108,28 +114,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.volume.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.volume.Stream`""" - ) +an instance of :class:`plotly.graph_objs.volume.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/volume/_surface.py b/packages/python/plotly/plotly/graph_objs/volume/_surface.py index b4547f344de..bb826c1ee73 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/_surface.py +++ b/packages/python/plotly/plotly/graph_objs/volume/_surface.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Surface(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "volume" - _path_str = "volume.surface" + _parent_path_str = 'volume' + _path_str = 'volume.surface' _valid_props = {"count", "fill", "pattern", "show"} # count @@ -27,11 +29,11 @@ def count(self): ------- int """ - return self["count"] + return self['count'] @count.setter def count(self, val): - self["count"] = val + self['count'] = val # fill # ---- @@ -50,11 +52,11 @@ def fill(self): ------- int|float """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # pattern # ------- @@ -79,11 +81,11 @@ def pattern(self): ------- Any """ - return self["pattern"] + return self['pattern'] @pattern.setter def pattern(self, val): - self["pattern"] = val + self['pattern'] = val # show # ---- @@ -99,11 +101,11 @@ def show(self): ------- bool """ - return self["show"] + return self['show'] @show.setter def show(self, val): - self["show"] = val + self['show'] = val # Self properties description # --------------------------- @@ -134,10 +136,14 @@ def _prop_descriptions(self): Hides/displays surfaces between minimum and maximum iso-values. """ - - def __init__( - self, arg=None, count=None, fill=None, pattern=None, show=None, **kwargs - ): + def __init__(self, + arg=None, + count=None, + fill=None, + pattern=None, + show=None, + **kwargs + ): """ Construct a new Surface object @@ -175,10 +181,10 @@ def __init__( ------- Surface """ - super(Surface, self).__init__("surface") + super(Surface, self).__init__('surface') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -190,36 +196,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.volume.Surface constructor must be a dict or -an instance of :class:`plotly.graph_objs.volume.Surface`""" - ) +an instance of :class:`plotly.graph_objs.volume.Surface`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("count", None) - _v = count if count is not None else _v - if _v is not None: - self["count"] = _v - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("pattern", None) - _v = pattern if pattern is not None else _v - if _v is not None: - self["pattern"] = _v - _v = arg.pop("show", None) - _v = show if show is not None else _v - if _v is not None: - self["show"] = _v + self._init_provided('count', arg, count) + self._init_provided('fill', arg, fill) + self._init_provided('pattern', arg, pattern) + self._init_provided('show', arg, show) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/volume/caps/__init__.py b/packages/python/plotly/plotly/graph_objs/volume/caps/__init__.py index b7c57094513..bc24ca0a556 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/caps/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/volume/caps/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._x import X from ._y import Y from ._z import Z else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._x.X", "._y.Y", "._z.Z"] + __name__, + [], + ['._x.X', '._y.Y', '._z.Z'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/volume/caps/_x.py b/packages/python/plotly/plotly/graph_objs/volume/caps/_x.py index 93661103d0d..7e00d85332f 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/caps/_x.py +++ b/packages/python/plotly/plotly/graph_objs/volume/caps/_x.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class X(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "volume.caps" - _path_str = "volume.caps.x" + _parent_path_str = 'volume.caps' + _path_str = 'volume.caps.x' _valid_props = {"fill", "show"} # fill @@ -27,11 +29,11 @@ def fill(self): ------- int|float """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # show # ---- @@ -50,11 +52,11 @@ def show(self): ------- bool """ - return self["show"] + return self['show'] @show.setter def show(self, val): - self["show"] = val + self['show'] = val # Self properties description # --------------------------- @@ -74,8 +76,12 @@ def _prop_descriptions(self): ratio less than one would allow the creation of openings parallel to the edges. """ - - def __init__(self, arg=None, fill=None, show=None, **kwargs): + def __init__(self, + arg=None, + fill=None, + show=None, + **kwargs + ): """ Construct a new X object @@ -101,10 +107,10 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): ------- X """ - super(X, self).__init__("x") + super(X, self).__init__('x') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -116,28 +122,21 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.volume.caps.X constructor must be a dict or -an instance of :class:`plotly.graph_objs.volume.caps.X`""" - ) +an instance of :class:`plotly.graph_objs.volume.caps.X`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("show", None) - _v = show if show is not None else _v - if _v is not None: - self["show"] = _v + self._init_provided('fill', arg, fill) + self._init_provided('show', arg, show) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/volume/caps/_y.py b/packages/python/plotly/plotly/graph_objs/volume/caps/_y.py index 956a5b49365..db2ccfd059b 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/caps/_y.py +++ b/packages/python/plotly/plotly/graph_objs/volume/caps/_y.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Y(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "volume.caps" - _path_str = "volume.caps.y" + _parent_path_str = 'volume.caps' + _path_str = 'volume.caps.y' _valid_props = {"fill", "show"} # fill @@ -27,11 +29,11 @@ def fill(self): ------- int|float """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # show # ---- @@ -50,11 +52,11 @@ def show(self): ------- bool """ - return self["show"] + return self['show'] @show.setter def show(self, val): - self["show"] = val + self['show'] = val # Self properties description # --------------------------- @@ -74,8 +76,12 @@ def _prop_descriptions(self): ratio less than one would allow the creation of openings parallel to the edges. """ - - def __init__(self, arg=None, fill=None, show=None, **kwargs): + def __init__(self, + arg=None, + fill=None, + show=None, + **kwargs + ): """ Construct a new Y object @@ -101,10 +107,10 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): ------- Y """ - super(Y, self).__init__("y") + super(Y, self).__init__('y') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -116,28 +122,21 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.volume.caps.Y constructor must be a dict or -an instance of :class:`plotly.graph_objs.volume.caps.Y`""" - ) +an instance of :class:`plotly.graph_objs.volume.caps.Y`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("show", None) - _v = show if show is not None else _v - if _v is not None: - self["show"] = _v + self._init_provided('fill', arg, fill) + self._init_provided('show', arg, show) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/volume/caps/_z.py b/packages/python/plotly/plotly/graph_objs/volume/caps/_z.py index a42a47589fc..d3f9c098400 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/caps/_z.py +++ b/packages/python/plotly/plotly/graph_objs/volume/caps/_z.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Z(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "volume.caps" - _path_str = "volume.caps.z" + _parent_path_str = 'volume.caps' + _path_str = 'volume.caps.z' _valid_props = {"fill", "show"} # fill @@ -27,11 +29,11 @@ def fill(self): ------- int|float """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # show # ---- @@ -50,11 +52,11 @@ def show(self): ------- bool """ - return self["show"] + return self['show'] @show.setter def show(self, val): - self["show"] = val + self['show'] = val # Self properties description # --------------------------- @@ -74,8 +76,12 @@ def _prop_descriptions(self): ratio less than one would allow the creation of openings parallel to the edges. """ - - def __init__(self, arg=None, fill=None, show=None, **kwargs): + def __init__(self, + arg=None, + fill=None, + show=None, + **kwargs + ): """ Construct a new Z object @@ -101,10 +107,10 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): ------- Z """ - super(Z, self).__init__("z") + super(Z, self).__init__('z') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -116,28 +122,21 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.volume.caps.Z constructor must be a dict or -an instance of :class:`plotly.graph_objs.volume.caps.Z`""" - ) +an instance of :class:`plotly.graph_objs.volume.caps.Z`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("show", None) - _v = show if show is not None else _v - if _v is not None: - self["show"] = _v + self._init_provided('fill', arg, fill) + self._init_provided('show', arg, show) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/volume/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/volume/colorbar/__init__.py index e20590b7143..5358762a40b 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/volume/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickfont import Tickfont from ._tickformatstop import Tickformatstop @@ -8,9 +7,10 @@ from . import title else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], + ['.title'], + ['._tickfont.Tickfont', '._tickformatstop.Tickformatstop', '._title.Title'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/volume/colorbar/_tickfont.py b/packages/python/plotly/plotly/graph_objs/volume/colorbar/_tickfont.py index f07cfd2ff4c..56226981400 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/graph_objs/volume/colorbar/_tickfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Tickfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "volume.colorbar" - _path_str = "volume.colorbar.tickfont" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'volume.colorbar' + _path_str = 'volume.colorbar.tickfont' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Tickfont object @@ -377,10 +332,10 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") + super(Tickfont, self).__init__('tickfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.volume.colorbar.Tickfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.volume.colorbar.Tickfont`""" - ) +an instance of :class:`plotly.graph_objs.volume.colorbar.Tickfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/volume/colorbar/_tickformatstop.py b/packages/python/plotly/plotly/graph_objs/volume/colorbar/_tickformatstop.py index 103def03614..f7801f87a5b 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/colorbar/_tickformatstop.py +++ b/packages/python/plotly/plotly/graph_objs/volume/colorbar/_tickformatstop.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "volume.colorbar" - _path_str = "volume.colorbar.tickformatstop" + _parent_path_str = 'volume.colorbar' + _path_str = 'volume.colorbar.tickformatstop' _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} # dtickrange @@ -15,25 +17,25 @@ class Tickformatstop(_BaseTraceHierarchyType): @property def dtickrange(self): """ - range [*min*, *max*], where "min", "max" - dtick values which - describe some zoom level, it is possible to omit "min" or "max" - value by passing "null" - - The 'dtickrange' property is an info array that may be specified as: + range [*min*, *max*], where "min", "max" - dtick values which + describe some zoom level, it is possible to omit "min" or "max" + value by passing "null" - * a list or tuple of 2 elements where: - (0) The 'dtickrange[0]' property accepts values of any type - (1) The 'dtickrange[1]' property accepts values of any type + The 'dtickrange' property is an info array that may be specified as: + + * a list or tuple of 2 elements where: + (0) The 'dtickrange[0]' property accepts values of any type + (1) The 'dtickrange[1]' property accepts values of any type - Returns - ------- - list + Returns + ------- + list """ - return self["dtickrange"] + return self['dtickrange'] @dtickrange.setter def dtickrange(self, val): - self["dtickrange"] = val + self['dtickrange'] = val # enabled # ------- @@ -50,11 +52,11 @@ def enabled(self): ------- bool """ - return self["enabled"] + return self['enabled'] @enabled.setter def enabled(self, val): - self["enabled"] = val + self['enabled'] = val # name # ---- @@ -77,11 +79,11 @@ def name(self): ------- str """ - return self["name"] + return self['name'] @name.setter def name(self, val): - self["name"] = val + self['name'] = val # templateitemname # ---------------- @@ -105,11 +107,11 @@ def templateitemname(self): ------- str """ - return self["templateitemname"] + return self['templateitemname'] @templateitemname.setter def templateitemname(self, val): - self["templateitemname"] = val + self['templateitemname'] = val # value # ----- @@ -127,11 +129,11 @@ def value(self): ------- str """ - return self["value"] + return self['value'] @value.setter def value(self, val): - self["value"] = val + self['value'] = val # Self properties description # --------------------------- @@ -169,17 +171,15 @@ def _prop_descriptions(self): string - dtickformat for described zoom level, the same as "tickformat" """ - - def __init__( - self, - arg=None, - dtickrange=None, - enabled=None, - name=None, - templateitemname=None, - value=None, - **kwargs, - ): + def __init__(self, + arg=None, + dtickrange=None, + enabled=None, + name=None, + templateitemname=None, + value=None, + **kwargs + ): """ Construct a new Tickformatstop object @@ -224,10 +224,10 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") + super(Tickformatstop, self).__init__('tickformatstops') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -239,40 +239,24 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.volume.colorbar.Tickformatstop constructor must be a dict or -an instance of :class:`plotly.graph_objs.volume.colorbar.Tickformatstop`""" - ) +an instance of :class:`plotly.graph_objs.volume.colorbar.Tickformatstop`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("dtickrange", None) - _v = dtickrange if dtickrange is not None else _v - if _v is not None: - self["dtickrange"] = _v - _v = arg.pop("enabled", None) - _v = enabled if enabled is not None else _v - if _v is not None: - self["enabled"] = _v - _v = arg.pop("name", None) - _v = name if name is not None else _v - if _v is not None: - self["name"] = _v - _v = arg.pop("templateitemname", None) - _v = templateitemname if templateitemname is not None else _v - if _v is not None: - self["templateitemname"] = _v - _v = arg.pop("value", None) - _v = value if value is not None else _v - if _v is not None: - self["value"] = _v + self._init_provided('dtickrange', arg, dtickrange) + self._init_provided('enabled', arg, enabled) + self._init_provided('name', arg, name) + self._init_provided('templateitemname', arg, templateitemname) + self._init_provided('value', arg, value) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/volume/colorbar/_title.py b/packages/python/plotly/plotly/graph_objs/volume/colorbar/_title.py index fb922775750..3911e89ce1a 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/colorbar/_title.py +++ b/packages/python/plotly/plotly/graph_objs/volume/colorbar/_title.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Title(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "volume.colorbar" - _path_str = "volume.colorbar.title" + _parent_path_str = 'volume.colorbar' + _path_str = 'volume.colorbar.title' _valid_props = {"font", "side", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.volume.colorbar.title.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # side # ---- @@ -96,11 +52,11 @@ def side(self): ------- Any """ - return self["side"] + return self['side'] @side.setter def side(self, val): - self["side"] = val + self['side'] = val # text # ---- @@ -117,11 +73,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -138,8 +94,13 @@ def _prop_descriptions(self): text Sets the title of the color bar. """ - - def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + side=None, + text=None, + **kwargs + ): """ Construct a new Title object @@ -163,10 +124,10 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") + super(Title, self).__init__('title') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -178,32 +139,22 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.volume.colorbar.Title constructor must be a dict or -an instance of :class:`plotly.graph_objs.volume.colorbar.Title`""" - ) +an instance of :class:`plotly.graph_objs.volume.colorbar.Title`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("side", None) - _v = side if side is not None else _v - if _v is not None: - self["side"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('side', arg, side) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/volume/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/volume/colorbar/title/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/volume/colorbar/title/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/volume/colorbar/title/_font.py b/packages/python/plotly/plotly/graph_objs/volume/colorbar/title/_font.py index 0b90faab5db..fad8b2096df 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/graph_objs/volume/colorbar/title/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "volume.colorbar.title" - _path_str = "volume.colorbar.title.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'volume.colorbar.title' + _path_str = 'volume.colorbar.title.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.volume.colorbar.title.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.volume.colorbar.title.Font`""" - ) +an instance of :class:`plotly.graph_objs.volume.colorbar.title.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/volume/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/volume/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/volume/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/volume/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/volume/hoverlabel/_font.py index a095ce2b543..380beb2f807 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/volume/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "volume.hoverlabel" - _path_str = "volume.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'volume.hoverlabel' + _path_str = 'volume.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.volume.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.volume.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.volume.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/volume/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/volume/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/volume/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/volume/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/volume/legendgrouptitle/_font.py index 66cfcd0a4dd..3e27919704f 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/volume/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "volume.legendgrouptitle" - _path_str = "volume.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'volume.legendgrouptitle' + _path_str = 'volume.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.volume.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.volume.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.volume.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/volume/slices/__init__.py b/packages/python/plotly/plotly/graph_objs/volume/slices/__init__.py index b7c57094513..bc24ca0a556 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/slices/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/volume/slices/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._x import X from ._y import Y from ._z import Z else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._x.X", "._y.Y", "._z.Z"] + __name__, + [], + ['._x.X', '._y.Y', '._z.Z'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/volume/slices/_x.py b/packages/python/plotly/plotly/graph_objs/volume/slices/_x.py index 04d84e18475..166a6dfb6ff 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/slices/_x.py +++ b/packages/python/plotly/plotly/graph_objs/volume/slices/_x.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class X(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "volume.slices" - _path_str = "volume.slices.x" + _parent_path_str = 'volume.slices' + _path_str = 'volume.slices.x' _valid_props = {"fill", "locations", "locationssrc", "show"} # fill @@ -27,11 +29,11 @@ def fill(self): ------- int|float """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # locations # --------- @@ -49,11 +51,11 @@ def locations(self): ------- numpy.ndarray """ - return self["locations"] + return self['locations'] @locations.setter def locations(self, val): - self["locations"] = val + self['locations'] = val # locationssrc # ------------ @@ -70,11 +72,11 @@ def locationssrc(self): ------- str """ - return self["locationssrc"] + return self['locationssrc'] @locationssrc.setter def locationssrc(self, val): - self["locationssrc"] = val + self['locationssrc'] = val # show # ---- @@ -91,11 +93,11 @@ def show(self): ------- bool """ - return self["show"] + return self['show'] @show.setter def show(self, val): - self["show"] = val + self['show'] = val # Self properties description # --------------------------- @@ -119,16 +121,14 @@ def _prop_descriptions(self): Determines whether or not slice planes about the x dimension are drawn. """ - - def __init__( - self, - arg=None, - fill=None, - locations=None, - locationssrc=None, - show=None, - **kwargs, - ): + def __init__(self, + arg=None, + fill=None, + locations=None, + locationssrc=None, + show=None, + **kwargs + ): """ Construct a new X object @@ -159,10 +159,10 @@ def __init__( ------- X """ - super(X, self).__init__("x") + super(X, self).__init__('x') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -174,36 +174,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.volume.slices.X constructor must be a dict or -an instance of :class:`plotly.graph_objs.volume.slices.X`""" - ) +an instance of :class:`plotly.graph_objs.volume.slices.X`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("locations", None) - _v = locations if locations is not None else _v - if _v is not None: - self["locations"] = _v - _v = arg.pop("locationssrc", None) - _v = locationssrc if locationssrc is not None else _v - if _v is not None: - self["locationssrc"] = _v - _v = arg.pop("show", None) - _v = show if show is not None else _v - if _v is not None: - self["show"] = _v + self._init_provided('fill', arg, fill) + self._init_provided('locations', arg, locations) + self._init_provided('locationssrc', arg, locationssrc) + self._init_provided('show', arg, show) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/volume/slices/_y.py b/packages/python/plotly/plotly/graph_objs/volume/slices/_y.py index dbf474bd00d..ea8e880a4c8 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/slices/_y.py +++ b/packages/python/plotly/plotly/graph_objs/volume/slices/_y.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Y(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "volume.slices" - _path_str = "volume.slices.y" + _parent_path_str = 'volume.slices' + _path_str = 'volume.slices.y' _valid_props = {"fill", "locations", "locationssrc", "show"} # fill @@ -27,11 +29,11 @@ def fill(self): ------- int|float """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # locations # --------- @@ -49,11 +51,11 @@ def locations(self): ------- numpy.ndarray """ - return self["locations"] + return self['locations'] @locations.setter def locations(self, val): - self["locations"] = val + self['locations'] = val # locationssrc # ------------ @@ -70,11 +72,11 @@ def locationssrc(self): ------- str """ - return self["locationssrc"] + return self['locationssrc'] @locationssrc.setter def locationssrc(self, val): - self["locationssrc"] = val + self['locationssrc'] = val # show # ---- @@ -91,11 +93,11 @@ def show(self): ------- bool """ - return self["show"] + return self['show'] @show.setter def show(self, val): - self["show"] = val + self['show'] = val # Self properties description # --------------------------- @@ -119,16 +121,14 @@ def _prop_descriptions(self): Determines whether or not slice planes about the y dimension are drawn. """ - - def __init__( - self, - arg=None, - fill=None, - locations=None, - locationssrc=None, - show=None, - **kwargs, - ): + def __init__(self, + arg=None, + fill=None, + locations=None, + locationssrc=None, + show=None, + **kwargs + ): """ Construct a new Y object @@ -159,10 +159,10 @@ def __init__( ------- Y """ - super(Y, self).__init__("y") + super(Y, self).__init__('y') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -174,36 +174,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.volume.slices.Y constructor must be a dict or -an instance of :class:`plotly.graph_objs.volume.slices.Y`""" - ) +an instance of :class:`plotly.graph_objs.volume.slices.Y`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("locations", None) - _v = locations if locations is not None else _v - if _v is not None: - self["locations"] = _v - _v = arg.pop("locationssrc", None) - _v = locationssrc if locationssrc is not None else _v - if _v is not None: - self["locationssrc"] = _v - _v = arg.pop("show", None) - _v = show if show is not None else _v - if _v is not None: - self["show"] = _v + self._init_provided('fill', arg, fill) + self._init_provided('locations', arg, locations) + self._init_provided('locationssrc', arg, locationssrc) + self._init_provided('show', arg, show) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/volume/slices/_z.py b/packages/python/plotly/plotly/graph_objs/volume/slices/_z.py index 32b05693a21..4eb5cd658f9 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/slices/_z.py +++ b/packages/python/plotly/plotly/graph_objs/volume/slices/_z.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Z(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "volume.slices" - _path_str = "volume.slices.z" + _parent_path_str = 'volume.slices' + _path_str = 'volume.slices.z' _valid_props = {"fill", "locations", "locationssrc", "show"} # fill @@ -27,11 +29,11 @@ def fill(self): ------- int|float """ - return self["fill"] + return self['fill'] @fill.setter def fill(self, val): - self["fill"] = val + self['fill'] = val # locations # --------- @@ -49,11 +51,11 @@ def locations(self): ------- numpy.ndarray """ - return self["locations"] + return self['locations'] @locations.setter def locations(self, val): - self["locations"] = val + self['locations'] = val # locationssrc # ------------ @@ -70,11 +72,11 @@ def locationssrc(self): ------- str """ - return self["locationssrc"] + return self['locationssrc'] @locationssrc.setter def locationssrc(self, val): - self["locationssrc"] = val + self['locationssrc'] = val # show # ---- @@ -91,11 +93,11 @@ def show(self): ------- bool """ - return self["show"] + return self['show'] @show.setter def show(self, val): - self["show"] = val + self['show'] = val # Self properties description # --------------------------- @@ -119,16 +121,14 @@ def _prop_descriptions(self): Determines whether or not slice planes about the z dimension are drawn. """ - - def __init__( - self, - arg=None, - fill=None, - locations=None, - locationssrc=None, - show=None, - **kwargs, - ): + def __init__(self, + arg=None, + fill=None, + locations=None, + locationssrc=None, + show=None, + **kwargs + ): """ Construct a new Z object @@ -159,10 +159,10 @@ def __init__( ------- Z """ - super(Z, self).__init__("z") + super(Z, self).__init__('z') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -174,36 +174,23 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.volume.slices.Z constructor must be a dict or -an instance of :class:`plotly.graph_objs.volume.slices.Z`""" - ) +an instance of :class:`plotly.graph_objs.volume.slices.Z`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("fill", None) - _v = fill if fill is not None else _v - if _v is not None: - self["fill"] = _v - _v = arg.pop("locations", None) - _v = locations if locations is not None else _v - if _v is not None: - self["locations"] = _v - _v = arg.pop("locationssrc", None) - _v = locationssrc if locationssrc is not None else _v - if _v is not None: - self["locationssrc"] = _v - _v = arg.pop("show", None) - _v = show if show is not None else _v - if _v is not None: - self["show"] = _v + self._init_provided('fill', arg, fill) + self._init_provided('locations', arg, locations) + self._init_provided('locationssrc', arg, locationssrc) + self._init_provided('show', arg, show) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/__init__.py b/packages/python/plotly/plotly/graph_objs/waterfall/__init__.py index 6f3b73587c9..8685aa3e534 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._connector import Connector from ._decreasing import Decreasing @@ -20,27 +19,10 @@ from . import totals else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, - [ - ".connector", - ".decreasing", - ".hoverlabel", - ".increasing", - ".legendgrouptitle", - ".totals", - ], - [ - "._connector.Connector", - "._decreasing.Decreasing", - "._hoverlabel.Hoverlabel", - "._increasing.Increasing", - "._insidetextfont.Insidetextfont", - "._legendgrouptitle.Legendgrouptitle", - "._outsidetextfont.Outsidetextfont", - "._stream.Stream", - "._textfont.Textfont", - "._totals.Totals", - ], + ['.connector', '.decreasing', '.hoverlabel', '.increasing', '.legendgrouptitle', '.totals'], + ['._connector.Connector', '._decreasing.Decreasing', '._hoverlabel.Hoverlabel', '._increasing.Increasing', '._insidetextfont.Insidetextfont', '._legendgrouptitle.Legendgrouptitle', '._outsidetextfont.Outsidetextfont', '._stream.Stream', '._textfont.Textfont', '._totals.Totals'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/_connector.py b/packages/python/plotly/plotly/graph_objs/waterfall/_connector.py index 9808c28ce7c..bc020b05470 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/_connector.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/_connector.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Connector(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "waterfall" - _path_str = "waterfall.connector" + _parent_path_str = 'waterfall' + _path_str = 'waterfall.connector' _valid_props = {"line", "mode", "visible"} # line @@ -21,27 +23,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the line color. - dash - 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"). - width - Sets the line width (in px). - Returns ------- plotly.graph_objs.waterfall.connector.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # mode # ---- @@ -58,11 +48,11 @@ def mode(self): ------- Any """ - return self["mode"] + return self['mode'] @mode.setter def mode(self, val): - self["mode"] = val + self['mode'] = val # visible # ------- @@ -78,11 +68,11 @@ def visible(self): ------- bool """ - return self["visible"] + return self['visible'] @visible.setter def visible(self, val): - self["visible"] = val + self['visible'] = val # Self properties description # --------------------------- @@ -97,8 +87,13 @@ def _prop_descriptions(self): visible Determines if connector lines are drawn. """ - - def __init__(self, arg=None, line=None, mode=None, visible=None, **kwargs): + def __init__(self, + arg=None, + line=None, + mode=None, + visible=None, + **kwargs + ): """ Construct a new Connector object @@ -120,10 +115,10 @@ def __init__(self, arg=None, line=None, mode=None, visible=None, **kwargs): ------- Connector """ - super(Connector, self).__init__("connector") + super(Connector, self).__init__('connector') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -135,32 +130,22 @@ def __init__(self, arg=None, line=None, mode=None, visible=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.waterfall.Connector constructor must be a dict or -an instance of :class:`plotly.graph_objs.waterfall.Connector`""" - ) +an instance of :class:`plotly.graph_objs.waterfall.Connector`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v - _v = arg.pop("mode", None) - _v = mode if mode is not None else _v - if _v is not None: - self["mode"] = _v - _v = arg.pop("visible", None) - _v = visible if visible is not None else _v - if _v is not None: - self["visible"] = _v + self._init_provided('line', arg, line) + self._init_provided('mode', arg, mode) + self._init_provided('visible', arg, visible) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/_decreasing.py b/packages/python/plotly/plotly/graph_objs/waterfall/_decreasing.py index 452f4439615..261bd852047 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/_decreasing.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/_decreasing.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Decreasing(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "waterfall" - _path_str = "waterfall.decreasing" + _parent_path_str = 'waterfall' + _path_str = 'waterfall.decreasing' _valid_props = {"marker"} # marker @@ -21,24 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of all decreasing values. - line - :class:`plotly.graph_objects.waterfall.decreasi - ng.marker.Line` instance or dict with - compatible properties - Returns ------- plotly.graph_objs.waterfall.decreasing.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # Self properties description # --------------------------- @@ -49,8 +42,11 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.waterfall.decreasing.Marke r` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + **kwargs + ): """ Construct a new Decreasing object @@ -68,10 +64,10 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Decreasing """ - super(Decreasing, self).__init__("decreasing") + super(Decreasing, self).__init__('decreasing') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -83,24 +79,20 @@ def __init__(self, arg=None, marker=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.waterfall.Decreasing constructor must be a dict or -an instance of :class:`plotly.graph_objs.waterfall.Decreasing`""" - ) +an instance of :class:`plotly.graph_objs.waterfall.Decreasing`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v + self._init_provided('marker', arg, marker) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/_hoverlabel.py b/packages/python/plotly/plotly/graph_objs/waterfall/_hoverlabel.py index f2c8d8303c9..a8be64eaed8 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/_hoverlabel.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/_hoverlabel.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Hoverlabel(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "waterfall" - _path_str = "waterfall.hoverlabel" - _valid_props = { - "align", - "alignsrc", - "bgcolor", - "bgcolorsrc", - "bordercolor", - "bordercolorsrc", - "font", - "namelength", - "namelengthsrc", - } + _parent_path_str = 'waterfall' + _path_str = 'waterfall.hoverlabel' + _valid_props = {"align", "alignsrc", "bgcolor", "bgcolorsrc", "bordercolor", "bordercolorsrc", "font", "namelength", "namelengthsrc"} # align # ----- @@ -38,11 +30,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self["align"] + return self['align'] @align.setter def align(self, val): - self["align"] = val + self['align'] = val # alignsrc # -------- @@ -58,11 +50,11 @@ def alignsrc(self): ------- str """ - return self["alignsrc"] + return self['alignsrc'] @alignsrc.setter def alignsrc(self, val): - self["alignsrc"] = val + self['alignsrc'] = val # bgcolor # ------- @@ -76,53 +68,18 @@ def bgcolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bgcolor"] + return self['bgcolor'] @bgcolor.setter def bgcolor(self, val): - self["bgcolor"] = val + self['bgcolor'] = val # bgcolorsrc # ---------- @@ -138,11 +95,11 @@ def bgcolorsrc(self): ------- str """ - return self["bgcolorsrc"] + return self['bgcolorsrc'] @bgcolorsrc.setter def bgcolorsrc(self, val): - self["bgcolorsrc"] = val + self['bgcolorsrc'] = val # bordercolor # ----------- @@ -156,53 +113,18 @@ def bordercolor(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["bordercolor"] + return self['bordercolor'] @bordercolor.setter def bordercolor(self, val): - self["bordercolor"] = val + self['bordercolor'] = val # bordercolorsrc # -------------- @@ -219,11 +141,11 @@ def bordercolorsrc(self): ------- str """ - return self["bordercolorsrc"] + return self['bordercolorsrc'] @bordercolorsrc.setter def bordercolorsrc(self, val): - self["bordercolorsrc"] = val + self['bordercolorsrc'] = val # font # ---- @@ -238,88 +160,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. - Returns ------- plotly.graph_objs.waterfall.hoverlabel.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # namelength # ---------- @@ -342,11 +191,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self["namelength"] + return self['namelength'] @namelength.setter def namelength(self, val): - self["namelength"] = val + self['namelength'] = val # namelengthsrc # ------------- @@ -363,11 +212,11 @@ def namelengthsrc(self): ------- str """ - return self["namelengthsrc"] + return self['namelengthsrc'] @namelengthsrc.setter def namelengthsrc(self, val): - self["namelengthsrc"] = val + self['namelengthsrc'] = val # Self properties description # --------------------------- @@ -407,21 +256,19 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `namelength`. """ - - def __init__( - self, - arg=None, - align=None, - alignsrc=None, - bgcolor=None, - bgcolorsrc=None, - bordercolor=None, - bordercolorsrc=None, - font=None, - namelength=None, - namelengthsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + align=None, + alignsrc=None, + bgcolor=None, + bgcolorsrc=None, + bordercolor=None, + bordercolorsrc=None, + font=None, + namelength=None, + namelengthsrc=None, + **kwargs + ): """ Construct a new Hoverlabel object @@ -468,10 +315,10 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") + super(Hoverlabel, self).__init__('hoverlabel') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -483,56 +330,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.waterfall.Hoverlabel constructor must be a dict or -an instance of :class:`plotly.graph_objs.waterfall.Hoverlabel`""" - ) +an instance of :class:`plotly.graph_objs.waterfall.Hoverlabel`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("align", None) - _v = align if align is not None else _v - if _v is not None: - self["align"] = _v - _v = arg.pop("alignsrc", None) - _v = alignsrc if alignsrc is not None else _v - if _v is not None: - self["alignsrc"] = _v - _v = arg.pop("bgcolor", None) - _v = bgcolor if bgcolor is not None else _v - if _v is not None: - self["bgcolor"] = _v - _v = arg.pop("bgcolorsrc", None) - _v = bgcolorsrc if bgcolorsrc is not None else _v - if _v is not None: - self["bgcolorsrc"] = _v - _v = arg.pop("bordercolor", None) - _v = bordercolor if bordercolor is not None else _v - if _v is not None: - self["bordercolor"] = _v - _v = arg.pop("bordercolorsrc", None) - _v = bordercolorsrc if bordercolorsrc is not None else _v - if _v is not None: - self["bordercolorsrc"] = _v - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("namelength", None) - _v = namelength if namelength is not None else _v - if _v is not None: - self["namelength"] = _v - _v = arg.pop("namelengthsrc", None) - _v = namelengthsrc if namelengthsrc is not None else _v - if _v is not None: - self["namelengthsrc"] = _v + self._init_provided('align', arg, align) + self._init_provided('alignsrc', arg, alignsrc) + self._init_provided('bgcolor', arg, bgcolor) + self._init_provided('bgcolorsrc', arg, bgcolorsrc) + self._init_provided('bordercolor', arg, bordercolor) + self._init_provided('bordercolorsrc', arg, bordercolorsrc) + self._init_provided('font', arg, font) + self._init_provided('namelength', arg, namelength) + self._init_provided('namelengthsrc', arg, namelengthsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/_increasing.py b/packages/python/plotly/plotly/graph_objs/waterfall/_increasing.py index 3efad61d153..1997b605d58 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/_increasing.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/_increasing.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Increasing(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "waterfall" - _path_str = "waterfall.increasing" + _parent_path_str = 'waterfall' + _path_str = 'waterfall.increasing' _valid_props = {"marker"} # marker @@ -21,24 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of all increasing values. - line - :class:`plotly.graph_objects.waterfall.increasi - ng.marker.Line` instance or dict with - compatible properties - Returns ------- plotly.graph_objs.waterfall.increasing.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # Self properties description # --------------------------- @@ -49,8 +42,11 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.waterfall.increasing.Marke r` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + **kwargs + ): """ Construct a new Increasing object @@ -68,10 +64,10 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Increasing """ - super(Increasing, self).__init__("increasing") + super(Increasing, self).__init__('increasing') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -83,24 +79,20 @@ def __init__(self, arg=None, marker=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.waterfall.Increasing constructor must be a dict or -an instance of :class:`plotly.graph_objs.waterfall.Increasing`""" - ) +an instance of :class:`plotly.graph_objs.waterfall.Increasing`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v + self._init_provided('marker', arg, marker) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/_insidetextfont.py b/packages/python/plotly/plotly/graph_objs/waterfall/_insidetextfont.py index c73f7d4585a..8bc018653ca 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/_insidetextfont.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/_insidetextfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Insidetextfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "waterfall" - _path_str = "waterfall.insidetextfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'waterfall' + _path_str = 'waterfall.insidetextfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Insidetextfont object @@ -639,10 +585,10 @@ def __init__( ------- Insidetextfont """ - super(Insidetextfont, self).__init__("insidetextfont") + super(Insidetextfont, self).__init__('insidetextfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.waterfall.Insidetextfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.waterfall.Insidetextfont`""" - ) +an instance of :class:`plotly.graph_objs.waterfall.Insidetextfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/_legendgrouptitle.py b/packages/python/plotly/plotly/graph_objs/waterfall/_legendgrouptitle.py index 0cdd764056a..df36eba53d3 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/_legendgrouptitle.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Legendgrouptitle(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "waterfall" - _path_str = "waterfall.legendgrouptitle" + _parent_path_str = 'waterfall' + _path_str = 'waterfall.legendgrouptitle' _valid_props = {"font", "text"} # font @@ -23,61 +25,15 @@ def font(self): - A dict of string/value properties that will be passed to the Font constructor - Supported dict properties: - - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. - Returns ------- plotly.graph_objs.waterfall.legendgrouptitle.Font """ - return self["font"] + return self['font'] @font.setter def font(self, val): - self["font"] = val + self['font'] = val # text # ---- @@ -94,11 +50,11 @@ def text(self): ------- str """ - return self["text"] + return self['text'] @text.setter def text(self, val): - self["text"] = val + self['text'] = val # Self properties description # --------------------------- @@ -110,8 +66,12 @@ def _prop_descriptions(self): text Sets the title of the legend group. """ - - def __init__(self, arg=None, font=None, text=None, **kwargs): + def __init__(self, + arg=None, + font=None, + text=None, + **kwargs + ): """ Construct a new Legendgrouptitle object @@ -130,10 +90,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") + super(Legendgrouptitle, self).__init__('legendgrouptitle') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -145,28 +105,21 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.waterfall.Legendgrouptitle constructor must be a dict or -an instance of :class:`plotly.graph_objs.waterfall.Legendgrouptitle`""" - ) +an instance of :class:`plotly.graph_objs.waterfall.Legendgrouptitle`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("font", None) - _v = font if font is not None else _v - if _v is not None: - self["font"] = _v - _v = arg.pop("text", None) - _v = text if text is not None else _v - if _v is not None: - self["text"] = _v + self._init_provided('font', arg, font) + self._init_provided('text', arg, text) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/_outsidetextfont.py b/packages/python/plotly/plotly/graph_objs/waterfall/_outsidetextfont.py index 7ecc6cc9121..37a2b2f874b 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/_outsidetextfont.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/_outsidetextfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Outsidetextfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "waterfall" - _path_str = "waterfall.outsidetextfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'waterfall' + _path_str = 'waterfall.outsidetextfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Outsidetextfont object @@ -639,10 +585,10 @@ def __init__( ------- Outsidetextfont """ - super(Outsidetextfont, self).__init__("outsidetextfont") + super(Outsidetextfont, self).__init__('outsidetextfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.waterfall.Outsidetextfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.waterfall.Outsidetextfont`""" - ) +an instance of :class:`plotly.graph_objs.waterfall.Outsidetextfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/_stream.py b/packages/python/plotly/plotly/graph_objs/waterfall/_stream.py index 36060f46e34..e270942a3b9 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/_stream.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/_stream.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Stream(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "waterfall" - _path_str = "waterfall.stream" + _parent_path_str = 'waterfall' + _path_str = 'waterfall.stream' _valid_props = {"maxpoints", "token"} # maxpoints @@ -26,11 +28,11 @@ def maxpoints(self): ------- int|float """ - return self["maxpoints"] + return self['maxpoints'] @maxpoints.setter def maxpoints(self, val): - self["maxpoints"] = val + self['maxpoints'] = val # token # ----- @@ -48,11 +50,11 @@ def token(self): ------- str """ - return self["token"] + return self['token'] @token.setter def token(self, val): - self["token"] = val + self['token'] = val # Self properties description # --------------------------- @@ -69,8 +71,12 @@ def _prop_descriptions(self): a stream. See https://chart-studio.plotly.com/settings for more details. """ - - def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): + def __init__(self, + arg=None, + maxpoints=None, + token=None, + **kwargs + ): """ Construct a new Stream object @@ -94,10 +100,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") + super(Stream, self).__init__('stream') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -109,28 +115,21 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.waterfall.Stream constructor must be a dict or -an instance of :class:`plotly.graph_objs.waterfall.Stream`""" - ) +an instance of :class:`plotly.graph_objs.waterfall.Stream`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("maxpoints", None) - _v = maxpoints if maxpoints is not None else _v - if _v is not None: - self["maxpoints"] = _v - _v = arg.pop("token", None) - _v = token if token is not None else _v - if _v is not None: - self["token"] = _v + self._init_provided('maxpoints', arg, maxpoints) + self._init_provided('token', arg, token) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/_textfont.py b/packages/python/plotly/plotly/graph_objs/waterfall/_textfont.py index 0cab4c92c87..fac80d8fd7a 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/_textfont.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/_textfont.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "waterfall" - _path_str = "waterfall.textfont" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'waterfall' + _path_str = 'waterfall.textfont' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Textfont object @@ -639,10 +585,10 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") + super(Textfont, self).__init__('textfont') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.waterfall.Textfont constructor must be a dict or -an instance of :class:`plotly.graph_objs.waterfall.Textfont`""" - ) +an instance of :class:`plotly.graph_objs.waterfall.Textfont`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/_totals.py b/packages/python/plotly/plotly/graph_objs/waterfall/_totals.py index 48611b7b001..f0af1e4cab4 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/_totals.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/_totals.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Totals(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "waterfall" - _path_str = "waterfall.totals" + _parent_path_str = 'waterfall' + _path_str = 'waterfall.totals' _valid_props = {"marker"} # marker @@ -21,25 +23,15 @@ def marker(self): - A dict of string/value properties that will be passed to the Marker constructor - Supported dict properties: - - color - Sets the marker color of all intermediate sums - and total values. - line - :class:`plotly.graph_objects.waterfall.totals.m - arker.Line` instance or dict with compatible - properties - Returns ------- plotly.graph_objs.waterfall.totals.Marker """ - return self["marker"] + return self['marker'] @marker.setter def marker(self, val): - self["marker"] = val + self['marker'] = val # Self properties description # --------------------------- @@ -50,8 +42,11 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.waterfall.totals.Marker` instance or dict with compatible properties """ - - def __init__(self, arg=None, marker=None, **kwargs): + def __init__(self, + arg=None, + marker=None, + **kwargs + ): """ Construct a new Totals object @@ -69,10 +64,10 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Totals """ - super(Totals, self).__init__("totals") + super(Totals, self).__init__('totals') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -84,24 +79,20 @@ def __init__(self, arg=None, marker=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.waterfall.Totals constructor must be a dict or -an instance of :class:`plotly.graph_objs.waterfall.Totals`""" - ) +an instance of :class:`plotly.graph_objs.waterfall.Totals`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("marker", None) - _v = marker if marker is not None else _v - if _v is not None: - self["marker"] = _v + self._init_provided('marker', arg, marker) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/connector/__init__.py b/packages/python/plotly/plotly/graph_objs/waterfall/connector/__init__.py index 8722c15a2b8..a745ef6458a 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/connector/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/connector/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import Line else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._line.Line'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._line.Line"]) diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/connector/_line.py b/packages/python/plotly/plotly/graph_objs/waterfall/connector/_line.py index 28924db8643..547fd8bb4d1 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/connector/_line.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/connector/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "waterfall.connector" - _path_str = "waterfall.connector.line" + _parent_path_str = 'waterfall.connector' + _path_str = 'waterfall.connector.line' _valid_props = {"color", "dash", "width"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # dash # ---- @@ -89,11 +56,11 @@ def dash(self): ------- str """ - return self["dash"] + return self['dash'] @dash.setter def dash(self, val): - self["dash"] = val + self['dash'] = val # width # ----- @@ -109,11 +76,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -130,8 +97,13 @@ def _prop_descriptions(self): width Sets the line width (in px). """ - - def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): + def __init__(self, + arg=None, + color=None, + dash=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -155,10 +127,10 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -170,32 +142,22 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.waterfall.connector.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.waterfall.connector.Line`""" - ) +an instance of :class:`plotly.graph_objs.waterfall.connector.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("dash", None) - _v = dash if dash is not None else _v - if _v is not None: - self["dash"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('dash', arg, dash) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/decreasing/__init__.py b/packages/python/plotly/plotly/graph_objs/waterfall/decreasing/__init__.py index 61fdd95de62..2cd74bc4102 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/decreasing/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/decreasing/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker from . import marker else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [".marker"], ["._marker.Marker"] + __name__, + ['.marker'], + ['._marker.Marker'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/decreasing/_marker.py b/packages/python/plotly/plotly/graph_objs/waterfall/decreasing/_marker.py index 1c97357d3ce..8ae89446daf 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/decreasing/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/decreasing/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "waterfall.decreasing" - _path_str = "waterfall.decreasing.marker" + _parent_path_str = 'waterfall.decreasing' + _path_str = 'waterfall.decreasing.marker' _valid_props = {"color", "line"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # line # ---- @@ -80,22 +47,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the line color of all decreasing values. - width - Sets the line width of all decreasing values. - Returns ------- plotly.graph_objs.waterfall.decreasing.marker.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # Self properties description # --------------------------- @@ -108,8 +68,12 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.waterfall.decreasing.marke r.Line` instance or dict with compatible properties """ - - def __init__(self, arg=None, color=None, line=None, **kwargs): + def __init__(self, + arg=None, + color=None, + line=None, + **kwargs + ): """ Construct a new Marker object @@ -129,10 +93,10 @@ def __init__(self, arg=None, color=None, line=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -144,28 +108,21 @@ def __init__(self, arg=None, color=None, line=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.waterfall.decreasing.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.waterfall.decreasing.Marker`""" - ) +an instance of :class:`plotly.graph_objs.waterfall.decreasing.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v + self._init_provided('color', arg, color) + self._init_provided('line', arg, line) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/decreasing/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/waterfall/decreasing/marker/__init__.py index 8722c15a2b8..a745ef6458a 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/decreasing/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/decreasing/marker/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import Line else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._line.Line'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._line.Line"]) diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/decreasing/marker/_line.py b/packages/python/plotly/plotly/graph_objs/waterfall/decreasing/marker/_line.py index d368f65b950..e074bef17dc 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/decreasing/marker/_line.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/decreasing/marker/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "waterfall.decreasing.marker" - _path_str = "waterfall.decreasing.marker.line" + _parent_path_str = 'waterfall.decreasing.marker' + _path_str = 'waterfall.decreasing.marker.line' _valid_props = {"color", "width"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # width # ----- @@ -83,11 +50,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -99,8 +66,12 @@ def _prop_descriptions(self): width Sets the line width of all decreasing values. """ - - def __init__(self, arg=None, color=None, width=None, **kwargs): + def __init__(self, + arg=None, + color=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -119,10 +90,10 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -134,28 +105,21 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.waterfall.decreasing.marker.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.waterfall.decreasing.marker.Line`""" - ) +an instance of :class:`plotly.graph_objs.waterfall.decreasing.marker.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/waterfall/hoverlabel/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/hoverlabel/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/hoverlabel/_font.py b/packages/python/plotly/plotly/graph_objs/waterfall/hoverlabel/_font.py index 81dd9a21e9f..3db4b95a27b 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/hoverlabel/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,28 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "waterfall.hoverlabel" - _path_str = "waterfall.hoverlabel.font" - _valid_props = { - "color", - "colorsrc", - "family", - "familysrc", - "lineposition", - "linepositionsrc", - "shadow", - "shadowsrc", - "size", - "sizesrc", - "style", - "stylesrc", - "textcase", - "textcasesrc", - "variant", - "variantsrc", - "weight", - "weightsrc", - } + _parent_path_str = 'waterfall.hoverlabel' + _path_str = 'waterfall.hoverlabel.font' + _valid_props = {"color", "colorsrc", "family", "familysrc", "lineposition", "linepositionsrc", "shadow", "shadowsrc", "size", "sizesrc", "style", "stylesrc", "textcase", "textcasesrc", "variant", "variantsrc", "weight", "weightsrc"} # color # ----- @@ -39,53 +22,18 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color - A list or array of any of the above Returns ------- str|numpy.ndarray """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # colorsrc # -------- @@ -101,11 +49,11 @@ def colorsrc(self): ------- str """ - return self["colorsrc"] + return self['colorsrc'] @colorsrc.setter def colorsrc(self, val): - self["colorsrc"] = val + self['colorsrc'] = val # family # ------ @@ -133,11 +81,11 @@ def family(self): ------- str|numpy.ndarray """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # familysrc # --------- @@ -153,11 +101,11 @@ def familysrc(self): ------- str """ - return self["familysrc"] + return self['familysrc'] @familysrc.setter def familysrc(self, val): - self["familysrc"] = val + self['familysrc'] = val # lineposition # ------------ @@ -179,11 +127,11 @@ def lineposition(self): ------- Any|numpy.ndarray """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # linepositionsrc # --------------- @@ -200,11 +148,11 @@ def linepositionsrc(self): ------- str """ - return self["linepositionsrc"] + return self['linepositionsrc'] @linepositionsrc.setter def linepositionsrc(self, val): - self["linepositionsrc"] = val + self['linepositionsrc'] = val # shadow # ------ @@ -225,11 +173,11 @@ def shadow(self): ------- str|numpy.ndarray """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # shadowsrc # --------- @@ -245,11 +193,11 @@ def shadowsrc(self): ------- str """ - return self["shadowsrc"] + return self['shadowsrc'] @shadowsrc.setter def shadowsrc(self, val): - self["shadowsrc"] = val + self['shadowsrc'] = val # size # ---- @@ -264,11 +212,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # sizesrc # ------- @@ -284,11 +232,11 @@ def sizesrc(self): ------- str """ - return self["sizesrc"] + return self['sizesrc'] @sizesrc.setter def sizesrc(self, val): - self["sizesrc"] = val + self['sizesrc'] = val # style # ----- @@ -307,11 +255,11 @@ def style(self): ------- Any|numpy.ndarray """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # stylesrc # -------- @@ -327,11 +275,11 @@ def stylesrc(self): ------- str """ - return self["stylesrc"] + return self['stylesrc'] @stylesrc.setter def stylesrc(self, val): - self["stylesrc"] = val + self['stylesrc'] = val # textcase # -------- @@ -351,11 +299,11 @@ def textcase(self): ------- Any|numpy.ndarray """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # textcasesrc # ----------- @@ -371,11 +319,11 @@ def textcasesrc(self): ------- str """ - return self["textcasesrc"] + return self['textcasesrc'] @textcasesrc.setter def textcasesrc(self, val): - self["textcasesrc"] = val + self['textcasesrc'] = val # variant # ------- @@ -394,11 +342,11 @@ def variant(self): ------- Any|numpy.ndarray """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # variantsrc # ---------- @@ -414,11 +362,11 @@ def variantsrc(self): ------- str """ - return self["variantsrc"] + return self['variantsrc'] @variantsrc.setter def variantsrc(self, val): - self["variantsrc"] = val + self['variantsrc'] = val # weight # ------ @@ -437,11 +385,11 @@ def weight(self): ------- int|numpy.ndarray """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # weightsrc # --------- @@ -457,11 +405,11 @@ def weightsrc(self): ------- str """ - return self["weightsrc"] + return self['weightsrc'] @weightsrc.setter def weightsrc(self, val): - self["weightsrc"] = val + self['weightsrc'] = val # Self properties description # --------------------------- @@ -534,30 +482,28 @@ def _prop_descriptions(self): Sets the source reference on Chart Studio Cloud for `weight`. """ - - def __init__( - self, - arg=None, - color=None, - colorsrc=None, - family=None, - familysrc=None, - lineposition=None, - linepositionsrc=None, - shadow=None, - shadowsrc=None, - size=None, - sizesrc=None, - style=None, - stylesrc=None, - textcase=None, - textcasesrc=None, - variant=None, - variantsrc=None, - weight=None, - weightsrc=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + colorsrc=None, + family=None, + familysrc=None, + lineposition=None, + linepositionsrc=None, + shadow=None, + shadowsrc=None, + size=None, + sizesrc=None, + style=None, + stylesrc=None, + textcase=None, + textcasesrc=None, + variant=None, + variantsrc=None, + weight=None, + weightsrc=None, + **kwargs + ): """ Construct a new Font object @@ -639,10 +585,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -654,92 +600,37 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.waterfall.hoverlabel.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.waterfall.hoverlabel.Font`""" - ) +an instance of :class:`plotly.graph_objs.waterfall.hoverlabel.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("colorsrc", None) - _v = colorsrc if colorsrc is not None else _v - if _v is not None: - self["colorsrc"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("familysrc", None) - _v = familysrc if familysrc is not None else _v - if _v is not None: - self["familysrc"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("linepositionsrc", None) - _v = linepositionsrc if linepositionsrc is not None else _v - if _v is not None: - self["linepositionsrc"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("shadowsrc", None) - _v = shadowsrc if shadowsrc is not None else _v - if _v is not None: - self["shadowsrc"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("sizesrc", None) - _v = sizesrc if sizesrc is not None else _v - if _v is not None: - self["sizesrc"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("stylesrc", None) - _v = stylesrc if stylesrc is not None else _v - if _v is not None: - self["stylesrc"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("textcasesrc", None) - _v = textcasesrc if textcasesrc is not None else _v - if _v is not None: - self["textcasesrc"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("variantsrc", None) - _v = variantsrc if variantsrc is not None else _v - if _v is not None: - self["variantsrc"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v - _v = arg.pop("weightsrc", None) - _v = weightsrc if weightsrc is not None else _v - if _v is not None: - self["weightsrc"] = _v + self._init_provided('color', arg, color) + self._init_provided('colorsrc', arg, colorsrc) + self._init_provided('family', arg, family) + self._init_provided('familysrc', arg, familysrc) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('linepositionsrc', arg, linepositionsrc) + self._init_provided('shadow', arg, shadow) + self._init_provided('shadowsrc', arg, shadowsrc) + self._init_provided('size', arg, size) + self._init_provided('sizesrc', arg, sizesrc) + self._init_provided('style', arg, style) + self._init_provided('stylesrc', arg, stylesrc) + self._init_provided('textcase', arg, textcase) + self._init_provided('textcasesrc', arg, textcasesrc) + self._init_provided('variant', arg, variant) + self._init_provided('variantsrc', arg, variantsrc) + self._init_provided('weight', arg, weight) + self._init_provided('weightsrc', arg, weightsrc) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/increasing/__init__.py b/packages/python/plotly/plotly/graph_objs/waterfall/increasing/__init__.py index 61fdd95de62..2cd74bc4102 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/increasing/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/increasing/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker from . import marker else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [".marker"], ["._marker.Marker"] + __name__, + ['.marker'], + ['._marker.Marker'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/increasing/_marker.py b/packages/python/plotly/plotly/graph_objs/waterfall/increasing/_marker.py index d781c684bd4..8ef01633d39 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/increasing/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/increasing/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "waterfall.increasing" - _path_str = "waterfall.increasing.marker" + _parent_path_str = 'waterfall.increasing' + _path_str = 'waterfall.increasing.marker' _valid_props = {"color", "line"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # line # ---- @@ -80,22 +47,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the line color of all increasing values. - width - Sets the line width of all increasing values. - Returns ------- plotly.graph_objs.waterfall.increasing.marker.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # Self properties description # --------------------------- @@ -108,8 +68,12 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.waterfall.increasing.marke r.Line` instance or dict with compatible properties """ - - def __init__(self, arg=None, color=None, line=None, **kwargs): + def __init__(self, + arg=None, + color=None, + line=None, + **kwargs + ): """ Construct a new Marker object @@ -129,10 +93,10 @@ def __init__(self, arg=None, color=None, line=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -144,28 +108,21 @@ def __init__(self, arg=None, color=None, line=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.waterfall.increasing.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.waterfall.increasing.Marker`""" - ) +an instance of :class:`plotly.graph_objs.waterfall.increasing.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v + self._init_provided('color', arg, color) + self._init_provided('line', arg, line) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/increasing/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/waterfall/increasing/marker/__init__.py index 8722c15a2b8..a745ef6458a 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/increasing/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/increasing/marker/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import Line else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._line.Line'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._line.Line"]) diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/increasing/marker/_line.py b/packages/python/plotly/plotly/graph_objs/waterfall/increasing/marker/_line.py index 476494b42c9..2d5ee982cd5 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/increasing/marker/_line.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/increasing/marker/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "waterfall.increasing.marker" - _path_str = "waterfall.increasing.marker.line" + _parent_path_str = 'waterfall.increasing.marker' + _path_str = 'waterfall.increasing.marker.line' _valid_props = {"color", "width"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # width # ----- @@ -83,11 +50,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -99,8 +66,12 @@ def _prop_descriptions(self): width Sets the line width of all increasing values. """ - - def __init__(self, arg=None, color=None, width=None, **kwargs): + def __init__(self, + arg=None, + color=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -119,10 +90,10 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -134,28 +105,21 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.waterfall.increasing.marker.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.waterfall.increasing.marker.Line`""" - ) +an instance of :class:`plotly.graph_objs.waterfall.increasing.marker.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/graph_objs/waterfall/legendgrouptitle/__init__.py index 2b474e3e063..6799e4eba6e 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/legendgrouptitle/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import Font else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._font.Font'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"]) diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/legendgrouptitle/_font.py b/packages/python/plotly/plotly/graph_objs/waterfall/legendgrouptitle/_font.py index c4c6cc8d7e0..70422e3911d 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/legendgrouptitle/_font.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,19 +8,9 @@ class Font(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "waterfall.legendgrouptitle" - _path_str = "waterfall.legendgrouptitle.font" - _valid_props = { - "color", - "family", - "lineposition", - "shadow", - "size", - "style", - "textcase", - "variant", - "weight", - } + _parent_path_str = 'waterfall.legendgrouptitle' + _path_str = 'waterfall.legendgrouptitle.font' + _valid_props = {"color", "family", "lineposition", "shadow", "size", "style", "textcase", "variant", "weight"} # color # ----- @@ -30,52 +22,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # family # ------ @@ -102,11 +59,11 @@ def family(self): ------- str """ - return self["family"] + return self['family'] @family.setter def family(self, val): - self["family"] = val + self['family'] = val # lineposition # ------------ @@ -127,11 +84,11 @@ def lineposition(self): ------- Any """ - return self["lineposition"] + return self['lineposition'] @lineposition.setter def lineposition(self, val): - self["lineposition"] = val + self['lineposition'] = val # shadow # ------ @@ -151,11 +108,11 @@ def shadow(self): ------- str """ - return self["shadow"] + return self['shadow'] @shadow.setter def shadow(self, val): - self["shadow"] = val + self['shadow'] = val # size # ---- @@ -169,11 +126,11 @@ def size(self): ------- int|float """ - return self["size"] + return self['size'] @size.setter def size(self, val): - self["size"] = val + self['size'] = val # style # ----- @@ -191,11 +148,11 @@ def style(self): ------- Any """ - return self["style"] + return self['style'] @style.setter def style(self, val): - self["style"] = val + self['style'] = val # textcase # -------- @@ -214,11 +171,11 @@ def textcase(self): ------- Any """ - return self["textcase"] + return self['textcase'] @textcase.setter def textcase(self, val): - self["textcase"] = val + self['textcase'] = val # variant # ------- @@ -236,11 +193,11 @@ def variant(self): ------- Any """ - return self["variant"] + return self['variant'] @variant.setter def variant(self, val): - self["variant"] = val + self['variant'] = val # weight # ------ @@ -258,11 +215,11 @@ def weight(self): ------- int """ - return self["weight"] + return self['weight'] @weight.setter def weight(self, val): - self["weight"] = val + self['weight'] = val # Self properties description # --------------------------- @@ -308,21 +265,19 @@ def _prop_descriptions(self): weight Sets the weight (or boldness) of the font. """ - - def __init__( - self, - arg=None, - color=None, - family=None, - lineposition=None, - shadow=None, - size=None, - style=None, - textcase=None, - variant=None, - weight=None, - **kwargs, - ): + def __init__(self, + arg=None, + color=None, + family=None, + lineposition=None, + shadow=None, + size=None, + style=None, + textcase=None, + variant=None, + weight=None, + **kwargs + ): """ Construct a new Font object @@ -377,10 +332,10 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") + super(Font, self).__init__('font') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -392,56 +347,28 @@ def __init__( elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.waterfall.legendgrouptitle.Font constructor must be a dict or -an instance of :class:`plotly.graph_objs.waterfall.legendgrouptitle.Font`""" - ) +an instance of :class:`plotly.graph_objs.waterfall.legendgrouptitle.Font`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("family", None) - _v = family if family is not None else _v - if _v is not None: - self["family"] = _v - _v = arg.pop("lineposition", None) - _v = lineposition if lineposition is not None else _v - if _v is not None: - self["lineposition"] = _v - _v = arg.pop("shadow", None) - _v = shadow if shadow is not None else _v - if _v is not None: - self["shadow"] = _v - _v = arg.pop("size", None) - _v = size if size is not None else _v - if _v is not None: - self["size"] = _v - _v = arg.pop("style", None) - _v = style if style is not None else _v - if _v is not None: - self["style"] = _v - _v = arg.pop("textcase", None) - _v = textcase if textcase is not None else _v - if _v is not None: - self["textcase"] = _v - _v = arg.pop("variant", None) - _v = variant if variant is not None else _v - if _v is not None: - self["variant"] = _v - _v = arg.pop("weight", None) - _v = weight if weight is not None else _v - if _v is not None: - self["weight"] = _v + self._init_provided('color', arg, color) + self._init_provided('family', arg, family) + self._init_provided('lineposition', arg, lineposition) + self._init_provided('shadow', arg, shadow) + self._init_provided('size', arg, size) + self._init_provided('style', arg, style) + self._init_provided('textcase', arg, textcase) + self._init_provided('variant', arg, variant) + self._init_provided('weight', arg, weight) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/totals/__init__.py b/packages/python/plotly/plotly/graph_objs/waterfall/totals/__init__.py index 61fdd95de62..2cd74bc4102 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/totals/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/totals/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import Marker from . import marker else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [".marker"], ["._marker.Marker"] + __name__, + ['.marker'], + ['._marker.Marker'] ) + + diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/totals/_marker.py b/packages/python/plotly/plotly/graph_objs/waterfall/totals/_marker.py index 569e78ac5d5..af0e1327495 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/totals/_marker.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/totals/_marker.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Marker(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "waterfall.totals" - _path_str = "waterfall.totals.marker" + _parent_path_str = 'waterfall.totals' + _path_str = 'waterfall.totals.marker' _valid_props = {"color", "line"} # color @@ -23,52 +25,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # line # ---- @@ -81,24 +48,15 @@ def line(self): - A dict of string/value properties that will be passed to the Line constructor - Supported dict properties: - - color - Sets the line color of all intermediate sums - and total values. - width - Sets the line width of all intermediate sums - and total values. - Returns ------- plotly.graph_objs.waterfall.totals.marker.Line """ - return self["line"] + return self['line'] @line.setter def line(self, val): - self["line"] = val + self['line'] = val # Self properties description # --------------------------- @@ -112,8 +70,12 @@ def _prop_descriptions(self): :class:`plotly.graph_objects.waterfall.totals.marker.Li ne` instance or dict with compatible properties """ - - def __init__(self, arg=None, color=None, line=None, **kwargs): + def __init__(self, + arg=None, + color=None, + line=None, + **kwargs + ): """ Construct a new Marker object @@ -134,10 +96,10 @@ def __init__(self, arg=None, color=None, line=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") + super(Marker, self).__init__('marker') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -149,28 +111,21 @@ def __init__(self, arg=None, color=None, line=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.waterfall.totals.Marker constructor must be a dict or -an instance of :class:`plotly.graph_objs.waterfall.totals.Marker`""" - ) +an instance of :class:`plotly.graph_objs.waterfall.totals.Marker`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("line", None) - _v = line if line is not None else _v - if _v is not None: - self["line"] = _v + self._init_provided('color', arg, color) + self._init_provided('line', arg, line) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/totals/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/waterfall/totals/marker/__init__.py index 8722c15a2b8..a745ef6458a 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/totals/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/totals/marker/__init__.py @@ -1,9 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import Line else: from _plotly_utils.importers import relative_import + __all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ['._line.Line'] + ) + - __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._line.Line"]) diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/totals/marker/_line.py b/packages/python/plotly/plotly/graph_objs/waterfall/totals/marker/_line.py index d0eec46f41e..130f862c706 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/totals/marker/_line.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/totals/marker/_line.py @@ -1,3 +1,5 @@ + + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -6,8 +8,8 @@ class Line(_BaseTraceHierarchyType): # class properties # -------------------- - _parent_path_str = "waterfall.totals.marker" - _path_str = "waterfall.totals.marker.line" + _parent_path_str = 'waterfall.totals.marker' + _path_str = 'waterfall.totals.marker.line' _valid_props = {"color", "width"} # color @@ -22,52 +24,17 @@ def color(self): - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - - A named CSS color: - aliceblue, antiquewhite, aqua, aquamarine, azure, - beige, bisque, black, blanchedalmond, blue, - blueviolet, brown, burlywood, cadetblue, - chartreuse, chocolate, coral, cornflowerblue, - cornsilk, crimson, cyan, darkblue, darkcyan, - darkgoldenrod, darkgray, darkgrey, darkgreen, - darkkhaki, darkmagenta, darkolivegreen, darkorange, - darkorchid, darkred, darksalmon, darkseagreen, - darkslateblue, darkslategray, darkslategrey, - darkturquoise, darkviolet, deeppink, deepskyblue, - dimgray, dimgrey, dodgerblue, firebrick, - floralwhite, forestgreen, fuchsia, gainsboro, - ghostwhite, gold, goldenrod, gray, grey, green, - greenyellow, honeydew, hotpink, indianred, indigo, - ivory, khaki, lavender, lavenderblush, lawngreen, - lemonchiffon, lightblue, lightcoral, lightcyan, - lightgoldenrodyellow, lightgray, lightgrey, - lightgreen, lightpink, lightsalmon, lightseagreen, - lightskyblue, lightslategray, lightslategrey, - lightsteelblue, lightyellow, lime, limegreen, - linen, magenta, maroon, mediumaquamarine, - mediumblue, mediumorchid, mediumpurple, - mediumseagreen, mediumslateblue, mediumspringgreen, - mediumturquoise, mediumvioletred, midnightblue, - mintcream, mistyrose, moccasin, navajowhite, navy, - oldlace, olive, olivedrab, orange, orangered, - orchid, palegoldenrod, palegreen, paleturquoise, - palevioletred, papayawhip, peachpuff, peru, pink, - plum, powderblue, purple, red, rosybrown, - royalblue, rebeccapurple, saddlebrown, salmon, - sandybrown, seagreen, seashell, sienna, silver, - skyblue, slateblue, slategray, slategrey, snow, - springgreen, steelblue, tan, teal, thistle, tomato, - turquoise, violet, wheat, white, whitesmoke, - yellow, yellowgreen + - A named CSS color Returns ------- str """ - return self["color"] + return self['color'] @color.setter def color(self, val): - self["color"] = val + self['color'] = val # width # ----- @@ -83,11 +50,11 @@ def width(self): ------- int|float """ - return self["width"] + return self['width'] @width.setter def width(self, val): - self["width"] = val + self['width'] = val # Self properties description # --------------------------- @@ -101,8 +68,12 @@ def _prop_descriptions(self): Sets the line width of all intermediate sums and total values. """ - - def __init__(self, arg=None, color=None, width=None, **kwargs): + def __init__(self, + arg=None, + color=None, + width=None, + **kwargs + ): """ Construct a new Line object @@ -123,10 +94,10 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") + super(Line, self).__init__('line') - if "_parent" in kwargs: - self._parent = kwargs["_parent"] + if '_parent' in kwargs: + self._parent = kwargs['_parent'] return # Validate arg @@ -138,28 +109,21 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): elif isinstance(arg, dict): arg = _copy.copy(arg) else: - raise ValueError( - """\ + raise ValueError("""\ The first argument to the plotly.graph_objs.waterfall.totals.marker.Line constructor must be a dict or -an instance of :class:`plotly.graph_objs.waterfall.totals.marker.Line`""" - ) +an instance of :class:`plotly.graph_objs.waterfall.totals.marker.Line`""") # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop("skip_invalid", False) - self._validate = kwargs.pop("_validate", True) + self._skip_invalid = kwargs.pop('skip_invalid', False) + self._validate = kwargs.pop('_validate', True) + # Populate data dict with properties # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - _v = arg.pop("width", None) - _v = width if width is not None else _v - if _v is not None: - self["width"] = _v + self._init_provided('color', arg, color) + self._init_provided('width', arg, width) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/validators/__init__.py b/packages/python/plotly/plotly/validators/__init__.py index b1e82581049..9b8b0bd7463 100644 --- a/packages/python/plotly/plotly/validators/__init__.py +++ b/packages/python/plotly/plotly/validators/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._waterfall import WaterfallValidator from ._volume import VolumeValidator @@ -56,62 +55,10 @@ from ._data import DataValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._waterfall.WaterfallValidator", - "._volume.VolumeValidator", - "._violin.ViolinValidator", - "._treemap.TreemapValidator", - "._table.TableValidator", - "._surface.SurfaceValidator", - "._sunburst.SunburstValidator", - "._streamtube.StreamtubeValidator", - "._splom.SplomValidator", - "._scatterternary.ScatterternaryValidator", - "._scattersmith.ScattersmithValidator", - "._scatterpolargl.ScatterpolarglValidator", - "._scatterpolar.ScatterpolarValidator", - "._scattermapbox.ScattermapboxValidator", - "._scattermap.ScattermapValidator", - "._scattergl.ScatterglValidator", - "._scattergeo.ScattergeoValidator", - "._scattercarpet.ScattercarpetValidator", - "._scatter3d.Scatter3DValidator", - "._scatter.ScatterValidator", - "._sankey.SankeyValidator", - "._pie.PieValidator", - "._parcoords.ParcoordsValidator", - "._parcats.ParcatsValidator", - "._ohlc.OhlcValidator", - "._mesh3d.Mesh3DValidator", - "._isosurface.IsosurfaceValidator", - "._indicator.IndicatorValidator", - "._image.ImageValidator", - "._icicle.IcicleValidator", - "._histogram2dcontour.Histogram2DcontourValidator", - "._histogram2d.Histogram2DValidator", - "._histogram.HistogramValidator", - "._heatmap.HeatmapValidator", - "._funnelarea.FunnelareaValidator", - "._funnel.FunnelValidator", - "._densitymapbox.DensitymapboxValidator", - "._densitymap.DensitymapValidator", - "._contourcarpet.ContourcarpetValidator", - "._contour.ContourValidator", - "._cone.ConeValidator", - "._choroplethmapbox.ChoroplethmapboxValidator", - "._choroplethmap.ChoroplethmapValidator", - "._choropleth.ChoroplethValidator", - "._carpet.CarpetValidator", - "._candlestick.CandlestickValidator", - "._box.BoxValidator", - "._barpolar.BarpolarValidator", - "._bar.BarValidator", - "._layout.LayoutValidator", - "._frames.FramesValidator", - "._data.DataValidator", - ], + ['._waterfall.WaterfallValidator', '._volume.VolumeValidator', '._violin.ViolinValidator', '._treemap.TreemapValidator', '._table.TableValidator', '._surface.SurfaceValidator', '._sunburst.SunburstValidator', '._streamtube.StreamtubeValidator', '._splom.SplomValidator', '._scatterternary.ScatterternaryValidator', '._scattersmith.ScattersmithValidator', '._scatterpolargl.ScatterpolarglValidator', '._scatterpolar.ScatterpolarValidator', '._scattermapbox.ScattermapboxValidator', '._scattermap.ScattermapValidator', '._scattergl.ScatterglValidator', '._scattergeo.ScattergeoValidator', '._scattercarpet.ScattercarpetValidator', '._scatter3d.Scatter3DValidator', '._scatter.ScatterValidator', '._sankey.SankeyValidator', '._pie.PieValidator', '._parcoords.ParcoordsValidator', '._parcats.ParcatsValidator', '._ohlc.OhlcValidator', '._mesh3d.Mesh3DValidator', '._isosurface.IsosurfaceValidator', '._indicator.IndicatorValidator', '._image.ImageValidator', '._icicle.IcicleValidator', '._histogram2dcontour.Histogram2DcontourValidator', '._histogram2d.Histogram2DValidator', '._histogram.HistogramValidator', '._heatmap.HeatmapValidator', '._funnelarea.FunnelareaValidator', '._funnel.FunnelValidator', '._densitymapbox.DensitymapboxValidator', '._densitymap.DensitymapValidator', '._contourcarpet.ContourcarpetValidator', '._contour.ContourValidator', '._cone.ConeValidator', '._choroplethmapbox.ChoroplethmapboxValidator', '._choroplethmap.ChoroplethmapValidator', '._choropleth.ChoroplethValidator', '._carpet.CarpetValidator', '._candlestick.CandlestickValidator', '._box.BoxValidator', '._barpolar.BarpolarValidator', '._bar.BarValidator', '._layout.LayoutValidator', '._frames.FramesValidator', '._data.DataValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/_bar.py b/packages/python/plotly/plotly/validators/_bar.py index 35b08e62da6..c026702647f 100644 --- a/packages/python/plotly/plotly/validators/_bar.py +++ b/packages/python/plotly/plotly/validators/_bar.py @@ -1,432 +1,15 @@ -import _plotly_utils.basevalidators -class BarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="bar", parent_name="", **kwargs): - super(BarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Bar"), - data_docs=kwargs.pop( - "data_docs", - """ - alignmentgroup - Set several traces linked to the same position - axis or matching axes to the same - alignmentgroup. This controls whether bars - compute their positional range dependently or - independently. - base - Sets where the bar base is drawn (in position - axis units). In "stack" or "relative" barmode, - traces that set "base" will be excluded and - drawn in "overlay" mode instead. - basesrc - Sets the source reference on Chart Studio Cloud - for `base`. - cliponaxis - Determines whether the text nodes are clipped - about the subplot axes. To show the text nodes - above axis lines and tick labels, make sure to - set `xaxis.layer` and `yaxis.layer` to *below - traces*. - constraintext - Constrain the size of text inside or outside a - bar to be no larger than the bar itself. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - dx - Sets the x coordinate step. See `x0` for more - info. - dy - Sets the y coordinate step. See `y0` for more - info. - error_x - :class:`plotly.graph_objects.bar.ErrorX` - instance or dict with compatible properties - error_y - :class:`plotly.graph_objects.bar.ErrorY` - instance or dict with compatible properties - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.bar.Hoverlabel` - instance or dict with compatible properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Finally, the template string has access to - variables `value` and `label`. Anything - contained in tag `` is displayed in the - secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Sets hover text elements associated with each - (x,y) pair. If a single string, the same string - appears over all the data points. If an array - of string, the items are mapped in order to the - this trace's (x,y) coordinates. To be seen, - trace `hoverinfo` must contain a "text" flag. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - insidetextanchor - Determines if texts are kept at center or - start/end points in `textposition` "inside" - mode. - insidetextfont - Sets the font used for `text` lying inside the - bar. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.bar.Legendgrouptit - le` instance or dict with compatible properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - marker - :class:`plotly.graph_objects.bar.Marker` - instance or dict with compatible properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - offset - Shifts the position where the bar is drawn (in - position axis units). In "group" barmode, - traces that set "offset" will be excluded and - drawn in "overlay" mode instead. - offsetgroup - Set several traces linked to the same position - axis or matching axes to the same offsetgroup - where bars of the same position coordinate will - line up. - offsetsrc - Sets the source reference on Chart Studio Cloud - for `offset`. - opacity - Sets the opacity of the trace. - orientation - Sets the orientation of the bars. With "v" - ("h"), the value of the each bar spans along - the vertical (horizontal). - outsidetextfont - Sets the font used for `text` lying outside the - bar. - selected - :class:`plotly.graph_objects.bar.Selected` - instance or dict with compatible properties - selectedpoints - Array containing integer indices of selected - points. Has an effect only for traces that - support selections. Note that an empty array - means an empty selection where the `unselected` - are turned on for all points, whereas, any - other non-array values means no selection all - where the `selected` and `unselected` styles - have no effect. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - stream - :class:`plotly.graph_objects.bar.Stream` - instance or dict with compatible properties - text - Sets text elements associated with each (x,y) - pair. If a single string, the same string - appears over all the data points. If an array - of string, the items are mapped in order to the - this trace's (x,y) coordinates. If trace - `hoverinfo` contains a "text" flag and - "hovertext" is not set, these elements will be - seen in the hover labels. - textangle - Sets the angle of the tick labels with respect - to the bar. For example, a `tickangle` of -90 - draws the tick labels vertically. With "auto" - the texts may automatically be rotated to fit - with the maximum size in bars. - textfont - Sets the font used for `text`. - textposition - Specifies the location of the `text`. "inside" - positions `text` inside, next to the bar end - (rotated and scaled if needed). "outside" - positions `text` outside, next to the bar end - (scaled if needed), unless there is another bar - stacked on this one, then the text gets pushed - inside. "auto" tries to position `text` inside - the bar, but if the bar is too small and no bar - is stacked on this one the text is moved - outside. If "none", no text appears. - textpositionsrc - Sets the source reference on Chart Studio Cloud - for `textposition`. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - texttemplate - Template string used for rendering the - information text that appear on points. Note - that this will override `textinfo`. Variables - are inserted using %{variable}, for example "y: - %{y}". Numbers are formatted using d3-format's - syntax %{variable:d3-format}, for example - "Price: %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. Every attributes - that can be specified per-point (the ones that - are `arrayOk: true`) are available. Finally, - the template string has access to variables - `value` and `label`. - texttemplatesrc - Sets the source reference on Chart Studio Cloud - for `texttemplate`. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - unselected - :class:`plotly.graph_objects.bar.Unselected` - instance or dict with compatible properties - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - width - Sets the bar width (in position axis units). - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. - x - Sets the x coordinates. - x0 - Alternate to `x`. Builds a linear space of x - coordinates. Use with `dx` where `x0` is the - starting coordinate and `dx` the step. - xaxis - Sets a reference between this trace's x - coordinates and a 2D cartesian x axis. If "x" - (the default value), the x coordinates refer to - `layout.xaxis`. If "x2", the x coordinates - refer to `layout.xaxis2`, and so on. - xcalendar - Sets the calendar system to use with `x` date - data. - xhoverformat - Sets the hover text formatting rulefor `x` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `xaxis.hoverformat`. - xperiod - Only relevant when the axis `type` is "date". - Sets the period positioning in milliseconds or - "M" on the x axis. Special values in the - form of "M" could be used to declare the - number of months. In this case `n` must be a - positive integer. - xperiod0 - Only relevant when the axis `type` is "date". - Sets the base for period positioning in - milliseconds or date string on the x0 axis. - When `x0period` is round number of weeks, the - `x0period0` by default would be on a Sunday - i.e. 2000-01-02, otherwise it would be at - 2000-01-01. - xperiodalignment - Only relevant when the axis `type` is "date". - Sets the alignment of data points on the x - axis. - xsrc - Sets the source reference on Chart Studio Cloud - for `x`. - y - Sets the y coordinates. - y0 - Alternate to `y`. Builds a linear space of y - coordinates. Use with `dy` where `y0` is the - starting coordinate and `dy` the step. - yaxis - Sets a reference between this trace's y - coordinates and a 2D cartesian y axis. If "y" - (the default value), the y coordinates refer to - `layout.yaxis`. If "y2", the y coordinates - refer to `layout.yaxis2`, and so on. - ycalendar - Sets the calendar system to use with `y` date - data. - yhoverformat - Sets the hover text formatting rulefor `y` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `yaxis.hoverformat`. - yperiod - Only relevant when the axis `type` is "date". - Sets the period positioning in milliseconds or - "M" on the y axis. Special values in the - form of "M" could be used to declare the - number of months. In this case `n` must be a - positive integer. - yperiod0 - Only relevant when the axis `type` is "date". - Sets the base for period positioning in - milliseconds or date string on the y0 axis. - When `y0period` is round number of weeks, the - `y0period0` by default would be on a Sunday - i.e. 2000-01-02, otherwise it would be at - 2000-01-01. - yperiodalignment - Only relevant when the axis `type` is "date". - Sets the alignment of data points on the y - axis. - ysrc - Sets the source reference on Chart Studio Cloud - for `y`. - zorder - Sets the layer on which this trace is - displayed, relative to other SVG traces on the - same subplot. SVG traces with higher `zorder` - appear in front of those with lower `zorder`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='bar', + parent_name='', + **kwargs): + super(BarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Bar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_barpolar.py b/packages/python/plotly/plotly/validators/_barpolar.py index ab03a272a2e..614b162469c 100644 --- a/packages/python/plotly/plotly/validators/_barpolar.py +++ b/packages/python/plotly/plotly/validators/_barpolar.py @@ -1,257 +1,15 @@ -import _plotly_utils.basevalidators -class BarpolarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="barpolar", parent_name="", **kwargs): - super(BarpolarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Barpolar"), - data_docs=kwargs.pop( - "data_docs", - """ - base - Sets where the bar base is drawn (in radial - axis units). In "stack" barmode, traces that - set "base" will be excluded and drawn in - "overlay" mode instead. - basesrc - Sets the source reference on Chart Studio Cloud - for `base`. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - dr - Sets the r coordinate step. - dtheta - Sets the theta coordinate step. By default, the - `dtheta` step equals the subplot's period - divided by the length of the `r` coordinates. - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.barpolar.Hoverlabe - l` instance or dict with compatible properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Same as `text`. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.barpolar.Legendgro - uptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - marker - :class:`plotly.graph_objects.barpolar.Marker` - instance or dict with compatible properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - offset - Shifts the angular position where the bar is - drawn (in "thetatunit" units). - offsetsrc - Sets the source reference on Chart Studio Cloud - for `offset`. - opacity - Sets the opacity of the trace. - r - Sets the radial coordinates - r0 - Alternate to `r`. Builds a linear space of r - coordinates. Use with `dr` where `r0` is the - starting coordinate and `dr` the step. - rsrc - Sets the source reference on Chart Studio Cloud - for `r`. - selected - :class:`plotly.graph_objects.barpolar.Selected` - instance or dict with compatible properties - selectedpoints - Array containing integer indices of selected - points. Has an effect only for traces that - support selections. Note that an empty array - means an empty selection where the `unselected` - are turned on for all points, whereas, any - other non-array values means no selection all - where the `selected` and `unselected` styles - have no effect. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - stream - :class:`plotly.graph_objects.barpolar.Stream` - instance or dict with compatible properties - subplot - Sets a reference between this trace's data - coordinates and a polar subplot. If "polar" - (the default value), the data refer to - `layout.polar`. If "polar2", the data refer to - `layout.polar2`, and so on. - text - Sets hover text elements associated with each - bar. If a single string, the same string - appears over all bars. If an array of string, - the items are mapped in order to the this - trace's coordinates. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - theta - Sets the angular coordinates - theta0 - Alternate to `theta`. Builds a linear space of - theta coordinates. Use with `dtheta` where - `theta0` is the starting coordinate and - `dtheta` the step. - thetasrc - Sets the source reference on Chart Studio Cloud - for `theta`. - thetaunit - Sets the unit of input "theta" values. Has an - effect only when on "linear" angular axes. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - unselected - :class:`plotly.graph_objects.barpolar.Unselecte - d` instance or dict with compatible properties - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - width - Sets the bar angular width (in "thetaunit" - units). - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BarpolarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='barpolar', + parent_name='', + **kwargs): + super(BarpolarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Barpolar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_box.py b/packages/python/plotly/plotly/validators/_box.py index cfbcebe3736..2d13713ca82 100644 --- a/packages/python/plotly/plotly/validators/_box.py +++ b/packages/python/plotly/plotly/validators/_box.py @@ -1,515 +1,15 @@ -import _plotly_utils.basevalidators -class BoxValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="box", parent_name="", **kwargs): - super(BoxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Box"), - data_docs=kwargs.pop( - "data_docs", - """ - alignmentgroup - Set several traces linked to the same position - axis or matching axes to the same - alignmentgroup. This controls whether bars - compute their positional range dependently or - independently. - boxmean - If True, the mean of the box(es)' underlying - distribution is drawn as a dashed line inside - the box(es). If "sd" the standard deviation is - also drawn. Defaults to True when `mean` is - set. Defaults to "sd" when `sd` is set - Otherwise defaults to False. - boxpoints - If "outliers", only the sample points lying - outside the whiskers are shown If - "suspectedoutliers", the outlier points are - shown and points either less than 4*Q1-3*Q3 or - greater than 4*Q3-3*Q1 are highlighted (see - `outliercolor`) If "all", all sample points are - shown If False, only the box(es) are shown with - no sample points Defaults to - "suspectedoutliers" when `marker.outliercolor` - or `marker.line.outliercolor` is set. Defaults - to "all" under the q1/median/q3 signature. - Otherwise defaults to "outliers". - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - dx - Sets the x coordinate step for multi-box traces - set using q1/median/q3. - dy - Sets the y coordinate step for multi-box traces - set using q1/median/q3. - fillcolor - Sets the fill color. Defaults to a half- - transparent variant of the line color, marker - color, or marker line color, whichever is - available. - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.box.Hoverlabel` - instance or dict with compatible properties - hoveron - Do the hover effects highlight individual boxes - or sample points or both? - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Same as `text`. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - jitter - Sets the amount of jitter in the sample points - drawn. If 0, the sample points align along the - distribution axis. If 1, the sample points are - drawn in a random jitter of width equal to the - width of the box(es). - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.box.Legendgrouptit - le` instance or dict with compatible properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - line - :class:`plotly.graph_objects.box.Line` instance - or dict with compatible properties - lowerfence - Sets the lower fence values. There should be as - many items as the number of boxes desired. This - attribute has effect only under the - q1/median/q3 signature. If `lowerfence` is not - provided but a sample (in `y` or `x`) is set, - we compute the lower as the last sample point - below 1.5 times the IQR. - lowerfencesrc - Sets the source reference on Chart Studio Cloud - for `lowerfence`. - marker - :class:`plotly.graph_objects.box.Marker` - instance or dict with compatible properties - mean - Sets the mean values. There should be as many - items as the number of boxes desired. This - attribute has effect only under the - q1/median/q3 signature. If `mean` is not - provided but a sample (in `y` or `x`) is set, - we compute the mean for each box using the - sample values. - meansrc - Sets the source reference on Chart Studio Cloud - for `mean`. - median - Sets the median values. There should be as many - items as the number of boxes desired. - mediansrc - Sets the source reference on Chart Studio Cloud - for `median`. - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. For box traces, - the name will also be used for the position - coordinate, if `x` and `x0` (`y` and `y0` if - horizontal) are missing and the position axis - is categorical - notched - Determines whether or not notches are drawn. - Notches displays a confidence interval around - the median. We compute the confidence interval - as median +/- 1.57 * IQR / sqrt(N), where IQR - is the interquartile range and N is the sample - size. If two boxes' notches do not overlap - there is 95% confidence their medians differ. - See https://sites.google.com/site/davidsstatist - ics/home/notched-box-plots for more info. - Defaults to False unless `notchwidth` or - `notchspan` is set. - notchspan - Sets the notch span from the boxes' `median` - values. There should be as many items as the - number of boxes desired. This attribute has - effect only under the q1/median/q3 signature. - If `notchspan` is not provided but a sample (in - `y` or `x`) is set, we compute it as 1.57 * IQR - / sqrt(N), where N is the sample size. - notchspansrc - Sets the source reference on Chart Studio Cloud - for `notchspan`. - notchwidth - Sets the width of the notches relative to the - box' width. For example, with 0, the notches - are as wide as the box(es). - offsetgroup - Set several traces linked to the same position - axis or matching axes to the same offsetgroup - where bars of the same position coordinate will - line up. - opacity - Sets the opacity of the trace. - orientation - Sets the orientation of the box(es). If "v" - ("h"), the distribution is visualized along the - vertical (horizontal). - pointpos - Sets the position of the sample points in - relation to the box(es). If 0, the sample - points are places over the center of the - box(es). Positive (negative) values correspond - to positions to the right (left) for vertical - boxes and above (below) for horizontal boxes - q1 - Sets the Quartile 1 values. There should be as - many items as the number of boxes desired. - q1src - Sets the source reference on Chart Studio Cloud - for `q1`. - q3 - Sets the Quartile 3 values. There should be as - many items as the number of boxes desired. - q3src - Sets the source reference on Chart Studio Cloud - for `q3`. - quartilemethod - Sets the method used to compute the sample's Q1 - and Q3 quartiles. The "linear" method uses the - 25th percentile for Q1 and 75th percentile for - Q3 as computed using method #10 (listed on - http://jse.amstat.org/v14n3/langford.html). The - "exclusive" method uses the median to divide - the ordered dataset into two halves if the - sample is odd, it does not include the median - in either half - Q1 is then the median of the - lower half and Q3 the median of the upper half. - The "inclusive" method also uses the median to - divide the ordered dataset into two halves but - if the sample is odd, it includes the median in - both halves - Q1 is then the median of the - lower half and Q3 the median of the upper half. - sd - Sets the standard deviation values. There - should be as many items as the number of boxes - desired. This attribute has effect only under - the q1/median/q3 signature. If `sd` is not - provided but a sample (in `y` or `x`) is set, - we compute the standard deviation for each box - using the sample values. - sdmultiple - Scales the box size when sizemode=sd Allowing - boxes to be drawn across any stddev range For - example 1-stddev, 3-stddev, 5-stddev - sdsrc - Sets the source reference on Chart Studio Cloud - for `sd`. - selected - :class:`plotly.graph_objects.box.Selected` - instance or dict with compatible properties - selectedpoints - Array containing integer indices of selected - points. Has an effect only for traces that - support selections. Note that an empty array - means an empty selection where the `unselected` - are turned on for all points, whereas, any - other non-array values means no selection all - where the `selected` and `unselected` styles - have no effect. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - showwhiskers - Determines whether or not whiskers are visible. - Defaults to true for `sizemode` "quartiles", - false for "sd". - sizemode - Sets the upper and lower bound for the boxes - quartiles means box is drawn between Q1 and Q3 - SD means the box is drawn between Mean +- - Standard Deviation Argument sdmultiple (default - 1) to scale the box size So it could be drawn - 1-stddev, 3-stddev etc - stream - :class:`plotly.graph_objects.box.Stream` - instance or dict with compatible properties - text - Sets the text elements associated with each - sample value. If a single string, the same - string appears over all the data points. If an - array of string, the items are mapped in order - to the this trace's (x,y) coordinates. To be - seen, trace `hoverinfo` must contain a "text" - flag. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - unselected - :class:`plotly.graph_objects.box.Unselected` - instance or dict with compatible properties - upperfence - Sets the upper fence values. There should be as - many items as the number of boxes desired. This - attribute has effect only under the - q1/median/q3 signature. If `upperfence` is not - provided but a sample (in `y` or `x`) is set, - we compute the upper as the last sample point - above 1.5 times the IQR. - upperfencesrc - Sets the source reference on Chart Studio Cloud - for `upperfence`. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - whiskerwidth - Sets the width of the whiskers relative to the - box' width. For example, with 1, the whiskers - are as wide as the box(es). - width - Sets the width of the box in data coordinate If - 0 (default value) the width is automatically - selected based on the positions of other box - traces in the same subplot. - x - Sets the x sample data or coordinates. See - overview for more info. - x0 - Sets the x coordinate for single-box traces or - the starting coordinate for multi-box traces - set using q1/median/q3. See overview for more - info. - xaxis - Sets a reference between this trace's x - coordinates and a 2D cartesian x axis. If "x" - (the default value), the x coordinates refer to - `layout.xaxis`. If "x2", the x coordinates - refer to `layout.xaxis2`, and so on. - xcalendar - Sets the calendar system to use with `x` date - data. - xhoverformat - Sets the hover text formatting rulefor `x` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `xaxis.hoverformat`. - xperiod - Only relevant when the axis `type` is "date". - Sets the period positioning in milliseconds or - "M" on the x axis. Special values in the - form of "M" could be used to declare the - number of months. In this case `n` must be a - positive integer. - xperiod0 - Only relevant when the axis `type` is "date". - Sets the base for period positioning in - milliseconds or date string on the x0 axis. - When `x0period` is round number of weeks, the - `x0period0` by default would be on a Sunday - i.e. 2000-01-02, otherwise it would be at - 2000-01-01. - xperiodalignment - Only relevant when the axis `type` is "date". - Sets the alignment of data points on the x - axis. - xsrc - Sets the source reference on Chart Studio Cloud - for `x`. - y - Sets the y sample data or coordinates. See - overview for more info. - y0 - Sets the y coordinate for single-box traces or - the starting coordinate for multi-box traces - set using q1/median/q3. See overview for more - info. - yaxis - Sets a reference between this trace's y - coordinates and a 2D cartesian y axis. If "y" - (the default value), the y coordinates refer to - `layout.yaxis`. If "y2", the y coordinates - refer to `layout.yaxis2`, and so on. - ycalendar - Sets the calendar system to use with `y` date - data. - yhoverformat - Sets the hover text formatting rulefor `y` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `yaxis.hoverformat`. - yperiod - Only relevant when the axis `type` is "date". - Sets the period positioning in milliseconds or - "M" on the y axis. Special values in the - form of "M" could be used to declare the - number of months. In this case `n` must be a - positive integer. - yperiod0 - Only relevant when the axis `type` is "date". - Sets the base for period positioning in - milliseconds or date string on the y0 axis. - When `y0period` is round number of weeks, the - `y0period0` by default would be on a Sunday - i.e. 2000-01-02, otherwise it would be at - 2000-01-01. - yperiodalignment - Only relevant when the axis `type` is "date". - Sets the alignment of data points on the y - axis. - ysrc - Sets the source reference on Chart Studio Cloud - for `y`. - zorder - Sets the layer on which this trace is - displayed, relative to other SVG traces on the - same subplot. SVG traces with higher `zorder` - appear in front of those with lower `zorder`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BoxValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='box', + parent_name='', + **kwargs): + super(BoxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Box'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_candlestick.py b/packages/python/plotly/plotly/validators/_candlestick.py index 10e589d82d0..78fb48eb4e3 100644 --- a/packages/python/plotly/plotly/validators/_candlestick.py +++ b/packages/python/plotly/plotly/validators/_candlestick.py @@ -1,269 +1,15 @@ -import _plotly_utils.basevalidators -class CandlestickValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="candlestick", parent_name="", **kwargs): - super(CandlestickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Candlestick"), - data_docs=kwargs.pop( - "data_docs", - """ - close - Sets the close values. - closesrc - Sets the source reference on Chart Studio Cloud - for `close`. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - decreasing - :class:`plotly.graph_objects.candlestick.Decrea - sing` instance or dict with compatible - properties - high - Sets the high values. - highsrc - Sets the source reference on Chart Studio Cloud - for `high`. - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.candlestick.Hoverl - abel` instance or dict with compatible - properties - hovertext - Same as `text`. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - increasing - :class:`plotly.graph_objects.candlestick.Increa - sing` instance or dict with compatible - properties - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.candlestick.Legend - grouptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - line - :class:`plotly.graph_objects.candlestick.Line` - instance or dict with compatible properties - low - Sets the low values. - lowsrc - Sets the source reference on Chart Studio Cloud - for `low`. - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - opacity - Sets the opacity of the trace. - open - Sets the open values. - opensrc - Sets the source reference on Chart Studio Cloud - for `open`. - selectedpoints - Array containing integer indices of selected - points. Has an effect only for traces that - support selections. Note that an empty array - means an empty selection where the `unselected` - are turned on for all points, whereas, any - other non-array values means no selection all - where the `selected` and `unselected` styles - have no effect. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - stream - :class:`plotly.graph_objects.candlestick.Stream - ` instance or dict with compatible properties - text - Sets hover text elements associated with each - sample point. If a single string, the same - string appears over all the data points. If an - array of string, the items are mapped in order - to this trace's sample points. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - whiskerwidth - Sets the width of the whiskers relative to the - box' width. For example, with 1, the whiskers - are as wide as the box(es). - x - Sets the x coordinates. If absent, linear - coordinate will be generated. - xaxis - Sets a reference between this trace's x - coordinates and a 2D cartesian x axis. If "x" - (the default value), the x coordinates refer to - `layout.xaxis`. If "x2", the x coordinates - refer to `layout.xaxis2`, and so on. - xcalendar - Sets the calendar system to use with `x` date - data. - xhoverformat - Sets the hover text formatting rulefor `x` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `xaxis.hoverformat`. - xperiod - Only relevant when the axis `type` is "date". - Sets the period positioning in milliseconds or - "M" on the x axis. Special values in the - form of "M" could be used to declare the - number of months. In this case `n` must be a - positive integer. - xperiod0 - Only relevant when the axis `type` is "date". - Sets the base for period positioning in - milliseconds or date string on the x0 axis. - When `x0period` is round number of weeks, the - `x0period0` by default would be on a Sunday - i.e. 2000-01-02, otherwise it would be at - 2000-01-01. - xperiodalignment - Only relevant when the axis `type` is "date". - Sets the alignment of data points on the x - axis. - xsrc - Sets the source reference on Chart Studio Cloud - for `x`. - yaxis - Sets a reference between this trace's y - coordinates and a 2D cartesian y axis. If "y" - (the default value), the y coordinates refer to - `layout.yaxis`. If "y2", the y coordinates - refer to `layout.yaxis2`, and so on. - yhoverformat - Sets the hover text formatting rulefor `y` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `yaxis.hoverformat`. - zorder - Sets the layer on which this trace is - displayed, relative to other SVG traces on the - same subplot. SVG traces with higher `zorder` - appear in front of those with lower `zorder`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CandlestickValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='candlestick', + parent_name='', + **kwargs): + super(CandlestickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Candlestick'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_carpet.py b/packages/python/plotly/plotly/validators/_carpet.py index aaf53aaa0d9..bab31d346c0 100644 --- a/packages/python/plotly/plotly/validators/_carpet.py +++ b/packages/python/plotly/plotly/validators/_carpet.py @@ -1,195 +1,15 @@ -import _plotly_utils.basevalidators -class CarpetValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="carpet", parent_name="", **kwargs): - super(CarpetValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Carpet"), - data_docs=kwargs.pop( - "data_docs", - """ - a - An array containing values of the first - parameter value - a0 - Alternate to `a`. Builds a linear space of a - coordinates. Use with `da` where `a0` is the - starting coordinate and `da` the step. - aaxis - :class:`plotly.graph_objects.carpet.Aaxis` - instance or dict with compatible properties - asrc - Sets the source reference on Chart Studio Cloud - for `a`. - b - A two dimensional array of y coordinates at - each carpet point. - b0 - Alternate to `b`. Builds a linear space of a - coordinates. Use with `db` where `b0` is the - starting coordinate and `db` the step. - baxis - :class:`plotly.graph_objects.carpet.Baxis` - instance or dict with compatible properties - bsrc - Sets the source reference on Chart Studio Cloud - for `b`. - carpet - An identifier for this carpet, so that - `scattercarpet` and `contourcarpet` traces can - specify a carpet plot on which they lie - cheaterslope - The shift applied to each successive row of - data in creating a cheater plot. Only used if - `x` is been omitted. - color - Sets default for all colors associated with - this axis all at once: line, font, tick, and - grid colors. Grid color is lightened by - blending this with the plot background - Individual pieces can override this. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - da - Sets the a coordinate step. See `a0` for more - info. - db - Sets the b coordinate step. See `b0` for more - info. - font - The default font used for axis & tick labels on - this carpet - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgrouptitle - :class:`plotly.graph_objects.carpet.Legendgroup - title` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - opacity - Sets the opacity of the trace. - stream - :class:`plotly.graph_objects.carpet.Stream` - instance or dict with compatible properties - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - x - A two dimensional array of x coordinates at - each carpet point. If omitted, the plot is a - cheater plot and the xaxis is hidden by - default. - xaxis - Sets a reference between this trace's x - coordinates and a 2D cartesian x axis. If "x" - (the default value), the x coordinates refer to - `layout.xaxis`. If "x2", the x coordinates - refer to `layout.xaxis2`, and so on. - xsrc - Sets the source reference on Chart Studio Cloud - for `x`. - y - A two dimensional array of y coordinates at - each carpet point. - yaxis - Sets a reference between this trace's y - coordinates and a 2D cartesian y axis. If "y" - (the default value), the y coordinates refer to - `layout.yaxis`. If "y2", the y coordinates - refer to `layout.yaxis2`, and so on. - ysrc - Sets the source reference on Chart Studio Cloud - for `y`. - zorder - Sets the layer on which this trace is - displayed, relative to other SVG traces on the - same subplot. SVG traces with higher `zorder` - appear in front of those with lower `zorder`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CarpetValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='carpet', + parent_name='', + **kwargs): + super(CarpetValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Carpet'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_choropleth.py b/packages/python/plotly/plotly/validators/_choropleth.py index 010ef0d4015..854db950bf1 100644 --- a/packages/python/plotly/plotly/validators/_choropleth.py +++ b/packages/python/plotly/plotly/validators/_choropleth.py @@ -1,302 +1,15 @@ -import _plotly_utils.basevalidators -class ChoroplethValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="choropleth", parent_name="", **kwargs): - super(ChoroplethValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Choropleth"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `colorscale`. In case - `colorscale` is unspecified or `autocolorscale` - is true, the default palette will be chosen - according to whether numbers in the `color` - array are all positive, all negative or mixed. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.choropleth.ColorBa - r` instance or dict with compatible properties - colorscale - Sets the colorscale. The colorscale must be an - array containing arrays mapping a normalized - value to an rgb, rgba, hex, hsl, hsv, or named - color string. At minimum, a mapping for the - lowest (0) and highest (1) values are required. - For example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use `zmin` and - `zmax`. Alternatively, `colorscale` may be a - palette name string of the following list: Blac - kbody,Bluered,Blues,Cividis,Earth,Electric,Gree - ns,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,R - eds,Viridis,YlGnBu,YlOrRd. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - featureidkey - Sets the key in GeoJSON features which is used - as id to match the items included in the - `locations` array. Only has an effect when - `geojson` is set. Support nested property, for - example "properties.name". - geo - Sets a reference between this trace's - geospatial coordinates and a geographic map. If - "geo" (the default value), the geospatial - coordinates refer to `layout.geo`. If "geo2", - the geospatial coordinates refer to - `layout.geo2`, and so on. - geojson - Sets optional GeoJSON data associated with this - trace. If not given, the features on the base - map are used. It can be set as a valid GeoJSON - object or as a URL string. Note that we only - accept GeoJSONs of type "FeatureCollection" or - "Feature" with geometries of type "Polygon" or - "MultiPolygon". - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.choropleth.Hoverla - bel` instance or dict with compatible - properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Same as `text`. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.choropleth.Legendg - rouptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - locationmode - Determines the set of locations used to match - entries in `locations` to regions on the map. - Values "ISO-3", "USA-states", *country names* - correspond to features on the base map and - value "geojson-id" corresponds to features from - a custom GeoJSON linked to the `geojson` - attribute. - locations - Sets the coordinates via location IDs or names. - See `locationmode` for more info. - locationssrc - Sets the source reference on Chart Studio Cloud - for `locations`. - marker - :class:`plotly.graph_objects.choropleth.Marker` - instance or dict with compatible properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - reversescale - Reverses the color mapping if true. If true, - `zmin` will correspond to the last color in the - array and `zmax` will correspond to the first - color. - selected - :class:`plotly.graph_objects.choropleth.Selecte - d` instance or dict with compatible properties - selectedpoints - Array containing integer indices of selected - points. Has an effect only for traces that - support selections. Note that an empty array - means an empty selection where the `unselected` - are turned on for all points, whereas, any - other non-array values means no selection all - where the `selected` and `unselected` styles - have no effect. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - showscale - Determines whether or not a colorbar is - displayed for this trace. - stream - :class:`plotly.graph_objects.choropleth.Stream` - instance or dict with compatible properties - text - Sets the text elements associated with each - location. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - unselected - :class:`plotly.graph_objects.choropleth.Unselec - ted` instance or dict with compatible - properties - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - z - Sets the color values. - zauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `z`) or the bounds set in `zmin` and `zmax` - Defaults to `false` when `zmin` and `zmax` are - set by the user. - zmax - Sets the upper bound of the color domain. Value - should have the same units as in `z` and if - set, `zmin` must be set as well. - zmid - Sets the mid-point of the color domain by - scaling `zmin` and/or `zmax` to be equidistant - to this point. Value should have the same units - as in `z`. Has no effect when `zauto` is - `false`. - zmin - Sets the lower bound of the color domain. Value - should have the same units as in `z` and if - set, `zmax` must be set as well. - zsrc - Sets the source reference on Chart Studio Cloud - for `z`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ChoroplethValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='choropleth', + parent_name='', + **kwargs): + super(ChoroplethValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Choropleth'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_choroplethmap.py b/packages/python/plotly/plotly/validators/_choroplethmap.py index 6efaef49419..73622c21dd8 100644 --- a/packages/python/plotly/plotly/validators/_choroplethmap.py +++ b/packages/python/plotly/plotly/validators/_choroplethmap.py @@ -1,300 +1,15 @@ -import _plotly_utils.basevalidators -class ChoroplethmapValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="choroplethmap", parent_name="", **kwargs): - super(ChoroplethmapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Choroplethmap"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `colorscale`. In case - `colorscale` is unspecified or `autocolorscale` - is true, the default palette will be chosen - according to whether numbers in the `color` - array are all positive, all negative or mixed. - below - Determines if the choropleth polygons will be - inserted before the layer with the specified - ID. By default, choroplethmap traces are placed - above the water layers. If set to '', the layer - will be inserted above every existing layer. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.choroplethmap.Colo - rBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. The colorscale must be an - array containing arrays mapping a normalized - value to an rgb, rgba, hex, hsl, hsv, or named - color string. At minimum, a mapping for the - lowest (0) and highest (1) values are required. - For example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use `zmin` and - `zmax`. Alternatively, `colorscale` may be a - palette name string of the following list: Blac - kbody,Bluered,Blues,Cividis,Earth,Electric,Gree - ns,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,R - eds,Viridis,YlGnBu,YlOrRd. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - featureidkey - Sets the key in GeoJSON features which is used - as id to match the items included in the - `locations` array. Support nested property, for - example "properties.name". - geojson - Sets the GeoJSON data associated with this - trace. It can be set as a valid GeoJSON object - or as a URL string. Note that we only accept - GeoJSONs of type "FeatureCollection" or - "Feature" with geometries of type "Polygon" or - "MultiPolygon". - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.choroplethmap.Hove - rlabel` instance or dict with compatible - properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Finally, the template string has access to - variable `properties` Anything contained in tag - `` is displayed in the secondary box, - for example "{fullData.name}". - To hide the secondary box completely, use an - empty tag ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Same as `text`. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.choroplethmap.Lege - ndgrouptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - locations - Sets which features found in "geojson" to plot - using their feature `id` field. - locationssrc - Sets the source reference on Chart Studio Cloud - for `locations`. - marker - :class:`plotly.graph_objects.choroplethmap.Mark - er` instance or dict with compatible properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - reversescale - Reverses the color mapping if true. If true, - `zmin` will correspond to the last color in the - array and `zmax` will correspond to the first - color. - selected - :class:`plotly.graph_objects.choroplethmap.Sele - cted` instance or dict with compatible - properties - selectedpoints - Array containing integer indices of selected - points. Has an effect only for traces that - support selections. Note that an empty array - means an empty selection where the `unselected` - are turned on for all points, whereas, any - other non-array values means no selection all - where the `selected` and `unselected` styles - have no effect. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - showscale - Determines whether or not a colorbar is - displayed for this trace. - stream - :class:`plotly.graph_objects.choroplethmap.Stre - am` instance or dict with compatible properties - subplot - Sets a reference between this trace's data - coordinates and a map subplot. If "map" (the - default value), the data refer to `layout.map`. - If "map2", the data refer to `layout.map2`, and - so on. - text - Sets the text elements associated with each - location. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - unselected - :class:`plotly.graph_objects.choroplethmap.Unse - lected` instance or dict with compatible - properties - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - z - Sets the color values. - zauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `z`) or the bounds set in `zmin` and `zmax` - Defaults to `false` when `zmin` and `zmax` are - set by the user. - zmax - Sets the upper bound of the color domain. Value - should have the same units as in `z` and if - set, `zmin` must be set as well. - zmid - Sets the mid-point of the color domain by - scaling `zmin` and/or `zmax` to be equidistant - to this point. Value should have the same units - as in `z`. Has no effect when `zauto` is - `false`. - zmin - Sets the lower bound of the color domain. Value - should have the same units as in `z` and if - set, `zmax` must be set as well. - zsrc - Sets the source reference on Chart Studio Cloud - for `z`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ChoroplethmapValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='choroplethmap', + parent_name='', + **kwargs): + super(ChoroplethmapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Choroplethmap'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_choroplethmapbox.py b/packages/python/plotly/plotly/validators/_choroplethmapbox.py index ff3439c0c33..a2d4628f494 100644 --- a/packages/python/plotly/plotly/validators/_choroplethmapbox.py +++ b/packages/python/plotly/plotly/validators/_choroplethmapbox.py @@ -1,309 +1,15 @@ -import _plotly_utils.basevalidators -class ChoroplethmapboxValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="choroplethmapbox", parent_name="", **kwargs): - super(ChoroplethmapboxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Choroplethmapbox"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `colorscale`. In case - `colorscale` is unspecified or `autocolorscale` - is true, the default palette will be chosen - according to whether numbers in the `color` - array are all positive, all negative or mixed. - below - Determines if the choropleth polygons will be - inserted before the layer with the specified - ID. By default, choroplethmapbox traces are - placed above the water layers. If set to '', - the layer will be inserted above every existing - layer. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.choroplethmapbox.C - olorBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. The colorscale must be an - array containing arrays mapping a normalized - value to an rgb, rgba, hex, hsl, hsv, or named - color string. At minimum, a mapping for the - lowest (0) and highest (1) values are required. - For example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use `zmin` and - `zmax`. Alternatively, `colorscale` may be a - palette name string of the following list: Blac - kbody,Bluered,Blues,Cividis,Earth,Electric,Gree - ns,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,R - eds,Viridis,YlGnBu,YlOrRd. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - featureidkey - Sets the key in GeoJSON features which is used - as id to match the items included in the - `locations` array. Support nested property, for - example "properties.name". - geojson - Sets the GeoJSON data associated with this - trace. It can be set as a valid GeoJSON object - or as a URL string. Note that we only accept - GeoJSONs of type "FeatureCollection" or - "Feature" with geometries of type "Polygon" or - "MultiPolygon". - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.choroplethmapbox.H - overlabel` instance or dict with compatible - properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Finally, the template string has access to - variable `properties` Anything contained in tag - `` is displayed in the secondary box, - for example "{fullData.name}". - To hide the secondary box completely, use an - empty tag ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Same as `text`. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.choroplethmapbox.L - egendgrouptitle` instance or dict with - compatible properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - locations - Sets which features found in "geojson" to plot - using their feature `id` field. - locationssrc - Sets the source reference on Chart Studio Cloud - for `locations`. - marker - :class:`plotly.graph_objects.choroplethmapbox.M - arker` instance or dict with compatible - properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - reversescale - Reverses the color mapping if true. If true, - `zmin` will correspond to the last color in the - array and `zmax` will correspond to the first - color. - selected - :class:`plotly.graph_objects.choroplethmapbox.S - elected` instance or dict with compatible - properties - selectedpoints - Array containing integer indices of selected - points. Has an effect only for traces that - support selections. Note that an empty array - means an empty selection where the `unselected` - are turned on for all points, whereas, any - other non-array values means no selection all - where the `selected` and `unselected` styles - have no effect. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - showscale - Determines whether or not a colorbar is - displayed for this trace. - stream - :class:`plotly.graph_objects.choroplethmapbox.S - tream` instance or dict with compatible - properties - subplot - mapbox subplots and traces are deprecated! - Please consider switching to `map` subplots and - traces. Learn more at: - https://plotly.com/python/maplibre-migration/ - as well as - https://plotly.com/javascript/maplibre- - migration/ Sets a reference between this - trace's data coordinates and a mapbox subplot. - If "mapbox" (the default value), the data refer - to `layout.mapbox`. If "mapbox2", the data - refer to `layout.mapbox2`, and so on. - text - Sets the text elements associated with each - location. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - unselected - :class:`plotly.graph_objects.choroplethmapbox.U - nselected` instance or dict with compatible - properties - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - z - Sets the color values. - zauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `z`) or the bounds set in `zmin` and `zmax` - Defaults to `false` when `zmin` and `zmax` are - set by the user. - zmax - Sets the upper bound of the color domain. Value - should have the same units as in `z` and if - set, `zmin` must be set as well. - zmid - Sets the mid-point of the color domain by - scaling `zmin` and/or `zmax` to be equidistant - to this point. Value should have the same units - as in `z`. Has no effect when `zauto` is - `false`. - zmin - Sets the lower bound of the color domain. Value - should have the same units as in `z` and if - set, `zmax` must be set as well. - zsrc - Sets the source reference on Chart Studio Cloud - for `z`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ChoroplethmapboxValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='choroplethmapbox', + parent_name='', + **kwargs): + super(ChoroplethmapboxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Choroplethmapbox'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_cone.py b/packages/python/plotly/plotly/validators/_cone.py index 94ba1197c38..c0083772162 100644 --- a/packages/python/plotly/plotly/validators/_cone.py +++ b/packages/python/plotly/plotly/validators/_cone.py @@ -1,397 +1,15 @@ -import _plotly_utils.basevalidators -class ConeValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="cone", parent_name="", **kwargs): - super(ConeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Cone"), - data_docs=kwargs.pop( - "data_docs", - """ - anchor - Sets the cones' anchor with respect to their - x/y/z positions. Note that "cm" denote the - cone's center of mass which corresponds to 1/4 - from the tail to tip. - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `colorscale`. In case - `colorscale` is unspecified or `autocolorscale` - is true, the default palette will be chosen - according to whether numbers in the `color` - array are all positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - u/v/w norm) or the bounds set in `cmin` and - `cmax` Defaults to `false` when `cmin` and - `cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Value - should have the same units as u/v/w norm and if - set, `cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `cmin` and/or `cmax` to be equidistant - to this point. Value should have the same units - as u/v/w norm. Has no effect when `cauto` is - `false`. - cmin - Sets the lower bound of the color domain. Value - should have the same units as u/v/w norm and if - set, `cmax` must be set as well. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.cone.ColorBar` - instance or dict with compatible properties - colorscale - Sets the colorscale. The colorscale must be an - array containing arrays mapping a normalized - value to an rgb, rgba, hex, hsl, hsv, or named - color string. At minimum, a mapping for the - lowest (0) and highest (1) values are required. - For example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use `cmin` and - `cmax`. Alternatively, `colorscale` may be a - palette name string of the following list: Blac - kbody,Bluered,Blues,Cividis,Earth,Electric,Gree - ns,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,R - eds,Viridis,YlGnBu,YlOrRd. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.cone.Hoverlabel` - instance or dict with compatible properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Finally, the template string has access to - variable `norm` Anything contained in tag - `` is displayed in the secondary box, - for example "{fullData.name}". - To hide the secondary box completely, use an - empty tag ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Same as `text`. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.cone.Legendgroupti - tle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - lighting - :class:`plotly.graph_objects.cone.Lighting` - instance or dict with compatible properties - lightposition - :class:`plotly.graph_objects.cone.Lightposition - ` instance or dict with compatible properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - opacity - Sets the opacity of the surface. Please note - that in the case of using high `opacity` values - for example a value greater than or equal to - 0.5 on two surfaces (and 0.25 with four - surfaces), an overlay of multiple transparent - surfaces may not perfectly be sorted in depth - by the webgl API. This behavior may be improved - in the near future and is subject to change. - reversescale - Reverses the color mapping if true. If true, - `cmin` will correspond to the last color in the - array and `cmax` will correspond to the first - color. - scene - Sets a reference between this trace's 3D - coordinate system and a 3D scene. If "scene" - (the default value), the (x,y,z) coordinates - refer to `layout.scene`. If "scene2", the - (x,y,z) coordinates refer to `layout.scene2`, - and so on. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - showscale - Determines whether or not a colorbar is - displayed for this trace. - sizemode - Determines whether `sizeref` is set as a - "scaled" (i.e unitless) scalar (normalized by - the max u/v/w norm in the vector field) or as - "absolute" value (in the same units as the - vector field). To display sizes in actual - vector length use "raw". - sizeref - Adjusts the cone size scaling. The size of the - cones is determined by their u/v/w norm - multiplied a factor and `sizeref`. This factor - (computed internally) corresponds to the - minimum "time" to travel across two successive - x/y/z positions at the average velocity of - those two successive positions. All cones in a - given trace use the same factor. With - `sizemode` set to "raw", its default value is - 1. With `sizemode` set to "scaled", `sizeref` - is unitless, its default value is 0.5. With - `sizemode` set to "absolute", `sizeref` has the - same units as the u/v/w vector field, its the - default value is half the sample's maximum - vector norm. - stream - :class:`plotly.graph_objects.cone.Stream` - instance or dict with compatible properties - text - Sets the text elements associated with the - cones. If trace `hoverinfo` contains a "text" - flag and "hovertext" is not set, these elements - will be seen in the hover labels. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - u - Sets the x components of the vector field. - uhoverformat - Sets the hover text formatting rulefor `u` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format.By default the - values are formatted using generic number - format. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - usrc - Sets the source reference on Chart Studio Cloud - for `u`. - v - Sets the y components of the vector field. - vhoverformat - Sets the hover text formatting rulefor `v` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format.By default the - values are formatted using generic number - format. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - vsrc - Sets the source reference on Chart Studio Cloud - for `v`. - w - Sets the z components of the vector field. - whoverformat - Sets the hover text formatting rulefor `w` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format.By default the - values are formatted using generic number - format. - wsrc - Sets the source reference on Chart Studio Cloud - for `w`. - x - Sets the x coordinates of the vector field and - of the displayed cones. - xhoverformat - Sets the hover text formatting rulefor `x` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `xaxis.hoverformat`. - xsrc - Sets the source reference on Chart Studio Cloud - for `x`. - y - Sets the y coordinates of the vector field and - of the displayed cones. - yhoverformat - Sets the hover text formatting rulefor `y` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `yaxis.hoverformat`. - ysrc - Sets the source reference on Chart Studio Cloud - for `y`. - z - Sets the z coordinates of the vector field and - of the displayed cones. - zhoverformat - Sets the hover text formatting rulefor `z` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `zaxis.hoverformat`. - zsrc - Sets the source reference on Chart Studio Cloud - for `z`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ConeValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='cone', + parent_name='', + **kwargs): + super(ConeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Cone'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_contour.py b/packages/python/plotly/plotly/validators/_contour.py index 3fde1bf29d8..4160f323d77 100644 --- a/packages/python/plotly/plotly/validators/_contour.py +++ b/packages/python/plotly/plotly/validators/_contour.py @@ -1,445 +1,15 @@ -import _plotly_utils.basevalidators -class ContourValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="contour", parent_name="", **kwargs): - super(ContourValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Contour"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `colorscale`. In case - `colorscale` is unspecified or `autocolorscale` - is true, the default palette will be chosen - according to whether numbers in the `color` - array are all positive, all negative or mixed. - autocontour - Determines whether or not the contour level - attributes are picked by an algorithm. If True, - the number of contour levels can be set in - `ncontours`. If False, set the contour level - attributes in `contours`. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.contour.ColorBar` - instance or dict with compatible properties - colorscale - Sets the colorscale. The colorscale must be an - array containing arrays mapping a normalized - value to an rgb, rgba, hex, hsl, hsv, or named - color string. At minimum, a mapping for the - lowest (0) and highest (1) values are required. - For example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use `zmin` and - `zmax`. Alternatively, `colorscale` may be a - palette name string of the following list: Blac - kbody,Bluered,Blues,Cividis,Earth,Electric,Gree - ns,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,R - eds,Viridis,YlGnBu,YlOrRd. - connectgaps - Determines whether or not gaps (i.e. {nan} or - missing values) in the `z` data are filled in. - It is defaulted to true if `z` is a one - dimensional array otherwise it is defaulted to - false. - contours - :class:`plotly.graph_objects.contour.Contours` - instance or dict with compatible properties - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - dx - Sets the x coordinate step. See `x0` for more - info. - dy - Sets the y coordinate step. See `y0` for more - info. - fillcolor - Sets the fill color if `contours.type` is - "constraint". Defaults to a half-transparent - variant of the line color, marker color, or - marker line color, whichever is available. - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.contour.Hoverlabel - ` instance or dict with compatible properties - hoverongaps - Determines whether or not gaps (i.e. {nan} or - missing values) in the `z` data have hover - labels associated with them. - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Same as `text`. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.contour.Legendgrou - ptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - line - :class:`plotly.graph_objects.contour.Line` - instance or dict with compatible properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - ncontours - Sets the maximum number of contour levels. The - actual number of contours will be chosen - automatically to be less than or equal to the - value of `ncontours`. Has an effect only if - `autocontour` is True or if `contours.size` is - missing. - opacity - Sets the opacity of the trace. - reversescale - Reverses the color mapping if true. If true, - `zmin` will correspond to the last color in the - array and `zmax` will correspond to the first - color. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - showscale - Determines whether or not a colorbar is - displayed for this trace. - stream - :class:`plotly.graph_objects.contour.Stream` - instance or dict with compatible properties - text - Sets the text elements associated with each z - value. - textfont - For this trace it only has an effect if - `coloring` is set to "heatmap". Sets the text - font. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - texttemplate - For this trace it only has an effect if - `coloring` is set to "heatmap". Template string - used for rendering the information text that - appear on points. Note that this will override - `textinfo`. Variables are inserted using - %{variable}, for example "y: %{y}". Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. Every attributes - that can be specified per-point (the ones that - are `arrayOk: true`) are available. Finally, - the template string has access to variables - `x`, `y`, `z` and `text`. - transpose - Transposes the z data. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - x - Sets the x coordinates. - x0 - Alternate to `x`. Builds a linear space of x - coordinates. Use with `dx` where `x0` is the - starting coordinate and `dx` the step. - xaxis - Sets a reference between this trace's x - coordinates and a 2D cartesian x axis. If "x" - (the default value), the x coordinates refer to - `layout.xaxis`. If "x2", the x coordinates - refer to `layout.xaxis2`, and so on. - xcalendar - Sets the calendar system to use with `x` date - data. - xhoverformat - Sets the hover text formatting rulefor `x` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `xaxis.hoverformat`. - xperiod - Only relevant when the axis `type` is "date". - Sets the period positioning in milliseconds or - "M" on the x axis. Special values in the - form of "M" could be used to declare the - number of months. In this case `n` must be a - positive integer. - xperiod0 - Only relevant when the axis `type` is "date". - Sets the base for period positioning in - milliseconds or date string on the x0 axis. - When `x0period` is round number of weeks, the - `x0period0` by default would be on a Sunday - i.e. 2000-01-02, otherwise it would be at - 2000-01-01. - xperiodalignment - Only relevant when the axis `type` is "date". - Sets the alignment of data points on the x - axis. - xsrc - Sets the source reference on Chart Studio Cloud - for `x`. - xtype - If "array", the heatmap's x coordinates are - given by "x" (the default behavior when `x` is - provided). If "scaled", the heatmap's x - coordinates are given by "x0" and "dx" (the - default behavior when `x` is not provided). - y - Sets the y coordinates. - y0 - Alternate to `y`. Builds a linear space of y - coordinates. Use with `dy` where `y0` is the - starting coordinate and `dy` the step. - yaxis - Sets a reference between this trace's y - coordinates and a 2D cartesian y axis. If "y" - (the default value), the y coordinates refer to - `layout.yaxis`. If "y2", the y coordinates - refer to `layout.yaxis2`, and so on. - ycalendar - Sets the calendar system to use with `y` date - data. - yhoverformat - Sets the hover text formatting rulefor `y` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `yaxis.hoverformat`. - yperiod - Only relevant when the axis `type` is "date". - Sets the period positioning in milliseconds or - "M" on the y axis. Special values in the - form of "M" could be used to declare the - number of months. In this case `n` must be a - positive integer. - yperiod0 - Only relevant when the axis `type` is "date". - Sets the base for period positioning in - milliseconds or date string on the y0 axis. - When `y0period` is round number of weeks, the - `y0period0` by default would be on a Sunday - i.e. 2000-01-02, otherwise it would be at - 2000-01-01. - yperiodalignment - Only relevant when the axis `type` is "date". - Sets the alignment of data points on the y - axis. - ysrc - Sets the source reference on Chart Studio Cloud - for `y`. - ytype - If "array", the heatmap's y coordinates are - given by "y" (the default behavior when `y` is - provided) If "scaled", the heatmap's y - coordinates are given by "y0" and "dy" (the - default behavior when `y` is not provided) - z - Sets the z data. - zauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `z`) or the bounds set in `zmin` and `zmax` - Defaults to `false` when `zmin` and `zmax` are - set by the user. - zhoverformat - Sets the hover text formatting rulefor `z` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format.By default the - values are formatted using generic number - format. - zmax - Sets the upper bound of the color domain. Value - should have the same units as in `z` and if - set, `zmin` must be set as well. - zmid - Sets the mid-point of the color domain by - scaling `zmin` and/or `zmax` to be equidistant - to this point. Value should have the same units - as in `z`. Has no effect when `zauto` is - `false`. - zmin - Sets the lower bound of the color domain. Value - should have the same units as in `z` and if - set, `zmax` must be set as well. - zorder - Sets the layer on which this trace is - displayed, relative to other SVG traces on the - same subplot. SVG traces with higher `zorder` - appear in front of those with lower `zorder`. - zsrc - Sets the source reference on Chart Studio Cloud - for `z`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ContourValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='contour', + parent_name='', + **kwargs): + super(ContourValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Contour'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_contourcarpet.py b/packages/python/plotly/plotly/validators/_contourcarpet.py index 3995ea7d3e2..a989c836090 100644 --- a/packages/python/plotly/plotly/validators/_contourcarpet.py +++ b/packages/python/plotly/plotly/validators/_contourcarpet.py @@ -1,285 +1,15 @@ -import _plotly_utils.basevalidators -class ContourcarpetValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="contourcarpet", parent_name="", **kwargs): - super(ContourcarpetValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Contourcarpet"), - data_docs=kwargs.pop( - "data_docs", - """ - a - Sets the x coordinates. - a0 - Alternate to `x`. Builds a linear space of x - coordinates. Use with `dx` where `x0` is the - starting coordinate and `dx` the step. - asrc - Sets the source reference on Chart Studio Cloud - for `a`. - atype - If "array", the heatmap's x coordinates are - given by "x" (the default behavior when `x` is - provided). If "scaled", the heatmap's x - coordinates are given by "x0" and "dx" (the - default behavior when `x` is not provided). - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `colorscale`. In case - `colorscale` is unspecified or `autocolorscale` - is true, the default palette will be chosen - according to whether numbers in the `color` - array are all positive, all negative or mixed. - autocontour - Determines whether or not the contour level - attributes are picked by an algorithm. If True, - the number of contour levels can be set in - `ncontours`. If False, set the contour level - attributes in `contours`. - b - Sets the y coordinates. - b0 - Alternate to `y`. Builds a linear space of y - coordinates. Use with `dy` where `y0` is the - starting coordinate and `dy` the step. - bsrc - Sets the source reference on Chart Studio Cloud - for `b`. - btype - If "array", the heatmap's y coordinates are - given by "y" (the default behavior when `y` is - provided) If "scaled", the heatmap's y - coordinates are given by "y0" and "dy" (the - default behavior when `y` is not provided) - carpet - The `carpet` of the carpet axes on which this - contour trace lies - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.contourcarpet.Colo - rBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. The colorscale must be an - array containing arrays mapping a normalized - value to an rgb, rgba, hex, hsl, hsv, or named - color string. At minimum, a mapping for the - lowest (0) and highest (1) values are required. - For example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use `zmin` and - `zmax`. Alternatively, `colorscale` may be a - palette name string of the following list: Blac - kbody,Bluered,Blues,Cividis,Earth,Electric,Gree - ns,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,R - eds,Viridis,YlGnBu,YlOrRd. - contours - :class:`plotly.graph_objects.contourcarpet.Cont - ours` instance or dict with compatible - properties - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - da - Sets the x coordinate step. See `x0` for more - info. - db - Sets the y coordinate step. See `y0` for more - info. - fillcolor - Sets the fill color if `contours.type` is - "constraint". Defaults to a half-transparent - variant of the line color, marker color, or - marker line color, whichever is available. - hovertext - Same as `text`. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.contourcarpet.Lege - ndgrouptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - line - :class:`plotly.graph_objects.contourcarpet.Line - ` instance or dict with compatible properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - ncontours - Sets the maximum number of contour levels. The - actual number of contours will be chosen - automatically to be less than or equal to the - value of `ncontours`. Has an effect only if - `autocontour` is True or if `contours.size` is - missing. - opacity - Sets the opacity of the trace. - reversescale - Reverses the color mapping if true. If true, - `zmin` will correspond to the last color in the - array and `zmax` will correspond to the first - color. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - showscale - Determines whether or not a colorbar is - displayed for this trace. - stream - :class:`plotly.graph_objects.contourcarpet.Stre - am` instance or dict with compatible properties - text - Sets the text elements associated with each z - value. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - transpose - Transposes the z data. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - xaxis - Sets a reference between this trace's x - coordinates and a 2D cartesian x axis. If "x" - (the default value), the x coordinates refer to - `layout.xaxis`. If "x2", the x coordinates - refer to `layout.xaxis2`, and so on. - yaxis - Sets a reference between this trace's y - coordinates and a 2D cartesian y axis. If "y" - (the default value), the y coordinates refer to - `layout.yaxis`. If "y2", the y coordinates - refer to `layout.yaxis2`, and so on. - z - Sets the z data. - zauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `z`) or the bounds set in `zmin` and `zmax` - Defaults to `false` when `zmin` and `zmax` are - set by the user. - zmax - Sets the upper bound of the color domain. Value - should have the same units as in `z` and if - set, `zmin` must be set as well. - zmid - Sets the mid-point of the color domain by - scaling `zmin` and/or `zmax` to be equidistant - to this point. Value should have the same units - as in `z`. Has no effect when `zauto` is - `false`. - zmin - Sets the lower bound of the color domain. Value - should have the same units as in `z` and if - set, `zmax` must be set as well. - zorder - Sets the layer on which this trace is - displayed, relative to other SVG traces on the - same subplot. SVG traces with higher `zorder` - appear in front of those with lower `zorder`. - zsrc - Sets the source reference on Chart Studio Cloud - for `z`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ContourcarpetValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='contourcarpet', + parent_name='', + **kwargs): + super(ContourcarpetValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Contourcarpet'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_data.py b/packages/python/plotly/plotly/validators/_data.py index 19c1dc1f044..d387f5bf7d2 100644 --- a/packages/python/plotly/plotly/validators/_data.py +++ b/packages/python/plotly/plotly/validators/_data.py @@ -1,62 +1,66 @@ -import _plotly_utils.basevalidators + +import _plotly_utils.basevalidators + class DataValidator(_plotly_utils.basevalidators.BaseDataValidator): - def __init__(self, plotly_name="data", parent_name="", **kwargs): - super(DataValidator, self).__init__( - class_strs_map={ - "bar": "Bar", - "barpolar": "Barpolar", - "box": "Box", - "candlestick": "Candlestick", - "carpet": "Carpet", - "choropleth": "Choropleth", - "choroplethmap": "Choroplethmap", - "choroplethmapbox": "Choroplethmapbox", - "cone": "Cone", - "contour": "Contour", - "contourcarpet": "Contourcarpet", - "densitymap": "Densitymap", - "densitymapbox": "Densitymapbox", - "funnel": "Funnel", - "funnelarea": "Funnelarea", - "heatmap": "Heatmap", - "histogram": "Histogram", - "histogram2d": "Histogram2d", - "histogram2dcontour": "Histogram2dContour", - "icicle": "Icicle", - "image": "Image", - "indicator": "Indicator", - "isosurface": "Isosurface", - "mesh3d": "Mesh3d", - "ohlc": "Ohlc", - "parcats": "Parcats", - "parcoords": "Parcoords", - "pie": "Pie", - "sankey": "Sankey", - "scatter": "Scatter", - "scatter3d": "Scatter3d", - "scattercarpet": "Scattercarpet", - "scattergeo": "Scattergeo", - "scattergl": "Scattergl", - "scattermap": "Scattermap", - "scattermapbox": "Scattermapbox", - "scatterpolar": "Scatterpolar", - "scatterpolargl": "Scatterpolargl", - "scattersmith": "Scattersmith", - "scatterternary": "Scatterternary", - "splom": "Splom", - "streamtube": "Streamtube", - "sunburst": "Sunburst", - "surface": "Surface", - "table": "Table", - "treemap": "Treemap", - "violin": "Violin", - "volume": "Volume", - "waterfall": "Waterfall", - }, - plotly_name=plotly_name, - parent_name=parent_name, - **kwargs, - ) + def __init__(self, plotly_name='data', + parent_name='', + **kwargs): + + super(DataValidator, self).__init__(class_strs_map={ + + 'bar': 'Bar', + 'barpolar': 'Barpolar', + 'box': 'Box', + 'candlestick': 'Candlestick', + 'carpet': 'Carpet', + 'choropleth': 'Choropleth', + 'choroplethmap': 'Choroplethmap', + 'choroplethmapbox': 'Choroplethmapbox', + 'cone': 'Cone', + 'contour': 'Contour', + 'contourcarpet': 'Contourcarpet', + 'densitymap': 'Densitymap', + 'densitymapbox': 'Densitymapbox', + 'funnel': 'Funnel', + 'funnelarea': 'Funnelarea', + 'heatmap': 'Heatmap', + 'histogram': 'Histogram', + 'histogram2d': 'Histogram2d', + 'histogram2dcontour': 'Histogram2dContour', + 'icicle': 'Icicle', + 'image': 'Image', + 'indicator': 'Indicator', + 'isosurface': 'Isosurface', + 'mesh3d': 'Mesh3d', + 'ohlc': 'Ohlc', + 'parcats': 'Parcats', + 'parcoords': 'Parcoords', + 'pie': 'Pie', + 'sankey': 'Sankey', + 'scatter': 'Scatter', + 'scatter3d': 'Scatter3d', + 'scattercarpet': 'Scattercarpet', + 'scattergeo': 'Scattergeo', + 'scattergl': 'Scattergl', + 'scattermap': 'Scattermap', + 'scattermapbox': 'Scattermapbox', + 'scatterpolar': 'Scatterpolar', + 'scatterpolargl': 'Scatterpolargl', + 'scattersmith': 'Scattersmith', + 'scatterternary': 'Scatterternary', + 'splom': 'Splom', + 'streamtube': 'Streamtube', + 'sunburst': 'Sunburst', + 'surface': 'Surface', + 'table': 'Table', + 'treemap': 'Treemap', + 'violin': 'Violin', + 'volume': 'Volume', + 'waterfall': 'Waterfall', + }, + plotly_name=plotly_name, + parent_name=parent_name, + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_densitymap.py b/packages/python/plotly/plotly/validators/_densitymap.py index df46712d65d..a824821285b 100644 --- a/packages/python/plotly/plotly/validators/_densitymap.py +++ b/packages/python/plotly/plotly/validators/_densitymap.py @@ -1,297 +1,15 @@ -import _plotly_utils.basevalidators -class DensitymapValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="densitymap", parent_name="", **kwargs): - super(DensitymapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Densitymap"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `colorscale`. In case - `colorscale` is unspecified or `autocolorscale` - is true, the default palette will be chosen - according to whether numbers in the `color` - array are all positive, all negative or mixed. - below - Determines if the densitymap trace will be - inserted before the layer with the specified - ID. By default, densitymap traces are placed - below the first layer of type symbol If set to - '', the layer will be inserted above every - existing layer. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.densitymap.ColorBa - r` instance or dict with compatible properties - colorscale - Sets the colorscale. The colorscale must be an - array containing arrays mapping a normalized - value to an rgb, rgba, hex, hsl, hsv, or named - color string. At minimum, a mapping for the - lowest (0) and highest (1) values are required. - For example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use `zmin` and - `zmax`. Alternatively, `colorscale` may be a - palette name string of the following list: Blac - kbody,Bluered,Blues,Cividis,Earth,Electric,Gree - ns,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,R - eds,Viridis,YlGnBu,YlOrRd. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.densitymap.Hoverla - bel` instance or dict with compatible - properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Sets hover text elements associated with each - (lon,lat) pair If a single string, the same - string appears over all the data points. If an - array of string, the items are mapped in order - to the this trace's (lon,lat) coordinates. To - be seen, trace `hoverinfo` must contain a - "text" flag. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - lat - Sets the latitude coordinates (in degrees - North). - latsrc - Sets the source reference on Chart Studio Cloud - for `lat`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.densitymap.Legendg - rouptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - lon - Sets the longitude coordinates (in degrees - East). - lonsrc - Sets the source reference on Chart Studio Cloud - for `lon`. - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - opacity - Sets the opacity of the trace. - radius - Sets the radius of influence of one `lon` / - `lat` point in pixels. Increasing the value - makes the densitymap trace smoother, but less - detailed. - radiussrc - Sets the source reference on Chart Studio Cloud - for `radius`. - reversescale - Reverses the color mapping if true. If true, - `zmin` will correspond to the last color in the - array and `zmax` will correspond to the first - color. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - showscale - Determines whether or not a colorbar is - displayed for this trace. - stream - :class:`plotly.graph_objects.densitymap.Stream` - instance or dict with compatible properties - subplot - Sets a reference between this trace's data - coordinates and a map subplot. If "map" (the - default value), the data refer to `layout.map`. - If "map2", the data refer to `layout.map2`, and - so on. - text - Sets text elements associated with each - (lon,lat) pair If a single string, the same - string appears over all the data points. If an - array of string, the items are mapped in order - to the this trace's (lon,lat) coordinates. If - trace `hoverinfo` contains a "text" flag and - "hovertext" is not set, these elements will be - seen in the hover labels. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - z - Sets the points' weight. For example, a value - of 10 would be equivalent to having 10 points - of weight 1 in the same spot - zauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `z`) or the bounds set in `zmin` and `zmax` - Defaults to `false` when `zmin` and `zmax` are - set by the user. - zmax - Sets the upper bound of the color domain. Value - should have the same units as in `z` and if - set, `zmin` must be set as well. - zmid - Sets the mid-point of the color domain by - scaling `zmin` and/or `zmax` to be equidistant - to this point. Value should have the same units - as in `z`. Has no effect when `zauto` is - `false`. - zmin - Sets the lower bound of the color domain. Value - should have the same units as in `z` and if - set, `zmax` must be set as well. - zsrc - Sets the source reference on Chart Studio Cloud - for `z`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DensitymapValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='densitymap', + parent_name='', + **kwargs): + super(DensitymapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Densitymap'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_densitymapbox.py b/packages/python/plotly/plotly/validators/_densitymapbox.py index 8125ff84d37..a1ef8efca1a 100644 --- a/packages/python/plotly/plotly/validators/_densitymapbox.py +++ b/packages/python/plotly/plotly/validators/_densitymapbox.py @@ -1,304 +1,15 @@ -import _plotly_utils.basevalidators -class DensitymapboxValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="densitymapbox", parent_name="", **kwargs): - super(DensitymapboxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Densitymapbox"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `colorscale`. In case - `colorscale` is unspecified or `autocolorscale` - is true, the default palette will be chosen - according to whether numbers in the `color` - array are all positive, all negative or mixed. - below - Determines if the densitymapbox trace will be - inserted before the layer with the specified - ID. By default, densitymapbox traces are placed - below the first layer of type symbol If set to - '', the layer will be inserted above every - existing layer. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.densitymapbox.Colo - rBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. The colorscale must be an - array containing arrays mapping a normalized - value to an rgb, rgba, hex, hsl, hsv, or named - color string. At minimum, a mapping for the - lowest (0) and highest (1) values are required. - For example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use `zmin` and - `zmax`. Alternatively, `colorscale` may be a - palette name string of the following list: Blac - kbody,Bluered,Blues,Cividis,Earth,Electric,Gree - ns,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,R - eds,Viridis,YlGnBu,YlOrRd. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.densitymapbox.Hove - rlabel` instance or dict with compatible - properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Sets hover text elements associated with each - (lon,lat) pair If a single string, the same - string appears over all the data points. If an - array of string, the items are mapped in order - to the this trace's (lon,lat) coordinates. To - be seen, trace `hoverinfo` must contain a - "text" flag. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - lat - Sets the latitude coordinates (in degrees - North). - latsrc - Sets the source reference on Chart Studio Cloud - for `lat`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.densitymapbox.Lege - ndgrouptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - lon - Sets the longitude coordinates (in degrees - East). - lonsrc - Sets the source reference on Chart Studio Cloud - for `lon`. - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - opacity - Sets the opacity of the trace. - radius - Sets the radius of influence of one `lon` / - `lat` point in pixels. Increasing the value - makes the densitymapbox trace smoother, but - less detailed. - radiussrc - Sets the source reference on Chart Studio Cloud - for `radius`. - reversescale - Reverses the color mapping if true. If true, - `zmin` will correspond to the last color in the - array and `zmax` will correspond to the first - color. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - showscale - Determines whether or not a colorbar is - displayed for this trace. - stream - :class:`plotly.graph_objects.densitymapbox.Stre - am` instance or dict with compatible properties - subplot - mapbox subplots and traces are deprecated! - Please consider switching to `map` subplots and - traces. Learn more at: - https://plotly.com/python/maplibre-migration/ - as well as - https://plotly.com/javascript/maplibre- - migration/ Sets a reference between this - trace's data coordinates and a mapbox subplot. - If "mapbox" (the default value), the data refer - to `layout.mapbox`. If "mapbox2", the data - refer to `layout.mapbox2`, and so on. - text - Sets text elements associated with each - (lon,lat) pair If a single string, the same - string appears over all the data points. If an - array of string, the items are mapped in order - to the this trace's (lon,lat) coordinates. If - trace `hoverinfo` contains a "text" flag and - "hovertext" is not set, these elements will be - seen in the hover labels. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - z - Sets the points' weight. For example, a value - of 10 would be equivalent to having 10 points - of weight 1 in the same spot - zauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `z`) or the bounds set in `zmin` and `zmax` - Defaults to `false` when `zmin` and `zmax` are - set by the user. - zmax - Sets the upper bound of the color domain. Value - should have the same units as in `z` and if - set, `zmin` must be set as well. - zmid - Sets the mid-point of the color domain by - scaling `zmin` and/or `zmax` to be equidistant - to this point. Value should have the same units - as in `z`. Has no effect when `zauto` is - `false`. - zmin - Sets the lower bound of the color domain. Value - should have the same units as in `z` and if - set, `zmax` must be set as well. - zsrc - Sets the source reference on Chart Studio Cloud - for `z`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DensitymapboxValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='densitymapbox', + parent_name='', + **kwargs): + super(DensitymapboxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Densitymapbox'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_frames.py b/packages/python/plotly/plotly/validators/_frames.py index 00345981b1d..268fe80f527 100644 --- a/packages/python/plotly/plotly/validators/_frames.py +++ b/packages/python/plotly/plotly/validators/_frames.py @@ -1,39 +1,15 @@ -import _plotly_utils.basevalidators -class FramesValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__(self, plotly_name="frames", parent_name="", **kwargs): - super(FramesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Frame"), - data_docs=kwargs.pop( - "data_docs", - """ - baseframe - The name of the frame into which this frame's - properties are merged before applying. This is - used to unify properties and avoid needing to - specify the same values for the same properties - in multiple frames. - data - A list of traces this frame modifies. The - format is identical to the normal trace - definition. - group - An identifier that specifies the group to which - the frame belongs, used by animate to select a - subset of frames. - layout - Layout properties which this frame modifies. - The format is identical to the normal layout - definition. - name - A label by which to identify the frame - traces - A list of trace indices that identify the - respective traces in the data attribute -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FramesValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='frames', + parent_name='', + **kwargs): + super(FramesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Frame'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_funnel.py b/packages/python/plotly/plotly/validators/_funnel.py index 8144f93e678..3bf455fe063 100644 --- a/packages/python/plotly/plotly/validators/_funnel.py +++ b/packages/python/plotly/plotly/validators/_funnel.py @@ -1,415 +1,15 @@ -import _plotly_utils.basevalidators -class FunnelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="funnel", parent_name="", **kwargs): - super(FunnelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Funnel"), - data_docs=kwargs.pop( - "data_docs", - """ - alignmentgroup - Set several traces linked to the same position - axis or matching axes to the same - alignmentgroup. This controls whether bars - compute their positional range dependently or - independently. - cliponaxis - Determines whether the text nodes are clipped - about the subplot axes. To show the text nodes - above axis lines and tick labels, make sure to - set `xaxis.layer` and `yaxis.layer` to *below - traces*. - connector - :class:`plotly.graph_objects.funnel.Connector` - instance or dict with compatible properties - constraintext - Constrain the size of text inside or outside a - bar to be no larger than the bar itself. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - dx - Sets the x coordinate step. See `x0` for more - info. - dy - Sets the y coordinate step. See `y0` for more - info. - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.funnel.Hoverlabel` - instance or dict with compatible properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Finally, the template string has access to - variables `percentInitial`, `percentPrevious` - and `percentTotal`. Anything contained in tag - `` is displayed in the secondary box, - for example "{fullData.name}". - To hide the secondary box completely, use an - empty tag ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Sets hover text elements associated with each - (x,y) pair. If a single string, the same string - appears over all the data points. If an array - of string, the items are mapped in order to the - this trace's (x,y) coordinates. To be seen, - trace `hoverinfo` must contain a "text" flag. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - insidetextanchor - Determines if texts are kept at center or - start/end points in `textposition` "inside" - mode. - insidetextfont - Sets the font used for `text` lying inside the - bar. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.funnel.Legendgroup - title` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - marker - :class:`plotly.graph_objects.funnel.Marker` - instance or dict with compatible properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - offset - Shifts the position where the bar is drawn (in - position axis units). In "group" barmode, - traces that set "offset" will be excluded and - drawn in "overlay" mode instead. - offsetgroup - Set several traces linked to the same position - axis or matching axes to the same offsetgroup - where bars of the same position coordinate will - line up. - opacity - Sets the opacity of the trace. - orientation - Sets the orientation of the funnels. With "v" - ("h"), the value of the each bar spans along - the vertical (horizontal). By default funnels - are tend to be oriented horizontally; unless - only "y" array is presented or orientation is - set to "v". Also regarding graphs including - only 'horizontal' funnels, "autorange" on the - "y-axis" are set to "reversed". - outsidetextfont - Sets the font used for `text` lying outside the - bar. - selectedpoints - Array containing integer indices of selected - points. Has an effect only for traces that - support selections. Note that an empty array - means an empty selection where the `unselected` - are turned on for all points, whereas, any - other non-array values means no selection all - where the `selected` and `unselected` styles - have no effect. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - stream - :class:`plotly.graph_objects.funnel.Stream` - instance or dict with compatible properties - text - Sets text elements associated with each (x,y) - pair. If a single string, the same string - appears over all the data points. If an array - of string, the items are mapped in order to the - this trace's (x,y) coordinates. If trace - `hoverinfo` contains a "text" flag and - "hovertext" is not set, these elements will be - seen in the hover labels. - textangle - Sets the angle of the tick labels with respect - to the bar. For example, a `tickangle` of -90 - draws the tick labels vertically. With "auto" - the texts may automatically be rotated to fit - with the maximum size in bars. - textfont - Sets the font used for `text`. - textinfo - Determines which trace information appear on - the graph. In the case of having multiple - funnels, percentages & totals are computed - separately (per trace). - textposition - Specifies the location of the `text`. "inside" - positions `text` inside, next to the bar end - (rotated and scaled if needed). "outside" - positions `text` outside, next to the bar end - (scaled if needed), unless there is another bar - stacked on this one, then the text gets pushed - inside. "auto" tries to position `text` inside - the bar, but if the bar is too small and no bar - is stacked on this one the text is moved - outside. If "none", no text appears. - textpositionsrc - Sets the source reference on Chart Studio Cloud - for `textposition`. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - texttemplate - Template string used for rendering the - information text that appear on points. Note - that this will override `textinfo`. Variables - are inserted using %{variable}, for example "y: - %{y}". Numbers are formatted using d3-format's - syntax %{variable:d3-format}, for example - "Price: %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. Every attributes - that can be specified per-point (the ones that - are `arrayOk: true`) are available. Finally, - the template string has access to variables - `percentInitial`, `percentPrevious`, - `percentTotal`, `label` and `value`. - texttemplatesrc - Sets the source reference on Chart Studio Cloud - for `texttemplate`. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - width - Sets the bar width (in position axis units). - x - Sets the x coordinates. - x0 - Alternate to `x`. Builds a linear space of x - coordinates. Use with `dx` where `x0` is the - starting coordinate and `dx` the step. - xaxis - Sets a reference between this trace's x - coordinates and a 2D cartesian x axis. If "x" - (the default value), the x coordinates refer to - `layout.xaxis`. If "x2", the x coordinates - refer to `layout.xaxis2`, and so on. - xhoverformat - Sets the hover text formatting rulefor `x` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `xaxis.hoverformat`. - xperiod - Only relevant when the axis `type` is "date". - Sets the period positioning in milliseconds or - "M" on the x axis. Special values in the - form of "M" could be used to declare the - number of months. In this case `n` must be a - positive integer. - xperiod0 - Only relevant when the axis `type` is "date". - Sets the base for period positioning in - milliseconds or date string on the x0 axis. - When `x0period` is round number of weeks, the - `x0period0` by default would be on a Sunday - i.e. 2000-01-02, otherwise it would be at - 2000-01-01. - xperiodalignment - Only relevant when the axis `type` is "date". - Sets the alignment of data points on the x - axis. - xsrc - Sets the source reference on Chart Studio Cloud - for `x`. - y - Sets the y coordinates. - y0 - Alternate to `y`. Builds a linear space of y - coordinates. Use with `dy` where `y0` is the - starting coordinate and `dy` the step. - yaxis - Sets a reference between this trace's y - coordinates and a 2D cartesian y axis. If "y" - (the default value), the y coordinates refer to - `layout.yaxis`. If "y2", the y coordinates - refer to `layout.yaxis2`, and so on. - yhoverformat - Sets the hover text formatting rulefor `y` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `yaxis.hoverformat`. - yperiod - Only relevant when the axis `type` is "date". - Sets the period positioning in milliseconds or - "M" on the y axis. Special values in the - form of "M" could be used to declare the - number of months. In this case `n` must be a - positive integer. - yperiod0 - Only relevant when the axis `type` is "date". - Sets the base for period positioning in - milliseconds or date string on the y0 axis. - When `y0period` is round number of weeks, the - `y0period0` by default would be on a Sunday - i.e. 2000-01-02, otherwise it would be at - 2000-01-01. - yperiodalignment - Only relevant when the axis `type` is "date". - Sets the alignment of data points on the y - axis. - ysrc - Sets the source reference on Chart Studio Cloud - for `y`. - zorder - Sets the layer on which this trace is - displayed, relative to other SVG traces on the - same subplot. SVG traces with higher `zorder` - appear in front of those with lower `zorder`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FunnelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='funnel', + parent_name='', + **kwargs): + super(FunnelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Funnel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_funnelarea.py b/packages/python/plotly/plotly/validators/_funnelarea.py index 1785d3b0c53..cd629485126 100644 --- a/packages/python/plotly/plotly/validators/_funnelarea.py +++ b/packages/python/plotly/plotly/validators/_funnelarea.py @@ -1,272 +1,15 @@ -import _plotly_utils.basevalidators -class FunnelareaValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="funnelarea", parent_name="", **kwargs): - super(FunnelareaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Funnelarea"), - data_docs=kwargs.pop( - "data_docs", - """ - aspectratio - Sets the ratio between height and width - baseratio - Sets the ratio between bottom length and - maximum top length. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - dlabel - Sets the label step. See `label0` for more - info. - domain - :class:`plotly.graph_objects.funnelarea.Domain` - instance or dict with compatible properties - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.funnelarea.Hoverla - bel` instance or dict with compatible - properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Finally, the template string has access to - variables `label`, `color`, `value`, `text` and - `percent`. Anything contained in tag `` - is displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Sets hover text elements associated with each - sector. If a single string, the same string - appears for all data points. If an array of - string, the items are mapped in order of this - trace's sectors. To be seen, trace `hoverinfo` - must contain a "text" flag. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - insidetextfont - Sets the font used for `textinfo` lying inside - the sector. - label0 - Alternate to `labels`. Builds a numeric set of - labels. Use with `dlabel` where `label0` is the - starting label and `dlabel` the step. - labels - Sets the sector labels. If `labels` entries are - duplicated, we sum associated `values` or - simply count occurrences if `values` is not - provided. For other array attributes (including - color) we use the first non-empty entry among - all occurrences of the label. - labelssrc - Sets the source reference on Chart Studio Cloud - for `labels`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.funnelarea.Legendg - rouptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - marker - :class:`plotly.graph_objects.funnelarea.Marker` - instance or dict with compatible properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - opacity - Sets the opacity of the trace. - scalegroup - If there are multiple funnelareas that should - be sized according to their totals, link them - by providing a non-empty group id here shared - by every trace in the same group. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - stream - :class:`plotly.graph_objects.funnelarea.Stream` - instance or dict with compatible properties - text - Sets text elements associated with each sector. - If trace `textinfo` contains a "text" flag, - these elements will be seen on the chart. If - trace `hoverinfo` contains a "text" flag and - "hovertext" is not set, these elements will be - seen in the hover labels. - textfont - Sets the font used for `textinfo`. - textinfo - Determines which trace information appear on - the graph. - textposition - Specifies the location of the `textinfo`. - textpositionsrc - Sets the source reference on Chart Studio Cloud - for `textposition`. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - texttemplate - Template string used for rendering the - information text that appear on points. Note - that this will override `textinfo`. Variables - are inserted using %{variable}, for example "y: - %{y}". Numbers are formatted using d3-format's - syntax %{variable:d3-format}, for example - "Price: %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. Every attributes - that can be specified per-point (the ones that - are `arrayOk: true`) are available. Finally, - the template string has access to variables - `label`, `color`, `value`, `text` and - `percent`. - texttemplatesrc - Sets the source reference on Chart Studio Cloud - for `texttemplate`. - title - :class:`plotly.graph_objects.funnelarea.Title` - instance or dict with compatible properties - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - values - Sets the values of the sectors. If omitted, we - count occurrences of each label. - valuessrc - Sets the source reference on Chart Studio Cloud - for `values`. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FunnelareaValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='funnelarea', + parent_name='', + **kwargs): + super(FunnelareaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Funnelarea'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_heatmap.py b/packages/python/plotly/plotly/validators/_heatmap.py index 40a96d167b5..21f4042510c 100644 --- a/packages/python/plotly/plotly/validators/_heatmap.py +++ b/packages/python/plotly/plotly/validators/_heatmap.py @@ -1,426 +1,15 @@ -import _plotly_utils.basevalidators -class HeatmapValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="heatmap", parent_name="", **kwargs): - super(HeatmapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Heatmap"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `colorscale`. In case - `colorscale` is unspecified or `autocolorscale` - is true, the default palette will be chosen - according to whether numbers in the `color` - array are all positive, all negative or mixed. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.heatmap.ColorBar` - instance or dict with compatible properties - colorscale - Sets the colorscale. The colorscale must be an - array containing arrays mapping a normalized - value to an rgb, rgba, hex, hsl, hsv, or named - color string. At minimum, a mapping for the - lowest (0) and highest (1) values are required. - For example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use `zmin` and - `zmax`. Alternatively, `colorscale` may be a - palette name string of the following list: Blac - kbody,Bluered,Blues,Cividis,Earth,Electric,Gree - ns,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,R - eds,Viridis,YlGnBu,YlOrRd. - connectgaps - Determines whether or not gaps (i.e. {nan} or - missing values) in the `z` data are filled in. - It is defaulted to true if `z` is a one - dimensional array and `zsmooth` is not false; - otherwise it is defaulted to false. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - dx - Sets the x coordinate step. See `x0` for more - info. - dy - Sets the y coordinate step. See `y0` for more - info. - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.heatmap.Hoverlabel - ` instance or dict with compatible properties - hoverongaps - Determines whether or not gaps (i.e. {nan} or - missing values) in the `z` data have hover - labels associated with them. - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Same as `text`. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.heatmap.Legendgrou - ptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - opacity - Sets the opacity of the trace. - reversescale - Reverses the color mapping if true. If true, - `zmin` will correspond to the last color in the - array and `zmax` will correspond to the first - color. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - showscale - Determines whether or not a colorbar is - displayed for this trace. - stream - :class:`plotly.graph_objects.heatmap.Stream` - instance or dict with compatible properties - text - Sets the text elements associated with each z - value. - textfont - Sets the text font. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - texttemplate - Template string used for rendering the - information text that appear on points. Note - that this will override `textinfo`. Variables - are inserted using %{variable}, for example "y: - %{y}". Numbers are formatted using d3-format's - syntax %{variable:d3-format}, for example - "Price: %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. Every attributes - that can be specified per-point (the ones that - are `arrayOk: true`) are available. Finally, - the template string has access to variables - `x`, `y`, `z` and `text`. - transpose - Transposes the z data. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - x - Sets the x coordinates. - x0 - Alternate to `x`. Builds a linear space of x - coordinates. Use with `dx` where `x0` is the - starting coordinate and `dx` the step. - xaxis - Sets a reference between this trace's x - coordinates and a 2D cartesian x axis. If "x" - (the default value), the x coordinates refer to - `layout.xaxis`. If "x2", the x coordinates - refer to `layout.xaxis2`, and so on. - xcalendar - Sets the calendar system to use with `x` date - data. - xgap - Sets the horizontal gap (in pixels) between - bricks. - xhoverformat - Sets the hover text formatting rulefor `x` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `xaxis.hoverformat`. - xperiod - Only relevant when the axis `type` is "date". - Sets the period positioning in milliseconds or - "M" on the x axis. Special values in the - form of "M" could be used to declare the - number of months. In this case `n` must be a - positive integer. - xperiod0 - Only relevant when the axis `type` is "date". - Sets the base for period positioning in - milliseconds or date string on the x0 axis. - When `x0period` is round number of weeks, the - `x0period0` by default would be on a Sunday - i.e. 2000-01-02, otherwise it would be at - 2000-01-01. - xperiodalignment - Only relevant when the axis `type` is "date". - Sets the alignment of data points on the x - axis. - xsrc - Sets the source reference on Chart Studio Cloud - for `x`. - xtype - If "array", the heatmap's x coordinates are - given by "x" (the default behavior when `x` is - provided). If "scaled", the heatmap's x - coordinates are given by "x0" and "dx" (the - default behavior when `x` is not provided). - y - Sets the y coordinates. - y0 - Alternate to `y`. Builds a linear space of y - coordinates. Use with `dy` where `y0` is the - starting coordinate and `dy` the step. - yaxis - Sets a reference between this trace's y - coordinates and a 2D cartesian y axis. If "y" - (the default value), the y coordinates refer to - `layout.yaxis`. If "y2", the y coordinates - refer to `layout.yaxis2`, and so on. - ycalendar - Sets the calendar system to use with `y` date - data. - ygap - Sets the vertical gap (in pixels) between - bricks. - yhoverformat - Sets the hover text formatting rulefor `y` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `yaxis.hoverformat`. - yperiod - Only relevant when the axis `type` is "date". - Sets the period positioning in milliseconds or - "M" on the y axis. Special values in the - form of "M" could be used to declare the - number of months. In this case `n` must be a - positive integer. - yperiod0 - Only relevant when the axis `type` is "date". - Sets the base for period positioning in - milliseconds or date string on the y0 axis. - When `y0period` is round number of weeks, the - `y0period0` by default would be on a Sunday - i.e. 2000-01-02, otherwise it would be at - 2000-01-01. - yperiodalignment - Only relevant when the axis `type` is "date". - Sets the alignment of data points on the y - axis. - ysrc - Sets the source reference on Chart Studio Cloud - for `y`. - ytype - If "array", the heatmap's y coordinates are - given by "y" (the default behavior when `y` is - provided) If "scaled", the heatmap's y - coordinates are given by "y0" and "dy" (the - default behavior when `y` is not provided) - z - Sets the z data. - zauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `z`) or the bounds set in `zmin` and `zmax` - Defaults to `false` when `zmin` and `zmax` are - set by the user. - zhoverformat - Sets the hover text formatting rulefor `z` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format.By default the - values are formatted using generic number - format. - zmax - Sets the upper bound of the color domain. Value - should have the same units as in `z` and if - set, `zmin` must be set as well. - zmid - Sets the mid-point of the color domain by - scaling `zmin` and/or `zmax` to be equidistant - to this point. Value should have the same units - as in `z`. Has no effect when `zauto` is - `false`. - zmin - Sets the lower bound of the color domain. Value - should have the same units as in `z` and if - set, `zmax` must be set as well. - zorder - Sets the layer on which this trace is - displayed, relative to other SVG traces on the - same subplot. SVG traces with higher `zorder` - appear in front of those with lower `zorder`. - zsmooth - Picks a smoothing algorithm use to smooth `z` - data. - zsrc - Sets the source reference on Chart Studio Cloud - for `z`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HeatmapValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='heatmap', + parent_name='', + **kwargs): + super(HeatmapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Heatmap'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_histogram.py b/packages/python/plotly/plotly/validators/_histogram.py index d43f724f6ab..90970183d9f 100644 --- a/packages/python/plotly/plotly/validators/_histogram.py +++ b/packages/python/plotly/plotly/validators/_histogram.py @@ -1,418 +1,15 @@ -import _plotly_utils.basevalidators -class HistogramValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="histogram", parent_name="", **kwargs): - super(HistogramValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Histogram"), - data_docs=kwargs.pop( - "data_docs", - """ - alignmentgroup - Set several traces linked to the same position - axis or matching axes to the same - alignmentgroup. This controls whether bars - compute their positional range dependently or - independently. - autobinx - Obsolete: since v1.42 each bin attribute is - auto-determined separately and `autobinx` is - not needed. However, we accept `autobinx: true` - or `false` and will update `xbins` accordingly - before deleting `autobinx` from the trace. - autobiny - Obsolete: since v1.42 each bin attribute is - auto-determined separately and `autobiny` is - not needed. However, we accept `autobiny: true` - or `false` and will update `ybins` accordingly - before deleting `autobiny` from the trace. - bingroup - Set a group of histogram traces which will have - compatible bin settings. Note that traces on - the same subplot and with the same - "orientation" under `barmode` "stack", - "relative" and "group" are forced into the same - bingroup, Using `bingroup`, traces under - `barmode` "overlay" and on different axes (of - the same axis type) can have compatible bin - settings. Note that histogram and histogram2d* - trace can share the same `bingroup` - cliponaxis - Determines whether the text nodes are clipped - about the subplot axes. To show the text nodes - above axis lines and tick labels, make sure to - set `xaxis.layer` and `yaxis.layer` to *below - traces*. - constraintext - Constrain the size of text inside or outside a - bar to be no larger than the bar itself. - cumulative - :class:`plotly.graph_objects.histogram.Cumulati - ve` instance or dict with compatible properties - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - error_x - :class:`plotly.graph_objects.histogram.ErrorX` - instance or dict with compatible properties - error_y - :class:`plotly.graph_objects.histogram.ErrorY` - instance or dict with compatible properties - histfunc - Specifies the binning function used for this - histogram trace. If "count", the histogram - values are computed by counting the number of - values lying inside each bin. If "sum", "avg", - "min", "max", the histogram values are computed - using the sum, the average, the minimum or the - maximum of the values lying inside each bin - respectively. - histnorm - Specifies the type of normalization used for - this histogram trace. If "", the span of each - bar corresponds to the number of occurrences - (i.e. the number of data points lying inside - the bins). If "percent" / "probability", the - span of each bar corresponds to the percentage - / fraction of occurrences with respect to the - total number of sample points (here, the sum of - all bin HEIGHTS equals 100% / 1). If "density", - the span of each bar corresponds to the number - of occurrences in a bin divided by the size of - the bin interval (here, the sum of all bin - AREAS equals the total number of sample - points). If *probability density*, the area of - each bar corresponds to the probability that an - event will fall into the corresponding bin - (here, the sum of all bin AREAS equals 1). - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.histogram.Hoverlab - el` instance or dict with compatible properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Finally, the template string has access to - variable `binNumber` Anything contained in tag - `` is displayed in the secondary box, - for example "{fullData.name}". - To hide the secondary box completely, use an - empty tag ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Same as `text`. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - insidetextanchor - Determines if texts are kept at center or - start/end points in `textposition` "inside" - mode. - insidetextfont - Sets the font used for `text` lying inside the - bar. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.histogram.Legendgr - ouptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - marker - :class:`plotly.graph_objects.histogram.Marker` - instance or dict with compatible properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - nbinsx - Specifies the maximum number of desired bins. - This value will be used in an algorithm that - will decide the optimal bin size such that the - histogram best visualizes the distribution of - the data. Ignored if `xbins.size` is provided. - nbinsy - Specifies the maximum number of desired bins. - This value will be used in an algorithm that - will decide the optimal bin size such that the - histogram best visualizes the distribution of - the data. Ignored if `ybins.size` is provided. - offsetgroup - Set several traces linked to the same position - axis or matching axes to the same offsetgroup - where bars of the same position coordinate will - line up. - opacity - Sets the opacity of the trace. - orientation - Sets the orientation of the bars. With "v" - ("h"), the value of the each bar spans along - the vertical (horizontal). - outsidetextfont - Sets the font used for `text` lying outside the - bar. - selected - :class:`plotly.graph_objects.histogram.Selected - ` instance or dict with compatible properties - selectedpoints - Array containing integer indices of selected - points. Has an effect only for traces that - support selections. Note that an empty array - means an empty selection where the `unselected` - are turned on for all points, whereas, any - other non-array values means no selection all - where the `selected` and `unselected` styles - have no effect. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - stream - :class:`plotly.graph_objects.histogram.Stream` - instance or dict with compatible properties - text - Sets hover text elements associated with each - bar. If a single string, the same string - appears over all bars. If an array of string, - the items are mapped in order to the this - trace's coordinates. - textangle - Sets the angle of the tick labels with respect - to the bar. For example, a `tickangle` of -90 - draws the tick labels vertically. With "auto" - the texts may automatically be rotated to fit - with the maximum size in bars. - textfont - Sets the text font. - textposition - Specifies the location of the `text`. "inside" - positions `text` inside, next to the bar end - (rotated and scaled if needed). "outside" - positions `text` outside, next to the bar end - (scaled if needed), unless there is another bar - stacked on this one, then the text gets pushed - inside. "auto" tries to position `text` inside - the bar, but if the bar is too small and no bar - is stacked on this one the text is moved - outside. If "none", no text appears. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - texttemplate - Template string used for rendering the - information text that appear on points. Note - that this will override `textinfo`. Variables - are inserted using %{variable}, for example "y: - %{y}". Numbers are formatted using d3-format's - syntax %{variable:d3-format}, for example - "Price: %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. Every attributes - that can be specified per-point (the ones that - are `arrayOk: true`) are available. Finally, - the template string has access to variables - `label` and `value`. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - unselected - :class:`plotly.graph_objects.histogram.Unselect - ed` instance or dict with compatible properties - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - x - Sets the sample data to be binned on the x - axis. - xaxis - Sets a reference between this trace's x - coordinates and a 2D cartesian x axis. If "x" - (the default value), the x coordinates refer to - `layout.xaxis`. If "x2", the x coordinates - refer to `layout.xaxis2`, and so on. - xbins - :class:`plotly.graph_objects.histogram.XBins` - instance or dict with compatible properties - xcalendar - Sets the calendar system to use with `x` date - data. - xhoverformat - Sets the hover text formatting rulefor `x` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `xaxis.hoverformat`. - xsrc - Sets the source reference on Chart Studio Cloud - for `x`. - y - Sets the sample data to be binned on the y - axis. - yaxis - Sets a reference between this trace's y - coordinates and a 2D cartesian y axis. If "y" - (the default value), the y coordinates refer to - `layout.yaxis`. If "y2", the y coordinates - refer to `layout.yaxis2`, and so on. - ybins - :class:`plotly.graph_objects.histogram.YBins` - instance or dict with compatible properties - ycalendar - Sets the calendar system to use with `y` date - data. - yhoverformat - Sets the hover text formatting rulefor `y` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `yaxis.hoverformat`. - ysrc - Sets the source reference on Chart Studio Cloud - for `y`. - zorder - Sets the layer on which this trace is - displayed, relative to other SVG traces on the - same subplot. SVG traces with higher `zorder` - appear in front of those with lower `zorder`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HistogramValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='histogram', + parent_name='', + **kwargs): + super(HistogramValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Histogram'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_histogram2d.py b/packages/python/plotly/plotly/validators/_histogram2d.py index d689a688cb2..10767e4e130 100644 --- a/packages/python/plotly/plotly/validators/_histogram2d.py +++ b/packages/python/plotly/plotly/validators/_histogram2d.py @@ -1,418 +1,15 @@ -import _plotly_utils.basevalidators -class Histogram2DValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="histogram2d", parent_name="", **kwargs): - super(Histogram2DValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Histogram2d"), - data_docs=kwargs.pop( - "data_docs", - """ - autobinx - Obsolete: since v1.42 each bin attribute is - auto-determined separately and `autobinx` is - not needed. However, we accept `autobinx: true` - or `false` and will update `xbins` accordingly - before deleting `autobinx` from the trace. - autobiny - Obsolete: since v1.42 each bin attribute is - auto-determined separately and `autobiny` is - not needed. However, we accept `autobiny: true` - or `false` and will update `ybins` accordingly - before deleting `autobiny` from the trace. - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `colorscale`. In case - `colorscale` is unspecified or `autocolorscale` - is true, the default palette will be chosen - according to whether numbers in the `color` - array are all positive, all negative or mixed. - bingroup - Set the `xbingroup` and `ybingroup` default - prefix For example, setting a `bingroup` of 1 - on two histogram2d traces will make them their - x-bins and y-bins match separately. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.histogram2d.ColorB - ar` instance or dict with compatible properties - colorscale - Sets the colorscale. The colorscale must be an - array containing arrays mapping a normalized - value to an rgb, rgba, hex, hsl, hsv, or named - color string. At minimum, a mapping for the - lowest (0) and highest (1) values are required. - For example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use `zmin` and - `zmax`. Alternatively, `colorscale` may be a - palette name string of the following list: Blac - kbody,Bluered,Blues,Cividis,Earth,Electric,Gree - ns,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,R - eds,Viridis,YlGnBu,YlOrRd. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - histfunc - Specifies the binning function used for this - histogram trace. If "count", the histogram - values are computed by counting the number of - values lying inside each bin. If "sum", "avg", - "min", "max", the histogram values are computed - using the sum, the average, the minimum or the - maximum of the values lying inside each bin - respectively. - histnorm - Specifies the type of normalization used for - this histogram trace. If "", the span of each - bar corresponds to the number of occurrences - (i.e. the number of data points lying inside - the bins). If "percent" / "probability", the - span of each bar corresponds to the percentage - / fraction of occurrences with respect to the - total number of sample points (here, the sum of - all bin HEIGHTS equals 100% / 1). If "density", - the span of each bar corresponds to the number - of occurrences in a bin divided by the size of - the bin interval (here, the sum of all bin - AREAS equals the total number of sample - points). If *probability density*, the area of - each bar corresponds to the probability that an - event will fall into the corresponding bin - (here, the sum of all bin AREAS equals 1). - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.histogram2d.Hoverl - abel` instance or dict with compatible - properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Finally, the template string has access to - variable `z` Anything contained in tag - `` is displayed in the secondary box, - for example "{fullData.name}". - To hide the secondary box completely, use an - empty tag ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.histogram2d.Legend - grouptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - marker - :class:`plotly.graph_objects.histogram2d.Marker - ` instance or dict with compatible properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - nbinsx - Specifies the maximum number of desired bins. - This value will be used in an algorithm that - will decide the optimal bin size such that the - histogram best visualizes the distribution of - the data. Ignored if `xbins.size` is provided. - nbinsy - Specifies the maximum number of desired bins. - This value will be used in an algorithm that - will decide the optimal bin size such that the - histogram best visualizes the distribution of - the data. Ignored if `ybins.size` is provided. - opacity - Sets the opacity of the trace. - reversescale - Reverses the color mapping if true. If true, - `zmin` will correspond to the last color in the - array and `zmax` will correspond to the first - color. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - showscale - Determines whether or not a colorbar is - displayed for this trace. - stream - :class:`plotly.graph_objects.histogram2d.Stream - ` instance or dict with compatible properties - textfont - Sets the text font. - texttemplate - Template string used for rendering the - information text that appear on points. Note - that this will override `textinfo`. Variables - are inserted using %{variable}, for example "y: - %{y}". Numbers are formatted using d3-format's - syntax %{variable:d3-format}, for example - "Price: %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. Every attributes - that can be specified per-point (the ones that - are `arrayOk: true`) are available. Finally, - the template string has access to variable `z` - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - x - Sets the sample data to be binned on the x - axis. - xaxis - Sets a reference between this trace's x - coordinates and a 2D cartesian x axis. If "x" - (the default value), the x coordinates refer to - `layout.xaxis`. If "x2", the x coordinates - refer to `layout.xaxis2`, and so on. - xbingroup - Set a group of histogram traces which will have - compatible x-bin settings. Using `xbingroup`, - histogram2d and histogram2dcontour traces (on - axes of the same axis type) can have compatible - x-bin settings. Note that the same `xbingroup` - value can be used to set (1D) histogram - `bingroup` - xbins - :class:`plotly.graph_objects.histogram2d.XBins` - instance or dict with compatible properties - xcalendar - Sets the calendar system to use with `x` date - data. - xgap - Sets the horizontal gap (in pixels) between - bricks. - xhoverformat - Sets the hover text formatting rulefor `x` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `xaxis.hoverformat`. - xsrc - Sets the source reference on Chart Studio Cloud - for `x`. - y - Sets the sample data to be binned on the y - axis. - yaxis - Sets a reference between this trace's y - coordinates and a 2D cartesian y axis. If "y" - (the default value), the y coordinates refer to - `layout.yaxis`. If "y2", the y coordinates - refer to `layout.yaxis2`, and so on. - ybingroup - Set a group of histogram traces which will have - compatible y-bin settings. Using `ybingroup`, - histogram2d and histogram2dcontour traces (on - axes of the same axis type) can have compatible - y-bin settings. Note that the same `ybingroup` - value can be used to set (1D) histogram - `bingroup` - ybins - :class:`plotly.graph_objects.histogram2d.YBins` - instance or dict with compatible properties - ycalendar - Sets the calendar system to use with `y` date - data. - ygap - Sets the vertical gap (in pixels) between - bricks. - yhoverformat - Sets the hover text formatting rulefor `y` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `yaxis.hoverformat`. - ysrc - Sets the source reference on Chart Studio Cloud - for `y`. - z - Sets the aggregation data. - zauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `z`) or the bounds set in `zmin` and `zmax` - Defaults to `false` when `zmin` and `zmax` are - set by the user. - zhoverformat - Sets the hover text formatting rulefor `z` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format.By default the - values are formatted using generic number - format. - zmax - Sets the upper bound of the color domain. Value - should have the same units as in `z` and if - set, `zmin` must be set as well. - zmid - Sets the mid-point of the color domain by - scaling `zmin` and/or `zmax` to be equidistant - to this point. Value should have the same units - as in `z`. Has no effect when `zauto` is - `false`. - zmin - Sets the lower bound of the color domain. Value - should have the same units as in `z` and if - set, `zmax` must be set as well. - zsmooth - Picks a smoothing algorithm use to smooth `z` - data. - zsrc - Sets the source reference on Chart Studio Cloud - for `z`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Histogram2DValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='histogram2d', + parent_name='', + **kwargs): + super(Histogram2DValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Histogram2d'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_histogram2dcontour.py b/packages/python/plotly/plotly/validators/_histogram2dcontour.py index 2a1ae751cd9..084c4fd82ac 100644 --- a/packages/python/plotly/plotly/validators/_histogram2dcontour.py +++ b/packages/python/plotly/plotly/validators/_histogram2dcontour.py @@ -1,440 +1,15 @@ -import _plotly_utils.basevalidators -class Histogram2DcontourValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="histogram2dcontour", parent_name="", **kwargs): - super(Histogram2DcontourValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Histogram2dContour"), - data_docs=kwargs.pop( - "data_docs", - """ - autobinx - Obsolete: since v1.42 each bin attribute is - auto-determined separately and `autobinx` is - not needed. However, we accept `autobinx: true` - or `false` and will update `xbins` accordingly - before deleting `autobinx` from the trace. - autobiny - Obsolete: since v1.42 each bin attribute is - auto-determined separately and `autobiny` is - not needed. However, we accept `autobiny: true` - or `false` and will update `ybins` accordingly - before deleting `autobiny` from the trace. - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `colorscale`. In case - `colorscale` is unspecified or `autocolorscale` - is true, the default palette will be chosen - according to whether numbers in the `color` - array are all positive, all negative or mixed. - autocontour - Determines whether or not the contour level - attributes are picked by an algorithm. If True, - the number of contour levels can be set in - `ncontours`. If False, set the contour level - attributes in `contours`. - bingroup - Set the `xbingroup` and `ybingroup` default - prefix For example, setting a `bingroup` of 1 - on two histogram2d traces will make them their - x-bins and y-bins match separately. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.histogram2dcontour - .ColorBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. The colorscale must be an - array containing arrays mapping a normalized - value to an rgb, rgba, hex, hsl, hsv, or named - color string. At minimum, a mapping for the - lowest (0) and highest (1) values are required. - For example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use `zmin` and - `zmax`. Alternatively, `colorscale` may be a - palette name string of the following list: Blac - kbody,Bluered,Blues,Cividis,Earth,Electric,Gree - ns,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,R - eds,Viridis,YlGnBu,YlOrRd. - contours - :class:`plotly.graph_objects.histogram2dcontour - .Contours` instance or dict with compatible - properties - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - histfunc - Specifies the binning function used for this - histogram trace. If "count", the histogram - values are computed by counting the number of - values lying inside each bin. If "sum", "avg", - "min", "max", the histogram values are computed - using the sum, the average, the minimum or the - maximum of the values lying inside each bin - respectively. - histnorm - Specifies the type of normalization used for - this histogram trace. If "", the span of each - bar corresponds to the number of occurrences - (i.e. the number of data points lying inside - the bins). If "percent" / "probability", the - span of each bar corresponds to the percentage - / fraction of occurrences with respect to the - total number of sample points (here, the sum of - all bin HEIGHTS equals 100% / 1). If "density", - the span of each bar corresponds to the number - of occurrences in a bin divided by the size of - the bin interval (here, the sum of all bin - AREAS equals the total number of sample - points). If *probability density*, the area of - each bar corresponds to the probability that an - event will fall into the corresponding bin - (here, the sum of all bin AREAS equals 1). - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.histogram2dcontour - .Hoverlabel` instance or dict with compatible - properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Finally, the template string has access to - variable `z` Anything contained in tag - `` is displayed in the secondary box, - for example "{fullData.name}". - To hide the secondary box completely, use an - empty tag ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.histogram2dcontour - .Legendgrouptitle` instance or dict with - compatible properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - line - :class:`plotly.graph_objects.histogram2dcontour - .Line` instance or dict with compatible - properties - marker - :class:`plotly.graph_objects.histogram2dcontour - .Marker` instance or dict with compatible - properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - nbinsx - Specifies the maximum number of desired bins. - This value will be used in an algorithm that - will decide the optimal bin size such that the - histogram best visualizes the distribution of - the data. Ignored if `xbins.size` is provided. - nbinsy - Specifies the maximum number of desired bins. - This value will be used in an algorithm that - will decide the optimal bin size such that the - histogram best visualizes the distribution of - the data. Ignored if `ybins.size` is provided. - ncontours - Sets the maximum number of contour levels. The - actual number of contours will be chosen - automatically to be less than or equal to the - value of `ncontours`. Has an effect only if - `autocontour` is True or if `contours.size` is - missing. - opacity - Sets the opacity of the trace. - reversescale - Reverses the color mapping if true. If true, - `zmin` will correspond to the last color in the - array and `zmax` will correspond to the first - color. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - showscale - Determines whether or not a colorbar is - displayed for this trace. - stream - :class:`plotly.graph_objects.histogram2dcontour - .Stream` instance or dict with compatible - properties - textfont - For this trace it only has an effect if - `coloring` is set to "heatmap". Sets the text - font. - texttemplate - For this trace it only has an effect if - `coloring` is set to "heatmap". Template string - used for rendering the information text that - appear on points. Note that this will override - `textinfo`. Variables are inserted using - %{variable}, for example "y: %{y}". Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. Every attributes - that can be specified per-point (the ones that - are `arrayOk: true`) are available. Finally, - the template string has access to variables - `x`, `y`, `z` and `text`. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - x - Sets the sample data to be binned on the x - axis. - xaxis - Sets a reference between this trace's x - coordinates and a 2D cartesian x axis. If "x" - (the default value), the x coordinates refer to - `layout.xaxis`. If "x2", the x coordinates - refer to `layout.xaxis2`, and so on. - xbingroup - Set a group of histogram traces which will have - compatible x-bin settings. Using `xbingroup`, - histogram2d and histogram2dcontour traces (on - axes of the same axis type) can have compatible - x-bin settings. Note that the same `xbingroup` - value can be used to set (1D) histogram - `bingroup` - xbins - :class:`plotly.graph_objects.histogram2dcontour - .XBins` instance or dict with compatible - properties - xcalendar - Sets the calendar system to use with `x` date - data. - xhoverformat - Sets the hover text formatting rulefor `x` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `xaxis.hoverformat`. - xsrc - Sets the source reference on Chart Studio Cloud - for `x`. - y - Sets the sample data to be binned on the y - axis. - yaxis - Sets a reference between this trace's y - coordinates and a 2D cartesian y axis. If "y" - (the default value), the y coordinates refer to - `layout.yaxis`. If "y2", the y coordinates - refer to `layout.yaxis2`, and so on. - ybingroup - Set a group of histogram traces which will have - compatible y-bin settings. Using `ybingroup`, - histogram2d and histogram2dcontour traces (on - axes of the same axis type) can have compatible - y-bin settings. Note that the same `ybingroup` - value can be used to set (1D) histogram - `bingroup` - ybins - :class:`plotly.graph_objects.histogram2dcontour - .YBins` instance or dict with compatible - properties - ycalendar - Sets the calendar system to use with `y` date - data. - yhoverformat - Sets the hover text formatting rulefor `y` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `yaxis.hoverformat`. - ysrc - Sets the source reference on Chart Studio Cloud - for `y`. - z - Sets the aggregation data. - zauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `z`) or the bounds set in `zmin` and `zmax` - Defaults to `false` when `zmin` and `zmax` are - set by the user. - zhoverformat - Sets the hover text formatting rulefor `z` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format.By default the - values are formatted using generic number - format. - zmax - Sets the upper bound of the color domain. Value - should have the same units as in `z` and if - set, `zmin` must be set as well. - zmid - Sets the mid-point of the color domain by - scaling `zmin` and/or `zmax` to be equidistant - to this point. Value should have the same units - as in `z`. Has no effect when `zauto` is - `false`. - zmin - Sets the lower bound of the color domain. Value - should have the same units as in `z` and if - set, `zmax` must be set as well. - zsrc - Sets the source reference on Chart Studio Cloud - for `z`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Histogram2DcontourValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='histogram2dcontour', + parent_name='', + **kwargs): + super(Histogram2DcontourValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Histogram2dContour'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_icicle.py b/packages/python/plotly/plotly/validators/_icicle.py index 7cc28024259..db3bb7f9c34 100644 --- a/packages/python/plotly/plotly/validators/_icicle.py +++ b/packages/python/plotly/plotly/validators/_icicle.py @@ -1,293 +1,15 @@ -import _plotly_utils.basevalidators -class IcicleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="icicle", parent_name="", **kwargs): - super(IcicleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Icicle"), - data_docs=kwargs.pop( - "data_docs", - """ - branchvalues - Determines how the items in `values` are - summed. When set to "total", items in `values` - are taken to be value of all its descendants. - When set to "remainder", items in `values` - corresponding to the root and the branches - sectors are taken to be the extra part not part - of the sum of the values at their leaves. - count - Determines default for `values` when it is not - provided, by inferring a 1 for each of the - "leaves" and/or "branches", otherwise 0. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - domain - :class:`plotly.graph_objects.icicle.Domain` - instance or dict with compatible properties - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.icicle.Hoverlabel` - instance or dict with compatible properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Finally, the template string has access to - variables `currentPath`, `root`, `entry`, - `percentRoot`, `percentEntry` and - `percentParent`. Anything contained in tag - `` is displayed in the secondary box, - for example "{fullData.name}". - To hide the secondary box completely, use an - empty tag ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Sets hover text elements associated with each - sector. If a single string, the same string - appears for all data points. If an array of - string, the items are mapped in order of this - trace's sectors. To be seen, trace `hoverinfo` - must contain a "text" flag. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - insidetextfont - Sets the font used for `textinfo` lying inside - the sector. - labels - Sets the labels of each of the sectors. - labelssrc - Sets the source reference on Chart Studio Cloud - for `labels`. - leaf - :class:`plotly.graph_objects.icicle.Leaf` - instance or dict with compatible properties - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgrouptitle - :class:`plotly.graph_objects.icicle.Legendgroup - title` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - level - Sets the level from which this trace hierarchy - is rendered. Set `level` to `''` to start from - the root node in the hierarchy. Must be an "id" - if `ids` is filled in, otherwise plotly - attempts to find a matching item in `labels`. - marker - :class:`plotly.graph_objects.icicle.Marker` - instance or dict with compatible properties - maxdepth - Sets the number of rendered sectors from any - given `level`. Set `maxdepth` to "-1" to render - all the levels in the hierarchy. - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - opacity - Sets the opacity of the trace. - outsidetextfont - Sets the font used for `textinfo` lying outside - the sector. This option refers to the root of - the hierarchy presented on top left corner of a - treemap graph. Please note that if a hierarchy - has multiple root nodes, this option won't have - any effect and `insidetextfont` would be used. - parents - Sets the parent sectors for each of the - sectors. Empty string items '' are understood - to reference the root node in the hierarchy. If - `ids` is filled, `parents` items are understood - to be "ids" themselves. When `ids` is not set, - plotly attempts to find matching items in - `labels`, but beware they must be unique. - parentssrc - Sets the source reference on Chart Studio Cloud - for `parents`. - pathbar - :class:`plotly.graph_objects.icicle.Pathbar` - instance or dict with compatible properties - root - :class:`plotly.graph_objects.icicle.Root` - instance or dict with compatible properties - sort - Determines whether or not the sectors are - reordered from largest to smallest. - stream - :class:`plotly.graph_objects.icicle.Stream` - instance or dict with compatible properties - text - Sets text elements associated with each sector. - If trace `textinfo` contains a "text" flag, - these elements will be seen on the chart. If - trace `hoverinfo` contains a "text" flag and - "hovertext" is not set, these elements will be - seen in the hover labels. - textfont - Sets the font used for `textinfo`. - textinfo - Determines which trace information appear on - the graph. - textposition - Sets the positions of the `text` elements. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - texttemplate - Template string used for rendering the - information text that appear on points. Note - that this will override `textinfo`. Variables - are inserted using %{variable}, for example "y: - %{y}". Numbers are formatted using d3-format's - syntax %{variable:d3-format}, for example - "Price: %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. Every attributes - that can be specified per-point (the ones that - are `arrayOk: true`) are available. Finally, - the template string has access to variables - `currentPath`, `root`, `entry`, `percentRoot`, - `percentEntry`, `percentParent`, `label` and - `value`. - texttemplatesrc - Sets the source reference on Chart Studio Cloud - for `texttemplate`. - tiling - :class:`plotly.graph_objects.icicle.Tiling` - instance or dict with compatible properties - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - values - Sets the values associated with each of the - sectors. Use with `branchvalues` to determine - how the values are summed. - valuessrc - Sets the source reference on Chart Studio Cloud - for `values`. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IcicleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='icicle', + parent_name='', + **kwargs): + super(IcicleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Icicle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_image.py b/packages/python/plotly/plotly/validators/_image.py index 9e0546ce623..c9bf10d1da1 100644 --- a/packages/python/plotly/plotly/validators/_image.py +++ b/packages/python/plotly/plotly/validators/_image.py @@ -1,251 +1,15 @@ -import _plotly_utils.basevalidators -class ImageValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="image", parent_name="", **kwargs): - super(ImageValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Image"), - data_docs=kwargs.pop( - "data_docs", - """ - colormodel - Color model used to map the numerical color - components described in `z` into colors. If - `source` is specified, this attribute will be - set to `rgba256` otherwise it defaults to - `rgb`. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - dx - Set the pixel's horizontal size. - dy - Set the pixel's vertical size - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.image.Hoverlabel` - instance or dict with compatible properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Finally, the template string has access to - variables `z`, `color` and `colormodel`. - Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Same as `text`. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgrouptitle - :class:`plotly.graph_objects.image.Legendgroupt - itle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - opacity - Sets the opacity of the trace. - source - Specifies the data URI of the image to be - visualized. The URI consists of - "data:image/[][;base64]," - stream - :class:`plotly.graph_objects.image.Stream` - instance or dict with compatible properties - text - Sets the text elements associated with each z - value. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - x0 - Set the image's x position. The left edge of - the image (or the right edge if the x axis is - reversed or dx is negative) will be found at - xmin=x0-dx/2 - xaxis - Sets a reference between this trace's x - coordinates and a 2D cartesian x axis. If "x" - (the default value), the x coordinates refer to - `layout.xaxis`. If "x2", the x coordinates - refer to `layout.xaxis2`, and so on. - y0 - Set the image's y position. The top edge of the - image (or the bottom edge if the y axis is NOT - reversed or if dy is negative) will be found at - ymin=y0-dy/2. By default when an image trace is - included, the y axis will be reversed so that - the image is right-side-up, but you can disable - this by setting yaxis.autorange=true or by - providing an explicit y axis range. - yaxis - Sets a reference between this trace's y - coordinates and a 2D cartesian y axis. If "y" - (the default value), the y coordinates refer to - `layout.yaxis`. If "y2", the y coordinates - refer to `layout.yaxis2`, and so on. - z - A 2-dimensional array in which each element is - an array of 3 or 4 numbers representing a - color. - zmax - Array defining the higher bound for each color - component. Note that the default value will - depend on the colormodel. For the `rgb` - colormodel, it is [255, 255, 255]. For the - `rgba` colormodel, it is [255, 255, 255, 1]. - For the `rgba256` colormodel, it is [255, 255, - 255, 255]. For the `hsl` colormodel, it is - [360, 100, 100]. For the `hsla` colormodel, it - is [360, 100, 100, 1]. - zmin - Array defining the lower bound for each color - component. Note that the default value will - depend on the colormodel. For the `rgb` - colormodel, it is [0, 0, 0]. For the `rgba` - colormodel, it is [0, 0, 0, 0]. For the - `rgba256` colormodel, it is [0, 0, 0, 0]. For - the `hsl` colormodel, it is [0, 0, 0]. For the - `hsla` colormodel, it is [0, 0, 0, 0]. - zorder - Sets the layer on which this trace is - displayed, relative to other SVG traces on the - same subplot. SVG traces with higher `zorder` - appear in front of those with lower `zorder`. - zsmooth - Picks a smoothing algorithm used to smooth `z` - data. This only applies for image traces that - use the `source` attribute. - zsrc - Sets the source reference on Chart Studio Cloud - for `z`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ImageValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='image', + parent_name='', + **kwargs): + super(ImageValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Image'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_indicator.py b/packages/python/plotly/plotly/validators/_indicator.py index 4e715e83d5b..88987c414de 100644 --- a/packages/python/plotly/plotly/validators/_indicator.py +++ b/packages/python/plotly/plotly/validators/_indicator.py @@ -1,140 +1,15 @@ -import _plotly_utils.basevalidators -class IndicatorValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="indicator", parent_name="", **kwargs): - super(IndicatorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Indicator"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the `text` - within the box. Note that this attribute has no - effect if an angular gauge is displayed: in - this case, it is always centered - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - delta - :class:`plotly.graph_objects.indicator.Delta` - instance or dict with compatible properties - domain - :class:`plotly.graph_objects.indicator.Domain` - instance or dict with compatible properties - gauge - The gauge of the Indicator plot. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgrouptitle - :class:`plotly.graph_objects.indicator.Legendgr - ouptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - mode - Determines how the value is displayed on the - graph. `number` displays the value numerically - in text. `delta` displays the difference to a - reference value in text. Finally, `gauge` - displays the value graphically on an axis. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - number - :class:`plotly.graph_objects.indicator.Number` - instance or dict with compatible properties - stream - :class:`plotly.graph_objects.indicator.Stream` - instance or dict with compatible properties - title - :class:`plotly.graph_objects.indicator.Title` - instance or dict with compatible properties - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - value - Sets the number to be displayed. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IndicatorValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='indicator', + parent_name='', + **kwargs): + super(IndicatorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Indicator'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_isosurface.py b/packages/python/plotly/plotly/validators/_isosurface.py index 004d4dae08f..df42553ef04 100644 --- a/packages/python/plotly/plotly/validators/_isosurface.py +++ b/packages/python/plotly/plotly/validators/_isosurface.py @@ -1,368 +1,15 @@ -import _plotly_utils.basevalidators -class IsosurfaceValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="isosurface", parent_name="", **kwargs): - super(IsosurfaceValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Isosurface"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `colorscale`. In case - `colorscale` is unspecified or `autocolorscale` - is true, the default palette will be chosen - according to whether numbers in the `color` - array are all positive, all negative or mixed. - caps - :class:`plotly.graph_objects.isosurface.Caps` - instance or dict with compatible properties - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - `value`) or the bounds set in `cmin` and `cmax` - Defaults to `false` when `cmin` and `cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Value - should have the same units as `value` and if - set, `cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `cmin` and/or `cmax` to be equidistant - to this point. Value should have the same units - as `value`. Has no effect when `cauto` is - `false`. - cmin - Sets the lower bound of the color domain. Value - should have the same units as `value` and if - set, `cmax` must be set as well. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.isosurface.ColorBa - r` instance or dict with compatible properties - colorscale - Sets the colorscale. The colorscale must be an - array containing arrays mapping a normalized - value to an rgb, rgba, hex, hsl, hsv, or named - color string. At minimum, a mapping for the - lowest (0) and highest (1) values are required. - For example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use `cmin` and - `cmax`. Alternatively, `colorscale` may be a - palette name string of the following list: Blac - kbody,Bluered,Blues,Cividis,Earth,Electric,Gree - ns,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,R - eds,Viridis,YlGnBu,YlOrRd. - contour - :class:`plotly.graph_objects.isosurface.Contour - ` instance or dict with compatible properties - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - flatshading - Determines whether or not normal smoothing is - applied to the meshes, creating meshes with an - angular, low-poly look via flat reflections. - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.isosurface.Hoverla - bel` instance or dict with compatible - properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Same as `text`. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - isomax - Sets the maximum boundary for iso-surface plot. - isomin - Sets the minimum boundary for iso-surface plot. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.isosurface.Legendg - rouptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - lighting - :class:`plotly.graph_objects.isosurface.Lightin - g` instance or dict with compatible properties - lightposition - :class:`plotly.graph_objects.isosurface.Lightpo - sition` instance or dict with compatible - properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - opacity - Sets the opacity of the surface. Please note - that in the case of using high `opacity` values - for example a value greater than or equal to - 0.5 on two surfaces (and 0.25 with four - surfaces), an overlay of multiple transparent - surfaces may not perfectly be sorted in depth - by the webgl API. This behavior may be improved - in the near future and is subject to change. - reversescale - Reverses the color mapping if true. If true, - `cmin` will correspond to the last color in the - array and `cmax` will correspond to the first - color. - scene - Sets a reference between this trace's 3D - coordinate system and a 3D scene. If "scene" - (the default value), the (x,y,z) coordinates - refer to `layout.scene`. If "scene2", the - (x,y,z) coordinates refer to `layout.scene2`, - and so on. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - showscale - Determines whether or not a colorbar is - displayed for this trace. - slices - :class:`plotly.graph_objects.isosurface.Slices` - instance or dict with compatible properties - spaceframe - :class:`plotly.graph_objects.isosurface.Spacefr - ame` instance or dict with compatible - properties - stream - :class:`plotly.graph_objects.isosurface.Stream` - instance or dict with compatible properties - surface - :class:`plotly.graph_objects.isosurface.Surface - ` instance or dict with compatible properties - text - Sets the text elements associated with the - vertices. If trace `hoverinfo` contains a - "text" flag and "hovertext" is not set, these - elements will be seen in the hover labels. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - value - Sets the 4th dimension (value) of the vertices. - valuehoverformat - Sets the hover text formatting rulefor `value` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format.By default the - values are formatted using generic number - format. - valuesrc - Sets the source reference on Chart Studio Cloud - for `value`. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - x - Sets the X coordinates of the vertices on X - axis. - xhoverformat - Sets the hover text formatting rulefor `x` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `xaxis.hoverformat`. - xsrc - Sets the source reference on Chart Studio Cloud - for `x`. - y - Sets the Y coordinates of the vertices on Y - axis. - yhoverformat - Sets the hover text formatting rulefor `y` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `yaxis.hoverformat`. - ysrc - Sets the source reference on Chart Studio Cloud - for `y`. - z - Sets the Z coordinates of the vertices on Z - axis. - zhoverformat - Sets the hover text formatting rulefor `z` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `zaxis.hoverformat`. - zsrc - Sets the source reference on Chart Studio Cloud - for `z`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IsosurfaceValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='isosurface', + parent_name='', + **kwargs): + super(IsosurfaceValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Isosurface'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_layout.py b/packages/python/plotly/plotly/validators/_layout.py index 5e29ff17e8d..749384dd253 100644 --- a/packages/python/plotly/plotly/validators/_layout.py +++ b/packages/python/plotly/plotly/validators/_layout.py @@ -1,559 +1,15 @@ -import _plotly_utils.basevalidators -class LayoutValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="layout", parent_name="", **kwargs): - super(LayoutValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Layout"), - data_docs=kwargs.pop( - "data_docs", - """ - activeselection - :class:`plotly.graph_objects.layout.Activeselec - tion` instance or dict with compatible - properties - activeshape - :class:`plotly.graph_objects.layout.Activeshape - ` instance or dict with compatible properties - annotations - A tuple of - :class:`plotly.graph_objects.layout.Annotation` - instances or dicts with compatible properties - annotationdefaults - When used in a template (as - layout.template.layout.annotationdefaults), - sets the default property values to use for - elements of layout.annotations - autosize - Determines whether or not a layout width or - height that has been left undefined by the user - is initialized on each relayout. Note that, - regardless of this attribute, an undefined - layout width or height is always initialized on - the first call to plot. - autotypenumbers - Using "strict" a numeric string in trace data - is not converted to a number. Using *convert - types* a numeric string in trace data may be - treated as a number during automatic axis - `type` detection. This is the default value; - however it could be overridden for individual - axes. - barcornerradius - Sets the rounding of bar corners. May be an - integer number of pixels, or a percentage of - bar width (as a string ending in %). - bargap - Sets the gap (in plot fraction) between bars of - adjacent location coordinates. - bargroupgap - Sets the gap (in plot fraction) between bars of - the same location coordinate. - barmode - Determines how bars at the same location - coordinate are displayed on the graph. With - "stack", the bars are stacked on top of one - another With "relative", the bars are stacked - on top of one another, with negative values - below the axis, positive values above With - "group", the bars are plotted next to one - another centered around the shared location. - With "overlay", the bars are plotted over one - another, you might need to reduce "opacity" to - see multiple bars. - barnorm - Sets the normalization for bar traces on the - graph. With "fraction", the value of each bar - is divided by the sum of all values at that - location coordinate. "percent" is the same but - multiplied by 100 to show percentages. - boxgap - Sets the gap (in plot fraction) between boxes - of adjacent location coordinates. Has no effect - on traces that have "width" set. - boxgroupgap - Sets the gap (in plot fraction) between boxes - of the same location coordinate. Has no effect - on traces that have "width" set. - boxmode - Determines how boxes at the same location - coordinate are displayed on the graph. If - "group", the boxes are plotted next to one - another centered around the shared location. If - "overlay", the boxes are plotted over one - another, you might need to set "opacity" to see - them multiple boxes. Has no effect on traces - that have "width" set. - calendar - Sets the default calendar system to use for - interpreting and displaying dates throughout - the plot. - clickmode - Determines the mode of single click - interactions. "event" is the default value and - emits the `plotly_click` event. In addition - this mode emits the `plotly_selected` event in - drag modes "lasso" and "select", but with no - event data attached (kept for compatibility - reasons). The "select" flag enables selecting - single data points via click. This mode also - supports persistent selections, meaning that - pressing Shift while clicking, adds to / - subtracts from an existing selection. "select" - with `hovermode`: "x" can be confusing, - consider explicitly setting `hovermode`: - "closest" when using this feature. Selection - events are sent accordingly as long as "event" - flag is set as well. When the "event" flag is - missing, `plotly_click` and `plotly_selected` - events are not fired. - coloraxis - :class:`plotly.graph_objects.layout.Coloraxis` - instance or dict with compatible properties - colorscale - :class:`plotly.graph_objects.layout.Colorscale` - instance or dict with compatible properties - colorway - Sets the default trace colors. - computed - Placeholder for exporting automargin-impacting - values namely `margin.t`, `margin.b`, - `margin.l` and `margin.r` in "full-json" mode. - datarevision - If provided, a changed value tells - `Plotly.react` that one or more data arrays has - changed. This way you can modify arrays in- - place rather than making a complete new copy - for an incremental change. If NOT provided, - `Plotly.react` assumes that data arrays are - being treated as immutable, thus any data array - with a different identity from its predecessor - contains new data. - dragmode - Determines the mode of drag interactions. - "select" and "lasso" apply only to scatter - traces with markers or text. "orbit" and - "turntable" apply only to 3D scenes. - editrevision - Controls persistence of user-driven changes in - `editable: true` configuration, other than - trace names and axis titles. Defaults to - `layout.uirevision`. - extendfunnelareacolors - If `true`, the funnelarea slice colors (whether - given by `funnelareacolorway` or inherited from - `colorway`) will be extended to three times its - original length by first repeating every color - 20% lighter then each color 20% darker. This is - intended to reduce the likelihood of reusing - the same color when you have many slices, but - you can set `false` to disable. Colors provided - in the trace, using `marker.colors`, are never - extended. - extendiciclecolors - If `true`, the icicle slice colors (whether - given by `iciclecolorway` or inherited from - `colorway`) will be extended to three times its - original length by first repeating every color - 20% lighter then each color 20% darker. This is - intended to reduce the likelihood of reusing - the same color when you have many slices, but - you can set `false` to disable. Colors provided - in the trace, using `marker.colors`, are never - extended. - extendpiecolors - If `true`, the pie slice colors (whether given - by `piecolorway` or inherited from `colorway`) - will be extended to three times its original - length by first repeating every color 20% - lighter then each color 20% darker. This is - intended to reduce the likelihood of reusing - the same color when you have many slices, but - you can set `false` to disable. Colors provided - in the trace, using `marker.colors`, are never - extended. - extendsunburstcolors - If `true`, the sunburst slice colors (whether - given by `sunburstcolorway` or inherited from - `colorway`) will be extended to three times its - original length by first repeating every color - 20% lighter then each color 20% darker. This is - intended to reduce the likelihood of reusing - the same color when you have many slices, but - you can set `false` to disable. Colors provided - in the trace, using `marker.colors`, are never - extended. - extendtreemapcolors - If `true`, the treemap slice colors (whether - given by `treemapcolorway` or inherited from - `colorway`) will be extended to three times its - original length by first repeating every color - 20% lighter then each color 20% darker. This is - intended to reduce the likelihood of reusing - the same color when you have many slices, but - you can set `false` to disable. Colors provided - in the trace, using `marker.colors`, are never - extended. - font - Sets the global font. Note that fonts used in - traces and other layout components inherit from - the global font. - funnelareacolorway - Sets the default funnelarea slice colors. - Defaults to the main `colorway` used for trace - colors. If you specify a new list here it can - still be extended with lighter and darker - colors, see `extendfunnelareacolors`. - funnelgap - Sets the gap (in plot fraction) between bars of - adjacent location coordinates. - funnelgroupgap - Sets the gap (in plot fraction) between bars of - the same location coordinate. - funnelmode - Determines how bars at the same location - coordinate are displayed on the graph. With - "stack", the bars are stacked on top of one - another With "group", the bars are plotted next - to one another centered around the shared - location. With "overlay", the bars are plotted - over one another, you might need to reduce - "opacity" to see multiple bars. - geo - :class:`plotly.graph_objects.layout.Geo` - instance or dict with compatible properties - grid - :class:`plotly.graph_objects.layout.Grid` - instance or dict with compatible properties - height - Sets the plot's height (in px). - hiddenlabels - hiddenlabels is the funnelarea & pie chart - analog of visible:'legendonly' but it can - contain many labels, and can simultaneously - hide slices from several pies/funnelarea charts - hiddenlabelssrc - Sets the source reference on Chart Studio Cloud - for `hiddenlabels`. - hidesources - Determines whether or not a text link citing - the data source is placed at the bottom-right - cored of the figure. Has only an effect only on - graphs that have been generated via forked - graphs from the Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise). - hoverdistance - Sets the default distance (in pixels) to look - for data to add hover labels (-1 means no - cutoff, 0 means no looking for data). This is - only a real distance for hovering on point-like - objects, like scatter points. For area-like - objects (bars, scatter fills, etc) hovering is - on inside the area and off outside, but these - objects will not supersede hover on point-like - objects in case of conflict. - hoverlabel - :class:`plotly.graph_objects.layout.Hoverlabel` - instance or dict with compatible properties - hovermode - Determines the mode of hover interactions. If - "closest", a single hoverlabel will appear for - the "closest" point within the `hoverdistance`. - If "x" (or "y"), multiple hoverlabels will - appear for multiple points at the "closest" x- - (or y-) coordinate within the `hoverdistance`, - with the caveat that no more than one - hoverlabel will appear per trace. If *x - unified* (or *y unified*), a single hoverlabel - will appear multiple points at the closest x- - (or y-) coordinate within the `hoverdistance` - with the caveat that no more than one - hoverlabel will appear per trace. In this mode, - spikelines are enabled by default perpendicular - to the specified axis. If false, hover - interactions are disabled. - hoversubplots - Determines expansion of hover effects to other - subplots If "single" just the axis pair of the - primary point is included without overlaying - subplots. If "overlaying" all subplots using - the main axis and occupying the same space are - included. If "axis", also include stacked - subplots using the same axis when `hovermode` - is set to "x", *x unified*, "y" or *y unified*. - iciclecolorway - Sets the default icicle slice colors. Defaults - to the main `colorway` used for trace colors. - If you specify a new list here it can still be - extended with lighter and darker colors, see - `extendiciclecolors`. - images - A tuple of - :class:`plotly.graph_objects.layout.Image` - instances or dicts with compatible properties - imagedefaults - When used in a template (as - layout.template.layout.imagedefaults), sets the - default property values to use for elements of - layout.images - legend - :class:`plotly.graph_objects.layout.Legend` - instance or dict with compatible properties - map - :class:`plotly.graph_objects.layout.Map` - instance or dict with compatible properties - mapbox - :class:`plotly.graph_objects.layout.Mapbox` - instance or dict with compatible properties - margin - :class:`plotly.graph_objects.layout.Margin` - instance or dict with compatible properties - meta - Assigns extra meta information that can be used - in various `text` attributes. Attributes such - as the graph, axis and colorbar `title.text`, - annotation `text` `trace.name` in legend items, - `rangeselector`, `updatemenus` and `sliders` - `label` text all support `meta`. One can access - `meta` fields using template strings: - `%{meta[i]}` where `i` is the index of the - `meta` item in question. `meta` can also be an - object for example `{key: value}` which can be - accessed %{meta[key]}. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - minreducedheight - Minimum height of the plot with - margin.automargin applied (in px) - minreducedwidth - Minimum width of the plot with - margin.automargin applied (in px) - modebar - :class:`plotly.graph_objects.layout.Modebar` - instance or dict with compatible properties - newselection - :class:`plotly.graph_objects.layout.Newselectio - n` instance or dict with compatible properties - newshape - :class:`plotly.graph_objects.layout.Newshape` - instance or dict with compatible properties - paper_bgcolor - Sets the background color of the paper where - the graph is drawn. - piecolorway - Sets the default pie slice colors. Defaults to - the main `colorway` used for trace colors. If - you specify a new list here it can still be - extended with lighter and darker colors, see - `extendpiecolors`. - plot_bgcolor - Sets the background color of the plotting area - in-between x and y axes. - polar - :class:`plotly.graph_objects.layout.Polar` - instance or dict with compatible properties - scattergap - Sets the gap (in plot fraction) between scatter - points of adjacent location coordinates. - Defaults to `bargap`. - scattermode - Determines how scatter points at the same - location coordinate are displayed on the graph. - With "group", the scatter points are plotted - next to one another centered around the shared - location. With "overlay", the scatter points - are plotted over one another, you might need to - reduce "opacity" to see multiple scatter - points. - scene - :class:`plotly.graph_objects.layout.Scene` - instance or dict with compatible properties - selectdirection - When `dragmode` is set to "select", this limits - the selection of the drag to horizontal, - vertical or diagonal. "h" only allows - horizontal selection, "v" only vertical, "d" - only diagonal and "any" sets no limit. - selectionrevision - Controls persistence of user-driven changes in - selected points from all traces. - selections - A tuple of - :class:`plotly.graph_objects.layout.Selection` - instances or dicts with compatible properties - selectiondefaults - When used in a template (as - layout.template.layout.selectiondefaults), sets - the default property values to use for elements - of layout.selections - separators - Sets the decimal and thousand separators. For - example, *. * puts a '.' before decimals and a - space between thousands. In English locales, - dflt is ".," but other locales may alter this - default. - shapes - A tuple of - :class:`plotly.graph_objects.layout.Shape` - instances or dicts with compatible properties - shapedefaults - When used in a template (as - layout.template.layout.shapedefaults), sets the - default property values to use for elements of - layout.shapes - showlegend - Determines whether or not a legend is drawn. - Default is `true` if there is a trace to show - and any of these: a) Two or more traces would - by default be shown in the legend. b) One pie - trace is shown in the legend. c) One trace is - explicitly given with `showlegend: true`. - sliders - A tuple of - :class:`plotly.graph_objects.layout.Slider` - instances or dicts with compatible properties - sliderdefaults - When used in a template (as - layout.template.layout.sliderdefaults), sets - the default property values to use for elements - of layout.sliders - smith - :class:`plotly.graph_objects.layout.Smith` - instance or dict with compatible properties - spikedistance - Sets the default distance (in pixels) to look - for data to draw spikelines to (-1 means no - cutoff, 0 means no looking for data). As with - hoverdistance, distance does not apply to area- - like objects. In addition, some objects can be - hovered on but will not generate spikelines, - such as scatter fills. - sunburstcolorway - Sets the default sunburst slice colors. - Defaults to the main `colorway` used for trace - colors. If you specify a new list here it can - still be extended with lighter and darker - colors, see `extendsunburstcolors`. - template - Default attributes to be applied to the plot. - This should be a dict with format: `{'layout': - layoutTemplate, 'data': {trace_type: - [traceTemplate, ...], ...}}` where - `layoutTemplate` is a dict matching the - structure of `figure.layout` and - `traceTemplate` is a dict matching the - structure of the trace with type `trace_type` - (e.g. 'scatter'). Alternatively, this may be - specified as an instance of - plotly.graph_objs.layout.Template. Trace - templates are applied cyclically to traces of - each type. Container arrays (eg `annotations`) - have special handling: An object ending in - `defaults` (eg `annotationdefaults`) is applied - to each array item. But if an item has a - `templateitemname` key we look in the template - array for an item with matching `name` and - apply that instead. If no matching `name` is - found we mark the item invisible. Any named - template item not referenced is appended to the - end of the array, so this can be used to add a - watermark annotation or a logo image, for - example. To omit one of these items on the - plot, make an item with matching - `templateitemname` and `visible: false`. - ternary - :class:`plotly.graph_objects.layout.Ternary` - instance or dict with compatible properties - title - :class:`plotly.graph_objects.layout.Title` - instance or dict with compatible properties - transition - Sets transition options used during - Plotly.react updates. - treemapcolorway - Sets the default treemap slice colors. Defaults - to the main `colorway` used for trace colors. - If you specify a new list here it can still be - extended with lighter and darker colors, see - `extendtreemapcolors`. - uirevision - Used to allow user interactions with the plot - to persist after `Plotly.react` calls that are - unaware of these interactions. If `uirevision` - is omitted, or if it is given and it changed - from the previous `Plotly.react` call, the - exact new figure is used. If `uirevision` is - truthy and did NOT change, any attribute that - has been affected by user interactions and did - not receive a different value in the new figure - will keep the interaction value. - `layout.uirevision` attribute serves as the - default for `uirevision` attributes in various - sub-containers. For finer control you can set - these sub-attributes directly. For example, if - your app separately controls the data on the x - and y axes you might set - `xaxis.uirevision=*time*` and - `yaxis.uirevision=*cost*`. Then if only the y - data is changed, you can update - `yaxis.uirevision=*quantity*` and the y axis - range will reset but the x axis range will - retain any user-driven zoom. - uniformtext - :class:`plotly.graph_objects.layout.Uniformtext - ` instance or dict with compatible properties - updatemenus - A tuple of - :class:`plotly.graph_objects.layout.Updatemenu` - instances or dicts with compatible properties - updatemenudefaults - When used in a template (as - layout.template.layout.updatemenudefaults), - sets the default property values to use for - elements of layout.updatemenus - violingap - Sets the gap (in plot fraction) between violins - of adjacent location coordinates. Has no effect - on traces that have "width" set. - violingroupgap - Sets the gap (in plot fraction) between violins - of the same location coordinate. Has no effect - on traces that have "width" set. - violinmode - Determines how violins at the same location - coordinate are displayed on the graph. If - "group", the violins are plotted next to one - another centered around the shared location. If - "overlay", the violins are plotted over one - another, you might need to set "opacity" to see - them multiple violins. Has no effect on traces - that have "width" set. - waterfallgap - Sets the gap (in plot fraction) between bars of - adjacent location coordinates. - waterfallgroupgap - Sets the gap (in plot fraction) between bars of - the same location coordinate. - waterfallmode - Determines how bars at the same location - coordinate are displayed on the graph. With - "group", the bars are plotted next to one - another centered around the shared location. - With "overlay", the bars are plotted over one - another, you might need to reduce "opacity" to - see multiple bars. - width - Sets the plot's width (in px). - xaxis - :class:`plotly.graph_objects.layout.XAxis` - instance or dict with compatible properties - yaxis - :class:`plotly.graph_objects.layout.YAxis` - instance or dict with compatible properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LayoutValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='layout', + parent_name='', + **kwargs): + super(LayoutValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Layout'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_mesh3d.py b/packages/python/plotly/plotly/validators/_mesh3d.py index 6f2ba240a8f..68d70153915 100644 --- a/packages/python/plotly/plotly/validators/_mesh3d.py +++ b/packages/python/plotly/plotly/validators/_mesh3d.py @@ -1,446 +1,15 @@ -import _plotly_utils.basevalidators -class Mesh3DValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="mesh3d", parent_name="", **kwargs): - super(Mesh3DValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Mesh3d"), - data_docs=kwargs.pop( - "data_docs", - """ - alphahull - Determines how the mesh surface triangles are - derived from the set of vertices (points) - represented by the `x`, `y` and `z` arrays, if - the `i`, `j`, `k` arrays are not supplied. For - general use of `mesh3d` it is preferred that - `i`, `j`, `k` are supplied. If "-1", Delaunay - triangulation is used, which is mainly suitable - if the mesh is a single, more or less layer - surface that is perpendicular to - `delaunayaxis`. In case the `delaunayaxis` - intersects the mesh surface at more than one - point it will result triangles that are very - long in the dimension of `delaunayaxis`. If - ">0", the alpha-shape algorithm is used. In - this case, the positive `alphahull` value - signals the use of the alpha-shape algorithm, - _and_ its value acts as the parameter for the - mesh fitting. If 0, the convex-hull algorithm - is used. It is suitable for convex bodies or if - the intention is to enclose the `x`, `y` and - `z` point set into a convex hull. - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `colorscale`. In case - `colorscale` is unspecified or `autocolorscale` - is true, the default palette will be chosen - according to whether numbers in the `color` - array are all positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - `intensity`) or the bounds set in `cmin` and - `cmax` Defaults to `false` when `cmin` and - `cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Value - should have the same units as `intensity` and - if set, `cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `cmin` and/or `cmax` to be equidistant - to this point. Value should have the same units - as `intensity`. Has no effect when `cauto` is - `false`. - cmin - Sets the lower bound of the color domain. Value - should have the same units as `intensity` and - if set, `cmax` must be set as well. - color - Sets the color of the whole mesh - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.mesh3d.ColorBar` - instance or dict with compatible properties - colorscale - Sets the colorscale. The colorscale must be an - array containing arrays mapping a normalized - value to an rgb, rgba, hex, hsl, hsv, or named - color string. At minimum, a mapping for the - lowest (0) and highest (1) values are required. - For example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use `cmin` and - `cmax`. Alternatively, `colorscale` may be a - palette name string of the following list: Blac - kbody,Bluered,Blues,Cividis,Earth,Electric,Gree - ns,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,R - eds,Viridis,YlGnBu,YlOrRd. - contour - :class:`plotly.graph_objects.mesh3d.Contour` - instance or dict with compatible properties - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - delaunayaxis - Sets the Delaunay axis, which is the axis that - is perpendicular to the surface of the Delaunay - triangulation. It has an effect if `i`, `j`, - `k` are not provided and `alphahull` is set to - indicate Delaunay triangulation. - facecolor - Sets the color of each face Overrides "color" - and "vertexcolor". - facecolorsrc - Sets the source reference on Chart Studio Cloud - for `facecolor`. - flatshading - Determines whether or not normal smoothing is - applied to the meshes, creating meshes with an - angular, low-poly look via flat reflections. - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.mesh3d.Hoverlabel` - instance or dict with compatible properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Same as `text`. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - i - A vector of vertex indices, i.e. integer values - between 0 and the length of the vertex vectors, - representing the "first" vertex of a triangle. - For example, `{i[m], j[m], k[m]}` together - represent face m (triangle m) in the mesh, - where `i[m] = n` points to the triplet `{x[n], - y[n], z[n]}` in the vertex arrays. Therefore, - each element in `i` represents a point in - space, which is the first vertex of a triangle. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - intensity - Sets the intensity values for vertices or cells - as defined by `intensitymode`. It can be used - for plotting fields on meshes. - intensitymode - Determines the source of `intensity` values. - intensitysrc - Sets the source reference on Chart Studio Cloud - for `intensity`. - isrc - Sets the source reference on Chart Studio Cloud - for `i`. - j - A vector of vertex indices, i.e. integer values - between 0 and the length of the vertex vectors, - representing the "second" vertex of a triangle. - For example, `{i[m], j[m], k[m]}` together - represent face m (triangle m) in the mesh, - where `j[m] = n` points to the triplet `{x[n], - y[n], z[n]}` in the vertex arrays. Therefore, - each element in `j` represents a point in - space, which is the second vertex of a - triangle. - jsrc - Sets the source reference on Chart Studio Cloud - for `j`. - k - A vector of vertex indices, i.e. integer values - between 0 and the length of the vertex vectors, - representing the "third" vertex of a triangle. - For example, `{i[m], j[m], k[m]}` together - represent face m (triangle m) in the mesh, - where `k[m] = n` points to the triplet `{x[n], - y[n], z[n]}` in the vertex arrays. Therefore, - each element in `k` represents a point in - space, which is the third vertex of a triangle. - ksrc - Sets the source reference on Chart Studio Cloud - for `k`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.mesh3d.Legendgroup - title` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - lighting - :class:`plotly.graph_objects.mesh3d.Lighting` - instance or dict with compatible properties - lightposition - :class:`plotly.graph_objects.mesh3d.Lightpositi - on` instance or dict with compatible properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - opacity - Sets the opacity of the surface. Please note - that in the case of using high `opacity` values - for example a value greater than or equal to - 0.5 on two surfaces (and 0.25 with four - surfaces), an overlay of multiple transparent - surfaces may not perfectly be sorted in depth - by the webgl API. This behavior may be improved - in the near future and is subject to change. - reversescale - Reverses the color mapping if true. If true, - `cmin` will correspond to the last color in the - array and `cmax` will correspond to the first - color. - scene - Sets a reference between this trace's 3D - coordinate system and a 3D scene. If "scene" - (the default value), the (x,y,z) coordinates - refer to `layout.scene`. If "scene2", the - (x,y,z) coordinates refer to `layout.scene2`, - and so on. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - showscale - Determines whether or not a colorbar is - displayed for this trace. - stream - :class:`plotly.graph_objects.mesh3d.Stream` - instance or dict with compatible properties - text - Sets the text elements associated with the - vertices. If trace `hoverinfo` contains a - "text" flag and "hovertext" is not set, these - elements will be seen in the hover labels. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - vertexcolor - Sets the color of each vertex Overrides - "color". While Red, green and blue colors are - in the range of 0 and 255; in the case of - having vertex color data in RGBA format, the - alpha color should be normalized to be between - 0 and 1. - vertexcolorsrc - Sets the source reference on Chart Studio Cloud - for `vertexcolor`. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - x - Sets the X coordinates of the vertices. The nth - element of vectors `x`, `y` and `z` jointly - represent the X, Y and Z coordinates of the nth - vertex. - xcalendar - Sets the calendar system to use with `x` date - data. - xhoverformat - Sets the hover text formatting rulefor `x` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `xaxis.hoverformat`. - xsrc - Sets the source reference on Chart Studio Cloud - for `x`. - y - Sets the Y coordinates of the vertices. The nth - element of vectors `x`, `y` and `z` jointly - represent the X, Y and Z coordinates of the nth - vertex. - ycalendar - Sets the calendar system to use with `y` date - data. - yhoverformat - Sets the hover text formatting rulefor `y` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `yaxis.hoverformat`. - ysrc - Sets the source reference on Chart Studio Cloud - for `y`. - z - Sets the Z coordinates of the vertices. The nth - element of vectors `x`, `y` and `z` jointly - represent the X, Y and Z coordinates of the nth - vertex. - zcalendar - Sets the calendar system to use with `z` date - data. - zhoverformat - Sets the hover text formatting rulefor `z` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `zaxis.hoverformat`. - zsrc - Sets the source reference on Chart Studio Cloud - for `z`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Mesh3DValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='mesh3d', + parent_name='', + **kwargs): + super(Mesh3DValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Mesh3d'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_ohlc.py b/packages/python/plotly/plotly/validators/_ohlc.py index ee7fc6c29f1..e2e471d9433 100644 --- a/packages/python/plotly/plotly/validators/_ohlc.py +++ b/packages/python/plotly/plotly/validators/_ohlc.py @@ -1,265 +1,15 @@ -import _plotly_utils.basevalidators -class OhlcValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="ohlc", parent_name="", **kwargs): - super(OhlcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Ohlc"), - data_docs=kwargs.pop( - "data_docs", - """ - close - Sets the close values. - closesrc - Sets the source reference on Chart Studio Cloud - for `close`. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - decreasing - :class:`plotly.graph_objects.ohlc.Decreasing` - instance or dict with compatible properties - high - Sets the high values. - highsrc - Sets the source reference on Chart Studio Cloud - for `high`. - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.ohlc.Hoverlabel` - instance or dict with compatible properties - hovertext - Same as `text`. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - increasing - :class:`plotly.graph_objects.ohlc.Increasing` - instance or dict with compatible properties - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.ohlc.Legendgroupti - tle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - line - :class:`plotly.graph_objects.ohlc.Line` - instance or dict with compatible properties - low - Sets the low values. - lowsrc - Sets the source reference on Chart Studio Cloud - for `low`. - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - opacity - Sets the opacity of the trace. - open - Sets the open values. - opensrc - Sets the source reference on Chart Studio Cloud - for `open`. - selectedpoints - Array containing integer indices of selected - points. Has an effect only for traces that - support selections. Note that an empty array - means an empty selection where the `unselected` - are turned on for all points, whereas, any - other non-array values means no selection all - where the `selected` and `unselected` styles - have no effect. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - stream - :class:`plotly.graph_objects.ohlc.Stream` - instance or dict with compatible properties - text - Sets hover text elements associated with each - sample point. If a single string, the same - string appears over all the data points. If an - array of string, the items are mapped in order - to this trace's sample points. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - tickwidth - Sets the width of the open/close tick marks - relative to the "x" minimal interval. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - x - Sets the x coordinates. If absent, linear - coordinate will be generated. - xaxis - Sets a reference between this trace's x - coordinates and a 2D cartesian x axis. If "x" - (the default value), the x coordinates refer to - `layout.xaxis`. If "x2", the x coordinates - refer to `layout.xaxis2`, and so on. - xcalendar - Sets the calendar system to use with `x` date - data. - xhoverformat - Sets the hover text formatting rulefor `x` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `xaxis.hoverformat`. - xperiod - Only relevant when the axis `type` is "date". - Sets the period positioning in milliseconds or - "M" on the x axis. Special values in the - form of "M" could be used to declare the - number of months. In this case `n` must be a - positive integer. - xperiod0 - Only relevant when the axis `type` is "date". - Sets the base for period positioning in - milliseconds or date string on the x0 axis. - When `x0period` is round number of weeks, the - `x0period0` by default would be on a Sunday - i.e. 2000-01-02, otherwise it would be at - 2000-01-01. - xperiodalignment - Only relevant when the axis `type` is "date". - Sets the alignment of data points on the x - axis. - xsrc - Sets the source reference on Chart Studio Cloud - for `x`. - yaxis - Sets a reference between this trace's y - coordinates and a 2D cartesian y axis. If "y" - (the default value), the y coordinates refer to - `layout.yaxis`. If "y2", the y coordinates - refer to `layout.yaxis2`, and so on. - yhoverformat - Sets the hover text formatting rulefor `y` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `yaxis.hoverformat`. - zorder - Sets the layer on which this trace is - displayed, relative to other SVG traces on the - same subplot. SVG traces with higher `zorder` - appear in front of those with lower `zorder`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OhlcValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='ohlc', + parent_name='', + **kwargs): + super(OhlcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Ohlc'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_parcats.py b/packages/python/plotly/plotly/validators/_parcats.py index d92f9337e3a..3ff4fbc7d8a 100644 --- a/packages/python/plotly/plotly/validators/_parcats.py +++ b/packages/python/plotly/plotly/validators/_parcats.py @@ -1,171 +1,15 @@ -import _plotly_utils.basevalidators -class ParcatsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="parcats", parent_name="", **kwargs): - super(ParcatsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Parcats"), - data_docs=kwargs.pop( - "data_docs", - """ - arrangement - Sets the drag interaction mode for categories - and dimensions. If `perpendicular`, the - categories can only move along a line - perpendicular to the paths. If `freeform`, the - categories can freely move on the plane. If - `fixed`, the categories and dimensions are - stationary. - bundlecolors - Sort paths so that like colors are bundled - together within each category. - counts - The number of observations represented by each - state. Defaults to 1 so that each state - represents one observation - countssrc - Sets the source reference on Chart Studio Cloud - for `counts`. - dimensions - The dimensions (variables) of the parallel - categories diagram. - dimensiondefaults - When used in a template (as layout.template.dat - a.parcats.dimensiondefaults), sets the default - property values to use for elements of - parcats.dimensions - domain - :class:`plotly.graph_objects.parcats.Domain` - instance or dict with compatible properties - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoveron - Sets the hover interaction mode for the parcats - diagram. If `category`, hover interaction take - place per category. If `color`, hover - interactions take place per color per category. - If `dimension`, hover interactions take place - across all categories per dimension. - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - This value here applies when hovering over - dimensions. Note that `*categorycount`, - "colorcount" and "bandcolorcount" are only - available when `hoveron` contains the "color" - flagFinally, the template string has access to - variables `count`, `probability`, `category`, - `categorycount`, `colorcount` and - `bandcolorcount`. Anything contained in tag - `` is displayed in the secondary box, - for example "{fullData.name}". - To hide the secondary box completely, use an - empty tag ``. - labelfont - Sets the font for the `dimension` labels. - legendgrouptitle - :class:`plotly.graph_objects.parcats.Legendgrou - ptitle` instance or dict with compatible - properties - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - line - :class:`plotly.graph_objects.parcats.Line` - instance or dict with compatible properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - sortpaths - Sets the path sorting algorithm. If `forward`, - sort paths based on dimension categories from - left to right. If `backward`, sort paths based - on dimensions categories from right to left. - stream - :class:`plotly.graph_objects.parcats.Stream` - instance or dict with compatible properties - tickfont - Sets the font for the `category` labels. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ParcatsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='parcats', + parent_name='', + **kwargs): + super(ParcatsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Parcats'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_parcoords.py b/packages/python/plotly/plotly/validators/_parcoords.py index 0b588926f46..5f4b3af7dd9 100644 --- a/packages/python/plotly/plotly/validators/_parcoords.py +++ b/packages/python/plotly/plotly/validators/_parcoords.py @@ -1,151 +1,15 @@ -import _plotly_utils.basevalidators -class ParcoordsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="parcoords", parent_name="", **kwargs): - super(ParcoordsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Parcoords"), - data_docs=kwargs.pop( - "data_docs", - """ - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - dimensions - The dimensions (variables) of the parallel - coordinates chart. 2..60 dimensions are - supported. - dimensiondefaults - When used in a template (as layout.template.dat - a.parcoords.dimensiondefaults), sets the - default property values to use for elements of - parcoords.dimensions - domain - :class:`plotly.graph_objects.parcoords.Domain` - instance or dict with compatible properties - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - labelangle - Sets the angle of the labels with respect to - the horizontal. For example, a `tickangle` of - -90 draws the labels vertically. Tilted labels - with "labelangle" may be positioned better - inside margins when `labelposition` is set to - "bottom". - labelfont - Sets the font for the `dimension` labels. - labelside - Specifies the location of the `label`. "top" - positions labels above, next to the title - "bottom" positions labels below the graph - Tilted labels with "labelangle" may be - positioned better inside margins when - `labelposition` is set to "bottom". - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgrouptitle - :class:`plotly.graph_objects.parcoords.Legendgr - ouptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - line - :class:`plotly.graph_objects.parcoords.Line` - instance or dict with compatible properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - rangefont - Sets the font for the `dimension` range values. - stream - :class:`plotly.graph_objects.parcoords.Stream` - instance or dict with compatible properties - tickfont - Sets the font for the `dimension` tick values. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - unselected - :class:`plotly.graph_objects.parcoords.Unselect - ed` instance or dict with compatible properties - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ParcoordsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='parcoords', + parent_name='', + **kwargs): + super(ParcoordsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Parcoords'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_pie.py b/packages/python/plotly/plotly/validators/_pie.py index 38f6f99da85..fb59748ebff 100644 --- a/packages/python/plotly/plotly/validators/_pie.py +++ b/packages/python/plotly/plotly/validators/_pie.py @@ -1,303 +1,15 @@ -import _plotly_utils.basevalidators -class PieValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="pie", parent_name="", **kwargs): - super(PieValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Pie"), - data_docs=kwargs.pop( - "data_docs", - """ - automargin - Determines whether outside text labels can push - the margins. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - direction - Specifies the direction at which succeeding - sectors follow one another. - dlabel - Sets the label step. See `label0` for more - info. - domain - :class:`plotly.graph_objects.pie.Domain` - instance or dict with compatible properties - hole - Sets the fraction of the radius to cut out of - the pie. Use this to make a donut chart. - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.pie.Hoverlabel` - instance or dict with compatible properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Finally, the template string has access to - variables `label`, `color`, `value`, `percent` - and `text`. Anything contained in tag `` - is displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Sets hover text elements associated with each - sector. If a single string, the same string - appears for all data points. If an array of - string, the items are mapped in order of this - trace's sectors. To be seen, trace `hoverinfo` - must contain a "text" flag. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - insidetextfont - Sets the font used for `textinfo` lying inside - the sector. - insidetextorientation - Controls the orientation of the text inside - chart sectors. When set to "auto", text may be - oriented in any direction in order to be as big - as possible in the middle of a sector. The - "horizontal" option orients text to be parallel - with the bottom of the chart, and may make text - smaller in order to achieve that goal. The - "radial" option orients text along the radius - of the sector. The "tangential" option orients - text perpendicular to the radius of the sector. - label0 - Alternate to `labels`. Builds a numeric set of - labels. Use with `dlabel` where `label0` is the - starting label and `dlabel` the step. - labels - Sets the sector labels. If `labels` entries are - duplicated, we sum associated `values` or - simply count occurrences if `values` is not - provided. For other array attributes (including - color) we use the first non-empty entry among - all occurrences of the label. - labelssrc - Sets the source reference on Chart Studio Cloud - for `labels`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.pie.Legendgrouptit - le` instance or dict with compatible properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - marker - :class:`plotly.graph_objects.pie.Marker` - instance or dict with compatible properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - opacity - Sets the opacity of the trace. - outsidetextfont - Sets the font used for `textinfo` lying outside - the sector. - pull - Sets the fraction of larger radius to pull the - sectors out from the center. This can be a - constant to pull all slices apart from each - other equally or an array to highlight one or - more slices. - pullsrc - Sets the source reference on Chart Studio Cloud - for `pull`. - rotation - Instead of the first slice starting at 12 - o'clock, rotate to some other angle. - scalegroup - If there are multiple pie charts that should be - sized according to their totals, link them by - providing a non-empty group id here shared by - every trace in the same group. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - sort - Determines whether or not the sectors are - reordered from largest to smallest. - stream - :class:`plotly.graph_objects.pie.Stream` - instance or dict with compatible properties - text - Sets text elements associated with each sector. - If trace `textinfo` contains a "text" flag, - these elements will be seen on the chart. If - trace `hoverinfo` contains a "text" flag and - "hovertext" is not set, these elements will be - seen in the hover labels. - textfont - Sets the font used for `textinfo`. - textinfo - Determines which trace information appear on - the graph. - textposition - Specifies the location of the `textinfo`. - textpositionsrc - Sets the source reference on Chart Studio Cloud - for `textposition`. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - texttemplate - Template string used for rendering the - information text that appear on points. Note - that this will override `textinfo`. Variables - are inserted using %{variable}, for example "y: - %{y}". Numbers are formatted using d3-format's - syntax %{variable:d3-format}, for example - "Price: %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. Every attributes - that can be specified per-point (the ones that - are `arrayOk: true`) are available. Finally, - the template string has access to variables - `label`, `color`, `value`, `percent` and - `text`. - texttemplatesrc - Sets the source reference on Chart Studio Cloud - for `texttemplate`. - title - :class:`plotly.graph_objects.pie.Title` - instance or dict with compatible properties - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - values - Sets the values of the sectors. If omitted, we - count occurrences of each label. - valuessrc - Sets the source reference on Chart Studio Cloud - for `values`. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class PieValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='pie', + parent_name='', + **kwargs): + super(PieValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Pie'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_sankey.py b/packages/python/plotly/plotly/validators/_sankey.py index 979fd89e92b..b55ce75fe3e 100644 --- a/packages/python/plotly/plotly/validators/_sankey.py +++ b/packages/python/plotly/plotly/validators/_sankey.py @@ -1,164 +1,15 @@ -import _plotly_utils.basevalidators -class SankeyValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="sankey", parent_name="", **kwargs): - super(SankeyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Sankey"), - data_docs=kwargs.pop( - "data_docs", - """ - arrangement - If value is `snap` (the default), the node - arrangement is assisted by automatic snapping - of elements to preserve space between nodes - specified via `nodepad`. If value is - `perpendicular`, the nodes can only move along - a line perpendicular to the flow. If value is - `freeform`, the nodes can freely move on the - plane. If value is `fixed`, the nodes are - stationary. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - domain - :class:`plotly.graph_objects.sankey.Domain` - instance or dict with compatible properties - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. Note that this attribute is superseded - by `node.hoverinfo` and `node.hoverinfo` for - nodes and links respectively. - hoverlabel - :class:`plotly.graph_objects.sankey.Hoverlabel` - instance or dict with compatible properties - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgrouptitle - :class:`plotly.graph_objects.sankey.Legendgroup - title` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - link - The links of the Sankey plot. - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - node - The nodes of the Sankey plot. - orientation - Sets the orientation of the Sankey diagram. - selectedpoints - Array containing integer indices of selected - points. Has an effect only for traces that - support selections. Note that an empty array - means an empty selection where the `unselected` - are turned on for all points, whereas, any - other non-array values means no selection all - where the `selected` and `unselected` styles - have no effect. - stream - :class:`plotly.graph_objects.sankey.Stream` - instance or dict with compatible properties - textfont - Sets the font for node labels - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - valueformat - Sets the value formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. - valuesuffix - Adds a unit to follow the value in the hover - tooltip. Add a space if a separation is - necessary from the value. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SankeyValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='sankey', + parent_name='', + **kwargs): + super(SankeyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Sankey'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_scatter.py b/packages/python/plotly/plotly/validators/_scatter.py index 8c492af138f..062cf0dc379 100644 --- a/packages/python/plotly/plotly/validators/_scatter.py +++ b/packages/python/plotly/plotly/validators/_scatter.py @@ -1,490 +1,15 @@ -import _plotly_utils.basevalidators -class ScatterValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="scatter", parent_name="", **kwargs): - super(ScatterValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Scatter"), - data_docs=kwargs.pop( - "data_docs", - """ - alignmentgroup - Set several traces linked to the same position - axis or matching axes to the same - alignmentgroup. This controls whether bars - compute their positional range dependently or - independently. - cliponaxis - Determines whether or not markers and text - nodes are clipped about the subplot axes. To - show markers and text nodes above axis lines - and tick labels, make sure to set `xaxis.layer` - and `yaxis.layer` to *below traces*. - connectgaps - Determines whether or not gaps (i.e. {nan} or - missing values) in the provided data arrays are - connected. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - dx - Sets the x coordinate step. See `x0` for more - info. - dy - Sets the y coordinate step. See `y0` for more - info. - error_x - :class:`plotly.graph_objects.scatter.ErrorX` - instance or dict with compatible properties - error_y - :class:`plotly.graph_objects.scatter.ErrorY` - instance or dict with compatible properties - fill - Sets the area to fill with a solid color. - Defaults to "none" unless this trace is - stacked, then it gets "tonexty" ("tonextx") if - `orientation` is "v" ("h") Use with `fillcolor` - if not "none". "tozerox" and "tozeroy" fill to - x=0 and y=0 respectively. "tonextx" and - "tonexty" fill between the endpoints of this - trace and the endpoints of the trace before it, - connecting those endpoints with straight lines - (to make a stacked area graph); if there is no - trace before it, they behave like "tozerox" and - "tozeroy". "toself" connects the endpoints of - the trace (or each segment of the trace if it - has gaps) into a closed shape. "tonext" fills - the space between two traces if one completely - encloses the other (eg consecutive contour - lines), and behaves like "toself" if there is - no trace before it. "tonext" should not be used - if one trace does not enclose the other. Traces - in a `stackgroup` will only fill to (or be - filled to) other traces in the same group. With - multiple `stackgroup`s or some traces stacked - and some not, if fill-linked traces are not - already consecutive, the later ones will be - pushed down in the drawing order. - fillcolor - Sets the fill color. Defaults to a half- - transparent variant of the line color, marker - color, or marker line color, whichever is - available. If fillgradient is specified, - fillcolor is ignored except for setting the - background color of the hover label, if any. - fillgradient - Sets a fill gradient. If not specified, the - fillcolor is used instead. - fillpattern - Sets the pattern within the marker. - groupnorm - Only relevant when `stackgroup` is used, and - only the first `groupnorm` found in the - `stackgroup` will be used - including if - `visible` is "legendonly" but not if it is - `false`. Sets the normalization for the sum of - this `stackgroup`. With "fraction", the value - of each trace at each location is divided by - the sum of all trace values at that location. - "percent" is the same but multiplied by 100 to - show percentages. If there are multiple - subplots, or multiple `stackgroup`s on one - subplot, each will be normalized within its own - set. - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.scatter.Hoverlabel - ` instance or dict with compatible properties - hoveron - Do the hover effects highlight individual - points (markers or line points) or do they - highlight filled regions? If the fill is - "toself" or "tonext" and there are no markers - or text, then the default is "fills", otherwise - it is "points". - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Sets hover text elements associated with each - (x,y) pair. If a single string, the same string - appears over all the data points. If an array - of string, the items are mapped in order to the - this trace's (x,y) coordinates. To be seen, - trace `hoverinfo` must contain a "text" flag. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.scatter.Legendgrou - ptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - line - :class:`plotly.graph_objects.scatter.Line` - instance or dict with compatible properties - marker - :class:`plotly.graph_objects.scatter.Marker` - instance or dict with compatible properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - mode - Determines the drawing mode for this scatter - trace. If the provided `mode` includes "text" - then the `text` elements appear at the - coordinates. Otherwise, the `text` elements - appear on hover. If there are less than 20 - points and the trace is not stacked then the - default is "lines+markers". Otherwise, "lines". - name - Sets the trace name. The trace name appears as - the legend item and on hover. - offsetgroup - Set several traces linked to the same position - axis or matching axes to the same offsetgroup - where bars of the same position coordinate will - line up. - opacity - Sets the opacity of the trace. - orientation - Only relevant in the following cases: 1. when - `scattermode` is set to "group". 2. when - `stackgroup` is used, and only the first - `orientation` found in the `stackgroup` will be - used - including if `visible` is "legendonly" - but not if it is `false`. Sets the stacking - direction. With "v" ("h"), the y (x) values of - subsequent traces are added. Also affects the - default value of `fill`. - selected - :class:`plotly.graph_objects.scatter.Selected` - instance or dict with compatible properties - selectedpoints - Array containing integer indices of selected - points. Has an effect only for traces that - support selections. Note that an empty array - means an empty selection where the `unselected` - are turned on for all points, whereas, any - other non-array values means no selection all - where the `selected` and `unselected` styles - have no effect. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - stackgaps - Only relevant when `stackgroup` is used, and - only the first `stackgaps` found in the - `stackgroup` will be used - including if - `visible` is "legendonly" but not if it is - `false`. Determines how we handle locations at - which other traces in this group have data but - this one does not. With *infer zero* we insert - a zero at these locations. With "interpolate" - we linearly interpolate between existing - values, and extrapolate a constant beyond the - existing values. - stackgroup - Set several scatter traces (on the same - subplot) to the same stackgroup in order to add - their y values (or their x values if - `orientation` is "h"). If blank or omitted this - trace will not be stacked. Stacking also turns - `fill` on by default, using "tonexty" - ("tonextx") if `orientation` is "h" ("v") and - sets the default `mode` to "lines" irrespective - of point count. You can only stack on a numeric - (linear or log) axis. Traces in a `stackgroup` - will only fill to (or be filled to) other - traces in the same group. With multiple - `stackgroup`s or some traces stacked and some - not, if fill-linked traces are not already - consecutive, the later ones will be pushed down - in the drawing order. - stream - :class:`plotly.graph_objects.scatter.Stream` - instance or dict with compatible properties - text - Sets text elements associated with each (x,y) - pair. If a single string, the same string - appears over all the data points. If an array - of string, the items are mapped in order to the - this trace's (x,y) coordinates. If trace - `hoverinfo` contains a "text" flag and - "hovertext" is not set, these elements will be - seen in the hover labels. - textfont - Sets the text font. - textposition - Sets the positions of the `text` elements with - respects to the (x,y) coordinates. - textpositionsrc - Sets the source reference on Chart Studio Cloud - for `textposition`. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - texttemplate - Template string used for rendering the - information text that appear on points. Note - that this will override `textinfo`. Variables - are inserted using %{variable}, for example "y: - %{y}". Numbers are formatted using d3-format's - syntax %{variable:d3-format}, for example - "Price: %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. Every attributes - that can be specified per-point (the ones that - are `arrayOk: true`) are available. - texttemplatesrc - Sets the source reference on Chart Studio Cloud - for `texttemplate`. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - unselected - :class:`plotly.graph_objects.scatter.Unselected - ` instance or dict with compatible properties - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - x - Sets the x coordinates. - x0 - Alternate to `x`. Builds a linear space of x - coordinates. Use with `dx` where `x0` is the - starting coordinate and `dx` the step. - xaxis - Sets a reference between this trace's x - coordinates and a 2D cartesian x axis. If "x" - (the default value), the x coordinates refer to - `layout.xaxis`. If "x2", the x coordinates - refer to `layout.xaxis2`, and so on. - xcalendar - Sets the calendar system to use with `x` date - data. - xhoverformat - Sets the hover text formatting rulefor `x` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `xaxis.hoverformat`. - xperiod - Only relevant when the axis `type` is "date". - Sets the period positioning in milliseconds or - "M" on the x axis. Special values in the - form of "M" could be used to declare the - number of months. In this case `n` must be a - positive integer. - xperiod0 - Only relevant when the axis `type` is "date". - Sets the base for period positioning in - milliseconds or date string on the x0 axis. - When `x0period` is round number of weeks, the - `x0period0` by default would be on a Sunday - i.e. 2000-01-02, otherwise it would be at - 2000-01-01. - xperiodalignment - Only relevant when the axis `type` is "date". - Sets the alignment of data points on the x - axis. - xsrc - Sets the source reference on Chart Studio Cloud - for `x`. - y - Sets the y coordinates. - y0 - Alternate to `y`. Builds a linear space of y - coordinates. Use with `dy` where `y0` is the - starting coordinate and `dy` the step. - yaxis - Sets a reference between this trace's y - coordinates and a 2D cartesian y axis. If "y" - (the default value), the y coordinates refer to - `layout.yaxis`. If "y2", the y coordinates - refer to `layout.yaxis2`, and so on. - ycalendar - Sets the calendar system to use with `y` date - data. - yhoverformat - Sets the hover text formatting rulefor `y` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `yaxis.hoverformat`. - yperiod - Only relevant when the axis `type` is "date". - Sets the period positioning in milliseconds or - "M" on the y axis. Special values in the - form of "M" could be used to declare the - number of months. In this case `n` must be a - positive integer. - yperiod0 - Only relevant when the axis `type` is "date". - Sets the base for period positioning in - milliseconds or date string on the y0 axis. - When `y0period` is round number of weeks, the - `y0period0` by default would be on a Sunday - i.e. 2000-01-02, otherwise it would be at - 2000-01-01. - yperiodalignment - Only relevant when the axis `type` is "date". - Sets the alignment of data points on the y - axis. - ysrc - Sets the source reference on Chart Studio Cloud - for `y`. - zorder - Sets the layer on which this trace is - displayed, relative to other SVG traces on the - same subplot. SVG traces with higher `zorder` - appear in front of those with lower `zorder`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ScatterValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='scatter', + parent_name='', + **kwargs): + super(ScatterValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Scatter'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_scatter3d.py b/packages/python/plotly/plotly/validators/_scatter3d.py index 1c7b6b16a9d..75d7832525e 100644 --- a/packages/python/plotly/plotly/validators/_scatter3d.py +++ b/packages/python/plotly/plotly/validators/_scatter3d.py @@ -1,334 +1,15 @@ -import _plotly_utils.basevalidators -class Scatter3DValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="scatter3d", parent_name="", **kwargs): - super(Scatter3DValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Scatter3d"), - data_docs=kwargs.pop( - "data_docs", - """ - connectgaps - Determines whether or not gaps (i.e. {nan} or - missing values) in the provided data arrays are - connected. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - error_x - :class:`plotly.graph_objects.scatter3d.ErrorX` - instance or dict with compatible properties - error_y - :class:`plotly.graph_objects.scatter3d.ErrorY` - instance or dict with compatible properties - error_z - :class:`plotly.graph_objects.scatter3d.ErrorZ` - instance or dict with compatible properties - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.scatter3d.Hoverlab - el` instance or dict with compatible properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Sets text elements associated with each (x,y,z) - triplet. If a single string, the same string - appears over all the data points. If an array - of string, the items are mapped in order to the - this trace's (x,y,z) coordinates. To be seen, - trace `hoverinfo` must contain a "text" flag. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.scatter3d.Legendgr - ouptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - line - :class:`plotly.graph_objects.scatter3d.Line` - instance or dict with compatible properties - marker - :class:`plotly.graph_objects.scatter3d.Marker` - instance or dict with compatible properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - mode - Determines the drawing mode for this scatter - trace. If the provided `mode` includes "text" - then the `text` elements appear at the - coordinates. Otherwise, the `text` elements - appear on hover. If there are less than 20 - points and the trace is not stacked then the - default is "lines+markers". Otherwise, "lines". - name - Sets the trace name. The trace name appears as - the legend item and on hover. - opacity - Sets the opacity of the trace. - projection - :class:`plotly.graph_objects.scatter3d.Projecti - on` instance or dict with compatible properties - scene - Sets a reference between this trace's 3D - coordinate system and a 3D scene. If "scene" - (the default value), the (x,y,z) coordinates - refer to `layout.scene`. If "scene2", the - (x,y,z) coordinates refer to `layout.scene2`, - and so on. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - stream - :class:`plotly.graph_objects.scatter3d.Stream` - instance or dict with compatible properties - surfaceaxis - If "-1", the scatter points are not fill with a - surface If 0, 1, 2, the scatter points are - filled with a Delaunay surface about the x, y, - z respectively. - surfacecolor - Sets the surface fill color. - text - Sets text elements associated with each (x,y,z) - triplet. If a single string, the same string - appears over all the data points. If an array - of string, the items are mapped in order to the - this trace's (x,y,z) coordinates. If trace - `hoverinfo` contains a "text" flag and - "hovertext" is not set, these elements will be - seen in the hover labels. - textfont - Sets the text font. - textposition - Sets the positions of the `text` elements with - respects to the (x,y) coordinates. - textpositionsrc - Sets the source reference on Chart Studio Cloud - for `textposition`. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - texttemplate - Template string used for rendering the - information text that appear on points. Note - that this will override `textinfo`. Variables - are inserted using %{variable}, for example "y: - %{y}". Numbers are formatted using d3-format's - syntax %{variable:d3-format}, for example - "Price: %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. Every attributes - that can be specified per-point (the ones that - are `arrayOk: true`) are available. - texttemplatesrc - Sets the source reference on Chart Studio Cloud - for `texttemplate`. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - x - Sets the x coordinates. - xcalendar - Sets the calendar system to use with `x` date - data. - xhoverformat - Sets the hover text formatting rulefor `x` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `xaxis.hoverformat`. - xsrc - Sets the source reference on Chart Studio Cloud - for `x`. - y - Sets the y coordinates. - ycalendar - Sets the calendar system to use with `y` date - data. - yhoverformat - Sets the hover text formatting rulefor `y` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `yaxis.hoverformat`. - ysrc - Sets the source reference on Chart Studio Cloud - for `y`. - z - Sets the z coordinates. - zcalendar - Sets the calendar system to use with `z` date - data. - zhoverformat - Sets the hover text formatting rulefor `z` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `zaxis.hoverformat`. - zsrc - Sets the source reference on Chart Studio Cloud - for `z`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Scatter3DValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='scatter3d', + parent_name='', + **kwargs): + super(Scatter3DValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Scatter3d'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_scattercarpet.py b/packages/python/plotly/plotly/validators/_scattercarpet.py index 949b7097d15..d4eda31a9f8 100644 --- a/packages/python/plotly/plotly/validators/_scattercarpet.py +++ b/packages/python/plotly/plotly/validators/_scattercarpet.py @@ -1,314 +1,15 @@ -import _plotly_utils.basevalidators -class ScattercarpetValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="scattercarpet", parent_name="", **kwargs): - super(ScattercarpetValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Scattercarpet"), - data_docs=kwargs.pop( - "data_docs", - """ - a - Sets the a-axis coordinates. - asrc - Sets the source reference on Chart Studio Cloud - for `a`. - b - Sets the b-axis coordinates. - bsrc - Sets the source reference on Chart Studio Cloud - for `b`. - carpet - An identifier for this carpet, so that - `scattercarpet` and `contourcarpet` traces can - specify a carpet plot on which they lie - connectgaps - Determines whether or not gaps (i.e. {nan} or - missing values) in the provided data arrays are - connected. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - fill - Sets the area to fill with a solid color. Use - with `fillcolor` if not "none". scatterternary - has a subset of the options available to - scatter. "toself" connects the endpoints of the - trace (or each segment of the trace if it has - gaps) into a closed shape. "tonext" fills the - space between two traces if one completely - encloses the other (eg consecutive contour - lines), and behaves like "toself" if there is - no trace before it. "tonext" should not be used - if one trace does not enclose the other. - fillcolor - Sets the fill color. Defaults to a half- - transparent variant of the line color, marker - color, or marker line color, whichever is - available. - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.scattercarpet.Hove - rlabel` instance or dict with compatible - properties - hoveron - Do the hover effects highlight individual - points (markers or line points) or do they - highlight filled regions? If the fill is - "toself" or "tonext" and there are no markers - or text, then the default is "fills", otherwise - it is "points". - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Sets hover text elements associated with each - (a,b) point. If a single string, the same - string appears over all the data points. If an - array of strings, the items are mapped in order - to the the data points in (a,b). To be seen, - trace `hoverinfo` must contain a "text" flag. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.scattercarpet.Lege - ndgrouptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - line - :class:`plotly.graph_objects.scattercarpet.Line - ` instance or dict with compatible properties - marker - :class:`plotly.graph_objects.scattercarpet.Mark - er` instance or dict with compatible properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - mode - Determines the drawing mode for this scatter - trace. If the provided `mode` includes "text" - then the `text` elements appear at the - coordinates. Otherwise, the `text` elements - appear on hover. If there are less than 20 - points and the trace is not stacked then the - default is "lines+markers". Otherwise, "lines". - name - Sets the trace name. The trace name appears as - the legend item and on hover. - opacity - Sets the opacity of the trace. - selected - :class:`plotly.graph_objects.scattercarpet.Sele - cted` instance or dict with compatible - properties - selectedpoints - Array containing integer indices of selected - points. Has an effect only for traces that - support selections. Note that an empty array - means an empty selection where the `unselected` - are turned on for all points, whereas, any - other non-array values means no selection all - where the `selected` and `unselected` styles - have no effect. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - stream - :class:`plotly.graph_objects.scattercarpet.Stre - am` instance or dict with compatible properties - text - Sets text elements associated with each (a,b) - point. If a single string, the same string - appears over all the data points. If an array - of strings, the items are mapped in order to - the the data points in (a,b). If trace - `hoverinfo` contains a "text" flag and - "hovertext" is not set, these elements will be - seen in the hover labels. - textfont - Sets the text font. - textposition - Sets the positions of the `text` elements with - respects to the (x,y) coordinates. - textpositionsrc - Sets the source reference on Chart Studio Cloud - for `textposition`. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - texttemplate - Template string used for rendering the - information text that appear on points. Note - that this will override `textinfo`. Variables - are inserted using %{variable}, for example "y: - %{y}". Numbers are formatted using d3-format's - syntax %{variable:d3-format}, for example - "Price: %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. Every attributes - that can be specified per-point (the ones that - are `arrayOk: true`) are available. Finally, - the template string has access to variables - `a`, `b` and `text`. - texttemplatesrc - Sets the source reference on Chart Studio Cloud - for `texttemplate`. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - unselected - :class:`plotly.graph_objects.scattercarpet.Unse - lected` instance or dict with compatible - properties - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - xaxis - Sets a reference between this trace's x - coordinates and a 2D cartesian x axis. If "x" - (the default value), the x coordinates refer to - `layout.xaxis`. If "x2", the x coordinates - refer to `layout.xaxis2`, and so on. - yaxis - Sets a reference between this trace's y - coordinates and a 2D cartesian y axis. If "y" - (the default value), the y coordinates refer to - `layout.yaxis`. If "y2", the y coordinates - refer to `layout.yaxis2`, and so on. - zorder - Sets the layer on which this trace is - displayed, relative to other SVG traces on the - same subplot. SVG traces with higher `zorder` - appear in front of those with lower `zorder`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ScattercarpetValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='scattercarpet', + parent_name='', + **kwargs): + super(ScattercarpetValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Scattercarpet'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_scattergeo.py b/packages/python/plotly/plotly/validators/_scattergeo.py index 7774080183d..7103091ad18 100644 --- a/packages/python/plotly/plotly/validators/_scattergeo.py +++ b/packages/python/plotly/plotly/validators/_scattergeo.py @@ -1,321 +1,15 @@ -import _plotly_utils.basevalidators -class ScattergeoValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="scattergeo", parent_name="", **kwargs): - super(ScattergeoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Scattergeo"), - data_docs=kwargs.pop( - "data_docs", - """ - connectgaps - Determines whether or not gaps (i.e. {nan} or - missing values) in the provided data arrays are - connected. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - featureidkey - Sets the key in GeoJSON features which is used - as id to match the items included in the - `locations` array. Only has an effect when - `geojson` is set. Support nested property, for - example "properties.name". - fill - Sets the area to fill with a solid color. Use - with `fillcolor` if not "none". "toself" - connects the endpoints of the trace (or each - segment of the trace if it has gaps) into a - closed shape. - fillcolor - Sets the fill color. Defaults to a half- - transparent variant of the line color, marker - color, or marker line color, whichever is - available. - geo - Sets a reference between this trace's - geospatial coordinates and a geographic map. If - "geo" (the default value), the geospatial - coordinates refer to `layout.geo`. If "geo2", - the geospatial coordinates refer to - `layout.geo2`, and so on. - geojson - Sets optional GeoJSON data associated with this - trace. If not given, the features on the base - map are used when `locations` is set. It can be - set as a valid GeoJSON object or as a URL - string. Note that we only accept GeoJSONs of - type "FeatureCollection" or "Feature" with - geometries of type "Polygon" or "MultiPolygon". - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.scattergeo.Hoverla - bel` instance or dict with compatible - properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Sets hover text elements associated with each - (lon,lat) pair or item in `locations`. If a - single string, the same string appears over all - the data points. If an array of string, the - items are mapped in order to the this trace's - (lon,lat) or `locations` coordinates. To be - seen, trace `hoverinfo` must contain a "text" - flag. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - lat - Sets the latitude coordinates (in degrees - North). - latsrc - Sets the source reference on Chart Studio Cloud - for `lat`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.scattergeo.Legendg - rouptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - line - :class:`plotly.graph_objects.scattergeo.Line` - instance or dict with compatible properties - locationmode - Determines the set of locations used to match - entries in `locations` to regions on the map. - Values "ISO-3", "USA-states", *country names* - correspond to features on the base map and - value "geojson-id" corresponds to features from - a custom GeoJSON linked to the `geojson` - attribute. - locations - Sets the coordinates via location IDs or names. - Coordinates correspond to the centroid of each - location given. See `locationmode` for more - info. - locationssrc - Sets the source reference on Chart Studio Cloud - for `locations`. - lon - Sets the longitude coordinates (in degrees - East). - lonsrc - Sets the source reference on Chart Studio Cloud - for `lon`. - marker - :class:`plotly.graph_objects.scattergeo.Marker` - instance or dict with compatible properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - mode - Determines the drawing mode for this scatter - trace. If the provided `mode` includes "text" - then the `text` elements appear at the - coordinates. Otherwise, the `text` elements - appear on hover. If there are less than 20 - points and the trace is not stacked then the - default is "lines+markers". Otherwise, "lines". - name - Sets the trace name. The trace name appears as - the legend item and on hover. - opacity - Sets the opacity of the trace. - selected - :class:`plotly.graph_objects.scattergeo.Selecte - d` instance or dict with compatible properties - selectedpoints - Array containing integer indices of selected - points. Has an effect only for traces that - support selections. Note that an empty array - means an empty selection where the `unselected` - are turned on for all points, whereas, any - other non-array values means no selection all - where the `selected` and `unselected` styles - have no effect. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - stream - :class:`plotly.graph_objects.scattergeo.Stream` - instance or dict with compatible properties - text - Sets text elements associated with each - (lon,lat) pair or item in `locations`. If a - single string, the same string appears over all - the data points. If an array of string, the - items are mapped in order to the this trace's - (lon,lat) or `locations` coordinates. If trace - `hoverinfo` contains a "text" flag and - "hovertext" is not set, these elements will be - seen in the hover labels. - textfont - Sets the text font. - textposition - Sets the positions of the `text` elements with - respects to the (x,y) coordinates. - textpositionsrc - Sets the source reference on Chart Studio Cloud - for `textposition`. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - texttemplate - Template string used for rendering the - information text that appear on points. Note - that this will override `textinfo`. Variables - are inserted using %{variable}, for example "y: - %{y}". Numbers are formatted using d3-format's - syntax %{variable:d3-format}, for example - "Price: %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. Every attributes - that can be specified per-point (the ones that - are `arrayOk: true`) are available. Finally, - the template string has access to variables - `lat`, `lon`, `location` and `text`. - texttemplatesrc - Sets the source reference on Chart Studio Cloud - for `texttemplate`. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - unselected - :class:`plotly.graph_objects.scattergeo.Unselec - ted` instance or dict with compatible - properties - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ScattergeoValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='scattergeo', + parent_name='', + **kwargs): + super(ScattergeoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Scattergeo'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_scattergl.py b/packages/python/plotly/plotly/validators/_scattergl.py index 6de1be4c2e9..3a90bbe01ee 100644 --- a/packages/python/plotly/plotly/validators/_scattergl.py +++ b/packages/python/plotly/plotly/validators/_scattergl.py @@ -1,396 +1,15 @@ -import _plotly_utils.basevalidators -class ScatterglValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="scattergl", parent_name="", **kwargs): - super(ScatterglValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Scattergl"), - data_docs=kwargs.pop( - "data_docs", - """ - connectgaps - Determines whether or not gaps (i.e. {nan} or - missing values) in the provided data arrays are - connected. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - dx - Sets the x coordinate step. See `x0` for more - info. - dy - Sets the y coordinate step. See `y0` for more - info. - error_x - :class:`plotly.graph_objects.scattergl.ErrorX` - instance or dict with compatible properties - error_y - :class:`plotly.graph_objects.scattergl.ErrorY` - instance or dict with compatible properties - fill - Sets the area to fill with a solid color. - Defaults to "none" unless this trace is - stacked, then it gets "tonexty" ("tonextx") if - `orientation` is "v" ("h") Use with `fillcolor` - if not "none". "tozerox" and "tozeroy" fill to - x=0 and y=0 respectively. "tonextx" and - "tonexty" fill between the endpoints of this - trace and the endpoints of the trace before it, - connecting those endpoints with straight lines - (to make a stacked area graph); if there is no - trace before it, they behave like "tozerox" and - "tozeroy". "toself" connects the endpoints of - the trace (or each segment of the trace if it - has gaps) into a closed shape. "tonext" fills - the space between two traces if one completely - encloses the other (eg consecutive contour - lines), and behaves like "toself" if there is - no trace before it. "tonext" should not be used - if one trace does not enclose the other. Traces - in a `stackgroup` will only fill to (or be - filled to) other traces in the same group. With - multiple `stackgroup`s or some traces stacked - and some not, if fill-linked traces are not - already consecutive, the later ones will be - pushed down in the drawing order. - fillcolor - Sets the fill color. Defaults to a half- - transparent variant of the line color, marker - color, or marker line color, whichever is - available. - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.scattergl.Hoverlab - el` instance or dict with compatible properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Sets hover text elements associated with each - (x,y) pair. If a single string, the same string - appears over all the data points. If an array - of string, the items are mapped in order to the - this trace's (x,y) coordinates. To be seen, - trace `hoverinfo` must contain a "text" flag. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.scattergl.Legendgr - ouptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - line - :class:`plotly.graph_objects.scattergl.Line` - instance or dict with compatible properties - marker - :class:`plotly.graph_objects.scattergl.Marker` - instance or dict with compatible properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - mode - Determines the drawing mode for this scatter - trace. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - opacity - Sets the opacity of the trace. - selected - :class:`plotly.graph_objects.scattergl.Selected - ` instance or dict with compatible properties - selectedpoints - Array containing integer indices of selected - points. Has an effect only for traces that - support selections. Note that an empty array - means an empty selection where the `unselected` - are turned on for all points, whereas, any - other non-array values means no selection all - where the `selected` and `unselected` styles - have no effect. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - stream - :class:`plotly.graph_objects.scattergl.Stream` - instance or dict with compatible properties - text - Sets text elements associated with each (x,y) - pair. If a single string, the same string - appears over all the data points. If an array - of string, the items are mapped in order to the - this trace's (x,y) coordinates. If trace - `hoverinfo` contains a "text" flag and - "hovertext" is not set, these elements will be - seen in the hover labels. - textfont - Sets the text font. - textposition - Sets the positions of the `text` elements with - respects to the (x,y) coordinates. - textpositionsrc - Sets the source reference on Chart Studio Cloud - for `textposition`. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - texttemplate - Template string used for rendering the - information text that appear on points. Note - that this will override `textinfo`. Variables - are inserted using %{variable}, for example "y: - %{y}". Numbers are formatted using d3-format's - syntax %{variable:d3-format}, for example - "Price: %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. Every attributes - that can be specified per-point (the ones that - are `arrayOk: true`) are available. - texttemplatesrc - Sets the source reference on Chart Studio Cloud - for `texttemplate`. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - unselected - :class:`plotly.graph_objects.scattergl.Unselect - ed` instance or dict with compatible properties - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - x - Sets the x coordinates. - x0 - Alternate to `x`. Builds a linear space of x - coordinates. Use with `dx` where `x0` is the - starting coordinate and `dx` the step. - xaxis - Sets a reference between this trace's x - coordinates and a 2D cartesian x axis. If "x" - (the default value), the x coordinates refer to - `layout.xaxis`. If "x2", the x coordinates - refer to `layout.xaxis2`, and so on. - xcalendar - Sets the calendar system to use with `x` date - data. - xhoverformat - Sets the hover text formatting rulefor `x` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `xaxis.hoverformat`. - xperiod - Only relevant when the axis `type` is "date". - Sets the period positioning in milliseconds or - "M" on the x axis. Special values in the - form of "M" could be used to declare the - number of months. In this case `n` must be a - positive integer. - xperiod0 - Only relevant when the axis `type` is "date". - Sets the base for period positioning in - milliseconds or date string on the x0 axis. - When `x0period` is round number of weeks, the - `x0period0` by default would be on a Sunday - i.e. 2000-01-02, otherwise it would be at - 2000-01-01. - xperiodalignment - Only relevant when the axis `type` is "date". - Sets the alignment of data points on the x - axis. - xsrc - Sets the source reference on Chart Studio Cloud - for `x`. - y - Sets the y coordinates. - y0 - Alternate to `y`. Builds a linear space of y - coordinates. Use with `dy` where `y0` is the - starting coordinate and `dy` the step. - yaxis - Sets a reference between this trace's y - coordinates and a 2D cartesian y axis. If "y" - (the default value), the y coordinates refer to - `layout.yaxis`. If "y2", the y coordinates - refer to `layout.yaxis2`, and so on. - ycalendar - Sets the calendar system to use with `y` date - data. - yhoverformat - Sets the hover text formatting rulefor `y` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `yaxis.hoverformat`. - yperiod - Only relevant when the axis `type` is "date". - Sets the period positioning in milliseconds or - "M" on the y axis. Special values in the - form of "M" could be used to declare the - number of months. In this case `n` must be a - positive integer. - yperiod0 - Only relevant when the axis `type` is "date". - Sets the base for period positioning in - milliseconds or date string on the y0 axis. - When `y0period` is round number of weeks, the - `y0period0` by default would be on a Sunday - i.e. 2000-01-02, otherwise it would be at - 2000-01-01. - yperiodalignment - Only relevant when the axis `type` is "date". - Sets the alignment of data points on the y - axis. - ysrc - Sets the source reference on Chart Studio Cloud - for `y`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ScatterglValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='scattergl', + parent_name='', + **kwargs): + super(ScatterglValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Scattergl'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_scattermap.py b/packages/python/plotly/plotly/validators/_scattermap.py index de6a4905eb3..b8323efdf33 100644 --- a/packages/python/plotly/plotly/validators/_scattermap.py +++ b/packages/python/plotly/plotly/validators/_scattermap.py @@ -1,296 +1,15 @@ -import _plotly_utils.basevalidators -class ScattermapValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="scattermap", parent_name="", **kwargs): - super(ScattermapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Scattermap"), - data_docs=kwargs.pop( - "data_docs", - """ - below - Determines if this scattermap trace's layers - are to be inserted before the layer with the - specified ID. By default, scattermap layers are - inserted above all the base layers. To place - the scattermap layers above every other layer, - set `below` to "''". - cluster - :class:`plotly.graph_objects.scattermap.Cluster - ` instance or dict with compatible properties - connectgaps - Determines whether or not gaps (i.e. {nan} or - missing values) in the provided data arrays are - connected. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - fill - Sets the area to fill with a solid color. Use - with `fillcolor` if not "none". "toself" - connects the endpoints of the trace (or each - segment of the trace if it has gaps) into a - closed shape. - fillcolor - Sets the fill color. Defaults to a half- - transparent variant of the line color, marker - color, or marker line color, whichever is - available. - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.scattermap.Hoverla - bel` instance or dict with compatible - properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Sets hover text elements associated with each - (lon,lat) pair If a single string, the same - string appears over all the data points. If an - array of string, the items are mapped in order - to the this trace's (lon,lat) coordinates. To - be seen, trace `hoverinfo` must contain a - "text" flag. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - lat - Sets the latitude coordinates (in degrees - North). - latsrc - Sets the source reference on Chart Studio Cloud - for `lat`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.scattermap.Legendg - rouptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - line - :class:`plotly.graph_objects.scattermap.Line` - instance or dict with compatible properties - lon - Sets the longitude coordinates (in degrees - East). - lonsrc - Sets the source reference on Chart Studio Cloud - for `lon`. - marker - :class:`plotly.graph_objects.scattermap.Marker` - instance or dict with compatible properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - mode - Determines the drawing mode for this scatter - trace. If the provided `mode` includes "text" - then the `text` elements appear at the - coordinates. Otherwise, the `text` elements - appear on hover. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - opacity - Sets the opacity of the trace. - selected - :class:`plotly.graph_objects.scattermap.Selecte - d` instance or dict with compatible properties - selectedpoints - Array containing integer indices of selected - points. Has an effect only for traces that - support selections. Note that an empty array - means an empty selection where the `unselected` - are turned on for all points, whereas, any - other non-array values means no selection all - where the `selected` and `unselected` styles - have no effect. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - stream - :class:`plotly.graph_objects.scattermap.Stream` - instance or dict with compatible properties - subplot - Sets a reference between this trace's data - coordinates and a map subplot. If "map" (the - default value), the data refer to `layout.map`. - If "map2", the data refer to `layout.map2`, and - so on. - text - Sets text elements associated with each - (lon,lat) pair If a single string, the same - string appears over all the data points. If an - array of string, the items are mapped in order - to the this trace's (lon,lat) coordinates. If - trace `hoverinfo` contains a "text" flag and - "hovertext" is not set, these elements will be - seen in the hover labels. - textfont - Sets the icon text font - (color=map.layer.paint.text-color, - size=map.layer.layout.text-size). Has an effect - only when `type` is set to "symbol". - textposition - Sets the positions of the `text` elements with - respects to the (x,y) coordinates. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - texttemplate - Template string used for rendering the - information text that appear on points. Note - that this will override `textinfo`. Variables - are inserted using %{variable}, for example "y: - %{y}". Numbers are formatted using d3-format's - syntax %{variable:d3-format}, for example - "Price: %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. Every attributes - that can be specified per-point (the ones that - are `arrayOk: true`) are available. Finally, - the template string has access to variables - `lat`, `lon` and `text`. - texttemplatesrc - Sets the source reference on Chart Studio Cloud - for `texttemplate`. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - unselected - :class:`plotly.graph_objects.scattermap.Unselec - ted` instance or dict with compatible - properties - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ScattermapValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='scattermap', + parent_name='', + **kwargs): + super(ScattermapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Scattermap'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_scattermapbox.py b/packages/python/plotly/plotly/validators/_scattermapbox.py index 7868cc87727..3eeebb30a66 100644 --- a/packages/python/plotly/plotly/validators/_scattermapbox.py +++ b/packages/python/plotly/plotly/validators/_scattermapbox.py @@ -1,304 +1,15 @@ -import _plotly_utils.basevalidators -class ScattermapboxValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="scattermapbox", parent_name="", **kwargs): - super(ScattermapboxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Scattermapbox"), - data_docs=kwargs.pop( - "data_docs", - """ - below - Determines if this scattermapbox trace's layers - are to be inserted before the layer with the - specified ID. By default, scattermapbox layers - are inserted above all the base layers. To - place the scattermapbox layers above every - other layer, set `below` to "''". - cluster - :class:`plotly.graph_objects.scattermapbox.Clus - ter` instance or dict with compatible - properties - connectgaps - Determines whether or not gaps (i.e. {nan} or - missing values) in the provided data arrays are - connected. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - fill - Sets the area to fill with a solid color. Use - with `fillcolor` if not "none". "toself" - connects the endpoints of the trace (or each - segment of the trace if it has gaps) into a - closed shape. - fillcolor - Sets the fill color. Defaults to a half- - transparent variant of the line color, marker - color, or marker line color, whichever is - available. - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.scattermapbox.Hove - rlabel` instance or dict with compatible - properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Sets hover text elements associated with each - (lon,lat) pair If a single string, the same - string appears over all the data points. If an - array of string, the items are mapped in order - to the this trace's (lon,lat) coordinates. To - be seen, trace `hoverinfo` must contain a - "text" flag. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - lat - Sets the latitude coordinates (in degrees - North). - latsrc - Sets the source reference on Chart Studio Cloud - for `lat`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.scattermapbox.Lege - ndgrouptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - line - :class:`plotly.graph_objects.scattermapbox.Line - ` instance or dict with compatible properties - lon - Sets the longitude coordinates (in degrees - East). - lonsrc - Sets the source reference on Chart Studio Cloud - for `lon`. - marker - :class:`plotly.graph_objects.scattermapbox.Mark - er` instance or dict with compatible properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - mode - Determines the drawing mode for this scatter - trace. If the provided `mode` includes "text" - then the `text` elements appear at the - coordinates. Otherwise, the `text` elements - appear on hover. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - opacity - Sets the opacity of the trace. - selected - :class:`plotly.graph_objects.scattermapbox.Sele - cted` instance or dict with compatible - properties - selectedpoints - Array containing integer indices of selected - points. Has an effect only for traces that - support selections. Note that an empty array - means an empty selection where the `unselected` - are turned on for all points, whereas, any - other non-array values means no selection all - where the `selected` and `unselected` styles - have no effect. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - stream - :class:`plotly.graph_objects.scattermapbox.Stre - am` instance or dict with compatible properties - subplot - mapbox subplots and traces are deprecated! - Please consider switching to `map` subplots and - traces. Learn more at: - https://plotly.com/python/maplibre-migration/ - as well as - https://plotly.com/javascript/maplibre- - migration/ Sets a reference between this - trace's data coordinates and a mapbox subplot. - If "mapbox" (the default value), the data refer - to `layout.mapbox`. If "mapbox2", the data - refer to `layout.mapbox2`, and so on. - text - Sets text elements associated with each - (lon,lat) pair If a single string, the same - string appears over all the data points. If an - array of string, the items are mapped in order - to the this trace's (lon,lat) coordinates. If - trace `hoverinfo` contains a "text" flag and - "hovertext" is not set, these elements will be - seen in the hover labels. - textfont - Sets the icon text font - (color=mapbox.layer.paint.text-color, - size=mapbox.layer.layout.text-size). Has an - effect only when `type` is set to "symbol". - textposition - Sets the positions of the `text` elements with - respects to the (x,y) coordinates. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - texttemplate - Template string used for rendering the - information text that appear on points. Note - that this will override `textinfo`. Variables - are inserted using %{variable}, for example "y: - %{y}". Numbers are formatted using d3-format's - syntax %{variable:d3-format}, for example - "Price: %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. Every attributes - that can be specified per-point (the ones that - are `arrayOk: true`) are available. Finally, - the template string has access to variables - `lat`, `lon` and `text`. - texttemplatesrc - Sets the source reference on Chart Studio Cloud - for `texttemplate`. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - unselected - :class:`plotly.graph_objects.scattermapbox.Unse - lected` instance or dict with compatible - properties - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ScattermapboxValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='scattermapbox', + parent_name='', + **kwargs): + super(ScattermapboxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Scattermapbox'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_scatterpolar.py b/packages/python/plotly/plotly/validators/_scatterpolar.py index be7cf43733f..6f1e2365a91 100644 --- a/packages/python/plotly/plotly/validators/_scatterpolar.py +++ b/packages/python/plotly/plotly/validators/_scatterpolar.py @@ -1,323 +1,15 @@ -import _plotly_utils.basevalidators -class ScatterpolarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="scatterpolar", parent_name="", **kwargs): - super(ScatterpolarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Scatterpolar"), - data_docs=kwargs.pop( - "data_docs", - """ - cliponaxis - Determines whether or not markers and text - nodes are clipped about the subplot axes. To - show markers and text nodes above axis lines - and tick labels, make sure to set `xaxis.layer` - and `yaxis.layer` to *below traces*. - connectgaps - Determines whether or not gaps (i.e. {nan} or - missing values) in the provided data arrays are - connected. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - dr - Sets the r coordinate step. - dtheta - Sets the theta coordinate step. By default, the - `dtheta` step equals the subplot's period - divided by the length of the `r` coordinates. - fill - Sets the area to fill with a solid color. Use - with `fillcolor` if not "none". scatterpolar - has a subset of the options available to - scatter. "toself" connects the endpoints of the - trace (or each segment of the trace if it has - gaps) into a closed shape. "tonext" fills the - space between two traces if one completely - encloses the other (eg consecutive contour - lines), and behaves like "toself" if there is - no trace before it. "tonext" should not be used - if one trace does not enclose the other. - fillcolor - Sets the fill color. Defaults to a half- - transparent variant of the line color, marker - color, or marker line color, whichever is - available. - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.scatterpolar.Hover - label` instance or dict with compatible - properties - hoveron - Do the hover effects highlight individual - points (markers or line points) or do they - highlight filled regions? If the fill is - "toself" or "tonext" and there are no markers - or text, then the default is "fills", otherwise - it is "points". - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Sets hover text elements associated with each - (x,y) pair. If a single string, the same string - appears over all the data points. If an array - of string, the items are mapped in order to the - this trace's (x,y) coordinates. To be seen, - trace `hoverinfo` must contain a "text" flag. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.scatterpolar.Legen - dgrouptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - line - :class:`plotly.graph_objects.scatterpolar.Line` - instance or dict with compatible properties - marker - :class:`plotly.graph_objects.scatterpolar.Marke - r` instance or dict with compatible properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - mode - Determines the drawing mode for this scatter - trace. If the provided `mode` includes "text" - then the `text` elements appear at the - coordinates. Otherwise, the `text` elements - appear on hover. If there are less than 20 - points and the trace is not stacked then the - default is "lines+markers". Otherwise, "lines". - name - Sets the trace name. The trace name appears as - the legend item and on hover. - opacity - Sets the opacity of the trace. - r - Sets the radial coordinates - r0 - Alternate to `r`. Builds a linear space of r - coordinates. Use with `dr` where `r0` is the - starting coordinate and `dr` the step. - rsrc - Sets the source reference on Chart Studio Cloud - for `r`. - selected - :class:`plotly.graph_objects.scatterpolar.Selec - ted` instance or dict with compatible - properties - selectedpoints - Array containing integer indices of selected - points. Has an effect only for traces that - support selections. Note that an empty array - means an empty selection where the `unselected` - are turned on for all points, whereas, any - other non-array values means no selection all - where the `selected` and `unselected` styles - have no effect. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - stream - :class:`plotly.graph_objects.scatterpolar.Strea - m` instance or dict with compatible properties - subplot - Sets a reference between this trace's data - coordinates and a polar subplot. If "polar" - (the default value), the data refer to - `layout.polar`. If "polar2", the data refer to - `layout.polar2`, and so on. - text - Sets text elements associated with each (x,y) - pair. If a single string, the same string - appears over all the data points. If an array - of string, the items are mapped in order to the - this trace's (x,y) coordinates. If trace - `hoverinfo` contains a "text" flag and - "hovertext" is not set, these elements will be - seen in the hover labels. - textfont - Sets the text font. - textposition - Sets the positions of the `text` elements with - respects to the (x,y) coordinates. - textpositionsrc - Sets the source reference on Chart Studio Cloud - for `textposition`. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - texttemplate - Template string used for rendering the - information text that appear on points. Note - that this will override `textinfo`. Variables - are inserted using %{variable}, for example "y: - %{y}". Numbers are formatted using d3-format's - syntax %{variable:d3-format}, for example - "Price: %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. Every attributes - that can be specified per-point (the ones that - are `arrayOk: true`) are available. Finally, - the template string has access to variables - `r`, `theta` and `text`. - texttemplatesrc - Sets the source reference on Chart Studio Cloud - for `texttemplate`. - theta - Sets the angular coordinates - theta0 - Alternate to `theta`. Builds a linear space of - theta coordinates. Use with `dtheta` where - `theta0` is the starting coordinate and - `dtheta` the step. - thetasrc - Sets the source reference on Chart Studio Cloud - for `theta`. - thetaunit - Sets the unit of input "theta" values. Has an - effect only when on "linear" angular axes. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - unselected - :class:`plotly.graph_objects.scatterpolar.Unsel - ected` instance or dict with compatible - properties - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ScatterpolarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='scatterpolar', + parent_name='', + **kwargs): + super(ScatterpolarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Scatterpolar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_scatterpolargl.py b/packages/python/plotly/plotly/validators/_scatterpolargl.py index 2bc3598169b..2acc20e9a45 100644 --- a/packages/python/plotly/plotly/validators/_scatterpolargl.py +++ b/packages/python/plotly/plotly/validators/_scatterpolargl.py @@ -1,326 +1,15 @@ -import _plotly_utils.basevalidators -class ScatterpolarglValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="scatterpolargl", parent_name="", **kwargs): - super(ScatterpolarglValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Scatterpolargl"), - data_docs=kwargs.pop( - "data_docs", - """ - connectgaps - Determines whether or not gaps (i.e. {nan} or - missing values) in the provided data arrays are - connected. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - dr - Sets the r coordinate step. - dtheta - Sets the theta coordinate step. By default, the - `dtheta` step equals the subplot's period - divided by the length of the `r` coordinates. - fill - Sets the area to fill with a solid color. - Defaults to "none" unless this trace is - stacked, then it gets "tonexty" ("tonextx") if - `orientation` is "v" ("h") Use with `fillcolor` - if not "none". "tozerox" and "tozeroy" fill to - x=0 and y=0 respectively. "tonextx" and - "tonexty" fill between the endpoints of this - trace and the endpoints of the trace before it, - connecting those endpoints with straight lines - (to make a stacked area graph); if there is no - trace before it, they behave like "tozerox" and - "tozeroy". "toself" connects the endpoints of - the trace (or each segment of the trace if it - has gaps) into a closed shape. "tonext" fills - the space between two traces if one completely - encloses the other (eg consecutive contour - lines), and behaves like "toself" if there is - no trace before it. "tonext" should not be used - if one trace does not enclose the other. Traces - in a `stackgroup` will only fill to (or be - filled to) other traces in the same group. With - multiple `stackgroup`s or some traces stacked - and some not, if fill-linked traces are not - already consecutive, the later ones will be - pushed down in the drawing order. - fillcolor - Sets the fill color. Defaults to a half- - transparent variant of the line color, marker - color, or marker line color, whichever is - available. - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.scatterpolargl.Hov - erlabel` instance or dict with compatible - properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Sets hover text elements associated with each - (x,y) pair. If a single string, the same string - appears over all the data points. If an array - of string, the items are mapped in order to the - this trace's (x,y) coordinates. To be seen, - trace `hoverinfo` must contain a "text" flag. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.scatterpolargl.Leg - endgrouptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - line - :class:`plotly.graph_objects.scatterpolargl.Lin - e` instance or dict with compatible properties - marker - :class:`plotly.graph_objects.scatterpolargl.Mar - ker` instance or dict with compatible - properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - mode - Determines the drawing mode for this scatter - trace. If the provided `mode` includes "text" - then the `text` elements appear at the - coordinates. Otherwise, the `text` elements - appear on hover. If there are less than 20 - points and the trace is not stacked then the - default is "lines+markers". Otherwise, "lines". - name - Sets the trace name. The trace name appears as - the legend item and on hover. - opacity - Sets the opacity of the trace. - r - Sets the radial coordinates - r0 - Alternate to `r`. Builds a linear space of r - coordinates. Use with `dr` where `r0` is the - starting coordinate and `dr` the step. - rsrc - Sets the source reference on Chart Studio Cloud - for `r`. - selected - :class:`plotly.graph_objects.scatterpolargl.Sel - ected` instance or dict with compatible - properties - selectedpoints - Array containing integer indices of selected - points. Has an effect only for traces that - support selections. Note that an empty array - means an empty selection where the `unselected` - are turned on for all points, whereas, any - other non-array values means no selection all - where the `selected` and `unselected` styles - have no effect. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - stream - :class:`plotly.graph_objects.scatterpolargl.Str - eam` instance or dict with compatible - properties - subplot - Sets a reference between this trace's data - coordinates and a polar subplot. If "polar" - (the default value), the data refer to - `layout.polar`. If "polar2", the data refer to - `layout.polar2`, and so on. - text - Sets text elements associated with each (x,y) - pair. If a single string, the same string - appears over all the data points. If an array - of string, the items are mapped in order to the - this trace's (x,y) coordinates. If trace - `hoverinfo` contains a "text" flag and - "hovertext" is not set, these elements will be - seen in the hover labels. - textfont - Sets the text font. - textposition - Sets the positions of the `text` elements with - respects to the (x,y) coordinates. - textpositionsrc - Sets the source reference on Chart Studio Cloud - for `textposition`. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - texttemplate - Template string used for rendering the - information text that appear on points. Note - that this will override `textinfo`. Variables - are inserted using %{variable}, for example "y: - %{y}". Numbers are formatted using d3-format's - syntax %{variable:d3-format}, for example - "Price: %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. Every attributes - that can be specified per-point (the ones that - are `arrayOk: true`) are available. Finally, - the template string has access to variables - `r`, `theta` and `text`. - texttemplatesrc - Sets the source reference on Chart Studio Cloud - for `texttemplate`. - theta - Sets the angular coordinates - theta0 - Alternate to `theta`. Builds a linear space of - theta coordinates. Use with `dtheta` where - `theta0` is the starting coordinate and - `dtheta` the step. - thetasrc - Sets the source reference on Chart Studio Cloud - for `theta`. - thetaunit - Sets the unit of input "theta" values. Has an - effect only when on "linear" angular axes. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - unselected - :class:`plotly.graph_objects.scatterpolargl.Uns - elected` instance or dict with compatible - properties - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ScatterpolarglValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='scatterpolargl', + parent_name='', + **kwargs): + super(ScatterpolarglValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Scatterpolargl'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_scattersmith.py b/packages/python/plotly/plotly/validators/_scattersmith.py index 256d9bdda36..a4119d698fa 100644 --- a/packages/python/plotly/plotly/validators/_scattersmith.py +++ b/packages/python/plotly/plotly/validators/_scattersmith.py @@ -1,309 +1,15 @@ -import _plotly_utils.basevalidators -class ScattersmithValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="scattersmith", parent_name="", **kwargs): - super(ScattersmithValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Scattersmith"), - data_docs=kwargs.pop( - "data_docs", - """ - cliponaxis - Determines whether or not markers and text - nodes are clipped about the subplot axes. To - show markers and text nodes above axis lines - and tick labels, make sure to set `xaxis.layer` - and `yaxis.layer` to *below traces*. - connectgaps - Determines whether or not gaps (i.e. {nan} or - missing values) in the provided data arrays are - connected. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - fill - Sets the area to fill with a solid color. Use - with `fillcolor` if not "none". scattersmith - has a subset of the options available to - scatter. "toself" connects the endpoints of the - trace (or each segment of the trace if it has - gaps) into a closed shape. "tonext" fills the - space between two traces if one completely - encloses the other (eg consecutive contour - lines), and behaves like "toself" if there is - no trace before it. "tonext" should not be used - if one trace does not enclose the other. - fillcolor - Sets the fill color. Defaults to a half- - transparent variant of the line color, marker - color, or marker line color, whichever is - available. - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.scattersmith.Hover - label` instance or dict with compatible - properties - hoveron - Do the hover effects highlight individual - points (markers or line points) or do they - highlight filled regions? If the fill is - "toself" or "tonext" and there are no markers - or text, then the default is "fills", otherwise - it is "points". - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Sets hover text elements associated with each - (x,y) pair. If a single string, the same string - appears over all the data points. If an array - of string, the items are mapped in order to the - this trace's (x,y) coordinates. To be seen, - trace `hoverinfo` must contain a "text" flag. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - imag - Sets the imaginary component of the data, in - units of normalized impedance such that real=1, - imag=0 is the center of the chart. - imagsrc - Sets the source reference on Chart Studio Cloud - for `imag`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.scattersmith.Legen - dgrouptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - line - :class:`plotly.graph_objects.scattersmith.Line` - instance or dict with compatible properties - marker - :class:`plotly.graph_objects.scattersmith.Marke - r` instance or dict with compatible properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - mode - Determines the drawing mode for this scatter - trace. If the provided `mode` includes "text" - then the `text` elements appear at the - coordinates. Otherwise, the `text` elements - appear on hover. If there are less than 20 - points and the trace is not stacked then the - default is "lines+markers". Otherwise, "lines". - name - Sets the trace name. The trace name appears as - the legend item and on hover. - opacity - Sets the opacity of the trace. - real - Sets the real component of the data, in units - of normalized impedance such that real=1, - imag=0 is the center of the chart. - realsrc - Sets the source reference on Chart Studio Cloud - for `real`. - selected - :class:`plotly.graph_objects.scattersmith.Selec - ted` instance or dict with compatible - properties - selectedpoints - Array containing integer indices of selected - points. Has an effect only for traces that - support selections. Note that an empty array - means an empty selection where the `unselected` - are turned on for all points, whereas, any - other non-array values means no selection all - where the `selected` and `unselected` styles - have no effect. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - stream - :class:`plotly.graph_objects.scattersmith.Strea - m` instance or dict with compatible properties - subplot - Sets a reference between this trace's data - coordinates and a smith subplot. If "smith" - (the default value), the data refer to - `layout.smith`. If "smith2", the data refer to - `layout.smith2`, and so on. - text - Sets text elements associated with each (x,y) - pair. If a single string, the same string - appears over all the data points. If an array - of string, the items are mapped in order to the - this trace's (x,y) coordinates. If trace - `hoverinfo` contains a "text" flag and - "hovertext" is not set, these elements will be - seen in the hover labels. - textfont - Sets the text font. - textposition - Sets the positions of the `text` elements with - respects to the (x,y) coordinates. - textpositionsrc - Sets the source reference on Chart Studio Cloud - for `textposition`. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - texttemplate - Template string used for rendering the - information text that appear on points. Note - that this will override `textinfo`. Variables - are inserted using %{variable}, for example "y: - %{y}". Numbers are formatted using d3-format's - syntax %{variable:d3-format}, for example - "Price: %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. Every attributes - that can be specified per-point (the ones that - are `arrayOk: true`) are available. Finally, - the template string has access to variables - `real`, `imag` and `text`. - texttemplatesrc - Sets the source reference on Chart Studio Cloud - for `texttemplate`. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - unselected - :class:`plotly.graph_objects.scattersmith.Unsel - ected` instance or dict with compatible - properties - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ScattersmithValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='scattersmith', + parent_name='', + **kwargs): + super(ScattersmithValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Scattersmith'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_scatterternary.py b/packages/python/plotly/plotly/validators/_scatterternary.py index b43ccb96908..e725e54b37e 100644 --- a/packages/python/plotly/plotly/validators/_scatterternary.py +++ b/packages/python/plotly/plotly/validators/_scatterternary.py @@ -1,334 +1,15 @@ -import _plotly_utils.basevalidators -class ScatterternaryValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="scatterternary", parent_name="", **kwargs): - super(ScatterternaryValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Scatterternary"), - data_docs=kwargs.pop( - "data_docs", - """ - a - Sets the quantity of component `a` in each data - point. If `a`, `b`, and `c` are all provided, - they need not be normalized, only the relative - values matter. If only two arrays are provided - they must be normalized to match - `ternary.sum`. - asrc - Sets the source reference on Chart Studio Cloud - for `a`. - b - Sets the quantity of component `a` in each data - point. If `a`, `b`, and `c` are all provided, - they need not be normalized, only the relative - values matter. If only two arrays are provided - they must be normalized to match - `ternary.sum`. - bsrc - Sets the source reference on Chart Studio Cloud - for `b`. - c - Sets the quantity of component `a` in each data - point. If `a`, `b`, and `c` are all provided, - they need not be normalized, only the relative - values matter. If only two arrays are provided - they must be normalized to match - `ternary.sum`. - cliponaxis - Determines whether or not markers and text - nodes are clipped about the subplot axes. To - show markers and text nodes above axis lines - and tick labels, make sure to set `xaxis.layer` - and `yaxis.layer` to *below traces*. - connectgaps - Determines whether or not gaps (i.e. {nan} or - missing values) in the provided data arrays are - connected. - csrc - Sets the source reference on Chart Studio Cloud - for `c`. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - fill - Sets the area to fill with a solid color. Use - with `fillcolor` if not "none". scatterternary - has a subset of the options available to - scatter. "toself" connects the endpoints of the - trace (or each segment of the trace if it has - gaps) into a closed shape. "tonext" fills the - space between two traces if one completely - encloses the other (eg consecutive contour - lines), and behaves like "toself" if there is - no trace before it. "tonext" should not be used - if one trace does not enclose the other. - fillcolor - Sets the fill color. Defaults to a half- - transparent variant of the line color, marker - color, or marker line color, whichever is - available. - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.scatterternary.Hov - erlabel` instance or dict with compatible - properties - hoveron - Do the hover effects highlight individual - points (markers or line points) or do they - highlight filled regions? If the fill is - "toself" or "tonext" and there are no markers - or text, then the default is "fills", otherwise - it is "points". - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Sets hover text elements associated with each - (a,b,c) point. If a single string, the same - string appears over all the data points. If an - array of strings, the items are mapped in order - to the the data points in (a,b,c). To be seen, - trace `hoverinfo` must contain a "text" flag. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.scatterternary.Leg - endgrouptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - line - :class:`plotly.graph_objects.scatterternary.Lin - e` instance or dict with compatible properties - marker - :class:`plotly.graph_objects.scatterternary.Mar - ker` instance or dict with compatible - properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - mode - Determines the drawing mode for this scatter - trace. If the provided `mode` includes "text" - then the `text` elements appear at the - coordinates. Otherwise, the `text` elements - appear on hover. If there are less than 20 - points and the trace is not stacked then the - default is "lines+markers". Otherwise, "lines". - name - Sets the trace name. The trace name appears as - the legend item and on hover. - opacity - Sets the opacity of the trace. - selected - :class:`plotly.graph_objects.scatterternary.Sel - ected` instance or dict with compatible - properties - selectedpoints - Array containing integer indices of selected - points. Has an effect only for traces that - support selections. Note that an empty array - means an empty selection where the `unselected` - are turned on for all points, whereas, any - other non-array values means no selection all - where the `selected` and `unselected` styles - have no effect. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - stream - :class:`plotly.graph_objects.scatterternary.Str - eam` instance or dict with compatible - properties - subplot - Sets a reference between this trace's data - coordinates and a ternary subplot. If "ternary" - (the default value), the data refer to - `layout.ternary`. If "ternary2", the data refer - to `layout.ternary2`, and so on. - sum - The number each triplet should sum to, if only - two of `a`, `b`, and `c` are provided. This - overrides `ternary.sum` to normalize this - specific trace, but does not affect the values - displayed on the axes. 0 (or missing) means to - use ternary.sum - text - Sets text elements associated with each (a,b,c) - point. If a single string, the same string - appears over all the data points. If an array - of strings, the items are mapped in order to - the the data points in (a,b,c). If trace - `hoverinfo` contains a "text" flag and - "hovertext" is not set, these elements will be - seen in the hover labels. - textfont - Sets the text font. - textposition - Sets the positions of the `text` elements with - respects to the (x,y) coordinates. - textpositionsrc - Sets the source reference on Chart Studio Cloud - for `textposition`. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - texttemplate - Template string used for rendering the - information text that appear on points. Note - that this will override `textinfo`. Variables - are inserted using %{variable}, for example "y: - %{y}". Numbers are formatted using d3-format's - syntax %{variable:d3-format}, for example - "Price: %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. Every attributes - that can be specified per-point (the ones that - are `arrayOk: true`) are available. Finally, - the template string has access to variables - `a`, `b`, `c` and `text`. - texttemplatesrc - Sets the source reference on Chart Studio Cloud - for `texttemplate`. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - unselected - :class:`plotly.graph_objects.scatterternary.Uns - elected` instance or dict with compatible - properties - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ScatterternaryValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='scatterternary', + parent_name='', + **kwargs): + super(ScatterternaryValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Scatterternary'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_splom.py b/packages/python/plotly/plotly/validators/_splom.py index 4d695a2bc58..376423c2ccf 100644 --- a/packages/python/plotly/plotly/validators/_splom.py +++ b/packages/python/plotly/plotly/validators/_splom.py @@ -1,270 +1,15 @@ -import _plotly_utils.basevalidators -class SplomValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="splom", parent_name="", **kwargs): - super(SplomValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Splom"), - data_docs=kwargs.pop( - "data_docs", - """ - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - diagonal - :class:`plotly.graph_objects.splom.Diagonal` - instance or dict with compatible properties - dimensions - A tuple of - :class:`plotly.graph_objects.splom.Dimension` - instances or dicts with compatible properties - dimensiondefaults - When used in a template (as - layout.template.data.splom.dimensiondefaults), - sets the default property values to use for - elements of splom.dimensions - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.splom.Hoverlabel` - instance or dict with compatible properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Same as `text`. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.splom.Legendgroupt - itle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - marker - :class:`plotly.graph_objects.splom.Marker` - instance or dict with compatible properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - opacity - Sets the opacity of the trace. - selected - :class:`plotly.graph_objects.splom.Selected` - instance or dict with compatible properties - selectedpoints - Array containing integer indices of selected - points. Has an effect only for traces that - support selections. Note that an empty array - means an empty selection where the `unselected` - are turned on for all points, whereas, any - other non-array values means no selection all - where the `selected` and `unselected` styles - have no effect. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - showlowerhalf - Determines whether or not subplots on the lower - half from the diagonal are displayed. - showupperhalf - Determines whether or not subplots on the upper - half from the diagonal are displayed. - stream - :class:`plotly.graph_objects.splom.Stream` - instance or dict with compatible properties - text - Sets text elements associated with each (x,y) - pair to appear on hover. If a single string, - the same string appears over all the data - points. If an array of string, the items are - mapped in order to the this trace's (x,y) - coordinates. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - unselected - :class:`plotly.graph_objects.splom.Unselected` - instance or dict with compatible properties - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - xaxes - Sets the list of x axes corresponding to - dimensions of this splom trace. By default, a - splom will match the first N xaxes where N is - the number of input dimensions. Note that, in - case where `diagonal.visible` is false and - `showupperhalf` or `showlowerhalf` is false, - this splom trace will generate one less x-axis - and one less y-axis. - xhoverformat - Sets the hover text formatting rulefor `x` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `xaxis.hoverformat`. - yaxes - Sets the list of y axes corresponding to - dimensions of this splom trace. By default, a - splom will match the first N yaxes where N is - the number of input dimensions. Note that, in - case where `diagonal.visible` is false and - `showupperhalf` or `showlowerhalf` is false, - this splom trace will generate one less x-axis - and one less y-axis. - yhoverformat - Sets the hover text formatting rulefor `y` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `yaxis.hoverformat`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SplomValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='splom', + parent_name='', + **kwargs): + super(SplomValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Splom'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_streamtube.py b/packages/python/plotly/plotly/validators/_streamtube.py index 5336ae1fb97..26ac125ec6c 100644 --- a/packages/python/plotly/plotly/validators/_streamtube.py +++ b/packages/python/plotly/plotly/validators/_streamtube.py @@ -1,376 +1,15 @@ -import _plotly_utils.basevalidators -class StreamtubeValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="streamtube", parent_name="", **kwargs): - super(StreamtubeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Streamtube"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `colorscale`. In case - `colorscale` is unspecified or `autocolorscale` - is true, the default palette will be chosen - according to whether numbers in the `color` - array are all positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - u/v/w norm) or the bounds set in `cmin` and - `cmax` Defaults to `false` when `cmin` and - `cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Value - should have the same units as u/v/w norm and if - set, `cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `cmin` and/or `cmax` to be equidistant - to this point. Value should have the same units - as u/v/w norm. Has no effect when `cauto` is - `false`. - cmin - Sets the lower bound of the color domain. Value - should have the same units as u/v/w norm and if - set, `cmax` must be set as well. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.streamtube.ColorBa - r` instance or dict with compatible properties - colorscale - Sets the colorscale. The colorscale must be an - array containing arrays mapping a normalized - value to an rgb, rgba, hex, hsl, hsv, or named - color string. At minimum, a mapping for the - lowest (0) and highest (1) values are required. - For example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use `cmin` and - `cmax`. Alternatively, `colorscale` may be a - palette name string of the following list: Blac - kbody,Bluered,Blues,Cividis,Earth,Electric,Gree - ns,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,R - eds,Viridis,YlGnBu,YlOrRd. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.streamtube.Hoverla - bel` instance or dict with compatible - properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Finally, the template string has access to - variables `tubex`, `tubey`, `tubez`, `tubeu`, - `tubev`, `tubew`, `norm` and `divergence`. - Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Same as `text`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.streamtube.Legendg - rouptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - lighting - :class:`plotly.graph_objects.streamtube.Lightin - g` instance or dict with compatible properties - lightposition - :class:`plotly.graph_objects.streamtube.Lightpo - sition` instance or dict with compatible - properties - maxdisplayed - The maximum number of displayed segments in a - streamtube. - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - opacity - Sets the opacity of the surface. Please note - that in the case of using high `opacity` values - for example a value greater than or equal to - 0.5 on two surfaces (and 0.25 with four - surfaces), an overlay of multiple transparent - surfaces may not perfectly be sorted in depth - by the webgl API. This behavior may be improved - in the near future and is subject to change. - reversescale - Reverses the color mapping if true. If true, - `cmin` will correspond to the last color in the - array and `cmax` will correspond to the first - color. - scene - Sets a reference between this trace's 3D - coordinate system and a 3D scene. If "scene" - (the default value), the (x,y,z) coordinates - refer to `layout.scene`. If "scene2", the - (x,y,z) coordinates refer to `layout.scene2`, - and so on. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - showscale - Determines whether or not a colorbar is - displayed for this trace. - sizeref - The scaling factor for the streamtubes. The - default is 1, which avoids two max divergence - tubes from touching at adjacent starting - positions. - starts - :class:`plotly.graph_objects.streamtube.Starts` - instance or dict with compatible properties - stream - :class:`plotly.graph_objects.streamtube.Stream` - instance or dict with compatible properties - text - Sets a text element associated with this trace. - If trace `hoverinfo` contains a "text" flag, - this text element will be seen in all hover - labels. Note that streamtube traces do not - support array `text` values. - u - Sets the x components of the vector field. - uhoverformat - Sets the hover text formatting rulefor `u` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format.By default the - values are formatted using generic number - format. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - usrc - Sets the source reference on Chart Studio Cloud - for `u`. - v - Sets the y components of the vector field. - vhoverformat - Sets the hover text formatting rulefor `v` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format.By default the - values are formatted using generic number - format. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - vsrc - Sets the source reference on Chart Studio Cloud - for `v`. - w - Sets the z components of the vector field. - whoverformat - Sets the hover text formatting rulefor `w` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format.By default the - values are formatted using generic number - format. - wsrc - Sets the source reference on Chart Studio Cloud - for `w`. - x - Sets the x coordinates of the vector field. - xhoverformat - Sets the hover text formatting rulefor `x` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `xaxis.hoverformat`. - xsrc - Sets the source reference on Chart Studio Cloud - for `x`. - y - Sets the y coordinates of the vector field. - yhoverformat - Sets the hover text formatting rulefor `y` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `yaxis.hoverformat`. - ysrc - Sets the source reference on Chart Studio Cloud - for `y`. - z - Sets the z coordinates of the vector field. - zhoverformat - Sets the hover text formatting rulefor `z` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `zaxis.hoverformat`. - zsrc - Sets the source reference on Chart Studio Cloud - for `z`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamtubeValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='streamtube', + parent_name='', + **kwargs): + super(StreamtubeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Streamtube'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_sunburst.py b/packages/python/plotly/plotly/validators/_sunburst.py index 7a6593dae7b..df8f2ebc9e9 100644 --- a/packages/python/plotly/plotly/validators/_sunburst.py +++ b/packages/python/plotly/plotly/validators/_sunburst.py @@ -1,300 +1,15 @@ -import _plotly_utils.basevalidators -class SunburstValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="sunburst", parent_name="", **kwargs): - super(SunburstValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Sunburst"), - data_docs=kwargs.pop( - "data_docs", - """ - branchvalues - Determines how the items in `values` are - summed. When set to "total", items in `values` - are taken to be value of all its descendants. - When set to "remainder", items in `values` - corresponding to the root and the branches - sectors are taken to be the extra part not part - of the sum of the values at their leaves. - count - Determines default for `values` when it is not - provided, by inferring a 1 for each of the - "leaves" and/or "branches", otherwise 0. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - domain - :class:`plotly.graph_objects.sunburst.Domain` - instance or dict with compatible properties - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.sunburst.Hoverlabe - l` instance or dict with compatible properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Finally, the template string has access to - variables `currentPath`, `root`, `entry`, - `percentRoot`, `percentEntry` and - `percentParent`. Anything contained in tag - `` is displayed in the secondary box, - for example "{fullData.name}". - To hide the secondary box completely, use an - empty tag ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Sets hover text elements associated with each - sector. If a single string, the same string - appears for all data points. If an array of - string, the items are mapped in order of this - trace's sectors. To be seen, trace `hoverinfo` - must contain a "text" flag. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - insidetextfont - Sets the font used for `textinfo` lying inside - the sector. - insidetextorientation - Controls the orientation of the text inside - chart sectors. When set to "auto", text may be - oriented in any direction in order to be as big - as possible in the middle of a sector. The - "horizontal" option orients text to be parallel - with the bottom of the chart, and may make text - smaller in order to achieve that goal. The - "radial" option orients text along the radius - of the sector. The "tangential" option orients - text perpendicular to the radius of the sector. - labels - Sets the labels of each of the sectors. - labelssrc - Sets the source reference on Chart Studio Cloud - for `labels`. - leaf - :class:`plotly.graph_objects.sunburst.Leaf` - instance or dict with compatible properties - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgrouptitle - :class:`plotly.graph_objects.sunburst.Legendgro - uptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - level - Sets the level from which this trace hierarchy - is rendered. Set `level` to `''` to start from - the root node in the hierarchy. Must be an "id" - if `ids` is filled in, otherwise plotly - attempts to find a matching item in `labels`. - marker - :class:`plotly.graph_objects.sunburst.Marker` - instance or dict with compatible properties - maxdepth - Sets the number of rendered sectors from any - given `level`. Set `maxdepth` to "-1" to render - all the levels in the hierarchy. - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - opacity - Sets the opacity of the trace. - outsidetextfont - Sets the font used for `textinfo` lying outside - the sector. This option refers to the root of - the hierarchy presented at the center of a - sunburst graph. Please note that if a hierarchy - has multiple root nodes, this option won't have - any effect and `insidetextfont` would be used. - parents - Sets the parent sectors for each of the - sectors. Empty string items '' are understood - to reference the root node in the hierarchy. If - `ids` is filled, `parents` items are understood - to be "ids" themselves. When `ids` is not set, - plotly attempts to find matching items in - `labels`, but beware they must be unique. - parentssrc - Sets the source reference on Chart Studio Cloud - for `parents`. - root - :class:`plotly.graph_objects.sunburst.Root` - instance or dict with compatible properties - rotation - Rotates the whole diagram counterclockwise by - some angle. By default the first slice starts - at 3 o'clock. - sort - Determines whether or not the sectors are - reordered from largest to smallest. - stream - :class:`plotly.graph_objects.sunburst.Stream` - instance or dict with compatible properties - text - Sets text elements associated with each sector. - If trace `textinfo` contains a "text" flag, - these elements will be seen on the chart. If - trace `hoverinfo` contains a "text" flag and - "hovertext" is not set, these elements will be - seen in the hover labels. - textfont - Sets the font used for `textinfo`. - textinfo - Determines which trace information appear on - the graph. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - texttemplate - Template string used for rendering the - information text that appear on points. Note - that this will override `textinfo`. Variables - are inserted using %{variable}, for example "y: - %{y}". Numbers are formatted using d3-format's - syntax %{variable:d3-format}, for example - "Price: %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. Every attributes - that can be specified per-point (the ones that - are `arrayOk: true`) are available. Finally, - the template string has access to variables - `currentPath`, `root`, `entry`, `percentRoot`, - `percentEntry`, `percentParent`, `label` and - `value`. - texttemplatesrc - Sets the source reference on Chart Studio Cloud - for `texttemplate`. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - values - Sets the values associated with each of the - sectors. Use with `branchvalues` to determine - how the values are summed. - valuessrc - Sets the source reference on Chart Studio Cloud - for `values`. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SunburstValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='sunburst', + parent_name='', + **kwargs): + super(SunburstValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Sunburst'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_surface.py b/packages/python/plotly/plotly/validators/_surface.py index 6356503fbce..e4ef51e0aea 100644 --- a/packages/python/plotly/plotly/validators/_surface.py +++ b/packages/python/plotly/plotly/validators/_surface.py @@ -1,366 +1,15 @@ -import _plotly_utils.basevalidators -class SurfaceValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="surface", parent_name="", **kwargs): - super(SurfaceValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Surface"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `colorscale`. In case - `colorscale` is unspecified or `autocolorscale` - is true, the default palette will be chosen - according to whether numbers in the `color` - array are all positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here z - or surfacecolor) or the bounds set in `cmin` - and `cmax` Defaults to `false` when `cmin` and - `cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Value - should have the same units as z or surfacecolor - and if set, `cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `cmin` and/or `cmax` to be equidistant - to this point. Value should have the same units - as z or surfacecolor. Has no effect when - `cauto` is `false`. - cmin - Sets the lower bound of the color domain. Value - should have the same units as z or surfacecolor - and if set, `cmax` must be set as well. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.surface.ColorBar` - instance or dict with compatible properties - colorscale - Sets the colorscale. The colorscale must be an - array containing arrays mapping a normalized - value to an rgb, rgba, hex, hsl, hsv, or named - color string. At minimum, a mapping for the - lowest (0) and highest (1) values are required. - For example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use `cmin` and - `cmax`. Alternatively, `colorscale` may be a - palette name string of the following list: Blac - kbody,Bluered,Blues,Cividis,Earth,Electric,Gree - ns,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,R - eds,Viridis,YlGnBu,YlOrRd. - connectgaps - Determines whether or not gaps (i.e. {nan} or - missing values) in the `z` data are filled in. - contours - :class:`plotly.graph_objects.surface.Contours` - instance or dict with compatible properties - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - hidesurface - Determines whether or not a surface is drawn. - For example, set `hidesurface` to False - `contours.x.show` to True and `contours.y.show` - to True to draw a wire frame plot. - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.surface.Hoverlabel - ` instance or dict with compatible properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Same as `text`. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.surface.Legendgrou - ptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - lighting - :class:`plotly.graph_objects.surface.Lighting` - instance or dict with compatible properties - lightposition - :class:`plotly.graph_objects.surface.Lightposit - ion` instance or dict with compatible - properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - opacity - Sets the opacity of the surface. Please note - that in the case of using high `opacity` values - for example a value greater than or equal to - 0.5 on two surfaces (and 0.25 with four - surfaces), an overlay of multiple transparent - surfaces may not perfectly be sorted in depth - by the webgl API. This behavior may be improved - in the near future and is subject to change. - opacityscale - Sets the opacityscale. The opacityscale must be - an array containing arrays mapping a normalized - value to an opacity value. At minimum, a - mapping for the lowest (0) and highest (1) - values are required. For example, `[[0, 1], - [0.5, 0.2], [1, 1]]` means that higher/lower - values would have higher opacity values and - those in the middle would be more transparent - Alternatively, `opacityscale` may be a palette - name string of the following list: 'min', - 'max', 'extremes' and 'uniform'. The default is - 'uniform'. - reversescale - Reverses the color mapping if true. If true, - `cmin` will correspond to the last color in the - array and `cmax` will correspond to the first - color. - scene - Sets a reference between this trace's 3D - coordinate system and a 3D scene. If "scene" - (the default value), the (x,y,z) coordinates - refer to `layout.scene`. If "scene2", the - (x,y,z) coordinates refer to `layout.scene2`, - and so on. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - showscale - Determines whether or not a colorbar is - displayed for this trace. - stream - :class:`plotly.graph_objects.surface.Stream` - instance or dict with compatible properties - surfacecolor - Sets the surface color values, used for setting - a color scale independent of `z`. - surfacecolorsrc - Sets the source reference on Chart Studio Cloud - for `surfacecolor`. - text - Sets the text elements associated with each z - value. If trace `hoverinfo` contains a "text" - flag and "hovertext" is not set, these elements - will be seen in the hover labels. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - x - Sets the x coordinates. - xcalendar - Sets the calendar system to use with `x` date - data. - xhoverformat - Sets the hover text formatting rulefor `x` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `xaxis.hoverformat`. - xsrc - Sets the source reference on Chart Studio Cloud - for `x`. - y - Sets the y coordinates. - ycalendar - Sets the calendar system to use with `y` date - data. - yhoverformat - Sets the hover text formatting rulefor `y` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `yaxis.hoverformat`. - ysrc - Sets the source reference on Chart Studio Cloud - for `y`. - z - Sets the z coordinates. - zcalendar - Sets the calendar system to use with `z` date - data. - zhoverformat - Sets the hover text formatting rulefor `z` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `zaxis.hoverformat`. - zsrc - Sets the source reference on Chart Studio Cloud - for `z`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SurfaceValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='surface', + parent_name='', + **kwargs): + super(SurfaceValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Surface'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_table.py b/packages/python/plotly/plotly/validators/_table.py index b98caa7c4d1..aae250ab9c4 100644 --- a/packages/python/plotly/plotly/validators/_table.py +++ b/packages/python/plotly/plotly/validators/_table.py @@ -1,150 +1,15 @@ -import _plotly_utils.basevalidators -class TableValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="table", parent_name="", **kwargs): - super(TableValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Table"), - data_docs=kwargs.pop( - "data_docs", - """ - cells - :class:`plotly.graph_objects.table.Cells` - instance or dict with compatible properties - columnorder - Specifies the rendered order of the data - columns; for example, a value `2` at position - `0` means that column index `0` in the data - will be rendered as the third column, as - columns have an index base of zero. - columnordersrc - Sets the source reference on Chart Studio Cloud - for `columnorder`. - columnwidth - The width of columns expressed as a ratio. - Columns fill the available width in proportion - of their specified column widths. - columnwidthsrc - Sets the source reference on Chart Studio Cloud - for `columnwidth`. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - domain - :class:`plotly.graph_objects.table.Domain` - instance or dict with compatible properties - header - :class:`plotly.graph_objects.table.Header` - instance or dict with compatible properties - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.table.Hoverlabel` - instance or dict with compatible properties - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgrouptitle - :class:`plotly.graph_objects.table.Legendgroupt - itle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - stream - :class:`plotly.graph_objects.table.Stream` - instance or dict with compatible properties - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TableValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='table', + parent_name='', + **kwargs): + super(TableValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Table'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_treemap.py b/packages/python/plotly/plotly/validators/_treemap.py index f35001f80ab..945539304bb 100644 --- a/packages/python/plotly/plotly/validators/_treemap.py +++ b/packages/python/plotly/plotly/validators/_treemap.py @@ -1,290 +1,15 @@ -import _plotly_utils.basevalidators -class TreemapValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="treemap", parent_name="", **kwargs): - super(TreemapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Treemap"), - data_docs=kwargs.pop( - "data_docs", - """ - branchvalues - Determines how the items in `values` are - summed. When set to "total", items in `values` - are taken to be value of all its descendants. - When set to "remainder", items in `values` - corresponding to the root and the branches - sectors are taken to be the extra part not part - of the sum of the values at their leaves. - count - Determines default for `values` when it is not - provided, by inferring a 1 for each of the - "leaves" and/or "branches", otherwise 0. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - domain - :class:`plotly.graph_objects.treemap.Domain` - instance or dict with compatible properties - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.treemap.Hoverlabel - ` instance or dict with compatible properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Finally, the template string has access to - variables `currentPath`, `root`, `entry`, - `percentRoot`, `percentEntry` and - `percentParent`. Anything contained in tag - `` is displayed in the secondary box, - for example "{fullData.name}". - To hide the secondary box completely, use an - empty tag ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Sets hover text elements associated with each - sector. If a single string, the same string - appears for all data points. If an array of - string, the items are mapped in order of this - trace's sectors. To be seen, trace `hoverinfo` - must contain a "text" flag. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - insidetextfont - Sets the font used for `textinfo` lying inside - the sector. - labels - Sets the labels of each of the sectors. - labelssrc - Sets the source reference on Chart Studio Cloud - for `labels`. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgrouptitle - :class:`plotly.graph_objects.treemap.Legendgrou - ptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - level - Sets the level from which this trace hierarchy - is rendered. Set `level` to `''` to start from - the root node in the hierarchy. Must be an "id" - if `ids` is filled in, otherwise plotly - attempts to find a matching item in `labels`. - marker - :class:`plotly.graph_objects.treemap.Marker` - instance or dict with compatible properties - maxdepth - Sets the number of rendered sectors from any - given `level`. Set `maxdepth` to "-1" to render - all the levels in the hierarchy. - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - opacity - Sets the opacity of the trace. - outsidetextfont - Sets the font used for `textinfo` lying outside - the sector. This option refers to the root of - the hierarchy presented on top left corner of a - treemap graph. Please note that if a hierarchy - has multiple root nodes, this option won't have - any effect and `insidetextfont` would be used. - parents - Sets the parent sectors for each of the - sectors. Empty string items '' are understood - to reference the root node in the hierarchy. If - `ids` is filled, `parents` items are understood - to be "ids" themselves. When `ids` is not set, - plotly attempts to find matching items in - `labels`, but beware they must be unique. - parentssrc - Sets the source reference on Chart Studio Cloud - for `parents`. - pathbar - :class:`plotly.graph_objects.treemap.Pathbar` - instance or dict with compatible properties - root - :class:`plotly.graph_objects.treemap.Root` - instance or dict with compatible properties - sort - Determines whether or not the sectors are - reordered from largest to smallest. - stream - :class:`plotly.graph_objects.treemap.Stream` - instance or dict with compatible properties - text - Sets text elements associated with each sector. - If trace `textinfo` contains a "text" flag, - these elements will be seen on the chart. If - trace `hoverinfo` contains a "text" flag and - "hovertext" is not set, these elements will be - seen in the hover labels. - textfont - Sets the font used for `textinfo`. - textinfo - Determines which trace information appear on - the graph. - textposition - Sets the positions of the `text` elements. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - texttemplate - Template string used for rendering the - information text that appear on points. Note - that this will override `textinfo`. Variables - are inserted using %{variable}, for example "y: - %{y}". Numbers are formatted using d3-format's - syntax %{variable:d3-format}, for example - "Price: %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. Every attributes - that can be specified per-point (the ones that - are `arrayOk: true`) are available. Finally, - the template string has access to variables - `currentPath`, `root`, `entry`, `percentRoot`, - `percentEntry`, `percentParent`, `label` and - `value`. - texttemplatesrc - Sets the source reference on Chart Studio Cloud - for `texttemplate`. - tiling - :class:`plotly.graph_objects.treemap.Tiling` - instance or dict with compatible properties - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - values - Sets the values associated with each of the - sectors. Use with `branchvalues` to determine - how the values are summed. - valuessrc - Sets the source reference on Chart Studio Cloud - for `values`. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TreemapValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='treemap', + parent_name='', + **kwargs): + super(TreemapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Treemap'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_violin.py b/packages/python/plotly/plotly/validators/_violin.py index c7ab18059d1..8f3485f5820 100644 --- a/packages/python/plotly/plotly/validators/_violin.py +++ b/packages/python/plotly/plotly/validators/_violin.py @@ -1,401 +1,15 @@ -import _plotly_utils.basevalidators -class ViolinValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="violin", parent_name="", **kwargs): - super(ViolinValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Violin"), - data_docs=kwargs.pop( - "data_docs", - """ - alignmentgroup - Set several traces linked to the same position - axis or matching axes to the same - alignmentgroup. This controls whether bars - compute their positional range dependently or - independently. - bandwidth - Sets the bandwidth used to compute the kernel - density estimate. By default, the bandwidth is - determined by Silverman's rule of thumb. - box - :class:`plotly.graph_objects.violin.Box` - instance or dict with compatible properties - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - fillcolor - Sets the fill color. Defaults to a half- - transparent variant of the line color, marker - color, or marker line color, whichever is - available. - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.violin.Hoverlabel` - instance or dict with compatible properties - hoveron - Do the hover effects highlight individual - violins or sample points or the kernel density - estimate or any combination of them? - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Same as `text`. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - jitter - Sets the amount of jitter in the sample points - drawn. If 0, the sample points align along the - distribution axis. If 1, the sample points are - drawn in a random jitter of width equal to the - width of the violins. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.violin.Legendgroup - title` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - line - :class:`plotly.graph_objects.violin.Line` - instance or dict with compatible properties - marker - :class:`plotly.graph_objects.violin.Marker` - instance or dict with compatible properties - meanline - :class:`plotly.graph_objects.violin.Meanline` - instance or dict with compatible properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. For violin - traces, the name will also be used for the - position coordinate, if `x` and `x0` (`y` and - `y0` if horizontal) are missing and the - position axis is categorical. Note that the - trace name is also used as a default value for - attribute `scalegroup` (please see its - description for details). - offsetgroup - Set several traces linked to the same position - axis or matching axes to the same offsetgroup - where bars of the same position coordinate will - line up. - opacity - Sets the opacity of the trace. - orientation - Sets the orientation of the violin(s). If "v" - ("h"), the distribution is visualized along the - vertical (horizontal). - pointpos - Sets the position of the sample points in - relation to the violins. If 0, the sample - points are places over the center of the - violins. Positive (negative) values correspond - to positions to the right (left) for vertical - violins and above (below) for horizontal - violins. - points - If "outliers", only the sample points lying - outside the whiskers are shown If - "suspectedoutliers", the outlier points are - shown and points either less than 4*Q1-3*Q3 or - greater than 4*Q3-3*Q1 are highlighted (see - `outliercolor`) If "all", all sample points are - shown If False, only the violins are shown with - no sample points. Defaults to - "suspectedoutliers" when `marker.outliercolor` - or `marker.line.outliercolor` is set, otherwise - defaults to "outliers". - quartilemethod - Sets the method used to compute the sample's Q1 - and Q3 quartiles. The "linear" method uses the - 25th percentile for Q1 and 75th percentile for - Q3 as computed using method #10 (listed on - http://jse.amstat.org/v14n3/langford.html). The - "exclusive" method uses the median to divide - the ordered dataset into two halves if the - sample is odd, it does not include the median - in either half - Q1 is then the median of the - lower half and Q3 the median of the upper half. - The "inclusive" method also uses the median to - divide the ordered dataset into two halves but - if the sample is odd, it includes the median in - both halves - Q1 is then the median of the - lower half and Q3 the median of the upper half. - scalegroup - If there are multiple violins that should be - sized according to to some metric (see - `scalemode`), link them by providing a non- - empty group id here shared by every trace in - the same group. If a violin's `width` is - undefined, `scalegroup` will default to the - trace's name. In this case, violins with the - same names will be linked together - scalemode - Sets the metric by which the width of each - violin is determined. "width" means each violin - has the same (max) width "count" means the - violins are scaled by the number of sample - points making up each violin. - selected - :class:`plotly.graph_objects.violin.Selected` - instance or dict with compatible properties - selectedpoints - Array containing integer indices of selected - points. Has an effect only for traces that - support selections. Note that an empty array - means an empty selection where the `unselected` - are turned on for all points, whereas, any - other non-array values means no selection all - where the `selected` and `unselected` styles - have no effect. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - side - Determines on which side of the position value - the density function making up one half of a - violin is plotted. Useful when comparing two - violin traces under "overlay" mode, where one - trace has `side` set to "positive" and the - other to "negative". - span - Sets the span in data space for which the - density function will be computed. Has an - effect only when `spanmode` is set to "manual". - spanmode - Sets the method by which the span in data space - where the density function will be computed. - "soft" means the span goes from the sample's - minimum value minus two bandwidths to the - sample's maximum value plus two bandwidths. - "hard" means the span goes from the sample's - minimum to its maximum value. For custom span - settings, use mode "manual" and fill in the - `span` attribute. - stream - :class:`plotly.graph_objects.violin.Stream` - instance or dict with compatible properties - text - Sets the text elements associated with each - sample value. If a single string, the same - string appears over all the data points. If an - array of string, the items are mapped in order - to the this trace's (x,y) coordinates. To be - seen, trace `hoverinfo` must contain a "text" - flag. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - unselected - :class:`plotly.graph_objects.violin.Unselected` - instance or dict with compatible properties - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - width - Sets the width of the violin in data - coordinates. If 0 (default value) the width is - automatically selected based on the positions - of other violin traces in the same subplot. - x - Sets the x sample data or coordinates. See - overview for more info. - x0 - Sets the x coordinate for single-box traces or - the starting coordinate for multi-box traces - set using q1/median/q3. See overview for more - info. - xaxis - Sets a reference between this trace's x - coordinates and a 2D cartesian x axis. If "x" - (the default value), the x coordinates refer to - `layout.xaxis`. If "x2", the x coordinates - refer to `layout.xaxis2`, and so on. - xhoverformat - Sets the hover text formatting rulefor `x` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `xaxis.hoverformat`. - xsrc - Sets the source reference on Chart Studio Cloud - for `x`. - y - Sets the y sample data or coordinates. See - overview for more info. - y0 - Sets the y coordinate for single-box traces or - the starting coordinate for multi-box traces - set using q1/median/q3. See overview for more - info. - yaxis - Sets a reference between this trace's y - coordinates and a 2D cartesian y axis. If "y" - (the default value), the y coordinates refer to - `layout.yaxis`. If "y2", the y coordinates - refer to `layout.yaxis2`, and so on. - yhoverformat - Sets the hover text formatting rulefor `y` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `yaxis.hoverformat`. - ysrc - Sets the source reference on Chart Studio Cloud - for `y`. - zorder - Sets the layer on which this trace is - displayed, relative to other SVG traces on the - same subplot. SVG traces with higher `zorder` - appear in front of those with lower `zorder`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ViolinValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='violin', + parent_name='', + **kwargs): + super(ViolinValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Violin'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_volume.py b/packages/python/plotly/plotly/validators/_volume.py index 16409dcb986..4e88effda16 100644 --- a/packages/python/plotly/plotly/validators/_volume.py +++ b/packages/python/plotly/plotly/validators/_volume.py @@ -1,378 +1,15 @@ -import _plotly_utils.basevalidators -class VolumeValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="volume", parent_name="", **kwargs): - super(VolumeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Volume"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `colorscale`. In case - `colorscale` is unspecified or `autocolorscale` - is true, the default palette will be chosen - according to whether numbers in the `color` - array are all positive, all negative or mixed. - caps - :class:`plotly.graph_objects.volume.Caps` - instance or dict with compatible properties - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - `value`) or the bounds set in `cmin` and `cmax` - Defaults to `false` when `cmin` and `cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Value - should have the same units as `value` and if - set, `cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `cmin` and/or `cmax` to be equidistant - to this point. Value should have the same units - as `value`. Has no effect when `cauto` is - `false`. - cmin - Sets the lower bound of the color domain. Value - should have the same units as `value` and if - set, `cmax` must be set as well. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.volume.ColorBar` - instance or dict with compatible properties - colorscale - Sets the colorscale. The colorscale must be an - array containing arrays mapping a normalized - value to an rgb, rgba, hex, hsl, hsv, or named - color string. At minimum, a mapping for the - lowest (0) and highest (1) values are required. - For example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use `cmin` and - `cmax`. Alternatively, `colorscale` may be a - palette name string of the following list: Blac - kbody,Bluered,Blues,Cividis,Earth,Electric,Gree - ns,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,R - eds,Viridis,YlGnBu,YlOrRd. - contour - :class:`plotly.graph_objects.volume.Contour` - instance or dict with compatible properties - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - flatshading - Determines whether or not normal smoothing is - applied to the meshes, creating meshes with an - angular, low-poly look via flat reflections. - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.volume.Hoverlabel` - instance or dict with compatible properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Same as `text`. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - isomax - Sets the maximum boundary for iso-surface plot. - isomin - Sets the minimum boundary for iso-surface plot. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.volume.Legendgroup - title` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - lighting - :class:`plotly.graph_objects.volume.Lighting` - instance or dict with compatible properties - lightposition - :class:`plotly.graph_objects.volume.Lightpositi - on` instance or dict with compatible properties - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - opacity - Sets the opacity of the surface. Please note - that in the case of using high `opacity` values - for example a value greater than or equal to - 0.5 on two surfaces (and 0.25 with four - surfaces), an overlay of multiple transparent - surfaces may not perfectly be sorted in depth - by the webgl API. This behavior may be improved - in the near future and is subject to change. - opacityscale - Sets the opacityscale. The opacityscale must be - an array containing arrays mapping a normalized - value to an opacity value. At minimum, a - mapping for the lowest (0) and highest (1) - values are required. For example, `[[0, 1], - [0.5, 0.2], [1, 1]]` means that higher/lower - values would have higher opacity values and - those in the middle would be more transparent - Alternatively, `opacityscale` may be a palette - name string of the following list: 'min', - 'max', 'extremes' and 'uniform'. The default is - 'uniform'. - reversescale - Reverses the color mapping if true. If true, - `cmin` will correspond to the last color in the - array and `cmax` will correspond to the first - color. - scene - Sets a reference between this trace's 3D - coordinate system and a 3D scene. If "scene" - (the default value), the (x,y,z) coordinates - refer to `layout.scene`. If "scene2", the - (x,y,z) coordinates refer to `layout.scene2`, - and so on. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - showscale - Determines whether or not a colorbar is - displayed for this trace. - slices - :class:`plotly.graph_objects.volume.Slices` - instance or dict with compatible properties - spaceframe - :class:`plotly.graph_objects.volume.Spaceframe` - instance or dict with compatible properties - stream - :class:`plotly.graph_objects.volume.Stream` - instance or dict with compatible properties - surface - :class:`plotly.graph_objects.volume.Surface` - instance or dict with compatible properties - text - Sets the text elements associated with the - vertices. If trace `hoverinfo` contains a - "text" flag and "hovertext" is not set, these - elements will be seen in the hover labels. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - value - Sets the 4th dimension (value) of the vertices. - valuehoverformat - Sets the hover text formatting rulefor `value` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format.By default the - values are formatted using generic number - format. - valuesrc - Sets the source reference on Chart Studio Cloud - for `value`. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - x - Sets the X coordinates of the vertices on X - axis. - xhoverformat - Sets the hover text formatting rulefor `x` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `xaxis.hoverformat`. - xsrc - Sets the source reference on Chart Studio Cloud - for `x`. - y - Sets the Y coordinates of the vertices on Y - axis. - yhoverformat - Sets the hover text formatting rulefor `y` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `yaxis.hoverformat`. - ysrc - Sets the source reference on Chart Studio Cloud - for `y`. - z - Sets the Z coordinates of the vertices on Z - axis. - zhoverformat - Sets the hover text formatting rulefor `z` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `zaxis.hoverformat`. - zsrc - Sets the source reference on Chart Studio Cloud - for `z`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VolumeValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='volume', + parent_name='', + **kwargs): + super(VolumeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Volume'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/_waterfall.py b/packages/python/plotly/plotly/validators/_waterfall.py index 4368af63364..a2b38939fe1 100644 --- a/packages/python/plotly/plotly/validators/_waterfall.py +++ b/packages/python/plotly/plotly/validators/_waterfall.py @@ -1,434 +1,15 @@ -import _plotly_utils.basevalidators -class WaterfallValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="waterfall", parent_name="", **kwargs): - super(WaterfallValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Waterfall"), - data_docs=kwargs.pop( - "data_docs", - """ - alignmentgroup - Set several traces linked to the same position - axis or matching axes to the same - alignmentgroup. This controls whether bars - compute their positional range dependently or - independently. - base - Sets where the bar base is drawn (in position - axis units). - cliponaxis - Determines whether the text nodes are clipped - about the subplot axes. To show the text nodes - above axis lines and tick labels, make sure to - set `xaxis.layer` and `yaxis.layer` to *below - traces*. - connector - :class:`plotly.graph_objects.waterfall.Connecto - r` instance or dict with compatible properties - constraintext - Constrain the size of text inside or outside a - bar to be no larger than the bar itself. - customdata - Assigns extra data each datum. This may be - useful when listening to hover, click and - selection events. Note that, "scatter" traces - also appends customdata items in the markers - DOM elements - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - decreasing - :class:`plotly.graph_objects.waterfall.Decreasi - ng` instance or dict with compatible properties - dx - Sets the x coordinate step. See `x0` for more - info. - dy - Sets the y coordinate step. See `y0` for more - info. - hoverinfo - Determines which trace information appear on - hover. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverinfosrc - Sets the source reference on Chart Studio Cloud - for `hoverinfo`. - hoverlabel - :class:`plotly.graph_objects.waterfall.Hoverlab - el` instance or dict with compatible properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Finally, the template string has access to - variables `initial`, `delta` and `final`. - Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - hovertext - Sets hover text elements associated with each - (x,y) pair. If a single string, the same string - appears over all the data points. If an array - of string, the items are mapped in order to the - this trace's (x,y) coordinates. To be seen, - trace `hoverinfo` must contain a "text" flag. - hovertextsrc - Sets the source reference on Chart Studio Cloud - for `hovertext`. - ids - Assigns id labels to each datum. These ids for - object constancy of data points during - animation. Should be an array of strings, not - numbers or any other type. - idssrc - Sets the source reference on Chart Studio Cloud - for `ids`. - increasing - :class:`plotly.graph_objects.waterfall.Increasi - ng` instance or dict with compatible properties - insidetextanchor - Determines if texts are kept at center or - start/end points in `textposition` "inside" - mode. - insidetextfont - Sets the font used for `text` lying inside the - bar. - legend - Sets the reference to a legend to show this - trace in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this trace. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.waterfall.Legendgr - ouptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this trace. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this trace. - measure - An array containing types of values. By default - the values are considered as 'relative'. - However; it is possible to use 'total' to - compute the sums. Also 'absolute' could be - applied to reset the computed total or to - declare an initial value where needed. - measuresrc - Sets the source reference on Chart Studio Cloud - for `measure`. - meta - Assigns extra meta information associated with - this trace that can be used in various text - attributes. Attributes such as trace `name`, - graph, axis and colorbar `title.text`, - annotation `text` `rangeselector`, - `updatemenues` and `sliders` `label` text all - support `meta`. To access the trace `meta` - values in an attribute in the same trace, - simply use `%{meta[i]}` where `i` is the index - or key of the `meta` item in question. To - access trace `meta` in layout attributes, use - `%{data[n[.meta[i]}` where `i` is the index or - key of the `meta` and `n` is the trace index. - metasrc - Sets the source reference on Chart Studio Cloud - for `meta`. - name - Sets the trace name. The trace name appears as - the legend item and on hover. - offset - Shifts the position where the bar is drawn (in - position axis units). In "group" barmode, - traces that set "offset" will be excluded and - drawn in "overlay" mode instead. - offsetgroup - Set several traces linked to the same position - axis or matching axes to the same offsetgroup - where bars of the same position coordinate will - line up. - offsetsrc - Sets the source reference on Chart Studio Cloud - for `offset`. - opacity - Sets the opacity of the trace. - orientation - Sets the orientation of the bars. With "v" - ("h"), the value of the each bar spans along - the vertical (horizontal). - outsidetextfont - Sets the font used for `text` lying outside the - bar. - selectedpoints - Array containing integer indices of selected - points. Has an effect only for traces that - support selections. Note that an empty array - means an empty selection where the `unselected` - are turned on for all points, whereas, any - other non-array values means no selection all - where the `selected` and `unselected` styles - have no effect. - showlegend - Determines whether or not an item corresponding - to this trace is shown in the legend. - stream - :class:`plotly.graph_objects.waterfall.Stream` - instance or dict with compatible properties - text - Sets text elements associated with each (x,y) - pair. If a single string, the same string - appears over all the data points. If an array - of string, the items are mapped in order to the - this trace's (x,y) coordinates. If trace - `hoverinfo` contains a "text" flag and - "hovertext" is not set, these elements will be - seen in the hover labels. - textangle - Sets the angle of the tick labels with respect - to the bar. For example, a `tickangle` of -90 - draws the tick labels vertically. With "auto" - the texts may automatically be rotated to fit - with the maximum size in bars. - textfont - Sets the font used for `text`. - textinfo - Determines which trace information appear on - the graph. In the case of having multiple - waterfalls, totals are computed separately (per - trace). - textposition - Specifies the location of the `text`. "inside" - positions `text` inside, next to the bar end - (rotated and scaled if needed). "outside" - positions `text` outside, next to the bar end - (scaled if needed), unless there is another bar - stacked on this one, then the text gets pushed - inside. "auto" tries to position `text` inside - the bar, but if the bar is too small and no bar - is stacked on this one the text is moved - outside. If "none", no text appears. - textpositionsrc - Sets the source reference on Chart Studio Cloud - for `textposition`. - textsrc - Sets the source reference on Chart Studio Cloud - for `text`. - texttemplate - Template string used for rendering the - information text that appear on points. Note - that this will override `textinfo`. Variables - are inserted using %{variable}, for example "y: - %{y}". Numbers are formatted using d3-format's - syntax %{variable:d3-format}, for example - "Price: %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. Every attributes - that can be specified per-point (the ones that - are `arrayOk: true`) are available. Finally, - the template string has access to variables - `initial`, `delta`, `final` and `label`. - texttemplatesrc - Sets the source reference on Chart Studio Cloud - for `texttemplate`. - totals - :class:`plotly.graph_objects.waterfall.Totals` - instance or dict with compatible properties - uid - Assign an id to this trace, Use this to provide - object constancy between traces during - animations and transitions. - uirevision - Controls persistence of some user-driven - changes to the trace: `constraintrange` in - `parcoords` traces, as well as some `editable: - true` modifications such as `name` and - `colorbar.title`. Defaults to - `layout.uirevision`. Note that other user- - driven trace attribute changes are controlled - by `layout` attributes: `trace.visible` is - controlled by `layout.legend.uirevision`, - `selectedpoints` is controlled by - `layout.selectionrevision`, and - `colorbar.(x|y)` (accessible with `config: - {editable: true}`) is controlled by - `layout.editrevision`. Trace changes are - tracked by `uid`, which only falls back on - trace index if no `uid` is provided. So if your - app can add/remove traces before the end of the - `data` array, such that the same trace has a - different index, you can still preserve user- - driven changes if you give each trace a `uid` - that stays with it as it moves. - visible - Determines whether or not this trace is - visible. If "legendonly", the trace is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - width - Sets the bar width (in position axis units). - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. - x - Sets the x coordinates. - x0 - Alternate to `x`. Builds a linear space of x - coordinates. Use with `dx` where `x0` is the - starting coordinate and `dx` the step. - xaxis - Sets a reference between this trace's x - coordinates and a 2D cartesian x axis. If "x" - (the default value), the x coordinates refer to - `layout.xaxis`. If "x2", the x coordinates - refer to `layout.xaxis2`, and so on. - xhoverformat - Sets the hover text formatting rulefor `x` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `xaxis.hoverformat`. - xperiod - Only relevant when the axis `type` is "date". - Sets the period positioning in milliseconds or - "M" on the x axis. Special values in the - form of "M" could be used to declare the - number of months. In this case `n` must be a - positive integer. - xperiod0 - Only relevant when the axis `type` is "date". - Sets the base for period positioning in - milliseconds or date string on the x0 axis. - When `x0period` is round number of weeks, the - `x0period0` by default would be on a Sunday - i.e. 2000-01-02, otherwise it would be at - 2000-01-01. - xperiodalignment - Only relevant when the axis `type` is "date". - Sets the alignment of data points on the x - axis. - xsrc - Sets the source reference on Chart Studio Cloud - for `x`. - y - Sets the y coordinates. - y0 - Alternate to `y`. Builds a linear space of y - coordinates. Use with `dy` where `y0` is the - starting coordinate and `dy` the step. - yaxis - Sets a reference between this trace's y - coordinates and a 2D cartesian y axis. If "y" - (the default value), the y coordinates refer to - `layout.yaxis`. If "y2", the y coordinates - refer to `layout.yaxis2`, and so on. - yhoverformat - Sets the hover text formatting rulefor `y` - using d3 formatting mini-languages which are - very similar to those in Python. For numbers, - see: https://github.com/d3/d3- - format/tree/v1.4.5#d3-format. And for dates - see: https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - *09~15~23.46*By default the values are - formatted using `yaxis.hoverformat`. - yperiod - Only relevant when the axis `type` is "date". - Sets the period positioning in milliseconds or - "M" on the y axis. Special values in the - form of "M" could be used to declare the - number of months. In this case `n` must be a - positive integer. - yperiod0 - Only relevant when the axis `type` is "date". - Sets the base for period positioning in - milliseconds or date string on the y0 axis. - When `y0period` is round number of weeks, the - `y0period0` by default would be on a Sunday - i.e. 2000-01-02, otherwise it would be at - 2000-01-01. - yperiodalignment - Only relevant when the axis `type` is "date". - Sets the alignment of data points on the y - axis. - ysrc - Sets the source reference on Chart Studio Cloud - for `y`. - zorder - Sets the layer on which this trace is - displayed, relative to other SVG traces on the - same subplot. SVG traces with higher `zorder` - appear in front of those with lower `zorder`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WaterfallValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='waterfall', + parent_name='', + **kwargs): + super(WaterfallValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Waterfall'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/__init__.py b/packages/python/plotly/plotly/validators/bar/__init__.py index 152121c1866..dbe08a512cd 100644 --- a/packages/python/plotly/plotly/validators/bar/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zorder import ZorderValidator from ._ysrc import YsrcValidator @@ -78,84 +77,10 @@ from ._alignmentgroup import AlignmentgroupValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zorder.ZorderValidator", - "._ysrc.YsrcValidator", - "._yperiodalignment.YperiodalignmentValidator", - "._yperiod0.Yperiod0Validator", - "._yperiod.YperiodValidator", - "._yhoverformat.YhoverformatValidator", - "._ycalendar.YcalendarValidator", - "._yaxis.YaxisValidator", - "._y0.Y0Validator", - "._y.YValidator", - "._xsrc.XsrcValidator", - "._xperiodalignment.XperiodalignmentValidator", - "._xperiod0.Xperiod0Validator", - "._xperiod.XperiodValidator", - "._xhoverformat.XhoverformatValidator", - "._xcalendar.XcalendarValidator", - "._xaxis.XaxisValidator", - "._x0.X0Validator", - "._x.XValidator", - "._widthsrc.WidthsrcValidator", - "._width.WidthValidator", - "._visible.VisibleValidator", - "._unselected.UnselectedValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._texttemplatesrc.TexttemplatesrcValidator", - "._texttemplate.TexttemplateValidator", - "._textsrc.TextsrcValidator", - "._textpositionsrc.TextpositionsrcValidator", - "._textposition.TextpositionValidator", - "._textfont.TextfontValidator", - "._textangle.TextangleValidator", - "._text.TextValidator", - "._stream.StreamValidator", - "._showlegend.ShowlegendValidator", - "._selectedpoints.SelectedpointsValidator", - "._selected.SelectedValidator", - "._outsidetextfont.OutsidetextfontValidator", - "._orientation.OrientationValidator", - "._opacity.OpacityValidator", - "._offsetsrc.OffsetsrcValidator", - "._offsetgroup.OffsetgroupValidator", - "._offset.OffsetValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._marker.MarkerValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._insidetextfont.InsidetextfontValidator", - "._insidetextanchor.InsidetextanchorValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._error_y.Error_YValidator", - "._error_x.Error_XValidator", - "._dy.DyValidator", - "._dx.DxValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._constraintext.ConstraintextValidator", - "._cliponaxis.CliponaxisValidator", - "._basesrc.BasesrcValidator", - "._base.BaseValidator", - "._alignmentgroup.AlignmentgroupValidator", - ], + ['._zorder.ZorderValidator', '._ysrc.YsrcValidator', '._yperiodalignment.YperiodalignmentValidator', '._yperiod0.Yperiod0Validator', '._yperiod.YperiodValidator', '._yhoverformat.YhoverformatValidator', '._ycalendar.YcalendarValidator', '._yaxis.YaxisValidator', '._y0.Y0Validator', '._y.YValidator', '._xsrc.XsrcValidator', '._xperiodalignment.XperiodalignmentValidator', '._xperiod0.Xperiod0Validator', '._xperiod.XperiodValidator', '._xhoverformat.XhoverformatValidator', '._xcalendar.XcalendarValidator', '._xaxis.XaxisValidator', '._x0.X0Validator', '._x.XValidator', '._widthsrc.WidthsrcValidator', '._width.WidthValidator', '._visible.VisibleValidator', '._unselected.UnselectedValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._texttemplatesrc.TexttemplatesrcValidator', '._texttemplate.TexttemplateValidator', '._textsrc.TextsrcValidator', '._textpositionsrc.TextpositionsrcValidator', '._textposition.TextpositionValidator', '._textfont.TextfontValidator', '._textangle.TextangleValidator', '._text.TextValidator', '._stream.StreamValidator', '._showlegend.ShowlegendValidator', '._selectedpoints.SelectedpointsValidator', '._selected.SelectedValidator', '._outsidetextfont.OutsidetextfontValidator', '._orientation.OrientationValidator', '._opacity.OpacityValidator', '._offsetsrc.OffsetsrcValidator', '._offsetgroup.OffsetgroupValidator', '._offset.OffsetValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._marker.MarkerValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._insidetextfont.InsidetextfontValidator', '._insidetextanchor.InsidetextanchorValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._error_y.Error_YValidator', '._error_x.Error_XValidator', '._dy.DyValidator', '._dx.DxValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._constraintext.ConstraintextValidator', '._cliponaxis.CliponaxisValidator', '._basesrc.BasesrcValidator', '._base.BaseValidator', '._alignmentgroup.AlignmentgroupValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/bar/_alignmentgroup.py b/packages/python/plotly/plotly/validators/bar/_alignmentgroup.py index 9fbb19855f8..8b15beb5a1f 100644 --- a/packages/python/plotly/plotly/validators/bar/_alignmentgroup.py +++ b/packages/python/plotly/plotly/validators/bar/_alignmentgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AlignmentgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="alignmentgroup", parent_name="bar", **kwargs): - super(AlignmentgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AlignmentgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='alignmentgroup', + parent_name='bar', + **kwargs): + super(AlignmentgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_base.py b/packages/python/plotly/plotly/validators/bar/_base.py index 584377e50e0..2a87607bee5 100644 --- a/packages/python/plotly/plotly/validators/bar/_base.py +++ b/packages/python/plotly/plotly/validators/bar/_base.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class BaseValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="base", parent_name="bar", **kwargs): - super(BaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BaseValidator(_bv.AnyValidator): + def __init__(self, plotly_name='base', + parent_name='bar', + **kwargs): + super(BaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_basesrc.py b/packages/python/plotly/plotly/validators/bar/_basesrc.py index a0d9cc1a8ad..4a7167d85d1 100644 --- a/packages/python/plotly/plotly/validators/bar/_basesrc.py +++ b/packages/python/plotly/plotly/validators/bar/_basesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="basesrc", parent_name="bar", **kwargs): - super(BasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='basesrc', + parent_name='bar', + **kwargs): + super(BasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_cliponaxis.py b/packages/python/plotly/plotly/validators/bar/_cliponaxis.py index e6d801a1dbb..3f62511bae7 100644 --- a/packages/python/plotly/plotly/validators/bar/_cliponaxis.py +++ b/packages/python/plotly/plotly/validators/bar/_cliponaxis.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CliponaxisValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cliponaxis", parent_name="bar", **kwargs): - super(CliponaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CliponaxisValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cliponaxis', + parent_name='bar', + **kwargs): + super(CliponaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_constraintext.py b/packages/python/plotly/plotly/validators/bar/_constraintext.py index 606706b9082..9b32aec5677 100644 --- a/packages/python/plotly/plotly/validators/bar/_constraintext.py +++ b/packages/python/plotly/plotly/validators/bar/_constraintext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ConstraintextValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="constraintext", parent_name="bar", **kwargs): - super(ConstraintextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["inside", "outside", "both", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ConstraintextValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='constraintext', + parent_name='bar', + **kwargs): + super(ConstraintextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['inside', 'outside', 'both', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_customdata.py b/packages/python/plotly/plotly/validators/bar/_customdata.py index 237901bd6e0..fc7e71623b3 100644 --- a/packages/python/plotly/plotly/validators/bar/_customdata.py +++ b/packages/python/plotly/plotly/validators/bar/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="bar", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='bar', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_customdatasrc.py b/packages/python/plotly/plotly/validators/bar/_customdatasrc.py index 47908075b8d..11d04285fdf 100644 --- a/packages/python/plotly/plotly/validators/bar/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/bar/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="bar", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='bar', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_dx.py b/packages/python/plotly/plotly/validators/bar/_dx.py index 0a0050b93b5..b3c1f10e14b 100644 --- a/packages/python/plotly/plotly/validators/bar/_dx.py +++ b/packages/python/plotly/plotly/validators/bar/_dx.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class DxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="dx", parent_name="bar", **kwargs): - super(DxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dx', + parent_name='bar', + **kwargs): + super(DxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_dy.py b/packages/python/plotly/plotly/validators/bar/_dy.py index b60aa224193..2f85f68fb39 100644 --- a/packages/python/plotly/plotly/validators/bar/_dy.py +++ b/packages/python/plotly/plotly/validators/bar/_dy.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class DyValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="dy", parent_name="bar", **kwargs): - super(DyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DyValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dy', + parent_name='bar', + **kwargs): + super(DyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_error_x.py b/packages/python/plotly/plotly/validators/bar/_error_x.py index 04824c2effa..6726bada526 100644 --- a/packages/python/plotly/plotly/validators/bar/_error_x.py +++ b/packages/python/plotly/plotly/validators/bar/_error_x.py @@ -1,73 +1,15 @@ -import _plotly_utils.basevalidators -class Error_XValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="error_x", parent_name="bar", **kwargs): - super(Error_XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ErrorX"), - data_docs=kwargs.pop( - "data_docs", - """ - array - Sets the data corresponding the length of each - error bar. Values are plotted relative to the - underlying data. - arrayminus - Sets the data corresponding the length of each - error bar in the bottom (left) direction for - vertical (horizontal) bars Values are plotted - relative to the underlying data. - arrayminussrc - Sets the source reference on Chart Studio Cloud - for `arrayminus`. - arraysrc - Sets the source reference on Chart Studio Cloud - for `array`. - color - Sets the stroke color of the error bars. - copy_ystyle +import _plotly_utils.basevalidators as _bv - symmetric - Determines whether or not the error bars have - the same length in both direction (top/bottom - for vertical bars, left/right for horizontal - bars. - thickness - Sets the thickness (in px) of the error bars. - traceref - tracerefminus - - type - Determines the rule used to generate the error - bars. If *constant`, the bar lengths are of a - constant value. Set this constant in `value`. - If "percent", the bar lengths correspond to a - percentage of underlying data. Set this - percentage in `value`. If "sqrt", the bar - lengths correspond to the square of the - underlying data. If "data", the bar lengths are - set with data set `array`. - value - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars. - valueminus - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars in the bottom - (left) direction for vertical (horizontal) bars - visible - Determines whether or not this set of error - bars is visible. - width - Sets the width (in px) of the cross-bar at both - ends of the error bars. -""", - ), - **kwargs, - ) +class Error_XValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='error_x', + parent_name='bar', + **kwargs): + super(Error_XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ErrorX'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_error_y.py b/packages/python/plotly/plotly/validators/bar/_error_y.py index 0d27d95c631..96b71611791 100644 --- a/packages/python/plotly/plotly/validators/bar/_error_y.py +++ b/packages/python/plotly/plotly/validators/bar/_error_y.py @@ -1,71 +1,15 @@ -import _plotly_utils.basevalidators -class Error_YValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="error_y", parent_name="bar", **kwargs): - super(Error_YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ErrorY"), - data_docs=kwargs.pop( - "data_docs", - """ - array - Sets the data corresponding the length of each - error bar. Values are plotted relative to the - underlying data. - arrayminus - Sets the data corresponding the length of each - error bar in the bottom (left) direction for - vertical (horizontal) bars Values are plotted - relative to the underlying data. - arrayminussrc - Sets the source reference on Chart Studio Cloud - for `arrayminus`. - arraysrc - Sets the source reference on Chart Studio Cloud - for `array`. - color - Sets the stroke color of the error bars. - symmetric - Determines whether or not the error bars have - the same length in both direction (top/bottom - for vertical bars, left/right for horizontal - bars. - thickness - Sets the thickness (in px) of the error bars. - traceref +import _plotly_utils.basevalidators as _bv - tracerefminus - type - Determines the rule used to generate the error - bars. If *constant`, the bar lengths are of a - constant value. Set this constant in `value`. - If "percent", the bar lengths correspond to a - percentage of underlying data. Set this - percentage in `value`. If "sqrt", the bar - lengths correspond to the square of the - underlying data. If "data", the bar lengths are - set with data set `array`. - value - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars. - valueminus - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars in the bottom - (left) direction for vertical (horizontal) bars - visible - Determines whether or not this set of error - bars is visible. - width - Sets the width (in px) of the cross-bar at both - ends of the error bars. -""", - ), - **kwargs, - ) +class Error_YValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='error_y', + parent_name='bar', + **kwargs): + super(Error_YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ErrorY'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_hoverinfo.py b/packages/python/plotly/plotly/validators/bar/_hoverinfo.py index 867db378262..ddcf162cbd3 100644 --- a/packages/python/plotly/plotly/validators/bar/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/bar/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="bar", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='bar', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/bar/_hoverinfosrc.py index 8cb8cec131e..c7affb2d647 100644 --- a/packages/python/plotly/plotly/validators/bar/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/bar/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="bar", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='bar', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_hoverlabel.py b/packages/python/plotly/plotly/validators/bar/_hoverlabel.py index 702f72613ad..aea4c19f437 100644 --- a/packages/python/plotly/plotly/validators/bar/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/bar/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="bar", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='bar', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_hovertemplate.py b/packages/python/plotly/plotly/validators/bar/_hovertemplate.py index 8e90cd02721..da4c37dc1b3 100644 --- a/packages/python/plotly/plotly/validators/bar/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/bar/_hovertemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="bar", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='bar', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/bar/_hovertemplatesrc.py index 69cbf698514..0cbdefe201e 100644 --- a/packages/python/plotly/plotly/validators/bar/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/bar/_hovertemplatesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertemplatesrc", parent_name="bar", **kwargs): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='bar', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_hovertext.py b/packages/python/plotly/plotly/validators/bar/_hovertext.py index 01550e746b2..7277a49a9c0 100644 --- a/packages/python/plotly/plotly/validators/bar/_hovertext.py +++ b/packages/python/plotly/plotly/validators/bar/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="bar", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='bar', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_hovertextsrc.py b/packages/python/plotly/plotly/validators/bar/_hovertextsrc.py index 753980999b9..aff64dc0995 100644 --- a/packages/python/plotly/plotly/validators/bar/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/bar/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="bar", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='bar', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_ids.py b/packages/python/plotly/plotly/validators/bar/_ids.py index 321a2b976f7..fb0aeede8ab 100644 --- a/packages/python/plotly/plotly/validators/bar/_ids.py +++ b/packages/python/plotly/plotly/validators/bar/_ids.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="bar", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='bar', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_idssrc.py b/packages/python/plotly/plotly/validators/bar/_idssrc.py index 198c60ea601..94e32940bc1 100644 --- a/packages/python/plotly/plotly/validators/bar/_idssrc.py +++ b/packages/python/plotly/plotly/validators/bar/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="bar", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='bar', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_insidetextanchor.py b/packages/python/plotly/plotly/validators/bar/_insidetextanchor.py index 0dcbe0aafa7..e9d732a61ec 100644 --- a/packages/python/plotly/plotly/validators/bar/_insidetextanchor.py +++ b/packages/python/plotly/plotly/validators/bar/_insidetextanchor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class InsidetextanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="insidetextanchor", parent_name="bar", **kwargs): - super(InsidetextanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["end", "middle", "start"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class InsidetextanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='insidetextanchor', + parent_name='bar', + **kwargs): + super(InsidetextanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['end', 'middle', 'start']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_insidetextfont.py b/packages/python/plotly/plotly/validators/bar/_insidetextfont.py index 6235a6e4868..f0cdfecbf93 100644 --- a/packages/python/plotly/plotly/validators/bar/_insidetextfont.py +++ b/packages/python/plotly/plotly/validators/bar/_insidetextfont.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class InsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="insidetextfont", parent_name="bar", **kwargs): - super(InsidetextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Insidetextfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class InsidetextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='insidetextfont', + parent_name='bar', + **kwargs): + super(InsidetextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Insidetextfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_legend.py b/packages/python/plotly/plotly/validators/bar/_legend.py index 81e028057cd..2ebe0d0a653 100644 --- a/packages/python/plotly/plotly/validators/bar/_legend.py +++ b/packages/python/plotly/plotly/validators/bar/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="bar", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='bar', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_legendgroup.py b/packages/python/plotly/plotly/validators/bar/_legendgroup.py index 5242235527d..6e07506ee95 100644 --- a/packages/python/plotly/plotly/validators/bar/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/bar/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="bar", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='bar', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/bar/_legendgrouptitle.py index 9500b982d5c..645cffea5ae 100644 --- a/packages/python/plotly/plotly/validators/bar/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/bar/_legendgrouptitle.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="legendgrouptitle", parent_name="bar", **kwargs): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='bar', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_legendrank.py b/packages/python/plotly/plotly/validators/bar/_legendrank.py index e92f1f374be..32021968208 100644 --- a/packages/python/plotly/plotly/validators/bar/_legendrank.py +++ b/packages/python/plotly/plotly/validators/bar/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="bar", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='bar', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_legendwidth.py b/packages/python/plotly/plotly/validators/bar/_legendwidth.py index 4e7854401f8..fd4de239dc5 100644 --- a/packages/python/plotly/plotly/validators/bar/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/bar/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="bar", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='bar', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_marker.py b/packages/python/plotly/plotly/validators/bar/_marker.py index 08d21a44398..ea44df3a4fd 100644 --- a/packages/python/plotly/plotly/validators/bar/_marker.py +++ b/packages/python/plotly/plotly/validators/bar/_marker.py @@ -1,119 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="bar", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.bar.marker.ColorBa - r` instance or dict with compatible properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - cornerradius - Sets the rounding of corners. May be an integer - number of pixels, or a percentage of bar width - (as a string ending in %). Defaults to - `layout.barcornerradius`. In stack or relative - barmode, the first trace to set cornerradius is - used for the whole stack. - line - :class:`plotly.graph_objects.bar.marker.Line` - instance or dict with compatible properties - opacity - Sets the opacity of the bars. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - pattern - Sets the pattern within the marker. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='bar', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_meta.py b/packages/python/plotly/plotly/validators/bar/_meta.py index ef0ae4f75c5..69d8c1d867c 100644 --- a/packages/python/plotly/plotly/validators/bar/_meta.py +++ b/packages/python/plotly/plotly/validators/bar/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="bar", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='bar', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_metasrc.py b/packages/python/plotly/plotly/validators/bar/_metasrc.py index f145bbe6ba7..ad0420914f1 100644 --- a/packages/python/plotly/plotly/validators/bar/_metasrc.py +++ b/packages/python/plotly/plotly/validators/bar/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="bar", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='bar', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_name.py b/packages/python/plotly/plotly/validators/bar/_name.py index a5c39d828ef..616b20b6dd9 100644 --- a/packages/python/plotly/plotly/validators/bar/_name.py +++ b/packages/python/plotly/plotly/validators/bar/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="bar", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='bar', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_offset.py b/packages/python/plotly/plotly/validators/bar/_offset.py index 97eaa5fc925..a458ea4cc9c 100644 --- a/packages/python/plotly/plotly/validators/bar/_offset.py +++ b/packages/python/plotly/plotly/validators/bar/_offset.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class OffsetValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="offset", parent_name="bar", **kwargs): - super(OffsetValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OffsetValidator(_bv.NumberValidator): + def __init__(self, plotly_name='offset', + parent_name='bar', + **kwargs): + super(OffsetValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_offsetgroup.py b/packages/python/plotly/plotly/validators/bar/_offsetgroup.py index 27143f915be..73899aa0fba 100644 --- a/packages/python/plotly/plotly/validators/bar/_offsetgroup.py +++ b/packages/python/plotly/plotly/validators/bar/_offsetgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class OffsetgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="offsetgroup", parent_name="bar", **kwargs): - super(OffsetgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OffsetgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='offsetgroup', + parent_name='bar', + **kwargs): + super(OffsetgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_offsetsrc.py b/packages/python/plotly/plotly/validators/bar/_offsetsrc.py index f4a2749b0ce..7d6e0f430fc 100644 --- a/packages/python/plotly/plotly/validators/bar/_offsetsrc.py +++ b/packages/python/plotly/plotly/validators/bar/_offsetsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class OffsetsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="offsetsrc", parent_name="bar", **kwargs): - super(OffsetsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OffsetsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='offsetsrc', + parent_name='bar', + **kwargs): + super(OffsetsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_opacity.py b/packages/python/plotly/plotly/validators/bar/_opacity.py index 616a6518341..d6c8bc2a0eb 100644 --- a/packages/python/plotly/plotly/validators/bar/_opacity.py +++ b/packages/python/plotly/plotly/validators/bar/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="bar", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='bar', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_orientation.py b/packages/python/plotly/plotly/validators/bar/_orientation.py index bdae787bd4e..cf5db5410c3 100644 --- a/packages/python/plotly/plotly/validators/bar/_orientation.py +++ b/packages/python/plotly/plotly/validators/bar/_orientation.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="orientation", parent_name="bar", **kwargs): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - values=kwargs.pop("values", ["v", "h"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='bar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + values=kwargs.pop('values', ['v', 'h']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_outsidetextfont.py b/packages/python/plotly/plotly/validators/bar/_outsidetextfont.py index 5910716f5a8..86ea57c40f7 100644 --- a/packages/python/plotly/plotly/validators/bar/_outsidetextfont.py +++ b/packages/python/plotly/plotly/validators/bar/_outsidetextfont.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class OutsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="outsidetextfont", parent_name="bar", **kwargs): - super(OutsidetextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Outsidetextfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class OutsidetextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='outsidetextfont', + parent_name='bar', + **kwargs): + super(OutsidetextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Outsidetextfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_selected.py b/packages/python/plotly/plotly/validators/bar/_selected.py index cbe89b4db7a..f2e59295ce4 100644 --- a/packages/python/plotly/plotly/validators/bar/_selected.py +++ b/packages/python/plotly/plotly/validators/bar/_selected.py @@ -1,23 +1,15 @@ -import _plotly_utils.basevalidators -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="selected", parent_name="bar", **kwargs): - super(SelectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Selected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.bar.selected.Marke - r` instance or dict with compatible properties - textfont - :class:`plotly.graph_objects.bar.selected.Textf - ont` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='selected', + parent_name='bar', + **kwargs): + super(SelectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_selectedpoints.py b/packages/python/plotly/plotly/validators/bar/_selectedpoints.py index 8a35381e27c..ce3acd7c92d 100644 --- a/packages/python/plotly/plotly/validators/bar/_selectedpoints.py +++ b/packages/python/plotly/plotly/validators/bar/_selectedpoints.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="selectedpoints", parent_name="bar", **kwargs): - super(SelectedpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedpointsValidator(_bv.AnyValidator): + def __init__(self, plotly_name='selectedpoints', + parent_name='bar', + **kwargs): + super(SelectedpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_showlegend.py b/packages/python/plotly/plotly/validators/bar/_showlegend.py index 0b960cd3e97..0ae964f6a36 100644 --- a/packages/python/plotly/plotly/validators/bar/_showlegend.py +++ b/packages/python/plotly/plotly/validators/bar/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="bar", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='bar', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_stream.py b/packages/python/plotly/plotly/validators/bar/_stream.py index cd88e2d1657..873bb96df7f 100644 --- a/packages/python/plotly/plotly/validators/bar/_stream.py +++ b/packages/python/plotly/plotly/validators/bar/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="bar", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='bar', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_text.py b/packages/python/plotly/plotly/validators/bar/_text.py index b160636bc39..c879c8c5a88 100644 --- a/packages/python/plotly/plotly/validators/bar/_text.py +++ b/packages/python/plotly/plotly/validators/bar/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="bar", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='bar', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_textangle.py b/packages/python/plotly/plotly/validators/bar/_textangle.py index 497870cb918..b235807b767 100644 --- a/packages/python/plotly/plotly/validators/bar/_textangle.py +++ b/packages/python/plotly/plotly/validators/bar/_textangle.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__(self, plotly_name="textangle", parent_name="bar", **kwargs): - super(TextangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='textangle', + parent_name='bar', + **kwargs): + super(TextangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_textfont.py b/packages/python/plotly/plotly/validators/bar/_textfont.py index 385f6fcc4d4..d26a6dd6004 100644 --- a/packages/python/plotly/plotly/validators/bar/_textfont.py +++ b/packages/python/plotly/plotly/validators/bar/_textfont.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="textfont", parent_name="bar", **kwargs): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='bar', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_textposition.py b/packages/python/plotly/plotly/validators/bar/_textposition.py index 6824e0998ee..362bd260bde 100644 --- a/packages/python/plotly/plotly/validators/bar/_textposition.py +++ b/packages/python/plotly/plotly/validators/bar/_textposition.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="textposition", parent_name="bar", **kwargs): - super(TextpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["inside", "outside", "auto", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textposition', + parent_name='bar', + **kwargs): + super(TextpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['inside', 'outside', 'auto', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_textpositionsrc.py b/packages/python/plotly/plotly/validators/bar/_textpositionsrc.py index 31f0e4b3174..b88ba15794b 100644 --- a/packages/python/plotly/plotly/validators/bar/_textpositionsrc.py +++ b/packages/python/plotly/plotly/validators/bar/_textpositionsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textpositionsrc", parent_name="bar", **kwargs): - super(TextpositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextpositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textpositionsrc', + parent_name='bar', + **kwargs): + super(TextpositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_textsrc.py b/packages/python/plotly/plotly/validators/bar/_textsrc.py index fe8489b7851..821842d43ec 100644 --- a/packages/python/plotly/plotly/validators/bar/_textsrc.py +++ b/packages/python/plotly/plotly/validators/bar/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="bar", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='bar', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_texttemplate.py b/packages/python/plotly/plotly/validators/bar/_texttemplate.py index 265c623d0be..6f8d3d27bba 100644 --- a/packages/python/plotly/plotly/validators/bar/_texttemplate.py +++ b/packages/python/plotly/plotly/validators/bar/_texttemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="texttemplate", parent_name="bar", **kwargs): - super(TexttemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='texttemplate', + parent_name='bar', + **kwargs): + super(TexttemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_texttemplatesrc.py b/packages/python/plotly/plotly/validators/bar/_texttemplatesrc.py index b0100106eff..22ebdaf91e0 100644 --- a/packages/python/plotly/plotly/validators/bar/_texttemplatesrc.py +++ b/packages/python/plotly/plotly/validators/bar/_texttemplatesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="texttemplatesrc", parent_name="bar", **kwargs): - super(TexttemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TexttemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='texttemplatesrc', + parent_name='bar', + **kwargs): + super(TexttemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_uid.py b/packages/python/plotly/plotly/validators/bar/_uid.py index a7d8b47251d..ad70a041244 100644 --- a/packages/python/plotly/plotly/validators/bar/_uid.py +++ b/packages/python/plotly/plotly/validators/bar/_uid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="bar", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='bar', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_uirevision.py b/packages/python/plotly/plotly/validators/bar/_uirevision.py index b86c9c4caf6..3adea3e3ad0 100644 --- a/packages/python/plotly/plotly/validators/bar/_uirevision.py +++ b/packages/python/plotly/plotly/validators/bar/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="bar", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='bar', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_unselected.py b/packages/python/plotly/plotly/validators/bar/_unselected.py index 7ac6e1cf2f8..a16a7d832fd 100644 --- a/packages/python/plotly/plotly/validators/bar/_unselected.py +++ b/packages/python/plotly/plotly/validators/bar/_unselected.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="unselected", parent_name="bar", **kwargs): - super(UnselectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Unselected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.bar.unselected.Mar - ker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.bar.unselected.Tex - tfont` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UnselectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='unselected', + parent_name='bar', + **kwargs): + super(UnselectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_visible.py b/packages/python/plotly/plotly/validators/bar/_visible.py index fadd861c3b6..79dcc8dd754 100644 --- a/packages/python/plotly/plotly/validators/bar/_visible.py +++ b/packages/python/plotly/plotly/validators/bar/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="bar", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='bar', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_width.py b/packages/python/plotly/plotly/validators/bar/_width.py index 7aa8affd49e..9d92d36e552 100644 --- a/packages/python/plotly/plotly/validators/bar/_width.py +++ b/packages/python/plotly/plotly/validators/bar/_width.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="bar", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='bar', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_widthsrc.py b/packages/python/plotly/plotly/validators/bar/_widthsrc.py index 00296c11f36..b4dd07a864c 100644 --- a/packages/python/plotly/plotly/validators/bar/_widthsrc.py +++ b/packages/python/plotly/plotly/validators/bar/_widthsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="widthsrc", parent_name="bar", **kwargs): - super(WidthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WidthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='widthsrc', + parent_name='bar', + **kwargs): + super(WidthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_x.py b/packages/python/plotly/plotly/validators/bar/_x.py index 11de3a83576..1b353b83b29 100644 --- a/packages/python/plotly/plotly/validators/bar/_x.py +++ b/packages/python/plotly/plotly/validators/bar/_x.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="x", parent_name="bar", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='x', + parent_name='bar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_x0.py b/packages/python/plotly/plotly/validators/bar/_x0.py index 63912025466..84c8fb594f1 100644 --- a/packages/python/plotly/plotly/validators/bar/_x0.py +++ b/packages/python/plotly/plotly/validators/bar/_x0.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class X0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="x0", parent_name="bar", **kwargs): - super(X0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class X0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='x0', + parent_name='bar', + **kwargs): + super(X0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_xaxis.py b/packages/python/plotly/plotly/validators/bar/_xaxis.py index c29e53fdbfc..07ed4d725e9 100644 --- a/packages/python/plotly/plotly/validators/bar/_xaxis.py +++ b/packages/python/plotly/plotly/validators/bar/_xaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="xaxis", parent_name="bar", **kwargs): - super(XaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "x"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='xaxis', + parent_name='bar', + **kwargs): + super(XaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'x'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_xcalendar.py b/packages/python/plotly/plotly/validators/bar/_xcalendar.py index 30187357367..31e468b78fd 100644 --- a/packages/python/plotly/plotly/validators/bar/_xcalendar.py +++ b/packages/python/plotly/plotly/validators/bar/_xcalendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xcalendar", parent_name="bar", **kwargs): - super(XcalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XcalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xcalendar', + parent_name='bar', + **kwargs): + super(XcalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_xhoverformat.py b/packages/python/plotly/plotly/validators/bar/_xhoverformat.py index 4c9fafd7f56..d62c874f19a 100644 --- a/packages/python/plotly/plotly/validators/bar/_xhoverformat.py +++ b/packages/python/plotly/plotly/validators/bar/_xhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="xhoverformat", parent_name="bar", **kwargs): - super(XhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='xhoverformat', + parent_name='bar', + **kwargs): + super(XhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_xperiod.py b/packages/python/plotly/plotly/validators/bar/_xperiod.py index 09da5f1fb95..6682bda7861 100644 --- a/packages/python/plotly/plotly/validators/bar/_xperiod.py +++ b/packages/python/plotly/plotly/validators/bar/_xperiod.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XperiodValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="xperiod", parent_name="bar", **kwargs): - super(XperiodValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XperiodValidator(_bv.AnyValidator): + def __init__(self, plotly_name='xperiod', + parent_name='bar', + **kwargs): + super(XperiodValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_xperiod0.py b/packages/python/plotly/plotly/validators/bar/_xperiod0.py index 9b0d8b4daa3..c92bfd3abbd 100644 --- a/packages/python/plotly/plotly/validators/bar/_xperiod0.py +++ b/packages/python/plotly/plotly/validators/bar/_xperiod0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Xperiod0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="xperiod0", parent_name="bar", **kwargs): - super(Xperiod0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Xperiod0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='xperiod0', + parent_name='bar', + **kwargs): + super(Xperiod0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_xperiodalignment.py b/packages/python/plotly/plotly/validators/bar/_xperiodalignment.py index 1cbbe3811e4..735a8c9ff7c 100644 --- a/packages/python/plotly/plotly/validators/bar/_xperiodalignment.py +++ b/packages/python/plotly/plotly/validators/bar/_xperiodalignment.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xperiodalignment", parent_name="bar", **kwargs): - super(XperiodalignmentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["start", "middle", "end"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XperiodalignmentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xperiodalignment', + parent_name='bar', + **kwargs): + super(XperiodalignmentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['start', 'middle', 'end']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_xsrc.py b/packages/python/plotly/plotly/validators/bar/_xsrc.py index 2280a4303a0..34f50c50f1e 100644 --- a/packages/python/plotly/plotly/validators/bar/_xsrc.py +++ b/packages/python/plotly/plotly/validators/bar/_xsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="xsrc", parent_name="bar", **kwargs): - super(XsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='xsrc', + parent_name='bar', + **kwargs): + super(XsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_y.py b/packages/python/plotly/plotly/validators/bar/_y.py index ca53806e225..9cd415a89fe 100644 --- a/packages/python/plotly/plotly/validators/bar/_y.py +++ b/packages/python/plotly/plotly/validators/bar/_y.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="y", parent_name="bar", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='y', + parent_name='bar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_y0.py b/packages/python/plotly/plotly/validators/bar/_y0.py index aa07a1fb207..8170729e9d8 100644 --- a/packages/python/plotly/plotly/validators/bar/_y0.py +++ b/packages/python/plotly/plotly/validators/bar/_y0.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class Y0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="y0", parent_name="bar", **kwargs): - super(Y0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Y0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='y0', + parent_name='bar', + **kwargs): + super(Y0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_yaxis.py b/packages/python/plotly/plotly/validators/bar/_yaxis.py index cde2a362fb0..9952646d62b 100644 --- a/packages/python/plotly/plotly/validators/bar/_yaxis.py +++ b/packages/python/plotly/plotly/validators/bar/_yaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="yaxis", parent_name="bar", **kwargs): - super(YaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "y"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='yaxis', + parent_name='bar', + **kwargs): + super(YaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'y'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_ycalendar.py b/packages/python/plotly/plotly/validators/bar/_ycalendar.py index 83a9cbd6512..baa0fb5e0b6 100644 --- a/packages/python/plotly/plotly/validators/bar/_ycalendar.py +++ b/packages/python/plotly/plotly/validators/bar/_ycalendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="ycalendar", parent_name="bar", **kwargs): - super(YcalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YcalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ycalendar', + parent_name='bar', + **kwargs): + super(YcalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_yhoverformat.py b/packages/python/plotly/plotly/validators/bar/_yhoverformat.py index d7a37be739a..dbb183a4f47 100644 --- a/packages/python/plotly/plotly/validators/bar/_yhoverformat.py +++ b/packages/python/plotly/plotly/validators/bar/_yhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="yhoverformat", parent_name="bar", **kwargs): - super(YhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='yhoverformat', + parent_name='bar', + **kwargs): + super(YhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_yperiod.py b/packages/python/plotly/plotly/validators/bar/_yperiod.py index 36187a69583..33e82398989 100644 --- a/packages/python/plotly/plotly/validators/bar/_yperiod.py +++ b/packages/python/plotly/plotly/validators/bar/_yperiod.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YperiodValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="yperiod", parent_name="bar", **kwargs): - super(YperiodValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YperiodValidator(_bv.AnyValidator): + def __init__(self, plotly_name='yperiod', + parent_name='bar', + **kwargs): + super(YperiodValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_yperiod0.py b/packages/python/plotly/plotly/validators/bar/_yperiod0.py index 5787e5d5d26..b1a6b514e99 100644 --- a/packages/python/plotly/plotly/validators/bar/_yperiod0.py +++ b/packages/python/plotly/plotly/validators/bar/_yperiod0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Yperiod0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="yperiod0", parent_name="bar", **kwargs): - super(Yperiod0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Yperiod0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='yperiod0', + parent_name='bar', + **kwargs): + super(Yperiod0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_yperiodalignment.py b/packages/python/plotly/plotly/validators/bar/_yperiodalignment.py index f31d64f4cd6..2aa8049f8fa 100644 --- a/packages/python/plotly/plotly/validators/bar/_yperiodalignment.py +++ b/packages/python/plotly/plotly/validators/bar/_yperiodalignment.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yperiodalignment", parent_name="bar", **kwargs): - super(YperiodalignmentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["start", "middle", "end"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YperiodalignmentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yperiodalignment', + parent_name='bar', + **kwargs): + super(YperiodalignmentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['start', 'middle', 'end']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_ysrc.py b/packages/python/plotly/plotly/validators/bar/_ysrc.py index 174e8a90675..c0fa42a1107 100644 --- a/packages/python/plotly/plotly/validators/bar/_ysrc.py +++ b/packages/python/plotly/plotly/validators/bar/_ysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="ysrc", parent_name="bar", **kwargs): - super(YsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ysrc', + parent_name='bar', + **kwargs): + super(YsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/_zorder.py b/packages/python/plotly/plotly/validators/bar/_zorder.py index aed8610a6d6..046878f80fe 100644 --- a/packages/python/plotly/plotly/validators/bar/_zorder.py +++ b/packages/python/plotly/plotly/validators/bar/_zorder.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="zorder", parent_name="bar", **kwargs): - super(ZorderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZorderValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='zorder', + parent_name='bar', + **kwargs): + super(ZorderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/error_x/__init__.py b/packages/python/plotly/plotly/validators/bar/error_x/__init__.py index 2e3ce59d75d..4c274e2e1d4 100644 --- a/packages/python/plotly/plotly/validators/bar/error_x/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/error_x/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._visible import VisibleValidator @@ -19,25 +18,10 @@ from ._array import ArrayValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._visible.VisibleValidator", - "._valueminus.ValueminusValidator", - "._value.ValueValidator", - "._type.TypeValidator", - "._tracerefminus.TracerefminusValidator", - "._traceref.TracerefValidator", - "._thickness.ThicknessValidator", - "._symmetric.SymmetricValidator", - "._copy_ystyle.Copy_YstyleValidator", - "._color.ColorValidator", - "._arraysrc.ArraysrcValidator", - "._arrayminussrc.ArrayminussrcValidator", - "._arrayminus.ArrayminusValidator", - "._array.ArrayValidator", - ], + ['._width.WidthValidator', '._visible.VisibleValidator', '._valueminus.ValueminusValidator', '._value.ValueValidator', '._type.TypeValidator', '._tracerefminus.TracerefminusValidator', '._traceref.TracerefValidator', '._thickness.ThicknessValidator', '._symmetric.SymmetricValidator', '._copy_ystyle.Copy_YstyleValidator', '._color.ColorValidator', '._arraysrc.ArraysrcValidator', '._arrayminussrc.ArrayminussrcValidator', '._arrayminus.ArrayminusValidator', '._array.ArrayValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/bar/error_x/_array.py b/packages/python/plotly/plotly/validators/bar/error_x/_array.py index f07bcc848c6..2f1d59fd507 100644 --- a/packages/python/plotly/plotly/validators/bar/error_x/_array.py +++ b/packages/python/plotly/plotly/validators/bar/error_x/_array.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="array", parent_name="bar.error_x", **kwargs): - super(ArrayValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ArrayValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='array', + parent_name='bar.error_x', + **kwargs): + super(ArrayValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/error_x/_arrayminus.py b/packages/python/plotly/plotly/validators/bar/error_x/_arrayminus.py index 762d79517d8..7a6c689d9a8 100644 --- a/packages/python/plotly/plotly/validators/bar/error_x/_arrayminus.py +++ b/packages/python/plotly/plotly/validators/bar/error_x/_arrayminus.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="arrayminus", parent_name="bar.error_x", **kwargs): - super(ArrayminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ArrayminusValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='arrayminus', + parent_name='bar.error_x', + **kwargs): + super(ArrayminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/error_x/_arrayminussrc.py b/packages/python/plotly/plotly/validators/bar/error_x/_arrayminussrc.py index 68ae194f8a1..c1fa9351c85 100644 --- a/packages/python/plotly/plotly/validators/bar/error_x/_arrayminussrc.py +++ b/packages/python/plotly/plotly/validators/bar/error_x/_arrayminussrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="arrayminussrc", parent_name="bar.error_x", **kwargs - ): - super(ArrayminussrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrayminussrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='arrayminussrc', + parent_name='bar.error_x', + **kwargs): + super(ArrayminussrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/error_x/_arraysrc.py b/packages/python/plotly/plotly/validators/bar/error_x/_arraysrc.py index 2e5407c7527..8d9ccb8a96a 100644 --- a/packages/python/plotly/plotly/validators/bar/error_x/_arraysrc.py +++ b/packages/python/plotly/plotly/validators/bar/error_x/_arraysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="arraysrc", parent_name="bar.error_x", **kwargs): - super(ArraysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ArraysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='arraysrc', + parent_name='bar.error_x', + **kwargs): + super(ArraysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/error_x/_color.py b/packages/python/plotly/plotly/validators/bar/error_x/_color.py index 81375042949..ffb03970e9a 100644 --- a/packages/python/plotly/plotly/validators/bar/error_x/_color.py +++ b/packages/python/plotly/plotly/validators/bar/error_x/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="bar.error_x", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='bar.error_x', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/error_x/_copy_ystyle.py b/packages/python/plotly/plotly/validators/bar/error_x/_copy_ystyle.py index 931ab66b6a1..7f75864748a 100644 --- a/packages/python/plotly/plotly/validators/bar/error_x/_copy_ystyle.py +++ b/packages/python/plotly/plotly/validators/bar/error_x/_copy_ystyle.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Copy_YstyleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="copy_ystyle", parent_name="bar.error_x", **kwargs): - super(Copy_YstyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Copy_YstyleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='copy_ystyle', + parent_name='bar.error_x', + **kwargs): + super(Copy_YstyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/error_x/_symmetric.py b/packages/python/plotly/plotly/validators/bar/error_x/_symmetric.py index 5c638bc087e..282b102fee8 100644 --- a/packages/python/plotly/plotly/validators/bar/error_x/_symmetric.py +++ b/packages/python/plotly/plotly/validators/bar/error_x/_symmetric.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="symmetric", parent_name="bar.error_x", **kwargs): - super(SymmetricValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SymmetricValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='symmetric', + parent_name='bar.error_x', + **kwargs): + super(SymmetricValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/error_x/_thickness.py b/packages/python/plotly/plotly/validators/bar/error_x/_thickness.py index 7c2072d34a0..27a04d42c3b 100644 --- a/packages/python/plotly/plotly/validators/bar/error_x/_thickness.py +++ b/packages/python/plotly/plotly/validators/bar/error_x/_thickness.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="thickness", parent_name="bar.error_x", **kwargs): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='bar.error_x', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/error_x/_traceref.py b/packages/python/plotly/plotly/validators/bar/error_x/_traceref.py index 868d031cdf2..3281e7590f6 100644 --- a/packages/python/plotly/plotly/validators/bar/error_x/_traceref.py +++ b/packages/python/plotly/plotly/validators/bar/error_x/_traceref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="traceref", parent_name="bar.error_x", **kwargs): - super(TracerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TracerefValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='traceref', + parent_name='bar.error_x', + **kwargs): + super(TracerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/error_x/_tracerefminus.py b/packages/python/plotly/plotly/validators/bar/error_x/_tracerefminus.py index 0d2f33e85d4..75c15e70f2b 100644 --- a/packages/python/plotly/plotly/validators/bar/error_x/_tracerefminus.py +++ b/packages/python/plotly/plotly/validators/bar/error_x/_tracerefminus.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="tracerefminus", parent_name="bar.error_x", **kwargs - ): - super(TracerefminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TracerefminusValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='tracerefminus', + parent_name='bar.error_x', + **kwargs): + super(TracerefminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/error_x/_type.py b/packages/python/plotly/plotly/validators/bar/error_x/_type.py index 12cc52ef439..1ca27736353 100644 --- a/packages/python/plotly/plotly/validators/bar/error_x/_type.py +++ b/packages/python/plotly/plotly/validators/bar/error_x/_type.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="type", parent_name="bar.error_x", **kwargs): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='bar.error_x', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['percent', 'constant', 'sqrt', 'data']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/error_x/_value.py b/packages/python/plotly/plotly/validators/bar/error_x/_value.py index 340f71c5858..b2d429ffc72 100644 --- a/packages/python/plotly/plotly/validators/bar/error_x/_value.py +++ b/packages/python/plotly/plotly/validators/bar/error_x/_value.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ValueValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="value", parent_name="bar.error_x", **kwargs): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.NumberValidator): + def __init__(self, plotly_name='value', + parent_name='bar.error_x', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/error_x/_valueminus.py b/packages/python/plotly/plotly/validators/bar/error_x/_valueminus.py index e9925de8e15..42f9310c95f 100644 --- a/packages/python/plotly/plotly/validators/bar/error_x/_valueminus.py +++ b/packages/python/plotly/plotly/validators/bar/error_x/_valueminus.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="valueminus", parent_name="bar.error_x", **kwargs): - super(ValueminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueminusValidator(_bv.NumberValidator): + def __init__(self, plotly_name='valueminus', + parent_name='bar.error_x', + **kwargs): + super(ValueminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/error_x/_visible.py b/packages/python/plotly/plotly/validators/bar/error_x/_visible.py index 79f4ad008f7..6a1c75a8af2 100644 --- a/packages/python/plotly/plotly/validators/bar/error_x/_visible.py +++ b/packages/python/plotly/plotly/validators/bar/error_x/_visible.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="visible", parent_name="bar.error_x", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='bar.error_x', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/error_x/_width.py b/packages/python/plotly/plotly/validators/bar/error_x/_width.py index b0e7efdd94a..52fe65bc213 100644 --- a/packages/python/plotly/plotly/validators/bar/error_x/_width.py +++ b/packages/python/plotly/plotly/validators/bar/error_x/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="bar.error_x", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='bar.error_x', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/error_y/__init__.py b/packages/python/plotly/plotly/validators/bar/error_y/__init__.py index eff09cd6a0a..d3e93f5c233 100644 --- a/packages/python/plotly/plotly/validators/bar/error_y/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/error_y/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._visible import VisibleValidator @@ -18,24 +17,10 @@ from ._array import ArrayValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._visible.VisibleValidator", - "._valueminus.ValueminusValidator", - "._value.ValueValidator", - "._type.TypeValidator", - "._tracerefminus.TracerefminusValidator", - "._traceref.TracerefValidator", - "._thickness.ThicknessValidator", - "._symmetric.SymmetricValidator", - "._color.ColorValidator", - "._arraysrc.ArraysrcValidator", - "._arrayminussrc.ArrayminussrcValidator", - "._arrayminus.ArrayminusValidator", - "._array.ArrayValidator", - ], + ['._width.WidthValidator', '._visible.VisibleValidator', '._valueminus.ValueminusValidator', '._value.ValueValidator', '._type.TypeValidator', '._tracerefminus.TracerefminusValidator', '._traceref.TracerefValidator', '._thickness.ThicknessValidator', '._symmetric.SymmetricValidator', '._color.ColorValidator', '._arraysrc.ArraysrcValidator', '._arrayminussrc.ArrayminussrcValidator', '._arrayminus.ArrayminusValidator', '._array.ArrayValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/bar/error_y/_array.py b/packages/python/plotly/plotly/validators/bar/error_y/_array.py index 31f085ced77..a0e0aecc45a 100644 --- a/packages/python/plotly/plotly/validators/bar/error_y/_array.py +++ b/packages/python/plotly/plotly/validators/bar/error_y/_array.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="array", parent_name="bar.error_y", **kwargs): - super(ArrayValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ArrayValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='array', + parent_name='bar.error_y', + **kwargs): + super(ArrayValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/error_y/_arrayminus.py b/packages/python/plotly/plotly/validators/bar/error_y/_arrayminus.py index 3b6605bda83..0510d76a3a1 100644 --- a/packages/python/plotly/plotly/validators/bar/error_y/_arrayminus.py +++ b/packages/python/plotly/plotly/validators/bar/error_y/_arrayminus.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="arrayminus", parent_name="bar.error_y", **kwargs): - super(ArrayminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ArrayminusValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='arrayminus', + parent_name='bar.error_y', + **kwargs): + super(ArrayminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/error_y/_arrayminussrc.py b/packages/python/plotly/plotly/validators/bar/error_y/_arrayminussrc.py index bf7c6824904..5917f3cb241 100644 --- a/packages/python/plotly/plotly/validators/bar/error_y/_arrayminussrc.py +++ b/packages/python/plotly/plotly/validators/bar/error_y/_arrayminussrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="arrayminussrc", parent_name="bar.error_y", **kwargs - ): - super(ArrayminussrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrayminussrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='arrayminussrc', + parent_name='bar.error_y', + **kwargs): + super(ArrayminussrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/error_y/_arraysrc.py b/packages/python/plotly/plotly/validators/bar/error_y/_arraysrc.py index 7d5f4612769..198bc00664c 100644 --- a/packages/python/plotly/plotly/validators/bar/error_y/_arraysrc.py +++ b/packages/python/plotly/plotly/validators/bar/error_y/_arraysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="arraysrc", parent_name="bar.error_y", **kwargs): - super(ArraysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ArraysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='arraysrc', + parent_name='bar.error_y', + **kwargs): + super(ArraysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/error_y/_color.py b/packages/python/plotly/plotly/validators/bar/error_y/_color.py index 63a2d1c101b..df54c97ab8e 100644 --- a/packages/python/plotly/plotly/validators/bar/error_y/_color.py +++ b/packages/python/plotly/plotly/validators/bar/error_y/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="bar.error_y", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='bar.error_y', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/error_y/_symmetric.py b/packages/python/plotly/plotly/validators/bar/error_y/_symmetric.py index f5aad6348d2..995be4a5ceb 100644 --- a/packages/python/plotly/plotly/validators/bar/error_y/_symmetric.py +++ b/packages/python/plotly/plotly/validators/bar/error_y/_symmetric.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="symmetric", parent_name="bar.error_y", **kwargs): - super(SymmetricValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SymmetricValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='symmetric', + parent_name='bar.error_y', + **kwargs): + super(SymmetricValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/error_y/_thickness.py b/packages/python/plotly/plotly/validators/bar/error_y/_thickness.py index 4cc0602e6ef..ee069d587bf 100644 --- a/packages/python/plotly/plotly/validators/bar/error_y/_thickness.py +++ b/packages/python/plotly/plotly/validators/bar/error_y/_thickness.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="thickness", parent_name="bar.error_y", **kwargs): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='bar.error_y', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/error_y/_traceref.py b/packages/python/plotly/plotly/validators/bar/error_y/_traceref.py index c040e4fab7e..97f531b0a48 100644 --- a/packages/python/plotly/plotly/validators/bar/error_y/_traceref.py +++ b/packages/python/plotly/plotly/validators/bar/error_y/_traceref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="traceref", parent_name="bar.error_y", **kwargs): - super(TracerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TracerefValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='traceref', + parent_name='bar.error_y', + **kwargs): + super(TracerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/error_y/_tracerefminus.py b/packages/python/plotly/plotly/validators/bar/error_y/_tracerefminus.py index 9924af17a64..3d693780bb0 100644 --- a/packages/python/plotly/plotly/validators/bar/error_y/_tracerefminus.py +++ b/packages/python/plotly/plotly/validators/bar/error_y/_tracerefminus.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="tracerefminus", parent_name="bar.error_y", **kwargs - ): - super(TracerefminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TracerefminusValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='tracerefminus', + parent_name='bar.error_y', + **kwargs): + super(TracerefminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/error_y/_type.py b/packages/python/plotly/plotly/validators/bar/error_y/_type.py index 21dfcee0150..fceb20faca5 100644 --- a/packages/python/plotly/plotly/validators/bar/error_y/_type.py +++ b/packages/python/plotly/plotly/validators/bar/error_y/_type.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="type", parent_name="bar.error_y", **kwargs): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='bar.error_y', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['percent', 'constant', 'sqrt', 'data']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/error_y/_value.py b/packages/python/plotly/plotly/validators/bar/error_y/_value.py index 521dabdf8bd..dde6c6de3aa 100644 --- a/packages/python/plotly/plotly/validators/bar/error_y/_value.py +++ b/packages/python/plotly/plotly/validators/bar/error_y/_value.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ValueValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="value", parent_name="bar.error_y", **kwargs): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.NumberValidator): + def __init__(self, plotly_name='value', + parent_name='bar.error_y', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/error_y/_valueminus.py b/packages/python/plotly/plotly/validators/bar/error_y/_valueminus.py index 16b77f3c14c..050dbed2ff1 100644 --- a/packages/python/plotly/plotly/validators/bar/error_y/_valueminus.py +++ b/packages/python/plotly/plotly/validators/bar/error_y/_valueminus.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="valueminus", parent_name="bar.error_y", **kwargs): - super(ValueminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueminusValidator(_bv.NumberValidator): + def __init__(self, plotly_name='valueminus', + parent_name='bar.error_y', + **kwargs): + super(ValueminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/error_y/_visible.py b/packages/python/plotly/plotly/validators/bar/error_y/_visible.py index 5d3453b0d08..37c06abdec0 100644 --- a/packages/python/plotly/plotly/validators/bar/error_y/_visible.py +++ b/packages/python/plotly/plotly/validators/bar/error_y/_visible.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="visible", parent_name="bar.error_y", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='bar.error_y', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/error_y/_width.py b/packages/python/plotly/plotly/validators/bar/error_y/_width.py index 8306a787d30..803ae1eb201 100644 --- a/packages/python/plotly/plotly/validators/bar/error_y/_width.py +++ b/packages/python/plotly/plotly/validators/bar/error_y/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="bar.error_y", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='bar.error_y', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/_align.py index 5b85aada0b1..737c14d1a88 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/_align.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="align", parent_name="bar.hoverlabel", **kwargs): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='bar.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/_alignsrc.py index 19364778391..7c9779652d5 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/_alignsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="alignsrc", parent_name="bar.hoverlabel", **kwargs): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='bar.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/_bgcolor.py index 5c1cd30b77f..86f131535f1 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/_bgcolor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="bgcolor", parent_name="bar.hoverlabel", **kwargs): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='bar.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/_bgcolorsrc.py index 52bb4c8adaf..252665f3550 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="bar.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='bar.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/_bordercolor.py index 61eeca39f5c..717bfc2a503 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="bar.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='bar.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/_bordercolorsrc.py index e3612555c43..47923f2e1b9 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bordercolorsrc", parent_name="bar.hoverlabel", **kwargs - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='bar.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/_font.py index 4502e735407..b53a5ad8e5a 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/_font.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="bar.hoverlabel", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='bar.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/_namelength.py index deecf475f9b..676e62f6684 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="bar.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='bar.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/_namelengthsrc.py index e3dc7e34ee9..90f5331de4b 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="bar.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='bar.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_color.py index ec600f71275..388c0f56d21 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="bar.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='bar.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_colorsrc.py index c9026f36cfa..7e63331cfc3 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="bar.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='bar.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_family.py index 8ce9c0474cd..7044130b41e 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="bar.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='bar.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_familysrc.py index 4f35a775033..edc5769af8f 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="bar.hoverlabel.font", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='bar.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_lineposition.py index 007cdf181ff..bdf9ad6edc3 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="bar.hoverlabel.font", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='bar.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_linepositionsrc.py index bfac3c81ad8..d5cfa768080 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_linepositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="linepositionsrc", parent_name="bar.hoverlabel.font", **kwargs - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='bar.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_shadow.py index 91752e8bee5..f121e4f1380 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="bar.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='bar.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_shadowsrc.py index 0d87bc22f5f..0b1488bb285 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="bar.hoverlabel.font", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='bar.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_size.py index 9a5c81fa267..abe8fa2e870 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="bar.hoverlabel.font", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='bar.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_sizesrc.py index c55978c66e3..0aa1c3f21a5 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="bar.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='bar.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_style.py index 6b9717a78e2..bed4d86884d 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="bar.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='bar.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_stylesrc.py index 0ed6844d924..f160fe68d0f 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="bar.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='bar.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_textcase.py index 2d7559f05c7..cd65a52830b 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="bar.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='bar.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_textcasesrc.py index 7c09323e4e5..028845531d7 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="bar.hoverlabel.font", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='bar.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_variant.py index b5d5150a29f..634e0c4bac5 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="bar.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='bar.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_variantsrc.py index 2e36ec85fc0..0622ba29840 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="bar.hoverlabel.font", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='bar.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_weight.py index 79ee83df1b8..49482265d9b 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="bar.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='bar.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_weightsrc.py index aabcbb8c067..3d1c1cdac11 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="bar.hoverlabel.font", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='bar.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/insidetextfont/__init__.py b/packages/python/plotly/plotly/validators/bar/insidetextfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/bar/insidetextfont/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/insidetextfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/bar/insidetextfont/_color.py b/packages/python/plotly/plotly/validators/bar/insidetextfont/_color.py index e4a3334fd81..7b3073c9f8a 100644 --- a/packages/python/plotly/plotly/validators/bar/insidetextfont/_color.py +++ b/packages/python/plotly/plotly/validators/bar/insidetextfont/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="bar.insidetextfont", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='bar.insidetextfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/insidetextfont/_colorsrc.py b/packages/python/plotly/plotly/validators/bar/insidetextfont/_colorsrc.py index 43615916f51..1d04654f097 100644 --- a/packages/python/plotly/plotly/validators/bar/insidetextfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/bar/insidetextfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="bar.insidetextfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='bar.insidetextfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/insidetextfont/_family.py b/packages/python/plotly/plotly/validators/bar/insidetextfont/_family.py index 705f9d73328..84ab2459165 100644 --- a/packages/python/plotly/plotly/validators/bar/insidetextfont/_family.py +++ b/packages/python/plotly/plotly/validators/bar/insidetextfont/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="bar.insidetextfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='bar.insidetextfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/insidetextfont/_familysrc.py b/packages/python/plotly/plotly/validators/bar/insidetextfont/_familysrc.py index a35011e40b7..542ef232c78 100644 --- a/packages/python/plotly/plotly/validators/bar/insidetextfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/bar/insidetextfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="bar.insidetextfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='bar.insidetextfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/insidetextfont/_lineposition.py b/packages/python/plotly/plotly/validators/bar/insidetextfont/_lineposition.py index fc9c74a27d6..27bee25afa3 100644 --- a/packages/python/plotly/plotly/validators/bar/insidetextfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/bar/insidetextfont/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="bar.insidetextfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='bar.insidetextfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/insidetextfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/bar/insidetextfont/_linepositionsrc.py index 15948f678e2..c9a43a661ef 100644 --- a/packages/python/plotly/plotly/validators/bar/insidetextfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/bar/insidetextfont/_linepositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="linepositionsrc", parent_name="bar.insidetextfont", **kwargs - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='bar.insidetextfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/insidetextfont/_shadow.py b/packages/python/plotly/plotly/validators/bar/insidetextfont/_shadow.py index 375090a768b..4a6971d0c4d 100644 --- a/packages/python/plotly/plotly/validators/bar/insidetextfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/bar/insidetextfont/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="bar.insidetextfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='bar.insidetextfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/insidetextfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/bar/insidetextfont/_shadowsrc.py index 60540f1d3b4..d28cd3964a7 100644 --- a/packages/python/plotly/plotly/validators/bar/insidetextfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/bar/insidetextfont/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="bar.insidetextfont", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='bar.insidetextfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/insidetextfont/_size.py b/packages/python/plotly/plotly/validators/bar/insidetextfont/_size.py index 8e6a922ab1d..97dd2a81cd7 100644 --- a/packages/python/plotly/plotly/validators/bar/insidetextfont/_size.py +++ b/packages/python/plotly/plotly/validators/bar/insidetextfont/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="bar.insidetextfont", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='bar.insidetextfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/insidetextfont/_sizesrc.py b/packages/python/plotly/plotly/validators/bar/insidetextfont/_sizesrc.py index 53f7c8a1952..14f024f0389 100644 --- a/packages/python/plotly/plotly/validators/bar/insidetextfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/bar/insidetextfont/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="bar.insidetextfont", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='bar.insidetextfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/insidetextfont/_style.py b/packages/python/plotly/plotly/validators/bar/insidetextfont/_style.py index 55d9947aa79..7cda4513f08 100644 --- a/packages/python/plotly/plotly/validators/bar/insidetextfont/_style.py +++ b/packages/python/plotly/plotly/validators/bar/insidetextfont/_style.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="style", parent_name="bar.insidetextfont", **kwargs): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='bar.insidetextfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/insidetextfont/_stylesrc.py b/packages/python/plotly/plotly/validators/bar/insidetextfont/_stylesrc.py index f88a26cd391..eff570953a7 100644 --- a/packages/python/plotly/plotly/validators/bar/insidetextfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/bar/insidetextfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="bar.insidetextfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='bar.insidetextfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/insidetextfont/_textcase.py b/packages/python/plotly/plotly/validators/bar/insidetextfont/_textcase.py index d5948682e5d..855c2b1e8ff 100644 --- a/packages/python/plotly/plotly/validators/bar/insidetextfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/bar/insidetextfont/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="bar.insidetextfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='bar.insidetextfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/insidetextfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/bar/insidetextfont/_textcasesrc.py index c505245de94..d7d36c925b5 100644 --- a/packages/python/plotly/plotly/validators/bar/insidetextfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/bar/insidetextfont/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="bar.insidetextfont", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='bar.insidetextfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/insidetextfont/_variant.py b/packages/python/plotly/plotly/validators/bar/insidetextfont/_variant.py index fc14ee7d69a..5f084fd7228 100644 --- a/packages/python/plotly/plotly/validators/bar/insidetextfont/_variant.py +++ b/packages/python/plotly/plotly/validators/bar/insidetextfont/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="bar.insidetextfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='bar.insidetextfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/insidetextfont/_variantsrc.py b/packages/python/plotly/plotly/validators/bar/insidetextfont/_variantsrc.py index 569ab9e0cf4..ab46cf158ab 100644 --- a/packages/python/plotly/plotly/validators/bar/insidetextfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/bar/insidetextfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="bar.insidetextfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='bar.insidetextfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/insidetextfont/_weight.py b/packages/python/plotly/plotly/validators/bar/insidetextfont/_weight.py index c307665152b..6241b5d013d 100644 --- a/packages/python/plotly/plotly/validators/bar/insidetextfont/_weight.py +++ b/packages/python/plotly/plotly/validators/bar/insidetextfont/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="bar.insidetextfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='bar.insidetextfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/insidetextfont/_weightsrc.py b/packages/python/plotly/plotly/validators/bar/insidetextfont/_weightsrc.py index b483266fa94..211549074a4 100644 --- a/packages/python/plotly/plotly/validators/bar/insidetextfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/bar/insidetextfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="bar.insidetextfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='bar.insidetextfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/bar/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/bar/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/bar/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/bar/legendgrouptitle/_font.py index 1e12588a837..27a6e93bc75 100644 --- a/packages/python/plotly/plotly/validators/bar/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/bar/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="bar.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='bar.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/bar/legendgrouptitle/_text.py index e2d707f8766..a3109e999dd 100644 --- a/packages/python/plotly/plotly/validators/bar/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/bar/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="bar.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='bar.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_color.py index e11487a07ef..ee11875af97 100644 --- a/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="bar.legendgrouptitle.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='bar.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_family.py index c83f577e3a2..7f4a86fbab7 100644 --- a/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="bar.legendgrouptitle.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='bar.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_lineposition.py index 090b1d827f1..286c6104399 100644 --- a/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="bar.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='bar.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_shadow.py index f96027b1b0a..ce6db670fa6 100644 --- a/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="bar.legendgrouptitle.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='bar.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_size.py index dc2f56db96f..c72b2ca60c1 100644 --- a/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="bar.legendgrouptitle.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='bar.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_style.py index cb34f49562f..75dd104fd33 100644 --- a/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="bar.legendgrouptitle.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='bar.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_textcase.py index cdda04773c4..21294e24404 100644 --- a/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="bar.legendgrouptitle.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='bar.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_variant.py index e6fc43fb31e..72747900079 100644 --- a/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="bar.legendgrouptitle.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='bar.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_weight.py index 4028d48749b..a32ce8f42f4 100644 --- a/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/bar/legendgrouptitle/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="bar.legendgrouptitle.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='bar.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/__init__.py b/packages/python/plotly/plotly/validators/bar/marker/__init__.py index 8f8e3d4a932..061350a4be5 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._showscale import ShowscaleValidator from ._reversescale import ReversescaleValidator @@ -21,27 +20,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._showscale.ShowscaleValidator", - "._reversescale.ReversescaleValidator", - "._pattern.PatternValidator", - "._opacitysrc.OpacitysrcValidator", - "._opacity.OpacityValidator", - "._line.LineValidator", - "._cornerradius.CornerradiusValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._showscale.ShowscaleValidator', '._reversescale.ReversescaleValidator', '._pattern.PatternValidator', '._opacitysrc.OpacitysrcValidator', '._opacity.OpacityValidator', '._line.LineValidator', '._cornerradius.CornerradiusValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/bar/marker/_autocolorscale.py b/packages/python/plotly/plotly/validators/bar/marker/_autocolorscale.py index 3427fbf601c..dae89ecd2cf 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/bar/marker/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="bar.marker", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='bar.marker', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/_cauto.py b/packages/python/plotly/plotly/validators/bar/marker/_cauto.py index 00e27c9f3a0..e171095a5c5 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/_cauto.py +++ b/packages/python/plotly/plotly/validators/bar/marker/_cauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cauto", parent_name="bar.marker", **kwargs): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='bar.marker', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/_cmax.py b/packages/python/plotly/plotly/validators/bar/marker/_cmax.py index 2d937d74a00..59cf6c786c6 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/_cmax.py +++ b/packages/python/plotly/plotly/validators/bar/marker/_cmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmax", parent_name="bar.marker", **kwargs): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='bar.marker', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/_cmid.py b/packages/python/plotly/plotly/validators/bar/marker/_cmid.py index 4bccb1831f5..57e0470ab40 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/_cmid.py +++ b/packages/python/plotly/plotly/validators/bar/marker/_cmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmid", parent_name="bar.marker", **kwargs): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='bar.marker', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/_cmin.py b/packages/python/plotly/plotly/validators/bar/marker/_cmin.py index 3d3d12baa6c..31dbdead30c 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/_cmin.py +++ b/packages/python/plotly/plotly/validators/bar/marker/_cmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmin", parent_name="bar.marker", **kwargs): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='bar.marker', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/_color.py b/packages/python/plotly/plotly/validators/bar/marker/_color.py index 000a617f32e..ae49840ad8c 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/_color.py +++ b/packages/python/plotly/plotly/validators/bar/marker/_color.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="bar.marker", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - colorscale_path=kwargs.pop("colorscale_path", "bar.marker.colorscale"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='bar.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + colorscale_path=kwargs.pop('colorscale_path', 'bar.marker.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/_coloraxis.py b/packages/python/plotly/plotly/validators/bar/marker/_coloraxis.py index 6308c4be1c4..4dc0b0a8c63 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/bar/marker/_coloraxis.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="coloraxis", parent_name="bar.marker", **kwargs): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='bar.marker', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/_colorbar.py b/packages/python/plotly/plotly/validators/bar/marker/_colorbar.py index 4155df55804..53a8166d2cf 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/_colorbar.py +++ b/packages/python/plotly/plotly/validators/bar/marker/_colorbar.py @@ -1,279 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="colorbar", parent_name="bar.marker", **kwargs): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.bar.mar - ker.colorbar.Tickformatstop` instances or dicts - with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.bar.marker.colorbar.tickformatstopdefaults), - sets the default property values to use for - elements of bar.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.bar.marker.colorba - r.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='bar.marker', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/_colorscale.py b/packages/python/plotly/plotly/validators/bar/marker/_colorscale.py index 32805483a4d..eecc43099a3 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/_colorscale.py +++ b/packages/python/plotly/plotly/validators/bar/marker/_colorscale.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__(self, plotly_name="colorscale", parent_name="bar.marker", **kwargs): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='bar.marker', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/_colorsrc.py b/packages/python/plotly/plotly/validators/bar/marker/_colorsrc.py index eca2204e441..1354df6a193 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/bar/marker/_colorsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="colorsrc", parent_name="bar.marker", **kwargs): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='bar.marker', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/_cornerradius.py b/packages/python/plotly/plotly/validators/bar/marker/_cornerradius.py index 889051129ca..b64b5bcd498 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/_cornerradius.py +++ b/packages/python/plotly/plotly/validators/bar/marker/_cornerradius.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CornerradiusValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="cornerradius", parent_name="bar.marker", **kwargs): - super(CornerradiusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CornerradiusValidator(_bv.AnyValidator): + def __init__(self, plotly_name='cornerradius', + parent_name='bar.marker', + **kwargs): + super(CornerradiusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/_line.py b/packages/python/plotly/plotly/validators/bar/marker/_line.py index 7a0fa50653c..d8604720ec2 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/_line.py +++ b/packages/python/plotly/plotly/validators/bar/marker/_line.py @@ -1,105 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="bar.marker", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.line.colorscale`. Has an - effect only if in `marker.line.color` is set to - a numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.line.color`) or the bounds set in - `marker.line.cmin` and `marker.line.cmax` Has - an effect only if in `marker.line.color` is set - to a numerical array. Defaults to `false` when - `marker.line.cmin` and `marker.line.cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.line.cmin` and/or - `marker.line.cmax` to be equidistant to this - point. Has an effect only if in - `marker.line.color` is set to a numerical - array. Value should have the same units as in - `marker.line.color`. Has no effect when - `marker.line.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmax` must be set as well. - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorscale - Sets the colorscale. Has an effect only if in - `marker.line.color` is set to a numerical - array. The colorscale must be an array - containing arrays mapping a normalized value to - an rgb, rgba, hex, hsl, hsv, or named color - string. At minimum, a mapping for the lowest - (0) and highest (1) values are required. For - example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use - `marker.line.cmin` and `marker.line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.line.color` is set to - a numerical array. If true, `marker.line.cmin` - will correspond to the last color in the array - and `marker.line.cmax` will correspond to the - first color. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='bar.marker', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/_opacity.py b/packages/python/plotly/plotly/validators/bar/marker/_opacity.py index 0dbed4dd7e7..0dc9a4e5fb6 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/bar/marker/_opacity.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="bar.marker", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='bar.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/_opacitysrc.py b/packages/python/plotly/plotly/validators/bar/marker/_opacitysrc.py index f4fff7ba6a9..e7a2330265f 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/_opacitysrc.py +++ b/packages/python/plotly/plotly/validators/bar/marker/_opacitysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="opacitysrc", parent_name="bar.marker", **kwargs): - super(OpacitysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacitysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='opacitysrc', + parent_name='bar.marker', + **kwargs): + super(OpacitysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/_pattern.py b/packages/python/plotly/plotly/validators/bar/marker/_pattern.py index 07b94311911..966f1e683cb 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/_pattern.py +++ b/packages/python/plotly/plotly/validators/bar/marker/_pattern.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class PatternValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="pattern", parent_name="bar.marker", **kwargs): - super(PatternValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Pattern"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - When there is no colorscale sets the color of - background pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "overlay". Otherwise, defaults to a transparent - background. - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - fgcolor - When there is no colorscale sets the color of - foreground pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "replace". Otherwise, defaults to dark grey or - white to increase contrast with the `bgcolor`. - fgcolorsrc - Sets the source reference on Chart Studio Cloud - for `fgcolor`. - fgopacity - Sets the opacity of the foreground pattern - fill. Defaults to a 0.5 when `fillmode` is - "overlay". Otherwise, defaults to 1. - fillmode - Determines whether `marker.color` should be - used as a default to `bgcolor` or a `fgcolor`. - shape - Sets the shape of the pattern fill. By default, - no pattern is used for filling the area. - shapesrc - Sets the source reference on Chart Studio Cloud - for `shape`. - size - Sets the size of unit squares of the pattern - fill in pixels, which corresponds to the - interval of repetition of the pattern. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - solidity - Sets the solidity of the pattern fill. Solidity - is roughly the fraction of the area filled by - the pattern. Solidity of 0 shows only the - background color without pattern and solidty of - 1 shows only the foreground color without - pattern. - soliditysrc - Sets the source reference on Chart Studio Cloud - for `solidity`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class PatternValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='pattern', + parent_name='bar.marker', + **kwargs): + super(PatternValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Pattern'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/_reversescale.py b/packages/python/plotly/plotly/validators/bar/marker/_reversescale.py index 87e1df93fa2..4cd7a358db1 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/_reversescale.py +++ b/packages/python/plotly/plotly/validators/bar/marker/_reversescale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="reversescale", parent_name="bar.marker", **kwargs): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='bar.marker', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/_showscale.py b/packages/python/plotly/plotly/validators/bar/marker/_showscale.py index f89c360ae86..a801fa72538 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/_showscale.py +++ b/packages/python/plotly/plotly/validators/bar/marker/_showscale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showscale", parent_name="bar.marker", **kwargs): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='bar.marker', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_bgcolor.py index 87d8ddd5f2e..2e4e0c64919 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="bar.marker.colorbar", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='bar.marker.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_bordercolor.py index 309f7eb65c5..51bc696f2d3 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="bar.marker.colorbar", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='bar.marker.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_borderwidth.py index fb311243c7c..afab419c51f 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_borderwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderwidth", parent_name="bar.marker.colorbar", **kwargs - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='bar.marker.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_dtick.py index 342b57809d5..8ad08caa6e3 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="bar.marker.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='bar.marker.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_exponentformat.py index 5ed0f77e3a5..fa730bfda6b 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_exponentformat.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="exponentformat", parent_name="bar.marker.colorbar", **kwargs - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='bar.marker.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_labelalias.py index 58f08b59ff8..15fbc668ade 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="bar.marker.colorbar", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='bar.marker.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_len.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_len.py index 5111f984c48..7b9e6edd7a2 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_len.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="len", parent_name="bar.marker.colorbar", **kwargs): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='bar.marker.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_lenmode.py index 090299432da..e75cc432c76 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_lenmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="lenmode", parent_name="bar.marker.colorbar", **kwargs - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='bar.marker.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_minexponent.py index 1590bda8638..a73aeca3077 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="bar.marker.colorbar", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='bar.marker.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_nticks.py index 3ba23e297df..cc06e03781f 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="bar.marker.colorbar", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='bar.marker.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_orientation.py index 439fa7b0d61..9e5303f731e 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_orientation.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="orientation", parent_name="bar.marker.colorbar", **kwargs - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='bar.marker.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_outlinecolor.py index 78330ffaef4..f09fc84637d 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_outlinecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="outlinecolor", parent_name="bar.marker.colorbar", **kwargs - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='bar.marker.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_outlinewidth.py index 54c5c369271..bbd299945b1 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_outlinewidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="outlinewidth", parent_name="bar.marker.colorbar", **kwargs - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='bar.marker.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_separatethousands.py index 31d071f1e11..6b4424e3a0c 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="bar.marker.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='bar.marker.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_showexponent.py index 6da60dae8e1..3b731262853 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="bar.marker.colorbar", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='bar.marker.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_showticklabels.py index 41d65921d4f..b048b93e4dc 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_showticklabels.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showticklabels", parent_name="bar.marker.colorbar", **kwargs - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='bar.marker.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_showtickprefix.py index 892554666c0..053aadcf75a 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_showtickprefix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showtickprefix", parent_name="bar.marker.colorbar", **kwargs - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='bar.marker.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_showticksuffix.py index 84c7eb4fb30..5f13770dcff 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_showticksuffix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showticksuffix", parent_name="bar.marker.colorbar", **kwargs - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='bar.marker.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_thickness.py index 664c33c9b03..69f39beee8d 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="bar.marker.colorbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='bar.marker.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_thicknessmode.py index 129a7e972a4..e05b9c5e482 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_thicknessmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="thicknessmode", parent_name="bar.marker.colorbar", **kwargs - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='bar.marker.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tick0.py index 6f949f131b4..f5e501a9261 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="bar.marker.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='bar.marker.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickangle.py index a4002dc9122..d9e24247aaa 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="bar.marker.colorbar", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='bar.marker.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickcolor.py index fa4e805bb6e..b42c4835cb2 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="bar.marker.colorbar", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='bar.marker.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickfont.py index b73e949eed7..389ef76a46a 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="bar.marker.colorbar", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='bar.marker.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickformat.py index f8b126d9add..84e63dc7e43 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="bar.marker.colorbar", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='bar.marker.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickformatstopdefaults.py index 63985843387..f617343b97c 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="bar.marker.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='bar.marker.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickformatstops.py index 84d9dcfa42a..3583b62d660 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickformatstops.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="tickformatstops", parent_name="bar.marker.colorbar", **kwargs - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='bar.marker.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticklabeloverflow.py index 8f4306b30d2..4693d5db836 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="bar.marker.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='bar.marker.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticklabelposition.py index 3da79dcd039..7ec0bdcb82e 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="bar.marker.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='bar.marker.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticklabelstep.py index 7dda5eb2a0a..84a2fed4b36 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticklabelstep.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="ticklabelstep", parent_name="bar.marker.colorbar", **kwargs - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='bar.marker.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticklen.py index d56749cc7c2..5f4dfd89cf2 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="bar.marker.colorbar", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='bar.marker.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickmode.py index 112080de23f..938e44b24d2 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="bar.marker.colorbar", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='bar.marker.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickprefix.py index 62ee4d2b8b3..72fbfea0514 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="bar.marker.colorbar", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='bar.marker.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticks.py index cede8bd688d..59b5ace1a46 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="bar.marker.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='bar.marker.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticksuffix.py index 4fe862b5409..e39840ce7f8 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="bar.marker.colorbar", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='bar.marker.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticktext.py index 0c86bcb17bf..8232edc6e11 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="bar.marker.colorbar", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='bar.marker.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticktextsrc.py index 3b45f4d9c75..a1bc451b991 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="bar.marker.colorbar", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='bar.marker.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickvals.py index 55ef267a6d5..0006ca9e001 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="bar.marker.colorbar", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='bar.marker.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickvalssrc.py index 39fc27b4dbd..e8423e1df6d 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="bar.marker.colorbar", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='bar.marker.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickwidth.py index dce4b9578c6..ffa7e0eb7e3 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="bar.marker.colorbar", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='bar.marker.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_title.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_title.py index cb47c32f1aa..8f04452a8e8 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="bar.marker.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='bar.marker.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_x.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_x.py index f8cc0c516d0..8347423230b 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x", parent_name="bar.marker.colorbar", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='bar.marker.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_xanchor.py index ac443b16ea8..15f2b03151c 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="bar.marker.colorbar", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='bar.marker.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_xpad.py index 8c1888f8ccb..ce0d96f8323 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_xpad.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="xpad", parent_name="bar.marker.colorbar", **kwargs): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='bar.marker.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_xref.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_xref.py index 732ea06b732..9de8eb56757 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_xref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xref", parent_name="bar.marker.colorbar", **kwargs): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='bar.marker.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_y.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_y.py index d8b1fdf0ecb..df4632b9a95 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y", parent_name="bar.marker.colorbar", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='bar.marker.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_yanchor.py index 31788916229..3a0f3b72425 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="bar.marker.colorbar", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='bar.marker.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ypad.py index 67cd6d14d05..668fbd2f05b 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_ypad.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="ypad", parent_name="bar.marker.colorbar", **kwargs): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='bar.marker.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_yref.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_yref.py index 64090824848..d267db74a44 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/_yref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yref", parent_name="bar.marker.colorbar", **kwargs): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='bar.marker.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_color.py index 70f24e2c937..d19f7ef71a2 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="bar.marker.colorbar.tickfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='bar.marker.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_family.py index 86e55813c12..2e9f3110b4c 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="bar.marker.colorbar.tickfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='bar.marker.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_lineposition.py index 49769a210fd..a79ccea52fb 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="bar.marker.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='bar.marker.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_shadow.py index 4633af29b3e..3be6529bb3a 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="bar.marker.colorbar.tickfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='bar.marker.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_size.py index 0e6853f8b20..db630749e85 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="bar.marker.colorbar.tickfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='bar.marker.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_style.py index ffe55fa9bb7..e51d2136ba0 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="bar.marker.colorbar.tickfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='bar.marker.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_textcase.py index cf9ee8d0f5c..25f1d502239 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="bar.marker.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='bar.marker.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_variant.py index 6975504bf21..24101783cfe 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="bar.marker.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='bar.marker.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_weight.py index 197e064242b..c7a8a37fccb 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="bar.marker.colorbar.tickfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='bar.marker.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickformatstop/_dtickrange.py index 5ce0669f8ee..5d08a23bc8b 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="bar.marker.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - items=kwargs.pop( - "items", - [ - {"editType": "colorbars", "valType": "any"}, - {"editType": "colorbars", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='bar.marker.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + items=kwargs.pop('items', [{'editType': 'colorbars', 'valType': 'any'}, {'editType': 'colorbars', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickformatstop/_enabled.py index 5d0cef28210..13b2ba8c4c5 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="bar.marker.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='bar.marker.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickformatstop/_name.py index 9d75e335847..c896e3e5ab8 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="bar.marker.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='bar.marker.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickformatstop/_templateitemname.py index ee5bacc8bb7..3b9d365b223 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="bar.marker.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='bar.marker.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickformatstop/_value.py index 18222654924..be3ca8d5d8c 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="bar.marker.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='bar.marker.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/_font.py index c477a242b4b..70ed0c17299 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="bar.marker.colorbar.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='bar.marker.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/_side.py index 4e07b004495..ccb60d2e456 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/_side.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="side", parent_name="bar.marker.colorbar.title", **kwargs - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='bar.marker.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/_text.py index 46d351d1e57..16fa254bb4b 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="bar.marker.colorbar.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='bar.marker.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_color.py index ce4585a51da..1584f4bb48d 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="bar.marker.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='bar.marker.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_family.py index ae9a20ad462..a0834f859e1 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="bar.marker.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='bar.marker.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_lineposition.py index 6c2e66429c0..1a666eee0f9 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="bar.marker.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='bar.marker.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_shadow.py index 0f51d82f97a..d8f7db784ec 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="bar.marker.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='bar.marker.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_size.py index 393f91e9020..8b6c6e1a8a7 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="bar.marker.colorbar.title.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='bar.marker.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_style.py index 3d235df56b5..cd1d728f73d 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="bar.marker.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='bar.marker.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_textcase.py index 38d4fa4ff7b..f8e6ff8e8aa 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="bar.marker.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='bar.marker.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_variant.py index 57f976bbe89..b09d605a09d 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="bar.marker.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='bar.marker.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_weight.py index 6d9f231efcf..cf3d0221b67 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="bar.marker.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='bar.marker.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/line/__init__.py b/packages/python/plotly/plotly/validators/bar/marker/line/__init__.py index facbe33f884..55d423b11da 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/marker/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._widthsrc import WidthsrcValidator from ._width import WidthValidator @@ -16,22 +15,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._widthsrc.WidthsrcValidator", - "._width.WidthValidator", - "._reversescale.ReversescaleValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._widthsrc.WidthsrcValidator', '._width.WidthValidator', '._reversescale.ReversescaleValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/bar/marker/line/_autocolorscale.py b/packages/python/plotly/plotly/validators/bar/marker/line/_autocolorscale.py index 01e1d7f83ae..87f9651b060 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/line/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/bar/marker/line/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="bar.marker.line", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='bar.marker.line', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/line/_cauto.py b/packages/python/plotly/plotly/validators/bar/marker/line/_cauto.py index 5b097579c22..3c2456710df 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/line/_cauto.py +++ b/packages/python/plotly/plotly/validators/bar/marker/line/_cauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cauto", parent_name="bar.marker.line", **kwargs): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='bar.marker.line', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/line/_cmax.py b/packages/python/plotly/plotly/validators/bar/marker/line/_cmax.py index 77f09c737b1..84e4794e834 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/line/_cmax.py +++ b/packages/python/plotly/plotly/validators/bar/marker/line/_cmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmax", parent_name="bar.marker.line", **kwargs): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='bar.marker.line', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/line/_cmid.py b/packages/python/plotly/plotly/validators/bar/marker/line/_cmid.py index 5792aaa808a..e538e97c42f 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/line/_cmid.py +++ b/packages/python/plotly/plotly/validators/bar/marker/line/_cmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmid", parent_name="bar.marker.line", **kwargs): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='bar.marker.line', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/line/_cmin.py b/packages/python/plotly/plotly/validators/bar/marker/line/_cmin.py index c18678aa448..087aa15d31a 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/line/_cmin.py +++ b/packages/python/plotly/plotly/validators/bar/marker/line/_cmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmin", parent_name="bar.marker.line", **kwargs): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='bar.marker.line', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/line/_color.py b/packages/python/plotly/plotly/validators/bar/marker/line/_color.py index a4119ed532e..307891ff21a 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/line/_color.py +++ b/packages/python/plotly/plotly/validators/bar/marker/line/_color.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="bar.marker.line", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - colorscale_path=kwargs.pop("colorscale_path", "bar.marker.line.colorscale"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='bar.marker.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + colorscale_path=kwargs.pop('colorscale_path', 'bar.marker.line.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/line/_coloraxis.py b/packages/python/plotly/plotly/validators/bar/marker/line/_coloraxis.py index 3e2579a8fcd..f740111a7a7 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/line/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/bar/marker/line/_coloraxis.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name="coloraxis", parent_name="bar.marker.line", **kwargs - ): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='bar.marker.line', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/line/_colorscale.py b/packages/python/plotly/plotly/validators/bar/marker/line/_colorscale.py index 27453650eee..f9592eda3c1 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/line/_colorscale.py +++ b/packages/python/plotly/plotly/validators/bar/marker/line/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="bar.marker.line", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='bar.marker.line', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/line/_colorsrc.py b/packages/python/plotly/plotly/validators/bar/marker/line/_colorsrc.py index 22afdcb8873..d832439cd33 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/line/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/bar/marker/line/_colorsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="colorsrc", parent_name="bar.marker.line", **kwargs): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='bar.marker.line', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/line/_reversescale.py b/packages/python/plotly/plotly/validators/bar/marker/line/_reversescale.py index 1377e78c8ab..bc13ada8145 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/line/_reversescale.py +++ b/packages/python/plotly/plotly/validators/bar/marker/line/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="bar.marker.line", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='bar.marker.line', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/line/_width.py b/packages/python/plotly/plotly/validators/bar/marker/line/_width.py index 0ada8567f27..8e01203a10a 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/line/_width.py +++ b/packages/python/plotly/plotly/validators/bar/marker/line/_width.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="bar.marker.line", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='bar.marker.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/line/_widthsrc.py b/packages/python/plotly/plotly/validators/bar/marker/line/_widthsrc.py index 40f18901236..ca592aa2814 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/line/_widthsrc.py +++ b/packages/python/plotly/plotly/validators/bar/marker/line/_widthsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="widthsrc", parent_name="bar.marker.line", **kwargs): - super(WidthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WidthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='widthsrc', + parent_name='bar.marker.line', + **kwargs): + super(WidthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/pattern/__init__.py b/packages/python/plotly/plotly/validators/bar/marker/pattern/__init__.py index e190f962c46..de3616dbc8a 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/pattern/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/marker/pattern/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._soliditysrc import SoliditysrcValidator from ._solidity import SolidityValidator @@ -16,22 +15,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._soliditysrc.SoliditysrcValidator", - "._solidity.SolidityValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shapesrc.ShapesrcValidator", - "._shape.ShapeValidator", - "._fillmode.FillmodeValidator", - "._fgopacity.FgopacityValidator", - "._fgcolorsrc.FgcolorsrcValidator", - "._fgcolor.FgcolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - ], + ['._soliditysrc.SoliditysrcValidator', '._solidity.SolidityValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shapesrc.ShapesrcValidator', '._shape.ShapeValidator', '._fillmode.FillmodeValidator', '._fgopacity.FgopacityValidator', '._fgcolorsrc.FgcolorsrcValidator', '._fgcolor.FgcolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/bar/marker/pattern/_bgcolor.py b/packages/python/plotly/plotly/validators/bar/marker/pattern/_bgcolor.py index db17a413ce1..83522dc39f1 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/pattern/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/bar/marker/pattern/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="bar.marker.pattern", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='bar.marker.pattern', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/pattern/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/bar/marker/pattern/_bgcolorsrc.py index c30d7c95e99..71bc7bb1a12 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/pattern/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/bar/marker/pattern/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="bar.marker.pattern", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='bar.marker.pattern', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/pattern/_fgcolor.py b/packages/python/plotly/plotly/validators/bar/marker/pattern/_fgcolor.py index c3b3726e05c..9f23336a047 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/pattern/_fgcolor.py +++ b/packages/python/plotly/plotly/validators/bar/marker/pattern/_fgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class FgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="fgcolor", parent_name="bar.marker.pattern", **kwargs - ): - super(FgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fgcolor', + parent_name='bar.marker.pattern', + **kwargs): + super(FgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/pattern/_fgcolorsrc.py b/packages/python/plotly/plotly/validators/bar/marker/pattern/_fgcolorsrc.py index fb0cf799643..291885b29ca 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/pattern/_fgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/bar/marker/pattern/_fgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="fgcolorsrc", parent_name="bar.marker.pattern", **kwargs - ): - super(FgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='fgcolorsrc', + parent_name='bar.marker.pattern', + **kwargs): + super(FgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/pattern/_fgopacity.py b/packages/python/plotly/plotly/validators/bar/marker/pattern/_fgopacity.py index e6216c61a94..72455d5c1cf 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/pattern/_fgopacity.py +++ b/packages/python/plotly/plotly/validators/bar/marker/pattern/_fgopacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FgopacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="fgopacity", parent_name="bar.marker.pattern", **kwargs - ): - super(FgopacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FgopacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fgopacity', + parent_name='bar.marker.pattern', + **kwargs): + super(FgopacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/pattern/_fillmode.py b/packages/python/plotly/plotly/validators/bar/marker/pattern/_fillmode.py index 533f8bdef77..1fc29ccf326 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/pattern/_fillmode.py +++ b/packages/python/plotly/plotly/validators/bar/marker/pattern/_fillmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class FillmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="fillmode", parent_name="bar.marker.pattern", **kwargs - ): - super(FillmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["replace", "overlay"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='fillmode', + parent_name='bar.marker.pattern', + **kwargs): + super(FillmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['replace', 'overlay']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/pattern/_shape.py b/packages/python/plotly/plotly/validators/bar/marker/pattern/_shape.py index 9ed95d39bb9..f623b8b7ad3 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/pattern/_shape.py +++ b/packages/python/plotly/plotly/validators/bar/marker/pattern/_shape.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="shape", parent_name="bar.marker.pattern", **kwargs): - super(ShapeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["", "/", "\\", "x", "-", "|", "+", "."]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShapeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='shape', + parent_name='bar.marker.pattern', + **kwargs): + super(ShapeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['', '/', '\\', 'x', '-', '|', '+', '.']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/pattern/_shapesrc.py b/packages/python/plotly/plotly/validators/bar/marker/pattern/_shapesrc.py index e3e6351d2e8..d4d8cacc1b5 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/pattern/_shapesrc.py +++ b/packages/python/plotly/plotly/validators/bar/marker/pattern/_shapesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShapesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shapesrc", parent_name="bar.marker.pattern", **kwargs - ): - super(ShapesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShapesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shapesrc', + parent_name='bar.marker.pattern', + **kwargs): + super(ShapesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/pattern/_size.py b/packages/python/plotly/plotly/validators/bar/marker/pattern/_size.py index c46713a0449..4d128a8b071 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/pattern/_size.py +++ b/packages/python/plotly/plotly/validators/bar/marker/pattern/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="bar.marker.pattern", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='bar.marker.pattern', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/pattern/_sizesrc.py b/packages/python/plotly/plotly/validators/bar/marker/pattern/_sizesrc.py index cc51f8f703a..f9fa73acf82 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/pattern/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/bar/marker/pattern/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="bar.marker.pattern", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='bar.marker.pattern', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/pattern/_solidity.py b/packages/python/plotly/plotly/validators/bar/marker/pattern/_solidity.py index 91c1088e7ee..d0b310e66f8 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/pattern/_solidity.py +++ b/packages/python/plotly/plotly/validators/bar/marker/pattern/_solidity.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class SolidityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="solidity", parent_name="bar.marker.pattern", **kwargs - ): - super(SolidityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SolidityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='solidity', + parent_name='bar.marker.pattern', + **kwargs): + super(SolidityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/marker/pattern/_soliditysrc.py b/packages/python/plotly/plotly/validators/bar/marker/pattern/_soliditysrc.py index 97b7ca72fc0..2426a96752d 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/pattern/_soliditysrc.py +++ b/packages/python/plotly/plotly/validators/bar/marker/pattern/_soliditysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SoliditysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="soliditysrc", parent_name="bar.marker.pattern", **kwargs - ): - super(SoliditysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SoliditysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='soliditysrc', + parent_name='bar.marker.pattern', + **kwargs): + super(SoliditysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/outsidetextfont/__init__.py b/packages/python/plotly/plotly/validators/bar/outsidetextfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/bar/outsidetextfont/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/outsidetextfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_color.py b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_color.py index f810277d926..134514e7ae4 100644 --- a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_color.py +++ b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="bar.outsidetextfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='bar.outsidetextfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_colorsrc.py b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_colorsrc.py index c63bb0d48a5..c6842e28137 100644 --- a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="bar.outsidetextfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='bar.outsidetextfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_family.py b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_family.py index ba04e7afefc..b408626d73c 100644 --- a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_family.py +++ b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="bar.outsidetextfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='bar.outsidetextfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_familysrc.py b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_familysrc.py index ff178c5fa90..12c4141c96c 100644 --- a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="bar.outsidetextfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='bar.outsidetextfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_lineposition.py b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_lineposition.py index 8af29c51b30..5b7ddf47004 100644 --- a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="bar.outsidetextfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='bar.outsidetextfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_linepositionsrc.py index 330525401d1..e921114f241 100644 --- a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_linepositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="linepositionsrc", parent_name="bar.outsidetextfont", **kwargs - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='bar.outsidetextfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_shadow.py b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_shadow.py index 8a148e4d706..e9af9bf984c 100644 --- a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="bar.outsidetextfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='bar.outsidetextfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_shadowsrc.py index a09eeb4c5a1..f1e844ee0bd 100644 --- a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="bar.outsidetextfont", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='bar.outsidetextfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_size.py b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_size.py index 0f689cc8eda..6c71898c055 100644 --- a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_size.py +++ b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="bar.outsidetextfont", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='bar.outsidetextfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_sizesrc.py b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_sizesrc.py index 72b786c3fe7..998ca9d88c7 100644 --- a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="bar.outsidetextfont", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='bar.outsidetextfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_style.py b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_style.py index ba5a9ba0c02..7f467d48900 100644 --- a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_style.py +++ b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="bar.outsidetextfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='bar.outsidetextfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_stylesrc.py b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_stylesrc.py index ec63bebdd0c..b0b1a013717 100644 --- a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="bar.outsidetextfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='bar.outsidetextfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_textcase.py b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_textcase.py index 5bf0002fee8..51b4a1881f9 100644 --- a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="bar.outsidetextfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='bar.outsidetextfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_textcasesrc.py index d35b0b1acb5..af5e69e5791 100644 --- a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="bar.outsidetextfont", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='bar.outsidetextfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_variant.py b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_variant.py index a35838d2ce5..eed0f624b3e 100644 --- a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_variant.py +++ b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="bar.outsidetextfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='bar.outsidetextfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_variantsrc.py b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_variantsrc.py index c9069e7b896..939f3fa8a00 100644 --- a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="bar.outsidetextfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='bar.outsidetextfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_weight.py b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_weight.py index 3eef854c20b..89b65a57de6 100644 --- a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_weight.py +++ b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="bar.outsidetextfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='bar.outsidetextfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_weightsrc.py b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_weightsrc.py index b29eaf336a1..73f0ae76f41 100644 --- a/packages/python/plotly/plotly/validators/bar/outsidetextfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/bar/outsidetextfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="bar.outsidetextfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='bar.outsidetextfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/selected/__init__.py b/packages/python/plotly/plotly/validators/bar/selected/__init__.py index 3b0aeed383f..c0a73fd7df3 100644 --- a/packages/python/plotly/plotly/validators/bar/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/selected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._textfont import TextfontValidator from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] + __name__, + [], + ['._textfont.TextfontValidator', '._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/bar/selected/_marker.py b/packages/python/plotly/plotly/validators/bar/selected/_marker.py index 32eba2a5896..dd4a2350cce 100644 --- a/packages/python/plotly/plotly/validators/bar/selected/_marker.py +++ b/packages/python/plotly/plotly/validators/bar/selected/_marker.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="bar.selected", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='bar.selected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/selected/_textfont.py b/packages/python/plotly/plotly/validators/bar/selected/_textfont.py index 1f6c9d64b74..c3eef836561 100644 --- a/packages/python/plotly/plotly/validators/bar/selected/_textfont.py +++ b/packages/python/plotly/plotly/validators/bar/selected/_textfont.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="textfont", parent_name="bar.selected", **kwargs): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the text font color of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='bar.selected', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/bar/selected/marker/__init__.py index d8f31347bfd..e07b1781835 100644 --- a/packages/python/plotly/plotly/validators/bar/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/selected/marker/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._opacity.OpacityValidator", "._color.ColorValidator"] + __name__, + [], + ['._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/bar/selected/marker/_color.py b/packages/python/plotly/plotly/validators/bar/selected/marker/_color.py index e6bb2c9c583..41ddcd59be6 100644 --- a/packages/python/plotly/plotly/validators/bar/selected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/bar/selected/marker/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="bar.selected.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='bar.selected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/selected/marker/_opacity.py b/packages/python/plotly/plotly/validators/bar/selected/marker/_opacity.py index e9ce475812a..bf6995d770e 100644 --- a/packages/python/plotly/plotly/validators/bar/selected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/bar/selected/marker/_opacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="bar.selected.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='bar.selected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/selected/textfont/__init__.py b/packages/python/plotly/plotly/validators/bar/selected/textfont/__init__.py index a9f087e5af1..86899e5cc51 100644 --- a/packages/python/plotly/plotly/validators/bar/selected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/selected/textfont/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._color.ColorValidator"] + __name__, + [], + ['._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/bar/selected/textfont/_color.py b/packages/python/plotly/plotly/validators/bar/selected/textfont/_color.py index f2fd78a2866..fa42d9067e4 100644 --- a/packages/python/plotly/plotly/validators/bar/selected/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/bar/selected/textfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="bar.selected.textfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='bar.selected.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/stream/__init__.py b/packages/python/plotly/plotly/validators/bar/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/bar/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/bar/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/bar/stream/_maxpoints.py index d2dc00626dd..12646c54062 100644 --- a/packages/python/plotly/plotly/validators/bar/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/bar/stream/_maxpoints.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="maxpoints", parent_name="bar.stream", **kwargs): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='bar.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/stream/_token.py b/packages/python/plotly/plotly/validators/bar/stream/_token.py index 5aeed749d6c..762362087e2 100644 --- a/packages/python/plotly/plotly/validators/bar/stream/_token.py +++ b/packages/python/plotly/plotly/validators/bar/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="bar.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='bar.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/textfont/__init__.py b/packages/python/plotly/plotly/validators/bar/textfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/bar/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/textfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/bar/textfont/_color.py b/packages/python/plotly/plotly/validators/bar/textfont/_color.py index 79644aa5a3b..44a761dd84a 100644 --- a/packages/python/plotly/plotly/validators/bar/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/bar/textfont/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="bar.textfont", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='bar.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/textfont/_colorsrc.py b/packages/python/plotly/plotly/validators/bar/textfont/_colorsrc.py index 0ab662025c5..793b72545da 100644 --- a/packages/python/plotly/plotly/validators/bar/textfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/bar/textfont/_colorsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="colorsrc", parent_name="bar.textfont", **kwargs): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='bar.textfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/textfont/_family.py b/packages/python/plotly/plotly/validators/bar/textfont/_family.py index 1ee78b440ee..b67b409d6a2 100644 --- a/packages/python/plotly/plotly/validators/bar/textfont/_family.py +++ b/packages/python/plotly/plotly/validators/bar/textfont/_family.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="family", parent_name="bar.textfont", **kwargs): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='bar.textfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/textfont/_familysrc.py b/packages/python/plotly/plotly/validators/bar/textfont/_familysrc.py index 878d83e8aaa..f73ffaa1cd3 100644 --- a/packages/python/plotly/plotly/validators/bar/textfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/bar/textfont/_familysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="familysrc", parent_name="bar.textfont", **kwargs): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='bar.textfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/textfont/_lineposition.py b/packages/python/plotly/plotly/validators/bar/textfont/_lineposition.py index bed0d04aa62..3a0b4f33eb4 100644 --- a/packages/python/plotly/plotly/validators/bar/textfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/bar/textfont/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="bar.textfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='bar.textfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/textfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/bar/textfont/_linepositionsrc.py index c1c2a7b7200..9bdd05edc16 100644 --- a/packages/python/plotly/plotly/validators/bar/textfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/bar/textfont/_linepositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="linepositionsrc", parent_name="bar.textfont", **kwargs - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='bar.textfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/textfont/_shadow.py b/packages/python/plotly/plotly/validators/bar/textfont/_shadow.py index 55c0e4ca682..43bc3c7857c 100644 --- a/packages/python/plotly/plotly/validators/bar/textfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/bar/textfont/_shadow.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="shadow", parent_name="bar.textfont", **kwargs): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='bar.textfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/textfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/bar/textfont/_shadowsrc.py index f189ea33d8f..4148612dc2c 100644 --- a/packages/python/plotly/plotly/validators/bar/textfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/bar/textfont/_shadowsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="shadowsrc", parent_name="bar.textfont", **kwargs): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='bar.textfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/textfont/_size.py b/packages/python/plotly/plotly/validators/bar/textfont/_size.py index 4fd24f59923..7b8f5b1b182 100644 --- a/packages/python/plotly/plotly/validators/bar/textfont/_size.py +++ b/packages/python/plotly/plotly/validators/bar/textfont/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="bar.textfont", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='bar.textfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/textfont/_sizesrc.py b/packages/python/plotly/plotly/validators/bar/textfont/_sizesrc.py index cc8132d5b01..e2a0c239619 100644 --- a/packages/python/plotly/plotly/validators/bar/textfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/bar/textfont/_sizesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="sizesrc", parent_name="bar.textfont", **kwargs): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='bar.textfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/textfont/_style.py b/packages/python/plotly/plotly/validators/bar/textfont/_style.py index 7242a00e7ca..5a6cc611026 100644 --- a/packages/python/plotly/plotly/validators/bar/textfont/_style.py +++ b/packages/python/plotly/plotly/validators/bar/textfont/_style.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="style", parent_name="bar.textfont", **kwargs): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='bar.textfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/textfont/_stylesrc.py b/packages/python/plotly/plotly/validators/bar/textfont/_stylesrc.py index 313c8201050..0bfbd28195a 100644 --- a/packages/python/plotly/plotly/validators/bar/textfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/bar/textfont/_stylesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="stylesrc", parent_name="bar.textfont", **kwargs): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='bar.textfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/textfont/_textcase.py b/packages/python/plotly/plotly/validators/bar/textfont/_textcase.py index 70da6f7f43a..d5ab88d0e38 100644 --- a/packages/python/plotly/plotly/validators/bar/textfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/bar/textfont/_textcase.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="textcase", parent_name="bar.textfont", **kwargs): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='bar.textfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/textfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/bar/textfont/_textcasesrc.py index 64714087a8e..7fc6deae0bf 100644 --- a/packages/python/plotly/plotly/validators/bar/textfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/bar/textfont/_textcasesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textcasesrc", parent_name="bar.textfont", **kwargs): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='bar.textfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/textfont/_variant.py b/packages/python/plotly/plotly/validators/bar/textfont/_variant.py index dddda71860b..293179362b4 100644 --- a/packages/python/plotly/plotly/validators/bar/textfont/_variant.py +++ b/packages/python/plotly/plotly/validators/bar/textfont/_variant.py @@ -1,23 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="variant", parent_name="bar.textfont", **kwargs): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='bar.textfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/textfont/_variantsrc.py b/packages/python/plotly/plotly/validators/bar/textfont/_variantsrc.py index f3aa16e9012..3d5bdb81ba8 100644 --- a/packages/python/plotly/plotly/validators/bar/textfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/bar/textfont/_variantsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="variantsrc", parent_name="bar.textfont", **kwargs): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='bar.textfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/textfont/_weight.py b/packages/python/plotly/plotly/validators/bar/textfont/_weight.py index 80b816dfedd..2f03606e62f 100644 --- a/packages/python/plotly/plotly/validators/bar/textfont/_weight.py +++ b/packages/python/plotly/plotly/validators/bar/textfont/_weight.py @@ -1,15 +1,17 @@ -import _plotly_utils.basevalidators - - -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="weight", parent_name="bar.textfont", **kwargs): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='bar.textfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/textfont/_weightsrc.py b/packages/python/plotly/plotly/validators/bar/textfont/_weightsrc.py index 1fb08a92ef7..58a77338a7f 100644 --- a/packages/python/plotly/plotly/validators/bar/textfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/bar/textfont/_weightsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="weightsrc", parent_name="bar.textfont", **kwargs): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='bar.textfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/unselected/__init__.py b/packages/python/plotly/plotly/validators/bar/unselected/__init__.py index 3b0aeed383f..c0a73fd7df3 100644 --- a/packages/python/plotly/plotly/validators/bar/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/unselected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._textfont import TextfontValidator from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] + __name__, + [], + ['._textfont.TextfontValidator', '._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/bar/unselected/_marker.py b/packages/python/plotly/plotly/validators/bar/unselected/_marker.py index 2ee11271c7b..25cc0f73ae6 100644 --- a/packages/python/plotly/plotly/validators/bar/unselected/_marker.py +++ b/packages/python/plotly/plotly/validators/bar/unselected/_marker.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="bar.unselected", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='bar.unselected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/unselected/_textfont.py b/packages/python/plotly/plotly/validators/bar/unselected/_textfont.py index 9609db7487c..82c05417118 100644 --- a/packages/python/plotly/plotly/validators/bar/unselected/_textfont.py +++ b/packages/python/plotly/plotly/validators/bar/unselected/_textfont.py @@ -1,19 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="textfont", parent_name="bar.unselected", **kwargs): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the text font color of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='bar.unselected', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/bar/unselected/marker/__init__.py index d8f31347bfd..e07b1781835 100644 --- a/packages/python/plotly/plotly/validators/bar/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/unselected/marker/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._opacity.OpacityValidator", "._color.ColorValidator"] + __name__, + [], + ['._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/bar/unselected/marker/_color.py b/packages/python/plotly/plotly/validators/bar/unselected/marker/_color.py index 59219f90afd..1be02bcd1e1 100644 --- a/packages/python/plotly/plotly/validators/bar/unselected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/bar/unselected/marker/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="bar.unselected.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='bar.unselected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/unselected/marker/_opacity.py b/packages/python/plotly/plotly/validators/bar/unselected/marker/_opacity.py index 283e9efabf0..69e56865840 100644 --- a/packages/python/plotly/plotly/validators/bar/unselected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/bar/unselected/marker/_opacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="bar.unselected.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='bar.unselected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/bar/unselected/textfont/__init__.py b/packages/python/plotly/plotly/validators/bar/unselected/textfont/__init__.py index a9f087e5af1..86899e5cc51 100644 --- a/packages/python/plotly/plotly/validators/bar/unselected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/unselected/textfont/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._color.ColorValidator"] + __name__, + [], + ['._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/bar/unselected/textfont/_color.py b/packages/python/plotly/plotly/validators/bar/unselected/textfont/_color.py index 1e969db592d..2cc78f29906 100644 --- a/packages/python/plotly/plotly/validators/bar/unselected/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/bar/unselected/textfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="bar.unselected.textfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='bar.unselected.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/__init__.py b/packages/python/plotly/plotly/validators/barpolar/__init__.py index bb1ecd886ba..77ce93c1780 100644 --- a/packages/python/plotly/plotly/validators/barpolar/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._widthsrc import WidthsrcValidator from ._width import WidthValidator @@ -51,57 +50,10 @@ from ._base import BaseValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._widthsrc.WidthsrcValidator", - "._width.WidthValidator", - "._visible.VisibleValidator", - "._unselected.UnselectedValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._thetaunit.ThetaunitValidator", - "._thetasrc.ThetasrcValidator", - "._theta0.Theta0Validator", - "._theta.ThetaValidator", - "._textsrc.TextsrcValidator", - "._text.TextValidator", - "._subplot.SubplotValidator", - "._stream.StreamValidator", - "._showlegend.ShowlegendValidator", - "._selectedpoints.SelectedpointsValidator", - "._selected.SelectedValidator", - "._rsrc.RsrcValidator", - "._r0.R0Validator", - "._r.RValidator", - "._opacity.OpacityValidator", - "._offsetsrc.OffsetsrcValidator", - "._offset.OffsetValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._marker.MarkerValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._dtheta.DthetaValidator", - "._dr.DrValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._basesrc.BasesrcValidator", - "._base.BaseValidator", - ], + ['._widthsrc.WidthsrcValidator', '._width.WidthValidator', '._visible.VisibleValidator', '._unselected.UnselectedValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._thetaunit.ThetaunitValidator', '._thetasrc.ThetasrcValidator', '._theta0.Theta0Validator', '._theta.ThetaValidator', '._textsrc.TextsrcValidator', '._text.TextValidator', '._subplot.SubplotValidator', '._stream.StreamValidator', '._showlegend.ShowlegendValidator', '._selectedpoints.SelectedpointsValidator', '._selected.SelectedValidator', '._rsrc.RsrcValidator', '._r0.R0Validator', '._r.RValidator', '._opacity.OpacityValidator', '._offsetsrc.OffsetsrcValidator', '._offset.OffsetValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._marker.MarkerValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._dtheta.DthetaValidator', '._dr.DrValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._basesrc.BasesrcValidator', '._base.BaseValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/barpolar/_base.py b/packages/python/plotly/plotly/validators/barpolar/_base.py index ac72c72f35a..fdaea2ce012 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_base.py +++ b/packages/python/plotly/plotly/validators/barpolar/_base.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class BaseValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="base", parent_name="barpolar", **kwargs): - super(BaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BaseValidator(_bv.AnyValidator): + def __init__(self, plotly_name='base', + parent_name='barpolar', + **kwargs): + super(BaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_basesrc.py b/packages/python/plotly/plotly/validators/barpolar/_basesrc.py index 3b77a8652a3..115cb917ac3 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_basesrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/_basesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="basesrc", parent_name="barpolar", **kwargs): - super(BasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='basesrc', + parent_name='barpolar', + **kwargs): + super(BasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_customdata.py b/packages/python/plotly/plotly/validators/barpolar/_customdata.py index 4a2ed8cdc86..6c8830e52be 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_customdata.py +++ b/packages/python/plotly/plotly/validators/barpolar/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="barpolar", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='barpolar', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_customdatasrc.py b/packages/python/plotly/plotly/validators/barpolar/_customdatasrc.py index 6c574521f68..211a6ff2b15 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="barpolar", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='barpolar', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_dr.py b/packages/python/plotly/plotly/validators/barpolar/_dr.py index 4c60f92e9e1..fbd8465c583 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_dr.py +++ b/packages/python/plotly/plotly/validators/barpolar/_dr.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class DrValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="dr", parent_name="barpolar", **kwargs): - super(DrValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DrValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dr', + parent_name='barpolar', + **kwargs): + super(DrValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_dtheta.py b/packages/python/plotly/plotly/validators/barpolar/_dtheta.py index dc98f72ce30..73109f8600d 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_dtheta.py +++ b/packages/python/plotly/plotly/validators/barpolar/_dtheta.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class DthetaValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="dtheta", parent_name="barpolar", **kwargs): - super(DthetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DthetaValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dtheta', + parent_name='barpolar', + **kwargs): + super(DthetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_hoverinfo.py b/packages/python/plotly/plotly/validators/barpolar/_hoverinfo.py index f8e222eb888..12617d4b44d 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/barpolar/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="barpolar", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["r", "theta", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='barpolar', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['r', 'theta', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/barpolar/_hoverinfosrc.py index a6fc8c5471d..f5680dc5f50 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="barpolar", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='barpolar', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_hoverlabel.py b/packages/python/plotly/plotly/validators/barpolar/_hoverlabel.py index 42f3c3ebf65..142ef9c3b8d 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/barpolar/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="barpolar", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='barpolar', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_hovertemplate.py b/packages/python/plotly/plotly/validators/barpolar/_hovertemplate.py index 19a99d888bd..ac4b32007f5 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/barpolar/_hovertemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="barpolar", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='barpolar', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/barpolar/_hovertemplatesrc.py index 0ebd4ff86d9..1be660b567d 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/_hovertemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertemplatesrc", parent_name="barpolar", **kwargs - ): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='barpolar', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_hovertext.py b/packages/python/plotly/plotly/validators/barpolar/_hovertext.py index d03039152d0..0fbe8b37ddd 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_hovertext.py +++ b/packages/python/plotly/plotly/validators/barpolar/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="barpolar", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='barpolar', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_hovertextsrc.py b/packages/python/plotly/plotly/validators/barpolar/_hovertextsrc.py index 61ab77b50fa..719af0605cb 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="barpolar", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='barpolar', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_ids.py b/packages/python/plotly/plotly/validators/barpolar/_ids.py index 5417df6d081..a01c395c931 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_ids.py +++ b/packages/python/plotly/plotly/validators/barpolar/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="barpolar", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='barpolar', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_idssrc.py b/packages/python/plotly/plotly/validators/barpolar/_idssrc.py index 6c84093fe7b..61692be9dcd 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_idssrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="barpolar", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='barpolar', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_legend.py b/packages/python/plotly/plotly/validators/barpolar/_legend.py index 3563b949283..aee80739ef2 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_legend.py +++ b/packages/python/plotly/plotly/validators/barpolar/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="barpolar", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='barpolar', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_legendgroup.py b/packages/python/plotly/plotly/validators/barpolar/_legendgroup.py index e987517b6ae..181d7b19aa1 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/barpolar/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="barpolar", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='barpolar', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/barpolar/_legendgrouptitle.py index 8cb70c81d55..4e669a377b8 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/barpolar/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="barpolar", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='barpolar', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_legendrank.py b/packages/python/plotly/plotly/validators/barpolar/_legendrank.py index eac54224efd..7a5b756f28c 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_legendrank.py +++ b/packages/python/plotly/plotly/validators/barpolar/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="barpolar", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='barpolar', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_legendwidth.py b/packages/python/plotly/plotly/validators/barpolar/_legendwidth.py index c92b47e03ff..01069b1d741 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/barpolar/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="barpolar", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='barpolar', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_marker.py b/packages/python/plotly/plotly/validators/barpolar/_marker.py index e5bbec8ae4d..3719f646a87 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_marker.py +++ b/packages/python/plotly/plotly/validators/barpolar/_marker.py @@ -1,113 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="barpolar", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.barpolar.marker.Co - lorBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - line - :class:`plotly.graph_objects.barpolar.marker.Li - ne` instance or dict with compatible properties - opacity - Sets the opacity of the bars. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - pattern - Sets the pattern within the marker. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='barpolar', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_meta.py b/packages/python/plotly/plotly/validators/barpolar/_meta.py index 9cfc41ee2a0..81dd2eb77e7 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_meta.py +++ b/packages/python/plotly/plotly/validators/barpolar/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="barpolar", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='barpolar', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_metasrc.py b/packages/python/plotly/plotly/validators/barpolar/_metasrc.py index abeff2fb5d0..930306c4518 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_metasrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="barpolar", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='barpolar', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_name.py b/packages/python/plotly/plotly/validators/barpolar/_name.py index 4aeeea25074..b498d164b24 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_name.py +++ b/packages/python/plotly/plotly/validators/barpolar/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="barpolar", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='barpolar', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_offset.py b/packages/python/plotly/plotly/validators/barpolar/_offset.py index d1e8d56263c..8eeabead32a 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_offset.py +++ b/packages/python/plotly/plotly/validators/barpolar/_offset.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class OffsetValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="offset", parent_name="barpolar", **kwargs): - super(OffsetValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OffsetValidator(_bv.NumberValidator): + def __init__(self, plotly_name='offset', + parent_name='barpolar', + **kwargs): + super(OffsetValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_offsetsrc.py b/packages/python/plotly/plotly/validators/barpolar/_offsetsrc.py index 1917d722cfc..429c5d98ba1 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_offsetsrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/_offsetsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class OffsetsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="offsetsrc", parent_name="barpolar", **kwargs): - super(OffsetsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OffsetsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='offsetsrc', + parent_name='barpolar', + **kwargs): + super(OffsetsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_opacity.py b/packages/python/plotly/plotly/validators/barpolar/_opacity.py index 3dadedfcc25..dbcf1858445 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_opacity.py +++ b/packages/python/plotly/plotly/validators/barpolar/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="barpolar", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='barpolar', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_r.py b/packages/python/plotly/plotly/validators/barpolar/_r.py index 19991e14ad3..1bee6afd5f7 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_r.py +++ b/packages/python/plotly/plotly/validators/barpolar/_r.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class RValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="r", parent_name="barpolar", **kwargs): - super(RValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='r', + parent_name='barpolar', + **kwargs): + super(RValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_r0.py b/packages/python/plotly/plotly/validators/barpolar/_r0.py index 9d7d7156692..218819cc086 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_r0.py +++ b/packages/python/plotly/plotly/validators/barpolar/_r0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class R0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="r0", parent_name="barpolar", **kwargs): - super(R0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class R0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='r0', + parent_name='barpolar', + **kwargs): + super(R0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_rsrc.py b/packages/python/plotly/plotly/validators/barpolar/_rsrc.py index 1b95b540ee4..1a355ba974b 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_rsrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/_rsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class RsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="rsrc", parent_name="barpolar", **kwargs): - super(RsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='rsrc', + parent_name='barpolar', + **kwargs): + super(RsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_selected.py b/packages/python/plotly/plotly/validators/barpolar/_selected.py index ff6a794c8d1..68f556cc286 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_selected.py +++ b/packages/python/plotly/plotly/validators/barpolar/_selected.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="selected", parent_name="barpolar", **kwargs): - super(SelectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Selected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.barpolar.selected. - Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.barpolar.selected. - Textfont` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='selected', + parent_name='barpolar', + **kwargs): + super(SelectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_selectedpoints.py b/packages/python/plotly/plotly/validators/barpolar/_selectedpoints.py index 0f198b5d5dc..f1f05a5186b 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_selectedpoints.py +++ b/packages/python/plotly/plotly/validators/barpolar/_selectedpoints.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="selectedpoints", parent_name="barpolar", **kwargs): - super(SelectedpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedpointsValidator(_bv.AnyValidator): + def __init__(self, plotly_name='selectedpoints', + parent_name='barpolar', + **kwargs): + super(SelectedpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_showlegend.py b/packages/python/plotly/plotly/validators/barpolar/_showlegend.py index e13db2b1aa4..e85f6cb249b 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_showlegend.py +++ b/packages/python/plotly/plotly/validators/barpolar/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="barpolar", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='barpolar', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_stream.py b/packages/python/plotly/plotly/validators/barpolar/_stream.py index 630e892ce56..217fd240c0c 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_stream.py +++ b/packages/python/plotly/plotly/validators/barpolar/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="barpolar", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='barpolar', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_subplot.py b/packages/python/plotly/plotly/validators/barpolar/_subplot.py index 3d4c9092462..e0f854b1cc4 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_subplot.py +++ b/packages/python/plotly/plotly/validators/barpolar/_subplot.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SubplotValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="subplot", parent_name="barpolar", **kwargs): - super(SubplotValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "polar"), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SubplotValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='subplot', + parent_name='barpolar', + **kwargs): + super(SubplotValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'polar'), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_text.py b/packages/python/plotly/plotly/validators/barpolar/_text.py index 72b02b34bc2..77525b62d3f 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_text.py +++ b/packages/python/plotly/plotly/validators/barpolar/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="barpolar", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='barpolar', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_textsrc.py b/packages/python/plotly/plotly/validators/barpolar/_textsrc.py index b086f454ee2..a7dab24607f 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_textsrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="barpolar", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='barpolar', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_theta.py b/packages/python/plotly/plotly/validators/barpolar/_theta.py index db2f43243e3..6ba08f97bab 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_theta.py +++ b/packages/python/plotly/plotly/validators/barpolar/_theta.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ThetaValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="theta", parent_name="barpolar", **kwargs): - super(ThetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThetaValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='theta', + parent_name='barpolar', + **kwargs): + super(ThetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_theta0.py b/packages/python/plotly/plotly/validators/barpolar/_theta0.py index ecbfacf22c9..8bf8f91844e 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_theta0.py +++ b/packages/python/plotly/plotly/validators/barpolar/_theta0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Theta0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="theta0", parent_name="barpolar", **kwargs): - super(Theta0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Theta0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='theta0', + parent_name='barpolar', + **kwargs): + super(Theta0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_thetasrc.py b/packages/python/plotly/plotly/validators/barpolar/_thetasrc.py index 78bd2754bbe..140bf1efcba 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_thetasrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/_thetasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ThetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="thetasrc", parent_name="barpolar", **kwargs): - super(ThetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='thetasrc', + parent_name='barpolar', + **kwargs): + super(ThetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_thetaunit.py b/packages/python/plotly/plotly/validators/barpolar/_thetaunit.py index 206be95acbe..cd717194428 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_thetaunit.py +++ b/packages/python/plotly/plotly/validators/barpolar/_thetaunit.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThetaunitValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="thetaunit", parent_name="barpolar", **kwargs): - super(ThetaunitValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - values=kwargs.pop("values", ["radians", "degrees", "gradians"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThetaunitValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thetaunit', + parent_name='barpolar', + **kwargs): + super(ThetaunitValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + values=kwargs.pop('values', ['radians', 'degrees', 'gradians']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_uid.py b/packages/python/plotly/plotly/validators/barpolar/_uid.py index b249b5e9f95..8377a53e5a4 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_uid.py +++ b/packages/python/plotly/plotly/validators/barpolar/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="barpolar", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='barpolar', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_uirevision.py b/packages/python/plotly/plotly/validators/barpolar/_uirevision.py index 47f4a15c655..c8499a17ae1 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_uirevision.py +++ b/packages/python/plotly/plotly/validators/barpolar/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="barpolar", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='barpolar', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_unselected.py b/packages/python/plotly/plotly/validators/barpolar/_unselected.py index 7b3dfcc64ac..0771231d56c 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_unselected.py +++ b/packages/python/plotly/plotly/validators/barpolar/_unselected.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="unselected", parent_name="barpolar", **kwargs): - super(UnselectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Unselected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.barpolar.unselecte - d.Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.barpolar.unselecte - d.Textfont` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UnselectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='unselected', + parent_name='barpolar', + **kwargs): + super(UnselectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_visible.py b/packages/python/plotly/plotly/validators/barpolar/_visible.py index 84b34b54c37..5b15263db96 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_visible.py +++ b/packages/python/plotly/plotly/validators/barpolar/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="barpolar", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='barpolar', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_width.py b/packages/python/plotly/plotly/validators/barpolar/_width.py index 456f8d51525..15f679624d9 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_width.py +++ b/packages/python/plotly/plotly/validators/barpolar/_width.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="barpolar", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='barpolar', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/_widthsrc.py b/packages/python/plotly/plotly/validators/barpolar/_widthsrc.py index 4b0a07f8f60..5c9a9337cec 100644 --- a/packages/python/plotly/plotly/validators/barpolar/_widthsrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/_widthsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="widthsrc", parent_name="barpolar", **kwargs): - super(WidthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WidthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='widthsrc', + parent_name='barpolar', + **kwargs): + super(WidthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_align.py index 7bc89113be5..975e23a7d79 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_align.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="align", parent_name="barpolar.hoverlabel", **kwargs - ): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='barpolar.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_alignsrc.py index 3482b472125..395841e4640 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="barpolar.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='barpolar.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_bgcolor.py index f7b09cd5a97..e9435dc0299 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="barpolar.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='barpolar.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_bgcolorsrc.py index be26dbaec67..f1400681d03 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="barpolar.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='barpolar.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_bordercolor.py index 59ec3897a41..1ea36ea4363 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="barpolar.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='barpolar.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_bordercolorsrc.py index 0b482d46f68..8996721bda0 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bordercolorsrc", parent_name="barpolar.hoverlabel", **kwargs - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='barpolar.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_font.py index f529b520e5e..0d52a4886b9 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_font.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="barpolar.hoverlabel", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='barpolar.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_namelength.py index d01f5a9e7f7..3c29cacf29c 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="barpolar.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='barpolar.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_namelengthsrc.py index 6f3150022e1..7ee18dfa6b6 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="barpolar.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='barpolar.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_color.py index 241cb12e50f..096fde1103b 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="barpolar.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='barpolar.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_colorsrc.py index 3ce150eece8..f75236ffe14 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="barpolar.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='barpolar.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_family.py index 1e7415e4c80..7713e566aa2 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="barpolar.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='barpolar.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_familysrc.py index bf5b1d3d3e4..b318f1de55b 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="barpolar.hoverlabel.font", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='barpolar.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_lineposition.py index e5019fd042d..559cee25e23 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="barpolar.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='barpolar.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_linepositionsrc.py index a06da6ecc12..5e9182696a6 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="barpolar.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='barpolar.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_shadow.py index d3d20155449..f1b7616e5e4 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="barpolar.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='barpolar.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_shadowsrc.py index b410217dffe..01a8e2f631d 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="barpolar.hoverlabel.font", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='barpolar.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_size.py index c9a57903e8a..5551df0d6f6 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="barpolar.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='barpolar.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_sizesrc.py index 22553161cfa..b1724dda90c 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="barpolar.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='barpolar.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_style.py index 4f686c36ced..fc07ae8135f 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="barpolar.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='barpolar.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_stylesrc.py index e8d0156091e..816b5e83fb9 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="barpolar.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='barpolar.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_textcase.py index cb42bdd3729..81b25bd4a7a 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="barpolar.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='barpolar.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_textcasesrc.py index bb8bee4bf5a..7925f33822f 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="barpolar.hoverlabel.font", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='barpolar.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_variant.py index 431e17d43f6..dac682518aa 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="barpolar.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='barpolar.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_variantsrc.py index 387d8294cc7..e65aa58c11c 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="barpolar.hoverlabel.font", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='barpolar.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_weight.py index e7bfbb1d06e..0f66b99047d 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="barpolar.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='barpolar.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_weightsrc.py index 5e3f309dd70..a3044075a19 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="barpolar.hoverlabel.font", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='barpolar.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/_font.py index a164b0cd7fb..51739729e48 100644 --- a/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="barpolar.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='barpolar.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/_text.py index 4c1da1d4ee8..546196a6309 100644 --- a/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="barpolar.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='barpolar.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_color.py index e595ec6de3d..355b9b3b008 100644 --- a/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="barpolar.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='barpolar.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_family.py index f35d9adec1e..538e2d76ee3 100644 --- a/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="barpolar.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='barpolar.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_lineposition.py index c8d6f9c244d..c578f6735fc 100644 --- a/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="barpolar.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='barpolar.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_shadow.py index 1ae18a336a4..f469b9b51f2 100644 --- a/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="barpolar.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='barpolar.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_size.py index 98ca85b38c2..4ff3802e604 100644 --- a/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="barpolar.legendgrouptitle.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='barpolar.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_style.py index 9f07619ab0f..d0d42fd0099 100644 --- a/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="barpolar.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='barpolar.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_textcase.py index e203d377b4b..530455ffa1e 100644 --- a/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="barpolar.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='barpolar.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_variant.py index dd6c6623a34..81b81dd9030 100644 --- a/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="barpolar.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='barpolar.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_weight.py index 95ae34c2a61..d6ef5298b15 100644 --- a/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/barpolar/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="barpolar.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='barpolar.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/__init__.py b/packages/python/plotly/plotly/validators/barpolar/marker/__init__.py index 8fa50057372..b78937c5c49 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._showscale import ShowscaleValidator from ._reversescale import ReversescaleValidator @@ -20,26 +19,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._showscale.ShowscaleValidator", - "._reversescale.ReversescaleValidator", - "._pattern.PatternValidator", - "._opacitysrc.OpacitysrcValidator", - "._opacity.OpacityValidator", - "._line.LineValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._showscale.ShowscaleValidator', '._reversescale.ReversescaleValidator', '._pattern.PatternValidator', '._opacitysrc.OpacitysrcValidator', '._opacity.OpacityValidator', '._line.LineValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/_autocolorscale.py b/packages/python/plotly/plotly/validators/barpolar/marker/_autocolorscale.py index c3f9dd80560..4a2216a3b5c 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="barpolar.marker", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='barpolar.marker', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/_cauto.py b/packages/python/plotly/plotly/validators/barpolar/marker/_cauto.py index 7e6a6fdc50b..2d9fc1ec5c4 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/_cauto.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/_cauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cauto", parent_name="barpolar.marker", **kwargs): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='barpolar.marker', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/_cmax.py b/packages/python/plotly/plotly/validators/barpolar/marker/_cmax.py index eebadac8e57..51c16883be6 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/_cmax.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/_cmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmax", parent_name="barpolar.marker", **kwargs): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='barpolar.marker', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/_cmid.py b/packages/python/plotly/plotly/validators/barpolar/marker/_cmid.py index 4570b8a08c5..40bcabc3a0d 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/_cmid.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/_cmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmid", parent_name="barpolar.marker", **kwargs): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='barpolar.marker', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/_cmin.py b/packages/python/plotly/plotly/validators/barpolar/marker/_cmin.py index a5744b37a11..509dbe90e9d 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/_cmin.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/_cmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmin", parent_name="barpolar.marker", **kwargs): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='barpolar.marker', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/_color.py b/packages/python/plotly/plotly/validators/barpolar/marker/_color.py index 1ecb1f88f03..235f67d19be 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/_color.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/_color.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="barpolar.marker", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - colorscale_path=kwargs.pop("colorscale_path", "barpolar.marker.colorscale"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='barpolar.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + colorscale_path=kwargs.pop('colorscale_path', 'barpolar.marker.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/_coloraxis.py b/packages/python/plotly/plotly/validators/barpolar/marker/_coloraxis.py index d8b859d1cf7..9202d731a94 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/_coloraxis.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name="coloraxis", parent_name="barpolar.marker", **kwargs - ): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='barpolar.marker', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/_colorbar.py b/packages/python/plotly/plotly/validators/barpolar/marker/_colorbar.py index 5e232c63504..b574d44bd1d 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/_colorbar.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/_colorbar.py @@ -1,280 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="colorbar", parent_name="barpolar.marker", **kwargs): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.barpola - r.marker.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.barpolar.marker.colorbar.tickformatstopdefaul - ts), sets the default property values to use - for elements of - barpolar.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.barpolar.marker.co - lorbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='barpolar.marker', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/_colorscale.py b/packages/python/plotly/plotly/validators/barpolar/marker/_colorscale.py index 3cd3c946db1..5a4c0dd4943 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/_colorscale.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="barpolar.marker", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='barpolar.marker', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/_colorsrc.py b/packages/python/plotly/plotly/validators/barpolar/marker/_colorsrc.py index 59db87041c9..c39bb77ff99 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/_colorsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="colorsrc", parent_name="barpolar.marker", **kwargs): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='barpolar.marker', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/_line.py b/packages/python/plotly/plotly/validators/barpolar/marker/_line.py index 166209cdec9..689bb39bd1d 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/_line.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/_line.py @@ -1,105 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="barpolar.marker", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.line.colorscale`. Has an - effect only if in `marker.line.color` is set to - a numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.line.color`) or the bounds set in - `marker.line.cmin` and `marker.line.cmax` Has - an effect only if in `marker.line.color` is set - to a numerical array. Defaults to `false` when - `marker.line.cmin` and `marker.line.cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.line.cmin` and/or - `marker.line.cmax` to be equidistant to this - point. Has an effect only if in - `marker.line.color` is set to a numerical - array. Value should have the same units as in - `marker.line.color`. Has no effect when - `marker.line.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmax` must be set as well. - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorscale - Sets the colorscale. Has an effect only if in - `marker.line.color` is set to a numerical - array. The colorscale must be an array - containing arrays mapping a normalized value to - an rgb, rgba, hex, hsl, hsv, or named color - string. At minimum, a mapping for the lowest - (0) and highest (1) values are required. For - example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use - `marker.line.cmin` and `marker.line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.line.color` is set to - a numerical array. If true, `marker.line.cmin` - will correspond to the last color in the array - and `marker.line.cmax` will correspond to the - first color. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='barpolar.marker', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/_opacity.py b/packages/python/plotly/plotly/validators/barpolar/marker/_opacity.py index 4f2689e7a0c..06c1bbab1b0 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/_opacity.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="barpolar.marker", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='barpolar.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/_opacitysrc.py b/packages/python/plotly/plotly/validators/barpolar/marker/_opacitysrc.py index c49997f833b..3d32879cf92 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/_opacitysrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/_opacitysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="opacitysrc", parent_name="barpolar.marker", **kwargs - ): - super(OpacitysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacitysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='opacitysrc', + parent_name='barpolar.marker', + **kwargs): + super(OpacitysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/_pattern.py b/packages/python/plotly/plotly/validators/barpolar/marker/_pattern.py index b6441fb1c16..e0da22bae85 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/_pattern.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/_pattern.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class PatternValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="pattern", parent_name="barpolar.marker", **kwargs): - super(PatternValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Pattern"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - When there is no colorscale sets the color of - background pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "overlay". Otherwise, defaults to a transparent - background. - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - fgcolor - When there is no colorscale sets the color of - foreground pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "replace". Otherwise, defaults to dark grey or - white to increase contrast with the `bgcolor`. - fgcolorsrc - Sets the source reference on Chart Studio Cloud - for `fgcolor`. - fgopacity - Sets the opacity of the foreground pattern - fill. Defaults to a 0.5 when `fillmode` is - "overlay". Otherwise, defaults to 1. - fillmode - Determines whether `marker.color` should be - used as a default to `bgcolor` or a `fgcolor`. - shape - Sets the shape of the pattern fill. By default, - no pattern is used for filling the area. - shapesrc - Sets the source reference on Chart Studio Cloud - for `shape`. - size - Sets the size of unit squares of the pattern - fill in pixels, which corresponds to the - interval of repetition of the pattern. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - solidity - Sets the solidity of the pattern fill. Solidity - is roughly the fraction of the area filled by - the pattern. Solidity of 0 shows only the - background color without pattern and solidty of - 1 shows only the foreground color without - pattern. - soliditysrc - Sets the source reference on Chart Studio Cloud - for `solidity`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class PatternValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='pattern', + parent_name='barpolar.marker', + **kwargs): + super(PatternValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Pattern'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/_reversescale.py b/packages/python/plotly/plotly/validators/barpolar/marker/_reversescale.py index 2d564158f9f..48fc6292bcb 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/_reversescale.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="barpolar.marker", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='barpolar.marker', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/_showscale.py b/packages/python/plotly/plotly/validators/barpolar/marker/_showscale.py index be73b8266ca..fa211578865 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/_showscale.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/_showscale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showscale", parent_name="barpolar.marker", **kwargs - ): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='barpolar.marker', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_bgcolor.py index afb613d1846..7db10747db4 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="barpolar.marker.colorbar", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_bordercolor.py index e35f8af2f0b..374ec5de977 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_bordercolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bordercolor", - parent_name="barpolar.marker.colorbar", - **kwargs, - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_borderwidth.py index 72feb719e4b..81d6d04b8f5 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_borderwidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="borderwidth", - parent_name="barpolar.marker.colorbar", - **kwargs, - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_dtick.py index 3131e700df9..257b9207474 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="barpolar.marker.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_exponentformat.py index ded52c3fb65..cc142cfb773 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_exponentformat.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="exponentformat", - parent_name="barpolar.marker.colorbar", - **kwargs, - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_labelalias.py index 8d9fb9a4266..41d77e1a709 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="barpolar.marker.colorbar", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_len.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_len.py index c97cdff7242..4dbe22c4f21 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_len.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="len", parent_name="barpolar.marker.colorbar", **kwargs - ): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_lenmode.py index 9051b2ec174..cb9d484f5f8 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_lenmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="lenmode", parent_name="barpolar.marker.colorbar", **kwargs - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_minexponent.py index e32cdcd20e4..8a22db7684f 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_minexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="minexponent", - parent_name="barpolar.marker.colorbar", - **kwargs, - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_nticks.py index 23b6275892e..6e4584b8b87 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="barpolar.marker.colorbar", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_orientation.py index 4421855ec2d..f356bec8744 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_orientation.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="orientation", - parent_name="barpolar.marker.colorbar", - **kwargs, - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_outlinecolor.py index d184ed26884..a562c5cc621 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_outlinecolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="outlinecolor", - parent_name="barpolar.marker.colorbar", - **kwargs, - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_outlinewidth.py index 4137bb9d314..9131f7ed158 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_outlinewidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="outlinewidth", - parent_name="barpolar.marker.colorbar", - **kwargs, - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_separatethousands.py index 9e682482235..5256f22daef 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="barpolar.marker.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_showexponent.py index 8ff6dec4793..436269b2509 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_showexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showexponent", - parent_name="barpolar.marker.colorbar", - **kwargs, - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_showticklabels.py index 86621a6de93..fc8571bedd2 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="barpolar.marker.colorbar", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_showtickprefix.py index c39c63dc36e..772580587a4 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="barpolar.marker.colorbar", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_showticksuffix.py index bf44764f43e..8169f99b001 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="barpolar.marker.colorbar", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_thickness.py index b79ecd5780f..76182f6a941 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="barpolar.marker.colorbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_thicknessmode.py index d77b8474d39..7c8369ee47b 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_thicknessmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="thicknessmode", - parent_name="barpolar.marker.colorbar", - **kwargs, - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tick0.py index 69a2667ee5d..7b6718d62f3 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="barpolar.marker.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickangle.py index 8a135c77bcf..8738a149580 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="barpolar.marker.colorbar", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickcolor.py index 5cbf4df6987..5db2e4b5d28 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="barpolar.marker.colorbar", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickfont.py index 8186f736508..5b8bf909eab 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="barpolar.marker.colorbar", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickformat.py index 8e641b2ec16..5597037842b 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="barpolar.marker.colorbar", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickformatstopdefaults.py index 2874c562d7c..94d3918d871 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="barpolar.marker.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickformatstops.py index 8697692f92a..ff913b3a730 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="barpolar.marker.colorbar", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticklabeloverflow.py index 33481d9611d..45ad5bfb92f 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="barpolar.marker.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticklabelposition.py index 4f97a2a13fe..05a7a3b92ac 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="barpolar.marker.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticklabelstep.py index 799e5801f26..238ec54327e 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticklabelstep.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="ticklabelstep", - parent_name="barpolar.marker.colorbar", - **kwargs, - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticklen.py index 7df86e5dd3a..58da6357e6d 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="barpolar.marker.colorbar", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickmode.py index 45aa8e21a1e..625b3dced70 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="barpolar.marker.colorbar", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickprefix.py index 566789ecb80..00d36fec69d 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="barpolar.marker.colorbar", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticks.py index 29d09196627..b76c3031b62 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="barpolar.marker.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticksuffix.py index 1cc223e92c7..23edabb84fd 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="barpolar.marker.colorbar", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticktext.py index e3e6605e59c..2fac236bb29 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="barpolar.marker.colorbar", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticktextsrc.py index 7f76d9c17d4..ecd97a35d52 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ticktextsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="ticktextsrc", - parent_name="barpolar.marker.colorbar", - **kwargs, - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickvals.py index ffde504681f..2a4fe52fe39 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="barpolar.marker.colorbar", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickvalssrc.py index a86e3a23037..afbc233758b 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickvalssrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="tickvalssrc", - parent_name="barpolar.marker.colorbar", - **kwargs, - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickwidth.py index 262391b05d9..1cf15e34bb9 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="barpolar.marker.colorbar", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_title.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_title.py index d8e8416d879..e70e9f5f336 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="barpolar.marker.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_x.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_x.py index 722a577735d..56d6f0667c7 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_x.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="x", parent_name="barpolar.marker.colorbar", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_xanchor.py index 21906e128c2..4837cf2c008 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="barpolar.marker.colorbar", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_xpad.py index 07c65b980e0..daca21e9b5b 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_xpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="xpad", parent_name="barpolar.marker.colorbar", **kwargs - ): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_xref.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_xref.py index b9a34595c61..5b6dda81541 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xref", parent_name="barpolar.marker.colorbar", **kwargs - ): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_y.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_y.py index cc8f2010121..e5608a3c62b 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_y.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="y", parent_name="barpolar.marker.colorbar", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_yanchor.py index bfe37aedb5d..376362cafac 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="barpolar.marker.colorbar", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ypad.py index eab91204647..870c1dfa45d 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_ypad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ypad", parent_name="barpolar.marker.colorbar", **kwargs - ): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_yref.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_yref.py index a0d8f83c021..e108943a2ae 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yref", parent_name="barpolar.marker.colorbar", **kwargs - ): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='barpolar.marker.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_color.py index 398cbf9410c..44e4051ab7d 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="barpolar.marker.colorbar.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='barpolar.marker.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_family.py index bd87b5330b6..fe51f2d3006 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="barpolar.marker.colorbar.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='barpolar.marker.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_lineposition.py index 00ceec2d250..03977032ea0 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="barpolar.marker.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='barpolar.marker.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_shadow.py index e21a4ea4ccf..679284b1ee3 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="barpolar.marker.colorbar.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='barpolar.marker.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_size.py index 34f7a7e9577..14d6aa274b4 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="barpolar.marker.colorbar.tickfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='barpolar.marker.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_style.py index c5913ebf0cc..7189a4a2ebf 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="barpolar.marker.colorbar.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='barpolar.marker.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_textcase.py index a24c36d9951..d50fdc11b05 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="barpolar.marker.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='barpolar.marker.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_variant.py index b569936339c..15a5dbe2ae4 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="barpolar.marker.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='barpolar.marker.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_weight.py index 37eceb0c6de..37c454e8c3e 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="barpolar.marker.colorbar.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='barpolar.marker.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickformatstop/_dtickrange.py index 1de66adfa59..2fb9c13d7fd 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="barpolar.marker.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - items=kwargs.pop( - "items", - [ - {"editType": "colorbars", "valType": "any"}, - {"editType": "colorbars", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='barpolar.marker.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + items=kwargs.pop('items', [{'editType': 'colorbars', 'valType': 'any'}, {'editType': 'colorbars', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickformatstop/_enabled.py index 88b672ee0ac..745bbe98db1 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="barpolar.marker.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='barpolar.marker.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickformatstop/_name.py index a2755744fa4..682a39af1e5 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="barpolar.marker.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='barpolar.marker.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickformatstop/_templateitemname.py index f36c42403a1..1f12323bba0 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="barpolar.marker.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='barpolar.marker.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickformatstop/_value.py index 9957697bea1..eb0dce3e40e 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="barpolar.marker.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='barpolar.marker.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/_font.py index 35b1b648447..63eeb549fdf 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="barpolar.marker.colorbar.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='barpolar.marker.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/_side.py index 78d7b652776..cc4d624d878 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/_side.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="side", parent_name="barpolar.marker.colorbar.title", **kwargs - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='barpolar.marker.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/_text.py index f724467171d..c0c3051d8ae 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="barpolar.marker.colorbar.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='barpolar.marker.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_color.py index 476732bc405..1f13ccb26bf 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="barpolar.marker.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='barpolar.marker.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_family.py index c01f60828fe..3053dfcb754 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="barpolar.marker.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='barpolar.marker.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_lineposition.py index bf1bbfc51f2..cd8b77297a7 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="barpolar.marker.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='barpolar.marker.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_shadow.py index fceff838794..fd282f1111a 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="barpolar.marker.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='barpolar.marker.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_size.py index 699cc002b62..d70f2973f61 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="barpolar.marker.colorbar.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='barpolar.marker.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_style.py index 1bf7646dae2..8e64253a18c 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="barpolar.marker.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='barpolar.marker.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_textcase.py index 4c45cd8ce53..a609d798cce 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="barpolar.marker.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='barpolar.marker.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_variant.py index beec6b2df5e..3bb0bb2dc80 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="barpolar.marker.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='barpolar.marker.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_weight.py index 4fe7d3c1f39..e6a6d14121a 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="barpolar.marker.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='barpolar.marker.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/line/__init__.py b/packages/python/plotly/plotly/validators/barpolar/marker/line/__init__.py index facbe33f884..55d423b11da 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._widthsrc import WidthsrcValidator from ._width import WidthValidator @@ -16,22 +15,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._widthsrc.WidthsrcValidator", - "._width.WidthValidator", - "._reversescale.ReversescaleValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._widthsrc.WidthsrcValidator', '._width.WidthValidator', '._reversescale.ReversescaleValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/line/_autocolorscale.py b/packages/python/plotly/plotly/validators/barpolar/marker/line/_autocolorscale.py index ed8298c09ec..c857238ca28 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/line/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/line/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="barpolar.marker.line", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='barpolar.marker.line', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/line/_cauto.py b/packages/python/plotly/plotly/validators/barpolar/marker/line/_cauto.py index 8b54dff9907..9293878b895 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/line/_cauto.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/line/_cauto.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="cauto", parent_name="barpolar.marker.line", **kwargs - ): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='barpolar.marker.line', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/line/_cmax.py b/packages/python/plotly/plotly/validators/barpolar/marker/line/_cmax.py index bbb781ad4d6..dace7abad80 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/line/_cmax.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/line/_cmax.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmax", parent_name="barpolar.marker.line", **kwargs - ): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='barpolar.marker.line', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/line/_cmid.py b/packages/python/plotly/plotly/validators/barpolar/marker/line/_cmid.py index b8c79ed0cde..71c93e367da 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/line/_cmid.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/line/_cmid.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmid", parent_name="barpolar.marker.line", **kwargs - ): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='barpolar.marker.line', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/line/_cmin.py b/packages/python/plotly/plotly/validators/barpolar/marker/line/_cmin.py index a18d76c246c..6dbcbf2b7a2 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/line/_cmin.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/line/_cmin.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmin", parent_name="barpolar.marker.line", **kwargs - ): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='barpolar.marker.line', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/line/_color.py b/packages/python/plotly/plotly/validators/barpolar/marker/line/_color.py index 5f66d2b107f..40d069feadd 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/line/_color.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/line/_color.py @@ -1,17 +1,15 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="barpolar.marker.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - colorscale_path=kwargs.pop( - "colorscale_path", "barpolar.marker.line.colorscale" - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='barpolar.marker.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + colorscale_path=kwargs.pop('colorscale_path', 'barpolar.marker.line.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/line/_coloraxis.py b/packages/python/plotly/plotly/validators/barpolar/marker/line/_coloraxis.py index 3e63f02e42a..d8eff6037e0 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/line/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/line/_coloraxis.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name="coloraxis", parent_name="barpolar.marker.line", **kwargs - ): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='barpolar.marker.line', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/line/_colorscale.py b/packages/python/plotly/plotly/validators/barpolar/marker/line/_colorscale.py index f04fdbc4427..6f2472b3580 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/line/_colorscale.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/line/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="barpolar.marker.line", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='barpolar.marker.line', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/line/_colorsrc.py b/packages/python/plotly/plotly/validators/barpolar/marker/line/_colorsrc.py index b65b9e33d75..4cf36a188be 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/line/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/line/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="barpolar.marker.line", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='barpolar.marker.line', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/line/_reversescale.py b/packages/python/plotly/plotly/validators/barpolar/marker/line/_reversescale.py index 5faf9e88609..74ab0fcf26d 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/line/_reversescale.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/line/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="barpolar.marker.line", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='barpolar.marker.line', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/line/_width.py b/packages/python/plotly/plotly/validators/barpolar/marker/line/_width.py index 0f9b4aa3bdf..f22c5dabb16 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/line/_width.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/line/_width.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="barpolar.marker.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='barpolar.marker.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/line/_widthsrc.py b/packages/python/plotly/plotly/validators/barpolar/marker/line/_widthsrc.py index 055bce41ddd..bd6d0d72ef1 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/line/_widthsrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/line/_widthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="widthsrc", parent_name="barpolar.marker.line", **kwargs - ): - super(WidthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='widthsrc', + parent_name='barpolar.marker.line', + **kwargs): + super(WidthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/pattern/__init__.py b/packages/python/plotly/plotly/validators/barpolar/marker/pattern/__init__.py index e190f962c46..de3616dbc8a 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/pattern/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/pattern/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._soliditysrc import SoliditysrcValidator from ._solidity import SolidityValidator @@ -16,22 +15,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._soliditysrc.SoliditysrcValidator", - "._solidity.SolidityValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shapesrc.ShapesrcValidator", - "._shape.ShapeValidator", - "._fillmode.FillmodeValidator", - "._fgopacity.FgopacityValidator", - "._fgcolorsrc.FgcolorsrcValidator", - "._fgcolor.FgcolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - ], + ['._soliditysrc.SoliditysrcValidator', '._solidity.SolidityValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shapesrc.ShapesrcValidator', '._shape.ShapeValidator', '._fillmode.FillmodeValidator', '._fgopacity.FgopacityValidator', '._fgcolorsrc.FgcolorsrcValidator', '._fgcolor.FgcolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_bgcolor.py b/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_bgcolor.py index c18cec305da..f5898cc829d 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="barpolar.marker.pattern", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='barpolar.marker.pattern', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_bgcolorsrc.py index d7a4399481c..f0f00dd22ea 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="barpolar.marker.pattern", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='barpolar.marker.pattern', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_fgcolor.py b/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_fgcolor.py index 13d6c696701..cd076e135c0 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_fgcolor.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_fgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class FgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="fgcolor", parent_name="barpolar.marker.pattern", **kwargs - ): - super(FgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fgcolor', + parent_name='barpolar.marker.pattern', + **kwargs): + super(FgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_fgcolorsrc.py b/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_fgcolorsrc.py index 55503a1f1eb..399f5114b8f 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_fgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_fgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="fgcolorsrc", parent_name="barpolar.marker.pattern", **kwargs - ): - super(FgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='fgcolorsrc', + parent_name='barpolar.marker.pattern', + **kwargs): + super(FgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_fgopacity.py b/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_fgopacity.py index 9a30372b4bf..df6bb590f78 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_fgopacity.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_fgopacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FgopacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="fgopacity", parent_name="barpolar.marker.pattern", **kwargs - ): - super(FgopacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FgopacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fgopacity', + parent_name='barpolar.marker.pattern', + **kwargs): + super(FgopacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_fillmode.py b/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_fillmode.py index 78f32cd3789..83720807db5 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_fillmode.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_fillmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class FillmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="fillmode", parent_name="barpolar.marker.pattern", **kwargs - ): - super(FillmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["replace", "overlay"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='fillmode', + parent_name='barpolar.marker.pattern', + **kwargs): + super(FillmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['replace', 'overlay']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_shape.py b/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_shape.py index de4649413e5..2eb6fbefb47 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_shape.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_shape.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="shape", parent_name="barpolar.marker.pattern", **kwargs - ): - super(ShapeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["", "/", "\\", "x", "-", "|", "+", "."]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShapeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='shape', + parent_name='barpolar.marker.pattern', + **kwargs): + super(ShapeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['', '/', '\\', 'x', '-', '|', '+', '.']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_shapesrc.py b/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_shapesrc.py index a3037c115fb..809eabef066 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_shapesrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_shapesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShapesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shapesrc", parent_name="barpolar.marker.pattern", **kwargs - ): - super(ShapesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShapesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shapesrc', + parent_name='barpolar.marker.pattern', + **kwargs): + super(ShapesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_size.py b/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_size.py index 84f94775780..ec6a5cd9f32 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_size.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="barpolar.marker.pattern", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='barpolar.marker.pattern', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_sizesrc.py b/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_sizesrc.py index b19de7f1f8f..fb3d1dbe6a0 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="barpolar.marker.pattern", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='barpolar.marker.pattern', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_solidity.py b/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_solidity.py index c047af38cbf..ed47cb6c355 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_solidity.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_solidity.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class SolidityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="solidity", parent_name="barpolar.marker.pattern", **kwargs - ): - super(SolidityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SolidityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='solidity', + parent_name='barpolar.marker.pattern', + **kwargs): + super(SolidityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_soliditysrc.py b/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_soliditysrc.py index 5527c84bfa0..eea7abd0154 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_soliditysrc.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/pattern/_soliditysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SoliditysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="soliditysrc", parent_name="barpolar.marker.pattern", **kwargs - ): - super(SoliditysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SoliditysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='soliditysrc', + parent_name='barpolar.marker.pattern', + **kwargs): + super(SoliditysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/selected/__init__.py b/packages/python/plotly/plotly/validators/barpolar/selected/__init__.py index 3b0aeed383f..c0a73fd7df3 100644 --- a/packages/python/plotly/plotly/validators/barpolar/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/selected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._textfont import TextfontValidator from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] + __name__, + [], + ['._textfont.TextfontValidator', '._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/barpolar/selected/_marker.py b/packages/python/plotly/plotly/validators/barpolar/selected/_marker.py index 9e6d8fd6e4e..0f6fdc59a3d 100644 --- a/packages/python/plotly/plotly/validators/barpolar/selected/_marker.py +++ b/packages/python/plotly/plotly/validators/barpolar/selected/_marker.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="barpolar.selected", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='barpolar.selected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/selected/_textfont.py b/packages/python/plotly/plotly/validators/barpolar/selected/_textfont.py index 2888a5aa14a..b55c8d2e502 100644 --- a/packages/python/plotly/plotly/validators/barpolar/selected/_textfont.py +++ b/packages/python/plotly/plotly/validators/barpolar/selected/_textfont.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="textfont", parent_name="barpolar.selected", **kwargs - ): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the text font color of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='barpolar.selected', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/barpolar/selected/marker/__init__.py index d8f31347bfd..e07b1781835 100644 --- a/packages/python/plotly/plotly/validators/barpolar/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/selected/marker/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._opacity.OpacityValidator", "._color.ColorValidator"] + __name__, + [], + ['._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/barpolar/selected/marker/_color.py b/packages/python/plotly/plotly/validators/barpolar/selected/marker/_color.py index 5e0113d377f..a200d623827 100644 --- a/packages/python/plotly/plotly/validators/barpolar/selected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/barpolar/selected/marker/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="barpolar.selected.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='barpolar.selected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/selected/marker/_opacity.py b/packages/python/plotly/plotly/validators/barpolar/selected/marker/_opacity.py index 810923ba6a5..6a53f257ec0 100644 --- a/packages/python/plotly/plotly/validators/barpolar/selected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/barpolar/selected/marker/_opacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="barpolar.selected.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='barpolar.selected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/selected/textfont/__init__.py b/packages/python/plotly/plotly/validators/barpolar/selected/textfont/__init__.py index a9f087e5af1..86899e5cc51 100644 --- a/packages/python/plotly/plotly/validators/barpolar/selected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/selected/textfont/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._color.ColorValidator"] + __name__, + [], + ['._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/barpolar/selected/textfont/_color.py b/packages/python/plotly/plotly/validators/barpolar/selected/textfont/_color.py index e17e8b3f2ed..59d7f532e06 100644 --- a/packages/python/plotly/plotly/validators/barpolar/selected/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/barpolar/selected/textfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="barpolar.selected.textfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='barpolar.selected.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/stream/__init__.py b/packages/python/plotly/plotly/validators/barpolar/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/barpolar/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/barpolar/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/barpolar/stream/_maxpoints.py index af460997040..e3adfc0f701 100644 --- a/packages/python/plotly/plotly/validators/barpolar/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/barpolar/stream/_maxpoints.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxpoints", parent_name="barpolar.stream", **kwargs - ): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='barpolar.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/stream/_token.py b/packages/python/plotly/plotly/validators/barpolar/stream/_token.py index f0ce0dd9318..835e3972977 100644 --- a/packages/python/plotly/plotly/validators/barpolar/stream/_token.py +++ b/packages/python/plotly/plotly/validators/barpolar/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="barpolar.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='barpolar.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/unselected/__init__.py b/packages/python/plotly/plotly/validators/barpolar/unselected/__init__.py index 3b0aeed383f..c0a73fd7df3 100644 --- a/packages/python/plotly/plotly/validators/barpolar/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/unselected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._textfont import TextfontValidator from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] + __name__, + [], + ['._textfont.TextfontValidator', '._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/barpolar/unselected/_marker.py b/packages/python/plotly/plotly/validators/barpolar/unselected/_marker.py index ba3837c50cb..72ccd1582af 100644 --- a/packages/python/plotly/plotly/validators/barpolar/unselected/_marker.py +++ b/packages/python/plotly/plotly/validators/barpolar/unselected/_marker.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="barpolar.unselected", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='barpolar.unselected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/unselected/_textfont.py b/packages/python/plotly/plotly/validators/barpolar/unselected/_textfont.py index c59a4801131..f594f3e3a13 100644 --- a/packages/python/plotly/plotly/validators/barpolar/unselected/_textfont.py +++ b/packages/python/plotly/plotly/validators/barpolar/unselected/_textfont.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="textfont", parent_name="barpolar.unselected", **kwargs - ): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the text font color of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='barpolar.unselected', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/barpolar/unselected/marker/__init__.py index d8f31347bfd..e07b1781835 100644 --- a/packages/python/plotly/plotly/validators/barpolar/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/unselected/marker/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._opacity.OpacityValidator", "._color.ColorValidator"] + __name__, + [], + ['._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/barpolar/unselected/marker/_color.py b/packages/python/plotly/plotly/validators/barpolar/unselected/marker/_color.py index 358b851a759..dfcb6c7cc09 100644 --- a/packages/python/plotly/plotly/validators/barpolar/unselected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/barpolar/unselected/marker/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="barpolar.unselected.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='barpolar.unselected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/unselected/marker/_opacity.py b/packages/python/plotly/plotly/validators/barpolar/unselected/marker/_opacity.py index 27c9d779d6a..2de944e160a 100644 --- a/packages/python/plotly/plotly/validators/barpolar/unselected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/barpolar/unselected/marker/_opacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="barpolar.unselected.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='barpolar.unselected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/barpolar/unselected/textfont/__init__.py b/packages/python/plotly/plotly/validators/barpolar/unselected/textfont/__init__.py index a9f087e5af1..86899e5cc51 100644 --- a/packages/python/plotly/plotly/validators/barpolar/unselected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/unselected/textfont/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._color.ColorValidator"] + __name__, + [], + ['._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/barpolar/unselected/textfont/_color.py b/packages/python/plotly/plotly/validators/barpolar/unselected/textfont/_color.py index 2bd20d6506b..ceaff7ebd1f 100644 --- a/packages/python/plotly/plotly/validators/barpolar/unselected/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/barpolar/unselected/textfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="barpolar.unselected.textfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='barpolar.unselected.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/__init__.py b/packages/python/plotly/plotly/validators/box/__init__.py index 3970b2cf4be..4dc3f96268c 100644 --- a/packages/python/plotly/plotly/validators/box/__init__.py +++ b/packages/python/plotly/plotly/validators/box/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zorder import ZorderValidator from ._ysrc import YsrcValidator @@ -90,96 +89,10 @@ from ._alignmentgroup import AlignmentgroupValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zorder.ZorderValidator", - "._ysrc.YsrcValidator", - "._yperiodalignment.YperiodalignmentValidator", - "._yperiod0.Yperiod0Validator", - "._yperiod.YperiodValidator", - "._yhoverformat.YhoverformatValidator", - "._ycalendar.YcalendarValidator", - "._yaxis.YaxisValidator", - "._y0.Y0Validator", - "._y.YValidator", - "._xsrc.XsrcValidator", - "._xperiodalignment.XperiodalignmentValidator", - "._xperiod0.Xperiod0Validator", - "._xperiod.XperiodValidator", - "._xhoverformat.XhoverformatValidator", - "._xcalendar.XcalendarValidator", - "._xaxis.XaxisValidator", - "._x0.X0Validator", - "._x.XValidator", - "._width.WidthValidator", - "._whiskerwidth.WhiskerwidthValidator", - "._visible.VisibleValidator", - "._upperfencesrc.UpperfencesrcValidator", - "._upperfence.UpperfenceValidator", - "._unselected.UnselectedValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._textsrc.TextsrcValidator", - "._text.TextValidator", - "._stream.StreamValidator", - "._sizemode.SizemodeValidator", - "._showwhiskers.ShowwhiskersValidator", - "._showlegend.ShowlegendValidator", - "._selectedpoints.SelectedpointsValidator", - "._selected.SelectedValidator", - "._sdsrc.SdsrcValidator", - "._sdmultiple.SdmultipleValidator", - "._sd.SdValidator", - "._quartilemethod.QuartilemethodValidator", - "._q3src.Q3SrcValidator", - "._q3.Q3Validator", - "._q1src.Q1SrcValidator", - "._q1.Q1Validator", - "._pointpos.PointposValidator", - "._orientation.OrientationValidator", - "._opacity.OpacityValidator", - "._offsetgroup.OffsetgroupValidator", - "._notchwidth.NotchwidthValidator", - "._notchspansrc.NotchspansrcValidator", - "._notchspan.NotchspanValidator", - "._notched.NotchedValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._mediansrc.MediansrcValidator", - "._median.MedianValidator", - "._meansrc.MeansrcValidator", - "._mean.MeanValidator", - "._marker.MarkerValidator", - "._lowerfencesrc.LowerfencesrcValidator", - "._lowerfence.LowerfenceValidator", - "._line.LineValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._jitter.JitterValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoveron.HoveronValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._fillcolor.FillcolorValidator", - "._dy.DyValidator", - "._dx.DxValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._boxpoints.BoxpointsValidator", - "._boxmean.BoxmeanValidator", - "._alignmentgroup.AlignmentgroupValidator", - ], + ['._zorder.ZorderValidator', '._ysrc.YsrcValidator', '._yperiodalignment.YperiodalignmentValidator', '._yperiod0.Yperiod0Validator', '._yperiod.YperiodValidator', '._yhoverformat.YhoverformatValidator', '._ycalendar.YcalendarValidator', '._yaxis.YaxisValidator', '._y0.Y0Validator', '._y.YValidator', '._xsrc.XsrcValidator', '._xperiodalignment.XperiodalignmentValidator', '._xperiod0.Xperiod0Validator', '._xperiod.XperiodValidator', '._xhoverformat.XhoverformatValidator', '._xcalendar.XcalendarValidator', '._xaxis.XaxisValidator', '._x0.X0Validator', '._x.XValidator', '._width.WidthValidator', '._whiskerwidth.WhiskerwidthValidator', '._visible.VisibleValidator', '._upperfencesrc.UpperfencesrcValidator', '._upperfence.UpperfenceValidator', '._unselected.UnselectedValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._textsrc.TextsrcValidator', '._text.TextValidator', '._stream.StreamValidator', '._sizemode.SizemodeValidator', '._showwhiskers.ShowwhiskersValidator', '._showlegend.ShowlegendValidator', '._selectedpoints.SelectedpointsValidator', '._selected.SelectedValidator', '._sdsrc.SdsrcValidator', '._sdmultiple.SdmultipleValidator', '._sd.SdValidator', '._quartilemethod.QuartilemethodValidator', '._q3src.Q3SrcValidator', '._q3.Q3Validator', '._q1src.Q1SrcValidator', '._q1.Q1Validator', '._pointpos.PointposValidator', '._orientation.OrientationValidator', '._opacity.OpacityValidator', '._offsetgroup.OffsetgroupValidator', '._notchwidth.NotchwidthValidator', '._notchspansrc.NotchspansrcValidator', '._notchspan.NotchspanValidator', '._notched.NotchedValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._mediansrc.MediansrcValidator', '._median.MedianValidator', '._meansrc.MeansrcValidator', '._mean.MeanValidator', '._marker.MarkerValidator', '._lowerfencesrc.LowerfencesrcValidator', '._lowerfence.LowerfenceValidator', '._line.LineValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._jitter.JitterValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoveron.HoveronValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._fillcolor.FillcolorValidator', '._dy.DyValidator', '._dx.DxValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._boxpoints.BoxpointsValidator', '._boxmean.BoxmeanValidator', '._alignmentgroup.AlignmentgroupValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/box/_alignmentgroup.py b/packages/python/plotly/plotly/validators/box/_alignmentgroup.py index ced7c9d994b..59d3231e947 100644 --- a/packages/python/plotly/plotly/validators/box/_alignmentgroup.py +++ b/packages/python/plotly/plotly/validators/box/_alignmentgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AlignmentgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="alignmentgroup", parent_name="box", **kwargs): - super(AlignmentgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AlignmentgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='alignmentgroup', + parent_name='box', + **kwargs): + super(AlignmentgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_boxmean.py b/packages/python/plotly/plotly/validators/box/_boxmean.py index 6cf2567dca0..83ad6cbc18d 100644 --- a/packages/python/plotly/plotly/validators/box/_boxmean.py +++ b/packages/python/plotly/plotly/validators/box/_boxmean.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class BoxmeanValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="boxmean", parent_name="box", **kwargs): - super(BoxmeanValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, "sd", False]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BoxmeanValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='boxmean', + parent_name='box', + **kwargs): + super(BoxmeanValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, 'sd', False]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_boxpoints.py b/packages/python/plotly/plotly/validators/box/_boxpoints.py index 448f9d16c4d..ee5bbd92e7b 100644 --- a/packages/python/plotly/plotly/validators/box/_boxpoints.py +++ b/packages/python/plotly/plotly/validators/box/_boxpoints.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BoxpointsValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="boxpoints", parent_name="box", **kwargs): - super(BoxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", ["all", "outliers", "suspectedoutliers", False] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BoxpointsValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='boxpoints', + parent_name='box', + **kwargs): + super(BoxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'outliers', 'suspectedoutliers', False]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_customdata.py b/packages/python/plotly/plotly/validators/box/_customdata.py index c6da0ed67fb..419644e566b 100644 --- a/packages/python/plotly/plotly/validators/box/_customdata.py +++ b/packages/python/plotly/plotly/validators/box/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="box", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='box', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_customdatasrc.py b/packages/python/plotly/plotly/validators/box/_customdatasrc.py index 5da01e58bae..3aeb2358c0c 100644 --- a/packages/python/plotly/plotly/validators/box/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/box/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="box", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='box', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_dx.py b/packages/python/plotly/plotly/validators/box/_dx.py index ea05c472067..d31e3de96b6 100644 --- a/packages/python/plotly/plotly/validators/box/_dx.py +++ b/packages/python/plotly/plotly/validators/box/_dx.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class DxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="dx", parent_name="box", **kwargs): - super(DxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dx', + parent_name='box', + **kwargs): + super(DxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_dy.py b/packages/python/plotly/plotly/validators/box/_dy.py index 769e12b1450..e1447ee9843 100644 --- a/packages/python/plotly/plotly/validators/box/_dy.py +++ b/packages/python/plotly/plotly/validators/box/_dy.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class DyValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="dy", parent_name="box", **kwargs): - super(DyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DyValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dy', + parent_name='box', + **kwargs): + super(DyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_fillcolor.py b/packages/python/plotly/plotly/validators/box/_fillcolor.py index 575d4b25621..34f242227a9 100644 --- a/packages/python/plotly/plotly/validators/box/_fillcolor.py +++ b/packages/python/plotly/plotly/validators/box/_fillcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="fillcolor", parent_name="box", **kwargs): - super(FillcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FillcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fillcolor', + parent_name='box', + **kwargs): + super(FillcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_hoverinfo.py b/packages/python/plotly/plotly/validators/box/_hoverinfo.py index aeb3bc8207a..d8de91a4075 100644 --- a/packages/python/plotly/plotly/validators/box/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/box/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="box", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='box', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/box/_hoverinfosrc.py index cdb181ade90..179e71e08b7 100644 --- a/packages/python/plotly/plotly/validators/box/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/box/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="box", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='box', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_hoverlabel.py b/packages/python/plotly/plotly/validators/box/_hoverlabel.py index fdac144a497..c1eaac35a3a 100644 --- a/packages/python/plotly/plotly/validators/box/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/box/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="box", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='box', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_hoveron.py b/packages/python/plotly/plotly/validators/box/_hoveron.py index c06659a2040..ae022c81e1f 100644 --- a/packages/python/plotly/plotly/validators/box/_hoveron.py +++ b/packages/python/plotly/plotly/validators/box/_hoveron.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HoveronValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoveron", parent_name="box", **kwargs): - super(HoveronValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - flags=kwargs.pop("flags", ["boxes", "points"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoveronValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoveron', + parent_name='box', + **kwargs): + super(HoveronValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + flags=kwargs.pop('flags', ['boxes', 'points']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_hovertemplate.py b/packages/python/plotly/plotly/validators/box/_hovertemplate.py index 433ffe3370a..35c45ebaaf5 100644 --- a/packages/python/plotly/plotly/validators/box/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/box/_hovertemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="box", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='box', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/box/_hovertemplatesrc.py index 00962d6e4da..c43cfa8dfad 100644 --- a/packages/python/plotly/plotly/validators/box/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/box/_hovertemplatesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertemplatesrc", parent_name="box", **kwargs): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='box', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_hovertext.py b/packages/python/plotly/plotly/validators/box/_hovertext.py index 95369933b68..88812a0c6b3 100644 --- a/packages/python/plotly/plotly/validators/box/_hovertext.py +++ b/packages/python/plotly/plotly/validators/box/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="box", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='box', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_hovertextsrc.py b/packages/python/plotly/plotly/validators/box/_hovertextsrc.py index f8c607d2d8d..defbffa6070 100644 --- a/packages/python/plotly/plotly/validators/box/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/box/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="box", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='box', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_ids.py b/packages/python/plotly/plotly/validators/box/_ids.py index e9f8a69b621..814176c01a2 100644 --- a/packages/python/plotly/plotly/validators/box/_ids.py +++ b/packages/python/plotly/plotly/validators/box/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="box", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='box', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_idssrc.py b/packages/python/plotly/plotly/validators/box/_idssrc.py index ec0c15690ad..753b7754572 100644 --- a/packages/python/plotly/plotly/validators/box/_idssrc.py +++ b/packages/python/plotly/plotly/validators/box/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="box", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='box', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_jitter.py b/packages/python/plotly/plotly/validators/box/_jitter.py index 8e0aba4f627..95c634e792a 100644 --- a/packages/python/plotly/plotly/validators/box/_jitter.py +++ b/packages/python/plotly/plotly/validators/box/_jitter.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class JitterValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="jitter", parent_name="box", **kwargs): - super(JitterValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class JitterValidator(_bv.NumberValidator): + def __init__(self, plotly_name='jitter', + parent_name='box', + **kwargs): + super(JitterValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_legend.py b/packages/python/plotly/plotly/validators/box/_legend.py index 43533845d87..112342dbef5 100644 --- a/packages/python/plotly/plotly/validators/box/_legend.py +++ b/packages/python/plotly/plotly/validators/box/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="box", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='box', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_legendgroup.py b/packages/python/plotly/plotly/validators/box/_legendgroup.py index 906ec00bedd..5cd4ee44678 100644 --- a/packages/python/plotly/plotly/validators/box/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/box/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="box", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='box', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/box/_legendgrouptitle.py index a296eb102c6..72992670dbe 100644 --- a/packages/python/plotly/plotly/validators/box/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/box/_legendgrouptitle.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="legendgrouptitle", parent_name="box", **kwargs): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='box', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_legendrank.py b/packages/python/plotly/plotly/validators/box/_legendrank.py index 6ea5db74e45..698e69cc2ef 100644 --- a/packages/python/plotly/plotly/validators/box/_legendrank.py +++ b/packages/python/plotly/plotly/validators/box/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="box", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='box', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_legendwidth.py b/packages/python/plotly/plotly/validators/box/_legendwidth.py index 299e26e6a8c..3b5d953fcbc 100644 --- a/packages/python/plotly/plotly/validators/box/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/box/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="box", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='box', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_line.py b/packages/python/plotly/plotly/validators/box/_line.py index 99579d3c70f..be29af73402 100644 --- a/packages/python/plotly/plotly/validators/box/_line.py +++ b/packages/python/plotly/plotly/validators/box/_line.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="box", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the color of line bounding the box(es). - width - Sets the width (in px) of line bounding the - box(es). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='box', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_lowerfence.py b/packages/python/plotly/plotly/validators/box/_lowerfence.py index 86103479afb..970a9f0a771 100644 --- a/packages/python/plotly/plotly/validators/box/_lowerfence.py +++ b/packages/python/plotly/plotly/validators/box/_lowerfence.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LowerfenceValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="lowerfence", parent_name="box", **kwargs): - super(LowerfenceValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LowerfenceValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='lowerfence', + parent_name='box', + **kwargs): + super(LowerfenceValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_lowerfencesrc.py b/packages/python/plotly/plotly/validators/box/_lowerfencesrc.py index 7f4be5d641f..59f48f21bd5 100644 --- a/packages/python/plotly/plotly/validators/box/_lowerfencesrc.py +++ b/packages/python/plotly/plotly/validators/box/_lowerfencesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LowerfencesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="lowerfencesrc", parent_name="box", **kwargs): - super(LowerfencesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LowerfencesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='lowerfencesrc', + parent_name='box', + **kwargs): + super(LowerfencesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_marker.py b/packages/python/plotly/plotly/validators/box/_marker.py index 50d9f7df33d..6f1f2577bc5 100644 --- a/packages/python/plotly/plotly/validators/box/_marker.py +++ b/packages/python/plotly/plotly/validators/box/_marker.py @@ -1,40 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="box", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - angle - Sets the marker angle in respect to `angleref`. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - line - :class:`plotly.graph_objects.box.marker.Line` - instance or dict with compatible properties - opacity - Sets the marker opacity. - outliercolor - Sets the color of the outlier sample points. - size - Sets the marker size (in px). - symbol - Sets the marker symbol type. Adding 100 is - equivalent to appending "-open" to a symbol - name. Adding 200 is equivalent to appending - "-dot" to a symbol name. Adding 300 is - equivalent to appending "-open-dot" or "dot- - open" to a symbol name. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='box', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_mean.py b/packages/python/plotly/plotly/validators/box/_mean.py index d593b4646ca..b469fef65cb 100644 --- a/packages/python/plotly/plotly/validators/box/_mean.py +++ b/packages/python/plotly/plotly/validators/box/_mean.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MeanValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="mean", parent_name="box", **kwargs): - super(MeanValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MeanValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='mean', + parent_name='box', + **kwargs): + super(MeanValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_meansrc.py b/packages/python/plotly/plotly/validators/box/_meansrc.py index 1a3d77bb379..4d7f84d56dd 100644 --- a/packages/python/plotly/plotly/validators/box/_meansrc.py +++ b/packages/python/plotly/plotly/validators/box/_meansrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MeansrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="meansrc", parent_name="box", **kwargs): - super(MeansrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MeansrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='meansrc', + parent_name='box', + **kwargs): + super(MeansrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_median.py b/packages/python/plotly/plotly/validators/box/_median.py index feba0852f7c..c2e20e39740 100644 --- a/packages/python/plotly/plotly/validators/box/_median.py +++ b/packages/python/plotly/plotly/validators/box/_median.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MedianValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="median", parent_name="box", **kwargs): - super(MedianValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MedianValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='median', + parent_name='box', + **kwargs): + super(MedianValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_mediansrc.py b/packages/python/plotly/plotly/validators/box/_mediansrc.py index 4a42d422b3b..0ac374787fb 100644 --- a/packages/python/plotly/plotly/validators/box/_mediansrc.py +++ b/packages/python/plotly/plotly/validators/box/_mediansrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MediansrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="mediansrc", parent_name="box", **kwargs): - super(MediansrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MediansrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='mediansrc', + parent_name='box', + **kwargs): + super(MediansrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_meta.py b/packages/python/plotly/plotly/validators/box/_meta.py index fdd345f3284..a73d84562a9 100644 --- a/packages/python/plotly/plotly/validators/box/_meta.py +++ b/packages/python/plotly/plotly/validators/box/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="box", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='box', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_metasrc.py b/packages/python/plotly/plotly/validators/box/_metasrc.py index 7979c4ccd15..1609a484e8d 100644 --- a/packages/python/plotly/plotly/validators/box/_metasrc.py +++ b/packages/python/plotly/plotly/validators/box/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="box", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='box', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_name.py b/packages/python/plotly/plotly/validators/box/_name.py index 75ce3bd6df4..037a79990a7 100644 --- a/packages/python/plotly/plotly/validators/box/_name.py +++ b/packages/python/plotly/plotly/validators/box/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="box", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='box', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_notched.py b/packages/python/plotly/plotly/validators/box/_notched.py index e53fb615428..df9669d3544 100644 --- a/packages/python/plotly/plotly/validators/box/_notched.py +++ b/packages/python/plotly/plotly/validators/box/_notched.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NotchedValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="notched", parent_name="box", **kwargs): - super(NotchedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NotchedValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='notched', + parent_name='box', + **kwargs): + super(NotchedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_notchspan.py b/packages/python/plotly/plotly/validators/box/_notchspan.py index 57617f33801..52a9a380519 100644 --- a/packages/python/plotly/plotly/validators/box/_notchspan.py +++ b/packages/python/plotly/plotly/validators/box/_notchspan.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NotchspanValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="notchspan", parent_name="box", **kwargs): - super(NotchspanValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NotchspanValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='notchspan', + parent_name='box', + **kwargs): + super(NotchspanValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_notchspansrc.py b/packages/python/plotly/plotly/validators/box/_notchspansrc.py index a26747dcae8..e128fd36d8e 100644 --- a/packages/python/plotly/plotly/validators/box/_notchspansrc.py +++ b/packages/python/plotly/plotly/validators/box/_notchspansrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NotchspansrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="notchspansrc", parent_name="box", **kwargs): - super(NotchspansrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NotchspansrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='notchspansrc', + parent_name='box', + **kwargs): + super(NotchspansrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_notchwidth.py b/packages/python/plotly/plotly/validators/box/_notchwidth.py index 59b6b21ce12..cfd7cf48e58 100644 --- a/packages/python/plotly/plotly/validators/box/_notchwidth.py +++ b/packages/python/plotly/plotly/validators/box/_notchwidth.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class NotchwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="notchwidth", parent_name="box", **kwargs): - super(NotchwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 0.5), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NotchwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='notchwidth', + parent_name='box', + **kwargs): + super(NotchwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 0.5), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_offsetgroup.py b/packages/python/plotly/plotly/validators/box/_offsetgroup.py index aff875521cd..e2524337311 100644 --- a/packages/python/plotly/plotly/validators/box/_offsetgroup.py +++ b/packages/python/plotly/plotly/validators/box/_offsetgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class OffsetgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="offsetgroup", parent_name="box", **kwargs): - super(OffsetgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OffsetgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='offsetgroup', + parent_name='box', + **kwargs): + super(OffsetgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_opacity.py b/packages/python/plotly/plotly/validators/box/_opacity.py index 7143e231714..61f8b50d7f2 100644 --- a/packages/python/plotly/plotly/validators/box/_opacity.py +++ b/packages/python/plotly/plotly/validators/box/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="box", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='box', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_orientation.py b/packages/python/plotly/plotly/validators/box/_orientation.py index a86b3ff00db..0d9d8a8db1f 100644 --- a/packages/python/plotly/plotly/validators/box/_orientation.py +++ b/packages/python/plotly/plotly/validators/box/_orientation.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="orientation", parent_name="box", **kwargs): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - values=kwargs.pop("values", ["v", "h"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='box', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + values=kwargs.pop('values', ['v', 'h']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_pointpos.py b/packages/python/plotly/plotly/validators/box/_pointpos.py index a088c5b4a54..8ee0cde0e90 100644 --- a/packages/python/plotly/plotly/validators/box/_pointpos.py +++ b/packages/python/plotly/plotly/validators/box/_pointpos.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class PointposValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="pointpos", parent_name="box", **kwargs): - super(PointposValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 2), - min=kwargs.pop("min", -2), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class PointposValidator(_bv.NumberValidator): + def __init__(self, plotly_name='pointpos', + parent_name='box', + **kwargs): + super(PointposValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 2), + min=kwargs.pop('min', -2), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_q1.py b/packages/python/plotly/plotly/validators/box/_q1.py index 45267966bd8..560545d90ae 100644 --- a/packages/python/plotly/plotly/validators/box/_q1.py +++ b/packages/python/plotly/plotly/validators/box/_q1.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Q1Validator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="q1", parent_name="box", **kwargs): - super(Q1Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Q1Validator(_bv.DataArrayValidator): + def __init__(self, plotly_name='q1', + parent_name='box', + **kwargs): + super(Q1Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_q1src.py b/packages/python/plotly/plotly/validators/box/_q1src.py index 7b097f7f664..a05908e44e7 100644 --- a/packages/python/plotly/plotly/validators/box/_q1src.py +++ b/packages/python/plotly/plotly/validators/box/_q1src.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Q1SrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="q1src", parent_name="box", **kwargs): - super(Q1SrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Q1SrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='q1src', + parent_name='box', + **kwargs): + super(Q1SrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_q3.py b/packages/python/plotly/plotly/validators/box/_q3.py index bc42bfd8829..b4195845298 100644 --- a/packages/python/plotly/plotly/validators/box/_q3.py +++ b/packages/python/plotly/plotly/validators/box/_q3.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Q3Validator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="q3", parent_name="box", **kwargs): - super(Q3Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Q3Validator(_bv.DataArrayValidator): + def __init__(self, plotly_name='q3', + parent_name='box', + **kwargs): + super(Q3Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_q3src.py b/packages/python/plotly/plotly/validators/box/_q3src.py index b9b7ab9608c..ecec3cc23dc 100644 --- a/packages/python/plotly/plotly/validators/box/_q3src.py +++ b/packages/python/plotly/plotly/validators/box/_q3src.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Q3SrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="q3src", parent_name="box", **kwargs): - super(Q3SrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Q3SrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='q3src', + parent_name='box', + **kwargs): + super(Q3SrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_quartilemethod.py b/packages/python/plotly/plotly/validators/box/_quartilemethod.py index 59f3c6290c2..89b1f1974b1 100644 --- a/packages/python/plotly/plotly/validators/box/_quartilemethod.py +++ b/packages/python/plotly/plotly/validators/box/_quartilemethod.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class QuartilemethodValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="quartilemethod", parent_name="box", **kwargs): - super(QuartilemethodValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["linear", "exclusive", "inclusive"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class QuartilemethodValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='quartilemethod', + parent_name='box', + **kwargs): + super(QuartilemethodValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['linear', 'exclusive', 'inclusive']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_sd.py b/packages/python/plotly/plotly/validators/box/_sd.py index b59d56f52de..f832115c352 100644 --- a/packages/python/plotly/plotly/validators/box/_sd.py +++ b/packages/python/plotly/plotly/validators/box/_sd.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SdValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="sd", parent_name="box", **kwargs): - super(SdValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SdValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='sd', + parent_name='box', + **kwargs): + super(SdValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_sdmultiple.py b/packages/python/plotly/plotly/validators/box/_sdmultiple.py index 07d52e0b7fe..531b118ccc8 100644 --- a/packages/python/plotly/plotly/validators/box/_sdmultiple.py +++ b/packages/python/plotly/plotly/validators/box/_sdmultiple.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SdmultipleValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="sdmultiple", parent_name="box", **kwargs): - super(SdmultipleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SdmultipleValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sdmultiple', + parent_name='box', + **kwargs): + super(SdmultipleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_sdsrc.py b/packages/python/plotly/plotly/validators/box/_sdsrc.py index acdc6269d89..47c7985f330 100644 --- a/packages/python/plotly/plotly/validators/box/_sdsrc.py +++ b/packages/python/plotly/plotly/validators/box/_sdsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SdsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="sdsrc", parent_name="box", **kwargs): - super(SdsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SdsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sdsrc', + parent_name='box', + **kwargs): + super(SdsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_selected.py b/packages/python/plotly/plotly/validators/box/_selected.py index 068acc10e9c..d3b0e0a6f34 100644 --- a/packages/python/plotly/plotly/validators/box/_selected.py +++ b/packages/python/plotly/plotly/validators/box/_selected.py @@ -1,19 +1,15 @@ -import _plotly_utils.basevalidators -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="selected", parent_name="box", **kwargs): - super(SelectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Selected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.box.selected.Marke - r` instance or dict with compatible properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='selected', + parent_name='box', + **kwargs): + super(SelectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_selectedpoints.py b/packages/python/plotly/plotly/validators/box/_selectedpoints.py index 90c24a218f6..afffe70a6a8 100644 --- a/packages/python/plotly/plotly/validators/box/_selectedpoints.py +++ b/packages/python/plotly/plotly/validators/box/_selectedpoints.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="selectedpoints", parent_name="box", **kwargs): - super(SelectedpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedpointsValidator(_bv.AnyValidator): + def __init__(self, plotly_name='selectedpoints', + parent_name='box', + **kwargs): + super(SelectedpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_showlegend.py b/packages/python/plotly/plotly/validators/box/_showlegend.py index 29c7fe221eb..954b020adce 100644 --- a/packages/python/plotly/plotly/validators/box/_showlegend.py +++ b/packages/python/plotly/plotly/validators/box/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="box", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='box', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_showwhiskers.py b/packages/python/plotly/plotly/validators/box/_showwhiskers.py index c4f4f664c29..0977621a770 100644 --- a/packages/python/plotly/plotly/validators/box/_showwhiskers.py +++ b/packages/python/plotly/plotly/validators/box/_showwhiskers.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowwhiskersValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showwhiskers", parent_name="box", **kwargs): - super(ShowwhiskersValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowwhiskersValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showwhiskers', + parent_name='box', + **kwargs): + super(ShowwhiskersValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_sizemode.py b/packages/python/plotly/plotly/validators/box/_sizemode.py index da6ae123e9d..b6a1f81f717 100644 --- a/packages/python/plotly/plotly/validators/box/_sizemode.py +++ b/packages/python/plotly/plotly/validators/box/_sizemode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="sizemode", parent_name="box", **kwargs): - super(SizemodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["quartiles", "sd"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizemodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='sizemode', + parent_name='box', + **kwargs): + super(SizemodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['quartiles', 'sd']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_stream.py b/packages/python/plotly/plotly/validators/box/_stream.py index 3a962fb3841..ac9d9e6f496 100644 --- a/packages/python/plotly/plotly/validators/box/_stream.py +++ b/packages/python/plotly/plotly/validators/box/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="box", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='box', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_text.py b/packages/python/plotly/plotly/validators/box/_text.py index 322c5add002..a6259b60b4b 100644 --- a/packages/python/plotly/plotly/validators/box/_text.py +++ b/packages/python/plotly/plotly/validators/box/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="box", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='box', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_textsrc.py b/packages/python/plotly/plotly/validators/box/_textsrc.py index 1d8444ca5d2..50c0a47b8f0 100644 --- a/packages/python/plotly/plotly/validators/box/_textsrc.py +++ b/packages/python/plotly/plotly/validators/box/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="box", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='box', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_uid.py b/packages/python/plotly/plotly/validators/box/_uid.py index 8b380346da8..0b62c3d9119 100644 --- a/packages/python/plotly/plotly/validators/box/_uid.py +++ b/packages/python/plotly/plotly/validators/box/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="box", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='box', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_uirevision.py b/packages/python/plotly/plotly/validators/box/_uirevision.py index 332c9edb37c..ae0369e62f8 100644 --- a/packages/python/plotly/plotly/validators/box/_uirevision.py +++ b/packages/python/plotly/plotly/validators/box/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="box", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='box', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_unselected.py b/packages/python/plotly/plotly/validators/box/_unselected.py index 73be085ef1a..3b981b43dd6 100644 --- a/packages/python/plotly/plotly/validators/box/_unselected.py +++ b/packages/python/plotly/plotly/validators/box/_unselected.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="unselected", parent_name="box", **kwargs): - super(UnselectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Unselected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.box.unselected.Mar - ker` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UnselectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='unselected', + parent_name='box', + **kwargs): + super(UnselectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_upperfence.py b/packages/python/plotly/plotly/validators/box/_upperfence.py index febe9470b01..d4f5ea3471d 100644 --- a/packages/python/plotly/plotly/validators/box/_upperfence.py +++ b/packages/python/plotly/plotly/validators/box/_upperfence.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UpperfenceValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="upperfence", parent_name="box", **kwargs): - super(UpperfenceValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UpperfenceValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='upperfence', + parent_name='box', + **kwargs): + super(UpperfenceValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_upperfencesrc.py b/packages/python/plotly/plotly/validators/box/_upperfencesrc.py index fb103b84f81..353c5be1338 100644 --- a/packages/python/plotly/plotly/validators/box/_upperfencesrc.py +++ b/packages/python/plotly/plotly/validators/box/_upperfencesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UpperfencesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="upperfencesrc", parent_name="box", **kwargs): - super(UpperfencesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UpperfencesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='upperfencesrc', + parent_name='box', + **kwargs): + super(UpperfencesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_visible.py b/packages/python/plotly/plotly/validators/box/_visible.py index c6ba2bb6ab4..264ec301bb6 100644 --- a/packages/python/plotly/plotly/validators/box/_visible.py +++ b/packages/python/plotly/plotly/validators/box/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="box", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='box', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_whiskerwidth.py b/packages/python/plotly/plotly/validators/box/_whiskerwidth.py index bde58022304..dbf2dd457fc 100644 --- a/packages/python/plotly/plotly/validators/box/_whiskerwidth.py +++ b/packages/python/plotly/plotly/validators/box/_whiskerwidth.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class WhiskerwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="whiskerwidth", parent_name="box", **kwargs): - super(WhiskerwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WhiskerwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='whiskerwidth', + parent_name='box', + **kwargs): + super(WhiskerwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_width.py b/packages/python/plotly/plotly/validators/box/_width.py index 479db4fe827..e60279518d1 100644 --- a/packages/python/plotly/plotly/validators/box/_width.py +++ b/packages/python/plotly/plotly/validators/box/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="box", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='box', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_x.py b/packages/python/plotly/plotly/validators/box/_x.py index ae2db237176..79ab229090b 100644 --- a/packages/python/plotly/plotly/validators/box/_x.py +++ b/packages/python/plotly/plotly/validators/box/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="x", parent_name="box", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='x', + parent_name='box', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_x0.py b/packages/python/plotly/plotly/validators/box/_x0.py index 7a3522b1a46..9cdcc811326 100644 --- a/packages/python/plotly/plotly/validators/box/_x0.py +++ b/packages/python/plotly/plotly/validators/box/_x0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class X0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="x0", parent_name="box", **kwargs): - super(X0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class X0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='x0', + parent_name='box', + **kwargs): + super(X0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_xaxis.py b/packages/python/plotly/plotly/validators/box/_xaxis.py index 1dfe4781952..255e40e947f 100644 --- a/packages/python/plotly/plotly/validators/box/_xaxis.py +++ b/packages/python/plotly/plotly/validators/box/_xaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="xaxis", parent_name="box", **kwargs): - super(XaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "x"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='xaxis', + parent_name='box', + **kwargs): + super(XaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'x'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_xcalendar.py b/packages/python/plotly/plotly/validators/box/_xcalendar.py index 4c6d2c9b3b0..38595ac57e1 100644 --- a/packages/python/plotly/plotly/validators/box/_xcalendar.py +++ b/packages/python/plotly/plotly/validators/box/_xcalendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xcalendar", parent_name="box", **kwargs): - super(XcalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XcalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xcalendar', + parent_name='box', + **kwargs): + super(XcalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_xhoverformat.py b/packages/python/plotly/plotly/validators/box/_xhoverformat.py index 590afd1c5b3..1356d847767 100644 --- a/packages/python/plotly/plotly/validators/box/_xhoverformat.py +++ b/packages/python/plotly/plotly/validators/box/_xhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="xhoverformat", parent_name="box", **kwargs): - super(XhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='xhoverformat', + parent_name='box', + **kwargs): + super(XhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_xperiod.py b/packages/python/plotly/plotly/validators/box/_xperiod.py index c261a0fed67..946e36d1fd1 100644 --- a/packages/python/plotly/plotly/validators/box/_xperiod.py +++ b/packages/python/plotly/plotly/validators/box/_xperiod.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XperiodValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="xperiod", parent_name="box", **kwargs): - super(XperiodValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XperiodValidator(_bv.AnyValidator): + def __init__(self, plotly_name='xperiod', + parent_name='box', + **kwargs): + super(XperiodValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_xperiod0.py b/packages/python/plotly/plotly/validators/box/_xperiod0.py index 7130a0c523b..c29f4525a50 100644 --- a/packages/python/plotly/plotly/validators/box/_xperiod0.py +++ b/packages/python/plotly/plotly/validators/box/_xperiod0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Xperiod0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="xperiod0", parent_name="box", **kwargs): - super(Xperiod0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Xperiod0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='xperiod0', + parent_name='box', + **kwargs): + super(Xperiod0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_xperiodalignment.py b/packages/python/plotly/plotly/validators/box/_xperiodalignment.py index 74923b12372..7ef7642424a 100644 --- a/packages/python/plotly/plotly/validators/box/_xperiodalignment.py +++ b/packages/python/plotly/plotly/validators/box/_xperiodalignment.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xperiodalignment", parent_name="box", **kwargs): - super(XperiodalignmentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["start", "middle", "end"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XperiodalignmentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xperiodalignment', + parent_name='box', + **kwargs): + super(XperiodalignmentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['start', 'middle', 'end']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_xsrc.py b/packages/python/plotly/plotly/validators/box/_xsrc.py index 5313ccb2e11..9f4d14fc65e 100644 --- a/packages/python/plotly/plotly/validators/box/_xsrc.py +++ b/packages/python/plotly/plotly/validators/box/_xsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="xsrc", parent_name="box", **kwargs): - super(XsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='xsrc', + parent_name='box', + **kwargs): + super(XsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_y.py b/packages/python/plotly/plotly/validators/box/_y.py index 5054599dd2f..12c8471cfef 100644 --- a/packages/python/plotly/plotly/validators/box/_y.py +++ b/packages/python/plotly/plotly/validators/box/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="y", parent_name="box", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='y', + parent_name='box', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_y0.py b/packages/python/plotly/plotly/validators/box/_y0.py index 8ab218c5867..ae69c0a4d96 100644 --- a/packages/python/plotly/plotly/validators/box/_y0.py +++ b/packages/python/plotly/plotly/validators/box/_y0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Y0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="y0", parent_name="box", **kwargs): - super(Y0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Y0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='y0', + parent_name='box', + **kwargs): + super(Y0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_yaxis.py b/packages/python/plotly/plotly/validators/box/_yaxis.py index 1b081a8545d..4112d6affd0 100644 --- a/packages/python/plotly/plotly/validators/box/_yaxis.py +++ b/packages/python/plotly/plotly/validators/box/_yaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="yaxis", parent_name="box", **kwargs): - super(YaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "y"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='yaxis', + parent_name='box', + **kwargs): + super(YaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'y'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_ycalendar.py b/packages/python/plotly/plotly/validators/box/_ycalendar.py index 65d2a40025c..ce1befb7359 100644 --- a/packages/python/plotly/plotly/validators/box/_ycalendar.py +++ b/packages/python/plotly/plotly/validators/box/_ycalendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="ycalendar", parent_name="box", **kwargs): - super(YcalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YcalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ycalendar', + parent_name='box', + **kwargs): + super(YcalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_yhoverformat.py b/packages/python/plotly/plotly/validators/box/_yhoverformat.py index da2e1f2751a..74c07ea892b 100644 --- a/packages/python/plotly/plotly/validators/box/_yhoverformat.py +++ b/packages/python/plotly/plotly/validators/box/_yhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="yhoverformat", parent_name="box", **kwargs): - super(YhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='yhoverformat', + parent_name='box', + **kwargs): + super(YhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_yperiod.py b/packages/python/plotly/plotly/validators/box/_yperiod.py index 03a84e4aff1..caf84578a75 100644 --- a/packages/python/plotly/plotly/validators/box/_yperiod.py +++ b/packages/python/plotly/plotly/validators/box/_yperiod.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YperiodValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="yperiod", parent_name="box", **kwargs): - super(YperiodValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YperiodValidator(_bv.AnyValidator): + def __init__(self, plotly_name='yperiod', + parent_name='box', + **kwargs): + super(YperiodValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_yperiod0.py b/packages/python/plotly/plotly/validators/box/_yperiod0.py index f8ed1d38926..d216c53aee1 100644 --- a/packages/python/plotly/plotly/validators/box/_yperiod0.py +++ b/packages/python/plotly/plotly/validators/box/_yperiod0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Yperiod0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="yperiod0", parent_name="box", **kwargs): - super(Yperiod0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Yperiod0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='yperiod0', + parent_name='box', + **kwargs): + super(Yperiod0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_yperiodalignment.py b/packages/python/plotly/plotly/validators/box/_yperiodalignment.py index 1f7795a2116..c6e1d2329c7 100644 --- a/packages/python/plotly/plotly/validators/box/_yperiodalignment.py +++ b/packages/python/plotly/plotly/validators/box/_yperiodalignment.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yperiodalignment", parent_name="box", **kwargs): - super(YperiodalignmentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["start", "middle", "end"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YperiodalignmentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yperiodalignment', + parent_name='box', + **kwargs): + super(YperiodalignmentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['start', 'middle', 'end']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_ysrc.py b/packages/python/plotly/plotly/validators/box/_ysrc.py index 242d96af5b6..ccba46dbfe3 100644 --- a/packages/python/plotly/plotly/validators/box/_ysrc.py +++ b/packages/python/plotly/plotly/validators/box/_ysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="ysrc", parent_name="box", **kwargs): - super(YsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ysrc', + parent_name='box', + **kwargs): + super(YsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/_zorder.py b/packages/python/plotly/plotly/validators/box/_zorder.py index 87a06231040..6e9a388b78e 100644 --- a/packages/python/plotly/plotly/validators/box/_zorder.py +++ b/packages/python/plotly/plotly/validators/box/_zorder.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="zorder", parent_name="box", **kwargs): - super(ZorderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZorderValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='zorder', + parent_name='box', + **kwargs): + super(ZorderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/box/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/box/hoverlabel/_align.py index d978c54ef99..3c1b6ced926 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/_align.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="align", parent_name="box.hoverlabel", **kwargs): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='box.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/box/hoverlabel/_alignsrc.py index b62f55c0350..5ab8cd76078 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/_alignsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="alignsrc", parent_name="box.hoverlabel", **kwargs): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='box.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/box/hoverlabel/_bgcolor.py index ae3069b690e..a31a40dcf74 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/_bgcolor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="bgcolor", parent_name="box.hoverlabel", **kwargs): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='box.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/box/hoverlabel/_bgcolorsrc.py index f2bd1e329e5..ad073f67538 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="box.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='box.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/box/hoverlabel/_bordercolor.py index cd10223927b..13fd4d7e5a4 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="box.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='box.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/box/hoverlabel/_bordercolorsrc.py index e63b525983b..0f1c4f0886c 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bordercolorsrc", parent_name="box.hoverlabel", **kwargs - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='box.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/box/hoverlabel/_font.py index 4710b01d4b4..047c59ddb41 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/_font.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="box.hoverlabel", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='box.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/box/hoverlabel/_namelength.py index d1837e91694..bf512957c45 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="box.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='box.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/box/hoverlabel/_namelengthsrc.py index c66ff3938b6..b9ac684b8f2 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="box.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='box.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/box/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_color.py index 9f2ca27ec14..30928d2b46f 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="box.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='box.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_colorsrc.py index 5fc4a7d24df..c9231aef009 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="box.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='box.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_family.py index 31ba24191a4..0b2f2d2fab9 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="box.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='box.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_familysrc.py index 1a739873186..b686f6da417 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="box.hoverlabel.font", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='box.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_lineposition.py index 6efa962c15c..9c94987a111 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="box.hoverlabel.font", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='box.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_linepositionsrc.py index 9a852f12ef1..12615460229 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_linepositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="linepositionsrc", parent_name="box.hoverlabel.font", **kwargs - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='box.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_shadow.py index 28bb8404ea3..7a335d2d863 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="box.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='box.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_shadowsrc.py index 1b0189b1b9c..ca489974a4f 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="box.hoverlabel.font", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='box.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_size.py index e2ba4588637..9493f25b3f6 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="box.hoverlabel.font", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='box.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_sizesrc.py index 173e4fa6791..76889a6f418 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="box.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='box.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_style.py index 31fc69bb3e7..63b1e6eb2c7 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="box.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='box.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_stylesrc.py index 14462534f7c..ea7e3774e6c 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="box.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='box.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_textcase.py index 93b00556544..d13161c3cf0 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="box.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='box.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_textcasesrc.py index 82e49484649..2fff4e1269b 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="box.hoverlabel.font", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='box.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_variant.py index f196c4496f7..925e48f1167 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="box.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='box.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_variantsrc.py index be3a2984054..1c68f64571e 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="box.hoverlabel.font", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='box.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_weight.py index 5f4cc3aace1..8b16be3a1c2 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="box.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='box.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_weightsrc.py index 06f0d608471..1b2a9d042a1 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/font/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="box.hoverlabel.font", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='box.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/box/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/box/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/box/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/box/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/box/legendgrouptitle/_font.py index c1489caef2e..117795b96c4 100644 --- a/packages/python/plotly/plotly/validators/box/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/box/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="box.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='box.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/box/legendgrouptitle/_text.py index 9ed226e1618..f1a14937ea3 100644 --- a/packages/python/plotly/plotly/validators/box/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/box/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="box.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='box.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_color.py index 506ef98a85f..1ee630ce301 100644 --- a/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="box.legendgrouptitle.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='box.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_family.py index 75b138d1e3f..e33071bd897 100644 --- a/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="box.legendgrouptitle.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='box.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_lineposition.py index cfd688e509c..07d25bbdefe 100644 --- a/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="box.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='box.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_shadow.py index 2e642ee86cb..2b7466b1560 100644 --- a/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="box.legendgrouptitle.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='box.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_size.py index 4f67a911cb6..3852b9849ad 100644 --- a/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="box.legendgrouptitle.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='box.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_style.py index 47263ff0899..2ab856197bf 100644 --- a/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="box.legendgrouptitle.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='box.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_textcase.py index 1faa69bb325..d66ed8fa79d 100644 --- a/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="box.legendgrouptitle.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='box.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_variant.py index 17c9f799285..c8667334dc5 100644 --- a/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="box.legendgrouptitle.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='box.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_weight.py index 1085b2e07fb..a9312089cd5 100644 --- a/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/box/legendgrouptitle/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="box.legendgrouptitle.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='box.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/line/__init__.py b/packages/python/plotly/plotly/validators/box/line/__init__.py index 63a516578b5..e9749ddd90c 100644 --- a/packages/python/plotly/plotly/validators/box/line/__init__.py +++ b/packages/python/plotly/plotly/validators/box/line/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._width.WidthValidator", "._color.ColorValidator"] + __name__, + [], + ['._width.WidthValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/box/line/_color.py b/packages/python/plotly/plotly/validators/box/line/_color.py index e762ea592a3..d1b77318de1 100644 --- a/packages/python/plotly/plotly/validators/box/line/_color.py +++ b/packages/python/plotly/plotly/validators/box/line/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="box.line", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='box.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/line/_width.py b/packages/python/plotly/plotly/validators/box/line/_width.py index 6e61d4e57ba..2dba66872f6 100644 --- a/packages/python/plotly/plotly/validators/box/line/_width.py +++ b/packages/python/plotly/plotly/validators/box/line/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="box.line", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='box.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/marker/__init__.py b/packages/python/plotly/plotly/validators/box/marker/__init__.py index 59cc1848f17..bd0eb7cdf86 100644 --- a/packages/python/plotly/plotly/validators/box/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/box/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._symbol import SymbolValidator from ._size import SizeValidator @@ -11,17 +10,10 @@ from ._angle import AngleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._symbol.SymbolValidator", - "._size.SizeValidator", - "._outliercolor.OutliercolorValidator", - "._opacity.OpacityValidator", - "._line.LineValidator", - "._color.ColorValidator", - "._angle.AngleValidator", - ], + ['._symbol.SymbolValidator', '._size.SizeValidator', '._outliercolor.OutliercolorValidator', '._opacity.OpacityValidator', '._line.LineValidator', '._color.ColorValidator', '._angle.AngleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/box/marker/_angle.py b/packages/python/plotly/plotly/validators/box/marker/_angle.py index 4e04fbe3d71..a9270cdaa41 100644 --- a/packages/python/plotly/plotly/validators/box/marker/_angle.py +++ b/packages/python/plotly/plotly/validators/box/marker/_angle.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class AngleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__(self, plotly_name="angle", parent_name="box.marker", **kwargs): - super(AngleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AngleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='angle', + parent_name='box.marker', + **kwargs): + super(AngleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/marker/_color.py b/packages/python/plotly/plotly/validators/box/marker/_color.py index eccffc530b1..f1145992e42 100644 --- a/packages/python/plotly/plotly/validators/box/marker/_color.py +++ b/packages/python/plotly/plotly/validators/box/marker/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="box.marker", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='box.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/marker/_line.py b/packages/python/plotly/plotly/validators/box/marker/_line.py index c81640f474b..4279486cfa2 100644 --- a/packages/python/plotly/plotly/validators/box/marker/_line.py +++ b/packages/python/plotly/plotly/validators/box/marker/_line.py @@ -1,32 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="box.marker", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - outliercolor - Sets the border line color of the outlier - sample points. Defaults to marker.color - outlierwidth - Sets the border line width (in px) of the - outlier sample points. - width - Sets the width (in px) of the lines bounding - the marker points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='box.marker', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/marker/_opacity.py b/packages/python/plotly/plotly/validators/box/marker/_opacity.py index d5a17b68588..3614a382c1a 100644 --- a/packages/python/plotly/plotly/validators/box/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/box/marker/_opacity.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="box.marker", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='box.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/marker/_outliercolor.py b/packages/python/plotly/plotly/validators/box/marker/_outliercolor.py index e8bdd773c62..6b1252da823 100644 --- a/packages/python/plotly/plotly/validators/box/marker/_outliercolor.py +++ b/packages/python/plotly/plotly/validators/box/marker/_outliercolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class OutliercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="outliercolor", parent_name="box.marker", **kwargs): - super(OutliercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutliercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outliercolor', + parent_name='box.marker', + **kwargs): + super(OutliercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/marker/_size.py b/packages/python/plotly/plotly/validators/box/marker/_size.py index aef23cd6fd6..c8e09451d87 100644 --- a/packages/python/plotly/plotly/validators/box/marker/_size.py +++ b/packages/python/plotly/plotly/validators/box/marker/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="box.marker", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='box.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/marker/_symbol.py b/packages/python/plotly/plotly/validators/box/marker/_symbol.py index bf3aa141cf3..fedda4cfc41 100644 --- a/packages/python/plotly/plotly/validators/box/marker/_symbol.py +++ b/packages/python/plotly/plotly/validators/box/marker/_symbol.py @@ -1,503 +1,15 @@ -import _plotly_utils.basevalidators -class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="symbol", parent_name="box.marker", **kwargs): - super(SymbolValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - 0, - "0", - "circle", - 100, - "100", - "circle-open", - 200, - "200", - "circle-dot", - 300, - "300", - "circle-open-dot", - 1, - "1", - "square", - 101, - "101", - "square-open", - 201, - "201", - "square-dot", - 301, - "301", - "square-open-dot", - 2, - "2", - "diamond", - 102, - "102", - "diamond-open", - 202, - "202", - "diamond-dot", - 302, - "302", - "diamond-open-dot", - 3, - "3", - "cross", - 103, - "103", - "cross-open", - 203, - "203", - "cross-dot", - 303, - "303", - "cross-open-dot", - 4, - "4", - "x", - 104, - "104", - "x-open", - 204, - "204", - "x-dot", - 304, - "304", - "x-open-dot", - 5, - "5", - "triangle-up", - 105, - "105", - "triangle-up-open", - 205, - "205", - "triangle-up-dot", - 305, - "305", - "triangle-up-open-dot", - 6, - "6", - "triangle-down", - 106, - "106", - "triangle-down-open", - 206, - "206", - "triangle-down-dot", - 306, - "306", - "triangle-down-open-dot", - 7, - "7", - "triangle-left", - 107, - "107", - "triangle-left-open", - 207, - "207", - "triangle-left-dot", - 307, - "307", - "triangle-left-open-dot", - 8, - "8", - "triangle-right", - 108, - "108", - "triangle-right-open", - 208, - "208", - "triangle-right-dot", - 308, - "308", - "triangle-right-open-dot", - 9, - "9", - "triangle-ne", - 109, - "109", - "triangle-ne-open", - 209, - "209", - "triangle-ne-dot", - 309, - "309", - "triangle-ne-open-dot", - 10, - "10", - "triangle-se", - 110, - "110", - "triangle-se-open", - 210, - "210", - "triangle-se-dot", - 310, - "310", - "triangle-se-open-dot", - 11, - "11", - "triangle-sw", - 111, - "111", - "triangle-sw-open", - 211, - "211", - "triangle-sw-dot", - 311, - "311", - "triangle-sw-open-dot", - 12, - "12", - "triangle-nw", - 112, - "112", - "triangle-nw-open", - 212, - "212", - "triangle-nw-dot", - 312, - "312", - "triangle-nw-open-dot", - 13, - "13", - "pentagon", - 113, - "113", - "pentagon-open", - 213, - "213", - "pentagon-dot", - 313, - "313", - "pentagon-open-dot", - 14, - "14", - "hexagon", - 114, - "114", - "hexagon-open", - 214, - "214", - "hexagon-dot", - 314, - "314", - "hexagon-open-dot", - 15, - "15", - "hexagon2", - 115, - "115", - "hexagon2-open", - 215, - "215", - "hexagon2-dot", - 315, - "315", - "hexagon2-open-dot", - 16, - "16", - "octagon", - 116, - "116", - "octagon-open", - 216, - "216", - "octagon-dot", - 316, - "316", - "octagon-open-dot", - 17, - "17", - "star", - 117, - "117", - "star-open", - 217, - "217", - "star-dot", - 317, - "317", - "star-open-dot", - 18, - "18", - "hexagram", - 118, - "118", - "hexagram-open", - 218, - "218", - "hexagram-dot", - 318, - "318", - "hexagram-open-dot", - 19, - "19", - "star-triangle-up", - 119, - "119", - "star-triangle-up-open", - 219, - "219", - "star-triangle-up-dot", - 319, - "319", - "star-triangle-up-open-dot", - 20, - "20", - "star-triangle-down", - 120, - "120", - "star-triangle-down-open", - 220, - "220", - "star-triangle-down-dot", - 320, - "320", - "star-triangle-down-open-dot", - 21, - "21", - "star-square", - 121, - "121", - "star-square-open", - 221, - "221", - "star-square-dot", - 321, - "321", - "star-square-open-dot", - 22, - "22", - "star-diamond", - 122, - "122", - "star-diamond-open", - 222, - "222", - "star-diamond-dot", - 322, - "322", - "star-diamond-open-dot", - 23, - "23", - "diamond-tall", - 123, - "123", - "diamond-tall-open", - 223, - "223", - "diamond-tall-dot", - 323, - "323", - "diamond-tall-open-dot", - 24, - "24", - "diamond-wide", - 124, - "124", - "diamond-wide-open", - 224, - "224", - "diamond-wide-dot", - 324, - "324", - "diamond-wide-open-dot", - 25, - "25", - "hourglass", - 125, - "125", - "hourglass-open", - 26, - "26", - "bowtie", - 126, - "126", - "bowtie-open", - 27, - "27", - "circle-cross", - 127, - "127", - "circle-cross-open", - 28, - "28", - "circle-x", - 128, - "128", - "circle-x-open", - 29, - "29", - "square-cross", - 129, - "129", - "square-cross-open", - 30, - "30", - "square-x", - 130, - "130", - "square-x-open", - 31, - "31", - "diamond-cross", - 131, - "131", - "diamond-cross-open", - 32, - "32", - "diamond-x", - 132, - "132", - "diamond-x-open", - 33, - "33", - "cross-thin", - 133, - "133", - "cross-thin-open", - 34, - "34", - "x-thin", - 134, - "134", - "x-thin-open", - 35, - "35", - "asterisk", - 135, - "135", - "asterisk-open", - 36, - "36", - "hash", - 136, - "136", - "hash-open", - 236, - "236", - "hash-dot", - 336, - "336", - "hash-open-dot", - 37, - "37", - "y-up", - 137, - "137", - "y-up-open", - 38, - "38", - "y-down", - 138, - "138", - "y-down-open", - 39, - "39", - "y-left", - 139, - "139", - "y-left-open", - 40, - "40", - "y-right", - 140, - "140", - "y-right-open", - 41, - "41", - "line-ew", - 141, - "141", - "line-ew-open", - 42, - "42", - "line-ns", - 142, - "142", - "line-ns-open", - 43, - "43", - "line-ne", - 143, - "143", - "line-ne-open", - 44, - "44", - "line-nw", - 144, - "144", - "line-nw-open", - 45, - "45", - "arrow-up", - 145, - "145", - "arrow-up-open", - 46, - "46", - "arrow-down", - 146, - "146", - "arrow-down-open", - 47, - "47", - "arrow-left", - 147, - "147", - "arrow-left-open", - 48, - "48", - "arrow-right", - 148, - "148", - "arrow-right-open", - 49, - "49", - "arrow-bar-up", - 149, - "149", - "arrow-bar-up-open", - 50, - "50", - "arrow-bar-down", - 150, - "150", - "arrow-bar-down-open", - 51, - "51", - "arrow-bar-left", - 151, - "151", - "arrow-bar-left-open", - 52, - "52", - "arrow-bar-right", - 152, - "152", - "arrow-bar-right-open", - 53, - "53", - "arrow", - 153, - "153", - "arrow-open", - 54, - "54", - "arrow-wide", - 154, - "154", - "arrow-wide-open", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SymbolValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='symbol', + parent_name='box.marker', + **kwargs): + super(SymbolValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', [0, '0', 'circle', 100, '100', 'circle-open', 200, '200', 'circle-dot', 300, '300', 'circle-open-dot', 1, '1', 'square', 101, '101', 'square-open', 201, '201', 'square-dot', 301, '301', 'square-open-dot', 2, '2', 'diamond', 102, '102', 'diamond-open', 202, '202', 'diamond-dot', 302, '302', 'diamond-open-dot', 3, '3', 'cross', 103, '103', 'cross-open', 203, '203', 'cross-dot', 303, '303', 'cross-open-dot', 4, '4', 'x', 104, '104', 'x-open', 204, '204', 'x-dot', 304, '304', 'x-open-dot', 5, '5', 'triangle-up', 105, '105', 'triangle-up-open', 205, '205', 'triangle-up-dot', 305, '305', 'triangle-up-open-dot', 6, '6', 'triangle-down', 106, '106', 'triangle-down-open', 206, '206', 'triangle-down-dot', 306, '306', 'triangle-down-open-dot', 7, '7', 'triangle-left', 107, '107', 'triangle-left-open', 207, '207', 'triangle-left-dot', 307, '307', 'triangle-left-open-dot', 8, '8', 'triangle-right', 108, '108', 'triangle-right-open', 208, '208', 'triangle-right-dot', 308, '308', 'triangle-right-open-dot', 9, '9', 'triangle-ne', 109, '109', 'triangle-ne-open', 209, '209', 'triangle-ne-dot', 309, '309', 'triangle-ne-open-dot', 10, '10', 'triangle-se', 110, '110', 'triangle-se-open', 210, '210', 'triangle-se-dot', 310, '310', 'triangle-se-open-dot', 11, '11', 'triangle-sw', 111, '111', 'triangle-sw-open', 211, '211', 'triangle-sw-dot', 311, '311', 'triangle-sw-open-dot', 12, '12', 'triangle-nw', 112, '112', 'triangle-nw-open', 212, '212', 'triangle-nw-dot', 312, '312', 'triangle-nw-open-dot', 13, '13', 'pentagon', 113, '113', 'pentagon-open', 213, '213', 'pentagon-dot', 313, '313', 'pentagon-open-dot', 14, '14', 'hexagon', 114, '114', 'hexagon-open', 214, '214', 'hexagon-dot', 314, '314', 'hexagon-open-dot', 15, '15', 'hexagon2', 115, '115', 'hexagon2-open', 215, '215', 'hexagon2-dot', 315, '315', 'hexagon2-open-dot', 16, '16', 'octagon', 116, '116', 'octagon-open', 216, '216', 'octagon-dot', 316, '316', 'octagon-open-dot', 17, '17', 'star', 117, '117', 'star-open', 217, '217', 'star-dot', 317, '317', 'star-open-dot', 18, '18', 'hexagram', 118, '118', 'hexagram-open', 218, '218', 'hexagram-dot', 318, '318', 'hexagram-open-dot', 19, '19', 'star-triangle-up', 119, '119', 'star-triangle-up-open', 219, '219', 'star-triangle-up-dot', 319, '319', 'star-triangle-up-open-dot', 20, '20', 'star-triangle-down', 120, '120', 'star-triangle-down-open', 220, '220', 'star-triangle-down-dot', 320, '320', 'star-triangle-down-open-dot', 21, '21', 'star-square', 121, '121', 'star-square-open', 221, '221', 'star-square-dot', 321, '321', 'star-square-open-dot', 22, '22', 'star-diamond', 122, '122', 'star-diamond-open', 222, '222', 'star-diamond-dot', 322, '322', 'star-diamond-open-dot', 23, '23', 'diamond-tall', 123, '123', 'diamond-tall-open', 223, '223', 'diamond-tall-dot', 323, '323', 'diamond-tall-open-dot', 24, '24', 'diamond-wide', 124, '124', 'diamond-wide-open', 224, '224', 'diamond-wide-dot', 324, '324', 'diamond-wide-open-dot', 25, '25', 'hourglass', 125, '125', 'hourglass-open', 26, '26', 'bowtie', 126, '126', 'bowtie-open', 27, '27', 'circle-cross', 127, '127', 'circle-cross-open', 28, '28', 'circle-x', 128, '128', 'circle-x-open', 29, '29', 'square-cross', 129, '129', 'square-cross-open', 30, '30', 'square-x', 130, '130', 'square-x-open', 31, '31', 'diamond-cross', 131, '131', 'diamond-cross-open', 32, '32', 'diamond-x', 132, '132', 'diamond-x-open', 33, '33', 'cross-thin', 133, '133', 'cross-thin-open', 34, '34', 'x-thin', 134, '134', 'x-thin-open', 35, '35', 'asterisk', 135, '135', 'asterisk-open', 36, '36', 'hash', 136, '136', 'hash-open', 236, '236', 'hash-dot', 336, '336', 'hash-open-dot', 37, '37', 'y-up', 137, '137', 'y-up-open', 38, '38', 'y-down', 138, '138', 'y-down-open', 39, '39', 'y-left', 139, '139', 'y-left-open', 40, '40', 'y-right', 140, '140', 'y-right-open', 41, '41', 'line-ew', 141, '141', 'line-ew-open', 42, '42', 'line-ns', 142, '142', 'line-ns-open', 43, '43', 'line-ne', 143, '143', 'line-ne-open', 44, '44', 'line-nw', 144, '144', 'line-nw-open', 45, '45', 'arrow-up', 145, '145', 'arrow-up-open', 46, '46', 'arrow-down', 146, '146', 'arrow-down-open', 47, '47', 'arrow-left', 147, '147', 'arrow-left-open', 48, '48', 'arrow-right', 148, '148', 'arrow-right-open', 49, '49', 'arrow-bar-up', 149, '149', 'arrow-bar-up-open', 50, '50', 'arrow-bar-down', 150, '150', 'arrow-bar-down-open', 51, '51', 'arrow-bar-left', 151, '151', 'arrow-bar-left-open', 52, '52', 'arrow-bar-right', 152, '152', 'arrow-bar-right-open', 53, '53', 'arrow', 153, '153', 'arrow-open', 54, '54', 'arrow-wide', 154, '154', 'arrow-wide-open']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/marker/line/__init__.py b/packages/python/plotly/plotly/validators/box/marker/line/__init__.py index 7778bf581ee..0cf8b35546d 100644 --- a/packages/python/plotly/plotly/validators/box/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/box/marker/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._outlierwidth import OutlierwidthValidator @@ -8,14 +7,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._outlierwidth.OutlierwidthValidator", - "._outliercolor.OutliercolorValidator", - "._color.ColorValidator", - ], + ['._width.WidthValidator', '._outlierwidth.OutlierwidthValidator', '._outliercolor.OutliercolorValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/box/marker/line/_color.py b/packages/python/plotly/plotly/validators/box/marker/line/_color.py index 5435c5acbba..a8740cd7401 100644 --- a/packages/python/plotly/plotly/validators/box/marker/line/_color.py +++ b/packages/python/plotly/plotly/validators/box/marker/line/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="box.marker.line", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='box.marker.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/marker/line/_outliercolor.py b/packages/python/plotly/plotly/validators/box/marker/line/_outliercolor.py index ee06420559e..22d48073991 100644 --- a/packages/python/plotly/plotly/validators/box/marker/line/_outliercolor.py +++ b/packages/python/plotly/plotly/validators/box/marker/line/_outliercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OutliercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="outliercolor", parent_name="box.marker.line", **kwargs - ): - super(OutliercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutliercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outliercolor', + parent_name='box.marker.line', + **kwargs): + super(OutliercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/marker/line/_outlierwidth.py b/packages/python/plotly/plotly/validators/box/marker/line/_outlierwidth.py index 2f1a9d8b140..06aa9eb307f 100644 --- a/packages/python/plotly/plotly/validators/box/marker/line/_outlierwidth.py +++ b/packages/python/plotly/plotly/validators/box/marker/line/_outlierwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OutlierwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="outlierwidth", parent_name="box.marker.line", **kwargs - ): - super(OutlierwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlierwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlierwidth', + parent_name='box.marker.line', + **kwargs): + super(OutlierwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/marker/line/_width.py b/packages/python/plotly/plotly/validators/box/marker/line/_width.py index d938bf302e3..4898bcd96d3 100644 --- a/packages/python/plotly/plotly/validators/box/marker/line/_width.py +++ b/packages/python/plotly/plotly/validators/box/marker/line/_width.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="box.marker.line", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='box.marker.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/selected/__init__.py b/packages/python/plotly/plotly/validators/box/selected/__init__.py index e9bdb89f26d..8ee3c0f5c26 100644 --- a/packages/python/plotly/plotly/validators/box/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/box/selected/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.MarkerValidator"] + __name__, + [], + ['._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/box/selected/_marker.py b/packages/python/plotly/plotly/validators/box/selected/_marker.py index 35cb47a6592..4c45fbc8d72 100644 --- a/packages/python/plotly/plotly/validators/box/selected/_marker.py +++ b/packages/python/plotly/plotly/validators/box/selected/_marker.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="box.selected", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. - size - Sets the marker size of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='box.selected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/box/selected/marker/__init__.py index 8c321a38bc5..b7768f024e8 100644 --- a/packages/python/plotly/plotly/validators/box/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/box/selected/marker/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._size import SizeValidator from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._size.SizeValidator", - "._opacity.OpacityValidator", - "._color.ColorValidator", - ], + ['._size.SizeValidator', '._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/box/selected/marker/_color.py b/packages/python/plotly/plotly/validators/box/selected/marker/_color.py index 28b3692ad75..6c09058ce3a 100644 --- a/packages/python/plotly/plotly/validators/box/selected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/box/selected/marker/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="box.selected.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='box.selected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/selected/marker/_opacity.py b/packages/python/plotly/plotly/validators/box/selected/marker/_opacity.py index 7ce8a2dd580..551c5449fd9 100644 --- a/packages/python/plotly/plotly/validators/box/selected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/box/selected/marker/_opacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="box.selected.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='box.selected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/selected/marker/_size.py b/packages/python/plotly/plotly/validators/box/selected/marker/_size.py index cc58197458a..a1659335d00 100644 --- a/packages/python/plotly/plotly/validators/box/selected/marker/_size.py +++ b/packages/python/plotly/plotly/validators/box/selected/marker/_size.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="box.selected.marker", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='box.selected.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/stream/__init__.py b/packages/python/plotly/plotly/validators/box/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/box/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/box/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/box/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/box/stream/_maxpoints.py index 874da7def58..28e648a0239 100644 --- a/packages/python/plotly/plotly/validators/box/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/box/stream/_maxpoints.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="maxpoints", parent_name="box.stream", **kwargs): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='box.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/stream/_token.py b/packages/python/plotly/plotly/validators/box/stream/_token.py index 36b10987e46..c3373e922b1 100644 --- a/packages/python/plotly/plotly/validators/box/stream/_token.py +++ b/packages/python/plotly/plotly/validators/box/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="box.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='box.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/unselected/__init__.py b/packages/python/plotly/plotly/validators/box/unselected/__init__.py index e9bdb89f26d..8ee3c0f5c26 100644 --- a/packages/python/plotly/plotly/validators/box/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/box/unselected/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.MarkerValidator"] + __name__, + [], + ['._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/box/unselected/_marker.py b/packages/python/plotly/plotly/validators/box/unselected/_marker.py index dff160f8153..87caf090bf7 100644 --- a/packages/python/plotly/plotly/validators/box/unselected/_marker.py +++ b/packages/python/plotly/plotly/validators/box/unselected/_marker.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="box.unselected", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - size - Sets the marker size of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='box.unselected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/box/unselected/marker/__init__.py index 8c321a38bc5..b7768f024e8 100644 --- a/packages/python/plotly/plotly/validators/box/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/box/unselected/marker/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._size import SizeValidator from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._size.SizeValidator", - "._opacity.OpacityValidator", - "._color.ColorValidator", - ], + ['._size.SizeValidator', '._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/box/unselected/marker/_color.py b/packages/python/plotly/plotly/validators/box/unselected/marker/_color.py index eb7066d46b2..34171e2a21b 100644 --- a/packages/python/plotly/plotly/validators/box/unselected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/box/unselected/marker/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="box.unselected.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='box.unselected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/unselected/marker/_opacity.py b/packages/python/plotly/plotly/validators/box/unselected/marker/_opacity.py index 3773c7044db..dc2f90dc709 100644 --- a/packages/python/plotly/plotly/validators/box/unselected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/box/unselected/marker/_opacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="box.unselected.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='box.unselected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/box/unselected/marker/_size.py b/packages/python/plotly/plotly/validators/box/unselected/marker/_size.py index cfe9f3a2e08..175ad183b64 100644 --- a/packages/python/plotly/plotly/validators/box/unselected/marker/_size.py +++ b/packages/python/plotly/plotly/validators/box/unselected/marker/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="box.unselected.marker", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='box.unselected.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/__init__.py b/packages/python/plotly/plotly/validators/candlestick/__init__.py index ad4090b7f54..5e82d33fa0e 100644 --- a/packages/python/plotly/plotly/validators/candlestick/__init__.py +++ b/packages/python/plotly/plotly/validators/candlestick/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zorder import ZorderValidator from ._yhoverformat import YhoverformatValidator @@ -53,59 +52,10 @@ from ._close import CloseValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zorder.ZorderValidator", - "._yhoverformat.YhoverformatValidator", - "._yaxis.YaxisValidator", - "._xsrc.XsrcValidator", - "._xperiodalignment.XperiodalignmentValidator", - "._xperiod0.Xperiod0Validator", - "._xperiod.XperiodValidator", - "._xhoverformat.XhoverformatValidator", - "._xcalendar.XcalendarValidator", - "._xaxis.XaxisValidator", - "._x.XValidator", - "._whiskerwidth.WhiskerwidthValidator", - "._visible.VisibleValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._textsrc.TextsrcValidator", - "._text.TextValidator", - "._stream.StreamValidator", - "._showlegend.ShowlegendValidator", - "._selectedpoints.SelectedpointsValidator", - "._opensrc.OpensrcValidator", - "._open.OpenValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._lowsrc.LowsrcValidator", - "._low.LowValidator", - "._line.LineValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._increasing.IncreasingValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._highsrc.HighsrcValidator", - "._high.HighValidator", - "._decreasing.DecreasingValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._closesrc.ClosesrcValidator", - "._close.CloseValidator", - ], + ['._zorder.ZorderValidator', '._yhoverformat.YhoverformatValidator', '._yaxis.YaxisValidator', '._xsrc.XsrcValidator', '._xperiodalignment.XperiodalignmentValidator', '._xperiod0.Xperiod0Validator', '._xperiod.XperiodValidator', '._xhoverformat.XhoverformatValidator', '._xcalendar.XcalendarValidator', '._xaxis.XaxisValidator', '._x.XValidator', '._whiskerwidth.WhiskerwidthValidator', '._visible.VisibleValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._textsrc.TextsrcValidator', '._text.TextValidator', '._stream.StreamValidator', '._showlegend.ShowlegendValidator', '._selectedpoints.SelectedpointsValidator', '._opensrc.OpensrcValidator', '._open.OpenValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._lowsrc.LowsrcValidator', '._low.LowValidator', '._line.LineValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._increasing.IncreasingValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._highsrc.HighsrcValidator', '._high.HighValidator', '._decreasing.DecreasingValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._closesrc.ClosesrcValidator', '._close.CloseValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/candlestick/_close.py b/packages/python/plotly/plotly/validators/candlestick/_close.py index aa882c38155..1d3f2197427 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_close.py +++ b/packages/python/plotly/plotly/validators/candlestick/_close.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CloseValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="close", parent_name="candlestick", **kwargs): - super(CloseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CloseValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='close', + parent_name='candlestick', + **kwargs): + super(CloseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_closesrc.py b/packages/python/plotly/plotly/validators/candlestick/_closesrc.py index e6b30c635b0..c7f05f1c533 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_closesrc.py +++ b/packages/python/plotly/plotly/validators/candlestick/_closesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ClosesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="closesrc", parent_name="candlestick", **kwargs): - super(ClosesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ClosesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='closesrc', + parent_name='candlestick', + **kwargs): + super(ClosesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_customdata.py b/packages/python/plotly/plotly/validators/candlestick/_customdata.py index 081b023bea2..eb841e6ea5e 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_customdata.py +++ b/packages/python/plotly/plotly/validators/candlestick/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="candlestick", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='candlestick', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_customdatasrc.py b/packages/python/plotly/plotly/validators/candlestick/_customdatasrc.py index 9f1f5962fc9..2f7f6b85958 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/candlestick/_customdatasrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="customdatasrc", parent_name="candlestick", **kwargs - ): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='candlestick', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_decreasing.py b/packages/python/plotly/plotly/validators/candlestick/_decreasing.py index bd24046cd3f..8ac922f0030 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_decreasing.py +++ b/packages/python/plotly/plotly/validators/candlestick/_decreasing.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class DecreasingValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="decreasing", parent_name="candlestick", **kwargs): - super(DecreasingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Decreasing"), - data_docs=kwargs.pop( - "data_docs", - """ - fillcolor - Sets the fill color. Defaults to a half- - transparent variant of the line color, marker - color, or marker line color, whichever is - available. - line - :class:`plotly.graph_objects.candlestick.decrea - sing.Line` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DecreasingValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='decreasing', + parent_name='candlestick', + **kwargs): + super(DecreasingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Decreasing'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_high.py b/packages/python/plotly/plotly/validators/candlestick/_high.py index 7875b4ca4ac..3b3958aebe1 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_high.py +++ b/packages/python/plotly/plotly/validators/candlestick/_high.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HighValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="high", parent_name="candlestick", **kwargs): - super(HighValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HighValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='high', + parent_name='candlestick', + **kwargs): + super(HighValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_highsrc.py b/packages/python/plotly/plotly/validators/candlestick/_highsrc.py index cf23bcf8b76..461d3fe71ed 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_highsrc.py +++ b/packages/python/plotly/plotly/validators/candlestick/_highsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HighsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="highsrc", parent_name="candlestick", **kwargs): - super(HighsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HighsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='highsrc', + parent_name='candlestick', + **kwargs): + super(HighsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_hoverinfo.py b/packages/python/plotly/plotly/validators/candlestick/_hoverinfo.py index 2d674dd6dbe..29dcec18f30 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/candlestick/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="candlestick", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='candlestick', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/candlestick/_hoverinfosrc.py index 5642695f7ce..7411dbd8316 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/candlestick/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="candlestick", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='candlestick', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_hoverlabel.py b/packages/python/plotly/plotly/validators/candlestick/_hoverlabel.py index 274f5c5873e..e7dd8ed02f7 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/candlestick/_hoverlabel.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="candlestick", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - split - Show hover information (open, close, high, low) - in separate labels. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='candlestick', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_hovertext.py b/packages/python/plotly/plotly/validators/candlestick/_hovertext.py index 39e7d0b7a4e..d1a7d7b5960 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_hovertext.py +++ b/packages/python/plotly/plotly/validators/candlestick/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="candlestick", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='candlestick', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_hovertextsrc.py b/packages/python/plotly/plotly/validators/candlestick/_hovertextsrc.py index 624a95d8435..f3bc4bcaea2 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/candlestick/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="candlestick", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='candlestick', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_ids.py b/packages/python/plotly/plotly/validators/candlestick/_ids.py index 6f32ec6b9b6..4ef2f5d86e0 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_ids.py +++ b/packages/python/plotly/plotly/validators/candlestick/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="candlestick", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='candlestick', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_idssrc.py b/packages/python/plotly/plotly/validators/candlestick/_idssrc.py index 2197f6a914d..aee42a45c7b 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_idssrc.py +++ b/packages/python/plotly/plotly/validators/candlestick/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="candlestick", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='candlestick', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_increasing.py b/packages/python/plotly/plotly/validators/candlestick/_increasing.py index 7577bd191cd..226e8ccd19e 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_increasing.py +++ b/packages/python/plotly/plotly/validators/candlestick/_increasing.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class IncreasingValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="increasing", parent_name="candlestick", **kwargs): - super(IncreasingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Increasing"), - data_docs=kwargs.pop( - "data_docs", - """ - fillcolor - Sets the fill color. Defaults to a half- - transparent variant of the line color, marker - color, or marker line color, whichever is - available. - line - :class:`plotly.graph_objects.candlestick.increa - sing.Line` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IncreasingValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='increasing', + parent_name='candlestick', + **kwargs): + super(IncreasingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Increasing'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_legend.py b/packages/python/plotly/plotly/validators/candlestick/_legend.py index 899ab2e3f74..c3001c654fe 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_legend.py +++ b/packages/python/plotly/plotly/validators/candlestick/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="candlestick", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='candlestick', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_legendgroup.py b/packages/python/plotly/plotly/validators/candlestick/_legendgroup.py index 849481ed804..5048b062c40 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/candlestick/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="candlestick", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='candlestick', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/candlestick/_legendgrouptitle.py index d683367ef32..e5ca476f719 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/candlestick/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="candlestick", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='candlestick', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_legendrank.py b/packages/python/plotly/plotly/validators/candlestick/_legendrank.py index d168f5854b2..d3ef10dc443 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_legendrank.py +++ b/packages/python/plotly/plotly/validators/candlestick/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="candlestick", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='candlestick', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_legendwidth.py b/packages/python/plotly/plotly/validators/candlestick/_legendwidth.py index f3a6a8ec62e..5fa9809b9aa 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/candlestick/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="candlestick", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='candlestick', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_line.py b/packages/python/plotly/plotly/validators/candlestick/_line.py index 7f168b6aa54..e8ebc8d379a 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_line.py +++ b/packages/python/plotly/plotly/validators/candlestick/_line.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="candlestick", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - width - Sets the width (in px) of line bounding the - box(es). Note that this style setting can also - be set per direction via - `increasing.line.width` and - `decreasing.line.width`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='candlestick', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_low.py b/packages/python/plotly/plotly/validators/candlestick/_low.py index 45a12d0987f..cc55ef8c8b8 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_low.py +++ b/packages/python/plotly/plotly/validators/candlestick/_low.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LowValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="low", parent_name="candlestick", **kwargs): - super(LowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LowValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='low', + parent_name='candlestick', + **kwargs): + super(LowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_lowsrc.py b/packages/python/plotly/plotly/validators/candlestick/_lowsrc.py index 2bdf22746b5..1440293f860 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_lowsrc.py +++ b/packages/python/plotly/plotly/validators/candlestick/_lowsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="lowsrc", parent_name="candlestick", **kwargs): - super(LowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='lowsrc', + parent_name='candlestick', + **kwargs): + super(LowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_meta.py b/packages/python/plotly/plotly/validators/candlestick/_meta.py index b604b85f904..129238dc79e 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_meta.py +++ b/packages/python/plotly/plotly/validators/candlestick/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="candlestick", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='candlestick', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_metasrc.py b/packages/python/plotly/plotly/validators/candlestick/_metasrc.py index c33b7e49e14..19aca7a2efd 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_metasrc.py +++ b/packages/python/plotly/plotly/validators/candlestick/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="candlestick", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='candlestick', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_name.py b/packages/python/plotly/plotly/validators/candlestick/_name.py index ae23cc4a5be..45cfa0c955a 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_name.py +++ b/packages/python/plotly/plotly/validators/candlestick/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="candlestick", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='candlestick', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_opacity.py b/packages/python/plotly/plotly/validators/candlestick/_opacity.py index 7ead8254b35..a33ced2278c 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_opacity.py +++ b/packages/python/plotly/plotly/validators/candlestick/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="candlestick", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='candlestick', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_open.py b/packages/python/plotly/plotly/validators/candlestick/_open.py index d969109af57..1b297728af2 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_open.py +++ b/packages/python/plotly/plotly/validators/candlestick/_open.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class OpenValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="open", parent_name="candlestick", **kwargs): - super(OpenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpenValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='open', + parent_name='candlestick', + **kwargs): + super(OpenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_opensrc.py b/packages/python/plotly/plotly/validators/candlestick/_opensrc.py index 311dd9633b0..cc4f8a39430 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_opensrc.py +++ b/packages/python/plotly/plotly/validators/candlestick/_opensrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class OpensrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="opensrc", parent_name="candlestick", **kwargs): - super(OpensrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpensrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='opensrc', + parent_name='candlestick', + **kwargs): + super(OpensrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_selectedpoints.py b/packages/python/plotly/plotly/validators/candlestick/_selectedpoints.py index ec62165565b..94e9f1d96c0 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_selectedpoints.py +++ b/packages/python/plotly/plotly/validators/candlestick/_selectedpoints.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="selectedpoints", parent_name="candlestick", **kwargs - ): - super(SelectedpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SelectedpointsValidator(_bv.AnyValidator): + def __init__(self, plotly_name='selectedpoints', + parent_name='candlestick', + **kwargs): + super(SelectedpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_showlegend.py b/packages/python/plotly/plotly/validators/candlestick/_showlegend.py index 7588a298c14..864e0e9c131 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_showlegend.py +++ b/packages/python/plotly/plotly/validators/candlestick/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="candlestick", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='candlestick', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_stream.py b/packages/python/plotly/plotly/validators/candlestick/_stream.py index 896c1b93199..72b856a85a4 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_stream.py +++ b/packages/python/plotly/plotly/validators/candlestick/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="candlestick", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='candlestick', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_text.py b/packages/python/plotly/plotly/validators/candlestick/_text.py index e5edada3214..afaeb4789a1 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_text.py +++ b/packages/python/plotly/plotly/validators/candlestick/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="candlestick", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='candlestick', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_textsrc.py b/packages/python/plotly/plotly/validators/candlestick/_textsrc.py index 0b76dbf853a..7c17dadadc6 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_textsrc.py +++ b/packages/python/plotly/plotly/validators/candlestick/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="candlestick", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='candlestick', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_uid.py b/packages/python/plotly/plotly/validators/candlestick/_uid.py index 1668723f088..f2f5e2d07be 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_uid.py +++ b/packages/python/plotly/plotly/validators/candlestick/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="candlestick", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='candlestick', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_uirevision.py b/packages/python/plotly/plotly/validators/candlestick/_uirevision.py index 3c92f0dc6c9..e8a71d4d15c 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_uirevision.py +++ b/packages/python/plotly/plotly/validators/candlestick/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="candlestick", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='candlestick', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_visible.py b/packages/python/plotly/plotly/validators/candlestick/_visible.py index ba9e64239e6..41f3c946151 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_visible.py +++ b/packages/python/plotly/plotly/validators/candlestick/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="candlestick", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='candlestick', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_whiskerwidth.py b/packages/python/plotly/plotly/validators/candlestick/_whiskerwidth.py index 3d74487d2c5..b88a7f16c85 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_whiskerwidth.py +++ b/packages/python/plotly/plotly/validators/candlestick/_whiskerwidth.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class WhiskerwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="whiskerwidth", parent_name="candlestick", **kwargs): - super(WhiskerwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WhiskerwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='whiskerwidth', + parent_name='candlestick', + **kwargs): + super(WhiskerwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_x.py b/packages/python/plotly/plotly/validators/candlestick/_x.py index e6ebee31387..b7e2971d6fa 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_x.py +++ b/packages/python/plotly/plotly/validators/candlestick/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="x", parent_name="candlestick", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='x', + parent_name='candlestick', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_xaxis.py b/packages/python/plotly/plotly/validators/candlestick/_xaxis.py index 50443d20b9a..edfb177601f 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_xaxis.py +++ b/packages/python/plotly/plotly/validators/candlestick/_xaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="xaxis", parent_name="candlestick", **kwargs): - super(XaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "x"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='xaxis', + parent_name='candlestick', + **kwargs): + super(XaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'x'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_xcalendar.py b/packages/python/plotly/plotly/validators/candlestick/_xcalendar.py index 142ec652ac7..9ccd7e67845 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_xcalendar.py +++ b/packages/python/plotly/plotly/validators/candlestick/_xcalendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xcalendar", parent_name="candlestick", **kwargs): - super(XcalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XcalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xcalendar', + parent_name='candlestick', + **kwargs): + super(XcalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_xhoverformat.py b/packages/python/plotly/plotly/validators/candlestick/_xhoverformat.py index 2e34c438253..60b872d9c90 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_xhoverformat.py +++ b/packages/python/plotly/plotly/validators/candlestick/_xhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="xhoverformat", parent_name="candlestick", **kwargs): - super(XhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='xhoverformat', + parent_name='candlestick', + **kwargs): + super(XhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_xperiod.py b/packages/python/plotly/plotly/validators/candlestick/_xperiod.py index 8d3a25fd31f..27f4b196639 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_xperiod.py +++ b/packages/python/plotly/plotly/validators/candlestick/_xperiod.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XperiodValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="xperiod", parent_name="candlestick", **kwargs): - super(XperiodValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XperiodValidator(_bv.AnyValidator): + def __init__(self, plotly_name='xperiod', + parent_name='candlestick', + **kwargs): + super(XperiodValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_xperiod0.py b/packages/python/plotly/plotly/validators/candlestick/_xperiod0.py index 29e4b848e3d..a4d9dae62d9 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_xperiod0.py +++ b/packages/python/plotly/plotly/validators/candlestick/_xperiod0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Xperiod0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="xperiod0", parent_name="candlestick", **kwargs): - super(Xperiod0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Xperiod0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='xperiod0', + parent_name='candlestick', + **kwargs): + super(Xperiod0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_xperiodalignment.py b/packages/python/plotly/plotly/validators/candlestick/_xperiodalignment.py index 3cd653b2a82..4662a79e9d7 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_xperiodalignment.py +++ b/packages/python/plotly/plotly/validators/candlestick/_xperiodalignment.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xperiodalignment", parent_name="candlestick", **kwargs - ): - super(XperiodalignmentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["start", "middle", "end"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XperiodalignmentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xperiodalignment', + parent_name='candlestick', + **kwargs): + super(XperiodalignmentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['start', 'middle', 'end']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_xsrc.py b/packages/python/plotly/plotly/validators/candlestick/_xsrc.py index acbd1919bba..10f845006bd 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_xsrc.py +++ b/packages/python/plotly/plotly/validators/candlestick/_xsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="xsrc", parent_name="candlestick", **kwargs): - super(XsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='xsrc', + parent_name='candlestick', + **kwargs): + super(XsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_yaxis.py b/packages/python/plotly/plotly/validators/candlestick/_yaxis.py index affd6a4570e..5502fd01feb 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_yaxis.py +++ b/packages/python/plotly/plotly/validators/candlestick/_yaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="yaxis", parent_name="candlestick", **kwargs): - super(YaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "y"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='yaxis', + parent_name='candlestick', + **kwargs): + super(YaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'y'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_yhoverformat.py b/packages/python/plotly/plotly/validators/candlestick/_yhoverformat.py index d38420a84dd..771952484a0 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_yhoverformat.py +++ b/packages/python/plotly/plotly/validators/candlestick/_yhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="yhoverformat", parent_name="candlestick", **kwargs): - super(YhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='yhoverformat', + parent_name='candlestick', + **kwargs): + super(YhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/_zorder.py b/packages/python/plotly/plotly/validators/candlestick/_zorder.py index cb084aaa506..6d83153e44f 100644 --- a/packages/python/plotly/plotly/validators/candlestick/_zorder.py +++ b/packages/python/plotly/plotly/validators/candlestick/_zorder.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="zorder", parent_name="candlestick", **kwargs): - super(ZorderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZorderValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='zorder', + parent_name='candlestick', + **kwargs): + super(ZorderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/decreasing/__init__.py b/packages/python/plotly/plotly/validators/candlestick/decreasing/__init__.py index 07aaa323c2b..ab0b17fcd8c 100644 --- a/packages/python/plotly/plotly/validators/candlestick/decreasing/__init__.py +++ b/packages/python/plotly/plotly/validators/candlestick/decreasing/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import LineValidator from ._fillcolor import FillcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._line.LineValidator", "._fillcolor.FillcolorValidator"] + __name__, + [], + ['._line.LineValidator', '._fillcolor.FillcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/candlestick/decreasing/_fillcolor.py b/packages/python/plotly/plotly/validators/candlestick/decreasing/_fillcolor.py index 50f6ac57abc..c4f20d895c6 100644 --- a/packages/python/plotly/plotly/validators/candlestick/decreasing/_fillcolor.py +++ b/packages/python/plotly/plotly/validators/candlestick/decreasing/_fillcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="fillcolor", parent_name="candlestick.decreasing", **kwargs - ): - super(FillcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fillcolor', + parent_name='candlestick.decreasing', + **kwargs): + super(FillcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/decreasing/_line.py b/packages/python/plotly/plotly/validators/candlestick/decreasing/_line.py index 1fc4bc295d6..1c01f5a5140 100644 --- a/packages/python/plotly/plotly/validators/candlestick/decreasing/_line.py +++ b/packages/python/plotly/plotly/validators/candlestick/decreasing/_line.py @@ -1,23 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="line", parent_name="candlestick.decreasing", **kwargs - ): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the color of line bounding the box(es). - width - Sets the width (in px) of line bounding the - box(es). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='candlestick.decreasing', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/decreasing/line/__init__.py b/packages/python/plotly/plotly/validators/candlestick/decreasing/line/__init__.py index 63a516578b5..e9749ddd90c 100644 --- a/packages/python/plotly/plotly/validators/candlestick/decreasing/line/__init__.py +++ b/packages/python/plotly/plotly/validators/candlestick/decreasing/line/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._width.WidthValidator", "._color.ColorValidator"] + __name__, + [], + ['._width.WidthValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/candlestick/decreasing/line/_color.py b/packages/python/plotly/plotly/validators/candlestick/decreasing/line/_color.py index 4a472cba46a..763b20a78c9 100644 --- a/packages/python/plotly/plotly/validators/candlestick/decreasing/line/_color.py +++ b/packages/python/plotly/plotly/validators/candlestick/decreasing/line/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="candlestick.decreasing.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='candlestick.decreasing.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/decreasing/line/_width.py b/packages/python/plotly/plotly/validators/candlestick/decreasing/line/_width.py index 178378059c2..c5517cc993a 100644 --- a/packages/python/plotly/plotly/validators/candlestick/decreasing/line/_width.py +++ b/packages/python/plotly/plotly/validators/candlestick/decreasing/line/_width.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="candlestick.decreasing.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='candlestick.decreasing.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/__init__.py index 5504c36e76f..f717a1a9721 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._split import SplitValidator from ._namelengthsrc import NamelengthsrcValidator @@ -14,20 +13,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._split.SplitValidator", - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._split.SplitValidator', '._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_align.py index 9b8e5869804..f0ab2eb5fce 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_align.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="align", parent_name="candlestick.hoverlabel", **kwargs - ): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='candlestick.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_alignsrc.py index ba196f76151..427189aa479 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="candlestick.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='candlestick.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_bgcolor.py index ac79bc46a38..af1bb41868a 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="candlestick.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='candlestick.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_bgcolorsrc.py index 2fe71ab30b1..5f22f5f9fe2 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="candlestick.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='candlestick.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_bordercolor.py index bc694e0ddc1..23b5ff9fd8a 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="candlestick.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='candlestick.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_bordercolorsrc.py index 27ce604d13a..b806c67ae04 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="bordercolorsrc", - parent_name="candlestick.hoverlabel", - **kwargs, - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='candlestick.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_font.py index 580977fe24c..a3d2034a8b9 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_font.py @@ -1,88 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="candlestick.hoverlabel", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='candlestick.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_namelength.py index 156b95441a6..66d64e81e9c 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="candlestick.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='candlestick.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_namelengthsrc.py index 1bcb9cffe77..4693f715af9 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_namelengthsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="namelengthsrc", - parent_name="candlestick.hoverlabel", - **kwargs, - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='candlestick.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_split.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_split.py index b8fc33251e9..92b6343a2a5 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_split.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/_split.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SplitValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="split", parent_name="candlestick.hoverlabel", **kwargs - ): - super(SplitValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SplitValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='split', + parent_name='candlestick.hoverlabel', + **kwargs): + super(SplitValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_color.py index 596d135e398..6e65802b087 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="candlestick.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='candlestick.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_colorsrc.py index 04bf818a9b6..2ebaa60af55 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_colorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="colorsrc", - parent_name="candlestick.hoverlabel.font", - **kwargs, - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='candlestick.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_family.py index 2c0d9897826..3b9e359e59f 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="candlestick.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='candlestick.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_familysrc.py index 7aeead762b6..753f05e9dcd 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_familysrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="familysrc", - parent_name="candlestick.hoverlabel.font", - **kwargs, - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='candlestick.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_lineposition.py index 68e16a20c74..4efca4d8037 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="candlestick.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='candlestick.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_linepositionsrc.py index b86eab99aec..6f21799ecd0 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="candlestick.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='candlestick.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_shadow.py index d959626dc78..e2ea57397cd 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="candlestick.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='candlestick.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_shadowsrc.py index 45df55b8c7a..2c8cfc9784e 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="shadowsrc", - parent_name="candlestick.hoverlabel.font", - **kwargs, - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='candlestick.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_size.py index 9e6a1257f39..9d0aa22d10b 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="candlestick.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='candlestick.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_sizesrc.py index 3c22d6fb15f..b58952eddf2 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="candlestick.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='candlestick.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_style.py index cdfddde3458..be43f9de3bf 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="candlestick.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='candlestick.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_stylesrc.py index ed3b1c3778f..9b068f71a0b 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_stylesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="stylesrc", - parent_name="candlestick.hoverlabel.font", - **kwargs, - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='candlestick.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_textcase.py index a01c4d85a27..ba5ba8b85fd 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_textcase.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="candlestick.hoverlabel.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='candlestick.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_textcasesrc.py index fc566982a5d..5d4d7b58a17 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="candlestick.hoverlabel.font", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='candlestick.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_variant.py index 94dbcf0856f..a0ab55b3435 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="candlestick.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='candlestick.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_variantsrc.py index bcb1fd117b3..4b398e7440f 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_variantsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="variantsrc", - parent_name="candlestick.hoverlabel.font", - **kwargs, - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='candlestick.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_weight.py index 7525538684c..d8daf54ba58 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="candlestick.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='candlestick.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_weightsrc.py index ea7e93201bf..5d842daef4c 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/_weightsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="weightsrc", - parent_name="candlestick.hoverlabel.font", - **kwargs, - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='candlestick.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/increasing/__init__.py b/packages/python/plotly/plotly/validators/candlestick/increasing/__init__.py index 07aaa323c2b..ab0b17fcd8c 100644 --- a/packages/python/plotly/plotly/validators/candlestick/increasing/__init__.py +++ b/packages/python/plotly/plotly/validators/candlestick/increasing/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import LineValidator from ._fillcolor import FillcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._line.LineValidator", "._fillcolor.FillcolorValidator"] + __name__, + [], + ['._line.LineValidator', '._fillcolor.FillcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/candlestick/increasing/_fillcolor.py b/packages/python/plotly/plotly/validators/candlestick/increasing/_fillcolor.py index e92c67124c6..b5e9aad4ecc 100644 --- a/packages/python/plotly/plotly/validators/candlestick/increasing/_fillcolor.py +++ b/packages/python/plotly/plotly/validators/candlestick/increasing/_fillcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="fillcolor", parent_name="candlestick.increasing", **kwargs - ): - super(FillcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fillcolor', + parent_name='candlestick.increasing', + **kwargs): + super(FillcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/increasing/_line.py b/packages/python/plotly/plotly/validators/candlestick/increasing/_line.py index 795d7b268c0..e0271111077 100644 --- a/packages/python/plotly/plotly/validators/candlestick/increasing/_line.py +++ b/packages/python/plotly/plotly/validators/candlestick/increasing/_line.py @@ -1,23 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="line", parent_name="candlestick.increasing", **kwargs - ): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the color of line bounding the box(es). - width - Sets the width (in px) of line bounding the - box(es). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='candlestick.increasing', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/increasing/line/__init__.py b/packages/python/plotly/plotly/validators/candlestick/increasing/line/__init__.py index 63a516578b5..e9749ddd90c 100644 --- a/packages/python/plotly/plotly/validators/candlestick/increasing/line/__init__.py +++ b/packages/python/plotly/plotly/validators/candlestick/increasing/line/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._width.WidthValidator", "._color.ColorValidator"] + __name__, + [], + ['._width.WidthValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/candlestick/increasing/line/_color.py b/packages/python/plotly/plotly/validators/candlestick/increasing/line/_color.py index 41f12609ab0..6713143e180 100644 --- a/packages/python/plotly/plotly/validators/candlestick/increasing/line/_color.py +++ b/packages/python/plotly/plotly/validators/candlestick/increasing/line/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="candlestick.increasing.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='candlestick.increasing.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/increasing/line/_width.py b/packages/python/plotly/plotly/validators/candlestick/increasing/line/_width.py index 81615634b62..7301229df2e 100644 --- a/packages/python/plotly/plotly/validators/candlestick/increasing/line/_width.py +++ b/packages/python/plotly/plotly/validators/candlestick/increasing/line/_width.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="candlestick.increasing.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='candlestick.increasing.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/_font.py index 62873f1c2b1..74200b90ae0 100644 --- a/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="candlestick.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='candlestick.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/_text.py index 0898b7026c5..d6aa63a0c98 100644 --- a/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="candlestick.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='candlestick.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_color.py index 97477e09d68..3f460095027 100644 --- a/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="candlestick.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='candlestick.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_family.py index 8ed4dc9a9dc..f304d67ffb6 100644 --- a/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="candlestick.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='candlestick.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_lineposition.py index 7abca229030..c1ad997723a 100644 --- a/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="candlestick.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='candlestick.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_shadow.py index 0e8d2c3263f..3d614c628ae 100644 --- a/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="candlestick.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='candlestick.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_size.py index bef3eea5947..5480b9c54b0 100644 --- a/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="candlestick.legendgrouptitle.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='candlestick.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_style.py index dc8ae59a187..37288183b8a 100644 --- a/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="candlestick.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='candlestick.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_textcase.py index 19b8710fe11..d3df7d28352 100644 --- a/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="candlestick.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='candlestick.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_variant.py index c785a04e535..7fb68164b7e 100644 --- a/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="candlestick.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='candlestick.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_weight.py index b2eb97d9f51..8b1030613e3 100644 --- a/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/candlestick/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="candlestick.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='candlestick.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/line/__init__.py b/packages/python/plotly/plotly/validators/candlestick/line/__init__.py index 99e75bd2714..53372098283 100644 --- a/packages/python/plotly/plotly/validators/candlestick/line/__init__.py +++ b/packages/python/plotly/plotly/validators/candlestick/line/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._width.WidthValidator"] + __name__, + [], + ['._width.WidthValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/candlestick/line/_width.py b/packages/python/plotly/plotly/validators/candlestick/line/_width.py index c34b2bec855..cebb5babbc7 100644 --- a/packages/python/plotly/plotly/validators/candlestick/line/_width.py +++ b/packages/python/plotly/plotly/validators/candlestick/line/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="candlestick.line", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='candlestick.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/stream/__init__.py b/packages/python/plotly/plotly/validators/candlestick/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/candlestick/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/candlestick/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/candlestick/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/candlestick/stream/_maxpoints.py index 36e63a006b9..81ab6aca3d4 100644 --- a/packages/python/plotly/plotly/validators/candlestick/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/candlestick/stream/_maxpoints.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxpoints", parent_name="candlestick.stream", **kwargs - ): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='candlestick.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/candlestick/stream/_token.py b/packages/python/plotly/plotly/validators/candlestick/stream/_token.py index 3f569028c9a..ad00869779e 100644 --- a/packages/python/plotly/plotly/validators/candlestick/stream/_token.py +++ b/packages/python/plotly/plotly/validators/candlestick/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="candlestick.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='candlestick.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/__init__.py b/packages/python/plotly/plotly/validators/carpet/__init__.py index 93ee44386eb..efd830336a2 100644 --- a/packages/python/plotly/plotly/validators/carpet/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zorder import ZorderValidator from ._ysrc import YsrcValidator @@ -41,47 +40,10 @@ from ._a import AValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zorder.ZorderValidator", - "._ysrc.YsrcValidator", - "._yaxis.YaxisValidator", - "._y.YValidator", - "._xsrc.XsrcValidator", - "._xaxis.XaxisValidator", - "._x.XValidator", - "._visible.VisibleValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._stream.StreamValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legend.LegendValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._font.FontValidator", - "._db.DbValidator", - "._da.DaValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._color.ColorValidator", - "._cheaterslope.CheaterslopeValidator", - "._carpet.CarpetValidator", - "._bsrc.BsrcValidator", - "._baxis.BaxisValidator", - "._b0.B0Validator", - "._b.BValidator", - "._asrc.AsrcValidator", - "._aaxis.AaxisValidator", - "._a0.A0Validator", - "._a.AValidator", - ], + ['._zorder.ZorderValidator', '._ysrc.YsrcValidator', '._yaxis.YaxisValidator', '._y.YValidator', '._xsrc.XsrcValidator', '._xaxis.XaxisValidator', '._x.XValidator', '._visible.VisibleValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._stream.StreamValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legend.LegendValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._font.FontValidator', '._db.DbValidator', '._da.DaValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._color.ColorValidator', '._cheaterslope.CheaterslopeValidator', '._carpet.CarpetValidator', '._bsrc.BsrcValidator', '._baxis.BaxisValidator', '._b0.B0Validator', '._b.BValidator', '._asrc.AsrcValidator', '._aaxis.AaxisValidator', '._a0.A0Validator', '._a.AValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/carpet/_a.py b/packages/python/plotly/plotly/validators/carpet/_a.py index f81ae659a9a..4dd32d503f3 100644 --- a/packages/python/plotly/plotly/validators/carpet/_a.py +++ b/packages/python/plotly/plotly/validators/carpet/_a.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="a", parent_name="carpet", **kwargs): - super(AValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='a', + parent_name='carpet', + **kwargs): + super(AValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_a0.py b/packages/python/plotly/plotly/validators/carpet/_a0.py index 57204e2d74a..05abfce5a72 100644 --- a/packages/python/plotly/plotly/validators/carpet/_a0.py +++ b/packages/python/plotly/plotly/validators/carpet/_a0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class A0Validator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="a0", parent_name="carpet", **kwargs): - super(A0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class A0Validator(_bv.NumberValidator): + def __init__(self, plotly_name='a0', + parent_name='carpet', + **kwargs): + super(A0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_aaxis.py b/packages/python/plotly/plotly/validators/carpet/_aaxis.py index f482fd8bba9..b51ce108b2c 100644 --- a/packages/python/plotly/plotly/validators/carpet/_aaxis.py +++ b/packages/python/plotly/plotly/validators/carpet/_aaxis.py @@ -1,251 +1,15 @@ -import _plotly_utils.basevalidators -class AaxisValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="aaxis", parent_name="carpet", **kwargs): - super(AaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Aaxis"), - data_docs=kwargs.pop( - "data_docs", - """ - arraydtick - The stride between grid lines along the axis - arraytick0 - The starting index of grid lines along the axis - autorange - Determines whether or not the range of this - axis is computed in relation to the input data. - See `rangemode` for more info. If `range` is - provided, then `autorange` is set to False. - autotypenumbers - Using "strict" a numeric string in trace data - is not converted to a number. Using *convert - types* a numeric string in trace data may be - treated as a number during automatic axis - `type` detection. Defaults to - layout.autotypenumbers. - categoryarray - Sets the order in which categories on this axis - appear. Only has an effect if `categoryorder` - is set to "array". Used with `categoryorder`. - categoryarraysrc - Sets the source reference on Chart Studio Cloud - for `categoryarray`. - categoryorder - Specifies the ordering logic for the case of - categorical variables. By default, plotly uses - "trace", which specifies the order that is - present in the data supplied. Set - `categoryorder` to *category ascending* or - *category descending* if order should be - determined by the alphanumerical order of the - category names. Set `categoryorder` to "array" - to derive the ordering from the attribute - `categoryarray`. If a category is not found in - the `categoryarray` array, the sorting behavior - for that attribute will be identical to the - "trace" mode. The unspecified categories will - follow the categories in `categoryarray`. - cheatertype +import _plotly_utils.basevalidators as _bv - color - Sets default for all colors associated with - this axis all at once: line, font, tick, and - grid colors. Grid color is lightened by - blending this with the plot background - Individual pieces can override this. - dtick - The stride between grid lines along the axis - endline - Determines whether or not a line is drawn at - along the final value of this axis. If True, - the end line is drawn on top of the grid lines. - endlinecolor - Sets the line color of the end line. - endlinewidth - Sets the width (in px) of the end line. - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - fixedrange - Determines whether or not this axis is zoom- - able. If true, then zoom is disabled. - gridcolor - Sets the axis line 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 width (in px) of the axis line. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - labelpadding - Extra padding between label and the axis - labelprefix - Sets a axis label prefix. - labelsuffix - Sets a axis label suffix. - linecolor - Sets the axis line color. - linewidth - Sets the width (in px) of the axis line. - minexponent - Hide SI prefix for 10^n if |n| is below this - number - minorgridcolor - Sets the color of the grid lines. - minorgridcount - Sets the number of minor grid ticks per major - grid tick - minorgriddash - 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"). - minorgridwidth - Sets the width (in px) of the grid lines. - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - range - Sets the range of this axis. If the axis `type` - is "log", then you must take the log of your - desired range (e.g. to set the range from 1 to - 100, set the range from 0 to 2). If the axis - `type` is "date", it should be date strings, - like date data, though Date objects and unix - milliseconds will be accepted and converted to - strings. If the axis `type` is "category", it - should be numbers, using the scale where each - category is assigned a serial number from zero - in the order it appears. - rangemode - If "normal", the range is computed in relation - to the extrema of the input data. If *tozero*`, - the range extends to 0, regardless of the input - data If "nonnegative", the range is non- - negative, regardless of the input data. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - showline - Determines whether or not a line bounding this - axis is drawn. - showticklabels - Determines whether axis labels are drawn on the - low side, the high side, both, or neither side - of the axis. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - smoothing - startline - Determines whether or not a line is drawn at - along the starting value of this axis. If True, - the start line is drawn on top of the grid - lines. - startlinecolor - Sets the line color of the start line. - startlinewidth - Sets the width (in px) of the start line. - tick0 - The starting index of grid lines along the axis - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickfont - Sets the tick font. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.carpet. - aaxis.Tickformatstop` instances or dicts with - compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.carpet.aaxis.tickformatstopdefaults), sets - the default property values to use for elements - of carpet.aaxis.tickformatstops - tickmode - - tickprefix - Sets a tick label prefix. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - title - :class:`plotly.graph_objects.carpet.aaxis.Title - ` instance or dict with compatible properties - type - Sets the axis type. By default, plotly attempts - to determined the axis type by looking into the - data of the traces that referenced the axis in - question. -""", - ), - **kwargs, - ) +class AaxisValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='aaxis', + parent_name='carpet', + **kwargs): + super(AaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Aaxis'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_asrc.py b/packages/python/plotly/plotly/validators/carpet/_asrc.py index f0e213d32f0..c98c1c08096 100644 --- a/packages/python/plotly/plotly/validators/carpet/_asrc.py +++ b/packages/python/plotly/plotly/validators/carpet/_asrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="asrc", parent_name="carpet", **kwargs): - super(AsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='asrc', + parent_name='carpet', + **kwargs): + super(AsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_b.py b/packages/python/plotly/plotly/validators/carpet/_b.py index 545a72f7897..b91a838ffa2 100644 --- a/packages/python/plotly/plotly/validators/carpet/_b.py +++ b/packages/python/plotly/plotly/validators/carpet/_b.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="b", parent_name="carpet", **kwargs): - super(BValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='b', + parent_name='carpet', + **kwargs): + super(BValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_b0.py b/packages/python/plotly/plotly/validators/carpet/_b0.py index 7f6b8166b20..9755be76985 100644 --- a/packages/python/plotly/plotly/validators/carpet/_b0.py +++ b/packages/python/plotly/plotly/validators/carpet/_b0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class B0Validator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="b0", parent_name="carpet", **kwargs): - super(B0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class B0Validator(_bv.NumberValidator): + def __init__(self, plotly_name='b0', + parent_name='carpet', + **kwargs): + super(B0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_baxis.py b/packages/python/plotly/plotly/validators/carpet/_baxis.py index dbcc47c6320..a16743b665e 100644 --- a/packages/python/plotly/plotly/validators/carpet/_baxis.py +++ b/packages/python/plotly/plotly/validators/carpet/_baxis.py @@ -1,251 +1,15 @@ -import _plotly_utils.basevalidators -class BaxisValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="baxis", parent_name="carpet", **kwargs): - super(BaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Baxis"), - data_docs=kwargs.pop( - "data_docs", - """ - arraydtick - The stride between grid lines along the axis - arraytick0 - The starting index of grid lines along the axis - autorange - Determines whether or not the range of this - axis is computed in relation to the input data. - See `rangemode` for more info. If `range` is - provided, then `autorange` is set to False. - autotypenumbers - Using "strict" a numeric string in trace data - is not converted to a number. Using *convert - types* a numeric string in trace data may be - treated as a number during automatic axis - `type` detection. Defaults to - layout.autotypenumbers. - categoryarray - Sets the order in which categories on this axis - appear. Only has an effect if `categoryorder` - is set to "array". Used with `categoryorder`. - categoryarraysrc - Sets the source reference on Chart Studio Cloud - for `categoryarray`. - categoryorder - Specifies the ordering logic for the case of - categorical variables. By default, plotly uses - "trace", which specifies the order that is - present in the data supplied. Set - `categoryorder` to *category ascending* or - *category descending* if order should be - determined by the alphanumerical order of the - category names. Set `categoryorder` to "array" - to derive the ordering from the attribute - `categoryarray`. If a category is not found in - the `categoryarray` array, the sorting behavior - for that attribute will be identical to the - "trace" mode. The unspecified categories will - follow the categories in `categoryarray`. - cheatertype +import _plotly_utils.basevalidators as _bv - color - Sets default for all colors associated with - this axis all at once: line, font, tick, and - grid colors. Grid color is lightened by - blending this with the plot background - Individual pieces can override this. - dtick - The stride between grid lines along the axis - endline - Determines whether or not a line is drawn at - along the final value of this axis. If True, - the end line is drawn on top of the grid lines. - endlinecolor - Sets the line color of the end line. - endlinewidth - Sets the width (in px) of the end line. - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - fixedrange - Determines whether or not this axis is zoom- - able. If true, then zoom is disabled. - gridcolor - Sets the axis line 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 width (in px) of the axis line. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - labelpadding - Extra padding between label and the axis - labelprefix - Sets a axis label prefix. - labelsuffix - Sets a axis label suffix. - linecolor - Sets the axis line color. - linewidth - Sets the width (in px) of the axis line. - minexponent - Hide SI prefix for 10^n if |n| is below this - number - minorgridcolor - Sets the color of the grid lines. - minorgridcount - Sets the number of minor grid ticks per major - grid tick - minorgriddash - 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"). - minorgridwidth - Sets the width (in px) of the grid lines. - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - range - Sets the range of this axis. If the axis `type` - is "log", then you must take the log of your - desired range (e.g. to set the range from 1 to - 100, set the range from 0 to 2). If the axis - `type` is "date", it should be date strings, - like date data, though Date objects and unix - milliseconds will be accepted and converted to - strings. If the axis `type` is "category", it - should be numbers, using the scale where each - category is assigned a serial number from zero - in the order it appears. - rangemode - If "normal", the range is computed in relation - to the extrema of the input data. If *tozero*`, - the range extends to 0, regardless of the input - data If "nonnegative", the range is non- - negative, regardless of the input data. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - showline - Determines whether or not a line bounding this - axis is drawn. - showticklabels - Determines whether axis labels are drawn on the - low side, the high side, both, or neither side - of the axis. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - smoothing - startline - Determines whether or not a line is drawn at - along the starting value of this axis. If True, - the start line is drawn on top of the grid - lines. - startlinecolor - Sets the line color of the start line. - startlinewidth - Sets the width (in px) of the start line. - tick0 - The starting index of grid lines along the axis - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickfont - Sets the tick font. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.carpet. - baxis.Tickformatstop` instances or dicts with - compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.carpet.baxis.tickformatstopdefaults), sets - the default property values to use for elements - of carpet.baxis.tickformatstops - tickmode - - tickprefix - Sets a tick label prefix. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - title - :class:`plotly.graph_objects.carpet.baxis.Title - ` instance or dict with compatible properties - type - Sets the axis type. By default, plotly attempts - to determined the axis type by looking into the - data of the traces that referenced the axis in - question. -""", - ), - **kwargs, - ) +class BaxisValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='baxis', + parent_name='carpet', + **kwargs): + super(BaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Baxis'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_bsrc.py b/packages/python/plotly/plotly/validators/carpet/_bsrc.py index f4a216d0fa8..fa96d1dd181 100644 --- a/packages/python/plotly/plotly/validators/carpet/_bsrc.py +++ b/packages/python/plotly/plotly/validators/carpet/_bsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="bsrc", parent_name="carpet", **kwargs): - super(BsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bsrc', + parent_name='carpet', + **kwargs): + super(BsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_carpet.py b/packages/python/plotly/plotly/validators/carpet/_carpet.py index e6a2a284354..fab32646c66 100644 --- a/packages/python/plotly/plotly/validators/carpet/_carpet.py +++ b/packages/python/plotly/plotly/validators/carpet/_carpet.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CarpetValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="carpet", parent_name="carpet", **kwargs): - super(CarpetValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CarpetValidator(_bv.StringValidator): + def __init__(self, plotly_name='carpet', + parent_name='carpet', + **kwargs): + super(CarpetValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_cheaterslope.py b/packages/python/plotly/plotly/validators/carpet/_cheaterslope.py index 7b7b7262922..df38d89118d 100644 --- a/packages/python/plotly/plotly/validators/carpet/_cheaterslope.py +++ b/packages/python/plotly/plotly/validators/carpet/_cheaterslope.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CheaterslopeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cheaterslope", parent_name="carpet", **kwargs): - super(CheaterslopeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CheaterslopeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cheaterslope', + parent_name='carpet', + **kwargs): + super(CheaterslopeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_color.py b/packages/python/plotly/plotly/validators/carpet/_color.py index aca2607808c..c2dd5bad360 100644 --- a/packages/python/plotly/plotly/validators/carpet/_color.py +++ b/packages/python/plotly/plotly/validators/carpet/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="carpet", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='carpet', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_customdata.py b/packages/python/plotly/plotly/validators/carpet/_customdata.py index a52b0e5c341..2ef05c019f0 100644 --- a/packages/python/plotly/plotly/validators/carpet/_customdata.py +++ b/packages/python/plotly/plotly/validators/carpet/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="carpet", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='carpet', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_customdatasrc.py b/packages/python/plotly/plotly/validators/carpet/_customdatasrc.py index fba389c4b72..e88ce109a20 100644 --- a/packages/python/plotly/plotly/validators/carpet/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/carpet/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="carpet", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='carpet', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_da.py b/packages/python/plotly/plotly/validators/carpet/_da.py index bb81f48428a..9c11e193829 100644 --- a/packages/python/plotly/plotly/validators/carpet/_da.py +++ b/packages/python/plotly/plotly/validators/carpet/_da.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class DaValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="da", parent_name="carpet", **kwargs): - super(DaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DaValidator(_bv.NumberValidator): + def __init__(self, plotly_name='da', + parent_name='carpet', + **kwargs): + super(DaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_db.py b/packages/python/plotly/plotly/validators/carpet/_db.py index 2c8dd15f5da..47378d39197 100644 --- a/packages/python/plotly/plotly/validators/carpet/_db.py +++ b/packages/python/plotly/plotly/validators/carpet/_db.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class DbValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="db", parent_name="carpet", **kwargs): - super(DbValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DbValidator(_bv.NumberValidator): + def __init__(self, plotly_name='db', + parent_name='carpet', + **kwargs): + super(DbValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_font.py b/packages/python/plotly/plotly/validators/carpet/_font.py index 38ec5d817c2..a522fa74920 100644 --- a/packages/python/plotly/plotly/validators/carpet/_font.py +++ b/packages/python/plotly/plotly/validators/carpet/_font.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="carpet", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='carpet', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_ids.py b/packages/python/plotly/plotly/validators/carpet/_ids.py index 76e9824960f..5efbbfa4138 100644 --- a/packages/python/plotly/plotly/validators/carpet/_ids.py +++ b/packages/python/plotly/plotly/validators/carpet/_ids.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="carpet", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='carpet', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_idssrc.py b/packages/python/plotly/plotly/validators/carpet/_idssrc.py index 98e4fb6ae70..e6b24f693d4 100644 --- a/packages/python/plotly/plotly/validators/carpet/_idssrc.py +++ b/packages/python/plotly/plotly/validators/carpet/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="carpet", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='carpet', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_legend.py b/packages/python/plotly/plotly/validators/carpet/_legend.py index 5483d3ce139..554bb1f4f37 100644 --- a/packages/python/plotly/plotly/validators/carpet/_legend.py +++ b/packages/python/plotly/plotly/validators/carpet/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="carpet", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='carpet', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/carpet/_legendgrouptitle.py index 6c6a94af667..0eaf3cbe3d4 100644 --- a/packages/python/plotly/plotly/validators/carpet/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/carpet/_legendgrouptitle.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="legendgrouptitle", parent_name="carpet", **kwargs): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='carpet', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_legendrank.py b/packages/python/plotly/plotly/validators/carpet/_legendrank.py index bbc7fdee7e6..fdebcc80b34 100644 --- a/packages/python/plotly/plotly/validators/carpet/_legendrank.py +++ b/packages/python/plotly/plotly/validators/carpet/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="carpet", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='carpet', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_legendwidth.py b/packages/python/plotly/plotly/validators/carpet/_legendwidth.py index 76a5fbf857b..24427387ef8 100644 --- a/packages/python/plotly/plotly/validators/carpet/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/carpet/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="carpet", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='carpet', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_meta.py b/packages/python/plotly/plotly/validators/carpet/_meta.py index 25296ba83a7..ceb118775c2 100644 --- a/packages/python/plotly/plotly/validators/carpet/_meta.py +++ b/packages/python/plotly/plotly/validators/carpet/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="carpet", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='carpet', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_metasrc.py b/packages/python/plotly/plotly/validators/carpet/_metasrc.py index 441c5d57720..4ab5fbb4ed1 100644 --- a/packages/python/plotly/plotly/validators/carpet/_metasrc.py +++ b/packages/python/plotly/plotly/validators/carpet/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="carpet", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='carpet', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_name.py b/packages/python/plotly/plotly/validators/carpet/_name.py index eec35ae6081..280130971d4 100644 --- a/packages/python/plotly/plotly/validators/carpet/_name.py +++ b/packages/python/plotly/plotly/validators/carpet/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="carpet", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='carpet', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_opacity.py b/packages/python/plotly/plotly/validators/carpet/_opacity.py index bcdb60fee6e..b5a1fbb210e 100644 --- a/packages/python/plotly/plotly/validators/carpet/_opacity.py +++ b/packages/python/plotly/plotly/validators/carpet/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="carpet", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='carpet', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_stream.py b/packages/python/plotly/plotly/validators/carpet/_stream.py index 80138cc9991..bac5e77ec66 100644 --- a/packages/python/plotly/plotly/validators/carpet/_stream.py +++ b/packages/python/plotly/plotly/validators/carpet/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="carpet", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='carpet', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_uid.py b/packages/python/plotly/plotly/validators/carpet/_uid.py index c49db6d374c..9609aa97786 100644 --- a/packages/python/plotly/plotly/validators/carpet/_uid.py +++ b/packages/python/plotly/plotly/validators/carpet/_uid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="carpet", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='carpet', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_uirevision.py b/packages/python/plotly/plotly/validators/carpet/_uirevision.py index a45d4d90a9e..6e02dd6058a 100644 --- a/packages/python/plotly/plotly/validators/carpet/_uirevision.py +++ b/packages/python/plotly/plotly/validators/carpet/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="carpet", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='carpet', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_visible.py b/packages/python/plotly/plotly/validators/carpet/_visible.py index bc6699a72f2..3e3b51b6c90 100644 --- a/packages/python/plotly/plotly/validators/carpet/_visible.py +++ b/packages/python/plotly/plotly/validators/carpet/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="carpet", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='carpet', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_x.py b/packages/python/plotly/plotly/validators/carpet/_x.py index 81e306b227b..f30f844d321 100644 --- a/packages/python/plotly/plotly/validators/carpet/_x.py +++ b/packages/python/plotly/plotly/validators/carpet/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="x", parent_name="carpet", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='x', + parent_name='carpet', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_xaxis.py b/packages/python/plotly/plotly/validators/carpet/_xaxis.py index 22e0c0e9341..7ae6952ef38 100644 --- a/packages/python/plotly/plotly/validators/carpet/_xaxis.py +++ b/packages/python/plotly/plotly/validators/carpet/_xaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="xaxis", parent_name="carpet", **kwargs): - super(XaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "x"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='xaxis', + parent_name='carpet', + **kwargs): + super(XaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'x'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_xsrc.py b/packages/python/plotly/plotly/validators/carpet/_xsrc.py index da240ceed3e..1f00769c29d 100644 --- a/packages/python/plotly/plotly/validators/carpet/_xsrc.py +++ b/packages/python/plotly/plotly/validators/carpet/_xsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="xsrc", parent_name="carpet", **kwargs): - super(XsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='xsrc', + parent_name='carpet', + **kwargs): + super(XsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_y.py b/packages/python/plotly/plotly/validators/carpet/_y.py index b626a69ac93..97ebda7de40 100644 --- a/packages/python/plotly/plotly/validators/carpet/_y.py +++ b/packages/python/plotly/plotly/validators/carpet/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="y", parent_name="carpet", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='y', + parent_name='carpet', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_yaxis.py b/packages/python/plotly/plotly/validators/carpet/_yaxis.py index d72408ea60e..b8f830adf2d 100644 --- a/packages/python/plotly/plotly/validators/carpet/_yaxis.py +++ b/packages/python/plotly/plotly/validators/carpet/_yaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="yaxis", parent_name="carpet", **kwargs): - super(YaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "y"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='yaxis', + parent_name='carpet', + **kwargs): + super(YaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'y'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_ysrc.py b/packages/python/plotly/plotly/validators/carpet/_ysrc.py index 5f955a124b9..0c72cac090a 100644 --- a/packages/python/plotly/plotly/validators/carpet/_ysrc.py +++ b/packages/python/plotly/plotly/validators/carpet/_ysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="ysrc", parent_name="carpet", **kwargs): - super(YsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ysrc', + parent_name='carpet', + **kwargs): + super(YsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/_zorder.py b/packages/python/plotly/plotly/validators/carpet/_zorder.py index 5d719f1f913..421501d9cfe 100644 --- a/packages/python/plotly/plotly/validators/carpet/_zorder.py +++ b/packages/python/plotly/plotly/validators/carpet/_zorder.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="zorder", parent_name="carpet", **kwargs): - super(ZorderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZorderValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='zorder', + parent_name='carpet', + **kwargs): + super(ZorderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/__init__.py b/packages/python/plotly/plotly/validators/carpet/aaxis/__init__.py index 5d27db03f95..9bb8901a152 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._type import TypeValidator from ._title import TitleValidator @@ -62,68 +61,10 @@ from ._arraydtick import ArraydtickValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._type.TypeValidator", - "._title.TitleValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._startlinewidth.StartlinewidthValidator", - "._startlinecolor.StartlinecolorValidator", - "._startline.StartlineValidator", - "._smoothing.SmoothingValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showline.ShowlineValidator", - "._showgrid.ShowgridValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._rangemode.RangemodeValidator", - "._range.RangeValidator", - "._nticks.NticksValidator", - "._minorgridwidth.MinorgridwidthValidator", - "._minorgriddash.MinorgriddashValidator", - "._minorgridcount.MinorgridcountValidator", - "._minorgridcolor.MinorgridcolorValidator", - "._minexponent.MinexponentValidator", - "._linewidth.LinewidthValidator", - "._linecolor.LinecolorValidator", - "._labelsuffix.LabelsuffixValidator", - "._labelprefix.LabelprefixValidator", - "._labelpadding.LabelpaddingValidator", - "._labelalias.LabelaliasValidator", - "._gridwidth.GridwidthValidator", - "._griddash.GriddashValidator", - "._gridcolor.GridcolorValidator", - "._fixedrange.FixedrangeValidator", - "._exponentformat.ExponentformatValidator", - "._endlinewidth.EndlinewidthValidator", - "._endlinecolor.EndlinecolorValidator", - "._endline.EndlineValidator", - "._dtick.DtickValidator", - "._color.ColorValidator", - "._cheatertype.CheatertypeValidator", - "._categoryorder.CategoryorderValidator", - "._categoryarraysrc.CategoryarraysrcValidator", - "._categoryarray.CategoryarrayValidator", - "._autotypenumbers.AutotypenumbersValidator", - "._autorange.AutorangeValidator", - "._arraytick0.Arraytick0Validator", - "._arraydtick.ArraydtickValidator", - ], + ['._type.TypeValidator', '._title.TitleValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._startlinewidth.StartlinewidthValidator', '._startlinecolor.StartlinecolorValidator', '._startline.StartlineValidator', '._smoothing.SmoothingValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showline.ShowlineValidator', '._showgrid.ShowgridValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._rangemode.RangemodeValidator', '._range.RangeValidator', '._nticks.NticksValidator', '._minorgridwidth.MinorgridwidthValidator', '._minorgriddash.MinorgriddashValidator', '._minorgridcount.MinorgridcountValidator', '._minorgridcolor.MinorgridcolorValidator', '._minexponent.MinexponentValidator', '._linewidth.LinewidthValidator', '._linecolor.LinecolorValidator', '._labelsuffix.LabelsuffixValidator', '._labelprefix.LabelprefixValidator', '._labelpadding.LabelpaddingValidator', '._labelalias.LabelaliasValidator', '._gridwidth.GridwidthValidator', '._griddash.GriddashValidator', '._gridcolor.GridcolorValidator', '._fixedrange.FixedrangeValidator', '._exponentformat.ExponentformatValidator', '._endlinewidth.EndlinewidthValidator', '._endlinecolor.EndlinecolorValidator', '._endline.EndlineValidator', '._dtick.DtickValidator', '._color.ColorValidator', '._cheatertype.CheatertypeValidator', '._categoryorder.CategoryorderValidator', '._categoryarraysrc.CategoryarraysrcValidator', '._categoryarray.CategoryarrayValidator', '._autotypenumbers.AutotypenumbersValidator', '._autorange.AutorangeValidator', '._arraytick0.Arraytick0Validator', '._arraydtick.ArraydtickValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_arraydtick.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_arraydtick.py index be8b9e6b66f..403c2a328ef 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_arraydtick.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_arraydtick.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ArraydtickValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="arraydtick", parent_name="carpet.aaxis", **kwargs): - super(ArraydtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArraydtickValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='arraydtick', + parent_name='carpet.aaxis', + **kwargs): + super(ArraydtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_arraytick0.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_arraytick0.py index f15e03c5b1b..46dc73dfadc 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_arraytick0.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_arraytick0.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class Arraytick0Validator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="arraytick0", parent_name="carpet.aaxis", **kwargs): - super(Arraytick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Arraytick0Validator(_bv.IntegerValidator): + def __init__(self, plotly_name='arraytick0', + parent_name='carpet.aaxis', + **kwargs): + super(Arraytick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_autorange.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_autorange.py index 642c06f31ac..33cb425c7f4 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_autorange.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_autorange.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutorangeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="autorange", parent_name="carpet.aaxis", **kwargs): - super(AutorangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "reversed"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutorangeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='autorange', + parent_name='carpet.aaxis', + **kwargs): + super(AutorangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'reversed']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_autotypenumbers.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_autotypenumbers.py index 9effc861b32..c7fd7ad7acb 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_autotypenumbers.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_autotypenumbers.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutotypenumbersValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="autotypenumbers", parent_name="carpet.aaxis", **kwargs - ): - super(AutotypenumbersValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["convert types", "strict"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutotypenumbersValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='autotypenumbers', + parent_name='carpet.aaxis', + **kwargs): + super(AutotypenumbersValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['convert types', 'strict']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_categoryarray.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_categoryarray.py index 14ea6b75a78..b325aa96689 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_categoryarray.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_categoryarray.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="categoryarray", parent_name="carpet.aaxis", **kwargs - ): - super(CategoryarrayValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CategoryarrayValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='categoryarray', + parent_name='carpet.aaxis', + **kwargs): + super(CategoryarrayValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_categoryarraysrc.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_categoryarraysrc.py index 1be1defc876..948841bd716 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_categoryarraysrc.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_categoryarraysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="categoryarraysrc", parent_name="carpet.aaxis", **kwargs - ): - super(CategoryarraysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CategoryarraysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='categoryarraysrc', + parent_name='carpet.aaxis', + **kwargs): + super(CategoryarraysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_categoryorder.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_categoryorder.py index e1f26d06eb4..4eed1e20c09 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_categoryorder.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_categoryorder.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="categoryorder", parent_name="carpet.aaxis", **kwargs - ): - super(CategoryorderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - ["trace", "category ascending", "category descending", "array"], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CategoryorderValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='categoryorder', + parent_name='carpet.aaxis', + **kwargs): + super(CategoryorderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['trace', 'category ascending', 'category descending', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_cheatertype.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_cheatertype.py index 95fbc675086..e6588da2f24 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_cheatertype.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_cheatertype.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CheatertypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="cheatertype", parent_name="carpet.aaxis", **kwargs): - super(CheatertypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["index", "value"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CheatertypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='cheatertype', + parent_name='carpet.aaxis', + **kwargs): + super(CheatertypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['index', 'value']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_color.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_color.py index 7e5daa11000..1f28399c765 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_color.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="carpet.aaxis", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='carpet.aaxis', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_dtick.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_dtick.py index c93797800e3..4e7488a9fa9 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_dtick.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_dtick.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="dtick", parent_name="carpet.aaxis", **kwargs): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dtick', + parent_name='carpet.aaxis', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_endline.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_endline.py index caceb51a63a..b946fa87f5c 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_endline.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_endline.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class EndlineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="endline", parent_name="carpet.aaxis", **kwargs): - super(EndlineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EndlineValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='endline', + parent_name='carpet.aaxis', + **kwargs): + super(EndlineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_endlinecolor.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_endlinecolor.py index 4465746c21f..a7bc2ca2785 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_endlinecolor.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_endlinecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class EndlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="endlinecolor", parent_name="carpet.aaxis", **kwargs - ): - super(EndlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class EndlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='endlinecolor', + parent_name='carpet.aaxis', + **kwargs): + super(EndlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_endlinewidth.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_endlinewidth.py index 90d4ddc7545..8a68c92b367 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_endlinewidth.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_endlinewidth.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class EndlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="endlinewidth", parent_name="carpet.aaxis", **kwargs - ): - super(EndlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class EndlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='endlinewidth', + parent_name='carpet.aaxis', + **kwargs): + super(EndlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_exponentformat.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_exponentformat.py index 5ec3f114b05..9d8a35e153f 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_exponentformat.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="exponentformat", parent_name="carpet.aaxis", **kwargs - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='carpet.aaxis', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_fixedrange.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_fixedrange.py index c148da6c801..329fd4a8a20 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_fixedrange.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_fixedrange.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FixedrangeValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="fixedrange", parent_name="carpet.aaxis", **kwargs): - super(FixedrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FixedrangeValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='fixedrange', + parent_name='carpet.aaxis', + **kwargs): + super(FixedrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_gridcolor.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_gridcolor.py index fd056931e67..55e643b8ad0 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_gridcolor.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_gridcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="gridcolor", parent_name="carpet.aaxis", **kwargs): - super(GridcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class GridcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='gridcolor', + parent_name='carpet.aaxis', + **kwargs): + super(GridcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_griddash.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_griddash.py index e5aa719bebf..1fd841a25ff 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_griddash.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_griddash.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class GriddashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__(self, plotly_name="griddash", parent_name="carpet.aaxis", **kwargs): - super(GriddashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GriddashValidator(_bv.DashValidator): + def __init__(self, plotly_name='griddash', + parent_name='carpet.aaxis', + **kwargs): + super(GriddashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_gridwidth.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_gridwidth.py index b5d2199bd69..91b105e572f 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_gridwidth.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_gridwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="gridwidth", parent_name="carpet.aaxis", **kwargs): - super(GridwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='gridwidth', + parent_name='carpet.aaxis', + **kwargs): + super(GridwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_labelalias.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_labelalias.py index 8007dbd5b4f..4fd4558f7fc 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_labelalias.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_labelalias.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="labelalias", parent_name="carpet.aaxis", **kwargs): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='carpet.aaxis', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_labelpadding.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_labelpadding.py index 7b5db6ec8ac..1f8defb4aa8 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_labelpadding.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_labelpadding.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelpaddingValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="labelpadding", parent_name="carpet.aaxis", **kwargs - ): - super(LabelpaddingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelpaddingValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='labelpadding', + parent_name='carpet.aaxis', + **kwargs): + super(LabelpaddingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_labelprefix.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_labelprefix.py index c121272d45d..37a25cfa9f7 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_labelprefix.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_labelprefix.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LabelprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="labelprefix", parent_name="carpet.aaxis", **kwargs): - super(LabelprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='labelprefix', + parent_name='carpet.aaxis', + **kwargs): + super(LabelprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_labelsuffix.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_labelsuffix.py index 2d3122cfc1e..0ee31f48103 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_labelsuffix.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_labelsuffix.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LabelsuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="labelsuffix", parent_name="carpet.aaxis", **kwargs): - super(LabelsuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelsuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='labelsuffix', + parent_name='carpet.aaxis', + **kwargs): + super(LabelsuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_linecolor.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_linecolor.py index d6df4cf8cd2..5133d093cfe 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_linecolor.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_linecolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="linecolor", parent_name="carpet.aaxis", **kwargs): - super(LinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='linecolor', + parent_name='carpet.aaxis', + **kwargs): + super(LinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_linewidth.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_linewidth.py index 79108ec8bac..61cb304fa47 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_linewidth.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_linewidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="linewidth", parent_name="carpet.aaxis", **kwargs): - super(LinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='linewidth', + parent_name='carpet.aaxis', + **kwargs): + super(LinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_minexponent.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_minexponent.py index 7b6c5fd2678..4403d39b676 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_minexponent.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_minexponent.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="minexponent", parent_name="carpet.aaxis", **kwargs): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='carpet.aaxis', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_minorgridcolor.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_minorgridcolor.py index f15b9cef520..8f2d4e0099f 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_minorgridcolor.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_minorgridcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class MinorgridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="minorgridcolor", parent_name="carpet.aaxis", **kwargs - ): - super(MinorgridcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinorgridcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='minorgridcolor', + parent_name='carpet.aaxis', + **kwargs): + super(MinorgridcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_minorgridcount.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_minorgridcount.py index 2832b1d2897..9ed85326a1b 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_minorgridcount.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_minorgridcount.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinorgridcountValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="minorgridcount", parent_name="carpet.aaxis", **kwargs - ): - super(MinorgridcountValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinorgridcountValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='minorgridcount', + parent_name='carpet.aaxis', + **kwargs): + super(MinorgridcountValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_minorgriddash.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_minorgriddash.py index e6b36727aac..126a71b5af7 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_minorgriddash.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_minorgriddash.py @@ -1,16 +1,14 @@ -import _plotly_utils.basevalidators -class MinorgriddashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__( - self, plotly_name="minorgriddash", parent_name="carpet.aaxis", **kwargs - ): - super(MinorgriddashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MinorgriddashValidator(_bv.DashValidator): + def __init__(self, plotly_name='minorgriddash', + parent_name='carpet.aaxis', + **kwargs): + super(MinorgriddashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_minorgridwidth.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_minorgridwidth.py index 938ab1547a8..5ceb06b6b73 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_minorgridwidth.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_minorgridwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinorgridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minorgridwidth", parent_name="carpet.aaxis", **kwargs - ): - super(MinorgridwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinorgridwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minorgridwidth', + parent_name='carpet.aaxis', + **kwargs): + super(MinorgridwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_nticks.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_nticks.py index 7d2fbca303f..12d33e67cee 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_nticks.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_nticks.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="nticks", parent_name="carpet.aaxis", **kwargs): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='carpet.aaxis', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_range.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_range.py index 126ecae738c..c380eaf7798 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_range.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_range.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="range", parent_name="carpet.aaxis", **kwargs): - super(RangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "valType": "any"}, - {"editType": "calc", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='range', + parent_name='carpet.aaxis', + **kwargs): + super(RangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'valType': 'any'}, {'editType': 'calc', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_rangemode.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_rangemode.py index 8e09dbd3aa3..0a3d02ce4f8 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_rangemode.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_rangemode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class RangemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="rangemode", parent_name="carpet.aaxis", **kwargs): - super(RangemodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "tozero", "nonnegative"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RangemodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='rangemode', + parent_name='carpet.aaxis', + **kwargs): + super(RangemodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'tozero', 'nonnegative']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_separatethousands.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_separatethousands.py index 50e4d8ad4c4..870606e36f4 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_separatethousands.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="separatethousands", parent_name="carpet.aaxis", **kwargs - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='carpet.aaxis', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_showexponent.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_showexponent.py index 8085450d39e..7d22f5190b6 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_showexponent.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="carpet.aaxis", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='carpet.aaxis', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_showgrid.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_showgrid.py index 0d3587c153c..22e558a08f6 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_showgrid.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_showgrid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showgrid", parent_name="carpet.aaxis", **kwargs): - super(ShowgridValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowgridValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showgrid', + parent_name='carpet.aaxis', + **kwargs): + super(ShowgridValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_showline.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_showline.py index b94d0f8f93d..0fc9e7288d1 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_showline.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_showline.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showline", parent_name="carpet.aaxis", **kwargs): - super(ShowlineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlineValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showline', + parent_name='carpet.aaxis', + **kwargs): + super(ShowlineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_showticklabels.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_showticklabels.py index 64ff3879b45..82707e68f7f 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_showticklabels.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowticklabelsValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showticklabels", parent_name="carpet.aaxis", **kwargs - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["start", "end", "both", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='carpet.aaxis', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['start', 'end', 'both', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_showtickprefix.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_showtickprefix.py index 1e60df9d884..5b5dcab6b87 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_showtickprefix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showtickprefix", parent_name="carpet.aaxis", **kwargs - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='carpet.aaxis', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_showticksuffix.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_showticksuffix.py index 402d700eff3..a1ba43ec686 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_showticksuffix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showticksuffix", parent_name="carpet.aaxis", **kwargs - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='carpet.aaxis', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_smoothing.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_smoothing.py index 1a2fa736ea0..981d0eee889 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_smoothing.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_smoothing.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SmoothingValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="smoothing", parent_name="carpet.aaxis", **kwargs): - super(SmoothingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1.3), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SmoothingValidator(_bv.NumberValidator): + def __init__(self, plotly_name='smoothing', + parent_name='carpet.aaxis', + **kwargs): + super(SmoothingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1.3), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_startline.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_startline.py index 285ae6dcb9f..acb8775ea3c 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_startline.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_startline.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class StartlineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="startline", parent_name="carpet.aaxis", **kwargs): - super(StartlineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StartlineValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='startline', + parent_name='carpet.aaxis', + **kwargs): + super(StartlineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_startlinecolor.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_startlinecolor.py index 51db824e771..94efce1b0ac 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_startlinecolor.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_startlinecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StartlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="startlinecolor", parent_name="carpet.aaxis", **kwargs - ): - super(StartlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StartlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='startlinecolor', + parent_name='carpet.aaxis', + **kwargs): + super(StartlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_startlinewidth.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_startlinewidth.py index b1da9a35dc9..9b50bd43476 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_startlinewidth.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_startlinewidth.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StartlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="startlinewidth", parent_name="carpet.aaxis", **kwargs - ): - super(StartlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StartlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='startlinewidth', + parent_name='carpet.aaxis', + **kwargs): + super(StartlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_tick0.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_tick0.py index 92306c27b3f..d9938f2e02a 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_tick0.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_tick0.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="tick0", parent_name="carpet.aaxis", **kwargs): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.NumberValidator): + def __init__(self, plotly_name='tick0', + parent_name='carpet.aaxis', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_tickangle.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_tickangle.py index 1b01919ce71..9fe122631d6 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_tickangle.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_tickangle.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__(self, plotly_name="tickangle", parent_name="carpet.aaxis", **kwargs): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='carpet.aaxis', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_tickfont.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_tickfont.py index 8b1b1857887..13d1ef58da6 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_tickfont.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_tickfont.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="tickfont", parent_name="carpet.aaxis", **kwargs): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='carpet.aaxis', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_tickformat.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_tickformat.py index 98c9e26318c..87a79bb29c8 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_tickformat.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_tickformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="tickformat", parent_name="carpet.aaxis", **kwargs): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='carpet.aaxis', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_tickformatstopdefaults.py index 127edaa141f..83d7c62f912 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_tickformatstopdefaults.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickformatstopdefaults", parent_name="carpet.aaxis", **kwargs - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='carpet.aaxis', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_tickformatstops.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_tickformatstops.py index 3ea79585662..381b716b646 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_tickformatstops.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="tickformatstops", parent_name="carpet.aaxis", **kwargs - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='carpet.aaxis', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_tickmode.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_tickmode.py index 41e2de0476e..6eec03e943a 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_tickmode.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_tickmode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="tickmode", parent_name="carpet.aaxis", **kwargs): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='carpet.aaxis', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_tickprefix.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_tickprefix.py index e574efcb3ae..9d6aec2e98d 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_tickprefix.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="tickprefix", parent_name="carpet.aaxis", **kwargs): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='carpet.aaxis', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_ticksuffix.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_ticksuffix.py index 6fe0dc03c96..6c52de04f9d 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_ticksuffix.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="ticksuffix", parent_name="carpet.aaxis", **kwargs): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='carpet.aaxis', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_ticktext.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_ticktext.py index 934224f2a0d..b8f891fe41c 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_ticktext.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_ticktext.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ticktext", parent_name="carpet.aaxis", **kwargs): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='carpet.aaxis', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_ticktextsrc.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_ticktextsrc.py index 1a49ad59d83..98d0bd73621 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_ticktextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="ticktextsrc", parent_name="carpet.aaxis", **kwargs): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='carpet.aaxis', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_tickvals.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_tickvals.py index bd8be332709..fcdab1672bb 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_tickvals.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_tickvals.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="tickvals", parent_name="carpet.aaxis", **kwargs): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='carpet.aaxis', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_tickvalssrc.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_tickvalssrc.py index 9d50850b59b..1b7a33d0934 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_tickvalssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="tickvalssrc", parent_name="carpet.aaxis", **kwargs): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='carpet.aaxis', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_title.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_title.py index c8675919df1..fe73dbd7be2 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_title.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_title.py @@ -1,23 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__(self, plotly_name="title", parent_name="carpet.aaxis", **kwargs): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this axis' title font. - offset - An additional amount by which to offset the - title from the tick labels, given in pixels. - text - Sets the title of this axis. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='carpet.aaxis', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_type.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_type.py index 4cc5942654f..56e52f93bb6 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_type.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_type.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="type", parent_name="carpet.aaxis", **kwargs): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["-", "linear", "date", "category"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='carpet.aaxis', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['-', 'linear', 'date', 'category']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/__init__.py b/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_color.py b/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_color.py index cf0f227aa39..78890c5a83a 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="carpet.aaxis.tickfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='carpet.aaxis.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_family.py b/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_family.py index 68eada53666..e0325427d71 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="carpet.aaxis.tickfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='carpet.aaxis.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_lineposition.py index 0de8af72295..1b3620d42f9 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_lineposition.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="carpet.aaxis.tickfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='carpet.aaxis.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_shadow.py index e4e8aa733c5..4ec5eebfba7 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="carpet.aaxis.tickfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='carpet.aaxis.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_size.py b/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_size.py index cc3022043d3..9f1e447e555 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="carpet.aaxis.tickfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='carpet.aaxis.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_style.py b/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_style.py index 41cec4af04c..6a4685db56a 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="carpet.aaxis.tickfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='carpet.aaxis.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_textcase.py index ed3ad9a0d2a..1b798c6ed38 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="carpet.aaxis.tickfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='carpet.aaxis.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_variant.py b/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_variant.py index f5870c35c32..970a0569f3f 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="carpet.aaxis.tickfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='carpet.aaxis.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_weight.py b/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_weight.py index 6bfafb5029f..84b44c90eef 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="carpet.aaxis.tickfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='carpet.aaxis.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/carpet/aaxis/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/carpet/aaxis/tickformatstop/_dtickrange.py index 7d0756cf928..b7a34226502 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="carpet.aaxis.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "valType": "any"}, - {"editType": "calc", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='carpet.aaxis.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'valType': 'any'}, {'editType': 'calc', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/carpet/aaxis/tickformatstop/_enabled.py index 428a0d524f2..19d3475e0c7 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/tickformatstop/_enabled.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="enabled", parent_name="carpet.aaxis.tickformatstop", **kwargs - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='carpet.aaxis.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/carpet/aaxis/tickformatstop/_name.py index 5480115316e..317173480a8 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/tickformatstop/_name.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="name", parent_name="carpet.aaxis.tickformatstop", **kwargs - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='carpet.aaxis.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/carpet/aaxis/tickformatstop/_templateitemname.py index 45f098d8aad..6398080bd08 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="carpet.aaxis.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='carpet.aaxis.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/carpet/aaxis/tickformatstop/_value.py index eba33d8c030..227cc7a5c9b 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/tickformatstop/_value.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="value", parent_name="carpet.aaxis.tickformatstop", **kwargs - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='carpet.aaxis.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/title/__init__.py b/packages/python/plotly/plotly/validators/carpet/aaxis/title/__init__.py index ff2ee4cb29f..0fbec2bc6ae 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/title/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._offset import OffsetValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._offset.OffsetValidator", "._font.FontValidator"], + ['._text.TextValidator', '._offset.OffsetValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/title/_font.py b/packages/python/plotly/plotly/validators/carpet/aaxis/title/_font.py index 9de2ef7ac56..ba56638c9c0 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/title/_font.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/title/_font.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="carpet.aaxis.title", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='carpet.aaxis.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/title/_offset.py b/packages/python/plotly/plotly/validators/carpet/aaxis/title/_offset.py index e2d8bf052fa..2aa4cf97210 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/title/_offset.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/title/_offset.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OffsetValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="offset", parent_name="carpet.aaxis.title", **kwargs - ): - super(OffsetValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OffsetValidator(_bv.NumberValidator): + def __init__(self, plotly_name='offset', + parent_name='carpet.aaxis.title', + **kwargs): + super(OffsetValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/title/_text.py b/packages/python/plotly/plotly/validators/carpet/aaxis/title/_text.py index 1042ef0d18d..661f3711cb9 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/title/_text.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/title/_text.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="carpet.aaxis.title", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='carpet.aaxis.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/__init__.py b/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_color.py b/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_color.py index 39c81ce2c79..54a05427a6b 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="carpet.aaxis.title.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='carpet.aaxis.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_family.py b/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_family.py index ba1331070ac..13d011d8153 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="carpet.aaxis.title.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='carpet.aaxis.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_lineposition.py index 7a128d3ed3f..43391b6a19a 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="carpet.aaxis.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='carpet.aaxis.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_shadow.py b/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_shadow.py index 1a8dc4aaa9d..a752d7233df 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="carpet.aaxis.title.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='carpet.aaxis.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_size.py b/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_size.py index d68e16cea50..02c66b0f680 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="carpet.aaxis.title.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='carpet.aaxis.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_style.py b/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_style.py index e164229bd31..a308e09a9aa 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="carpet.aaxis.title.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='carpet.aaxis.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_textcase.py b/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_textcase.py index 456c3db7e41..c7692fa7e1d 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="carpet.aaxis.title.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='carpet.aaxis.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_variant.py b/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_variant.py index 02bd955e893..546bad282cf 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="carpet.aaxis.title.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='carpet.aaxis.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_weight.py b/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_weight.py index 24f95f0aaec..3bd364823cd 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="carpet.aaxis.title.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='carpet.aaxis.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/__init__.py b/packages/python/plotly/plotly/validators/carpet/baxis/__init__.py index 5d27db03f95..9bb8901a152 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._type import TypeValidator from ._title import TitleValidator @@ -62,68 +61,10 @@ from ._arraydtick import ArraydtickValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._type.TypeValidator", - "._title.TitleValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._startlinewidth.StartlinewidthValidator", - "._startlinecolor.StartlinecolorValidator", - "._startline.StartlineValidator", - "._smoothing.SmoothingValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showline.ShowlineValidator", - "._showgrid.ShowgridValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._rangemode.RangemodeValidator", - "._range.RangeValidator", - "._nticks.NticksValidator", - "._minorgridwidth.MinorgridwidthValidator", - "._minorgriddash.MinorgriddashValidator", - "._minorgridcount.MinorgridcountValidator", - "._minorgridcolor.MinorgridcolorValidator", - "._minexponent.MinexponentValidator", - "._linewidth.LinewidthValidator", - "._linecolor.LinecolorValidator", - "._labelsuffix.LabelsuffixValidator", - "._labelprefix.LabelprefixValidator", - "._labelpadding.LabelpaddingValidator", - "._labelalias.LabelaliasValidator", - "._gridwidth.GridwidthValidator", - "._griddash.GriddashValidator", - "._gridcolor.GridcolorValidator", - "._fixedrange.FixedrangeValidator", - "._exponentformat.ExponentformatValidator", - "._endlinewidth.EndlinewidthValidator", - "._endlinecolor.EndlinecolorValidator", - "._endline.EndlineValidator", - "._dtick.DtickValidator", - "._color.ColorValidator", - "._cheatertype.CheatertypeValidator", - "._categoryorder.CategoryorderValidator", - "._categoryarraysrc.CategoryarraysrcValidator", - "._categoryarray.CategoryarrayValidator", - "._autotypenumbers.AutotypenumbersValidator", - "._autorange.AutorangeValidator", - "._arraytick0.Arraytick0Validator", - "._arraydtick.ArraydtickValidator", - ], + ['._type.TypeValidator', '._title.TitleValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._startlinewidth.StartlinewidthValidator', '._startlinecolor.StartlinecolorValidator', '._startline.StartlineValidator', '._smoothing.SmoothingValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showline.ShowlineValidator', '._showgrid.ShowgridValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._rangemode.RangemodeValidator', '._range.RangeValidator', '._nticks.NticksValidator', '._minorgridwidth.MinorgridwidthValidator', '._minorgriddash.MinorgriddashValidator', '._minorgridcount.MinorgridcountValidator', '._minorgridcolor.MinorgridcolorValidator', '._minexponent.MinexponentValidator', '._linewidth.LinewidthValidator', '._linecolor.LinecolorValidator', '._labelsuffix.LabelsuffixValidator', '._labelprefix.LabelprefixValidator', '._labelpadding.LabelpaddingValidator', '._labelalias.LabelaliasValidator', '._gridwidth.GridwidthValidator', '._griddash.GriddashValidator', '._gridcolor.GridcolorValidator', '._fixedrange.FixedrangeValidator', '._exponentformat.ExponentformatValidator', '._endlinewidth.EndlinewidthValidator', '._endlinecolor.EndlinecolorValidator', '._endline.EndlineValidator', '._dtick.DtickValidator', '._color.ColorValidator', '._cheatertype.CheatertypeValidator', '._categoryorder.CategoryorderValidator', '._categoryarraysrc.CategoryarraysrcValidator', '._categoryarray.CategoryarrayValidator', '._autotypenumbers.AutotypenumbersValidator', '._autorange.AutorangeValidator', '._arraytick0.Arraytick0Validator', '._arraydtick.ArraydtickValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_arraydtick.py b/packages/python/plotly/plotly/validators/carpet/baxis/_arraydtick.py index 797feb0577a..58913f4f946 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_arraydtick.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_arraydtick.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ArraydtickValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="arraydtick", parent_name="carpet.baxis", **kwargs): - super(ArraydtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArraydtickValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='arraydtick', + parent_name='carpet.baxis', + **kwargs): + super(ArraydtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_arraytick0.py b/packages/python/plotly/plotly/validators/carpet/baxis/_arraytick0.py index dbdafa01857..e41d66bd2d4 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_arraytick0.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_arraytick0.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class Arraytick0Validator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="arraytick0", parent_name="carpet.baxis", **kwargs): - super(Arraytick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Arraytick0Validator(_bv.IntegerValidator): + def __init__(self, plotly_name='arraytick0', + parent_name='carpet.baxis', + **kwargs): + super(Arraytick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_autorange.py b/packages/python/plotly/plotly/validators/carpet/baxis/_autorange.py index 51d366028a3..a478cb33ff6 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_autorange.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_autorange.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutorangeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="autorange", parent_name="carpet.baxis", **kwargs): - super(AutorangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "reversed"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutorangeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='autorange', + parent_name='carpet.baxis', + **kwargs): + super(AutorangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'reversed']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_autotypenumbers.py b/packages/python/plotly/plotly/validators/carpet/baxis/_autotypenumbers.py index 10a7e7613a6..13fbeebc267 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_autotypenumbers.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_autotypenumbers.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutotypenumbersValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="autotypenumbers", parent_name="carpet.baxis", **kwargs - ): - super(AutotypenumbersValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["convert types", "strict"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutotypenumbersValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='autotypenumbers', + parent_name='carpet.baxis', + **kwargs): + super(AutotypenumbersValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['convert types', 'strict']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_categoryarray.py b/packages/python/plotly/plotly/validators/carpet/baxis/_categoryarray.py index 7d8cdb5160e..88d7498e98e 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_categoryarray.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_categoryarray.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="categoryarray", parent_name="carpet.baxis", **kwargs - ): - super(CategoryarrayValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CategoryarrayValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='categoryarray', + parent_name='carpet.baxis', + **kwargs): + super(CategoryarrayValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_categoryarraysrc.py b/packages/python/plotly/plotly/validators/carpet/baxis/_categoryarraysrc.py index f44c1ae2556..6e8bc12dfda 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_categoryarraysrc.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_categoryarraysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="categoryarraysrc", parent_name="carpet.baxis", **kwargs - ): - super(CategoryarraysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CategoryarraysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='categoryarraysrc', + parent_name='carpet.baxis', + **kwargs): + super(CategoryarraysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_categoryorder.py b/packages/python/plotly/plotly/validators/carpet/baxis/_categoryorder.py index f50246bab8e..40470eb7363 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_categoryorder.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_categoryorder.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="categoryorder", parent_name="carpet.baxis", **kwargs - ): - super(CategoryorderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - ["trace", "category ascending", "category descending", "array"], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CategoryorderValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='categoryorder', + parent_name='carpet.baxis', + **kwargs): + super(CategoryorderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['trace', 'category ascending', 'category descending', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_cheatertype.py b/packages/python/plotly/plotly/validators/carpet/baxis/_cheatertype.py index 0a72d8e86d1..ddae3aed8cb 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_cheatertype.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_cheatertype.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CheatertypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="cheatertype", parent_name="carpet.baxis", **kwargs): - super(CheatertypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["index", "value"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CheatertypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='cheatertype', + parent_name='carpet.baxis', + **kwargs): + super(CheatertypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['index', 'value']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_color.py b/packages/python/plotly/plotly/validators/carpet/baxis/_color.py index 3159ac99401..4aebea593bf 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_color.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="carpet.baxis", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='carpet.baxis', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_dtick.py b/packages/python/plotly/plotly/validators/carpet/baxis/_dtick.py index d0b8516dc51..ded35c9c3f0 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_dtick.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_dtick.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="dtick", parent_name="carpet.baxis", **kwargs): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dtick', + parent_name='carpet.baxis', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_endline.py b/packages/python/plotly/plotly/validators/carpet/baxis/_endline.py index c4bb0d4b547..68b59293694 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_endline.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_endline.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class EndlineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="endline", parent_name="carpet.baxis", **kwargs): - super(EndlineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EndlineValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='endline', + parent_name='carpet.baxis', + **kwargs): + super(EndlineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_endlinecolor.py b/packages/python/plotly/plotly/validators/carpet/baxis/_endlinecolor.py index 0643dd54d17..fc023789b27 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_endlinecolor.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_endlinecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class EndlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="endlinecolor", parent_name="carpet.baxis", **kwargs - ): - super(EndlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class EndlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='endlinecolor', + parent_name='carpet.baxis', + **kwargs): + super(EndlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_endlinewidth.py b/packages/python/plotly/plotly/validators/carpet/baxis/_endlinewidth.py index 5f519dbc4e5..bde28fb1fb2 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_endlinewidth.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_endlinewidth.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class EndlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="endlinewidth", parent_name="carpet.baxis", **kwargs - ): - super(EndlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class EndlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='endlinewidth', + parent_name='carpet.baxis', + **kwargs): + super(EndlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_exponentformat.py b/packages/python/plotly/plotly/validators/carpet/baxis/_exponentformat.py index c501d567c01..13460be2d1c 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_exponentformat.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="exponentformat", parent_name="carpet.baxis", **kwargs - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='carpet.baxis', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_fixedrange.py b/packages/python/plotly/plotly/validators/carpet/baxis/_fixedrange.py index 43fb67c7bd1..dfe0fca0e0b 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_fixedrange.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_fixedrange.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FixedrangeValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="fixedrange", parent_name="carpet.baxis", **kwargs): - super(FixedrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FixedrangeValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='fixedrange', + parent_name='carpet.baxis', + **kwargs): + super(FixedrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_gridcolor.py b/packages/python/plotly/plotly/validators/carpet/baxis/_gridcolor.py index 385571f72dc..140c2ec5049 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_gridcolor.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_gridcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="gridcolor", parent_name="carpet.baxis", **kwargs): - super(GridcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class GridcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='gridcolor', + parent_name='carpet.baxis', + **kwargs): + super(GridcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_griddash.py b/packages/python/plotly/plotly/validators/carpet/baxis/_griddash.py index da58807f1f6..dc3713e0699 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_griddash.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_griddash.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class GriddashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__(self, plotly_name="griddash", parent_name="carpet.baxis", **kwargs): - super(GriddashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GriddashValidator(_bv.DashValidator): + def __init__(self, plotly_name='griddash', + parent_name='carpet.baxis', + **kwargs): + super(GriddashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_gridwidth.py b/packages/python/plotly/plotly/validators/carpet/baxis/_gridwidth.py index ef1dc872534..aa2424c76ad 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_gridwidth.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_gridwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="gridwidth", parent_name="carpet.baxis", **kwargs): - super(GridwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='gridwidth', + parent_name='carpet.baxis', + **kwargs): + super(GridwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_labelalias.py b/packages/python/plotly/plotly/validators/carpet/baxis/_labelalias.py index 053e432e027..a7fa3fab5cd 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_labelalias.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_labelalias.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="labelalias", parent_name="carpet.baxis", **kwargs): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='carpet.baxis', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_labelpadding.py b/packages/python/plotly/plotly/validators/carpet/baxis/_labelpadding.py index de9e4dce747..30b4ba9aa3a 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_labelpadding.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_labelpadding.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelpaddingValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="labelpadding", parent_name="carpet.baxis", **kwargs - ): - super(LabelpaddingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelpaddingValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='labelpadding', + parent_name='carpet.baxis', + **kwargs): + super(LabelpaddingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_labelprefix.py b/packages/python/plotly/plotly/validators/carpet/baxis/_labelprefix.py index f1409832132..2a41ed0d89f 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_labelprefix.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_labelprefix.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LabelprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="labelprefix", parent_name="carpet.baxis", **kwargs): - super(LabelprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='labelprefix', + parent_name='carpet.baxis', + **kwargs): + super(LabelprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_labelsuffix.py b/packages/python/plotly/plotly/validators/carpet/baxis/_labelsuffix.py index f23f212fc70..15bf16d295e 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_labelsuffix.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_labelsuffix.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LabelsuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="labelsuffix", parent_name="carpet.baxis", **kwargs): - super(LabelsuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelsuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='labelsuffix', + parent_name='carpet.baxis', + **kwargs): + super(LabelsuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_linecolor.py b/packages/python/plotly/plotly/validators/carpet/baxis/_linecolor.py index 4cf436ffe76..35a5285c4fc 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_linecolor.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_linecolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="linecolor", parent_name="carpet.baxis", **kwargs): - super(LinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='linecolor', + parent_name='carpet.baxis', + **kwargs): + super(LinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_linewidth.py b/packages/python/plotly/plotly/validators/carpet/baxis/_linewidth.py index 5bad47e1965..a6de18dd0b4 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_linewidth.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_linewidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="linewidth", parent_name="carpet.baxis", **kwargs): - super(LinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='linewidth', + parent_name='carpet.baxis', + **kwargs): + super(LinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_minexponent.py b/packages/python/plotly/plotly/validators/carpet/baxis/_minexponent.py index ef9a3223a82..ae0f1b2ec00 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_minexponent.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_minexponent.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="minexponent", parent_name="carpet.baxis", **kwargs): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='carpet.baxis', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_minorgridcolor.py b/packages/python/plotly/plotly/validators/carpet/baxis/_minorgridcolor.py index 730506ae180..7ebd0ee8ce3 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_minorgridcolor.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_minorgridcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class MinorgridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="minorgridcolor", parent_name="carpet.baxis", **kwargs - ): - super(MinorgridcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinorgridcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='minorgridcolor', + parent_name='carpet.baxis', + **kwargs): + super(MinorgridcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_minorgridcount.py b/packages/python/plotly/plotly/validators/carpet/baxis/_minorgridcount.py index b5cc473f8b7..9a18fec11bb 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_minorgridcount.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_minorgridcount.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinorgridcountValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="minorgridcount", parent_name="carpet.baxis", **kwargs - ): - super(MinorgridcountValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinorgridcountValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='minorgridcount', + parent_name='carpet.baxis', + **kwargs): + super(MinorgridcountValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_minorgriddash.py b/packages/python/plotly/plotly/validators/carpet/baxis/_minorgriddash.py index 24593073603..d68ebb6e4f6 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_minorgriddash.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_minorgriddash.py @@ -1,16 +1,14 @@ -import _plotly_utils.basevalidators -class MinorgriddashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__( - self, plotly_name="minorgriddash", parent_name="carpet.baxis", **kwargs - ): - super(MinorgriddashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MinorgriddashValidator(_bv.DashValidator): + def __init__(self, plotly_name='minorgriddash', + parent_name='carpet.baxis', + **kwargs): + super(MinorgriddashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_minorgridwidth.py b/packages/python/plotly/plotly/validators/carpet/baxis/_minorgridwidth.py index 28d9c866a7e..8a9ec13f9fe 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_minorgridwidth.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_minorgridwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinorgridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minorgridwidth", parent_name="carpet.baxis", **kwargs - ): - super(MinorgridwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinorgridwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minorgridwidth', + parent_name='carpet.baxis', + **kwargs): + super(MinorgridwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_nticks.py b/packages/python/plotly/plotly/validators/carpet/baxis/_nticks.py index a3b1723f551..17440c14c28 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_nticks.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_nticks.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="nticks", parent_name="carpet.baxis", **kwargs): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='carpet.baxis', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_range.py b/packages/python/plotly/plotly/validators/carpet/baxis/_range.py index a7dffc77ac8..6ffd11ff682 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_range.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_range.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="range", parent_name="carpet.baxis", **kwargs): - super(RangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "valType": "any"}, - {"editType": "calc", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='range', + parent_name='carpet.baxis', + **kwargs): + super(RangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'valType': 'any'}, {'editType': 'calc', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_rangemode.py b/packages/python/plotly/plotly/validators/carpet/baxis/_rangemode.py index 9805c786590..0ab1f08c545 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_rangemode.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_rangemode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class RangemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="rangemode", parent_name="carpet.baxis", **kwargs): - super(RangemodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "tozero", "nonnegative"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RangemodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='rangemode', + parent_name='carpet.baxis', + **kwargs): + super(RangemodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'tozero', 'nonnegative']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_separatethousands.py b/packages/python/plotly/plotly/validators/carpet/baxis/_separatethousands.py index 3e9b4b2ccc1..cdb5a7290bd 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_separatethousands.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="separatethousands", parent_name="carpet.baxis", **kwargs - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='carpet.baxis', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_showexponent.py b/packages/python/plotly/plotly/validators/carpet/baxis/_showexponent.py index d1ca370403b..53c38c4fab1 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_showexponent.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="carpet.baxis", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='carpet.baxis', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_showgrid.py b/packages/python/plotly/plotly/validators/carpet/baxis/_showgrid.py index 7bf8be44382..d84e17a990d 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_showgrid.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_showgrid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showgrid", parent_name="carpet.baxis", **kwargs): - super(ShowgridValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowgridValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showgrid', + parent_name='carpet.baxis', + **kwargs): + super(ShowgridValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_showline.py b/packages/python/plotly/plotly/validators/carpet/baxis/_showline.py index 3fcbf4b3e81..ac15a064cb6 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_showline.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_showline.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showline", parent_name="carpet.baxis", **kwargs): - super(ShowlineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlineValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showline', + parent_name='carpet.baxis', + **kwargs): + super(ShowlineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_showticklabels.py b/packages/python/plotly/plotly/validators/carpet/baxis/_showticklabels.py index 70167b9e12b..716d3f8de82 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_showticklabels.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowticklabelsValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showticklabels", parent_name="carpet.baxis", **kwargs - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["start", "end", "both", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='carpet.baxis', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['start', 'end', 'both', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_showtickprefix.py b/packages/python/plotly/plotly/validators/carpet/baxis/_showtickprefix.py index 89821be4a4f..58f5d7dc337 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_showtickprefix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showtickprefix", parent_name="carpet.baxis", **kwargs - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='carpet.baxis', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_showticksuffix.py b/packages/python/plotly/plotly/validators/carpet/baxis/_showticksuffix.py index 8cfdc060686..2331f4210a3 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_showticksuffix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showticksuffix", parent_name="carpet.baxis", **kwargs - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='carpet.baxis', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_smoothing.py b/packages/python/plotly/plotly/validators/carpet/baxis/_smoothing.py index fb16f9feab0..418bb96bea6 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_smoothing.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_smoothing.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SmoothingValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="smoothing", parent_name="carpet.baxis", **kwargs): - super(SmoothingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1.3), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SmoothingValidator(_bv.NumberValidator): + def __init__(self, plotly_name='smoothing', + parent_name='carpet.baxis', + **kwargs): + super(SmoothingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1.3), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_startline.py b/packages/python/plotly/plotly/validators/carpet/baxis/_startline.py index 316cc9df946..8b2b6f60413 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_startline.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_startline.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class StartlineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="startline", parent_name="carpet.baxis", **kwargs): - super(StartlineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StartlineValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='startline', + parent_name='carpet.baxis', + **kwargs): + super(StartlineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_startlinecolor.py b/packages/python/plotly/plotly/validators/carpet/baxis/_startlinecolor.py index bb58d2cbab4..d2f6341b111 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_startlinecolor.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_startlinecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StartlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="startlinecolor", parent_name="carpet.baxis", **kwargs - ): - super(StartlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StartlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='startlinecolor', + parent_name='carpet.baxis', + **kwargs): + super(StartlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_startlinewidth.py b/packages/python/plotly/plotly/validators/carpet/baxis/_startlinewidth.py index 5bf8f68908f..9398301b48a 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_startlinewidth.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_startlinewidth.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StartlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="startlinewidth", parent_name="carpet.baxis", **kwargs - ): - super(StartlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StartlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='startlinewidth', + parent_name='carpet.baxis', + **kwargs): + super(StartlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_tick0.py b/packages/python/plotly/plotly/validators/carpet/baxis/_tick0.py index 6a41eb647f2..d13ade3a371 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_tick0.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_tick0.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="tick0", parent_name="carpet.baxis", **kwargs): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.NumberValidator): + def __init__(self, plotly_name='tick0', + parent_name='carpet.baxis', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_tickangle.py b/packages/python/plotly/plotly/validators/carpet/baxis/_tickangle.py index 9131d4fb67a..df1c20ebc97 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_tickangle.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_tickangle.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__(self, plotly_name="tickangle", parent_name="carpet.baxis", **kwargs): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='carpet.baxis', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_tickfont.py b/packages/python/plotly/plotly/validators/carpet/baxis/_tickfont.py index 2c9341300a9..e7d9d58fd1e 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_tickfont.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_tickfont.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="tickfont", parent_name="carpet.baxis", **kwargs): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='carpet.baxis', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_tickformat.py b/packages/python/plotly/plotly/validators/carpet/baxis/_tickformat.py index 17090c75281..a3370061d68 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_tickformat.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_tickformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="tickformat", parent_name="carpet.baxis", **kwargs): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='carpet.baxis', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/carpet/baxis/_tickformatstopdefaults.py index 615da496d38..18293004269 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_tickformatstopdefaults.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickformatstopdefaults", parent_name="carpet.baxis", **kwargs - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='carpet.baxis', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_tickformatstops.py b/packages/python/plotly/plotly/validators/carpet/baxis/_tickformatstops.py index 9ef98d4f38f..3b0a3f1b52c 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_tickformatstops.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="tickformatstops", parent_name="carpet.baxis", **kwargs - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='carpet.baxis', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_tickmode.py b/packages/python/plotly/plotly/validators/carpet/baxis/_tickmode.py index 3c87ec2af70..df6b5794f7b 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_tickmode.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_tickmode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="tickmode", parent_name="carpet.baxis", **kwargs): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='carpet.baxis', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_tickprefix.py b/packages/python/plotly/plotly/validators/carpet/baxis/_tickprefix.py index e578f01f942..ed4f92d6450 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_tickprefix.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="tickprefix", parent_name="carpet.baxis", **kwargs): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='carpet.baxis', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_ticksuffix.py b/packages/python/plotly/plotly/validators/carpet/baxis/_ticksuffix.py index 27b78432f56..15d085b9b8e 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_ticksuffix.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="ticksuffix", parent_name="carpet.baxis", **kwargs): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='carpet.baxis', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_ticktext.py b/packages/python/plotly/plotly/validators/carpet/baxis/_ticktext.py index 42b5bf4be49..bf4982a662b 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_ticktext.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_ticktext.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ticktext", parent_name="carpet.baxis", **kwargs): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='carpet.baxis', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_ticktextsrc.py b/packages/python/plotly/plotly/validators/carpet/baxis/_ticktextsrc.py index 5dd8343f8c8..12a9648179b 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_ticktextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="ticktextsrc", parent_name="carpet.baxis", **kwargs): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='carpet.baxis', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_tickvals.py b/packages/python/plotly/plotly/validators/carpet/baxis/_tickvals.py index 170741e75b9..427fef2bf7e 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_tickvals.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_tickvals.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="tickvals", parent_name="carpet.baxis", **kwargs): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='carpet.baxis', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_tickvalssrc.py b/packages/python/plotly/plotly/validators/carpet/baxis/_tickvalssrc.py index f1a22cb0869..3d11e605674 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_tickvalssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="tickvalssrc", parent_name="carpet.baxis", **kwargs): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='carpet.baxis', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_title.py b/packages/python/plotly/plotly/validators/carpet/baxis/_title.py index 6f31f8636a4..443d0dc3eb5 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_title.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_title.py @@ -1,23 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__(self, plotly_name="title", parent_name="carpet.baxis", **kwargs): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this axis' title font. - offset - An additional amount by which to offset the - title from the tick labels, given in pixels. - text - Sets the title of this axis. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='carpet.baxis', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_type.py b/packages/python/plotly/plotly/validators/carpet/baxis/_type.py index 35b43e57ce9..ad1457ebb1d 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_type.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_type.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="type", parent_name="carpet.baxis", **kwargs): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["-", "linear", "date", "category"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='carpet.baxis', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['-', 'linear', 'date', 'category']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/__init__.py b/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_color.py b/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_color.py index 525a291ec1e..f062601a925 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="carpet.baxis.tickfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='carpet.baxis.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_family.py b/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_family.py index c5d4421c5d9..ddf47d21d09 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="carpet.baxis.tickfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='carpet.baxis.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_lineposition.py index 68d145c64fc..acd36af6e2b 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_lineposition.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="carpet.baxis.tickfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='carpet.baxis.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_shadow.py index 41c9fe63369..6df2fae277b 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="carpet.baxis.tickfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='carpet.baxis.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_size.py b/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_size.py index 61dab179447..c6c3cd4fccd 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="carpet.baxis.tickfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='carpet.baxis.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_style.py b/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_style.py index f503eda879b..cf89c0269a8 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="carpet.baxis.tickfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='carpet.baxis.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_textcase.py index 99140e3bdb4..d455e537c60 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="carpet.baxis.tickfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='carpet.baxis.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_variant.py b/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_variant.py index e6623e9a58a..cde8bcfe37b 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="carpet.baxis.tickfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='carpet.baxis.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_weight.py b/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_weight.py index 5a0fb30b486..48e7bbf1c0c 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="carpet.baxis.tickfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='carpet.baxis.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/carpet/baxis/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/carpet/baxis/tickformatstop/_dtickrange.py index 275e262922f..fd37cc2286b 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="carpet.baxis.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "valType": "any"}, - {"editType": "calc", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='carpet.baxis.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'valType': 'any'}, {'editType': 'calc', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/carpet/baxis/tickformatstop/_enabled.py index 49fb95e877e..53962aeda01 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/tickformatstop/_enabled.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="enabled", parent_name="carpet.baxis.tickformatstop", **kwargs - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='carpet.baxis.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/carpet/baxis/tickformatstop/_name.py index 1cb60593bdd..fa2664aa1c5 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/tickformatstop/_name.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="name", parent_name="carpet.baxis.tickformatstop", **kwargs - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='carpet.baxis.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/carpet/baxis/tickformatstop/_templateitemname.py index 41778e1101f..3eb8d93a4f5 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="carpet.baxis.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='carpet.baxis.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/carpet/baxis/tickformatstop/_value.py index 5243b87035a..85b92f0338a 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/tickformatstop/_value.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="value", parent_name="carpet.baxis.tickformatstop", **kwargs - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='carpet.baxis.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/title/__init__.py b/packages/python/plotly/plotly/validators/carpet/baxis/title/__init__.py index ff2ee4cb29f..0fbec2bc6ae 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/title/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._offset import OffsetValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._offset.OffsetValidator", "._font.FontValidator"], + ['._text.TextValidator', '._offset.OffsetValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/title/_font.py b/packages/python/plotly/plotly/validators/carpet/baxis/title/_font.py index f8bef608e17..a35cb739576 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/title/_font.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/title/_font.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="carpet.baxis.title", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='carpet.baxis.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/title/_offset.py b/packages/python/plotly/plotly/validators/carpet/baxis/title/_offset.py index ffb2d5c0112..500e9de34dc 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/title/_offset.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/title/_offset.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OffsetValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="offset", parent_name="carpet.baxis.title", **kwargs - ): - super(OffsetValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OffsetValidator(_bv.NumberValidator): + def __init__(self, plotly_name='offset', + parent_name='carpet.baxis.title', + **kwargs): + super(OffsetValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/title/_text.py b/packages/python/plotly/plotly/validators/carpet/baxis/title/_text.py index 5fdc11173a3..542bebddcee 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/title/_text.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/title/_text.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="carpet.baxis.title", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='carpet.baxis.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/title/font/__init__.py b/packages/python/plotly/plotly/validators/carpet/baxis/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_color.py b/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_color.py index 27dc892115d..8fbb88ca9af 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="carpet.baxis.title.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='carpet.baxis.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_family.py b/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_family.py index c798648c92c..87c6aedfbbf 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="carpet.baxis.title.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='carpet.baxis.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_lineposition.py index 2e162044964..3b0bc8c6cb5 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="carpet.baxis.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='carpet.baxis.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_shadow.py b/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_shadow.py index 4bc9e72813b..fef4d3465e4 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="carpet.baxis.title.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='carpet.baxis.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_size.py b/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_size.py index abf8c48cb09..a72953a43e8 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="carpet.baxis.title.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='carpet.baxis.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_style.py b/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_style.py index dee9f02479a..d5419c77829 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="carpet.baxis.title.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='carpet.baxis.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_textcase.py b/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_textcase.py index 7662aa30a34..b469115feda 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="carpet.baxis.title.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='carpet.baxis.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_variant.py b/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_variant.py index ff18b7ecebb..07d796cf2c4 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="carpet.baxis.title.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='carpet.baxis.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_weight.py b/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_weight.py index 8a04fcf8522..e21ddf967a2 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/title/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="carpet.baxis.title.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='carpet.baxis.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/font/__init__.py b/packages/python/plotly/plotly/validators/carpet/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/carpet/font/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/carpet/font/_color.py b/packages/python/plotly/plotly/validators/carpet/font/_color.py index 20190ce0bc7..8a61ce39967 100644 --- a/packages/python/plotly/plotly/validators/carpet/font/_color.py +++ b/packages/python/plotly/plotly/validators/carpet/font/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="carpet.font", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='carpet.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/font/_family.py b/packages/python/plotly/plotly/validators/carpet/font/_family.py index b504547d667..722eed5c2f9 100644 --- a/packages/python/plotly/plotly/validators/carpet/font/_family.py +++ b/packages/python/plotly/plotly/validators/carpet/font/_family.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="family", parent_name="carpet.font", **kwargs): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='carpet.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/font/_lineposition.py b/packages/python/plotly/plotly/validators/carpet/font/_lineposition.py index 62357f2ebf3..47b92776151 100644 --- a/packages/python/plotly/plotly/validators/carpet/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/carpet/font/_lineposition.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="lineposition", parent_name="carpet.font", **kwargs): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='carpet.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/font/_shadow.py b/packages/python/plotly/plotly/validators/carpet/font/_shadow.py index a81eacbaa2b..df35ed14289 100644 --- a/packages/python/plotly/plotly/validators/carpet/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/carpet/font/_shadow.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="shadow", parent_name="carpet.font", **kwargs): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='carpet.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/font/_size.py b/packages/python/plotly/plotly/validators/carpet/font/_size.py index 7095055981e..7771b49cbd4 100644 --- a/packages/python/plotly/plotly/validators/carpet/font/_size.py +++ b/packages/python/plotly/plotly/validators/carpet/font/_size.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="carpet.font", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='carpet.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/font/_style.py b/packages/python/plotly/plotly/validators/carpet/font/_style.py index f980b6392ed..50bc19c5ecc 100644 --- a/packages/python/plotly/plotly/validators/carpet/font/_style.py +++ b/packages/python/plotly/plotly/validators/carpet/font/_style.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="style", parent_name="carpet.font", **kwargs): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='carpet.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/font/_textcase.py b/packages/python/plotly/plotly/validators/carpet/font/_textcase.py index 4458271444c..bb29c4d2d54 100644 --- a/packages/python/plotly/plotly/validators/carpet/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/carpet/font/_textcase.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="textcase", parent_name="carpet.font", **kwargs): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='carpet.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/font/_variant.py b/packages/python/plotly/plotly/validators/carpet/font/_variant.py index 0645ee8f570..eac74d10673 100644 --- a/packages/python/plotly/plotly/validators/carpet/font/_variant.py +++ b/packages/python/plotly/plotly/validators/carpet/font/_variant.py @@ -1,22 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="variant", parent_name="carpet.font", **kwargs): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='carpet.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/font/_weight.py b/packages/python/plotly/plotly/validators/carpet/font/_weight.py index 6d7afe2e753..3c1d75add36 100644 --- a/packages/python/plotly/plotly/validators/carpet/font/_weight.py +++ b/packages/python/plotly/plotly/validators/carpet/font/_weight.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="weight", parent_name="carpet.font", **kwargs): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='carpet.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/_font.py index 7f67ac14d7a..9e21e9c4d02 100644 --- a/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="carpet.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='carpet.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/_text.py index cc369a17f6d..32f4a212dfa 100644 --- a/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="carpet.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='carpet.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_color.py index d229c688630..f54ac34ab20 100644 --- a/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="carpet.legendgrouptitle.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='carpet.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_family.py index bc59037f1eb..5dbba3a9f79 100644 --- a/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="carpet.legendgrouptitle.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='carpet.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_lineposition.py index 24fe20738f9..e209b45527c 100644 --- a/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="carpet.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='carpet.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_shadow.py index 17477c2fdc5..ab297261c01 100644 --- a/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="carpet.legendgrouptitle.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='carpet.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_size.py index 3ab7fbae18a..29835682e52 100644 --- a/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="carpet.legendgrouptitle.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='carpet.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_style.py index 967552352df..0ce97d63b70 100644 --- a/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="carpet.legendgrouptitle.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='carpet.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_textcase.py index 74dc63c3168..186bed98aff 100644 --- a/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="carpet.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='carpet.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_variant.py index 74c321bc297..b6e1712f1ee 100644 --- a/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="carpet.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='carpet.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_weight.py index 4ac56dd83f2..475395c89f6 100644 --- a/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/carpet/legendgrouptitle/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="carpet.legendgrouptitle.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='carpet.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/stream/__init__.py b/packages/python/plotly/plotly/validators/carpet/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/carpet/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/carpet/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/carpet/stream/_maxpoints.py index 264c6f4d699..8fb6b1b2161 100644 --- a/packages/python/plotly/plotly/validators/carpet/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/carpet/stream/_maxpoints.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="maxpoints", parent_name="carpet.stream", **kwargs): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='carpet.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/carpet/stream/_token.py b/packages/python/plotly/plotly/validators/carpet/stream/_token.py index a668906119d..380ddf5a85b 100644 --- a/packages/python/plotly/plotly/validators/carpet/stream/_token.py +++ b/packages/python/plotly/plotly/validators/carpet/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="carpet.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='carpet.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/__init__.py b/packages/python/plotly/plotly/validators/choropleth/__init__.py index b1f72cd16e9..e57a00d2ea7 100644 --- a/packages/python/plotly/plotly/validators/choropleth/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zsrc import ZsrcValidator from ._zmin import ZminValidator @@ -52,58 +51,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zsrc.ZsrcValidator", - "._zmin.ZminValidator", - "._zmid.ZmidValidator", - "._zmax.ZmaxValidator", - "._zauto.ZautoValidator", - "._z.ZValidator", - "._visible.VisibleValidator", - "._unselected.UnselectedValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._textsrc.TextsrcValidator", - "._text.TextValidator", - "._stream.StreamValidator", - "._showscale.ShowscaleValidator", - "._showlegend.ShowlegendValidator", - "._selectedpoints.SelectedpointsValidator", - "._selected.SelectedValidator", - "._reversescale.ReversescaleValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._marker.MarkerValidator", - "._locationssrc.LocationssrcValidator", - "._locations.LocationsValidator", - "._locationmode.LocationmodeValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._geojson.GeojsonValidator", - "._geo.GeoValidator", - "._featureidkey.FeatureidkeyValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._zsrc.ZsrcValidator', '._zmin.ZminValidator', '._zmid.ZmidValidator', '._zmax.ZmaxValidator', '._zauto.ZautoValidator', '._z.ZValidator', '._visible.VisibleValidator', '._unselected.UnselectedValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._textsrc.TextsrcValidator', '._text.TextValidator', '._stream.StreamValidator', '._showscale.ShowscaleValidator', '._showlegend.ShowlegendValidator', '._selectedpoints.SelectedpointsValidator', '._selected.SelectedValidator', '._reversescale.ReversescaleValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._marker.MarkerValidator', '._locationssrc.LocationssrcValidator', '._locations.LocationsValidator', '._locationmode.LocationmodeValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._geojson.GeojsonValidator', '._geo.GeoValidator', '._featureidkey.FeatureidkeyValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choropleth/_autocolorscale.py b/packages/python/plotly/plotly/validators/choropleth/_autocolorscale.py index 3bc74402a29..531c6d17b07 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/choropleth/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="choropleth", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='choropleth', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_coloraxis.py b/packages/python/plotly/plotly/validators/choropleth/_coloraxis.py index 472db6a7091..8a51465ea37 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/choropleth/_coloraxis.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="coloraxis", parent_name="choropleth", **kwargs): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='choropleth', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_colorbar.py b/packages/python/plotly/plotly/validators/choropleth/_colorbar.py index b696d78d6b7..9e739bb36e6 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_colorbar.py +++ b/packages/python/plotly/plotly/validators/choropleth/_colorbar.py @@ -1,279 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="colorbar", parent_name="choropleth", **kwargs): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.choropl - eth.colorbar.Tickformatstop` instances or dicts - with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.choropleth.colorbar.tickformatstopdefaults), - sets the default property values to use for - elements of choropleth.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.choropleth.colorba - r.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='choropleth', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_colorscale.py b/packages/python/plotly/plotly/validators/choropleth/_colorscale.py index 0756b0b1d50..cb21d4683b0 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_colorscale.py +++ b/packages/python/plotly/plotly/validators/choropleth/_colorscale.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__(self, plotly_name="colorscale", parent_name="choropleth", **kwargs): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='choropleth', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_customdata.py b/packages/python/plotly/plotly/validators/choropleth/_customdata.py index 2de9dea3e96..454f26c6018 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_customdata.py +++ b/packages/python/plotly/plotly/validators/choropleth/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="choropleth", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='choropleth', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_customdatasrc.py b/packages/python/plotly/plotly/validators/choropleth/_customdatasrc.py index 151d7ddaac3..9d4649ba7cd 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/choropleth/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="choropleth", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='choropleth', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_featureidkey.py b/packages/python/plotly/plotly/validators/choropleth/_featureidkey.py index d1efbb9a160..8ac1e9da476 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_featureidkey.py +++ b/packages/python/plotly/plotly/validators/choropleth/_featureidkey.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FeatureidkeyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="featureidkey", parent_name="choropleth", **kwargs): - super(FeatureidkeyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FeatureidkeyValidator(_bv.StringValidator): + def __init__(self, plotly_name='featureidkey', + parent_name='choropleth', + **kwargs): + super(FeatureidkeyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_geo.py b/packages/python/plotly/plotly/validators/choropleth/_geo.py index b963fd008fa..313f1ced997 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_geo.py +++ b/packages/python/plotly/plotly/validators/choropleth/_geo.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class GeoValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="geo", parent_name="choropleth", **kwargs): - super(GeoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "geo"), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GeoValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='geo', + parent_name='choropleth', + **kwargs): + super(GeoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'geo'), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_geojson.py b/packages/python/plotly/plotly/validators/choropleth/_geojson.py index 71a69a7a806..6ce243a2807 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_geojson.py +++ b/packages/python/plotly/plotly/validators/choropleth/_geojson.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class GeojsonValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="geojson", parent_name="choropleth", **kwargs): - super(GeojsonValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class GeojsonValidator(_bv.AnyValidator): + def __init__(self, plotly_name='geojson', + parent_name='choropleth', + **kwargs): + super(GeojsonValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_hoverinfo.py b/packages/python/plotly/plotly/validators/choropleth/_hoverinfo.py index 42c37ee22f8..86436c2fecb 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/choropleth/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="choropleth", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["location", "z", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='choropleth', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['location', 'z', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/choropleth/_hoverinfosrc.py index 4318e56413b..733c2769b86 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/choropleth/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="choropleth", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='choropleth', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_hoverlabel.py b/packages/python/plotly/plotly/validators/choropleth/_hoverlabel.py index 8896657cd65..c5ade4740d8 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/choropleth/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="choropleth", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='choropleth', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_hovertemplate.py b/packages/python/plotly/plotly/validators/choropleth/_hovertemplate.py index d8c40630c60..8e5339a279a 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/choropleth/_hovertemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="choropleth", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='choropleth', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/choropleth/_hovertemplatesrc.py index 1e99bfd0bf8..303ef148d97 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/choropleth/_hovertemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertemplatesrc", parent_name="choropleth", **kwargs - ): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='choropleth', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_hovertext.py b/packages/python/plotly/plotly/validators/choropleth/_hovertext.py index 8f59d47dbf0..dc77c248b72 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_hovertext.py +++ b/packages/python/plotly/plotly/validators/choropleth/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="choropleth", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='choropleth', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_hovertextsrc.py b/packages/python/plotly/plotly/validators/choropleth/_hovertextsrc.py index a2babf8d61b..28302d16639 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/choropleth/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="choropleth", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='choropleth', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_ids.py b/packages/python/plotly/plotly/validators/choropleth/_ids.py index e6c741fffed..5069c4e3d82 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_ids.py +++ b/packages/python/plotly/plotly/validators/choropleth/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="choropleth", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='choropleth', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_idssrc.py b/packages/python/plotly/plotly/validators/choropleth/_idssrc.py index ed22d7d4096..cb6bdbb052d 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_idssrc.py +++ b/packages/python/plotly/plotly/validators/choropleth/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="choropleth", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='choropleth', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_legend.py b/packages/python/plotly/plotly/validators/choropleth/_legend.py index 04273e21ef0..9e9599dedfb 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_legend.py +++ b/packages/python/plotly/plotly/validators/choropleth/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="choropleth", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='choropleth', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_legendgroup.py b/packages/python/plotly/plotly/validators/choropleth/_legendgroup.py index 4711ae2d626..e7812d7f9e8 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/choropleth/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="choropleth", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='choropleth', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/choropleth/_legendgrouptitle.py index 72f53c248dc..7a60ecf5fbf 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/choropleth/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="choropleth", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='choropleth', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_legendrank.py b/packages/python/plotly/plotly/validators/choropleth/_legendrank.py index 7c24c40c358..78016f4ad95 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_legendrank.py +++ b/packages/python/plotly/plotly/validators/choropleth/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="choropleth", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='choropleth', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_legendwidth.py b/packages/python/plotly/plotly/validators/choropleth/_legendwidth.py index b8d8b752db6..78672ab51e8 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/choropleth/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="choropleth", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='choropleth', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_locationmode.py b/packages/python/plotly/plotly/validators/choropleth/_locationmode.py index afe54f8b3d9..f024b536ef4 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_locationmode.py +++ b/packages/python/plotly/plotly/validators/choropleth/_locationmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LocationmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="locationmode", parent_name="choropleth", **kwargs): - super(LocationmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", ["ISO-3", "USA-states", "country names", "geojson-id"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LocationmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='locationmode', + parent_name='choropleth', + **kwargs): + super(LocationmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['ISO-3', 'USA-states', 'country names', 'geojson-id']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_locations.py b/packages/python/plotly/plotly/validators/choropleth/_locations.py index 85335eb35f6..7568e6fd605 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_locations.py +++ b/packages/python/plotly/plotly/validators/choropleth/_locations.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="locations", parent_name="choropleth", **kwargs): - super(LocationsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LocationsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='locations', + parent_name='choropleth', + **kwargs): + super(LocationsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_locationssrc.py b/packages/python/plotly/plotly/validators/choropleth/_locationssrc.py index 9bf200c9c55..3b834c1562f 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_locationssrc.py +++ b/packages/python/plotly/plotly/validators/choropleth/_locationssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="locationssrc", parent_name="choropleth", **kwargs): - super(LocationssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LocationssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='locationssrc', + parent_name='choropleth', + **kwargs): + super(LocationssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_marker.py b/packages/python/plotly/plotly/validators/choropleth/_marker.py index 1cb088f8a5e..489902f107e 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_marker.py +++ b/packages/python/plotly/plotly/validators/choropleth/_marker.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="choropleth", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - line - :class:`plotly.graph_objects.choropleth.marker. - Line` instance or dict with compatible - properties - opacity - Sets the opacity of the locations. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='choropleth', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_meta.py b/packages/python/plotly/plotly/validators/choropleth/_meta.py index 9f6ade45f7f..39d1c6a55c3 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_meta.py +++ b/packages/python/plotly/plotly/validators/choropleth/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="choropleth", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='choropleth', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_metasrc.py b/packages/python/plotly/plotly/validators/choropleth/_metasrc.py index ef4bc3d80db..bf2867c6674 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_metasrc.py +++ b/packages/python/plotly/plotly/validators/choropleth/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="choropleth", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='choropleth', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_name.py b/packages/python/plotly/plotly/validators/choropleth/_name.py index e7e6e91d8c6..f47c35cf658 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_name.py +++ b/packages/python/plotly/plotly/validators/choropleth/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="choropleth", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='choropleth', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_reversescale.py b/packages/python/plotly/plotly/validators/choropleth/_reversescale.py index eaddd60af0c..5172005e960 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_reversescale.py +++ b/packages/python/plotly/plotly/validators/choropleth/_reversescale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="reversescale", parent_name="choropleth", **kwargs): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='choropleth', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_selected.py b/packages/python/plotly/plotly/validators/choropleth/_selected.py index ef83768b617..43a9830b22f 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_selected.py +++ b/packages/python/plotly/plotly/validators/choropleth/_selected.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="selected", parent_name="choropleth", **kwargs): - super(SelectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Selected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.choropleth.selecte - d.Marker` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='selected', + parent_name='choropleth', + **kwargs): + super(SelectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_selectedpoints.py b/packages/python/plotly/plotly/validators/choropleth/_selectedpoints.py index 0797dc3752d..41e39c49729 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_selectedpoints.py +++ b/packages/python/plotly/plotly/validators/choropleth/_selectedpoints.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="selectedpoints", parent_name="choropleth", **kwargs - ): - super(SelectedpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SelectedpointsValidator(_bv.AnyValidator): + def __init__(self, plotly_name='selectedpoints', + parent_name='choropleth', + **kwargs): + super(SelectedpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_showlegend.py b/packages/python/plotly/plotly/validators/choropleth/_showlegend.py index 9f6d2144eef..db792e081d9 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_showlegend.py +++ b/packages/python/plotly/plotly/validators/choropleth/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="choropleth", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='choropleth', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_showscale.py b/packages/python/plotly/plotly/validators/choropleth/_showscale.py index 91c6b290ad1..ed98c56e227 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_showscale.py +++ b/packages/python/plotly/plotly/validators/choropleth/_showscale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showscale", parent_name="choropleth", **kwargs): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='choropleth', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_stream.py b/packages/python/plotly/plotly/validators/choropleth/_stream.py index 28f58af6e89..394bfb88f48 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_stream.py +++ b/packages/python/plotly/plotly/validators/choropleth/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="choropleth", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='choropleth', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_text.py b/packages/python/plotly/plotly/validators/choropleth/_text.py index 8b89687d23f..8ff98f61172 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_text.py +++ b/packages/python/plotly/plotly/validators/choropleth/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="choropleth", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='choropleth', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_textsrc.py b/packages/python/plotly/plotly/validators/choropleth/_textsrc.py index f4afc915d07..4d46e973ce3 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_textsrc.py +++ b/packages/python/plotly/plotly/validators/choropleth/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="choropleth", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='choropleth', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_uid.py b/packages/python/plotly/plotly/validators/choropleth/_uid.py index 4fdb25e0dea..62e347776c9 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_uid.py +++ b/packages/python/plotly/plotly/validators/choropleth/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="choropleth", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='choropleth', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_uirevision.py b/packages/python/plotly/plotly/validators/choropleth/_uirevision.py index 07a6238f971..5db75ad0113 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_uirevision.py +++ b/packages/python/plotly/plotly/validators/choropleth/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="choropleth", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='choropleth', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_unselected.py b/packages/python/plotly/plotly/validators/choropleth/_unselected.py index 86808ffde78..0217694a529 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_unselected.py +++ b/packages/python/plotly/plotly/validators/choropleth/_unselected.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="unselected", parent_name="choropleth", **kwargs): - super(UnselectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Unselected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.choropleth.unselec - ted.Marker` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UnselectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='unselected', + parent_name='choropleth', + **kwargs): + super(UnselectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_visible.py b/packages/python/plotly/plotly/validators/choropleth/_visible.py index d7998697a8c..a8bed565942 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_visible.py +++ b/packages/python/plotly/plotly/validators/choropleth/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="choropleth", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='choropleth', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_z.py b/packages/python/plotly/plotly/validators/choropleth/_z.py index 51d611f024b..6b6233584fa 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_z.py +++ b/packages/python/plotly/plotly/validators/choropleth/_z.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="z", parent_name="choropleth", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='z', + parent_name='choropleth', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_zauto.py b/packages/python/plotly/plotly/validators/choropleth/_zauto.py index 1ea1a26f012..ed29ad0bc86 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_zauto.py +++ b/packages/python/plotly/plotly/validators/choropleth/_zauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="zauto", parent_name="choropleth", **kwargs): - super(ZautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='zauto', + parent_name='choropleth', + **kwargs): + super(ZautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_zmax.py b/packages/python/plotly/plotly/validators/choropleth/_zmax.py index e8335ee71f0..680897395cf 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_zmax.py +++ b/packages/python/plotly/plotly/validators/choropleth/_zmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmax", parent_name="choropleth", **kwargs): - super(ZmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"zauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmax', + parent_name='choropleth', + **kwargs): + super(ZmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'zauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_zmid.py b/packages/python/plotly/plotly/validators/choropleth/_zmid.py index 15d1dd8dee8..d97e94bf0b6 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_zmid.py +++ b/packages/python/plotly/plotly/validators/choropleth/_zmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmid", parent_name="choropleth", **kwargs): - super(ZmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmid', + parent_name='choropleth', + **kwargs): + super(ZmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_zmin.py b/packages/python/plotly/plotly/validators/choropleth/_zmin.py index 16b4b4f12c0..7b9735376e9 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_zmin.py +++ b/packages/python/plotly/plotly/validators/choropleth/_zmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmin", parent_name="choropleth", **kwargs): - super(ZminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"zauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmin', + parent_name='choropleth', + **kwargs): + super(ZminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'zauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/_zsrc.py b/packages/python/plotly/plotly/validators/choropleth/_zsrc.py index 76db7f17182..089ccb2535c 100644 --- a/packages/python/plotly/plotly/validators/choropleth/_zsrc.py +++ b/packages/python/plotly/plotly/validators/choropleth/_zsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="zsrc", parent_name="choropleth", **kwargs): - super(ZsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='zsrc', + parent_name='choropleth', + **kwargs): + super(ZsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/__init__.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_bgcolor.py index 3c9fbd793f8..bcd4ec6612a 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="choropleth.colorbar", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='choropleth.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_bordercolor.py index 21c06b7e3eb..4a420866f91 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="choropleth.colorbar", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='choropleth.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_borderwidth.py index be6d033cc60..27f262653a1 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_borderwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderwidth", parent_name="choropleth.colorbar", **kwargs - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='choropleth.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_dtick.py index a1ad58a5e86..96381419cc5 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="choropleth.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='choropleth.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_exponentformat.py index 11a19c541f5..01d2287ae8d 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_exponentformat.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="exponentformat", parent_name="choropleth.colorbar", **kwargs - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='choropleth.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_labelalias.py index fc52785dbac..108b68c8f08 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="choropleth.colorbar", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='choropleth.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_len.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_len.py index eee3c960c55..e8b7bb55a8d 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_len.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="len", parent_name="choropleth.colorbar", **kwargs): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='choropleth.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_lenmode.py index 4dd0b085bff..36658a380d1 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_lenmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="lenmode", parent_name="choropleth.colorbar", **kwargs - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='choropleth.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_minexponent.py index c3f49d58021..6a94023b4dd 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="choropleth.colorbar", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='choropleth.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_nticks.py index b620eb0b9d6..0759303cd7e 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="choropleth.colorbar", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='choropleth.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_orientation.py index 18cb0412eaa..73aa6637742 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_orientation.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="orientation", parent_name="choropleth.colorbar", **kwargs - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='choropleth.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_outlinecolor.py index c3820715c15..f0ced7bbb10 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_outlinecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="outlinecolor", parent_name="choropleth.colorbar", **kwargs - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='choropleth.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_outlinewidth.py index 5c77227b07e..1d1094356f6 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_outlinewidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="outlinewidth", parent_name="choropleth.colorbar", **kwargs - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='choropleth.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_separatethousands.py index 874e38e0ac4..ebe870fcedf 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="choropleth.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='choropleth.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_showexponent.py index 309539996e0..eaec9a195b0 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="choropleth.colorbar", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='choropleth.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_showticklabels.py index 6638ccba734..eec0a2c3127 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_showticklabels.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showticklabels", parent_name="choropleth.colorbar", **kwargs - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='choropleth.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_showtickprefix.py index f382c87e5ca..a7fe8017924 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_showtickprefix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showtickprefix", parent_name="choropleth.colorbar", **kwargs - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='choropleth.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_showticksuffix.py index 04d3bc5b4f1..6bda22f8765 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_showticksuffix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showticksuffix", parent_name="choropleth.colorbar", **kwargs - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='choropleth.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_thickness.py index f6395f1b62c..b7d9bd057ef 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="choropleth.colorbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='choropleth.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_thicknessmode.py index 35728399939..61196c9411c 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_thicknessmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="thicknessmode", parent_name="choropleth.colorbar", **kwargs - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='choropleth.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_tick0.py index 45ca3fc8759..5d6a6ae9a8a 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="choropleth.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='choropleth.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickangle.py index 311fd67e1ba..3dcae069e65 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="choropleth.colorbar", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='choropleth.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickcolor.py index a612c449e62..cd79fb584a1 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="choropleth.colorbar", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='choropleth.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickfont.py index 209724d606a..6f147e5147a 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="choropleth.colorbar", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='choropleth.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickformat.py index 8482fc84e51..7c9e57b0602 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="choropleth.colorbar", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='choropleth.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickformatstopdefaults.py index 0e4f78c1a82..510fbe710f4 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="choropleth.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='choropleth.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickformatstops.py index 888481e60de..592b4f8e10c 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickformatstops.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="tickformatstops", parent_name="choropleth.colorbar", **kwargs - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='choropleth.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticklabeloverflow.py index c8d6c4344a2..c2281c5f439 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="choropleth.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='choropleth.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticklabelposition.py index 14f303e94b6..b9845f822d2 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="choropleth.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='choropleth.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticklabelstep.py index 78e8af87391..06f4dbd823b 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticklabelstep.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="ticklabelstep", parent_name="choropleth.colorbar", **kwargs - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='choropleth.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticklen.py index 836a76caf8c..3c4b564531c 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="choropleth.colorbar", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='choropleth.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickmode.py index 9828a93634d..c2eefa925ed 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="choropleth.colorbar", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='choropleth.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickprefix.py index 1ae52f1551b..dbdb5727b32 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="choropleth.colorbar", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='choropleth.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticks.py index 421cc3c7fe2..42999801704 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="choropleth.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='choropleth.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticksuffix.py index aea65509928..6169130555b 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="choropleth.colorbar", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='choropleth.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticktext.py index 318924a28a1..1b3d4dbc7d7 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="choropleth.colorbar", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='choropleth.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticktextsrc.py index f544556654a..1674b2caa06 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="choropleth.colorbar", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='choropleth.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickvals.py index 4be520f8198..83b2a03c8b8 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="choropleth.colorbar", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='choropleth.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickvalssrc.py index 3e2fcb31ad3..40ccc612543 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="choropleth.colorbar", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='choropleth.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickwidth.py index 0a317a94900..a4cb2529c95 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="choropleth.colorbar", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='choropleth.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_title.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_title.py index ddefb781542..2434a9e0a91 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="choropleth.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='choropleth.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_x.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_x.py index 38bdf123d80..ef6f99cc3a3 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x", parent_name="choropleth.colorbar", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='choropleth.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_xanchor.py index 29b64c1ac36..69f46f3fed3 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="choropleth.colorbar", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='choropleth.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_xpad.py index 156d72b09d6..223c5cf0e45 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_xpad.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="xpad", parent_name="choropleth.colorbar", **kwargs): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='choropleth.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_xref.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_xref.py index 38dfbb2c5b0..eb99571a77b 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_xref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xref", parent_name="choropleth.colorbar", **kwargs): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='choropleth.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_y.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_y.py index 1e75127902e..a9a5135bbe2 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y", parent_name="choropleth.colorbar", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='choropleth.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_yanchor.py index 8431e52e9b9..a6be6e3dd71 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="choropleth.colorbar", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='choropleth.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_ypad.py index 09309a5ac63..c3734633d3d 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_ypad.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="ypad", parent_name="choropleth.colorbar", **kwargs): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='choropleth.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/_yref.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/_yref.py index fad04acf621..b0979c57192 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/_yref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yref", parent_name="choropleth.colorbar", **kwargs): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='choropleth.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_color.py index 25ed1bd9e95..ae128efa4ac 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="choropleth.colorbar.tickfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='choropleth.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_family.py index ddd3ae57bd5..f40b5a9b5e9 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="choropleth.colorbar.tickfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='choropleth.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_lineposition.py index 07bd241c3f2..1d27f2e457e 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="choropleth.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='choropleth.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_shadow.py index 1751424594d..f204f277ad4 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="choropleth.colorbar.tickfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='choropleth.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_size.py index fdb57e1f89f..76e72c36ab2 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="choropleth.colorbar.tickfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='choropleth.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_style.py index b6c1c895c8e..355170b9199 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="choropleth.colorbar.tickfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='choropleth.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_textcase.py index 721f1e6e0ba..ec6ab652616 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="choropleth.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='choropleth.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_variant.py index 45bce1fd8a8..8ab3da4d464 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="choropleth.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='choropleth.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_weight.py index 6fa5bd94529..ae1a132844f 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="choropleth.colorbar.tickfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='choropleth.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickformatstop/_dtickrange.py index a61712ab781..a94dfb745ff 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="choropleth.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - items=kwargs.pop( - "items", - [ - {"editType": "colorbars", "valType": "any"}, - {"editType": "colorbars", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='choropleth.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + items=kwargs.pop('items', [{'editType': 'colorbars', 'valType': 'any'}, {'editType': 'colorbars', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickformatstop/_enabled.py index d105887cc71..19f5b0aded2 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="choropleth.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='choropleth.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickformatstop/_name.py index 2d666fb1d68..5059e752016 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="choropleth.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='choropleth.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickformatstop/_templateitemname.py index 94098b0448a..f38b5bd5439 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="choropleth.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='choropleth.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickformatstop/_value.py index a036c49c85b..78d8c0a791e 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="choropleth.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='choropleth.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/_font.py index 69eb73980e2..2070be70497 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="choropleth.colorbar.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='choropleth.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/_side.py index 366984329cd..f909191a5cc 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/_side.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="side", parent_name="choropleth.colorbar.title", **kwargs - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='choropleth.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/_text.py index 9efb61a7536..7bb3fc088fa 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="choropleth.colorbar.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='choropleth.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_color.py index b31e89d5fc9..1bc95c126c2 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="choropleth.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='choropleth.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_family.py index 04fb50e0d10..9de844e7f76 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="choropleth.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='choropleth.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_lineposition.py index 011a4da4771..8f06979121f 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="choropleth.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='choropleth.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_shadow.py index 818744b2c8d..5a23ec30a8c 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="choropleth.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='choropleth.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_size.py index 40c6789a1c5..bea2c798914 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="choropleth.colorbar.title.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='choropleth.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_style.py index 6a2b690957b..7e2ee41ba4e 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="choropleth.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='choropleth.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_textcase.py index 699580a4160..40fbecd73fa 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="choropleth.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='choropleth.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_variant.py index e5eddd36b56..76c5e4241e3 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="choropleth.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='choropleth.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_weight.py index 7a9fd5f71f8..d521c268c1c 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="choropleth.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='choropleth.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_align.py index 7a499893099..ac92cdee21f 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_align.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="align", parent_name="choropleth.hoverlabel", **kwargs - ): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='choropleth.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_alignsrc.py index 4616498547e..6686d4e9403 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="choropleth.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='choropleth.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_bgcolor.py index 41377530feb..12036984106 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="choropleth.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='choropleth.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_bgcolorsrc.py index f8104c13843..ef47788142b 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="choropleth.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='choropleth.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_bordercolor.py index 83da7cdb3c4..5ba68f2b21d 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="choropleth.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='choropleth.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_bordercolorsrc.py index d9d08a0e261..6985ac13875 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="bordercolorsrc", - parent_name="choropleth.hoverlabel", - **kwargs, - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='choropleth.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_font.py index 60c62f076f9..6cc39f91637 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_font.py @@ -1,88 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="choropleth.hoverlabel", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='choropleth.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_namelength.py index 250baa5ebac..630237c4ce4 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="choropleth.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='choropleth.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_namelengthsrc.py index 8bf1c0d7040..1694dd0524a 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="choropleth.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='choropleth.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_color.py index ab7144e0197..a331a3450bf 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="choropleth.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='choropleth.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_colorsrc.py index 43d9bd9a03c..b1aa79c00da 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="choropleth.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='choropleth.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_family.py index baa4bbe2c7f..f5093ee07df 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="choropleth.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='choropleth.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_familysrc.py index b34fe451776..ebd0eb543ee 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_familysrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="familysrc", - parent_name="choropleth.hoverlabel.font", - **kwargs, - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='choropleth.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_lineposition.py index 2c9a32d0aa4..6387600c009 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="choropleth.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='choropleth.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_linepositionsrc.py index 3c75a8d0dcb..8a22eb6dbc9 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="choropleth.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='choropleth.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_shadow.py index 21f410d1458..39d9abc2829 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="choropleth.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='choropleth.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_shadowsrc.py index 01073e13571..82259c1b9b1 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="shadowsrc", - parent_name="choropleth.hoverlabel.font", - **kwargs, - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='choropleth.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_size.py index a30f27bd5f4..25040da7dd7 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="choropleth.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='choropleth.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_sizesrc.py index 9df299a3bcd..9a9d2088562 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="choropleth.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='choropleth.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_style.py index 36ad00ae598..ba93e33c2f8 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="choropleth.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='choropleth.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_stylesrc.py index ed102052e7e..9c78df922f3 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="choropleth.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='choropleth.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_textcase.py index 2d9539318f2..4efd6f0b790 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="choropleth.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='choropleth.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_textcasesrc.py index a0f205eba62..4dd6ed06f66 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="choropleth.hoverlabel.font", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='choropleth.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_variant.py index 700d8f8b385..46310c6289d 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="choropleth.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='choropleth.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_variantsrc.py index c03ef9d1917..53a7ef731c4 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_variantsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="variantsrc", - parent_name="choropleth.hoverlabel.font", - **kwargs, - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='choropleth.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_weight.py index 428fa8413b5..ebd899d3a93 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="choropleth.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='choropleth.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_weightsrc.py index 2775bc49b30..edddf413e06 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/_weightsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="weightsrc", - parent_name="choropleth.hoverlabel.font", - **kwargs, - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='choropleth.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/_font.py index b0adf309066..daa6dff1edb 100644 --- a/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="choropleth.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='choropleth.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/_text.py index dfb456a15fe..bdc516f76e4 100644 --- a/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="choropleth.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='choropleth.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_color.py index c86bb9862e2..7b0ac64d566 100644 --- a/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="choropleth.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='choropleth.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_family.py index 2becb0c7ea3..40aee3b8df3 100644 --- a/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="choropleth.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='choropleth.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_lineposition.py index 11338b6396c..0e591fe66de 100644 --- a/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="choropleth.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='choropleth.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_shadow.py index 2686892d747..801fe53de26 100644 --- a/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="choropleth.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='choropleth.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_size.py index ecdb4eaf5d8..bc73336ae2b 100644 --- a/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="choropleth.legendgrouptitle.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='choropleth.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_style.py index e67a564072b..daaf1556bbf 100644 --- a/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="choropleth.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='choropleth.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_textcase.py index 1929650daa0..5a809c07c20 100644 --- a/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="choropleth.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='choropleth.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_variant.py index c1f15750c50..359a936353a 100644 --- a/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="choropleth.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='choropleth.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_weight.py index 258a65f2de0..4de533860c8 100644 --- a/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/choropleth/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="choropleth.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='choropleth.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/marker/__init__.py b/packages/python/plotly/plotly/validators/choropleth/marker/__init__.py index 711bedd189e..4a7d1a91d0f 100644 --- a/packages/python/plotly/plotly/validators/choropleth/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/marker/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._opacitysrc import OpacitysrcValidator from ._opacity import OpacityValidator from ._line import LineValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._opacitysrc.OpacitysrcValidator", - "._opacity.OpacityValidator", - "._line.LineValidator", - ], + ['._opacitysrc.OpacitysrcValidator', '._opacity.OpacityValidator', '._line.LineValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choropleth/marker/_line.py b/packages/python/plotly/plotly/validators/choropleth/marker/_line.py index 547bad0e28b..613d5b41867 100644 --- a/packages/python/plotly/plotly/validators/choropleth/marker/_line.py +++ b/packages/python/plotly/plotly/validators/choropleth/marker/_line.py @@ -1,32 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="choropleth.marker", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='choropleth.marker', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/marker/_opacity.py b/packages/python/plotly/plotly/validators/choropleth/marker/_opacity.py index 4df13693bc5..5c612e87c5c 100644 --- a/packages/python/plotly/plotly/validators/choropleth/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/choropleth/marker/_opacity.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="choropleth.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='choropleth.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/marker/_opacitysrc.py b/packages/python/plotly/plotly/validators/choropleth/marker/_opacitysrc.py index 9771883a888..bc96fc72289 100644 --- a/packages/python/plotly/plotly/validators/choropleth/marker/_opacitysrc.py +++ b/packages/python/plotly/plotly/validators/choropleth/marker/_opacitysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="opacitysrc", parent_name="choropleth.marker", **kwargs - ): - super(OpacitysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacitysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='opacitysrc', + parent_name='choropleth.marker', + **kwargs): + super(OpacitysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/marker/line/__init__.py b/packages/python/plotly/plotly/validators/choropleth/marker/line/__init__.py index a2b9e1ae50c..522c01899cf 100644 --- a/packages/python/plotly/plotly/validators/choropleth/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/marker/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._widthsrc import WidthsrcValidator from ._width import WidthValidator @@ -8,14 +7,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._widthsrc.WidthsrcValidator", - "._width.WidthValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._widthsrc.WidthsrcValidator', '._width.WidthValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choropleth/marker/line/_color.py b/packages/python/plotly/plotly/validators/choropleth/marker/line/_color.py index 3a3924f1de7..8048647e188 100644 --- a/packages/python/plotly/plotly/validators/choropleth/marker/line/_color.py +++ b/packages/python/plotly/plotly/validators/choropleth/marker/line/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="choropleth.marker.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='choropleth.marker.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/marker/line/_colorsrc.py b/packages/python/plotly/plotly/validators/choropleth/marker/line/_colorsrc.py index cfa763bed73..cadb4665909 100644 --- a/packages/python/plotly/plotly/validators/choropleth/marker/line/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/choropleth/marker/line/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="choropleth.marker.line", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='choropleth.marker.line', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/marker/line/_width.py b/packages/python/plotly/plotly/validators/choropleth/marker/line/_width.py index 2cbdfbb624b..6a50c3e251e 100644 --- a/packages/python/plotly/plotly/validators/choropleth/marker/line/_width.py +++ b/packages/python/plotly/plotly/validators/choropleth/marker/line/_width.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="choropleth.marker.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='choropleth.marker.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/marker/line/_widthsrc.py b/packages/python/plotly/plotly/validators/choropleth/marker/line/_widthsrc.py index 0d9d7dc9198..62874cd63ba 100644 --- a/packages/python/plotly/plotly/validators/choropleth/marker/line/_widthsrc.py +++ b/packages/python/plotly/plotly/validators/choropleth/marker/line/_widthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="widthsrc", parent_name="choropleth.marker.line", **kwargs - ): - super(WidthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='widthsrc', + parent_name='choropleth.marker.line', + **kwargs): + super(WidthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/selected/__init__.py b/packages/python/plotly/plotly/validators/choropleth/selected/__init__.py index e9bdb89f26d..8ee3c0f5c26 100644 --- a/packages/python/plotly/plotly/validators/choropleth/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/selected/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.MarkerValidator"] + __name__, + [], + ['._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choropleth/selected/_marker.py b/packages/python/plotly/plotly/validators/choropleth/selected/_marker.py index 48a15eec4d8..cab84635c0d 100644 --- a/packages/python/plotly/plotly/validators/choropleth/selected/_marker.py +++ b/packages/python/plotly/plotly/validators/choropleth/selected/_marker.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="choropleth.selected", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - opacity - Sets the marker opacity of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='choropleth.selected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/choropleth/selected/marker/__init__.py index 049134a716d..9128012434d 100644 --- a/packages/python/plotly/plotly/validators/choropleth/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/selected/marker/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._opacity import OpacityValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._opacity.OpacityValidator"] + __name__, + [], + ['._opacity.OpacityValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choropleth/selected/marker/_opacity.py b/packages/python/plotly/plotly/validators/choropleth/selected/marker/_opacity.py index 0b98e257f87..83f0003fa59 100644 --- a/packages/python/plotly/plotly/validators/choropleth/selected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/choropleth/selected/marker/_opacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="choropleth.selected.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='choropleth.selected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/stream/__init__.py b/packages/python/plotly/plotly/validators/choropleth/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/choropleth/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choropleth/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/choropleth/stream/_maxpoints.py index 50356730277..0710262d5cd 100644 --- a/packages/python/plotly/plotly/validators/choropleth/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/choropleth/stream/_maxpoints.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxpoints", parent_name="choropleth.stream", **kwargs - ): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='choropleth.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/stream/_token.py b/packages/python/plotly/plotly/validators/choropleth/stream/_token.py index b3fab49246c..8f9d0c82686 100644 --- a/packages/python/plotly/plotly/validators/choropleth/stream/_token.py +++ b/packages/python/plotly/plotly/validators/choropleth/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="choropleth.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='choropleth.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/unselected/__init__.py b/packages/python/plotly/plotly/validators/choropleth/unselected/__init__.py index e9bdb89f26d..8ee3c0f5c26 100644 --- a/packages/python/plotly/plotly/validators/choropleth/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/unselected/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.MarkerValidator"] + __name__, + [], + ['._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choropleth/unselected/_marker.py b/packages/python/plotly/plotly/validators/choropleth/unselected/_marker.py index 059e7cf4fc9..331b25ab819 100644 --- a/packages/python/plotly/plotly/validators/choropleth/unselected/_marker.py +++ b/packages/python/plotly/plotly/validators/choropleth/unselected/_marker.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="choropleth.unselected", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='choropleth.unselected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choropleth/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/choropleth/unselected/marker/__init__.py index 049134a716d..9128012434d 100644 --- a/packages/python/plotly/plotly/validators/choropleth/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/unselected/marker/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._opacity import OpacityValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._opacity.OpacityValidator"] + __name__, + [], + ['._opacity.OpacityValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choropleth/unselected/marker/_opacity.py b/packages/python/plotly/plotly/validators/choropleth/unselected/marker/_opacity.py index 3146f089ada..7111f15b300 100644 --- a/packages/python/plotly/plotly/validators/choropleth/unselected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/choropleth/unselected/marker/_opacity.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="opacity", - parent_name="choropleth.unselected.marker", - **kwargs, - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='choropleth.unselected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/__init__.py b/packages/python/plotly/plotly/validators/choroplethmap/__init__.py index 7fe8fbdc42c..f7dcf040d74 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zsrc import ZsrcValidator from ._zmin import ZminValidator @@ -52,58 +51,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zsrc.ZsrcValidator", - "._zmin.ZminValidator", - "._zmid.ZmidValidator", - "._zmax.ZmaxValidator", - "._zauto.ZautoValidator", - "._z.ZValidator", - "._visible.VisibleValidator", - "._unselected.UnselectedValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._textsrc.TextsrcValidator", - "._text.TextValidator", - "._subplot.SubplotValidator", - "._stream.StreamValidator", - "._showscale.ShowscaleValidator", - "._showlegend.ShowlegendValidator", - "._selectedpoints.SelectedpointsValidator", - "._selected.SelectedValidator", - "._reversescale.ReversescaleValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._marker.MarkerValidator", - "._locationssrc.LocationssrcValidator", - "._locations.LocationsValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._geojson.GeojsonValidator", - "._featureidkey.FeatureidkeyValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._below.BelowValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._zsrc.ZsrcValidator', '._zmin.ZminValidator', '._zmid.ZmidValidator', '._zmax.ZmaxValidator', '._zauto.ZautoValidator', '._z.ZValidator', '._visible.VisibleValidator', '._unselected.UnselectedValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._textsrc.TextsrcValidator', '._text.TextValidator', '._subplot.SubplotValidator', '._stream.StreamValidator', '._showscale.ShowscaleValidator', '._showlegend.ShowlegendValidator', '._selectedpoints.SelectedpointsValidator', '._selected.SelectedValidator', '._reversescale.ReversescaleValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._marker.MarkerValidator', '._locationssrc.LocationssrcValidator', '._locations.LocationsValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._geojson.GeojsonValidator', '._featureidkey.FeatureidkeyValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._below.BelowValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_autocolorscale.py b/packages/python/plotly/plotly/validators/choroplethmap/_autocolorscale.py index ebc1688f03e..561e39b5c5d 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="choroplethmap", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='choroplethmap', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_below.py b/packages/python/plotly/plotly/validators/choroplethmap/_below.py index 2f4097e7b88..fb6640aefbb 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_below.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_below.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BelowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="below", parent_name="choroplethmap", **kwargs): - super(BelowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BelowValidator(_bv.StringValidator): + def __init__(self, plotly_name='below', + parent_name='choroplethmap', + **kwargs): + super(BelowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_coloraxis.py b/packages/python/plotly/plotly/validators/choroplethmap/_coloraxis.py index d5acd98233c..8f343aeb1a7 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_coloraxis.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="coloraxis", parent_name="choroplethmap", **kwargs): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='choroplethmap', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_colorbar.py b/packages/python/plotly/plotly/validators/choroplethmap/_colorbar.py index 8ca58b07935..832a4556971 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_colorbar.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_colorbar.py @@ -1,280 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="colorbar", parent_name="choroplethmap", **kwargs): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.choropl - ethmap.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.choroplethmap.colorbar.tickformatstopdefaults - ), sets the default property values to use for - elements of - choroplethmap.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.choroplethmap.colo - rbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='choroplethmap', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_colorscale.py b/packages/python/plotly/plotly/validators/choroplethmap/_colorscale.py index e0fb5b49aed..517b3c1df78 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_colorscale.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_colorscale.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__(self, plotly_name="colorscale", parent_name="choroplethmap", **kwargs): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='choroplethmap', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_customdata.py b/packages/python/plotly/plotly/validators/choroplethmap/_customdata.py index caa9f53299d..fe03d440df9 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_customdata.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="choroplethmap", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='choroplethmap', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_customdatasrc.py b/packages/python/plotly/plotly/validators/choroplethmap/_customdatasrc.py index d5fc207ccb8..68fbd4b5ea1 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_customdatasrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="customdatasrc", parent_name="choroplethmap", **kwargs - ): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='choroplethmap', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_featureidkey.py b/packages/python/plotly/plotly/validators/choroplethmap/_featureidkey.py index 01f865fe1de..60ba37dc559 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_featureidkey.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_featureidkey.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FeatureidkeyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="featureidkey", parent_name="choroplethmap", **kwargs - ): - super(FeatureidkeyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FeatureidkeyValidator(_bv.StringValidator): + def __init__(self, plotly_name='featureidkey', + parent_name='choroplethmap', + **kwargs): + super(FeatureidkeyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_geojson.py b/packages/python/plotly/plotly/validators/choroplethmap/_geojson.py index 9b557fae03d..dec213ef6c4 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_geojson.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_geojson.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class GeojsonValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="geojson", parent_name="choroplethmap", **kwargs): - super(GeojsonValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class GeojsonValidator(_bv.AnyValidator): + def __init__(self, plotly_name='geojson', + parent_name='choroplethmap', + **kwargs): + super(GeojsonValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_hoverinfo.py b/packages/python/plotly/plotly/validators/choroplethmap/_hoverinfo.py index 0d3c691c0fb..f84927862cb 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="choroplethmap", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["location", "z", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='choroplethmap', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['location', 'z', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/choroplethmap/_hoverinfosrc.py index 850589f59fb..9a6a4baa836 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_hoverinfosrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hoverinfosrc", parent_name="choroplethmap", **kwargs - ): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='choroplethmap', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_hoverlabel.py b/packages/python/plotly/plotly/validators/choroplethmap/_hoverlabel.py index 72cb56cbcae..9a94cd78526 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="choroplethmap", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='choroplethmap', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_hovertemplate.py b/packages/python/plotly/plotly/validators/choroplethmap/_hovertemplate.py index a59b0cea057..5e869e60f0e 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_hovertemplate.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="hovertemplate", parent_name="choroplethmap", **kwargs - ): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='choroplethmap', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/choroplethmap/_hovertemplatesrc.py index 962b2d24fd0..ad96064e711 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_hovertemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertemplatesrc", parent_name="choroplethmap", **kwargs - ): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='choroplethmap', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_hovertext.py b/packages/python/plotly/plotly/validators/choroplethmap/_hovertext.py index 12edaf97e17..6f7ada6767e 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_hovertext.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="choroplethmap", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='choroplethmap', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_hovertextsrc.py b/packages/python/plotly/plotly/validators/choroplethmap/_hovertextsrc.py index 90c373d0014..6f66f048182 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_hovertextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertextsrc", parent_name="choroplethmap", **kwargs - ): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='choroplethmap', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_ids.py b/packages/python/plotly/plotly/validators/choroplethmap/_ids.py index a5ef2862bfe..ea99b0be6fa 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_ids.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="choroplethmap", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='choroplethmap', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_idssrc.py b/packages/python/plotly/plotly/validators/choroplethmap/_idssrc.py index 4b9d03020dd..62da98188b0 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_idssrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="choroplethmap", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='choroplethmap', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_legend.py b/packages/python/plotly/plotly/validators/choroplethmap/_legend.py index 64129d0a7e6..0a211f855dd 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_legend.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="choroplethmap", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='choroplethmap', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_legendgroup.py b/packages/python/plotly/plotly/validators/choroplethmap/_legendgroup.py index c7e157f35e0..6b794be8e4a 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_legendgroup.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="legendgroup", parent_name="choroplethmap", **kwargs - ): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='choroplethmap', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/choroplethmap/_legendgrouptitle.py index 8516009ff56..a39f987071a 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="choroplethmap", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='choroplethmap', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_legendrank.py b/packages/python/plotly/plotly/validators/choroplethmap/_legendrank.py index 4a98688346b..96ec979e787 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_legendrank.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="choroplethmap", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='choroplethmap', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_legendwidth.py b/packages/python/plotly/plotly/validators/choroplethmap/_legendwidth.py index 756a3394865..c1ae5793df7 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_legendwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="legendwidth", parent_name="choroplethmap", **kwargs - ): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='choroplethmap', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_locations.py b/packages/python/plotly/plotly/validators/choroplethmap/_locations.py index ccf3870cb4f..4cc15e03521 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_locations.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_locations.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="locations", parent_name="choroplethmap", **kwargs): - super(LocationsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LocationsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='locations', + parent_name='choroplethmap', + **kwargs): + super(LocationsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_locationssrc.py b/packages/python/plotly/plotly/validators/choroplethmap/_locationssrc.py index 7c393b055dd..7f671846b04 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_locationssrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_locationssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="locationssrc", parent_name="choroplethmap", **kwargs - ): - super(LocationssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LocationssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='locationssrc', + parent_name='choroplethmap', + **kwargs): + super(LocationssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_marker.py b/packages/python/plotly/plotly/validators/choroplethmap/_marker.py index 50210d93eb1..03110d8ec8f 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_marker.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_marker.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="choroplethmap", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - line - :class:`plotly.graph_objects.choroplethmap.mark - er.Line` instance or dict with compatible - properties - opacity - Sets the opacity of the locations. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='choroplethmap', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_meta.py b/packages/python/plotly/plotly/validators/choroplethmap/_meta.py index e62758e0249..988874bc101 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_meta.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="choroplethmap", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='choroplethmap', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_metasrc.py b/packages/python/plotly/plotly/validators/choroplethmap/_metasrc.py index 83646e83031..f8ad5b5448f 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_metasrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="choroplethmap", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='choroplethmap', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_name.py b/packages/python/plotly/plotly/validators/choroplethmap/_name.py index bd72135c233..fe7870ea92a 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_name.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="choroplethmap", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='choroplethmap', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_reversescale.py b/packages/python/plotly/plotly/validators/choroplethmap/_reversescale.py index 6801b5302be..cc3cfbe8b69 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_reversescale.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="choroplethmap", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='choroplethmap', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_selected.py b/packages/python/plotly/plotly/validators/choroplethmap/_selected.py index 49c67ef10f6..06fe798a72d 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_selected.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_selected.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="selected", parent_name="choroplethmap", **kwargs): - super(SelectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Selected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.choroplethmap.sele - cted.Marker` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='selected', + parent_name='choroplethmap', + **kwargs): + super(SelectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_selectedpoints.py b/packages/python/plotly/plotly/validators/choroplethmap/_selectedpoints.py index 2b825a6ed12..9ef4b943d72 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_selectedpoints.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_selectedpoints.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="selectedpoints", parent_name="choroplethmap", **kwargs - ): - super(SelectedpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SelectedpointsValidator(_bv.AnyValidator): + def __init__(self, plotly_name='selectedpoints', + parent_name='choroplethmap', + **kwargs): + super(SelectedpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_showlegend.py b/packages/python/plotly/plotly/validators/choroplethmap/_showlegend.py index 5db21dfbe43..47b1a134e0d 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_showlegend.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="choroplethmap", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='choroplethmap', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_showscale.py b/packages/python/plotly/plotly/validators/choroplethmap/_showscale.py index 78ca26be3b5..3fc361b2a2f 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_showscale.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_showscale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showscale", parent_name="choroplethmap", **kwargs): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='choroplethmap', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_stream.py b/packages/python/plotly/plotly/validators/choroplethmap/_stream.py index 96caf2388dd..8c7322a37cb 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_stream.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="choroplethmap", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='choroplethmap', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_subplot.py b/packages/python/plotly/plotly/validators/choroplethmap/_subplot.py index 8bf094f9837..c2917c6e70b 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_subplot.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_subplot.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SubplotValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="subplot", parent_name="choroplethmap", **kwargs): - super(SubplotValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "map"), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SubplotValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='subplot', + parent_name='choroplethmap', + **kwargs): + super(SubplotValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'map'), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_text.py b/packages/python/plotly/plotly/validators/choroplethmap/_text.py index f45483bba0d..08bc6eb4b2a 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_text.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="choroplethmap", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='choroplethmap', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_textsrc.py b/packages/python/plotly/plotly/validators/choroplethmap/_textsrc.py index 096ecac752a..03a75abd198 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_textsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="choroplethmap", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='choroplethmap', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_uid.py b/packages/python/plotly/plotly/validators/choroplethmap/_uid.py index fb06eaebcf0..f1e05f2ea18 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_uid.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="choroplethmap", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='choroplethmap', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_uirevision.py b/packages/python/plotly/plotly/validators/choroplethmap/_uirevision.py index 6852a67ae6b..722f4ce0e97 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_uirevision.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="choroplethmap", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='choroplethmap', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_unselected.py b/packages/python/plotly/plotly/validators/choroplethmap/_unselected.py index b020b7a9b1f..525304bdfdb 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_unselected.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_unselected.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="unselected", parent_name="choroplethmap", **kwargs): - super(UnselectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Unselected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.choroplethmap.unse - lected.Marker` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UnselectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='unselected', + parent_name='choroplethmap', + **kwargs): + super(UnselectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_visible.py b/packages/python/plotly/plotly/validators/choroplethmap/_visible.py index 52812d21f1e..e992c82e38f 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_visible.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="choroplethmap", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='choroplethmap', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_z.py b/packages/python/plotly/plotly/validators/choroplethmap/_z.py index 6ad9ebe5327..7764dcb4cf0 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_z.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_z.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="z", parent_name="choroplethmap", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='z', + parent_name='choroplethmap', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_zauto.py b/packages/python/plotly/plotly/validators/choroplethmap/_zauto.py index 1f99ccda3b5..294cefb6940 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_zauto.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_zauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="zauto", parent_name="choroplethmap", **kwargs): - super(ZautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='zauto', + parent_name='choroplethmap', + **kwargs): + super(ZautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_zmax.py b/packages/python/plotly/plotly/validators/choroplethmap/_zmax.py index 19284575878..0aa81160f34 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_zmax.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_zmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmax", parent_name="choroplethmap", **kwargs): - super(ZmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"zauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmax', + parent_name='choroplethmap', + **kwargs): + super(ZmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'zauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_zmid.py b/packages/python/plotly/plotly/validators/choroplethmap/_zmid.py index b7126f60ffc..69a3a230eb1 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_zmid.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_zmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmid", parent_name="choroplethmap", **kwargs): - super(ZmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmid', + parent_name='choroplethmap', + **kwargs): + super(ZmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_zmin.py b/packages/python/plotly/plotly/validators/choroplethmap/_zmin.py index 9e6949622c4..2a4a1f750d7 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_zmin.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_zmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmin", parent_name="choroplethmap", **kwargs): - super(ZminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"zauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmin', + parent_name='choroplethmap', + **kwargs): + super(ZminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'zauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/_zsrc.py b/packages/python/plotly/plotly/validators/choroplethmap/_zsrc.py index 2f134025da7..6ec8e4b0577 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/_zsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/_zsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="zsrc", parent_name="choroplethmap", **kwargs): - super(ZsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='zsrc', + parent_name='choroplethmap', + **kwargs): + super(ZsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/__init__.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_bgcolor.py index df726700db2..86c0d66411b 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="choroplethmap.colorbar", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='choroplethmap.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_bordercolor.py index ae42bcce836..85406b8f6c9 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="choroplethmap.colorbar", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='choroplethmap.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_borderwidth.py index 15b47d8e695..db693cb5c16 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_borderwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderwidth", parent_name="choroplethmap.colorbar", **kwargs - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='choroplethmap.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_dtick.py index 5668ced91a9..e815aefbd9d 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="choroplethmap.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='choroplethmap.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_exponentformat.py index e278237f30d..e69d681ccb8 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_exponentformat.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="exponentformat", - parent_name="choroplethmap.colorbar", - **kwargs, - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='choroplethmap.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_labelalias.py index 8b17bb9cf64..0f8b9f23b00 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="choroplethmap.colorbar", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='choroplethmap.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_len.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_len.py index f5076680b9f..49d75833646 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_len.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="len", parent_name="choroplethmap.colorbar", **kwargs - ): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='choroplethmap.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_lenmode.py index 6a6ea325939..873970e5b26 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_lenmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="lenmode", parent_name="choroplethmap.colorbar", **kwargs - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='choroplethmap.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_minexponent.py index f74f6267d97..a3ce89f855e 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="choroplethmap.colorbar", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='choroplethmap.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_nticks.py index ece4fb4ccc1..2690888ab9a 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="choroplethmap.colorbar", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='choroplethmap.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_orientation.py index feff3920bca..7e0c4c13d03 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_orientation.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="orientation", parent_name="choroplethmap.colorbar", **kwargs - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='choroplethmap.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_outlinecolor.py index 8db948e0c79..ba073c88d67 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_outlinecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="outlinecolor", parent_name="choroplethmap.colorbar", **kwargs - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='choroplethmap.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_outlinewidth.py index 6bee1ad281a..f60a2878769 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_outlinewidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="outlinewidth", parent_name="choroplethmap.colorbar", **kwargs - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='choroplethmap.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_separatethousands.py index a319758bb67..3c9a6e13246 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="choroplethmap.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='choroplethmap.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_showexponent.py index 2804d8e6f5c..0e48ef38895 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="choroplethmap.colorbar", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='choroplethmap.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_showticklabels.py index 1bb1a565773..90348b3bf1f 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="choroplethmap.colorbar", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='choroplethmap.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_showtickprefix.py index 4faedc00f36..1127146465b 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="choroplethmap.colorbar", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='choroplethmap.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_showticksuffix.py index bb1186be83e..776495be8c9 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="choroplethmap.colorbar", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='choroplethmap.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_thickness.py index bd92180faaf..001ddda2d98 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="choroplethmap.colorbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='choroplethmap.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_thicknessmode.py index 7ca21d6b6e7..1986972a556 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_thicknessmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="thicknessmode", - parent_name="choroplethmap.colorbar", - **kwargs, - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='choroplethmap.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tick0.py index f0fa73390ff..d7923a66258 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="choroplethmap.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='choroplethmap.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickangle.py index 2b81833c614..724eaec6431 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="choroplethmap.colorbar", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='choroplethmap.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickcolor.py index 9f393f9c9a1..502911f8396 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="choroplethmap.colorbar", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='choroplethmap.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickfont.py index c44c26b6f1e..6396df3dbc4 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="choroplethmap.colorbar", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='choroplethmap.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickformat.py index dd268512fd1..5090dd69b36 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="choroplethmap.colorbar", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='choroplethmap.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickformatstopdefaults.py index afce1b37d99..54d250ffc47 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="choroplethmap.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='choroplethmap.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickformatstops.py index 249ae2b3848..94bd0f192c3 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="choroplethmap.colorbar", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='choroplethmap.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticklabeloverflow.py index a51335a5e96..bc9576c274e 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="choroplethmap.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='choroplethmap.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticklabelposition.py index 5e53a6b0a06..69bcb08eda2 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="choroplethmap.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='choroplethmap.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticklabelstep.py index 2514fac94c0..b270dca9e8b 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticklabelstep.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="ticklabelstep", - parent_name="choroplethmap.colorbar", - **kwargs, - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='choroplethmap.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticklen.py index 5f5334905cd..0d6444118e6 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="choroplethmap.colorbar", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='choroplethmap.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickmode.py index 9f988e64236..c905aab40f6 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="choroplethmap.colorbar", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='choroplethmap.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickprefix.py index 52b93dc3d95..5e45205c5bf 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="choroplethmap.colorbar", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='choroplethmap.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticks.py index 4e843ee5eb5..cd118545d00 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="choroplethmap.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='choroplethmap.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticksuffix.py index f7242b0cff2..fbcd40c07d0 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="choroplethmap.colorbar", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='choroplethmap.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticktext.py index 3d923ed603f..193b0c8c417 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="choroplethmap.colorbar", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='choroplethmap.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticktextsrc.py index 280426204bc..49d1cfe01c1 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="choroplethmap.colorbar", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='choroplethmap.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickvals.py index c470da7532a..e0798fdff62 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="choroplethmap.colorbar", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='choroplethmap.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickvalssrc.py index 524c84cecf6..77e3db43073 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="choroplethmap.colorbar", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='choroplethmap.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickwidth.py index 6edd12e9310..e73d6ac1288 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="choroplethmap.colorbar", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='choroplethmap.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_title.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_title.py index d8d7945bb47..1f1b5161c35 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="choroplethmap.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='choroplethmap.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_x.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_x.py index 322e53a07a6..86f61cfd98f 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x", parent_name="choroplethmap.colorbar", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='choroplethmap.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_xanchor.py index e7c8569630a..1eb8a863ad1 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="choroplethmap.colorbar", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='choroplethmap.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_xpad.py index c0b4b744193..22a2f95c44e 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_xpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="xpad", parent_name="choroplethmap.colorbar", **kwargs - ): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='choroplethmap.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_xref.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_xref.py index 35860db609a..f9fae005d43 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xref", parent_name="choroplethmap.colorbar", **kwargs - ): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='choroplethmap.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_y.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_y.py index 264b02436e2..82b4cadc318 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y", parent_name="choroplethmap.colorbar", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='choroplethmap.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_yanchor.py index 775e308c68a..e75619b41f9 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="choroplethmap.colorbar", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='choroplethmap.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ypad.py index e4bd5a03765..bdd8024e9eb 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_ypad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ypad", parent_name="choroplethmap.colorbar", **kwargs - ): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='choroplethmap.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_yref.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_yref.py index 6b1f48879d0..986a5668054 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yref", parent_name="choroplethmap.colorbar", **kwargs - ): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='choroplethmap.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_color.py index 2cb4bb06bda..8969590bb60 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="choroplethmap.colorbar.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='choroplethmap.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_family.py index 5770789e299..6fa5941936f 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="choroplethmap.colorbar.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='choroplethmap.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_lineposition.py index 1a730691b23..f404ea93e32 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="choroplethmap.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='choroplethmap.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_shadow.py index 24dd884d765..d577b9d0b42 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="choroplethmap.colorbar.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='choroplethmap.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_size.py index 33854bfb4ee..e870a2adf75 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="choroplethmap.colorbar.tickfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='choroplethmap.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_style.py index 7f76437bbf2..94be1d33d8b 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="choroplethmap.colorbar.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='choroplethmap.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_textcase.py index 488b7b49b23..ed982a13e52 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="choroplethmap.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='choroplethmap.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_variant.py index fa4e8c751b2..960855e7282 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="choroplethmap.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='choroplethmap.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_weight.py index 7b9654c231e..19a4b5ba9c1 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="choroplethmap.colorbar.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='choroplethmap.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickformatstop/_dtickrange.py index 2762d6e49d1..4d4fcecf6be 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="choroplethmap.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - items=kwargs.pop( - "items", - [ - {"editType": "colorbars", "valType": "any"}, - {"editType": "colorbars", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='choroplethmap.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + items=kwargs.pop('items', [{'editType': 'colorbars', 'valType': 'any'}, {'editType': 'colorbars', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickformatstop/_enabled.py index 055162254a4..b3af0b1a684 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="choroplethmap.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='choroplethmap.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickformatstop/_name.py index 5e6ad9d1bb0..d44ea81df83 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="choroplethmap.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='choroplethmap.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickformatstop/_templateitemname.py index 4a51c9fb502..a81e096fb54 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="choroplethmap.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='choroplethmap.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickformatstop/_value.py index e88fea5f540..cf4ef6ef7af 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="choroplethmap.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='choroplethmap.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/_font.py index 0a3722c2951..074a9b8e3eb 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="choroplethmap.colorbar.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='choroplethmap.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/_side.py index a31a0993ae6..b360a5795da 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/_side.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="side", parent_name="choroplethmap.colorbar.title", **kwargs - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='choroplethmap.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/_text.py index fb6f397b881..de2d064bda7 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="choroplethmap.colorbar.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='choroplethmap.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_color.py index 8a245cae6d7..e2e3019e3cd 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="choroplethmap.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='choroplethmap.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_family.py index f9203387d14..83cbd32e17d 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="choroplethmap.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='choroplethmap.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_lineposition.py index 4e33846f21a..dd0239f256b 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="choroplethmap.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='choroplethmap.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_shadow.py index 591d3eccd1d..d5220120951 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="choroplethmap.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='choroplethmap.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_size.py index 37864d5f7fe..09b0e7180ea 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="choroplethmap.colorbar.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='choroplethmap.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_style.py index d82b1170142..ee245c3f0cd 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="choroplethmap.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='choroplethmap.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_textcase.py index ee6548aeede..0fc7830ec0b 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="choroplethmap.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='choroplethmap.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_variant.py index e43268cbe19..041ee15d4ff 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="choroplethmap.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='choroplethmap.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_weight.py index dec306bb0c2..7df89d6f15c 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="choroplethmap.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='choroplethmap.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_align.py index a08d98c2f12..e2786889c39 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_align.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="align", parent_name="choroplethmap.hoverlabel", **kwargs - ): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='choroplethmap.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_alignsrc.py index 63e447fbbdf..c4fccee274f 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="choroplethmap.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='choroplethmap.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_bgcolor.py index d6910483610..37304d57b3d 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="choroplethmap.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='choroplethmap.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_bgcolorsrc.py index f9fd747f1a6..0f496d6d64e 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="choroplethmap.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='choroplethmap.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_bordercolor.py index adda912438e..c5fd66545d3 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_bordercolor.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bordercolor", - parent_name="choroplethmap.hoverlabel", - **kwargs, - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='choroplethmap.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_bordercolorsrc.py index e8c83894200..eab34a6abaf 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="bordercolorsrc", - parent_name="choroplethmap.hoverlabel", - **kwargs, - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='choroplethmap.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_font.py index 25e18797bf0..ab78afe5436 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_font.py @@ -1,88 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="choroplethmap.hoverlabel", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='choroplethmap.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_namelength.py index 4f55c65694a..2c7e95df31c 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="choroplethmap.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='choroplethmap.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_namelengthsrc.py index 1f1daa5ce72..c73019b4519 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/_namelengthsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="namelengthsrc", - parent_name="choroplethmap.hoverlabel", - **kwargs, - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='choroplethmap.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_color.py index c6c6741fedb..ecd201b64c5 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="choroplethmap.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='choroplethmap.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_colorsrc.py index d5cd012c0e9..590550742d8 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_colorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="colorsrc", - parent_name="choroplethmap.hoverlabel.font", - **kwargs, - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='choroplethmap.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_family.py index 0e83ec67462..92f93264fe2 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_family.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="choroplethmap.hoverlabel.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='choroplethmap.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_familysrc.py index cb0f11cef8c..cdb53a76cc4 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_familysrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="familysrc", - parent_name="choroplethmap.hoverlabel.font", - **kwargs, - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='choroplethmap.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_lineposition.py index b84c4baa78a..8e97ca30d0e 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="choroplethmap.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='choroplethmap.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_linepositionsrc.py index 07799131987..3b3d1abff15 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="choroplethmap.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='choroplethmap.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_shadow.py index 5bb7c0fb8df..969c52612e5 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_shadow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="choroplethmap.hoverlabel.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='choroplethmap.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_shadowsrc.py index d00c8eb5e97..c38dc9fbcb9 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="shadowsrc", - parent_name="choroplethmap.hoverlabel.font", - **kwargs, - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='choroplethmap.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_size.py index 630d7bc439a..dba0694c146 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="choroplethmap.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='choroplethmap.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_sizesrc.py index ba124a4e3fb..f2145dd7ec8 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_sizesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="sizesrc", - parent_name="choroplethmap.hoverlabel.font", - **kwargs, - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='choroplethmap.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_style.py index 8a65fc04f71..599d95f78df 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="choroplethmap.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='choroplethmap.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_stylesrc.py index d0708072850..0672b51f511 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_stylesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="stylesrc", - parent_name="choroplethmap.hoverlabel.font", - **kwargs, - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='choroplethmap.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_textcase.py index e26a80a0886..e43bce29ba5 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_textcase.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="choroplethmap.hoverlabel.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='choroplethmap.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_textcasesrc.py index 04da50d657e..60ffce231a4 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="choroplethmap.hoverlabel.font", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='choroplethmap.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_variant.py index 4af5a45af97..551da91c9ad 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_variant.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="choroplethmap.hoverlabel.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='choroplethmap.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_variantsrc.py index 8c115b6c7f5..b4be9ac6088 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_variantsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="variantsrc", - parent_name="choroplethmap.hoverlabel.font", - **kwargs, - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='choroplethmap.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_weight.py index 9466523ff76..e0e518259b7 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_weight.py @@ -1,20 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="choroplethmap.hoverlabel.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='choroplethmap.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_weightsrc.py index d362c1e2c30..eb27a30d73e 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/hoverlabel/font/_weightsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="weightsrc", - parent_name="choroplethmap.hoverlabel.font", - **kwargs, - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='choroplethmap.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/_font.py index d42f9cba576..ed228884f23 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="choroplethmap.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='choroplethmap.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/_text.py index 5ad8e2f7e6a..3ea78c1d165 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="choroplethmap.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='choroplethmap.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_color.py index 50311a20f89..1fba950c101 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="choroplethmap.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='choroplethmap.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_family.py index 5ad43c5895f..b8e5b816e7e 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="choroplethmap.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='choroplethmap.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_lineposition.py index d1a4c7c9feb..45c81c1fc74 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="choroplethmap.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='choroplethmap.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_shadow.py index f85b590bccd..a070607cfb0 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="choroplethmap.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='choroplethmap.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_size.py index 2093f3ec23a..c4ee92dd240 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="choroplethmap.legendgrouptitle.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='choroplethmap.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_style.py index d47d455058a..237591e0c7b 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="choroplethmap.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='choroplethmap.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_textcase.py index 972e6f77b95..f3b288b530d 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="choroplethmap.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='choroplethmap.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_variant.py index 29faeacc5cf..5d3fe50a2fe 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="choroplethmap.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='choroplethmap.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_weight.py index 2d6abe7060b..86b9389dab7 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="choroplethmap.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='choroplethmap.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/marker/__init__.py b/packages/python/plotly/plotly/validators/choroplethmap/marker/__init__.py index 711bedd189e..4a7d1a91d0f 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/marker/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._opacitysrc import OpacitysrcValidator from ._opacity import OpacityValidator from ._line import LineValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._opacitysrc.OpacitysrcValidator", - "._opacity.OpacityValidator", - "._line.LineValidator", - ], + ['._opacitysrc.OpacitysrcValidator', '._opacity.OpacityValidator', '._line.LineValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmap/marker/_line.py b/packages/python/plotly/plotly/validators/choroplethmap/marker/_line.py index 00ea39a8509..f1b15f7625c 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/marker/_line.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/marker/_line.py @@ -1,34 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="line", parent_name="choroplethmap.marker", **kwargs - ): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='choroplethmap.marker', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/marker/_opacity.py b/packages/python/plotly/plotly/validators/choroplethmap/marker/_opacity.py index f939eb7a531..7b59a3bee92 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/marker/_opacity.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="choroplethmap.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='choroplethmap.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/marker/_opacitysrc.py b/packages/python/plotly/plotly/validators/choroplethmap/marker/_opacitysrc.py index ecb9b792f95..31d8f1f1ccb 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/marker/_opacitysrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/marker/_opacitysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="opacitysrc", parent_name="choroplethmap.marker", **kwargs - ): - super(OpacitysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacitysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='opacitysrc', + parent_name='choroplethmap.marker', + **kwargs): + super(OpacitysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/marker/line/__init__.py b/packages/python/plotly/plotly/validators/choroplethmap/marker/line/__init__.py index a2b9e1ae50c..522c01899cf 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/marker/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._widthsrc import WidthsrcValidator from ._width import WidthValidator @@ -8,14 +7,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._widthsrc.WidthsrcValidator", - "._width.WidthValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._widthsrc.WidthsrcValidator', '._width.WidthValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmap/marker/line/_color.py b/packages/python/plotly/plotly/validators/choroplethmap/marker/line/_color.py index 606ea6c37a8..85c27fb9a4f 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/marker/line/_color.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/marker/line/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="choroplethmap.marker.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='choroplethmap.marker.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/marker/line/_colorsrc.py b/packages/python/plotly/plotly/validators/choroplethmap/marker/line/_colorsrc.py index d35b6eb7a38..dad059387cb 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/marker/line/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/marker/line/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="choroplethmap.marker.line", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='choroplethmap.marker.line', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/marker/line/_width.py b/packages/python/plotly/plotly/validators/choroplethmap/marker/line/_width.py index b80dbfe4337..075bc3cfd76 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/marker/line/_width.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/marker/line/_width.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="choroplethmap.marker.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='choroplethmap.marker.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/marker/line/_widthsrc.py b/packages/python/plotly/plotly/validators/choroplethmap/marker/line/_widthsrc.py index 68c948070d4..d0691bd346a 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/marker/line/_widthsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/marker/line/_widthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="widthsrc", parent_name="choroplethmap.marker.line", **kwargs - ): - super(WidthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='widthsrc', + parent_name='choroplethmap.marker.line', + **kwargs): + super(WidthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/selected/__init__.py b/packages/python/plotly/plotly/validators/choroplethmap/selected/__init__.py index e9bdb89f26d..8ee3c0f5c26 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/selected/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.MarkerValidator"] + __name__, + [], + ['._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmap/selected/_marker.py b/packages/python/plotly/plotly/validators/choroplethmap/selected/_marker.py index 921dda5fcf8..bb7ba9d5dd8 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/selected/_marker.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/selected/_marker.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="choroplethmap.selected", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - opacity - Sets the marker opacity of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='choroplethmap.selected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/choroplethmap/selected/marker/__init__.py index 049134a716d..9128012434d 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/selected/marker/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._opacity import OpacityValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._opacity.OpacityValidator"] + __name__, + [], + ['._opacity.OpacityValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmap/selected/marker/_opacity.py b/packages/python/plotly/plotly/validators/choroplethmap/selected/marker/_opacity.py index b5619ccf12f..951cc708565 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/selected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/selected/marker/_opacity.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="opacity", - parent_name="choroplethmap.selected.marker", - **kwargs, - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='choroplethmap.selected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/stream/__init__.py b/packages/python/plotly/plotly/validators/choroplethmap/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmap/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/choroplethmap/stream/_maxpoints.py index c530d6c7337..1bf2211b9b9 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/stream/_maxpoints.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxpoints", parent_name="choroplethmap.stream", **kwargs - ): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='choroplethmap.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/stream/_token.py b/packages/python/plotly/plotly/validators/choroplethmap/stream/_token.py index 08393810169..478cd1aee90 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/stream/_token.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/stream/_token.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="token", parent_name="choroplethmap.stream", **kwargs - ): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='choroplethmap.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/unselected/__init__.py b/packages/python/plotly/plotly/validators/choroplethmap/unselected/__init__.py index e9bdb89f26d..8ee3c0f5c26 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/unselected/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.MarkerValidator"] + __name__, + [], + ['._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmap/unselected/_marker.py b/packages/python/plotly/plotly/validators/choroplethmap/unselected/_marker.py index 4b639b28850..226436977d8 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/unselected/_marker.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/unselected/_marker.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="choroplethmap.unselected", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='choroplethmap.unselected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmap/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/choroplethmap/unselected/marker/__init__.py index 049134a716d..9128012434d 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/unselected/marker/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._opacity import OpacityValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._opacity.OpacityValidator"] + __name__, + [], + ['._opacity.OpacityValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmap/unselected/marker/_opacity.py b/packages/python/plotly/plotly/validators/choroplethmap/unselected/marker/_opacity.py index c8caeb42d6d..a06915c58a6 100644 --- a/packages/python/plotly/plotly/validators/choroplethmap/unselected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/choroplethmap/unselected/marker/_opacity.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="opacity", - parent_name="choroplethmap.unselected.marker", - **kwargs, - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='choroplethmap.unselected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/__init__.py b/packages/python/plotly/plotly/validators/choroplethmapbox/__init__.py index 7fe8fbdc42c..f7dcf040d74 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zsrc import ZsrcValidator from ._zmin import ZminValidator @@ -52,58 +51,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zsrc.ZsrcValidator", - "._zmin.ZminValidator", - "._zmid.ZmidValidator", - "._zmax.ZmaxValidator", - "._zauto.ZautoValidator", - "._z.ZValidator", - "._visible.VisibleValidator", - "._unselected.UnselectedValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._textsrc.TextsrcValidator", - "._text.TextValidator", - "._subplot.SubplotValidator", - "._stream.StreamValidator", - "._showscale.ShowscaleValidator", - "._showlegend.ShowlegendValidator", - "._selectedpoints.SelectedpointsValidator", - "._selected.SelectedValidator", - "._reversescale.ReversescaleValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._marker.MarkerValidator", - "._locationssrc.LocationssrcValidator", - "._locations.LocationsValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._geojson.GeojsonValidator", - "._featureidkey.FeatureidkeyValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._below.BelowValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._zsrc.ZsrcValidator', '._zmin.ZminValidator', '._zmid.ZmidValidator', '._zmax.ZmaxValidator', '._zauto.ZautoValidator', '._z.ZValidator', '._visible.VisibleValidator', '._unselected.UnselectedValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._textsrc.TextsrcValidator', '._text.TextValidator', '._subplot.SubplotValidator', '._stream.StreamValidator', '._showscale.ShowscaleValidator', '._showlegend.ShowlegendValidator', '._selectedpoints.SelectedpointsValidator', '._selected.SelectedValidator', '._reversescale.ReversescaleValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._marker.MarkerValidator', '._locationssrc.LocationssrcValidator', '._locations.LocationsValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._geojson.GeojsonValidator', '._featureidkey.FeatureidkeyValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._below.BelowValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_autocolorscale.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_autocolorscale.py index f417a1edc9a..7f0196835ed 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="choroplethmapbox", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='choroplethmapbox', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_below.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_below.py index 10817e9deaa..276880421a4 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_below.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_below.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BelowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="below", parent_name="choroplethmapbox", **kwargs): - super(BelowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BelowValidator(_bv.StringValidator): + def __init__(self, plotly_name='below', + parent_name='choroplethmapbox', + **kwargs): + super(BelowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_coloraxis.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_coloraxis.py index 88a3a825808..642f43cc48a 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_coloraxis.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name="coloraxis", parent_name="choroplethmapbox", **kwargs - ): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='choroplethmapbox', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_colorbar.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_colorbar.py index 00157f0f719..b797c10f3cf 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_colorbar.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_colorbar.py @@ -1,282 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="colorbar", parent_name="choroplethmapbox", **kwargs - ): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.choropl - ethmapbox.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.choroplethmapbox.colorbar.tickformatstopdefau - lts), sets the default property values to use - for elements of - choroplethmapbox.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.choroplethmapbox.c - olorbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='choroplethmapbox', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_colorscale.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_colorscale.py index d75a37e199a..0dc52a89e9b 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_colorscale.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="choroplethmapbox", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='choroplethmapbox', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_customdata.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_customdata.py index e9001026bc6..8f10529dabb 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_customdata.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_customdata.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="customdata", parent_name="choroplethmapbox", **kwargs - ): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='choroplethmapbox', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_customdatasrc.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_customdatasrc.py index 9d23916eaf7..ab452961b42 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_customdatasrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="customdatasrc", parent_name="choroplethmapbox", **kwargs - ): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='choroplethmapbox', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_featureidkey.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_featureidkey.py index b6bb2f692ce..2669ec0c36d 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_featureidkey.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_featureidkey.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FeatureidkeyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="featureidkey", parent_name="choroplethmapbox", **kwargs - ): - super(FeatureidkeyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FeatureidkeyValidator(_bv.StringValidator): + def __init__(self, plotly_name='featureidkey', + parent_name='choroplethmapbox', + **kwargs): + super(FeatureidkeyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_geojson.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_geojson.py index 01a619246ae..a2fffb6cbae 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_geojson.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_geojson.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class GeojsonValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="geojson", parent_name="choroplethmapbox", **kwargs): - super(GeojsonValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class GeojsonValidator(_bv.AnyValidator): + def __init__(self, plotly_name='geojson', + parent_name='choroplethmapbox', + **kwargs): + super(GeojsonValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_hoverinfo.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_hoverinfo.py index 2994f34d2e9..316b6bf43ad 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_hoverinfo.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="hoverinfo", parent_name="choroplethmapbox", **kwargs - ): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["location", "z", "text", "name"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='choroplethmapbox', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['location', 'z', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_hoverinfosrc.py index 9ef099599b6..25e4f3cdec7 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_hoverinfosrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hoverinfosrc", parent_name="choroplethmapbox", **kwargs - ): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='choroplethmapbox', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_hoverlabel.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_hoverlabel.py index 7e424bb2a66..85dd288b0f2 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_hoverlabel.py @@ -1,53 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="hoverlabel", parent_name="choroplethmapbox", **kwargs - ): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='choroplethmapbox', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_hovertemplate.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_hovertemplate.py index 1d52384669e..8c16e42cbee 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_hovertemplate.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="hovertemplate", parent_name="choroplethmapbox", **kwargs - ): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='choroplethmapbox', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_hovertemplatesrc.py index 1522281d2dc..b5976508008 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_hovertemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertemplatesrc", parent_name="choroplethmapbox", **kwargs - ): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='choroplethmapbox', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_hovertext.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_hovertext.py index 9730982061e..ac4fadaf66c 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_hovertext.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_hovertext.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="hovertext", parent_name="choroplethmapbox", **kwargs - ): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='choroplethmapbox', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_hovertextsrc.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_hovertextsrc.py index 2900ca82286..72d63a326d5 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_hovertextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertextsrc", parent_name="choroplethmapbox", **kwargs - ): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='choroplethmapbox', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_ids.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_ids.py index dacadd033c9..04bf5d8eff5 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_ids.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="choroplethmapbox", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='choroplethmapbox', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_idssrc.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_idssrc.py index 1a78b60b661..a616a00a68e 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_idssrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="choroplethmapbox", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='choroplethmapbox', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_legend.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_legend.py index 77edb93d07a..105f58304a1 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_legend.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="choroplethmapbox", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='choroplethmapbox', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_legendgroup.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_legendgroup.py index 4a800e9553d..672ad0c4de4 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_legendgroup.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="legendgroup", parent_name="choroplethmapbox", **kwargs - ): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='choroplethmapbox', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_legendgrouptitle.py index 4fd8739eb82..ea1308b08d2 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="choroplethmapbox", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='choroplethmapbox', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_legendrank.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_legendrank.py index 1f77eb2ace4..a4a9b4b6dd3 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_legendrank.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_legendrank.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="legendrank", parent_name="choroplethmapbox", **kwargs - ): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='choroplethmapbox', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_legendwidth.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_legendwidth.py index a6f64e26440..4b65438afac 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_legendwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="legendwidth", parent_name="choroplethmapbox", **kwargs - ): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='choroplethmapbox', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_locations.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_locations.py index 00aae1d30bf..6b751336da6 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_locations.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_locations.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="locations", parent_name="choroplethmapbox", **kwargs - ): - super(LocationsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LocationsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='locations', + parent_name='choroplethmapbox', + **kwargs): + super(LocationsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_locationssrc.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_locationssrc.py index 40f7990958a..ab476257e3c 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_locationssrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_locationssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="locationssrc", parent_name="choroplethmapbox", **kwargs - ): - super(LocationssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LocationssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='locationssrc', + parent_name='choroplethmapbox', + **kwargs): + super(LocationssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_marker.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_marker.py index fe851e1707c..49c42c6b70b 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_marker.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_marker.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="choroplethmapbox", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - line - :class:`plotly.graph_objects.choroplethmapbox.m - arker.Line` instance or dict with compatible - properties - opacity - Sets the opacity of the locations. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='choroplethmapbox', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_meta.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_meta.py index 3f8fcb4df81..306e0c885f0 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_meta.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="choroplethmapbox", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='choroplethmapbox', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_metasrc.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_metasrc.py index d524c0e0a56..c51ee9c2f90 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_metasrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="choroplethmapbox", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='choroplethmapbox', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_name.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_name.py index f7c2956ab2f..0ce76b28b3d 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_name.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="choroplethmapbox", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='choroplethmapbox', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_reversescale.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_reversescale.py index bf5fdf52930..e77da6b3248 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_reversescale.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="choroplethmapbox", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='choroplethmapbox', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_selected.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_selected.py index 41c73f36dea..1318005db1b 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_selected.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_selected.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="selected", parent_name="choroplethmapbox", **kwargs - ): - super(SelectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Selected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.choroplethmapbox.s - elected.Marker` instance or dict with - compatible properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='selected', + parent_name='choroplethmapbox', + **kwargs): + super(SelectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_selectedpoints.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_selectedpoints.py index 40818a5ae82..3a7c68b3a35 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_selectedpoints.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_selectedpoints.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="selectedpoints", parent_name="choroplethmapbox", **kwargs - ): - super(SelectedpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SelectedpointsValidator(_bv.AnyValidator): + def __init__(self, plotly_name='selectedpoints', + parent_name='choroplethmapbox', + **kwargs): + super(SelectedpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_showlegend.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_showlegend.py index eb112828392..be9be6b020f 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_showlegend.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_showlegend.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showlegend", parent_name="choroplethmapbox", **kwargs - ): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='choroplethmapbox', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_showscale.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_showscale.py index fbe91bb8042..f6997466cd7 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_showscale.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_showscale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showscale", parent_name="choroplethmapbox", **kwargs - ): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='choroplethmapbox', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_stream.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_stream.py index b8802c8a13b..bc386fb3be4 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_stream.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="choroplethmapbox", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='choroplethmapbox', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_subplot.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_subplot.py index a1affd05a0b..9c74a7563c3 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_subplot.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_subplot.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SubplotValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="subplot", parent_name="choroplethmapbox", **kwargs): - super(SubplotValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "mapbox"), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SubplotValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='subplot', + parent_name='choroplethmapbox', + **kwargs): + super(SubplotValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'mapbox'), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_text.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_text.py index 51e4c73cada..2dc76ff87bc 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_text.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="choroplethmapbox", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='choroplethmapbox', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_textsrc.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_textsrc.py index 4d325ebba12..9b4b8419f32 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_textsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="choroplethmapbox", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='choroplethmapbox', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_uid.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_uid.py index 810900f105b..9c015d0a391 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_uid.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="choroplethmapbox", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='choroplethmapbox', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_uirevision.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_uirevision.py index 7383568b643..ab7a23ef003 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_uirevision.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_uirevision.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="uirevision", parent_name="choroplethmapbox", **kwargs - ): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='choroplethmapbox', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_unselected.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_unselected.py index ef2cf3a2a54..f0088856615 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_unselected.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_unselected.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="unselected", parent_name="choroplethmapbox", **kwargs - ): - super(UnselectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Unselected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.choroplethmapbox.u - nselected.Marker` instance or dict with - compatible properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UnselectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='unselected', + parent_name='choroplethmapbox', + **kwargs): + super(UnselectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_visible.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_visible.py index c75e350312c..cb92193bfef 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_visible.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="choroplethmapbox", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='choroplethmapbox', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_z.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_z.py index 8511fb22e32..4bea3ac173d 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_z.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_z.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="z", parent_name="choroplethmapbox", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='z', + parent_name='choroplethmapbox', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_zauto.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_zauto.py index 2ce01a4caf5..c29483e2ffc 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_zauto.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_zauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="zauto", parent_name="choroplethmapbox", **kwargs): - super(ZautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='zauto', + parent_name='choroplethmapbox', + **kwargs): + super(ZautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_zmax.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_zmax.py index 4cf912d9540..7472cccd880 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_zmax.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_zmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmax", parent_name="choroplethmapbox", **kwargs): - super(ZmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"zauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmax', + parent_name='choroplethmapbox', + **kwargs): + super(ZmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'zauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_zmid.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_zmid.py index 3982b100177..50383d5c2d3 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_zmid.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_zmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmid", parent_name="choroplethmapbox", **kwargs): - super(ZmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmid', + parent_name='choroplethmapbox', + **kwargs): + super(ZmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_zmin.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_zmin.py index 7ab9b765999..2d66d3cbff8 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_zmin.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_zmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmin", parent_name="choroplethmapbox", **kwargs): - super(ZminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"zauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmin', + parent_name='choroplethmapbox', + **kwargs): + super(ZminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'zauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/_zsrc.py b/packages/python/plotly/plotly/validators/choroplethmapbox/_zsrc.py index 5e878d6aea4..1e75da62156 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/_zsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/_zsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="zsrc", parent_name="choroplethmapbox", **kwargs): - super(ZsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='zsrc', + parent_name='choroplethmapbox', + **kwargs): + super(ZsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/__init__.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_bgcolor.py index 7a94b87027d..da1143e7c55 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="choroplethmapbox.colorbar", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_bordercolor.py index 18927babfe2..4c241325553 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_bordercolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bordercolor", - parent_name="choroplethmapbox.colorbar", - **kwargs, - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_borderwidth.py index 5242efc6246..26a935f95ac 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_borderwidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="borderwidth", - parent_name="choroplethmapbox.colorbar", - **kwargs, - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_dtick.py index 8dbe774f768..ba29958b480 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="choroplethmapbox.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_exponentformat.py index b0a571e639a..1fbc7b778f6 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_exponentformat.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="exponentformat", - parent_name="choroplethmapbox.colorbar", - **kwargs, - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_labelalias.py index 43b4e1e5149..5d72decb59d 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_labelalias.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="labelalias", - parent_name="choroplethmapbox.colorbar", - **kwargs, - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_len.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_len.py index 0acf9187440..b9a65a4ff4d 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_len.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="len", parent_name="choroplethmapbox.colorbar", **kwargs - ): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_lenmode.py index a1903a3dae9..8038f387513 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_lenmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="lenmode", parent_name="choroplethmapbox.colorbar", **kwargs - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_minexponent.py index cc8afe6bbd5..8799275c015 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_minexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="minexponent", - parent_name="choroplethmapbox.colorbar", - **kwargs, - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_nticks.py index aa244104dc2..19925a92608 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="choroplethmapbox.colorbar", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_orientation.py index 5d54e3ff897..858573cf1cc 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_orientation.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="orientation", - parent_name="choroplethmapbox.colorbar", - **kwargs, - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_outlinecolor.py index a92c79a39a2..9bc718301a6 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_outlinecolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="outlinecolor", - parent_name="choroplethmapbox.colorbar", - **kwargs, - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_outlinewidth.py index 01367a0b938..791dec4f094 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_outlinewidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="outlinewidth", - parent_name="choroplethmapbox.colorbar", - **kwargs, - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_separatethousands.py index 445a8967154..cd5f23581ca 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="choroplethmapbox.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_showexponent.py index ebcfb6f8f14..5926b6137da 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_showexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showexponent", - parent_name="choroplethmapbox.colorbar", - **kwargs, - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_showticklabels.py index 5c0c22fb171..24786d8a060 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="choroplethmapbox.colorbar", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_showtickprefix.py index 9c836751d63..f0ee6814163 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="choroplethmapbox.colorbar", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_showticksuffix.py index 17866b2499d..fd2e1f47b4b 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="choroplethmapbox.colorbar", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_thickness.py index e956912ba82..af7bcc27c1b 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="choroplethmapbox.colorbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_thicknessmode.py index 1c03e06e391..7238749de1a 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_thicknessmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="thicknessmode", - parent_name="choroplethmapbox.colorbar", - **kwargs, - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tick0.py index dfbc8918f5b..a5a37f47d26 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="choroplethmapbox.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickangle.py index 8b3292c5ceb..36e5e24995c 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="choroplethmapbox.colorbar", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickcolor.py index 970bee6ba78..f7fbcb13809 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="choroplethmapbox.colorbar", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickfont.py index a24e3fa7f97..164f09f9528 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="choroplethmapbox.colorbar", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickformat.py index ca847b0e1bf..3d53d3b80a5 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickformat.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickformat", - parent_name="choroplethmapbox.colorbar", - **kwargs, - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickformatstopdefaults.py index 342a3b0bda6..580d383449e 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="choroplethmapbox.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickformatstops.py index cf687a600c1..bdce36b960f 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="choroplethmapbox.colorbar", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticklabeloverflow.py index 47b5afda2da..61e1eee0ec5 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="choroplethmapbox.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticklabelposition.py index 83fef37a198..d5e0b68401a 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="choroplethmapbox.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticklabelstep.py index a42710a40d8..e4111be86ba 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticklabelstep.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="ticklabelstep", - parent_name="choroplethmapbox.colorbar", - **kwargs, - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticklen.py index fd1dd71ab27..d96931daeab 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="choroplethmapbox.colorbar", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickmode.py index cbdcad91dc6..295e191e9f6 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="choroplethmapbox.colorbar", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickprefix.py index 0d115ad05ba..a28ea6ed3fd 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickprefix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickprefix", - parent_name="choroplethmapbox.colorbar", - **kwargs, - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticks.py index 2d21ca4996c..2db6a82fe6b 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="choroplethmapbox.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticksuffix.py index 403ab10ae9c..a312bc7ab1e 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticksuffix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="ticksuffix", - parent_name="choroplethmapbox.colorbar", - **kwargs, - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticktext.py index 1e3949e617e..2387d088ce1 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="choroplethmapbox.colorbar", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticktextsrc.py index 03ec18e3614..7950792657a 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ticktextsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="ticktextsrc", - parent_name="choroplethmapbox.colorbar", - **kwargs, - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickvals.py index 9d4080e4387..e84c441a209 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="choroplethmapbox.colorbar", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickvalssrc.py index 41d22a36876..552e52c8c47 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickvalssrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="tickvalssrc", - parent_name="choroplethmapbox.colorbar", - **kwargs, - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickwidth.py index 671231f3a3e..53d1d23ada9 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="choroplethmapbox.colorbar", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_title.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_title.py index ae0e94e9c9a..66124c0e34b 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="choroplethmapbox.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_x.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_x.py index 7f97f64a354..47697da32a0 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_x.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="x", parent_name="choroplethmapbox.colorbar", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_xanchor.py index 1dd7fab9739..f53d1e5e643 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="choroplethmapbox.colorbar", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_xpad.py index dcab51716f5..d5d7c085cca 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_xpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="xpad", parent_name="choroplethmapbox.colorbar", **kwargs - ): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_xref.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_xref.py index 68e6ce93e56..bfda6b2744f 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xref", parent_name="choroplethmapbox.colorbar", **kwargs - ): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_y.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_y.py index 6045065c66b..5accece717d 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_y.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="y", parent_name="choroplethmapbox.colorbar", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_yanchor.py index 5592c4857f7..8a15d0fce3a 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="choroplethmapbox.colorbar", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ypad.py index 2f3b5ec253d..e3916d8909e 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_ypad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ypad", parent_name="choroplethmapbox.colorbar", **kwargs - ): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_yref.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_yref.py index dce38598a91..29ced6194ea 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yref", parent_name="choroplethmapbox.colorbar", **kwargs - ): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='choroplethmapbox.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_color.py index 21e8d444c68..0c40fbe00a8 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="choroplethmapbox.colorbar.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='choroplethmapbox.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_family.py index e4f20bcbf69..eae2d79e41f 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="choroplethmapbox.colorbar.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='choroplethmapbox.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_lineposition.py index 56bc389d217..f8caab39c73 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="choroplethmapbox.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='choroplethmapbox.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_shadow.py index 1096ea6776f..2224c223ad4 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="choroplethmapbox.colorbar.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='choroplethmapbox.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_size.py index d5315bef5a3..d6247f7a09a 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="choroplethmapbox.colorbar.tickfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='choroplethmapbox.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_style.py index 22ef4d6c675..061940e519a 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="choroplethmapbox.colorbar.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='choroplethmapbox.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_textcase.py index 99b6da10c66..6480a7c9de3 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="choroplethmapbox.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='choroplethmapbox.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_variant.py index f30724b5be4..dde7c0fbc8c 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="choroplethmapbox.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='choroplethmapbox.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_weight.py index ecb0fcb9891..e0ae180f6c0 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="choroplethmapbox.colorbar.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='choroplethmapbox.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_dtickrange.py index 767b80f91d4..d4b0083889a 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="choroplethmapbox.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - items=kwargs.pop( - "items", - [ - {"editType": "colorbars", "valType": "any"}, - {"editType": "colorbars", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='choroplethmapbox.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + items=kwargs.pop('items', [{'editType': 'colorbars', 'valType': 'any'}, {'editType': 'colorbars', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_enabled.py index a9f8012ed95..7c8a50f4fb3 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="choroplethmapbox.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='choroplethmapbox.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_name.py index 04acf77c212..79322c27972 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="choroplethmapbox.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='choroplethmapbox.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_templateitemname.py index 0b693444e2e..952f9a04e04 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="choroplethmapbox.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='choroplethmapbox.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_value.py index 302d0e03a98..2592734cad7 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="choroplethmapbox.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='choroplethmapbox.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/_font.py index 03804521908..2d30e604f32 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/_font.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="font", - parent_name="choroplethmapbox.colorbar.title", - **kwargs, - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='choroplethmapbox.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/_side.py index 5818896f140..6340b0176c2 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/_side.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="side", - parent_name="choroplethmapbox.colorbar.title", - **kwargs, - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='choroplethmapbox.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/_text.py index 154af5382c6..d205d70ff74 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/_text.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="text", - parent_name="choroplethmapbox.colorbar.title", - **kwargs, - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='choroplethmapbox.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_color.py index 5eed83b4810..8f96f9c68d3 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="choroplethmapbox.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='choroplethmapbox.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_family.py index 0736688c28c..67b4d178435 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="choroplethmapbox.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='choroplethmapbox.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_lineposition.py index fcaf4ad41ef..83b312231e7 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="choroplethmapbox.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='choroplethmapbox.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_shadow.py index de87c8e4fa6..2de31bb51f6 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="choroplethmapbox.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='choroplethmapbox.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_size.py index 0eecaff9d31..64a0df42a7a 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="choroplethmapbox.colorbar.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='choroplethmapbox.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_style.py index 69ab357620d..e0000fe9bf8 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="choroplethmapbox.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='choroplethmapbox.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_textcase.py index 210550f3e81..91fa751ca62 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="choroplethmapbox.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='choroplethmapbox.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_variant.py index 9991fa25f8e..cce49e17274 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="choroplethmapbox.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='choroplethmapbox.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_weight.py index 6797a9ca1fd..2002e78ce0d 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="choroplethmapbox.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='choroplethmapbox.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_align.py index 0e7ff425f50..927c6472a39 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_align.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="align", parent_name="choroplethmapbox.hoverlabel", **kwargs - ): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='choroplethmapbox.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_alignsrc.py index 3d4cf0b79eb..549b4e04edc 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_alignsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="alignsrc", - parent_name="choroplethmapbox.hoverlabel", - **kwargs, - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='choroplethmapbox.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_bgcolor.py index 17f61a20f8f..c8fdd0f8815 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="choroplethmapbox.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='choroplethmapbox.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_bgcolorsrc.py index 69081966979..466baf425cd 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_bgcolorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="bgcolorsrc", - parent_name="choroplethmapbox.hoverlabel", - **kwargs, - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='choroplethmapbox.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_bordercolor.py index c7cc32e16b7..e5981ad58af 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_bordercolor.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bordercolor", - parent_name="choroplethmapbox.hoverlabel", - **kwargs, - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='choroplethmapbox.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_bordercolorsrc.py index 0c49731774b..68e181f60c5 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="bordercolorsrc", - parent_name="choroplethmapbox.hoverlabel", - **kwargs, - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='choroplethmapbox.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_font.py index deb78cfa035..b290c2f52b8 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_font.py @@ -1,88 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="choroplethmapbox.hoverlabel", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='choroplethmapbox.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_namelength.py index 9eab58415b9..2cf9e8407ab 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_namelength.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="namelength", - parent_name="choroplethmapbox.hoverlabel", - **kwargs, - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='choroplethmapbox.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_namelengthsrc.py index b0173b3e2ca..4d0d0a37850 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/_namelengthsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="namelengthsrc", - parent_name="choroplethmapbox.hoverlabel", - **kwargs, - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='choroplethmapbox.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_color.py index f941246c81a..5890ec47dc6 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_color.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="choroplethmapbox.hoverlabel.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='choroplethmapbox.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_colorsrc.py index c6e0a26de3b..7d50d655df3 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_colorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="colorsrc", - parent_name="choroplethmapbox.hoverlabel.font", - **kwargs, - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='choroplethmapbox.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_family.py index 9789a2ee340..5b9f2047ecf 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_family.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="choroplethmapbox.hoverlabel.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='choroplethmapbox.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_familysrc.py index ef9f61756da..752257ac3a9 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_familysrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="familysrc", - parent_name="choroplethmapbox.hoverlabel.font", - **kwargs, - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='choroplethmapbox.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_lineposition.py index 4cd48b565b7..4ce43165490 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="choroplethmapbox.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='choroplethmapbox.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_linepositionsrc.py index 50bcb9d7861..d8e1da0d95e 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="choroplethmapbox.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='choroplethmapbox.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_shadow.py index 2e00f0af835..91fc8dcbb2b 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_shadow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="choroplethmapbox.hoverlabel.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='choroplethmapbox.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_shadowsrc.py index 4439ad22a3b..1786a78807c 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="shadowsrc", - parent_name="choroplethmapbox.hoverlabel.font", - **kwargs, - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='choroplethmapbox.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_size.py index 43875535272..e6e334371e0 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_size.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="choroplethmapbox.hoverlabel.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='choroplethmapbox.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_sizesrc.py index fc25b80b0ec..01a1ac0fee7 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_sizesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="sizesrc", - parent_name="choroplethmapbox.hoverlabel.font", - **kwargs, - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='choroplethmapbox.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_style.py index 817df04ef9a..477b932cf5d 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_style.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="choroplethmapbox.hoverlabel.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='choroplethmapbox.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_stylesrc.py index d6d3d503059..e35d09be53d 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_stylesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="stylesrc", - parent_name="choroplethmapbox.hoverlabel.font", - **kwargs, - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='choroplethmapbox.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_textcase.py index 355ddc941c1..c7e723d16f8 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_textcase.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="choroplethmapbox.hoverlabel.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='choroplethmapbox.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_textcasesrc.py index c376a96d441..943e617b15a 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="choroplethmapbox.hoverlabel.font", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='choroplethmapbox.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_variant.py index d24fe6cfc32..3a58a211c0a 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_variant.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="choroplethmapbox.hoverlabel.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='choroplethmapbox.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_variantsrc.py index f0cf771c3e5..c317522f763 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_variantsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="variantsrc", - parent_name="choroplethmapbox.hoverlabel.font", - **kwargs, - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='choroplethmapbox.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_weight.py index aaec3d4a941..9a88fe635dc 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_weight.py @@ -1,20 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="choroplethmapbox.hoverlabel.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='choroplethmapbox.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_weightsrc.py index c64b572736a..31ed9f6cc1b 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/hoverlabel/font/_weightsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="weightsrc", - parent_name="choroplethmapbox.hoverlabel.font", - **kwargs, - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='choroplethmapbox.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/_font.py index fcade545c91..43b86a2a492 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/_font.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="font", - parent_name="choroplethmapbox.legendgrouptitle", - **kwargs, - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='choroplethmapbox.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/_text.py index 583705963c0..9e83fa464b2 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/_text.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="text", - parent_name="choroplethmapbox.legendgrouptitle", - **kwargs, - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='choroplethmapbox.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_color.py index 3387953587f..839b9fccd8f 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="choroplethmapbox.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='choroplethmapbox.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_family.py index ac4c21c0cda..cb013dbccb3 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="choroplethmapbox.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='choroplethmapbox.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_lineposition.py index 97910b5a94e..30153769df4 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="choroplethmapbox.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='choroplethmapbox.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_shadow.py index 2a619f712ed..779c750eae9 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="choroplethmapbox.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='choroplethmapbox.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_size.py index 72ead375c52..75a0fbcd6a6 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="choroplethmapbox.legendgrouptitle.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='choroplethmapbox.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_style.py index e0178f19eba..5a0b8729cee 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="choroplethmapbox.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='choroplethmapbox.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_textcase.py index 79780f57483..167b803bea7 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="choroplethmapbox.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='choroplethmapbox.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_variant.py index a863b5f895e..038bc5db88b 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="choroplethmapbox.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='choroplethmapbox.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_weight.py index d05ccd51528..1740b1cb1cf 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="choroplethmapbox.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='choroplethmapbox.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/marker/__init__.py b/packages/python/plotly/plotly/validators/choroplethmapbox/marker/__init__.py index 711bedd189e..4a7d1a91d0f 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/marker/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._opacitysrc import OpacitysrcValidator from ._opacity import OpacityValidator from ._line import LineValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._opacitysrc.OpacitysrcValidator", - "._opacity.OpacityValidator", - "._line.LineValidator", - ], + ['._opacitysrc.OpacitysrcValidator', '._opacity.OpacityValidator', '._line.LineValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/marker/_line.py b/packages/python/plotly/plotly/validators/choroplethmapbox/marker/_line.py index e65e9449efc..b69d95ec88d 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/marker/_line.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/marker/_line.py @@ -1,34 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="line", parent_name="choroplethmapbox.marker", **kwargs - ): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='choroplethmapbox.marker', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/marker/_opacity.py b/packages/python/plotly/plotly/validators/choroplethmapbox/marker/_opacity.py index 261c3edca84..7b7d9fd9d9f 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/marker/_opacity.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="choroplethmapbox.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='choroplethmapbox.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/marker/_opacitysrc.py b/packages/python/plotly/plotly/validators/choroplethmapbox/marker/_opacitysrc.py index 3c6e04b19d1..91b8aab00f5 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/marker/_opacitysrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/marker/_opacitysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="opacitysrc", parent_name="choroplethmapbox.marker", **kwargs - ): - super(OpacitysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacitysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='opacitysrc', + parent_name='choroplethmapbox.marker', + **kwargs): + super(OpacitysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/marker/line/__init__.py b/packages/python/plotly/plotly/validators/choroplethmapbox/marker/line/__init__.py index a2b9e1ae50c..522c01899cf 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/marker/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._widthsrc import WidthsrcValidator from ._width import WidthValidator @@ -8,14 +7,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._widthsrc.WidthsrcValidator", - "._width.WidthValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._widthsrc.WidthsrcValidator', '._width.WidthValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/marker/line/_color.py b/packages/python/plotly/plotly/validators/choroplethmapbox/marker/line/_color.py index ca9c031f3f3..39d86aabe24 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/marker/line/_color.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/marker/line/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="choroplethmapbox.marker.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='choroplethmapbox.marker.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/marker/line/_colorsrc.py b/packages/python/plotly/plotly/validators/choroplethmapbox/marker/line/_colorsrc.py index 6d1dc7538d7..3d861f29e0f 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/marker/line/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/marker/line/_colorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="colorsrc", - parent_name="choroplethmapbox.marker.line", - **kwargs, - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='choroplethmapbox.marker.line', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/marker/line/_width.py b/packages/python/plotly/plotly/validators/choroplethmapbox/marker/line/_width.py index 3753f152d7e..40bb2b37b93 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/marker/line/_width.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/marker/line/_width.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="choroplethmapbox.marker.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='choroplethmapbox.marker.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/marker/line/_widthsrc.py b/packages/python/plotly/plotly/validators/choroplethmapbox/marker/line/_widthsrc.py index a7af1a07175..213858a4560 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/marker/line/_widthsrc.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/marker/line/_widthsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="widthsrc", - parent_name="choroplethmapbox.marker.line", - **kwargs, - ): - super(WidthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WidthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='widthsrc', + parent_name='choroplethmapbox.marker.line', + **kwargs): + super(WidthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/selected/__init__.py b/packages/python/plotly/plotly/validators/choroplethmapbox/selected/__init__.py index e9bdb89f26d..8ee3c0f5c26 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/selected/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.MarkerValidator"] + __name__, + [], + ['._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/selected/_marker.py b/packages/python/plotly/plotly/validators/choroplethmapbox/selected/_marker.py index f66f7181a6c..be4103fb40c 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/selected/_marker.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/selected/_marker.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="choroplethmapbox.selected", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - opacity - Sets the marker opacity of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='choroplethmapbox.selected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/choroplethmapbox/selected/marker/__init__.py index 049134a716d..9128012434d 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/selected/marker/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._opacity import OpacityValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._opacity.OpacityValidator"] + __name__, + [], + ['._opacity.OpacityValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/selected/marker/_opacity.py b/packages/python/plotly/plotly/validators/choroplethmapbox/selected/marker/_opacity.py index 9cf9d8c1c86..7821dd1ad72 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/selected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/selected/marker/_opacity.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="opacity", - parent_name="choroplethmapbox.selected.marker", - **kwargs, - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='choroplethmapbox.selected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/stream/__init__.py b/packages/python/plotly/plotly/validators/choroplethmapbox/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/choroplethmapbox/stream/_maxpoints.py index 13ea5763ae9..03e7856fb6c 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/stream/_maxpoints.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxpoints", parent_name="choroplethmapbox.stream", **kwargs - ): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='choroplethmapbox.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/stream/_token.py b/packages/python/plotly/plotly/validators/choroplethmapbox/stream/_token.py index 2da96f5db70..13cdf8b5f5e 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/stream/_token.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/stream/_token.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="token", parent_name="choroplethmapbox.stream", **kwargs - ): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='choroplethmapbox.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/unselected/__init__.py b/packages/python/plotly/plotly/validators/choroplethmapbox/unselected/__init__.py index e9bdb89f26d..8ee3c0f5c26 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/unselected/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.MarkerValidator"] + __name__, + [], + ['._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/unselected/_marker.py b/packages/python/plotly/plotly/validators/choroplethmapbox/unselected/_marker.py index 10ae2f9cb78..3c3b61bbee4 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/unselected/_marker.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/unselected/_marker.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="choroplethmapbox.unselected", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='choroplethmapbox.unselected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/choroplethmapbox/unselected/marker/__init__.py index 049134a716d..9128012434d 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/unselected/marker/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._opacity import OpacityValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._opacity.OpacityValidator"] + __name__, + [], + ['._opacity.OpacityValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/choroplethmapbox/unselected/marker/_opacity.py b/packages/python/plotly/plotly/validators/choroplethmapbox/unselected/marker/_opacity.py index ae1ad272340..3a9b90b196b 100644 --- a/packages/python/plotly/plotly/validators/choroplethmapbox/unselected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/choroplethmapbox/unselected/marker/_opacity.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="opacity", - parent_name="choroplethmapbox.unselected.marker", - **kwargs, - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='choroplethmapbox.unselected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/__init__.py b/packages/python/plotly/plotly/validators/cone/__init__.py index 4d36d20a24f..f5f3a78de33 100644 --- a/packages/python/plotly/plotly/validators/cone/__init__.py +++ b/packages/python/plotly/plotly/validators/cone/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zsrc import ZsrcValidator from ._zhoverformat import ZhoverformatValidator @@ -65,71 +64,10 @@ from ._anchor import AnchorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zsrc.ZsrcValidator", - "._zhoverformat.ZhoverformatValidator", - "._z.ZValidator", - "._ysrc.YsrcValidator", - "._yhoverformat.YhoverformatValidator", - "._y.YValidator", - "._xsrc.XsrcValidator", - "._xhoverformat.XhoverformatValidator", - "._x.XValidator", - "._wsrc.WsrcValidator", - "._whoverformat.WhoverformatValidator", - "._w.WValidator", - "._vsrc.VsrcValidator", - "._visible.VisibleValidator", - "._vhoverformat.VhoverformatValidator", - "._v.VValidator", - "._usrc.UsrcValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._uhoverformat.UhoverformatValidator", - "._u.UValidator", - "._textsrc.TextsrcValidator", - "._text.TextValidator", - "._stream.StreamValidator", - "._sizeref.SizerefValidator", - "._sizemode.SizemodeValidator", - "._showscale.ShowscaleValidator", - "._showlegend.ShowlegendValidator", - "._scene.SceneValidator", - "._reversescale.ReversescaleValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._lightposition.LightpositionValidator", - "._lighting.LightingValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - "._anchor.AnchorValidator", - ], + ['._zsrc.ZsrcValidator', '._zhoverformat.ZhoverformatValidator', '._z.ZValidator', '._ysrc.YsrcValidator', '._yhoverformat.YhoverformatValidator', '._y.YValidator', '._xsrc.XsrcValidator', '._xhoverformat.XhoverformatValidator', '._x.XValidator', '._wsrc.WsrcValidator', '._whoverformat.WhoverformatValidator', '._w.WValidator', '._vsrc.VsrcValidator', '._visible.VisibleValidator', '._vhoverformat.VhoverformatValidator', '._v.VValidator', '._usrc.UsrcValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._uhoverformat.UhoverformatValidator', '._u.UValidator', '._textsrc.TextsrcValidator', '._text.TextValidator', '._stream.StreamValidator', '._sizeref.SizerefValidator', '._sizemode.SizemodeValidator', '._showscale.ShowscaleValidator', '._showlegend.ShowlegendValidator', '._scene.SceneValidator', '._reversescale.ReversescaleValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._lightposition.LightpositionValidator', '._lighting.LightingValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator', '._anchor.AnchorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/cone/_anchor.py b/packages/python/plotly/plotly/validators/cone/_anchor.py index d7f0e0d12ec..1e6fe06f722 100644 --- a/packages/python/plotly/plotly/validators/cone/_anchor.py +++ b/packages/python/plotly/plotly/validators/cone/_anchor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class AnchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="anchor", parent_name="cone", **kwargs): - super(AnchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["tip", "tail", "cm", "center"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AnchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='anchor', + parent_name='cone', + **kwargs): + super(AnchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['tip', 'tail', 'cm', 'center']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_autocolorscale.py b/packages/python/plotly/plotly/validators/cone/_autocolorscale.py index 6f1d4c685c0..765ca7f1da1 100644 --- a/packages/python/plotly/plotly/validators/cone/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/cone/_autocolorscale.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="autocolorscale", parent_name="cone", **kwargs): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='cone', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_cauto.py b/packages/python/plotly/plotly/validators/cone/_cauto.py index 55a5e5a0afd..8724f870dbe 100644 --- a/packages/python/plotly/plotly/validators/cone/_cauto.py +++ b/packages/python/plotly/plotly/validators/cone/_cauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cauto", parent_name="cone", **kwargs): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='cone', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_cmax.py b/packages/python/plotly/plotly/validators/cone/_cmax.py index 2d7c0b69bb0..933581bceee 100644 --- a/packages/python/plotly/plotly/validators/cone/_cmax.py +++ b/packages/python/plotly/plotly/validators/cone/_cmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmax", parent_name="cone", **kwargs): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='cone', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_cmid.py b/packages/python/plotly/plotly/validators/cone/_cmid.py index 3e2ebf00b75..fdc9e2fc53a 100644 --- a/packages/python/plotly/plotly/validators/cone/_cmid.py +++ b/packages/python/plotly/plotly/validators/cone/_cmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmid", parent_name="cone", **kwargs): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='cone', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_cmin.py b/packages/python/plotly/plotly/validators/cone/_cmin.py index 896207d5672..808d627bcbc 100644 --- a/packages/python/plotly/plotly/validators/cone/_cmin.py +++ b/packages/python/plotly/plotly/validators/cone/_cmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmin", parent_name="cone", **kwargs): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='cone', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_coloraxis.py b/packages/python/plotly/plotly/validators/cone/_coloraxis.py index 17cc8e488b7..4e5f99c1493 100644 --- a/packages/python/plotly/plotly/validators/cone/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/cone/_coloraxis.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="coloraxis", parent_name="cone", **kwargs): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='cone', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_colorbar.py b/packages/python/plotly/plotly/validators/cone/_colorbar.py index 4c962146aee..6c1bb964107 100644 --- a/packages/python/plotly/plotly/validators/cone/_colorbar.py +++ b/packages/python/plotly/plotly/validators/cone/_colorbar.py @@ -1,278 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="colorbar", parent_name="cone", **kwargs): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.cone.co - lorbar.Tickformatstop` instances or dicts with - compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.cone.colorbar.tickformatstopdefaults), sets - the default property values to use for elements - of cone.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.cone.colorbar.Titl - e` instance or dict with compatible properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='cone', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_colorscale.py b/packages/python/plotly/plotly/validators/cone/_colorscale.py index 02802b4c3e6..90dd1cc4c50 100644 --- a/packages/python/plotly/plotly/validators/cone/_colorscale.py +++ b/packages/python/plotly/plotly/validators/cone/_colorscale.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__(self, plotly_name="colorscale", parent_name="cone", **kwargs): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='cone', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_customdata.py b/packages/python/plotly/plotly/validators/cone/_customdata.py index d4c111ce8c6..c5c9cce4305 100644 --- a/packages/python/plotly/plotly/validators/cone/_customdata.py +++ b/packages/python/plotly/plotly/validators/cone/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="cone", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='cone', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_customdatasrc.py b/packages/python/plotly/plotly/validators/cone/_customdatasrc.py index b9f520f54fd..05c8704fea3 100644 --- a/packages/python/plotly/plotly/validators/cone/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/cone/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="cone", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='cone', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_hoverinfo.py b/packages/python/plotly/plotly/validators/cone/_hoverinfo.py index 37a7fd5f02a..c9e5f5a2931 100644 --- a/packages/python/plotly/plotly/validators/cone/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/cone/_hoverinfo.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="cone", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop( - "flags", ["x", "y", "z", "u", "v", "w", "norm", "text", "name"] - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='cone', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['x', 'y', 'z', 'u', 'v', 'w', 'norm', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/cone/_hoverinfosrc.py index 48110ff964a..47d0ee29789 100644 --- a/packages/python/plotly/plotly/validators/cone/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/cone/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="cone", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='cone', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_hoverlabel.py b/packages/python/plotly/plotly/validators/cone/_hoverlabel.py index 7105913c5e0..26727a7a604 100644 --- a/packages/python/plotly/plotly/validators/cone/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/cone/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="cone", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='cone', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_hovertemplate.py b/packages/python/plotly/plotly/validators/cone/_hovertemplate.py index aa0bcd6ad2c..34e9018965b 100644 --- a/packages/python/plotly/plotly/validators/cone/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/cone/_hovertemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="cone", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='cone', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/cone/_hovertemplatesrc.py index 9ec2ca48642..6e0d91c19a5 100644 --- a/packages/python/plotly/plotly/validators/cone/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/cone/_hovertemplatesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertemplatesrc", parent_name="cone", **kwargs): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='cone', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_hovertext.py b/packages/python/plotly/plotly/validators/cone/_hovertext.py index 4e714a35858..1f20e17b694 100644 --- a/packages/python/plotly/plotly/validators/cone/_hovertext.py +++ b/packages/python/plotly/plotly/validators/cone/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="cone", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='cone', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_hovertextsrc.py b/packages/python/plotly/plotly/validators/cone/_hovertextsrc.py index f7393f6de5d..1f26d4af6fd 100644 --- a/packages/python/plotly/plotly/validators/cone/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/cone/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="cone", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='cone', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_ids.py b/packages/python/plotly/plotly/validators/cone/_ids.py index 3d0741f375f..a8bffaae37e 100644 --- a/packages/python/plotly/plotly/validators/cone/_ids.py +++ b/packages/python/plotly/plotly/validators/cone/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="cone", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='cone', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_idssrc.py b/packages/python/plotly/plotly/validators/cone/_idssrc.py index f8fa113c33f..ee0d900d7a8 100644 --- a/packages/python/plotly/plotly/validators/cone/_idssrc.py +++ b/packages/python/plotly/plotly/validators/cone/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="cone", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='cone', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_legend.py b/packages/python/plotly/plotly/validators/cone/_legend.py index 9093a9caa2f..5171eddab3d 100644 --- a/packages/python/plotly/plotly/validators/cone/_legend.py +++ b/packages/python/plotly/plotly/validators/cone/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="cone", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='cone', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_legendgroup.py b/packages/python/plotly/plotly/validators/cone/_legendgroup.py index 1031225875d..c3c891c95b7 100644 --- a/packages/python/plotly/plotly/validators/cone/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/cone/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="cone", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='cone', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/cone/_legendgrouptitle.py index 891c1ef85e8..c309445ae0d 100644 --- a/packages/python/plotly/plotly/validators/cone/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/cone/_legendgrouptitle.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="legendgrouptitle", parent_name="cone", **kwargs): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='cone', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_legendrank.py b/packages/python/plotly/plotly/validators/cone/_legendrank.py index b5507d457ff..c5255cb39ef 100644 --- a/packages/python/plotly/plotly/validators/cone/_legendrank.py +++ b/packages/python/plotly/plotly/validators/cone/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="cone", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='cone', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_legendwidth.py b/packages/python/plotly/plotly/validators/cone/_legendwidth.py index 5fe9fbfa859..d8bd002dca4 100644 --- a/packages/python/plotly/plotly/validators/cone/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/cone/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="cone", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='cone', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_lighting.py b/packages/python/plotly/plotly/validators/cone/_lighting.py index a6897f1cf01..d0c8eaecaf9 100644 --- a/packages/python/plotly/plotly/validators/cone/_lighting.py +++ b/packages/python/plotly/plotly/validators/cone/_lighting.py @@ -1,40 +1,15 @@ -import _plotly_utils.basevalidators -class LightingValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="lighting", parent_name="cone", **kwargs): - super(LightingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Lighting"), - data_docs=kwargs.pop( - "data_docs", - """ - ambient - Ambient light increases overall color - visibility but can wash out the image. - diffuse - Represents the extent that incident rays are - reflected in a range of angles. - facenormalsepsilon - Epsilon for face normals calculation avoids - math issues arising from degenerate geometry. - fresnel - Represents the reflectance as a dependency of - the viewing angle; e.g. paper is reflective - when viewing it from the edge of the paper - (almost 90 degrees), causing shine. - roughness - Alters specular reflection; the rougher the - surface, the wider and less contrasty the - shine. - specular - Represents the level that incident rays are - reflected in a single direction, causing shine. - vertexnormalsepsilon - Epsilon for vertex normals calculation avoids - math issues arising from degenerate geometry. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LightingValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='lighting', + parent_name='cone', + **kwargs): + super(LightingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Lighting'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_lightposition.py b/packages/python/plotly/plotly/validators/cone/_lightposition.py index 88c04133b34..a066dbe933f 100644 --- a/packages/python/plotly/plotly/validators/cone/_lightposition.py +++ b/packages/python/plotly/plotly/validators/cone/_lightposition.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class LightpositionValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="lightposition", parent_name="cone", **kwargs): - super(LightpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Lightposition"), - data_docs=kwargs.pop( - "data_docs", - """ - x - Numeric vector, representing the X coordinate - for each vertex. - y - Numeric vector, representing the Y coordinate - for each vertex. - z - Numeric vector, representing the Z coordinate - for each vertex. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LightpositionValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='lightposition', + parent_name='cone', + **kwargs): + super(LightpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Lightposition'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_meta.py b/packages/python/plotly/plotly/validators/cone/_meta.py index e38247aa6dc..bdc8d5f56b3 100644 --- a/packages/python/plotly/plotly/validators/cone/_meta.py +++ b/packages/python/plotly/plotly/validators/cone/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="cone", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='cone', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_metasrc.py b/packages/python/plotly/plotly/validators/cone/_metasrc.py index 30fb8dd092c..15fca653e2e 100644 --- a/packages/python/plotly/plotly/validators/cone/_metasrc.py +++ b/packages/python/plotly/plotly/validators/cone/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="cone", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='cone', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_name.py b/packages/python/plotly/plotly/validators/cone/_name.py index 3e7fd95b727..decffb6d29b 100644 --- a/packages/python/plotly/plotly/validators/cone/_name.py +++ b/packages/python/plotly/plotly/validators/cone/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="cone", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='cone', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_opacity.py b/packages/python/plotly/plotly/validators/cone/_opacity.py index 344823463a5..1daf80cfacf 100644 --- a/packages/python/plotly/plotly/validators/cone/_opacity.py +++ b/packages/python/plotly/plotly/validators/cone/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="cone", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='cone', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_reversescale.py b/packages/python/plotly/plotly/validators/cone/_reversescale.py index dcfaeb579b6..de616a75f7a 100644 --- a/packages/python/plotly/plotly/validators/cone/_reversescale.py +++ b/packages/python/plotly/plotly/validators/cone/_reversescale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="reversescale", parent_name="cone", **kwargs): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='cone', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_scene.py b/packages/python/plotly/plotly/validators/cone/_scene.py index f7a60f764b4..22e6d1ca8ce 100644 --- a/packages/python/plotly/plotly/validators/cone/_scene.py +++ b/packages/python/plotly/plotly/validators/cone/_scene.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SceneValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="scene", parent_name="cone", **kwargs): - super(SceneValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "scene"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SceneValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='scene', + parent_name='cone', + **kwargs): + super(SceneValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'scene'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_showlegend.py b/packages/python/plotly/plotly/validators/cone/_showlegend.py index d928c8388a6..a6bf0381809 100644 --- a/packages/python/plotly/plotly/validators/cone/_showlegend.py +++ b/packages/python/plotly/plotly/validators/cone/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="cone", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='cone', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_showscale.py b/packages/python/plotly/plotly/validators/cone/_showscale.py index e9efe817de1..78109d66626 100644 --- a/packages/python/plotly/plotly/validators/cone/_showscale.py +++ b/packages/python/plotly/plotly/validators/cone/_showscale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showscale", parent_name="cone", **kwargs): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='cone', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_sizemode.py b/packages/python/plotly/plotly/validators/cone/_sizemode.py index 5bfc57b4874..a7de71944ee 100644 --- a/packages/python/plotly/plotly/validators/cone/_sizemode.py +++ b/packages/python/plotly/plotly/validators/cone/_sizemode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="sizemode", parent_name="cone", **kwargs): - super(SizemodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["scaled", "absolute", "raw"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizemodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='sizemode', + parent_name='cone', + **kwargs): + super(SizemodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['scaled', 'absolute', 'raw']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_sizeref.py b/packages/python/plotly/plotly/validators/cone/_sizeref.py index 6f5f60e84bf..f104a86387e 100644 --- a/packages/python/plotly/plotly/validators/cone/_sizeref.py +++ b/packages/python/plotly/plotly/validators/cone/_sizeref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="sizeref", parent_name="cone", **kwargs): - super(SizerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizerefValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sizeref', + parent_name='cone', + **kwargs): + super(SizerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_stream.py b/packages/python/plotly/plotly/validators/cone/_stream.py index 7dc54c095ad..40655290bf6 100644 --- a/packages/python/plotly/plotly/validators/cone/_stream.py +++ b/packages/python/plotly/plotly/validators/cone/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="cone", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='cone', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_text.py b/packages/python/plotly/plotly/validators/cone/_text.py index c8d15062cf6..364fcea20b2 100644 --- a/packages/python/plotly/plotly/validators/cone/_text.py +++ b/packages/python/plotly/plotly/validators/cone/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="cone", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='cone', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_textsrc.py b/packages/python/plotly/plotly/validators/cone/_textsrc.py index 721fa8c2106..7e86c076754 100644 --- a/packages/python/plotly/plotly/validators/cone/_textsrc.py +++ b/packages/python/plotly/plotly/validators/cone/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="cone", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='cone', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_u.py b/packages/python/plotly/plotly/validators/cone/_u.py index e1276f326b8..e8a059cf8eb 100644 --- a/packages/python/plotly/plotly/validators/cone/_u.py +++ b/packages/python/plotly/plotly/validators/cone/_u.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="u", parent_name="cone", **kwargs): - super(UValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='u', + parent_name='cone', + **kwargs): + super(UValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_uhoverformat.py b/packages/python/plotly/plotly/validators/cone/_uhoverformat.py index 74349442957..f4b25a3f6a3 100644 --- a/packages/python/plotly/plotly/validators/cone/_uhoverformat.py +++ b/packages/python/plotly/plotly/validators/cone/_uhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uhoverformat", parent_name="cone", **kwargs): - super(UhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='uhoverformat', + parent_name='cone', + **kwargs): + super(UhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_uid.py b/packages/python/plotly/plotly/validators/cone/_uid.py index 5f6884653df..1caca50dea0 100644 --- a/packages/python/plotly/plotly/validators/cone/_uid.py +++ b/packages/python/plotly/plotly/validators/cone/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="cone", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='cone', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_uirevision.py b/packages/python/plotly/plotly/validators/cone/_uirevision.py index 8962d8d3a06..9a5d54296bc 100644 --- a/packages/python/plotly/plotly/validators/cone/_uirevision.py +++ b/packages/python/plotly/plotly/validators/cone/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="cone", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='cone', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_usrc.py b/packages/python/plotly/plotly/validators/cone/_usrc.py index b3f75fb6fa2..b3ffeefbedd 100644 --- a/packages/python/plotly/plotly/validators/cone/_usrc.py +++ b/packages/python/plotly/plotly/validators/cone/_usrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="usrc", parent_name="cone", **kwargs): - super(UsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='usrc', + parent_name='cone', + **kwargs): + super(UsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_v.py b/packages/python/plotly/plotly/validators/cone/_v.py index 645be3a8f5b..e535735ec22 100644 --- a/packages/python/plotly/plotly/validators/cone/_v.py +++ b/packages/python/plotly/plotly/validators/cone/_v.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class VValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="v", parent_name="cone", **kwargs): - super(VValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='v', + parent_name='cone', + **kwargs): + super(VValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_vhoverformat.py b/packages/python/plotly/plotly/validators/cone/_vhoverformat.py index 1dff27e9f6f..e1d00d45083 100644 --- a/packages/python/plotly/plotly/validators/cone/_vhoverformat.py +++ b/packages/python/plotly/plotly/validators/cone/_vhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class VhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="vhoverformat", parent_name="cone", **kwargs): - super(VhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='vhoverformat', + parent_name='cone', + **kwargs): + super(VhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_visible.py b/packages/python/plotly/plotly/validators/cone/_visible.py index 5b057de8624..9707b94ad26 100644 --- a/packages/python/plotly/plotly/validators/cone/_visible.py +++ b/packages/python/plotly/plotly/validators/cone/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="cone", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='cone', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_vsrc.py b/packages/python/plotly/plotly/validators/cone/_vsrc.py index ff49a98f481..1a0b7d6b5b5 100644 --- a/packages/python/plotly/plotly/validators/cone/_vsrc.py +++ b/packages/python/plotly/plotly/validators/cone/_vsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class VsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="vsrc", parent_name="cone", **kwargs): - super(VsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='vsrc', + parent_name='cone', + **kwargs): + super(VsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_w.py b/packages/python/plotly/plotly/validators/cone/_w.py index 71826dd0d1f..d6c1995d1a0 100644 --- a/packages/python/plotly/plotly/validators/cone/_w.py +++ b/packages/python/plotly/plotly/validators/cone/_w.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class WValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="w", parent_name="cone", **kwargs): - super(WValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='w', + parent_name='cone', + **kwargs): + super(WValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_whoverformat.py b/packages/python/plotly/plotly/validators/cone/_whoverformat.py index 9100d456aa8..07c2e3c0c0f 100644 --- a/packages/python/plotly/plotly/validators/cone/_whoverformat.py +++ b/packages/python/plotly/plotly/validators/cone/_whoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class WhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="whoverformat", parent_name="cone", **kwargs): - super(WhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='whoverformat', + parent_name='cone', + **kwargs): + super(WhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_wsrc.py b/packages/python/plotly/plotly/validators/cone/_wsrc.py index b15e9632375..e53d5046e43 100644 --- a/packages/python/plotly/plotly/validators/cone/_wsrc.py +++ b/packages/python/plotly/plotly/validators/cone/_wsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class WsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="wsrc", parent_name="cone", **kwargs): - super(WsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='wsrc', + parent_name='cone', + **kwargs): + super(WsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_x.py b/packages/python/plotly/plotly/validators/cone/_x.py index 79bb35931a5..d7fa6d472e7 100644 --- a/packages/python/plotly/plotly/validators/cone/_x.py +++ b/packages/python/plotly/plotly/validators/cone/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="x", parent_name="cone", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='x', + parent_name='cone', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_xhoverformat.py b/packages/python/plotly/plotly/validators/cone/_xhoverformat.py index 3259493d34e..7490c55fb5f 100644 --- a/packages/python/plotly/plotly/validators/cone/_xhoverformat.py +++ b/packages/python/plotly/plotly/validators/cone/_xhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="xhoverformat", parent_name="cone", **kwargs): - super(XhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='xhoverformat', + parent_name='cone', + **kwargs): + super(XhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_xsrc.py b/packages/python/plotly/plotly/validators/cone/_xsrc.py index 5f167d6648a..5a3e6b164d3 100644 --- a/packages/python/plotly/plotly/validators/cone/_xsrc.py +++ b/packages/python/plotly/plotly/validators/cone/_xsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="xsrc", parent_name="cone", **kwargs): - super(XsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='xsrc', + parent_name='cone', + **kwargs): + super(XsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_y.py b/packages/python/plotly/plotly/validators/cone/_y.py index 6e6bc31c361..2586e69a461 100644 --- a/packages/python/plotly/plotly/validators/cone/_y.py +++ b/packages/python/plotly/plotly/validators/cone/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="y", parent_name="cone", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='y', + parent_name='cone', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_yhoverformat.py b/packages/python/plotly/plotly/validators/cone/_yhoverformat.py index 93fd8c54189..7505a6c4aae 100644 --- a/packages/python/plotly/plotly/validators/cone/_yhoverformat.py +++ b/packages/python/plotly/plotly/validators/cone/_yhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="yhoverformat", parent_name="cone", **kwargs): - super(YhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='yhoverformat', + parent_name='cone', + **kwargs): + super(YhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_ysrc.py b/packages/python/plotly/plotly/validators/cone/_ysrc.py index e61aa0c8f51..c8528107a9f 100644 --- a/packages/python/plotly/plotly/validators/cone/_ysrc.py +++ b/packages/python/plotly/plotly/validators/cone/_ysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="ysrc", parent_name="cone", **kwargs): - super(YsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ysrc', + parent_name='cone', + **kwargs): + super(YsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_z.py b/packages/python/plotly/plotly/validators/cone/_z.py index a7f88706270..550b05f728a 100644 --- a/packages/python/plotly/plotly/validators/cone/_z.py +++ b/packages/python/plotly/plotly/validators/cone/_z.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="z", parent_name="cone", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='z', + parent_name='cone', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_zhoverformat.py b/packages/python/plotly/plotly/validators/cone/_zhoverformat.py index 4a3bc5550b5..0e89dfb1d76 100644 --- a/packages/python/plotly/plotly/validators/cone/_zhoverformat.py +++ b/packages/python/plotly/plotly/validators/cone/_zhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="zhoverformat", parent_name="cone", **kwargs): - super(ZhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='zhoverformat', + parent_name='cone', + **kwargs): + super(ZhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/_zsrc.py b/packages/python/plotly/plotly/validators/cone/_zsrc.py index b6db12b6fee..010a9c1c284 100644 --- a/packages/python/plotly/plotly/validators/cone/_zsrc.py +++ b/packages/python/plotly/plotly/validators/cone/_zsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="zsrc", parent_name="cone", **kwargs): - super(ZsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='zsrc', + parent_name='cone', + **kwargs): + super(ZsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/__init__.py b/packages/python/plotly/plotly/validators/cone/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/cone/colorbar/_bgcolor.py index 6fed1233d55..dc5db259c2a 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_bgcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="bgcolor", parent_name="cone.colorbar", **kwargs): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='cone.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/cone/colorbar/_bordercolor.py index c24694ee805..47e1166e6c7 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="cone.colorbar", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='cone.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/cone/colorbar/_borderwidth.py index 668b0050d4a..fb340b9e1bf 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_borderwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderwidth", parent_name="cone.colorbar", **kwargs - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='cone.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/cone/colorbar/_dtick.py index 3154c463de0..3ebcec3f38c 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_dtick.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="dtick", parent_name="cone.colorbar", **kwargs): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='cone.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/cone/colorbar/_exponentformat.py index f0bd7ca5c14..4f3ac2b0048 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_exponentformat.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="exponentformat", parent_name="cone.colorbar", **kwargs - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='cone.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/cone/colorbar/_labelalias.py index 8adec2edbb2..731ddd406d2 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_labelalias.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="labelalias", parent_name="cone.colorbar", **kwargs): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='cone.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_len.py b/packages/python/plotly/plotly/validators/cone/colorbar/_len.py index d7eef61297d..29f0fdc356a 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_len.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="len", parent_name="cone.colorbar", **kwargs): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='cone.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/cone/colorbar/_lenmode.py index 8d9ba761e83..1ebd52509d9 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_lenmode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="lenmode", parent_name="cone.colorbar", **kwargs): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='cone.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/cone/colorbar/_minexponent.py index abe8e359a81..f1d9bbaad0b 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="cone.colorbar", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='cone.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/cone/colorbar/_nticks.py index fd679c05750..138b0ffb4a2 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_nticks.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="nticks", parent_name="cone.colorbar", **kwargs): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='cone.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/cone/colorbar/_orientation.py index cb6fdf9f53e..b1c5791908b 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_orientation.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="orientation", parent_name="cone.colorbar", **kwargs - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='cone.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/cone/colorbar/_outlinecolor.py index 503686174f2..6da9d0a19f1 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_outlinecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="outlinecolor", parent_name="cone.colorbar", **kwargs - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='cone.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/cone/colorbar/_outlinewidth.py index 1806fa7c219..46eb52dcac2 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_outlinewidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="outlinewidth", parent_name="cone.colorbar", **kwargs - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='cone.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/cone/colorbar/_separatethousands.py index 2753c95abcc..6fb01ebbab8 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_separatethousands.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="separatethousands", parent_name="cone.colorbar", **kwargs - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='cone.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/cone/colorbar/_showexponent.py index 54c039e6776..d3b11c805e8 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="cone.colorbar", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='cone.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/cone/colorbar/_showticklabels.py index de068b090a5..00d15d15ac4 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_showticklabels.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showticklabels", parent_name="cone.colorbar", **kwargs - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='cone.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/cone/colorbar/_showtickprefix.py index e1cca43434f..785d4bd7bb0 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_showtickprefix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showtickprefix", parent_name="cone.colorbar", **kwargs - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='cone.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/cone/colorbar/_showticksuffix.py index c99bc63088c..76002b4b3bb 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_showticksuffix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showticksuffix", parent_name="cone.colorbar", **kwargs - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='cone.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/cone/colorbar/_thickness.py index f6e8f942601..d3558e20827 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_thickness.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="thickness", parent_name="cone.colorbar", **kwargs): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='cone.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/cone/colorbar/_thicknessmode.py index c816d618453..6cf3f3f61b4 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_thicknessmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="thicknessmode", parent_name="cone.colorbar", **kwargs - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='cone.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/cone/colorbar/_tick0.py index fa9984713cb..5aa83e6a9f5 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_tick0.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="tick0", parent_name="cone.colorbar", **kwargs): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='cone.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/cone/colorbar/_tickangle.py index c560c4dab43..5dff284ad31 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_tickangle.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__(self, plotly_name="tickangle", parent_name="cone.colorbar", **kwargs): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='cone.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/cone/colorbar/_tickcolor.py index 8f4ecc4b09b..676d12b2627 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_tickcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="tickcolor", parent_name="cone.colorbar", **kwargs): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='cone.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/cone/colorbar/_tickfont.py index 63b0705c0be..209293c5e51 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_tickfont.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="tickfont", parent_name="cone.colorbar", **kwargs): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='cone.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/cone/colorbar/_tickformat.py index ffa59ed6944..4863292fa2b 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_tickformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="tickformat", parent_name="cone.colorbar", **kwargs): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='cone.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/cone/colorbar/_tickformatstopdefaults.py index b2610282386..8e3c110611e 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="cone.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='cone.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/cone/colorbar/_tickformatstops.py index 8beb6215b72..dc14b923d9c 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_tickformatstops.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="tickformatstops", parent_name="cone.colorbar", **kwargs - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='cone.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/cone/colorbar/_ticklabeloverflow.py index 743a4710b2a..deba5c8d071 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_ticklabeloverflow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticklabeloverflow", parent_name="cone.colorbar", **kwargs - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='cone.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/cone/colorbar/_ticklabelposition.py index b775411670c..8975b36a5ee 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_ticklabelposition.py @@ -1,28 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticklabelposition", parent_name="cone.colorbar", **kwargs - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='cone.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/cone/colorbar/_ticklabelstep.py index d09c1e03527..284622077ed 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_ticklabelstep.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="ticklabelstep", parent_name="cone.colorbar", **kwargs - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='cone.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/cone/colorbar/_ticklen.py index 4aa67153ba7..781f37df6c8 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_ticklen.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="ticklen", parent_name="cone.colorbar", **kwargs): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='cone.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/cone/colorbar/_tickmode.py index b9330a163b5..9496511e5a5 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_tickmode.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="tickmode", parent_name="cone.colorbar", **kwargs): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='cone.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/cone/colorbar/_tickprefix.py index 45c98c4a6d8..96d39a58f55 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_tickprefix.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="tickprefix", parent_name="cone.colorbar", **kwargs): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='cone.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/cone/colorbar/_ticks.py index 318892131cf..f4123bb088a 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_ticks.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="ticks", parent_name="cone.colorbar", **kwargs): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='cone.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/cone/colorbar/_ticksuffix.py index e5d0d20c7a3..9c9deb2c533 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_ticksuffix.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="ticksuffix", parent_name="cone.colorbar", **kwargs): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='cone.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/cone/colorbar/_ticktext.py index 229bb430709..0af23722f8d 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_ticktext.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ticktext", parent_name="cone.colorbar", **kwargs): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='cone.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/cone/colorbar/_ticktextsrc.py index 1f358445b0d..d96a1e3f85b 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="cone.colorbar", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='cone.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/cone/colorbar/_tickvals.py index 445c886c03c..e075c9477ea 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_tickvals.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="tickvals", parent_name="cone.colorbar", **kwargs): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='cone.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/cone/colorbar/_tickvalssrc.py index bf933b0ad1b..f30f158a770 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="cone.colorbar", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='cone.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/cone/colorbar/_tickwidth.py index 01973200951..5c6e933eba1 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_tickwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="tickwidth", parent_name="cone.colorbar", **kwargs): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='cone.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_title.py b/packages/python/plotly/plotly/validators/cone/colorbar/_title.py index 4cd3a2d97fe..8f9da9bc8cb 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_title.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__(self, plotly_name="title", parent_name="cone.colorbar", **kwargs): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='cone.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_x.py b/packages/python/plotly/plotly/validators/cone/colorbar/_x.py index 7bbe61e2a5d..c73dcf35df9 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x", parent_name="cone.colorbar", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='cone.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/cone/colorbar/_xanchor.py index 699aa52fe45..d00bd855ca7 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_xanchor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xanchor", parent_name="cone.colorbar", **kwargs): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='cone.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/cone/colorbar/_xpad.py index dc764b089db..a95d3ccfed8 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_xpad.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="xpad", parent_name="cone.colorbar", **kwargs): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='cone.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_xref.py b/packages/python/plotly/plotly/validators/cone/colorbar/_xref.py index 00ba2cb1990..89f3d63df47 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_xref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xref", parent_name="cone.colorbar", **kwargs): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='cone.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_y.py b/packages/python/plotly/plotly/validators/cone/colorbar/_y.py index 4a5626878b1..dd9f64dd64c 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y", parent_name="cone.colorbar", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='cone.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/cone/colorbar/_yanchor.py index 2628b83d43f..cb4a8a60c66 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_yanchor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yanchor", parent_name="cone.colorbar", **kwargs): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='cone.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/cone/colorbar/_ypad.py index 754e53f9afc..f452172460e 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_ypad.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="ypad", parent_name="cone.colorbar", **kwargs): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='cone.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/_yref.py b/packages/python/plotly/plotly/validators/cone/colorbar/_yref.py index 27ba8d53eec..05bee95fa2a 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/_yref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yref", parent_name="cone.colorbar", **kwargs): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='cone.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_color.py index fc7bec275a8..71e1c6f0deb 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="cone.colorbar.tickfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='cone.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_family.py index 8b8e236c49a..26448ae732e 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="cone.colorbar.tickfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='cone.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_lineposition.py index 2138c049a5b..d652e9d6374 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_lineposition.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="cone.colorbar.tickfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='cone.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_shadow.py index 064ecede9b2..4f90c18a10b 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="cone.colorbar.tickfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='cone.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_size.py index 9cc8826f89a..9edc2230eb4 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="cone.colorbar.tickfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='cone.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_style.py index a22317659dd..2072549e6ff 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="cone.colorbar.tickfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='cone.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_textcase.py index d0514f821fe..ddb3d3900da 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="cone.colorbar.tickfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='cone.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_variant.py index 39dece837b9..fb07c11ada5 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="cone.colorbar.tickfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='cone.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_weight.py index d402c58647f..e15203d80f9 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="cone.colorbar.tickfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='cone.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/cone/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/cone/colorbar/tickformatstop/_dtickrange.py index 0dcc9a39ce3..323dbce6013 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="cone.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - items=kwargs.pop( - "items", - [ - {"editType": "colorbars", "valType": "any"}, - {"editType": "colorbars", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='cone.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + items=kwargs.pop('items', [{'editType': 'colorbars', 'valType': 'any'}, {'editType': 'colorbars', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/cone/colorbar/tickformatstop/_enabled.py index 667502b1073..71845dfa332 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="cone.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='cone.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/cone/colorbar/tickformatstop/_name.py index 3192cd72600..d484f597f4a 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/tickformatstop/_name.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="name", parent_name="cone.colorbar.tickformatstop", **kwargs - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='cone.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/cone/colorbar/tickformatstop/_templateitemname.py index 5f3f3abb482..7556d8adde6 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="cone.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='cone.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/cone/colorbar/tickformatstop/_value.py index e74bb516015..85ee133e04e 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/tickformatstop/_value.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="value", parent_name="cone.colorbar.tickformatstop", **kwargs - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='cone.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/cone/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/cone/colorbar/title/_font.py index a9fdeb67336..443243c90aa 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/title/_font.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="cone.colorbar.title", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='cone.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/cone/colorbar/title/_side.py index 2a706bbb30d..f5983b50f54 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/title/_side.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="side", parent_name="cone.colorbar.title", **kwargs): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='cone.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/cone/colorbar/title/_text.py index be76a31059a..028b2834161 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/title/_text.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="cone.colorbar.title", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='cone.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/cone/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_color.py index cfa7ce647df..f0698f17bc0 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="cone.colorbar.title.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='cone.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_family.py index c44378c1993..0b2d7108e31 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="cone.colorbar.title.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='cone.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_lineposition.py index a43100a9930..38979993265 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="cone.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='cone.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_shadow.py index 9fdb8c184f8..8791fff9f61 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="cone.colorbar.title.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='cone.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_size.py index 553454414e2..524009157cd 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="cone.colorbar.title.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='cone.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_style.py index ac59a8317af..1a40854db9b 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="cone.colorbar.title.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='cone.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_textcase.py index a40098bcca4..cf8d0b0f748 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="cone.colorbar.title.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='cone.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_variant.py index ef9b7285d95..e3ab616d5fb 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="cone.colorbar.title.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='cone.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_weight.py index 781473b656b..ff0b6238c22 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/title/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="cone.colorbar.title.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='cone.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/_align.py index 11f1153b67b..0b5dc03afb0 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/_align.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="align", parent_name="cone.hoverlabel", **kwargs): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='cone.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/_alignsrc.py index 0055eeef54a..cebe13431fd 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/_alignsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="alignsrc", parent_name="cone.hoverlabel", **kwargs): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='cone.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/_bgcolor.py index 2831a4b4826..596e2744699 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/_bgcolor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="bgcolor", parent_name="cone.hoverlabel", **kwargs): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='cone.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/_bgcolorsrc.py index d1d605e30d7..be2ada09587 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="cone.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='cone.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/_bordercolor.py index a053819ec3e..2480ae49a6f 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="cone.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='cone.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/_bordercolorsrc.py index 6ac1cf6bc27..296b63029dd 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bordercolorsrc", parent_name="cone.hoverlabel", **kwargs - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='cone.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/_font.py index 1235a36d8fa..b11dae2bc8a 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/_font.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="cone.hoverlabel", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='cone.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/_namelength.py index 75eb9875d83..cce91491000 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="cone.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='cone.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/_namelengthsrc.py index ca35a9f4583..402d676b097 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="cone.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='cone.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_color.py index 31bd6d1097a..f1726055710 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="cone.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='cone.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_colorsrc.py index 8fcdaef1692..8d851cdf878 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="cone.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='cone.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_family.py index b42f6ecee1c..518142f8ec6 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="cone.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='cone.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_familysrc.py index e5338219a03..69814f3ee9f 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="cone.hoverlabel.font", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='cone.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_lineposition.py index 1a969cc12c3..3a9617f4bb6 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="cone.hoverlabel.font", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='cone.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_linepositionsrc.py index 69a65125afb..cd46d3dd7c4 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="cone.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='cone.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_shadow.py index c1a9b2353a1..173bde28fd8 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="cone.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='cone.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_shadowsrc.py index 1d218d02ca8..254ba9d10e4 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="cone.hoverlabel.font", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='cone.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_size.py index 2fd64080c45..3e48533fdb9 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="cone.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='cone.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_sizesrc.py index 35351a87c36..d149d3de276 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="cone.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='cone.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_style.py index dd2b0d3ca71..936ec564afe 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="cone.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='cone.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_stylesrc.py index 57367e97017..19ff4393d34 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="cone.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='cone.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_textcase.py index 3a1581f7063..bb540a5e066 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="cone.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='cone.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_textcasesrc.py index 486d4259a5d..75e3f2876fe 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="cone.hoverlabel.font", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='cone.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_variant.py index 960385ac927..e79a4df4e23 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="cone.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='cone.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_variantsrc.py index dfbe3e645ac..0cb7e850ecc 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="cone.hoverlabel.font", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='cone.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_weight.py index 2c9930f70d6..a4e00fe1d8f 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="cone.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='cone.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_weightsrc.py index 928d9dd8433..376223edc6b 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="cone.hoverlabel.font", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='cone.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/cone/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/cone/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/cone/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/cone/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/cone/legendgrouptitle/_font.py index a466b349049..a033f27a0c8 100644 --- a/packages/python/plotly/plotly/validators/cone/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/cone/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="cone.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='cone.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/cone/legendgrouptitle/_text.py index b90f511ec17..43025d03f90 100644 --- a/packages/python/plotly/plotly/validators/cone/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/cone/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="cone.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='cone.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_color.py index d5758d4bcf8..dd7ef7d486b 100644 --- a/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="cone.legendgrouptitle.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='cone.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_family.py index 5d1fc66538e..7d45ec35fa8 100644 --- a/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="cone.legendgrouptitle.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='cone.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_lineposition.py index c598e3c69ce..c40f48abccb 100644 --- a/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="cone.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='cone.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_shadow.py index 8442b3db2a6..3e9c7ef8953 100644 --- a/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="cone.legendgrouptitle.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='cone.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_size.py index 4509f85e29b..97f194ae2c1 100644 --- a/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="cone.legendgrouptitle.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='cone.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_style.py index 0ada8ad7f7b..3f7bf2d8226 100644 --- a/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="cone.legendgrouptitle.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='cone.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_textcase.py index 85cd37860a3..d892260d076 100644 --- a/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="cone.legendgrouptitle.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='cone.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_variant.py index 6579aa827cb..f5944284ac4 100644 --- a/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="cone.legendgrouptitle.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='cone.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_weight.py index adaaf6c26ec..e42a6f77b67 100644 --- a/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/cone/legendgrouptitle/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="cone.legendgrouptitle.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='cone.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/lighting/__init__.py b/packages/python/plotly/plotly/validators/cone/lighting/__init__.py index 028351f35d6..f9c262cc056 100644 --- a/packages/python/plotly/plotly/validators/cone/lighting/__init__.py +++ b/packages/python/plotly/plotly/validators/cone/lighting/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._vertexnormalsepsilon import VertexnormalsepsilonValidator from ._specular import SpecularValidator @@ -11,17 +10,10 @@ from ._ambient import AmbientValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._vertexnormalsepsilon.VertexnormalsepsilonValidator", - "._specular.SpecularValidator", - "._roughness.RoughnessValidator", - "._fresnel.FresnelValidator", - "._facenormalsepsilon.FacenormalsepsilonValidator", - "._diffuse.DiffuseValidator", - "._ambient.AmbientValidator", - ], + ['._vertexnormalsepsilon.VertexnormalsepsilonValidator', '._specular.SpecularValidator', '._roughness.RoughnessValidator', '._fresnel.FresnelValidator', '._facenormalsepsilon.FacenormalsepsilonValidator', '._diffuse.DiffuseValidator', '._ambient.AmbientValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/cone/lighting/_ambient.py b/packages/python/plotly/plotly/validators/cone/lighting/_ambient.py index c653d51a80c..bd3869a7046 100644 --- a/packages/python/plotly/plotly/validators/cone/lighting/_ambient.py +++ b/packages/python/plotly/plotly/validators/cone/lighting/_ambient.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class AmbientValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="ambient", parent_name="cone.lighting", **kwargs): - super(AmbientValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AmbientValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ambient', + parent_name='cone.lighting', + **kwargs): + super(AmbientValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/lighting/_diffuse.py b/packages/python/plotly/plotly/validators/cone/lighting/_diffuse.py index 4e29e0da1c6..7e6e87b3792 100644 --- a/packages/python/plotly/plotly/validators/cone/lighting/_diffuse.py +++ b/packages/python/plotly/plotly/validators/cone/lighting/_diffuse.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class DiffuseValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="diffuse", parent_name="cone.lighting", **kwargs): - super(DiffuseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DiffuseValidator(_bv.NumberValidator): + def __init__(self, plotly_name='diffuse', + parent_name='cone.lighting', + **kwargs): + super(DiffuseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/lighting/_facenormalsepsilon.py b/packages/python/plotly/plotly/validators/cone/lighting/_facenormalsepsilon.py index cf70d9e6033..7aa937c277e 100644 --- a/packages/python/plotly/plotly/validators/cone/lighting/_facenormalsepsilon.py +++ b/packages/python/plotly/plotly/validators/cone/lighting/_facenormalsepsilon.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FacenormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="facenormalsepsilon", parent_name="cone.lighting", **kwargs - ): - super(FacenormalsepsilonValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FacenormalsepsilonValidator(_bv.NumberValidator): + def __init__(self, plotly_name='facenormalsepsilon', + parent_name='cone.lighting', + **kwargs): + super(FacenormalsepsilonValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/lighting/_fresnel.py b/packages/python/plotly/plotly/validators/cone/lighting/_fresnel.py index 09589f65645..b1dace4d6dc 100644 --- a/packages/python/plotly/plotly/validators/cone/lighting/_fresnel.py +++ b/packages/python/plotly/plotly/validators/cone/lighting/_fresnel.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class FresnelValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="fresnel", parent_name="cone.lighting", **kwargs): - super(FresnelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 5), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FresnelValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fresnel', + parent_name='cone.lighting', + **kwargs): + super(FresnelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 5), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/lighting/_roughness.py b/packages/python/plotly/plotly/validators/cone/lighting/_roughness.py index fb5e25f5901..dd9b2e45f09 100644 --- a/packages/python/plotly/plotly/validators/cone/lighting/_roughness.py +++ b/packages/python/plotly/plotly/validators/cone/lighting/_roughness.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class RoughnessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="roughness", parent_name="cone.lighting", **kwargs): - super(RoughnessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RoughnessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='roughness', + parent_name='cone.lighting', + **kwargs): + super(RoughnessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/lighting/_specular.py b/packages/python/plotly/plotly/validators/cone/lighting/_specular.py index 807808f4996..b54dde8894e 100644 --- a/packages/python/plotly/plotly/validators/cone/lighting/_specular.py +++ b/packages/python/plotly/plotly/validators/cone/lighting/_specular.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SpecularValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="specular", parent_name="cone.lighting", **kwargs): - super(SpecularValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 2), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SpecularValidator(_bv.NumberValidator): + def __init__(self, plotly_name='specular', + parent_name='cone.lighting', + **kwargs): + super(SpecularValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 2), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/lighting/_vertexnormalsepsilon.py b/packages/python/plotly/plotly/validators/cone/lighting/_vertexnormalsepsilon.py index acceaa00b73..09614636a21 100644 --- a/packages/python/plotly/plotly/validators/cone/lighting/_vertexnormalsepsilon.py +++ b/packages/python/plotly/plotly/validators/cone/lighting/_vertexnormalsepsilon.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class VertexnormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="vertexnormalsepsilon", parent_name="cone.lighting", **kwargs - ): - super(VertexnormalsepsilonValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VertexnormalsepsilonValidator(_bv.NumberValidator): + def __init__(self, plotly_name='vertexnormalsepsilon', + parent_name='cone.lighting', + **kwargs): + super(VertexnormalsepsilonValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/lightposition/__init__.py b/packages/python/plotly/plotly/validators/cone/lightposition/__init__.py index 52779f59bc4..21cfa26dac1 100644 --- a/packages/python/plotly/plotly/validators/cone/lightposition/__init__.py +++ b/packages/python/plotly/plotly/validators/cone/lightposition/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._z import ZValidator from ._y import YValidator from ._x import XValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] + __name__, + [], + ['._z.ZValidator', '._y.YValidator', '._x.XValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/cone/lightposition/_x.py b/packages/python/plotly/plotly/validators/cone/lightposition/_x.py index 1f3e4123f7c..3eb9f28fce6 100644 --- a/packages/python/plotly/plotly/validators/cone/lightposition/_x.py +++ b/packages/python/plotly/plotly/validators/cone/lightposition/_x.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x", parent_name="cone.lightposition", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 100000), - min=kwargs.pop("min", -100000), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='cone.lightposition', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 100000), + min=kwargs.pop('min', -100000), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/lightposition/_y.py b/packages/python/plotly/plotly/validators/cone/lightposition/_y.py index 0a09973d3b0..ba200e27491 100644 --- a/packages/python/plotly/plotly/validators/cone/lightposition/_y.py +++ b/packages/python/plotly/plotly/validators/cone/lightposition/_y.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y", parent_name="cone.lightposition", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 100000), - min=kwargs.pop("min", -100000), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='cone.lightposition', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 100000), + min=kwargs.pop('min', -100000), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/lightposition/_z.py b/packages/python/plotly/plotly/validators/cone/lightposition/_z.py index 8798d2e718d..f9c0027f880 100644 --- a/packages/python/plotly/plotly/validators/cone/lightposition/_z.py +++ b/packages/python/plotly/plotly/validators/cone/lightposition/_z.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ZValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="z", parent_name="cone.lightposition", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 100000), - min=kwargs.pop("min", -100000), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.NumberValidator): + def __init__(self, plotly_name='z', + parent_name='cone.lightposition', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 100000), + min=kwargs.pop('min', -100000), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/stream/__init__.py b/packages/python/plotly/plotly/validators/cone/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/cone/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/cone/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/cone/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/cone/stream/_maxpoints.py index 8cee99162d1..6620e66396f 100644 --- a/packages/python/plotly/plotly/validators/cone/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/cone/stream/_maxpoints.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="maxpoints", parent_name="cone.stream", **kwargs): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='cone.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/cone/stream/_token.py b/packages/python/plotly/plotly/validators/cone/stream/_token.py index effbe3d8495..6a5b59391b6 100644 --- a/packages/python/plotly/plotly/validators/cone/stream/_token.py +++ b/packages/python/plotly/plotly/validators/cone/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="cone.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='cone.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/__init__.py b/packages/python/plotly/plotly/validators/contour/__init__.py index 23cad4b2bf3..6fdda085732 100644 --- a/packages/python/plotly/plotly/validators/contour/__init__.py +++ b/packages/python/plotly/plotly/validators/contour/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zsrc import ZsrcValidator from ._zorder import ZorderValidator @@ -77,83 +76,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zsrc.ZsrcValidator", - "._zorder.ZorderValidator", - "._zmin.ZminValidator", - "._zmid.ZmidValidator", - "._zmax.ZmaxValidator", - "._zhoverformat.ZhoverformatValidator", - "._zauto.ZautoValidator", - "._z.ZValidator", - "._ytype.YtypeValidator", - "._ysrc.YsrcValidator", - "._yperiodalignment.YperiodalignmentValidator", - "._yperiod0.Yperiod0Validator", - "._yperiod.YperiodValidator", - "._yhoverformat.YhoverformatValidator", - "._ycalendar.YcalendarValidator", - "._yaxis.YaxisValidator", - "._y0.Y0Validator", - "._y.YValidator", - "._xtype.XtypeValidator", - "._xsrc.XsrcValidator", - "._xperiodalignment.XperiodalignmentValidator", - "._xperiod0.Xperiod0Validator", - "._xperiod.XperiodValidator", - "._xhoverformat.XhoverformatValidator", - "._xcalendar.XcalendarValidator", - "._xaxis.XaxisValidator", - "._x0.X0Validator", - "._x.XValidator", - "._visible.VisibleValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._transpose.TransposeValidator", - "._texttemplate.TexttemplateValidator", - "._textsrc.TextsrcValidator", - "._textfont.TextfontValidator", - "._text.TextValidator", - "._stream.StreamValidator", - "._showscale.ShowscaleValidator", - "._showlegend.ShowlegendValidator", - "._reversescale.ReversescaleValidator", - "._opacity.OpacityValidator", - "._ncontours.NcontoursValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._line.LineValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverongaps.HoverongapsValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._fillcolor.FillcolorValidator", - "._dy.DyValidator", - "._dx.DxValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._contours.ContoursValidator", - "._connectgaps.ConnectgapsValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._autocontour.AutocontourValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._zsrc.ZsrcValidator', '._zorder.ZorderValidator', '._zmin.ZminValidator', '._zmid.ZmidValidator', '._zmax.ZmaxValidator', '._zhoverformat.ZhoverformatValidator', '._zauto.ZautoValidator', '._z.ZValidator', '._ytype.YtypeValidator', '._ysrc.YsrcValidator', '._yperiodalignment.YperiodalignmentValidator', '._yperiod0.Yperiod0Validator', '._yperiod.YperiodValidator', '._yhoverformat.YhoverformatValidator', '._ycalendar.YcalendarValidator', '._yaxis.YaxisValidator', '._y0.Y0Validator', '._y.YValidator', '._xtype.XtypeValidator', '._xsrc.XsrcValidator', '._xperiodalignment.XperiodalignmentValidator', '._xperiod0.Xperiod0Validator', '._xperiod.XperiodValidator', '._xhoverformat.XhoverformatValidator', '._xcalendar.XcalendarValidator', '._xaxis.XaxisValidator', '._x0.X0Validator', '._x.XValidator', '._visible.VisibleValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._transpose.TransposeValidator', '._texttemplate.TexttemplateValidator', '._textsrc.TextsrcValidator', '._textfont.TextfontValidator', '._text.TextValidator', '._stream.StreamValidator', '._showscale.ShowscaleValidator', '._showlegend.ShowlegendValidator', '._reversescale.ReversescaleValidator', '._opacity.OpacityValidator', '._ncontours.NcontoursValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._line.LineValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverongaps.HoverongapsValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._fillcolor.FillcolorValidator', '._dy.DyValidator', '._dx.DxValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._contours.ContoursValidator', '._connectgaps.ConnectgapsValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._autocontour.AutocontourValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/contour/_autocolorscale.py b/packages/python/plotly/plotly/validators/contour/_autocolorscale.py index 1cb777393ac..f451c731050 100644 --- a/packages/python/plotly/plotly/validators/contour/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/contour/_autocolorscale.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="autocolorscale", parent_name="contour", **kwargs): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='contour', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_autocontour.py b/packages/python/plotly/plotly/validators/contour/_autocontour.py index e350a10b9a4..a4cf537baf0 100644 --- a/packages/python/plotly/plotly/validators/contour/_autocontour.py +++ b/packages/python/plotly/plotly/validators/contour/_autocontour.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocontourValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="autocontour", parent_name="contour", **kwargs): - super(AutocontourValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocontourValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocontour', + parent_name='contour', + **kwargs): + super(AutocontourValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_coloraxis.py b/packages/python/plotly/plotly/validators/contour/_coloraxis.py index 420af58bf00..ea45f789796 100644 --- a/packages/python/plotly/plotly/validators/contour/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/contour/_coloraxis.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="coloraxis", parent_name="contour", **kwargs): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='contour', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_colorbar.py b/packages/python/plotly/plotly/validators/contour/_colorbar.py index cab84776324..a501820435c 100644 --- a/packages/python/plotly/plotly/validators/contour/_colorbar.py +++ b/packages/python/plotly/plotly/validators/contour/_colorbar.py @@ -1,279 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="colorbar", parent_name="contour", **kwargs): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.contour - .colorbar.Tickformatstop` instances or dicts - with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.contour.colorbar.tickformatstopdefaults), - sets the default property values to use for - elements of contour.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.contour.colorbar.T - itle` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='contour', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_colorscale.py b/packages/python/plotly/plotly/validators/contour/_colorscale.py index f5077198952..e85df41576b 100644 --- a/packages/python/plotly/plotly/validators/contour/_colorscale.py +++ b/packages/python/plotly/plotly/validators/contour/_colorscale.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__(self, plotly_name="colorscale", parent_name="contour", **kwargs): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='contour', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_connectgaps.py b/packages/python/plotly/plotly/validators/contour/_connectgaps.py index 96a4520d598..7eab77026ec 100644 --- a/packages/python/plotly/plotly/validators/contour/_connectgaps.py +++ b/packages/python/plotly/plotly/validators/contour/_connectgaps.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="connectgaps", parent_name="contour", **kwargs): - super(ConnectgapsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ConnectgapsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='connectgaps', + parent_name='contour', + **kwargs): + super(ConnectgapsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_contours.py b/packages/python/plotly/plotly/validators/contour/_contours.py index 7171016089a..5bfffaa15f0 100644 --- a/packages/python/plotly/plotly/validators/contour/_contours.py +++ b/packages/python/plotly/plotly/validators/contour/_contours.py @@ -1,79 +1,15 @@ -import _plotly_utils.basevalidators -class ContoursValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="contours", parent_name="contour", **kwargs): - super(ContoursValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Contours"), - data_docs=kwargs.pop( - "data_docs", - """ - coloring - Determines the coloring method showing the - contour values. If "fill", coloring is done - evenly between each contour level If "heatmap", - a heatmap gradient coloring is applied between - each contour level. If "lines", coloring is - done on the contour lines. If "none", no - coloring is applied on this trace. - end - Sets the end contour level value. Must be more - than `contours.start` - labelfont - Sets the font used for labeling the contour - levels. The default color comes from the lines, - if shown. The default family and size come from - `layout.font`. - labelformat - Sets the contour label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. - operation - Sets the constraint operation. "=" keeps - regions equal to `value` "<" and "<=" keep - regions less than `value` ">" and ">=" keep - regions greater than `value` "[]", "()", "[)", - and "(]" keep regions inside `value[0]` to - `value[1]` "][", ")(", "](", ")[" keep regions - outside `value[0]` to value[1]` Open vs. closed - intervals make no difference to constraint - display, but all versions are allowed for - consistency with filter transforms. - showlabels - Determines whether to label the contour lines - with their values. - showlines - Determines whether or not the contour lines are - drawn. Has an effect only if - `contours.coloring` is set to "fill". - size - Sets the step between each contour level. Must - be positive. - start - Sets the starting contour level value. Must be - less than `contours.end` - type - If `levels`, the data is represented as a - contour plot with multiple levels displayed. If - `constraint`, the data is represented as - constraints with the invalid region shaded as - specified by the `operation` and `value` - parameters. - value - Sets the value or values of the constraint - boundary. When `operation` is set to one of the - comparison values (=,<,>=,>,<=) "value" is - expected to be a number. When `operation` is - set to one of the interval values - ([],(),[),(],][,)(,](,)[) "value" is expected - to be an array of two numbers where the first - is the lower bound and the second is the upper - bound. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ContoursValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='contours', + parent_name='contour', + **kwargs): + super(ContoursValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Contours'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_customdata.py b/packages/python/plotly/plotly/validators/contour/_customdata.py index 1947da3af67..bb799d520b6 100644 --- a/packages/python/plotly/plotly/validators/contour/_customdata.py +++ b/packages/python/plotly/plotly/validators/contour/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="contour", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='contour', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_customdatasrc.py b/packages/python/plotly/plotly/validators/contour/_customdatasrc.py index 527b97972de..47d9de69de4 100644 --- a/packages/python/plotly/plotly/validators/contour/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/contour/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="contour", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='contour', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_dx.py b/packages/python/plotly/plotly/validators/contour/_dx.py index 4aeaae33535..6068d3f116d 100644 --- a/packages/python/plotly/plotly/validators/contour/_dx.py +++ b/packages/python/plotly/plotly/validators/contour/_dx.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class DxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="dx", parent_name="contour", **kwargs): - super(DxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"xtype": "scaled"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dx', + parent_name='contour', + **kwargs): + super(DxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'xtype': 'scaled'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_dy.py b/packages/python/plotly/plotly/validators/contour/_dy.py index 777d0933108..9bbae1d41f0 100644 --- a/packages/python/plotly/plotly/validators/contour/_dy.py +++ b/packages/python/plotly/plotly/validators/contour/_dy.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class DyValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="dy", parent_name="contour", **kwargs): - super(DyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"ytype": "scaled"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DyValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dy', + parent_name='contour', + **kwargs): + super(DyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'ytype': 'scaled'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_fillcolor.py b/packages/python/plotly/plotly/validators/contour/_fillcolor.py index 140afdba729..b944622802c 100644 --- a/packages/python/plotly/plotly/validators/contour/_fillcolor.py +++ b/packages/python/plotly/plotly/validators/contour/_fillcolor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="fillcolor", parent_name="contour", **kwargs): - super(FillcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - colorscale_path=kwargs.pop("colorscale_path", "contour.colorscale"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fillcolor', + parent_name='contour', + **kwargs): + super(FillcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + colorscale_path=kwargs.pop('colorscale_path', 'contour.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_hoverinfo.py b/packages/python/plotly/plotly/validators/contour/_hoverinfo.py index 86a56e0bb76..da5961c849a 100644 --- a/packages/python/plotly/plotly/validators/contour/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/contour/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="contour", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='contour', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/contour/_hoverinfosrc.py index 2e607565e9d..52b0b08316a 100644 --- a/packages/python/plotly/plotly/validators/contour/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/contour/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="contour", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='contour', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_hoverlabel.py b/packages/python/plotly/plotly/validators/contour/_hoverlabel.py index 09aa0139062..03868647e0b 100644 --- a/packages/python/plotly/plotly/validators/contour/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/contour/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="contour", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='contour', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_hoverongaps.py b/packages/python/plotly/plotly/validators/contour/_hoverongaps.py index 78bfd062439..ffe34ff7bdb 100644 --- a/packages/python/plotly/plotly/validators/contour/_hoverongaps.py +++ b/packages/python/plotly/plotly/validators/contour/_hoverongaps.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverongapsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="hoverongaps", parent_name="contour", **kwargs): - super(HoverongapsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverongapsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='hoverongaps', + parent_name='contour', + **kwargs): + super(HoverongapsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_hovertemplate.py b/packages/python/plotly/plotly/validators/contour/_hovertemplate.py index d756ca1cad6..32ab509a45d 100644 --- a/packages/python/plotly/plotly/validators/contour/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/contour/_hovertemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="contour", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='contour', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/contour/_hovertemplatesrc.py index c4cc56de80a..736e4dfa8fa 100644 --- a/packages/python/plotly/plotly/validators/contour/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/contour/_hovertemplatesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertemplatesrc", parent_name="contour", **kwargs): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='contour', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_hovertext.py b/packages/python/plotly/plotly/validators/contour/_hovertext.py index 98cfdc31871..7b7481d6a0f 100644 --- a/packages/python/plotly/plotly/validators/contour/_hovertext.py +++ b/packages/python/plotly/plotly/validators/contour/_hovertext.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="hovertext", parent_name="contour", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='hovertext', + parent_name='contour', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_hovertextsrc.py b/packages/python/plotly/plotly/validators/contour/_hovertextsrc.py index 43e665d354b..9c3ebc8ede9 100644 --- a/packages/python/plotly/plotly/validators/contour/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/contour/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="contour", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='contour', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_ids.py b/packages/python/plotly/plotly/validators/contour/_ids.py index 66c18871f20..c969478471e 100644 --- a/packages/python/plotly/plotly/validators/contour/_ids.py +++ b/packages/python/plotly/plotly/validators/contour/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="contour", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='contour', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_idssrc.py b/packages/python/plotly/plotly/validators/contour/_idssrc.py index c1b35a13d4f..4ee7201ba61 100644 --- a/packages/python/plotly/plotly/validators/contour/_idssrc.py +++ b/packages/python/plotly/plotly/validators/contour/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="contour", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='contour', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_legend.py b/packages/python/plotly/plotly/validators/contour/_legend.py index 83c24849617..277a10e5dcc 100644 --- a/packages/python/plotly/plotly/validators/contour/_legend.py +++ b/packages/python/plotly/plotly/validators/contour/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="contour", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='contour', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_legendgroup.py b/packages/python/plotly/plotly/validators/contour/_legendgroup.py index 51690bbb5da..a7003f0fda6 100644 --- a/packages/python/plotly/plotly/validators/contour/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/contour/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="contour", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='contour', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/contour/_legendgrouptitle.py index 8a5353fc4ef..c7a2fbf8385 100644 --- a/packages/python/plotly/plotly/validators/contour/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/contour/_legendgrouptitle.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="legendgrouptitle", parent_name="contour", **kwargs): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='contour', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_legendrank.py b/packages/python/plotly/plotly/validators/contour/_legendrank.py index 6711ed59760..42e82ab8633 100644 --- a/packages/python/plotly/plotly/validators/contour/_legendrank.py +++ b/packages/python/plotly/plotly/validators/contour/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="contour", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='contour', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_legendwidth.py b/packages/python/plotly/plotly/validators/contour/_legendwidth.py index f46e609e6a1..661fd1a7fab 100644 --- a/packages/python/plotly/plotly/validators/contour/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/contour/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="contour", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='contour', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_line.py b/packages/python/plotly/plotly/validators/contour/_line.py index c7dbbb7a641..b00b27d25e9 100644 --- a/packages/python/plotly/plotly/validators/contour/_line.py +++ b/packages/python/plotly/plotly/validators/contour/_line.py @@ -1,33 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="contour", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the color of the contour level. Has no - effect if `contours.coloring` is set to - "lines". - dash - 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"). - smoothing - Sets the amount of smoothing for the contour - lines, where 0 corresponds to no smoothing. - width - Sets the contour line width in (in px) Defaults - to 0.5 when `contours.type` is "levels". - Defaults to 2 when `contour.type` is - "constraint". -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='contour', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_meta.py b/packages/python/plotly/plotly/validators/contour/_meta.py index 099ddb2ff66..0d69048d0e1 100644 --- a/packages/python/plotly/plotly/validators/contour/_meta.py +++ b/packages/python/plotly/plotly/validators/contour/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="contour", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='contour', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_metasrc.py b/packages/python/plotly/plotly/validators/contour/_metasrc.py index 8d304a07ba3..7e7ae833e74 100644 --- a/packages/python/plotly/plotly/validators/contour/_metasrc.py +++ b/packages/python/plotly/plotly/validators/contour/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="contour", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='contour', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_name.py b/packages/python/plotly/plotly/validators/contour/_name.py index e63bf63d159..9004422a09d 100644 --- a/packages/python/plotly/plotly/validators/contour/_name.py +++ b/packages/python/plotly/plotly/validators/contour/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="contour", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='contour', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_ncontours.py b/packages/python/plotly/plotly/validators/contour/_ncontours.py index d5ab9bcb076..e9644e22afc 100644 --- a/packages/python/plotly/plotly/validators/contour/_ncontours.py +++ b/packages/python/plotly/plotly/validators/contour/_ncontours.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class NcontoursValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="ncontours", parent_name="contour", **kwargs): - super(NcontoursValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NcontoursValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ncontours', + parent_name='contour', + **kwargs): + super(NcontoursValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_opacity.py b/packages/python/plotly/plotly/validators/contour/_opacity.py index 17c0c3aee5a..9d75d90b0e8 100644 --- a/packages/python/plotly/plotly/validators/contour/_opacity.py +++ b/packages/python/plotly/plotly/validators/contour/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="contour", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='contour', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_reversescale.py b/packages/python/plotly/plotly/validators/contour/_reversescale.py index c6581da732f..70ed8b88aa4 100644 --- a/packages/python/plotly/plotly/validators/contour/_reversescale.py +++ b/packages/python/plotly/plotly/validators/contour/_reversescale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="reversescale", parent_name="contour", **kwargs): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='contour', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_showlegend.py b/packages/python/plotly/plotly/validators/contour/_showlegend.py index 196a29fa773..c3ca33ff330 100644 --- a/packages/python/plotly/plotly/validators/contour/_showlegend.py +++ b/packages/python/plotly/plotly/validators/contour/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="contour", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='contour', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_showscale.py b/packages/python/plotly/plotly/validators/contour/_showscale.py index c3a7cd5e7bd..f5d02279901 100644 --- a/packages/python/plotly/plotly/validators/contour/_showscale.py +++ b/packages/python/plotly/plotly/validators/contour/_showscale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showscale", parent_name="contour", **kwargs): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='contour', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_stream.py b/packages/python/plotly/plotly/validators/contour/_stream.py index 5500337ec50..d8005c94d18 100644 --- a/packages/python/plotly/plotly/validators/contour/_stream.py +++ b/packages/python/plotly/plotly/validators/contour/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="contour", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='contour', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_text.py b/packages/python/plotly/plotly/validators/contour/_text.py index 20d0400c3ab..fa7dbb0b63c 100644 --- a/packages/python/plotly/plotly/validators/contour/_text.py +++ b/packages/python/plotly/plotly/validators/contour/_text.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="text", parent_name="contour", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='text', + parent_name='contour', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_textfont.py b/packages/python/plotly/plotly/validators/contour/_textfont.py index efb0de5f6b4..852fc110d20 100644 --- a/packages/python/plotly/plotly/validators/contour/_textfont.py +++ b/packages/python/plotly/plotly/validators/contour/_textfont.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="textfont", parent_name="contour", **kwargs): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='contour', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_textsrc.py b/packages/python/plotly/plotly/validators/contour/_textsrc.py index d829326fa27..0d0bd766234 100644 --- a/packages/python/plotly/plotly/validators/contour/_textsrc.py +++ b/packages/python/plotly/plotly/validators/contour/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="contour", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='contour', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_texttemplate.py b/packages/python/plotly/plotly/validators/contour/_texttemplate.py index e1bc5d13025..f4d7b3f6f91 100644 --- a/packages/python/plotly/plotly/validators/contour/_texttemplate.py +++ b/packages/python/plotly/plotly/validators/contour/_texttemplate.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="texttemplate", parent_name="contour", **kwargs): - super(TexttemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TexttemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='texttemplate', + parent_name='contour', + **kwargs): + super(TexttemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_transpose.py b/packages/python/plotly/plotly/validators/contour/_transpose.py index 6e8205cc0d1..121d6d9e3a4 100644 --- a/packages/python/plotly/plotly/validators/contour/_transpose.py +++ b/packages/python/plotly/plotly/validators/contour/_transpose.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TransposeValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="transpose", parent_name="contour", **kwargs): - super(TransposeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TransposeValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='transpose', + parent_name='contour', + **kwargs): + super(TransposeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_uid.py b/packages/python/plotly/plotly/validators/contour/_uid.py index 2a4796ed66a..80b0f0ec70e 100644 --- a/packages/python/plotly/plotly/validators/contour/_uid.py +++ b/packages/python/plotly/plotly/validators/contour/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="contour", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='contour', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_uirevision.py b/packages/python/plotly/plotly/validators/contour/_uirevision.py index ed006a7fc53..1d76cbfb01a 100644 --- a/packages/python/plotly/plotly/validators/contour/_uirevision.py +++ b/packages/python/plotly/plotly/validators/contour/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="contour", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='contour', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_visible.py b/packages/python/plotly/plotly/validators/contour/_visible.py index 0df9c93d61d..4febae77674 100644 --- a/packages/python/plotly/plotly/validators/contour/_visible.py +++ b/packages/python/plotly/plotly/validators/contour/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="contour", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='contour', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_x.py b/packages/python/plotly/plotly/validators/contour/_x.py index 81d723ee864..f2b0e2ce158 100644 --- a/packages/python/plotly/plotly/validators/contour/_x.py +++ b/packages/python/plotly/plotly/validators/contour/_x.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="x", parent_name="contour", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - implied_edits=kwargs.pop("implied_edits", {"xtype": "array"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='x', + parent_name='contour', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + implied_edits=kwargs.pop('implied_edits', {'xtype': 'array'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_x0.py b/packages/python/plotly/plotly/validators/contour/_x0.py index c26910c0b80..a2a2bc21c6a 100644 --- a/packages/python/plotly/plotly/validators/contour/_x0.py +++ b/packages/python/plotly/plotly/validators/contour/_x0.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class X0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="x0", parent_name="contour", **kwargs): - super(X0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - implied_edits=kwargs.pop("implied_edits", {"xtype": "scaled"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class X0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='x0', + parent_name='contour', + **kwargs): + super(X0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + implied_edits=kwargs.pop('implied_edits', {'xtype': 'scaled'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_xaxis.py b/packages/python/plotly/plotly/validators/contour/_xaxis.py index 87546e8b8d1..42b82ece2d6 100644 --- a/packages/python/plotly/plotly/validators/contour/_xaxis.py +++ b/packages/python/plotly/plotly/validators/contour/_xaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="xaxis", parent_name="contour", **kwargs): - super(XaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "x"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='xaxis', + parent_name='contour', + **kwargs): + super(XaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'x'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_xcalendar.py b/packages/python/plotly/plotly/validators/contour/_xcalendar.py index aef1d400472..0fcb03d640c 100644 --- a/packages/python/plotly/plotly/validators/contour/_xcalendar.py +++ b/packages/python/plotly/plotly/validators/contour/_xcalendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xcalendar", parent_name="contour", **kwargs): - super(XcalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XcalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xcalendar', + parent_name='contour', + **kwargs): + super(XcalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_xhoverformat.py b/packages/python/plotly/plotly/validators/contour/_xhoverformat.py index f11f561fc59..4e6e410ffcc 100644 --- a/packages/python/plotly/plotly/validators/contour/_xhoverformat.py +++ b/packages/python/plotly/plotly/validators/contour/_xhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="xhoverformat", parent_name="contour", **kwargs): - super(XhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='xhoverformat', + parent_name='contour', + **kwargs): + super(XhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_xperiod.py b/packages/python/plotly/plotly/validators/contour/_xperiod.py index e8e280e16cd..3a75328bcdf 100644 --- a/packages/python/plotly/plotly/validators/contour/_xperiod.py +++ b/packages/python/plotly/plotly/validators/contour/_xperiod.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XperiodValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="xperiod", parent_name="contour", **kwargs): - super(XperiodValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"xtype": "scaled"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XperiodValidator(_bv.AnyValidator): + def __init__(self, plotly_name='xperiod', + parent_name='contour', + **kwargs): + super(XperiodValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'xtype': 'scaled'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_xperiod0.py b/packages/python/plotly/plotly/validators/contour/_xperiod0.py index d5feeaf8d99..7f1e3011a3b 100644 --- a/packages/python/plotly/plotly/validators/contour/_xperiod0.py +++ b/packages/python/plotly/plotly/validators/contour/_xperiod0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Xperiod0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="xperiod0", parent_name="contour", **kwargs): - super(Xperiod0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Xperiod0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='xperiod0', + parent_name='contour', + **kwargs): + super(Xperiod0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_xperiodalignment.py b/packages/python/plotly/plotly/validators/contour/_xperiodalignment.py index eb42d538616..82bc8d2f10a 100644 --- a/packages/python/plotly/plotly/validators/contour/_xperiodalignment.py +++ b/packages/python/plotly/plotly/validators/contour/_xperiodalignment.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class XperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xperiodalignment", parent_name="contour", **kwargs): - super(XperiodalignmentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"xtype": "scaled"}), - values=kwargs.pop("values", ["start", "middle", "end"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XperiodalignmentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xperiodalignment', + parent_name='contour', + **kwargs): + super(XperiodalignmentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'xtype': 'scaled'}), + values=kwargs.pop('values', ['start', 'middle', 'end']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_xsrc.py b/packages/python/plotly/plotly/validators/contour/_xsrc.py index c3e3e736f02..2fc717ce178 100644 --- a/packages/python/plotly/plotly/validators/contour/_xsrc.py +++ b/packages/python/plotly/plotly/validators/contour/_xsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="xsrc", parent_name="contour", **kwargs): - super(XsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='xsrc', + parent_name='contour', + **kwargs): + super(XsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_xtype.py b/packages/python/plotly/plotly/validators/contour/_xtype.py index e7fe7fff169..171292fc68a 100644 --- a/packages/python/plotly/plotly/validators/contour/_xtype.py +++ b/packages/python/plotly/plotly/validators/contour/_xtype.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XtypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xtype", parent_name="contour", **kwargs): - super(XtypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - values=kwargs.pop("values", ["array", "scaled"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XtypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xtype', + parent_name='contour', + **kwargs): + super(XtypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + values=kwargs.pop('values', ['array', 'scaled']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_y.py b/packages/python/plotly/plotly/validators/contour/_y.py index 8dafa69a0bf..2484051a264 100644 --- a/packages/python/plotly/plotly/validators/contour/_y.py +++ b/packages/python/plotly/plotly/validators/contour/_y.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="y", parent_name="contour", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - implied_edits=kwargs.pop("implied_edits", {"ytype": "array"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='y', + parent_name='contour', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + implied_edits=kwargs.pop('implied_edits', {'ytype': 'array'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_y0.py b/packages/python/plotly/plotly/validators/contour/_y0.py index 22c0250cf0c..fbc272fab14 100644 --- a/packages/python/plotly/plotly/validators/contour/_y0.py +++ b/packages/python/plotly/plotly/validators/contour/_y0.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class Y0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="y0", parent_name="contour", **kwargs): - super(Y0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - implied_edits=kwargs.pop("implied_edits", {"ytype": "scaled"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Y0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='y0', + parent_name='contour', + **kwargs): + super(Y0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + implied_edits=kwargs.pop('implied_edits', {'ytype': 'scaled'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_yaxis.py b/packages/python/plotly/plotly/validators/contour/_yaxis.py index c5d5bf40f21..1d429552c5c 100644 --- a/packages/python/plotly/plotly/validators/contour/_yaxis.py +++ b/packages/python/plotly/plotly/validators/contour/_yaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="yaxis", parent_name="contour", **kwargs): - super(YaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "y"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='yaxis', + parent_name='contour', + **kwargs): + super(YaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'y'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_ycalendar.py b/packages/python/plotly/plotly/validators/contour/_ycalendar.py index 2e89b1e691b..9126a872346 100644 --- a/packages/python/plotly/plotly/validators/contour/_ycalendar.py +++ b/packages/python/plotly/plotly/validators/contour/_ycalendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="ycalendar", parent_name="contour", **kwargs): - super(YcalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YcalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ycalendar', + parent_name='contour', + **kwargs): + super(YcalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_yhoverformat.py b/packages/python/plotly/plotly/validators/contour/_yhoverformat.py index 67b279c9b80..7f6236dd368 100644 --- a/packages/python/plotly/plotly/validators/contour/_yhoverformat.py +++ b/packages/python/plotly/plotly/validators/contour/_yhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="yhoverformat", parent_name="contour", **kwargs): - super(YhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='yhoverformat', + parent_name='contour', + **kwargs): + super(YhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_yperiod.py b/packages/python/plotly/plotly/validators/contour/_yperiod.py index 2b1562efb7a..1264ace91bd 100644 --- a/packages/python/plotly/plotly/validators/contour/_yperiod.py +++ b/packages/python/plotly/plotly/validators/contour/_yperiod.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YperiodValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="yperiod", parent_name="contour", **kwargs): - super(YperiodValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"ytype": "scaled"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YperiodValidator(_bv.AnyValidator): + def __init__(self, plotly_name='yperiod', + parent_name='contour', + **kwargs): + super(YperiodValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'ytype': 'scaled'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_yperiod0.py b/packages/python/plotly/plotly/validators/contour/_yperiod0.py index 07196dd168c..c398f7b3bbb 100644 --- a/packages/python/plotly/plotly/validators/contour/_yperiod0.py +++ b/packages/python/plotly/plotly/validators/contour/_yperiod0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Yperiod0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="yperiod0", parent_name="contour", **kwargs): - super(Yperiod0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Yperiod0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='yperiod0', + parent_name='contour', + **kwargs): + super(Yperiod0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_yperiodalignment.py b/packages/python/plotly/plotly/validators/contour/_yperiodalignment.py index 4b9b05c842a..3581addc3ce 100644 --- a/packages/python/plotly/plotly/validators/contour/_yperiodalignment.py +++ b/packages/python/plotly/plotly/validators/contour/_yperiodalignment.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class YperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yperiodalignment", parent_name="contour", **kwargs): - super(YperiodalignmentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"ytype": "scaled"}), - values=kwargs.pop("values", ["start", "middle", "end"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YperiodalignmentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yperiodalignment', + parent_name='contour', + **kwargs): + super(YperiodalignmentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'ytype': 'scaled'}), + values=kwargs.pop('values', ['start', 'middle', 'end']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_ysrc.py b/packages/python/plotly/plotly/validators/contour/_ysrc.py index 30d4f684980..36ac465f700 100644 --- a/packages/python/plotly/plotly/validators/contour/_ysrc.py +++ b/packages/python/plotly/plotly/validators/contour/_ysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="ysrc", parent_name="contour", **kwargs): - super(YsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ysrc', + parent_name='contour', + **kwargs): + super(YsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_ytype.py b/packages/python/plotly/plotly/validators/contour/_ytype.py index 5814a57ee90..d33875fced3 100644 --- a/packages/python/plotly/plotly/validators/contour/_ytype.py +++ b/packages/python/plotly/plotly/validators/contour/_ytype.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YtypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="ytype", parent_name="contour", **kwargs): - super(YtypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - values=kwargs.pop("values", ["array", "scaled"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YtypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ytype', + parent_name='contour', + **kwargs): + super(YtypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + values=kwargs.pop('values', ['array', 'scaled']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_z.py b/packages/python/plotly/plotly/validators/contour/_z.py index e48921dc635..6a35c19da2e 100644 --- a/packages/python/plotly/plotly/validators/contour/_z.py +++ b/packages/python/plotly/plotly/validators/contour/_z.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="z", parent_name="contour", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='z', + parent_name='contour', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_zauto.py b/packages/python/plotly/plotly/validators/contour/_zauto.py index fe6f3ccadc9..499bcaa10e9 100644 --- a/packages/python/plotly/plotly/validators/contour/_zauto.py +++ b/packages/python/plotly/plotly/validators/contour/_zauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="zauto", parent_name="contour", **kwargs): - super(ZautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='zauto', + parent_name='contour', + **kwargs): + super(ZautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_zhoverformat.py b/packages/python/plotly/plotly/validators/contour/_zhoverformat.py index 5c9fe29236f..e0a9dd484e9 100644 --- a/packages/python/plotly/plotly/validators/contour/_zhoverformat.py +++ b/packages/python/plotly/plotly/validators/contour/_zhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="zhoverformat", parent_name="contour", **kwargs): - super(ZhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='zhoverformat', + parent_name='contour', + **kwargs): + super(ZhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_zmax.py b/packages/python/plotly/plotly/validators/contour/_zmax.py index ffe267c85a4..747a17443d4 100644 --- a/packages/python/plotly/plotly/validators/contour/_zmax.py +++ b/packages/python/plotly/plotly/validators/contour/_zmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmax", parent_name="contour", **kwargs): - super(ZmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"zauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmax', + parent_name='contour', + **kwargs): + super(ZmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'zauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_zmid.py b/packages/python/plotly/plotly/validators/contour/_zmid.py index 106c7413276..8578e6aa4c4 100644 --- a/packages/python/plotly/plotly/validators/contour/_zmid.py +++ b/packages/python/plotly/plotly/validators/contour/_zmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmid", parent_name="contour", **kwargs): - super(ZmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmid', + parent_name='contour', + **kwargs): + super(ZmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_zmin.py b/packages/python/plotly/plotly/validators/contour/_zmin.py index bb41915fcdb..9216e8afb7f 100644 --- a/packages/python/plotly/plotly/validators/contour/_zmin.py +++ b/packages/python/plotly/plotly/validators/contour/_zmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmin", parent_name="contour", **kwargs): - super(ZminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"zauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmin', + parent_name='contour', + **kwargs): + super(ZminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'zauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_zorder.py b/packages/python/plotly/plotly/validators/contour/_zorder.py index d6fc9618218..72da3b9303a 100644 --- a/packages/python/plotly/plotly/validators/contour/_zorder.py +++ b/packages/python/plotly/plotly/validators/contour/_zorder.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="zorder", parent_name="contour", **kwargs): - super(ZorderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZorderValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='zorder', + parent_name='contour', + **kwargs): + super(ZorderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/_zsrc.py b/packages/python/plotly/plotly/validators/contour/_zsrc.py index 5b411451e3f..1f374e47d51 100644 --- a/packages/python/plotly/plotly/validators/contour/_zsrc.py +++ b/packages/python/plotly/plotly/validators/contour/_zsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="zsrc", parent_name="contour", **kwargs): - super(ZsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='zsrc', + parent_name='contour', + **kwargs): + super(ZsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/__init__.py b/packages/python/plotly/plotly/validators/contour/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/contour/colorbar/_bgcolor.py index 4ff5b75d63e..557e3b21bb4 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_bgcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="bgcolor", parent_name="contour.colorbar", **kwargs): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='contour.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/contour/colorbar/_bordercolor.py index bd1b8df9f97..0ba5764277e 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="contour.colorbar", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='contour.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/contour/colorbar/_borderwidth.py index 650329372af..11b70540b6c 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_borderwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderwidth", parent_name="contour.colorbar", **kwargs - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='contour.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/contour/colorbar/_dtick.py index e218c513785..4b7e550e325 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_dtick.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="dtick", parent_name="contour.colorbar", **kwargs): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='contour.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/contour/colorbar/_exponentformat.py index 12dc4580630..0d0d5319811 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_exponentformat.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="exponentformat", parent_name="contour.colorbar", **kwargs - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='contour.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/contour/colorbar/_labelalias.py index 4256b620211..dfe6bd6b076 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="contour.colorbar", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='contour.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_len.py b/packages/python/plotly/plotly/validators/contour/colorbar/_len.py index 49818908bce..20818963465 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_len.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="len", parent_name="contour.colorbar", **kwargs): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='contour.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/contour/colorbar/_lenmode.py index fcc0f28c5e3..1a7f1bc8b37 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_lenmode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="lenmode", parent_name="contour.colorbar", **kwargs): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='contour.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/contour/colorbar/_minexponent.py index 4be592d32d6..165515bfbe6 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="contour.colorbar", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='contour.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/contour/colorbar/_nticks.py index e4af2c66656..0a29ddda5e7 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_nticks.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="nticks", parent_name="contour.colorbar", **kwargs): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='contour.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/contour/colorbar/_orientation.py index b76a564fac9..3d383c48679 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_orientation.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="orientation", parent_name="contour.colorbar", **kwargs - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='contour.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/contour/colorbar/_outlinecolor.py index 803cc63f1ac..a056fd04b6e 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_outlinecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="outlinecolor", parent_name="contour.colorbar", **kwargs - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='contour.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/contour/colorbar/_outlinewidth.py index 221eaaec1ad..762bfc2719a 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_outlinewidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="outlinewidth", parent_name="contour.colorbar", **kwargs - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='contour.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/contour/colorbar/_separatethousands.py index fdf0c4c6180..0462e399141 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_separatethousands.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="separatethousands", parent_name="contour.colorbar", **kwargs - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='contour.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/contour/colorbar/_showexponent.py index 797d4d9248d..a92fabc2f6b 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="contour.colorbar", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='contour.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/contour/colorbar/_showticklabels.py index 1870a2b3c66..f00b8c06952 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_showticklabels.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showticklabels", parent_name="contour.colorbar", **kwargs - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='contour.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/contour/colorbar/_showtickprefix.py index 1d9c8877f98..8569a2ee367 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_showtickprefix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showtickprefix", parent_name="contour.colorbar", **kwargs - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='contour.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/contour/colorbar/_showticksuffix.py index 868d7816a87..3a650c19105 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_showticksuffix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showticksuffix", parent_name="contour.colorbar", **kwargs - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='contour.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/contour/colorbar/_thickness.py index 714d1fe650c..36fb3025c74 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="contour.colorbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='contour.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/contour/colorbar/_thicknessmode.py index 82ed54bf143..29988f91ed8 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_thicknessmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="thicknessmode", parent_name="contour.colorbar", **kwargs - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='contour.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/contour/colorbar/_tick0.py index 63689b09998..7717aba8cb3 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_tick0.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="tick0", parent_name="contour.colorbar", **kwargs): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='contour.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/contour/colorbar/_tickangle.py index 34a2d4cbfd4..26822f13aaf 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="contour.colorbar", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='contour.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/contour/colorbar/_tickcolor.py index cdb01942062..060238704d5 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="contour.colorbar", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='contour.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/contour/colorbar/_tickfont.py index b14c60b87dd..ca606c4b756 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="contour.colorbar", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='contour.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/contour/colorbar/_tickformat.py index a40ecebf2aa..e36f99e4afd 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="contour.colorbar", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='contour.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/contour/colorbar/_tickformatstopdefaults.py index 63c88800e37..0b813f72465 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="contour.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='contour.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/contour/colorbar/_tickformatstops.py index cf3e26b5042..d01f5c05d11 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_tickformatstops.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="tickformatstops", parent_name="contour.colorbar", **kwargs - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='contour.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/contour/colorbar/_ticklabeloverflow.py index 791ecd374f0..18d8f921b93 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_ticklabeloverflow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticklabeloverflow", parent_name="contour.colorbar", **kwargs - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='contour.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/contour/colorbar/_ticklabelposition.py index a46bb1f367c..008613931ee 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_ticklabelposition.py @@ -1,28 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticklabelposition", parent_name="contour.colorbar", **kwargs - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='contour.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/contour/colorbar/_ticklabelstep.py index 5307e27ea26..427ffda0ec6 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_ticklabelstep.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="ticklabelstep", parent_name="contour.colorbar", **kwargs - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='contour.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/contour/colorbar/_ticklen.py index 6c58ed26acc..13d4b47e19b 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_ticklen.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="ticklen", parent_name="contour.colorbar", **kwargs): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='contour.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/contour/colorbar/_tickmode.py index ae1c534ad50..c237d0fc60b 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="contour.colorbar", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='contour.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/contour/colorbar/_tickprefix.py index adb0fd5ee8e..21aa3ff2184 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="contour.colorbar", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='contour.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/contour/colorbar/_ticks.py index 590cc07f81f..0687cc86ec1 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_ticks.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="ticks", parent_name="contour.colorbar", **kwargs): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='contour.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/contour/colorbar/_ticksuffix.py index 8fd31ffe09e..c2be2a757ba 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="contour.colorbar", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='contour.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/contour/colorbar/_ticktext.py index c544e96f49c..1abc1ea9e53 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="contour.colorbar", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='contour.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/contour/colorbar/_ticktextsrc.py index 7cb99e0ef8d..f6c2425ee2c 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="contour.colorbar", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='contour.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/contour/colorbar/_tickvals.py index f8879bbed2d..9424a0da0d8 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="contour.colorbar", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='contour.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/contour/colorbar/_tickvalssrc.py index dedf91edb60..dbf6580d8b4 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="contour.colorbar", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='contour.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/contour/colorbar/_tickwidth.py index 334eda22151..d321ccf3e49 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="contour.colorbar", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='contour.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_title.py b/packages/python/plotly/plotly/validators/contour/colorbar/_title.py index cae0cab743b..44085ac0ab9 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_title.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__(self, plotly_name="title", parent_name="contour.colorbar", **kwargs): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='contour.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_x.py b/packages/python/plotly/plotly/validators/contour/colorbar/_x.py index 0f90f06f599..c106d5d39f2 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x", parent_name="contour.colorbar", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='contour.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/contour/colorbar/_xanchor.py index 6110944ed4f..38edca1eb8e 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_xanchor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xanchor", parent_name="contour.colorbar", **kwargs): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='contour.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/contour/colorbar/_xpad.py index f319d6a55f4..add46da23df 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_xpad.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="xpad", parent_name="contour.colorbar", **kwargs): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='contour.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_xref.py b/packages/python/plotly/plotly/validators/contour/colorbar/_xref.py index 67439b019fd..fab5f7b58fc 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_xref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xref", parent_name="contour.colorbar", **kwargs): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='contour.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_y.py b/packages/python/plotly/plotly/validators/contour/colorbar/_y.py index 5b46f99b06c..47863b2b689 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y", parent_name="contour.colorbar", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='contour.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/contour/colorbar/_yanchor.py index f90780548de..2bc2944d93e 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_yanchor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yanchor", parent_name="contour.colorbar", **kwargs): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='contour.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/contour/colorbar/_ypad.py index a451e015534..29114c50882 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_ypad.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="ypad", parent_name="contour.colorbar", **kwargs): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='contour.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/_yref.py b/packages/python/plotly/plotly/validators/contour/colorbar/_yref.py index 138459baf69..4d692e2d299 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/_yref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yref", parent_name="contour.colorbar", **kwargs): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='contour.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_color.py index a009f0e59b8..0abcf1a1e11 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="contour.colorbar.tickfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='contour.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_family.py index 252abd6fda3..db03598a79c 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="contour.colorbar.tickfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='contour.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_lineposition.py index dc05c70d8a0..699c2a86dfc 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="contour.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='contour.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_shadow.py index 02f96f444e8..4ec46aad2a2 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="contour.colorbar.tickfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='contour.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_size.py index 4a4f6553f00..6c7b2be9c87 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="contour.colorbar.tickfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='contour.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_style.py index e9c699c84f6..82c19608e16 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="contour.colorbar.tickfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='contour.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_textcase.py index ea2405d0952..2d8703afa57 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="contour.colorbar.tickfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='contour.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_variant.py index 0573ab1be56..f4ac7b2e984 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="contour.colorbar.tickfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='contour.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_weight.py index e6ce1bcf8aa..8d87ba2e361 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="contour.colorbar.tickfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='contour.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/contour/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/contour/colorbar/tickformatstop/_dtickrange.py index e1bc16160fd..2ac3b495c3e 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="contour.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - items=kwargs.pop( - "items", - [ - {"editType": "colorbars", "valType": "any"}, - {"editType": "colorbars", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='contour.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + items=kwargs.pop('items', [{'editType': 'colorbars', 'valType': 'any'}, {'editType': 'colorbars', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/contour/colorbar/tickformatstop/_enabled.py index bdc7f520406..2e80898ffa3 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="contour.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='contour.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/contour/colorbar/tickformatstop/_name.py index 8fa6c671ab4..23e7d67683b 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="contour.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='contour.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/contour/colorbar/tickformatstop/_templateitemname.py index 0ad22763575..21d843d2683 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="contour.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='contour.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/contour/colorbar/tickformatstop/_value.py index cd2694801eb..28710ffacbd 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="contour.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='contour.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/contour/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/contour/colorbar/title/_font.py index 1ec7acef889..14031027388 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="contour.colorbar.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='contour.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/contour/colorbar/title/_side.py index dfc9a5a774e..b8fbb66f411 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/title/_side.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="side", parent_name="contour.colorbar.title", **kwargs - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='contour.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/contour/colorbar/title/_text.py index edbc184aaef..990335625c4 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="contour.colorbar.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='contour.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/contour/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_color.py index 6a2bd296c5a..d3a662c16db 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="contour.colorbar.title.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='contour.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_family.py index 9b298052722..3993da101c1 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="contour.colorbar.title.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='contour.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_lineposition.py index 0a0ac5c2dda..1eb9a6f2a2a 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="contour.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='contour.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_shadow.py index 67318cf1bc0..06f25b08bb7 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="contour.colorbar.title.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='contour.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_size.py index 8eac2866019..8fc6169cb14 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="contour.colorbar.title.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='contour.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_style.py index 1104b4d9c21..ec91b24b20e 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="contour.colorbar.title.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='contour.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_textcase.py index 98d04bfe7dc..88fe231def9 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="contour.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='contour.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_variant.py index bae3322109c..996b26e14dc 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="contour.colorbar.title.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='contour.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_weight.py index 5babb767e56..b7c44a58943 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/title/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="contour.colorbar.title.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='contour.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/contours/__init__.py b/packages/python/plotly/plotly/validators/contour/contours/__init__.py index 0650ad574bd..e7f6b949f93 100644 --- a/packages/python/plotly/plotly/validators/contour/contours/__init__.py +++ b/packages/python/plotly/plotly/validators/contour/contours/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._type import TypeValidator @@ -15,21 +14,10 @@ from ._coloring import ColoringValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._type.TypeValidator", - "._start.StartValidator", - "._size.SizeValidator", - "._showlines.ShowlinesValidator", - "._showlabels.ShowlabelsValidator", - "._operation.OperationValidator", - "._labelformat.LabelformatValidator", - "._labelfont.LabelfontValidator", - "._end.EndValidator", - "._coloring.ColoringValidator", - ], + ['._value.ValueValidator', '._type.TypeValidator', '._start.StartValidator', '._size.SizeValidator', '._showlines.ShowlinesValidator', '._showlabels.ShowlabelsValidator', '._operation.OperationValidator', '._labelformat.LabelformatValidator', '._labelfont.LabelfontValidator', '._end.EndValidator', '._coloring.ColoringValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/contour/contours/_coloring.py b/packages/python/plotly/plotly/validators/contour/contours/_coloring.py index 254052570d1..10a4f872daf 100644 --- a/packages/python/plotly/plotly/validators/contour/contours/_coloring.py +++ b/packages/python/plotly/plotly/validators/contour/contours/_coloring.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColoringValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="coloring", parent_name="contour.contours", **kwargs - ): - super(ColoringValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["fill", "heatmap", "lines", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoringValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='coloring', + parent_name='contour.contours', + **kwargs): + super(ColoringValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['fill', 'heatmap', 'lines', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/contours/_end.py b/packages/python/plotly/plotly/validators/contour/contours/_end.py index 00db7cee58a..a7c621f4997 100644 --- a/packages/python/plotly/plotly/validators/contour/contours/_end.py +++ b/packages/python/plotly/plotly/validators/contour/contours/_end.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class EndValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="end", parent_name="contour.contours", **kwargs): - super(EndValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"^autocontour": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class EndValidator(_bv.NumberValidator): + def __init__(self, plotly_name='end', + parent_name='contour.contours', + **kwargs): + super(EndValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'^autocontour': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/contours/_labelfont.py b/packages/python/plotly/plotly/validators/contour/contours/_labelfont.py index bae317ba884..3791362f077 100644 --- a/packages/python/plotly/plotly/validators/contour/contours/_labelfont.py +++ b/packages/python/plotly/plotly/validators/contour/contours/_labelfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class LabelfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="labelfont", parent_name="contour.contours", **kwargs - ): - super(LabelfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Labelfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class LabelfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='labelfont', + parent_name='contour.contours', + **kwargs): + super(LabelfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Labelfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/contours/_labelformat.py b/packages/python/plotly/plotly/validators/contour/contours/_labelformat.py index 62baa0432d7..bccf8442a42 100644 --- a/packages/python/plotly/plotly/validators/contour/contours/_labelformat.py +++ b/packages/python/plotly/plotly/validators/contour/contours/_labelformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="labelformat", parent_name="contour.contours", **kwargs - ): - super(LabelformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='labelformat', + parent_name='contour.contours', + **kwargs): + super(LabelformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/contours/_operation.py b/packages/python/plotly/plotly/validators/contour/contours/_operation.py index fe0fe4ea82a..3fae0e212b7 100644 --- a/packages/python/plotly/plotly/validators/contour/contours/_operation.py +++ b/packages/python/plotly/plotly/validators/contour/contours/_operation.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class OperationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="operation", parent_name="contour.contours", **kwargs - ): - super(OperationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "=", - "<", - ">=", - ">", - "<=", - "[]", - "()", - "[)", - "(]", - "][", - ")(", - "](", - ")[", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OperationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='operation', + parent_name='contour.contours', + **kwargs): + super(OperationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['=', '<', '>=', '>', '<=', '[]', '()', '[)', '(]', '][', ')(', '](', ')[']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/contours/_showlabels.py b/packages/python/plotly/plotly/validators/contour/contours/_showlabels.py index e1650f5e8fd..67eeea13808 100644 --- a/packages/python/plotly/plotly/validators/contour/contours/_showlabels.py +++ b/packages/python/plotly/plotly/validators/contour/contours/_showlabels.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowlabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showlabels", parent_name="contour.contours", **kwargs - ): - super(ShowlabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowlabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlabels', + parent_name='contour.contours', + **kwargs): + super(ShowlabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/contours/_showlines.py b/packages/python/plotly/plotly/validators/contour/contours/_showlines.py index e10c89a100b..6f0d8150033 100644 --- a/packages/python/plotly/plotly/validators/contour/contours/_showlines.py +++ b/packages/python/plotly/plotly/validators/contour/contours/_showlines.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowlinesValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showlines", parent_name="contour.contours", **kwargs - ): - super(ShowlinesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowlinesValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlines', + parent_name='contour.contours', + **kwargs): + super(ShowlinesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/contours/_size.py b/packages/python/plotly/plotly/validators/contour/contours/_size.py index aa43586f821..9ce3f71adaa 100644 --- a/packages/python/plotly/plotly/validators/contour/contours/_size.py +++ b/packages/python/plotly/plotly/validators/contour/contours/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="contour.contours", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"^autocontour": False}), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='contour.contours', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'^autocontour': False}), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/contours/_start.py b/packages/python/plotly/plotly/validators/contour/contours/_start.py index 2a2b3f08519..0d38004bef0 100644 --- a/packages/python/plotly/plotly/validators/contour/contours/_start.py +++ b/packages/python/plotly/plotly/validators/contour/contours/_start.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class StartValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="start", parent_name="contour.contours", **kwargs): - super(StartValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"^autocontour": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StartValidator(_bv.NumberValidator): + def __init__(self, plotly_name='start', + parent_name='contour.contours', + **kwargs): + super(StartValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'^autocontour': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/contours/_type.py b/packages/python/plotly/plotly/validators/contour/contours/_type.py index 87ba2189ddf..d3414f579bb 100644 --- a/packages/python/plotly/plotly/validators/contour/contours/_type.py +++ b/packages/python/plotly/plotly/validators/contour/contours/_type.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="type", parent_name="contour.contours", **kwargs): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["levels", "constraint"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='contour.contours', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['levels', 'constraint']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/contours/_value.py b/packages/python/plotly/plotly/validators/contour/contours/_value.py index 64e6942be32..32720199bce 100644 --- a/packages/python/plotly/plotly/validators/contour/contours/_value.py +++ b/packages/python/plotly/plotly/validators/contour/contours/_value.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="value", parent_name="contour.contours", **kwargs): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.AnyValidator): + def __init__(self, plotly_name='value', + parent_name='contour.contours', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/contours/labelfont/__init__.py b/packages/python/plotly/plotly/validators/contour/contours/labelfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/contour/contours/labelfont/__init__.py +++ b/packages/python/plotly/plotly/validators/contour/contours/labelfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/contour/contours/labelfont/_color.py b/packages/python/plotly/plotly/validators/contour/contours/labelfont/_color.py index 6fb83660977..7f34c29c8eb 100644 --- a/packages/python/plotly/plotly/validators/contour/contours/labelfont/_color.py +++ b/packages/python/plotly/plotly/validators/contour/contours/labelfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="contour.contours.labelfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='contour.contours.labelfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/contours/labelfont/_family.py b/packages/python/plotly/plotly/validators/contour/contours/labelfont/_family.py index ac10b66e659..b4018933fc7 100644 --- a/packages/python/plotly/plotly/validators/contour/contours/labelfont/_family.py +++ b/packages/python/plotly/plotly/validators/contour/contours/labelfont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="contour.contours.labelfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='contour.contours.labelfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/contours/labelfont/_lineposition.py b/packages/python/plotly/plotly/validators/contour/contours/labelfont/_lineposition.py index 9dd602d3ea0..e5bfd37fed5 100644 --- a/packages/python/plotly/plotly/validators/contour/contours/labelfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/contour/contours/labelfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="contour.contours.labelfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='contour.contours.labelfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/contours/labelfont/_shadow.py b/packages/python/plotly/plotly/validators/contour/contours/labelfont/_shadow.py index e5817a36363..0e1de8fbbe8 100644 --- a/packages/python/plotly/plotly/validators/contour/contours/labelfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/contour/contours/labelfont/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="contour.contours.labelfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='contour.contours.labelfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/contours/labelfont/_size.py b/packages/python/plotly/plotly/validators/contour/contours/labelfont/_size.py index d365c15aaa9..1e89987193c 100644 --- a/packages/python/plotly/plotly/validators/contour/contours/labelfont/_size.py +++ b/packages/python/plotly/plotly/validators/contour/contours/labelfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="contour.contours.labelfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='contour.contours.labelfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/contours/labelfont/_style.py b/packages/python/plotly/plotly/validators/contour/contours/labelfont/_style.py index b95da8b6b01..5b0824ea710 100644 --- a/packages/python/plotly/plotly/validators/contour/contours/labelfont/_style.py +++ b/packages/python/plotly/plotly/validators/contour/contours/labelfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="contour.contours.labelfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='contour.contours.labelfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/contours/labelfont/_textcase.py b/packages/python/plotly/plotly/validators/contour/contours/labelfont/_textcase.py index 4bb59970fb7..8060e2fe19c 100644 --- a/packages/python/plotly/plotly/validators/contour/contours/labelfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/contour/contours/labelfont/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="contour.contours.labelfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='contour.contours.labelfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/contours/labelfont/_variant.py b/packages/python/plotly/plotly/validators/contour/contours/labelfont/_variant.py index 1c5a8056a2e..ed8a5eefaa6 100644 --- a/packages/python/plotly/plotly/validators/contour/contours/labelfont/_variant.py +++ b/packages/python/plotly/plotly/validators/contour/contours/labelfont/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="contour.contours.labelfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='contour.contours.labelfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/contours/labelfont/_weight.py b/packages/python/plotly/plotly/validators/contour/contours/labelfont/_weight.py index 3a1289c5eef..b30b28189c8 100644 --- a/packages/python/plotly/plotly/validators/contour/contours/labelfont/_weight.py +++ b/packages/python/plotly/plotly/validators/contour/contours/labelfont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="contour.contours.labelfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='contour.contours.labelfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/_align.py index 316d2172823..a00f19bd878 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/_align.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="align", parent_name="contour.hoverlabel", **kwargs): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='contour.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/_alignsrc.py index 0b7ddaa3726..7e52479ca0b 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="contour.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='contour.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/_bgcolor.py index d5ec7ab6042..3bb67bacbe0 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="contour.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='contour.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/_bgcolorsrc.py index 2be30675383..5839162a36b 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="contour.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='contour.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/_bordercolor.py index 69ab9b4202a..b235db149b7 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="contour.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='contour.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/_bordercolorsrc.py index 75780f6fda6..f8de3a1c490 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bordercolorsrc", parent_name="contour.hoverlabel", **kwargs - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='contour.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/_font.py index b29c19615a9..7589a6294ec 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/_font.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="contour.hoverlabel", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='contour.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/_namelength.py index c26fc4813f8..b412ddd153c 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="contour.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='contour.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/_namelengthsrc.py index d45f4b334ee..a377cc61f41 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="contour.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='contour.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_color.py index 3ed213f92ec..dc2f5e87e59 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="contour.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='contour.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_colorsrc.py index ca5b75f5981..bc3b1043ba9 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="contour.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='contour.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_family.py index a8d4e360432..8669aa6882c 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="contour.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='contour.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_familysrc.py index 2a484890484..4fad8a9324e 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="contour.hoverlabel.font", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='contour.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_lineposition.py index a3ede01fc26..8c9c875241f 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="contour.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='contour.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_linepositionsrc.py index 07b256f1718..a86eff1ace5 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="contour.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='contour.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_shadow.py index d006168692d..7b739a69b79 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="contour.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='contour.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_shadowsrc.py index b9c1bd5f206..6ca1e69f254 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="contour.hoverlabel.font", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='contour.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_size.py index 973ab1d788e..8e383a1d2f0 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="contour.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='contour.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_sizesrc.py index 9ba54072549..fc0d5c01ee6 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="contour.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='contour.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_style.py index a8dc82235af..28a14ef3d1c 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="contour.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='contour.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_stylesrc.py index 4a436fdeb4c..306ef66de75 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="contour.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='contour.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_textcase.py index ecb8d01a042..2ac3c24832c 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="contour.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='contour.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_textcasesrc.py index f3d406f7221..26bc0292027 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="contour.hoverlabel.font", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='contour.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_variant.py index 0c40e8b4a68..b5dc9870a3a 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="contour.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='contour.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_variantsrc.py index 95e6cf234e2..aff09f8842d 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="contour.hoverlabel.font", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='contour.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_weight.py index d2cfa949623..09a96c57c58 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="contour.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='contour.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_weightsrc.py index f24fbe0d596..ad77346df6b 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="contour.hoverlabel.font", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='contour.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/contour/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/contour/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/contour/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/contour/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/contour/legendgrouptitle/_font.py index 52dce93bf0d..12836acc558 100644 --- a/packages/python/plotly/plotly/validators/contour/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/contour/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="contour.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='contour.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/contour/legendgrouptitle/_text.py index edabd902676..67508435527 100644 --- a/packages/python/plotly/plotly/validators/contour/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/contour/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="contour.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='contour.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_color.py index a3386cc2316..5783c2aaea8 100644 --- a/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="contour.legendgrouptitle.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='contour.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_family.py index 2cfce303552..740a5074331 100644 --- a/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="contour.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='contour.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_lineposition.py index 271e0256d8e..67fca45aa16 100644 --- a/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="contour.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='contour.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_shadow.py index e51c4b42491..55d4e7fa513 100644 --- a/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="contour.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='contour.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_size.py index 339b6ea13a3..6d023823c90 100644 --- a/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="contour.legendgrouptitle.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='contour.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_style.py index 4563d55c28e..db2970d2acf 100644 --- a/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="contour.legendgrouptitle.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='contour.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_textcase.py index 52f9e805caa..3379f7e47ce 100644 --- a/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="contour.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='contour.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_variant.py index 7d6239066f3..e879c96d6cf 100644 --- a/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="contour.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='contour.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_weight.py index 9bdf25210ef..80830df09eb 100644 --- a/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/contour/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="contour.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='contour.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/line/__init__.py b/packages/python/plotly/plotly/validators/contour/line/__init__.py index cc28ee67fea..60124445938 100644 --- a/packages/python/plotly/plotly/validators/contour/line/__init__.py +++ b/packages/python/plotly/plotly/validators/contour/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._smoothing import SmoothingValidator @@ -8,14 +7,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._smoothing.SmoothingValidator", - "._dash.DashValidator", - "._color.ColorValidator", - ], + ['._width.WidthValidator', '._smoothing.SmoothingValidator', '._dash.DashValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/contour/line/_color.py b/packages/python/plotly/plotly/validators/contour/line/_color.py index f3006bc32ef..9bad3816432 100644 --- a/packages/python/plotly/plotly/validators/contour/line/_color.py +++ b/packages/python/plotly/plotly/validators/contour/line/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="contour.line", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style+colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='contour.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style+colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/line/_dash.py b/packages/python/plotly/plotly/validators/contour/line/_dash.py index f1aeac4922e..5854dd6c9ed 100644 --- a/packages/python/plotly/plotly/validators/contour/line/_dash.py +++ b/packages/python/plotly/plotly/validators/contour/line/_dash.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__(self, plotly_name="dash", parent_name="contour.line", **kwargs): - super(DashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DashValidator(_bv.DashValidator): + def __init__(self, plotly_name='dash', + parent_name='contour.line', + **kwargs): + super(DashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/line/_smoothing.py b/packages/python/plotly/plotly/validators/contour/line/_smoothing.py index 22a9a7184fa..7f82aab507a 100644 --- a/packages/python/plotly/plotly/validators/contour/line/_smoothing.py +++ b/packages/python/plotly/plotly/validators/contour/line/_smoothing.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SmoothingValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="smoothing", parent_name="contour.line", **kwargs): - super(SmoothingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 1.3), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SmoothingValidator(_bv.NumberValidator): + def __init__(self, plotly_name='smoothing', + parent_name='contour.line', + **kwargs): + super(SmoothingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 1.3), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/line/_width.py b/packages/python/plotly/plotly/validators/contour/line/_width.py index e20ee1cd357..941b09a7b8a 100644 --- a/packages/python/plotly/plotly/validators/contour/line/_width.py +++ b/packages/python/plotly/plotly/validators/contour/line/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="contour.line", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style+colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='contour.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style+colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/stream/__init__.py b/packages/python/plotly/plotly/validators/contour/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/contour/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/contour/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/contour/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/contour/stream/_maxpoints.py index 91660db0592..afa8931a6ac 100644 --- a/packages/python/plotly/plotly/validators/contour/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/contour/stream/_maxpoints.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="maxpoints", parent_name="contour.stream", **kwargs): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='contour.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/stream/_token.py b/packages/python/plotly/plotly/validators/contour/stream/_token.py index a9acbffc72f..8ef89b1f66b 100644 --- a/packages/python/plotly/plotly/validators/contour/stream/_token.py +++ b/packages/python/plotly/plotly/validators/contour/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="contour.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='contour.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/textfont/__init__.py b/packages/python/plotly/plotly/validators/contour/textfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/contour/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/contour/textfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/contour/textfont/_color.py b/packages/python/plotly/plotly/validators/contour/textfont/_color.py index f92b9c26867..a637b6e77d5 100644 --- a/packages/python/plotly/plotly/validators/contour/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/contour/textfont/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="contour.textfont", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='contour.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/textfont/_family.py b/packages/python/plotly/plotly/validators/contour/textfont/_family.py index b75da91bf02..fb68e7a5edc 100644 --- a/packages/python/plotly/plotly/validators/contour/textfont/_family.py +++ b/packages/python/plotly/plotly/validators/contour/textfont/_family.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="family", parent_name="contour.textfont", **kwargs): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='contour.textfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/textfont/_lineposition.py b/packages/python/plotly/plotly/validators/contour/textfont/_lineposition.py index cd62b8e50ff..e159edad94f 100644 --- a/packages/python/plotly/plotly/validators/contour/textfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/contour/textfont/_lineposition.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="contour.textfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='contour.textfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/textfont/_shadow.py b/packages/python/plotly/plotly/validators/contour/textfont/_shadow.py index 5ad71bce1ff..6e1886debcf 100644 --- a/packages/python/plotly/plotly/validators/contour/textfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/contour/textfont/_shadow.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="shadow", parent_name="contour.textfont", **kwargs): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='contour.textfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/textfont/_size.py b/packages/python/plotly/plotly/validators/contour/textfont/_size.py index 3e392b2dce7..b40507aacba 100644 --- a/packages/python/plotly/plotly/validators/contour/textfont/_size.py +++ b/packages/python/plotly/plotly/validators/contour/textfont/_size.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="contour.textfont", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='contour.textfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/textfont/_style.py b/packages/python/plotly/plotly/validators/contour/textfont/_style.py index e510ea21302..754d9a9ccad 100644 --- a/packages/python/plotly/plotly/validators/contour/textfont/_style.py +++ b/packages/python/plotly/plotly/validators/contour/textfont/_style.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="style", parent_name="contour.textfont", **kwargs): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='contour.textfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/textfont/_textcase.py b/packages/python/plotly/plotly/validators/contour/textfont/_textcase.py index 6d189781006..37165ae0e6a 100644 --- a/packages/python/plotly/plotly/validators/contour/textfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/contour/textfont/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="contour.textfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='contour.textfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/textfont/_variant.py b/packages/python/plotly/plotly/validators/contour/textfont/_variant.py index d991fc820c1..9dc0ca60293 100644 --- a/packages/python/plotly/plotly/validators/contour/textfont/_variant.py +++ b/packages/python/plotly/plotly/validators/contour/textfont/_variant.py @@ -1,22 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="variant", parent_name="contour.textfont", **kwargs): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='contour.textfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contour/textfont/_weight.py b/packages/python/plotly/plotly/validators/contour/textfont/_weight.py index 19a8d50befe..9c8242700b5 100644 --- a/packages/python/plotly/plotly/validators/contour/textfont/_weight.py +++ b/packages/python/plotly/plotly/validators/contour/textfont/_weight.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="weight", parent_name="contour.textfont", **kwargs): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='contour.textfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/__init__.py b/packages/python/plotly/plotly/validators/contourcarpet/__init__.py index b65146b937e..af0add8a4e6 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/__init__.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zsrc import ZsrcValidator from ._zorder import ZorderValidator @@ -58,64 +57,10 @@ from ._a import AValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zsrc.ZsrcValidator", - "._zorder.ZorderValidator", - "._zmin.ZminValidator", - "._zmid.ZmidValidator", - "._zmax.ZmaxValidator", - "._zauto.ZautoValidator", - "._z.ZValidator", - "._yaxis.YaxisValidator", - "._xaxis.XaxisValidator", - "._visible.VisibleValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._transpose.TransposeValidator", - "._textsrc.TextsrcValidator", - "._text.TextValidator", - "._stream.StreamValidator", - "._showscale.ShowscaleValidator", - "._showlegend.ShowlegendValidator", - "._reversescale.ReversescaleValidator", - "._opacity.OpacityValidator", - "._ncontours.NcontoursValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._line.LineValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._fillcolor.FillcolorValidator", - "._db.DbValidator", - "._da.DaValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._contours.ContoursValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._carpet.CarpetValidator", - "._btype.BtypeValidator", - "._bsrc.BsrcValidator", - "._b0.B0Validator", - "._b.BValidator", - "._autocontour.AutocontourValidator", - "._autocolorscale.AutocolorscaleValidator", - "._atype.AtypeValidator", - "._asrc.AsrcValidator", - "._a0.A0Validator", - "._a.AValidator", - ], + ['._zsrc.ZsrcValidator', '._zorder.ZorderValidator', '._zmin.ZminValidator', '._zmid.ZmidValidator', '._zmax.ZmaxValidator', '._zauto.ZautoValidator', '._z.ZValidator', '._yaxis.YaxisValidator', '._xaxis.XaxisValidator', '._visible.VisibleValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._transpose.TransposeValidator', '._textsrc.TextsrcValidator', '._text.TextValidator', '._stream.StreamValidator', '._showscale.ShowscaleValidator', '._showlegend.ShowlegendValidator', '._reversescale.ReversescaleValidator', '._opacity.OpacityValidator', '._ncontours.NcontoursValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._line.LineValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._fillcolor.FillcolorValidator', '._db.DbValidator', '._da.DaValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._contours.ContoursValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._carpet.CarpetValidator', '._btype.BtypeValidator', '._bsrc.BsrcValidator', '._b0.B0Validator', '._b.BValidator', '._autocontour.AutocontourValidator', '._autocolorscale.AutocolorscaleValidator', '._atype.AtypeValidator', '._asrc.AsrcValidator', '._a0.A0Validator', '._a.AValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_a.py b/packages/python/plotly/plotly/validators/contourcarpet/_a.py index ba419ae44e3..ac1df2392ed 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_a.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_a.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class AValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="a", parent_name="contourcarpet", **kwargs): - super(AValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - implied_edits=kwargs.pop("implied_edits", {"xtype": "array"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='a', + parent_name='contourcarpet', + **kwargs): + super(AValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + implied_edits=kwargs.pop('implied_edits', {'xtype': 'array'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_a0.py b/packages/python/plotly/plotly/validators/contourcarpet/_a0.py index b868e35b954..fbd1da17bf1 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_a0.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_a0.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class A0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="a0", parent_name="contourcarpet", **kwargs): - super(A0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - implied_edits=kwargs.pop("implied_edits", {"xtype": "scaled"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class A0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='a0', + parent_name='contourcarpet', + **kwargs): + super(A0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + implied_edits=kwargs.pop('implied_edits', {'xtype': 'scaled'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_asrc.py b/packages/python/plotly/plotly/validators/contourcarpet/_asrc.py index 272956a54eb..1fc1d26ca32 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_asrc.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_asrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="asrc", parent_name="contourcarpet", **kwargs): - super(AsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='asrc', + parent_name='contourcarpet', + **kwargs): + super(AsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_atype.py b/packages/python/plotly/plotly/validators/contourcarpet/_atype.py index 685e958e432..1cf7987e7c4 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_atype.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_atype.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class AtypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="atype", parent_name="contourcarpet", **kwargs): - super(AtypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - values=kwargs.pop("values", ["array", "scaled"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AtypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='atype', + parent_name='contourcarpet', + **kwargs): + super(AtypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + values=kwargs.pop('values', ['array', 'scaled']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_autocolorscale.py b/packages/python/plotly/plotly/validators/contourcarpet/_autocolorscale.py index b7651761214..d7d6c181c4c 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="contourcarpet", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='contourcarpet', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_autocontour.py b/packages/python/plotly/plotly/validators/contourcarpet/_autocontour.py index c17015efe7d..60c89637b9f 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_autocontour.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_autocontour.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocontourValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocontour", parent_name="contourcarpet", **kwargs - ): - super(AutocontourValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocontourValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocontour', + parent_name='contourcarpet', + **kwargs): + super(AutocontourValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_b.py b/packages/python/plotly/plotly/validators/contourcarpet/_b.py index c18760716e0..837ea9f9b2e 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_b.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_b.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class BValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="b", parent_name="contourcarpet", **kwargs): - super(BValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - implied_edits=kwargs.pop("implied_edits", {"ytype": "array"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='b', + parent_name='contourcarpet', + **kwargs): + super(BValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + implied_edits=kwargs.pop('implied_edits', {'ytype': 'array'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_b0.py b/packages/python/plotly/plotly/validators/contourcarpet/_b0.py index 46e76565698..34d783cee93 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_b0.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_b0.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class B0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="b0", parent_name="contourcarpet", **kwargs): - super(B0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - implied_edits=kwargs.pop("implied_edits", {"ytype": "scaled"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class B0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='b0', + parent_name='contourcarpet', + **kwargs): + super(B0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + implied_edits=kwargs.pop('implied_edits', {'ytype': 'scaled'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_bsrc.py b/packages/python/plotly/plotly/validators/contourcarpet/_bsrc.py index cece078ee0a..46a55e44621 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_bsrc.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_bsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="bsrc", parent_name="contourcarpet", **kwargs): - super(BsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bsrc', + parent_name='contourcarpet', + **kwargs): + super(BsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_btype.py b/packages/python/plotly/plotly/validators/contourcarpet/_btype.py index 4c2b716c73f..110c375ce0f 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_btype.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_btype.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class BtypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="btype", parent_name="contourcarpet", **kwargs): - super(BtypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - values=kwargs.pop("values", ["array", "scaled"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BtypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='btype', + parent_name='contourcarpet', + **kwargs): + super(BtypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + values=kwargs.pop('values', ['array', 'scaled']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_carpet.py b/packages/python/plotly/plotly/validators/contourcarpet/_carpet.py index 38bc54ab4e3..b3f21b208d4 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_carpet.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_carpet.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CarpetValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="carpet", parent_name="contourcarpet", **kwargs): - super(CarpetValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CarpetValidator(_bv.StringValidator): + def __init__(self, plotly_name='carpet', + parent_name='contourcarpet', + **kwargs): + super(CarpetValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_coloraxis.py b/packages/python/plotly/plotly/validators/contourcarpet/_coloraxis.py index 5bb9807e874..b3d8a5223d2 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_coloraxis.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="coloraxis", parent_name="contourcarpet", **kwargs): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='contourcarpet', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_colorbar.py b/packages/python/plotly/plotly/validators/contourcarpet/_colorbar.py index 998e5158568..b3cc46bbfb0 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_colorbar.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_colorbar.py @@ -1,280 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="colorbar", parent_name="contourcarpet", **kwargs): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.contour - carpet.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.contourcarpet.colorbar.tickformatstopdefaults - ), sets the default property values to use for - elements of - contourcarpet.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.contourcarpet.colo - rbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='contourcarpet', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_colorscale.py b/packages/python/plotly/plotly/validators/contourcarpet/_colorscale.py index 00798421c57..90573107703 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_colorscale.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_colorscale.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__(self, plotly_name="colorscale", parent_name="contourcarpet", **kwargs): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='contourcarpet', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_contours.py b/packages/python/plotly/plotly/validators/contourcarpet/_contours.py index 96c3e6f06b0..0d42465686d 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_contours.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_contours.py @@ -1,77 +1,15 @@ -import _plotly_utils.basevalidators -class ContoursValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="contours", parent_name="contourcarpet", **kwargs): - super(ContoursValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Contours"), - data_docs=kwargs.pop( - "data_docs", - """ - coloring - Determines the coloring method showing the - contour values. If "fill", coloring is done - evenly between each contour level If "lines", - coloring is done on the contour lines. If - "none", no coloring is applied on this trace. - end - Sets the end contour level value. Must be more - than `contours.start` - labelfont - Sets the font used for labeling the contour - levels. The default color comes from the lines, - if shown. The default family and size come from - `layout.font`. - labelformat - Sets the contour label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. - operation - Sets the constraint operation. "=" keeps - regions equal to `value` "<" and "<=" keep - regions less than `value` ">" and ">=" keep - regions greater than `value` "[]", "()", "[)", - and "(]" keep regions inside `value[0]` to - `value[1]` "][", ")(", "](", ")[" keep regions - outside `value[0]` to value[1]` Open vs. closed - intervals make no difference to constraint - display, but all versions are allowed for - consistency with filter transforms. - showlabels - Determines whether to label the contour lines - with their values. - showlines - Determines whether or not the contour lines are - drawn. Has an effect only if - `contours.coloring` is set to "fill". - size - Sets the step between each contour level. Must - be positive. - start - Sets the starting contour level value. Must be - less than `contours.end` - type - If `levels`, the data is represented as a - contour plot with multiple levels displayed. If - `constraint`, the data is represented as - constraints with the invalid region shaded as - specified by the `operation` and `value` - parameters. - value - Sets the value or values of the constraint - boundary. When `operation` is set to one of the - comparison values (=,<,>=,>,<=) "value" is - expected to be a number. When `operation` is - set to one of the interval values - ([],(),[),(],][,)(,](,)[) "value" is expected - to be an array of two numbers where the first - is the lower bound and the second is the upper - bound. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ContoursValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='contours', + parent_name='contourcarpet', + **kwargs): + super(ContoursValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Contours'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_customdata.py b/packages/python/plotly/plotly/validators/contourcarpet/_customdata.py index 45e1f33765a..32ce2b46a0a 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_customdata.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="contourcarpet", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='contourcarpet', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_customdatasrc.py b/packages/python/plotly/plotly/validators/contourcarpet/_customdatasrc.py index 1622e92c762..5ac4fee813d 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_customdatasrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="customdatasrc", parent_name="contourcarpet", **kwargs - ): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='contourcarpet', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_da.py b/packages/python/plotly/plotly/validators/contourcarpet/_da.py index 3cb5e641fea..5888f3300a6 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_da.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_da.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class DaValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="da", parent_name="contourcarpet", **kwargs): - super(DaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"xtype": "scaled"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DaValidator(_bv.NumberValidator): + def __init__(self, plotly_name='da', + parent_name='contourcarpet', + **kwargs): + super(DaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'xtype': 'scaled'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_db.py b/packages/python/plotly/plotly/validators/contourcarpet/_db.py index 849bcb4304c..96eca62766b 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_db.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_db.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class DbValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="db", parent_name="contourcarpet", **kwargs): - super(DbValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"ytype": "scaled"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DbValidator(_bv.NumberValidator): + def __init__(self, plotly_name='db', + parent_name='contourcarpet', + **kwargs): + super(DbValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'ytype': 'scaled'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_fillcolor.py b/packages/python/plotly/plotly/validators/contourcarpet/_fillcolor.py index 311cb221f8c..cdc92cd4d82 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_fillcolor.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_fillcolor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="fillcolor", parent_name="contourcarpet", **kwargs): - super(FillcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - colorscale_path=kwargs.pop("colorscale_path", "contourcarpet.colorscale"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fillcolor', + parent_name='contourcarpet', + **kwargs): + super(FillcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + colorscale_path=kwargs.pop('colorscale_path', 'contourcarpet.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_hovertext.py b/packages/python/plotly/plotly/validators/contourcarpet/_hovertext.py index f96971d7f43..21baa09ff5c 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_hovertext.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_hovertext.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="hovertext", parent_name="contourcarpet", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='hovertext', + parent_name='contourcarpet', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_hovertextsrc.py b/packages/python/plotly/plotly/validators/contourcarpet/_hovertextsrc.py index ca714552944..a8219a70112 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_hovertextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertextsrc", parent_name="contourcarpet", **kwargs - ): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='contourcarpet', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_ids.py b/packages/python/plotly/plotly/validators/contourcarpet/_ids.py index b9e45d342c9..dd933115cf0 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_ids.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="contourcarpet", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='contourcarpet', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_idssrc.py b/packages/python/plotly/plotly/validators/contourcarpet/_idssrc.py index 3c9b1519070..d75f072ded4 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_idssrc.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="contourcarpet", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='contourcarpet', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_legend.py b/packages/python/plotly/plotly/validators/contourcarpet/_legend.py index 6389d68618b..bfc6cc4b5ef 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_legend.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="contourcarpet", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='contourcarpet', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_legendgroup.py b/packages/python/plotly/plotly/validators/contourcarpet/_legendgroup.py index 7f9759f92a0..a5ebf1df5fe 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_legendgroup.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="legendgroup", parent_name="contourcarpet", **kwargs - ): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='contourcarpet', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/contourcarpet/_legendgrouptitle.py index 51cbe98b696..8df828e9d7f 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="contourcarpet", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='contourcarpet', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_legendrank.py b/packages/python/plotly/plotly/validators/contourcarpet/_legendrank.py index 060fe935cf5..ac144684708 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_legendrank.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="contourcarpet", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='contourcarpet', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_legendwidth.py b/packages/python/plotly/plotly/validators/contourcarpet/_legendwidth.py index 5e9eddfe2ad..2fa95b14db1 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_legendwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="legendwidth", parent_name="contourcarpet", **kwargs - ): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='contourcarpet', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_line.py b/packages/python/plotly/plotly/validators/contourcarpet/_line.py index 819e39661ca..66648528d53 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_line.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_line.py @@ -1,33 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="contourcarpet", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the color of the contour level. Has no - effect if `contours.coloring` is set to - "lines". - dash - 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"). - smoothing - Sets the amount of smoothing for the contour - lines, where 0 corresponds to no smoothing. - width - Sets the contour line width in (in px) Defaults - to 0.5 when `contours.type` is "levels". - Defaults to 2 when `contour.type` is - "constraint". -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='contourcarpet', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_meta.py b/packages/python/plotly/plotly/validators/contourcarpet/_meta.py index ba6e325495a..58d051c0269 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_meta.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="contourcarpet", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='contourcarpet', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_metasrc.py b/packages/python/plotly/plotly/validators/contourcarpet/_metasrc.py index 8a510c8c916..2c041bf7b85 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_metasrc.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="contourcarpet", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='contourcarpet', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_name.py b/packages/python/plotly/plotly/validators/contourcarpet/_name.py index 3aa0b8bac65..281563abc76 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_name.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="contourcarpet", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='contourcarpet', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_ncontours.py b/packages/python/plotly/plotly/validators/contourcarpet/_ncontours.py index 7e9fc47bc7c..7d6543c5866 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_ncontours.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_ncontours.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class NcontoursValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="ncontours", parent_name="contourcarpet", **kwargs): - super(NcontoursValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NcontoursValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ncontours', + parent_name='contourcarpet', + **kwargs): + super(NcontoursValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_opacity.py b/packages/python/plotly/plotly/validators/contourcarpet/_opacity.py index 290ae964014..0368406bb03 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_opacity.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="contourcarpet", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='contourcarpet', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_reversescale.py b/packages/python/plotly/plotly/validators/contourcarpet/_reversescale.py index 4ad64ce8dea..e2dabd09e53 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_reversescale.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="contourcarpet", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='contourcarpet', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_showlegend.py b/packages/python/plotly/plotly/validators/contourcarpet/_showlegend.py index a3ae37af567..ca8e07f4ccd 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_showlegend.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="contourcarpet", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='contourcarpet', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_showscale.py b/packages/python/plotly/plotly/validators/contourcarpet/_showscale.py index 4139ed3d855..bc610641f0d 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_showscale.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_showscale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showscale", parent_name="contourcarpet", **kwargs): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='contourcarpet', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_stream.py b/packages/python/plotly/plotly/validators/contourcarpet/_stream.py index 0ac5aaf6b3d..c04f64a1d26 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_stream.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="contourcarpet", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='contourcarpet', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_text.py b/packages/python/plotly/plotly/validators/contourcarpet/_text.py index dd9087fa3f4..311db121fcc 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_text.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_text.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="text", parent_name="contourcarpet", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='text', + parent_name='contourcarpet', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_textsrc.py b/packages/python/plotly/plotly/validators/contourcarpet/_textsrc.py index 528c04f14c7..3fd5542feb9 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_textsrc.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="contourcarpet", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='contourcarpet', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_transpose.py b/packages/python/plotly/plotly/validators/contourcarpet/_transpose.py index bdba4b91b0e..bde51183a22 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_transpose.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_transpose.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TransposeValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="transpose", parent_name="contourcarpet", **kwargs): - super(TransposeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TransposeValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='transpose', + parent_name='contourcarpet', + **kwargs): + super(TransposeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_uid.py b/packages/python/plotly/plotly/validators/contourcarpet/_uid.py index e7a45e0aa56..d079b711b2b 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_uid.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="contourcarpet", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='contourcarpet', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_uirevision.py b/packages/python/plotly/plotly/validators/contourcarpet/_uirevision.py index e69f03b7f0f..d2ba00f8b02 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_uirevision.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="contourcarpet", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='contourcarpet', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_visible.py b/packages/python/plotly/plotly/validators/contourcarpet/_visible.py index 96d54ba8ec2..cfcaa5cf915 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_visible.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="contourcarpet", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='contourcarpet', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_xaxis.py b/packages/python/plotly/plotly/validators/contourcarpet/_xaxis.py index e585163e258..5e3b44ec895 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_xaxis.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_xaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="xaxis", parent_name="contourcarpet", **kwargs): - super(XaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "x"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='xaxis', + parent_name='contourcarpet', + **kwargs): + super(XaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'x'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_yaxis.py b/packages/python/plotly/plotly/validators/contourcarpet/_yaxis.py index c92598bffb3..6338641d1bc 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_yaxis.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_yaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="yaxis", parent_name="contourcarpet", **kwargs): - super(YaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "y"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='yaxis', + parent_name='contourcarpet', + **kwargs): + super(YaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'y'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_z.py b/packages/python/plotly/plotly/validators/contourcarpet/_z.py index 857f9c9a3ea..962d5adabbf 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_z.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_z.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="z", parent_name="contourcarpet", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='z', + parent_name='contourcarpet', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_zauto.py b/packages/python/plotly/plotly/validators/contourcarpet/_zauto.py index 865dc31c9cc..9ee9ee9f588 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_zauto.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_zauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="zauto", parent_name="contourcarpet", **kwargs): - super(ZautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='zauto', + parent_name='contourcarpet', + **kwargs): + super(ZautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_zmax.py b/packages/python/plotly/plotly/validators/contourcarpet/_zmax.py index 3380d90b4c5..045b2dc04ac 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_zmax.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_zmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmax", parent_name="contourcarpet", **kwargs): - super(ZmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"zauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmax', + parent_name='contourcarpet', + **kwargs): + super(ZmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'zauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_zmid.py b/packages/python/plotly/plotly/validators/contourcarpet/_zmid.py index e830931e794..014ca5cea2f 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_zmid.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_zmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmid", parent_name="contourcarpet", **kwargs): - super(ZmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmid', + parent_name='contourcarpet', + **kwargs): + super(ZmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_zmin.py b/packages/python/plotly/plotly/validators/contourcarpet/_zmin.py index 313d4c589ad..1c332345285 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_zmin.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_zmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmin", parent_name="contourcarpet", **kwargs): - super(ZminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"zauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmin', + parent_name='contourcarpet', + **kwargs): + super(ZminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'zauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_zorder.py b/packages/python/plotly/plotly/validators/contourcarpet/_zorder.py index 8b8d3fa67b2..87935c79e3e 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_zorder.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_zorder.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="zorder", parent_name="contourcarpet", **kwargs): - super(ZorderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZorderValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='zorder', + parent_name='contourcarpet', + **kwargs): + super(ZorderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/_zsrc.py b/packages/python/plotly/plotly/validators/contourcarpet/_zsrc.py index 1cd2a5925e5..3cea4280fad 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/_zsrc.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/_zsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="zsrc", parent_name="contourcarpet", **kwargs): - super(ZsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='zsrc', + parent_name='contourcarpet', + **kwargs): + super(ZsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/__init__.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_bgcolor.py index 66e53aa1f75..271c1fc647e 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="contourcarpet.colorbar", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='contourcarpet.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_bordercolor.py index 8208951bb53..2af9225adba 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="contourcarpet.colorbar", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='contourcarpet.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_borderwidth.py index fe47d05ca88..1f630485d66 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_borderwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderwidth", parent_name="contourcarpet.colorbar", **kwargs - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='contourcarpet.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_dtick.py index f3b4117780f..2b96eff7d1a 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="contourcarpet.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='contourcarpet.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_exponentformat.py index 67b1086ffdd..6d73c9c3b08 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_exponentformat.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="exponentformat", - parent_name="contourcarpet.colorbar", - **kwargs, - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='contourcarpet.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_labelalias.py index a4d489147dc..cee857da96d 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="contourcarpet.colorbar", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='contourcarpet.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_len.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_len.py index 513013ad21e..0cb276f0c3e 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_len.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="len", parent_name="contourcarpet.colorbar", **kwargs - ): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='contourcarpet.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_lenmode.py index c7ae6bdad36..a07b23167d4 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_lenmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="lenmode", parent_name="contourcarpet.colorbar", **kwargs - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='contourcarpet.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_minexponent.py index 9f3a84e1825..8ed8601cc78 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="contourcarpet.colorbar", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='contourcarpet.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_nticks.py index ae55266d5e3..437addf5eef 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="contourcarpet.colorbar", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='contourcarpet.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_orientation.py index 7a42e3c6a28..51cee99da0e 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_orientation.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="orientation", parent_name="contourcarpet.colorbar", **kwargs - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='contourcarpet.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_outlinecolor.py index 8ec398f85c7..0fbe7a77384 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_outlinecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="outlinecolor", parent_name="contourcarpet.colorbar", **kwargs - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='contourcarpet.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_outlinewidth.py index cd25e5faf2c..9ea8b859212 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_outlinewidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="outlinewidth", parent_name="contourcarpet.colorbar", **kwargs - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='contourcarpet.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_separatethousands.py index d663314dfe2..00a47d1f69f 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="contourcarpet.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='contourcarpet.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_showexponent.py index 6f546bcc310..5036bc6693e 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="contourcarpet.colorbar", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='contourcarpet.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_showticklabels.py index 5e3bf7f8ec4..8166d093bb7 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="contourcarpet.colorbar", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='contourcarpet.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_showtickprefix.py index 0439dcf6f6b..90a78411243 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="contourcarpet.colorbar", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='contourcarpet.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_showticksuffix.py index e05583ee18f..a140df86858 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="contourcarpet.colorbar", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='contourcarpet.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_thickness.py index 8df1b34e404..843586ca7f8 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="contourcarpet.colorbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='contourcarpet.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_thicknessmode.py index 6f5ec4118a4..4dd9cd428f2 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_thicknessmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="thicknessmode", - parent_name="contourcarpet.colorbar", - **kwargs, - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='contourcarpet.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tick0.py index 0e4c0160671..eb48ab366ef 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="contourcarpet.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='contourcarpet.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickangle.py index ef2f769b635..679064a36f2 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="contourcarpet.colorbar", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='contourcarpet.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickcolor.py index 6eb99c539ac..aa492d5f7a3 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="contourcarpet.colorbar", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='contourcarpet.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickfont.py index 006b590461b..23d563217c9 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="contourcarpet.colorbar", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='contourcarpet.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickformat.py index 139b461d4f0..5c184af8b46 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="contourcarpet.colorbar", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='contourcarpet.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickformatstopdefaults.py index 2ff07598557..186fc3b1b57 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="contourcarpet.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='contourcarpet.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickformatstops.py index c437c9f7ed0..97fda07843f 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="contourcarpet.colorbar", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='contourcarpet.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticklabeloverflow.py index d8c8e226822..ac451e0b907 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="contourcarpet.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='contourcarpet.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticklabelposition.py index 0f3201f3acc..8b676602436 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="contourcarpet.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='contourcarpet.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticklabelstep.py index ab140acf346..df6a6c1763a 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticklabelstep.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="ticklabelstep", - parent_name="contourcarpet.colorbar", - **kwargs, - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='contourcarpet.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticklen.py index 4a8304b1bdf..d88cf78309c 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="contourcarpet.colorbar", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='contourcarpet.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickmode.py index 6f055103b02..b28d34d8ef6 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="contourcarpet.colorbar", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='contourcarpet.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickprefix.py index 9f956d7508f..e3a54e3fc49 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="contourcarpet.colorbar", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='contourcarpet.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticks.py index 7c5e6f82556..dc8eddf3edf 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="contourcarpet.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='contourcarpet.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticksuffix.py index aad6a41c390..24f8ce398ed 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="contourcarpet.colorbar", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='contourcarpet.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticktext.py index 7bb0fab9d2d..90766d9efe6 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="contourcarpet.colorbar", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='contourcarpet.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticktextsrc.py index e6f3f5d7308..69a4999ecca 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="contourcarpet.colorbar", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='contourcarpet.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickvals.py index 27d527ac84b..1e34d9a62d2 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="contourcarpet.colorbar", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='contourcarpet.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickvalssrc.py index 7e2233363b8..6c273b20bd3 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="contourcarpet.colorbar", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='contourcarpet.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickwidth.py index 3f57a1c6c6f..c683fbdf263 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="contourcarpet.colorbar", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='contourcarpet.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_title.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_title.py index c7b29ac4eb3..0cfd9f142d9 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="contourcarpet.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='contourcarpet.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_x.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_x.py index 11beaef6fc6..d28f3ee9f1c 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x", parent_name="contourcarpet.colorbar", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='contourcarpet.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_xanchor.py index 9ad4ab19235..78aed838733 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="contourcarpet.colorbar", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='contourcarpet.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_xpad.py index 5a5d104d3b9..df902fbd874 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_xpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="xpad", parent_name="contourcarpet.colorbar", **kwargs - ): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='contourcarpet.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_xref.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_xref.py index ce2aa8e02c5..5b5e0beec36 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xref", parent_name="contourcarpet.colorbar", **kwargs - ): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='contourcarpet.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_y.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_y.py index d602f4e7cfa..4ca8c064a9e 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y", parent_name="contourcarpet.colorbar", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='contourcarpet.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_yanchor.py index b1be18aa309..5b5710697cd 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="contourcarpet.colorbar", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='contourcarpet.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ypad.py index 53b745ad8eb..9212e3a8f95 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_ypad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ypad", parent_name="contourcarpet.colorbar", **kwargs - ): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='contourcarpet.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_yref.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_yref.py index a7703fd8992..ab5ada936bf 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yref", parent_name="contourcarpet.colorbar", **kwargs - ): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='contourcarpet.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_color.py index 8de80d7fbd4..4fd844aab59 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="contourcarpet.colorbar.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='contourcarpet.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_family.py index 3e0f23b0aab..3f21a0bc88f 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="contourcarpet.colorbar.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='contourcarpet.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_lineposition.py index 1f3e5f9bd29..1f8daa22bd6 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="contourcarpet.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='contourcarpet.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_shadow.py index 88feba05627..b3715815136 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="contourcarpet.colorbar.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='contourcarpet.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_size.py index 64215008bdf..fb1c60b5ac7 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="contourcarpet.colorbar.tickfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='contourcarpet.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_style.py index e0f5b4f60ff..f1ec37bba6e 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="contourcarpet.colorbar.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='contourcarpet.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_textcase.py index a5731b9f83c..e08ea1533a8 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="contourcarpet.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='contourcarpet.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_variant.py index e0bac200ff0..6d7033ecb3d 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="contourcarpet.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='contourcarpet.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_weight.py index 18f3315ab05..fa4abe54634 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="contourcarpet.colorbar.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='contourcarpet.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickformatstop/_dtickrange.py index 0f76729b102..218a4d9579f 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="contourcarpet.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - items=kwargs.pop( - "items", - [ - {"editType": "colorbars", "valType": "any"}, - {"editType": "colorbars", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='contourcarpet.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + items=kwargs.pop('items', [{'editType': 'colorbars', 'valType': 'any'}, {'editType': 'colorbars', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickformatstop/_enabled.py index e0f35977c14..457178adec0 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="contourcarpet.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='contourcarpet.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickformatstop/_name.py index c3afd39b9fb..772abdcb7c5 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="contourcarpet.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='contourcarpet.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickformatstop/_templateitemname.py index 60cad1da795..ef241a8fb72 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="contourcarpet.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='contourcarpet.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickformatstop/_value.py index 0697bd13d77..579f6b47205 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="contourcarpet.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='contourcarpet.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/_font.py index 436b69259bb..e243597aa90 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="contourcarpet.colorbar.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='contourcarpet.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/_side.py index c4f507575aa..3729a1772a9 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/_side.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="side", parent_name="contourcarpet.colorbar.title", **kwargs - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='contourcarpet.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/_text.py index d90f44b0094..987c3b0d658 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="contourcarpet.colorbar.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='contourcarpet.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_color.py index 881dd461cf3..67b5e35fa2f 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="contourcarpet.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='contourcarpet.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_family.py index df4c72aa3d1..94e29b907a0 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="contourcarpet.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='contourcarpet.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_lineposition.py index e4d02dc5ad3..b2e378b7057 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="contourcarpet.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='contourcarpet.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_shadow.py index 4c04ba56eb8..c9dd0b93d72 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="contourcarpet.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='contourcarpet.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_size.py index cce9ef4d71b..3585b1c20e0 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="contourcarpet.colorbar.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='contourcarpet.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_style.py index 12dfb435aa3..a779b825b1e 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="contourcarpet.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='contourcarpet.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_textcase.py index 49c59ae2a3f..eaa3b235e2c 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="contourcarpet.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='contourcarpet.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_variant.py index 36414e27ac5..9c6c4de5614 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="contourcarpet.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='contourcarpet.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_weight.py index 1f5db3de708..366d9a114ae 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="contourcarpet.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='contourcarpet.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/contours/__init__.py b/packages/python/plotly/plotly/validators/contourcarpet/contours/__init__.py index 0650ad574bd..e7f6b949f93 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/contours/__init__.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/contours/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._type import TypeValidator @@ -15,21 +14,10 @@ from ._coloring import ColoringValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._type.TypeValidator", - "._start.StartValidator", - "._size.SizeValidator", - "._showlines.ShowlinesValidator", - "._showlabels.ShowlabelsValidator", - "._operation.OperationValidator", - "._labelformat.LabelformatValidator", - "._labelfont.LabelfontValidator", - "._end.EndValidator", - "._coloring.ColoringValidator", - ], + ['._value.ValueValidator', '._type.TypeValidator', '._start.StartValidator', '._size.SizeValidator', '._showlines.ShowlinesValidator', '._showlabels.ShowlabelsValidator', '._operation.OperationValidator', '._labelformat.LabelformatValidator', '._labelfont.LabelfontValidator', '._end.EndValidator', '._coloring.ColoringValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/contourcarpet/contours/_coloring.py b/packages/python/plotly/plotly/validators/contourcarpet/contours/_coloring.py index 029a8a7ef55..ef7d9b49a2d 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/contours/_coloring.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/contours/_coloring.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColoringValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="coloring", parent_name="contourcarpet.contours", **kwargs - ): - super(ColoringValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["fill", "lines", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoringValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='coloring', + parent_name='contourcarpet.contours', + **kwargs): + super(ColoringValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['fill', 'lines', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/contours/_end.py b/packages/python/plotly/plotly/validators/contourcarpet/contours/_end.py index 900f906cd09..f5f80c58e4b 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/contours/_end.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/contours/_end.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class EndValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="end", parent_name="contourcarpet.contours", **kwargs - ): - super(EndValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"^autocontour": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class EndValidator(_bv.NumberValidator): + def __init__(self, plotly_name='end', + parent_name='contourcarpet.contours', + **kwargs): + super(EndValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'^autocontour': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/contours/_labelfont.py b/packages/python/plotly/plotly/validators/contourcarpet/contours/_labelfont.py index 19a5e5ffb40..cfe6a2adafe 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/contours/_labelfont.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/contours/_labelfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class LabelfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="labelfont", parent_name="contourcarpet.contours", **kwargs - ): - super(LabelfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Labelfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class LabelfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='labelfont', + parent_name='contourcarpet.contours', + **kwargs): + super(LabelfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Labelfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/contours/_labelformat.py b/packages/python/plotly/plotly/validators/contourcarpet/contours/_labelformat.py index a6c5ae42ecf..dd226123e93 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/contours/_labelformat.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/contours/_labelformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="labelformat", parent_name="contourcarpet.contours", **kwargs - ): - super(LabelformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='labelformat', + parent_name='contourcarpet.contours', + **kwargs): + super(LabelformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/contours/_operation.py b/packages/python/plotly/plotly/validators/contourcarpet/contours/_operation.py index 0c7dc8ceb0a..4bf6f8fe685 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/contours/_operation.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/contours/_operation.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class OperationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="operation", parent_name="contourcarpet.contours", **kwargs - ): - super(OperationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "=", - "<", - ">=", - ">", - "<=", - "[]", - "()", - "[)", - "(]", - "][", - ")(", - "](", - ")[", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OperationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='operation', + parent_name='contourcarpet.contours', + **kwargs): + super(OperationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['=', '<', '>=', '>', '<=', '[]', '()', '[)', '(]', '][', ')(', '](', ')[']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/contours/_showlabels.py b/packages/python/plotly/plotly/validators/contourcarpet/contours/_showlabels.py index ae47fa1e2c6..5a510ff233b 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/contours/_showlabels.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/contours/_showlabels.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowlabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showlabels", parent_name="contourcarpet.contours", **kwargs - ): - super(ShowlabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowlabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlabels', + parent_name='contourcarpet.contours', + **kwargs): + super(ShowlabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/contours/_showlines.py b/packages/python/plotly/plotly/validators/contourcarpet/contours/_showlines.py index 0fb013b64a9..c64c080c4f7 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/contours/_showlines.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/contours/_showlines.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowlinesValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showlines", parent_name="contourcarpet.contours", **kwargs - ): - super(ShowlinesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowlinesValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlines', + parent_name='contourcarpet.contours', + **kwargs): + super(ShowlinesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/contours/_size.py b/packages/python/plotly/plotly/validators/contourcarpet/contours/_size.py index 5b6ba1b5e71..83ae7e95b48 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/contours/_size.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/contours/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="contourcarpet.contours", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"^autocontour": False}), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='contourcarpet.contours', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'^autocontour': False}), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/contours/_start.py b/packages/python/plotly/plotly/validators/contourcarpet/contours/_start.py index 3782b69a7d8..92ae4396318 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/contours/_start.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/contours/_start.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StartValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="start", parent_name="contourcarpet.contours", **kwargs - ): - super(StartValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"^autocontour": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StartValidator(_bv.NumberValidator): + def __init__(self, plotly_name='start', + parent_name='contourcarpet.contours', + **kwargs): + super(StartValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'^autocontour': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/contours/_type.py b/packages/python/plotly/plotly/validators/contourcarpet/contours/_type.py index 787a9475a9c..79dc77cdbae 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/contours/_type.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/contours/_type.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="type", parent_name="contourcarpet.contours", **kwargs - ): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["levels", "constraint"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='contourcarpet.contours', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['levels', 'constraint']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/contours/_value.py b/packages/python/plotly/plotly/validators/contourcarpet/contours/_value.py index af740acacb5..929c7edaa0a 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/contours/_value.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/contours/_value.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ValueValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="value", parent_name="contourcarpet.contours", **kwargs - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.AnyValidator): + def __init__(self, plotly_name='value', + parent_name='contourcarpet.contours', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/__init__.py b/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/__init__.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_color.py b/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_color.py index ece189cc3e4..82e376bd8bd 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_color.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="contourcarpet.contours.labelfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='contourcarpet.contours.labelfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_family.py b/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_family.py index 6263bcd069a..94d3b9f25e8 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_family.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="contourcarpet.contours.labelfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='contourcarpet.contours.labelfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_lineposition.py b/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_lineposition.py index 58948a24864..31dcf086e1e 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="contourcarpet.contours.labelfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='contourcarpet.contours.labelfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_shadow.py b/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_shadow.py index 149ef23611a..1307c41144a 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="contourcarpet.contours.labelfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='contourcarpet.contours.labelfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_size.py b/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_size.py index 01ccf5ca6df..3a29d565257 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_size.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="contourcarpet.contours.labelfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='contourcarpet.contours.labelfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_style.py b/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_style.py index 31278931eb9..293183b7395 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_style.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="contourcarpet.contours.labelfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='contourcarpet.contours.labelfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_textcase.py b/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_textcase.py index 2cfd9859e14..0001f8662e2 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="contourcarpet.contours.labelfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='contourcarpet.contours.labelfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_variant.py b/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_variant.py index 4fcadb543f4..95adb70988b 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_variant.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="contourcarpet.contours.labelfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='contourcarpet.contours.labelfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_weight.py b/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_weight.py index 62bd65c01fa..4172c94fd96 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_weight.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="contourcarpet.contours.labelfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='contourcarpet.contours.labelfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/_font.py index 97a78ffaa16..e126e26bff3 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="contourcarpet.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='contourcarpet.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/_text.py index d7583625edf..8d06391a1ce 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="contourcarpet.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='contourcarpet.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_color.py index c63b7692e5e..42eff9c6998 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="contourcarpet.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='contourcarpet.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_family.py index b3e79d2b082..07cc2d7f814 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="contourcarpet.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='contourcarpet.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_lineposition.py index 1fd1f9e1f78..ddf4c91dc70 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="contourcarpet.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='contourcarpet.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_shadow.py index 1db76b29c72..0866ceb2a2f 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="contourcarpet.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='contourcarpet.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_size.py index ef03e97be52..2d323486131 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="contourcarpet.legendgrouptitle.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='contourcarpet.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_style.py index c1879d06c8d..1776f746b27 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="contourcarpet.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='contourcarpet.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_textcase.py index ceba88c4758..30c0f2ffca6 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="contourcarpet.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='contourcarpet.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_variant.py index b35caa60cd6..512f7361da3 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="contourcarpet.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='contourcarpet.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_weight.py index d695aec4bdb..87339049d9d 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="contourcarpet.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='contourcarpet.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/line/__init__.py b/packages/python/plotly/plotly/validators/contourcarpet/line/__init__.py index cc28ee67fea..60124445938 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/line/__init__.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._smoothing import SmoothingValidator @@ -8,14 +7,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._smoothing.SmoothingValidator", - "._dash.DashValidator", - "._color.ColorValidator", - ], + ['._width.WidthValidator', '._smoothing.SmoothingValidator', '._dash.DashValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/contourcarpet/line/_color.py b/packages/python/plotly/plotly/validators/contourcarpet/line/_color.py index 51c153b830e..92cdedb4a5a 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/line/_color.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/line/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="contourcarpet.line", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style+colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='contourcarpet.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style+colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/line/_dash.py b/packages/python/plotly/plotly/validators/contourcarpet/line/_dash.py index 35ce25b3d7c..97ec5117ad8 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/line/_dash.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/line/_dash.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__(self, plotly_name="dash", parent_name="contourcarpet.line", **kwargs): - super(DashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DashValidator(_bv.DashValidator): + def __init__(self, plotly_name='dash', + parent_name='contourcarpet.line', + **kwargs): + super(DashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/line/_smoothing.py b/packages/python/plotly/plotly/validators/contourcarpet/line/_smoothing.py index 8f24171fca0..876decfbb8f 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/line/_smoothing.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/line/_smoothing.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SmoothingValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="smoothing", parent_name="contourcarpet.line", **kwargs - ): - super(SmoothingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 1.3), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SmoothingValidator(_bv.NumberValidator): + def __init__(self, plotly_name='smoothing', + parent_name='contourcarpet.line', + **kwargs): + super(SmoothingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 1.3), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/line/_width.py b/packages/python/plotly/plotly/validators/contourcarpet/line/_width.py index b54bb20a0e6..cdf4e5a1a0d 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/line/_width.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/line/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="contourcarpet.line", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style+colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='contourcarpet.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style+colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/stream/__init__.py b/packages/python/plotly/plotly/validators/contourcarpet/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/contourcarpet/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/contourcarpet/stream/_maxpoints.py index 174cbbb3d43..109c361cb00 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/stream/_maxpoints.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxpoints", parent_name="contourcarpet.stream", **kwargs - ): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='contourcarpet.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/contourcarpet/stream/_token.py b/packages/python/plotly/plotly/validators/contourcarpet/stream/_token.py index 3d57ec45331..8b2af9e5d57 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/stream/_token.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/stream/_token.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="token", parent_name="contourcarpet.stream", **kwargs - ): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='contourcarpet.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/__init__.py b/packages/python/plotly/plotly/validators/densitymap/__init__.py index 20b2797e60d..dcc540a66bb 100644 --- a/packages/python/plotly/plotly/validators/densitymap/__init__.py +++ b/packages/python/plotly/plotly/validators/densitymap/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zsrc import ZsrcValidator from ._zmin import ZminValidator @@ -51,57 +50,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zsrc.ZsrcValidator", - "._zmin.ZminValidator", - "._zmid.ZmidValidator", - "._zmax.ZmaxValidator", - "._zauto.ZautoValidator", - "._z.ZValidator", - "._visible.VisibleValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._textsrc.TextsrcValidator", - "._text.TextValidator", - "._subplot.SubplotValidator", - "._stream.StreamValidator", - "._showscale.ShowscaleValidator", - "._showlegend.ShowlegendValidator", - "._reversescale.ReversescaleValidator", - "._radiussrc.RadiussrcValidator", - "._radius.RadiusValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._lonsrc.LonsrcValidator", - "._lon.LonValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._latsrc.LatsrcValidator", - "._lat.LatValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._below.BelowValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._zsrc.ZsrcValidator', '._zmin.ZminValidator', '._zmid.ZmidValidator', '._zmax.ZmaxValidator', '._zauto.ZautoValidator', '._z.ZValidator', '._visible.VisibleValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._textsrc.TextsrcValidator', '._text.TextValidator', '._subplot.SubplotValidator', '._stream.StreamValidator', '._showscale.ShowscaleValidator', '._showlegend.ShowlegendValidator', '._reversescale.ReversescaleValidator', '._radiussrc.RadiussrcValidator', '._radius.RadiusValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._lonsrc.LonsrcValidator', '._lon.LonValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._latsrc.LatsrcValidator', '._lat.LatValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._below.BelowValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/densitymap/_autocolorscale.py b/packages/python/plotly/plotly/validators/densitymap/_autocolorscale.py index 261792b1926..d4afb7f001a 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/densitymap/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="densitymap", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='densitymap', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_below.py b/packages/python/plotly/plotly/validators/densitymap/_below.py index fdc875efe60..95acfe2a7db 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_below.py +++ b/packages/python/plotly/plotly/validators/densitymap/_below.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BelowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="below", parent_name="densitymap", **kwargs): - super(BelowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BelowValidator(_bv.StringValidator): + def __init__(self, plotly_name='below', + parent_name='densitymap', + **kwargs): + super(BelowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_coloraxis.py b/packages/python/plotly/plotly/validators/densitymap/_coloraxis.py index 65ea5618ecf..4ab5dbf05d3 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/densitymap/_coloraxis.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="coloraxis", parent_name="densitymap", **kwargs): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='densitymap', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_colorbar.py b/packages/python/plotly/plotly/validators/densitymap/_colorbar.py index 9ce1d184c0e..41db7b7f274 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_colorbar.py +++ b/packages/python/plotly/plotly/validators/densitymap/_colorbar.py @@ -1,279 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="colorbar", parent_name="densitymap", **kwargs): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.density - map.colorbar.Tickformatstop` instances or dicts - with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.densitymap.colorbar.tickformatstopdefaults), - sets the default property values to use for - elements of densitymap.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.densitymap.colorba - r.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='densitymap', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_colorscale.py b/packages/python/plotly/plotly/validators/densitymap/_colorscale.py index de43b33c77d..84dee3c62ff 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_colorscale.py +++ b/packages/python/plotly/plotly/validators/densitymap/_colorscale.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__(self, plotly_name="colorscale", parent_name="densitymap", **kwargs): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='densitymap', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_customdata.py b/packages/python/plotly/plotly/validators/densitymap/_customdata.py index 3888bc7f3df..113a122a371 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_customdata.py +++ b/packages/python/plotly/plotly/validators/densitymap/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="densitymap", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='densitymap', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_customdatasrc.py b/packages/python/plotly/plotly/validators/densitymap/_customdatasrc.py index 226f1e56fe6..d13dcfe4577 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/densitymap/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="densitymap", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='densitymap', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_hoverinfo.py b/packages/python/plotly/plotly/validators/densitymap/_hoverinfo.py index cc43e269e60..82efdaf41d1 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/densitymap/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="densitymap", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["lon", "lat", "z", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='densitymap', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['lon', 'lat', 'z', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/densitymap/_hoverinfosrc.py index 7be3e5cc465..a57a11692c5 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/densitymap/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="densitymap", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='densitymap', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_hoverlabel.py b/packages/python/plotly/plotly/validators/densitymap/_hoverlabel.py index 378d347c951..53a6180fb1f 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/densitymap/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="densitymap", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='densitymap', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_hovertemplate.py b/packages/python/plotly/plotly/validators/densitymap/_hovertemplate.py index 1b5faa6295e..36346138b22 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/densitymap/_hovertemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="densitymap", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='densitymap', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/densitymap/_hovertemplatesrc.py index f7aa78f2deb..ea41352f06b 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/densitymap/_hovertemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertemplatesrc", parent_name="densitymap", **kwargs - ): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='densitymap', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_hovertext.py b/packages/python/plotly/plotly/validators/densitymap/_hovertext.py index db4426160e6..4000ff37f74 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_hovertext.py +++ b/packages/python/plotly/plotly/validators/densitymap/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="densitymap", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='densitymap', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_hovertextsrc.py b/packages/python/plotly/plotly/validators/densitymap/_hovertextsrc.py index df48a206382..eabfb4e3b07 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/densitymap/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="densitymap", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='densitymap', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_ids.py b/packages/python/plotly/plotly/validators/densitymap/_ids.py index a43157ae9d6..361ac42b945 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_ids.py +++ b/packages/python/plotly/plotly/validators/densitymap/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="densitymap", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='densitymap', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_idssrc.py b/packages/python/plotly/plotly/validators/densitymap/_idssrc.py index d0a668c4c85..8e9b2d1251c 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_idssrc.py +++ b/packages/python/plotly/plotly/validators/densitymap/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="densitymap", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='densitymap', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_lat.py b/packages/python/plotly/plotly/validators/densitymap/_lat.py index 661ecd8801a..c629a953bcb 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_lat.py +++ b/packages/python/plotly/plotly/validators/densitymap/_lat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LatValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="lat", parent_name="densitymap", **kwargs): - super(LatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LatValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='lat', + parent_name='densitymap', + **kwargs): + super(LatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_latsrc.py b/packages/python/plotly/plotly/validators/densitymap/_latsrc.py index c529788ce00..ef023a15c9a 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_latsrc.py +++ b/packages/python/plotly/plotly/validators/densitymap/_latsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LatsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="latsrc", parent_name="densitymap", **kwargs): - super(LatsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LatsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='latsrc', + parent_name='densitymap', + **kwargs): + super(LatsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_legend.py b/packages/python/plotly/plotly/validators/densitymap/_legend.py index af6a2fa50fb..a2ef93ad0a5 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_legend.py +++ b/packages/python/plotly/plotly/validators/densitymap/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="densitymap", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='densitymap', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_legendgroup.py b/packages/python/plotly/plotly/validators/densitymap/_legendgroup.py index 20ded0e45e9..d82140d2777 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/densitymap/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="densitymap", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='densitymap', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/densitymap/_legendgrouptitle.py index cf0424fed89..b1032530a2e 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/densitymap/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="densitymap", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='densitymap', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_legendrank.py b/packages/python/plotly/plotly/validators/densitymap/_legendrank.py index 49c77ac745d..63d8ed40e4c 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_legendrank.py +++ b/packages/python/plotly/plotly/validators/densitymap/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="densitymap", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='densitymap', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_legendwidth.py b/packages/python/plotly/plotly/validators/densitymap/_legendwidth.py index 7feb521caec..387fee450f6 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/densitymap/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="densitymap", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='densitymap', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_lon.py b/packages/python/plotly/plotly/validators/densitymap/_lon.py index efe517c5e75..c5b51df1295 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_lon.py +++ b/packages/python/plotly/plotly/validators/densitymap/_lon.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LonValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="lon", parent_name="densitymap", **kwargs): - super(LonValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LonValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='lon', + parent_name='densitymap', + **kwargs): + super(LonValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_lonsrc.py b/packages/python/plotly/plotly/validators/densitymap/_lonsrc.py index 11054034f36..2a42bee5445 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_lonsrc.py +++ b/packages/python/plotly/plotly/validators/densitymap/_lonsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LonsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="lonsrc", parent_name="densitymap", **kwargs): - super(LonsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LonsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='lonsrc', + parent_name='densitymap', + **kwargs): + super(LonsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_meta.py b/packages/python/plotly/plotly/validators/densitymap/_meta.py index dd3e68c27b2..9ab193a83df 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_meta.py +++ b/packages/python/plotly/plotly/validators/densitymap/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="densitymap", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='densitymap', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_metasrc.py b/packages/python/plotly/plotly/validators/densitymap/_metasrc.py index 9865267ced7..84c549b46fc 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_metasrc.py +++ b/packages/python/plotly/plotly/validators/densitymap/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="densitymap", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='densitymap', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_name.py b/packages/python/plotly/plotly/validators/densitymap/_name.py index ef4f0cc26be..8537d2d83f7 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_name.py +++ b/packages/python/plotly/plotly/validators/densitymap/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="densitymap", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='densitymap', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_opacity.py b/packages/python/plotly/plotly/validators/densitymap/_opacity.py index 087e4dc1e89..92355318a68 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_opacity.py +++ b/packages/python/plotly/plotly/validators/densitymap/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="densitymap", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='densitymap', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_radius.py b/packages/python/plotly/plotly/validators/densitymap/_radius.py index 3813194af91..b4c96c1752f 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_radius.py +++ b/packages/python/plotly/plotly/validators/densitymap/_radius.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class RadiusValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="radius", parent_name="densitymap", **kwargs): - super(RadiusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RadiusValidator(_bv.NumberValidator): + def __init__(self, plotly_name='radius', + parent_name='densitymap', + **kwargs): + super(RadiusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_radiussrc.py b/packages/python/plotly/plotly/validators/densitymap/_radiussrc.py index 67d4a956fd1..9614b05b116 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_radiussrc.py +++ b/packages/python/plotly/plotly/validators/densitymap/_radiussrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class RadiussrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="radiussrc", parent_name="densitymap", **kwargs): - super(RadiussrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RadiussrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='radiussrc', + parent_name='densitymap', + **kwargs): + super(RadiussrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_reversescale.py b/packages/python/plotly/plotly/validators/densitymap/_reversescale.py index 0c19b8acc10..9dfbe12f8fc 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_reversescale.py +++ b/packages/python/plotly/plotly/validators/densitymap/_reversescale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="reversescale", parent_name="densitymap", **kwargs): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='densitymap', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_showlegend.py b/packages/python/plotly/plotly/validators/densitymap/_showlegend.py index 54e25741fe4..0236493f49e 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_showlegend.py +++ b/packages/python/plotly/plotly/validators/densitymap/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="densitymap", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='densitymap', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_showscale.py b/packages/python/plotly/plotly/validators/densitymap/_showscale.py index bc814499201..650cfc58d11 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_showscale.py +++ b/packages/python/plotly/plotly/validators/densitymap/_showscale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showscale", parent_name="densitymap", **kwargs): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='densitymap', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_stream.py b/packages/python/plotly/plotly/validators/densitymap/_stream.py index 8e15d6df3c9..124dd6705f9 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_stream.py +++ b/packages/python/plotly/plotly/validators/densitymap/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="densitymap", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='densitymap', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_subplot.py b/packages/python/plotly/plotly/validators/densitymap/_subplot.py index e07727d382e..23d20c64fb7 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_subplot.py +++ b/packages/python/plotly/plotly/validators/densitymap/_subplot.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SubplotValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="subplot", parent_name="densitymap", **kwargs): - super(SubplotValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "map"), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SubplotValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='subplot', + parent_name='densitymap', + **kwargs): + super(SubplotValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'map'), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_text.py b/packages/python/plotly/plotly/validators/densitymap/_text.py index d077706f197..1fc86d49058 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_text.py +++ b/packages/python/plotly/plotly/validators/densitymap/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="densitymap", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='densitymap', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_textsrc.py b/packages/python/plotly/plotly/validators/densitymap/_textsrc.py index 8360be2ef3c..2f47b158dfc 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_textsrc.py +++ b/packages/python/plotly/plotly/validators/densitymap/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="densitymap", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='densitymap', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_uid.py b/packages/python/plotly/plotly/validators/densitymap/_uid.py index 5838e2b9068..93e2dd4b9ba 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_uid.py +++ b/packages/python/plotly/plotly/validators/densitymap/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="densitymap", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='densitymap', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_uirevision.py b/packages/python/plotly/plotly/validators/densitymap/_uirevision.py index 09644b9f3b2..eee5e440635 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_uirevision.py +++ b/packages/python/plotly/plotly/validators/densitymap/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="densitymap", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='densitymap', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_visible.py b/packages/python/plotly/plotly/validators/densitymap/_visible.py index aa7b0baa414..d1d8d2747dc 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_visible.py +++ b/packages/python/plotly/plotly/validators/densitymap/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="densitymap", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='densitymap', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_z.py b/packages/python/plotly/plotly/validators/densitymap/_z.py index d1425e8d8ed..88474d924d4 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_z.py +++ b/packages/python/plotly/plotly/validators/densitymap/_z.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="z", parent_name="densitymap", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='z', + parent_name='densitymap', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_zauto.py b/packages/python/plotly/plotly/validators/densitymap/_zauto.py index 3e7aa4c3680..ded738cfa92 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_zauto.py +++ b/packages/python/plotly/plotly/validators/densitymap/_zauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="zauto", parent_name="densitymap", **kwargs): - super(ZautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='zauto', + parent_name='densitymap', + **kwargs): + super(ZautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_zmax.py b/packages/python/plotly/plotly/validators/densitymap/_zmax.py index 3a1845d1147..8d00e71095d 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_zmax.py +++ b/packages/python/plotly/plotly/validators/densitymap/_zmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmax", parent_name="densitymap", **kwargs): - super(ZmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"zauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmax', + parent_name='densitymap', + **kwargs): + super(ZmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'zauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_zmid.py b/packages/python/plotly/plotly/validators/densitymap/_zmid.py index 03412b87ae6..99e98f804d4 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_zmid.py +++ b/packages/python/plotly/plotly/validators/densitymap/_zmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmid", parent_name="densitymap", **kwargs): - super(ZmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmid', + parent_name='densitymap', + **kwargs): + super(ZmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_zmin.py b/packages/python/plotly/plotly/validators/densitymap/_zmin.py index b693157220e..62e009237ba 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_zmin.py +++ b/packages/python/plotly/plotly/validators/densitymap/_zmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmin", parent_name="densitymap", **kwargs): - super(ZminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"zauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmin', + parent_name='densitymap', + **kwargs): + super(ZminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'zauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/_zsrc.py b/packages/python/plotly/plotly/validators/densitymap/_zsrc.py index 9a5cd928305..95894875726 100644 --- a/packages/python/plotly/plotly/validators/densitymap/_zsrc.py +++ b/packages/python/plotly/plotly/validators/densitymap/_zsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="zsrc", parent_name="densitymap", **kwargs): - super(ZsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='zsrc', + parent_name='densitymap', + **kwargs): + super(ZsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/__init__.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_bgcolor.py index 474ebf7e6ff..728735155e0 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="densitymap.colorbar", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='densitymap.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_bordercolor.py index 6ed5052c280..efc54e3b783 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="densitymap.colorbar", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='densitymap.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_borderwidth.py index 7e7307e856e..bbf789f8929 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_borderwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderwidth", parent_name="densitymap.colorbar", **kwargs - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='densitymap.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_dtick.py index 9a445738735..f3fc8257bba 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="densitymap.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='densitymap.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_exponentformat.py index 33744f718d8..08c64883a98 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_exponentformat.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="exponentformat", parent_name="densitymap.colorbar", **kwargs - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='densitymap.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_labelalias.py index e9cdf09b755..ddd2c1ebce0 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="densitymap.colorbar", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='densitymap.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_len.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_len.py index 881d5181d39..4b7cc7397ad 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_len.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="len", parent_name="densitymap.colorbar", **kwargs): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='densitymap.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_lenmode.py index 8ef47c61610..ccdc8214c5f 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_lenmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="lenmode", parent_name="densitymap.colorbar", **kwargs - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='densitymap.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_minexponent.py index c42b1831744..f91062a6e47 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="densitymap.colorbar", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='densitymap.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_nticks.py index d57b3960b6b..799c52627e5 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="densitymap.colorbar", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='densitymap.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_orientation.py index 26a8e2bffcb..07cfb4863f1 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_orientation.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="orientation", parent_name="densitymap.colorbar", **kwargs - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='densitymap.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_outlinecolor.py index 76c78242554..1cdb7321e2d 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_outlinecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="outlinecolor", parent_name="densitymap.colorbar", **kwargs - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='densitymap.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_outlinewidth.py index 916e4436308..a52f6869e7e 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_outlinewidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="outlinewidth", parent_name="densitymap.colorbar", **kwargs - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='densitymap.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_separatethousands.py index 1b9f8889eb9..35ac28366aa 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="densitymap.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='densitymap.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_showexponent.py index 67ed532dbb3..a463ab9c021 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="densitymap.colorbar", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='densitymap.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_showticklabels.py index 37c40a7a02b..7b924266924 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_showticklabels.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showticklabels", parent_name="densitymap.colorbar", **kwargs - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='densitymap.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_showtickprefix.py index 487e4e7c8f9..b18011a2a7b 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_showtickprefix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showtickprefix", parent_name="densitymap.colorbar", **kwargs - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='densitymap.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_showticksuffix.py index e53b962bc95..3d416ccd7a1 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_showticksuffix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showticksuffix", parent_name="densitymap.colorbar", **kwargs - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='densitymap.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_thickness.py index c2afb93dfd9..f1a5220bc37 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="densitymap.colorbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='densitymap.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_thicknessmode.py index 1ab2bd4cbad..699163be81a 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_thicknessmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="thicknessmode", parent_name="densitymap.colorbar", **kwargs - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='densitymap.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_tick0.py index c3344c9a989..36808238351 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="densitymap.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='densitymap.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickangle.py index 24be0c8fed4..1e06748de72 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="densitymap.colorbar", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='densitymap.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickcolor.py index 299312b593f..9588a8f73b5 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="densitymap.colorbar", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='densitymap.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickfont.py index b3814429fb0..5d54a0b248a 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="densitymap.colorbar", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='densitymap.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickformat.py index 8f6468d1754..119e8d4643e 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="densitymap.colorbar", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='densitymap.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickformatstopdefaults.py index 9f15487cc2c..4c62a9f6765 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="densitymap.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='densitymap.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickformatstops.py index 246540bd7a3..43dbd634e49 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickformatstops.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="tickformatstops", parent_name="densitymap.colorbar", **kwargs - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='densitymap.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticklabeloverflow.py index 8343e947d6c..48edab01163 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="densitymap.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='densitymap.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticklabelposition.py index 4dafbd4dd18..d7cad65e700 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="densitymap.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='densitymap.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticklabelstep.py index bbc9831a019..80f9f8ea8c5 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticklabelstep.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="ticklabelstep", parent_name="densitymap.colorbar", **kwargs - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='densitymap.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticklen.py index 788f23f7152..6d227f2c718 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="densitymap.colorbar", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='densitymap.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickmode.py index c367bdfd413..da743c3c603 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="densitymap.colorbar", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='densitymap.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickprefix.py index ec26278d17c..532e83f8a7d 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="densitymap.colorbar", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='densitymap.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticks.py index 5285b1d2921..dd243139b7b 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="densitymap.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='densitymap.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticksuffix.py index 0b0c4e75262..a31e5fc86f9 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="densitymap.colorbar", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='densitymap.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticktext.py index f0aeb9a37c4..950fe9091e7 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="densitymap.colorbar", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='densitymap.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticktextsrc.py index c9de006369c..8a9b2ffd274 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="densitymap.colorbar", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='densitymap.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickvals.py index f97c6b748db..d7086afde43 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="densitymap.colorbar", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='densitymap.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickvalssrc.py index 8fa1374b299..6ece3c5572f 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="densitymap.colorbar", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='densitymap.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickwidth.py index 7e6611586af..276c39f294c 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="densitymap.colorbar", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='densitymap.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_title.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_title.py index eced743943f..dfebb23b2a3 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="densitymap.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='densitymap.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_x.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_x.py index 00862d02e34..df5a7ecc1e9 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x", parent_name="densitymap.colorbar", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='densitymap.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_xanchor.py index edadd679208..00c0246f74f 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="densitymap.colorbar", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='densitymap.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_xpad.py index 7246fbc49ed..ca0b51c4dfc 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_xpad.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="xpad", parent_name="densitymap.colorbar", **kwargs): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='densitymap.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_xref.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_xref.py index 6c6ff5d8267..816fbe5fcdc 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_xref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xref", parent_name="densitymap.colorbar", **kwargs): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='densitymap.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_y.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_y.py index 65729202953..d6c692a121f 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y", parent_name="densitymap.colorbar", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='densitymap.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_yanchor.py index 9699046c258..20ff11cd3be 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="densitymap.colorbar", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='densitymap.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_ypad.py index 6adf6892868..9511329a228 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_ypad.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="ypad", parent_name="densitymap.colorbar", **kwargs): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='densitymap.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/_yref.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/_yref.py index 32367f3943f..583705bf525 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/_yref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yref", parent_name="densitymap.colorbar", **kwargs): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='densitymap.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_color.py index d61f0e619bd..ac2063355a0 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="densitymap.colorbar.tickfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='densitymap.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_family.py index bcc40f7e99d..a71eb332a83 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="densitymap.colorbar.tickfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='densitymap.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_lineposition.py index b50c31850c1..68a5fe9a075 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="densitymap.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='densitymap.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_shadow.py index 816b4c10d34..55b6fe2dcf4 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="densitymap.colorbar.tickfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='densitymap.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_size.py index 0c52100daab..fac9e8e41bb 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="densitymap.colorbar.tickfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='densitymap.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_style.py index 4b5b2e5e0cf..faf71b69bb6 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="densitymap.colorbar.tickfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='densitymap.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_textcase.py index b117fd97e3a..8aaf8c41881 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="densitymap.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='densitymap.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_variant.py index 43d5429a7bc..cd5057d9507 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="densitymap.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='densitymap.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_weight.py index bc52448f2ea..bfd3ad4f0a7 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickfont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="densitymap.colorbar.tickfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='densitymap.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickformatstop/_dtickrange.py index c9e4d6fa508..d61cde16540 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="densitymap.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - items=kwargs.pop( - "items", - [ - {"editType": "colorbars", "valType": "any"}, - {"editType": "colorbars", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='densitymap.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + items=kwargs.pop('items', [{'editType': 'colorbars', 'valType': 'any'}, {'editType': 'colorbars', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickformatstop/_enabled.py index fe621aaec32..d5d047b4ac8 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="densitymap.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='densitymap.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickformatstop/_name.py index 14dce8d1a9b..71cd3395b0d 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="densitymap.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='densitymap.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickformatstop/_templateitemname.py index 5f4d3feea14..ba6944192b8 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="densitymap.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='densitymap.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickformatstop/_value.py index c91b6ecfcc1..5d966fdfa74 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="densitymap.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='densitymap.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/title/_font.py index 9cde88d8c40..3e08beb2ba2 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="densitymap.colorbar.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='densitymap.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/title/_side.py index 73df2d1a16d..4562eb9b34e 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/title/_side.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="side", parent_name="densitymap.colorbar.title", **kwargs - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='densitymap.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/title/_text.py index 753d2f41eb4..793f4e9e734 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="densitymap.colorbar.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='densitymap.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_color.py index 4afb7138fe1..0fd3fa947ba 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="densitymap.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='densitymap.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_family.py index 9251fc4f03e..fe2140b9634 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="densitymap.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='densitymap.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_lineposition.py index ea261c1b145..d526f981dcb 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="densitymap.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='densitymap.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_shadow.py index 546dc2c25a3..682d63376ea 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="densitymap.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='densitymap.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_size.py index f35c3053a90..3e8773a1d67 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="densitymap.colorbar.title.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='densitymap.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_style.py index aa7ede87d07..f6f5f4bd964 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="densitymap.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='densitymap.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_textcase.py index 84ac4e7be38..e344a9aebc8 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="densitymap.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='densitymap.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_variant.py index 2241dc14f53..8b16bc85c44 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="densitymap.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='densitymap.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_weight.py index a3d3468060b..d519d72d754 100644 --- a/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/densitymap/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="densitymap.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='densitymap.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_align.py index 359e1767435..25fb6e7c81c 100644 --- a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_align.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="align", parent_name="densitymap.hoverlabel", **kwargs - ): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='densitymap.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_alignsrc.py index aa540fe66ef..06d4579b426 100644 --- a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="densitymap.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='densitymap.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_bgcolor.py index 01e692e74b9..e1fe6f9bbee 100644 --- a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="densitymap.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='densitymap.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_bgcolorsrc.py index 3fc15c10536..7accf67eb94 100644 --- a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="densitymap.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='densitymap.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_bordercolor.py index 0e748158292..b43a21fd177 100644 --- a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="densitymap.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='densitymap.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_bordercolorsrc.py index 3a9b87e42ba..bbc07236ac9 100644 --- a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="bordercolorsrc", - parent_name="densitymap.hoverlabel", - **kwargs, - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='densitymap.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_font.py index 690ffd3388d..061dc3efbfd 100644 --- a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_font.py @@ -1,88 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="densitymap.hoverlabel", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='densitymap.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_namelength.py index 3986a3c52fd..8e44a97c375 100644 --- a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="densitymap.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='densitymap.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_namelengthsrc.py index 28e48464e32..efd197f41af 100644 --- a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="densitymap.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='densitymap.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_color.py index 7ec0b1a0a92..acacdf7056f 100644 --- a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="densitymap.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='densitymap.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_colorsrc.py index f91f30a5c6f..6aeebdea7f5 100644 --- a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="densitymap.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='densitymap.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_family.py index 778fe05497a..e1676cdc562 100644 --- a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="densitymap.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='densitymap.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_familysrc.py index e75bacb3de7..73206b35e15 100644 --- a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_familysrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="familysrc", - parent_name="densitymap.hoverlabel.font", - **kwargs, - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='densitymap.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_lineposition.py index ea43d328fe5..7aa1d248ec5 100644 --- a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="densitymap.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='densitymap.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_linepositionsrc.py index fa4ce561012..408d056e0f8 100644 --- a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="densitymap.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='densitymap.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_shadow.py index d640ac34149..3666c04b4b2 100644 --- a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="densitymap.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='densitymap.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_shadowsrc.py index 62bdb504ee0..359b4992459 100644 --- a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="shadowsrc", - parent_name="densitymap.hoverlabel.font", - **kwargs, - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='densitymap.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_size.py index 9c53691c1b3..ba64fc5d01c 100644 --- a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="densitymap.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='densitymap.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_sizesrc.py index 6f223e4af5e..55b379f72eb 100644 --- a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="densitymap.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='densitymap.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_style.py index 35d781b48f1..f9492624d5b 100644 --- a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="densitymap.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='densitymap.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_stylesrc.py index 4393cf9db16..cce12469bab 100644 --- a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="densitymap.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='densitymap.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_textcase.py index 353e46d6a08..03546bb9378 100644 --- a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="densitymap.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='densitymap.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_textcasesrc.py index df358681b23..c4f9b973bf5 100644 --- a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="densitymap.hoverlabel.font", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='densitymap.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_variant.py index 05d9e4c1dc9..0a2a3e4e036 100644 --- a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="densitymap.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='densitymap.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_variantsrc.py index 91cc995be3d..2565623645c 100644 --- a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_variantsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="variantsrc", - parent_name="densitymap.hoverlabel.font", - **kwargs, - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='densitymap.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_weight.py index 2be30a42cc6..553969726d2 100644 --- a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="densitymap.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='densitymap.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_weightsrc.py index 7ca2aac5139..ae0033a3dac 100644 --- a/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/densitymap/hoverlabel/font/_weightsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="weightsrc", - parent_name="densitymap.hoverlabel.font", - **kwargs, - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='densitymap.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/_font.py index 5c7f7dcbbe0..3f46654ae08 100644 --- a/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="densitymap.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='densitymap.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/_text.py index 4273c022110..34d6047c802 100644 --- a/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="densitymap.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='densitymap.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_color.py index 0cc306f484e..d3de4341b84 100644 --- a/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="densitymap.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='densitymap.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_family.py index 1802968fd6a..2e443a9aa79 100644 --- a/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="densitymap.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='densitymap.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_lineposition.py index 79f1dae8f3b..46a4c427015 100644 --- a/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="densitymap.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='densitymap.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_shadow.py index 52b6e4823f4..f2b2ca6a161 100644 --- a/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="densitymap.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='densitymap.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_size.py index 8af2043b597..f70bbc90b22 100644 --- a/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="densitymap.legendgrouptitle.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='densitymap.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_style.py index 5501d3f784c..77fd4ae0b0b 100644 --- a/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="densitymap.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='densitymap.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_textcase.py index 07ae804b720..307cf3d81d2 100644 --- a/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="densitymap.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='densitymap.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_variant.py index 413ca169908..2b1e0551632 100644 --- a/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="densitymap.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='densitymap.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_weight.py index d2d0117204f..623ba40cdb3 100644 --- a/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/densitymap/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="densitymap.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='densitymap.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/stream/__init__.py b/packages/python/plotly/plotly/validators/densitymap/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/densitymap/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/densitymap/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/densitymap/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/densitymap/stream/_maxpoints.py index d7526879aff..a3a9b58e513 100644 --- a/packages/python/plotly/plotly/validators/densitymap/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/densitymap/stream/_maxpoints.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxpoints", parent_name="densitymap.stream", **kwargs - ): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='densitymap.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymap/stream/_token.py b/packages/python/plotly/plotly/validators/densitymap/stream/_token.py index 4563462b95b..e55c2762019 100644 --- a/packages/python/plotly/plotly/validators/densitymap/stream/_token.py +++ b/packages/python/plotly/plotly/validators/densitymap/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="densitymap.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='densitymap.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/__init__.py b/packages/python/plotly/plotly/validators/densitymapbox/__init__.py index 20b2797e60d..dcc540a66bb 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/__init__.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zsrc import ZsrcValidator from ._zmin import ZminValidator @@ -51,57 +50,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zsrc.ZsrcValidator", - "._zmin.ZminValidator", - "._zmid.ZmidValidator", - "._zmax.ZmaxValidator", - "._zauto.ZautoValidator", - "._z.ZValidator", - "._visible.VisibleValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._textsrc.TextsrcValidator", - "._text.TextValidator", - "._subplot.SubplotValidator", - "._stream.StreamValidator", - "._showscale.ShowscaleValidator", - "._showlegend.ShowlegendValidator", - "._reversescale.ReversescaleValidator", - "._radiussrc.RadiussrcValidator", - "._radius.RadiusValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._lonsrc.LonsrcValidator", - "._lon.LonValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._latsrc.LatsrcValidator", - "._lat.LatValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._below.BelowValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._zsrc.ZsrcValidator', '._zmin.ZminValidator', '._zmid.ZmidValidator', '._zmax.ZmaxValidator', '._zauto.ZautoValidator', '._z.ZValidator', '._visible.VisibleValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._textsrc.TextsrcValidator', '._text.TextValidator', '._subplot.SubplotValidator', '._stream.StreamValidator', '._showscale.ShowscaleValidator', '._showlegend.ShowlegendValidator', '._reversescale.ReversescaleValidator', '._radiussrc.RadiussrcValidator', '._radius.RadiusValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._lonsrc.LonsrcValidator', '._lon.LonValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._latsrc.LatsrcValidator', '._lat.LatValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._below.BelowValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_autocolorscale.py b/packages/python/plotly/plotly/validators/densitymapbox/_autocolorscale.py index cc0f8db697f..284beb346d2 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="densitymapbox", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='densitymapbox', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_below.py b/packages/python/plotly/plotly/validators/densitymapbox/_below.py index 7dd09f3fb67..c4606c77afd 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_below.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_below.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BelowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="below", parent_name="densitymapbox", **kwargs): - super(BelowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BelowValidator(_bv.StringValidator): + def __init__(self, plotly_name='below', + parent_name='densitymapbox', + **kwargs): + super(BelowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_coloraxis.py b/packages/python/plotly/plotly/validators/densitymapbox/_coloraxis.py index 73dfea234f9..722e8978d42 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_coloraxis.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="coloraxis", parent_name="densitymapbox", **kwargs): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='densitymapbox', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_colorbar.py b/packages/python/plotly/plotly/validators/densitymapbox/_colorbar.py index 7bbd65717b7..47db9a73597 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_colorbar.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_colorbar.py @@ -1,280 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="colorbar", parent_name="densitymapbox", **kwargs): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.density - mapbox.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.densitymapbox.colorbar.tickformatstopdefaults - ), sets the default property values to use for - elements of - densitymapbox.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.densitymapbox.colo - rbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='densitymapbox', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_colorscale.py b/packages/python/plotly/plotly/validators/densitymapbox/_colorscale.py index 5d7535f55dc..5469dab6ba5 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_colorscale.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_colorscale.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__(self, plotly_name="colorscale", parent_name="densitymapbox", **kwargs): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='densitymapbox', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_customdata.py b/packages/python/plotly/plotly/validators/densitymapbox/_customdata.py index 274fc490555..d757068d9d9 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_customdata.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="densitymapbox", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='densitymapbox', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_customdatasrc.py b/packages/python/plotly/plotly/validators/densitymapbox/_customdatasrc.py index 61393d074bb..ea2ffde376b 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_customdatasrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="customdatasrc", parent_name="densitymapbox", **kwargs - ): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='densitymapbox', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_hoverinfo.py b/packages/python/plotly/plotly/validators/densitymapbox/_hoverinfo.py index 950a686ff03..e2724aca4ba 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="densitymapbox", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["lon", "lat", "z", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='densitymapbox', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['lon', 'lat', 'z', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/densitymapbox/_hoverinfosrc.py index 2ec6a83a2ff..3c5d509dfae 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_hoverinfosrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hoverinfosrc", parent_name="densitymapbox", **kwargs - ): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='densitymapbox', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_hoverlabel.py b/packages/python/plotly/plotly/validators/densitymapbox/_hoverlabel.py index 80a44a2d724..ddd9104a77a 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="densitymapbox", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='densitymapbox', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_hovertemplate.py b/packages/python/plotly/plotly/validators/densitymapbox/_hovertemplate.py index 670a727a949..86d3efbd238 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_hovertemplate.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="hovertemplate", parent_name="densitymapbox", **kwargs - ): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='densitymapbox', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/densitymapbox/_hovertemplatesrc.py index 7319e1fbd61..a23696c305c 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_hovertemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertemplatesrc", parent_name="densitymapbox", **kwargs - ): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='densitymapbox', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_hovertext.py b/packages/python/plotly/plotly/validators/densitymapbox/_hovertext.py index 94c85df8845..f669dd6f196 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_hovertext.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="densitymapbox", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='densitymapbox', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_hovertextsrc.py b/packages/python/plotly/plotly/validators/densitymapbox/_hovertextsrc.py index f20201a7c82..f0b1471484c 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_hovertextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertextsrc", parent_name="densitymapbox", **kwargs - ): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='densitymapbox', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_ids.py b/packages/python/plotly/plotly/validators/densitymapbox/_ids.py index d19a5317af4..e21f8a01bdb 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_ids.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="densitymapbox", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='densitymapbox', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_idssrc.py b/packages/python/plotly/plotly/validators/densitymapbox/_idssrc.py index 9c96bec1a07..9544119dedd 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_idssrc.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="densitymapbox", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='densitymapbox', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_lat.py b/packages/python/plotly/plotly/validators/densitymapbox/_lat.py index 870fdd8cda3..b56b0037145 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_lat.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_lat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LatValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="lat", parent_name="densitymapbox", **kwargs): - super(LatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LatValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='lat', + parent_name='densitymapbox', + **kwargs): + super(LatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_latsrc.py b/packages/python/plotly/plotly/validators/densitymapbox/_latsrc.py index ede2490b482..46b656f833f 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_latsrc.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_latsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LatsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="latsrc", parent_name="densitymapbox", **kwargs): - super(LatsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LatsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='latsrc', + parent_name='densitymapbox', + **kwargs): + super(LatsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_legend.py b/packages/python/plotly/plotly/validators/densitymapbox/_legend.py index 16bb454f7b6..f984b3cddf1 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_legend.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="densitymapbox", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='densitymapbox', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_legendgroup.py b/packages/python/plotly/plotly/validators/densitymapbox/_legendgroup.py index 77d3e23edd1..0b0fe9bcc9b 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_legendgroup.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="legendgroup", parent_name="densitymapbox", **kwargs - ): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='densitymapbox', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/densitymapbox/_legendgrouptitle.py index e882330a10d..6775cc7f163 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="densitymapbox", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='densitymapbox', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_legendrank.py b/packages/python/plotly/plotly/validators/densitymapbox/_legendrank.py index 516ceabc881..7dd0cad3fef 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_legendrank.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="densitymapbox", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='densitymapbox', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_legendwidth.py b/packages/python/plotly/plotly/validators/densitymapbox/_legendwidth.py index 83b4780333f..55f9c86adb2 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_legendwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="legendwidth", parent_name="densitymapbox", **kwargs - ): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='densitymapbox', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_lon.py b/packages/python/plotly/plotly/validators/densitymapbox/_lon.py index a0a05d0f826..9516d4d5fa9 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_lon.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_lon.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LonValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="lon", parent_name="densitymapbox", **kwargs): - super(LonValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LonValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='lon', + parent_name='densitymapbox', + **kwargs): + super(LonValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_lonsrc.py b/packages/python/plotly/plotly/validators/densitymapbox/_lonsrc.py index 8036846101b..c048a0cb947 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_lonsrc.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_lonsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LonsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="lonsrc", parent_name="densitymapbox", **kwargs): - super(LonsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LonsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='lonsrc', + parent_name='densitymapbox', + **kwargs): + super(LonsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_meta.py b/packages/python/plotly/plotly/validators/densitymapbox/_meta.py index 5921decaab2..560d7b4a275 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_meta.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="densitymapbox", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='densitymapbox', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_metasrc.py b/packages/python/plotly/plotly/validators/densitymapbox/_metasrc.py index efab5193846..af34080d5a6 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_metasrc.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="densitymapbox", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='densitymapbox', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_name.py b/packages/python/plotly/plotly/validators/densitymapbox/_name.py index 28577c0d0ca..a9d47e181ca 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_name.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="densitymapbox", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='densitymapbox', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_opacity.py b/packages/python/plotly/plotly/validators/densitymapbox/_opacity.py index 2d1c5290903..4a73ea9bb0a 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_opacity.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="densitymapbox", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='densitymapbox', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_radius.py b/packages/python/plotly/plotly/validators/densitymapbox/_radius.py index 7ae95d91f0a..8aa905fba9a 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_radius.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_radius.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class RadiusValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="radius", parent_name="densitymapbox", **kwargs): - super(RadiusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RadiusValidator(_bv.NumberValidator): + def __init__(self, plotly_name='radius', + parent_name='densitymapbox', + **kwargs): + super(RadiusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_radiussrc.py b/packages/python/plotly/plotly/validators/densitymapbox/_radiussrc.py index f459449272f..b6ebc7016ef 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_radiussrc.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_radiussrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class RadiussrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="radiussrc", parent_name="densitymapbox", **kwargs): - super(RadiussrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RadiussrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='radiussrc', + parent_name='densitymapbox', + **kwargs): + super(RadiussrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_reversescale.py b/packages/python/plotly/plotly/validators/densitymapbox/_reversescale.py index d8d4b6f411e..63bcfb78f11 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_reversescale.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="densitymapbox", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='densitymapbox', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_showlegend.py b/packages/python/plotly/plotly/validators/densitymapbox/_showlegend.py index e78a59ac7b7..e17626caeb8 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_showlegend.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="densitymapbox", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='densitymapbox', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_showscale.py b/packages/python/plotly/plotly/validators/densitymapbox/_showscale.py index 033a7f4fc3a..05cfa662a77 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_showscale.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_showscale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showscale", parent_name="densitymapbox", **kwargs): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='densitymapbox', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_stream.py b/packages/python/plotly/plotly/validators/densitymapbox/_stream.py index d7a2abfa90a..af833f174f3 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_stream.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="densitymapbox", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='densitymapbox', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_subplot.py b/packages/python/plotly/plotly/validators/densitymapbox/_subplot.py index 42db8813e43..aa0ce433318 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_subplot.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_subplot.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SubplotValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="subplot", parent_name="densitymapbox", **kwargs): - super(SubplotValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "mapbox"), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SubplotValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='subplot', + parent_name='densitymapbox', + **kwargs): + super(SubplotValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'mapbox'), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_text.py b/packages/python/plotly/plotly/validators/densitymapbox/_text.py index 2bcf5c6cee7..ddcca27fe96 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_text.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="densitymapbox", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='densitymapbox', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_textsrc.py b/packages/python/plotly/plotly/validators/densitymapbox/_textsrc.py index 641eba06814..09bd0cbed81 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_textsrc.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="densitymapbox", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='densitymapbox', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_uid.py b/packages/python/plotly/plotly/validators/densitymapbox/_uid.py index afd1c30efff..b966d025b5b 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_uid.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="densitymapbox", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='densitymapbox', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_uirevision.py b/packages/python/plotly/plotly/validators/densitymapbox/_uirevision.py index ed627de7bc3..994300874b8 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_uirevision.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="densitymapbox", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='densitymapbox', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_visible.py b/packages/python/plotly/plotly/validators/densitymapbox/_visible.py index 915b04b8e20..edd492caac9 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_visible.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="densitymapbox", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='densitymapbox', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_z.py b/packages/python/plotly/plotly/validators/densitymapbox/_z.py index d2aa22219af..1dcf3429b2a 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_z.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_z.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="z", parent_name="densitymapbox", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='z', + parent_name='densitymapbox', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_zauto.py b/packages/python/plotly/plotly/validators/densitymapbox/_zauto.py index e095394f995..65ebb73531c 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_zauto.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_zauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="zauto", parent_name="densitymapbox", **kwargs): - super(ZautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='zauto', + parent_name='densitymapbox', + **kwargs): + super(ZautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_zmax.py b/packages/python/plotly/plotly/validators/densitymapbox/_zmax.py index ac4aaa28c0d..b978b78c195 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_zmax.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_zmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmax", parent_name="densitymapbox", **kwargs): - super(ZmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"zauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmax', + parent_name='densitymapbox', + **kwargs): + super(ZmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'zauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_zmid.py b/packages/python/plotly/plotly/validators/densitymapbox/_zmid.py index 394824e2c59..534e7a41d51 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_zmid.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_zmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmid", parent_name="densitymapbox", **kwargs): - super(ZmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmid', + parent_name='densitymapbox', + **kwargs): + super(ZmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_zmin.py b/packages/python/plotly/plotly/validators/densitymapbox/_zmin.py index e95a5582ce0..5f746e2902a 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_zmin.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_zmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmin", parent_name="densitymapbox", **kwargs): - super(ZminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"zauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmin', + parent_name='densitymapbox', + **kwargs): + super(ZminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'zauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/_zsrc.py b/packages/python/plotly/plotly/validators/densitymapbox/_zsrc.py index d05f51ff271..96783ce1014 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/_zsrc.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/_zsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="zsrc", parent_name="densitymapbox", **kwargs): - super(ZsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='zsrc', + parent_name='densitymapbox', + **kwargs): + super(ZsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/__init__.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_bgcolor.py index 38f98918087..f5af27f3bd6 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="densitymapbox.colorbar", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='densitymapbox.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_bordercolor.py index ca48a911c62..cc16cc73fc5 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="densitymapbox.colorbar", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='densitymapbox.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_borderwidth.py index a2bdeb9322f..e092d14d20e 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_borderwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderwidth", parent_name="densitymapbox.colorbar", **kwargs - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='densitymapbox.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_dtick.py index c0339fdeb8d..50c8798ff26 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="densitymapbox.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='densitymapbox.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_exponentformat.py index 447c583d695..4115af144d0 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_exponentformat.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="exponentformat", - parent_name="densitymapbox.colorbar", - **kwargs, - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='densitymapbox.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_labelalias.py index 49c84fa0fe7..d02a4371d1c 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="densitymapbox.colorbar", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='densitymapbox.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_len.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_len.py index 80a292f2018..331903a53e9 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_len.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="len", parent_name="densitymapbox.colorbar", **kwargs - ): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='densitymapbox.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_lenmode.py index a6c5bcdcd56..ca468363eb8 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_lenmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="lenmode", parent_name="densitymapbox.colorbar", **kwargs - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='densitymapbox.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_minexponent.py index 9cb34db3cff..94fd2599e95 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="densitymapbox.colorbar", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='densitymapbox.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_nticks.py index 792c2ae2583..cc31fa6e732 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="densitymapbox.colorbar", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='densitymapbox.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_orientation.py index 6994d992b37..672560df315 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_orientation.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="orientation", parent_name="densitymapbox.colorbar", **kwargs - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='densitymapbox.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_outlinecolor.py index adb140cd1d7..cb566decb6b 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_outlinecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="outlinecolor", parent_name="densitymapbox.colorbar", **kwargs - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='densitymapbox.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_outlinewidth.py index 0c6f0a72b4a..d86d0310839 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_outlinewidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="outlinewidth", parent_name="densitymapbox.colorbar", **kwargs - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='densitymapbox.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_separatethousands.py index 71a02998ae2..939436d4b57 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="densitymapbox.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='densitymapbox.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_showexponent.py index 7f75a5b53c6..ed6f2eac615 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="densitymapbox.colorbar", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='densitymapbox.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_showticklabels.py index eb968b241bd..cb1583d595d 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="densitymapbox.colorbar", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='densitymapbox.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_showtickprefix.py index 12855ca20fc..18a471365bb 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="densitymapbox.colorbar", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='densitymapbox.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_showticksuffix.py index 6dde31ab690..601a5ade127 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="densitymapbox.colorbar", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='densitymapbox.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_thickness.py index e843e66e5d1..f716aa6e632 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="densitymapbox.colorbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='densitymapbox.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_thicknessmode.py index bf2f3296642..d3c0ecc8e1b 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_thicknessmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="thicknessmode", - parent_name="densitymapbox.colorbar", - **kwargs, - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='densitymapbox.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tick0.py index dfe2340a6d3..eedc81422b7 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="densitymapbox.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='densitymapbox.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickangle.py index 19d41869636..a49be4209c8 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="densitymapbox.colorbar", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='densitymapbox.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickcolor.py index b97e1d1134b..76b9a6384c1 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="densitymapbox.colorbar", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='densitymapbox.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickfont.py index eda90788df0..3b5fb4afafb 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="densitymapbox.colorbar", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='densitymapbox.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickformat.py index 8acdd345f7f..0f9e5349337 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="densitymapbox.colorbar", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='densitymapbox.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickformatstopdefaults.py index 81208ad347b..480e6a8278a 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="densitymapbox.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='densitymapbox.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickformatstops.py index 10da5cf9cc4..06110d380a1 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="densitymapbox.colorbar", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='densitymapbox.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticklabeloverflow.py index 738c8f594e9..44e14803a6d 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="densitymapbox.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='densitymapbox.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticklabelposition.py index ea380a22780..fb4a8f31be2 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="densitymapbox.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='densitymapbox.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticklabelstep.py index 1cacbd85f3c..1a031d5a977 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticklabelstep.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="ticklabelstep", - parent_name="densitymapbox.colorbar", - **kwargs, - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='densitymapbox.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticklen.py index d748c1574c0..a57a3ca705e 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="densitymapbox.colorbar", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='densitymapbox.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickmode.py index 0a87945e600..86b23642677 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="densitymapbox.colorbar", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='densitymapbox.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickprefix.py index 23919e22af1..fb46a06c7ee 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="densitymapbox.colorbar", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='densitymapbox.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticks.py index 7d309de59de..da58f122f0e 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="densitymapbox.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='densitymapbox.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticksuffix.py index 9d7bd9a2382..ee89db72d6a 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="densitymapbox.colorbar", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='densitymapbox.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticktext.py index cbca06f74cf..3674ace7853 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="densitymapbox.colorbar", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='densitymapbox.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticktextsrc.py index 0b0315550e5..6847dd409ed 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="densitymapbox.colorbar", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='densitymapbox.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickvals.py index 072534e43aa..219d45247fd 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="densitymapbox.colorbar", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='densitymapbox.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickvalssrc.py index 23f65191ff6..7b6a0cc8af1 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="densitymapbox.colorbar", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='densitymapbox.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickwidth.py index 08f52545267..41e2e966198 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="densitymapbox.colorbar", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='densitymapbox.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_title.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_title.py index f7b14ed2b4f..66dfc1fc5a5 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="densitymapbox.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='densitymapbox.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_x.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_x.py index ed1cd46aa2d..4abd153de4b 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x", parent_name="densitymapbox.colorbar", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='densitymapbox.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_xanchor.py index 24fa481d7e9..022ef17b357 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="densitymapbox.colorbar", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='densitymapbox.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_xpad.py index c170e013a23..3269e92bb2f 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_xpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="xpad", parent_name="densitymapbox.colorbar", **kwargs - ): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='densitymapbox.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_xref.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_xref.py index faceafa65b7..f49cf1d9ad7 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xref", parent_name="densitymapbox.colorbar", **kwargs - ): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='densitymapbox.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_y.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_y.py index 9f9c139d06c..7dbd764bac6 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y", parent_name="densitymapbox.colorbar", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='densitymapbox.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_yanchor.py index 1e3e73b8133..3790f197fd3 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="densitymapbox.colorbar", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='densitymapbox.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ypad.py index d8cd2ce40ce..15d21448091 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_ypad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ypad", parent_name="densitymapbox.colorbar", **kwargs - ): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='densitymapbox.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_yref.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_yref.py index c8072680f95..16e5f37f9af 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yref", parent_name="densitymapbox.colorbar", **kwargs - ): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='densitymapbox.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_color.py index 1086ca7d84c..f02dc6fc1a0 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="densitymapbox.colorbar.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='densitymapbox.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_family.py index 1aa2c013a0d..e907304d587 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="densitymapbox.colorbar.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='densitymapbox.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_lineposition.py index 4a254bdafba..1ad7f1274d9 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="densitymapbox.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='densitymapbox.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_shadow.py index 8ec7d25c92e..bffd06de8fd 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="densitymapbox.colorbar.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='densitymapbox.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_size.py index 9bbe27933d2..2ab97bd4ee2 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="densitymapbox.colorbar.tickfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='densitymapbox.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_style.py index 36313413abb..50e5cd876ca 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="densitymapbox.colorbar.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='densitymapbox.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_textcase.py index 0802a6dc635..ff56b0ebd6c 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="densitymapbox.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='densitymapbox.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_variant.py index 3f52f1e1c69..c8bc8c04edf 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="densitymapbox.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='densitymapbox.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_weight.py index 78a0a80b2aa..517b3b378e4 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="densitymapbox.colorbar.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='densitymapbox.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickformatstop/_dtickrange.py index 35cac42d442..b9e7dfb264f 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="densitymapbox.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - items=kwargs.pop( - "items", - [ - {"editType": "colorbars", "valType": "any"}, - {"editType": "colorbars", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='densitymapbox.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + items=kwargs.pop('items', [{'editType': 'colorbars', 'valType': 'any'}, {'editType': 'colorbars', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickformatstop/_enabled.py index a9401037fa6..5a57a4dd55f 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="densitymapbox.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='densitymapbox.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickformatstop/_name.py index 2219b97b16c..21c14200743 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="densitymapbox.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='densitymapbox.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickformatstop/_templateitemname.py index 827c5cce9db..45bf7df2075 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="densitymapbox.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='densitymapbox.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickformatstop/_value.py index 31de4f49ef8..fdde979d9e4 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="densitymapbox.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='densitymapbox.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/_font.py index e9c02756208..17a97d60219 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="densitymapbox.colorbar.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='densitymapbox.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/_side.py index ea9f3b4d002..319d5700101 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/_side.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="side", parent_name="densitymapbox.colorbar.title", **kwargs - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='densitymapbox.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/_text.py index c8ee9822143..cc3a6a6a42f 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="densitymapbox.colorbar.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='densitymapbox.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_color.py index 48e65250aef..b8f1159916c 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="densitymapbox.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='densitymapbox.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_family.py index 71d52e9aae4..68aeed7825f 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="densitymapbox.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='densitymapbox.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_lineposition.py index a3ee0a98d4e..1682558d30e 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="densitymapbox.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='densitymapbox.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_shadow.py index ce68c7b2768..c9e2fbbc63a 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="densitymapbox.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='densitymapbox.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_size.py index fe3d46e3fa6..194bddc2bbd 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="densitymapbox.colorbar.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='densitymapbox.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_style.py index b43ed8f1e18..f18adeb4563 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="densitymapbox.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='densitymapbox.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_textcase.py index f919f97e47d..361959abd9e 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="densitymapbox.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='densitymapbox.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_variant.py index bbc8d7c5054..cd5c4fb679b 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="densitymapbox.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='densitymapbox.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_weight.py index cb807db589b..ed6567bc5c9 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="densitymapbox.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='densitymapbox.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_align.py index a86abc49bfe..94762d52552 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_align.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="align", parent_name="densitymapbox.hoverlabel", **kwargs - ): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='densitymapbox.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_alignsrc.py index 10d7d4ec953..b29c57f5697 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="densitymapbox.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='densitymapbox.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_bgcolor.py index 9edbe783401..2db39053d17 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="densitymapbox.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='densitymapbox.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_bgcolorsrc.py index 87fcb8236fd..57c03da52ed 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="densitymapbox.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='densitymapbox.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_bordercolor.py index b627047eec0..dad1c291ae0 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_bordercolor.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bordercolor", - parent_name="densitymapbox.hoverlabel", - **kwargs, - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='densitymapbox.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_bordercolorsrc.py index ad5cbc6de22..04e3ee05cd5 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="bordercolorsrc", - parent_name="densitymapbox.hoverlabel", - **kwargs, - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='densitymapbox.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_font.py index fc32d07df41..0803dc3c71b 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_font.py @@ -1,88 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="densitymapbox.hoverlabel", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='densitymapbox.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_namelength.py index 9046eb5eb64..517979eaa5f 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="densitymapbox.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='densitymapbox.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_namelengthsrc.py index 7d3efc6452c..6393292b7e1 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/_namelengthsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="namelengthsrc", - parent_name="densitymapbox.hoverlabel", - **kwargs, - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='densitymapbox.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_color.py index 5e50473755e..0544bfa4b57 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="densitymapbox.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='densitymapbox.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_colorsrc.py index 7c416090ee0..2a37172d2a7 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_colorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="colorsrc", - parent_name="densitymapbox.hoverlabel.font", - **kwargs, - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='densitymapbox.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_family.py index cec0b2dcc98..d7133f8eb54 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_family.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="densitymapbox.hoverlabel.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='densitymapbox.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_familysrc.py index f9bcfa260bd..5e6f6ba70d3 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_familysrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="familysrc", - parent_name="densitymapbox.hoverlabel.font", - **kwargs, - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='densitymapbox.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_lineposition.py index ff46063cff9..76b393aeeae 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="densitymapbox.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='densitymapbox.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_linepositionsrc.py index 27c7fe32b64..0310c1c5b92 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="densitymapbox.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='densitymapbox.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_shadow.py index e2ab26b034e..7b25c46482d 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_shadow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="densitymapbox.hoverlabel.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='densitymapbox.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_shadowsrc.py index f4990fa48c1..31f3208e92e 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="shadowsrc", - parent_name="densitymapbox.hoverlabel.font", - **kwargs, - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='densitymapbox.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_size.py index 55ba87c47e0..fa9fefa840a 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="densitymapbox.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='densitymapbox.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_sizesrc.py index 9fcdeecc1d1..f51a9ff784b 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_sizesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="sizesrc", - parent_name="densitymapbox.hoverlabel.font", - **kwargs, - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='densitymapbox.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_style.py index ac23a1cbac9..afa954a0220 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="densitymapbox.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='densitymapbox.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_stylesrc.py index 7cd8ec97773..72f7d0eaca7 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_stylesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="stylesrc", - parent_name="densitymapbox.hoverlabel.font", - **kwargs, - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='densitymapbox.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_textcase.py index 8cbbbe016f5..33888e94717 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_textcase.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="densitymapbox.hoverlabel.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='densitymapbox.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_textcasesrc.py index 82fa3546ce7..9a7c027d30d 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="densitymapbox.hoverlabel.font", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='densitymapbox.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_variant.py index df60391d754..1bb8b3c8d87 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_variant.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="densitymapbox.hoverlabel.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='densitymapbox.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_variantsrc.py index 7a9a592faff..d5e191f938e 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_variantsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="variantsrc", - parent_name="densitymapbox.hoverlabel.font", - **kwargs, - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='densitymapbox.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_weight.py index 671055a7af7..b921f583b42 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_weight.py @@ -1,20 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="densitymapbox.hoverlabel.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='densitymapbox.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_weightsrc.py index 3e70e0bc2f9..67fa75c4542 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/hoverlabel/font/_weightsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="weightsrc", - parent_name="densitymapbox.hoverlabel.font", - **kwargs, - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='densitymapbox.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/_font.py index a1ed90a8a7f..4faec6cacd3 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="densitymapbox.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='densitymapbox.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/_text.py index f213fc5a388..8f3db678941 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="densitymapbox.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='densitymapbox.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_color.py index da9fe0d0af4..d57b57c2882 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="densitymapbox.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='densitymapbox.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_family.py index 5d00da65c07..7545de4b3a5 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="densitymapbox.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='densitymapbox.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_lineposition.py index e1cc78ad782..174f0d71710 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="densitymapbox.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='densitymapbox.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_shadow.py index 018d8957f55..e13dd5469e3 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="densitymapbox.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='densitymapbox.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_size.py index 506317e98c8..8a70a10fdde 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="densitymapbox.legendgrouptitle.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='densitymapbox.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_style.py index 4c84ca3ceec..dc008928221 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="densitymapbox.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='densitymapbox.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_textcase.py index fc05c6588a4..505f53835c8 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="densitymapbox.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='densitymapbox.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_variant.py index 234a13231be..15385f5ac13 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="densitymapbox.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='densitymapbox.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_weight.py index 14f58fdcbe7..580c626c780 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="densitymapbox.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='densitymapbox.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/stream/__init__.py b/packages/python/plotly/plotly/validators/densitymapbox/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/densitymapbox/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/densitymapbox/stream/_maxpoints.py index c89d0c32d65..2669b2ec0f8 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/stream/_maxpoints.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxpoints", parent_name="densitymapbox.stream", **kwargs - ): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='densitymapbox.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/densitymapbox/stream/_token.py b/packages/python/plotly/plotly/validators/densitymapbox/stream/_token.py index 3a14de66743..749ed0723d9 100644 --- a/packages/python/plotly/plotly/validators/densitymapbox/stream/_token.py +++ b/packages/python/plotly/plotly/validators/densitymapbox/stream/_token.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="token", parent_name="densitymapbox.stream", **kwargs - ): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='densitymapbox.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/frame/__init__.py b/packages/python/plotly/plotly/validators/frame/__init__.py index 447e3026277..8335a4b35a2 100644 --- a/packages/python/plotly/plotly/validators/frame/__init__.py +++ b/packages/python/plotly/plotly/validators/frame/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._traces import TracesValidator from ._name import NameValidator @@ -10,16 +9,10 @@ from ._baseframe import BaseframeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._traces.TracesValidator", - "._name.NameValidator", - "._layout.LayoutValidator", - "._group.GroupValidator", - "._data.DataValidator", - "._baseframe.BaseframeValidator", - ], + ['._traces.TracesValidator', '._name.NameValidator', '._layout.LayoutValidator', '._group.GroupValidator', '._data.DataValidator', '._baseframe.BaseframeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/frame/_baseframe.py b/packages/python/plotly/plotly/validators/frame/_baseframe.py index e205b0282b5..1d7ac038c46 100644 --- a/packages/python/plotly/plotly/validators/frame/_baseframe.py +++ b/packages/python/plotly/plotly/validators/frame/_baseframe.py @@ -1,8 +1,12 @@ -import _plotly_utils.basevalidators -class BaseframeValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="baseframe", parent_name="frame", **kwargs): - super(BaseframeValidator, self).__init__( - plotly_name=plotly_name, parent_name=parent_name, **kwargs - ) +import _plotly_utils.basevalidators as _bv + + +class BaseframeValidator(_bv.StringValidator): + def __init__(self, plotly_name='baseframe', + parent_name='frame', + **kwargs): + super(BaseframeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/frame/_data.py b/packages/python/plotly/plotly/validators/frame/_data.py index b44c421387e..e1d11d3632e 100644 --- a/packages/python/plotly/plotly/validators/frame/_data.py +++ b/packages/python/plotly/plotly/validators/frame/_data.py @@ -1,8 +1,12 @@ -import plotly.validators -class DataValidator(plotly.validators.DataValidator): - def __init__(self, plotly_name="data", parent_name="frame", **kwargs): - super(DataValidator, self).__init__( - plotly_name=plotly_name, parent_name=parent_name, **kwargs - ) +import plotly.validators as _bv + + +class DataValidator(_bv.DataValidator): + def __init__(self, plotly_name='data', + parent_name='frame', + **kwargs): + super(DataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/frame/_group.py b/packages/python/plotly/plotly/validators/frame/_group.py index f3885f16aeb..9f59fd85c7d 100644 --- a/packages/python/plotly/plotly/validators/frame/_group.py +++ b/packages/python/plotly/plotly/validators/frame/_group.py @@ -1,8 +1,12 @@ -import _plotly_utils.basevalidators -class GroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="group", parent_name="frame", **kwargs): - super(GroupValidator, self).__init__( - plotly_name=plotly_name, parent_name=parent_name, **kwargs - ) +import _plotly_utils.basevalidators as _bv + + +class GroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='group', + parent_name='frame', + **kwargs): + super(GroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/frame/_layout.py b/packages/python/plotly/plotly/validators/frame/_layout.py index 56ea4aa01eb..7fc317a54c4 100644 --- a/packages/python/plotly/plotly/validators/frame/_layout.py +++ b/packages/python/plotly/plotly/validators/frame/_layout.py @@ -1,8 +1,12 @@ -import plotly.validators -class LayoutValidator(plotly.validators.LayoutValidator): - def __init__(self, plotly_name="layout", parent_name="frame", **kwargs): - super(LayoutValidator, self).__init__( - plotly_name=plotly_name, parent_name=parent_name, **kwargs - ) +import plotly.validators as _bv + + +class LayoutValidator(_bv.LayoutValidator): + def __init__(self, plotly_name='layout', + parent_name='frame', + **kwargs): + super(LayoutValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/frame/_name.py b/packages/python/plotly/plotly/validators/frame/_name.py index dbad612831e..078cadb874b 100644 --- a/packages/python/plotly/plotly/validators/frame/_name.py +++ b/packages/python/plotly/plotly/validators/frame/_name.py @@ -1,8 +1,12 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="frame", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, parent_name=parent_name, **kwargs - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='frame', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/frame/_traces.py b/packages/python/plotly/plotly/validators/frame/_traces.py index 62ab82eaa6e..666c16c00bd 100644 --- a/packages/python/plotly/plotly/validators/frame/_traces.py +++ b/packages/python/plotly/plotly/validators/frame/_traces.py @@ -1,8 +1,12 @@ -import _plotly_utils.basevalidators -class TracesValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="traces", parent_name="frame", **kwargs): - super(TracesValidator, self).__init__( - plotly_name=plotly_name, parent_name=parent_name, **kwargs - ) +import _plotly_utils.basevalidators as _bv + + +class TracesValidator(_bv.AnyValidator): + def __init__(self, plotly_name='traces', + parent_name='frame', + **kwargs): + super(TracesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/__init__.py b/packages/python/plotly/plotly/validators/funnel/__init__.py index b1419916a76..88e5587f0ac 100644 --- a/packages/python/plotly/plotly/validators/funnel/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zorder import ZorderValidator from ._ysrc import YsrcValidator @@ -70,76 +69,10 @@ from ._alignmentgroup import AlignmentgroupValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zorder.ZorderValidator", - "._ysrc.YsrcValidator", - "._yperiodalignment.YperiodalignmentValidator", - "._yperiod0.Yperiod0Validator", - "._yperiod.YperiodValidator", - "._yhoverformat.YhoverformatValidator", - "._yaxis.YaxisValidator", - "._y0.Y0Validator", - "._y.YValidator", - "._xsrc.XsrcValidator", - "._xperiodalignment.XperiodalignmentValidator", - "._xperiod0.Xperiod0Validator", - "._xperiod.XperiodValidator", - "._xhoverformat.XhoverformatValidator", - "._xaxis.XaxisValidator", - "._x0.X0Validator", - "._x.XValidator", - "._width.WidthValidator", - "._visible.VisibleValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._texttemplatesrc.TexttemplatesrcValidator", - "._texttemplate.TexttemplateValidator", - "._textsrc.TextsrcValidator", - "._textpositionsrc.TextpositionsrcValidator", - "._textposition.TextpositionValidator", - "._textinfo.TextinfoValidator", - "._textfont.TextfontValidator", - "._textangle.TextangleValidator", - "._text.TextValidator", - "._stream.StreamValidator", - "._showlegend.ShowlegendValidator", - "._selectedpoints.SelectedpointsValidator", - "._outsidetextfont.OutsidetextfontValidator", - "._orientation.OrientationValidator", - "._opacity.OpacityValidator", - "._offsetgroup.OffsetgroupValidator", - "._offset.OffsetValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._marker.MarkerValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._insidetextfont.InsidetextfontValidator", - "._insidetextanchor.InsidetextanchorValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._dy.DyValidator", - "._dx.DxValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._constraintext.ConstraintextValidator", - "._connector.ConnectorValidator", - "._cliponaxis.CliponaxisValidator", - "._alignmentgroup.AlignmentgroupValidator", - ], + ['._zorder.ZorderValidator', '._ysrc.YsrcValidator', '._yperiodalignment.YperiodalignmentValidator', '._yperiod0.Yperiod0Validator', '._yperiod.YperiodValidator', '._yhoverformat.YhoverformatValidator', '._yaxis.YaxisValidator', '._y0.Y0Validator', '._y.YValidator', '._xsrc.XsrcValidator', '._xperiodalignment.XperiodalignmentValidator', '._xperiod0.Xperiod0Validator', '._xperiod.XperiodValidator', '._xhoverformat.XhoverformatValidator', '._xaxis.XaxisValidator', '._x0.X0Validator', '._x.XValidator', '._width.WidthValidator', '._visible.VisibleValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._texttemplatesrc.TexttemplatesrcValidator', '._texttemplate.TexttemplateValidator', '._textsrc.TextsrcValidator', '._textpositionsrc.TextpositionsrcValidator', '._textposition.TextpositionValidator', '._textinfo.TextinfoValidator', '._textfont.TextfontValidator', '._textangle.TextangleValidator', '._text.TextValidator', '._stream.StreamValidator', '._showlegend.ShowlegendValidator', '._selectedpoints.SelectedpointsValidator', '._outsidetextfont.OutsidetextfontValidator', '._orientation.OrientationValidator', '._opacity.OpacityValidator', '._offsetgroup.OffsetgroupValidator', '._offset.OffsetValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._marker.MarkerValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._insidetextfont.InsidetextfontValidator', '._insidetextanchor.InsidetextanchorValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._dy.DyValidator', '._dx.DxValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._constraintext.ConstraintextValidator', '._connector.ConnectorValidator', '._cliponaxis.CliponaxisValidator', '._alignmentgroup.AlignmentgroupValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnel/_alignmentgroup.py b/packages/python/plotly/plotly/validators/funnel/_alignmentgroup.py index 24d02b9cc41..fbfd4f0400b 100644 --- a/packages/python/plotly/plotly/validators/funnel/_alignmentgroup.py +++ b/packages/python/plotly/plotly/validators/funnel/_alignmentgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AlignmentgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="alignmentgroup", parent_name="funnel", **kwargs): - super(AlignmentgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AlignmentgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='alignmentgroup', + parent_name='funnel', + **kwargs): + super(AlignmentgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_cliponaxis.py b/packages/python/plotly/plotly/validators/funnel/_cliponaxis.py index 782dd825329..9197dae5a42 100644 --- a/packages/python/plotly/plotly/validators/funnel/_cliponaxis.py +++ b/packages/python/plotly/plotly/validators/funnel/_cliponaxis.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CliponaxisValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cliponaxis", parent_name="funnel", **kwargs): - super(CliponaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CliponaxisValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cliponaxis', + parent_name='funnel', + **kwargs): + super(CliponaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_connector.py b/packages/python/plotly/plotly/validators/funnel/_connector.py index dcfae74a8ef..5be587f4a43 100644 --- a/packages/python/plotly/plotly/validators/funnel/_connector.py +++ b/packages/python/plotly/plotly/validators/funnel/_connector.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class ConnectorValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="connector", parent_name="funnel", **kwargs): - super(ConnectorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Connector"), - data_docs=kwargs.pop( - "data_docs", - """ - fillcolor - Sets the fill color. - line - :class:`plotly.graph_objects.funnel.connector.L - ine` instance or dict with compatible - properties - visible - Determines if connector regions and lines are - drawn. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ConnectorValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='connector', + parent_name='funnel', + **kwargs): + super(ConnectorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Connector'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_constraintext.py b/packages/python/plotly/plotly/validators/funnel/_constraintext.py index b9c504172a5..b140711f5c9 100644 --- a/packages/python/plotly/plotly/validators/funnel/_constraintext.py +++ b/packages/python/plotly/plotly/validators/funnel/_constraintext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ConstraintextValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="constraintext", parent_name="funnel", **kwargs): - super(ConstraintextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["inside", "outside", "both", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ConstraintextValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='constraintext', + parent_name='funnel', + **kwargs): + super(ConstraintextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['inside', 'outside', 'both', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_customdata.py b/packages/python/plotly/plotly/validators/funnel/_customdata.py index 18d87b1b232..5b2e67217c5 100644 --- a/packages/python/plotly/plotly/validators/funnel/_customdata.py +++ b/packages/python/plotly/plotly/validators/funnel/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="funnel", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='funnel', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_customdatasrc.py b/packages/python/plotly/plotly/validators/funnel/_customdatasrc.py index b417537aa13..e9c5cdf8bb5 100644 --- a/packages/python/plotly/plotly/validators/funnel/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/funnel/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="funnel", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='funnel', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_dx.py b/packages/python/plotly/plotly/validators/funnel/_dx.py index f7eac3eabb7..4ff5bb65dab 100644 --- a/packages/python/plotly/plotly/validators/funnel/_dx.py +++ b/packages/python/plotly/plotly/validators/funnel/_dx.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class DxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="dx", parent_name="funnel", **kwargs): - super(DxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dx', + parent_name='funnel', + **kwargs): + super(DxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_dy.py b/packages/python/plotly/plotly/validators/funnel/_dy.py index 87e3db91f54..b40b4485bf7 100644 --- a/packages/python/plotly/plotly/validators/funnel/_dy.py +++ b/packages/python/plotly/plotly/validators/funnel/_dy.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class DyValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="dy", parent_name="funnel", **kwargs): - super(DyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DyValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dy', + parent_name='funnel', + **kwargs): + super(DyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_hoverinfo.py b/packages/python/plotly/plotly/validators/funnel/_hoverinfo.py index c234a2398cb..2f5affc99ad 100644 --- a/packages/python/plotly/plotly/validators/funnel/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/funnel/_hoverinfo.py @@ -1,25 +1,16 @@ -import _plotly_utils.basevalidators -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="funnel", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop( - "flags", - [ - "name", - "x", - "y", - "text", - "percent initial", - "percent previous", - "percent total", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='funnel', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['name', 'x', 'y', 'text', 'percent initial', 'percent previous', 'percent total']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/funnel/_hoverinfosrc.py index f7497e22ec2..3aee69bc92c 100644 --- a/packages/python/plotly/plotly/validators/funnel/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/funnel/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="funnel", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='funnel', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_hoverlabel.py b/packages/python/plotly/plotly/validators/funnel/_hoverlabel.py index 4ce89b79e79..6638899d2d5 100644 --- a/packages/python/plotly/plotly/validators/funnel/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/funnel/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="funnel", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='funnel', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_hovertemplate.py b/packages/python/plotly/plotly/validators/funnel/_hovertemplate.py index 647fcbf6547..e82143ca42f 100644 --- a/packages/python/plotly/plotly/validators/funnel/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/funnel/_hovertemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="funnel", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='funnel', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/funnel/_hovertemplatesrc.py index 4e797b08e53..4ce1e5c0c19 100644 --- a/packages/python/plotly/plotly/validators/funnel/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/funnel/_hovertemplatesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertemplatesrc", parent_name="funnel", **kwargs): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='funnel', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_hovertext.py b/packages/python/plotly/plotly/validators/funnel/_hovertext.py index b08f4031db8..79b163d7199 100644 --- a/packages/python/plotly/plotly/validators/funnel/_hovertext.py +++ b/packages/python/plotly/plotly/validators/funnel/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="funnel", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='funnel', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_hovertextsrc.py b/packages/python/plotly/plotly/validators/funnel/_hovertextsrc.py index 9b690df9379..66b5a862478 100644 --- a/packages/python/plotly/plotly/validators/funnel/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="funnel", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='funnel', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_ids.py b/packages/python/plotly/plotly/validators/funnel/_ids.py index ffda10bed5d..069aa84fff4 100644 --- a/packages/python/plotly/plotly/validators/funnel/_ids.py +++ b/packages/python/plotly/plotly/validators/funnel/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="funnel", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='funnel', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_idssrc.py b/packages/python/plotly/plotly/validators/funnel/_idssrc.py index 9cdfed9e491..e5762749240 100644 --- a/packages/python/plotly/plotly/validators/funnel/_idssrc.py +++ b/packages/python/plotly/plotly/validators/funnel/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="funnel", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='funnel', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_insidetextanchor.py b/packages/python/plotly/plotly/validators/funnel/_insidetextanchor.py index 7902fe0e814..7d3bb867a13 100644 --- a/packages/python/plotly/plotly/validators/funnel/_insidetextanchor.py +++ b/packages/python/plotly/plotly/validators/funnel/_insidetextanchor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class InsidetextanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="insidetextanchor", parent_name="funnel", **kwargs): - super(InsidetextanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["end", "middle", "start"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class InsidetextanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='insidetextanchor', + parent_name='funnel', + **kwargs): + super(InsidetextanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['end', 'middle', 'start']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_insidetextfont.py b/packages/python/plotly/plotly/validators/funnel/_insidetextfont.py index f20bb91ac58..d93f9c3c042 100644 --- a/packages/python/plotly/plotly/validators/funnel/_insidetextfont.py +++ b/packages/python/plotly/plotly/validators/funnel/_insidetextfont.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class InsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="insidetextfont", parent_name="funnel", **kwargs): - super(InsidetextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Insidetextfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class InsidetextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='insidetextfont', + parent_name='funnel', + **kwargs): + super(InsidetextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Insidetextfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_legend.py b/packages/python/plotly/plotly/validators/funnel/_legend.py index 44b53d5a1c2..cd0cfe2902e 100644 --- a/packages/python/plotly/plotly/validators/funnel/_legend.py +++ b/packages/python/plotly/plotly/validators/funnel/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="funnel", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='funnel', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_legendgroup.py b/packages/python/plotly/plotly/validators/funnel/_legendgroup.py index 6105b1693b3..d44a217144e 100644 --- a/packages/python/plotly/plotly/validators/funnel/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/funnel/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="funnel", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='funnel', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/funnel/_legendgrouptitle.py index c98e089a7e2..4fed3353afc 100644 --- a/packages/python/plotly/plotly/validators/funnel/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/funnel/_legendgrouptitle.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="legendgrouptitle", parent_name="funnel", **kwargs): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='funnel', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_legendrank.py b/packages/python/plotly/plotly/validators/funnel/_legendrank.py index 57202f26705..c33fe39738d 100644 --- a/packages/python/plotly/plotly/validators/funnel/_legendrank.py +++ b/packages/python/plotly/plotly/validators/funnel/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="funnel", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='funnel', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_legendwidth.py b/packages/python/plotly/plotly/validators/funnel/_legendwidth.py index fedb0ccf645..e95c282dd69 100644 --- a/packages/python/plotly/plotly/validators/funnel/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/funnel/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="funnel", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='funnel', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_marker.py b/packages/python/plotly/plotly/validators/funnel/_marker.py index daee497c337..f76a04a3338 100644 --- a/packages/python/plotly/plotly/validators/funnel/_marker.py +++ b/packages/python/plotly/plotly/validators/funnel/_marker.py @@ -1,111 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="funnel", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.funnel.marker.Colo - rBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - line - :class:`plotly.graph_objects.funnel.marker.Line - ` instance or dict with compatible properties - opacity - Sets the opacity of the bars. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='funnel', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_meta.py b/packages/python/plotly/plotly/validators/funnel/_meta.py index 5391c67330b..d8ac08dbe7b 100644 --- a/packages/python/plotly/plotly/validators/funnel/_meta.py +++ b/packages/python/plotly/plotly/validators/funnel/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="funnel", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='funnel', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_metasrc.py b/packages/python/plotly/plotly/validators/funnel/_metasrc.py index 816255d84bf..43cf76b15c0 100644 --- a/packages/python/plotly/plotly/validators/funnel/_metasrc.py +++ b/packages/python/plotly/plotly/validators/funnel/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="funnel", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='funnel', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_name.py b/packages/python/plotly/plotly/validators/funnel/_name.py index bd6f7cd8b91..f822223f40c 100644 --- a/packages/python/plotly/plotly/validators/funnel/_name.py +++ b/packages/python/plotly/plotly/validators/funnel/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="funnel", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='funnel', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_offset.py b/packages/python/plotly/plotly/validators/funnel/_offset.py index 32304632b4b..a2b6e1714f3 100644 --- a/packages/python/plotly/plotly/validators/funnel/_offset.py +++ b/packages/python/plotly/plotly/validators/funnel/_offset.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class OffsetValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="offset", parent_name="funnel", **kwargs): - super(OffsetValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OffsetValidator(_bv.NumberValidator): + def __init__(self, plotly_name='offset', + parent_name='funnel', + **kwargs): + super(OffsetValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_offsetgroup.py b/packages/python/plotly/plotly/validators/funnel/_offsetgroup.py index fa7e6fe6fba..29c13258c0b 100644 --- a/packages/python/plotly/plotly/validators/funnel/_offsetgroup.py +++ b/packages/python/plotly/plotly/validators/funnel/_offsetgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class OffsetgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="offsetgroup", parent_name="funnel", **kwargs): - super(OffsetgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OffsetgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='offsetgroup', + parent_name='funnel', + **kwargs): + super(OffsetgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_opacity.py b/packages/python/plotly/plotly/validators/funnel/_opacity.py index e55a8c60880..723e0ffe3b3 100644 --- a/packages/python/plotly/plotly/validators/funnel/_opacity.py +++ b/packages/python/plotly/plotly/validators/funnel/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="funnel", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='funnel', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_orientation.py b/packages/python/plotly/plotly/validators/funnel/_orientation.py index a2702c1bcb8..4e6eda7607a 100644 --- a/packages/python/plotly/plotly/validators/funnel/_orientation.py +++ b/packages/python/plotly/plotly/validators/funnel/_orientation.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="orientation", parent_name="funnel", **kwargs): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - values=kwargs.pop("values", ["v", "h"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='funnel', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + values=kwargs.pop('values', ['v', 'h']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_outsidetextfont.py b/packages/python/plotly/plotly/validators/funnel/_outsidetextfont.py index 809be87ae60..cad43201be4 100644 --- a/packages/python/plotly/plotly/validators/funnel/_outsidetextfont.py +++ b/packages/python/plotly/plotly/validators/funnel/_outsidetextfont.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class OutsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="outsidetextfont", parent_name="funnel", **kwargs): - super(OutsidetextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Outsidetextfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class OutsidetextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='outsidetextfont', + parent_name='funnel', + **kwargs): + super(OutsidetextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Outsidetextfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_selectedpoints.py b/packages/python/plotly/plotly/validators/funnel/_selectedpoints.py index f7e58cde440..e414043b242 100644 --- a/packages/python/plotly/plotly/validators/funnel/_selectedpoints.py +++ b/packages/python/plotly/plotly/validators/funnel/_selectedpoints.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="selectedpoints", parent_name="funnel", **kwargs): - super(SelectedpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedpointsValidator(_bv.AnyValidator): + def __init__(self, plotly_name='selectedpoints', + parent_name='funnel', + **kwargs): + super(SelectedpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_showlegend.py b/packages/python/plotly/plotly/validators/funnel/_showlegend.py index d8decff8e3e..1d53ae9658c 100644 --- a/packages/python/plotly/plotly/validators/funnel/_showlegend.py +++ b/packages/python/plotly/plotly/validators/funnel/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="funnel", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='funnel', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_stream.py b/packages/python/plotly/plotly/validators/funnel/_stream.py index fc34904fdaf..67e523bb860 100644 --- a/packages/python/plotly/plotly/validators/funnel/_stream.py +++ b/packages/python/plotly/plotly/validators/funnel/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="funnel", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='funnel', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_text.py b/packages/python/plotly/plotly/validators/funnel/_text.py index 0cf076e98e8..772ba89adbc 100644 --- a/packages/python/plotly/plotly/validators/funnel/_text.py +++ b/packages/python/plotly/plotly/validators/funnel/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="funnel", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='funnel', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_textangle.py b/packages/python/plotly/plotly/validators/funnel/_textangle.py index 331e22077ce..fe96f00f64f 100644 --- a/packages/python/plotly/plotly/validators/funnel/_textangle.py +++ b/packages/python/plotly/plotly/validators/funnel/_textangle.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__(self, plotly_name="textangle", parent_name="funnel", **kwargs): - super(TextangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='textangle', + parent_name='funnel', + **kwargs): + super(TextangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_textfont.py b/packages/python/plotly/plotly/validators/funnel/_textfont.py index 8b9e2dfaee6..92cabc1ab30 100644 --- a/packages/python/plotly/plotly/validators/funnel/_textfont.py +++ b/packages/python/plotly/plotly/validators/funnel/_textfont.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="textfont", parent_name="funnel", **kwargs): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='funnel', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_textinfo.py b/packages/python/plotly/plotly/validators/funnel/_textinfo.py index 7931d3e4bbc..c65c0df38fa 100644 --- a/packages/python/plotly/plotly/validators/funnel/_textinfo.py +++ b/packages/python/plotly/plotly/validators/funnel/_textinfo.py @@ -1,24 +1,16 @@ -import _plotly_utils.basevalidators -class TextinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="textinfo", parent_name="funnel", **kwargs): - super(TextinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop( - "flags", - [ - "label", - "text", - "percent initial", - "percent previous", - "percent total", - "value", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='textinfo', + parent_name='funnel', + **kwargs): + super(TextinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['label', 'text', 'percent initial', 'percent previous', 'percent total', 'value']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_textposition.py b/packages/python/plotly/plotly/validators/funnel/_textposition.py index 5c31777eaa8..def825097b8 100644 --- a/packages/python/plotly/plotly/validators/funnel/_textposition.py +++ b/packages/python/plotly/plotly/validators/funnel/_textposition.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="textposition", parent_name="funnel", **kwargs): - super(TextpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["inside", "outside", "auto", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textposition', + parent_name='funnel', + **kwargs): + super(TextpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['inside', 'outside', 'auto', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_textpositionsrc.py b/packages/python/plotly/plotly/validators/funnel/_textpositionsrc.py index a6d94989d20..9f60618a668 100644 --- a/packages/python/plotly/plotly/validators/funnel/_textpositionsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/_textpositionsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textpositionsrc", parent_name="funnel", **kwargs): - super(TextpositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextpositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textpositionsrc', + parent_name='funnel', + **kwargs): + super(TextpositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_textsrc.py b/packages/python/plotly/plotly/validators/funnel/_textsrc.py index 032c8127003..f74dd76b8ca 100644 --- a/packages/python/plotly/plotly/validators/funnel/_textsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="funnel", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='funnel', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_texttemplate.py b/packages/python/plotly/plotly/validators/funnel/_texttemplate.py index 3f5ea520be1..41cb6afaa18 100644 --- a/packages/python/plotly/plotly/validators/funnel/_texttemplate.py +++ b/packages/python/plotly/plotly/validators/funnel/_texttemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="texttemplate", parent_name="funnel", **kwargs): - super(TexttemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='texttemplate', + parent_name='funnel', + **kwargs): + super(TexttemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_texttemplatesrc.py b/packages/python/plotly/plotly/validators/funnel/_texttemplatesrc.py index 32f40e2baad..98fd82bd6d9 100644 --- a/packages/python/plotly/plotly/validators/funnel/_texttemplatesrc.py +++ b/packages/python/plotly/plotly/validators/funnel/_texttemplatesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="texttemplatesrc", parent_name="funnel", **kwargs): - super(TexttemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TexttemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='texttemplatesrc', + parent_name='funnel', + **kwargs): + super(TexttemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_uid.py b/packages/python/plotly/plotly/validators/funnel/_uid.py index 6658bc6823e..6dfd4a49f54 100644 --- a/packages/python/plotly/plotly/validators/funnel/_uid.py +++ b/packages/python/plotly/plotly/validators/funnel/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="funnel", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='funnel', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_uirevision.py b/packages/python/plotly/plotly/validators/funnel/_uirevision.py index 8a0c44d507a..0abd8e5bd49 100644 --- a/packages/python/plotly/plotly/validators/funnel/_uirevision.py +++ b/packages/python/plotly/plotly/validators/funnel/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="funnel", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='funnel', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_visible.py b/packages/python/plotly/plotly/validators/funnel/_visible.py index 4215a2cb639..ba57eb31de5 100644 --- a/packages/python/plotly/plotly/validators/funnel/_visible.py +++ b/packages/python/plotly/plotly/validators/funnel/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="funnel", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='funnel', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_width.py b/packages/python/plotly/plotly/validators/funnel/_width.py index e37747e15d0..729af6c663b 100644 --- a/packages/python/plotly/plotly/validators/funnel/_width.py +++ b/packages/python/plotly/plotly/validators/funnel/_width.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="funnel", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='funnel', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_x.py b/packages/python/plotly/plotly/validators/funnel/_x.py index 096d75b61d3..36bca4b9b4d 100644 --- a/packages/python/plotly/plotly/validators/funnel/_x.py +++ b/packages/python/plotly/plotly/validators/funnel/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="x", parent_name="funnel", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='x', + parent_name='funnel', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_x0.py b/packages/python/plotly/plotly/validators/funnel/_x0.py index 1210b817146..66d5a56dc30 100644 --- a/packages/python/plotly/plotly/validators/funnel/_x0.py +++ b/packages/python/plotly/plotly/validators/funnel/_x0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class X0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="x0", parent_name="funnel", **kwargs): - super(X0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class X0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='x0', + parent_name='funnel', + **kwargs): + super(X0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_xaxis.py b/packages/python/plotly/plotly/validators/funnel/_xaxis.py index 25241092ece..4b666d0f053 100644 --- a/packages/python/plotly/plotly/validators/funnel/_xaxis.py +++ b/packages/python/plotly/plotly/validators/funnel/_xaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="xaxis", parent_name="funnel", **kwargs): - super(XaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "x"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='xaxis', + parent_name='funnel', + **kwargs): + super(XaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'x'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_xhoverformat.py b/packages/python/plotly/plotly/validators/funnel/_xhoverformat.py index cd454d0b86f..c322d90d9d3 100644 --- a/packages/python/plotly/plotly/validators/funnel/_xhoverformat.py +++ b/packages/python/plotly/plotly/validators/funnel/_xhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="xhoverformat", parent_name="funnel", **kwargs): - super(XhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='xhoverformat', + parent_name='funnel', + **kwargs): + super(XhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_xperiod.py b/packages/python/plotly/plotly/validators/funnel/_xperiod.py index ec89b5c7434..9252efdc47b 100644 --- a/packages/python/plotly/plotly/validators/funnel/_xperiod.py +++ b/packages/python/plotly/plotly/validators/funnel/_xperiod.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XperiodValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="xperiod", parent_name="funnel", **kwargs): - super(XperiodValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XperiodValidator(_bv.AnyValidator): + def __init__(self, plotly_name='xperiod', + parent_name='funnel', + **kwargs): + super(XperiodValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_xperiod0.py b/packages/python/plotly/plotly/validators/funnel/_xperiod0.py index 6a10271918d..cb4fa0dd4de 100644 --- a/packages/python/plotly/plotly/validators/funnel/_xperiod0.py +++ b/packages/python/plotly/plotly/validators/funnel/_xperiod0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Xperiod0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="xperiod0", parent_name="funnel", **kwargs): - super(Xperiod0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Xperiod0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='xperiod0', + parent_name='funnel', + **kwargs): + super(Xperiod0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_xperiodalignment.py b/packages/python/plotly/plotly/validators/funnel/_xperiodalignment.py index 21e9bfff787..ace093c071e 100644 --- a/packages/python/plotly/plotly/validators/funnel/_xperiodalignment.py +++ b/packages/python/plotly/plotly/validators/funnel/_xperiodalignment.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xperiodalignment", parent_name="funnel", **kwargs): - super(XperiodalignmentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["start", "middle", "end"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XperiodalignmentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xperiodalignment', + parent_name='funnel', + **kwargs): + super(XperiodalignmentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['start', 'middle', 'end']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_xsrc.py b/packages/python/plotly/plotly/validators/funnel/_xsrc.py index 6ea7e1691ad..4020989a4d1 100644 --- a/packages/python/plotly/plotly/validators/funnel/_xsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/_xsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="xsrc", parent_name="funnel", **kwargs): - super(XsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='xsrc', + parent_name='funnel', + **kwargs): + super(XsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_y.py b/packages/python/plotly/plotly/validators/funnel/_y.py index ea1d2d34bb9..d98eaf3a6ce 100644 --- a/packages/python/plotly/plotly/validators/funnel/_y.py +++ b/packages/python/plotly/plotly/validators/funnel/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="y", parent_name="funnel", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='y', + parent_name='funnel', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_y0.py b/packages/python/plotly/plotly/validators/funnel/_y0.py index eca2d44430e..28c7ed46182 100644 --- a/packages/python/plotly/plotly/validators/funnel/_y0.py +++ b/packages/python/plotly/plotly/validators/funnel/_y0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Y0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="y0", parent_name="funnel", **kwargs): - super(Y0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Y0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='y0', + parent_name='funnel', + **kwargs): + super(Y0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_yaxis.py b/packages/python/plotly/plotly/validators/funnel/_yaxis.py index 435f2f58d80..372eed0887c 100644 --- a/packages/python/plotly/plotly/validators/funnel/_yaxis.py +++ b/packages/python/plotly/plotly/validators/funnel/_yaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="yaxis", parent_name="funnel", **kwargs): - super(YaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "y"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='yaxis', + parent_name='funnel', + **kwargs): + super(YaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'y'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_yhoverformat.py b/packages/python/plotly/plotly/validators/funnel/_yhoverformat.py index b345b8fd2b5..bded504d297 100644 --- a/packages/python/plotly/plotly/validators/funnel/_yhoverformat.py +++ b/packages/python/plotly/plotly/validators/funnel/_yhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="yhoverformat", parent_name="funnel", **kwargs): - super(YhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='yhoverformat', + parent_name='funnel', + **kwargs): + super(YhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_yperiod.py b/packages/python/plotly/plotly/validators/funnel/_yperiod.py index 4d4acd70158..309276c0aba 100644 --- a/packages/python/plotly/plotly/validators/funnel/_yperiod.py +++ b/packages/python/plotly/plotly/validators/funnel/_yperiod.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YperiodValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="yperiod", parent_name="funnel", **kwargs): - super(YperiodValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YperiodValidator(_bv.AnyValidator): + def __init__(self, plotly_name='yperiod', + parent_name='funnel', + **kwargs): + super(YperiodValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_yperiod0.py b/packages/python/plotly/plotly/validators/funnel/_yperiod0.py index f385d9d4061..5a1850b7e84 100644 --- a/packages/python/plotly/plotly/validators/funnel/_yperiod0.py +++ b/packages/python/plotly/plotly/validators/funnel/_yperiod0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Yperiod0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="yperiod0", parent_name="funnel", **kwargs): - super(Yperiod0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Yperiod0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='yperiod0', + parent_name='funnel', + **kwargs): + super(Yperiod0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_yperiodalignment.py b/packages/python/plotly/plotly/validators/funnel/_yperiodalignment.py index 426f9b735e2..396094ae947 100644 --- a/packages/python/plotly/plotly/validators/funnel/_yperiodalignment.py +++ b/packages/python/plotly/plotly/validators/funnel/_yperiodalignment.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yperiodalignment", parent_name="funnel", **kwargs): - super(YperiodalignmentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["start", "middle", "end"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YperiodalignmentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yperiodalignment', + parent_name='funnel', + **kwargs): + super(YperiodalignmentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['start', 'middle', 'end']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_ysrc.py b/packages/python/plotly/plotly/validators/funnel/_ysrc.py index d8b47119b8a..7ff56ac1f7c 100644 --- a/packages/python/plotly/plotly/validators/funnel/_ysrc.py +++ b/packages/python/plotly/plotly/validators/funnel/_ysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="ysrc", parent_name="funnel", **kwargs): - super(YsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ysrc', + parent_name='funnel', + **kwargs): + super(YsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/_zorder.py b/packages/python/plotly/plotly/validators/funnel/_zorder.py index 87ecc16c1a6..541d1e0687f 100644 --- a/packages/python/plotly/plotly/validators/funnel/_zorder.py +++ b/packages/python/plotly/plotly/validators/funnel/_zorder.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="zorder", parent_name="funnel", **kwargs): - super(ZorderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZorderValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='zorder', + parent_name='funnel', + **kwargs): + super(ZorderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/connector/__init__.py b/packages/python/plotly/plotly/validators/funnel/connector/__init__.py index bdf63f319c5..f3a424e1dcf 100644 --- a/packages/python/plotly/plotly/validators/funnel/connector/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/connector/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._line import LineValidator from ._fillcolor import FillcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._line.LineValidator", - "._fillcolor.FillcolorValidator", - ], + ['._visible.VisibleValidator', '._line.LineValidator', '._fillcolor.FillcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnel/connector/_fillcolor.py b/packages/python/plotly/plotly/validators/funnel/connector/_fillcolor.py index 6ec434238c7..fe792078f74 100644 --- a/packages/python/plotly/plotly/validators/funnel/connector/_fillcolor.py +++ b/packages/python/plotly/plotly/validators/funnel/connector/_fillcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="fillcolor", parent_name="funnel.connector", **kwargs - ): - super(FillcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fillcolor', + parent_name='funnel.connector', + **kwargs): + super(FillcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/connector/_line.py b/packages/python/plotly/plotly/validators/funnel/connector/_line.py index f4a61501b02..c6ad1eee595 100644 --- a/packages/python/plotly/plotly/validators/funnel/connector/_line.py +++ b/packages/python/plotly/plotly/validators/funnel/connector/_line.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="funnel.connector", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the line color. - dash - 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"). - width - Sets the line width (in px). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='funnel.connector', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/connector/_visible.py b/packages/python/plotly/plotly/validators/funnel/connector/_visible.py index 6210b0b1fe9..a222c86ea72 100644 --- a/packages/python/plotly/plotly/validators/funnel/connector/_visible.py +++ b/packages/python/plotly/plotly/validators/funnel/connector/_visible.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="visible", parent_name="funnel.connector", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='funnel.connector', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/connector/line/__init__.py b/packages/python/plotly/plotly/validators/funnel/connector/line/__init__.py index cff41466517..e42e2f2974d 100644 --- a/packages/python/plotly/plotly/validators/funnel/connector/line/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/connector/line/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._dash import DashValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._width.WidthValidator", "._dash.DashValidator", "._color.ColorValidator"], + ['._width.WidthValidator', '._dash.DashValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnel/connector/line/_color.py b/packages/python/plotly/plotly/validators/funnel/connector/line/_color.py index 8f31ff90b7e..634775ff030 100644 --- a/packages/python/plotly/plotly/validators/funnel/connector/line/_color.py +++ b/packages/python/plotly/plotly/validators/funnel/connector/line/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="funnel.connector.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='funnel.connector.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/connector/line/_dash.py b/packages/python/plotly/plotly/validators/funnel/connector/line/_dash.py index ade52e50703..42c56daa14b 100644 --- a/packages/python/plotly/plotly/validators/funnel/connector/line/_dash.py +++ b/packages/python/plotly/plotly/validators/funnel/connector/line/_dash.py @@ -1,16 +1,14 @@ -import _plotly_utils.basevalidators -class DashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__( - self, plotly_name="dash", parent_name="funnel.connector.line", **kwargs - ): - super(DashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DashValidator(_bv.DashValidator): + def __init__(self, plotly_name='dash', + parent_name='funnel.connector.line', + **kwargs): + super(DashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/connector/line/_width.py b/packages/python/plotly/plotly/validators/funnel/connector/line/_width.py index 3cf198a0095..c2011676c4d 100644 --- a/packages/python/plotly/plotly/validators/funnel/connector/line/_width.py +++ b/packages/python/plotly/plotly/validators/funnel/connector/line/_width.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="funnel.connector.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='funnel.connector.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/_align.py index d6b93959228..4a65cf88166 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/_align.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="align", parent_name="funnel.hoverlabel", **kwargs): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='funnel.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/_alignsrc.py index 5e6126824f7..8f336158791 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="funnel.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='funnel.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/_bgcolor.py index f8d3cc58136..15b8a0f4464 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="funnel.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='funnel.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/_bgcolorsrc.py index 63595fc3d65..e13e0d6e6d7 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="funnel.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='funnel.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/_bordercolor.py index 75fdace1418..272d41ae0c3 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="funnel.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='funnel.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/_bordercolorsrc.py index 2444253abfa..8c285d94c3b 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bordercolorsrc", parent_name="funnel.hoverlabel", **kwargs - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='funnel.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/_font.py index e5ddeeb75da..fdb577727e6 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/_font.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="funnel.hoverlabel", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='funnel.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/_namelength.py index fcd607c1bb6..70eb5fd0aa7 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="funnel.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='funnel.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/_namelengthsrc.py index e7373d4fadd..c3c1dc55ce2 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="funnel.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='funnel.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_color.py index d01fb78fdd6..d1c6d5932d4 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="funnel.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='funnel.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_colorsrc.py index 56910e140dd..6253b7bed71 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="funnel.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='funnel.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_family.py index af699127b73..4516b2aa723 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="funnel.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='funnel.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_familysrc.py index 28c77ffa378..18fdc2fccca 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="funnel.hoverlabel.font", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='funnel.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_lineposition.py index d2a8a3380eb..1a70b1129a7 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="funnel.hoverlabel.font", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='funnel.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_linepositionsrc.py index a1b1679e0a5..9b97689ef28 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="funnel.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='funnel.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_shadow.py index b7db191e259..036cc588c5e 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="funnel.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='funnel.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_shadowsrc.py index 9f85f9b20e4..d4badb6680a 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="funnel.hoverlabel.font", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='funnel.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_size.py index 08be9ea71ea..cbc23342139 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="funnel.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='funnel.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_sizesrc.py index e3b66273fe0..8ada764468e 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="funnel.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='funnel.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_style.py index 5570714b635..3577f4baf84 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="funnel.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='funnel.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_stylesrc.py index 38a4f118cb5..f3fa5505a09 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="funnel.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='funnel.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_textcase.py index 877a61174ff..1aa13589cc4 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="funnel.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='funnel.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_textcasesrc.py index b266fa6844e..00c257d076b 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="funnel.hoverlabel.font", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='funnel.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_variant.py index 3a201945aa3..64d91059f68 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="funnel.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='funnel.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_variantsrc.py index 4f3a4ad4fc1..ab1bef50ba2 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="funnel.hoverlabel.font", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='funnel.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_weight.py index 60d07bead5e..7684edcc069 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="funnel.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='funnel.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_weightsrc.py index 37e4dd28b92..a14ef5c64ad 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="funnel.hoverlabel.font", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='funnel.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/insidetextfont/__init__.py b/packages/python/plotly/plotly/validators/funnel/insidetextfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/funnel/insidetextfont/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/insidetextfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_color.py b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_color.py index 54d5e055833..9ecd0579e0a 100644 --- a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_color.py +++ b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="funnel.insidetextfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='funnel.insidetextfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_colorsrc.py b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_colorsrc.py index 55ebdda24f6..990aa635e86 100644 --- a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="funnel.insidetextfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='funnel.insidetextfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_family.py b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_family.py index 3da355fd9ea..22c4c113b07 100644 --- a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_family.py +++ b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="funnel.insidetextfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='funnel.insidetextfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_familysrc.py b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_familysrc.py index c93b3427c48..4a7ae37daff 100644 --- a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="funnel.insidetextfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='funnel.insidetextfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_lineposition.py b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_lineposition.py index 5b569e0ad8f..7f80b33173f 100644 --- a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="funnel.insidetextfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='funnel.insidetextfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_linepositionsrc.py index fbcc2800d38..bd490adcff8 100644 --- a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="funnel.insidetextfont", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='funnel.insidetextfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_shadow.py b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_shadow.py index 56cce12dd33..447590a6c22 100644 --- a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="funnel.insidetextfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='funnel.insidetextfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_shadowsrc.py index 69d76bfa04c..8c27f28e3ca 100644 --- a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="funnel.insidetextfont", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='funnel.insidetextfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_size.py b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_size.py index b9f387d7c9f..1715d1ec864 100644 --- a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_size.py +++ b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="funnel.insidetextfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='funnel.insidetextfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_sizesrc.py b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_sizesrc.py index 35d5184c53a..80b481ccf1a 100644 --- a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="funnel.insidetextfont", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='funnel.insidetextfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_style.py b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_style.py index 0b37a492065..229dec7c594 100644 --- a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_style.py +++ b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="funnel.insidetextfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='funnel.insidetextfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_stylesrc.py b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_stylesrc.py index 17f24ed3688..38dbe91ffd7 100644 --- a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="funnel.insidetextfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='funnel.insidetextfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_textcase.py b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_textcase.py index aab0c482d51..a0359493ef4 100644 --- a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="funnel.insidetextfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='funnel.insidetextfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_textcasesrc.py index 88c9e81d4c0..c1bf02ad97a 100644 --- a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="funnel.insidetextfont", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='funnel.insidetextfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_variant.py b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_variant.py index f6c8324854f..c1de5c166ee 100644 --- a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_variant.py +++ b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="funnel.insidetextfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='funnel.insidetextfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_variantsrc.py b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_variantsrc.py index b2351c3c843..a4e9fc9c445 100644 --- a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="funnel.insidetextfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='funnel.insidetextfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_weight.py b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_weight.py index 8af1deacd18..0855093bded 100644 --- a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_weight.py +++ b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="funnel.insidetextfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='funnel.insidetextfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_weightsrc.py b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_weightsrc.py index 39f6aa90f1f..0dff282f81f 100644 --- a/packages/python/plotly/plotly/validators/funnel/insidetextfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/insidetextfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="funnel.insidetextfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='funnel.insidetextfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/_font.py index 0afba14bfaf..d2281e1e3f4 100644 --- a/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="funnel.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='funnel.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/_text.py index 81e0e984c93..bb52267f2fe 100644 --- a/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="funnel.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='funnel.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_color.py index 23bffa398bc..5f347cb3509 100644 --- a/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="funnel.legendgrouptitle.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='funnel.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_family.py index b206ee853df..20d6d65ed54 100644 --- a/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="funnel.legendgrouptitle.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='funnel.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_lineposition.py index 38a7cbf4ace..6e521757d8c 100644 --- a/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="funnel.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='funnel.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_shadow.py index dc1c429b409..90b05940907 100644 --- a/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="funnel.legendgrouptitle.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='funnel.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_size.py index 1f885ea446d..24033e3ffbb 100644 --- a/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="funnel.legendgrouptitle.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='funnel.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_style.py index 95a058837a6..5879bb64f00 100644 --- a/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="funnel.legendgrouptitle.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='funnel.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_textcase.py index ea9f8d77d16..2705dc6e630 100644 --- a/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="funnel.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='funnel.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_variant.py index 162184ef86e..3dac0ab294d 100644 --- a/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="funnel.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='funnel.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_weight.py index d6e67034b7d..7b6b8d97a51 100644 --- a/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/funnel/legendgrouptitle/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="funnel.legendgrouptitle.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='funnel.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/__init__.py b/packages/python/plotly/plotly/validators/funnel/marker/__init__.py index 045be1eae4c..9d1f1a36cbd 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._showscale import ShowscaleValidator from ._reversescale import ReversescaleValidator @@ -19,25 +18,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._showscale.ShowscaleValidator", - "._reversescale.ReversescaleValidator", - "._opacitysrc.OpacitysrcValidator", - "._opacity.OpacityValidator", - "._line.LineValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._showscale.ShowscaleValidator', '._reversescale.ReversescaleValidator', '._opacitysrc.OpacitysrcValidator', '._opacity.OpacityValidator', '._line.LineValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnel/marker/_autocolorscale.py b/packages/python/plotly/plotly/validators/funnel/marker/_autocolorscale.py index 90588188d28..d33c8292082 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="funnel.marker", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='funnel.marker', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/_cauto.py b/packages/python/plotly/plotly/validators/funnel/marker/_cauto.py index 5c442a6df56..4012a6d4dd5 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/_cauto.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/_cauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cauto", parent_name="funnel.marker", **kwargs): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='funnel.marker', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/_cmax.py b/packages/python/plotly/plotly/validators/funnel/marker/_cmax.py index f8a81fe7434..4c71430ad2f 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/_cmax.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/_cmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmax", parent_name="funnel.marker", **kwargs): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='funnel.marker', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/_cmid.py b/packages/python/plotly/plotly/validators/funnel/marker/_cmid.py index bdf42152e15..9bf08589ea0 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/_cmid.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/_cmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmid", parent_name="funnel.marker", **kwargs): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='funnel.marker', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/_cmin.py b/packages/python/plotly/plotly/validators/funnel/marker/_cmin.py index f6142665aa5..323b47df332 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/_cmin.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/_cmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmin", parent_name="funnel.marker", **kwargs): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='funnel.marker', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/_color.py b/packages/python/plotly/plotly/validators/funnel/marker/_color.py index 3029a69495d..3999212aea0 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/_color.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/_color.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="funnel.marker", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - colorscale_path=kwargs.pop("colorscale_path", "funnel.marker.colorscale"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='funnel.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + colorscale_path=kwargs.pop('colorscale_path', 'funnel.marker.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/_coloraxis.py b/packages/python/plotly/plotly/validators/funnel/marker/_coloraxis.py index ec3f5445c71..98e52355e02 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/_coloraxis.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="coloraxis", parent_name="funnel.marker", **kwargs): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='funnel.marker', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/_colorbar.py b/packages/python/plotly/plotly/validators/funnel/marker/_colorbar.py index 7a865fe8740..f5b0326f0de 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/_colorbar.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/_colorbar.py @@ -1,280 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="colorbar", parent_name="funnel.marker", **kwargs): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.funnel. - marker.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.funnel.marker.colorbar.tickformatstopdefaults - ), sets the default property values to use for - elements of - funnel.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.funnel.marker.colo - rbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='funnel.marker', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/_colorscale.py b/packages/python/plotly/plotly/validators/funnel/marker/_colorscale.py index c27a95d4ec0..74baee5601c 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/_colorscale.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/_colorscale.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__(self, plotly_name="colorscale", parent_name="funnel.marker", **kwargs): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='funnel.marker', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/_colorsrc.py b/packages/python/plotly/plotly/validators/funnel/marker/_colorsrc.py index b47a0223f68..8bbdb57357f 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/_colorsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="colorsrc", parent_name="funnel.marker", **kwargs): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='funnel.marker', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/_line.py b/packages/python/plotly/plotly/validators/funnel/marker/_line.py index 97a761091a8..f06e31e5c69 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/_line.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/_line.py @@ -1,105 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="funnel.marker", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.line.colorscale`. Has an - effect only if in `marker.line.color` is set to - a numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.line.color`) or the bounds set in - `marker.line.cmin` and `marker.line.cmax` Has - an effect only if in `marker.line.color` is set - to a numerical array. Defaults to `false` when - `marker.line.cmin` and `marker.line.cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.line.cmin` and/or - `marker.line.cmax` to be equidistant to this - point. Has an effect only if in - `marker.line.color` is set to a numerical - array. Value should have the same units as in - `marker.line.color`. Has no effect when - `marker.line.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmax` must be set as well. - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorscale - Sets the colorscale. Has an effect only if in - `marker.line.color` is set to a numerical - array. The colorscale must be an array - containing arrays mapping a normalized value to - an rgb, rgba, hex, hsl, hsv, or named color - string. At minimum, a mapping for the lowest - (0) and highest (1) values are required. For - example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use - `marker.line.cmin` and `marker.line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.line.color` is set to - a numerical array. If true, `marker.line.cmin` - will correspond to the last color in the array - and `marker.line.cmax` will correspond to the - first color. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='funnel.marker', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/_opacity.py b/packages/python/plotly/plotly/validators/funnel/marker/_opacity.py index 4a647260776..f62269e3fc8 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/_opacity.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="funnel.marker", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='funnel.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/_opacitysrc.py b/packages/python/plotly/plotly/validators/funnel/marker/_opacitysrc.py index 51d6af7fee8..31d1033a53d 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/_opacitysrc.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/_opacitysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="opacitysrc", parent_name="funnel.marker", **kwargs): - super(OpacitysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacitysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='opacitysrc', + parent_name='funnel.marker', + **kwargs): + super(OpacitysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/_reversescale.py b/packages/python/plotly/plotly/validators/funnel/marker/_reversescale.py index 81299ad36ab..488930412bb 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/_reversescale.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="funnel.marker", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='funnel.marker', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/_showscale.py b/packages/python/plotly/plotly/validators/funnel/marker/_showscale.py index acc10966dcf..0561665ab55 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/_showscale.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/_showscale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showscale", parent_name="funnel.marker", **kwargs): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='funnel.marker', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_bgcolor.py index cf3b40be1b7..8d7cedadb70 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="funnel.marker.colorbar", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='funnel.marker.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_bordercolor.py index 8ae1ef41066..8526afd06b4 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="funnel.marker.colorbar", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='funnel.marker.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_borderwidth.py index dc730dbc27a..30a586a3ca3 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_borderwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderwidth", parent_name="funnel.marker.colorbar", **kwargs - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='funnel.marker.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_dtick.py index dc438e7f627..a2170b71005 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="funnel.marker.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='funnel.marker.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_exponentformat.py index 024e71354fc..524a9686b91 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_exponentformat.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="exponentformat", - parent_name="funnel.marker.colorbar", - **kwargs, - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='funnel.marker.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_labelalias.py index f47cd56ad29..16b49e9dea6 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="funnel.marker.colorbar", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='funnel.marker.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_len.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_len.py index eccba11e001..2ed922a3b39 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_len.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="len", parent_name="funnel.marker.colorbar", **kwargs - ): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='funnel.marker.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_lenmode.py index 184ff1f1286..a542427600a 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_lenmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="lenmode", parent_name="funnel.marker.colorbar", **kwargs - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='funnel.marker.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_minexponent.py index 82b3361aee1..3c62f9ae33d 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="funnel.marker.colorbar", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='funnel.marker.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_nticks.py index 14ce7707f3f..fc1d6d89185 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="funnel.marker.colorbar", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='funnel.marker.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_orientation.py index 952e94ec4df..c9efd380251 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_orientation.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="orientation", parent_name="funnel.marker.colorbar", **kwargs - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='funnel.marker.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_outlinecolor.py index 0b5c42a8daa..1955af00caa 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_outlinecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="outlinecolor", parent_name="funnel.marker.colorbar", **kwargs - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='funnel.marker.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_outlinewidth.py index 17ee0d297ac..6a8ba1d877e 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_outlinewidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="outlinewidth", parent_name="funnel.marker.colorbar", **kwargs - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='funnel.marker.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_separatethousands.py index 2e8f44fb444..4bbc656580f 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="funnel.marker.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='funnel.marker.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_showexponent.py index 3a6669fea75..c38e329c9e9 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="funnel.marker.colorbar", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='funnel.marker.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_showticklabels.py index 0197156bf3a..dabdb974229 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="funnel.marker.colorbar", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='funnel.marker.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_showtickprefix.py index 625baf33c41..67be3b4096c 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="funnel.marker.colorbar", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='funnel.marker.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_showticksuffix.py index 27ff0cbdd60..1bd9b14a891 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="funnel.marker.colorbar", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='funnel.marker.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_thickness.py index 2722689fc80..1e1b7611c28 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="funnel.marker.colorbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='funnel.marker.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_thicknessmode.py index 404c653149b..989159118b4 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_thicknessmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="thicknessmode", - parent_name="funnel.marker.colorbar", - **kwargs, - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='funnel.marker.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tick0.py index 99cfa5e2c83..1203d5c5d2e 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="funnel.marker.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='funnel.marker.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickangle.py index f5c2de47a3a..c7721118246 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="funnel.marker.colorbar", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='funnel.marker.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickcolor.py index a403b39de51..8eb2f0d894b 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="funnel.marker.colorbar", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='funnel.marker.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickfont.py index 53a8f4a905c..8552942f34b 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="funnel.marker.colorbar", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='funnel.marker.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickformat.py index 72a1fba87a3..b173dfe5d4d 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="funnel.marker.colorbar", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='funnel.marker.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickformatstopdefaults.py index 8dd34616b77..ef96564ad34 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="funnel.marker.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='funnel.marker.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickformatstops.py index b8ecd5491e3..3eef698ee08 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="funnel.marker.colorbar", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='funnel.marker.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticklabeloverflow.py index b8526c7be13..b5afdcb0576 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="funnel.marker.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='funnel.marker.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticklabelposition.py index d713b83ccaa..4a7c7cc9f13 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="funnel.marker.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='funnel.marker.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticklabelstep.py index 8353a9ce85c..43652a26635 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticklabelstep.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="ticklabelstep", - parent_name="funnel.marker.colorbar", - **kwargs, - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='funnel.marker.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticklen.py index 0878e830fa3..6c144be372a 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="funnel.marker.colorbar", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='funnel.marker.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickmode.py index d880beec0f3..5f33501d503 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="funnel.marker.colorbar", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='funnel.marker.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickprefix.py index faccff6e048..794f4b212fe 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="funnel.marker.colorbar", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='funnel.marker.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticks.py index 0d38fb64079..6a5d745af13 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="funnel.marker.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='funnel.marker.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticksuffix.py index 9dc395f0dcf..8c3fa2eb12c 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="funnel.marker.colorbar", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='funnel.marker.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticktext.py index 44f7d1467f5..43313a3201d 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="funnel.marker.colorbar", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='funnel.marker.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticktextsrc.py index f112f01faa5..ade195cc308 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="funnel.marker.colorbar", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='funnel.marker.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickvals.py index a97f713b49d..b6e4149636a 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="funnel.marker.colorbar", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='funnel.marker.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickvalssrc.py index a88a0e4d00a..607c7502de5 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="funnel.marker.colorbar", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='funnel.marker.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickwidth.py index 3aeac08dad7..2f6cad1752a 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="funnel.marker.colorbar", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='funnel.marker.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_title.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_title.py index 2ee3292cab1..0dfbe1fb593 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="funnel.marker.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='funnel.marker.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_x.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_x.py index 9b672ee07de..55046acda23 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x", parent_name="funnel.marker.colorbar", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='funnel.marker.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_xanchor.py index 360738a8080..7b955834851 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="funnel.marker.colorbar", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='funnel.marker.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_xpad.py index 4b9ac0239a8..6a2fd87a4a7 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_xpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="xpad", parent_name="funnel.marker.colorbar", **kwargs - ): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='funnel.marker.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_xref.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_xref.py index 31e43cc3d14..7938b16441c 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xref", parent_name="funnel.marker.colorbar", **kwargs - ): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='funnel.marker.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_y.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_y.py index 979316ea1ac..24739487363 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y", parent_name="funnel.marker.colorbar", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='funnel.marker.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_yanchor.py index 94d2be5eeff..35b1b14ac76 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="funnel.marker.colorbar", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='funnel.marker.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ypad.py index 532ffe1ca28..0f41d41253a 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_ypad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ypad", parent_name="funnel.marker.colorbar", **kwargs - ): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='funnel.marker.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_yref.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_yref.py index 7d37f1fc9ac..f2ae88d10f3 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yref", parent_name="funnel.marker.colorbar", **kwargs - ): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='funnel.marker.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_color.py index 3e18885ee2c..0118630749a 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="funnel.marker.colorbar.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='funnel.marker.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_family.py index c741d272aa2..dd0e5c858c9 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="funnel.marker.colorbar.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='funnel.marker.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_lineposition.py index 348d48e4155..1ced039eced 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="funnel.marker.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='funnel.marker.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_shadow.py index 729e103009f..0a202f51a5c 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="funnel.marker.colorbar.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='funnel.marker.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_size.py index c3d5f1c98c0..1f0e1998b03 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="funnel.marker.colorbar.tickfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='funnel.marker.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_style.py index 15629ac8c06..7211f9e3bbc 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="funnel.marker.colorbar.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='funnel.marker.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_textcase.py index 40e50c764b5..2a31e9d03a7 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="funnel.marker.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='funnel.marker.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_variant.py index 7913c8cf42f..7c64ccc4f61 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="funnel.marker.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='funnel.marker.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_weight.py index 0576b165aa1..cd3ce555fb5 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="funnel.marker.colorbar.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='funnel.marker.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickformatstop/_dtickrange.py index 61c42e1be32..e9008e40fc6 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="funnel.marker.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - items=kwargs.pop( - "items", - [ - {"editType": "colorbars", "valType": "any"}, - {"editType": "colorbars", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='funnel.marker.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + items=kwargs.pop('items', [{'editType': 'colorbars', 'valType': 'any'}, {'editType': 'colorbars', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickformatstop/_enabled.py index e4bf249f88e..6d2a945c619 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="funnel.marker.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='funnel.marker.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickformatstop/_name.py index d9c0cf9c9d5..707d406d22b 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="funnel.marker.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='funnel.marker.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickformatstop/_templateitemname.py index a61b9d7c6db..d14506f7aa8 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="funnel.marker.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='funnel.marker.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickformatstop/_value.py index 4cf82f9c3cd..f7fe9eaa4aa 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="funnel.marker.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='funnel.marker.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/_font.py index 0edfce7cc88..67c4f0d1441 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="funnel.marker.colorbar.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='funnel.marker.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/_side.py index 88bd1b70484..d7fca595a5e 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/_side.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="side", parent_name="funnel.marker.colorbar.title", **kwargs - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='funnel.marker.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/_text.py index a1d2b0b2277..2d58d987a70 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="funnel.marker.colorbar.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='funnel.marker.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_color.py index 520e1bccacf..6b15aebeabb 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="funnel.marker.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='funnel.marker.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_family.py index a2fa7c5ca75..2c716691f64 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="funnel.marker.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='funnel.marker.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_lineposition.py index 61f6a2ad88d..be2f10ab058 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="funnel.marker.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='funnel.marker.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_shadow.py index cf675316f33..cf649aa0058 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="funnel.marker.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='funnel.marker.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_size.py index 9f3f0cd0585..622a23acf45 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="funnel.marker.colorbar.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='funnel.marker.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_style.py index 5def13e178f..72095483b0a 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="funnel.marker.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='funnel.marker.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_textcase.py index 5d1e709181a..a9c073034de 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="funnel.marker.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='funnel.marker.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_variant.py index 820e405b6c6..f79fbf4da48 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="funnel.marker.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='funnel.marker.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_weight.py index 00ed3955db2..ed1785c39ff 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="funnel.marker.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='funnel.marker.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/line/__init__.py b/packages/python/plotly/plotly/validators/funnel/marker/line/__init__.py index facbe33f884..55d423b11da 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._widthsrc import WidthsrcValidator from ._width import WidthValidator @@ -16,22 +15,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._widthsrc.WidthsrcValidator", - "._width.WidthValidator", - "._reversescale.ReversescaleValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._widthsrc.WidthsrcValidator', '._width.WidthValidator', '._reversescale.ReversescaleValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnel/marker/line/_autocolorscale.py b/packages/python/plotly/plotly/validators/funnel/marker/line/_autocolorscale.py index f0cf3ef32dd..cd93eee84ca 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/line/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/line/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="funnel.marker.line", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='funnel.marker.line', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/line/_cauto.py b/packages/python/plotly/plotly/validators/funnel/marker/line/_cauto.py index 45487fc4018..79f6661f989 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/line/_cauto.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/line/_cauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cauto", parent_name="funnel.marker.line", **kwargs): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='funnel.marker.line', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/line/_cmax.py b/packages/python/plotly/plotly/validators/funnel/marker/line/_cmax.py index 969f92ca90d..5870620289b 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/line/_cmax.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/line/_cmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmax", parent_name="funnel.marker.line", **kwargs): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='funnel.marker.line', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/line/_cmid.py b/packages/python/plotly/plotly/validators/funnel/marker/line/_cmid.py index 6bd9de8dc9b..d38dd5515d4 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/line/_cmid.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/line/_cmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmid", parent_name="funnel.marker.line", **kwargs): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='funnel.marker.line', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/line/_cmin.py b/packages/python/plotly/plotly/validators/funnel/marker/line/_cmin.py index 14ae7c1b1cd..f262d0f18f9 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/line/_cmin.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/line/_cmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmin", parent_name="funnel.marker.line", **kwargs): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='funnel.marker.line', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/line/_color.py b/packages/python/plotly/plotly/validators/funnel/marker/line/_color.py index c446f36508e..3518c0dd486 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/line/_color.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/line/_color.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="funnel.marker.line", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - colorscale_path=kwargs.pop( - "colorscale_path", "funnel.marker.line.colorscale" - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='funnel.marker.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + colorscale_path=kwargs.pop('colorscale_path', 'funnel.marker.line.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/line/_coloraxis.py b/packages/python/plotly/plotly/validators/funnel/marker/line/_coloraxis.py index a84f5bdfa00..b464a215980 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/line/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/line/_coloraxis.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name="coloraxis", parent_name="funnel.marker.line", **kwargs - ): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='funnel.marker.line', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/line/_colorscale.py b/packages/python/plotly/plotly/validators/funnel/marker/line/_colorscale.py index b8db3895875..bc27081bb01 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/line/_colorscale.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/line/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="funnel.marker.line", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='funnel.marker.line', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/line/_colorsrc.py b/packages/python/plotly/plotly/validators/funnel/marker/line/_colorsrc.py index ad567b8234e..81e722ce0c2 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/line/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/line/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="funnel.marker.line", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='funnel.marker.line', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/line/_reversescale.py b/packages/python/plotly/plotly/validators/funnel/marker/line/_reversescale.py index ac8c98c1cae..fcdce75475b 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/line/_reversescale.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/line/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="funnel.marker.line", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='funnel.marker.line', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/line/_width.py b/packages/python/plotly/plotly/validators/funnel/marker/line/_width.py index 568e27ee015..b3722842486 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/line/_width.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/line/_width.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="funnel.marker.line", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='funnel.marker.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/marker/line/_widthsrc.py b/packages/python/plotly/plotly/validators/funnel/marker/line/_widthsrc.py index e71b6d17ab8..89c504bb2a6 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/line/_widthsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/line/_widthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="widthsrc", parent_name="funnel.marker.line", **kwargs - ): - super(WidthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='widthsrc', + parent_name='funnel.marker.line', + **kwargs): + super(WidthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/__init__.py b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_color.py b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_color.py index 0998f8d7c61..499d578fcfe 100644 --- a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_color.py +++ b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="funnel.outsidetextfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='funnel.outsidetextfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_colorsrc.py b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_colorsrc.py index 8142f9c2c4a..696b279e089 100644 --- a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="funnel.outsidetextfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='funnel.outsidetextfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_family.py b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_family.py index bee2f10a0fa..fbe5d9f617c 100644 --- a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_family.py +++ b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="funnel.outsidetextfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='funnel.outsidetextfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_familysrc.py b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_familysrc.py index 3d8a4c52e01..a0fa33a2432 100644 --- a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="funnel.outsidetextfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='funnel.outsidetextfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_lineposition.py b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_lineposition.py index 030702141c0..a4bea0023bc 100644 --- a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="funnel.outsidetextfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='funnel.outsidetextfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_linepositionsrc.py index d9f2b8822c5..1776e63193d 100644 --- a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="funnel.outsidetextfont", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='funnel.outsidetextfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_shadow.py b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_shadow.py index 98a4c669ec9..79c73896384 100644 --- a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="funnel.outsidetextfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='funnel.outsidetextfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_shadowsrc.py index c1cc6ff2f0f..751ed3916ed 100644 --- a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="funnel.outsidetextfont", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='funnel.outsidetextfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_size.py b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_size.py index e538e652977..d4ecde9650f 100644 --- a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_size.py +++ b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="funnel.outsidetextfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='funnel.outsidetextfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_sizesrc.py b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_sizesrc.py index 7639401e678..7b3b60be0c7 100644 --- a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="funnel.outsidetextfont", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='funnel.outsidetextfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_style.py b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_style.py index eb411ef6b34..c6eb7afc786 100644 --- a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_style.py +++ b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="funnel.outsidetextfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='funnel.outsidetextfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_stylesrc.py b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_stylesrc.py index 14d845faf05..955f51111c1 100644 --- a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="funnel.outsidetextfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='funnel.outsidetextfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_textcase.py b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_textcase.py index 5172e37f64d..db4a5b81889 100644 --- a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="funnel.outsidetextfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='funnel.outsidetextfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_textcasesrc.py index c128527009f..e4b428a5ecc 100644 --- a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="funnel.outsidetextfont", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='funnel.outsidetextfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_variant.py b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_variant.py index dea131c72eb..8368ee49167 100644 --- a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_variant.py +++ b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="funnel.outsidetextfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='funnel.outsidetextfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_variantsrc.py b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_variantsrc.py index ac4a879d8bd..fa69a9cf99a 100644 --- a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="funnel.outsidetextfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='funnel.outsidetextfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_weight.py b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_weight.py index e99e36c74be..bf46f1bacb1 100644 --- a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_weight.py +++ b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="funnel.outsidetextfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='funnel.outsidetextfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_weightsrc.py b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_weightsrc.py index 90c9a41c030..9443fe8aaeb 100644 --- a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="funnel.outsidetextfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='funnel.outsidetextfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/stream/__init__.py b/packages/python/plotly/plotly/validators/funnel/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/funnel/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnel/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/funnel/stream/_maxpoints.py index c7f45224b3f..6c561534554 100644 --- a/packages/python/plotly/plotly/validators/funnel/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/funnel/stream/_maxpoints.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="maxpoints", parent_name="funnel.stream", **kwargs): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='funnel.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/stream/_token.py b/packages/python/plotly/plotly/validators/funnel/stream/_token.py index b32b0c38938..b45edf7c8cc 100644 --- a/packages/python/plotly/plotly/validators/funnel/stream/_token.py +++ b/packages/python/plotly/plotly/validators/funnel/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="funnel.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='funnel.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/textfont/__init__.py b/packages/python/plotly/plotly/validators/funnel/textfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/funnel/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/textfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnel/textfont/_color.py b/packages/python/plotly/plotly/validators/funnel/textfont/_color.py index 64fb753b22f..ef9ff142a0c 100644 --- a/packages/python/plotly/plotly/validators/funnel/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/funnel/textfont/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="funnel.textfont", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='funnel.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/textfont/_colorsrc.py b/packages/python/plotly/plotly/validators/funnel/textfont/_colorsrc.py index b769ab07518..79735c74207 100644 --- a/packages/python/plotly/plotly/validators/funnel/textfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/textfont/_colorsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="colorsrc", parent_name="funnel.textfont", **kwargs): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='funnel.textfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/textfont/_family.py b/packages/python/plotly/plotly/validators/funnel/textfont/_family.py index 2465bce324a..2c98d807905 100644 --- a/packages/python/plotly/plotly/validators/funnel/textfont/_family.py +++ b/packages/python/plotly/plotly/validators/funnel/textfont/_family.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="family", parent_name="funnel.textfont", **kwargs): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='funnel.textfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/textfont/_familysrc.py b/packages/python/plotly/plotly/validators/funnel/textfont/_familysrc.py index 2a4ceb17c63..4b40145ccdf 100644 --- a/packages/python/plotly/plotly/validators/funnel/textfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/funnel/textfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="funnel.textfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='funnel.textfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/textfont/_lineposition.py b/packages/python/plotly/plotly/validators/funnel/textfont/_lineposition.py index a1be521b613..f5dcdc593fd 100644 --- a/packages/python/plotly/plotly/validators/funnel/textfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/funnel/textfont/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="funnel.textfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='funnel.textfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/textfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/funnel/textfont/_linepositionsrc.py index 737d1f4b9dc..e80e542671a 100644 --- a/packages/python/plotly/plotly/validators/funnel/textfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/textfont/_linepositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="linepositionsrc", parent_name="funnel.textfont", **kwargs - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='funnel.textfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/textfont/_shadow.py b/packages/python/plotly/plotly/validators/funnel/textfont/_shadow.py index 7e9933e1971..b62792847f8 100644 --- a/packages/python/plotly/plotly/validators/funnel/textfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/funnel/textfont/_shadow.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="shadow", parent_name="funnel.textfont", **kwargs): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='funnel.textfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/textfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/funnel/textfont/_shadowsrc.py index 3cfa0050918..6cd003a3120 100644 --- a/packages/python/plotly/plotly/validators/funnel/textfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/textfont/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="funnel.textfont", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='funnel.textfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/textfont/_size.py b/packages/python/plotly/plotly/validators/funnel/textfont/_size.py index 772b3630fcd..2c389d676e9 100644 --- a/packages/python/plotly/plotly/validators/funnel/textfont/_size.py +++ b/packages/python/plotly/plotly/validators/funnel/textfont/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="funnel.textfont", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='funnel.textfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/textfont/_sizesrc.py b/packages/python/plotly/plotly/validators/funnel/textfont/_sizesrc.py index 7c36df75cd3..984c7537c58 100644 --- a/packages/python/plotly/plotly/validators/funnel/textfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/funnel/textfont/_sizesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="sizesrc", parent_name="funnel.textfont", **kwargs): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='funnel.textfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/textfont/_style.py b/packages/python/plotly/plotly/validators/funnel/textfont/_style.py index e22451a315b..6e9eba95b30 100644 --- a/packages/python/plotly/plotly/validators/funnel/textfont/_style.py +++ b/packages/python/plotly/plotly/validators/funnel/textfont/_style.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="style", parent_name="funnel.textfont", **kwargs): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='funnel.textfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/textfont/_stylesrc.py b/packages/python/plotly/plotly/validators/funnel/textfont/_stylesrc.py index 6c3520feb42..c8f5c3b8790 100644 --- a/packages/python/plotly/plotly/validators/funnel/textfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/funnel/textfont/_stylesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="stylesrc", parent_name="funnel.textfont", **kwargs): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='funnel.textfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/textfont/_textcase.py b/packages/python/plotly/plotly/validators/funnel/textfont/_textcase.py index 123806df8c0..67725c261e9 100644 --- a/packages/python/plotly/plotly/validators/funnel/textfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/funnel/textfont/_textcase.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="textcase", parent_name="funnel.textfont", **kwargs): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='funnel.textfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/textfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/funnel/textfont/_textcasesrc.py index 478f7ee8a18..5a7ebc38a9d 100644 --- a/packages/python/plotly/plotly/validators/funnel/textfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/funnel/textfont/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="funnel.textfont", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='funnel.textfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/textfont/_variant.py b/packages/python/plotly/plotly/validators/funnel/textfont/_variant.py index b60eab533fc..b291d017055 100644 --- a/packages/python/plotly/plotly/validators/funnel/textfont/_variant.py +++ b/packages/python/plotly/plotly/validators/funnel/textfont/_variant.py @@ -1,23 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="variant", parent_name="funnel.textfont", **kwargs): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='funnel.textfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/textfont/_variantsrc.py b/packages/python/plotly/plotly/validators/funnel/textfont/_variantsrc.py index 836e6b54ecc..4fd198f0a90 100644 --- a/packages/python/plotly/plotly/validators/funnel/textfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/textfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="funnel.textfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='funnel.textfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/textfont/_weight.py b/packages/python/plotly/plotly/validators/funnel/textfont/_weight.py index 37317b1fb3b..078ba693a0c 100644 --- a/packages/python/plotly/plotly/validators/funnel/textfont/_weight.py +++ b/packages/python/plotly/plotly/validators/funnel/textfont/_weight.py @@ -1,15 +1,17 @@ -import _plotly_utils.basevalidators - - -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="weight", parent_name="funnel.textfont", **kwargs): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='funnel.textfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnel/textfont/_weightsrc.py b/packages/python/plotly/plotly/validators/funnel/textfont/_weightsrc.py index 244a18e4434..cce5f90dc7f 100644 --- a/packages/python/plotly/plotly/validators/funnel/textfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/funnel/textfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="funnel.textfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='funnel.textfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/__init__.py b/packages/python/plotly/plotly/validators/funnelarea/__init__.py index 4ddd3b6c1b6..2d3dc183f83 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/__init__.py +++ b/packages/python/plotly/plotly/validators/funnelarea/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._valuessrc import ValuessrcValidator @@ -50,56 +49,10 @@ from ._aspectratio import AspectratioValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._valuessrc.ValuessrcValidator", - "._values.ValuesValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._title.TitleValidator", - "._texttemplatesrc.TexttemplatesrcValidator", - "._texttemplate.TexttemplateValidator", - "._textsrc.TextsrcValidator", - "._textpositionsrc.TextpositionsrcValidator", - "._textposition.TextpositionValidator", - "._textinfo.TextinfoValidator", - "._textfont.TextfontValidator", - "._text.TextValidator", - "._stream.StreamValidator", - "._showlegend.ShowlegendValidator", - "._scalegroup.ScalegroupValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._marker.MarkerValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._labelssrc.LabelssrcValidator", - "._labels.LabelsValidator", - "._label0.Label0Validator", - "._insidetextfont.InsidetextfontValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._domain.DomainValidator", - "._dlabel.DlabelValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._baseratio.BaseratioValidator", - "._aspectratio.AspectratioValidator", - ], + ['._visible.VisibleValidator', '._valuessrc.ValuessrcValidator', '._values.ValuesValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._title.TitleValidator', '._texttemplatesrc.TexttemplatesrcValidator', '._texttemplate.TexttemplateValidator', '._textsrc.TextsrcValidator', '._textpositionsrc.TextpositionsrcValidator', '._textposition.TextpositionValidator', '._textinfo.TextinfoValidator', '._textfont.TextfontValidator', '._text.TextValidator', '._stream.StreamValidator', '._showlegend.ShowlegendValidator', '._scalegroup.ScalegroupValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._marker.MarkerValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._labelssrc.LabelssrcValidator', '._labels.LabelsValidator', '._label0.Label0Validator', '._insidetextfont.InsidetextfontValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._domain.DomainValidator', '._dlabel.DlabelValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._baseratio.BaseratioValidator', '._aspectratio.AspectratioValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnelarea/_aspectratio.py b/packages/python/plotly/plotly/validators/funnelarea/_aspectratio.py index 9e73d8fe6b7..af2b26d5fc2 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_aspectratio.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_aspectratio.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class AspectratioValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="aspectratio", parent_name="funnelarea", **kwargs): - super(AspectratioValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AspectratioValidator(_bv.NumberValidator): + def __init__(self, plotly_name='aspectratio', + parent_name='funnelarea', + **kwargs): + super(AspectratioValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_baseratio.py b/packages/python/plotly/plotly/validators/funnelarea/_baseratio.py index b5e5cd77c60..23808784d30 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_baseratio.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_baseratio.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class BaseratioValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="baseratio", parent_name="funnelarea", **kwargs): - super(BaseratioValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BaseratioValidator(_bv.NumberValidator): + def __init__(self, plotly_name='baseratio', + parent_name='funnelarea', + **kwargs): + super(BaseratioValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_customdata.py b/packages/python/plotly/plotly/validators/funnelarea/_customdata.py index 89e367d3ccd..fd850d7b2af 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_customdata.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="funnelarea", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='funnelarea', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_customdatasrc.py b/packages/python/plotly/plotly/validators/funnelarea/_customdatasrc.py index 90c1cd01447..c7cbf381939 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="funnelarea", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='funnelarea', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_dlabel.py b/packages/python/plotly/plotly/validators/funnelarea/_dlabel.py index 64720732aed..0e16336157f 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_dlabel.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_dlabel.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class DlabelValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="dlabel", parent_name="funnelarea", **kwargs): - super(DlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DlabelValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dlabel', + parent_name='funnelarea', + **kwargs): + super(DlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_domain.py b/packages/python/plotly/plotly/validators/funnelarea/_domain.py index d917df0e55a..c6bb89e7f95 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_domain.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_domain.py @@ -1,30 +1,15 @@ -import _plotly_utils.basevalidators -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="domain", parent_name="funnelarea", **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 funnelarea - trace . - row - If there is a layout grid, use the domain for - this row in the grid for this funnelarea trace - . - x - Sets the horizontal domain of this funnelarea - trace (in plot fraction). - y - Sets the vertical domain of this funnelarea - trace (in plot fraction). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DomainValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='domain', + parent_name='funnelarea', + **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', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_hoverinfo.py b/packages/python/plotly/plotly/validators/funnelarea/_hoverinfo.py index 8b783ab2928..4863ba54b0b 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="funnelarea", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["label", "text", "value", "percent", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='funnelarea', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['label', 'text', 'value', 'percent', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/funnelarea/_hoverinfosrc.py index 6a3413d1c16..2935772234a 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="funnelarea", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='funnelarea', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_hoverlabel.py b/packages/python/plotly/plotly/validators/funnelarea/_hoverlabel.py index cf11b25b8de..8527ade8a3a 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="funnelarea", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='funnelarea', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_hovertemplate.py b/packages/python/plotly/plotly/validators/funnelarea/_hovertemplate.py index 73248ecafc3..403a590b70e 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_hovertemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="funnelarea", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='funnelarea', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/funnelarea/_hovertemplatesrc.py index c0d020c9efe..1ad7e59b349 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_hovertemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertemplatesrc", parent_name="funnelarea", **kwargs - ): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='funnelarea', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_hovertext.py b/packages/python/plotly/plotly/validators/funnelarea/_hovertext.py index 2efc97f9ee2..f9e9abcad45 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_hovertext.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="funnelarea", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='funnelarea', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_hovertextsrc.py b/packages/python/plotly/plotly/validators/funnelarea/_hovertextsrc.py index a068430d952..7255437a64d 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="funnelarea", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='funnelarea', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_ids.py b/packages/python/plotly/plotly/validators/funnelarea/_ids.py index 11a8a5e3578..199101ce881 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_ids.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="funnelarea", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='funnelarea', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_idssrc.py b/packages/python/plotly/plotly/validators/funnelarea/_idssrc.py index 5744d6e312d..351e5d6fa88 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_idssrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="funnelarea", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='funnelarea', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_insidetextfont.py b/packages/python/plotly/plotly/validators/funnelarea/_insidetextfont.py index d134ea23898..5f38559bd58 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_insidetextfont.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_insidetextfont.py @@ -1,88 +1,15 @@ -import _plotly_utils.basevalidators -class InsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="insidetextfont", parent_name="funnelarea", **kwargs - ): - super(InsidetextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Insidetextfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class InsidetextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='insidetextfont', + parent_name='funnelarea', + **kwargs): + super(InsidetextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Insidetextfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_label0.py b/packages/python/plotly/plotly/validators/funnelarea/_label0.py index b80fe586913..69d4e04cd07 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_label0.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_label0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Label0Validator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="label0", parent_name="funnelarea", **kwargs): - super(Label0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Label0Validator(_bv.NumberValidator): + def __init__(self, plotly_name='label0', + parent_name='funnelarea', + **kwargs): + super(Label0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_labels.py b/packages/python/plotly/plotly/validators/funnelarea/_labels.py index 1f87a8e244d..808b0a22478 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_labels.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_labels.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LabelsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="labels", parent_name="funnelarea", **kwargs): - super(LabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='labels', + parent_name='funnelarea', + **kwargs): + super(LabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_labelssrc.py b/packages/python/plotly/plotly/validators/funnelarea/_labelssrc.py index 97a19ca7b17..40570e7a60f 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_labelssrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_labelssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LabelssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="labelssrc", parent_name="funnelarea", **kwargs): - super(LabelssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='labelssrc', + parent_name='funnelarea', + **kwargs): + super(LabelssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_legend.py b/packages/python/plotly/plotly/validators/funnelarea/_legend.py index 37fdd828750..4c1f4500b84 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_legend.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="funnelarea", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='funnelarea', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_legendgroup.py b/packages/python/plotly/plotly/validators/funnelarea/_legendgroup.py index 803912a5c6b..d948501c2f5 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="funnelarea", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='funnelarea', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/funnelarea/_legendgrouptitle.py index 76e1d9f2ba9..d9d55eddb3b 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="funnelarea", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='funnelarea', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_legendrank.py b/packages/python/plotly/plotly/validators/funnelarea/_legendrank.py index ad96e7452ec..a371add9b5f 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_legendrank.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="funnelarea", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='funnelarea', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_legendwidth.py b/packages/python/plotly/plotly/validators/funnelarea/_legendwidth.py index aa78b60db9c..690805aeca4 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="funnelarea", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='funnelarea', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_marker.py b/packages/python/plotly/plotly/validators/funnelarea/_marker.py index 2b16a1057f0..13af138d618 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_marker.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_marker.py @@ -1,29 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="funnelarea", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - colors - Sets the color of each sector. If not - specified, the default trace color set is used - to pick the sector colors. - colorssrc - Sets the source reference on Chart Studio Cloud - for `colors`. - line - :class:`plotly.graph_objects.funnelarea.marker. - Line` instance or dict with compatible - properties - pattern - Sets the pattern within the marker. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='funnelarea', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_meta.py b/packages/python/plotly/plotly/validators/funnelarea/_meta.py index 60b2314f3a0..82a59bca051 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_meta.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="funnelarea", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='funnelarea', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_metasrc.py b/packages/python/plotly/plotly/validators/funnelarea/_metasrc.py index 79e0c7f6935..b4d30e538f2 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_metasrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="funnelarea", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='funnelarea', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_name.py b/packages/python/plotly/plotly/validators/funnelarea/_name.py index 380248af0ff..e6c982347d4 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_name.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="funnelarea", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='funnelarea', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_opacity.py b/packages/python/plotly/plotly/validators/funnelarea/_opacity.py index cdf7cbc019c..56be9134c65 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_opacity.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="funnelarea", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='funnelarea', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_scalegroup.py b/packages/python/plotly/plotly/validators/funnelarea/_scalegroup.py index 9bca0016849..8093c749999 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_scalegroup.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_scalegroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ScalegroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="scalegroup", parent_name="funnelarea", **kwargs): - super(ScalegroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ScalegroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='scalegroup', + parent_name='funnelarea', + **kwargs): + super(ScalegroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_showlegend.py b/packages/python/plotly/plotly/validators/funnelarea/_showlegend.py index e83bfc19a35..6ae3c9ec041 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_showlegend.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="funnelarea", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='funnelarea', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_stream.py b/packages/python/plotly/plotly/validators/funnelarea/_stream.py index a25d7caec02..736278a244c 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_stream.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="funnelarea", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='funnelarea', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_text.py b/packages/python/plotly/plotly/validators/funnelarea/_text.py index 7e4d6b125bc..eb12fd0a8b1 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_text.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_text.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="text", parent_name="funnelarea", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='text', + parent_name='funnelarea', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_textfont.py b/packages/python/plotly/plotly/validators/funnelarea/_textfont.py index 48dadda6252..f5139cccea3 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_textfont.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_textfont.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="textfont", parent_name="funnelarea", **kwargs): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='funnelarea', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_textinfo.py b/packages/python/plotly/plotly/validators/funnelarea/_textinfo.py index db22bfe0fe9..a4576c03c59 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_textinfo.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_textinfo.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="textinfo", parent_name="funnelarea", **kwargs): - super(TextinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["label", "text", "value", "percent"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='textinfo', + parent_name='funnelarea', + **kwargs): + super(TextinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['label', 'text', 'value', 'percent']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_textposition.py b/packages/python/plotly/plotly/validators/funnelarea/_textposition.py index 9b36602566f..cf456754c78 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_textposition.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_textposition.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="textposition", parent_name="funnelarea", **kwargs): - super(TextpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["inside", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textposition', + parent_name='funnelarea', + **kwargs): + super(TextpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['inside', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_textpositionsrc.py b/packages/python/plotly/plotly/validators/funnelarea/_textpositionsrc.py index 09e27c8241c..a81ad6e4494 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_textpositionsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_textpositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textpositionsrc", parent_name="funnelarea", **kwargs - ): - super(TextpositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextpositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textpositionsrc', + parent_name='funnelarea', + **kwargs): + super(TextpositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_textsrc.py b/packages/python/plotly/plotly/validators/funnelarea/_textsrc.py index 50afe541e85..202b8f8b9e8 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_textsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="funnelarea", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='funnelarea', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_texttemplate.py b/packages/python/plotly/plotly/validators/funnelarea/_texttemplate.py index 396f193bc8e..6d24acb0f6e 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_texttemplate.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_texttemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="texttemplate", parent_name="funnelarea", **kwargs): - super(TexttemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='texttemplate', + parent_name='funnelarea', + **kwargs): + super(TexttemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_texttemplatesrc.py b/packages/python/plotly/plotly/validators/funnelarea/_texttemplatesrc.py index e7dfebbd39d..930a0a2df0c 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_texttemplatesrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_texttemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="texttemplatesrc", parent_name="funnelarea", **kwargs - ): - super(TexttemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='texttemplatesrc', + parent_name='funnelarea', + **kwargs): + super(TexttemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_title.py b/packages/python/plotly/plotly/validators/funnelarea/_title.py index 7e29f56d03c..94e7164a43b 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_title.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_title.py @@ -1,23 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__(self, plotly_name="title", parent_name="funnelarea", **kwargs): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets the font used for `title`. - position - Specifies the location of the `title`. - text - Sets the title of the chart. If it is empty, no - title is displayed. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='funnelarea', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_uid.py b/packages/python/plotly/plotly/validators/funnelarea/_uid.py index 6376fa0424a..c879acb71c0 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_uid.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="funnelarea", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='funnelarea', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_uirevision.py b/packages/python/plotly/plotly/validators/funnelarea/_uirevision.py index 8dcdcdd5af3..d84764c1e3e 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_uirevision.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="funnelarea", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='funnelarea', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_values.py b/packages/python/plotly/plotly/validators/funnelarea/_values.py index 1ab92532732..eb17b924be6 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_values.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_values.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ValuesValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="values", parent_name="funnelarea", **kwargs): - super(ValuesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValuesValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='values', + parent_name='funnelarea', + **kwargs): + super(ValuesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_valuessrc.py b/packages/python/plotly/plotly/validators/funnelarea/_valuessrc.py index 931c3e72f30..9fe6563ac26 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_valuessrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_valuessrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ValuessrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="valuessrc", parent_name="funnelarea", **kwargs): - super(ValuessrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValuessrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='valuessrc', + parent_name='funnelarea', + **kwargs): + super(ValuessrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/_visible.py b/packages/python/plotly/plotly/validators/funnelarea/_visible.py index fdb9a4aafda..d7b3cd24e2a 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/_visible.py +++ b/packages/python/plotly/plotly/validators/funnelarea/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="funnelarea", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='funnelarea', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/domain/__init__.py b/packages/python/plotly/plotly/validators/funnelarea/domain/__init__.py index 67de5030d0a..705a2194402 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/funnelarea/domain/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._y import YValidator from ._x import XValidator @@ -8,14 +7,10 @@ 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", - ], + ['._y.YValidator', '._x.XValidator', '._row.RowValidator', '._column.ColumnValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnelarea/domain/_column.py b/packages/python/plotly/plotly/validators/funnelarea/domain/_column.py index 00811ade79c..a727e5b520b 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/domain/_column.py +++ b/packages/python/plotly/plotly/validators/funnelarea/domain/_column.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="column", parent_name="funnelarea.domain", **kwargs): - super(ColumnValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColumnValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='column', + parent_name='funnelarea.domain', + **kwargs): + super(ColumnValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/domain/_row.py b/packages/python/plotly/plotly/validators/funnelarea/domain/_row.py index c1218670782..f975f62548c 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/domain/_row.py +++ b/packages/python/plotly/plotly/validators/funnelarea/domain/_row.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="row", parent_name="funnelarea.domain", **kwargs): - super(RowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RowValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='row', + parent_name='funnelarea.domain', + **kwargs): + super(RowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/domain/_x.py b/packages/python/plotly/plotly/validators/funnelarea/domain/_x.py index de33daa3bd9..914b38df389 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/domain/_x.py +++ b/packages/python/plotly/plotly/validators/funnelarea/domain/_x.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="x", parent_name="funnelarea.domain", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='x', + parent_name='funnelarea.domain', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}, {'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/domain/_y.py b/packages/python/plotly/plotly/validators/funnelarea/domain/_y.py index 80418d44495..23f326c8fcc 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/domain/_y.py +++ b/packages/python/plotly/plotly/validators/funnelarea/domain/_y.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="y", parent_name="funnelarea.domain", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='y', + parent_name='funnelarea.domain', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}, {'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_align.py index e76a054b538..aab8ec404e7 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_align.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="align", parent_name="funnelarea.hoverlabel", **kwargs - ): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='funnelarea.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_alignsrc.py index 54264279976..f32d56a8e7e 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="funnelarea.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='funnelarea.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_bgcolor.py index 1b3a72edd43..955b0aacc0b 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="funnelarea.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='funnelarea.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_bgcolorsrc.py index a065507327e..a8d204a2e9e 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="funnelarea.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='funnelarea.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_bordercolor.py index 27bdd3c9dab..4feaa4839fa 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="funnelarea.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='funnelarea.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_bordercolorsrc.py index 8f815e99574..0c1974b5137 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="bordercolorsrc", - parent_name="funnelarea.hoverlabel", - **kwargs, - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='funnelarea.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_font.py index 21f0c01b95e..8a29fdad53e 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_font.py @@ -1,88 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="funnelarea.hoverlabel", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='funnelarea.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_namelength.py index c9721f4f206..4d2aefbc480 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="funnelarea.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='funnelarea.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_namelengthsrc.py index 67e3aaf5406..8969d0e2d86 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="funnelarea.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='funnelarea.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_color.py index 05549ca1bc1..dfc2cc78852 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="funnelarea.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='funnelarea.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_colorsrc.py index 1ab81da06c2..bfa96b02baf 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="funnelarea.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='funnelarea.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_family.py index e1ac6519c0e..ab9b576cbae 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="funnelarea.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='funnelarea.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_familysrc.py index 19560648ab0..0ff65b16212 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_familysrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="familysrc", - parent_name="funnelarea.hoverlabel.font", - **kwargs, - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='funnelarea.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_lineposition.py index 105e43e3467..062bda47a80 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="funnelarea.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='funnelarea.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_linepositionsrc.py index 1cb80d6cbfe..73b6c00eaa6 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="funnelarea.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='funnelarea.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_shadow.py index ae6d665c420..1916c98ae6a 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="funnelarea.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='funnelarea.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_shadowsrc.py index a80ab1431c6..55a3312f003 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="shadowsrc", - parent_name="funnelarea.hoverlabel.font", - **kwargs, - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='funnelarea.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_size.py index 1ff501f23af..e8a73a27fb4 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="funnelarea.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='funnelarea.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_sizesrc.py index 7c24bad5aa7..f3a8547c39d 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="funnelarea.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='funnelarea.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_style.py index ee70b84d163..4ba35274b16 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="funnelarea.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='funnelarea.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_stylesrc.py index dada8fa5b7a..2b76031eecb 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="funnelarea.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='funnelarea.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_textcase.py index f7fc3fa2c98..706badb0909 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="funnelarea.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='funnelarea.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_textcasesrc.py index 8f74f88bc80..8e5a81fa181 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="funnelarea.hoverlabel.font", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='funnelarea.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_variant.py index ce63c66ac69..7ca37d159b1 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="funnelarea.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='funnelarea.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_variantsrc.py index 2291bba26f1..216b0d9f347 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_variantsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="variantsrc", - parent_name="funnelarea.hoverlabel.font", - **kwargs, - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='funnelarea.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_weight.py index 79374274dc9..cb6950a67b2 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="funnelarea.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='funnelarea.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_weightsrc.py index 30e8f48ac99..674838da2eb 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/_weightsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="weightsrc", - parent_name="funnelarea.hoverlabel.font", - **kwargs, - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='funnelarea.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/__init__.py b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/__init__.py +++ b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_color.py b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_color.py index 42106fb6e36..b761a9fc13b 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_color.py +++ b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="funnelarea.insidetextfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='funnelarea.insidetextfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_colorsrc.py b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_colorsrc.py index 30a351e8a20..d1553f7540f 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="funnelarea.insidetextfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='funnelarea.insidetextfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_family.py b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_family.py index 44f70c4d06d..8bb8f92f85e 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_family.py +++ b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="funnelarea.insidetextfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='funnelarea.insidetextfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_familysrc.py b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_familysrc.py index 324d5843871..664d7f06164 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="funnelarea.insidetextfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='funnelarea.insidetextfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_lineposition.py b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_lineposition.py index c9e43e890ba..fd51b700857 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="funnelarea.insidetextfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='funnelarea.insidetextfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_linepositionsrc.py index baa768531d9..54298eb6ea4 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="funnelarea.insidetextfont", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='funnelarea.insidetextfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_shadow.py b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_shadow.py index b90b5689ca6..3d0ffa7e6e3 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="funnelarea.insidetextfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='funnelarea.insidetextfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_shadowsrc.py index 5871314e23e..22d99e7ba8d 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="funnelarea.insidetextfont", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='funnelarea.insidetextfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_size.py b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_size.py index 39f0eee96fe..d62ed4be443 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_size.py +++ b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="funnelarea.insidetextfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='funnelarea.insidetextfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_sizesrc.py b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_sizesrc.py index 1691cb8ac7e..3dd21272c18 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="funnelarea.insidetextfont", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='funnelarea.insidetextfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_style.py b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_style.py index 070573cbff3..f89de8d6824 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_style.py +++ b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="funnelarea.insidetextfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='funnelarea.insidetextfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_stylesrc.py b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_stylesrc.py index 6a48193da8b..5c668291d90 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="funnelarea.insidetextfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='funnelarea.insidetextfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_textcase.py b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_textcase.py index 3df78d50136..5178cb1f38b 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="funnelarea.insidetextfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='funnelarea.insidetextfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_textcasesrc.py index 7f9b1ac6bb2..4df7e57fa7b 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="funnelarea.insidetextfont", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='funnelarea.insidetextfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_variant.py b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_variant.py index 3489086ee10..cabcb674be8 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_variant.py +++ b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="funnelarea.insidetextfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='funnelarea.insidetextfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_variantsrc.py b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_variantsrc.py index 1e6d6888a71..545508be101 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_variantsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="variantsrc", - parent_name="funnelarea.insidetextfont", - **kwargs, - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='funnelarea.insidetextfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_weight.py b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_weight.py index 228c16104b2..890305fd251 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_weight.py +++ b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="funnelarea.insidetextfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='funnelarea.insidetextfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_weightsrc.py b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_weightsrc.py index 681c29a7b52..ca518d3c9c7 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="funnelarea.insidetextfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='funnelarea.insidetextfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/_font.py index 8fde9255aee..7bf62caa983 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="funnelarea.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='funnelarea.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/_text.py index 2dafda1dd12..0a6ee97e843 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="funnelarea.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='funnelarea.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_color.py index 1f2f2d58009..e6deae45d80 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="funnelarea.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='funnelarea.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_family.py index 3ef761def32..8d4f65e4563 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="funnelarea.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='funnelarea.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_lineposition.py index 3f1c48c5da0..c084ab7890e 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="funnelarea.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='funnelarea.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_shadow.py index 1adcfd4f5eb..724a92b966f 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="funnelarea.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='funnelarea.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_size.py index a9201d7bb5a..9c8f982aee3 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="funnelarea.legendgrouptitle.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='funnelarea.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_style.py index 87b78677175..9705990c3a8 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="funnelarea.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='funnelarea.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_textcase.py index 9441590306c..09684b92730 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="funnelarea.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='funnelarea.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_variant.py index dc3cdc9ea25..b79c156eb1e 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="funnelarea.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='funnelarea.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_weight.py index 6acf0c37923..aa52a54fef8 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/funnelarea/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="funnelarea.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='funnelarea.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/marker/__init__.py b/packages/python/plotly/plotly/validators/funnelarea/marker/__init__.py index aeae3564f66..3178e7ee24a 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/funnelarea/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._pattern import PatternValidator from ._line import LineValidator @@ -8,14 +7,10 @@ from ._colors import ColorsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._pattern.PatternValidator", - "._line.LineValidator", - "._colorssrc.ColorssrcValidator", - "._colors.ColorsValidator", - ], + ['._pattern.PatternValidator', '._line.LineValidator', '._colorssrc.ColorssrcValidator', '._colors.ColorsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnelarea/marker/_colors.py b/packages/python/plotly/plotly/validators/funnelarea/marker/_colors.py index 1be1bc6623f..ef4ff43e193 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/marker/_colors.py +++ b/packages/python/plotly/plotly/validators/funnelarea/marker/_colors.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="colors", parent_name="funnelarea.marker", **kwargs): - super(ColorsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='colors', + parent_name='funnelarea.marker', + **kwargs): + super(ColorsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/marker/_colorssrc.py b/packages/python/plotly/plotly/validators/funnelarea/marker/_colorssrc.py index 64022dce332..d65d4e9b87a 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/marker/_colorssrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/marker/_colorssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorssrc", parent_name="funnelarea.marker", **kwargs - ): - super(ColorssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorssrc', + parent_name='funnelarea.marker', + **kwargs): + super(ColorssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/marker/_line.py b/packages/python/plotly/plotly/validators/funnelarea/marker/_line.py index b2319683f6a..3107ec2ad51 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/marker/_line.py +++ b/packages/python/plotly/plotly/validators/funnelarea/marker/_line.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="funnelarea.marker", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the color of the line enclosing each - sector. Defaults to the `paper_bgcolor` value. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - width - Sets the width (in px) of the line enclosing - each sector. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='funnelarea.marker', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/marker/_pattern.py b/packages/python/plotly/plotly/validators/funnelarea/marker/_pattern.py index d6a29333eb5..0684ddacb22 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/marker/_pattern.py +++ b/packages/python/plotly/plotly/validators/funnelarea/marker/_pattern.py @@ -1,66 +1,15 @@ -import _plotly_utils.basevalidators -class PatternValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="pattern", parent_name="funnelarea.marker", **kwargs - ): - super(PatternValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Pattern"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - When there is no colorscale sets the color of - background pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "overlay". Otherwise, defaults to a transparent - background. - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - fgcolor - When there is no colorscale sets the color of - foreground pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "replace". Otherwise, defaults to dark grey or - white to increase contrast with the `bgcolor`. - fgcolorsrc - Sets the source reference on Chart Studio Cloud - for `fgcolor`. - fgopacity - Sets the opacity of the foreground pattern - fill. Defaults to a 0.5 when `fillmode` is - "overlay". Otherwise, defaults to 1. - fillmode - Determines whether `marker.color` should be - used as a default to `bgcolor` or a `fgcolor`. - shape - Sets the shape of the pattern fill. By default, - no pattern is used for filling the area. - shapesrc - Sets the source reference on Chart Studio Cloud - for `shape`. - size - Sets the size of unit squares of the pattern - fill in pixels, which corresponds to the - interval of repetition of the pattern. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - solidity - Sets the solidity of the pattern fill. Solidity - is roughly the fraction of the area filled by - the pattern. Solidity of 0 shows only the - background color without pattern and solidty of - 1 shows only the foreground color without - pattern. - soliditysrc - Sets the source reference on Chart Studio Cloud - for `solidity`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class PatternValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='pattern', + parent_name='funnelarea.marker', + **kwargs): + super(PatternValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Pattern'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/marker/line/__init__.py b/packages/python/plotly/plotly/validators/funnelarea/marker/line/__init__.py index a2b9e1ae50c..522c01899cf 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/funnelarea/marker/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._widthsrc import WidthsrcValidator from ._width import WidthValidator @@ -8,14 +7,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._widthsrc.WidthsrcValidator", - "._width.WidthValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._widthsrc.WidthsrcValidator', '._width.WidthValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnelarea/marker/line/_color.py b/packages/python/plotly/plotly/validators/funnelarea/marker/line/_color.py index 823cc11d083..8b62c03613a 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/marker/line/_color.py +++ b/packages/python/plotly/plotly/validators/funnelarea/marker/line/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="funnelarea.marker.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='funnelarea.marker.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/marker/line/_colorsrc.py b/packages/python/plotly/plotly/validators/funnelarea/marker/line/_colorsrc.py index 8f19e8dbda0..8e04253ad4d 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/marker/line/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/marker/line/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="funnelarea.marker.line", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='funnelarea.marker.line', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/marker/line/_width.py b/packages/python/plotly/plotly/validators/funnelarea/marker/line/_width.py index 28a6655e5da..5034b055b79 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/marker/line/_width.py +++ b/packages/python/plotly/plotly/validators/funnelarea/marker/line/_width.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="funnelarea.marker.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='funnelarea.marker.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/marker/line/_widthsrc.py b/packages/python/plotly/plotly/validators/funnelarea/marker/line/_widthsrc.py index 0feac95b0c0..77f7e721d6a 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/marker/line/_widthsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/marker/line/_widthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="widthsrc", parent_name="funnelarea.marker.line", **kwargs - ): - super(WidthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='widthsrc', + parent_name='funnelarea.marker.line', + **kwargs): + super(WidthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/__init__.py b/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/__init__.py index e190f962c46..de3616dbc8a 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/__init__.py +++ b/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._soliditysrc import SoliditysrcValidator from ._solidity import SolidityValidator @@ -16,22 +15,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._soliditysrc.SoliditysrcValidator", - "._solidity.SolidityValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shapesrc.ShapesrcValidator", - "._shape.ShapeValidator", - "._fillmode.FillmodeValidator", - "._fgopacity.FgopacityValidator", - "._fgcolorsrc.FgcolorsrcValidator", - "._fgcolor.FgcolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - ], + ['._soliditysrc.SoliditysrcValidator', '._solidity.SolidityValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shapesrc.ShapesrcValidator', '._shape.ShapeValidator', '._fillmode.FillmodeValidator', '._fgopacity.FgopacityValidator', '._fgcolorsrc.FgcolorsrcValidator', '._fgcolor.FgcolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_bgcolor.py b/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_bgcolor.py index 547b77925ea..435e0a7248e 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="funnelarea.marker.pattern", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='funnelarea.marker.pattern', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_bgcolorsrc.py index 3a96862ac81..93c51338569 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_bgcolorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="bgcolorsrc", - parent_name="funnelarea.marker.pattern", - **kwargs, - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='funnelarea.marker.pattern', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_fgcolor.py b/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_fgcolor.py index 536a51eb754..309c585564a 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_fgcolor.py +++ b/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_fgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class FgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="fgcolor", parent_name="funnelarea.marker.pattern", **kwargs - ): - super(FgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fgcolor', + parent_name='funnelarea.marker.pattern', + **kwargs): + super(FgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_fgcolorsrc.py b/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_fgcolorsrc.py index 1a4355f4a6b..e693e942d7f 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_fgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_fgcolorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class FgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="fgcolorsrc", - parent_name="funnelarea.marker.pattern", - **kwargs, - ): - super(FgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='fgcolorsrc', + parent_name='funnelarea.marker.pattern', + **kwargs): + super(FgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_fgopacity.py b/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_fgopacity.py index b868a898492..cb4a420906f 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_fgopacity.py +++ b/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_fgopacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FgopacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="fgopacity", parent_name="funnelarea.marker.pattern", **kwargs - ): - super(FgopacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FgopacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fgopacity', + parent_name='funnelarea.marker.pattern', + **kwargs): + super(FgopacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_fillmode.py b/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_fillmode.py index 0cdbb4bea07..b27be02e69a 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_fillmode.py +++ b/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_fillmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class FillmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="fillmode", parent_name="funnelarea.marker.pattern", **kwargs - ): - super(FillmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["replace", "overlay"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='fillmode', + parent_name='funnelarea.marker.pattern', + **kwargs): + super(FillmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['replace', 'overlay']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_shape.py b/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_shape.py index 326b04b7b3b..c22bc816aa0 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_shape.py +++ b/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_shape.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="shape", parent_name="funnelarea.marker.pattern", **kwargs - ): - super(ShapeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["", "/", "\\", "x", "-", "|", "+", "."]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShapeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='shape', + parent_name='funnelarea.marker.pattern', + **kwargs): + super(ShapeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['', '/', '\\', 'x', '-', '|', '+', '.']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_shapesrc.py b/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_shapesrc.py index f23896ab79a..4d38fa8d39d 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_shapesrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_shapesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShapesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shapesrc", parent_name="funnelarea.marker.pattern", **kwargs - ): - super(ShapesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShapesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shapesrc', + parent_name='funnelarea.marker.pattern', + **kwargs): + super(ShapesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_size.py b/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_size.py index def633c999d..c481432e8f9 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_size.py +++ b/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="funnelarea.marker.pattern", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='funnelarea.marker.pattern', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_sizesrc.py b/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_sizesrc.py index 4320434910e..0463edc196c 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="funnelarea.marker.pattern", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='funnelarea.marker.pattern', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_solidity.py b/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_solidity.py index a7fff3113c9..e217d3dc5dd 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_solidity.py +++ b/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_solidity.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class SolidityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="solidity", parent_name="funnelarea.marker.pattern", **kwargs - ): - super(SolidityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SolidityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='solidity', + parent_name='funnelarea.marker.pattern', + **kwargs): + super(SolidityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_soliditysrc.py b/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_soliditysrc.py index 9be2f5b2530..86b5ff8f863 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_soliditysrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/marker/pattern/_soliditysrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SoliditysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="soliditysrc", - parent_name="funnelarea.marker.pattern", - **kwargs, - ): - super(SoliditysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SoliditysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='soliditysrc', + parent_name='funnelarea.marker.pattern', + **kwargs): + super(SoliditysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/stream/__init__.py b/packages/python/plotly/plotly/validators/funnelarea/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/funnelarea/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnelarea/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/funnelarea/stream/_maxpoints.py index e081d5afb42..b53f15734bd 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/funnelarea/stream/_maxpoints.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxpoints", parent_name="funnelarea.stream", **kwargs - ): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='funnelarea.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/stream/_token.py b/packages/python/plotly/plotly/validators/funnelarea/stream/_token.py index 30192e4c768..17a9805c6a7 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/stream/_token.py +++ b/packages/python/plotly/plotly/validators/funnelarea/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="funnelarea.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='funnelarea.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/textfont/__init__.py b/packages/python/plotly/plotly/validators/funnelarea/textfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/funnelarea/textfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnelarea/textfont/_color.py b/packages/python/plotly/plotly/validators/funnelarea/textfont/_color.py index 27778487a17..96b9851cf6d 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/funnelarea/textfont/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="funnelarea.textfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='funnelarea.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/textfont/_colorsrc.py b/packages/python/plotly/plotly/validators/funnelarea/textfont/_colorsrc.py index e1f75edf4d4..750dd5dc47a 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/textfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/textfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="funnelarea.textfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='funnelarea.textfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/textfont/_family.py b/packages/python/plotly/plotly/validators/funnelarea/textfont/_family.py index 312a02d5ce0..80fcfb5187b 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/textfont/_family.py +++ b/packages/python/plotly/plotly/validators/funnelarea/textfont/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="funnelarea.textfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='funnelarea.textfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/textfont/_familysrc.py b/packages/python/plotly/plotly/validators/funnelarea/textfont/_familysrc.py index ffaffc41f91..1ec7467cdc1 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/textfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/textfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="funnelarea.textfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='funnelarea.textfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/textfont/_lineposition.py b/packages/python/plotly/plotly/validators/funnelarea/textfont/_lineposition.py index 0027d0a2127..4483870af65 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/textfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/funnelarea/textfont/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="funnelarea.textfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='funnelarea.textfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/textfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/funnelarea/textfont/_linepositionsrc.py index 031e35e51f7..e0cfc66137a 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/textfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/textfont/_linepositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="linepositionsrc", parent_name="funnelarea.textfont", **kwargs - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='funnelarea.textfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/textfont/_shadow.py b/packages/python/plotly/plotly/validators/funnelarea/textfont/_shadow.py index a4865b260e8..0d7403855da 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/textfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/funnelarea/textfont/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="funnelarea.textfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='funnelarea.textfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/textfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/funnelarea/textfont/_shadowsrc.py index 51c2258f5a8..be0bf77051a 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/textfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/textfont/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="funnelarea.textfont", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='funnelarea.textfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/textfont/_size.py b/packages/python/plotly/plotly/validators/funnelarea/textfont/_size.py index edfeb482def..be8ea424c11 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/textfont/_size.py +++ b/packages/python/plotly/plotly/validators/funnelarea/textfont/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="funnelarea.textfont", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='funnelarea.textfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/textfont/_sizesrc.py b/packages/python/plotly/plotly/validators/funnelarea/textfont/_sizesrc.py index f3aded5297a..d8657fd1cb6 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/textfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/textfont/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="funnelarea.textfont", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='funnelarea.textfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/textfont/_style.py b/packages/python/plotly/plotly/validators/funnelarea/textfont/_style.py index 5ae4be1b430..6e5b836836f 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/textfont/_style.py +++ b/packages/python/plotly/plotly/validators/funnelarea/textfont/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="funnelarea.textfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='funnelarea.textfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/textfont/_stylesrc.py b/packages/python/plotly/plotly/validators/funnelarea/textfont/_stylesrc.py index c1e797cab42..2e9406889ec 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/textfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/textfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="funnelarea.textfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='funnelarea.textfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/textfont/_textcase.py b/packages/python/plotly/plotly/validators/funnelarea/textfont/_textcase.py index 9e85354e33d..e5ec0ad68cb 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/textfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/funnelarea/textfont/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="funnelarea.textfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='funnelarea.textfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/textfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/funnelarea/textfont/_textcasesrc.py index 79b3b6241e3..8ade6ea7952 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/textfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/textfont/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="funnelarea.textfont", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='funnelarea.textfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/textfont/_variant.py b/packages/python/plotly/plotly/validators/funnelarea/textfont/_variant.py index 01381353190..aa5ee257a6b 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/textfont/_variant.py +++ b/packages/python/plotly/plotly/validators/funnelarea/textfont/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="funnelarea.textfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='funnelarea.textfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/textfont/_variantsrc.py b/packages/python/plotly/plotly/validators/funnelarea/textfont/_variantsrc.py index 04e6af971d0..701f6568ca7 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/textfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/textfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="funnelarea.textfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='funnelarea.textfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/textfont/_weight.py b/packages/python/plotly/plotly/validators/funnelarea/textfont/_weight.py index 1d56af3ef45..9bb49c0cba2 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/textfont/_weight.py +++ b/packages/python/plotly/plotly/validators/funnelarea/textfont/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="funnelarea.textfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='funnelarea.textfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/textfont/_weightsrc.py b/packages/python/plotly/plotly/validators/funnelarea/textfont/_weightsrc.py index a41484018b6..241bf31c73b 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/textfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/textfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="funnelarea.textfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='funnelarea.textfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/title/__init__.py b/packages/python/plotly/plotly/validators/funnelarea/title/__init__.py index bedd4ba1767..4f52affeec9 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/title/__init__.py +++ b/packages/python/plotly/plotly/validators/funnelarea/title/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._position import PositionValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._text.TextValidator", - "._position.PositionValidator", - "._font.FontValidator", - ], + ['._text.TextValidator', '._position.PositionValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnelarea/title/_font.py b/packages/python/plotly/plotly/validators/funnelarea/title/_font.py index 64f90d21717..6f99e0ea5c3 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/title/_font.py +++ b/packages/python/plotly/plotly/validators/funnelarea/title/_font.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="funnelarea.title", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='funnelarea.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/title/_position.py b/packages/python/plotly/plotly/validators/funnelarea/title/_position.py index 06067e6253a..2da81879dbb 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/title/_position.py +++ b/packages/python/plotly/plotly/validators/funnelarea/title/_position.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class PositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="position", parent_name="funnelarea.title", **kwargs - ): - super(PositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["top left", "top center", "top right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class PositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='position', + parent_name='funnelarea.title', + **kwargs): + super(PositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['top left', 'top center', 'top right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/title/_text.py b/packages/python/plotly/plotly/validators/funnelarea/title/_text.py index 81bf53add06..48389fbf434 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/title/_text.py +++ b/packages/python/plotly/plotly/validators/funnelarea/title/_text.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="funnelarea.title", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='funnelarea.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/title/font/__init__.py b/packages/python/plotly/plotly/validators/funnelarea/title/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/funnelarea/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/funnelarea/title/font/_color.py b/packages/python/plotly/plotly/validators/funnelarea/title/font/_color.py index 7a43ae88925..a68ed89dd3a 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/funnelarea/title/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="funnelarea.title.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='funnelarea.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/title/font/_colorsrc.py b/packages/python/plotly/plotly/validators/funnelarea/title/font/_colorsrc.py index 568990ff41c..a5dd31a46ff 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/title/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/title/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="funnelarea.title.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='funnelarea.title.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/title/font/_family.py b/packages/python/plotly/plotly/validators/funnelarea/title/font/_family.py index 274b1b8b4c4..932cbc39183 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/funnelarea/title/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="funnelarea.title.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='funnelarea.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/title/font/_familysrc.py b/packages/python/plotly/plotly/validators/funnelarea/title/font/_familysrc.py index a8de5654243..654e2ff4f1d 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/title/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/title/font/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="funnelarea.title.font", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='funnelarea.title.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/funnelarea/title/font/_lineposition.py index a8685c308a8..daccc3eb2a0 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/funnelarea/title/font/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="funnelarea.title.font", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='funnelarea.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/title/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/funnelarea/title/font/_linepositionsrc.py index 04a5f8c8e6d..d1a7d21c30b 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/title/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/title/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="funnelarea.title.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='funnelarea.title.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/title/font/_shadow.py b/packages/python/plotly/plotly/validators/funnelarea/title/font/_shadow.py index 07073820238..0e340a09056 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/funnelarea/title/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="funnelarea.title.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='funnelarea.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/title/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/funnelarea/title/font/_shadowsrc.py index 677b5ffb56a..fc974b5a760 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/title/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/title/font/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="funnelarea.title.font", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='funnelarea.title.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/title/font/_size.py b/packages/python/plotly/plotly/validators/funnelarea/title/font/_size.py index 230928b31b4..954f50daa7d 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/funnelarea/title/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="funnelarea.title.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='funnelarea.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/title/font/_sizesrc.py b/packages/python/plotly/plotly/validators/funnelarea/title/font/_sizesrc.py index cd20c2497f3..528b57546db 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/title/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/title/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="funnelarea.title.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='funnelarea.title.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/title/font/_style.py b/packages/python/plotly/plotly/validators/funnelarea/title/font/_style.py index a07f81f4d78..f2ff160aff6 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/funnelarea/title/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="funnelarea.title.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='funnelarea.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/title/font/_stylesrc.py b/packages/python/plotly/plotly/validators/funnelarea/title/font/_stylesrc.py index 5aa07587dbd..f3cf70154c9 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/title/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/title/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="funnelarea.title.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='funnelarea.title.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/title/font/_textcase.py b/packages/python/plotly/plotly/validators/funnelarea/title/font/_textcase.py index 0ba7eedf259..f5aef489ea0 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/funnelarea/title/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="funnelarea.title.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='funnelarea.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/title/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/funnelarea/title/font/_textcasesrc.py index c00d6aa7274..6b706958247 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/title/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/title/font/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="funnelarea.title.font", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='funnelarea.title.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/title/font/_variant.py b/packages/python/plotly/plotly/validators/funnelarea/title/font/_variant.py index 11138193deb..fbb5b532359 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/funnelarea/title/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="funnelarea.title.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='funnelarea.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/title/font/_variantsrc.py b/packages/python/plotly/plotly/validators/funnelarea/title/font/_variantsrc.py index a22dbdc2e64..3f68c4457f0 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/title/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/title/font/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="funnelarea.title.font", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='funnelarea.title.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/title/font/_weight.py b/packages/python/plotly/plotly/validators/funnelarea/title/font/_weight.py index b146cf917a9..61727a84c90 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/funnelarea/title/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="funnelarea.title.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='funnelarea.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/funnelarea/title/font/_weightsrc.py b/packages/python/plotly/plotly/validators/funnelarea/title/font/_weightsrc.py index af8f1166a97..0c1dce1b5d1 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/title/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/funnelarea/title/font/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="funnelarea.title.font", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='funnelarea.title.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/__init__.py b/packages/python/plotly/plotly/validators/heatmap/__init__.py index 5720a81de32..f572e394f0f 100644 --- a/packages/python/plotly/plotly/validators/heatmap/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmap/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zsrc import ZsrcValidator from ._zsmooth import ZsmoothValidator @@ -75,81 +74,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zsrc.ZsrcValidator", - "._zsmooth.ZsmoothValidator", - "._zorder.ZorderValidator", - "._zmin.ZminValidator", - "._zmid.ZmidValidator", - "._zmax.ZmaxValidator", - "._zhoverformat.ZhoverformatValidator", - "._zauto.ZautoValidator", - "._z.ZValidator", - "._ytype.YtypeValidator", - "._ysrc.YsrcValidator", - "._yperiodalignment.YperiodalignmentValidator", - "._yperiod0.Yperiod0Validator", - "._yperiod.YperiodValidator", - "._yhoverformat.YhoverformatValidator", - "._ygap.YgapValidator", - "._ycalendar.YcalendarValidator", - "._yaxis.YaxisValidator", - "._y0.Y0Validator", - "._y.YValidator", - "._xtype.XtypeValidator", - "._xsrc.XsrcValidator", - "._xperiodalignment.XperiodalignmentValidator", - "._xperiod0.Xperiod0Validator", - "._xperiod.XperiodValidator", - "._xhoverformat.XhoverformatValidator", - "._xgap.XgapValidator", - "._xcalendar.XcalendarValidator", - "._xaxis.XaxisValidator", - "._x0.X0Validator", - "._x.XValidator", - "._visible.VisibleValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._transpose.TransposeValidator", - "._texttemplate.TexttemplateValidator", - "._textsrc.TextsrcValidator", - "._textfont.TextfontValidator", - "._text.TextValidator", - "._stream.StreamValidator", - "._showscale.ShowscaleValidator", - "._showlegend.ShowlegendValidator", - "._reversescale.ReversescaleValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverongaps.HoverongapsValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._dy.DyValidator", - "._dx.DxValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._connectgaps.ConnectgapsValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._zsrc.ZsrcValidator', '._zsmooth.ZsmoothValidator', '._zorder.ZorderValidator', '._zmin.ZminValidator', '._zmid.ZmidValidator', '._zmax.ZmaxValidator', '._zhoverformat.ZhoverformatValidator', '._zauto.ZautoValidator', '._z.ZValidator', '._ytype.YtypeValidator', '._ysrc.YsrcValidator', '._yperiodalignment.YperiodalignmentValidator', '._yperiod0.Yperiod0Validator', '._yperiod.YperiodValidator', '._yhoverformat.YhoverformatValidator', '._ygap.YgapValidator', '._ycalendar.YcalendarValidator', '._yaxis.YaxisValidator', '._y0.Y0Validator', '._y.YValidator', '._xtype.XtypeValidator', '._xsrc.XsrcValidator', '._xperiodalignment.XperiodalignmentValidator', '._xperiod0.Xperiod0Validator', '._xperiod.XperiodValidator', '._xhoverformat.XhoverformatValidator', '._xgap.XgapValidator', '._xcalendar.XcalendarValidator', '._xaxis.XaxisValidator', '._x0.X0Validator', '._x.XValidator', '._visible.VisibleValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._transpose.TransposeValidator', '._texttemplate.TexttemplateValidator', '._textsrc.TextsrcValidator', '._textfont.TextfontValidator', '._text.TextValidator', '._stream.StreamValidator', '._showscale.ShowscaleValidator', '._showlegend.ShowlegendValidator', '._reversescale.ReversescaleValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverongaps.HoverongapsValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._dy.DyValidator', '._dx.DxValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._connectgaps.ConnectgapsValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/heatmap/_autocolorscale.py b/packages/python/plotly/plotly/validators/heatmap/_autocolorscale.py index d409d569b68..c3f0b661ff9 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/heatmap/_autocolorscale.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="autocolorscale", parent_name="heatmap", **kwargs): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='heatmap', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_coloraxis.py b/packages/python/plotly/plotly/validators/heatmap/_coloraxis.py index dde36756fcb..3c87bae2171 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/heatmap/_coloraxis.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="coloraxis", parent_name="heatmap", **kwargs): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='heatmap', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_colorbar.py b/packages/python/plotly/plotly/validators/heatmap/_colorbar.py index e91fd0a6a0f..dac04e1c14c 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_colorbar.py +++ b/packages/python/plotly/plotly/validators/heatmap/_colorbar.py @@ -1,279 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="colorbar", parent_name="heatmap", **kwargs): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.heatmap - .colorbar.Tickformatstop` instances or dicts - with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.heatmap.colorbar.tickformatstopdefaults), - sets the default property values to use for - elements of heatmap.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.heatmap.colorbar.T - itle` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='heatmap', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_colorscale.py b/packages/python/plotly/plotly/validators/heatmap/_colorscale.py index f8e989e1cfa..1b624120539 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_colorscale.py +++ b/packages/python/plotly/plotly/validators/heatmap/_colorscale.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__(self, plotly_name="colorscale", parent_name="heatmap", **kwargs): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='heatmap', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_connectgaps.py b/packages/python/plotly/plotly/validators/heatmap/_connectgaps.py index 3ba1dc5aa10..c359ae38594 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_connectgaps.py +++ b/packages/python/plotly/plotly/validators/heatmap/_connectgaps.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="connectgaps", parent_name="heatmap", **kwargs): - super(ConnectgapsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ConnectgapsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='connectgaps', + parent_name='heatmap', + **kwargs): + super(ConnectgapsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_customdata.py b/packages/python/plotly/plotly/validators/heatmap/_customdata.py index 0d87ce5ecbc..7d6545fce96 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_customdata.py +++ b/packages/python/plotly/plotly/validators/heatmap/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="heatmap", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='heatmap', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_customdatasrc.py b/packages/python/plotly/plotly/validators/heatmap/_customdatasrc.py index 3e267577ddb..a3c90fadd50 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/heatmap/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="heatmap", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='heatmap', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_dx.py b/packages/python/plotly/plotly/validators/heatmap/_dx.py index 7b0402c39ff..a764cafc700 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_dx.py +++ b/packages/python/plotly/plotly/validators/heatmap/_dx.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class DxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="dx", parent_name="heatmap", **kwargs): - super(DxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"xtype": "scaled"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dx', + parent_name='heatmap', + **kwargs): + super(DxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'xtype': 'scaled'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_dy.py b/packages/python/plotly/plotly/validators/heatmap/_dy.py index ccb42a16d70..0dab2f88a23 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_dy.py +++ b/packages/python/plotly/plotly/validators/heatmap/_dy.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class DyValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="dy", parent_name="heatmap", **kwargs): - super(DyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"ytype": "scaled"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DyValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dy', + parent_name='heatmap', + **kwargs): + super(DyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'ytype': 'scaled'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_hoverinfo.py b/packages/python/plotly/plotly/validators/heatmap/_hoverinfo.py index 796ceb7b877..8fe62e6d504 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/heatmap/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="heatmap", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='heatmap', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/heatmap/_hoverinfosrc.py index 338bbdb9cc4..15ea88df69b 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/heatmap/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="heatmap", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='heatmap', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_hoverlabel.py b/packages/python/plotly/plotly/validators/heatmap/_hoverlabel.py index e2ca30fd2ff..4509126508f 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/heatmap/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="heatmap", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='heatmap', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_hoverongaps.py b/packages/python/plotly/plotly/validators/heatmap/_hoverongaps.py index 94bd2a8604b..2308d1d2e1f 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_hoverongaps.py +++ b/packages/python/plotly/plotly/validators/heatmap/_hoverongaps.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverongapsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="hoverongaps", parent_name="heatmap", **kwargs): - super(HoverongapsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverongapsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='hoverongaps', + parent_name='heatmap', + **kwargs): + super(HoverongapsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_hovertemplate.py b/packages/python/plotly/plotly/validators/heatmap/_hovertemplate.py index 2a4ac2190bc..2e43a7612cf 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/heatmap/_hovertemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="heatmap", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='heatmap', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/heatmap/_hovertemplatesrc.py index 5cc143a451a..7f57b896722 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/heatmap/_hovertemplatesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertemplatesrc", parent_name="heatmap", **kwargs): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='heatmap', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_hovertext.py b/packages/python/plotly/plotly/validators/heatmap/_hovertext.py index c1ac0bdf4f4..7598f16f869 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_hovertext.py +++ b/packages/python/plotly/plotly/validators/heatmap/_hovertext.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="hovertext", parent_name="heatmap", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='hovertext', + parent_name='heatmap', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_hovertextsrc.py b/packages/python/plotly/plotly/validators/heatmap/_hovertextsrc.py index b6e788a00cc..732bd8d6b6e 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/heatmap/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="heatmap", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='heatmap', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_ids.py b/packages/python/plotly/plotly/validators/heatmap/_ids.py index b2dba315b1d..e6b98fba7f2 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_ids.py +++ b/packages/python/plotly/plotly/validators/heatmap/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="heatmap", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='heatmap', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_idssrc.py b/packages/python/plotly/plotly/validators/heatmap/_idssrc.py index 93539976224..00401be897e 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_idssrc.py +++ b/packages/python/plotly/plotly/validators/heatmap/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="heatmap", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='heatmap', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_legend.py b/packages/python/plotly/plotly/validators/heatmap/_legend.py index 0c177c920e8..7371d11649b 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_legend.py +++ b/packages/python/plotly/plotly/validators/heatmap/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="heatmap", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='heatmap', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_legendgroup.py b/packages/python/plotly/plotly/validators/heatmap/_legendgroup.py index 8fb3207d641..2de25a5184b 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/heatmap/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="heatmap", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='heatmap', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/heatmap/_legendgrouptitle.py index 080953fb828..8f0086177d3 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/heatmap/_legendgrouptitle.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="legendgrouptitle", parent_name="heatmap", **kwargs): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='heatmap', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_legendrank.py b/packages/python/plotly/plotly/validators/heatmap/_legendrank.py index 3b0333b2a2f..c58531bc8a1 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_legendrank.py +++ b/packages/python/plotly/plotly/validators/heatmap/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="heatmap", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='heatmap', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_legendwidth.py b/packages/python/plotly/plotly/validators/heatmap/_legendwidth.py index 03c65f00382..94311f6cd7e 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/heatmap/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="heatmap", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='heatmap', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_meta.py b/packages/python/plotly/plotly/validators/heatmap/_meta.py index 1e7e7208ea1..c4ef214dbcc 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_meta.py +++ b/packages/python/plotly/plotly/validators/heatmap/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="heatmap", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='heatmap', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_metasrc.py b/packages/python/plotly/plotly/validators/heatmap/_metasrc.py index 5e07bb0a428..4a0f59461d6 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_metasrc.py +++ b/packages/python/plotly/plotly/validators/heatmap/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="heatmap", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='heatmap', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_name.py b/packages/python/plotly/plotly/validators/heatmap/_name.py index 6a0a783a09c..71cbecd9212 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_name.py +++ b/packages/python/plotly/plotly/validators/heatmap/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="heatmap", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='heatmap', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_opacity.py b/packages/python/plotly/plotly/validators/heatmap/_opacity.py index 172bf32c3d7..b632fae9027 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_opacity.py +++ b/packages/python/plotly/plotly/validators/heatmap/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="heatmap", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='heatmap', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_reversescale.py b/packages/python/plotly/plotly/validators/heatmap/_reversescale.py index 645582738cd..c62e4b74549 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_reversescale.py +++ b/packages/python/plotly/plotly/validators/heatmap/_reversescale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="reversescale", parent_name="heatmap", **kwargs): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='heatmap', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_showlegend.py b/packages/python/plotly/plotly/validators/heatmap/_showlegend.py index 4be0110caa5..c73b3696675 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_showlegend.py +++ b/packages/python/plotly/plotly/validators/heatmap/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="heatmap", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='heatmap', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_showscale.py b/packages/python/plotly/plotly/validators/heatmap/_showscale.py index 238784b899a..6b7c90262aa 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_showscale.py +++ b/packages/python/plotly/plotly/validators/heatmap/_showscale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showscale", parent_name="heatmap", **kwargs): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='heatmap', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_stream.py b/packages/python/plotly/plotly/validators/heatmap/_stream.py index 5b65c11bbf6..9348eac2747 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_stream.py +++ b/packages/python/plotly/plotly/validators/heatmap/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="heatmap", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='heatmap', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_text.py b/packages/python/plotly/plotly/validators/heatmap/_text.py index f65cdc8eb0e..fcf6bb8c948 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_text.py +++ b/packages/python/plotly/plotly/validators/heatmap/_text.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="text", parent_name="heatmap", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='text', + parent_name='heatmap', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_textfont.py b/packages/python/plotly/plotly/validators/heatmap/_textfont.py index 7e1300945b1..3a5e32ba222 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_textfont.py +++ b/packages/python/plotly/plotly/validators/heatmap/_textfont.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="textfont", parent_name="heatmap", **kwargs): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='heatmap', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_textsrc.py b/packages/python/plotly/plotly/validators/heatmap/_textsrc.py index 7504a623aea..af00ef28922 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_textsrc.py +++ b/packages/python/plotly/plotly/validators/heatmap/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="heatmap", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='heatmap', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_texttemplate.py b/packages/python/plotly/plotly/validators/heatmap/_texttemplate.py index e35d3490eb0..791d2c484e7 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_texttemplate.py +++ b/packages/python/plotly/plotly/validators/heatmap/_texttemplate.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="texttemplate", parent_name="heatmap", **kwargs): - super(TexttemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TexttemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='texttemplate', + parent_name='heatmap', + **kwargs): + super(TexttemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_transpose.py b/packages/python/plotly/plotly/validators/heatmap/_transpose.py index 088bcbf3948..ff82f836882 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_transpose.py +++ b/packages/python/plotly/plotly/validators/heatmap/_transpose.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TransposeValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="transpose", parent_name="heatmap", **kwargs): - super(TransposeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TransposeValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='transpose', + parent_name='heatmap', + **kwargs): + super(TransposeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_uid.py b/packages/python/plotly/plotly/validators/heatmap/_uid.py index 74539c3812e..2533a8a6b0c 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_uid.py +++ b/packages/python/plotly/plotly/validators/heatmap/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="heatmap", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='heatmap', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_uirevision.py b/packages/python/plotly/plotly/validators/heatmap/_uirevision.py index 5156312543e..32422c688d5 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_uirevision.py +++ b/packages/python/plotly/plotly/validators/heatmap/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="heatmap", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='heatmap', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_visible.py b/packages/python/plotly/plotly/validators/heatmap/_visible.py index 0b0472cd8f8..64f02cb911b 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_visible.py +++ b/packages/python/plotly/plotly/validators/heatmap/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="heatmap", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='heatmap', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_x.py b/packages/python/plotly/plotly/validators/heatmap/_x.py index 71bc7cd5926..9f86c62ae1d 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_x.py +++ b/packages/python/plotly/plotly/validators/heatmap/_x.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="x", parent_name="heatmap", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - implied_edits=kwargs.pop("implied_edits", {"xtype": "array"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='x', + parent_name='heatmap', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + implied_edits=kwargs.pop('implied_edits', {'xtype': 'array'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_x0.py b/packages/python/plotly/plotly/validators/heatmap/_x0.py index 9e9df6fba3b..436e69e39d5 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_x0.py +++ b/packages/python/plotly/plotly/validators/heatmap/_x0.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class X0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="x0", parent_name="heatmap", **kwargs): - super(X0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - implied_edits=kwargs.pop("implied_edits", {"xtype": "scaled"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class X0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='x0', + parent_name='heatmap', + **kwargs): + super(X0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + implied_edits=kwargs.pop('implied_edits', {'xtype': 'scaled'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_xaxis.py b/packages/python/plotly/plotly/validators/heatmap/_xaxis.py index cdbebdb2493..54d89d851d6 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_xaxis.py +++ b/packages/python/plotly/plotly/validators/heatmap/_xaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="xaxis", parent_name="heatmap", **kwargs): - super(XaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "x"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='xaxis', + parent_name='heatmap', + **kwargs): + super(XaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'x'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_xcalendar.py b/packages/python/plotly/plotly/validators/heatmap/_xcalendar.py index 866cf54be1f..be480e3ef58 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_xcalendar.py +++ b/packages/python/plotly/plotly/validators/heatmap/_xcalendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xcalendar", parent_name="heatmap", **kwargs): - super(XcalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XcalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xcalendar', + parent_name='heatmap', + **kwargs): + super(XcalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_xgap.py b/packages/python/plotly/plotly/validators/heatmap/_xgap.py index 734573ef997..8614d32ad4f 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_xgap.py +++ b/packages/python/plotly/plotly/validators/heatmap/_xgap.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XgapValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="xgap", parent_name="heatmap", **kwargs): - super(XgapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XgapValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xgap', + parent_name='heatmap', + **kwargs): + super(XgapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_xhoverformat.py b/packages/python/plotly/plotly/validators/heatmap/_xhoverformat.py index 815c1bae4be..8c17e06c235 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_xhoverformat.py +++ b/packages/python/plotly/plotly/validators/heatmap/_xhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="xhoverformat", parent_name="heatmap", **kwargs): - super(XhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='xhoverformat', + parent_name='heatmap', + **kwargs): + super(XhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_xperiod.py b/packages/python/plotly/plotly/validators/heatmap/_xperiod.py index a408cfd8dd6..33b3e657b03 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_xperiod.py +++ b/packages/python/plotly/plotly/validators/heatmap/_xperiod.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XperiodValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="xperiod", parent_name="heatmap", **kwargs): - super(XperiodValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"xtype": "scaled"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XperiodValidator(_bv.AnyValidator): + def __init__(self, plotly_name='xperiod', + parent_name='heatmap', + **kwargs): + super(XperiodValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'xtype': 'scaled'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_xperiod0.py b/packages/python/plotly/plotly/validators/heatmap/_xperiod0.py index 2fb554304df..9fdc9c71765 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_xperiod0.py +++ b/packages/python/plotly/plotly/validators/heatmap/_xperiod0.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class Xperiod0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="xperiod0", parent_name="heatmap", **kwargs): - super(Xperiod0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"xtype": "scaled"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Xperiod0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='xperiod0', + parent_name='heatmap', + **kwargs): + super(Xperiod0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'xtype': 'scaled'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_xperiodalignment.py b/packages/python/plotly/plotly/validators/heatmap/_xperiodalignment.py index 129b29f1ea2..4498a349341 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_xperiodalignment.py +++ b/packages/python/plotly/plotly/validators/heatmap/_xperiodalignment.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class XperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xperiodalignment", parent_name="heatmap", **kwargs): - super(XperiodalignmentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"xtype": "scaled"}), - values=kwargs.pop("values", ["start", "middle", "end"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XperiodalignmentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xperiodalignment', + parent_name='heatmap', + **kwargs): + super(XperiodalignmentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'xtype': 'scaled'}), + values=kwargs.pop('values', ['start', 'middle', 'end']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_xsrc.py b/packages/python/plotly/plotly/validators/heatmap/_xsrc.py index 2f296dfbda6..becadee0d0a 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_xsrc.py +++ b/packages/python/plotly/plotly/validators/heatmap/_xsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="xsrc", parent_name="heatmap", **kwargs): - super(XsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='xsrc', + parent_name='heatmap', + **kwargs): + super(XsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_xtype.py b/packages/python/plotly/plotly/validators/heatmap/_xtype.py index 2e4ffbb3500..505c27ff39f 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_xtype.py +++ b/packages/python/plotly/plotly/validators/heatmap/_xtype.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XtypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xtype", parent_name="heatmap", **kwargs): - super(XtypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - values=kwargs.pop("values", ["array", "scaled"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XtypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xtype', + parent_name='heatmap', + **kwargs): + super(XtypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + values=kwargs.pop('values', ['array', 'scaled']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_y.py b/packages/python/plotly/plotly/validators/heatmap/_y.py index b666cd2c46a..b1a0184d429 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_y.py +++ b/packages/python/plotly/plotly/validators/heatmap/_y.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="y", parent_name="heatmap", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - implied_edits=kwargs.pop("implied_edits", {"ytype": "array"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='y', + parent_name='heatmap', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + implied_edits=kwargs.pop('implied_edits', {'ytype': 'array'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_y0.py b/packages/python/plotly/plotly/validators/heatmap/_y0.py index 55aa5f4d1f3..15a4aa2c434 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_y0.py +++ b/packages/python/plotly/plotly/validators/heatmap/_y0.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class Y0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="y0", parent_name="heatmap", **kwargs): - super(Y0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - implied_edits=kwargs.pop("implied_edits", {"ytype": "scaled"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Y0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='y0', + parent_name='heatmap', + **kwargs): + super(Y0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + implied_edits=kwargs.pop('implied_edits', {'ytype': 'scaled'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_yaxis.py b/packages/python/plotly/plotly/validators/heatmap/_yaxis.py index 656429380e6..6aa28b78981 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_yaxis.py +++ b/packages/python/plotly/plotly/validators/heatmap/_yaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="yaxis", parent_name="heatmap", **kwargs): - super(YaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "y"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='yaxis', + parent_name='heatmap', + **kwargs): + super(YaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'y'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_ycalendar.py b/packages/python/plotly/plotly/validators/heatmap/_ycalendar.py index 94f2802dba7..480a0e4f2ff 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_ycalendar.py +++ b/packages/python/plotly/plotly/validators/heatmap/_ycalendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="ycalendar", parent_name="heatmap", **kwargs): - super(YcalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YcalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ycalendar', + parent_name='heatmap', + **kwargs): + super(YcalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_ygap.py b/packages/python/plotly/plotly/validators/heatmap/_ygap.py index f5bf876087a..aa86a660852 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_ygap.py +++ b/packages/python/plotly/plotly/validators/heatmap/_ygap.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YgapValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="ygap", parent_name="heatmap", **kwargs): - super(YgapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YgapValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ygap', + parent_name='heatmap', + **kwargs): + super(YgapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_yhoverformat.py b/packages/python/plotly/plotly/validators/heatmap/_yhoverformat.py index c05ec609575..35dc5df57a9 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_yhoverformat.py +++ b/packages/python/plotly/plotly/validators/heatmap/_yhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="yhoverformat", parent_name="heatmap", **kwargs): - super(YhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='yhoverformat', + parent_name='heatmap', + **kwargs): + super(YhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_yperiod.py b/packages/python/plotly/plotly/validators/heatmap/_yperiod.py index 6496c7ed159..d8fd436190c 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_yperiod.py +++ b/packages/python/plotly/plotly/validators/heatmap/_yperiod.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YperiodValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="yperiod", parent_name="heatmap", **kwargs): - super(YperiodValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"ytype": "scaled"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YperiodValidator(_bv.AnyValidator): + def __init__(self, plotly_name='yperiod', + parent_name='heatmap', + **kwargs): + super(YperiodValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'ytype': 'scaled'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_yperiod0.py b/packages/python/plotly/plotly/validators/heatmap/_yperiod0.py index 23b3b9f85da..b997ff16679 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_yperiod0.py +++ b/packages/python/plotly/plotly/validators/heatmap/_yperiod0.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class Yperiod0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="yperiod0", parent_name="heatmap", **kwargs): - super(Yperiod0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"ytype": "scaled"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Yperiod0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='yperiod0', + parent_name='heatmap', + **kwargs): + super(Yperiod0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'ytype': 'scaled'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_yperiodalignment.py b/packages/python/plotly/plotly/validators/heatmap/_yperiodalignment.py index 046b687fa35..1a4baa548c5 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_yperiodalignment.py +++ b/packages/python/plotly/plotly/validators/heatmap/_yperiodalignment.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class YperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yperiodalignment", parent_name="heatmap", **kwargs): - super(YperiodalignmentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"ytype": "scaled"}), - values=kwargs.pop("values", ["start", "middle", "end"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YperiodalignmentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yperiodalignment', + parent_name='heatmap', + **kwargs): + super(YperiodalignmentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'ytype': 'scaled'}), + values=kwargs.pop('values', ['start', 'middle', 'end']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_ysrc.py b/packages/python/plotly/plotly/validators/heatmap/_ysrc.py index ca0e06f9fd0..0ba1efb8f87 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_ysrc.py +++ b/packages/python/plotly/plotly/validators/heatmap/_ysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="ysrc", parent_name="heatmap", **kwargs): - super(YsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ysrc', + parent_name='heatmap', + **kwargs): + super(YsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_ytype.py b/packages/python/plotly/plotly/validators/heatmap/_ytype.py index eb8724a7801..9ddd2b30dd6 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_ytype.py +++ b/packages/python/plotly/plotly/validators/heatmap/_ytype.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YtypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="ytype", parent_name="heatmap", **kwargs): - super(YtypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - values=kwargs.pop("values", ["array", "scaled"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YtypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ytype', + parent_name='heatmap', + **kwargs): + super(YtypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + values=kwargs.pop('values', ['array', 'scaled']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_z.py b/packages/python/plotly/plotly/validators/heatmap/_z.py index 96cf12216ac..e1f3f495fcd 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_z.py +++ b/packages/python/plotly/plotly/validators/heatmap/_z.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="z", parent_name="heatmap", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='z', + parent_name='heatmap', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_zauto.py b/packages/python/plotly/plotly/validators/heatmap/_zauto.py index f813e26ec22..8e1a2e39f26 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_zauto.py +++ b/packages/python/plotly/plotly/validators/heatmap/_zauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="zauto", parent_name="heatmap", **kwargs): - super(ZautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='zauto', + parent_name='heatmap', + **kwargs): + super(ZautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_zhoverformat.py b/packages/python/plotly/plotly/validators/heatmap/_zhoverformat.py index bec2e7d5760..0085f8b1383 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_zhoverformat.py +++ b/packages/python/plotly/plotly/validators/heatmap/_zhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="zhoverformat", parent_name="heatmap", **kwargs): - super(ZhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='zhoverformat', + parent_name='heatmap', + **kwargs): + super(ZhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_zmax.py b/packages/python/plotly/plotly/validators/heatmap/_zmax.py index 3c5f008850e..5661825d222 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_zmax.py +++ b/packages/python/plotly/plotly/validators/heatmap/_zmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmax", parent_name="heatmap", **kwargs): - super(ZmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"zauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmax', + parent_name='heatmap', + **kwargs): + super(ZmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'zauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_zmid.py b/packages/python/plotly/plotly/validators/heatmap/_zmid.py index 8c4d587d7a6..86be5ffa422 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_zmid.py +++ b/packages/python/plotly/plotly/validators/heatmap/_zmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmid", parent_name="heatmap", **kwargs): - super(ZmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmid', + parent_name='heatmap', + **kwargs): + super(ZmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_zmin.py b/packages/python/plotly/plotly/validators/heatmap/_zmin.py index ccf2b54b742..8159b78c0f2 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_zmin.py +++ b/packages/python/plotly/plotly/validators/heatmap/_zmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmin", parent_name="heatmap", **kwargs): - super(ZminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"zauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmin', + parent_name='heatmap', + **kwargs): + super(ZminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'zauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_zorder.py b/packages/python/plotly/plotly/validators/heatmap/_zorder.py index 5d7073a9d98..44a4b3452b6 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_zorder.py +++ b/packages/python/plotly/plotly/validators/heatmap/_zorder.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="zorder", parent_name="heatmap", **kwargs): - super(ZorderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZorderValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='zorder', + parent_name='heatmap', + **kwargs): + super(ZorderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_zsmooth.py b/packages/python/plotly/plotly/validators/heatmap/_zsmooth.py index 8ddc3870dbb..c3ec310f92d 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_zsmooth.py +++ b/packages/python/plotly/plotly/validators/heatmap/_zsmooth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZsmoothValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="zsmooth", parent_name="heatmap", **kwargs): - super(ZsmoothValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["fast", "best", False]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZsmoothValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='zsmooth', + parent_name='heatmap', + **kwargs): + super(ZsmoothValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['fast', 'best', False]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/_zsrc.py b/packages/python/plotly/plotly/validators/heatmap/_zsrc.py index a6f8c2076c6..174d6935616 100644 --- a/packages/python/plotly/plotly/validators/heatmap/_zsrc.py +++ b/packages/python/plotly/plotly/validators/heatmap/_zsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="zsrc", parent_name="heatmap", **kwargs): - super(ZsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='zsrc', + parent_name='heatmap', + **kwargs): + super(ZsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/__init__.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_bgcolor.py index 1a4875e8989..013a3eac79b 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_bgcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="bgcolor", parent_name="heatmap.colorbar", **kwargs): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='heatmap.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_bordercolor.py index 10cbf7f7dd8..0e9d9d903a9 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="heatmap.colorbar", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='heatmap.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_borderwidth.py index 2db34d2622b..6fc29dfdb79 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_borderwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderwidth", parent_name="heatmap.colorbar", **kwargs - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='heatmap.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_dtick.py index 5eeff0d6fa5..59c3b63822e 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_dtick.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="dtick", parent_name="heatmap.colorbar", **kwargs): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='heatmap.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_exponentformat.py index c4a12bd449c..5a3fa77ee8c 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_exponentformat.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="exponentformat", parent_name="heatmap.colorbar", **kwargs - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='heatmap.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_labelalias.py index 24cc4b1b999..0c88aaadea4 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="heatmap.colorbar", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='heatmap.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_len.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_len.py index b71715bf29f..9cd8dce1849 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_len.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="len", parent_name="heatmap.colorbar", **kwargs): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='heatmap.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_lenmode.py index ee5e4db0267..f2c88dae3d7 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_lenmode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="lenmode", parent_name="heatmap.colorbar", **kwargs): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='heatmap.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_minexponent.py index 930c56bc1fe..5db67e077a6 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="heatmap.colorbar", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='heatmap.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_nticks.py index cbe572eb80b..fe2fc4894eb 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_nticks.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="nticks", parent_name="heatmap.colorbar", **kwargs): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='heatmap.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_orientation.py index 362fe8c79e8..84e6139daf5 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_orientation.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="orientation", parent_name="heatmap.colorbar", **kwargs - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='heatmap.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_outlinecolor.py index d957fc59f9a..fbc27e5e5bd 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_outlinecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="outlinecolor", parent_name="heatmap.colorbar", **kwargs - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='heatmap.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_outlinewidth.py index df12eb21c61..abacfff91ba 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_outlinewidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="outlinewidth", parent_name="heatmap.colorbar", **kwargs - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='heatmap.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_separatethousands.py index e18b90496f1..6d671c13c19 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_separatethousands.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="separatethousands", parent_name="heatmap.colorbar", **kwargs - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='heatmap.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_showexponent.py index 9fa86c3e8a9..a084f04f8b9 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="heatmap.colorbar", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='heatmap.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_showticklabels.py index b0b604abbb7..aaafb88c986 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_showticklabels.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showticklabels", parent_name="heatmap.colorbar", **kwargs - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='heatmap.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_showtickprefix.py index 4761c74032f..0a7a8232acc 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_showtickprefix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showtickprefix", parent_name="heatmap.colorbar", **kwargs - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='heatmap.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_showticksuffix.py index 684eb088e32..3c4ba055ebc 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_showticksuffix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showticksuffix", parent_name="heatmap.colorbar", **kwargs - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='heatmap.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_thickness.py index 00678044252..6ec1c8d90dc 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="heatmap.colorbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='heatmap.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_thicknessmode.py index 4668f2de33a..50b71a341d2 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_thicknessmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="thicknessmode", parent_name="heatmap.colorbar", **kwargs - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='heatmap.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_tick0.py index 694c6f1dc3c..ed61db6ee3b 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_tick0.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="tick0", parent_name="heatmap.colorbar", **kwargs): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='heatmap.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickangle.py index bf64969740c..27d68a5e863 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="heatmap.colorbar", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='heatmap.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickcolor.py index fa6df4f9da7..69a08afb330 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="heatmap.colorbar", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='heatmap.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickfont.py index 13c463f581a..0353cf6bee6 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="heatmap.colorbar", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='heatmap.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickformat.py index a5729303006..5fc8b835cba 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="heatmap.colorbar", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='heatmap.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickformatstopdefaults.py index 498bb058a9a..579b673cd78 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="heatmap.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='heatmap.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickformatstops.py index 69fce097d9e..af1b3aa7e65 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickformatstops.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="tickformatstops", parent_name="heatmap.colorbar", **kwargs - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='heatmap.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticklabeloverflow.py index b91bdcfd311..86f5a12c19e 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticklabeloverflow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticklabeloverflow", parent_name="heatmap.colorbar", **kwargs - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='heatmap.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticklabelposition.py index cd8459256c5..60a5492e287 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticklabelposition.py @@ -1,28 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticklabelposition", parent_name="heatmap.colorbar", **kwargs - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='heatmap.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticklabelstep.py index d7aea9e48fa..6ad5d23d76b 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticklabelstep.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="ticklabelstep", parent_name="heatmap.colorbar", **kwargs - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='heatmap.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticklen.py index 289ce89008a..4af279ac78f 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticklen.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="ticklen", parent_name="heatmap.colorbar", **kwargs): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='heatmap.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickmode.py index cb6e9034eb7..0e8341b2552 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="heatmap.colorbar", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='heatmap.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickprefix.py index 8899abd5c5d..2d54e08b308 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="heatmap.colorbar", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='heatmap.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticks.py index 42ae13ee9f1..82d1daf6446 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticks.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="ticks", parent_name="heatmap.colorbar", **kwargs): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='heatmap.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticksuffix.py index 7c57e9e6d34..bf61c8d0148 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="heatmap.colorbar", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='heatmap.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticktext.py index 95b7c4a7832..b441416dfd0 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="heatmap.colorbar", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='heatmap.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticktextsrc.py index 9e32ce793cc..75d938aab6a 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="heatmap.colorbar", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='heatmap.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickvals.py index ea1c42223b0..cfd74838d34 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="heatmap.colorbar", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='heatmap.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickvalssrc.py index d16a4ebf15c..d12e5d79093 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="heatmap.colorbar", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='heatmap.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickwidth.py index 00ec752d895..7ab4d9f2d33 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="heatmap.colorbar", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='heatmap.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_title.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_title.py index 0b21692cb28..a93e9bb2983 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_title.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__(self, plotly_name="title", parent_name="heatmap.colorbar", **kwargs): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='heatmap.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_x.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_x.py index f2c9b03706a..f5f2eb6f369 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x", parent_name="heatmap.colorbar", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='heatmap.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_xanchor.py index 127194a4dee..ed22a4e7d78 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_xanchor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xanchor", parent_name="heatmap.colorbar", **kwargs): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='heatmap.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_xpad.py index 55289d4726c..a94792caced 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_xpad.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="xpad", parent_name="heatmap.colorbar", **kwargs): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='heatmap.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_xref.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_xref.py index 64f9e6079b4..d92cfe21325 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_xref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xref", parent_name="heatmap.colorbar", **kwargs): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='heatmap.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_y.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_y.py index 673d41178c7..bcfee91ed24 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y", parent_name="heatmap.colorbar", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='heatmap.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_yanchor.py index de0c351cbce..1f162b93c7b 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_yanchor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yanchor", parent_name="heatmap.colorbar", **kwargs): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='heatmap.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_ypad.py index b2296fbbbeb..acf9599417b 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_ypad.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="ypad", parent_name="heatmap.colorbar", **kwargs): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='heatmap.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/_yref.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/_yref.py index 85b51bd7db9..d3e7242af4c 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/_yref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yref", parent_name="heatmap.colorbar", **kwargs): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='heatmap.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_color.py index 642169224bf..20664bac6e4 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="heatmap.colorbar.tickfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='heatmap.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_family.py index 594fc7b5e79..f1fd8961b28 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="heatmap.colorbar.tickfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='heatmap.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_lineposition.py index e8b801a4b78..d15044a890f 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="heatmap.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='heatmap.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_shadow.py index 21173688aba..f74474def23 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="heatmap.colorbar.tickfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='heatmap.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_size.py index e23dac1c185..622324daf5b 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="heatmap.colorbar.tickfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='heatmap.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_style.py index d502ab5499b..a6560b7e115 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="heatmap.colorbar.tickfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='heatmap.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_textcase.py index a5bc61581ee..885a5a263f4 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="heatmap.colorbar.tickfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='heatmap.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_variant.py index 05697d9ad50..6f93c0ae2c6 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="heatmap.colorbar.tickfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='heatmap.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_weight.py index a8a92b7f1cf..7b9e2a2820f 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="heatmap.colorbar.tickfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='heatmap.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickformatstop/_dtickrange.py index 053d1fbd0a4..5a14755827a 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="heatmap.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - items=kwargs.pop( - "items", - [ - {"editType": "colorbars", "valType": "any"}, - {"editType": "colorbars", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='heatmap.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + items=kwargs.pop('items', [{'editType': 'colorbars', 'valType': 'any'}, {'editType': 'colorbars', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickformatstop/_enabled.py index efc8fa2efc2..f0eb65d3fc0 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="heatmap.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='heatmap.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickformatstop/_name.py index 28aa5f798bc..7520640ee6c 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="heatmap.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='heatmap.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickformatstop/_templateitemname.py index 7778d8636a3..38257c2c66f 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="heatmap.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='heatmap.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickformatstop/_value.py index 2f8d10168bf..bbf0aabeb59 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="heatmap.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='heatmap.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/_font.py index cd0bd44fb26..efd1f7d922a 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="heatmap.colorbar.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='heatmap.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/_side.py index bb83bb8ab18..7a98d8df1db 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/_side.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="side", parent_name="heatmap.colorbar.title", **kwargs - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='heatmap.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/_text.py index afabbf89a29..ba921323394 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="heatmap.colorbar.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='heatmap.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_color.py index 119469fb4c6..37507c38df0 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="heatmap.colorbar.title.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='heatmap.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_family.py index 77d065df681..514f63f7057 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="heatmap.colorbar.title.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='heatmap.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_lineposition.py index 955e17dda05..d070bd9c718 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="heatmap.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='heatmap.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_shadow.py index 438242738b1..418a9bd2a93 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="heatmap.colorbar.title.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='heatmap.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_size.py index 10ab76a60f3..89422c5370b 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="heatmap.colorbar.title.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='heatmap.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_style.py index b145300e113..6a9b9bb0f4d 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="heatmap.colorbar.title.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='heatmap.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_textcase.py index 9338458da2e..9fbaf96939c 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="heatmap.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='heatmap.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_variant.py index 107ada45481..9610d6e665a 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="heatmap.colorbar.title.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='heatmap.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_weight.py index c1c204c9437..b6014921d66 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="heatmap.colorbar.title.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='heatmap.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_align.py index 28d9abcb1bc..947662e350b 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_align.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="align", parent_name="heatmap.hoverlabel", **kwargs): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='heatmap.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_alignsrc.py index 24a81636ead..1e9cecdc38f 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="heatmap.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='heatmap.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_bgcolor.py index c2d4ec23e24..d0c20adbd6d 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="heatmap.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='heatmap.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_bgcolorsrc.py index 016aec1f5da..eb5e1d0fbb1 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="heatmap.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='heatmap.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_bordercolor.py index 3b383b9d263..56dbc9dae78 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="heatmap.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='heatmap.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_bordercolorsrc.py index 01a7fd43539..6af5487ca38 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bordercolorsrc", parent_name="heatmap.hoverlabel", **kwargs - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='heatmap.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_font.py index a064b500338..dd8ff03725e 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_font.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="heatmap.hoverlabel", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='heatmap.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_namelength.py index 193c8a215f3..a212f6cd15d 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="heatmap.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='heatmap.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_namelengthsrc.py index d148b3a0060..6f287890d3f 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="heatmap.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='heatmap.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_color.py index 1a12954971a..fda304d7ea2 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="heatmap.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='heatmap.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_colorsrc.py index c2c353777c5..534681f72a4 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="heatmap.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='heatmap.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_family.py index 907171acbb0..56aaaa0285c 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="heatmap.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='heatmap.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_familysrc.py index 9e2744b00e1..af59e17c08d 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="heatmap.hoverlabel.font", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='heatmap.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_lineposition.py index cf24fd5495b..81ee4bdc3f4 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="heatmap.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='heatmap.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_linepositionsrc.py index 79d4b6e9387..93d851faee3 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="heatmap.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='heatmap.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_shadow.py index 597bf9fa5bb..9ae39c5a8cd 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="heatmap.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='heatmap.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_shadowsrc.py index 6f666c8c73e..53490ec21d9 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="heatmap.hoverlabel.font", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='heatmap.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_size.py index dab25c2ba12..9de8674f7e5 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="heatmap.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='heatmap.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_sizesrc.py index 0c5b97149a2..4b9227475fa 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="heatmap.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='heatmap.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_style.py index 0ba2cb95b7a..a99055c8f23 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="heatmap.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='heatmap.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_stylesrc.py index beaa465b728..d275d180641 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="heatmap.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='heatmap.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_textcase.py index b774dc7da6c..510cb081046 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="heatmap.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='heatmap.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_textcasesrc.py index 41f253aaadb..53c13729a5a 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="heatmap.hoverlabel.font", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='heatmap.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_variant.py index 344321a2beb..047f3a83cbe 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="heatmap.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='heatmap.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_variantsrc.py index 6d3321a0e81..9d5819ff066 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="heatmap.hoverlabel.font", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='heatmap.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_weight.py index 8b29932a399..9e8a0e31046 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="heatmap.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='heatmap.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_weightsrc.py index 09f4179834e..1e1e03c8950 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="heatmap.hoverlabel.font", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='heatmap.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/_font.py index 2b37aedda3e..809c79b6d18 100644 --- a/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="heatmap.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='heatmap.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/_text.py index dc447df7e8e..561fd866688 100644 --- a/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="heatmap.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='heatmap.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_color.py index 992adc73b12..c50a98dec93 100644 --- a/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="heatmap.legendgrouptitle.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='heatmap.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_family.py index f0c10a5c55a..81bcb7c876d 100644 --- a/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="heatmap.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='heatmap.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_lineposition.py index d4f13671a8a..2e08bfde856 100644 --- a/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="heatmap.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='heatmap.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_shadow.py index 49fa2063d12..c32ba4c8f01 100644 --- a/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="heatmap.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='heatmap.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_size.py index 70b659bc1aa..d57f8e86067 100644 --- a/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="heatmap.legendgrouptitle.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='heatmap.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_style.py index 5e0a310d615..ee10b2ab236 100644 --- a/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="heatmap.legendgrouptitle.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='heatmap.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_textcase.py index 9733a530e73..1c18163049b 100644 --- a/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="heatmap.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='heatmap.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_variant.py index fadd24a1028..2d89d7cc36a 100644 --- a/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="heatmap.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='heatmap.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_weight.py index 2009543af4b..709eb08acf7 100644 --- a/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="heatmap.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='heatmap.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/stream/__init__.py b/packages/python/plotly/plotly/validators/heatmap/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/heatmap/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmap/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/heatmap/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/heatmap/stream/_maxpoints.py index c5fa4e0d851..62483cf8927 100644 --- a/packages/python/plotly/plotly/validators/heatmap/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/heatmap/stream/_maxpoints.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="maxpoints", parent_name="heatmap.stream", **kwargs): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='heatmap.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/stream/_token.py b/packages/python/plotly/plotly/validators/heatmap/stream/_token.py index fb250b61f54..9fe035e911d 100644 --- a/packages/python/plotly/plotly/validators/heatmap/stream/_token.py +++ b/packages/python/plotly/plotly/validators/heatmap/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="heatmap.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='heatmap.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/textfont/__init__.py b/packages/python/plotly/plotly/validators/heatmap/textfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/heatmap/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmap/textfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/heatmap/textfont/_color.py b/packages/python/plotly/plotly/validators/heatmap/textfont/_color.py index 0b08a548a0a..49f0f8feb82 100644 --- a/packages/python/plotly/plotly/validators/heatmap/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/heatmap/textfont/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="heatmap.textfont", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='heatmap.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/textfont/_family.py b/packages/python/plotly/plotly/validators/heatmap/textfont/_family.py index 09e7ca6bbd4..f601d5a4d54 100644 --- a/packages/python/plotly/plotly/validators/heatmap/textfont/_family.py +++ b/packages/python/plotly/plotly/validators/heatmap/textfont/_family.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="family", parent_name="heatmap.textfont", **kwargs): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='heatmap.textfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/textfont/_lineposition.py b/packages/python/plotly/plotly/validators/heatmap/textfont/_lineposition.py index 384062e837f..f37bf2e113d 100644 --- a/packages/python/plotly/plotly/validators/heatmap/textfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/heatmap/textfont/_lineposition.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="heatmap.textfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='heatmap.textfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/textfont/_shadow.py b/packages/python/plotly/plotly/validators/heatmap/textfont/_shadow.py index 0b9014fa2d6..a01fe01e4dc 100644 --- a/packages/python/plotly/plotly/validators/heatmap/textfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/heatmap/textfont/_shadow.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="shadow", parent_name="heatmap.textfont", **kwargs): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='heatmap.textfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/textfont/_size.py b/packages/python/plotly/plotly/validators/heatmap/textfont/_size.py index b3612f44c76..24c58d28d97 100644 --- a/packages/python/plotly/plotly/validators/heatmap/textfont/_size.py +++ b/packages/python/plotly/plotly/validators/heatmap/textfont/_size.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="heatmap.textfont", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='heatmap.textfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/textfont/_style.py b/packages/python/plotly/plotly/validators/heatmap/textfont/_style.py index 7dda60a6e38..14ffb02fe64 100644 --- a/packages/python/plotly/plotly/validators/heatmap/textfont/_style.py +++ b/packages/python/plotly/plotly/validators/heatmap/textfont/_style.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="style", parent_name="heatmap.textfont", **kwargs): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='heatmap.textfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/textfont/_textcase.py b/packages/python/plotly/plotly/validators/heatmap/textfont/_textcase.py index 006b8c33548..047aa0a1c13 100644 --- a/packages/python/plotly/plotly/validators/heatmap/textfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/heatmap/textfont/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="heatmap.textfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='heatmap.textfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/textfont/_variant.py b/packages/python/plotly/plotly/validators/heatmap/textfont/_variant.py index d1597573a97..9ce07f0204d 100644 --- a/packages/python/plotly/plotly/validators/heatmap/textfont/_variant.py +++ b/packages/python/plotly/plotly/validators/heatmap/textfont/_variant.py @@ -1,22 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="variant", parent_name="heatmap.textfont", **kwargs): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='heatmap.textfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/heatmap/textfont/_weight.py b/packages/python/plotly/plotly/validators/heatmap/textfont/_weight.py index e37fc18d8e8..506485be528 100644 --- a/packages/python/plotly/plotly/validators/heatmap/textfont/_weight.py +++ b/packages/python/plotly/plotly/validators/heatmap/textfont/_weight.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="weight", parent_name="heatmap.textfont", **kwargs): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='heatmap.textfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/__init__.py b/packages/python/plotly/plotly/validators/histogram/__init__.py index 7ed88f70d87..711e7d35f51 100644 --- a/packages/python/plotly/plotly/validators/histogram/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zorder import ZorderValidator from ._ysrc import YsrcValidator @@ -70,76 +69,10 @@ from ._alignmentgroup import AlignmentgroupValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zorder.ZorderValidator", - "._ysrc.YsrcValidator", - "._yhoverformat.YhoverformatValidator", - "._ycalendar.YcalendarValidator", - "._ybins.YbinsValidator", - "._yaxis.YaxisValidator", - "._y.YValidator", - "._xsrc.XsrcValidator", - "._xhoverformat.XhoverformatValidator", - "._xcalendar.XcalendarValidator", - "._xbins.XbinsValidator", - "._xaxis.XaxisValidator", - "._x.XValidator", - "._visible.VisibleValidator", - "._unselected.UnselectedValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._texttemplate.TexttemplateValidator", - "._textsrc.TextsrcValidator", - "._textposition.TextpositionValidator", - "._textfont.TextfontValidator", - "._textangle.TextangleValidator", - "._text.TextValidator", - "._stream.StreamValidator", - "._showlegend.ShowlegendValidator", - "._selectedpoints.SelectedpointsValidator", - "._selected.SelectedValidator", - "._outsidetextfont.OutsidetextfontValidator", - "._orientation.OrientationValidator", - "._opacity.OpacityValidator", - "._offsetgroup.OffsetgroupValidator", - "._nbinsy.NbinsyValidator", - "._nbinsx.NbinsxValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._marker.MarkerValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._insidetextfont.InsidetextfontValidator", - "._insidetextanchor.InsidetextanchorValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._histnorm.HistnormValidator", - "._histfunc.HistfuncValidator", - "._error_y.Error_YValidator", - "._error_x.Error_XValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._cumulative.CumulativeValidator", - "._constraintext.ConstraintextValidator", - "._cliponaxis.CliponaxisValidator", - "._bingroup.BingroupValidator", - "._autobiny.AutobinyValidator", - "._autobinx.AutobinxValidator", - "._alignmentgroup.AlignmentgroupValidator", - ], + ['._zorder.ZorderValidator', '._ysrc.YsrcValidator', '._yhoverformat.YhoverformatValidator', '._ycalendar.YcalendarValidator', '._ybins.YbinsValidator', '._yaxis.YaxisValidator', '._y.YValidator', '._xsrc.XsrcValidator', '._xhoverformat.XhoverformatValidator', '._xcalendar.XcalendarValidator', '._xbins.XbinsValidator', '._xaxis.XaxisValidator', '._x.XValidator', '._visible.VisibleValidator', '._unselected.UnselectedValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._texttemplate.TexttemplateValidator', '._textsrc.TextsrcValidator', '._textposition.TextpositionValidator', '._textfont.TextfontValidator', '._textangle.TextangleValidator', '._text.TextValidator', '._stream.StreamValidator', '._showlegend.ShowlegendValidator', '._selectedpoints.SelectedpointsValidator', '._selected.SelectedValidator', '._outsidetextfont.OutsidetextfontValidator', '._orientation.OrientationValidator', '._opacity.OpacityValidator', '._offsetgroup.OffsetgroupValidator', '._nbinsy.NbinsyValidator', '._nbinsx.NbinsxValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._marker.MarkerValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._insidetextfont.InsidetextfontValidator', '._insidetextanchor.InsidetextanchorValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._histnorm.HistnormValidator', '._histfunc.HistfuncValidator', '._error_y.Error_YValidator', '._error_x.Error_XValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._cumulative.CumulativeValidator', '._constraintext.ConstraintextValidator', '._cliponaxis.CliponaxisValidator', '._bingroup.BingroupValidator', '._autobiny.AutobinyValidator', '._autobinx.AutobinxValidator', '._alignmentgroup.AlignmentgroupValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram/_alignmentgroup.py b/packages/python/plotly/plotly/validators/histogram/_alignmentgroup.py index 27c4eb8a453..966cffc11e4 100644 --- a/packages/python/plotly/plotly/validators/histogram/_alignmentgroup.py +++ b/packages/python/plotly/plotly/validators/histogram/_alignmentgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AlignmentgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="alignmentgroup", parent_name="histogram", **kwargs): - super(AlignmentgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AlignmentgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='alignmentgroup', + parent_name='histogram', + **kwargs): + super(AlignmentgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_autobinx.py b/packages/python/plotly/plotly/validators/histogram/_autobinx.py index 11088efda46..c32bcb39081 100644 --- a/packages/python/plotly/plotly/validators/histogram/_autobinx.py +++ b/packages/python/plotly/plotly/validators/histogram/_autobinx.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AutobinxValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="autobinx", parent_name="histogram", **kwargs): - super(AutobinxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutobinxValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autobinx', + parent_name='histogram', + **kwargs): + super(AutobinxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_autobiny.py b/packages/python/plotly/plotly/validators/histogram/_autobiny.py index 77789749093..0e24944e3a4 100644 --- a/packages/python/plotly/plotly/validators/histogram/_autobiny.py +++ b/packages/python/plotly/plotly/validators/histogram/_autobiny.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AutobinyValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="autobiny", parent_name="histogram", **kwargs): - super(AutobinyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutobinyValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autobiny', + parent_name='histogram', + **kwargs): + super(AutobinyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_bingroup.py b/packages/python/plotly/plotly/validators/histogram/_bingroup.py index ee6441560af..892e9068ea6 100644 --- a/packages/python/plotly/plotly/validators/histogram/_bingroup.py +++ b/packages/python/plotly/plotly/validators/histogram/_bingroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BingroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="bingroup", parent_name="histogram", **kwargs): - super(BingroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BingroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='bingroup', + parent_name='histogram', + **kwargs): + super(BingroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_cliponaxis.py b/packages/python/plotly/plotly/validators/histogram/_cliponaxis.py index e55fcfebf50..c7ad4d7ca83 100644 --- a/packages/python/plotly/plotly/validators/histogram/_cliponaxis.py +++ b/packages/python/plotly/plotly/validators/histogram/_cliponaxis.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CliponaxisValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cliponaxis", parent_name="histogram", **kwargs): - super(CliponaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CliponaxisValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cliponaxis', + parent_name='histogram', + **kwargs): + super(CliponaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_constraintext.py b/packages/python/plotly/plotly/validators/histogram/_constraintext.py index eb2230657b2..50e3833a4d7 100644 --- a/packages/python/plotly/plotly/validators/histogram/_constraintext.py +++ b/packages/python/plotly/plotly/validators/histogram/_constraintext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ConstraintextValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="constraintext", parent_name="histogram", **kwargs): - super(ConstraintextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["inside", "outside", "both", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ConstraintextValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='constraintext', + parent_name='histogram', + **kwargs): + super(ConstraintextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['inside', 'outside', 'both', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_cumulative.py b/packages/python/plotly/plotly/validators/histogram/_cumulative.py index c115a5eb37c..3e213e92a59 100644 --- a/packages/python/plotly/plotly/validators/histogram/_cumulative.py +++ b/packages/python/plotly/plotly/validators/histogram/_cumulative.py @@ -1,42 +1,15 @@ -import _plotly_utils.basevalidators -class CumulativeValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="cumulative", parent_name="histogram", **kwargs): - super(CumulativeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Cumulative"), - data_docs=kwargs.pop( - "data_docs", - """ - currentbin - Only applies if cumulative is enabled. Sets - whether the current bin is included, excluded, - or has half of its value included in the - current cumulative value. "include" is the - default for compatibility with various other - tools, however it introduces a half-bin bias to - the results. "exclude" makes the opposite half- - bin bias, and "half" removes it. - direction - Only applies if cumulative is enabled. If - "increasing" (default) we sum all prior bins, - so the result increases from left to right. If - "decreasing" we sum later bins so the result - decreases from left to right. - enabled - If true, display the cumulative distribution by - summing the binned values. Use the `direction` - and `centralbin` attributes to tune the - accumulation method. Note: in this mode, the - "density" `histnorm` settings behave the same - as their equivalents without "density": "" and - "density" both rise to the number of data - points, and "probability" and *probability - density* both rise to the number of sample - points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CumulativeValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='cumulative', + parent_name='histogram', + **kwargs): + super(CumulativeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Cumulative'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_customdata.py b/packages/python/plotly/plotly/validators/histogram/_customdata.py index 9485d6adce0..63ce8ca8731 100644 --- a/packages/python/plotly/plotly/validators/histogram/_customdata.py +++ b/packages/python/plotly/plotly/validators/histogram/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="histogram", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='histogram', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_customdatasrc.py b/packages/python/plotly/plotly/validators/histogram/_customdatasrc.py index acda4a02535..1476ea01f40 100644 --- a/packages/python/plotly/plotly/validators/histogram/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/histogram/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="histogram", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='histogram', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_error_x.py b/packages/python/plotly/plotly/validators/histogram/_error_x.py index d5644cc252e..6e91e1ec648 100644 --- a/packages/python/plotly/plotly/validators/histogram/_error_x.py +++ b/packages/python/plotly/plotly/validators/histogram/_error_x.py @@ -1,73 +1,15 @@ -import _plotly_utils.basevalidators -class Error_XValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="error_x", parent_name="histogram", **kwargs): - super(Error_XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ErrorX"), - data_docs=kwargs.pop( - "data_docs", - """ - array - Sets the data corresponding the length of each - error bar. Values are plotted relative to the - underlying data. - arrayminus - Sets the data corresponding the length of each - error bar in the bottom (left) direction for - vertical (horizontal) bars Values are plotted - relative to the underlying data. - arrayminussrc - Sets the source reference on Chart Studio Cloud - for `arrayminus`. - arraysrc - Sets the source reference on Chart Studio Cloud - for `array`. - color - Sets the stroke color of the error bars. - copy_ystyle +import _plotly_utils.basevalidators as _bv - symmetric - Determines whether or not the error bars have - the same length in both direction (top/bottom - for vertical bars, left/right for horizontal - bars. - thickness - Sets the thickness (in px) of the error bars. - traceref - tracerefminus - - type - Determines the rule used to generate the error - bars. If *constant`, the bar lengths are of a - constant value. Set this constant in `value`. - If "percent", the bar lengths correspond to a - percentage of underlying data. Set this - percentage in `value`. If "sqrt", the bar - lengths correspond to the square of the - underlying data. If "data", the bar lengths are - set with data set `array`. - value - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars. - valueminus - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars in the bottom - (left) direction for vertical (horizontal) bars - visible - Determines whether or not this set of error - bars is visible. - width - Sets the width (in px) of the cross-bar at both - ends of the error bars. -""", - ), - **kwargs, - ) +class Error_XValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='error_x', + parent_name='histogram', + **kwargs): + super(Error_XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ErrorX'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_error_y.py b/packages/python/plotly/plotly/validators/histogram/_error_y.py index 2d9da02b400..054c404597f 100644 --- a/packages/python/plotly/plotly/validators/histogram/_error_y.py +++ b/packages/python/plotly/plotly/validators/histogram/_error_y.py @@ -1,71 +1,15 @@ -import _plotly_utils.basevalidators -class Error_YValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="error_y", parent_name="histogram", **kwargs): - super(Error_YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ErrorY"), - data_docs=kwargs.pop( - "data_docs", - """ - array - Sets the data corresponding the length of each - error bar. Values are plotted relative to the - underlying data. - arrayminus - Sets the data corresponding the length of each - error bar in the bottom (left) direction for - vertical (horizontal) bars Values are plotted - relative to the underlying data. - arrayminussrc - Sets the source reference on Chart Studio Cloud - for `arrayminus`. - arraysrc - Sets the source reference on Chart Studio Cloud - for `array`. - color - Sets the stroke color of the error bars. - symmetric - Determines whether or not the error bars have - the same length in both direction (top/bottom - for vertical bars, left/right for horizontal - bars. - thickness - Sets the thickness (in px) of the error bars. - traceref +import _plotly_utils.basevalidators as _bv - tracerefminus - type - Determines the rule used to generate the error - bars. If *constant`, the bar lengths are of a - constant value. Set this constant in `value`. - If "percent", the bar lengths correspond to a - percentage of underlying data. Set this - percentage in `value`. If "sqrt", the bar - lengths correspond to the square of the - underlying data. If "data", the bar lengths are - set with data set `array`. - value - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars. - valueminus - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars in the bottom - (left) direction for vertical (horizontal) bars - visible - Determines whether or not this set of error - bars is visible. - width - Sets the width (in px) of the cross-bar at both - ends of the error bars. -""", - ), - **kwargs, - ) +class Error_YValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='error_y', + parent_name='histogram', + **kwargs): + super(Error_YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ErrorY'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_histfunc.py b/packages/python/plotly/plotly/validators/histogram/_histfunc.py index 66a299b01b3..602cd17cdea 100644 --- a/packages/python/plotly/plotly/validators/histogram/_histfunc.py +++ b/packages/python/plotly/plotly/validators/histogram/_histfunc.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HistfuncValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="histfunc", parent_name="histogram", **kwargs): - super(HistfuncValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["count", "sum", "avg", "min", "max"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HistfuncValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='histfunc', + parent_name='histogram', + **kwargs): + super(HistfuncValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['count', 'sum', 'avg', 'min', 'max']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_histnorm.py b/packages/python/plotly/plotly/validators/histogram/_histnorm.py index 99a876d118a..b16dd4adcdb 100644 --- a/packages/python/plotly/plotly/validators/histogram/_histnorm.py +++ b/packages/python/plotly/plotly/validators/histogram/_histnorm.py @@ -1,15 +1,14 @@ -import _plotly_utils.basevalidators - - -class HistnormValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="histnorm", parent_name="histogram", **kwargs): - super(HistnormValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - ["", "percent", "probability", "density", "probability density"], - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HistnormValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='histnorm', + parent_name='histogram', + **kwargs): + super(HistnormValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['', 'percent', 'probability', 'density', 'probability density']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_hoverinfo.py b/packages/python/plotly/plotly/validators/histogram/_hoverinfo.py index 232193161cf..a0de9cde9c5 100644 --- a/packages/python/plotly/plotly/validators/histogram/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/histogram/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="histogram", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='histogram', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/histogram/_hoverinfosrc.py index 184fd7f8de0..e6d54d0954c 100644 --- a/packages/python/plotly/plotly/validators/histogram/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/histogram/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="histogram", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='histogram', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_hoverlabel.py b/packages/python/plotly/plotly/validators/histogram/_hoverlabel.py index a22b12d2d4a..204ce2fd341 100644 --- a/packages/python/plotly/plotly/validators/histogram/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/histogram/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="histogram", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='histogram', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_hovertemplate.py b/packages/python/plotly/plotly/validators/histogram/_hovertemplate.py index 0b96a0d8661..fa599aadce2 100644 --- a/packages/python/plotly/plotly/validators/histogram/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/histogram/_hovertemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="histogram", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='histogram', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/histogram/_hovertemplatesrc.py index 1d9b17b812e..7294d910052 100644 --- a/packages/python/plotly/plotly/validators/histogram/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/histogram/_hovertemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertemplatesrc", parent_name="histogram", **kwargs - ): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='histogram', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_hovertext.py b/packages/python/plotly/plotly/validators/histogram/_hovertext.py index b037f8a28ce..8d88bdf68cc 100644 --- a/packages/python/plotly/plotly/validators/histogram/_hovertext.py +++ b/packages/python/plotly/plotly/validators/histogram/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="histogram", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='histogram', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_hovertextsrc.py b/packages/python/plotly/plotly/validators/histogram/_hovertextsrc.py index fb62a1d5f15..bf75dce42e8 100644 --- a/packages/python/plotly/plotly/validators/histogram/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/histogram/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="histogram", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='histogram', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_ids.py b/packages/python/plotly/plotly/validators/histogram/_ids.py index a42a6f7466d..47aa6cfeeb1 100644 --- a/packages/python/plotly/plotly/validators/histogram/_ids.py +++ b/packages/python/plotly/plotly/validators/histogram/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="histogram", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='histogram', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_idssrc.py b/packages/python/plotly/plotly/validators/histogram/_idssrc.py index df4507bc28a..0ff6c7d1a77 100644 --- a/packages/python/plotly/plotly/validators/histogram/_idssrc.py +++ b/packages/python/plotly/plotly/validators/histogram/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="histogram", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='histogram', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_insidetextanchor.py b/packages/python/plotly/plotly/validators/histogram/_insidetextanchor.py index 5cb6886b1a1..49513ed0c75 100644 --- a/packages/python/plotly/plotly/validators/histogram/_insidetextanchor.py +++ b/packages/python/plotly/plotly/validators/histogram/_insidetextanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class InsidetextanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="insidetextanchor", parent_name="histogram", **kwargs - ): - super(InsidetextanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["end", "middle", "start"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class InsidetextanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='insidetextanchor', + parent_name='histogram', + **kwargs): + super(InsidetextanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['end', 'middle', 'start']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_insidetextfont.py b/packages/python/plotly/plotly/validators/histogram/_insidetextfont.py index d04addde11a..1e839048560 100644 --- a/packages/python/plotly/plotly/validators/histogram/_insidetextfont.py +++ b/packages/python/plotly/plotly/validators/histogram/_insidetextfont.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class InsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="insidetextfont", parent_name="histogram", **kwargs): - super(InsidetextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Insidetextfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class InsidetextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='insidetextfont', + parent_name='histogram', + **kwargs): + super(InsidetextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Insidetextfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_legend.py b/packages/python/plotly/plotly/validators/histogram/_legend.py index 557cfa633d7..9a3fee4eedb 100644 --- a/packages/python/plotly/plotly/validators/histogram/_legend.py +++ b/packages/python/plotly/plotly/validators/histogram/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="histogram", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='histogram', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_legendgroup.py b/packages/python/plotly/plotly/validators/histogram/_legendgroup.py index 314071039db..76298b35f3b 100644 --- a/packages/python/plotly/plotly/validators/histogram/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/histogram/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="histogram", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='histogram', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/histogram/_legendgrouptitle.py index bf61a8fa452..741a754a9b8 100644 --- a/packages/python/plotly/plotly/validators/histogram/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/histogram/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="histogram", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='histogram', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_legendrank.py b/packages/python/plotly/plotly/validators/histogram/_legendrank.py index adb41669c23..ee8b31ffa93 100644 --- a/packages/python/plotly/plotly/validators/histogram/_legendrank.py +++ b/packages/python/plotly/plotly/validators/histogram/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="histogram", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='histogram', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_legendwidth.py b/packages/python/plotly/plotly/validators/histogram/_legendwidth.py index 16086cd84f2..bd910ae846b 100644 --- a/packages/python/plotly/plotly/validators/histogram/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/histogram/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="histogram", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='histogram', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_marker.py b/packages/python/plotly/plotly/validators/histogram/_marker.py index ac66136354a..3952c81a431 100644 --- a/packages/python/plotly/plotly/validators/histogram/_marker.py +++ b/packages/python/plotly/plotly/validators/histogram/_marker.py @@ -1,121 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="histogram", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.histogram.marker.C - olorBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - cornerradius - Sets the rounding of corners. May be an integer - number of pixels, or a percentage of bar width - (as a string ending in %). Defaults to - `layout.barcornerradius`. In stack or relative - barmode, the first trace to set cornerradius is - used for the whole stack. - line - :class:`plotly.graph_objects.histogram.marker.L - ine` instance or dict with compatible - properties - opacity - Sets the opacity of the bars. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - pattern - Sets the pattern within the marker. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='histogram', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_meta.py b/packages/python/plotly/plotly/validators/histogram/_meta.py index f9c05de61b1..a2648a6739c 100644 --- a/packages/python/plotly/plotly/validators/histogram/_meta.py +++ b/packages/python/plotly/plotly/validators/histogram/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="histogram", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='histogram', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_metasrc.py b/packages/python/plotly/plotly/validators/histogram/_metasrc.py index d0836bc0cfa..79b0b3ec24a 100644 --- a/packages/python/plotly/plotly/validators/histogram/_metasrc.py +++ b/packages/python/plotly/plotly/validators/histogram/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="histogram", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='histogram', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_name.py b/packages/python/plotly/plotly/validators/histogram/_name.py index be3f53a874c..e9768208891 100644 --- a/packages/python/plotly/plotly/validators/histogram/_name.py +++ b/packages/python/plotly/plotly/validators/histogram/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="histogram", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='histogram', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_nbinsx.py b/packages/python/plotly/plotly/validators/histogram/_nbinsx.py index 45ce6fcd4b5..3a8860b20d6 100644 --- a/packages/python/plotly/plotly/validators/histogram/_nbinsx.py +++ b/packages/python/plotly/plotly/validators/histogram/_nbinsx.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class NbinsxValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="nbinsx", parent_name="histogram", **kwargs): - super(NbinsxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NbinsxValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nbinsx', + parent_name='histogram', + **kwargs): + super(NbinsxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_nbinsy.py b/packages/python/plotly/plotly/validators/histogram/_nbinsy.py index 96084ac0bad..38ec5286a2e 100644 --- a/packages/python/plotly/plotly/validators/histogram/_nbinsy.py +++ b/packages/python/plotly/plotly/validators/histogram/_nbinsy.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class NbinsyValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="nbinsy", parent_name="histogram", **kwargs): - super(NbinsyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NbinsyValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nbinsy', + parent_name='histogram', + **kwargs): + super(NbinsyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_offsetgroup.py b/packages/python/plotly/plotly/validators/histogram/_offsetgroup.py index 2c7b971a76f..12294a778ab 100644 --- a/packages/python/plotly/plotly/validators/histogram/_offsetgroup.py +++ b/packages/python/plotly/plotly/validators/histogram/_offsetgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class OffsetgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="offsetgroup", parent_name="histogram", **kwargs): - super(OffsetgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OffsetgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='offsetgroup', + parent_name='histogram', + **kwargs): + super(OffsetgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_opacity.py b/packages/python/plotly/plotly/validators/histogram/_opacity.py index 9934131e2f4..5c02817fe78 100644 --- a/packages/python/plotly/plotly/validators/histogram/_opacity.py +++ b/packages/python/plotly/plotly/validators/histogram/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="histogram", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='histogram', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_orientation.py b/packages/python/plotly/plotly/validators/histogram/_orientation.py index 1920c675485..3afe15774b1 100644 --- a/packages/python/plotly/plotly/validators/histogram/_orientation.py +++ b/packages/python/plotly/plotly/validators/histogram/_orientation.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="orientation", parent_name="histogram", **kwargs): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - values=kwargs.pop("values", ["v", "h"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='histogram', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + values=kwargs.pop('values', ['v', 'h']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_outsidetextfont.py b/packages/python/plotly/plotly/validators/histogram/_outsidetextfont.py index e95603415b1..b476979502d 100644 --- a/packages/python/plotly/plotly/validators/histogram/_outsidetextfont.py +++ b/packages/python/plotly/plotly/validators/histogram/_outsidetextfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class OutsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="outsidetextfont", parent_name="histogram", **kwargs - ): - super(OutsidetextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Outsidetextfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class OutsidetextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='outsidetextfont', + parent_name='histogram', + **kwargs): + super(OutsidetextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Outsidetextfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_selected.py b/packages/python/plotly/plotly/validators/histogram/_selected.py index 6c802ff43c9..8c8b1e78a23 100644 --- a/packages/python/plotly/plotly/validators/histogram/_selected.py +++ b/packages/python/plotly/plotly/validators/histogram/_selected.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="selected", parent_name="histogram", **kwargs): - super(SelectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Selected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.histogram.selected - .Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.histogram.selected - .Textfont` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='selected', + parent_name='histogram', + **kwargs): + super(SelectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_selectedpoints.py b/packages/python/plotly/plotly/validators/histogram/_selectedpoints.py index fd6309fccd0..1dcf14f94a0 100644 --- a/packages/python/plotly/plotly/validators/histogram/_selectedpoints.py +++ b/packages/python/plotly/plotly/validators/histogram/_selectedpoints.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="selectedpoints", parent_name="histogram", **kwargs): - super(SelectedpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedpointsValidator(_bv.AnyValidator): + def __init__(self, plotly_name='selectedpoints', + parent_name='histogram', + **kwargs): + super(SelectedpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_showlegend.py b/packages/python/plotly/plotly/validators/histogram/_showlegend.py index 4f3f91367aa..c0ba9e99e85 100644 --- a/packages/python/plotly/plotly/validators/histogram/_showlegend.py +++ b/packages/python/plotly/plotly/validators/histogram/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="histogram", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='histogram', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_stream.py b/packages/python/plotly/plotly/validators/histogram/_stream.py index 45c78b22d1e..436dfc8ce17 100644 --- a/packages/python/plotly/plotly/validators/histogram/_stream.py +++ b/packages/python/plotly/plotly/validators/histogram/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="histogram", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='histogram', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_text.py b/packages/python/plotly/plotly/validators/histogram/_text.py index 0da4d138de1..c9929427703 100644 --- a/packages/python/plotly/plotly/validators/histogram/_text.py +++ b/packages/python/plotly/plotly/validators/histogram/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="histogram", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='histogram', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_textangle.py b/packages/python/plotly/plotly/validators/histogram/_textangle.py index 2e983fc4f5f..837f2b02c70 100644 --- a/packages/python/plotly/plotly/validators/histogram/_textangle.py +++ b/packages/python/plotly/plotly/validators/histogram/_textangle.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__(self, plotly_name="textangle", parent_name="histogram", **kwargs): - super(TextangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='textangle', + parent_name='histogram', + **kwargs): + super(TextangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_textfont.py b/packages/python/plotly/plotly/validators/histogram/_textfont.py index 55d1ffd59a0..82ed8503bd3 100644 --- a/packages/python/plotly/plotly/validators/histogram/_textfont.py +++ b/packages/python/plotly/plotly/validators/histogram/_textfont.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="textfont", parent_name="histogram", **kwargs): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='histogram', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_textposition.py b/packages/python/plotly/plotly/validators/histogram/_textposition.py index 1b4179823a1..6d38662c35a 100644 --- a/packages/python/plotly/plotly/validators/histogram/_textposition.py +++ b/packages/python/plotly/plotly/validators/histogram/_textposition.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="textposition", parent_name="histogram", **kwargs): - super(TextpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["inside", "outside", "auto", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textposition', + parent_name='histogram', + **kwargs): + super(TextpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['inside', 'outside', 'auto', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_textsrc.py b/packages/python/plotly/plotly/validators/histogram/_textsrc.py index 2f7ff07638b..7b8700ac13b 100644 --- a/packages/python/plotly/plotly/validators/histogram/_textsrc.py +++ b/packages/python/plotly/plotly/validators/histogram/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="histogram", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='histogram', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_texttemplate.py b/packages/python/plotly/plotly/validators/histogram/_texttemplate.py index 474901b9a39..0a26f124f2e 100644 --- a/packages/python/plotly/plotly/validators/histogram/_texttemplate.py +++ b/packages/python/plotly/plotly/validators/histogram/_texttemplate.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="texttemplate", parent_name="histogram", **kwargs): - super(TexttemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TexttemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='texttemplate', + parent_name='histogram', + **kwargs): + super(TexttemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_uid.py b/packages/python/plotly/plotly/validators/histogram/_uid.py index fa1523cb915..55d2250a7b1 100644 --- a/packages/python/plotly/plotly/validators/histogram/_uid.py +++ b/packages/python/plotly/plotly/validators/histogram/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="histogram", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='histogram', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_uirevision.py b/packages/python/plotly/plotly/validators/histogram/_uirevision.py index 755eb564ec4..1ec52d8f8ef 100644 --- a/packages/python/plotly/plotly/validators/histogram/_uirevision.py +++ b/packages/python/plotly/plotly/validators/histogram/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="histogram", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='histogram', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_unselected.py b/packages/python/plotly/plotly/validators/histogram/_unselected.py index a33fb45964b..6eb119f8b3c 100644 --- a/packages/python/plotly/plotly/validators/histogram/_unselected.py +++ b/packages/python/plotly/plotly/validators/histogram/_unselected.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="unselected", parent_name="histogram", **kwargs): - super(UnselectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Unselected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.histogram.unselect - ed.Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.histogram.unselect - ed.Textfont` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UnselectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='unselected', + parent_name='histogram', + **kwargs): + super(UnselectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_visible.py b/packages/python/plotly/plotly/validators/histogram/_visible.py index 56276c6a6ee..7497cabf122 100644 --- a/packages/python/plotly/plotly/validators/histogram/_visible.py +++ b/packages/python/plotly/plotly/validators/histogram/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="histogram", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='histogram', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_x.py b/packages/python/plotly/plotly/validators/histogram/_x.py index a7533675630..e996f1bf33b 100644 --- a/packages/python/plotly/plotly/validators/histogram/_x.py +++ b/packages/python/plotly/plotly/validators/histogram/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="x", parent_name="histogram", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='x', + parent_name='histogram', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_xaxis.py b/packages/python/plotly/plotly/validators/histogram/_xaxis.py index 34a9a5bf758..9fbe8943723 100644 --- a/packages/python/plotly/plotly/validators/histogram/_xaxis.py +++ b/packages/python/plotly/plotly/validators/histogram/_xaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="xaxis", parent_name="histogram", **kwargs): - super(XaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "x"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='xaxis', + parent_name='histogram', + **kwargs): + super(XaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'x'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_xbins.py b/packages/python/plotly/plotly/validators/histogram/_xbins.py index ee4650aa01f..2454c41723a 100644 --- a/packages/python/plotly/plotly/validators/histogram/_xbins.py +++ b/packages/python/plotly/plotly/validators/histogram/_xbins.py @@ -1,60 +1,15 @@ -import _plotly_utils.basevalidators -class XbinsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="xbins", parent_name="histogram", **kwargs): - super(XbinsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "XBins"), - data_docs=kwargs.pop( - "data_docs", - """ - end - Sets the end value for the x axis bins. The - last bin may not end exactly at this value, we - increment the bin edge by `size` from `start` - until we reach or exceed `end`. Defaults to the - maximum data value. Like `start`, for dates use - a date string, and for category data `end` is - based on the category serial numbers. - size - Sets the size of each x axis bin. Default - behavior: If `nbinsx` is 0 or omitted, we - choose a nice round bin size such that the - number of bins is about the same as the typical - number of samples in each bin. If `nbinsx` is - provided, we choose a nice round bin size - giving no more than that many bins. For date - data, use milliseconds or "M" for months, as - in `axis.dtick`. For category data, the number - of categories to bin together (always defaults - to 1). If multiple non-overlaying histograms - share a subplot, the first explicit `size` is - used and all others discarded. If no `size` is - provided,the sample data from all traces is - combined to determine `size` as described - above. - start - Sets the starting value for the x axis bins. - Defaults to the minimum data value, shifted - down if necessary to make nice round values and - to remove ambiguous bin edges. For example, if - most of the data is integers we shift the bin - edges 0.5 down, so a `size` of 5 would have a - default `start` of -0.5, so it is clear that - 0-4 are in the first bin, 5-9 in the second, - but continuous data gets a start of 0 and bins - [0,5), [5,10) etc. Dates behave similarly, and - `start` should be a date string. For category - data, `start` is based on the category serial - numbers, and defaults to -0.5. If multiple non- - overlaying histograms share a subplot, the - first explicit `start` is used exactly and all - others are shifted down (if necessary) to - differ from that one by an integer number of - bins. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XbinsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='xbins', + parent_name='histogram', + **kwargs): + super(XbinsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'XBins'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_xcalendar.py b/packages/python/plotly/plotly/validators/histogram/_xcalendar.py index 68ddbb68835..547d11d54ad 100644 --- a/packages/python/plotly/plotly/validators/histogram/_xcalendar.py +++ b/packages/python/plotly/plotly/validators/histogram/_xcalendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xcalendar", parent_name="histogram", **kwargs): - super(XcalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XcalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xcalendar', + parent_name='histogram', + **kwargs): + super(XcalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_xhoverformat.py b/packages/python/plotly/plotly/validators/histogram/_xhoverformat.py index 4fc5e8f7c13..818de448e9f 100644 --- a/packages/python/plotly/plotly/validators/histogram/_xhoverformat.py +++ b/packages/python/plotly/plotly/validators/histogram/_xhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="xhoverformat", parent_name="histogram", **kwargs): - super(XhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='xhoverformat', + parent_name='histogram', + **kwargs): + super(XhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_xsrc.py b/packages/python/plotly/plotly/validators/histogram/_xsrc.py index 3810b57bb93..7d883402b22 100644 --- a/packages/python/plotly/plotly/validators/histogram/_xsrc.py +++ b/packages/python/plotly/plotly/validators/histogram/_xsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="xsrc", parent_name="histogram", **kwargs): - super(XsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='xsrc', + parent_name='histogram', + **kwargs): + super(XsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_y.py b/packages/python/plotly/plotly/validators/histogram/_y.py index fc812ec6552..01739c66640 100644 --- a/packages/python/plotly/plotly/validators/histogram/_y.py +++ b/packages/python/plotly/plotly/validators/histogram/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="y", parent_name="histogram", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='y', + parent_name='histogram', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_yaxis.py b/packages/python/plotly/plotly/validators/histogram/_yaxis.py index 8232b6eaa11..a008445fa8e 100644 --- a/packages/python/plotly/plotly/validators/histogram/_yaxis.py +++ b/packages/python/plotly/plotly/validators/histogram/_yaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="yaxis", parent_name="histogram", **kwargs): - super(YaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "y"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='yaxis', + parent_name='histogram', + **kwargs): + super(YaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'y'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_ybins.py b/packages/python/plotly/plotly/validators/histogram/_ybins.py index 8dfab89361e..3febbf0d1b6 100644 --- a/packages/python/plotly/plotly/validators/histogram/_ybins.py +++ b/packages/python/plotly/plotly/validators/histogram/_ybins.py @@ -1,60 +1,15 @@ -import _plotly_utils.basevalidators -class YbinsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="ybins", parent_name="histogram", **kwargs): - super(YbinsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "YBins"), - data_docs=kwargs.pop( - "data_docs", - """ - end - Sets the end value for the y axis bins. The - last bin may not end exactly at this value, we - increment the bin edge by `size` from `start` - until we reach or exceed `end`. Defaults to the - maximum data value. Like `start`, for dates use - a date string, and for category data `end` is - based on the category serial numbers. - size - Sets the size of each y axis bin. Default - behavior: If `nbinsy` is 0 or omitted, we - choose a nice round bin size such that the - number of bins is about the same as the typical - number of samples in each bin. If `nbinsy` is - provided, we choose a nice round bin size - giving no more than that many bins. For date - data, use milliseconds or "M" for months, as - in `axis.dtick`. For category data, the number - of categories to bin together (always defaults - to 1). If multiple non-overlaying histograms - share a subplot, the first explicit `size` is - used and all others discarded. If no `size` is - provided,the sample data from all traces is - combined to determine `size` as described - above. - start - Sets the starting value for the y axis bins. - Defaults to the minimum data value, shifted - down if necessary to make nice round values and - to remove ambiguous bin edges. For example, if - most of the data is integers we shift the bin - edges 0.5 down, so a `size` of 5 would have a - default `start` of -0.5, so it is clear that - 0-4 are in the first bin, 5-9 in the second, - but continuous data gets a start of 0 and bins - [0,5), [5,10) etc. Dates behave similarly, and - `start` should be a date string. For category - data, `start` is based on the category serial - numbers, and defaults to -0.5. If multiple non- - overlaying histograms share a subplot, the - first explicit `start` is used exactly and all - others are shifted down (if necessary) to - differ from that one by an integer number of - bins. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YbinsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='ybins', + parent_name='histogram', + **kwargs): + super(YbinsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'YBins'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_ycalendar.py b/packages/python/plotly/plotly/validators/histogram/_ycalendar.py index a0fc87678e2..c031d87d7fc 100644 --- a/packages/python/plotly/plotly/validators/histogram/_ycalendar.py +++ b/packages/python/plotly/plotly/validators/histogram/_ycalendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="ycalendar", parent_name="histogram", **kwargs): - super(YcalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YcalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ycalendar', + parent_name='histogram', + **kwargs): + super(YcalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_yhoverformat.py b/packages/python/plotly/plotly/validators/histogram/_yhoverformat.py index c1666597bb5..22f08db3465 100644 --- a/packages/python/plotly/plotly/validators/histogram/_yhoverformat.py +++ b/packages/python/plotly/plotly/validators/histogram/_yhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="yhoverformat", parent_name="histogram", **kwargs): - super(YhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='yhoverformat', + parent_name='histogram', + **kwargs): + super(YhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_ysrc.py b/packages/python/plotly/plotly/validators/histogram/_ysrc.py index 15ab69a3d34..bf6a7f055f1 100644 --- a/packages/python/plotly/plotly/validators/histogram/_ysrc.py +++ b/packages/python/plotly/plotly/validators/histogram/_ysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="ysrc", parent_name="histogram", **kwargs): - super(YsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ysrc', + parent_name='histogram', + **kwargs): + super(YsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/_zorder.py b/packages/python/plotly/plotly/validators/histogram/_zorder.py index 5b68812efe9..fc6fffd5809 100644 --- a/packages/python/plotly/plotly/validators/histogram/_zorder.py +++ b/packages/python/plotly/plotly/validators/histogram/_zorder.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="zorder", parent_name="histogram", **kwargs): - super(ZorderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZorderValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='zorder', + parent_name='histogram', + **kwargs): + super(ZorderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/cumulative/__init__.py b/packages/python/plotly/plotly/validators/histogram/cumulative/__init__.py index f52e54bee6a..5f8a1bdd75c 100644 --- a/packages/python/plotly/plotly/validators/histogram/cumulative/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/cumulative/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._enabled import EnabledValidator from ._direction import DirectionValidator from ._currentbin import CurrentbinValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._enabled.EnabledValidator", - "._direction.DirectionValidator", - "._currentbin.CurrentbinValidator", - ], + ['._enabled.EnabledValidator', '._direction.DirectionValidator', '._currentbin.CurrentbinValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram/cumulative/_currentbin.py b/packages/python/plotly/plotly/validators/histogram/cumulative/_currentbin.py index a92e00a2fc4..8e6dc82f55b 100644 --- a/packages/python/plotly/plotly/validators/histogram/cumulative/_currentbin.py +++ b/packages/python/plotly/plotly/validators/histogram/cumulative/_currentbin.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CurrentbinValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="currentbin", parent_name="histogram.cumulative", **kwargs - ): - super(CurrentbinValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["include", "exclude", "half"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CurrentbinValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='currentbin', + parent_name='histogram.cumulative', + **kwargs): + super(CurrentbinValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['include', 'exclude', 'half']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/cumulative/_direction.py b/packages/python/plotly/plotly/validators/histogram/cumulative/_direction.py index 98bd3f0bb2b..c74e22f82a8 100644 --- a/packages/python/plotly/plotly/validators/histogram/cumulative/_direction.py +++ b/packages/python/plotly/plotly/validators/histogram/cumulative/_direction.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DirectionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="direction", parent_name="histogram.cumulative", **kwargs - ): - super(DirectionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["increasing", "decreasing"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DirectionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='direction', + parent_name='histogram.cumulative', + **kwargs): + super(DirectionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['increasing', 'decreasing']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/cumulative/_enabled.py b/packages/python/plotly/plotly/validators/histogram/cumulative/_enabled.py index da1332f0015..727d0dc18f5 100644 --- a/packages/python/plotly/plotly/validators/histogram/cumulative/_enabled.py +++ b/packages/python/plotly/plotly/validators/histogram/cumulative/_enabled.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="enabled", parent_name="histogram.cumulative", **kwargs - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='histogram.cumulative', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/error_x/__init__.py b/packages/python/plotly/plotly/validators/histogram/error_x/__init__.py index 2e3ce59d75d..4c274e2e1d4 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_x/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/error_x/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._visible import VisibleValidator @@ -19,25 +18,10 @@ from ._array import ArrayValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._visible.VisibleValidator", - "._valueminus.ValueminusValidator", - "._value.ValueValidator", - "._type.TypeValidator", - "._tracerefminus.TracerefminusValidator", - "._traceref.TracerefValidator", - "._thickness.ThicknessValidator", - "._symmetric.SymmetricValidator", - "._copy_ystyle.Copy_YstyleValidator", - "._color.ColorValidator", - "._arraysrc.ArraysrcValidator", - "._arrayminussrc.ArrayminussrcValidator", - "._arrayminus.ArrayminusValidator", - "._array.ArrayValidator", - ], + ['._width.WidthValidator', '._visible.VisibleValidator', '._valueminus.ValueminusValidator', '._value.ValueValidator', '._type.TypeValidator', '._tracerefminus.TracerefminusValidator', '._traceref.TracerefValidator', '._thickness.ThicknessValidator', '._symmetric.SymmetricValidator', '._copy_ystyle.Copy_YstyleValidator', '._color.ColorValidator', '._arraysrc.ArraysrcValidator', '._arrayminussrc.ArrayminussrcValidator', '._arrayminus.ArrayminusValidator', '._array.ArrayValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram/error_x/_array.py b/packages/python/plotly/plotly/validators/histogram/error_x/_array.py index f3a99927f4a..d0146c9bafb 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_x/_array.py +++ b/packages/python/plotly/plotly/validators/histogram/error_x/_array.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="array", parent_name="histogram.error_x", **kwargs): - super(ArrayValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ArrayValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='array', + parent_name='histogram.error_x', + **kwargs): + super(ArrayValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/error_x/_arrayminus.py b/packages/python/plotly/plotly/validators/histogram/error_x/_arrayminus.py index 79c95771d7b..5284a9f935c 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_x/_arrayminus.py +++ b/packages/python/plotly/plotly/validators/histogram/error_x/_arrayminus.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="arrayminus", parent_name="histogram.error_x", **kwargs - ): - super(ArrayminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrayminusValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='arrayminus', + parent_name='histogram.error_x', + **kwargs): + super(ArrayminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/error_x/_arrayminussrc.py b/packages/python/plotly/plotly/validators/histogram/error_x/_arrayminussrc.py index 5c64ce43e5a..8919d624419 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_x/_arrayminussrc.py +++ b/packages/python/plotly/plotly/validators/histogram/error_x/_arrayminussrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="arrayminussrc", parent_name="histogram.error_x", **kwargs - ): - super(ArrayminussrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrayminussrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='arrayminussrc', + parent_name='histogram.error_x', + **kwargs): + super(ArrayminussrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/error_x/_arraysrc.py b/packages/python/plotly/plotly/validators/histogram/error_x/_arraysrc.py index 1c778358bf4..0aa6eed191b 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_x/_arraysrc.py +++ b/packages/python/plotly/plotly/validators/histogram/error_x/_arraysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="arraysrc", parent_name="histogram.error_x", **kwargs - ): - super(ArraysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArraysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='arraysrc', + parent_name='histogram.error_x', + **kwargs): + super(ArraysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/error_x/_color.py b/packages/python/plotly/plotly/validators/histogram/error_x/_color.py index 1a97c491e93..13dc0b682b4 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_x/_color.py +++ b/packages/python/plotly/plotly/validators/histogram/error_x/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="histogram.error_x", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='histogram.error_x', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/error_x/_copy_ystyle.py b/packages/python/plotly/plotly/validators/histogram/error_x/_copy_ystyle.py index 43170703cb5..70b78264da4 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_x/_copy_ystyle.py +++ b/packages/python/plotly/plotly/validators/histogram/error_x/_copy_ystyle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class Copy_YstyleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="copy_ystyle", parent_name="histogram.error_x", **kwargs - ): - super(Copy_YstyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Copy_YstyleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='copy_ystyle', + parent_name='histogram.error_x', + **kwargs): + super(Copy_YstyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/error_x/_symmetric.py b/packages/python/plotly/plotly/validators/histogram/error_x/_symmetric.py index a32e0cfe53f..ef12864e7cd 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_x/_symmetric.py +++ b/packages/python/plotly/plotly/validators/histogram/error_x/_symmetric.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="symmetric", parent_name="histogram.error_x", **kwargs - ): - super(SymmetricValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SymmetricValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='symmetric', + parent_name='histogram.error_x', + **kwargs): + super(SymmetricValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/error_x/_thickness.py b/packages/python/plotly/plotly/validators/histogram/error_x/_thickness.py index 45b8a95d2e7..6810afd57a1 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_x/_thickness.py +++ b/packages/python/plotly/plotly/validators/histogram/error_x/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="histogram.error_x", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='histogram.error_x', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/error_x/_traceref.py b/packages/python/plotly/plotly/validators/histogram/error_x/_traceref.py index fed262386af..b3573f83476 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_x/_traceref.py +++ b/packages/python/plotly/plotly/validators/histogram/error_x/_traceref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="traceref", parent_name="histogram.error_x", **kwargs - ): - super(TracerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TracerefValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='traceref', + parent_name='histogram.error_x', + **kwargs): + super(TracerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/error_x/_tracerefminus.py b/packages/python/plotly/plotly/validators/histogram/error_x/_tracerefminus.py index b0afe62fbb2..cd234d4f00f 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_x/_tracerefminus.py +++ b/packages/python/plotly/plotly/validators/histogram/error_x/_tracerefminus.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="tracerefminus", parent_name="histogram.error_x", **kwargs - ): - super(TracerefminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TracerefminusValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='tracerefminus', + parent_name='histogram.error_x', + **kwargs): + super(TracerefminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/error_x/_type.py b/packages/python/plotly/plotly/validators/histogram/error_x/_type.py index 12941f186f8..ab4c3d6a54d 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_x/_type.py +++ b/packages/python/plotly/plotly/validators/histogram/error_x/_type.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="type", parent_name="histogram.error_x", **kwargs): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='histogram.error_x', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['percent', 'constant', 'sqrt', 'data']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/error_x/_value.py b/packages/python/plotly/plotly/validators/histogram/error_x/_value.py index ca63f9cfc59..c98011eeccb 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_x/_value.py +++ b/packages/python/plotly/plotly/validators/histogram/error_x/_value.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ValueValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="value", parent_name="histogram.error_x", **kwargs): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.NumberValidator): + def __init__(self, plotly_name='value', + parent_name='histogram.error_x', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/error_x/_valueminus.py b/packages/python/plotly/plotly/validators/histogram/error_x/_valueminus.py index 1cdc9c98f5d..8bb5ca68244 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_x/_valueminus.py +++ b/packages/python/plotly/plotly/validators/histogram/error_x/_valueminus.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="valueminus", parent_name="histogram.error_x", **kwargs - ): - super(ValueminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueminusValidator(_bv.NumberValidator): + def __init__(self, plotly_name='valueminus', + parent_name='histogram.error_x', + **kwargs): + super(ValueminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/error_x/_visible.py b/packages/python/plotly/plotly/validators/histogram/error_x/_visible.py index 609de7cacdf..f555b218fdb 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_x/_visible.py +++ b/packages/python/plotly/plotly/validators/histogram/error_x/_visible.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="visible", parent_name="histogram.error_x", **kwargs - ): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='histogram.error_x', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/error_x/_width.py b/packages/python/plotly/plotly/validators/histogram/error_x/_width.py index 7fa8d26d74d..8dc6a6e5db5 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_x/_width.py +++ b/packages/python/plotly/plotly/validators/histogram/error_x/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="histogram.error_x", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='histogram.error_x', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/error_y/__init__.py b/packages/python/plotly/plotly/validators/histogram/error_y/__init__.py index eff09cd6a0a..d3e93f5c233 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_y/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/error_y/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._visible import VisibleValidator @@ -18,24 +17,10 @@ from ._array import ArrayValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._visible.VisibleValidator", - "._valueminus.ValueminusValidator", - "._value.ValueValidator", - "._type.TypeValidator", - "._tracerefminus.TracerefminusValidator", - "._traceref.TracerefValidator", - "._thickness.ThicknessValidator", - "._symmetric.SymmetricValidator", - "._color.ColorValidator", - "._arraysrc.ArraysrcValidator", - "._arrayminussrc.ArrayminussrcValidator", - "._arrayminus.ArrayminusValidator", - "._array.ArrayValidator", - ], + ['._width.WidthValidator', '._visible.VisibleValidator', '._valueminus.ValueminusValidator', '._value.ValueValidator', '._type.TypeValidator', '._tracerefminus.TracerefminusValidator', '._traceref.TracerefValidator', '._thickness.ThicknessValidator', '._symmetric.SymmetricValidator', '._color.ColorValidator', '._arraysrc.ArraysrcValidator', '._arrayminussrc.ArrayminussrcValidator', '._arrayminus.ArrayminusValidator', '._array.ArrayValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram/error_y/_array.py b/packages/python/plotly/plotly/validators/histogram/error_y/_array.py index 7ced110a7d6..867001dd746 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_y/_array.py +++ b/packages/python/plotly/plotly/validators/histogram/error_y/_array.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="array", parent_name="histogram.error_y", **kwargs): - super(ArrayValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ArrayValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='array', + parent_name='histogram.error_y', + **kwargs): + super(ArrayValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/error_y/_arrayminus.py b/packages/python/plotly/plotly/validators/histogram/error_y/_arrayminus.py index e6ec1f998e3..20e03c9613d 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_y/_arrayminus.py +++ b/packages/python/plotly/plotly/validators/histogram/error_y/_arrayminus.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="arrayminus", parent_name="histogram.error_y", **kwargs - ): - super(ArrayminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrayminusValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='arrayminus', + parent_name='histogram.error_y', + **kwargs): + super(ArrayminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/error_y/_arrayminussrc.py b/packages/python/plotly/plotly/validators/histogram/error_y/_arrayminussrc.py index cc4c2e68839..948514ef9f6 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_y/_arrayminussrc.py +++ b/packages/python/plotly/plotly/validators/histogram/error_y/_arrayminussrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="arrayminussrc", parent_name="histogram.error_y", **kwargs - ): - super(ArrayminussrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrayminussrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='arrayminussrc', + parent_name='histogram.error_y', + **kwargs): + super(ArrayminussrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/error_y/_arraysrc.py b/packages/python/plotly/plotly/validators/histogram/error_y/_arraysrc.py index a00ae7ae0b6..e518f2088f5 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_y/_arraysrc.py +++ b/packages/python/plotly/plotly/validators/histogram/error_y/_arraysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="arraysrc", parent_name="histogram.error_y", **kwargs - ): - super(ArraysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArraysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='arraysrc', + parent_name='histogram.error_y', + **kwargs): + super(ArraysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/error_y/_color.py b/packages/python/plotly/plotly/validators/histogram/error_y/_color.py index c04b181958a..90fb559ba27 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_y/_color.py +++ b/packages/python/plotly/plotly/validators/histogram/error_y/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="histogram.error_y", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='histogram.error_y', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/error_y/_symmetric.py b/packages/python/plotly/plotly/validators/histogram/error_y/_symmetric.py index 2b71b1b8e93..273be22df29 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_y/_symmetric.py +++ b/packages/python/plotly/plotly/validators/histogram/error_y/_symmetric.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="symmetric", parent_name="histogram.error_y", **kwargs - ): - super(SymmetricValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SymmetricValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='symmetric', + parent_name='histogram.error_y', + **kwargs): + super(SymmetricValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/error_y/_thickness.py b/packages/python/plotly/plotly/validators/histogram/error_y/_thickness.py index c66e2aea1b0..94d4759df05 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_y/_thickness.py +++ b/packages/python/plotly/plotly/validators/histogram/error_y/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="histogram.error_y", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='histogram.error_y', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/error_y/_traceref.py b/packages/python/plotly/plotly/validators/histogram/error_y/_traceref.py index 30347a0c2f5..b14c087605a 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_y/_traceref.py +++ b/packages/python/plotly/plotly/validators/histogram/error_y/_traceref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="traceref", parent_name="histogram.error_y", **kwargs - ): - super(TracerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TracerefValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='traceref', + parent_name='histogram.error_y', + **kwargs): + super(TracerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/error_y/_tracerefminus.py b/packages/python/plotly/plotly/validators/histogram/error_y/_tracerefminus.py index dfa53254baa..d4970caa726 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_y/_tracerefminus.py +++ b/packages/python/plotly/plotly/validators/histogram/error_y/_tracerefminus.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="tracerefminus", parent_name="histogram.error_y", **kwargs - ): - super(TracerefminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TracerefminusValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='tracerefminus', + parent_name='histogram.error_y', + **kwargs): + super(TracerefminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/error_y/_type.py b/packages/python/plotly/plotly/validators/histogram/error_y/_type.py index 981ce78cf32..5c2b29466bb 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_y/_type.py +++ b/packages/python/plotly/plotly/validators/histogram/error_y/_type.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="type", parent_name="histogram.error_y", **kwargs): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='histogram.error_y', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['percent', 'constant', 'sqrt', 'data']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/error_y/_value.py b/packages/python/plotly/plotly/validators/histogram/error_y/_value.py index ea5d203f6b4..ab20d6ca158 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_y/_value.py +++ b/packages/python/plotly/plotly/validators/histogram/error_y/_value.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ValueValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="value", parent_name="histogram.error_y", **kwargs): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.NumberValidator): + def __init__(self, plotly_name='value', + parent_name='histogram.error_y', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/error_y/_valueminus.py b/packages/python/plotly/plotly/validators/histogram/error_y/_valueminus.py index b9f3fce22d1..08562cb403b 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_y/_valueminus.py +++ b/packages/python/plotly/plotly/validators/histogram/error_y/_valueminus.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="valueminus", parent_name="histogram.error_y", **kwargs - ): - super(ValueminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueminusValidator(_bv.NumberValidator): + def __init__(self, plotly_name='valueminus', + parent_name='histogram.error_y', + **kwargs): + super(ValueminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/error_y/_visible.py b/packages/python/plotly/plotly/validators/histogram/error_y/_visible.py index 7abf56f7726..c6db9985c75 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_y/_visible.py +++ b/packages/python/plotly/plotly/validators/histogram/error_y/_visible.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="visible", parent_name="histogram.error_y", **kwargs - ): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='histogram.error_y', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/error_y/_width.py b/packages/python/plotly/plotly/validators/histogram/error_y/_width.py index df54bf2e38d..341c2434b9b 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_y/_width.py +++ b/packages/python/plotly/plotly/validators/histogram/error_y/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="histogram.error_y", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='histogram.error_y', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/_align.py index e3eab44ad13..2b659171da7 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/_align.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="align", parent_name="histogram.hoverlabel", **kwargs - ): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='histogram.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/_alignsrc.py index be4972f1bef..e4039501109 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="histogram.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='histogram.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/_bgcolor.py index 970712dca3c..fe96b36b05b 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="histogram.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='histogram.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/_bgcolorsrc.py index cb4b4a33cd4..5fb111e879b 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="histogram.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='histogram.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/_bordercolor.py index 91c8eecf565..ac46bc04b0c 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="histogram.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='histogram.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/_bordercolorsrc.py index c147e0c0395..dfe9dd30b74 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bordercolorsrc", parent_name="histogram.hoverlabel", **kwargs - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='histogram.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/_font.py index 156b767eb48..d644c8dac57 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/_font.py @@ -1,88 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="histogram.hoverlabel", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='histogram.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/_namelength.py index 39739ec870e..be9847351ce 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="histogram.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='histogram.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/_namelengthsrc.py index 6c68132f5ed..64920f28bd0 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="histogram.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='histogram.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_color.py index a03e7213deb..03d87b37cab 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="histogram.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='histogram.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_colorsrc.py index 4961b371b92..938115deaae 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="histogram.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='histogram.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_family.py index 5a549a08256..01861fa5dc7 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="histogram.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='histogram.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_familysrc.py index 15a31f62428..b8f8a589ad9 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="histogram.hoverlabel.font", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='histogram.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_lineposition.py index 0ee1ed5aff6..1e6ab785f41 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="histogram.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='histogram.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_linepositionsrc.py index 19216ea960b..466edede0f6 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="histogram.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='histogram.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_shadow.py index 3f0018ad629..e8405cdcc13 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="histogram.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='histogram.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_shadowsrc.py index f964f045a0b..e9afa0b6862 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="histogram.hoverlabel.font", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='histogram.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_size.py index 22d23470bc0..b61730b7b63 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="histogram.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='histogram.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_sizesrc.py index b0a9ccbcd3d..0299a6d80ea 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="histogram.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='histogram.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_style.py index 75811940249..868c7b92359 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="histogram.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='histogram.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_stylesrc.py index 58dc97505ae..8e07b04a58f 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="histogram.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='histogram.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_textcase.py index 0f611cee982..56002559756 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="histogram.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='histogram.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_textcasesrc.py index ea8a5938557..50865eeb12f 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="histogram.hoverlabel.font", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='histogram.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_variant.py index 4f2ec3980b3..50f9249e123 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="histogram.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='histogram.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_variantsrc.py index 75de0e74c4d..3e21fc9c7d6 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_variantsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="variantsrc", - parent_name="histogram.hoverlabel.font", - **kwargs, - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='histogram.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_weight.py index b34218884f0..62b7bdd384e 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="histogram.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='histogram.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_weightsrc.py index 78cf8e9295c..1e3d535b288 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="histogram.hoverlabel.font", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='histogram.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/insidetextfont/__init__.py b/packages/python/plotly/plotly/validators/histogram/insidetextfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/histogram/insidetextfont/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/insidetextfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram/insidetextfont/_color.py b/packages/python/plotly/plotly/validators/histogram/insidetextfont/_color.py index 65030c2c47d..cc187ad0c5a 100644 --- a/packages/python/plotly/plotly/validators/histogram/insidetextfont/_color.py +++ b/packages/python/plotly/plotly/validators/histogram/insidetextfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="histogram.insidetextfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='histogram.insidetextfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/insidetextfont/_family.py b/packages/python/plotly/plotly/validators/histogram/insidetextfont/_family.py index 8fbdd7688e5..1873ca62149 100644 --- a/packages/python/plotly/plotly/validators/histogram/insidetextfont/_family.py +++ b/packages/python/plotly/plotly/validators/histogram/insidetextfont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="histogram.insidetextfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='histogram.insidetextfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/insidetextfont/_lineposition.py b/packages/python/plotly/plotly/validators/histogram/insidetextfont/_lineposition.py index df80a7b1658..84e78cf7dc7 100644 --- a/packages/python/plotly/plotly/validators/histogram/insidetextfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/histogram/insidetextfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="histogram.insidetextfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='histogram.insidetextfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/insidetextfont/_shadow.py b/packages/python/plotly/plotly/validators/histogram/insidetextfont/_shadow.py index d62fc7a167e..0d7cde1b44b 100644 --- a/packages/python/plotly/plotly/validators/histogram/insidetextfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/histogram/insidetextfont/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="histogram.insidetextfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='histogram.insidetextfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/insidetextfont/_size.py b/packages/python/plotly/plotly/validators/histogram/insidetextfont/_size.py index f65e369fcf1..c670c1b7121 100644 --- a/packages/python/plotly/plotly/validators/histogram/insidetextfont/_size.py +++ b/packages/python/plotly/plotly/validators/histogram/insidetextfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="histogram.insidetextfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='histogram.insidetextfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/insidetextfont/_style.py b/packages/python/plotly/plotly/validators/histogram/insidetextfont/_style.py index 7d165c6f03e..5d94b822bda 100644 --- a/packages/python/plotly/plotly/validators/histogram/insidetextfont/_style.py +++ b/packages/python/plotly/plotly/validators/histogram/insidetextfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="histogram.insidetextfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='histogram.insidetextfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/insidetextfont/_textcase.py b/packages/python/plotly/plotly/validators/histogram/insidetextfont/_textcase.py index 8ee95a7c701..1e7a21ed719 100644 --- a/packages/python/plotly/plotly/validators/histogram/insidetextfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/histogram/insidetextfont/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="histogram.insidetextfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='histogram.insidetextfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/insidetextfont/_variant.py b/packages/python/plotly/plotly/validators/histogram/insidetextfont/_variant.py index 67820554d47..625ee3661f8 100644 --- a/packages/python/plotly/plotly/validators/histogram/insidetextfont/_variant.py +++ b/packages/python/plotly/plotly/validators/histogram/insidetextfont/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="histogram.insidetextfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='histogram.insidetextfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/insidetextfont/_weight.py b/packages/python/plotly/plotly/validators/histogram/insidetextfont/_weight.py index dc3db5cfd39..f433b59c26b 100644 --- a/packages/python/plotly/plotly/validators/histogram/insidetextfont/_weight.py +++ b/packages/python/plotly/plotly/validators/histogram/insidetextfont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="histogram.insidetextfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='histogram.insidetextfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/_font.py index 20e6b44fc73..52f818d3383 100644 --- a/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="histogram.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='histogram.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/_text.py index f009159a917..861f500a293 100644 --- a/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="histogram.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='histogram.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_color.py index e7081da9a71..f9170e72b45 100644 --- a/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="histogram.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='histogram.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_family.py index 8bb67f64108..3466df9c3f9 100644 --- a/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="histogram.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='histogram.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_lineposition.py index 3580ea8b24a..21340d93566 100644 --- a/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="histogram.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='histogram.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_shadow.py index 3b0745a9c92..864e55b825c 100644 --- a/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="histogram.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='histogram.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_size.py index de12a55d4fb..2fd6243d891 100644 --- a/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="histogram.legendgrouptitle.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='histogram.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_style.py index a430d7224b9..2b3ff608f69 100644 --- a/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="histogram.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='histogram.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_textcase.py index 8447fedbb60..ff95a6b9c8f 100644 --- a/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="histogram.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='histogram.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_variant.py index b9fd87b9f1f..ecae0ab29ec 100644 --- a/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="histogram.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='histogram.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_weight.py index c3545dda76d..c9d0833f016 100644 --- a/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/histogram/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="histogram.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='histogram.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/__init__.py b/packages/python/plotly/plotly/validators/histogram/marker/__init__.py index 8f8e3d4a932..061350a4be5 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._showscale import ShowscaleValidator from ._reversescale import ReversescaleValidator @@ -21,27 +20,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._showscale.ShowscaleValidator", - "._reversescale.ReversescaleValidator", - "._pattern.PatternValidator", - "._opacitysrc.OpacitysrcValidator", - "._opacity.OpacityValidator", - "._line.LineValidator", - "._cornerradius.CornerradiusValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._showscale.ShowscaleValidator', '._reversescale.ReversescaleValidator', '._pattern.PatternValidator', '._opacitysrc.OpacitysrcValidator', '._opacity.OpacityValidator', '._line.LineValidator', '._cornerradius.CornerradiusValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram/marker/_autocolorscale.py b/packages/python/plotly/plotly/validators/histogram/marker/_autocolorscale.py index 68fb0551326..42fe1d8cd54 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="histogram.marker", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='histogram.marker', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/_cauto.py b/packages/python/plotly/plotly/validators/histogram/marker/_cauto.py index 8141f7101f3..30b1da5941e 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/_cauto.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/_cauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cauto", parent_name="histogram.marker", **kwargs): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='histogram.marker', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/_cmax.py b/packages/python/plotly/plotly/validators/histogram/marker/_cmax.py index 7d958630852..e08495c1771 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/_cmax.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/_cmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmax", parent_name="histogram.marker", **kwargs): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='histogram.marker', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/_cmid.py b/packages/python/plotly/plotly/validators/histogram/marker/_cmid.py index df400126a91..36d59aef795 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/_cmid.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/_cmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmid", parent_name="histogram.marker", **kwargs): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='histogram.marker', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/_cmin.py b/packages/python/plotly/plotly/validators/histogram/marker/_cmin.py index 8fa8e64f9b7..f4bacb22d2b 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/_cmin.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/_cmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmin", parent_name="histogram.marker", **kwargs): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='histogram.marker', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/_color.py b/packages/python/plotly/plotly/validators/histogram/marker/_color.py index 3243736e984..ffd1bb57bbe 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/_color.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/_color.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="histogram.marker", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - colorscale_path=kwargs.pop( - "colorscale_path", "histogram.marker.colorscale" - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='histogram.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + colorscale_path=kwargs.pop('colorscale_path', 'histogram.marker.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/_coloraxis.py b/packages/python/plotly/plotly/validators/histogram/marker/_coloraxis.py index f0c8f61b0d6..cfa278fb599 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/_coloraxis.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name="coloraxis", parent_name="histogram.marker", **kwargs - ): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='histogram.marker', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/_colorbar.py b/packages/python/plotly/plotly/validators/histogram/marker/_colorbar.py index a577dbd09a0..39c275b4df3 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/_colorbar.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/_colorbar.py @@ -1,282 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="colorbar", parent_name="histogram.marker", **kwargs - ): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.histogr - am.marker.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.histogram.marker.colorbar.tickformatstopdefau - lts), sets the default property values to use - for elements of - histogram.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.histogram.marker.c - olorbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='histogram.marker', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/_colorscale.py b/packages/python/plotly/plotly/validators/histogram/marker/_colorscale.py index 2961c7c4357..5c891e78db5 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/_colorscale.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="histogram.marker", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='histogram.marker', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/_colorsrc.py b/packages/python/plotly/plotly/validators/histogram/marker/_colorsrc.py index 6e41a475106..60fd168a386 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="histogram.marker", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='histogram.marker', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/_cornerradius.py b/packages/python/plotly/plotly/validators/histogram/marker/_cornerradius.py index 0a3f78d5987..9b12edca954 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/_cornerradius.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/_cornerradius.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CornerradiusValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="cornerradius", parent_name="histogram.marker", **kwargs - ): - super(CornerradiusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CornerradiusValidator(_bv.AnyValidator): + def __init__(self, plotly_name='cornerradius', + parent_name='histogram.marker', + **kwargs): + super(CornerradiusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/_line.py b/packages/python/plotly/plotly/validators/histogram/marker/_line.py index e5955f2126b..15da9b3b6a7 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/_line.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/_line.py @@ -1,105 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="histogram.marker", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.line.colorscale`. Has an - effect only if in `marker.line.color` is set to - a numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.line.color`) or the bounds set in - `marker.line.cmin` and `marker.line.cmax` Has - an effect only if in `marker.line.color` is set - to a numerical array. Defaults to `false` when - `marker.line.cmin` and `marker.line.cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.line.cmin` and/or - `marker.line.cmax` to be equidistant to this - point. Has an effect only if in - `marker.line.color` is set to a numerical - array. Value should have the same units as in - `marker.line.color`. Has no effect when - `marker.line.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmax` must be set as well. - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorscale - Sets the colorscale. Has an effect only if in - `marker.line.color` is set to a numerical - array. The colorscale must be an array - containing arrays mapping a normalized value to - an rgb, rgba, hex, hsl, hsv, or named color - string. At minimum, a mapping for the lowest - (0) and highest (1) values are required. For - example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use - `marker.line.cmin` and `marker.line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.line.color` is set to - a numerical array. If true, `marker.line.cmin` - will correspond to the last color in the array - and `marker.line.cmax` will correspond to the - first color. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='histogram.marker', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/_opacity.py b/packages/python/plotly/plotly/validators/histogram/marker/_opacity.py index 34ea49aea3a..09cd4b5e834 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/_opacity.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="histogram.marker", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='histogram.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/_opacitysrc.py b/packages/python/plotly/plotly/validators/histogram/marker/_opacitysrc.py index e3ed6430737..5d4b9d868ec 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/_opacitysrc.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/_opacitysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="opacitysrc", parent_name="histogram.marker", **kwargs - ): - super(OpacitysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacitysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='opacitysrc', + parent_name='histogram.marker', + **kwargs): + super(OpacitysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/_pattern.py b/packages/python/plotly/plotly/validators/histogram/marker/_pattern.py index 43a97f8fba6..623f44e9b59 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/_pattern.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/_pattern.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class PatternValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="pattern", parent_name="histogram.marker", **kwargs): - super(PatternValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Pattern"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - When there is no colorscale sets the color of - background pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "overlay". Otherwise, defaults to a transparent - background. - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - fgcolor - When there is no colorscale sets the color of - foreground pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "replace". Otherwise, defaults to dark grey or - white to increase contrast with the `bgcolor`. - fgcolorsrc - Sets the source reference on Chart Studio Cloud - for `fgcolor`. - fgopacity - Sets the opacity of the foreground pattern - fill. Defaults to a 0.5 when `fillmode` is - "overlay". Otherwise, defaults to 1. - fillmode - Determines whether `marker.color` should be - used as a default to `bgcolor` or a `fgcolor`. - shape - Sets the shape of the pattern fill. By default, - no pattern is used for filling the area. - shapesrc - Sets the source reference on Chart Studio Cloud - for `shape`. - size - Sets the size of unit squares of the pattern - fill in pixels, which corresponds to the - interval of repetition of the pattern. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - solidity - Sets the solidity of the pattern fill. Solidity - is roughly the fraction of the area filled by - the pattern. Solidity of 0 shows only the - background color without pattern and solidty of - 1 shows only the foreground color without - pattern. - soliditysrc - Sets the source reference on Chart Studio Cloud - for `solidity`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class PatternValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='pattern', + parent_name='histogram.marker', + **kwargs): + super(PatternValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Pattern'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/_reversescale.py b/packages/python/plotly/plotly/validators/histogram/marker/_reversescale.py index a5014da5eaa..55730e05ee0 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/_reversescale.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="histogram.marker", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='histogram.marker', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/_showscale.py b/packages/python/plotly/plotly/validators/histogram/marker/_showscale.py index 1009894e95a..ab3a1a8d119 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/_showscale.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/_showscale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showscale", parent_name="histogram.marker", **kwargs - ): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='histogram.marker', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_bgcolor.py index 6aba6ba0df4..f7d03f1dc38 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="histogram.marker.colorbar", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='histogram.marker.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_bordercolor.py index 4e72238324b..4357ff9f7d9 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_bordercolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bordercolor", - parent_name="histogram.marker.colorbar", - **kwargs, - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='histogram.marker.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_borderwidth.py index c24de58539b..aef1d68039b 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_borderwidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="borderwidth", - parent_name="histogram.marker.colorbar", - **kwargs, - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='histogram.marker.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_dtick.py index 79ecd42053a..7dc0f89e243 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="histogram.marker.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='histogram.marker.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_exponentformat.py index 01a7f3d7167..6b1fbdccb73 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_exponentformat.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="exponentformat", - parent_name="histogram.marker.colorbar", - **kwargs, - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='histogram.marker.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_labelalias.py index 86d92fd691a..1a6a7bb5225 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_labelalias.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="labelalias", - parent_name="histogram.marker.colorbar", - **kwargs, - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='histogram.marker.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_len.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_len.py index 9362830690b..0689f803b7b 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_len.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="len", parent_name="histogram.marker.colorbar", **kwargs - ): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='histogram.marker.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_lenmode.py index 2f38eb782d9..cb58ddaa569 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_lenmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="lenmode", parent_name="histogram.marker.colorbar", **kwargs - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='histogram.marker.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_minexponent.py index 93a853a1929..bc8fc475523 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_minexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="minexponent", - parent_name="histogram.marker.colorbar", - **kwargs, - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='histogram.marker.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_nticks.py index f6c32ed4aff..8dd5d6084a7 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="histogram.marker.colorbar", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='histogram.marker.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_orientation.py index cf591da3e3d..2fc873cf351 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_orientation.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="orientation", - parent_name="histogram.marker.colorbar", - **kwargs, - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='histogram.marker.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_outlinecolor.py index 3a0b1638f10..4d35cce4465 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_outlinecolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="outlinecolor", - parent_name="histogram.marker.colorbar", - **kwargs, - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='histogram.marker.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_outlinewidth.py index 1642771bfe8..dd4561d951a 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_outlinewidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="outlinewidth", - parent_name="histogram.marker.colorbar", - **kwargs, - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='histogram.marker.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_separatethousands.py index 5ad11f5520b..b7b3236c218 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="histogram.marker.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='histogram.marker.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_showexponent.py index e1dd35719e1..f4aaf7f621f 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_showexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showexponent", - parent_name="histogram.marker.colorbar", - **kwargs, - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='histogram.marker.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_showticklabels.py index 026869b4c57..360ce784ede 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="histogram.marker.colorbar", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='histogram.marker.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_showtickprefix.py index e0531787bdb..426926f8de9 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="histogram.marker.colorbar", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='histogram.marker.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_showticksuffix.py index e9e7c15b371..dea6b73de15 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="histogram.marker.colorbar", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='histogram.marker.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_thickness.py index 3233a5c479e..4e1b2b930d6 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="histogram.marker.colorbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='histogram.marker.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_thicknessmode.py index fff31b535ae..0087b38ef98 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_thicknessmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="thicknessmode", - parent_name="histogram.marker.colorbar", - **kwargs, - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='histogram.marker.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tick0.py index 6c753f31e5a..3994b5fa53e 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="histogram.marker.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='histogram.marker.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickangle.py index 7c849b91292..aaf5e44adaf 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="histogram.marker.colorbar", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='histogram.marker.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickcolor.py index 37296b1450c..ce8692a58b4 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="histogram.marker.colorbar", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='histogram.marker.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickfont.py index 3bbb965b7d0..43d9655df6d 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="histogram.marker.colorbar", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='histogram.marker.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickformat.py index e81180fd5c9..efef3622c7c 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickformat.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickformat", - parent_name="histogram.marker.colorbar", - **kwargs, - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='histogram.marker.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickformatstopdefaults.py index 11d46bb8c24..5a54d975bab 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="histogram.marker.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='histogram.marker.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickformatstops.py index 18684c89372..e6cbb1d3f99 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="histogram.marker.colorbar", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='histogram.marker.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticklabeloverflow.py index 6ee2168b4ff..a05c5a7c13a 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="histogram.marker.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='histogram.marker.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticklabelposition.py index 78f6bdbb20f..f3bfb918a3f 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="histogram.marker.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='histogram.marker.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticklabelstep.py index fdc4cf78341..b4eb6b8eea2 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticklabelstep.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="ticklabelstep", - parent_name="histogram.marker.colorbar", - **kwargs, - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='histogram.marker.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticklen.py index 500d1c5c490..57bb6df7ded 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="histogram.marker.colorbar", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='histogram.marker.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickmode.py index a1fb75e110a..15aa334f62e 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="histogram.marker.colorbar", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='histogram.marker.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickprefix.py index efb46184712..d79e790bfac 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickprefix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickprefix", - parent_name="histogram.marker.colorbar", - **kwargs, - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='histogram.marker.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticks.py index 1ee66d7f171..4c26bc9f03a 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="histogram.marker.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='histogram.marker.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticksuffix.py index a6bcb47182e..297170ace53 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticksuffix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="ticksuffix", - parent_name="histogram.marker.colorbar", - **kwargs, - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='histogram.marker.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticktext.py index fe982ca9a18..51f42257f2d 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="histogram.marker.colorbar", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='histogram.marker.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticktextsrc.py index 5d1bf16d59f..080e55556d0 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ticktextsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="ticktextsrc", - parent_name="histogram.marker.colorbar", - **kwargs, - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='histogram.marker.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickvals.py index 7c102071cd5..b67a9550206 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="histogram.marker.colorbar", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='histogram.marker.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickvalssrc.py index 9a7a3d8b4f2..25b41bab496 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickvalssrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="tickvalssrc", - parent_name="histogram.marker.colorbar", - **kwargs, - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='histogram.marker.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickwidth.py index ce97c24b44c..e67c2d7c9b7 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="histogram.marker.colorbar", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='histogram.marker.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_title.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_title.py index ff4d90bb884..24b051432b2 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="histogram.marker.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='histogram.marker.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_x.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_x.py index 1ae083e8067..23e342ad1f5 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_x.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="x", parent_name="histogram.marker.colorbar", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='histogram.marker.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_xanchor.py index b30c23ad4af..c66c029e0e4 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="histogram.marker.colorbar", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='histogram.marker.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_xpad.py index 1cdd5730e6a..d86eb11e812 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_xpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="xpad", parent_name="histogram.marker.colorbar", **kwargs - ): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='histogram.marker.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_xref.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_xref.py index 121a6d39bcd..63a1d0d1dd2 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xref", parent_name="histogram.marker.colorbar", **kwargs - ): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='histogram.marker.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_y.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_y.py index 86cc20a14de..8f7a3fb21d0 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_y.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="y", parent_name="histogram.marker.colorbar", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='histogram.marker.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_yanchor.py index 6cad96e7dd8..bedcc96b95e 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="histogram.marker.colorbar", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='histogram.marker.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ypad.py index 2ce4637ff3e..7b5c6c244ad 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_ypad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ypad", parent_name="histogram.marker.colorbar", **kwargs - ): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='histogram.marker.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_yref.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_yref.py index 326e18fcf76..ac249252a09 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yref", parent_name="histogram.marker.colorbar", **kwargs - ): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='histogram.marker.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_color.py index 42749c22167..50c0f76e32d 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="histogram.marker.colorbar.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='histogram.marker.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_family.py index e979eff3638..538225c9615 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="histogram.marker.colorbar.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='histogram.marker.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_lineposition.py index e27d87485a1..8e48c1410ac 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="histogram.marker.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='histogram.marker.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_shadow.py index 2b7ad4db196..802451c4a4b 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="histogram.marker.colorbar.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='histogram.marker.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_size.py index b130357518d..5d131c9b4c3 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="histogram.marker.colorbar.tickfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='histogram.marker.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_style.py index 17b287fbdef..fba2e3bc1f3 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="histogram.marker.colorbar.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='histogram.marker.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_textcase.py index ba7d5420e03..0fafc0dcf22 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="histogram.marker.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='histogram.marker.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_variant.py index d560219779f..64642e08624 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="histogram.marker.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='histogram.marker.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_weight.py index 9c41796a7e0..3380ea2cb11 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="histogram.marker.colorbar.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='histogram.marker.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickformatstop/_dtickrange.py index 15521f2bffa..97799d1e339 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="histogram.marker.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - items=kwargs.pop( - "items", - [ - {"editType": "colorbars", "valType": "any"}, - {"editType": "colorbars", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='histogram.marker.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + items=kwargs.pop('items', [{'editType': 'colorbars', 'valType': 'any'}, {'editType': 'colorbars', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickformatstop/_enabled.py index 5bea80fea30..6bda57a8880 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="histogram.marker.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='histogram.marker.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickformatstop/_name.py index b72006f0cb2..c1617c36bde 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="histogram.marker.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='histogram.marker.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickformatstop/_templateitemname.py index 55c0548d539..014c133fb75 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="histogram.marker.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='histogram.marker.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickformatstop/_value.py index 489bb5cbfdd..916580b7ccf 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="histogram.marker.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='histogram.marker.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/_font.py index 11acf7f1560..8573cfadfa2 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/_font.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="font", - parent_name="histogram.marker.colorbar.title", - **kwargs, - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='histogram.marker.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/_side.py index f90500decec..83def9f5a51 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/_side.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="side", - parent_name="histogram.marker.colorbar.title", - **kwargs, - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='histogram.marker.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/_text.py index ab21c95a6fd..63914650527 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/_text.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="text", - parent_name="histogram.marker.colorbar.title", - **kwargs, - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='histogram.marker.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_color.py index 28e8980318d..d3616c3a02e 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="histogram.marker.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='histogram.marker.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_family.py index 3a115abc1a2..3027b4338e1 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="histogram.marker.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='histogram.marker.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_lineposition.py index 2be2591c29d..8d3f88a70d6 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="histogram.marker.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='histogram.marker.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_shadow.py index a1c596c3d52..99322bdc0e1 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="histogram.marker.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='histogram.marker.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_size.py index fd2ee40971c..f16a3591aed 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="histogram.marker.colorbar.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='histogram.marker.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_style.py index 8af596ae238..8170f7fc4d3 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="histogram.marker.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='histogram.marker.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_textcase.py index ee190081eff..cc8ee5bb196 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="histogram.marker.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='histogram.marker.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_variant.py index 4323c91a22d..5bfe343ad1b 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="histogram.marker.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='histogram.marker.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_weight.py index 2c3604bcd43..c7edbde846d 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="histogram.marker.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='histogram.marker.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/line/__init__.py b/packages/python/plotly/plotly/validators/histogram/marker/line/__init__.py index facbe33f884..55d423b11da 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._widthsrc import WidthsrcValidator from ._width import WidthValidator @@ -16,22 +15,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._widthsrc.WidthsrcValidator", - "._width.WidthValidator", - "._reversescale.ReversescaleValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._widthsrc.WidthsrcValidator', '._width.WidthValidator', '._reversescale.ReversescaleValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram/marker/line/_autocolorscale.py b/packages/python/plotly/plotly/validators/histogram/marker/line/_autocolorscale.py index a147e26524a..9a07289b6ea 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/line/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/line/_autocolorscale.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="autocolorscale", - parent_name="histogram.marker.line", - **kwargs, - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='histogram.marker.line', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/line/_cauto.py b/packages/python/plotly/plotly/validators/histogram/marker/line/_cauto.py index d497ce9c429..a7cfa4761d7 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/line/_cauto.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/line/_cauto.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="cauto", parent_name="histogram.marker.line", **kwargs - ): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='histogram.marker.line', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/line/_cmax.py b/packages/python/plotly/plotly/validators/histogram/marker/line/_cmax.py index 45edc59ba5c..edd0a95ea97 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/line/_cmax.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/line/_cmax.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmax", parent_name="histogram.marker.line", **kwargs - ): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='histogram.marker.line', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/line/_cmid.py b/packages/python/plotly/plotly/validators/histogram/marker/line/_cmid.py index c7b50aedfb0..a5b67d9a66d 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/line/_cmid.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/line/_cmid.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmid", parent_name="histogram.marker.line", **kwargs - ): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='histogram.marker.line', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/line/_cmin.py b/packages/python/plotly/plotly/validators/histogram/marker/line/_cmin.py index 23f42bef4bc..ae84ebb25e9 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/line/_cmin.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/line/_cmin.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmin", parent_name="histogram.marker.line", **kwargs - ): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='histogram.marker.line', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/line/_color.py b/packages/python/plotly/plotly/validators/histogram/marker/line/_color.py index cf1fc962906..e3750055afc 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/line/_color.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/line/_color.py @@ -1,17 +1,15 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="histogram.marker.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - colorscale_path=kwargs.pop( - "colorscale_path", "histogram.marker.line.colorscale" - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='histogram.marker.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + colorscale_path=kwargs.pop('colorscale_path', 'histogram.marker.line.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/line/_coloraxis.py b/packages/python/plotly/plotly/validators/histogram/marker/line/_coloraxis.py index 59beeae23eb..3fa256e98bd 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/line/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/line/_coloraxis.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name="coloraxis", parent_name="histogram.marker.line", **kwargs - ): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='histogram.marker.line', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/line/_colorscale.py b/packages/python/plotly/plotly/validators/histogram/marker/line/_colorscale.py index c87c8a454f1..997dcd42f59 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/line/_colorscale.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/line/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="histogram.marker.line", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='histogram.marker.line', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/line/_colorsrc.py b/packages/python/plotly/plotly/validators/histogram/marker/line/_colorsrc.py index cde815b6c8e..cf6f82cc178 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/line/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/line/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="histogram.marker.line", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='histogram.marker.line', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/line/_reversescale.py b/packages/python/plotly/plotly/validators/histogram/marker/line/_reversescale.py index 1aeee3928e9..aaa9530325c 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/line/_reversescale.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/line/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="histogram.marker.line", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='histogram.marker.line', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/line/_width.py b/packages/python/plotly/plotly/validators/histogram/marker/line/_width.py index 9c023e33779..cc2f9d62f3e 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/line/_width.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/line/_width.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="histogram.marker.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='histogram.marker.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/line/_widthsrc.py b/packages/python/plotly/plotly/validators/histogram/marker/line/_widthsrc.py index b7adae7fd73..e13eb89214b 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/line/_widthsrc.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/line/_widthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="widthsrc", parent_name="histogram.marker.line", **kwargs - ): - super(WidthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='widthsrc', + parent_name='histogram.marker.line', + **kwargs): + super(WidthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/pattern/__init__.py b/packages/python/plotly/plotly/validators/histogram/marker/pattern/__init__.py index e190f962c46..de3616dbc8a 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/pattern/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/pattern/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._soliditysrc import SoliditysrcValidator from ._solidity import SolidityValidator @@ -16,22 +15,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._soliditysrc.SoliditysrcValidator", - "._solidity.SolidityValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shapesrc.ShapesrcValidator", - "._shape.ShapeValidator", - "._fillmode.FillmodeValidator", - "._fgopacity.FgopacityValidator", - "._fgcolorsrc.FgcolorsrcValidator", - "._fgcolor.FgcolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - ], + ['._soliditysrc.SoliditysrcValidator', '._solidity.SolidityValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shapesrc.ShapesrcValidator', '._shape.ShapeValidator', '._fillmode.FillmodeValidator', '._fgopacity.FgopacityValidator', '._fgcolorsrc.FgcolorsrcValidator', '._fgcolor.FgcolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram/marker/pattern/_bgcolor.py b/packages/python/plotly/plotly/validators/histogram/marker/pattern/_bgcolor.py index 010c1f523bd..d80a655aaec 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/pattern/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/pattern/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="histogram.marker.pattern", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='histogram.marker.pattern', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/pattern/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/histogram/marker/pattern/_bgcolorsrc.py index c98dada28d7..89fa9ee612e 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/pattern/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/pattern/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="histogram.marker.pattern", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='histogram.marker.pattern', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/pattern/_fgcolor.py b/packages/python/plotly/plotly/validators/histogram/marker/pattern/_fgcolor.py index 2af5dbaf5fb..4c3eebde8d4 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/pattern/_fgcolor.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/pattern/_fgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class FgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="fgcolor", parent_name="histogram.marker.pattern", **kwargs - ): - super(FgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fgcolor', + parent_name='histogram.marker.pattern', + **kwargs): + super(FgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/pattern/_fgcolorsrc.py b/packages/python/plotly/plotly/validators/histogram/marker/pattern/_fgcolorsrc.py index 7e83af259c4..18989a2c16c 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/pattern/_fgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/pattern/_fgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="fgcolorsrc", parent_name="histogram.marker.pattern", **kwargs - ): - super(FgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='fgcolorsrc', + parent_name='histogram.marker.pattern', + **kwargs): + super(FgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/pattern/_fgopacity.py b/packages/python/plotly/plotly/validators/histogram/marker/pattern/_fgopacity.py index 2499e1ca68d..525f8512533 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/pattern/_fgopacity.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/pattern/_fgopacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FgopacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="fgopacity", parent_name="histogram.marker.pattern", **kwargs - ): - super(FgopacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FgopacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fgopacity', + parent_name='histogram.marker.pattern', + **kwargs): + super(FgopacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/pattern/_fillmode.py b/packages/python/plotly/plotly/validators/histogram/marker/pattern/_fillmode.py index d2cfbd3eb6b..e69e0efbc7f 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/pattern/_fillmode.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/pattern/_fillmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class FillmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="fillmode", parent_name="histogram.marker.pattern", **kwargs - ): - super(FillmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["replace", "overlay"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='fillmode', + parent_name='histogram.marker.pattern', + **kwargs): + super(FillmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['replace', 'overlay']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/pattern/_shape.py b/packages/python/plotly/plotly/validators/histogram/marker/pattern/_shape.py index aec59060cf3..acf60cdd52e 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/pattern/_shape.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/pattern/_shape.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="shape", parent_name="histogram.marker.pattern", **kwargs - ): - super(ShapeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["", "/", "\\", "x", "-", "|", "+", "."]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShapeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='shape', + parent_name='histogram.marker.pattern', + **kwargs): + super(ShapeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['', '/', '\\', 'x', '-', '|', '+', '.']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/pattern/_shapesrc.py b/packages/python/plotly/plotly/validators/histogram/marker/pattern/_shapesrc.py index b495e591de7..048131c9959 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/pattern/_shapesrc.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/pattern/_shapesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShapesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shapesrc", parent_name="histogram.marker.pattern", **kwargs - ): - super(ShapesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShapesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shapesrc', + parent_name='histogram.marker.pattern', + **kwargs): + super(ShapesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/pattern/_size.py b/packages/python/plotly/plotly/validators/histogram/marker/pattern/_size.py index 014fefb1e22..aa500a245ed 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/pattern/_size.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/pattern/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="histogram.marker.pattern", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='histogram.marker.pattern', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/pattern/_sizesrc.py b/packages/python/plotly/plotly/validators/histogram/marker/pattern/_sizesrc.py index 45cf2b6e678..68b2062af60 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/pattern/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/pattern/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="histogram.marker.pattern", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='histogram.marker.pattern', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/pattern/_solidity.py b/packages/python/plotly/plotly/validators/histogram/marker/pattern/_solidity.py index 661200abbcf..142cdef4144 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/pattern/_solidity.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/pattern/_solidity.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class SolidityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="solidity", parent_name="histogram.marker.pattern", **kwargs - ): - super(SolidityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SolidityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='solidity', + parent_name='histogram.marker.pattern', + **kwargs): + super(SolidityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/marker/pattern/_soliditysrc.py b/packages/python/plotly/plotly/validators/histogram/marker/pattern/_soliditysrc.py index 7834f6a0243..21767bb1744 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/pattern/_soliditysrc.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/pattern/_soliditysrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SoliditysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="soliditysrc", - parent_name="histogram.marker.pattern", - **kwargs, - ): - super(SoliditysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SoliditysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='soliditysrc', + parent_name='histogram.marker.pattern', + **kwargs): + super(SoliditysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/outsidetextfont/__init__.py b/packages/python/plotly/plotly/validators/histogram/outsidetextfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/histogram/outsidetextfont/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/outsidetextfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_color.py b/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_color.py index 64dcf2bf93c..2e2a1a139e4 100644 --- a/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_color.py +++ b/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="histogram.outsidetextfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='histogram.outsidetextfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_family.py b/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_family.py index 97dd74bb226..04c8d99aefd 100644 --- a/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_family.py +++ b/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="histogram.outsidetextfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='histogram.outsidetextfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_lineposition.py b/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_lineposition.py index b812a08038d..32d74484b3b 100644 --- a/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="histogram.outsidetextfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='histogram.outsidetextfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_shadow.py b/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_shadow.py index cbbb6ffa1fa..64aec2f359c 100644 --- a/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="histogram.outsidetextfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='histogram.outsidetextfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_size.py b/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_size.py index b3f1ebe3701..c7cff77eea9 100644 --- a/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_size.py +++ b/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="histogram.outsidetextfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='histogram.outsidetextfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_style.py b/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_style.py index ce5c3d095c2..506f73b8a5a 100644 --- a/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_style.py +++ b/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="histogram.outsidetextfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='histogram.outsidetextfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_textcase.py b/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_textcase.py index b7a75a664c3..6c9ed022588 100644 --- a/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="histogram.outsidetextfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='histogram.outsidetextfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_variant.py b/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_variant.py index 560eb88168d..0c44feb1cac 100644 --- a/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_variant.py +++ b/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="histogram.outsidetextfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='histogram.outsidetextfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_weight.py b/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_weight.py index efa9f0b80df..a422ea588ed 100644 --- a/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_weight.py +++ b/packages/python/plotly/plotly/validators/histogram/outsidetextfont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="histogram.outsidetextfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='histogram.outsidetextfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/selected/__init__.py b/packages/python/plotly/plotly/validators/histogram/selected/__init__.py index 3b0aeed383f..c0a73fd7df3 100644 --- a/packages/python/plotly/plotly/validators/histogram/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/selected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._textfont import TextfontValidator from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] + __name__, + [], + ['._textfont.TextfontValidator', '._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram/selected/_marker.py b/packages/python/plotly/plotly/validators/histogram/selected/_marker.py index 8d8dfd38c86..74011bdcf17 100644 --- a/packages/python/plotly/plotly/validators/histogram/selected/_marker.py +++ b/packages/python/plotly/plotly/validators/histogram/selected/_marker.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="histogram.selected", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='histogram.selected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/selected/_textfont.py b/packages/python/plotly/plotly/validators/histogram/selected/_textfont.py index bd180f15d67..d67c5187c9e 100644 --- a/packages/python/plotly/plotly/validators/histogram/selected/_textfont.py +++ b/packages/python/plotly/plotly/validators/histogram/selected/_textfont.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="textfont", parent_name="histogram.selected", **kwargs - ): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the text font color of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='histogram.selected', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/histogram/selected/marker/__init__.py index d8f31347bfd..e07b1781835 100644 --- a/packages/python/plotly/plotly/validators/histogram/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/selected/marker/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._opacity.OpacityValidator", "._color.ColorValidator"] + __name__, + [], + ['._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram/selected/marker/_color.py b/packages/python/plotly/plotly/validators/histogram/selected/marker/_color.py index d3c03aacda1..6d564961334 100644 --- a/packages/python/plotly/plotly/validators/histogram/selected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/histogram/selected/marker/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="histogram.selected.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='histogram.selected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/selected/marker/_opacity.py b/packages/python/plotly/plotly/validators/histogram/selected/marker/_opacity.py index 37fcec0d8dd..d3ca5bd7c1b 100644 --- a/packages/python/plotly/plotly/validators/histogram/selected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/histogram/selected/marker/_opacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="histogram.selected.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='histogram.selected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/selected/textfont/__init__.py b/packages/python/plotly/plotly/validators/histogram/selected/textfont/__init__.py index a9f087e5af1..86899e5cc51 100644 --- a/packages/python/plotly/plotly/validators/histogram/selected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/selected/textfont/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._color.ColorValidator"] + __name__, + [], + ['._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram/selected/textfont/_color.py b/packages/python/plotly/plotly/validators/histogram/selected/textfont/_color.py index 2cfd81581ca..c43d7cb447d 100644 --- a/packages/python/plotly/plotly/validators/histogram/selected/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/histogram/selected/textfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="histogram.selected.textfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='histogram.selected.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/stream/__init__.py b/packages/python/plotly/plotly/validators/histogram/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/histogram/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/histogram/stream/_maxpoints.py index c40dfceca80..bd050177b2c 100644 --- a/packages/python/plotly/plotly/validators/histogram/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/histogram/stream/_maxpoints.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxpoints", parent_name="histogram.stream", **kwargs - ): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='histogram.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/stream/_token.py b/packages/python/plotly/plotly/validators/histogram/stream/_token.py index 4c735675acb..5f871df92e1 100644 --- a/packages/python/plotly/plotly/validators/histogram/stream/_token.py +++ b/packages/python/plotly/plotly/validators/histogram/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="histogram.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='histogram.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/textfont/__init__.py b/packages/python/plotly/plotly/validators/histogram/textfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/histogram/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/textfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram/textfont/_color.py b/packages/python/plotly/plotly/validators/histogram/textfont/_color.py index 78a6943e611..053d20e9582 100644 --- a/packages/python/plotly/plotly/validators/histogram/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/histogram/textfont/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="histogram.textfont", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='histogram.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/textfont/_family.py b/packages/python/plotly/plotly/validators/histogram/textfont/_family.py index 980d11de946..67c7a02cfed 100644 --- a/packages/python/plotly/plotly/validators/histogram/textfont/_family.py +++ b/packages/python/plotly/plotly/validators/histogram/textfont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="histogram.textfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='histogram.textfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/textfont/_lineposition.py b/packages/python/plotly/plotly/validators/histogram/textfont/_lineposition.py index a432cf79f39..00d240ec583 100644 --- a/packages/python/plotly/plotly/validators/histogram/textfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/histogram/textfont/_lineposition.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="histogram.textfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='histogram.textfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/textfont/_shadow.py b/packages/python/plotly/plotly/validators/histogram/textfont/_shadow.py index ee99540c460..426ddebe4ca 100644 --- a/packages/python/plotly/plotly/validators/histogram/textfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/histogram/textfont/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="histogram.textfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='histogram.textfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/textfont/_size.py b/packages/python/plotly/plotly/validators/histogram/textfont/_size.py index 95f7d441606..577b6c05303 100644 --- a/packages/python/plotly/plotly/validators/histogram/textfont/_size.py +++ b/packages/python/plotly/plotly/validators/histogram/textfont/_size.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="histogram.textfont", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='histogram.textfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/textfont/_style.py b/packages/python/plotly/plotly/validators/histogram/textfont/_style.py index 7ccec713752..a659c8dd430 100644 --- a/packages/python/plotly/plotly/validators/histogram/textfont/_style.py +++ b/packages/python/plotly/plotly/validators/histogram/textfont/_style.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="style", parent_name="histogram.textfont", **kwargs): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='histogram.textfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/textfont/_textcase.py b/packages/python/plotly/plotly/validators/histogram/textfont/_textcase.py index f9293cacf55..494e65376d9 100644 --- a/packages/python/plotly/plotly/validators/histogram/textfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/histogram/textfont/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="histogram.textfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='histogram.textfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/textfont/_variant.py b/packages/python/plotly/plotly/validators/histogram/textfont/_variant.py index b036869f1b8..7f7941ea970 100644 --- a/packages/python/plotly/plotly/validators/histogram/textfont/_variant.py +++ b/packages/python/plotly/plotly/validators/histogram/textfont/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="histogram.textfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='histogram.textfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/textfont/_weight.py b/packages/python/plotly/plotly/validators/histogram/textfont/_weight.py index daebfb1bafd..17d05e7962a 100644 --- a/packages/python/plotly/plotly/validators/histogram/textfont/_weight.py +++ b/packages/python/plotly/plotly/validators/histogram/textfont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="histogram.textfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='histogram.textfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/unselected/__init__.py b/packages/python/plotly/plotly/validators/histogram/unselected/__init__.py index 3b0aeed383f..c0a73fd7df3 100644 --- a/packages/python/plotly/plotly/validators/histogram/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/unselected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._textfont import TextfontValidator from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] + __name__, + [], + ['._textfont.TextfontValidator', '._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram/unselected/_marker.py b/packages/python/plotly/plotly/validators/histogram/unselected/_marker.py index 6e3faf7c3c8..fa7e40fd08e 100644 --- a/packages/python/plotly/plotly/validators/histogram/unselected/_marker.py +++ b/packages/python/plotly/plotly/validators/histogram/unselected/_marker.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="histogram.unselected", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='histogram.unselected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/unselected/_textfont.py b/packages/python/plotly/plotly/validators/histogram/unselected/_textfont.py index 26537aacd62..ad59540ffb9 100644 --- a/packages/python/plotly/plotly/validators/histogram/unselected/_textfont.py +++ b/packages/python/plotly/plotly/validators/histogram/unselected/_textfont.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="textfont", parent_name="histogram.unselected", **kwargs - ): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the text font color of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='histogram.unselected', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/histogram/unselected/marker/__init__.py index d8f31347bfd..e07b1781835 100644 --- a/packages/python/plotly/plotly/validators/histogram/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/unselected/marker/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._opacity.OpacityValidator", "._color.ColorValidator"] + __name__, + [], + ['._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram/unselected/marker/_color.py b/packages/python/plotly/plotly/validators/histogram/unselected/marker/_color.py index 1dfaa9e5ec2..5d150bbdd3a 100644 --- a/packages/python/plotly/plotly/validators/histogram/unselected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/histogram/unselected/marker/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="histogram.unselected.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='histogram.unselected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/unselected/marker/_opacity.py b/packages/python/plotly/plotly/validators/histogram/unselected/marker/_opacity.py index 3e2176bcd2f..39a9e7bb3fd 100644 --- a/packages/python/plotly/plotly/validators/histogram/unselected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/histogram/unselected/marker/_opacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="histogram.unselected.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='histogram.unselected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/unselected/textfont/__init__.py b/packages/python/plotly/plotly/validators/histogram/unselected/textfont/__init__.py index a9f087e5af1..86899e5cc51 100644 --- a/packages/python/plotly/plotly/validators/histogram/unselected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/unselected/textfont/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._color.ColorValidator"] + __name__, + [], + ['._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram/unselected/textfont/_color.py b/packages/python/plotly/plotly/validators/histogram/unselected/textfont/_color.py index 3e2c8d1676a..cb413895b67 100644 --- a/packages/python/plotly/plotly/validators/histogram/unselected/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/histogram/unselected/textfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="histogram.unselected.textfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='histogram.unselected.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/xbins/__init__.py b/packages/python/plotly/plotly/validators/histogram/xbins/__init__.py index b7d1eaa9fcb..78224c18773 100644 --- a/packages/python/plotly/plotly/validators/histogram/xbins/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/xbins/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._start import StartValidator from ._size import SizeValidator from ._end import EndValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._start.StartValidator", "._size.SizeValidator", "._end.EndValidator"], + ['._start.StartValidator', '._size.SizeValidator', '._end.EndValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram/xbins/_end.py b/packages/python/plotly/plotly/validators/histogram/xbins/_end.py index dc0a8cc6a12..e0a0ec630d3 100644 --- a/packages/python/plotly/plotly/validators/histogram/xbins/_end.py +++ b/packages/python/plotly/plotly/validators/histogram/xbins/_end.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class EndValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="end", parent_name="histogram.xbins", **kwargs): - super(EndValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EndValidator(_bv.AnyValidator): + def __init__(self, plotly_name='end', + parent_name='histogram.xbins', + **kwargs): + super(EndValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/xbins/_size.py b/packages/python/plotly/plotly/validators/histogram/xbins/_size.py index 4382d51e285..45a65fd2ec8 100644 --- a/packages/python/plotly/plotly/validators/histogram/xbins/_size.py +++ b/packages/python/plotly/plotly/validators/histogram/xbins/_size.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="size", parent_name="histogram.xbins", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.AnyValidator): + def __init__(self, plotly_name='size', + parent_name='histogram.xbins', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/xbins/_start.py b/packages/python/plotly/plotly/validators/histogram/xbins/_start.py index 8092374521e..e09ce303347 100644 --- a/packages/python/plotly/plotly/validators/histogram/xbins/_start.py +++ b/packages/python/plotly/plotly/validators/histogram/xbins/_start.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class StartValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="start", parent_name="histogram.xbins", **kwargs): - super(StartValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StartValidator(_bv.AnyValidator): + def __init__(self, plotly_name='start', + parent_name='histogram.xbins', + **kwargs): + super(StartValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/ybins/__init__.py b/packages/python/plotly/plotly/validators/histogram/ybins/__init__.py index b7d1eaa9fcb..78224c18773 100644 --- a/packages/python/plotly/plotly/validators/histogram/ybins/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/ybins/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._start import StartValidator from ._size import SizeValidator from ._end import EndValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._start.StartValidator", "._size.SizeValidator", "._end.EndValidator"], + ['._start.StartValidator', '._size.SizeValidator', '._end.EndValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram/ybins/_end.py b/packages/python/plotly/plotly/validators/histogram/ybins/_end.py index d25968beeb4..dfe8a1f1f54 100644 --- a/packages/python/plotly/plotly/validators/histogram/ybins/_end.py +++ b/packages/python/plotly/plotly/validators/histogram/ybins/_end.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class EndValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="end", parent_name="histogram.ybins", **kwargs): - super(EndValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EndValidator(_bv.AnyValidator): + def __init__(self, plotly_name='end', + parent_name='histogram.ybins', + **kwargs): + super(EndValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/ybins/_size.py b/packages/python/plotly/plotly/validators/histogram/ybins/_size.py index 6e27ccf6387..62acf970225 100644 --- a/packages/python/plotly/plotly/validators/histogram/ybins/_size.py +++ b/packages/python/plotly/plotly/validators/histogram/ybins/_size.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="size", parent_name="histogram.ybins", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.AnyValidator): + def __init__(self, plotly_name='size', + parent_name='histogram.ybins', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram/ybins/_start.py b/packages/python/plotly/plotly/validators/histogram/ybins/_start.py index c84311c5b10..a474158054d 100644 --- a/packages/python/plotly/plotly/validators/histogram/ybins/_start.py +++ b/packages/python/plotly/plotly/validators/histogram/ybins/_start.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class StartValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="start", parent_name="histogram.ybins", **kwargs): - super(StartValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StartValidator(_bv.AnyValidator): + def __init__(self, plotly_name='start', + parent_name='histogram.ybins', + **kwargs): + super(StartValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/__init__.py b/packages/python/plotly/plotly/validators/histogram2d/__init__.py index 8235426b271..441568a20f8 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2d/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zsrc import ZsrcValidator from ._zsmooth import ZsmoothValidator @@ -67,73 +66,10 @@ from ._autobinx import AutobinxValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zsrc.ZsrcValidator", - "._zsmooth.ZsmoothValidator", - "._zmin.ZminValidator", - "._zmid.ZmidValidator", - "._zmax.ZmaxValidator", - "._zhoverformat.ZhoverformatValidator", - "._zauto.ZautoValidator", - "._z.ZValidator", - "._ysrc.YsrcValidator", - "._yhoverformat.YhoverformatValidator", - "._ygap.YgapValidator", - "._ycalendar.YcalendarValidator", - "._ybins.YbinsValidator", - "._ybingroup.YbingroupValidator", - "._yaxis.YaxisValidator", - "._y.YValidator", - "._xsrc.XsrcValidator", - "._xhoverformat.XhoverformatValidator", - "._xgap.XgapValidator", - "._xcalendar.XcalendarValidator", - "._xbins.XbinsValidator", - "._xbingroup.XbingroupValidator", - "._xaxis.XaxisValidator", - "._x.XValidator", - "._visible.VisibleValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._texttemplate.TexttemplateValidator", - "._textfont.TextfontValidator", - "._stream.StreamValidator", - "._showscale.ShowscaleValidator", - "._showlegend.ShowlegendValidator", - "._reversescale.ReversescaleValidator", - "._opacity.OpacityValidator", - "._nbinsy.NbinsyValidator", - "._nbinsx.NbinsxValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._marker.MarkerValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._histnorm.HistnormValidator", - "._histfunc.HistfuncValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._bingroup.BingroupValidator", - "._autocolorscale.AutocolorscaleValidator", - "._autobiny.AutobinyValidator", - "._autobinx.AutobinxValidator", - ], + ['._zsrc.ZsrcValidator', '._zsmooth.ZsmoothValidator', '._zmin.ZminValidator', '._zmid.ZmidValidator', '._zmax.ZmaxValidator', '._zhoverformat.ZhoverformatValidator', '._zauto.ZautoValidator', '._z.ZValidator', '._ysrc.YsrcValidator', '._yhoverformat.YhoverformatValidator', '._ygap.YgapValidator', '._ycalendar.YcalendarValidator', '._ybins.YbinsValidator', '._ybingroup.YbingroupValidator', '._yaxis.YaxisValidator', '._y.YValidator', '._xsrc.XsrcValidator', '._xhoverformat.XhoverformatValidator', '._xgap.XgapValidator', '._xcalendar.XcalendarValidator', '._xbins.XbinsValidator', '._xbingroup.XbingroupValidator', '._xaxis.XaxisValidator', '._x.XValidator', '._visible.VisibleValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._texttemplate.TexttemplateValidator', '._textfont.TextfontValidator', '._stream.StreamValidator', '._showscale.ShowscaleValidator', '._showlegend.ShowlegendValidator', '._reversescale.ReversescaleValidator', '._opacity.OpacityValidator', '._nbinsy.NbinsyValidator', '._nbinsx.NbinsxValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._marker.MarkerValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._histnorm.HistnormValidator', '._histfunc.HistfuncValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._bingroup.BingroupValidator', '._autocolorscale.AutocolorscaleValidator', '._autobiny.AutobinyValidator', '._autobinx.AutobinxValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2d/_autobinx.py b/packages/python/plotly/plotly/validators/histogram2d/_autobinx.py index cb23f36988b..106dcbb0deb 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_autobinx.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_autobinx.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AutobinxValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="autobinx", parent_name="histogram2d", **kwargs): - super(AutobinxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutobinxValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autobinx', + parent_name='histogram2d', + **kwargs): + super(AutobinxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_autobiny.py b/packages/python/plotly/plotly/validators/histogram2d/_autobiny.py index 3f27a73c551..ca89d1cda63 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_autobiny.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_autobiny.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AutobinyValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="autobiny", parent_name="histogram2d", **kwargs): - super(AutobinyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutobinyValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autobiny', + parent_name='histogram2d', + **kwargs): + super(AutobinyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_autocolorscale.py b/packages/python/plotly/plotly/validators/histogram2d/_autocolorscale.py index 08ce9a1c1c1..21049a0f402 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="histogram2d", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='histogram2d', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_bingroup.py b/packages/python/plotly/plotly/validators/histogram2d/_bingroup.py index 0f1658fadd6..d0f9e512984 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_bingroup.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_bingroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BingroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="bingroup", parent_name="histogram2d", **kwargs): - super(BingroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BingroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='bingroup', + parent_name='histogram2d', + **kwargs): + super(BingroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_coloraxis.py b/packages/python/plotly/plotly/validators/histogram2d/_coloraxis.py index 3752d352afd..35fcc770ab2 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_coloraxis.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="coloraxis", parent_name="histogram2d", **kwargs): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='histogram2d', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_colorbar.py b/packages/python/plotly/plotly/validators/histogram2d/_colorbar.py index 34a60159293..73bf36ff26a 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_colorbar.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_colorbar.py @@ -1,280 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="colorbar", parent_name="histogram2d", **kwargs): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.histogr - am2d.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.histogram2d.colorbar.tickformatstopdefaults), - sets the default property values to use for - elements of - histogram2d.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.histogram2d.colorb - ar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='histogram2d', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_colorscale.py b/packages/python/plotly/plotly/validators/histogram2d/_colorscale.py index d67e8c17f72..f3d73b70bc0 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_colorscale.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_colorscale.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__(self, plotly_name="colorscale", parent_name="histogram2d", **kwargs): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='histogram2d', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_customdata.py b/packages/python/plotly/plotly/validators/histogram2d/_customdata.py index 689d1d67783..41e3ab3557c 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_customdata.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="histogram2d", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='histogram2d', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_customdatasrc.py b/packages/python/plotly/plotly/validators/histogram2d/_customdatasrc.py index a4ec9b0e80c..c8867e66a04 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_customdatasrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="customdatasrc", parent_name="histogram2d", **kwargs - ): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='histogram2d', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_histfunc.py b/packages/python/plotly/plotly/validators/histogram2d/_histfunc.py index f1b4fc06ef0..fb99e2fcba6 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_histfunc.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_histfunc.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HistfuncValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="histfunc", parent_name="histogram2d", **kwargs): - super(HistfuncValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["count", "sum", "avg", "min", "max"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HistfuncValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='histfunc', + parent_name='histogram2d', + **kwargs): + super(HistfuncValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['count', 'sum', 'avg', 'min', 'max']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_histnorm.py b/packages/python/plotly/plotly/validators/histogram2d/_histnorm.py index 3632922d454..cc03377e5bb 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_histnorm.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_histnorm.py @@ -1,15 +1,14 @@ -import _plotly_utils.basevalidators - - -class HistnormValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="histnorm", parent_name="histogram2d", **kwargs): - super(HistnormValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - ["", "percent", "probability", "density", "probability density"], - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HistnormValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='histnorm', + parent_name='histogram2d', + **kwargs): + super(HistnormValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['', 'percent', 'probability', 'density', 'probability density']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_hoverinfo.py b/packages/python/plotly/plotly/validators/histogram2d/_hoverinfo.py index d813d253133..01dea25cb0b 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="histogram2d", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='histogram2d', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/histogram2d/_hoverinfosrc.py index 7c93eb9702f..70a8b606730 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="histogram2d", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='histogram2d', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_hoverlabel.py b/packages/python/plotly/plotly/validators/histogram2d/_hoverlabel.py index 7aa44eec57f..f315d8106d9 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="histogram2d", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='histogram2d', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_hovertemplate.py b/packages/python/plotly/plotly/validators/histogram2d/_hovertemplate.py index 6a8dbdbd689..21c50bc3c89 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_hovertemplate.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="hovertemplate", parent_name="histogram2d", **kwargs - ): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='histogram2d', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/histogram2d/_hovertemplatesrc.py index 23d374d6f8a..0a23f7f13e8 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_hovertemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertemplatesrc", parent_name="histogram2d", **kwargs - ): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='histogram2d', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_ids.py b/packages/python/plotly/plotly/validators/histogram2d/_ids.py index 6731217d876..6c097f9a639 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_ids.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="histogram2d", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='histogram2d', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_idssrc.py b/packages/python/plotly/plotly/validators/histogram2d/_idssrc.py index 544a46eda9b..4f76751bcca 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_idssrc.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="histogram2d", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='histogram2d', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_legend.py b/packages/python/plotly/plotly/validators/histogram2d/_legend.py index cfdc64740e2..5629912335d 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_legend.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="histogram2d", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='histogram2d', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_legendgroup.py b/packages/python/plotly/plotly/validators/histogram2d/_legendgroup.py index fa13e39d6f8..2e0d93b961e 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="histogram2d", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='histogram2d', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/histogram2d/_legendgrouptitle.py index cfb798fac04..4f71f53cfcf 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="histogram2d", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='histogram2d', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_legendrank.py b/packages/python/plotly/plotly/validators/histogram2d/_legendrank.py index 0d6edf3a036..61671c2354f 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_legendrank.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="histogram2d", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='histogram2d', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_legendwidth.py b/packages/python/plotly/plotly/validators/histogram2d/_legendwidth.py index a130cb38409..538a805cdd8 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="histogram2d", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='histogram2d', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_marker.py b/packages/python/plotly/plotly/validators/histogram2d/_marker.py index d900e420cd3..d8343c92375 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_marker.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_marker.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="histogram2d", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the aggregation data. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='histogram2d', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_meta.py b/packages/python/plotly/plotly/validators/histogram2d/_meta.py index e33212ed3c6..41fcbb01026 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_meta.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="histogram2d", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='histogram2d', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_metasrc.py b/packages/python/plotly/plotly/validators/histogram2d/_metasrc.py index 7607c3094dc..2a5a72118c4 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_metasrc.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="histogram2d", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='histogram2d', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_name.py b/packages/python/plotly/plotly/validators/histogram2d/_name.py index b29010853f1..9948e258d92 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_name.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="histogram2d", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='histogram2d', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_nbinsx.py b/packages/python/plotly/plotly/validators/histogram2d/_nbinsx.py index a3f712e2726..33d6dac4ec4 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_nbinsx.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_nbinsx.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class NbinsxValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="nbinsx", parent_name="histogram2d", **kwargs): - super(NbinsxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NbinsxValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nbinsx', + parent_name='histogram2d', + **kwargs): + super(NbinsxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_nbinsy.py b/packages/python/plotly/plotly/validators/histogram2d/_nbinsy.py index 4fc5eb4110a..4754bb8a8f6 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_nbinsy.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_nbinsy.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class NbinsyValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="nbinsy", parent_name="histogram2d", **kwargs): - super(NbinsyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NbinsyValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nbinsy', + parent_name='histogram2d', + **kwargs): + super(NbinsyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_opacity.py b/packages/python/plotly/plotly/validators/histogram2d/_opacity.py index ec0df2d930f..6f6b6d25a28 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_opacity.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="histogram2d", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='histogram2d', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_reversescale.py b/packages/python/plotly/plotly/validators/histogram2d/_reversescale.py index 728062aa287..ff4f9370109 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_reversescale.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_reversescale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="reversescale", parent_name="histogram2d", **kwargs): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='histogram2d', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_showlegend.py b/packages/python/plotly/plotly/validators/histogram2d/_showlegend.py index 3739c82b2d5..0a677a8b214 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_showlegend.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="histogram2d", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='histogram2d', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_showscale.py b/packages/python/plotly/plotly/validators/histogram2d/_showscale.py index ea737065f48..ad7edc0f2a4 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_showscale.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_showscale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showscale", parent_name="histogram2d", **kwargs): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='histogram2d', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_stream.py b/packages/python/plotly/plotly/validators/histogram2d/_stream.py index b5039d2d239..dd7af0b0ccf 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_stream.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="histogram2d", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='histogram2d', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_textfont.py b/packages/python/plotly/plotly/validators/histogram2d/_textfont.py index 12df3e7e3c5..d575d94f1a7 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_textfont.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_textfont.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="textfont", parent_name="histogram2d", **kwargs): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='histogram2d', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_texttemplate.py b/packages/python/plotly/plotly/validators/histogram2d/_texttemplate.py index 838ce48564f..07e60f08c68 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_texttemplate.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_texttemplate.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="texttemplate", parent_name="histogram2d", **kwargs): - super(TexttemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TexttemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='texttemplate', + parent_name='histogram2d', + **kwargs): + super(TexttemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_uid.py b/packages/python/plotly/plotly/validators/histogram2d/_uid.py index cd718774ec6..4ceafbaade0 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_uid.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="histogram2d", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='histogram2d', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_uirevision.py b/packages/python/plotly/plotly/validators/histogram2d/_uirevision.py index b44559694cf..29688c5a24b 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_uirevision.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="histogram2d", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='histogram2d', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_visible.py b/packages/python/plotly/plotly/validators/histogram2d/_visible.py index 9bd7327491b..3d9558799b7 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_visible.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="histogram2d", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='histogram2d', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_x.py b/packages/python/plotly/plotly/validators/histogram2d/_x.py index bb41a430d06..d9e16e6e6db 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_x.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="x", parent_name="histogram2d", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='x', + parent_name='histogram2d', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_xaxis.py b/packages/python/plotly/plotly/validators/histogram2d/_xaxis.py index e7b2913f63d..3ddae6c488e 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_xaxis.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_xaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="xaxis", parent_name="histogram2d", **kwargs): - super(XaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "x"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='xaxis', + parent_name='histogram2d', + **kwargs): + super(XaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'x'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_xbingroup.py b/packages/python/plotly/plotly/validators/histogram2d/_xbingroup.py index bcd1ac76dce..42d35401b4e 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_xbingroup.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_xbingroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XbingroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="xbingroup", parent_name="histogram2d", **kwargs): - super(XbingroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XbingroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='xbingroup', + parent_name='histogram2d', + **kwargs): + super(XbingroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_xbins.py b/packages/python/plotly/plotly/validators/histogram2d/_xbins.py index 6af103be43b..30b5da40e38 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_xbins.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_xbins.py @@ -1,50 +1,15 @@ -import _plotly_utils.basevalidators -class XbinsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="xbins", parent_name="histogram2d", **kwargs): - super(XbinsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "XBins"), - data_docs=kwargs.pop( - "data_docs", - """ - end - Sets the end value for the x axis bins. The - last bin may not end exactly at this value, we - increment the bin edge by `size` from `start` - until we reach or exceed `end`. Defaults to the - maximum data value. Like `start`, for dates use - a date string, and for category data `end` is - based on the category serial numbers. - size - Sets the size of each x axis bin. Default - behavior: If `nbinsx` is 0 or omitted, we - choose a nice round bin size such that the - number of bins is about the same as the typical - number of samples in each bin. If `nbinsx` is - provided, we choose a nice round bin size - giving no more than that many bins. For date - data, use milliseconds or "M" for months, as - in `axis.dtick`. For category data, the number - of categories to bin together (always defaults - to 1). - start - Sets the starting value for the x axis bins. - Defaults to the minimum data value, shifted - down if necessary to make nice round values and - to remove ambiguous bin edges. For example, if - most of the data is integers we shift the bin - edges 0.5 down, so a `size` of 5 would have a - default `start` of -0.5, so it is clear that - 0-4 are in the first bin, 5-9 in the second, - but continuous data gets a start of 0 and bins - [0,5), [5,10) etc. Dates behave similarly, and - `start` should be a date string. For category - data, `start` is based on the category serial - numbers, and defaults to -0.5. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XbinsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='xbins', + parent_name='histogram2d', + **kwargs): + super(XbinsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'XBins'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_xcalendar.py b/packages/python/plotly/plotly/validators/histogram2d/_xcalendar.py index 9e3688906b0..4d2a3913d56 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_xcalendar.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_xcalendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xcalendar", parent_name="histogram2d", **kwargs): - super(XcalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XcalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xcalendar', + parent_name='histogram2d', + **kwargs): + super(XcalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_xgap.py b/packages/python/plotly/plotly/validators/histogram2d/_xgap.py index 7b0306c6292..77a8049cf5b 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_xgap.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_xgap.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XgapValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="xgap", parent_name="histogram2d", **kwargs): - super(XgapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XgapValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xgap', + parent_name='histogram2d', + **kwargs): + super(XgapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_xhoverformat.py b/packages/python/plotly/plotly/validators/histogram2d/_xhoverformat.py index 798a4361767..a239b8bf9ef 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_xhoverformat.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_xhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="xhoverformat", parent_name="histogram2d", **kwargs): - super(XhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='xhoverformat', + parent_name='histogram2d', + **kwargs): + super(XhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_xsrc.py b/packages/python/plotly/plotly/validators/histogram2d/_xsrc.py index 4b4d090f3ac..180582c2e74 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_xsrc.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_xsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="xsrc", parent_name="histogram2d", **kwargs): - super(XsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='xsrc', + parent_name='histogram2d', + **kwargs): + super(XsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_y.py b/packages/python/plotly/plotly/validators/histogram2d/_y.py index 9fe7b86034d..93ccabb1782 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_y.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="y", parent_name="histogram2d", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='y', + parent_name='histogram2d', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_yaxis.py b/packages/python/plotly/plotly/validators/histogram2d/_yaxis.py index f4d10f22b3f..ed9eb4a2f55 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_yaxis.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_yaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="yaxis", parent_name="histogram2d", **kwargs): - super(YaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "y"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='yaxis', + parent_name='histogram2d', + **kwargs): + super(YaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'y'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_ybingroup.py b/packages/python/plotly/plotly/validators/histogram2d/_ybingroup.py index 0c6a9ccdb01..f7fc674691e 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_ybingroup.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_ybingroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YbingroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="ybingroup", parent_name="histogram2d", **kwargs): - super(YbingroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YbingroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='ybingroup', + parent_name='histogram2d', + **kwargs): + super(YbingroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_ybins.py b/packages/python/plotly/plotly/validators/histogram2d/_ybins.py index bae9002224b..77e3df24cef 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_ybins.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_ybins.py @@ -1,50 +1,15 @@ -import _plotly_utils.basevalidators -class YbinsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="ybins", parent_name="histogram2d", **kwargs): - super(YbinsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "YBins"), - data_docs=kwargs.pop( - "data_docs", - """ - end - Sets the end value for the y axis bins. The - last bin may not end exactly at this value, we - increment the bin edge by `size` from `start` - until we reach or exceed `end`. Defaults to the - maximum data value. Like `start`, for dates use - a date string, and for category data `end` is - based on the category serial numbers. - size - Sets the size of each y axis bin. Default - behavior: If `nbinsy` is 0 or omitted, we - choose a nice round bin size such that the - number of bins is about the same as the typical - number of samples in each bin. If `nbinsy` is - provided, we choose a nice round bin size - giving no more than that many bins. For date - data, use milliseconds or "M" for months, as - in `axis.dtick`. For category data, the number - of categories to bin together (always defaults - to 1). - start - Sets the starting value for the y axis bins. - Defaults to the minimum data value, shifted - down if necessary to make nice round values and - to remove ambiguous bin edges. For example, if - most of the data is integers we shift the bin - edges 0.5 down, so a `size` of 5 would have a - default `start` of -0.5, so it is clear that - 0-4 are in the first bin, 5-9 in the second, - but continuous data gets a start of 0 and bins - [0,5), [5,10) etc. Dates behave similarly, and - `start` should be a date string. For category - data, `start` is based on the category serial - numbers, and defaults to -0.5. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YbinsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='ybins', + parent_name='histogram2d', + **kwargs): + super(YbinsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'YBins'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_ycalendar.py b/packages/python/plotly/plotly/validators/histogram2d/_ycalendar.py index 8a84822bc44..7c7cc083124 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_ycalendar.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_ycalendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="ycalendar", parent_name="histogram2d", **kwargs): - super(YcalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YcalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ycalendar', + parent_name='histogram2d', + **kwargs): + super(YcalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_ygap.py b/packages/python/plotly/plotly/validators/histogram2d/_ygap.py index ffea1ce0138..4ee2150f27a 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_ygap.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_ygap.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YgapValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="ygap", parent_name="histogram2d", **kwargs): - super(YgapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YgapValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ygap', + parent_name='histogram2d', + **kwargs): + super(YgapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_yhoverformat.py b/packages/python/plotly/plotly/validators/histogram2d/_yhoverformat.py index 0b98b1b8483..585f4f4da0f 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_yhoverformat.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_yhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="yhoverformat", parent_name="histogram2d", **kwargs): - super(YhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='yhoverformat', + parent_name='histogram2d', + **kwargs): + super(YhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_ysrc.py b/packages/python/plotly/plotly/validators/histogram2d/_ysrc.py index 7ef42b4cd7b..d2cde074275 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_ysrc.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_ysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="ysrc", parent_name="histogram2d", **kwargs): - super(YsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ysrc', + parent_name='histogram2d', + **kwargs): + super(YsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_z.py b/packages/python/plotly/plotly/validators/histogram2d/_z.py index 678ab9b59e2..b9d28d05848 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_z.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_z.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="z", parent_name="histogram2d", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='z', + parent_name='histogram2d', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_zauto.py b/packages/python/plotly/plotly/validators/histogram2d/_zauto.py index 80d5c0216e1..1da352ce0aa 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_zauto.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_zauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="zauto", parent_name="histogram2d", **kwargs): - super(ZautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='zauto', + parent_name='histogram2d', + **kwargs): + super(ZautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_zhoverformat.py b/packages/python/plotly/plotly/validators/histogram2d/_zhoverformat.py index abd76b38c50..4f1b0f98d69 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_zhoverformat.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_zhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="zhoverformat", parent_name="histogram2d", **kwargs): - super(ZhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='zhoverformat', + parent_name='histogram2d', + **kwargs): + super(ZhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_zmax.py b/packages/python/plotly/plotly/validators/histogram2d/_zmax.py index ca7a15d8148..7ca7cb0e320 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_zmax.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_zmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmax", parent_name="histogram2d", **kwargs): - super(ZmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"zauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmax', + parent_name='histogram2d', + **kwargs): + super(ZmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'zauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_zmid.py b/packages/python/plotly/plotly/validators/histogram2d/_zmid.py index 81ff840dd3c..afbf11cd83e 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_zmid.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_zmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmid", parent_name="histogram2d", **kwargs): - super(ZmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmid', + parent_name='histogram2d', + **kwargs): + super(ZmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_zmin.py b/packages/python/plotly/plotly/validators/histogram2d/_zmin.py index 371b3b061d6..bdf3bc85bd5 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_zmin.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_zmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmin", parent_name="histogram2d", **kwargs): - super(ZminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"zauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmin', + parent_name='histogram2d', + **kwargs): + super(ZminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'zauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_zsmooth.py b/packages/python/plotly/plotly/validators/histogram2d/_zsmooth.py index 8e14e722c9b..449148129a9 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_zsmooth.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_zsmooth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZsmoothValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="zsmooth", parent_name="histogram2d", **kwargs): - super(ZsmoothValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["fast", "best", False]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZsmoothValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='zsmooth', + parent_name='histogram2d', + **kwargs): + super(ZsmoothValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['fast', 'best', False]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/_zsrc.py b/packages/python/plotly/plotly/validators/histogram2d/_zsrc.py index 3a0287d50e3..22857445b5f 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/_zsrc.py +++ b/packages/python/plotly/plotly/validators/histogram2d/_zsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="zsrc", parent_name="histogram2d", **kwargs): - super(ZsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='zsrc', + parent_name='histogram2d', + **kwargs): + super(ZsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/__init__.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_bgcolor.py index f0a87bb376c..eec3b04cec0 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="histogram2d.colorbar", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='histogram2d.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_bordercolor.py index 9a319683472..8fc425e79ac 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="histogram2d.colorbar", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='histogram2d.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_borderwidth.py index e084d1c396f..d37697780f6 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_borderwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderwidth", parent_name="histogram2d.colorbar", **kwargs - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='histogram2d.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_dtick.py index fb541535013..2c240bd4a5f 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="histogram2d.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='histogram2d.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_exponentformat.py index 5910c6b7149..0a0d379ffc9 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_exponentformat.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="exponentformat", parent_name="histogram2d.colorbar", **kwargs - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='histogram2d.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_labelalias.py index 05d6167f3ac..293960dcd4a 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="histogram2d.colorbar", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='histogram2d.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_len.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_len.py index 8474837c981..f41d4efb175 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_len.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="len", parent_name="histogram2d.colorbar", **kwargs): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='histogram2d.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_lenmode.py index feb41d9a417..9443dfc71d4 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_lenmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="lenmode", parent_name="histogram2d.colorbar", **kwargs - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='histogram2d.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_minexponent.py index 5fe6201e4ca..7589e9fe0ef 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="histogram2d.colorbar", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='histogram2d.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_nticks.py index 0623df6811c..657fd3cfc51 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="histogram2d.colorbar", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='histogram2d.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_orientation.py index 513cf705f8e..145d725a66f 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_orientation.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="orientation", parent_name="histogram2d.colorbar", **kwargs - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='histogram2d.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_outlinecolor.py index 998ba3f3c14..ac6c631e19c 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_outlinecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="outlinecolor", parent_name="histogram2d.colorbar", **kwargs - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='histogram2d.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_outlinewidth.py index f25a3af09b3..940f439953c 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_outlinewidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="outlinewidth", parent_name="histogram2d.colorbar", **kwargs - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='histogram2d.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_separatethousands.py index 2047d92a709..ef1226fe6fe 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="histogram2d.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='histogram2d.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_showexponent.py index e79cdc46359..df08805547f 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="histogram2d.colorbar", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='histogram2d.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_showticklabels.py index 001fd9e6e5d..39c028371de 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_showticklabels.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showticklabels", parent_name="histogram2d.colorbar", **kwargs - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='histogram2d.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_showtickprefix.py index 632202293b2..9c274dda82d 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_showtickprefix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showtickprefix", parent_name="histogram2d.colorbar", **kwargs - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='histogram2d.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_showticksuffix.py index a2078799942..d480b1a9a4b 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_showticksuffix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showticksuffix", parent_name="histogram2d.colorbar", **kwargs - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='histogram2d.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_thickness.py index a05feaf35da..bdcb1621ea5 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="histogram2d.colorbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='histogram2d.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_thicknessmode.py index 6fe782ed799..5048a791cd7 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_thicknessmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="thicknessmode", parent_name="histogram2d.colorbar", **kwargs - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='histogram2d.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tick0.py index eb35bd6adb5..05ca10a6848 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="histogram2d.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='histogram2d.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickangle.py index 7885371d7da..b2e070526aa 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="histogram2d.colorbar", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='histogram2d.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickcolor.py index 66d7df27ae4..5c129c32acb 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="histogram2d.colorbar", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='histogram2d.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickfont.py index e83e136d262..3879a6a27d2 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="histogram2d.colorbar", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='histogram2d.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickformat.py index 5e8f3280016..f26bfde5d67 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="histogram2d.colorbar", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='histogram2d.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickformatstopdefaults.py index 791798e1807..992c43dbb06 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="histogram2d.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='histogram2d.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickformatstops.py index 89aaad2f9b3..cc0399650f7 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="histogram2d.colorbar", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='histogram2d.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticklabeloverflow.py index 59bf93ad100..f1cccf8a9ad 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="histogram2d.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='histogram2d.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticklabelposition.py index 8d2ea9f8a8c..b09fa595de3 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="histogram2d.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='histogram2d.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticklabelstep.py index 330bd84512c..363d1951143 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticklabelstep.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="ticklabelstep", parent_name="histogram2d.colorbar", **kwargs - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='histogram2d.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticklen.py index 9786c95877d..06c0edc2728 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="histogram2d.colorbar", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='histogram2d.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickmode.py index d116c1319e3..78c9e25f527 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="histogram2d.colorbar", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='histogram2d.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickprefix.py index 050dcf80844..7624cab444a 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="histogram2d.colorbar", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='histogram2d.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticks.py index a1a81900784..dafb2773423 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="histogram2d.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='histogram2d.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticksuffix.py index ec5d26c8bd0..7808916dcb2 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="histogram2d.colorbar", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='histogram2d.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticktext.py index 32ab9761b22..9fd97cb82c1 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="histogram2d.colorbar", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='histogram2d.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticktextsrc.py index f8887ea4aad..51a679d39aa 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="histogram2d.colorbar", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='histogram2d.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickvals.py index 4e2cd510c06..c3112e48c29 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="histogram2d.colorbar", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='histogram2d.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickvalssrc.py index 5ebc3da408c..10c7c1ce4d8 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="histogram2d.colorbar", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='histogram2d.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickwidth.py index c9e036cab34..f1dbcc27133 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="histogram2d.colorbar", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='histogram2d.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_title.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_title.py index 60b9de3668e..8e1e903ba2f 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="histogram2d.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='histogram2d.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_x.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_x.py index 6997c4cc6ac..53be280d968 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x", parent_name="histogram2d.colorbar", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='histogram2d.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_xanchor.py index a3044f64e90..76096b9d82d 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="histogram2d.colorbar", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='histogram2d.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_xpad.py index 85a63d94eb5..e7b1e22e418 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_xpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="xpad", parent_name="histogram2d.colorbar", **kwargs - ): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='histogram2d.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_xref.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_xref.py index f4b00e2659b..d638b99fa70 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xref", parent_name="histogram2d.colorbar", **kwargs - ): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='histogram2d.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_y.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_y.py index 83a13511fcb..ec4c4b65efb 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y", parent_name="histogram2d.colorbar", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='histogram2d.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_yanchor.py index 5cbf00a7851..bc0cac2830b 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="histogram2d.colorbar", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='histogram2d.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ypad.py index 8a9a5f4dd01..192ce78406c 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_ypad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ypad", parent_name="histogram2d.colorbar", **kwargs - ): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='histogram2d.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_yref.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_yref.py index aee34ed34ac..de2a90a124a 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yref", parent_name="histogram2d.colorbar", **kwargs - ): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='histogram2d.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_color.py index d4a77901677..b61d0a0263d 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="histogram2d.colorbar.tickfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='histogram2d.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_family.py index 5b1269e5b6c..240e7884c65 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="histogram2d.colorbar.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='histogram2d.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_lineposition.py index 73530d2f302..735b722a482 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="histogram2d.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='histogram2d.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_shadow.py index 5b542881e03..ecc0e2d37f5 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="histogram2d.colorbar.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='histogram2d.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_size.py index e483a9c3c0c..40e8bfb6135 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="histogram2d.colorbar.tickfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='histogram2d.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_style.py index 4d90d50cee0..ed8b8517d95 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="histogram2d.colorbar.tickfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='histogram2d.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_textcase.py index 94db851dad8..9905732892e 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="histogram2d.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='histogram2d.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_variant.py index 0aa0295739d..cd38a312842 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="histogram2d.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='histogram2d.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_weight.py index 5fed68a4ea3..d0615794298 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="histogram2d.colorbar.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='histogram2d.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickformatstop/_dtickrange.py index ec76e801388..004c599ce3b 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="histogram2d.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - items=kwargs.pop( - "items", - [ - {"editType": "colorbars", "valType": "any"}, - {"editType": "colorbars", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='histogram2d.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + items=kwargs.pop('items', [{'editType': 'colorbars', 'valType': 'any'}, {'editType': 'colorbars', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickformatstop/_enabled.py index ed777afe61e..91550b5da99 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="histogram2d.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='histogram2d.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickformatstop/_name.py index 150140d81ab..91f985b1562 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="histogram2d.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='histogram2d.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickformatstop/_templateitemname.py index cd6bccc85a5..40c6c11e630 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="histogram2d.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='histogram2d.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickformatstop/_value.py index 5467103171d..82e05c6fc41 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="histogram2d.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='histogram2d.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/_font.py index 9e572b5c295..9acb502e676 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="histogram2d.colorbar.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='histogram2d.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/_side.py index 0fdd651d8f6..3fdcfb11825 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/_side.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="side", parent_name="histogram2d.colorbar.title", **kwargs - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='histogram2d.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/_text.py index bb38d04089d..0b363ff5a93 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="histogram2d.colorbar.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='histogram2d.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_color.py index adbf815045c..dd4749babab 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="histogram2d.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='histogram2d.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_family.py index 481e734cdfa..9d512e6da06 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="histogram2d.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='histogram2d.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_lineposition.py index 51c77bf485b..e8f122fb610 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="histogram2d.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='histogram2d.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_shadow.py index 9c02f88f5f7..461d1ca2a3c 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="histogram2d.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='histogram2d.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_size.py index f3b8f096aaa..5f3a1c1b58b 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="histogram2d.colorbar.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='histogram2d.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_style.py index 485df62c2d9..a65606fa373 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="histogram2d.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='histogram2d.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_textcase.py index aa8a93e54be..9ccf114cf81 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="histogram2d.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='histogram2d.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_variant.py index e43caa77b58..f7a79d033b9 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="histogram2d.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='histogram2d.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_weight.py index cd0be71d838..c5c374063c5 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="histogram2d.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='histogram2d.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_align.py index 0835eae2788..bb798bd4502 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_align.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="align", parent_name="histogram2d.hoverlabel", **kwargs - ): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='histogram2d.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_alignsrc.py index 620c000a03f..a70b77cbdce 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="histogram2d.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='histogram2d.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_bgcolor.py index 650fc7feed9..19943e05644 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="histogram2d.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='histogram2d.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_bgcolorsrc.py index ba1968736bc..0d10f4400da 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="histogram2d.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='histogram2d.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_bordercolor.py index 61a7bf35696..8d049bd20ae 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="histogram2d.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='histogram2d.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_bordercolorsrc.py index a50f207aaa4..48dc2fdd299 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="bordercolorsrc", - parent_name="histogram2d.hoverlabel", - **kwargs, - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='histogram2d.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_font.py index 3884343668f..437504e23d3 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_font.py @@ -1,88 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="histogram2d.hoverlabel", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='histogram2d.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_namelength.py index 594f84bdbae..3822ec5b6a5 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="histogram2d.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='histogram2d.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_namelengthsrc.py index 34a7377c217..025761a7ddc 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/_namelengthsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="namelengthsrc", - parent_name="histogram2d.hoverlabel", - **kwargs, - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='histogram2d.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_color.py index 949acd64349..e9e9a2f6f4b 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="histogram2d.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='histogram2d.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_colorsrc.py index a0445246e54..0723357fb07 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_colorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="colorsrc", - parent_name="histogram2d.hoverlabel.font", - **kwargs, - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='histogram2d.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_family.py index e6fbf3edd30..22ae130e9ab 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="histogram2d.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='histogram2d.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_familysrc.py index b46dbb18d07..6c0340984cd 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_familysrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="familysrc", - parent_name="histogram2d.hoverlabel.font", - **kwargs, - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='histogram2d.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_lineposition.py index d5034992c54..986ec805a28 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="histogram2d.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='histogram2d.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_linepositionsrc.py index 2770f28d019..449c2610613 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="histogram2d.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='histogram2d.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_shadow.py index 0367d9e6ef9..f1d1b5f812a 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="histogram2d.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='histogram2d.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_shadowsrc.py index e740248f253..552c6d765c8 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="shadowsrc", - parent_name="histogram2d.hoverlabel.font", - **kwargs, - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='histogram2d.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_size.py index e0a8fa850c1..887bbba4614 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="histogram2d.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='histogram2d.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_sizesrc.py index 8b0e39b5f87..cb437ab873b 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="histogram2d.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='histogram2d.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_style.py index 90547f94811..0785a04bad4 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="histogram2d.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='histogram2d.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_stylesrc.py index 965271a0646..957326e856f 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_stylesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="stylesrc", - parent_name="histogram2d.hoverlabel.font", - **kwargs, - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='histogram2d.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_textcase.py index aa12cfca738..de17c25137c 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_textcase.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="histogram2d.hoverlabel.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='histogram2d.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_textcasesrc.py index c21e171941b..0a64e116bed 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="histogram2d.hoverlabel.font", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='histogram2d.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_variant.py index 55113c70dad..786960f2c37 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="histogram2d.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='histogram2d.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_variantsrc.py index ba586fd334a..8028e80266c 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_variantsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="variantsrc", - parent_name="histogram2d.hoverlabel.font", - **kwargs, - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='histogram2d.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_weight.py index 304bc0c1017..77699ecad74 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="histogram2d.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='histogram2d.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_weightsrc.py index 914b417288c..d41d679880d 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/_weightsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="weightsrc", - parent_name="histogram2d.hoverlabel.font", - **kwargs, - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='histogram2d.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/_font.py index 0119c5dff94..ab1c7230700 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="histogram2d.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='histogram2d.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/_text.py index 3bcdcf9222d..3e61bb02604 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="histogram2d.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='histogram2d.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_color.py index 34facbaac62..8eecf25ff3d 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="histogram2d.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='histogram2d.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_family.py index 5ca4464998e..9c03509c29d 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="histogram2d.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='histogram2d.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_lineposition.py index 4f1a2196f30..23705d976a4 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="histogram2d.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='histogram2d.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_shadow.py index 10174afeb6f..af87c771728 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="histogram2d.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='histogram2d.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_size.py index 774cb6d5242..56cb810a299 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="histogram2d.legendgrouptitle.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='histogram2d.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_style.py index b9629b6daf4..478bcfd549f 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="histogram2d.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='histogram2d.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_textcase.py index c8f17735c85..9d5e09176d2 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="histogram2d.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='histogram2d.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_variant.py index 990ff2b9442..038db144ff6 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="histogram2d.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='histogram2d.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_weight.py index 73d70e10a2c..6fec32d711b 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/histogram2d/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="histogram2d.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='histogram2d.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/marker/__init__.py b/packages/python/plotly/plotly/validators/histogram2d/marker/__init__.py index 4ca11d98821..9247b192f9a 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2d/marker/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorsrc import ColorsrcValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._colorsrc.ColorsrcValidator", "._color.ColorValidator"] + __name__, + [], + ['._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2d/marker/_color.py b/packages/python/plotly/plotly/validators/histogram2d/marker/_color.py index 5912f433b1a..e3a74ae44aa 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/marker/_color.py +++ b/packages/python/plotly/plotly/validators/histogram2d/marker/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="color", parent_name="histogram2d.marker", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='color', + parent_name='histogram2d.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/marker/_colorsrc.py b/packages/python/plotly/plotly/validators/histogram2d/marker/_colorsrc.py index fce4f023579..f41f228da83 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/marker/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/histogram2d/marker/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="histogram2d.marker", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='histogram2d.marker', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/stream/__init__.py b/packages/python/plotly/plotly/validators/histogram2d/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2d/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2d/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/histogram2d/stream/_maxpoints.py index 6c0c9bbdb2c..ace3c9246f8 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/histogram2d/stream/_maxpoints.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxpoints", parent_name="histogram2d.stream", **kwargs - ): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='histogram2d.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/stream/_token.py b/packages/python/plotly/plotly/validators/histogram2d/stream/_token.py index 122e606bdd3..7264566d2f3 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/stream/_token.py +++ b/packages/python/plotly/plotly/validators/histogram2d/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="histogram2d.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='histogram2d.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/textfont/__init__.py b/packages/python/plotly/plotly/validators/histogram2d/textfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2d/textfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2d/textfont/_color.py b/packages/python/plotly/plotly/validators/histogram2d/textfont/_color.py index c2aadc151c3..74b856a2a58 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/histogram2d/textfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="histogram2d.textfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='histogram2d.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/textfont/_family.py b/packages/python/plotly/plotly/validators/histogram2d/textfont/_family.py index 9bb8d6ec15d..2f469349da0 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/textfont/_family.py +++ b/packages/python/plotly/plotly/validators/histogram2d/textfont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="histogram2d.textfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='histogram2d.textfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/textfont/_lineposition.py b/packages/python/plotly/plotly/validators/histogram2d/textfont/_lineposition.py index a0e31c36085..369fa820644 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/textfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/histogram2d/textfont/_lineposition.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="histogram2d.textfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='histogram2d.textfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/textfont/_shadow.py b/packages/python/plotly/plotly/validators/histogram2d/textfont/_shadow.py index 52ccc003994..1ef895c7499 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/textfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/histogram2d/textfont/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="histogram2d.textfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='histogram2d.textfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/textfont/_size.py b/packages/python/plotly/plotly/validators/histogram2d/textfont/_size.py index 0de77110eed..9e5fb0aad61 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/textfont/_size.py +++ b/packages/python/plotly/plotly/validators/histogram2d/textfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="histogram2d.textfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='histogram2d.textfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/textfont/_style.py b/packages/python/plotly/plotly/validators/histogram2d/textfont/_style.py index 346b6e65dfb..f67a9b06486 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/textfont/_style.py +++ b/packages/python/plotly/plotly/validators/histogram2d/textfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="histogram2d.textfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='histogram2d.textfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/textfont/_textcase.py b/packages/python/plotly/plotly/validators/histogram2d/textfont/_textcase.py index 50a8c7ff98c..77f1d1f8e39 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/textfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/histogram2d/textfont/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="histogram2d.textfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='histogram2d.textfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/textfont/_variant.py b/packages/python/plotly/plotly/validators/histogram2d/textfont/_variant.py index 77ccf67cf6a..dbbba7c9966 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/textfont/_variant.py +++ b/packages/python/plotly/plotly/validators/histogram2d/textfont/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="histogram2d.textfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='histogram2d.textfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/textfont/_weight.py b/packages/python/plotly/plotly/validators/histogram2d/textfont/_weight.py index 0a0d42d59dd..06a0b1b9aa9 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/textfont/_weight.py +++ b/packages/python/plotly/plotly/validators/histogram2d/textfont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="histogram2d.textfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='histogram2d.textfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/xbins/__init__.py b/packages/python/plotly/plotly/validators/histogram2d/xbins/__init__.py index b7d1eaa9fcb..78224c18773 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/xbins/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2d/xbins/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._start import StartValidator from ._size import SizeValidator from ._end import EndValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._start.StartValidator", "._size.SizeValidator", "._end.EndValidator"], + ['._start.StartValidator', '._size.SizeValidator', '._end.EndValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2d/xbins/_end.py b/packages/python/plotly/plotly/validators/histogram2d/xbins/_end.py index 3605572890f..ea9f35944fc 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/xbins/_end.py +++ b/packages/python/plotly/plotly/validators/histogram2d/xbins/_end.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class EndValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="end", parent_name="histogram2d.xbins", **kwargs): - super(EndValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EndValidator(_bv.AnyValidator): + def __init__(self, plotly_name='end', + parent_name='histogram2d.xbins', + **kwargs): + super(EndValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/xbins/_size.py b/packages/python/plotly/plotly/validators/histogram2d/xbins/_size.py index f6cbc598392..e44c176a534 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/xbins/_size.py +++ b/packages/python/plotly/plotly/validators/histogram2d/xbins/_size.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="size", parent_name="histogram2d.xbins", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.AnyValidator): + def __init__(self, plotly_name='size', + parent_name='histogram2d.xbins', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/xbins/_start.py b/packages/python/plotly/plotly/validators/histogram2d/xbins/_start.py index f28c3c4400d..a875ad2b448 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/xbins/_start.py +++ b/packages/python/plotly/plotly/validators/histogram2d/xbins/_start.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class StartValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="start", parent_name="histogram2d.xbins", **kwargs): - super(StartValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StartValidator(_bv.AnyValidator): + def __init__(self, plotly_name='start', + parent_name='histogram2d.xbins', + **kwargs): + super(StartValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/ybins/__init__.py b/packages/python/plotly/plotly/validators/histogram2d/ybins/__init__.py index b7d1eaa9fcb..78224c18773 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/ybins/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2d/ybins/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._start import StartValidator from ._size import SizeValidator from ._end import EndValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._start.StartValidator", "._size.SizeValidator", "._end.EndValidator"], + ['._start.StartValidator', '._size.SizeValidator', '._end.EndValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2d/ybins/_end.py b/packages/python/plotly/plotly/validators/histogram2d/ybins/_end.py index 5cdbc09981a..c664a542f9e 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/ybins/_end.py +++ b/packages/python/plotly/plotly/validators/histogram2d/ybins/_end.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class EndValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="end", parent_name="histogram2d.ybins", **kwargs): - super(EndValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EndValidator(_bv.AnyValidator): + def __init__(self, plotly_name='end', + parent_name='histogram2d.ybins', + **kwargs): + super(EndValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/ybins/_size.py b/packages/python/plotly/plotly/validators/histogram2d/ybins/_size.py index a3dcf7de19a..da2f5151480 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/ybins/_size.py +++ b/packages/python/plotly/plotly/validators/histogram2d/ybins/_size.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="size", parent_name="histogram2d.ybins", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.AnyValidator): + def __init__(self, plotly_name='size', + parent_name='histogram2d.ybins', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2d/ybins/_start.py b/packages/python/plotly/plotly/validators/histogram2d/ybins/_start.py index 8d89ed43b92..7cc5e772060 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/ybins/_start.py +++ b/packages/python/plotly/plotly/validators/histogram2d/ybins/_start.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class StartValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="start", parent_name="histogram2d.ybins", **kwargs): - super(StartValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StartValidator(_bv.AnyValidator): + def __init__(self, plotly_name='start', + parent_name='histogram2d.ybins', + **kwargs): + super(StartValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/__init__.py index 7d1e7b3dee2..218c46e8fe2 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zsrc import ZsrcValidator from ._zmin import ZminValidator @@ -68,74 +67,10 @@ from ._autobinx import AutobinxValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zsrc.ZsrcValidator", - "._zmin.ZminValidator", - "._zmid.ZmidValidator", - "._zmax.ZmaxValidator", - "._zhoverformat.ZhoverformatValidator", - "._zauto.ZautoValidator", - "._z.ZValidator", - "._ysrc.YsrcValidator", - "._yhoverformat.YhoverformatValidator", - "._ycalendar.YcalendarValidator", - "._ybins.YbinsValidator", - "._ybingroup.YbingroupValidator", - "._yaxis.YaxisValidator", - "._y.YValidator", - "._xsrc.XsrcValidator", - "._xhoverformat.XhoverformatValidator", - "._xcalendar.XcalendarValidator", - "._xbins.XbinsValidator", - "._xbingroup.XbingroupValidator", - "._xaxis.XaxisValidator", - "._x.XValidator", - "._visible.VisibleValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._texttemplate.TexttemplateValidator", - "._textfont.TextfontValidator", - "._stream.StreamValidator", - "._showscale.ShowscaleValidator", - "._showlegend.ShowlegendValidator", - "._reversescale.ReversescaleValidator", - "._opacity.OpacityValidator", - "._ncontours.NcontoursValidator", - "._nbinsy.NbinsyValidator", - "._nbinsx.NbinsxValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._marker.MarkerValidator", - "._line.LineValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._histnorm.HistnormValidator", - "._histfunc.HistfuncValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._contours.ContoursValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._bingroup.BingroupValidator", - "._autocontour.AutocontourValidator", - "._autocolorscale.AutocolorscaleValidator", - "._autobiny.AutobinyValidator", - "._autobinx.AutobinxValidator", - ], + ['._zsrc.ZsrcValidator', '._zmin.ZminValidator', '._zmid.ZmidValidator', '._zmax.ZmaxValidator', '._zhoverformat.ZhoverformatValidator', '._zauto.ZautoValidator', '._z.ZValidator', '._ysrc.YsrcValidator', '._yhoverformat.YhoverformatValidator', '._ycalendar.YcalendarValidator', '._ybins.YbinsValidator', '._ybingroup.YbingroupValidator', '._yaxis.YaxisValidator', '._y.YValidator', '._xsrc.XsrcValidator', '._xhoverformat.XhoverformatValidator', '._xcalendar.XcalendarValidator', '._xbins.XbinsValidator', '._xbingroup.XbingroupValidator', '._xaxis.XaxisValidator', '._x.XValidator', '._visible.VisibleValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._texttemplate.TexttemplateValidator', '._textfont.TextfontValidator', '._stream.StreamValidator', '._showscale.ShowscaleValidator', '._showlegend.ShowlegendValidator', '._reversescale.ReversescaleValidator', '._opacity.OpacityValidator', '._ncontours.NcontoursValidator', '._nbinsy.NbinsyValidator', '._nbinsx.NbinsxValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._marker.MarkerValidator', '._line.LineValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._histnorm.HistnormValidator', '._histfunc.HistfuncValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._contours.ContoursValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._bingroup.BingroupValidator', '._autocontour.AutocontourValidator', '._autocolorscale.AutocolorscaleValidator', '._autobiny.AutobinyValidator', '._autobinx.AutobinxValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_autobinx.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_autobinx.py index 3eb7e8c70c2..dacb6d7cc2f 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_autobinx.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_autobinx.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AutobinxValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autobinx", parent_name="histogram2dcontour", **kwargs - ): - super(AutobinxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutobinxValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autobinx', + parent_name='histogram2dcontour', + **kwargs): + super(AutobinxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_autobiny.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_autobiny.py index 0cd0b782c81..2443bafde5e 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_autobiny.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_autobiny.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AutobinyValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autobiny", parent_name="histogram2dcontour", **kwargs - ): - super(AutobinyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutobinyValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autobiny', + parent_name='histogram2dcontour', + **kwargs): + super(AutobinyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_autocolorscale.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_autocolorscale.py index 49797c98387..99d53b98c7d 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="histogram2dcontour", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='histogram2dcontour', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_autocontour.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_autocontour.py index 7ce84ff074b..5cb232fb5f1 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_autocontour.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_autocontour.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocontourValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocontour", parent_name="histogram2dcontour", **kwargs - ): - super(AutocontourValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocontourValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocontour', + parent_name='histogram2dcontour', + **kwargs): + super(AutocontourValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_bingroup.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_bingroup.py index a4fc8cdd40f..b62b29a31ce 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_bingroup.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_bingroup.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BingroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="bingroup", parent_name="histogram2dcontour", **kwargs - ): - super(BingroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BingroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='bingroup', + parent_name='histogram2dcontour', + **kwargs): + super(BingroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_coloraxis.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_coloraxis.py index 584ea1bf72f..1c19cc2576a 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_coloraxis.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name="coloraxis", parent_name="histogram2dcontour", **kwargs - ): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='histogram2dcontour', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_colorbar.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_colorbar.py index 06cb9d61f0a..8539eacc0bb 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_colorbar.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_colorbar.py @@ -1,282 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="colorbar", parent_name="histogram2dcontour", **kwargs - ): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.histogr - am2dcontour.colorbar.Tickformatstop` instances - or dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.histogram2dcontour.colorbar.tickformatstopdef - aults), sets the default property values to use - for elements of - histogram2dcontour.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.histogram2dcontour - .colorbar.Title` instance or dict with - compatible properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='histogram2dcontour', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_colorscale.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_colorscale.py index a8409d44153..98ac13e9a8f 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_colorscale.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="histogram2dcontour", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='histogram2dcontour', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_contours.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_contours.py index 1182263d569..2de5672cdb8 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_contours.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_contours.py @@ -1,81 +1,15 @@ -import _plotly_utils.basevalidators -class ContoursValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="contours", parent_name="histogram2dcontour", **kwargs - ): - super(ContoursValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Contours"), - data_docs=kwargs.pop( - "data_docs", - """ - coloring - Determines the coloring method showing the - contour values. If "fill", coloring is done - evenly between each contour level If "heatmap", - a heatmap gradient coloring is applied between - each contour level. If "lines", coloring is - done on the contour lines. If "none", no - coloring is applied on this trace. - end - Sets the end contour level value. Must be more - than `contours.start` - labelfont - Sets the font used for labeling the contour - levels. The default color comes from the lines, - if shown. The default family and size come from - `layout.font`. - labelformat - Sets the contour label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. - operation - Sets the constraint operation. "=" keeps - regions equal to `value` "<" and "<=" keep - regions less than `value` ">" and ">=" keep - regions greater than `value` "[]", "()", "[)", - and "(]" keep regions inside `value[0]` to - `value[1]` "][", ")(", "](", ")[" keep regions - outside `value[0]` to value[1]` Open vs. closed - intervals make no difference to constraint - display, but all versions are allowed for - consistency with filter transforms. - showlabels - Determines whether to label the contour lines - with their values. - showlines - Determines whether or not the contour lines are - drawn. Has an effect only if - `contours.coloring` is set to "fill". - size - Sets the step between each contour level. Must - be positive. - start - Sets the starting contour level value. Must be - less than `contours.end` - type - If `levels`, the data is represented as a - contour plot with multiple levels displayed. If - `constraint`, the data is represented as - constraints with the invalid region shaded as - specified by the `operation` and `value` - parameters. - value - Sets the value or values of the constraint - boundary. When `operation` is set to one of the - comparison values (=,<,>=,>,<=) "value" is - expected to be a number. When `operation` is - set to one of the interval values - ([],(),[),(],][,)(,](,)[) "value" is expected - to be an array of two numbers where the first - is the lower bound and the second is the upper - bound. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ContoursValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='contours', + parent_name='histogram2dcontour', + **kwargs): + super(ContoursValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Contours'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_customdata.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_customdata.py index 4960619ec50..d633d504204 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_customdata.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_customdata.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="customdata", parent_name="histogram2dcontour", **kwargs - ): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='histogram2dcontour', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_customdatasrc.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_customdatasrc.py index 065f9e3d260..1cc2924f7db 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_customdatasrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="customdatasrc", parent_name="histogram2dcontour", **kwargs - ): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='histogram2dcontour', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_histfunc.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_histfunc.py index 3d75e617db8..d357b4db07a 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_histfunc.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_histfunc.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class HistfuncValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="histfunc", parent_name="histogram2dcontour", **kwargs - ): - super(HistfuncValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["count", "sum", "avg", "min", "max"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HistfuncValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='histfunc', + parent_name='histogram2dcontour', + **kwargs): + super(HistfuncValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['count', 'sum', 'avg', 'min', 'max']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_histnorm.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_histnorm.py index 4df58949452..2bbe24e5239 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_histnorm.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_histnorm.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class HistnormValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="histnorm", parent_name="histogram2dcontour", **kwargs - ): - super(HistnormValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - ["", "percent", "probability", "density", "probability density"], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HistnormValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='histnorm', + parent_name='histogram2dcontour', + **kwargs): + super(HistnormValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['', 'percent', 'probability', 'density', 'probability density']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_hoverinfo.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_hoverinfo.py index ff85609cde2..c24674ef559 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_hoverinfo.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="hoverinfo", parent_name="histogram2dcontour", **kwargs - ): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='histogram2dcontour', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_hoverinfosrc.py index 1fcc9b7ec50..c38b6dd56f2 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_hoverinfosrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hoverinfosrc", parent_name="histogram2dcontour", **kwargs - ): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='histogram2dcontour', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_hoverlabel.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_hoverlabel.py index fb82b0af8d5..8541d27b933 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_hoverlabel.py @@ -1,53 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="hoverlabel", parent_name="histogram2dcontour", **kwargs - ): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='histogram2dcontour', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_hovertemplate.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_hovertemplate.py index 15af4c56a9c..599c1fda045 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_hovertemplate.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="hovertemplate", parent_name="histogram2dcontour", **kwargs - ): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='histogram2dcontour', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_hovertemplatesrc.py index 9c734b0c6a3..fb1d4b3c8b2 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_hovertemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertemplatesrc", parent_name="histogram2dcontour", **kwargs - ): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='histogram2dcontour', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_ids.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_ids.py index 23e73984eba..b829cf96b95 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_ids.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="histogram2dcontour", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='histogram2dcontour', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_idssrc.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_idssrc.py index bf8aa528764..d45b823e87e 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_idssrc.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_idssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="idssrc", parent_name="histogram2dcontour", **kwargs - ): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='histogram2dcontour', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_legend.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_legend.py index 1e1f9f1a925..c310c65e4f8 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_legend.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_legend.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name="legend", parent_name="histogram2dcontour", **kwargs - ): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='histogram2dcontour', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_legendgroup.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_legendgroup.py index 63f68f7cacb..67cb0331cbd 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_legendgroup.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="legendgroup", parent_name="histogram2dcontour", **kwargs - ): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='histogram2dcontour', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_legendgrouptitle.py index 81c5dfe8baf..1dbee972c7e 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="histogram2dcontour", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='histogram2dcontour', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_legendrank.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_legendrank.py index 801f392245d..29b838a346a 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_legendrank.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_legendrank.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="legendrank", parent_name="histogram2dcontour", **kwargs - ): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='histogram2dcontour', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_legendwidth.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_legendwidth.py index 0b2bf6d04ff..a150b38733c 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_legendwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="legendwidth", parent_name="histogram2dcontour", **kwargs - ): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='histogram2dcontour', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_line.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_line.py index ad9153df481..ee69838d92e 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_line.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_line.py @@ -1,30 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="histogram2dcontour", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the color of the contour level. Has no - effect if `contours.coloring` is set to - "lines". - dash - 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"). - smoothing - Sets the amount of smoothing for the contour - lines, where 0 corresponds to no smoothing. - width - Sets the contour line width in (in px) -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='histogram2dcontour', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_marker.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_marker.py index 7c9d8312ce8..37f84f654e6 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_marker.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_marker.py @@ -1,23 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="histogram2dcontour", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the aggregation data. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='histogram2dcontour', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_meta.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_meta.py index c938e355c4d..b4379ba068c 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_meta.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="histogram2dcontour", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='histogram2dcontour', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_metasrc.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_metasrc.py index 88747de24f2..0f8e8b2d770 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_metasrc.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_metasrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="metasrc", parent_name="histogram2dcontour", **kwargs - ): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='histogram2dcontour', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_name.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_name.py index 0398fb9a97d..5989f86c211 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_name.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="histogram2dcontour", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='histogram2dcontour', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_nbinsx.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_nbinsx.py index 7543e2e3afb..f471fa020d7 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_nbinsx.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_nbinsx.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NbinsxValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nbinsx", parent_name="histogram2dcontour", **kwargs - ): - super(NbinsxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NbinsxValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nbinsx', + parent_name='histogram2dcontour', + **kwargs): + super(NbinsxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_nbinsy.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_nbinsy.py index 4a75c91929e..dee365ac3e7 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_nbinsy.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_nbinsy.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NbinsyValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nbinsy", parent_name="histogram2dcontour", **kwargs - ): - super(NbinsyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NbinsyValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nbinsy', + parent_name='histogram2dcontour', + **kwargs): + super(NbinsyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_ncontours.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_ncontours.py index c2fcbcb96fc..38ffb91a69a 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_ncontours.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_ncontours.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NcontoursValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="ncontours", parent_name="histogram2dcontour", **kwargs - ): - super(NcontoursValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NcontoursValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ncontours', + parent_name='histogram2dcontour', + **kwargs): + super(NcontoursValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_opacity.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_opacity.py index 6fbda555b73..3d945db29fb 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_opacity.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_opacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="histogram2dcontour", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='histogram2dcontour', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_reversescale.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_reversescale.py index 655af2a40cf..43ceed52356 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_reversescale.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="histogram2dcontour", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='histogram2dcontour', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_showlegend.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_showlegend.py index 069834617d3..b63cac2b383 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_showlegend.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_showlegend.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showlegend", parent_name="histogram2dcontour", **kwargs - ): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='histogram2dcontour', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_showscale.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_showscale.py index 2293e698c15..08f47597f6b 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_showscale.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_showscale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showscale", parent_name="histogram2dcontour", **kwargs - ): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='histogram2dcontour', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_stream.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_stream.py index b2dd891e9d8..2d4a42a71d8 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_stream.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_stream.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="stream", parent_name="histogram2dcontour", **kwargs - ): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='histogram2dcontour', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_textfont.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_textfont.py index bce613f760e..8d32a4f6db1 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_textfont.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_textfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="textfont", parent_name="histogram2dcontour", **kwargs - ): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='histogram2dcontour', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_texttemplate.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_texttemplate.py index 08ef0f1ae61..3bdbb35f2a2 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_texttemplate.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_texttemplate.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="texttemplate", parent_name="histogram2dcontour", **kwargs - ): - super(TexttemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='texttemplate', + parent_name='histogram2dcontour', + **kwargs): + super(TexttemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_uid.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_uid.py index 495927bbdb6..1962d92fca9 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_uid.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="histogram2dcontour", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='histogram2dcontour', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_uirevision.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_uirevision.py index 670b293b952..fa4718e886b 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_uirevision.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_uirevision.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="uirevision", parent_name="histogram2dcontour", **kwargs - ): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='histogram2dcontour', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_visible.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_visible.py index d90e6689b08..ee6b6cb5b92 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_visible.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_visible.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="visible", parent_name="histogram2dcontour", **kwargs - ): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='histogram2dcontour', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_x.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_x.py index af2872c3fb9..4f6e3e6933c 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_x.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="x", parent_name="histogram2dcontour", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='x', + parent_name='histogram2dcontour', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_xaxis.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_xaxis.py index f56b2a51f82..69557a00d2e 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_xaxis.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_xaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="xaxis", parent_name="histogram2dcontour", **kwargs): - super(XaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "x"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='xaxis', + parent_name='histogram2dcontour', + **kwargs): + super(XaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'x'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_xbingroup.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_xbingroup.py index 94c501db714..c72e009119b 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_xbingroup.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_xbingroup.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class XbingroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="xbingroup", parent_name="histogram2dcontour", **kwargs - ): - super(XbingroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XbingroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='xbingroup', + parent_name='histogram2dcontour', + **kwargs): + super(XbingroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_xbins.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_xbins.py index 7745097a821..394a46b490f 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_xbins.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_xbins.py @@ -1,50 +1,15 @@ -import _plotly_utils.basevalidators -class XbinsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="xbins", parent_name="histogram2dcontour", **kwargs): - super(XbinsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "XBins"), - data_docs=kwargs.pop( - "data_docs", - """ - end - Sets the end value for the x axis bins. The - last bin may not end exactly at this value, we - increment the bin edge by `size` from `start` - until we reach or exceed `end`. Defaults to the - maximum data value. Like `start`, for dates use - a date string, and for category data `end` is - based on the category serial numbers. - size - Sets the size of each x axis bin. Default - behavior: If `nbinsx` is 0 or omitted, we - choose a nice round bin size such that the - number of bins is about the same as the typical - number of samples in each bin. If `nbinsx` is - provided, we choose a nice round bin size - giving no more than that many bins. For date - data, use milliseconds or "M" for months, as - in `axis.dtick`. For category data, the number - of categories to bin together (always defaults - to 1). - start - Sets the starting value for the x axis bins. - Defaults to the minimum data value, shifted - down if necessary to make nice round values and - to remove ambiguous bin edges. For example, if - most of the data is integers we shift the bin - edges 0.5 down, so a `size` of 5 would have a - default `start` of -0.5, so it is clear that - 0-4 are in the first bin, 5-9 in the second, - but continuous data gets a start of 0 and bins - [0,5), [5,10) etc. Dates behave similarly, and - `start` should be a date string. For category - data, `start` is based on the category serial - numbers, and defaults to -0.5. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XbinsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='xbins', + parent_name='histogram2dcontour', + **kwargs): + super(XbinsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'XBins'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_xcalendar.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_xcalendar.py index 5e273c2bf12..82469b217ec 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_xcalendar.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_xcalendar.py @@ -1,34 +1,14 @@ -import _plotly_utils.basevalidators -class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xcalendar", parent_name="histogram2dcontour", **kwargs - ): - super(XcalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XcalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xcalendar', + parent_name='histogram2dcontour', + **kwargs): + super(XcalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_xhoverformat.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_xhoverformat.py index 2cb01c0ae3b..970f58de5cb 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_xhoverformat.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_xhoverformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="xhoverformat", parent_name="histogram2dcontour", **kwargs - ): - super(XhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='xhoverformat', + parent_name='histogram2dcontour', + **kwargs): + super(XhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_xsrc.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_xsrc.py index 806ffccc406..a545f45d038 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_xsrc.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_xsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="xsrc", parent_name="histogram2dcontour", **kwargs): - super(XsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='xsrc', + parent_name='histogram2dcontour', + **kwargs): + super(XsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_y.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_y.py index 50b838aa1a4..28414608126 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_y.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="y", parent_name="histogram2dcontour", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='y', + parent_name='histogram2dcontour', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_yaxis.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_yaxis.py index 7dd31601411..9a2d25889a7 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_yaxis.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_yaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="yaxis", parent_name="histogram2dcontour", **kwargs): - super(YaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "y"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='yaxis', + parent_name='histogram2dcontour', + **kwargs): + super(YaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'y'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_ybingroup.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_ybingroup.py index fed45d3b542..18d78a94257 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_ybingroup.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_ybingroup.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class YbingroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ybingroup", parent_name="histogram2dcontour", **kwargs - ): - super(YbingroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YbingroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='ybingroup', + parent_name='histogram2dcontour', + **kwargs): + super(YbingroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_ybins.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_ybins.py index 1a02fe93c75..f3a2878ddc3 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_ybins.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_ybins.py @@ -1,50 +1,15 @@ -import _plotly_utils.basevalidators -class YbinsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="ybins", parent_name="histogram2dcontour", **kwargs): - super(YbinsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "YBins"), - data_docs=kwargs.pop( - "data_docs", - """ - end - Sets the end value for the y axis bins. The - last bin may not end exactly at this value, we - increment the bin edge by `size` from `start` - until we reach or exceed `end`. Defaults to the - maximum data value. Like `start`, for dates use - a date string, and for category data `end` is - based on the category serial numbers. - size - Sets the size of each y axis bin. Default - behavior: If `nbinsy` is 0 or omitted, we - choose a nice round bin size such that the - number of bins is about the same as the typical - number of samples in each bin. If `nbinsy` is - provided, we choose a nice round bin size - giving no more than that many bins. For date - data, use milliseconds or "M" for months, as - in `axis.dtick`. For category data, the number - of categories to bin together (always defaults - to 1). - start - Sets the starting value for the y axis bins. - Defaults to the minimum data value, shifted - down if necessary to make nice round values and - to remove ambiguous bin edges. For example, if - most of the data is integers we shift the bin - edges 0.5 down, so a `size` of 5 would have a - default `start` of -0.5, so it is clear that - 0-4 are in the first bin, 5-9 in the second, - but continuous data gets a start of 0 and bins - [0,5), [5,10) etc. Dates behave similarly, and - `start` should be a date string. For category - data, `start` is based on the category serial - numbers, and defaults to -0.5. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YbinsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='ybins', + parent_name='histogram2dcontour', + **kwargs): + super(YbinsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'YBins'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_ycalendar.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_ycalendar.py index 9996d5695ad..c4aa844b9e9 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_ycalendar.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_ycalendar.py @@ -1,34 +1,14 @@ -import _plotly_utils.basevalidators -class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ycalendar", parent_name="histogram2dcontour", **kwargs - ): - super(YcalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YcalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ycalendar', + parent_name='histogram2dcontour', + **kwargs): + super(YcalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_yhoverformat.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_yhoverformat.py index 67112495ab6..a5fc386acd1 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_yhoverformat.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_yhoverformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="yhoverformat", parent_name="histogram2dcontour", **kwargs - ): - super(YhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='yhoverformat', + parent_name='histogram2dcontour', + **kwargs): + super(YhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_ysrc.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_ysrc.py index 9fcdc8fae19..5ef81082136 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_ysrc.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_ysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="ysrc", parent_name="histogram2dcontour", **kwargs): - super(YsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ysrc', + parent_name='histogram2dcontour', + **kwargs): + super(YsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_z.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_z.py index 3a41d18a499..d5a941c9756 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_z.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_z.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="z", parent_name="histogram2dcontour", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='z', + parent_name='histogram2dcontour', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_zauto.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_zauto.py index 8fda6643944..747bb93ae7e 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_zauto.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_zauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="zauto", parent_name="histogram2dcontour", **kwargs): - super(ZautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='zauto', + parent_name='histogram2dcontour', + **kwargs): + super(ZautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_zhoverformat.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_zhoverformat.py index 6b3d8adfc61..cc8054fd75f 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_zhoverformat.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_zhoverformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ZhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="zhoverformat", parent_name="histogram2dcontour", **kwargs - ): - super(ZhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='zhoverformat', + parent_name='histogram2dcontour', + **kwargs): + super(ZhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_zmax.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_zmax.py index 79c67a8e79a..13a665e8f10 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_zmax.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_zmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmax", parent_name="histogram2dcontour", **kwargs): - super(ZmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"zauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmax', + parent_name='histogram2dcontour', + **kwargs): + super(ZmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'zauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_zmid.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_zmid.py index a056af3ae08..be10e2cba1c 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_zmid.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_zmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmid", parent_name="histogram2dcontour", **kwargs): - super(ZmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmid', + parent_name='histogram2dcontour', + **kwargs): + super(ZmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_zmin.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_zmin.py index 2a3a2ce81de..cd67e618a34 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_zmin.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_zmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zmin", parent_name="histogram2dcontour", **kwargs): - super(ZminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"zauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zmin', + parent_name='histogram2dcontour', + **kwargs): + super(ZminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'zauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/_zsrc.py b/packages/python/plotly/plotly/validators/histogram2dcontour/_zsrc.py index d1855c72d59..edad51eda65 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/_zsrc.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/_zsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="zsrc", parent_name="histogram2dcontour", **kwargs): - super(ZsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='zsrc', + parent_name='histogram2dcontour', + **kwargs): + super(ZsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_bgcolor.py index 95d49ff775b..5bf4af0e2fc 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="histogram2dcontour.colorbar", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_bordercolor.py index 50b4cf97c5a..5f7f868beaa 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_bordercolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bordercolor", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_borderwidth.py index b54d0a8058e..cde4f2f037a 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_borderwidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="borderwidth", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_dtick.py index 2c610b27d93..447e3b0ec26 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="histogram2dcontour.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_exponentformat.py index c4a96a3bd5e..47bdbf093ab 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_exponentformat.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="exponentformat", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_labelalias.py index aa442c77b87..42f77ec47c8 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_labelalias.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="labelalias", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_len.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_len.py index 3c4123e283f..4f23eedc05f 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_len.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="len", parent_name="histogram2dcontour.colorbar", **kwargs - ): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_lenmode.py index 6c659632a27..3613d137d4e 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_lenmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="lenmode", parent_name="histogram2dcontour.colorbar", **kwargs - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_minexponent.py index 0a5c7941491..2fec3227259 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_minexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="minexponent", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_nticks.py index fce86cc37d3..62f03a09dc0 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="histogram2dcontour.colorbar", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_orientation.py index 8ef0b34cb75..dc966e99b85 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_orientation.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="orientation", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_outlinecolor.py index b96ba565551..c476028bf44 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_outlinecolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="outlinecolor", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_outlinewidth.py index 1985e080cc8..f4406cb52b0 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_outlinewidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="outlinewidth", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_separatethousands.py index 7875e0744be..30fe41c569d 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_showexponent.py index e431e525bec..b3a7daaf13e 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_showexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showexponent", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_showticklabels.py index ee049cbd197..ece3107014b 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_showtickprefix.py index e5cb678ef7b..aaf28025b77 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_showticksuffix.py index 11d6953649b..e89b9a4b20b 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_thickness.py index e6adb4c325b..416a829d568 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_thickness.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="thickness", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_thicknessmode.py index 04ab3199b90..531f336bd77 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_thicknessmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="thicknessmode", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tick0.py index bdd5b52e526..5cdb6c345e6 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="histogram2dcontour.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickangle.py index f30a39bf775..5968617a2b9 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickangle.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name="tickangle", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickcolor.py index feb05b266cd..a7247f17803 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickcolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="tickcolor", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickfont.py index 2b3a7aaebe9..2e7918947ac 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickfont.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickfont", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickformat.py index b69fdb9751d..13f1d32e25d 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickformat.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickformat", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickformatstopdefaults.py index d3405f6f90a..b5ba0d247a9 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickformatstops.py index 2079a1c3876..108018323e5 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticklabeloverflow.py index df0268c9e99..247229587f4 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticklabelposition.py index 5364a62ae3b..3129f445797 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticklabelstep.py index 26fcd638726..39879a22820 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticklabelstep.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="ticklabelstep", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticklen.py index d816084264f..a18f36045f1 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="histogram2dcontour.colorbar", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickmode.py index 8c306215338..d7a32ef38fd 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickmode.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="tickmode", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickprefix.py index c56a8cd5264..1a590e4b440 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickprefix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickprefix", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticks.py index 309185d282b..3278ae661ac 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="histogram2dcontour.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticksuffix.py index d3ae6c516f5..063c28c0e0c 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticksuffix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="ticksuffix", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticktext.py index b908a9493dc..71a01fd76f4 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticktext.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name="ticktext", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticktextsrc.py index 22f635e7582..4021963a508 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ticktextsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="ticktextsrc", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickvals.py index f76bffc76d7..20d0f06ad37 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickvals.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name="tickvals", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickvalssrc.py index 2c4c5e6567b..aa165135a9b 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickvalssrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="tickvalssrc", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickwidth.py index 4b4ee7ba937..98e3ec1ff40 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_tickwidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="tickwidth", - parent_name="histogram2dcontour.colorbar", - **kwargs, - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_title.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_title.py index 949901c43d1..595d2513ddf 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="histogram2dcontour.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_x.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_x.py index 32739a520ff..5e2cc8aae4e 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_x.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="x", parent_name="histogram2dcontour.colorbar", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_xanchor.py index 58c289d67d1..13450776125 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="histogram2dcontour.colorbar", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_xpad.py index 7fd8e1824d3..db061d65535 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_xpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="xpad", parent_name="histogram2dcontour.colorbar", **kwargs - ): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_xref.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_xref.py index 30126ea31fb..a6b0478770c 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xref", parent_name="histogram2dcontour.colorbar", **kwargs - ): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_y.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_y.py index 928b76151e1..ef409a024b1 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_y.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="y", parent_name="histogram2dcontour.colorbar", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_yanchor.py index 930aa5f5f31..1eb70276353 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="histogram2dcontour.colorbar", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ypad.py index e4e589ebf4e..66fd42d73b9 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_ypad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ypad", parent_name="histogram2dcontour.colorbar", **kwargs - ): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_yref.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_yref.py index bbba41592f4..c88daeadb8f 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yref", parent_name="histogram2dcontour.colorbar", **kwargs - ): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='histogram2dcontour.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_color.py index c2d3585d73e..b95142cefe4 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="histogram2dcontour.colorbar.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='histogram2dcontour.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_family.py index 568cd364bd4..cd9da672cbc 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="histogram2dcontour.colorbar.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='histogram2dcontour.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_lineposition.py index 073e88744e9..38bbda25b12 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="histogram2dcontour.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='histogram2dcontour.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_shadow.py index a53dcfd6015..7c0acc97040 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="histogram2dcontour.colorbar.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='histogram2dcontour.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_size.py index c62b92684db..3de95d10156 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="histogram2dcontour.colorbar.tickfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='histogram2dcontour.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_style.py index c182f9a94c1..8aa2ea65021 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="histogram2dcontour.colorbar.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='histogram2dcontour.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_textcase.py index 878250f7c4e..5635960dd1d 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="histogram2dcontour.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='histogram2dcontour.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_variant.py index 083e546ea69..57a83a7182b 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="histogram2dcontour.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='histogram2dcontour.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_weight.py index d02eeabc7f5..f35e5c55bb0 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="histogram2dcontour.colorbar.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='histogram2dcontour.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_dtickrange.py index 1171b8d271f..1ef94839f9d 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="histogram2dcontour.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - items=kwargs.pop( - "items", - [ - {"editType": "colorbars", "valType": "any"}, - {"editType": "colorbars", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='histogram2dcontour.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + items=kwargs.pop('items', [{'editType': 'colorbars', 'valType': 'any'}, {'editType': 'colorbars', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_enabled.py index 744eb789c39..5870c36f1f5 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="histogram2dcontour.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='histogram2dcontour.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_name.py index ca213087432..4f78dd8bf89 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="histogram2dcontour.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='histogram2dcontour.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_templateitemname.py index 7ef9776ffc8..1f25751acf5 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="histogram2dcontour.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='histogram2dcontour.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_value.py index 17f8d151953..1e830993d97 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="histogram2dcontour.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='histogram2dcontour.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/_font.py index 7d25603e285..a067b2339e1 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/_font.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="font", - parent_name="histogram2dcontour.colorbar.title", - **kwargs, - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='histogram2dcontour.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/_side.py index 0348d814c6d..b8f0c015125 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/_side.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="side", - parent_name="histogram2dcontour.colorbar.title", - **kwargs, - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='histogram2dcontour.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/_text.py index 4d26f7909ff..2dfb29add4f 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/_text.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="text", - parent_name="histogram2dcontour.colorbar.title", - **kwargs, - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='histogram2dcontour.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_color.py index 5cdc8228e16..b5494600491 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="histogram2dcontour.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='histogram2dcontour.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_family.py index b14c67f6213..3d221c947ba 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="histogram2dcontour.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='histogram2dcontour.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_lineposition.py index 0d59a59e104..8968ace1298 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="histogram2dcontour.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='histogram2dcontour.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_shadow.py index 3599047d49b..6c4c8e59eda 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="histogram2dcontour.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='histogram2dcontour.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_size.py index e675d03ade0..9fe591512d0 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="histogram2dcontour.colorbar.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='histogram2dcontour.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_style.py index 1d31c21b8b5..0db380f6a25 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="histogram2dcontour.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='histogram2dcontour.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_textcase.py index 97ae2550ffd..9ca14c10f25 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="histogram2dcontour.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='histogram2dcontour.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_variant.py index 16bcb4bb064..05f697f2ee3 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="histogram2dcontour.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='histogram2dcontour.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_weight.py index 6768b94da51..ffc720fe301 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="histogram2dcontour.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='histogram2dcontour.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/__init__.py index 0650ad574bd..e7f6b949f93 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._type import TypeValidator @@ -15,21 +14,10 @@ from ._coloring import ColoringValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._type.TypeValidator", - "._start.StartValidator", - "._size.SizeValidator", - "._showlines.ShowlinesValidator", - "._showlabels.ShowlabelsValidator", - "._operation.OperationValidator", - "._labelformat.LabelformatValidator", - "._labelfont.LabelfontValidator", - "._end.EndValidator", - "._coloring.ColoringValidator", - ], + ['._value.ValueValidator', '._type.TypeValidator', '._start.StartValidator', '._size.SizeValidator', '._showlines.ShowlinesValidator', '._showlabels.ShowlabelsValidator', '._operation.OperationValidator', '._labelformat.LabelformatValidator', '._labelfont.LabelfontValidator', '._end.EndValidator', '._coloring.ColoringValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_coloring.py b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_coloring.py index 54ed8cd3b1a..bafec2513f5 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_coloring.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_coloring.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ColoringValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="coloring", - parent_name="histogram2dcontour.contours", - **kwargs, - ): - super(ColoringValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["fill", "heatmap", "lines", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColoringValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='coloring', + parent_name='histogram2dcontour.contours', + **kwargs): + super(ColoringValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['fill', 'heatmap', 'lines', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_end.py b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_end.py index e1f442fd657..afa16413525 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_end.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_end.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class EndValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="end", parent_name="histogram2dcontour.contours", **kwargs - ): - super(EndValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"^autocontour": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class EndValidator(_bv.NumberValidator): + def __init__(self, plotly_name='end', + parent_name='histogram2dcontour.contours', + **kwargs): + super(EndValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'^autocontour': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_labelfont.py b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_labelfont.py index 744fe1c76a0..4365f2f3532 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_labelfont.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_labelfont.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class LabelfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="labelfont", - parent_name="histogram2dcontour.contours", - **kwargs, - ): - super(LabelfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Labelfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class LabelfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='labelfont', + parent_name='histogram2dcontour.contours', + **kwargs): + super(LabelfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Labelfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_labelformat.py b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_labelformat.py index cd538b466fa..210a04ab6da 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_labelformat.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_labelformat.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LabelformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="labelformat", - parent_name="histogram2dcontour.contours", - **kwargs, - ): - super(LabelformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='labelformat', + parent_name='histogram2dcontour.contours', + **kwargs): + super(LabelformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_operation.py b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_operation.py index 8d373d56c69..e57eebf7e98 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_operation.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_operation.py @@ -1,34 +1,14 @@ -import _plotly_utils.basevalidators -class OperationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="operation", - parent_name="histogram2dcontour.contours", - **kwargs, - ): - super(OperationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "=", - "<", - ">=", - ">", - "<=", - "[]", - "()", - "[)", - "(]", - "][", - ")(", - "](", - ")[", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OperationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='operation', + parent_name='histogram2dcontour.contours', + **kwargs): + super(OperationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['=', '<', '>=', '>', '<=', '[]', '()', '[)', '(]', '][', ')(', '](', ')[']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_showlabels.py b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_showlabels.py index 6b6a4728d95..c7be152c3b6 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_showlabels.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_showlabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showlabels", - parent_name="histogram2dcontour.contours", - **kwargs, - ): - super(ShowlabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlabels', + parent_name='histogram2dcontour.contours', + **kwargs): + super(ShowlabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_showlines.py b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_showlines.py index a59ac2c939e..02f1bd44f92 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_showlines.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_showlines.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlinesValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showlines", - parent_name="histogram2dcontour.contours", - **kwargs, - ): - super(ShowlinesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlinesValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlines', + parent_name='histogram2dcontour.contours', + **kwargs): + super(ShowlinesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_size.py b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_size.py index e65320a5762..a42bcda4833 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_size.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="histogram2dcontour.contours", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"^autocontour": False}), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='histogram2dcontour.contours', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'^autocontour': False}), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_start.py b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_start.py index 8e5814d029f..9711bd3a6a0 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_start.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_start.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StartValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="start", parent_name="histogram2dcontour.contours", **kwargs - ): - super(StartValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"^autocontour": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StartValidator(_bv.NumberValidator): + def __init__(self, plotly_name='start', + parent_name='histogram2dcontour.contours', + **kwargs): + super(StartValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'^autocontour': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_type.py b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_type.py index af77dbcd1db..51e2a316f9b 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_type.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_type.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="type", parent_name="histogram2dcontour.contours", **kwargs - ): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["levels", "constraint"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='histogram2dcontour.contours', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['levels', 'constraint']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_value.py b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_value.py index 57ff6d7112c..ac7def1ded6 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_value.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/_value.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ValueValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="value", parent_name="histogram2dcontour.contours", **kwargs - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.AnyValidator): + def __init__(self, plotly_name='value', + parent_name='histogram2dcontour.contours', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_color.py b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_color.py index bca9ea117b1..ca7092e11ae 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_color.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="histogram2dcontour.contours.labelfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='histogram2dcontour.contours.labelfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_family.py b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_family.py index c8b1479a1c5..d6208e6cfb9 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_family.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="histogram2dcontour.contours.labelfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='histogram2dcontour.contours.labelfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_lineposition.py b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_lineposition.py index 31067190940..fa3ed2cdeae 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="histogram2dcontour.contours.labelfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='histogram2dcontour.contours.labelfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_shadow.py b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_shadow.py index 46972c6d7b9..1602ee63c6d 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="histogram2dcontour.contours.labelfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='histogram2dcontour.contours.labelfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_size.py b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_size.py index ce940b730b5..6ec0e0414ff 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_size.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="histogram2dcontour.contours.labelfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='histogram2dcontour.contours.labelfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_style.py b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_style.py index cc970a7b86f..606a7c58354 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_style.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="histogram2dcontour.contours.labelfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='histogram2dcontour.contours.labelfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_textcase.py b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_textcase.py index 16d81388bd8..2ac88af2b8c 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="histogram2dcontour.contours.labelfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='histogram2dcontour.contours.labelfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_variant.py b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_variant.py index a415e218422..620191bf560 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_variant.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="histogram2dcontour.contours.labelfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='histogram2dcontour.contours.labelfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_weight.py b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_weight.py index f8a51cf5d7b..ada4fc69d60 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_weight.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="histogram2dcontour.contours.labelfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='histogram2dcontour.contours.labelfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_align.py index a25814be134..f9190a09dcd 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_align.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="align", parent_name="histogram2dcontour.hoverlabel", **kwargs - ): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='histogram2dcontour.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_alignsrc.py index c08c292162c..85454eb5dc1 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_alignsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="alignsrc", - parent_name="histogram2dcontour.hoverlabel", - **kwargs, - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='histogram2dcontour.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_bgcolor.py index 9d038b07e28..ef22bc9abdb 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_bgcolor.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bgcolor", - parent_name="histogram2dcontour.hoverlabel", - **kwargs, - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='histogram2dcontour.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_bgcolorsrc.py index 9d8739dce60..3ea6c64be5b 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_bgcolorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="bgcolorsrc", - parent_name="histogram2dcontour.hoverlabel", - **kwargs, - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='histogram2dcontour.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_bordercolor.py index 888a250b301..5d9754056d5 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_bordercolor.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bordercolor", - parent_name="histogram2dcontour.hoverlabel", - **kwargs, - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='histogram2dcontour.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_bordercolorsrc.py index 0375fe8add9..26aafd7b6fd 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="bordercolorsrc", - parent_name="histogram2dcontour.hoverlabel", - **kwargs, - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='histogram2dcontour.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_font.py index eaa8b7c44fb..f7677d1db1a 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_font.py @@ -1,88 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="histogram2dcontour.hoverlabel", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='histogram2dcontour.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_namelength.py index 106a50ed61d..52fb17b8af5 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_namelength.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="namelength", - parent_name="histogram2dcontour.hoverlabel", - **kwargs, - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='histogram2dcontour.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_namelengthsrc.py index 85ec7879a52..16ce3684022 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/_namelengthsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="namelengthsrc", - parent_name="histogram2dcontour.hoverlabel", - **kwargs, - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='histogram2dcontour.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_color.py index 8b0e85a243a..320e4747c89 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_color.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="histogram2dcontour.hoverlabel.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='histogram2dcontour.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_colorsrc.py index b2ed8e0489e..e0460c0d294 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_colorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="colorsrc", - parent_name="histogram2dcontour.hoverlabel.font", - **kwargs, - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='histogram2dcontour.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_family.py index 10d6bf49c9c..4563e68e67c 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_family.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="histogram2dcontour.hoverlabel.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='histogram2dcontour.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_familysrc.py index 7199162a99b..5afe1c19e37 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_familysrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="familysrc", - parent_name="histogram2dcontour.hoverlabel.font", - **kwargs, - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='histogram2dcontour.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_lineposition.py index e8357b95a4b..d360364f64d 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="histogram2dcontour.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='histogram2dcontour.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_linepositionsrc.py index 3e6c6c7f847..2d55da5857f 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="histogram2dcontour.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='histogram2dcontour.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_shadow.py index 15faf7ca93f..36d11ab851a 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_shadow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="histogram2dcontour.hoverlabel.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='histogram2dcontour.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_shadowsrc.py index 8615e65bec9..487e7095777 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="shadowsrc", - parent_name="histogram2dcontour.hoverlabel.font", - **kwargs, - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='histogram2dcontour.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_size.py index 95c9a3d3b07..9ca5c03671a 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_size.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="histogram2dcontour.hoverlabel.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='histogram2dcontour.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_sizesrc.py index 4d4e06f5cb8..ddb68887e41 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_sizesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="sizesrc", - parent_name="histogram2dcontour.hoverlabel.font", - **kwargs, - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='histogram2dcontour.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_style.py index 5ffd95b8e30..2144d852378 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_style.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="histogram2dcontour.hoverlabel.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='histogram2dcontour.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_stylesrc.py index d4b10d04789..f5d9ebe2c14 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_stylesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="stylesrc", - parent_name="histogram2dcontour.hoverlabel.font", - **kwargs, - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='histogram2dcontour.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_textcase.py index c5327e37107..a52676a5b23 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_textcase.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="histogram2dcontour.hoverlabel.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='histogram2dcontour.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_textcasesrc.py index 404c7e07d83..8a939532f34 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="histogram2dcontour.hoverlabel.font", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='histogram2dcontour.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_variant.py index 9c548ca5e97..d6bf67e9e7c 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_variant.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="histogram2dcontour.hoverlabel.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='histogram2dcontour.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_variantsrc.py index c35430443cf..4fb43982e3d 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_variantsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="variantsrc", - parent_name="histogram2dcontour.hoverlabel.font", - **kwargs, - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='histogram2dcontour.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_weight.py index b1051b8005c..4e979c2f00d 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_weight.py @@ -1,20 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="histogram2dcontour.hoverlabel.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='histogram2dcontour.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_weightsrc.py index 576ffe99694..65a5b9cc259 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/_weightsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="weightsrc", - parent_name="histogram2dcontour.hoverlabel.font", - **kwargs, - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='histogram2dcontour.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/_font.py index 66f3160fcd1..be16d9c0b35 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/_font.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="font", - parent_name="histogram2dcontour.legendgrouptitle", - **kwargs, - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='histogram2dcontour.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/_text.py index f98edde90e2..cd9a0886a76 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/_text.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="text", - parent_name="histogram2dcontour.legendgrouptitle", - **kwargs, - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='histogram2dcontour.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_color.py index c9817b4100d..22e118554f2 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="histogram2dcontour.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='histogram2dcontour.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_family.py index a370fde0bde..39f3bd3edf2 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="histogram2dcontour.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='histogram2dcontour.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_lineposition.py index be7ec3591c3..00fe310687d 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="histogram2dcontour.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='histogram2dcontour.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_shadow.py index 51e17f92cb6..4bd23055545 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="histogram2dcontour.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='histogram2dcontour.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_size.py index 074a3e6ad6b..704f0ac1685 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="histogram2dcontour.legendgrouptitle.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='histogram2dcontour.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_style.py index 375a45ca7e1..710909c7f73 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="histogram2dcontour.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='histogram2dcontour.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_textcase.py index 4bedfff0c10..4305d94526d 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="histogram2dcontour.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='histogram2dcontour.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_variant.py index 64f8433bc7b..45639415324 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="histogram2dcontour.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='histogram2dcontour.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_weight.py index a3953564ed7..820b6acaf35 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="histogram2dcontour.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='histogram2dcontour.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/line/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/line/__init__.py index cc28ee67fea..60124445938 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/line/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._smoothing import SmoothingValidator @@ -8,14 +7,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._smoothing.SmoothingValidator", - "._dash.DashValidator", - "._color.ColorValidator", - ], + ['._width.WidthValidator', '._smoothing.SmoothingValidator', '._dash.DashValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/line/_color.py b/packages/python/plotly/plotly/validators/histogram2dcontour/line/_color.py index 0c4b28138fd..a55f9ba1a2a 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/line/_color.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/line/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="histogram2dcontour.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style+colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='histogram2dcontour.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style+colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/line/_dash.py b/packages/python/plotly/plotly/validators/histogram2dcontour/line/_dash.py index 60b9f21e6cb..7b7162ebd23 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/line/_dash.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/line/_dash.py @@ -1,16 +1,14 @@ -import _plotly_utils.basevalidators -class DashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__( - self, plotly_name="dash", parent_name="histogram2dcontour.line", **kwargs - ): - super(DashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DashValidator(_bv.DashValidator): + def __init__(self, plotly_name='dash', + parent_name='histogram2dcontour.line', + **kwargs): + super(DashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/line/_smoothing.py b/packages/python/plotly/plotly/validators/histogram2dcontour/line/_smoothing.py index a0debfc1c96..f3229a9668f 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/line/_smoothing.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/line/_smoothing.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SmoothingValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="smoothing", parent_name="histogram2dcontour.line", **kwargs - ): - super(SmoothingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 1.3), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SmoothingValidator(_bv.NumberValidator): + def __init__(self, plotly_name='smoothing', + parent_name='histogram2dcontour.line', + **kwargs): + super(SmoothingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 1.3), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/line/_width.py b/packages/python/plotly/plotly/validators/histogram2dcontour/line/_width.py index 594eca548b4..47f81680025 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/line/_width.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/line/_width.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="histogram2dcontour.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style+colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='histogram2dcontour.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style+colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/marker/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/marker/__init__.py index 4ca11d98821..9247b192f9a 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/marker/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorsrc import ColorsrcValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._colorsrc.ColorsrcValidator", "._color.ColorValidator"] + __name__, + [], + ['._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/marker/_color.py b/packages/python/plotly/plotly/validators/histogram2dcontour/marker/_color.py index bba82a44821..35c144ba2fa 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/marker/_color.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/marker/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="color", parent_name="histogram2dcontour.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='color', + parent_name='histogram2dcontour.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/marker/_colorsrc.py b/packages/python/plotly/plotly/validators/histogram2dcontour/marker/_colorsrc.py index 0e7ffcd0fd3..16781f7f0e1 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/marker/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/marker/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="histogram2dcontour.marker", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='histogram2dcontour.marker', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/stream/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/histogram2dcontour/stream/_maxpoints.py index 926d100febf..3d254f9da8a 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/stream/_maxpoints.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxpoints", parent_name="histogram2dcontour.stream", **kwargs - ): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='histogram2dcontour.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/stream/_token.py b/packages/python/plotly/plotly/validators/histogram2dcontour/stream/_token.py index b82f5b454fe..bb8f9375419 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/stream/_token.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/stream/_token.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="token", parent_name="histogram2dcontour.stream", **kwargs - ): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='histogram2dcontour.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_color.py b/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_color.py index 5adfec84aa1..d655e817c57 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="histogram2dcontour.textfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='histogram2dcontour.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_family.py b/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_family.py index d3998e1475e..fcc8926bf9d 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_family.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="histogram2dcontour.textfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='histogram2dcontour.textfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_lineposition.py b/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_lineposition.py index ddcb1cdaf29..cef8aae114f 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="histogram2dcontour.textfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='histogram2dcontour.textfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_shadow.py b/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_shadow.py index 1267012a853..6e6e99e5119 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="histogram2dcontour.textfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='histogram2dcontour.textfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_size.py b/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_size.py index dcfe222b167..26f10425f60 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_size.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="histogram2dcontour.textfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='histogram2dcontour.textfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_style.py b/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_style.py index 8f88604a08c..6b3c234a1d2 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_style.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="histogram2dcontour.textfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='histogram2dcontour.textfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_textcase.py b/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_textcase.py index fd76b5d5437..b19c8e1db20 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="histogram2dcontour.textfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='histogram2dcontour.textfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_variant.py b/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_variant.py index c2c45eab31a..3f4e0d9cb8c 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_variant.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="histogram2dcontour.textfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='histogram2dcontour.textfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_weight.py b/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_weight.py index bd4bbc596b0..87f8a98c363 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_weight.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/textfont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="histogram2dcontour.textfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='histogram2dcontour.textfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/xbins/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/xbins/__init__.py index b7d1eaa9fcb..78224c18773 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/xbins/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/xbins/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._start import StartValidator from ._size import SizeValidator from ._end import EndValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._start.StartValidator", "._size.SizeValidator", "._end.EndValidator"], + ['._start.StartValidator', '._size.SizeValidator', '._end.EndValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/xbins/_end.py b/packages/python/plotly/plotly/validators/histogram2dcontour/xbins/_end.py index 448d94fdf28..2586785d571 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/xbins/_end.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/xbins/_end.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class EndValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="end", parent_name="histogram2dcontour.xbins", **kwargs - ): - super(EndValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class EndValidator(_bv.AnyValidator): + def __init__(self, plotly_name='end', + parent_name='histogram2dcontour.xbins', + **kwargs): + super(EndValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/xbins/_size.py b/packages/python/plotly/plotly/validators/histogram2dcontour/xbins/_size.py index 2706577768b..2e363b39379 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/xbins/_size.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/xbins/_size.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="size", parent_name="histogram2dcontour.xbins", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.AnyValidator): + def __init__(self, plotly_name='size', + parent_name='histogram2dcontour.xbins', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/xbins/_start.py b/packages/python/plotly/plotly/validators/histogram2dcontour/xbins/_start.py index 8500104dd82..1be3ae21dfa 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/xbins/_start.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/xbins/_start.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StartValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="start", parent_name="histogram2dcontour.xbins", **kwargs - ): - super(StartValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StartValidator(_bv.AnyValidator): + def __init__(self, plotly_name='start', + parent_name='histogram2dcontour.xbins', + **kwargs): + super(StartValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/ybins/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/ybins/__init__.py index b7d1eaa9fcb..78224c18773 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/ybins/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/ybins/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._start import StartValidator from ._size import SizeValidator from ._end import EndValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._start.StartValidator", "._size.SizeValidator", "._end.EndValidator"], + ['._start.StartValidator', '._size.SizeValidator', '._end.EndValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/ybins/_end.py b/packages/python/plotly/plotly/validators/histogram2dcontour/ybins/_end.py index cb79c4e967f..658e63343b6 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/ybins/_end.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/ybins/_end.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class EndValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="end", parent_name="histogram2dcontour.ybins", **kwargs - ): - super(EndValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class EndValidator(_bv.AnyValidator): + def __init__(self, plotly_name='end', + parent_name='histogram2dcontour.ybins', + **kwargs): + super(EndValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/ybins/_size.py b/packages/python/plotly/plotly/validators/histogram2dcontour/ybins/_size.py index e46d2ee4bee..084dcd8c8b0 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/ybins/_size.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/ybins/_size.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="size", parent_name="histogram2dcontour.ybins", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.AnyValidator): + def __init__(self, plotly_name='size', + parent_name='histogram2dcontour.ybins', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/ybins/_start.py b/packages/python/plotly/plotly/validators/histogram2dcontour/ybins/_start.py index aec1ef1198b..1b38d9c9482 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/ybins/_start.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/ybins/_start.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StartValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="start", parent_name="histogram2dcontour.ybins", **kwargs - ): - super(StartValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StartValidator(_bv.AnyValidator): + def __init__(self, plotly_name='start', + parent_name='histogram2dcontour.ybins', + **kwargs): + super(StartValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/__init__.py b/packages/python/plotly/plotly/validators/icicle/__init__.py index 79272436ae9..f67ca9157c1 100644 --- a/packages/python/plotly/plotly/validators/icicle/__init__.py +++ b/packages/python/plotly/plotly/validators/icicle/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._valuessrc import ValuessrcValidator @@ -53,59 +52,10 @@ from ._branchvalues import BranchvaluesValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._valuessrc.ValuessrcValidator", - "._values.ValuesValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._tiling.TilingValidator", - "._texttemplatesrc.TexttemplatesrcValidator", - "._texttemplate.TexttemplateValidator", - "._textsrc.TextsrcValidator", - "._textposition.TextpositionValidator", - "._textinfo.TextinfoValidator", - "._textfont.TextfontValidator", - "._text.TextValidator", - "._stream.StreamValidator", - "._sort.SortValidator", - "._root.RootValidator", - "._pathbar.PathbarValidator", - "._parentssrc.ParentssrcValidator", - "._parents.ParentsValidator", - "._outsidetextfont.OutsidetextfontValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._maxdepth.MaxdepthValidator", - "._marker.MarkerValidator", - "._level.LevelValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legend.LegendValidator", - "._leaf.LeafValidator", - "._labelssrc.LabelssrcValidator", - "._labels.LabelsValidator", - "._insidetextfont.InsidetextfontValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._domain.DomainValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._count.CountValidator", - "._branchvalues.BranchvaluesValidator", - ], + ['._visible.VisibleValidator', '._valuessrc.ValuessrcValidator', '._values.ValuesValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._tiling.TilingValidator', '._texttemplatesrc.TexttemplatesrcValidator', '._texttemplate.TexttemplateValidator', '._textsrc.TextsrcValidator', '._textposition.TextpositionValidator', '._textinfo.TextinfoValidator', '._textfont.TextfontValidator', '._text.TextValidator', '._stream.StreamValidator', '._sort.SortValidator', '._root.RootValidator', '._pathbar.PathbarValidator', '._parentssrc.ParentssrcValidator', '._parents.ParentsValidator', '._outsidetextfont.OutsidetextfontValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._maxdepth.MaxdepthValidator', '._marker.MarkerValidator', '._level.LevelValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legend.LegendValidator', '._leaf.LeafValidator', '._labelssrc.LabelssrcValidator', '._labels.LabelsValidator', '._insidetextfont.InsidetextfontValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._domain.DomainValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._count.CountValidator', '._branchvalues.BranchvaluesValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/icicle/_branchvalues.py b/packages/python/plotly/plotly/validators/icicle/_branchvalues.py index 968fe564e2c..6af6816fa2c 100644 --- a/packages/python/plotly/plotly/validators/icicle/_branchvalues.py +++ b/packages/python/plotly/plotly/validators/icicle/_branchvalues.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class BranchvaluesValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="branchvalues", parent_name="icicle", **kwargs): - super(BranchvaluesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["remainder", "total"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BranchvaluesValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='branchvalues', + parent_name='icicle', + **kwargs): + super(BranchvaluesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['remainder', 'total']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_count.py b/packages/python/plotly/plotly/validators/icicle/_count.py index 4a373aae2f7..d5d940e684c 100644 --- a/packages/python/plotly/plotly/validators/icicle/_count.py +++ b/packages/python/plotly/plotly/validators/icicle/_count.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CountValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="count", parent_name="icicle", **kwargs): - super(CountValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - flags=kwargs.pop("flags", ["branches", "leaves"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CountValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='count', + parent_name='icicle', + **kwargs): + super(CountValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + flags=kwargs.pop('flags', ['branches', 'leaves']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_customdata.py b/packages/python/plotly/plotly/validators/icicle/_customdata.py index 38e83f4066d..0a1775f5092 100644 --- a/packages/python/plotly/plotly/validators/icicle/_customdata.py +++ b/packages/python/plotly/plotly/validators/icicle/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="icicle", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='icicle', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_customdatasrc.py b/packages/python/plotly/plotly/validators/icicle/_customdatasrc.py index 1a5c9483af1..eec0a7a9ce0 100644 --- a/packages/python/plotly/plotly/validators/icicle/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/icicle/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="icicle", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='icicle', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_domain.py b/packages/python/plotly/plotly/validators/icicle/_domain.py index b8ec63a531f..15d826be4f0 100644 --- a/packages/python/plotly/plotly/validators/icicle/_domain.py +++ b/packages/python/plotly/plotly/validators/icicle/_domain.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="domain", parent_name="icicle", **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 icicle trace . - row - If there is a layout grid, use the domain for - this row in the grid for this icicle trace . - x - Sets the horizontal domain of this icicle trace - (in plot fraction). - y - Sets the vertical domain of this icicle trace - (in plot fraction). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DomainValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='domain', + parent_name='icicle', + **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', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_hoverinfo.py b/packages/python/plotly/plotly/validators/icicle/_hoverinfo.py index 7e5ad16fb00..c0fd3c7dc3e 100644 --- a/packages/python/plotly/plotly/validators/icicle/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/icicle/_hoverinfo.py @@ -1,26 +1,16 @@ -import _plotly_utils.basevalidators -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="icicle", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop( - "flags", - [ - "label", - "text", - "value", - "name", - "current path", - "percent root", - "percent entry", - "percent parent", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='icicle', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['label', 'text', 'value', 'name', 'current path', 'percent root', 'percent entry', 'percent parent']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/icicle/_hoverinfosrc.py index 8fa7f82b219..fbe0c5e661c 100644 --- a/packages/python/plotly/plotly/validators/icicle/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/icicle/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="icicle", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='icicle', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_hoverlabel.py b/packages/python/plotly/plotly/validators/icicle/_hoverlabel.py index 26ba3000d60..094a4901397 100644 --- a/packages/python/plotly/plotly/validators/icicle/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/icicle/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="icicle", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='icicle', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_hovertemplate.py b/packages/python/plotly/plotly/validators/icicle/_hovertemplate.py index b08efb5705a..af2840c6191 100644 --- a/packages/python/plotly/plotly/validators/icicle/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/icicle/_hovertemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="icicle", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='icicle', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/icicle/_hovertemplatesrc.py index 70914d05c55..4f7ebc88073 100644 --- a/packages/python/plotly/plotly/validators/icicle/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/icicle/_hovertemplatesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertemplatesrc", parent_name="icicle", **kwargs): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='icicle', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_hovertext.py b/packages/python/plotly/plotly/validators/icicle/_hovertext.py index e4df546f2fe..2ddeac28b5e 100644 --- a/packages/python/plotly/plotly/validators/icicle/_hovertext.py +++ b/packages/python/plotly/plotly/validators/icicle/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="icicle", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='icicle', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_hovertextsrc.py b/packages/python/plotly/plotly/validators/icicle/_hovertextsrc.py index 470e10ff58b..54b8ecd7cdb 100644 --- a/packages/python/plotly/plotly/validators/icicle/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="icicle", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='icicle', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_ids.py b/packages/python/plotly/plotly/validators/icicle/_ids.py index 125d9b3e749..26019908f5c 100644 --- a/packages/python/plotly/plotly/validators/icicle/_ids.py +++ b/packages/python/plotly/plotly/validators/icicle/_ids.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="icicle", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='icicle', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_idssrc.py b/packages/python/plotly/plotly/validators/icicle/_idssrc.py index 011b43e641a..50c48638759 100644 --- a/packages/python/plotly/plotly/validators/icicle/_idssrc.py +++ b/packages/python/plotly/plotly/validators/icicle/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="icicle", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='icicle', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_insidetextfont.py b/packages/python/plotly/plotly/validators/icicle/_insidetextfont.py index bd41fb56610..e081feef051 100644 --- a/packages/python/plotly/plotly/validators/icicle/_insidetextfont.py +++ b/packages/python/plotly/plotly/validators/icicle/_insidetextfont.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class InsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="insidetextfont", parent_name="icicle", **kwargs): - super(InsidetextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Insidetextfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class InsidetextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='insidetextfont', + parent_name='icicle', + **kwargs): + super(InsidetextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Insidetextfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_labels.py b/packages/python/plotly/plotly/validators/icicle/_labels.py index bc9a637d2ed..b581ac15c7a 100644 --- a/packages/python/plotly/plotly/validators/icicle/_labels.py +++ b/packages/python/plotly/plotly/validators/icicle/_labels.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LabelsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="labels", parent_name="icicle", **kwargs): - super(LabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='labels', + parent_name='icicle', + **kwargs): + super(LabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_labelssrc.py b/packages/python/plotly/plotly/validators/icicle/_labelssrc.py index 42a5e13dbf1..67358309d99 100644 --- a/packages/python/plotly/plotly/validators/icicle/_labelssrc.py +++ b/packages/python/plotly/plotly/validators/icicle/_labelssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LabelssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="labelssrc", parent_name="icicle", **kwargs): - super(LabelssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='labelssrc', + parent_name='icicle', + **kwargs): + super(LabelssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_leaf.py b/packages/python/plotly/plotly/validators/icicle/_leaf.py index 0095d5d8fa9..7abdfd63e2b 100644 --- a/packages/python/plotly/plotly/validators/icicle/_leaf.py +++ b/packages/python/plotly/plotly/validators/icicle/_leaf.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class LeafValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="leaf", parent_name="icicle", **kwargs): - super(LeafValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Leaf"), - data_docs=kwargs.pop( - "data_docs", - """ - opacity - Sets the opacity of the leaves. With colorscale - it is defaulted to 1; otherwise it is defaulted - to 0.7 -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LeafValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='leaf', + parent_name='icicle', + **kwargs): + super(LeafValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Leaf'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_legend.py b/packages/python/plotly/plotly/validators/icicle/_legend.py index b8c5a78fc55..c80baff7053 100644 --- a/packages/python/plotly/plotly/validators/icicle/_legend.py +++ b/packages/python/plotly/plotly/validators/icicle/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="icicle", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='icicle', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/icicle/_legendgrouptitle.py index dbbcda45fd9..5b24dc1d02b 100644 --- a/packages/python/plotly/plotly/validators/icicle/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/icicle/_legendgrouptitle.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="legendgrouptitle", parent_name="icicle", **kwargs): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='icicle', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_legendrank.py b/packages/python/plotly/plotly/validators/icicle/_legendrank.py index 28ccd9e480e..5011f69a5e8 100644 --- a/packages/python/plotly/plotly/validators/icicle/_legendrank.py +++ b/packages/python/plotly/plotly/validators/icicle/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="icicle", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='icicle', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_legendwidth.py b/packages/python/plotly/plotly/validators/icicle/_legendwidth.py index 8b9da9ea863..437d9722ef3 100644 --- a/packages/python/plotly/plotly/validators/icicle/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/icicle/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="icicle", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='icicle', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_level.py b/packages/python/plotly/plotly/validators/icicle/_level.py index 2802f86d0ab..42b3e923360 100644 --- a/packages/python/plotly/plotly/validators/icicle/_level.py +++ b/packages/python/plotly/plotly/validators/icicle/_level.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LevelValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="level", parent_name="icicle", **kwargs): - super(LevelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LevelValidator(_bv.AnyValidator): + def __init__(self, plotly_name='level', + parent_name='icicle', + **kwargs): + super(LevelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_marker.py b/packages/python/plotly/plotly/validators/icicle/_marker.py index 90db168ee07..8c98bf5042d 100644 --- a/packages/python/plotly/plotly/validators/icicle/_marker.py +++ b/packages/python/plotly/plotly/validators/icicle/_marker.py @@ -1,105 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="icicle", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if colors is set to a numerical - array. In case `colorscale` is unspecified or - `autocolorscale` is true, the default palette - will be chosen according to whether numbers in - the `color` array are all positive, all - negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - colors) or the bounds set in `marker.cmin` and - `marker.cmax` Has an effect only if colors is - set to a numerical array. Defaults to `false` - when `marker.cmin` and `marker.cmax` are set by - the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if colors is set to a numerical - array. Value should have the same units as - colors and if set, `marker.cmin` must be set as - well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if colors is set to a numerical array. - Value should have the same units as colors. Has - no effect when `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if colors is set to a numerical - array. Value should have the same units as - colors and if set, `marker.cmax` must be set as - well. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.icicle.marker.Colo - rBar` instance or dict with compatible - properties - colors - Sets the color of each sector of this trace. If - not specified, the default trace color set is - used to pick the sector colors. - colorscale - Sets the colorscale. Has an effect only if - colors is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorssrc - Sets the source reference on Chart Studio Cloud - for `colors`. - line - :class:`plotly.graph_objects.icicle.marker.Line - ` instance or dict with compatible properties - pattern - Sets the pattern within the marker. - reversescale - Reverses the color mapping if true. Has an - effect only if colors is set to a numerical - array. If true, `marker.cmin` will correspond - to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - colors is set to a numerical array. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='icicle', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_maxdepth.py b/packages/python/plotly/plotly/validators/icicle/_maxdepth.py index 2cefe681ed5..58a5e3c3f1c 100644 --- a/packages/python/plotly/plotly/validators/icicle/_maxdepth.py +++ b/packages/python/plotly/plotly/validators/icicle/_maxdepth.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MaxdepthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="maxdepth", parent_name="icicle", **kwargs): - super(MaxdepthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MaxdepthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='maxdepth', + parent_name='icicle', + **kwargs): + super(MaxdepthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_meta.py b/packages/python/plotly/plotly/validators/icicle/_meta.py index 5b867d1db00..9ab1f1dbc65 100644 --- a/packages/python/plotly/plotly/validators/icicle/_meta.py +++ b/packages/python/plotly/plotly/validators/icicle/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="icicle", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='icicle', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_metasrc.py b/packages/python/plotly/plotly/validators/icicle/_metasrc.py index 737cc3ccc51..6f900914e01 100644 --- a/packages/python/plotly/plotly/validators/icicle/_metasrc.py +++ b/packages/python/plotly/plotly/validators/icicle/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="icicle", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='icicle', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_name.py b/packages/python/plotly/plotly/validators/icicle/_name.py index 6334bf65ef7..946e1b8d0de 100644 --- a/packages/python/plotly/plotly/validators/icicle/_name.py +++ b/packages/python/plotly/plotly/validators/icicle/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="icicle", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='icicle', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_opacity.py b/packages/python/plotly/plotly/validators/icicle/_opacity.py index c3544f53f6d..9c1f3d3e94f 100644 --- a/packages/python/plotly/plotly/validators/icicle/_opacity.py +++ b/packages/python/plotly/plotly/validators/icicle/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="icicle", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='icicle', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_outsidetextfont.py b/packages/python/plotly/plotly/validators/icicle/_outsidetextfont.py index 63d9997ba68..d87f599d89d 100644 --- a/packages/python/plotly/plotly/validators/icicle/_outsidetextfont.py +++ b/packages/python/plotly/plotly/validators/icicle/_outsidetextfont.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class OutsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="outsidetextfont", parent_name="icicle", **kwargs): - super(OutsidetextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Outsidetextfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class OutsidetextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='outsidetextfont', + parent_name='icicle', + **kwargs): + super(OutsidetextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Outsidetextfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_parents.py b/packages/python/plotly/plotly/validators/icicle/_parents.py index be70659c251..6d726698004 100644 --- a/packages/python/plotly/plotly/validators/icicle/_parents.py +++ b/packages/python/plotly/plotly/validators/icicle/_parents.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ParentsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="parents", parent_name="icicle", **kwargs): - super(ParentsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ParentsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='parents', + parent_name='icicle', + **kwargs): + super(ParentsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_parentssrc.py b/packages/python/plotly/plotly/validators/icicle/_parentssrc.py index 720e9f98ce2..750fccad819 100644 --- a/packages/python/plotly/plotly/validators/icicle/_parentssrc.py +++ b/packages/python/plotly/plotly/validators/icicle/_parentssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ParentssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="parentssrc", parent_name="icicle", **kwargs): - super(ParentssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ParentssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='parentssrc', + parent_name='icicle', + **kwargs): + super(ParentssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_pathbar.py b/packages/python/plotly/plotly/validators/icicle/_pathbar.py index 9226a642ea4..491c07184f8 100644 --- a/packages/python/plotly/plotly/validators/icicle/_pathbar.py +++ b/packages/python/plotly/plotly/validators/icicle/_pathbar.py @@ -1,32 +1,15 @@ -import _plotly_utils.basevalidators -class PathbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="pathbar", parent_name="icicle", **kwargs): - super(PathbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Pathbar"), - data_docs=kwargs.pop( - "data_docs", - """ - edgeshape - Determines which shape is used for edges - between `barpath` labels. - side - Determines on which side of the the treemap the - `pathbar` should be presented. - textfont - Sets the font used inside `pathbar`. - thickness - Sets the thickness of `pathbar` (in px). If not - specified the `pathbar.textfont.size` is used - with 3 pixles extra padding on each side. - visible - Determines if the path bar is drawn i.e. - outside the trace `domain` and with one pixel - gap. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class PathbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='pathbar', + parent_name='icicle', + **kwargs): + super(PathbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Pathbar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_root.py b/packages/python/plotly/plotly/validators/icicle/_root.py index b2340ade385..e988d70d877 100644 --- a/packages/python/plotly/plotly/validators/icicle/_root.py +++ b/packages/python/plotly/plotly/validators/icicle/_root.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class RootValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="root", parent_name="icicle", **kwargs): - super(RootValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Root"), - data_docs=kwargs.pop( - "data_docs", - """ - color - sets the color of the root node for a - sunburst/treemap/icicle trace. this has no - effect when a colorscale is used to set the - markers. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RootValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='root', + parent_name='icicle', + **kwargs): + super(RootValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Root'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_sort.py b/packages/python/plotly/plotly/validators/icicle/_sort.py index d36c5b3f447..a4ed9da1354 100644 --- a/packages/python/plotly/plotly/validators/icicle/_sort.py +++ b/packages/python/plotly/plotly/validators/icicle/_sort.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SortValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="sort", parent_name="icicle", **kwargs): - super(SortValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SortValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='sort', + parent_name='icicle', + **kwargs): + super(SortValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_stream.py b/packages/python/plotly/plotly/validators/icicle/_stream.py index c7d0a345833..337c9c4d8ed 100644 --- a/packages/python/plotly/plotly/validators/icicle/_stream.py +++ b/packages/python/plotly/plotly/validators/icicle/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="icicle", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='icicle', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_text.py b/packages/python/plotly/plotly/validators/icicle/_text.py index 44665148fff..c40eea85ccc 100644 --- a/packages/python/plotly/plotly/validators/icicle/_text.py +++ b/packages/python/plotly/plotly/validators/icicle/_text.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="text", parent_name="icicle", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='text', + parent_name='icicle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_textfont.py b/packages/python/plotly/plotly/validators/icicle/_textfont.py index 847bb34e2df..f04dc4d5ed7 100644 --- a/packages/python/plotly/plotly/validators/icicle/_textfont.py +++ b/packages/python/plotly/plotly/validators/icicle/_textfont.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="textfont", parent_name="icicle", **kwargs): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='icicle', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_textinfo.py b/packages/python/plotly/plotly/validators/icicle/_textinfo.py index fdbe0aa5c24..985aec1fce5 100644 --- a/packages/python/plotly/plotly/validators/icicle/_textinfo.py +++ b/packages/python/plotly/plotly/validators/icicle/_textinfo.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class TextinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="textinfo", parent_name="icicle", **kwargs): - super(TextinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop( - "flags", - [ - "label", - "text", - "value", - "current path", - "percent root", - "percent entry", - "percent parent", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='textinfo', + parent_name='icicle', + **kwargs): + super(TextinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['label', 'text', 'value', 'current path', 'percent root', 'percent entry', 'percent parent']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_textposition.py b/packages/python/plotly/plotly/validators/icicle/_textposition.py index 4e43bc2d430..04f7a7610af 100644 --- a/packages/python/plotly/plotly/validators/icicle/_textposition.py +++ b/packages/python/plotly/plotly/validators/icicle/_textposition.py @@ -1,25 +1,14 @@ -import _plotly_utils.basevalidators -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="textposition", parent_name="icicle", **kwargs): - super(TextpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "top left", - "top center", - "top right", - "middle left", - "middle center", - "middle right", - "bottom left", - "bottom center", - "bottom right", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textposition', + parent_name='icicle', + **kwargs): + super(TextpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['top left', 'top center', 'top right', 'middle left', 'middle center', 'middle right', 'bottom left', 'bottom center', 'bottom right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_textsrc.py b/packages/python/plotly/plotly/validators/icicle/_textsrc.py index 2e6eb192a3f..1f97e1d918a 100644 --- a/packages/python/plotly/plotly/validators/icicle/_textsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="icicle", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='icicle', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_texttemplate.py b/packages/python/plotly/plotly/validators/icicle/_texttemplate.py index 634aac3569b..e5de4a6972b 100644 --- a/packages/python/plotly/plotly/validators/icicle/_texttemplate.py +++ b/packages/python/plotly/plotly/validators/icicle/_texttemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="texttemplate", parent_name="icicle", **kwargs): - super(TexttemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='texttemplate', + parent_name='icicle', + **kwargs): + super(TexttemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_texttemplatesrc.py b/packages/python/plotly/plotly/validators/icicle/_texttemplatesrc.py index c04e414e4e1..76fd0c8417c 100644 --- a/packages/python/plotly/plotly/validators/icicle/_texttemplatesrc.py +++ b/packages/python/plotly/plotly/validators/icicle/_texttemplatesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="texttemplatesrc", parent_name="icicle", **kwargs): - super(TexttemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TexttemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='texttemplatesrc', + parent_name='icicle', + **kwargs): + super(TexttemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_tiling.py b/packages/python/plotly/plotly/validators/icicle/_tiling.py index bbc219f3040..f9e62f942d3 100644 --- a/packages/python/plotly/plotly/validators/icicle/_tiling.py +++ b/packages/python/plotly/plotly/validators/icicle/_tiling.py @@ -1,33 +1,15 @@ -import _plotly_utils.basevalidators -class TilingValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="tiling", parent_name="icicle", **kwargs): - super(TilingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tiling"), - data_docs=kwargs.pop( - "data_docs", - """ - flip - Determines if the positions obtained from - solver are flipped on each axis. - orientation - When set in conjunction with `tiling.flip`, - determines on which side the root nodes are - drawn in the chart. If `tiling.orientation` is - "v" and `tiling.flip` is "", the root nodes - appear at the top. If `tiling.orientation` is - "v" and `tiling.flip` is "y", the root nodes - appear at the bottom. If `tiling.orientation` - is "h" and `tiling.flip` is "", the root nodes - appear at the left. If `tiling.orientation` is - "h" and `tiling.flip` is "x", the root nodes - appear at the right. - pad - Sets the inner padding (in px). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TilingValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tiling', + parent_name='icicle', + **kwargs): + super(TilingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tiling'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_uid.py b/packages/python/plotly/plotly/validators/icicle/_uid.py index 656afd5f6ac..edea8a3ddfb 100644 --- a/packages/python/plotly/plotly/validators/icicle/_uid.py +++ b/packages/python/plotly/plotly/validators/icicle/_uid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="icicle", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='icicle', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_uirevision.py b/packages/python/plotly/plotly/validators/icicle/_uirevision.py index 80a2c1ead8c..12b9116d7e4 100644 --- a/packages/python/plotly/plotly/validators/icicle/_uirevision.py +++ b/packages/python/plotly/plotly/validators/icicle/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="icicle", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='icicle', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_values.py b/packages/python/plotly/plotly/validators/icicle/_values.py index 954bfa69f87..2a71cc098ec 100644 --- a/packages/python/plotly/plotly/validators/icicle/_values.py +++ b/packages/python/plotly/plotly/validators/icicle/_values.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ValuesValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="values", parent_name="icicle", **kwargs): - super(ValuesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValuesValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='values', + parent_name='icicle', + **kwargs): + super(ValuesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_valuessrc.py b/packages/python/plotly/plotly/validators/icicle/_valuessrc.py index 6e08694e5a9..6c6659ccb2c 100644 --- a/packages/python/plotly/plotly/validators/icicle/_valuessrc.py +++ b/packages/python/plotly/plotly/validators/icicle/_valuessrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ValuessrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="valuessrc", parent_name="icicle", **kwargs): - super(ValuessrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValuessrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='valuessrc', + parent_name='icicle', + **kwargs): + super(ValuessrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/_visible.py b/packages/python/plotly/plotly/validators/icicle/_visible.py index 6c3426313ee..d56a9b12468 100644 --- a/packages/python/plotly/plotly/validators/icicle/_visible.py +++ b/packages/python/plotly/plotly/validators/icicle/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="icicle", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='icicle', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/domain/__init__.py b/packages/python/plotly/plotly/validators/icicle/domain/__init__.py index 67de5030d0a..705a2194402 100644 --- a/packages/python/plotly/plotly/validators/icicle/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/icicle/domain/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._y import YValidator from ._x import XValidator @@ -8,14 +7,10 @@ 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", - ], + ['._y.YValidator', '._x.XValidator', '._row.RowValidator', '._column.ColumnValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/icicle/domain/_column.py b/packages/python/plotly/plotly/validators/icicle/domain/_column.py index a8393640305..c71ce9d4cc5 100644 --- a/packages/python/plotly/plotly/validators/icicle/domain/_column.py +++ b/packages/python/plotly/plotly/validators/icicle/domain/_column.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="column", parent_name="icicle.domain", **kwargs): - super(ColumnValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColumnValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='column', + parent_name='icicle.domain', + **kwargs): + super(ColumnValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/domain/_row.py b/packages/python/plotly/plotly/validators/icicle/domain/_row.py index bd0c6ed5b61..a2b8ffda2ff 100644 --- a/packages/python/plotly/plotly/validators/icicle/domain/_row.py +++ b/packages/python/plotly/plotly/validators/icicle/domain/_row.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="row", parent_name="icicle.domain", **kwargs): - super(RowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RowValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='row', + parent_name='icicle.domain', + **kwargs): + super(RowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/domain/_x.py b/packages/python/plotly/plotly/validators/icicle/domain/_x.py index 296d3c56303..6ce1386f63c 100644 --- a/packages/python/plotly/plotly/validators/icicle/domain/_x.py +++ b/packages/python/plotly/plotly/validators/icicle/domain/_x.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="x", parent_name="icicle.domain", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='x', + parent_name='icicle.domain', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}, {'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/domain/_y.py b/packages/python/plotly/plotly/validators/icicle/domain/_y.py index 7f1b2716c31..69adff3bfee 100644 --- a/packages/python/plotly/plotly/validators/icicle/domain/_y.py +++ b/packages/python/plotly/plotly/validators/icicle/domain/_y.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="y", parent_name="icicle.domain", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='y', + parent_name='icicle.domain', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}, {'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/icicle/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/icicle/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/icicle/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/icicle/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/icicle/hoverlabel/_align.py index 90bd15fc2b1..45487aa9f4d 100644 --- a/packages/python/plotly/plotly/validators/icicle/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/icicle/hoverlabel/_align.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="align", parent_name="icicle.hoverlabel", **kwargs): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='icicle.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/icicle/hoverlabel/_alignsrc.py index 68a205a02e6..a3122c73b71 100644 --- a/packages/python/plotly/plotly/validators/icicle/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="icicle.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='icicle.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/icicle/hoverlabel/_bgcolor.py index f335219b971..0c5cac525a5 100644 --- a/packages/python/plotly/plotly/validators/icicle/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/icicle/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="icicle.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='icicle.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/icicle/hoverlabel/_bgcolorsrc.py index 8e8ea94a61f..93851c89d5d 100644 --- a/packages/python/plotly/plotly/validators/icicle/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="icicle.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='icicle.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/icicle/hoverlabel/_bordercolor.py index 4fa9517db90..d18d1d0eac5 100644 --- a/packages/python/plotly/plotly/validators/icicle/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/icicle/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="icicle.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='icicle.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/icicle/hoverlabel/_bordercolorsrc.py index 8930e8627d7..583e79a137f 100644 --- a/packages/python/plotly/plotly/validators/icicle/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bordercolorsrc", parent_name="icicle.hoverlabel", **kwargs - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='icicle.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/icicle/hoverlabel/_font.py index b79b24df033..0706bd53456 100644 --- a/packages/python/plotly/plotly/validators/icicle/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/icicle/hoverlabel/_font.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="icicle.hoverlabel", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='icicle.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/icicle/hoverlabel/_namelength.py index e6b1dc6ab86..c34eebe9ec7 100644 --- a/packages/python/plotly/plotly/validators/icicle/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/icicle/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="icicle.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='icicle.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/icicle/hoverlabel/_namelengthsrc.py index 3e62c3f977b..d821f3be2c6 100644 --- a/packages/python/plotly/plotly/validators/icicle/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="icicle.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='icicle.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_color.py index f60ca7a3fdf..089c9f03f50 100644 --- a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="icicle.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='icicle.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_colorsrc.py index 7d39e7e48f6..da0507fe171 100644 --- a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="icicle.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='icicle.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_family.py index a0b8904360d..63dc485b40e 100644 --- a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="icicle.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='icicle.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_familysrc.py index 3c61be6ebf2..b6099ffd107 100644 --- a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="icicle.hoverlabel.font", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='icicle.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_lineposition.py index ecd666c229c..7c571426a19 100644 --- a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="icicle.hoverlabel.font", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='icicle.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_linepositionsrc.py index b56f2f35843..c57bdab4c6c 100644 --- a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="icicle.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='icicle.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_shadow.py index b23e767466f..93826583e8c 100644 --- a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="icicle.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='icicle.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_shadowsrc.py index d3e09a94a8a..ebe466113f1 100644 --- a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="icicle.hoverlabel.font", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='icicle.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_size.py index bee8eb002ba..540ef4ce87a 100644 --- a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="icicle.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='icicle.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_sizesrc.py index e7c578a1668..4e85cddfc71 100644 --- a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="icicle.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='icicle.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_style.py index eb286373940..229cc1bc817 100644 --- a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="icicle.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='icicle.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_stylesrc.py index f7cab2c9503..a454a3bcbbf 100644 --- a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="icicle.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='icicle.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_textcase.py index 481acec0833..0a51566a112 100644 --- a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="icicle.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='icicle.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_textcasesrc.py index 777202dac62..beee3e019ce 100644 --- a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="icicle.hoverlabel.font", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='icicle.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_variant.py index e9065a94e5b..9b56592804a 100644 --- a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="icicle.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='icicle.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_variantsrc.py index 603f8b038d7..caf14d4db18 100644 --- a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="icicle.hoverlabel.font", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='icicle.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_weight.py index 822c80c59b4..b1907b63a5d 100644 --- a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="icicle.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='icicle.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_weightsrc.py index 0f8b457f84e..68f9e006fff 100644 --- a/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/hoverlabel/font/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="icicle.hoverlabel.font", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='icicle.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/insidetextfont/__init__.py b/packages/python/plotly/plotly/validators/icicle/insidetextfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/icicle/insidetextfont/__init__.py +++ b/packages/python/plotly/plotly/validators/icicle/insidetextfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_color.py b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_color.py index baddd1252fd..49467bdfd6f 100644 --- a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_color.py +++ b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="icicle.insidetextfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='icicle.insidetextfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_colorsrc.py b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_colorsrc.py index 7ca2f56a060..b1960cd79f2 100644 --- a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="icicle.insidetextfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='icicle.insidetextfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_family.py b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_family.py index d8db490147b..24f45bf3370 100644 --- a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_family.py +++ b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="icicle.insidetextfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='icicle.insidetextfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_familysrc.py b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_familysrc.py index d2abfa9dd97..1e68882a4c6 100644 --- a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="icicle.insidetextfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='icicle.insidetextfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_lineposition.py b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_lineposition.py index 929cd431e18..e6b6c416584 100644 --- a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="icicle.insidetextfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='icicle.insidetextfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_linepositionsrc.py index 13af6771e07..50c0083ef19 100644 --- a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="icicle.insidetextfont", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='icicle.insidetextfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_shadow.py b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_shadow.py index f8713dc7cb3..3a3b4b407a0 100644 --- a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="icicle.insidetextfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='icicle.insidetextfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_shadowsrc.py index e335de9973c..b56d0ce5ed1 100644 --- a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="icicle.insidetextfont", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='icicle.insidetextfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_size.py b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_size.py index 97f7b7382fa..de6b581954b 100644 --- a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_size.py +++ b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="icicle.insidetextfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='icicle.insidetextfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_sizesrc.py b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_sizesrc.py index 3086ee58cd6..cb0cf603d2b 100644 --- a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="icicle.insidetextfont", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='icicle.insidetextfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_style.py b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_style.py index a5ffb8d2866..b3195c6f362 100644 --- a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_style.py +++ b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="icicle.insidetextfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='icicle.insidetextfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_stylesrc.py b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_stylesrc.py index 7cc5d4ba777..35436edc61c 100644 --- a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="icicle.insidetextfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='icicle.insidetextfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_textcase.py b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_textcase.py index 607800001e6..2777e68abbc 100644 --- a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="icicle.insidetextfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='icicle.insidetextfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_textcasesrc.py index 7d79d95844f..985850b1d59 100644 --- a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="icicle.insidetextfont", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='icicle.insidetextfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_variant.py b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_variant.py index 75702c481e9..ab4e62beb07 100644 --- a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_variant.py +++ b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="icicle.insidetextfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='icicle.insidetextfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_variantsrc.py b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_variantsrc.py index e45a0c09c16..70b33dc3d5a 100644 --- a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="icicle.insidetextfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='icicle.insidetextfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_weight.py b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_weight.py index 564d564ff28..89aae6f9e9c 100644 --- a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_weight.py +++ b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="icicle.insidetextfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='icicle.insidetextfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_weightsrc.py b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_weightsrc.py index 1436d068f06..8b72588eebc 100644 --- a/packages/python/plotly/plotly/validators/icicle/insidetextfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/insidetextfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="icicle.insidetextfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='icicle.insidetextfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/leaf/__init__.py b/packages/python/plotly/plotly/validators/icicle/leaf/__init__.py index 049134a716d..9128012434d 100644 --- a/packages/python/plotly/plotly/validators/icicle/leaf/__init__.py +++ b/packages/python/plotly/plotly/validators/icicle/leaf/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._opacity import OpacityValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._opacity.OpacityValidator"] + __name__, + [], + ['._opacity.OpacityValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/icicle/leaf/_opacity.py b/packages/python/plotly/plotly/validators/icicle/leaf/_opacity.py index 9e0b45cb745..eac821346c0 100644 --- a/packages/python/plotly/plotly/validators/icicle/leaf/_opacity.py +++ b/packages/python/plotly/plotly/validators/icicle/leaf/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="icicle.leaf", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='icicle.leaf', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/_font.py index 95ebba7f5ce..c74a85a3361 100644 --- a/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="icicle.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='icicle.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/_text.py index 4d1711fa808..43591927f88 100644 --- a/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="icicle.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='icicle.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_color.py index 7ba3447ebce..a6cb55f42d5 100644 --- a/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="icicle.legendgrouptitle.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='icicle.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_family.py index f091b18b4a1..eddce023fc6 100644 --- a/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="icicle.legendgrouptitle.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='icicle.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_lineposition.py index bb06b9ea2e4..dfbc15cb571 100644 --- a/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="icicle.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='icicle.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_shadow.py index 12c7d21e5cd..7a6776a15d4 100644 --- a/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="icicle.legendgrouptitle.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='icicle.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_size.py index 99b3d827e22..4c30286a230 100644 --- a/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="icicle.legendgrouptitle.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='icicle.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_style.py index 4885ec8af00..19be85c7970 100644 --- a/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="icicle.legendgrouptitle.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='icicle.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_textcase.py index 23a1348ad3b..9bbb767a1fd 100644 --- a/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="icicle.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='icicle.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_variant.py index f9f78706294..1f83a22c080 100644 --- a/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="icicle.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='icicle.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_weight.py index 0d5c3f8f445..0ac88ea4abe 100644 --- a/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/icicle/legendgrouptitle/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="icicle.legendgrouptitle.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='icicle.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/__init__.py b/packages/python/plotly/plotly/validators/icicle/marker/__init__.py index e04f18cc550..2f95ba22e7b 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._showscale import ShowscaleValidator from ._reversescale import ReversescaleValidator @@ -18,24 +17,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._showscale.ShowscaleValidator", - "._reversescale.ReversescaleValidator", - "._pattern.PatternValidator", - "._line.LineValidator", - "._colorssrc.ColorssrcValidator", - "._colorscale.ColorscaleValidator", - "._colors.ColorsValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._showscale.ShowscaleValidator', '._reversescale.ReversescaleValidator', '._pattern.PatternValidator', '._line.LineValidator', '._colorssrc.ColorssrcValidator', '._colorscale.ColorscaleValidator', '._colors.ColorsValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/icicle/marker/_autocolorscale.py b/packages/python/plotly/plotly/validators/icicle/marker/_autocolorscale.py index fbda823fd51..dd3b414056d 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="icicle.marker", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='icicle.marker', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/_cauto.py b/packages/python/plotly/plotly/validators/icicle/marker/_cauto.py index 0d8e75843de..29daccf2218 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/_cauto.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/_cauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cauto", parent_name="icicle.marker", **kwargs): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='icicle.marker', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/_cmax.py b/packages/python/plotly/plotly/validators/icicle/marker/_cmax.py index 34f0f483cec..2045d3edec0 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/_cmax.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/_cmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmax", parent_name="icicle.marker", **kwargs): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='icicle.marker', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/_cmid.py b/packages/python/plotly/plotly/validators/icicle/marker/_cmid.py index 6e1d2a2fa2b..bf6425281e9 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/_cmid.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/_cmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmid", parent_name="icicle.marker", **kwargs): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='icicle.marker', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/_cmin.py b/packages/python/plotly/plotly/validators/icicle/marker/_cmin.py index 6adff68d910..5e28d63e5b2 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/_cmin.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/_cmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmin", parent_name="icicle.marker", **kwargs): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='icicle.marker', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/_coloraxis.py b/packages/python/plotly/plotly/validators/icicle/marker/_coloraxis.py index df64c293f4e..f2e10b3bb60 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/_coloraxis.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="coloraxis", parent_name="icicle.marker", **kwargs): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='icicle.marker', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/_colorbar.py b/packages/python/plotly/plotly/validators/icicle/marker/_colorbar.py index d2eb2afe7c4..f038cb72eb3 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/_colorbar.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/_colorbar.py @@ -1,280 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="colorbar", parent_name="icicle.marker", **kwargs): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.icicle. - marker.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.icicle.marker.colorbar.tickformatstopdefaults - ), sets the default property values to use for - elements of - icicle.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.icicle.marker.colo - rbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='icicle.marker', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/_colors.py b/packages/python/plotly/plotly/validators/icicle/marker/_colors.py index 88126c233a4..bf62df47a32 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/_colors.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/_colors.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="colors", parent_name="icicle.marker", **kwargs): - super(ColorsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='colors', + parent_name='icicle.marker', + **kwargs): + super(ColorsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/_colorscale.py b/packages/python/plotly/plotly/validators/icicle/marker/_colorscale.py index 0613df37d72..2e3bb675597 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/_colorscale.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/_colorscale.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__(self, plotly_name="colorscale", parent_name="icicle.marker", **kwargs): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='icicle.marker', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/_colorssrc.py b/packages/python/plotly/plotly/validators/icicle/marker/_colorssrc.py index 2e3dd48567b..67a367da286 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/_colorssrc.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/_colorssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="colorssrc", parent_name="icicle.marker", **kwargs): - super(ColorssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorssrc', + parent_name='icicle.marker', + **kwargs): + super(ColorssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/_line.py b/packages/python/plotly/plotly/validators/icicle/marker/_line.py index d8214e5693f..eee730e5925 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/_line.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/_line.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="icicle.marker", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the color of the line enclosing each - sector. Defaults to the `paper_bgcolor` value. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - width - Sets the width (in px) of the line enclosing - each sector. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='icicle.marker', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/_pattern.py b/packages/python/plotly/plotly/validators/icicle/marker/_pattern.py index 7012c43eb38..26744440db8 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/_pattern.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/_pattern.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class PatternValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="pattern", parent_name="icicle.marker", **kwargs): - super(PatternValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Pattern"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - When there is no colorscale sets the color of - background pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "overlay". Otherwise, defaults to a transparent - background. - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - fgcolor - When there is no colorscale sets the color of - foreground pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "replace". Otherwise, defaults to dark grey or - white to increase contrast with the `bgcolor`. - fgcolorsrc - Sets the source reference on Chart Studio Cloud - for `fgcolor`. - fgopacity - Sets the opacity of the foreground pattern - fill. Defaults to a 0.5 when `fillmode` is - "overlay". Otherwise, defaults to 1. - fillmode - Determines whether `marker.color` should be - used as a default to `bgcolor` or a `fgcolor`. - shape - Sets the shape of the pattern fill. By default, - no pattern is used for filling the area. - shapesrc - Sets the source reference on Chart Studio Cloud - for `shape`. - size - Sets the size of unit squares of the pattern - fill in pixels, which corresponds to the - interval of repetition of the pattern. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - solidity - Sets the solidity of the pattern fill. Solidity - is roughly the fraction of the area filled by - the pattern. Solidity of 0 shows only the - background color without pattern and solidty of - 1 shows only the foreground color without - pattern. - soliditysrc - Sets the source reference on Chart Studio Cloud - for `solidity`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class PatternValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='pattern', + parent_name='icicle.marker', + **kwargs): + super(PatternValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Pattern'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/_reversescale.py b/packages/python/plotly/plotly/validators/icicle/marker/_reversescale.py index c1ebc8e1cde..26a34ee946b 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/_reversescale.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="icicle.marker", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='icicle.marker', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/_showscale.py b/packages/python/plotly/plotly/validators/icicle/marker/_showscale.py index c8f6effec0a..52be02c720e 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/_showscale.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/_showscale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showscale", parent_name="icicle.marker", **kwargs): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='icicle.marker', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_bgcolor.py index fa9f5783b21..3dd4febfe8d 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="icicle.marker.colorbar", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='icicle.marker.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_bordercolor.py index 1da5ce7de52..036822bd22f 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="icicle.marker.colorbar", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='icicle.marker.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_borderwidth.py index db62d8b4236..ba3d03dfbca 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_borderwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderwidth", parent_name="icicle.marker.colorbar", **kwargs - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='icicle.marker.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_dtick.py index 7d546f422bd..317d5f02f81 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="icicle.marker.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='icicle.marker.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_exponentformat.py index e605ed8825d..f878481048d 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_exponentformat.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="exponentformat", - parent_name="icicle.marker.colorbar", - **kwargs, - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='icicle.marker.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_labelalias.py index 0e22588ca37..f56984389af 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="icicle.marker.colorbar", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='icicle.marker.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_len.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_len.py index 2741afb7659..ddc0d8203d9 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_len.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="len", parent_name="icicle.marker.colorbar", **kwargs - ): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='icicle.marker.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_lenmode.py index e36b8704a50..746de8a2c31 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_lenmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="lenmode", parent_name="icicle.marker.colorbar", **kwargs - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='icicle.marker.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_minexponent.py index 5b104b90a66..f4568229b9b 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="icicle.marker.colorbar", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='icicle.marker.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_nticks.py index 1db940d8349..9ee9ca00ce6 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="icicle.marker.colorbar", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='icicle.marker.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_orientation.py index f692ef4c9d3..4b8bd6a6bf3 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_orientation.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="orientation", parent_name="icicle.marker.colorbar", **kwargs - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='icicle.marker.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_outlinecolor.py index 230aa641fe0..320425b864f 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_outlinecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="outlinecolor", parent_name="icicle.marker.colorbar", **kwargs - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='icicle.marker.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_outlinewidth.py index 422cd26db59..f885a6dbcd6 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_outlinewidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="outlinewidth", parent_name="icicle.marker.colorbar", **kwargs - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='icicle.marker.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_separatethousands.py index aaece5240f0..54683a44985 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="icicle.marker.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='icicle.marker.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_showexponent.py index d7be46bd1bc..afc3881b688 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="icicle.marker.colorbar", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='icicle.marker.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_showticklabels.py index 6283fafe5b9..e9cef511567 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="icicle.marker.colorbar", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='icicle.marker.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_showtickprefix.py index c52591689c6..6469843aa6c 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="icicle.marker.colorbar", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='icicle.marker.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_showticksuffix.py index f89842776f7..379ee2f9375 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="icicle.marker.colorbar", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='icicle.marker.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_thickness.py index 5f2d68ec6a2..6bb4d3af749 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="icicle.marker.colorbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='icicle.marker.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_thicknessmode.py index 63d79127e72..113b1d5a3aa 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_thicknessmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="thicknessmode", - parent_name="icicle.marker.colorbar", - **kwargs, - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='icicle.marker.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tick0.py index 445f4d68299..b356e2937e6 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="icicle.marker.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='icicle.marker.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickangle.py index f7209bcc24d..8584313a4f0 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="icicle.marker.colorbar", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='icicle.marker.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickcolor.py index 16b55ff9d88..285ab9023ff 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="icicle.marker.colorbar", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='icicle.marker.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickfont.py index e5aecba7266..a9943c2c2f3 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="icicle.marker.colorbar", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='icicle.marker.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickformat.py index b8477594450..4549e2c8d3a 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="icicle.marker.colorbar", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='icicle.marker.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickformatstopdefaults.py index 197c5cc571c..c374fdd3415 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="icicle.marker.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='icicle.marker.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickformatstops.py index 445c5a27b24..1234cedb52d 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="icicle.marker.colorbar", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='icicle.marker.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticklabeloverflow.py index be916f41a1f..239d2aacdad 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="icicle.marker.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='icicle.marker.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticklabelposition.py index 1cec6e94eb1..7b6df5687f6 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="icicle.marker.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='icicle.marker.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticklabelstep.py index 797ca3d141b..5f914bdb58c 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticklabelstep.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="ticklabelstep", - parent_name="icicle.marker.colorbar", - **kwargs, - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='icicle.marker.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticklen.py index c0554e8a2b1..515b09c7c06 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="icicle.marker.colorbar", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='icicle.marker.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickmode.py index 903047f6985..f7a18668685 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="icicle.marker.colorbar", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='icicle.marker.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickprefix.py index e767a51254b..dd8adf1f6ff 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="icicle.marker.colorbar", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='icicle.marker.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticks.py index 18b78bc9300..ddb1c784631 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="icicle.marker.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='icicle.marker.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticksuffix.py index 34a95ece975..d16cbbd95e9 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="icicle.marker.colorbar", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='icicle.marker.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticktext.py index b52c764e663..dd6e1b01588 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="icicle.marker.colorbar", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='icicle.marker.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticktextsrc.py index 2ffed910548..b454d5357a1 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="icicle.marker.colorbar", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='icicle.marker.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickvals.py index 78abd1be59d..779c6a258bf 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="icicle.marker.colorbar", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='icicle.marker.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickvalssrc.py index dfebf55f409..3c93f196a2a 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="icicle.marker.colorbar", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='icicle.marker.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickwidth.py index 5b62b4f0b29..291d23ca6d6 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="icicle.marker.colorbar", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='icicle.marker.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_title.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_title.py index 7c843601add..ea2d91e53f1 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="icicle.marker.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='icicle.marker.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_x.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_x.py index b6785a4d3a9..09135a49012 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x", parent_name="icicle.marker.colorbar", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='icicle.marker.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_xanchor.py index 87db6a87590..7a228a3da39 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="icicle.marker.colorbar", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='icicle.marker.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_xpad.py index a7b622b57bf..467f49a0e80 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_xpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="xpad", parent_name="icicle.marker.colorbar", **kwargs - ): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='icicle.marker.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_xref.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_xref.py index a38099956ac..66add89ea53 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xref", parent_name="icicle.marker.colorbar", **kwargs - ): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='icicle.marker.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_y.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_y.py index 4c0182ae494..ae7bed7bfb1 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y", parent_name="icicle.marker.colorbar", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='icicle.marker.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_yanchor.py index a6183bd8cb5..37d58b22824 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="icicle.marker.colorbar", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='icicle.marker.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ypad.py index d9cd5245fd3..deb27538c6f 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_ypad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ypad", parent_name="icicle.marker.colorbar", **kwargs - ): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='icicle.marker.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_yref.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_yref.py index 386ff0d3807..a050515d685 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yref", parent_name="icicle.marker.colorbar", **kwargs - ): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='icicle.marker.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_color.py index d443183a5be..7721b79527d 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="icicle.marker.colorbar.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='icicle.marker.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_family.py index 6fed1a7824f..ff6c3e7c95f 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="icicle.marker.colorbar.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='icicle.marker.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_lineposition.py index 299c09df741..027e0c9e1aa 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="icicle.marker.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='icicle.marker.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_shadow.py index 009eacd5532..df57f047dac 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="icicle.marker.colorbar.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='icicle.marker.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_size.py index 04e6a0eec09..0ab4b1ba130 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="icicle.marker.colorbar.tickfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='icicle.marker.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_style.py index 7c0750eb39d..867ea41e497 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="icicle.marker.colorbar.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='icicle.marker.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_textcase.py index cc25281e4d0..c3b130213ef 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="icicle.marker.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='icicle.marker.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_variant.py index 8bbb85255a1..aac80e18a98 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="icicle.marker.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='icicle.marker.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_weight.py index 2c26c2dd78f..2f7acf29886 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="icicle.marker.colorbar.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='icicle.marker.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickformatstop/_dtickrange.py index 57d8ad3b089..60830c62c3d 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="icicle.marker.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - items=kwargs.pop( - "items", - [ - {"editType": "colorbars", "valType": "any"}, - {"editType": "colorbars", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='icicle.marker.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + items=kwargs.pop('items', [{'editType': 'colorbars', 'valType': 'any'}, {'editType': 'colorbars', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickformatstop/_enabled.py index 9e59dced6cc..68fe15e13eb 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="icicle.marker.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='icicle.marker.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickformatstop/_name.py index 1cdad308dba..676669f1dd5 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="icicle.marker.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='icicle.marker.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickformatstop/_templateitemname.py index 1fabf12e9ef..d62bf4da8b3 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="icicle.marker.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='icicle.marker.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickformatstop/_value.py index 884c5d4acbb..ffa66a1c48c 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="icicle.marker.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='icicle.marker.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/_font.py index 5d21f53fa47..bb4a9187c3f 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="icicle.marker.colorbar.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='icicle.marker.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/_side.py index 1abdac5d20f..1b8859061c3 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/_side.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="side", parent_name="icicle.marker.colorbar.title", **kwargs - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='icicle.marker.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/_text.py index 7740a24f936..2d639bd12dd 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="icicle.marker.colorbar.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='icicle.marker.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_color.py index 01f4bbf3b6f..e1726ba7032 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="icicle.marker.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='icicle.marker.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_family.py index cc0616510f0..7b62c064566 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="icicle.marker.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='icicle.marker.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_lineposition.py index 85803587af2..4bf919fb975 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="icicle.marker.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='icicle.marker.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_shadow.py index 6ddc7cef5e4..e3a37941f11 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="icicle.marker.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='icicle.marker.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_size.py index f8e6e0bf8eb..19207355030 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="icicle.marker.colorbar.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='icicle.marker.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_style.py index 7a9f9b5a26a..3c9d4d1e6a9 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="icicle.marker.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='icicle.marker.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_textcase.py index 13d933911e1..53f88ece936 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="icicle.marker.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='icicle.marker.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_variant.py index 715af89e21d..be7e36b8aa9 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="icicle.marker.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='icicle.marker.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_weight.py index 2e2036b9e0f..9eaa128d9e3 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="icicle.marker.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='icicle.marker.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/line/__init__.py b/packages/python/plotly/plotly/validators/icicle/marker/line/__init__.py index a2b9e1ae50c..522c01899cf 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._widthsrc import WidthsrcValidator from ._width import WidthValidator @@ -8,14 +7,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._widthsrc.WidthsrcValidator", - "._width.WidthValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._widthsrc.WidthsrcValidator', '._width.WidthValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/icicle/marker/line/_color.py b/packages/python/plotly/plotly/validators/icicle/marker/line/_color.py index 843330469ad..890a6f65492 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/line/_color.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/line/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="icicle.marker.line", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='icicle.marker.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/line/_colorsrc.py b/packages/python/plotly/plotly/validators/icicle/marker/line/_colorsrc.py index 7acea6a22e9..a859454ffc7 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/line/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/line/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="icicle.marker.line", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='icicle.marker.line', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/line/_width.py b/packages/python/plotly/plotly/validators/icicle/marker/line/_width.py index e191ed688ae..c558d820c8b 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/line/_width.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/line/_width.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="icicle.marker.line", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='icicle.marker.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/line/_widthsrc.py b/packages/python/plotly/plotly/validators/icicle/marker/line/_widthsrc.py index fd5cce9896d..0ecc8b48fe7 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/line/_widthsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/line/_widthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="widthsrc", parent_name="icicle.marker.line", **kwargs - ): - super(WidthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='widthsrc', + parent_name='icicle.marker.line', + **kwargs): + super(WidthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/pattern/__init__.py b/packages/python/plotly/plotly/validators/icicle/marker/pattern/__init__.py index e190f962c46..de3616dbc8a 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/pattern/__init__.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/pattern/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._soliditysrc import SoliditysrcValidator from ._solidity import SolidityValidator @@ -16,22 +15,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._soliditysrc.SoliditysrcValidator", - "._solidity.SolidityValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shapesrc.ShapesrcValidator", - "._shape.ShapeValidator", - "._fillmode.FillmodeValidator", - "._fgopacity.FgopacityValidator", - "._fgcolorsrc.FgcolorsrcValidator", - "._fgcolor.FgcolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - ], + ['._soliditysrc.SoliditysrcValidator', '._solidity.SolidityValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shapesrc.ShapesrcValidator', '._shape.ShapeValidator', '._fillmode.FillmodeValidator', '._fgopacity.FgopacityValidator', '._fgcolorsrc.FgcolorsrcValidator', '._fgcolor.FgcolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/icicle/marker/pattern/_bgcolor.py b/packages/python/plotly/plotly/validators/icicle/marker/pattern/_bgcolor.py index 52bf7209a5a..97155109455 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/pattern/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/pattern/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="icicle.marker.pattern", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='icicle.marker.pattern', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/pattern/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/icicle/marker/pattern/_bgcolorsrc.py index fc5488453b9..392e8e31865 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/pattern/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/pattern/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="icicle.marker.pattern", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='icicle.marker.pattern', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/pattern/_fgcolor.py b/packages/python/plotly/plotly/validators/icicle/marker/pattern/_fgcolor.py index afe0c597b6e..29638070874 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/pattern/_fgcolor.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/pattern/_fgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class FgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="fgcolor", parent_name="icicle.marker.pattern", **kwargs - ): - super(FgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fgcolor', + parent_name='icicle.marker.pattern', + **kwargs): + super(FgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/pattern/_fgcolorsrc.py b/packages/python/plotly/plotly/validators/icicle/marker/pattern/_fgcolorsrc.py index 8a8763ab18a..d296c41fc91 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/pattern/_fgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/pattern/_fgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="fgcolorsrc", parent_name="icicle.marker.pattern", **kwargs - ): - super(FgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='fgcolorsrc', + parent_name='icicle.marker.pattern', + **kwargs): + super(FgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/pattern/_fgopacity.py b/packages/python/plotly/plotly/validators/icicle/marker/pattern/_fgopacity.py index c1fe3284506..6cc413375be 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/pattern/_fgopacity.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/pattern/_fgopacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FgopacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="fgopacity", parent_name="icicle.marker.pattern", **kwargs - ): - super(FgopacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FgopacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fgopacity', + parent_name='icicle.marker.pattern', + **kwargs): + super(FgopacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/pattern/_fillmode.py b/packages/python/plotly/plotly/validators/icicle/marker/pattern/_fillmode.py index 891ad6586ae..db75cf72823 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/pattern/_fillmode.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/pattern/_fillmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class FillmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="fillmode", parent_name="icicle.marker.pattern", **kwargs - ): - super(FillmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["replace", "overlay"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='fillmode', + parent_name='icicle.marker.pattern', + **kwargs): + super(FillmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['replace', 'overlay']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/pattern/_shape.py b/packages/python/plotly/plotly/validators/icicle/marker/pattern/_shape.py index 0a37785fe01..24111a96096 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/pattern/_shape.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/pattern/_shape.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="shape", parent_name="icicle.marker.pattern", **kwargs - ): - super(ShapeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["", "/", "\\", "x", "-", "|", "+", "."]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShapeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='shape', + parent_name='icicle.marker.pattern', + **kwargs): + super(ShapeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['', '/', '\\', 'x', '-', '|', '+', '.']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/pattern/_shapesrc.py b/packages/python/plotly/plotly/validators/icicle/marker/pattern/_shapesrc.py index 708ee5a3237..96f3fc4debe 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/pattern/_shapesrc.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/pattern/_shapesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShapesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shapesrc", parent_name="icicle.marker.pattern", **kwargs - ): - super(ShapesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShapesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shapesrc', + parent_name='icicle.marker.pattern', + **kwargs): + super(ShapesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/pattern/_size.py b/packages/python/plotly/plotly/validators/icicle/marker/pattern/_size.py index 97d803323d3..6a1198a3c41 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/pattern/_size.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/pattern/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="icicle.marker.pattern", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='icicle.marker.pattern', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/pattern/_sizesrc.py b/packages/python/plotly/plotly/validators/icicle/marker/pattern/_sizesrc.py index ef876769108..19766aee55c 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/pattern/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/pattern/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="icicle.marker.pattern", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='icicle.marker.pattern', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/pattern/_solidity.py b/packages/python/plotly/plotly/validators/icicle/marker/pattern/_solidity.py index 4b7dc624543..be723d4c090 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/pattern/_solidity.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/pattern/_solidity.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class SolidityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="solidity", parent_name="icicle.marker.pattern", **kwargs - ): - super(SolidityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SolidityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='solidity', + parent_name='icicle.marker.pattern', + **kwargs): + super(SolidityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/marker/pattern/_soliditysrc.py b/packages/python/plotly/plotly/validators/icicle/marker/pattern/_soliditysrc.py index caf94f84f91..a06ad8f6cd7 100644 --- a/packages/python/plotly/plotly/validators/icicle/marker/pattern/_soliditysrc.py +++ b/packages/python/plotly/plotly/validators/icicle/marker/pattern/_soliditysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SoliditysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="soliditysrc", parent_name="icicle.marker.pattern", **kwargs - ): - super(SoliditysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SoliditysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='soliditysrc', + parent_name='icicle.marker.pattern', + **kwargs): + super(SoliditysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/__init__.py b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/__init__.py +++ b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_color.py b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_color.py index 37ae1a43364..7a03f14ff24 100644 --- a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_color.py +++ b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="icicle.outsidetextfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='icicle.outsidetextfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_colorsrc.py b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_colorsrc.py index fd77cab3718..535b6d2c588 100644 --- a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="icicle.outsidetextfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='icicle.outsidetextfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_family.py b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_family.py index c8ba28e6cea..95fe12848ef 100644 --- a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_family.py +++ b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="icicle.outsidetextfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='icicle.outsidetextfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_familysrc.py b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_familysrc.py index f7b81cae63c..e27e2093fd5 100644 --- a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="icicle.outsidetextfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='icicle.outsidetextfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_lineposition.py b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_lineposition.py index 5123b343d2c..5acf61deade 100644 --- a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="icicle.outsidetextfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='icicle.outsidetextfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_linepositionsrc.py index 263608b4cb6..91ff0871b95 100644 --- a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="icicle.outsidetextfont", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='icicle.outsidetextfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_shadow.py b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_shadow.py index c8bbfa24bf0..d1ec59b6f08 100644 --- a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="icicle.outsidetextfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='icicle.outsidetextfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_shadowsrc.py index 2dddd9c2eed..8321a4f4eab 100644 --- a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="icicle.outsidetextfont", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='icicle.outsidetextfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_size.py b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_size.py index 6ab4657ec2d..9a68252c57c 100644 --- a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_size.py +++ b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="icicle.outsidetextfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='icicle.outsidetextfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_sizesrc.py b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_sizesrc.py index 130257818b2..1ca65257f27 100644 --- a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="icicle.outsidetextfont", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='icicle.outsidetextfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_style.py b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_style.py index 2f06a6f7b0e..b5dbac6cfe0 100644 --- a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_style.py +++ b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="icicle.outsidetextfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='icicle.outsidetextfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_stylesrc.py b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_stylesrc.py index 8e56130ee8d..b8a57605d3d 100644 --- a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="icicle.outsidetextfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='icicle.outsidetextfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_textcase.py b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_textcase.py index 2f452ad98c7..afba963d193 100644 --- a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="icicle.outsidetextfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='icicle.outsidetextfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_textcasesrc.py index 188b0ae2da0..51fd6af4619 100644 --- a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="icicle.outsidetextfont", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='icicle.outsidetextfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_variant.py b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_variant.py index 6665931eb3f..1b65a6bdd84 100644 --- a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_variant.py +++ b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="icicle.outsidetextfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='icicle.outsidetextfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_variantsrc.py b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_variantsrc.py index d66f62842b8..9a0af222724 100644 --- a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="icicle.outsidetextfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='icicle.outsidetextfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_weight.py b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_weight.py index ed8c7f99159..dd9508c5549 100644 --- a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_weight.py +++ b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="icicle.outsidetextfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='icicle.outsidetextfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_weightsrc.py b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_weightsrc.py index 0f205078817..473df305ed8 100644 --- a/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/outsidetextfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="icicle.outsidetextfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='icicle.outsidetextfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/pathbar/__init__.py b/packages/python/plotly/plotly/validators/icicle/pathbar/__init__.py index fce05faf911..e4717728228 100644 --- a/packages/python/plotly/plotly/validators/icicle/pathbar/__init__.py +++ b/packages/python/plotly/plotly/validators/icicle/pathbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._thickness import ThicknessValidator @@ -9,15 +8,10 @@ from ._edgeshape import EdgeshapeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._thickness.ThicknessValidator", - "._textfont.TextfontValidator", - "._side.SideValidator", - "._edgeshape.EdgeshapeValidator", - ], + ['._visible.VisibleValidator', '._thickness.ThicknessValidator', '._textfont.TextfontValidator', '._side.SideValidator', '._edgeshape.EdgeshapeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/icicle/pathbar/_edgeshape.py b/packages/python/plotly/plotly/validators/icicle/pathbar/_edgeshape.py index d02e2f9bfb4..2d8e49cd75f 100644 --- a/packages/python/plotly/plotly/validators/icicle/pathbar/_edgeshape.py +++ b/packages/python/plotly/plotly/validators/icicle/pathbar/_edgeshape.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class EdgeshapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="edgeshape", parent_name="icicle.pathbar", **kwargs): - super(EdgeshapeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", [">", "<", "|", "/", "\\"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class EdgeshapeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='edgeshape', + parent_name='icicle.pathbar', + **kwargs): + super(EdgeshapeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['>', '<', '|', '/', '\\']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/pathbar/_side.py b/packages/python/plotly/plotly/validators/icicle/pathbar/_side.py index b095adbdb9c..cccd724d290 100644 --- a/packages/python/plotly/plotly/validators/icicle/pathbar/_side.py +++ b/packages/python/plotly/plotly/validators/icicle/pathbar/_side.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="side", parent_name="icicle.pathbar", **kwargs): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["top", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='icicle.pathbar', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/pathbar/_textfont.py b/packages/python/plotly/plotly/validators/icicle/pathbar/_textfont.py index b21c0850b18..4e934ca301a 100644 --- a/packages/python/plotly/plotly/validators/icicle/pathbar/_textfont.py +++ b/packages/python/plotly/plotly/validators/icicle/pathbar/_textfont.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="textfont", parent_name="icicle.pathbar", **kwargs): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='icicle.pathbar', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/pathbar/_thickness.py b/packages/python/plotly/plotly/validators/icicle/pathbar/_thickness.py index b5f221b2af8..103306854f7 100644 --- a/packages/python/plotly/plotly/validators/icicle/pathbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/icicle/pathbar/_thickness.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="thickness", parent_name="icicle.pathbar", **kwargs): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 12), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='icicle.pathbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 12), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/pathbar/_visible.py b/packages/python/plotly/plotly/validators/icicle/pathbar/_visible.py index ada8813be22..5d100e4546c 100644 --- a/packages/python/plotly/plotly/validators/icicle/pathbar/_visible.py +++ b/packages/python/plotly/plotly/validators/icicle/pathbar/_visible.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="visible", parent_name="icicle.pathbar", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='icicle.pathbar', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/__init__.py b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_color.py b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_color.py index bb2bedf1814..5b1bf850fa0 100644 --- a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="icicle.pathbar.textfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='icicle.pathbar.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_colorsrc.py b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_colorsrc.py index a0ed0ccb793..29e7db34e0b 100644 --- a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="icicle.pathbar.textfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='icicle.pathbar.textfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_family.py b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_family.py index 5d7765f18ab..53227e1974a 100644 --- a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_family.py +++ b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="icicle.pathbar.textfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='icicle.pathbar.textfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_familysrc.py b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_familysrc.py index 5c796307227..35e1da19ab3 100644 --- a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="icicle.pathbar.textfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='icicle.pathbar.textfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_lineposition.py b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_lineposition.py index f1e7f7b06cb..6f0f5e969ac 100644 --- a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="icicle.pathbar.textfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='icicle.pathbar.textfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_linepositionsrc.py index 4aa154ed127..f484af4f6dc 100644 --- a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="icicle.pathbar.textfont", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='icicle.pathbar.textfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_shadow.py b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_shadow.py index f50fb8d0777..ce27507363a 100644 --- a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="icicle.pathbar.textfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='icicle.pathbar.textfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_shadowsrc.py index 2b088b57e06..6a511b6dfaf 100644 --- a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="icicle.pathbar.textfont", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='icicle.pathbar.textfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_size.py b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_size.py index 4274a380a37..21d4852e7b5 100644 --- a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_size.py +++ b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="icicle.pathbar.textfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='icicle.pathbar.textfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_sizesrc.py b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_sizesrc.py index 1602cbf797f..4c6db45894f 100644 --- a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="icicle.pathbar.textfont", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='icicle.pathbar.textfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_style.py b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_style.py index f63ad2b5588..6399ac2f8f3 100644 --- a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_style.py +++ b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="icicle.pathbar.textfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='icicle.pathbar.textfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_stylesrc.py b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_stylesrc.py index 4b7dd89d4a5..d7865037ede 100644 --- a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="icicle.pathbar.textfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='icicle.pathbar.textfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_textcase.py b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_textcase.py index 37b1002cc4e..81e65ac9484 100644 --- a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="icicle.pathbar.textfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='icicle.pathbar.textfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_textcasesrc.py index 41e0ba85d77..106511605e5 100644 --- a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="icicle.pathbar.textfont", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='icicle.pathbar.textfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_variant.py b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_variant.py index 79dddab9c7f..7141b921ea7 100644 --- a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_variant.py +++ b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="icicle.pathbar.textfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='icicle.pathbar.textfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_variantsrc.py b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_variantsrc.py index c9fa845ff87..ccfe8289bc6 100644 --- a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="icicle.pathbar.textfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='icicle.pathbar.textfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_weight.py b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_weight.py index 820ef39d424..a5226752972 100644 --- a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_weight.py +++ b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="icicle.pathbar.textfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='icicle.pathbar.textfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_weightsrc.py b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_weightsrc.py index 8f3a40df645..13c9cbdf247 100644 --- a/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/pathbar/textfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="icicle.pathbar.textfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='icicle.pathbar.textfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/root/__init__.py b/packages/python/plotly/plotly/validators/icicle/root/__init__.py index a9f087e5af1..86899e5cc51 100644 --- a/packages/python/plotly/plotly/validators/icicle/root/__init__.py +++ b/packages/python/plotly/plotly/validators/icicle/root/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._color.ColorValidator"] + __name__, + [], + ['._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/icicle/root/_color.py b/packages/python/plotly/plotly/validators/icicle/root/_color.py index 5089205ea85..66a70315128 100644 --- a/packages/python/plotly/plotly/validators/icicle/root/_color.py +++ b/packages/python/plotly/plotly/validators/icicle/root/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="icicle.root", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='icicle.root', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/stream/__init__.py b/packages/python/plotly/plotly/validators/icicle/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/icicle/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/icicle/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/icicle/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/icicle/stream/_maxpoints.py index b7e615cfeec..2fdc6022d48 100644 --- a/packages/python/plotly/plotly/validators/icicle/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/icicle/stream/_maxpoints.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="maxpoints", parent_name="icicle.stream", **kwargs): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='icicle.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/stream/_token.py b/packages/python/plotly/plotly/validators/icicle/stream/_token.py index 8f8cec7f6b7..a7a1aec03b7 100644 --- a/packages/python/plotly/plotly/validators/icicle/stream/_token.py +++ b/packages/python/plotly/plotly/validators/icicle/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="icicle.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='icicle.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/textfont/__init__.py b/packages/python/plotly/plotly/validators/icicle/textfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/icicle/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/icicle/textfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/icicle/textfont/_color.py b/packages/python/plotly/plotly/validators/icicle/textfont/_color.py index a41dcffa299..2970c27fa9d 100644 --- a/packages/python/plotly/plotly/validators/icicle/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/icicle/textfont/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="icicle.textfont", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='icicle.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/textfont/_colorsrc.py b/packages/python/plotly/plotly/validators/icicle/textfont/_colorsrc.py index 453b0432531..60c45303f52 100644 --- a/packages/python/plotly/plotly/validators/icicle/textfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/textfont/_colorsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="colorsrc", parent_name="icicle.textfont", **kwargs): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='icicle.textfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/textfont/_family.py b/packages/python/plotly/plotly/validators/icicle/textfont/_family.py index c91ba6fc2c8..6f2d1a48925 100644 --- a/packages/python/plotly/plotly/validators/icicle/textfont/_family.py +++ b/packages/python/plotly/plotly/validators/icicle/textfont/_family.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="family", parent_name="icicle.textfont", **kwargs): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='icicle.textfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/textfont/_familysrc.py b/packages/python/plotly/plotly/validators/icicle/textfont/_familysrc.py index 212a684cc5f..dc49fae9b99 100644 --- a/packages/python/plotly/plotly/validators/icicle/textfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/icicle/textfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="icicle.textfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='icicle.textfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/textfont/_lineposition.py b/packages/python/plotly/plotly/validators/icicle/textfont/_lineposition.py index b51f6fe39d5..b047f662213 100644 --- a/packages/python/plotly/plotly/validators/icicle/textfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/icicle/textfont/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="icicle.textfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='icicle.textfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/textfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/icicle/textfont/_linepositionsrc.py index 94f77c6d28c..1cdf5b664c3 100644 --- a/packages/python/plotly/plotly/validators/icicle/textfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/textfont/_linepositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="linepositionsrc", parent_name="icicle.textfont", **kwargs - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='icicle.textfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/textfont/_shadow.py b/packages/python/plotly/plotly/validators/icicle/textfont/_shadow.py index d47e60f6c10..a9bd97f1cc8 100644 --- a/packages/python/plotly/plotly/validators/icicle/textfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/icicle/textfont/_shadow.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="shadow", parent_name="icicle.textfont", **kwargs): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='icicle.textfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/textfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/icicle/textfont/_shadowsrc.py index 2aa75ffa788..d5e17440e4e 100644 --- a/packages/python/plotly/plotly/validators/icicle/textfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/textfont/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="icicle.textfont", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='icicle.textfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/textfont/_size.py b/packages/python/plotly/plotly/validators/icicle/textfont/_size.py index 96844a1cf44..45dac496e97 100644 --- a/packages/python/plotly/plotly/validators/icicle/textfont/_size.py +++ b/packages/python/plotly/plotly/validators/icicle/textfont/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="icicle.textfont", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='icicle.textfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/textfont/_sizesrc.py b/packages/python/plotly/plotly/validators/icicle/textfont/_sizesrc.py index e69fea923e1..1fedec5fc63 100644 --- a/packages/python/plotly/plotly/validators/icicle/textfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/icicle/textfont/_sizesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="sizesrc", parent_name="icicle.textfont", **kwargs): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='icicle.textfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/textfont/_style.py b/packages/python/plotly/plotly/validators/icicle/textfont/_style.py index 83e706a6d70..b42be86b25e 100644 --- a/packages/python/plotly/plotly/validators/icicle/textfont/_style.py +++ b/packages/python/plotly/plotly/validators/icicle/textfont/_style.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="style", parent_name="icicle.textfont", **kwargs): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='icicle.textfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/textfont/_stylesrc.py b/packages/python/plotly/plotly/validators/icicle/textfont/_stylesrc.py index 3e2916f4ae6..78049a69f91 100644 --- a/packages/python/plotly/plotly/validators/icicle/textfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/icicle/textfont/_stylesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="stylesrc", parent_name="icicle.textfont", **kwargs): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='icicle.textfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/textfont/_textcase.py b/packages/python/plotly/plotly/validators/icicle/textfont/_textcase.py index 55b2d24e75d..f63de8151f6 100644 --- a/packages/python/plotly/plotly/validators/icicle/textfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/icicle/textfont/_textcase.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="textcase", parent_name="icicle.textfont", **kwargs): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='icicle.textfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/textfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/icicle/textfont/_textcasesrc.py index fb00ea84787..5bed09150e3 100644 --- a/packages/python/plotly/plotly/validators/icicle/textfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/icicle/textfont/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="icicle.textfont", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='icicle.textfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/textfont/_variant.py b/packages/python/plotly/plotly/validators/icicle/textfont/_variant.py index 0de22cb7bfa..47df2859e3d 100644 --- a/packages/python/plotly/plotly/validators/icicle/textfont/_variant.py +++ b/packages/python/plotly/plotly/validators/icicle/textfont/_variant.py @@ -1,23 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="variant", parent_name="icicle.textfont", **kwargs): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='icicle.textfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/textfont/_variantsrc.py b/packages/python/plotly/plotly/validators/icicle/textfont/_variantsrc.py index 946220bac72..f374f0e7a65 100644 --- a/packages/python/plotly/plotly/validators/icicle/textfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/textfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="icicle.textfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='icicle.textfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/textfont/_weight.py b/packages/python/plotly/plotly/validators/icicle/textfont/_weight.py index 642361804ca..80e8dc5de66 100644 --- a/packages/python/plotly/plotly/validators/icicle/textfont/_weight.py +++ b/packages/python/plotly/plotly/validators/icicle/textfont/_weight.py @@ -1,15 +1,17 @@ -import _plotly_utils.basevalidators - - -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="weight", parent_name="icicle.textfont", **kwargs): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='icicle.textfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/textfont/_weightsrc.py b/packages/python/plotly/plotly/validators/icicle/textfont/_weightsrc.py index 6f09aa36bd1..5abed7e5ccb 100644 --- a/packages/python/plotly/plotly/validators/icicle/textfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/icicle/textfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="icicle.textfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='icicle.textfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/tiling/__init__.py b/packages/python/plotly/plotly/validators/icicle/tiling/__init__.py index 4f869feaed3..825e7d68da3 100644 --- a/packages/python/plotly/plotly/validators/icicle/tiling/__init__.py +++ b/packages/python/plotly/plotly/validators/icicle/tiling/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._pad import PadValidator from ._orientation import OrientationValidator from ._flip import FlipValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._pad.PadValidator", - "._orientation.OrientationValidator", - "._flip.FlipValidator", - ], + ['._pad.PadValidator', '._orientation.OrientationValidator', '._flip.FlipValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/icicle/tiling/_flip.py b/packages/python/plotly/plotly/validators/icicle/tiling/_flip.py index f9b2026fb2f..0e1fd87f197 100644 --- a/packages/python/plotly/plotly/validators/icicle/tiling/_flip.py +++ b/packages/python/plotly/plotly/validators/icicle/tiling/_flip.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class FlipValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="flip", parent_name="icicle.tiling", **kwargs): - super(FlipValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - flags=kwargs.pop("flags", ["x", "y"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FlipValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='flip', + parent_name='icicle.tiling', + **kwargs): + super(FlipValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + flags=kwargs.pop('flags', ['x', 'y']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/tiling/_orientation.py b/packages/python/plotly/plotly/validators/icicle/tiling/_orientation.py index e454023163d..05512225f4f 100644 --- a/packages/python/plotly/plotly/validators/icicle/tiling/_orientation.py +++ b/packages/python/plotly/plotly/validators/icicle/tiling/_orientation.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="orientation", parent_name="icicle.tiling", **kwargs - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["v", "h"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='icicle.tiling', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['v', 'h']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/icicle/tiling/_pad.py b/packages/python/plotly/plotly/validators/icicle/tiling/_pad.py index bfe18bbda48..edf3cd38441 100644 --- a/packages/python/plotly/plotly/validators/icicle/tiling/_pad.py +++ b/packages/python/plotly/plotly/validators/icicle/tiling/_pad.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class PadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="pad", parent_name="icicle.tiling", **kwargs): - super(PadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class PadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='pad', + parent_name='icicle.tiling', + **kwargs): + super(PadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/__init__.py b/packages/python/plotly/plotly/validators/image/__init__.py index e56bc098b00..97fdcc82a58 100644 --- a/packages/python/plotly/plotly/validators/image/__init__.py +++ b/packages/python/plotly/plotly/validators/image/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zsrc import ZsrcValidator from ._zsmooth import ZsmoothValidator @@ -43,49 +42,10 @@ from ._colormodel import ColormodelValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zsrc.ZsrcValidator", - "._zsmooth.ZsmoothValidator", - "._zorder.ZorderValidator", - "._zmin.ZminValidator", - "._zmax.ZmaxValidator", - "._z.ZValidator", - "._yaxis.YaxisValidator", - "._y0.Y0Validator", - "._xaxis.XaxisValidator", - "._x0.X0Validator", - "._visible.VisibleValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._textsrc.TextsrcValidator", - "._text.TextValidator", - "._stream.StreamValidator", - "._source.SourceValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legend.LegendValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._dy.DyValidator", - "._dx.DxValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._colormodel.ColormodelValidator", - ], + ['._zsrc.ZsrcValidator', '._zsmooth.ZsmoothValidator', '._zorder.ZorderValidator', '._zmin.ZminValidator', '._zmax.ZmaxValidator', '._z.ZValidator', '._yaxis.YaxisValidator', '._y0.Y0Validator', '._xaxis.XaxisValidator', '._x0.X0Validator', '._visible.VisibleValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._textsrc.TextsrcValidator', '._text.TextValidator', '._stream.StreamValidator', '._source.SourceValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legend.LegendValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._dy.DyValidator', '._dx.DxValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._colormodel.ColormodelValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/image/_colormodel.py b/packages/python/plotly/plotly/validators/image/_colormodel.py index ce4b3f203bf..ac470edfcf4 100644 --- a/packages/python/plotly/plotly/validators/image/_colormodel.py +++ b/packages/python/plotly/plotly/validators/image/_colormodel.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColormodelValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="colormodel", parent_name="image", **kwargs): - super(ColormodelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["rgb", "rgba", "rgba256", "hsl", "hsla"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColormodelValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='colormodel', + parent_name='image', + **kwargs): + super(ColormodelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['rgb', 'rgba', 'rgba256', 'hsl', 'hsla']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_customdata.py b/packages/python/plotly/plotly/validators/image/_customdata.py index ecd1dd6a37c..7f473196710 100644 --- a/packages/python/plotly/plotly/validators/image/_customdata.py +++ b/packages/python/plotly/plotly/validators/image/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="image", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='image', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_customdatasrc.py b/packages/python/plotly/plotly/validators/image/_customdatasrc.py index 0de35968d3f..3c9c36790ef 100644 --- a/packages/python/plotly/plotly/validators/image/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/image/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="image", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='image', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_dx.py b/packages/python/plotly/plotly/validators/image/_dx.py index eb330f7564a..2cae21fec3f 100644 --- a/packages/python/plotly/plotly/validators/image/_dx.py +++ b/packages/python/plotly/plotly/validators/image/_dx.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class DxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="dx", parent_name="image", **kwargs): - super(DxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dx', + parent_name='image', + **kwargs): + super(DxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_dy.py b/packages/python/plotly/plotly/validators/image/_dy.py index ee1ba0f3120..14126337b2f 100644 --- a/packages/python/plotly/plotly/validators/image/_dy.py +++ b/packages/python/plotly/plotly/validators/image/_dy.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class DyValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="dy", parent_name="image", **kwargs): - super(DyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DyValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dy', + parent_name='image', + **kwargs): + super(DyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_hoverinfo.py b/packages/python/plotly/plotly/validators/image/_hoverinfo.py index 229fdce0b25..625c386dd35 100644 --- a/packages/python/plotly/plotly/validators/image/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/image/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="image", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["x", "y", "z", "color", "name", "text"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='image', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['x', 'y', 'z', 'color', 'name', 'text']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/image/_hoverinfosrc.py index d468124fa52..6baf135592a 100644 --- a/packages/python/plotly/plotly/validators/image/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/image/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="image", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='image', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_hoverlabel.py b/packages/python/plotly/plotly/validators/image/_hoverlabel.py index d4303b0fb04..37804aaa2de 100644 --- a/packages/python/plotly/plotly/validators/image/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/image/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="image", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='image', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_hovertemplate.py b/packages/python/plotly/plotly/validators/image/_hovertemplate.py index 805f42f7939..03c04c3a467 100644 --- a/packages/python/plotly/plotly/validators/image/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/image/_hovertemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="image", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='image', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/image/_hovertemplatesrc.py index a806a490589..49551045ad9 100644 --- a/packages/python/plotly/plotly/validators/image/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/image/_hovertemplatesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertemplatesrc", parent_name="image", **kwargs): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='image', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_hovertext.py b/packages/python/plotly/plotly/validators/image/_hovertext.py index 1e051b5c7d8..479c46da2e7 100644 --- a/packages/python/plotly/plotly/validators/image/_hovertext.py +++ b/packages/python/plotly/plotly/validators/image/_hovertext.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="hovertext", parent_name="image", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='hovertext', + parent_name='image', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_hovertextsrc.py b/packages/python/plotly/plotly/validators/image/_hovertextsrc.py index 81d167166a6..5c1fb56e069 100644 --- a/packages/python/plotly/plotly/validators/image/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/image/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="image", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='image', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_ids.py b/packages/python/plotly/plotly/validators/image/_ids.py index 205d2432b8c..8530d6a8c26 100644 --- a/packages/python/plotly/plotly/validators/image/_ids.py +++ b/packages/python/plotly/plotly/validators/image/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="image", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='image', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_idssrc.py b/packages/python/plotly/plotly/validators/image/_idssrc.py index 8f8b95453ed..ab53aeaa4ec 100644 --- a/packages/python/plotly/plotly/validators/image/_idssrc.py +++ b/packages/python/plotly/plotly/validators/image/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="image", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='image', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_legend.py b/packages/python/plotly/plotly/validators/image/_legend.py index d4903e46362..52df0185575 100644 --- a/packages/python/plotly/plotly/validators/image/_legend.py +++ b/packages/python/plotly/plotly/validators/image/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="image", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='image', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/image/_legendgrouptitle.py index b23db50bbf2..216b3b010ea 100644 --- a/packages/python/plotly/plotly/validators/image/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/image/_legendgrouptitle.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="legendgrouptitle", parent_name="image", **kwargs): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='image', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_legendrank.py b/packages/python/plotly/plotly/validators/image/_legendrank.py index 140a29c88aa..11b17d22241 100644 --- a/packages/python/plotly/plotly/validators/image/_legendrank.py +++ b/packages/python/plotly/plotly/validators/image/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="image", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='image', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_legendwidth.py b/packages/python/plotly/plotly/validators/image/_legendwidth.py index df31504b928..bf5b342b8ca 100644 --- a/packages/python/plotly/plotly/validators/image/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/image/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="image", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='image', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_meta.py b/packages/python/plotly/plotly/validators/image/_meta.py index f2ec3448982..87dfa104563 100644 --- a/packages/python/plotly/plotly/validators/image/_meta.py +++ b/packages/python/plotly/plotly/validators/image/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="image", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='image', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_metasrc.py b/packages/python/plotly/plotly/validators/image/_metasrc.py index adfc1380676..82367273f20 100644 --- a/packages/python/plotly/plotly/validators/image/_metasrc.py +++ b/packages/python/plotly/plotly/validators/image/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="image", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='image', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_name.py b/packages/python/plotly/plotly/validators/image/_name.py index 73e09424828..15e6472e7bd 100644 --- a/packages/python/plotly/plotly/validators/image/_name.py +++ b/packages/python/plotly/plotly/validators/image/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="image", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='image', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_opacity.py b/packages/python/plotly/plotly/validators/image/_opacity.py index b778eb62e0c..ac96b9622c3 100644 --- a/packages/python/plotly/plotly/validators/image/_opacity.py +++ b/packages/python/plotly/plotly/validators/image/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="image", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='image', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_source.py b/packages/python/plotly/plotly/validators/image/_source.py index 9c9452ce924..10621b1b532 100644 --- a/packages/python/plotly/plotly/validators/image/_source.py +++ b/packages/python/plotly/plotly/validators/image/_source.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SourceValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="source", parent_name="image", **kwargs): - super(SourceValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SourceValidator(_bv.StringValidator): + def __init__(self, plotly_name='source', + parent_name='image', + **kwargs): + super(SourceValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_stream.py b/packages/python/plotly/plotly/validators/image/_stream.py index 3eea736a52b..e2c1541bd30 100644 --- a/packages/python/plotly/plotly/validators/image/_stream.py +++ b/packages/python/plotly/plotly/validators/image/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="image", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='image', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_text.py b/packages/python/plotly/plotly/validators/image/_text.py index 1284e51b085..8048bbdddf0 100644 --- a/packages/python/plotly/plotly/validators/image/_text.py +++ b/packages/python/plotly/plotly/validators/image/_text.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="text", parent_name="image", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='text', + parent_name='image', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_textsrc.py b/packages/python/plotly/plotly/validators/image/_textsrc.py index 7ab20d743ef..d4855e6c6a1 100644 --- a/packages/python/plotly/plotly/validators/image/_textsrc.py +++ b/packages/python/plotly/plotly/validators/image/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="image", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='image', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_uid.py b/packages/python/plotly/plotly/validators/image/_uid.py index f42fbc7a92f..7e281832309 100644 --- a/packages/python/plotly/plotly/validators/image/_uid.py +++ b/packages/python/plotly/plotly/validators/image/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="image", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='image', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_uirevision.py b/packages/python/plotly/plotly/validators/image/_uirevision.py index e5575632f7e..06211ca5564 100644 --- a/packages/python/plotly/plotly/validators/image/_uirevision.py +++ b/packages/python/plotly/plotly/validators/image/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="image", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='image', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_visible.py b/packages/python/plotly/plotly/validators/image/_visible.py index 09cdf9dbad5..896f2e62c3b 100644 --- a/packages/python/plotly/plotly/validators/image/_visible.py +++ b/packages/python/plotly/plotly/validators/image/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="image", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='image', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_x0.py b/packages/python/plotly/plotly/validators/image/_x0.py index 9fbba182926..9543183882b 100644 --- a/packages/python/plotly/plotly/validators/image/_x0.py +++ b/packages/python/plotly/plotly/validators/image/_x0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class X0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="x0", parent_name="image", **kwargs): - super(X0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class X0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='x0', + parent_name='image', + **kwargs): + super(X0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_xaxis.py b/packages/python/plotly/plotly/validators/image/_xaxis.py index 3b8f1df417d..68746e2727e 100644 --- a/packages/python/plotly/plotly/validators/image/_xaxis.py +++ b/packages/python/plotly/plotly/validators/image/_xaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="xaxis", parent_name="image", **kwargs): - super(XaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "x"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='xaxis', + parent_name='image', + **kwargs): + super(XaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'x'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_y0.py b/packages/python/plotly/plotly/validators/image/_y0.py index ea01998f58b..54e0cd007c3 100644 --- a/packages/python/plotly/plotly/validators/image/_y0.py +++ b/packages/python/plotly/plotly/validators/image/_y0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Y0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="y0", parent_name="image", **kwargs): - super(Y0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Y0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='y0', + parent_name='image', + **kwargs): + super(Y0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_yaxis.py b/packages/python/plotly/plotly/validators/image/_yaxis.py index c02f75357f2..6f204434058 100644 --- a/packages/python/plotly/plotly/validators/image/_yaxis.py +++ b/packages/python/plotly/plotly/validators/image/_yaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="yaxis", parent_name="image", **kwargs): - super(YaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "y"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='yaxis', + parent_name='image', + **kwargs): + super(YaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'y'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_z.py b/packages/python/plotly/plotly/validators/image/_z.py index 29e8b848a00..ba551231dae 100644 --- a/packages/python/plotly/plotly/validators/image/_z.py +++ b/packages/python/plotly/plotly/validators/image/_z.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="z", parent_name="image", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='z', + parent_name='image', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_zmax.py b/packages/python/plotly/plotly/validators/image/_zmax.py index fae4d527c9b..a84da3d3927 100644 --- a/packages/python/plotly/plotly/validators/image/_zmax.py +++ b/packages/python/plotly/plotly/validators/image/_zmax.py @@ -1,20 +1,14 @@ -import _plotly_utils.basevalidators -class ZmaxValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="zmax", parent_name="image", **kwargs): - super(ZmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "valType": "number"}, - {"editType": "calc", "valType": "number"}, - {"editType": "calc", "valType": "number"}, - {"editType": "calc", "valType": "number"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZmaxValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='zmax', + parent_name='image', + **kwargs): + super(ZmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'valType': 'number'}, {'editType': 'calc', 'valType': 'number'}, {'editType': 'calc', 'valType': 'number'}, {'editType': 'calc', 'valType': 'number'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_zmin.py b/packages/python/plotly/plotly/validators/image/_zmin.py index 74b1f08e76a..406507ba38b 100644 --- a/packages/python/plotly/plotly/validators/image/_zmin.py +++ b/packages/python/plotly/plotly/validators/image/_zmin.py @@ -1,20 +1,14 @@ -import _plotly_utils.basevalidators -class ZminValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="zmin", parent_name="image", **kwargs): - super(ZminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "valType": "number"}, - {"editType": "calc", "valType": "number"}, - {"editType": "calc", "valType": "number"}, - {"editType": "calc", "valType": "number"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZminValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='zmin', + parent_name='image', + **kwargs): + super(ZminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'valType': 'number'}, {'editType': 'calc', 'valType': 'number'}, {'editType': 'calc', 'valType': 'number'}, {'editType': 'calc', 'valType': 'number'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_zorder.py b/packages/python/plotly/plotly/validators/image/_zorder.py index 23b5197a427..209cf2e08a0 100644 --- a/packages/python/plotly/plotly/validators/image/_zorder.py +++ b/packages/python/plotly/plotly/validators/image/_zorder.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="zorder", parent_name="image", **kwargs): - super(ZorderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZorderValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='zorder', + parent_name='image', + **kwargs): + super(ZorderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_zsmooth.py b/packages/python/plotly/plotly/validators/image/_zsmooth.py index 92c4067cb41..30d975a9cc1 100644 --- a/packages/python/plotly/plotly/validators/image/_zsmooth.py +++ b/packages/python/plotly/plotly/validators/image/_zsmooth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ZsmoothValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="zsmooth", parent_name="image", **kwargs): - super(ZsmoothValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["fast", False]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZsmoothValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='zsmooth', + parent_name='image', + **kwargs): + super(ZsmoothValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['fast', False]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/_zsrc.py b/packages/python/plotly/plotly/validators/image/_zsrc.py index 4b66aea195c..5867e240740 100644 --- a/packages/python/plotly/plotly/validators/image/_zsrc.py +++ b/packages/python/plotly/plotly/validators/image/_zsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="zsrc", parent_name="image", **kwargs): - super(ZsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='zsrc', + parent_name='image', + **kwargs): + super(ZsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/image/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/image/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/image/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/image/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/image/hoverlabel/_align.py index 610815f0315..c42df2d451c 100644 --- a/packages/python/plotly/plotly/validators/image/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/image/hoverlabel/_align.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="align", parent_name="image.hoverlabel", **kwargs): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='image.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/image/hoverlabel/_alignsrc.py index a5ad4b4a0fa..fa9fccec516 100644 --- a/packages/python/plotly/plotly/validators/image/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/image/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="image.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='image.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/image/hoverlabel/_bgcolor.py index 9b075ea55eb..f552e0830a4 100644 --- a/packages/python/plotly/plotly/validators/image/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/image/hoverlabel/_bgcolor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="bgcolor", parent_name="image.hoverlabel", **kwargs): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='image.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/image/hoverlabel/_bgcolorsrc.py index 582f9814189..184009f737f 100644 --- a/packages/python/plotly/plotly/validators/image/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/image/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="image.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='image.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/image/hoverlabel/_bordercolor.py index 7674e229f6e..916863c4bc5 100644 --- a/packages/python/plotly/plotly/validators/image/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/image/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="image.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='image.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/image/hoverlabel/_bordercolorsrc.py index 9d02b6d1700..998172ca1fc 100644 --- a/packages/python/plotly/plotly/validators/image/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/image/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bordercolorsrc", parent_name="image.hoverlabel", **kwargs - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='image.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/image/hoverlabel/_font.py index 8f485eb78fd..2b3655041a5 100644 --- a/packages/python/plotly/plotly/validators/image/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/image/hoverlabel/_font.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="image.hoverlabel", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='image.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/image/hoverlabel/_namelength.py index 490a3605e6d..d785cd117f3 100644 --- a/packages/python/plotly/plotly/validators/image/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/image/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="image.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='image.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/image/hoverlabel/_namelengthsrc.py index bf91c772682..091c952b86f 100644 --- a/packages/python/plotly/plotly/validators/image/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/image/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="image.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='image.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/image/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/image/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/image/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_color.py index 216851ea98b..9418f13d258 100644 --- a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="image.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='image.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_colorsrc.py index 5ee3e5ca759..0be0b172108 100644 --- a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="image.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='image.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_family.py index 61dfba3c1e7..af11f1474e6 100644 --- a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="image.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='image.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_familysrc.py index 58a132c923f..de7dc55631b 100644 --- a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="image.hoverlabel.font", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='image.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_lineposition.py index 4cfd9bc318a..09d692c1f59 100644 --- a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="image.hoverlabel.font", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='image.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_linepositionsrc.py index 8d2fbb35c8d..e5d293bd2e0 100644 --- a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="image.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='image.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_shadow.py index bc58e55e5d8..95b740551a5 100644 --- a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="image.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='image.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_shadowsrc.py index ee5d7cf8585..824883c24f5 100644 --- a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="image.hoverlabel.font", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='image.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_size.py index 62fd27c78fb..29fa8d09458 100644 --- a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="image.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='image.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_sizesrc.py index 3a3a98e4d92..3b40e56c8c3 100644 --- a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="image.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='image.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_style.py index c2890fe9b4b..84f765c8cc3 100644 --- a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="image.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='image.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_stylesrc.py index e2aae20e544..de0a939d662 100644 --- a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="image.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='image.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_textcase.py index e23ad408fc4..326173c0b17 100644 --- a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="image.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='image.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_textcasesrc.py index 8d88d3c1085..91364057f09 100644 --- a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="image.hoverlabel.font", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='image.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_variant.py index f64f8dfeed1..d41cb6655b1 100644 --- a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="image.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='image.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_variantsrc.py index fe48df2c5b4..2700da55da7 100644 --- a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="image.hoverlabel.font", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='image.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_weight.py index b259a84d3e3..7569a76120f 100644 --- a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="image.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='image.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_weightsrc.py index a2d7e50fcb9..0760171df7e 100644 --- a/packages/python/plotly/plotly/validators/image/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/image/hoverlabel/font/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="image.hoverlabel.font", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='image.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/image/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/image/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/image/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/image/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/image/legendgrouptitle/_font.py index e8534f56e1e..f4eb5f06c16 100644 --- a/packages/python/plotly/plotly/validators/image/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/image/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="image.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='image.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/image/legendgrouptitle/_text.py index 8d156380c81..d73449fe1b1 100644 --- a/packages/python/plotly/plotly/validators/image/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/image/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="image.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='image.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_color.py index 2696eb652a1..dd5650198c4 100644 --- a/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="image.legendgrouptitle.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='image.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_family.py index 8157c0ef7d8..76a0f89a876 100644 --- a/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="image.legendgrouptitle.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='image.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_lineposition.py index df4d11807bf..04bcac0e3f2 100644 --- a/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="image.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='image.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_shadow.py index 45ea5f22073..65640d21e39 100644 --- a/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="image.legendgrouptitle.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='image.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_size.py index 0703f95a46c..9f371691e93 100644 --- a/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="image.legendgrouptitle.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='image.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_style.py index e3c31735cb6..1dd7b600132 100644 --- a/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="image.legendgrouptitle.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='image.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_textcase.py index 8d6cafc2869..de169a7aa55 100644 --- a/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="image.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='image.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_variant.py index eb2ead66cbc..22c5433ed72 100644 --- a/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="image.legendgrouptitle.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='image.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_weight.py index 2e4979dfd2e..0ddf6c2534f 100644 --- a/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="image.legendgrouptitle.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='image.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/stream/__init__.py b/packages/python/plotly/plotly/validators/image/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/image/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/image/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/image/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/image/stream/_maxpoints.py index 0c54096930c..f03d1f93b4f 100644 --- a/packages/python/plotly/plotly/validators/image/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/image/stream/_maxpoints.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="maxpoints", parent_name="image.stream", **kwargs): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='image.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/image/stream/_token.py b/packages/python/plotly/plotly/validators/image/stream/_token.py index 02bc8c921f6..8ecfcc68653 100644 --- a/packages/python/plotly/plotly/validators/image/stream/_token.py +++ b/packages/python/plotly/plotly/validators/image/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="image.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='image.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/__init__.py b/packages/python/plotly/plotly/validators/indicator/__init__.py index 90a3d4d166b..5309812429d 100644 --- a/packages/python/plotly/plotly/validators/indicator/__init__.py +++ b/packages/python/plotly/plotly/validators/indicator/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._value import ValueValidator @@ -27,33 +26,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._value.ValueValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._title.TitleValidator", - "._stream.StreamValidator", - "._number.NumberValidator", - "._name.NameValidator", - "._mode.ModeValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legend.LegendValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._gauge.GaugeValidator", - "._domain.DomainValidator", - "._delta.DeltaValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._align.AlignValidator", - ], + ['._visible.VisibleValidator', '._value.ValueValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._title.TitleValidator', '._stream.StreamValidator', '._number.NumberValidator', '._name.NameValidator', '._mode.ModeValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legend.LegendValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._gauge.GaugeValidator', '._domain.DomainValidator', '._delta.DeltaValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/indicator/_align.py b/packages/python/plotly/plotly/validators/indicator/_align.py index 76d5d5d91f6..084b1561803 100644 --- a/packages/python/plotly/plotly/validators/indicator/_align.py +++ b/packages/python/plotly/plotly/validators/indicator/_align.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="align", parent_name="indicator", **kwargs): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='indicator', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/_customdata.py b/packages/python/plotly/plotly/validators/indicator/_customdata.py index 80c3f00a183..bea2e85f66d 100644 --- a/packages/python/plotly/plotly/validators/indicator/_customdata.py +++ b/packages/python/plotly/plotly/validators/indicator/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="indicator", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='indicator', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/_customdatasrc.py b/packages/python/plotly/plotly/validators/indicator/_customdatasrc.py index 109d43a7d52..e414fe6b11c 100644 --- a/packages/python/plotly/plotly/validators/indicator/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/indicator/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="indicator", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='indicator', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/_delta.py b/packages/python/plotly/plotly/validators/indicator/_delta.py index 862991d7e91..34804c9bd0b 100644 --- a/packages/python/plotly/plotly/validators/indicator/_delta.py +++ b/packages/python/plotly/plotly/validators/indicator/_delta.py @@ -1,44 +1,15 @@ -import _plotly_utils.basevalidators -class DeltaValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="delta", parent_name="indicator", **kwargs): - super(DeltaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Delta"), - data_docs=kwargs.pop( - "data_docs", - """ - decreasing - :class:`plotly.graph_objects.indicator.delta.De - creasing` instance or dict with compatible - properties - font - Set the font used to display the delta - increasing - :class:`plotly.graph_objects.indicator.delta.In - creasing` instance or dict with compatible - properties - position - Sets the position of delta with respect to the - number. - prefix - Sets a prefix appearing before the delta. - reference - Sets the reference value to compute the delta. - By default, it is set to the current value. - relative - Show relative change - suffix - Sets a suffix appearing next to the delta. - valueformat - Sets the value formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DeltaValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='delta', + parent_name='indicator', + **kwargs): + super(DeltaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Delta'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/_domain.py b/packages/python/plotly/plotly/validators/indicator/_domain.py index 17176c77a17..6f738ad48a9 100644 --- a/packages/python/plotly/plotly/validators/indicator/_domain.py +++ b/packages/python/plotly/plotly/validators/indicator/_domain.py @@ -1,29 +1,15 @@ -import _plotly_utils.basevalidators -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="domain", parent_name="indicator", **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 indicator - trace . - row - If there is a layout grid, use the domain for - this row in the grid for this indicator trace . - x - Sets the horizontal domain of this indicator - trace (in plot fraction). - y - Sets the vertical domain of this indicator - trace (in plot fraction). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DomainValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='domain', + parent_name='indicator', + **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', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/_gauge.py b/packages/python/plotly/plotly/validators/indicator/_gauge.py index e4fa1825566..89008c0a4af 100644 --- a/packages/python/plotly/plotly/validators/indicator/_gauge.py +++ b/packages/python/plotly/plotly/validators/indicator/_gauge.py @@ -1,44 +1,15 @@ -import _plotly_utils.basevalidators -class GaugeValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="gauge", parent_name="indicator", **kwargs): - super(GaugeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Gauge"), - data_docs=kwargs.pop( - "data_docs", - """ - axis - :class:`plotly.graph_objects.indicator.gauge.Ax - is` instance or dict with compatible properties - bar - Set the appearance of the gauge's value - bgcolor - Sets the gauge background color. - bordercolor - Sets the color of the border enclosing the - gauge. - borderwidth - Sets the width (in px) of the border enclosing - the gauge. - shape - Set the shape of the gauge - steps - A tuple of :class:`plotly.graph_objects.indicat - or.gauge.Step` instances or dicts with - compatible properties - stepdefaults - When used in a template (as layout.template.dat - a.indicator.gauge.stepdefaults), sets the - default property values to use for elements of - indicator.gauge.steps - threshold - :class:`plotly.graph_objects.indicator.gauge.Th - reshold` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class GaugeValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='gauge', + parent_name='indicator', + **kwargs): + super(GaugeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Gauge'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/_ids.py b/packages/python/plotly/plotly/validators/indicator/_ids.py index 0f01b273e7e..3180ee7e0dc 100644 --- a/packages/python/plotly/plotly/validators/indicator/_ids.py +++ b/packages/python/plotly/plotly/validators/indicator/_ids.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="indicator", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='indicator', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/_idssrc.py b/packages/python/plotly/plotly/validators/indicator/_idssrc.py index 86dad78e346..4537835968f 100644 --- a/packages/python/plotly/plotly/validators/indicator/_idssrc.py +++ b/packages/python/plotly/plotly/validators/indicator/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="indicator", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='indicator', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/_legend.py b/packages/python/plotly/plotly/validators/indicator/_legend.py index a55efc9276c..570e0236c54 100644 --- a/packages/python/plotly/plotly/validators/indicator/_legend.py +++ b/packages/python/plotly/plotly/validators/indicator/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="indicator", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='indicator', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/indicator/_legendgrouptitle.py index e2017eecddd..8c55ac2a893 100644 --- a/packages/python/plotly/plotly/validators/indicator/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/indicator/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="indicator", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='indicator', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/_legendrank.py b/packages/python/plotly/plotly/validators/indicator/_legendrank.py index f3cd8624a58..9661e51bbe1 100644 --- a/packages/python/plotly/plotly/validators/indicator/_legendrank.py +++ b/packages/python/plotly/plotly/validators/indicator/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="indicator", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='indicator', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/_legendwidth.py b/packages/python/plotly/plotly/validators/indicator/_legendwidth.py index 8ba5cf55975..9b1b2732b11 100644 --- a/packages/python/plotly/plotly/validators/indicator/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/indicator/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="indicator", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='indicator', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/_meta.py b/packages/python/plotly/plotly/validators/indicator/_meta.py index 66d76dcac7d..c6e9b1790f1 100644 --- a/packages/python/plotly/plotly/validators/indicator/_meta.py +++ b/packages/python/plotly/plotly/validators/indicator/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="indicator", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='indicator', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/_metasrc.py b/packages/python/plotly/plotly/validators/indicator/_metasrc.py index 5888c0041a2..7e1af388c56 100644 --- a/packages/python/plotly/plotly/validators/indicator/_metasrc.py +++ b/packages/python/plotly/plotly/validators/indicator/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="indicator", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='indicator', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/_mode.py b/packages/python/plotly/plotly/validators/indicator/_mode.py index a0f43ffe863..141522eb497 100644 --- a/packages/python/plotly/plotly/validators/indicator/_mode.py +++ b/packages/python/plotly/plotly/validators/indicator/_mode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="mode", parent_name="indicator", **kwargs): - super(ModeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - flags=kwargs.pop("flags", ["number", "delta", "gauge"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ModeValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='mode', + parent_name='indicator', + **kwargs): + super(ModeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + flags=kwargs.pop('flags', ['number', 'delta', 'gauge']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/_name.py b/packages/python/plotly/plotly/validators/indicator/_name.py index fd8d9bb99d5..dcbfb37505b 100644 --- a/packages/python/plotly/plotly/validators/indicator/_name.py +++ b/packages/python/plotly/plotly/validators/indicator/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="indicator", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='indicator', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/_number.py b/packages/python/plotly/plotly/validators/indicator/_number.py index 90fe36dc527..bda4f233529 100644 --- a/packages/python/plotly/plotly/validators/indicator/_number.py +++ b/packages/python/plotly/plotly/validators/indicator/_number.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class NumberValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="number", parent_name="indicator", **kwargs): - super(NumberValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Number"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Set the font used to display main number - prefix - Sets a prefix appearing before the number. - suffix - Sets a suffix appearing next to the number. - valueformat - Sets the value formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NumberValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='number', + parent_name='indicator', + **kwargs): + super(NumberValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Number'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/_stream.py b/packages/python/plotly/plotly/validators/indicator/_stream.py index 01be5fca950..1200324f6d5 100644 --- a/packages/python/plotly/plotly/validators/indicator/_stream.py +++ b/packages/python/plotly/plotly/validators/indicator/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="indicator", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='indicator', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/_title.py b/packages/python/plotly/plotly/validators/indicator/_title.py index 8e9035b5088..ce53057e635 100644 --- a/packages/python/plotly/plotly/validators/indicator/_title.py +++ b/packages/python/plotly/plotly/validators/indicator/_title.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__(self, plotly_name="title", parent_name="indicator", **kwargs): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the title. It - defaults to `center` except for bullet charts - for which it defaults to right. - font - Set the font used to display the title - text - Sets the title of this indicator. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='indicator', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/_uid.py b/packages/python/plotly/plotly/validators/indicator/_uid.py index 9342efd4931..4fa3e0e5f55 100644 --- a/packages/python/plotly/plotly/validators/indicator/_uid.py +++ b/packages/python/plotly/plotly/validators/indicator/_uid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="indicator", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='indicator', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/_uirevision.py b/packages/python/plotly/plotly/validators/indicator/_uirevision.py index 16339b86b7b..2a85f93ea12 100644 --- a/packages/python/plotly/plotly/validators/indicator/_uirevision.py +++ b/packages/python/plotly/plotly/validators/indicator/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="indicator", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='indicator', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/_value.py b/packages/python/plotly/plotly/validators/indicator/_value.py index d79b7c77a9a..a666e50902f 100644 --- a/packages/python/plotly/plotly/validators/indicator/_value.py +++ b/packages/python/plotly/plotly/validators/indicator/_value.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ValueValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="value", parent_name="indicator", **kwargs): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.NumberValidator): + def __init__(self, plotly_name='value', + parent_name='indicator', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/_visible.py b/packages/python/plotly/plotly/validators/indicator/_visible.py index 77227c33eb0..2780b6a47cf 100644 --- a/packages/python/plotly/plotly/validators/indicator/_visible.py +++ b/packages/python/plotly/plotly/validators/indicator/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="indicator", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='indicator', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/delta/__init__.py b/packages/python/plotly/plotly/validators/indicator/delta/__init__.py index 9bebaaaa0c2..ef2fad913db 100644 --- a/packages/python/plotly/plotly/validators/indicator/delta/__init__.py +++ b/packages/python/plotly/plotly/validators/indicator/delta/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._valueformat import ValueformatValidator from ._suffix import SuffixValidator @@ -13,19 +12,10 @@ from ._decreasing import DecreasingValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._valueformat.ValueformatValidator", - "._suffix.SuffixValidator", - "._relative.RelativeValidator", - "._reference.ReferenceValidator", - "._prefix.PrefixValidator", - "._position.PositionValidator", - "._increasing.IncreasingValidator", - "._font.FontValidator", - "._decreasing.DecreasingValidator", - ], + ['._valueformat.ValueformatValidator', '._suffix.SuffixValidator', '._relative.RelativeValidator', '._reference.ReferenceValidator', '._prefix.PrefixValidator', '._position.PositionValidator', '._increasing.IncreasingValidator', '._font.FontValidator', '._decreasing.DecreasingValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/indicator/delta/_decreasing.py b/packages/python/plotly/plotly/validators/indicator/delta/_decreasing.py index c2baecca40e..caa191214e2 100644 --- a/packages/python/plotly/plotly/validators/indicator/delta/_decreasing.py +++ b/packages/python/plotly/plotly/validators/indicator/delta/_decreasing.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class DecreasingValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="decreasing", parent_name="indicator.delta", **kwargs - ): - super(DecreasingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Decreasing"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the color for increasing value. - symbol - Sets the symbol to display for increasing value -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DecreasingValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='decreasing', + parent_name='indicator.delta', + **kwargs): + super(DecreasingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Decreasing'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/delta/_font.py b/packages/python/plotly/plotly/validators/indicator/delta/_font.py index a2a7e1d7159..f711575d6dd 100644 --- a/packages/python/plotly/plotly/validators/indicator/delta/_font.py +++ b/packages/python/plotly/plotly/validators/indicator/delta/_font.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="indicator.delta", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='indicator.delta', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/delta/_increasing.py b/packages/python/plotly/plotly/validators/indicator/delta/_increasing.py index fc3b13122c8..6812b7db86b 100644 --- a/packages/python/plotly/plotly/validators/indicator/delta/_increasing.py +++ b/packages/python/plotly/plotly/validators/indicator/delta/_increasing.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class IncreasingValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="increasing", parent_name="indicator.delta", **kwargs - ): - super(IncreasingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Increasing"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the color for increasing value. - symbol - Sets the symbol to display for increasing value -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IncreasingValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='increasing', + parent_name='indicator.delta', + **kwargs): + super(IncreasingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Increasing'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/delta/_position.py b/packages/python/plotly/plotly/validators/indicator/delta/_position.py index a37de703135..46177d404d7 100644 --- a/packages/python/plotly/plotly/validators/indicator/delta/_position.py +++ b/packages/python/plotly/plotly/validators/indicator/delta/_position.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class PositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="position", parent_name="indicator.delta", **kwargs): - super(PositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["top", "bottom", "left", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class PositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='position', + parent_name='indicator.delta', + **kwargs): + super(PositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['top', 'bottom', 'left', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/delta/_prefix.py b/packages/python/plotly/plotly/validators/indicator/delta/_prefix.py index 601ce8f1b78..6bc380cfc9f 100644 --- a/packages/python/plotly/plotly/validators/indicator/delta/_prefix.py +++ b/packages/python/plotly/plotly/validators/indicator/delta/_prefix.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class PrefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="prefix", parent_name="indicator.delta", **kwargs): - super(PrefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class PrefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='prefix', + parent_name='indicator.delta', + **kwargs): + super(PrefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/delta/_reference.py b/packages/python/plotly/plotly/validators/indicator/delta/_reference.py index 4bc253380fd..8cbd09f8f31 100644 --- a/packages/python/plotly/plotly/validators/indicator/delta/_reference.py +++ b/packages/python/plotly/plotly/validators/indicator/delta/_reference.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReferenceValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="reference", parent_name="indicator.delta", **kwargs - ): - super(ReferenceValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReferenceValidator(_bv.NumberValidator): + def __init__(self, plotly_name='reference', + parent_name='indicator.delta', + **kwargs): + super(ReferenceValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/delta/_relative.py b/packages/python/plotly/plotly/validators/indicator/delta/_relative.py index 534a5dc8106..0d4d467452c 100644 --- a/packages/python/plotly/plotly/validators/indicator/delta/_relative.py +++ b/packages/python/plotly/plotly/validators/indicator/delta/_relative.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class RelativeValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="relative", parent_name="indicator.delta", **kwargs): - super(RelativeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RelativeValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='relative', + parent_name='indicator.delta', + **kwargs): + super(RelativeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/delta/_suffix.py b/packages/python/plotly/plotly/validators/indicator/delta/_suffix.py index 90ad0a757f2..c448ba4fdb5 100644 --- a/packages/python/plotly/plotly/validators/indicator/delta/_suffix.py +++ b/packages/python/plotly/plotly/validators/indicator/delta/_suffix.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="suffix", parent_name="indicator.delta", **kwargs): - super(SuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='suffix', + parent_name='indicator.delta', + **kwargs): + super(SuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/delta/_valueformat.py b/packages/python/plotly/plotly/validators/indicator/delta/_valueformat.py index d23a941cd25..af76c63eb9f 100644 --- a/packages/python/plotly/plotly/validators/indicator/delta/_valueformat.py +++ b/packages/python/plotly/plotly/validators/indicator/delta/_valueformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ValueformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="valueformat", parent_name="indicator.delta", **kwargs - ): - super(ValueformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='valueformat', + parent_name='indicator.delta', + **kwargs): + super(ValueformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/delta/decreasing/__init__.py b/packages/python/plotly/plotly/validators/indicator/delta/decreasing/__init__.py index e2312c03a84..3b202f7bc81 100644 --- a/packages/python/plotly/plotly/validators/indicator/delta/decreasing/__init__.py +++ b/packages/python/plotly/plotly/validators/indicator/delta/decreasing/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._symbol import SymbolValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._symbol.SymbolValidator", "._color.ColorValidator"] + __name__, + [], + ['._symbol.SymbolValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/indicator/delta/decreasing/_color.py b/packages/python/plotly/plotly/validators/indicator/delta/decreasing/_color.py index 90bc36a46d8..721af3147d7 100644 --- a/packages/python/plotly/plotly/validators/indicator/delta/decreasing/_color.py +++ b/packages/python/plotly/plotly/validators/indicator/delta/decreasing/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="indicator.delta.decreasing", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='indicator.delta.decreasing', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/delta/decreasing/_symbol.py b/packages/python/plotly/plotly/validators/indicator/delta/decreasing/_symbol.py index f5d6c14f102..2a20bcd5c79 100644 --- a/packages/python/plotly/plotly/validators/indicator/delta/decreasing/_symbol.py +++ b/packages/python/plotly/plotly/validators/indicator/delta/decreasing/_symbol.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SymbolValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="symbol", parent_name="indicator.delta.decreasing", **kwargs - ): - super(SymbolValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SymbolValidator(_bv.StringValidator): + def __init__(self, plotly_name='symbol', + parent_name='indicator.delta.decreasing', + **kwargs): + super(SymbolValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/delta/font/__init__.py b/packages/python/plotly/plotly/validators/indicator/delta/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/indicator/delta/font/__init__.py +++ b/packages/python/plotly/plotly/validators/indicator/delta/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/indicator/delta/font/_color.py b/packages/python/plotly/plotly/validators/indicator/delta/font/_color.py index b825f2272ac..82a0895c30b 100644 --- a/packages/python/plotly/plotly/validators/indicator/delta/font/_color.py +++ b/packages/python/plotly/plotly/validators/indicator/delta/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="indicator.delta.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='indicator.delta.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/delta/font/_family.py b/packages/python/plotly/plotly/validators/indicator/delta/font/_family.py index 2f73188c284..979dcc9cfd1 100644 --- a/packages/python/plotly/plotly/validators/indicator/delta/font/_family.py +++ b/packages/python/plotly/plotly/validators/indicator/delta/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="indicator.delta.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='indicator.delta.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/delta/font/_lineposition.py b/packages/python/plotly/plotly/validators/indicator/delta/font/_lineposition.py index 92c21001fba..6c5b9f40468 100644 --- a/packages/python/plotly/plotly/validators/indicator/delta/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/indicator/delta/font/_lineposition.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="indicator.delta.font", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='indicator.delta.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/delta/font/_shadow.py b/packages/python/plotly/plotly/validators/indicator/delta/font/_shadow.py index 2f7b0ccb78a..56e4c8455d8 100644 --- a/packages/python/plotly/plotly/validators/indicator/delta/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/indicator/delta/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="indicator.delta.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='indicator.delta.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/delta/font/_size.py b/packages/python/plotly/plotly/validators/indicator/delta/font/_size.py index f1566275910..3ceb0454668 100644 --- a/packages/python/plotly/plotly/validators/indicator/delta/font/_size.py +++ b/packages/python/plotly/plotly/validators/indicator/delta/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="indicator.delta.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='indicator.delta.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/delta/font/_style.py b/packages/python/plotly/plotly/validators/indicator/delta/font/_style.py index 9f64971dd7b..0a154d9062f 100644 --- a/packages/python/plotly/plotly/validators/indicator/delta/font/_style.py +++ b/packages/python/plotly/plotly/validators/indicator/delta/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="indicator.delta.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='indicator.delta.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/delta/font/_textcase.py b/packages/python/plotly/plotly/validators/indicator/delta/font/_textcase.py index 07ea1edc781..a6dbe6be305 100644 --- a/packages/python/plotly/plotly/validators/indicator/delta/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/indicator/delta/font/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="indicator.delta.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='indicator.delta.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/delta/font/_variant.py b/packages/python/plotly/plotly/validators/indicator/delta/font/_variant.py index 01822ce5d87..a01df0ebd9b 100644 --- a/packages/python/plotly/plotly/validators/indicator/delta/font/_variant.py +++ b/packages/python/plotly/plotly/validators/indicator/delta/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="indicator.delta.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='indicator.delta.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/delta/font/_weight.py b/packages/python/plotly/plotly/validators/indicator/delta/font/_weight.py index 6bf4e46a634..14e31ec5fb4 100644 --- a/packages/python/plotly/plotly/validators/indicator/delta/font/_weight.py +++ b/packages/python/plotly/plotly/validators/indicator/delta/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="indicator.delta.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='indicator.delta.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/delta/increasing/__init__.py b/packages/python/plotly/plotly/validators/indicator/delta/increasing/__init__.py index e2312c03a84..3b202f7bc81 100644 --- a/packages/python/plotly/plotly/validators/indicator/delta/increasing/__init__.py +++ b/packages/python/plotly/plotly/validators/indicator/delta/increasing/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._symbol import SymbolValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._symbol.SymbolValidator", "._color.ColorValidator"] + __name__, + [], + ['._symbol.SymbolValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/indicator/delta/increasing/_color.py b/packages/python/plotly/plotly/validators/indicator/delta/increasing/_color.py index c150f3d5faf..68dc1d73faa 100644 --- a/packages/python/plotly/plotly/validators/indicator/delta/increasing/_color.py +++ b/packages/python/plotly/plotly/validators/indicator/delta/increasing/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="indicator.delta.increasing", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='indicator.delta.increasing', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/delta/increasing/_symbol.py b/packages/python/plotly/plotly/validators/indicator/delta/increasing/_symbol.py index 5d87a0dcea0..34dcb3e0ce1 100644 --- a/packages/python/plotly/plotly/validators/indicator/delta/increasing/_symbol.py +++ b/packages/python/plotly/plotly/validators/indicator/delta/increasing/_symbol.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SymbolValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="symbol", parent_name="indicator.delta.increasing", **kwargs - ): - super(SymbolValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SymbolValidator(_bv.StringValidator): + def __init__(self, plotly_name='symbol', + parent_name='indicator.delta.increasing', + **kwargs): + super(SymbolValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/domain/__init__.py b/packages/python/plotly/plotly/validators/indicator/domain/__init__.py index 67de5030d0a..705a2194402 100644 --- a/packages/python/plotly/plotly/validators/indicator/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/indicator/domain/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._y import YValidator from ._x import XValidator @@ -8,14 +7,10 @@ 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", - ], + ['._y.YValidator', '._x.XValidator', '._row.RowValidator', '._column.ColumnValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/indicator/domain/_column.py b/packages/python/plotly/plotly/validators/indicator/domain/_column.py index 1112db9257a..c5aac900510 100644 --- a/packages/python/plotly/plotly/validators/indicator/domain/_column.py +++ b/packages/python/plotly/plotly/validators/indicator/domain/_column.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="column", parent_name="indicator.domain", **kwargs): - super(ColumnValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColumnValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='column', + parent_name='indicator.domain', + **kwargs): + super(ColumnValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/domain/_row.py b/packages/python/plotly/plotly/validators/indicator/domain/_row.py index 1c89a2da3ba..ae1d608e4fe 100644 --- a/packages/python/plotly/plotly/validators/indicator/domain/_row.py +++ b/packages/python/plotly/plotly/validators/indicator/domain/_row.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="row", parent_name="indicator.domain", **kwargs): - super(RowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RowValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='row', + parent_name='indicator.domain', + **kwargs): + super(RowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/domain/_x.py b/packages/python/plotly/plotly/validators/indicator/domain/_x.py index 5e771be80c0..fc1785ef5b4 100644 --- a/packages/python/plotly/plotly/validators/indicator/domain/_x.py +++ b/packages/python/plotly/plotly/validators/indicator/domain/_x.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="x", parent_name="indicator.domain", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='x', + parent_name='indicator.domain', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}, {'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/domain/_y.py b/packages/python/plotly/plotly/validators/indicator/domain/_y.py index b77921c0ff7..622cc9f27a8 100644 --- a/packages/python/plotly/plotly/validators/indicator/domain/_y.py +++ b/packages/python/plotly/plotly/validators/indicator/domain/_y.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="y", parent_name="indicator.domain", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='y', + parent_name='indicator.domain', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}, {'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/__init__.py b/packages/python/plotly/plotly/validators/indicator/gauge/__init__.py index b2ca780c729..799e4e5b1fb 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/__init__.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._threshold import ThresholdValidator from ._stepdefaults import StepdefaultsValidator @@ -13,19 +12,10 @@ from ._axis import AxisValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._threshold.ThresholdValidator", - "._stepdefaults.StepdefaultsValidator", - "._steps.StepsValidator", - "._shape.ShapeValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - "._bar.BarValidator", - "._axis.AxisValidator", - ], + ['._threshold.ThresholdValidator', '._stepdefaults.StepdefaultsValidator', '._steps.StepsValidator', '._shape.ShapeValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator', '._bar.BarValidator', '._axis.AxisValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/_axis.py b/packages/python/plotly/plotly/validators/indicator/gauge/_axis.py index d81d4d57382..b5785ac337d 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/_axis.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/_axis.py @@ -1,193 +1,15 @@ -import _plotly_utils.basevalidators -class AxisValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="axis", parent_name="indicator.gauge", **kwargs): - super(AxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Axis"), - data_docs=kwargs.pop( - "data_docs", - """ - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - range - Sets the range of this axis. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.indicat - or.gauge.axis.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.indicator.gauge.axis.tickformatstopdefaults), - sets the default property values to use for - elements of - indicator.gauge.axis.tickformatstops - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - visible - A single toggle to hide the axis while - preserving interaction like dragging. Default - is true when a cheater plot is present on the - axis, otherwise false -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AxisValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='axis', + parent_name='indicator.gauge', + **kwargs): + super(AxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Axis'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/_bar.py b/packages/python/plotly/plotly/validators/indicator/gauge/_bar.py index 5ed1d865699..034084f8cb8 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/_bar.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/_bar.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class BarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="bar", parent_name="indicator.gauge", **kwargs): - super(BarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Bar"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the background color of the arc. - line - :class:`plotly.graph_objects.indicator.gauge.ba - r.Line` instance or dict with compatible - properties - thickness - Sets the thickness of the bar as a fraction of - the total thickness of the gauge. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='bar', + parent_name='indicator.gauge', + **kwargs): + super(BarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Bar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/_bgcolor.py b/packages/python/plotly/plotly/validators/indicator/gauge/_bgcolor.py index 5e304a40c33..16f161e5819 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/_bgcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="bgcolor", parent_name="indicator.gauge", **kwargs): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='indicator.gauge', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/_bordercolor.py b/packages/python/plotly/plotly/validators/indicator/gauge/_bordercolor.py index d144f149262..2ee1d13fc98 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="indicator.gauge", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='indicator.gauge', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/_borderwidth.py b/packages/python/plotly/plotly/validators/indicator/gauge/_borderwidth.py index ab0db6fddbb..cd146296840 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/_borderwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderwidth", parent_name="indicator.gauge", **kwargs - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='indicator.gauge', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/_shape.py b/packages/python/plotly/plotly/validators/indicator/gauge/_shape.py index 60110e6c670..934e6e90d08 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/_shape.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/_shape.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="shape", parent_name="indicator.gauge", **kwargs): - super(ShapeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["angular", "bullet"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShapeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='shape', + parent_name='indicator.gauge', + **kwargs): + super(ShapeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['angular', 'bullet']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/_stepdefaults.py b/packages/python/plotly/plotly/validators/indicator/gauge/_stepdefaults.py index 00e2ef40eb5..f9a0b73a62e 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/_stepdefaults.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/_stepdefaults.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class StepdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="stepdefaults", parent_name="indicator.gauge", **kwargs - ): - super(StepdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Step"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StepdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stepdefaults', + parent_name='indicator.gauge', + **kwargs): + super(StepdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Step'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/_steps.py b/packages/python/plotly/plotly/validators/indicator/gauge/_steps.py index 6d07e6323a1..12ef2da57ee 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/_steps.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/_steps.py @@ -1,48 +1,15 @@ -import _plotly_utils.basevalidators -class StepsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__(self, plotly_name="steps", parent_name="indicator.gauge", **kwargs): - super(StepsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Step"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the background color of the arc. - line - :class:`plotly.graph_objects.indicator.gauge.st - ep.Line` instance or dict with compatible - properties - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - range - Sets the range of this axis. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - thickness - Sets the thickness of the bar as a fraction of - the total thickness of the gauge. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StepsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='steps', + parent_name='indicator.gauge', + **kwargs): + super(StepsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Step'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/_threshold.py b/packages/python/plotly/plotly/validators/indicator/gauge/_threshold.py index cfc2e2cadd3..4b58e278e40 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/_threshold.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/_threshold.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class ThresholdValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="threshold", parent_name="indicator.gauge", **kwargs - ): - super(ThresholdValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Threshold"), - data_docs=kwargs.pop( - "data_docs", - """ - line - :class:`plotly.graph_objects.indicator.gauge.th - reshold.Line` instance or dict with compatible - properties - thickness - Sets the thickness of the threshold line as a - fraction of the thickness of the gauge. - value - Sets a treshold value drawn as a line. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThresholdValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='threshold', + parent_name='indicator.gauge', + **kwargs): + super(ThresholdValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Threshold'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/__init__.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/__init__.py index 554168e7782..7b87af0855e 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/__init__.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._tickwidth import TickwidthValidator @@ -34,40 +33,10 @@ from ._dtick import DtickValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._range.RangeValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - ], + ['._visible.VisibleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._range.RangeValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_dtick.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_dtick.py index decdabfbe1b..3c62f0fffa7 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_dtick.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="indicator.gauge.axis", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='indicator.gauge.axis', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_exponentformat.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_exponentformat.py index c26d5196a75..2bb7748b555 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_exponentformat.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="exponentformat", parent_name="indicator.gauge.axis", **kwargs - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='indicator.gauge.axis', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_labelalias.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_labelalias.py index aab9a6e089d..aae932dbb43 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_labelalias.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="indicator.gauge.axis", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='indicator.gauge.axis', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_minexponent.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_minexponent.py index d796b052bcf..c4f1270ac3f 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_minexponent.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="indicator.gauge.axis", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='indicator.gauge.axis', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_nticks.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_nticks.py index 5509e221b34..8b95763c778 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_nticks.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="indicator.gauge.axis", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='indicator.gauge.axis', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_range.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_range.py index 8057a292973..74a5d64d4ae 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_range.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_range.py @@ -1,20 +1,14 @@ -import _plotly_utils.basevalidators -class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, plotly_name="range", parent_name="indicator.gauge.axis", **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, - ) +import _plotly_utils.basevalidators as _bv + + +class RangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='range', + parent_name='indicator.gauge.axis', + **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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_separatethousands.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_separatethousands.py index db9727b37bd..7376524c30b 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="indicator.gauge.axis", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='indicator.gauge.axis', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_showexponent.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_showexponent.py index 17c5f93394c..acb84402c1e 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_showexponent.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="indicator.gauge.axis", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='indicator.gauge.axis', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_showticklabels.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_showticklabels.py index 68a4c7fb7e0..d33fac1ee90 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_showticklabels.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showticklabels", parent_name="indicator.gauge.axis", **kwargs - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='indicator.gauge.axis', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_showtickprefix.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_showtickprefix.py index 18889438b78..ec91fcffc54 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_showtickprefix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showtickprefix", parent_name="indicator.gauge.axis", **kwargs - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='indicator.gauge.axis', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_showticksuffix.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_showticksuffix.py index caa97329ef3..570f06011c9 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_showticksuffix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showticksuffix", parent_name="indicator.gauge.axis", **kwargs - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='indicator.gauge.axis', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tick0.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tick0.py index fc0b226efaa..d4aaf5a5182 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tick0.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="indicator.gauge.axis", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='indicator.gauge.axis', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickangle.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickangle.py index e86cf08856a..b81719c2425 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickangle.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="indicator.gauge.axis", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='indicator.gauge.axis', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickcolor.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickcolor.py index 4f26040b150..294b2cad656 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="indicator.gauge.axis", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='indicator.gauge.axis', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickfont.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickfont.py index e2528f191f2..ebd5594273b 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickfont.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="indicator.gauge.axis", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='indicator.gauge.axis', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickformat.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickformat.py index 87a58520ce8..91fa94747b7 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickformat.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="indicator.gauge.axis", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='indicator.gauge.axis', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickformatstopdefaults.py index 0274dda9f6e..6ef919fa06d 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="indicator.gauge.axis", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='indicator.gauge.axis', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickformatstops.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickformatstops.py index 00c37c95d16..bf7ff0f55e3 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="indicator.gauge.axis", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='indicator.gauge.axis', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_ticklabelstep.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_ticklabelstep.py index 738d9522744..ffbfc6b4773 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_ticklabelstep.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="ticklabelstep", parent_name="indicator.gauge.axis", **kwargs - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='indicator.gauge.axis', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_ticklen.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_ticklen.py index 9cdd810b6db..e433244c2f8 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_ticklen.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="indicator.gauge.axis", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='indicator.gauge.axis', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickmode.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickmode.py index ace070625d7..2ab1f50c7b4 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickmode.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="indicator.gauge.axis", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='indicator.gauge.axis', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickprefix.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickprefix.py index f99899527be..119e401125b 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="indicator.gauge.axis", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='indicator.gauge.axis', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_ticks.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_ticks.py index 22373848db5..13635796daa 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_ticks.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="indicator.gauge.axis", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='indicator.gauge.axis', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_ticksuffix.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_ticksuffix.py index 1bae8a6385b..9972a47b74c 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="indicator.gauge.axis", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='indicator.gauge.axis', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_ticktext.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_ticktext.py index b402e70d35e..291aecb5305 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_ticktext.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="indicator.gauge.axis", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='indicator.gauge.axis', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_ticktextsrc.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_ticktextsrc.py index d348972c4a7..0f61117a4e8 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="indicator.gauge.axis", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='indicator.gauge.axis', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickvals.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickvals.py index 15e85562420..edbde3561f9 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickvals.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="indicator.gauge.axis", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='indicator.gauge.axis', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickvalssrc.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickvalssrc.py index ef788fc7c26..092a7498511 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="indicator.gauge.axis", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='indicator.gauge.axis', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickwidth.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickwidth.py index 4d555dd1ff9..e61d9f47595 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="indicator.gauge.axis", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='indicator.gauge.axis', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_visible.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_visible.py index e75752dbb9e..f39f74dded5 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/_visible.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/_visible.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="visible", parent_name="indicator.gauge.axis", **kwargs - ): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='indicator.gauge.axis', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/__init__.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_color.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_color.py index 9291f977e2e..90439e0af3d 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="indicator.gauge.axis.tickfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='indicator.gauge.axis.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_family.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_family.py index 17f25a48de5..a27bcff5bd1 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="indicator.gauge.axis.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='indicator.gauge.axis.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_lineposition.py index ce371f547a7..3c4be23e0d5 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="indicator.gauge.axis.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='indicator.gauge.axis.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_shadow.py index a3178670280..935ad0ca666 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="indicator.gauge.axis.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='indicator.gauge.axis.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_size.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_size.py index 275683c98d9..6c126e84afe 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="indicator.gauge.axis.tickfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='indicator.gauge.axis.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_style.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_style.py index a60e6796f70..9c801dd0fdd 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="indicator.gauge.axis.tickfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='indicator.gauge.axis.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_textcase.py index 8ac77c157bb..0d7deca3ede 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="indicator.gauge.axis.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='indicator.gauge.axis.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_variant.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_variant.py index 4641b913400..8912ce822b8 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="indicator.gauge.axis.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='indicator.gauge.axis.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_weight.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_weight.py index ebf42acd763..4c25a180256 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="indicator.gauge.axis.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='indicator.gauge.axis.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickformatstop/_dtickrange.py index 230b1bbbd8d..e4f9acc9e9a 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="indicator.gauge.axis.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - items=kwargs.pop( - "items", - [ - {"editType": "plot", "valType": "any"}, - {"editType": "plot", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='indicator.gauge.axis.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + items=kwargs.pop('items', [{'editType': 'plot', 'valType': 'any'}, {'editType': 'plot', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickformatstop/_enabled.py index fb837907120..d9ef7f1b652 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="indicator.gauge.axis.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='indicator.gauge.axis.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickformatstop/_name.py index 9ebc67748a1..c5ac5aaa17c 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="indicator.gauge.axis.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='indicator.gauge.axis.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickformatstop/_templateitemname.py index 94e75aaad8c..dff6acf2073 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="indicator.gauge.axis.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='indicator.gauge.axis.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickformatstop/_value.py index 358d2532615..10ca6d13a77 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/axis/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="indicator.gauge.axis.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='indicator.gauge.axis.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/bar/__init__.py b/packages/python/plotly/plotly/validators/indicator/gauge/bar/__init__.py index d49f1c0e78b..9e116636b39 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/bar/__init__.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/bar/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._thickness import ThicknessValidator from ._line import LineValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._thickness.ThicknessValidator", - "._line.LineValidator", - "._color.ColorValidator", - ], + ['._thickness.ThicknessValidator', '._line.LineValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/bar/_color.py b/packages/python/plotly/plotly/validators/indicator/gauge/bar/_color.py index 7ef5dc50a07..1c3607be206 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/bar/_color.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/bar/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="indicator.gauge.bar", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='indicator.gauge.bar', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/bar/_line.py b/packages/python/plotly/plotly/validators/indicator/gauge/bar/_line.py index c061659a2b6..4b19639fcfb 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/bar/_line.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/bar/_line.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="indicator.gauge.bar", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the color of the line enclosing each - sector. - width - Sets the width (in px) of the line enclosing - each sector. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='indicator.gauge.bar', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/bar/_thickness.py b/packages/python/plotly/plotly/validators/indicator/gauge/bar/_thickness.py index 18105f94e79..1fc3ebe15d3 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/bar/_thickness.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/bar/_thickness.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="indicator.gauge.bar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='indicator.gauge.bar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/bar/line/__init__.py b/packages/python/plotly/plotly/validators/indicator/gauge/bar/line/__init__.py index 63a516578b5..e9749ddd90c 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/bar/line/__init__.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/bar/line/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._width.WidthValidator", "._color.ColorValidator"] + __name__, + [], + ['._width.WidthValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/bar/line/_color.py b/packages/python/plotly/plotly/validators/indicator/gauge/bar/line/_color.py index a788fec0027..b5a90eef22f 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/bar/line/_color.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/bar/line/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="indicator.gauge.bar.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='indicator.gauge.bar.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/bar/line/_width.py b/packages/python/plotly/plotly/validators/indicator/gauge/bar/line/_width.py index 6361135257c..524dd125f58 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/bar/line/_width.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/bar/line/_width.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="indicator.gauge.bar.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='indicator.gauge.bar.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/step/__init__.py b/packages/python/plotly/plotly/validators/indicator/gauge/step/__init__.py index 4ea4b3e46b5..781788b177f 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/step/__init__.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/step/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._thickness import ThicknessValidator from ._templateitemname import TemplateitemnameValidator @@ -10,16 +9,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._thickness.ThicknessValidator", - "._templateitemname.TemplateitemnameValidator", - "._range.RangeValidator", - "._name.NameValidator", - "._line.LineValidator", - "._color.ColorValidator", - ], + ['._thickness.ThicknessValidator', '._templateitemname.TemplateitemnameValidator', '._range.RangeValidator', '._name.NameValidator', '._line.LineValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/step/_color.py b/packages/python/plotly/plotly/validators/indicator/gauge/step/_color.py index 07a6a1b08a8..c0741ce3f9b 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/step/_color.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/step/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="indicator.gauge.step", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='indicator.gauge.step', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/step/_line.py b/packages/python/plotly/plotly/validators/indicator/gauge/step/_line.py index eab5f39b72e..d9c95898fea 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/step/_line.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/step/_line.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="line", parent_name="indicator.gauge.step", **kwargs - ): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the color of the line enclosing each - sector. - width - Sets the width (in px) of the line enclosing - each sector. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='indicator.gauge.step', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/step/_name.py b/packages/python/plotly/plotly/validators/indicator/gauge/step/_name.py index e623ed5f22d..088b22ff241 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/step/_name.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/step/_name.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="name", parent_name="indicator.gauge.step", **kwargs - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='indicator.gauge.step', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/step/_range.py b/packages/python/plotly/plotly/validators/indicator/gauge/step/_range.py index 73b09a0727d..904e9b89b40 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/step/_range.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/step/_range.py @@ -1,20 +1,14 @@ -import _plotly_utils.basevalidators -class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, plotly_name="range", parent_name="indicator.gauge.step", **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, - ) +import _plotly_utils.basevalidators as _bv + + +class RangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='range', + parent_name='indicator.gauge.step', + **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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/step/_templateitemname.py b/packages/python/plotly/plotly/validators/indicator/gauge/step/_templateitemname.py index aca6a8521e2..5344f2557eb 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/step/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/step/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="indicator.gauge.step", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='indicator.gauge.step', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/step/_thickness.py b/packages/python/plotly/plotly/validators/indicator/gauge/step/_thickness.py index e7e46e1e55e..3bf167e54fa 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/step/_thickness.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/step/_thickness.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="indicator.gauge.step", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='indicator.gauge.step', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/step/line/__init__.py b/packages/python/plotly/plotly/validators/indicator/gauge/step/line/__init__.py index 63a516578b5..e9749ddd90c 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/step/line/__init__.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/step/line/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._width.WidthValidator", "._color.ColorValidator"] + __name__, + [], + ['._width.WidthValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/step/line/_color.py b/packages/python/plotly/plotly/validators/indicator/gauge/step/line/_color.py index bb537d2d91c..f1a2229cc23 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/step/line/_color.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/step/line/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="indicator.gauge.step.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='indicator.gauge.step.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/step/line/_width.py b/packages/python/plotly/plotly/validators/indicator/gauge/step/line/_width.py index 6821f137ca0..8102af5e336 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/step/line/_width.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/step/line/_width.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="indicator.gauge.step.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='indicator.gauge.step.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/threshold/__init__.py b/packages/python/plotly/plotly/validators/indicator/gauge/threshold/__init__.py index b4226aa9203..0379a61a5ef 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/threshold/__init__.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/threshold/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._thickness import ThicknessValidator from ._line import LineValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._thickness.ThicknessValidator", - "._line.LineValidator", - ], + ['._value.ValueValidator', '._thickness.ThicknessValidator', '._line.LineValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/threshold/_line.py b/packages/python/plotly/plotly/validators/indicator/gauge/threshold/_line.py index b74f966e66d..5cd82e73152 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/threshold/_line.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/threshold/_line.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="line", parent_name="indicator.gauge.threshold", **kwargs - ): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the color of the threshold line. - width - Sets the width (in px) of the threshold line. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='indicator.gauge.threshold', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/threshold/_thickness.py b/packages/python/plotly/plotly/validators/indicator/gauge/threshold/_thickness.py index 8cd0c85f162..db186da97a9 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/threshold/_thickness.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/threshold/_thickness.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="indicator.gauge.threshold", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='indicator.gauge.threshold', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/threshold/_value.py b/packages/python/plotly/plotly/validators/indicator/gauge/threshold/_value.py index 3e8f0725ff8..5dae7d1d825 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/threshold/_value.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/threshold/_value.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ValueValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="value", parent_name="indicator.gauge.threshold", **kwargs - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.NumberValidator): + def __init__(self, plotly_name='value', + parent_name='indicator.gauge.threshold', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/threshold/line/__init__.py b/packages/python/plotly/plotly/validators/indicator/gauge/threshold/line/__init__.py index 63a516578b5..e9749ddd90c 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/threshold/line/__init__.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/threshold/line/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._width.WidthValidator", "._color.ColorValidator"] + __name__, + [], + ['._width.WidthValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/threshold/line/_color.py b/packages/python/plotly/plotly/validators/indicator/gauge/threshold/line/_color.py index a282a267e4d..803490d539f 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/threshold/line/_color.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/threshold/line/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="indicator.gauge.threshold.line", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='indicator.gauge.threshold.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/gauge/threshold/line/_width.py b/packages/python/plotly/plotly/validators/indicator/gauge/threshold/line/_width.py index 4cee92e2f2e..66a1ee82717 100644 --- a/packages/python/plotly/plotly/validators/indicator/gauge/threshold/line/_width.py +++ b/packages/python/plotly/plotly/validators/indicator/gauge/threshold/line/_width.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="width", - parent_name="indicator.gauge.threshold.line", - **kwargs, - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='indicator.gauge.threshold.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/_font.py index d8a35a9ebeb..5927b3690ed 100644 --- a/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="indicator.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='indicator.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/_text.py index c15a520ec02..382501627df 100644 --- a/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="indicator.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='indicator.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_color.py index cdfe36d1209..8f5a3acf6ef 100644 --- a/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="indicator.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='indicator.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_family.py index e79283a1c64..cf2274dad8c 100644 --- a/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="indicator.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='indicator.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_lineposition.py index 1961bd099d4..a4c36c320c9 100644 --- a/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="indicator.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='indicator.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_shadow.py index bfd657a9046..5a633d99a62 100644 --- a/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="indicator.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='indicator.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_size.py index 5107c5e49d2..c3fdac247de 100644 --- a/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="indicator.legendgrouptitle.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='indicator.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_style.py index b10b1a30936..87f73719be9 100644 --- a/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="indicator.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='indicator.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_textcase.py index 62e5359f9d2..4c4b22d73cb 100644 --- a/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="indicator.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='indicator.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_variant.py index 78f07d0c18a..962f828921f 100644 --- a/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="indicator.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='indicator.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_weight.py index 0baef648dac..490528c43a6 100644 --- a/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/indicator/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="indicator.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='indicator.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/number/__init__.py b/packages/python/plotly/plotly/validators/indicator/number/__init__.py index 71d6d13a5ce..bb6e8037dd3 100644 --- a/packages/python/plotly/plotly/validators/indicator/number/__init__.py +++ b/packages/python/plotly/plotly/validators/indicator/number/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._valueformat import ValueformatValidator from ._suffix import SuffixValidator @@ -8,14 +7,10 @@ from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._valueformat.ValueformatValidator", - "._suffix.SuffixValidator", - "._prefix.PrefixValidator", - "._font.FontValidator", - ], + ['._valueformat.ValueformatValidator', '._suffix.SuffixValidator', '._prefix.PrefixValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/indicator/number/_font.py b/packages/python/plotly/plotly/validators/indicator/number/_font.py index 9fdac9e9e18..4707a94d55e 100644 --- a/packages/python/plotly/plotly/validators/indicator/number/_font.py +++ b/packages/python/plotly/plotly/validators/indicator/number/_font.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="indicator.number", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='indicator.number', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/number/_prefix.py b/packages/python/plotly/plotly/validators/indicator/number/_prefix.py index bb69a196431..a0fd952905f 100644 --- a/packages/python/plotly/plotly/validators/indicator/number/_prefix.py +++ b/packages/python/plotly/plotly/validators/indicator/number/_prefix.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class PrefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="prefix", parent_name="indicator.number", **kwargs): - super(PrefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class PrefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='prefix', + parent_name='indicator.number', + **kwargs): + super(PrefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/number/_suffix.py b/packages/python/plotly/plotly/validators/indicator/number/_suffix.py index 4fae10d2a1a..78ecc339a9f 100644 --- a/packages/python/plotly/plotly/validators/indicator/number/_suffix.py +++ b/packages/python/plotly/plotly/validators/indicator/number/_suffix.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="suffix", parent_name="indicator.number", **kwargs): - super(SuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='suffix', + parent_name='indicator.number', + **kwargs): + super(SuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/number/_valueformat.py b/packages/python/plotly/plotly/validators/indicator/number/_valueformat.py index 515081c0ed6..379ec78d7f5 100644 --- a/packages/python/plotly/plotly/validators/indicator/number/_valueformat.py +++ b/packages/python/plotly/plotly/validators/indicator/number/_valueformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ValueformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="valueformat", parent_name="indicator.number", **kwargs - ): - super(ValueformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='valueformat', + parent_name='indicator.number', + **kwargs): + super(ValueformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/number/font/__init__.py b/packages/python/plotly/plotly/validators/indicator/number/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/indicator/number/font/__init__.py +++ b/packages/python/plotly/plotly/validators/indicator/number/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/indicator/number/font/_color.py b/packages/python/plotly/plotly/validators/indicator/number/font/_color.py index 8cf7419750e..7ac85eceb28 100644 --- a/packages/python/plotly/plotly/validators/indicator/number/font/_color.py +++ b/packages/python/plotly/plotly/validators/indicator/number/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="indicator.number.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='indicator.number.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/number/font/_family.py b/packages/python/plotly/plotly/validators/indicator/number/font/_family.py index fbe1dc647f2..b447bcb998b 100644 --- a/packages/python/plotly/plotly/validators/indicator/number/font/_family.py +++ b/packages/python/plotly/plotly/validators/indicator/number/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="indicator.number.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='indicator.number.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/number/font/_lineposition.py b/packages/python/plotly/plotly/validators/indicator/number/font/_lineposition.py index b133a52ee1b..3f2468e21f9 100644 --- a/packages/python/plotly/plotly/validators/indicator/number/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/indicator/number/font/_lineposition.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="indicator.number.font", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='indicator.number.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/number/font/_shadow.py b/packages/python/plotly/plotly/validators/indicator/number/font/_shadow.py index 86aa8f52431..19fabfe504e 100644 --- a/packages/python/plotly/plotly/validators/indicator/number/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/indicator/number/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="indicator.number.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='indicator.number.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/number/font/_size.py b/packages/python/plotly/plotly/validators/indicator/number/font/_size.py index 8fb3432c10a..f6fb860bd37 100644 --- a/packages/python/plotly/plotly/validators/indicator/number/font/_size.py +++ b/packages/python/plotly/plotly/validators/indicator/number/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="indicator.number.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='indicator.number.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/number/font/_style.py b/packages/python/plotly/plotly/validators/indicator/number/font/_style.py index 3c136a1d1fb..114bbf79ab7 100644 --- a/packages/python/plotly/plotly/validators/indicator/number/font/_style.py +++ b/packages/python/plotly/plotly/validators/indicator/number/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="indicator.number.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='indicator.number.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/number/font/_textcase.py b/packages/python/plotly/plotly/validators/indicator/number/font/_textcase.py index d18b488a31d..400b8d837b6 100644 --- a/packages/python/plotly/plotly/validators/indicator/number/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/indicator/number/font/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="indicator.number.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='indicator.number.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/number/font/_variant.py b/packages/python/plotly/plotly/validators/indicator/number/font/_variant.py index df178ef46d7..0c87fd24395 100644 --- a/packages/python/plotly/plotly/validators/indicator/number/font/_variant.py +++ b/packages/python/plotly/plotly/validators/indicator/number/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="indicator.number.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='indicator.number.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/number/font/_weight.py b/packages/python/plotly/plotly/validators/indicator/number/font/_weight.py index c5eb1c518b8..ab8b62a947b 100644 --- a/packages/python/plotly/plotly/validators/indicator/number/font/_weight.py +++ b/packages/python/plotly/plotly/validators/indicator/number/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="indicator.number.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='indicator.number.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/stream/__init__.py b/packages/python/plotly/plotly/validators/indicator/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/indicator/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/indicator/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/indicator/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/indicator/stream/_maxpoints.py index 8430bd7bb8f..411f7590847 100644 --- a/packages/python/plotly/plotly/validators/indicator/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/indicator/stream/_maxpoints.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxpoints", parent_name="indicator.stream", **kwargs - ): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='indicator.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/stream/_token.py b/packages/python/plotly/plotly/validators/indicator/stream/_token.py index c75b7c0df57..085b8b73ff6 100644 --- a/packages/python/plotly/plotly/validators/indicator/stream/_token.py +++ b/packages/python/plotly/plotly/validators/indicator/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="indicator.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='indicator.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/title/__init__.py b/packages/python/plotly/plotly/validators/indicator/title/__init__.py index 2415e035140..ec10d15908c 100644 --- a/packages/python/plotly/plotly/validators/indicator/title/__init__.py +++ b/packages/python/plotly/plotly/validators/indicator/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._font.FontValidator", "._align.AlignValidator"], + ['._text.TextValidator', '._font.FontValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/indicator/title/_align.py b/packages/python/plotly/plotly/validators/indicator/title/_align.py index 545a4f29716..c471323ba37 100644 --- a/packages/python/plotly/plotly/validators/indicator/title/_align.py +++ b/packages/python/plotly/plotly/validators/indicator/title/_align.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="align", parent_name="indicator.title", **kwargs): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='indicator.title', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/title/_font.py b/packages/python/plotly/plotly/validators/indicator/title/_font.py index dae939ba312..31837a7af07 100644 --- a/packages/python/plotly/plotly/validators/indicator/title/_font.py +++ b/packages/python/plotly/plotly/validators/indicator/title/_font.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="indicator.title", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='indicator.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/title/_text.py b/packages/python/plotly/plotly/validators/indicator/title/_text.py index 7cdba51386b..0616a6b7e44 100644 --- a/packages/python/plotly/plotly/validators/indicator/title/_text.py +++ b/packages/python/plotly/plotly/validators/indicator/title/_text.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="indicator.title", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='indicator.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/title/font/__init__.py b/packages/python/plotly/plotly/validators/indicator/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/indicator/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/indicator/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/indicator/title/font/_color.py b/packages/python/plotly/plotly/validators/indicator/title/font/_color.py index c67e216f7f4..3dec49c0e88 100644 --- a/packages/python/plotly/plotly/validators/indicator/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/indicator/title/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="indicator.title.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='indicator.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/title/font/_family.py b/packages/python/plotly/plotly/validators/indicator/title/font/_family.py index 163ebae27db..1bc705f4fb6 100644 --- a/packages/python/plotly/plotly/validators/indicator/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/indicator/title/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="indicator.title.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='indicator.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/indicator/title/font/_lineposition.py index 0f2ff92eb34..863387d3a4d 100644 --- a/packages/python/plotly/plotly/validators/indicator/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/indicator/title/font/_lineposition.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="indicator.title.font", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='indicator.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/title/font/_shadow.py b/packages/python/plotly/plotly/validators/indicator/title/font/_shadow.py index 3feaab01174..62c07631021 100644 --- a/packages/python/plotly/plotly/validators/indicator/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/indicator/title/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="indicator.title.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='indicator.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/title/font/_size.py b/packages/python/plotly/plotly/validators/indicator/title/font/_size.py index 6e357fcd7c4..dba6e506726 100644 --- a/packages/python/plotly/plotly/validators/indicator/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/indicator/title/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="indicator.title.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='indicator.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/title/font/_style.py b/packages/python/plotly/plotly/validators/indicator/title/font/_style.py index d1cc28d28b3..784823d40fa 100644 --- a/packages/python/plotly/plotly/validators/indicator/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/indicator/title/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="indicator.title.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='indicator.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/title/font/_textcase.py b/packages/python/plotly/plotly/validators/indicator/title/font/_textcase.py index 73572b246bb..8c2b58d0080 100644 --- a/packages/python/plotly/plotly/validators/indicator/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/indicator/title/font/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="indicator.title.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='indicator.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/title/font/_variant.py b/packages/python/plotly/plotly/validators/indicator/title/font/_variant.py index ef35334e1d7..0494330d582 100644 --- a/packages/python/plotly/plotly/validators/indicator/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/indicator/title/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="indicator.title.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='indicator.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/indicator/title/font/_weight.py b/packages/python/plotly/plotly/validators/indicator/title/font/_weight.py index 8b944428f28..2d342674a7a 100644 --- a/packages/python/plotly/plotly/validators/indicator/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/indicator/title/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="indicator.title.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='indicator.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/__init__.py b/packages/python/plotly/plotly/validators/isosurface/__init__.py index e65b327ed4d..f498c56554c 100644 --- a/packages/python/plotly/plotly/validators/isosurface/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zsrc import ZsrcValidator from ._zhoverformat import ZhoverformatValidator @@ -64,70 +63,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zsrc.ZsrcValidator", - "._zhoverformat.ZhoverformatValidator", - "._z.ZValidator", - "._ysrc.YsrcValidator", - "._yhoverformat.YhoverformatValidator", - "._y.YValidator", - "._xsrc.XsrcValidator", - "._xhoverformat.XhoverformatValidator", - "._x.XValidator", - "._visible.VisibleValidator", - "._valuesrc.ValuesrcValidator", - "._valuehoverformat.ValuehoverformatValidator", - "._value.ValueValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._textsrc.TextsrcValidator", - "._text.TextValidator", - "._surface.SurfaceValidator", - "._stream.StreamValidator", - "._spaceframe.SpaceframeValidator", - "._slices.SlicesValidator", - "._showscale.ShowscaleValidator", - "._showlegend.ShowlegendValidator", - "._scene.SceneValidator", - "._reversescale.ReversescaleValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._lightposition.LightpositionValidator", - "._lighting.LightingValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._isomin.IsominValidator", - "._isomax.IsomaxValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._flatshading.FlatshadingValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._contour.ContourValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._caps.CapsValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._zsrc.ZsrcValidator', '._zhoverformat.ZhoverformatValidator', '._z.ZValidator', '._ysrc.YsrcValidator', '._yhoverformat.YhoverformatValidator', '._y.YValidator', '._xsrc.XsrcValidator', '._xhoverformat.XhoverformatValidator', '._x.XValidator', '._visible.VisibleValidator', '._valuesrc.ValuesrcValidator', '._valuehoverformat.ValuehoverformatValidator', '._value.ValueValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._textsrc.TextsrcValidator', '._text.TextValidator', '._surface.SurfaceValidator', '._stream.StreamValidator', '._spaceframe.SpaceframeValidator', '._slices.SlicesValidator', '._showscale.ShowscaleValidator', '._showlegend.ShowlegendValidator', '._scene.SceneValidator', '._reversescale.ReversescaleValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._lightposition.LightpositionValidator', '._lighting.LightingValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._isomin.IsominValidator', '._isomax.IsomaxValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._flatshading.FlatshadingValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._contour.ContourValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._caps.CapsValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/isosurface/_autocolorscale.py b/packages/python/plotly/plotly/validators/isosurface/_autocolorscale.py index 686c15e377e..e048702e8ca 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/isosurface/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="isosurface", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='isosurface', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_caps.py b/packages/python/plotly/plotly/validators/isosurface/_caps.py index 07fe8ec96e4..fda35166164 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_caps.py +++ b/packages/python/plotly/plotly/validators/isosurface/_caps.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class CapsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="caps", parent_name="isosurface", **kwargs): - super(CapsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Caps"), - data_docs=kwargs.pop( - "data_docs", - """ - x - :class:`plotly.graph_objects.isosurface.caps.X` - instance or dict with compatible properties - y - :class:`plotly.graph_objects.isosurface.caps.Y` - instance or dict with compatible properties - z - :class:`plotly.graph_objects.isosurface.caps.Z` - instance or dict with compatible properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CapsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='caps', + parent_name='isosurface', + **kwargs): + super(CapsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Caps'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_cauto.py b/packages/python/plotly/plotly/validators/isosurface/_cauto.py index bc66c13d4fa..d58bfe8787b 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_cauto.py +++ b/packages/python/plotly/plotly/validators/isosurface/_cauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cauto", parent_name="isosurface", **kwargs): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='isosurface', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_cmax.py b/packages/python/plotly/plotly/validators/isosurface/_cmax.py index 568c5ca3ca3..7d8b3fc718e 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_cmax.py +++ b/packages/python/plotly/plotly/validators/isosurface/_cmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmax", parent_name="isosurface", **kwargs): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='isosurface', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_cmid.py b/packages/python/plotly/plotly/validators/isosurface/_cmid.py index 37614c7207b..332e22210be 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_cmid.py +++ b/packages/python/plotly/plotly/validators/isosurface/_cmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmid", parent_name="isosurface", **kwargs): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='isosurface', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_cmin.py b/packages/python/plotly/plotly/validators/isosurface/_cmin.py index 632d1cc77aa..6b0c0a066aa 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_cmin.py +++ b/packages/python/plotly/plotly/validators/isosurface/_cmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmin", parent_name="isosurface", **kwargs): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='isosurface', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_coloraxis.py b/packages/python/plotly/plotly/validators/isosurface/_coloraxis.py index caab0b08ce6..9e687a5aad2 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/isosurface/_coloraxis.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="coloraxis", parent_name="isosurface", **kwargs): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='isosurface', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_colorbar.py b/packages/python/plotly/plotly/validators/isosurface/_colorbar.py index 308bc26626a..2c546149958 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_colorbar.py +++ b/packages/python/plotly/plotly/validators/isosurface/_colorbar.py @@ -1,279 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="colorbar", parent_name="isosurface", **kwargs): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.isosurf - ace.colorbar.Tickformatstop` instances or dicts - with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.isosurface.colorbar.tickformatstopdefaults), - sets the default property values to use for - elements of isosurface.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.isosurface.colorba - r.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='isosurface', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_colorscale.py b/packages/python/plotly/plotly/validators/isosurface/_colorscale.py index 78a3ea6eb2e..4c8eb5b6723 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_colorscale.py +++ b/packages/python/plotly/plotly/validators/isosurface/_colorscale.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__(self, plotly_name="colorscale", parent_name="isosurface", **kwargs): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='isosurface', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_contour.py b/packages/python/plotly/plotly/validators/isosurface/_contour.py index 28143a0042e..81a9afcaba7 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_contour.py +++ b/packages/python/plotly/plotly/validators/isosurface/_contour.py @@ -1,23 +1,15 @@ -import _plotly_utils.basevalidators -class ContourValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="contour", parent_name="isosurface", **kwargs): - super(ContourValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Contour"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the color of the contour lines. - show - Sets whether or not dynamic contours are shown - on hover - width - Sets the width of the contour lines. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ContourValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='contour', + parent_name='isosurface', + **kwargs): + super(ContourValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Contour'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_customdata.py b/packages/python/plotly/plotly/validators/isosurface/_customdata.py index 5b35ceba527..7162db90adb 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_customdata.py +++ b/packages/python/plotly/plotly/validators/isosurface/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="isosurface", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='isosurface', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_customdatasrc.py b/packages/python/plotly/plotly/validators/isosurface/_customdatasrc.py index 2fbdc561fd2..e57b5a87924 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/isosurface/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="isosurface", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='isosurface', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_flatshading.py b/packages/python/plotly/plotly/validators/isosurface/_flatshading.py index 80f2cdf1555..26c8bf8b8aa 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_flatshading.py +++ b/packages/python/plotly/plotly/validators/isosurface/_flatshading.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FlatshadingValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="flatshading", parent_name="isosurface", **kwargs): - super(FlatshadingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FlatshadingValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='flatshading', + parent_name='isosurface', + **kwargs): + super(FlatshadingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_hoverinfo.py b/packages/python/plotly/plotly/validators/isosurface/_hoverinfo.py index 8719d50190f..bbabe058360 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/isosurface/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="isosurface", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='isosurface', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/isosurface/_hoverinfosrc.py index 0a9d4e85863..8a19368aa1a 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/isosurface/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="isosurface", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='isosurface', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_hoverlabel.py b/packages/python/plotly/plotly/validators/isosurface/_hoverlabel.py index c989c094de5..7a96be62b91 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/isosurface/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="isosurface", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='isosurface', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_hovertemplate.py b/packages/python/plotly/plotly/validators/isosurface/_hovertemplate.py index a2c86e5797c..10faa0acecc 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/isosurface/_hovertemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="isosurface", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='isosurface', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/isosurface/_hovertemplatesrc.py index b6ab21f95ce..1ea9e6bed25 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/isosurface/_hovertemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertemplatesrc", parent_name="isosurface", **kwargs - ): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='isosurface', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_hovertext.py b/packages/python/plotly/plotly/validators/isosurface/_hovertext.py index 5cc216bb616..5186dd548c3 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_hovertext.py +++ b/packages/python/plotly/plotly/validators/isosurface/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="isosurface", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='isosurface', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_hovertextsrc.py b/packages/python/plotly/plotly/validators/isosurface/_hovertextsrc.py index a224087a638..5ad127b258c 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/isosurface/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="isosurface", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='isosurface', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_ids.py b/packages/python/plotly/plotly/validators/isosurface/_ids.py index de1ddf41f04..eb4f5e0b0c9 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_ids.py +++ b/packages/python/plotly/plotly/validators/isosurface/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="isosurface", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='isosurface', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_idssrc.py b/packages/python/plotly/plotly/validators/isosurface/_idssrc.py index 52e7dfb43b9..0026f5dd770 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_idssrc.py +++ b/packages/python/plotly/plotly/validators/isosurface/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="isosurface", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='isosurface', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_isomax.py b/packages/python/plotly/plotly/validators/isosurface/_isomax.py index 7dee7a3ea79..bcb6e70ef1d 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_isomax.py +++ b/packages/python/plotly/plotly/validators/isosurface/_isomax.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IsomaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="isomax", parent_name="isosurface", **kwargs): - super(IsomaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IsomaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='isomax', + parent_name='isosurface', + **kwargs): + super(IsomaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_isomin.py b/packages/python/plotly/plotly/validators/isosurface/_isomin.py index bba82c1a75a..824f080e418 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_isomin.py +++ b/packages/python/plotly/plotly/validators/isosurface/_isomin.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IsominValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="isomin", parent_name="isosurface", **kwargs): - super(IsominValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IsominValidator(_bv.NumberValidator): + def __init__(self, plotly_name='isomin', + parent_name='isosurface', + **kwargs): + super(IsominValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_legend.py b/packages/python/plotly/plotly/validators/isosurface/_legend.py index 69eaf600cc2..3e6729b2a1d 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_legend.py +++ b/packages/python/plotly/plotly/validators/isosurface/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="isosurface", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='isosurface', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_legendgroup.py b/packages/python/plotly/plotly/validators/isosurface/_legendgroup.py index 8704eb5551c..aa309136c93 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/isosurface/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="isosurface", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='isosurface', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/isosurface/_legendgrouptitle.py index a9c333a6ce9..833636bc55e 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/isosurface/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="isosurface", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='isosurface', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_legendrank.py b/packages/python/plotly/plotly/validators/isosurface/_legendrank.py index d5e2b93fba6..723a7297a0e 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_legendrank.py +++ b/packages/python/plotly/plotly/validators/isosurface/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="isosurface", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='isosurface', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_legendwidth.py b/packages/python/plotly/plotly/validators/isosurface/_legendwidth.py index 75a5ef3610a..953345126d1 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/isosurface/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="isosurface", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='isosurface', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_lighting.py b/packages/python/plotly/plotly/validators/isosurface/_lighting.py index eae8c8af9c1..92408060f95 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_lighting.py +++ b/packages/python/plotly/plotly/validators/isosurface/_lighting.py @@ -1,40 +1,15 @@ -import _plotly_utils.basevalidators -class LightingValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="lighting", parent_name="isosurface", **kwargs): - super(LightingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Lighting"), - data_docs=kwargs.pop( - "data_docs", - """ - ambient - Ambient light increases overall color - visibility but can wash out the image. - diffuse - Represents the extent that incident rays are - reflected in a range of angles. - facenormalsepsilon - Epsilon for face normals calculation avoids - math issues arising from degenerate geometry. - fresnel - Represents the reflectance as a dependency of - the viewing angle; e.g. paper is reflective - when viewing it from the edge of the paper - (almost 90 degrees), causing shine. - roughness - Alters specular reflection; the rougher the - surface, the wider and less contrasty the - shine. - specular - Represents the level that incident rays are - reflected in a single direction, causing shine. - vertexnormalsepsilon - Epsilon for vertex normals calculation avoids - math issues arising from degenerate geometry. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LightingValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='lighting', + parent_name='isosurface', + **kwargs): + super(LightingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Lighting'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_lightposition.py b/packages/python/plotly/plotly/validators/isosurface/_lightposition.py index 137f73e9950..81bb3baa68a 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_lightposition.py +++ b/packages/python/plotly/plotly/validators/isosurface/_lightposition.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class LightpositionValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="lightposition", parent_name="isosurface", **kwargs): - super(LightpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Lightposition"), - data_docs=kwargs.pop( - "data_docs", - """ - x - Numeric vector, representing the X coordinate - for each vertex. - y - Numeric vector, representing the Y coordinate - for each vertex. - z - Numeric vector, representing the Z coordinate - for each vertex. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LightpositionValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='lightposition', + parent_name='isosurface', + **kwargs): + super(LightpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Lightposition'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_meta.py b/packages/python/plotly/plotly/validators/isosurface/_meta.py index 61cd93168bc..0fb0f8dd60e 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_meta.py +++ b/packages/python/plotly/plotly/validators/isosurface/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="isosurface", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='isosurface', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_metasrc.py b/packages/python/plotly/plotly/validators/isosurface/_metasrc.py index efd28bc88ec..7e8e4226238 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_metasrc.py +++ b/packages/python/plotly/plotly/validators/isosurface/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="isosurface", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='isosurface', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_name.py b/packages/python/plotly/plotly/validators/isosurface/_name.py index fe4b74f234d..d9d69dd2619 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_name.py +++ b/packages/python/plotly/plotly/validators/isosurface/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="isosurface", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='isosurface', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_opacity.py b/packages/python/plotly/plotly/validators/isosurface/_opacity.py index a3357c3ab92..112fe084f42 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_opacity.py +++ b/packages/python/plotly/plotly/validators/isosurface/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="isosurface", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='isosurface', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_reversescale.py b/packages/python/plotly/plotly/validators/isosurface/_reversescale.py index ba4e9f47788..9f9fbc0a279 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_reversescale.py +++ b/packages/python/plotly/plotly/validators/isosurface/_reversescale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="reversescale", parent_name="isosurface", **kwargs): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='isosurface', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_scene.py b/packages/python/plotly/plotly/validators/isosurface/_scene.py index 557a93c119d..74e635b4144 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_scene.py +++ b/packages/python/plotly/plotly/validators/isosurface/_scene.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SceneValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="scene", parent_name="isosurface", **kwargs): - super(SceneValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "scene"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SceneValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='scene', + parent_name='isosurface', + **kwargs): + super(SceneValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'scene'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_showlegend.py b/packages/python/plotly/plotly/validators/isosurface/_showlegend.py index 732a6aebde1..ed0e97ccf79 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_showlegend.py +++ b/packages/python/plotly/plotly/validators/isosurface/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="isosurface", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='isosurface', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_showscale.py b/packages/python/plotly/plotly/validators/isosurface/_showscale.py index 0765d547433..c350abe1066 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_showscale.py +++ b/packages/python/plotly/plotly/validators/isosurface/_showscale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showscale", parent_name="isosurface", **kwargs): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='isosurface', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_slices.py b/packages/python/plotly/plotly/validators/isosurface/_slices.py index 3c025551c78..162f6eb1427 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_slices.py +++ b/packages/python/plotly/plotly/validators/isosurface/_slices.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class SlicesValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="slices", parent_name="isosurface", **kwargs): - super(SlicesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Slices"), - data_docs=kwargs.pop( - "data_docs", - """ - x - :class:`plotly.graph_objects.isosurface.slices. - X` instance or dict with compatible properties - y - :class:`plotly.graph_objects.isosurface.slices. - Y` instance or dict with compatible properties - z - :class:`plotly.graph_objects.isosurface.slices. - Z` instance or dict with compatible properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SlicesValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='slices', + parent_name='isosurface', + **kwargs): + super(SlicesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Slices'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_spaceframe.py b/packages/python/plotly/plotly/validators/isosurface/_spaceframe.py index c2b61256cf3..6aed469ab59 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_spaceframe.py +++ b/packages/python/plotly/plotly/validators/isosurface/_spaceframe.py @@ -1,29 +1,15 @@ -import _plotly_utils.basevalidators -class SpaceframeValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="spaceframe", parent_name="isosurface", **kwargs): - super(SpaceframeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Spaceframe"), - data_docs=kwargs.pop( - "data_docs", - """ - fill - Sets the fill ratio of the `spaceframe` - elements. The default fill value is 0.15 - meaning that only 15% of the area of every - faces of tetras would be shaded. Applying a - greater `fill` ratio would allow the creation - of stronger elements or could be sued to have - entirely closed areas (in case of using 1). - show - Displays/hides tetrahedron shapes between - minimum and maximum iso-values. Often useful - when either caps or surfaces are disabled or - filled with values less than 1. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SpaceframeValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='spaceframe', + parent_name='isosurface', + **kwargs): + super(SpaceframeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Spaceframe'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_stream.py b/packages/python/plotly/plotly/validators/isosurface/_stream.py index 1bfc1cc59bb..91e63498472 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_stream.py +++ b/packages/python/plotly/plotly/validators/isosurface/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="isosurface", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='isosurface', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_surface.py b/packages/python/plotly/plotly/validators/isosurface/_surface.py index 08d062c60f2..751c7a35ebe 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_surface.py +++ b/packages/python/plotly/plotly/validators/isosurface/_surface.py @@ -1,42 +1,15 @@ -import _plotly_utils.basevalidators -class SurfaceValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="surface", parent_name="isosurface", **kwargs): - super(SurfaceValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Surface"), - data_docs=kwargs.pop( - "data_docs", - """ - count - Sets the number of iso-surfaces between minimum - and maximum iso-values. By default this value - is 2 meaning that only minimum and maximum - surfaces would be drawn. - fill - Sets the fill ratio of the iso-surface. The - default fill value of the surface is 1 meaning - that they are entirely shaded. On the other - hand Applying a `fill` ratio less than one - would allow the creation of openings parallel - to the edges. - pattern - Sets the surface pattern of the iso-surface 3-D - sections. The default pattern of the surface is - `all` meaning that the rest of surface elements - would be shaded. The check options (either 1 or - 2) could be used to draw half of the squares on - the surface. Using various combinations of - capital `A`, `B`, `C`, `D` and `E` may also be - used to reduce the number of triangles on the - iso-surfaces and creating other patterns of - interest. - show - Hides/displays surfaces between minimum and - maximum iso-values. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SurfaceValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='surface', + parent_name='isosurface', + **kwargs): + super(SurfaceValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Surface'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_text.py b/packages/python/plotly/plotly/validators/isosurface/_text.py index f73fb65f230..60d9ed6f4fa 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_text.py +++ b/packages/python/plotly/plotly/validators/isosurface/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="isosurface", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='isosurface', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_textsrc.py b/packages/python/plotly/plotly/validators/isosurface/_textsrc.py index d0325563a32..34c5af220a0 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_textsrc.py +++ b/packages/python/plotly/plotly/validators/isosurface/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="isosurface", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='isosurface', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_uid.py b/packages/python/plotly/plotly/validators/isosurface/_uid.py index 4d658b251f5..5c1c5863315 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_uid.py +++ b/packages/python/plotly/plotly/validators/isosurface/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="isosurface", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='isosurface', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_uirevision.py b/packages/python/plotly/plotly/validators/isosurface/_uirevision.py index f14eeb8d5ea..a156edff208 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_uirevision.py +++ b/packages/python/plotly/plotly/validators/isosurface/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="isosurface", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='isosurface', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_value.py b/packages/python/plotly/plotly/validators/isosurface/_value.py index 29cf0c762c3..c94e4ea3861 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_value.py +++ b/packages/python/plotly/plotly/validators/isosurface/_value.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="value", parent_name="isosurface", **kwargs): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='value', + parent_name='isosurface', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_valuehoverformat.py b/packages/python/plotly/plotly/validators/isosurface/_valuehoverformat.py index 40fa68323ea..6be7bb328fa 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_valuehoverformat.py +++ b/packages/python/plotly/plotly/validators/isosurface/_valuehoverformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ValuehoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="valuehoverformat", parent_name="isosurface", **kwargs - ): - super(ValuehoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValuehoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='valuehoverformat', + parent_name='isosurface', + **kwargs): + super(ValuehoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_valuesrc.py b/packages/python/plotly/plotly/validators/isosurface/_valuesrc.py index bd7d6443261..0f25ef5d6bb 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_valuesrc.py +++ b/packages/python/plotly/plotly/validators/isosurface/_valuesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ValuesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="valuesrc", parent_name="isosurface", **kwargs): - super(ValuesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValuesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='valuesrc', + parent_name='isosurface', + **kwargs): + super(ValuesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_visible.py b/packages/python/plotly/plotly/validators/isosurface/_visible.py index ccd55ca21c3..1e294cafb07 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_visible.py +++ b/packages/python/plotly/plotly/validators/isosurface/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="isosurface", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='isosurface', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_x.py b/packages/python/plotly/plotly/validators/isosurface/_x.py index 66a5bfb1e7c..ec9f03d534d 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_x.py +++ b/packages/python/plotly/plotly/validators/isosurface/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="x", parent_name="isosurface", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='x', + parent_name='isosurface', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_xhoverformat.py b/packages/python/plotly/plotly/validators/isosurface/_xhoverformat.py index e9c582a63b6..5f44648623a 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_xhoverformat.py +++ b/packages/python/plotly/plotly/validators/isosurface/_xhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="xhoverformat", parent_name="isosurface", **kwargs): - super(XhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='xhoverformat', + parent_name='isosurface', + **kwargs): + super(XhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_xsrc.py b/packages/python/plotly/plotly/validators/isosurface/_xsrc.py index 5819e093dff..795222b7fe0 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_xsrc.py +++ b/packages/python/plotly/plotly/validators/isosurface/_xsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="xsrc", parent_name="isosurface", **kwargs): - super(XsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='xsrc', + parent_name='isosurface', + **kwargs): + super(XsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_y.py b/packages/python/plotly/plotly/validators/isosurface/_y.py index fe6da9d2057..684d593d389 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_y.py +++ b/packages/python/plotly/plotly/validators/isosurface/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="y", parent_name="isosurface", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='y', + parent_name='isosurface', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_yhoverformat.py b/packages/python/plotly/plotly/validators/isosurface/_yhoverformat.py index fbaddb3c55d..a7681418ba5 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_yhoverformat.py +++ b/packages/python/plotly/plotly/validators/isosurface/_yhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="yhoverformat", parent_name="isosurface", **kwargs): - super(YhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='yhoverformat', + parent_name='isosurface', + **kwargs): + super(YhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_ysrc.py b/packages/python/plotly/plotly/validators/isosurface/_ysrc.py index a5c397ff245..e5bf610da8f 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_ysrc.py +++ b/packages/python/plotly/plotly/validators/isosurface/_ysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="ysrc", parent_name="isosurface", **kwargs): - super(YsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ysrc', + parent_name='isosurface', + **kwargs): + super(YsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_z.py b/packages/python/plotly/plotly/validators/isosurface/_z.py index 4ce511af591..37e90cda23f 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_z.py +++ b/packages/python/plotly/plotly/validators/isosurface/_z.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="z", parent_name="isosurface", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='z', + parent_name='isosurface', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_zhoverformat.py b/packages/python/plotly/plotly/validators/isosurface/_zhoverformat.py index df244a16286..17230bd355b 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_zhoverformat.py +++ b/packages/python/plotly/plotly/validators/isosurface/_zhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="zhoverformat", parent_name="isosurface", **kwargs): - super(ZhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='zhoverformat', + parent_name='isosurface', + **kwargs): + super(ZhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/_zsrc.py b/packages/python/plotly/plotly/validators/isosurface/_zsrc.py index 67371e5e039..cabbb8d4041 100644 --- a/packages/python/plotly/plotly/validators/isosurface/_zsrc.py +++ b/packages/python/plotly/plotly/validators/isosurface/_zsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="zsrc", parent_name="isosurface", **kwargs): - super(ZsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='zsrc', + parent_name='isosurface', + **kwargs): + super(ZsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/caps/__init__.py b/packages/python/plotly/plotly/validators/isosurface/caps/__init__.py index 52779f59bc4..21cfa26dac1 100644 --- a/packages/python/plotly/plotly/validators/isosurface/caps/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/caps/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._z import ZValidator from ._y import YValidator from ._x import XValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] + __name__, + [], + ['._z.ZValidator', '._y.YValidator', '._x.XValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/isosurface/caps/_x.py b/packages/python/plotly/plotly/validators/isosurface/caps/_x.py index 8198fdb6bd0..8df69cf3f8f 100644 --- a/packages/python/plotly/plotly/validators/isosurface/caps/_x.py +++ b/packages/python/plotly/plotly/validators/isosurface/caps/_x.py @@ -1,29 +1,15 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="x", parent_name="isosurface.caps", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "X"), - data_docs=kwargs.pop( - "data_docs", - """ - fill - Sets the fill ratio of the `caps`. The default - fill value of the `caps` is 1 meaning that they - are entirely shaded. On the other hand Applying - a `fill` ratio less than one would allow the - creation of openings parallel to the edges. - show - Sets the fill ratio of the `slices`. The - default fill value of the x `slices` is 1 - meaning that they are entirely shaded. On the - other hand Applying a `fill` ratio less than - one would allow the creation of openings - parallel to the edges. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='x', + parent_name='isosurface.caps', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'X'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/caps/_y.py b/packages/python/plotly/plotly/validators/isosurface/caps/_y.py index d7170d8a814..59f2d27e0d8 100644 --- a/packages/python/plotly/plotly/validators/isosurface/caps/_y.py +++ b/packages/python/plotly/plotly/validators/isosurface/caps/_y.py @@ -1,29 +1,15 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="y", parent_name="isosurface.caps", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Y"), - data_docs=kwargs.pop( - "data_docs", - """ - fill - Sets the fill ratio of the `caps`. The default - fill value of the `caps` is 1 meaning that they - are entirely shaded. On the other hand Applying - a `fill` ratio less than one would allow the - creation of openings parallel to the edges. - show - Sets the fill ratio of the `slices`. The - default fill value of the y `slices` is 1 - meaning that they are entirely shaded. On the - other hand Applying a `fill` ratio less than - one would allow the creation of openings - parallel to the edges. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='y', + parent_name='isosurface.caps', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Y'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/caps/_z.py b/packages/python/plotly/plotly/validators/isosurface/caps/_z.py index c8686ce94cc..50c73c922fa 100644 --- a/packages/python/plotly/plotly/validators/isosurface/caps/_z.py +++ b/packages/python/plotly/plotly/validators/isosurface/caps/_z.py @@ -1,29 +1,15 @@ -import _plotly_utils.basevalidators -class ZValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="z", parent_name="isosurface.caps", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Z"), - data_docs=kwargs.pop( - "data_docs", - """ - fill - Sets the fill ratio of the `caps`. The default - fill value of the `caps` is 1 meaning that they - are entirely shaded. On the other hand Applying - a `fill` ratio less than one would allow the - creation of openings parallel to the edges. - show - Sets the fill ratio of the `slices`. The - default fill value of the z `slices` is 1 - meaning that they are entirely shaded. On the - other hand Applying a `fill` ratio less than - one would allow the creation of openings - parallel to the edges. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='z', + parent_name='isosurface.caps', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Z'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/caps/x/__init__.py b/packages/python/plotly/plotly/validators/isosurface/caps/x/__init__.py index 63a14620d21..90a3411589a 100644 --- a/packages/python/plotly/plotly/validators/isosurface/caps/x/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/caps/x/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._show import ShowValidator from ._fill import FillValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._show.ShowValidator", "._fill.FillValidator"] + __name__, + [], + ['._show.ShowValidator', '._fill.FillValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/isosurface/caps/x/_fill.py b/packages/python/plotly/plotly/validators/isosurface/caps/x/_fill.py index 781a4f0295b..4bb9731b6e8 100644 --- a/packages/python/plotly/plotly/validators/isosurface/caps/x/_fill.py +++ b/packages/python/plotly/plotly/validators/isosurface/caps/x/_fill.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class FillValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="fill", parent_name="isosurface.caps.x", **kwargs): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fill', + parent_name='isosurface.caps.x', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/caps/x/_show.py b/packages/python/plotly/plotly/validators/isosurface/caps/x/_show.py index 805d9f701aa..dd0356fef78 100644 --- a/packages/python/plotly/plotly/validators/isosurface/caps/x/_show.py +++ b/packages/python/plotly/plotly/validators/isosurface/caps/x/_show.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="show", parent_name="isosurface.caps.x", **kwargs): - super(ShowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='show', + parent_name='isosurface.caps.x', + **kwargs): + super(ShowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/caps/y/__init__.py b/packages/python/plotly/plotly/validators/isosurface/caps/y/__init__.py index 63a14620d21..90a3411589a 100644 --- a/packages/python/plotly/plotly/validators/isosurface/caps/y/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/caps/y/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._show import ShowValidator from ._fill import FillValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._show.ShowValidator", "._fill.FillValidator"] + __name__, + [], + ['._show.ShowValidator', '._fill.FillValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/isosurface/caps/y/_fill.py b/packages/python/plotly/plotly/validators/isosurface/caps/y/_fill.py index de6bd3d0eda..a2274d7b528 100644 --- a/packages/python/plotly/plotly/validators/isosurface/caps/y/_fill.py +++ b/packages/python/plotly/plotly/validators/isosurface/caps/y/_fill.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class FillValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="fill", parent_name="isosurface.caps.y", **kwargs): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fill', + parent_name='isosurface.caps.y', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/caps/y/_show.py b/packages/python/plotly/plotly/validators/isosurface/caps/y/_show.py index 915e9c0dd59..3406ec67e4e 100644 --- a/packages/python/plotly/plotly/validators/isosurface/caps/y/_show.py +++ b/packages/python/plotly/plotly/validators/isosurface/caps/y/_show.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="show", parent_name="isosurface.caps.y", **kwargs): - super(ShowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='show', + parent_name='isosurface.caps.y', + **kwargs): + super(ShowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/caps/z/__init__.py b/packages/python/plotly/plotly/validators/isosurface/caps/z/__init__.py index 63a14620d21..90a3411589a 100644 --- a/packages/python/plotly/plotly/validators/isosurface/caps/z/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/caps/z/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._show import ShowValidator from ._fill import FillValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._show.ShowValidator", "._fill.FillValidator"] + __name__, + [], + ['._show.ShowValidator', '._fill.FillValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/isosurface/caps/z/_fill.py b/packages/python/plotly/plotly/validators/isosurface/caps/z/_fill.py index fc27fbf0cd7..884ec2651ba 100644 --- a/packages/python/plotly/plotly/validators/isosurface/caps/z/_fill.py +++ b/packages/python/plotly/plotly/validators/isosurface/caps/z/_fill.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class FillValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="fill", parent_name="isosurface.caps.z", **kwargs): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fill', + parent_name='isosurface.caps.z', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/caps/z/_show.py b/packages/python/plotly/plotly/validators/isosurface/caps/z/_show.py index a11bad07493..3a568a8c7a4 100644 --- a/packages/python/plotly/plotly/validators/isosurface/caps/z/_show.py +++ b/packages/python/plotly/plotly/validators/isosurface/caps/z/_show.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="show", parent_name="isosurface.caps.z", **kwargs): - super(ShowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='show', + parent_name='isosurface.caps.z', + **kwargs): + super(ShowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/__init__.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_bgcolor.py index 12839101b71..baba4301a47 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="isosurface.colorbar", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='isosurface.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_bordercolor.py index ee0eb2c64f5..c74cab9665c 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="isosurface.colorbar", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='isosurface.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_borderwidth.py index ff13aa4c8e0..e7cade5a9b0 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_borderwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderwidth", parent_name="isosurface.colorbar", **kwargs - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='isosurface.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_dtick.py index fe1ddcc4489..8a1c8732e0e 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="isosurface.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='isosurface.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_exponentformat.py index ade598e0087..9efc03436d2 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_exponentformat.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="exponentformat", parent_name="isosurface.colorbar", **kwargs - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='isosurface.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_labelalias.py index d46f34db7fd..d6fa1b5b86a 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="isosurface.colorbar", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='isosurface.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_len.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_len.py index 490ddd9b80a..4aa3f5268c2 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_len.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="len", parent_name="isosurface.colorbar", **kwargs): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='isosurface.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_lenmode.py index d7300279279..51039e25d45 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_lenmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="lenmode", parent_name="isosurface.colorbar", **kwargs - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='isosurface.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_minexponent.py index 6631cbd2f80..e2ddead35e4 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="isosurface.colorbar", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='isosurface.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_nticks.py index 064c7398c43..fad62eb862a 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="isosurface.colorbar", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='isosurface.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_orientation.py index 7ac5b2a5c7c..c8d512b40eb 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_orientation.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="orientation", parent_name="isosurface.colorbar", **kwargs - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='isosurface.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_outlinecolor.py index ed8afb3d1e4..de803800165 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_outlinecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="outlinecolor", parent_name="isosurface.colorbar", **kwargs - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='isosurface.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_outlinewidth.py index 9c0f9d2b4ea..3f48db4ea66 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_outlinewidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="outlinewidth", parent_name="isosurface.colorbar", **kwargs - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='isosurface.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_separatethousands.py index 678b166d5ad..629271ae904 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="isosurface.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='isosurface.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_showexponent.py index be2c3095257..9930a77fdfe 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="isosurface.colorbar", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='isosurface.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_showticklabels.py index 925c960bd6c..54497ddc3d8 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_showticklabels.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showticklabels", parent_name="isosurface.colorbar", **kwargs - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='isosurface.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_showtickprefix.py index 6cc99117a40..66f616c401b 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_showtickprefix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showtickprefix", parent_name="isosurface.colorbar", **kwargs - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='isosurface.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_showticksuffix.py index 7109e451d79..91f5590163b 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_showticksuffix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showticksuffix", parent_name="isosurface.colorbar", **kwargs - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='isosurface.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_thickness.py index 6ba0e6ade78..853493bf392 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="isosurface.colorbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='isosurface.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_thicknessmode.py index 4bc32e792ac..3575a40717c 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_thicknessmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="thicknessmode", parent_name="isosurface.colorbar", **kwargs - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='isosurface.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_tick0.py index 4a70dc1c2dc..00180d8ce50 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="isosurface.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='isosurface.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickangle.py index fe94f6a460f..8cbcaf3c121 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="isosurface.colorbar", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='isosurface.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickcolor.py index c33938164a2..5ec2a51ea7e 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="isosurface.colorbar", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='isosurface.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickfont.py index d91d332bcbf..a002b970c27 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="isosurface.colorbar", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='isosurface.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickformat.py index 00544818ac5..e76836cced7 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="isosurface.colorbar", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='isosurface.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickformatstopdefaults.py index c71e74ec3c0..06ef6d26cac 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="isosurface.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='isosurface.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickformatstops.py index 3e762bafd3c..281b5efeff5 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickformatstops.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="tickformatstops", parent_name="isosurface.colorbar", **kwargs - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='isosurface.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticklabeloverflow.py index 1842e01a135..b0a95ab1bdb 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="isosurface.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='isosurface.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticklabelposition.py index fc066d230ab..6c53fdf1ab6 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="isosurface.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='isosurface.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticklabelstep.py index 75c9c5a954f..1a1cf54714b 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticklabelstep.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="ticklabelstep", parent_name="isosurface.colorbar", **kwargs - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='isosurface.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticklen.py index 2184e2a0501..db742020e11 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="isosurface.colorbar", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='isosurface.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickmode.py index 69b9d4e3a8c..dfbac2f780a 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="isosurface.colorbar", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='isosurface.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickprefix.py index f9d7379bf56..fe253a59be0 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="isosurface.colorbar", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='isosurface.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticks.py index 16ecb76fa55..2bac5ef7d4b 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="isosurface.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='isosurface.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticksuffix.py index 4554864e8a1..37df96b0580 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="isosurface.colorbar", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='isosurface.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticktext.py index 250dbeab452..18a64b55250 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="isosurface.colorbar", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='isosurface.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticktextsrc.py index ce0c8497fa3..225efb6be5c 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="isosurface.colorbar", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='isosurface.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickvals.py index a6a08c6e96b..4ae8e4d5465 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="isosurface.colorbar", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='isosurface.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickvalssrc.py index bb2e3de192b..1406f1deb8a 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="isosurface.colorbar", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='isosurface.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickwidth.py index 47aa8841b1e..5289f2b0709 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="isosurface.colorbar", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='isosurface.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_title.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_title.py index 5bfe607ada2..301332b34c4 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="isosurface.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='isosurface.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_x.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_x.py index 8b179ab3ddb..0d8f8fd1a6f 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x", parent_name="isosurface.colorbar", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='isosurface.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_xanchor.py index aa12efc6558..0f645f09670 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="isosurface.colorbar", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='isosurface.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_xpad.py index d658784b209..898877e903c 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_xpad.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="xpad", parent_name="isosurface.colorbar", **kwargs): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='isosurface.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_xref.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_xref.py index 50a8039549e..8ab55967b4c 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_xref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xref", parent_name="isosurface.colorbar", **kwargs): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='isosurface.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_y.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_y.py index 89917799b87..98ace815f23 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y", parent_name="isosurface.colorbar", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='isosurface.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_yanchor.py index 1f6e9f4ed26..1539dd49913 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="isosurface.colorbar", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='isosurface.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_ypad.py index e16a5e17162..a95267308c0 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_ypad.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="ypad", parent_name="isosurface.colorbar", **kwargs): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='isosurface.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/_yref.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/_yref.py index c3ac45bceaf..6f23f7a8ad5 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/_yref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yref", parent_name="isosurface.colorbar", **kwargs): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='isosurface.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_color.py index 8d13e02e49b..cd06e8e49f6 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="isosurface.colorbar.tickfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='isosurface.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_family.py index 079b523e2d3..62b592d7049 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="isosurface.colorbar.tickfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='isosurface.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_lineposition.py index 97cdbfce006..d5890159bdd 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="isosurface.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='isosurface.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_shadow.py index 915ea8f303b..eef94cb1179 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="isosurface.colorbar.tickfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='isosurface.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_size.py index 86a99b32640..0cf73e0ba7d 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="isosurface.colorbar.tickfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='isosurface.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_style.py index d9bc71c5838..9c154017e86 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="isosurface.colorbar.tickfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='isosurface.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_textcase.py index 320d1399b7e..3c4b31aa272 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="isosurface.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='isosurface.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_variant.py index 8a8b7474b68..15a52effa09 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="isosurface.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='isosurface.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_weight.py index a34034b85b6..6006be06e48 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="isosurface.colorbar.tickfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='isosurface.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickformatstop/_dtickrange.py index 34d317c972f..c3d075d11d8 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="isosurface.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "valType": "any"}, - {"editType": "calc", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='isosurface.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'valType': 'any'}, {'editType': 'calc', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickformatstop/_enabled.py index 3c2767c136a..6ca4f791689 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="isosurface.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='isosurface.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickformatstop/_name.py index 7cb1a1ade4e..7b24ea50f1e 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="isosurface.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='isosurface.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickformatstop/_templateitemname.py index 7a74cc78534..6d247f15f7b 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="isosurface.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='isosurface.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickformatstop/_value.py index 222f89d5ecb..18e04762556 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="isosurface.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='isosurface.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/_font.py index 759f740178f..cc956426f33 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="isosurface.colorbar.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='isosurface.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/_side.py index 8cfcc05f77c..e98deb444f9 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/_side.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="side", parent_name="isosurface.colorbar.title", **kwargs - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='isosurface.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/_text.py index b5e31c825d6..f5319e78100 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="isosurface.colorbar.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='isosurface.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_color.py index b8e0bdcbbe1..68deacbe5f1 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="isosurface.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='isosurface.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_family.py index bcd91e31ce9..1486e40155c 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="isosurface.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='isosurface.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_lineposition.py index 5c7f0b0ae09..56af6aa77b5 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="isosurface.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='isosurface.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_shadow.py index aec6dbfa5d5..f469a85f412 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="isosurface.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='isosurface.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_size.py index 907a7330a83..ae1f3d1b879 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="isosurface.colorbar.title.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='isosurface.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_style.py index cb07396553c..5e0e3603d91 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="isosurface.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='isosurface.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_textcase.py index 8390b016ef5..851966edc3e 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="isosurface.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='isosurface.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_variant.py index 145beb6c09d..436b1c5d2c5 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="isosurface.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='isosurface.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_weight.py index be31c72fdfa..ae7df44bd06 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="isosurface.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='isosurface.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/contour/__init__.py b/packages/python/plotly/plotly/validators/isosurface/contour/__init__.py index 8d51b1d4c02..7d5028f8667 100644 --- a/packages/python/plotly/plotly/validators/isosurface/contour/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/contour/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._show import ShowValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._width.WidthValidator", "._show.ShowValidator", "._color.ColorValidator"], + ['._width.WidthValidator', '._show.ShowValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/isosurface/contour/_color.py b/packages/python/plotly/plotly/validators/isosurface/contour/_color.py index 3f9a0d2b02d..1ffa5c8b942 100644 --- a/packages/python/plotly/plotly/validators/isosurface/contour/_color.py +++ b/packages/python/plotly/plotly/validators/isosurface/contour/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="isosurface.contour", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='isosurface.contour', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/contour/_show.py b/packages/python/plotly/plotly/validators/isosurface/contour/_show.py index 83f5f03238c..2a38221235c 100644 --- a/packages/python/plotly/plotly/validators/isosurface/contour/_show.py +++ b/packages/python/plotly/plotly/validators/isosurface/contour/_show.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="show", parent_name="isosurface.contour", **kwargs): - super(ShowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='show', + parent_name='isosurface.contour', + **kwargs): + super(ShowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/contour/_width.py b/packages/python/plotly/plotly/validators/isosurface/contour/_width.py index 25fb355393f..fe44aa28f2e 100644 --- a/packages/python/plotly/plotly/validators/isosurface/contour/_width.py +++ b/packages/python/plotly/plotly/validators/isosurface/contour/_width.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="isosurface.contour", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 16), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='isosurface.contour', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 16), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_align.py index f0a83aea241..d8b5fb2de46 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_align.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="align", parent_name="isosurface.hoverlabel", **kwargs - ): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='isosurface.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_alignsrc.py index 0526ae58120..84a7a92cad5 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="isosurface.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='isosurface.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_bgcolor.py index 8b14404b705..cb6732d8b52 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="isosurface.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='isosurface.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_bgcolorsrc.py index 7e25e8204e8..25c9a1703e0 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="isosurface.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='isosurface.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_bordercolor.py index d4ae2f3a290..9f75430b07b 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="isosurface.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='isosurface.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_bordercolorsrc.py index e20a1ad263a..5f5edbaa3e9 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="bordercolorsrc", - parent_name="isosurface.hoverlabel", - **kwargs, - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='isosurface.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_font.py index 78c1669f437..19f96d272d9 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_font.py @@ -1,88 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="isosurface.hoverlabel", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='isosurface.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_namelength.py index 323275ac2cd..577c0a3d215 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="isosurface.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='isosurface.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_namelengthsrc.py index 7c1b841e663..d3ff5b86287 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="isosurface.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='isosurface.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_color.py index 13c97e43f63..2509350fae1 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="isosurface.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='isosurface.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_colorsrc.py index 22e383016ee..ee82c61d570 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="isosurface.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='isosurface.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_family.py index 92b86e472dc..1cba53fa2c4 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="isosurface.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='isosurface.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_familysrc.py index 60d2a9da021..303d76af490 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_familysrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="familysrc", - parent_name="isosurface.hoverlabel.font", - **kwargs, - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='isosurface.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_lineposition.py index 12b9a00b1b4..71780852608 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="isosurface.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='isosurface.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_linepositionsrc.py index 05cb314faf0..4a330fb0740 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="isosurface.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='isosurface.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_shadow.py index 5b58bff5bf9..25fd6d78cfe 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="isosurface.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='isosurface.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_shadowsrc.py index ea5c1fb46f9..a632e27f4ec 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="shadowsrc", - parent_name="isosurface.hoverlabel.font", - **kwargs, - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='isosurface.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_size.py index 230cfcb2942..969b08bcf18 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="isosurface.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='isosurface.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_sizesrc.py index 8243bf38481..1d0b8db4d31 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="isosurface.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='isosurface.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_style.py index d07435309e3..537d45fe389 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="isosurface.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='isosurface.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_stylesrc.py index ac3b371a0d6..77707620bc3 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="isosurface.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='isosurface.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_textcase.py index e7820807c07..0d7859d478e 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="isosurface.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='isosurface.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_textcasesrc.py index 4eaee2c5e1f..a51883d7d83 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="isosurface.hoverlabel.font", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='isosurface.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_variant.py index 406b55cd013..bf873dda40c 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="isosurface.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='isosurface.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_variantsrc.py index 5ab8e74a748..b52c8964e91 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_variantsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="variantsrc", - parent_name="isosurface.hoverlabel.font", - **kwargs, - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='isosurface.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_weight.py index b7b05671437..5dd865e9ec1 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="isosurface.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='isosurface.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_weightsrc.py index 30f03466431..3a9c31233dc 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/_weightsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="weightsrc", - parent_name="isosurface.hoverlabel.font", - **kwargs, - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='isosurface.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/_font.py index 9b4948699c8..014214672b5 100644 --- a/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="isosurface.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='isosurface.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/_text.py index a865475e8a5..d3e8eb3bf17 100644 --- a/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="isosurface.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='isosurface.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_color.py index 29f40601ca3..b4b6528b3bc 100644 --- a/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="isosurface.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='isosurface.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_family.py index d3120f29512..08a9bae1f0e 100644 --- a/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="isosurface.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='isosurface.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_lineposition.py index 71bec958941..86c3b204631 100644 --- a/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="isosurface.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='isosurface.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_shadow.py index d4090d6b39d..abcbb82d96f 100644 --- a/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="isosurface.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='isosurface.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_size.py index b5cb7d56c15..ebbaf64918d 100644 --- a/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="isosurface.legendgrouptitle.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='isosurface.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_style.py index 033844ce087..b5918b6baaf 100644 --- a/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="isosurface.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='isosurface.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_textcase.py index 611ae1638e6..da65a19acfe 100644 --- a/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="isosurface.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='isosurface.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_variant.py index b9521f4e3aa..e43015c0810 100644 --- a/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="isosurface.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='isosurface.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_weight.py index 221e1eb26e4..7c7595722f2 100644 --- a/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/isosurface/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="isosurface.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='isosurface.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/lighting/__init__.py b/packages/python/plotly/plotly/validators/isosurface/lighting/__init__.py index 028351f35d6..f9c262cc056 100644 --- a/packages/python/plotly/plotly/validators/isosurface/lighting/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/lighting/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._vertexnormalsepsilon import VertexnormalsepsilonValidator from ._specular import SpecularValidator @@ -11,17 +10,10 @@ from ._ambient import AmbientValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._vertexnormalsepsilon.VertexnormalsepsilonValidator", - "._specular.SpecularValidator", - "._roughness.RoughnessValidator", - "._fresnel.FresnelValidator", - "._facenormalsepsilon.FacenormalsepsilonValidator", - "._diffuse.DiffuseValidator", - "._ambient.AmbientValidator", - ], + ['._vertexnormalsepsilon.VertexnormalsepsilonValidator', '._specular.SpecularValidator', '._roughness.RoughnessValidator', '._fresnel.FresnelValidator', '._facenormalsepsilon.FacenormalsepsilonValidator', '._diffuse.DiffuseValidator', '._ambient.AmbientValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/isosurface/lighting/_ambient.py b/packages/python/plotly/plotly/validators/isosurface/lighting/_ambient.py index e32860e3c86..bb794e5ab8b 100644 --- a/packages/python/plotly/plotly/validators/isosurface/lighting/_ambient.py +++ b/packages/python/plotly/plotly/validators/isosurface/lighting/_ambient.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AmbientValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ambient", parent_name="isosurface.lighting", **kwargs - ): - super(AmbientValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AmbientValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ambient', + parent_name='isosurface.lighting', + **kwargs): + super(AmbientValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/lighting/_diffuse.py b/packages/python/plotly/plotly/validators/isosurface/lighting/_diffuse.py index 028cf173083..32f954870d4 100644 --- a/packages/python/plotly/plotly/validators/isosurface/lighting/_diffuse.py +++ b/packages/python/plotly/plotly/validators/isosurface/lighting/_diffuse.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class DiffuseValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="diffuse", parent_name="isosurface.lighting", **kwargs - ): - super(DiffuseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DiffuseValidator(_bv.NumberValidator): + def __init__(self, plotly_name='diffuse', + parent_name='isosurface.lighting', + **kwargs): + super(DiffuseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/lighting/_facenormalsepsilon.py b/packages/python/plotly/plotly/validators/isosurface/lighting/_facenormalsepsilon.py index 6d7ab99334b..fd31f57a92e 100644 --- a/packages/python/plotly/plotly/validators/isosurface/lighting/_facenormalsepsilon.py +++ b/packages/python/plotly/plotly/validators/isosurface/lighting/_facenormalsepsilon.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FacenormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="facenormalsepsilon", - parent_name="isosurface.lighting", - **kwargs, - ): - super(FacenormalsepsilonValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FacenormalsepsilonValidator(_bv.NumberValidator): + def __init__(self, plotly_name='facenormalsepsilon', + parent_name='isosurface.lighting', + **kwargs): + super(FacenormalsepsilonValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/lighting/_fresnel.py b/packages/python/plotly/plotly/validators/isosurface/lighting/_fresnel.py index c2a060819c1..73944df752c 100644 --- a/packages/python/plotly/plotly/validators/isosurface/lighting/_fresnel.py +++ b/packages/python/plotly/plotly/validators/isosurface/lighting/_fresnel.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FresnelValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="fresnel", parent_name="isosurface.lighting", **kwargs - ): - super(FresnelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 5), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FresnelValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fresnel', + parent_name='isosurface.lighting', + **kwargs): + super(FresnelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 5), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/lighting/_roughness.py b/packages/python/plotly/plotly/validators/isosurface/lighting/_roughness.py index c16be5b024d..77634f26b1f 100644 --- a/packages/python/plotly/plotly/validators/isosurface/lighting/_roughness.py +++ b/packages/python/plotly/plotly/validators/isosurface/lighting/_roughness.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class RoughnessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="roughness", parent_name="isosurface.lighting", **kwargs - ): - super(RoughnessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RoughnessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='roughness', + parent_name='isosurface.lighting', + **kwargs): + super(RoughnessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/lighting/_specular.py b/packages/python/plotly/plotly/validators/isosurface/lighting/_specular.py index 3be95354f8a..660a3358051 100644 --- a/packages/python/plotly/plotly/validators/isosurface/lighting/_specular.py +++ b/packages/python/plotly/plotly/validators/isosurface/lighting/_specular.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SpecularValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="specular", parent_name="isosurface.lighting", **kwargs - ): - super(SpecularValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 2), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SpecularValidator(_bv.NumberValidator): + def __init__(self, plotly_name='specular', + parent_name='isosurface.lighting', + **kwargs): + super(SpecularValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 2), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/lighting/_vertexnormalsepsilon.py b/packages/python/plotly/plotly/validators/isosurface/lighting/_vertexnormalsepsilon.py index f7f5bff8edb..48a647c72b0 100644 --- a/packages/python/plotly/plotly/validators/isosurface/lighting/_vertexnormalsepsilon.py +++ b/packages/python/plotly/plotly/validators/isosurface/lighting/_vertexnormalsepsilon.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class VertexnormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="vertexnormalsepsilon", - parent_name="isosurface.lighting", - **kwargs, - ): - super(VertexnormalsepsilonValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VertexnormalsepsilonValidator(_bv.NumberValidator): + def __init__(self, plotly_name='vertexnormalsepsilon', + parent_name='isosurface.lighting', + **kwargs): + super(VertexnormalsepsilonValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/lightposition/__init__.py b/packages/python/plotly/plotly/validators/isosurface/lightposition/__init__.py index 52779f59bc4..21cfa26dac1 100644 --- a/packages/python/plotly/plotly/validators/isosurface/lightposition/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/lightposition/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._z import ZValidator from ._y import YValidator from ._x import XValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] + __name__, + [], + ['._z.ZValidator', '._y.YValidator', '._x.XValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/isosurface/lightposition/_x.py b/packages/python/plotly/plotly/validators/isosurface/lightposition/_x.py index 3eec1900cbd..18eae26a8aa 100644 --- a/packages/python/plotly/plotly/validators/isosurface/lightposition/_x.py +++ b/packages/python/plotly/plotly/validators/isosurface/lightposition/_x.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="x", parent_name="isosurface.lightposition", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 100000), - min=kwargs.pop("min", -100000), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='isosurface.lightposition', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 100000), + min=kwargs.pop('min', -100000), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/lightposition/_y.py b/packages/python/plotly/plotly/validators/isosurface/lightposition/_y.py index 8ca85fac831..c6e60077d67 100644 --- a/packages/python/plotly/plotly/validators/isosurface/lightposition/_y.py +++ b/packages/python/plotly/plotly/validators/isosurface/lightposition/_y.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="y", parent_name="isosurface.lightposition", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 100000), - min=kwargs.pop("min", -100000), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='isosurface.lightposition', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 100000), + min=kwargs.pop('min', -100000), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/lightposition/_z.py b/packages/python/plotly/plotly/validators/isosurface/lightposition/_z.py index f710d8153f1..52d0e742d75 100644 --- a/packages/python/plotly/plotly/validators/isosurface/lightposition/_z.py +++ b/packages/python/plotly/plotly/validators/isosurface/lightposition/_z.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ZValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="z", parent_name="isosurface.lightposition", **kwargs - ): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 100000), - min=kwargs.pop("min", -100000), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.NumberValidator): + def __init__(self, plotly_name='z', + parent_name='isosurface.lightposition', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 100000), + min=kwargs.pop('min', -100000), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/slices/__init__.py b/packages/python/plotly/plotly/validators/isosurface/slices/__init__.py index 52779f59bc4..21cfa26dac1 100644 --- a/packages/python/plotly/plotly/validators/isosurface/slices/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/slices/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._z import ZValidator from ._y import YValidator from ._x import XValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] + __name__, + [], + ['._z.ZValidator', '._y.YValidator', '._x.XValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/isosurface/slices/_x.py b/packages/python/plotly/plotly/validators/isosurface/slices/_x.py index 421db138ed6..821e1960a49 100644 --- a/packages/python/plotly/plotly/validators/isosurface/slices/_x.py +++ b/packages/python/plotly/plotly/validators/isosurface/slices/_x.py @@ -1,34 +1,15 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="x", parent_name="isosurface.slices", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "X"), - data_docs=kwargs.pop( - "data_docs", - """ - fill - Sets the fill ratio of the `slices`. The - default fill value of the `slices` is 1 meaning - that they are entirely shaded. On the other - hand Applying a `fill` ratio less than one - would allow the creation of openings parallel - to the edges. - locations - Specifies the location(s) of slices on the - axis. When not specified slices would be - created for all points of the axis x except - start and end. - locationssrc - Sets the source reference on Chart Studio Cloud - for `locations`. - show - Determines whether or not slice planes about - the x dimension are drawn. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='x', + parent_name='isosurface.slices', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'X'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/slices/_y.py b/packages/python/plotly/plotly/validators/isosurface/slices/_y.py index e9b11ffccf2..b1290ebffde 100644 --- a/packages/python/plotly/plotly/validators/isosurface/slices/_y.py +++ b/packages/python/plotly/plotly/validators/isosurface/slices/_y.py @@ -1,34 +1,15 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="y", parent_name="isosurface.slices", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Y"), - data_docs=kwargs.pop( - "data_docs", - """ - fill - Sets the fill ratio of the `slices`. The - default fill value of the `slices` is 1 meaning - that they are entirely shaded. On the other - hand Applying a `fill` ratio less than one - would allow the creation of openings parallel - to the edges. - locations - Specifies the location(s) of slices on the - axis. When not specified slices would be - created for all points of the axis y except - start and end. - locationssrc - Sets the source reference on Chart Studio Cloud - for `locations`. - show - Determines whether or not slice planes about - the y dimension are drawn. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='y', + parent_name='isosurface.slices', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Y'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/slices/_z.py b/packages/python/plotly/plotly/validators/isosurface/slices/_z.py index 30570eb74a2..e6a1ea753f6 100644 --- a/packages/python/plotly/plotly/validators/isosurface/slices/_z.py +++ b/packages/python/plotly/plotly/validators/isosurface/slices/_z.py @@ -1,34 +1,15 @@ -import _plotly_utils.basevalidators -class ZValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="z", parent_name="isosurface.slices", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Z"), - data_docs=kwargs.pop( - "data_docs", - """ - fill - Sets the fill ratio of the `slices`. The - default fill value of the `slices` is 1 meaning - that they are entirely shaded. On the other - hand Applying a `fill` ratio less than one - would allow the creation of openings parallel - to the edges. - locations - Specifies the location(s) of slices on the - axis. When not specified slices would be - created for all points of the axis z except - start and end. - locationssrc - Sets the source reference on Chart Studio Cloud - for `locations`. - show - Determines whether or not slice planes about - the z dimension are drawn. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='z', + parent_name='isosurface.slices', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Z'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/slices/x/__init__.py b/packages/python/plotly/plotly/validators/isosurface/slices/x/__init__.py index 9085068ffff..57d5d4f8235 100644 --- a/packages/python/plotly/plotly/validators/isosurface/slices/x/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/slices/x/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._show import ShowValidator from ._locationssrc import LocationssrcValidator @@ -8,14 +7,10 @@ from ._fill import FillValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._show.ShowValidator", - "._locationssrc.LocationssrcValidator", - "._locations.LocationsValidator", - "._fill.FillValidator", - ], + ['._show.ShowValidator', '._locationssrc.LocationssrcValidator', '._locations.LocationsValidator', '._fill.FillValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/isosurface/slices/x/_fill.py b/packages/python/plotly/plotly/validators/isosurface/slices/x/_fill.py index 282b628ec63..4a1ced4795d 100644 --- a/packages/python/plotly/plotly/validators/isosurface/slices/x/_fill.py +++ b/packages/python/plotly/plotly/validators/isosurface/slices/x/_fill.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class FillValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="fill", parent_name="isosurface.slices.x", **kwargs): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fill', + parent_name='isosurface.slices.x', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/slices/x/_locations.py b/packages/python/plotly/plotly/validators/isosurface/slices/x/_locations.py index f33fa6b1978..523d10278d9 100644 --- a/packages/python/plotly/plotly/validators/isosurface/slices/x/_locations.py +++ b/packages/python/plotly/plotly/validators/isosurface/slices/x/_locations.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="locations", parent_name="isosurface.slices.x", **kwargs - ): - super(LocationsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LocationsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='locations', + parent_name='isosurface.slices.x', + **kwargs): + super(LocationsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/slices/x/_locationssrc.py b/packages/python/plotly/plotly/validators/isosurface/slices/x/_locationssrc.py index 0f617948ea3..53c47131ce4 100644 --- a/packages/python/plotly/plotly/validators/isosurface/slices/x/_locationssrc.py +++ b/packages/python/plotly/plotly/validators/isosurface/slices/x/_locationssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="locationssrc", parent_name="isosurface.slices.x", **kwargs - ): - super(LocationssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LocationssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='locationssrc', + parent_name='isosurface.slices.x', + **kwargs): + super(LocationssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/slices/x/_show.py b/packages/python/plotly/plotly/validators/isosurface/slices/x/_show.py index 0cc53bd0365..8989511beb5 100644 --- a/packages/python/plotly/plotly/validators/isosurface/slices/x/_show.py +++ b/packages/python/plotly/plotly/validators/isosurface/slices/x/_show.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="show", parent_name="isosurface.slices.x", **kwargs): - super(ShowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='show', + parent_name='isosurface.slices.x', + **kwargs): + super(ShowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/slices/y/__init__.py b/packages/python/plotly/plotly/validators/isosurface/slices/y/__init__.py index 9085068ffff..57d5d4f8235 100644 --- a/packages/python/plotly/plotly/validators/isosurface/slices/y/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/slices/y/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._show import ShowValidator from ._locationssrc import LocationssrcValidator @@ -8,14 +7,10 @@ from ._fill import FillValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._show.ShowValidator", - "._locationssrc.LocationssrcValidator", - "._locations.LocationsValidator", - "._fill.FillValidator", - ], + ['._show.ShowValidator', '._locationssrc.LocationssrcValidator', '._locations.LocationsValidator', '._fill.FillValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/isosurface/slices/y/_fill.py b/packages/python/plotly/plotly/validators/isosurface/slices/y/_fill.py index dda09cd2f39..cf990cecd4b 100644 --- a/packages/python/plotly/plotly/validators/isosurface/slices/y/_fill.py +++ b/packages/python/plotly/plotly/validators/isosurface/slices/y/_fill.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class FillValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="fill", parent_name="isosurface.slices.y", **kwargs): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fill', + parent_name='isosurface.slices.y', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/slices/y/_locations.py b/packages/python/plotly/plotly/validators/isosurface/slices/y/_locations.py index 10442d99866..848c783cd68 100644 --- a/packages/python/plotly/plotly/validators/isosurface/slices/y/_locations.py +++ b/packages/python/plotly/plotly/validators/isosurface/slices/y/_locations.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="locations", parent_name="isosurface.slices.y", **kwargs - ): - super(LocationsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LocationsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='locations', + parent_name='isosurface.slices.y', + **kwargs): + super(LocationsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/slices/y/_locationssrc.py b/packages/python/plotly/plotly/validators/isosurface/slices/y/_locationssrc.py index e8e07c5e1ba..ae6d8489591 100644 --- a/packages/python/plotly/plotly/validators/isosurface/slices/y/_locationssrc.py +++ b/packages/python/plotly/plotly/validators/isosurface/slices/y/_locationssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="locationssrc", parent_name="isosurface.slices.y", **kwargs - ): - super(LocationssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LocationssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='locationssrc', + parent_name='isosurface.slices.y', + **kwargs): + super(LocationssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/slices/y/_show.py b/packages/python/plotly/plotly/validators/isosurface/slices/y/_show.py index 1167857455c..94b164fa655 100644 --- a/packages/python/plotly/plotly/validators/isosurface/slices/y/_show.py +++ b/packages/python/plotly/plotly/validators/isosurface/slices/y/_show.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="show", parent_name="isosurface.slices.y", **kwargs): - super(ShowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='show', + parent_name='isosurface.slices.y', + **kwargs): + super(ShowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/slices/z/__init__.py b/packages/python/plotly/plotly/validators/isosurface/slices/z/__init__.py index 9085068ffff..57d5d4f8235 100644 --- a/packages/python/plotly/plotly/validators/isosurface/slices/z/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/slices/z/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._show import ShowValidator from ._locationssrc import LocationssrcValidator @@ -8,14 +7,10 @@ from ._fill import FillValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._show.ShowValidator", - "._locationssrc.LocationssrcValidator", - "._locations.LocationsValidator", - "._fill.FillValidator", - ], + ['._show.ShowValidator', '._locationssrc.LocationssrcValidator', '._locations.LocationsValidator', '._fill.FillValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/isosurface/slices/z/_fill.py b/packages/python/plotly/plotly/validators/isosurface/slices/z/_fill.py index 0600dd88cc4..39460a18faf 100644 --- a/packages/python/plotly/plotly/validators/isosurface/slices/z/_fill.py +++ b/packages/python/plotly/plotly/validators/isosurface/slices/z/_fill.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class FillValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="fill", parent_name="isosurface.slices.z", **kwargs): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fill', + parent_name='isosurface.slices.z', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/slices/z/_locations.py b/packages/python/plotly/plotly/validators/isosurface/slices/z/_locations.py index bbca13acd33..902417929f3 100644 --- a/packages/python/plotly/plotly/validators/isosurface/slices/z/_locations.py +++ b/packages/python/plotly/plotly/validators/isosurface/slices/z/_locations.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="locations", parent_name="isosurface.slices.z", **kwargs - ): - super(LocationsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LocationsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='locations', + parent_name='isosurface.slices.z', + **kwargs): + super(LocationsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/slices/z/_locationssrc.py b/packages/python/plotly/plotly/validators/isosurface/slices/z/_locationssrc.py index 47ebf367e1a..fef721b72fa 100644 --- a/packages/python/plotly/plotly/validators/isosurface/slices/z/_locationssrc.py +++ b/packages/python/plotly/plotly/validators/isosurface/slices/z/_locationssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="locationssrc", parent_name="isosurface.slices.z", **kwargs - ): - super(LocationssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LocationssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='locationssrc', + parent_name='isosurface.slices.z', + **kwargs): + super(LocationssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/slices/z/_show.py b/packages/python/plotly/plotly/validators/isosurface/slices/z/_show.py index f15fdefeeaf..926bc720c62 100644 --- a/packages/python/plotly/plotly/validators/isosurface/slices/z/_show.py +++ b/packages/python/plotly/plotly/validators/isosurface/slices/z/_show.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="show", parent_name="isosurface.slices.z", **kwargs): - super(ShowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='show', + parent_name='isosurface.slices.z', + **kwargs): + super(ShowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/spaceframe/__init__.py b/packages/python/plotly/plotly/validators/isosurface/spaceframe/__init__.py index 63a14620d21..90a3411589a 100644 --- a/packages/python/plotly/plotly/validators/isosurface/spaceframe/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/spaceframe/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._show import ShowValidator from ._fill import FillValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._show.ShowValidator", "._fill.FillValidator"] + __name__, + [], + ['._show.ShowValidator', '._fill.FillValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/isosurface/spaceframe/_fill.py b/packages/python/plotly/plotly/validators/isosurface/spaceframe/_fill.py index 47d03f2068d..a645522e76d 100644 --- a/packages/python/plotly/plotly/validators/isosurface/spaceframe/_fill.py +++ b/packages/python/plotly/plotly/validators/isosurface/spaceframe/_fill.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FillValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="fill", parent_name="isosurface.spaceframe", **kwargs - ): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fill', + parent_name='isosurface.spaceframe', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/spaceframe/_show.py b/packages/python/plotly/plotly/validators/isosurface/spaceframe/_show.py index 9c279bb5cbc..6d592ed92db 100644 --- a/packages/python/plotly/plotly/validators/isosurface/spaceframe/_show.py +++ b/packages/python/plotly/plotly/validators/isosurface/spaceframe/_show.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="show", parent_name="isosurface.spaceframe", **kwargs - ): - super(ShowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='show', + parent_name='isosurface.spaceframe', + **kwargs): + super(ShowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/stream/__init__.py b/packages/python/plotly/plotly/validators/isosurface/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/isosurface/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/isosurface/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/isosurface/stream/_maxpoints.py index a5bb60c9394..2899ae34a0b 100644 --- a/packages/python/plotly/plotly/validators/isosurface/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/isosurface/stream/_maxpoints.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxpoints", parent_name="isosurface.stream", **kwargs - ): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='isosurface.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/stream/_token.py b/packages/python/plotly/plotly/validators/isosurface/stream/_token.py index 89752f51f0e..48110e3a3fd 100644 --- a/packages/python/plotly/plotly/validators/isosurface/stream/_token.py +++ b/packages/python/plotly/plotly/validators/isosurface/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="isosurface.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='isosurface.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/surface/__init__.py b/packages/python/plotly/plotly/validators/isosurface/surface/__init__.py index 79e3ea4c55c..2e07edbfab8 100644 --- a/packages/python/plotly/plotly/validators/isosurface/surface/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/surface/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._show import ShowValidator from ._pattern import PatternValidator @@ -8,14 +7,10 @@ from ._count import CountValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._show.ShowValidator", - "._pattern.PatternValidator", - "._fill.FillValidator", - "._count.CountValidator", - ], + ['._show.ShowValidator', '._pattern.PatternValidator', '._fill.FillValidator', '._count.CountValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/isosurface/surface/_count.py b/packages/python/plotly/plotly/validators/isosurface/surface/_count.py index 91ccaf4ca73..cde0be1bfc2 100644 --- a/packages/python/plotly/plotly/validators/isosurface/surface/_count.py +++ b/packages/python/plotly/plotly/validators/isosurface/surface/_count.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CountValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="count", parent_name="isosurface.surface", **kwargs): - super(CountValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CountValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='count', + parent_name='isosurface.surface', + **kwargs): + super(CountValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/surface/_fill.py b/packages/python/plotly/plotly/validators/isosurface/surface/_fill.py index f010167913b..d1bccdfad30 100644 --- a/packages/python/plotly/plotly/validators/isosurface/surface/_fill.py +++ b/packages/python/plotly/plotly/validators/isosurface/surface/_fill.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class FillValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="fill", parent_name="isosurface.surface", **kwargs): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fill', + parent_name='isosurface.surface', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/surface/_pattern.py b/packages/python/plotly/plotly/validators/isosurface/surface/_pattern.py index 40bdeed86d9..3407716b734 100644 --- a/packages/python/plotly/plotly/validators/isosurface/surface/_pattern.py +++ b/packages/python/plotly/plotly/validators/isosurface/surface/_pattern.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class PatternValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="pattern", parent_name="isosurface.surface", **kwargs - ): - super(PatternValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["all", "odd", "even"]), - flags=kwargs.pop("flags", ["A", "B", "C", "D", "E"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class PatternValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='pattern', + parent_name='isosurface.surface', + **kwargs): + super(PatternValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['all', 'odd', 'even']), + flags=kwargs.pop('flags', ['A', 'B', 'C', 'D', 'E']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/isosurface/surface/_show.py b/packages/python/plotly/plotly/validators/isosurface/surface/_show.py index 618fc2f5027..6556bc01bd3 100644 --- a/packages/python/plotly/plotly/validators/isosurface/surface/_show.py +++ b/packages/python/plotly/plotly/validators/isosurface/surface/_show.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="show", parent_name="isosurface.surface", **kwargs): - super(ShowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='show', + parent_name='isosurface.surface', + **kwargs): + super(ShowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/__init__.py b/packages/python/plotly/plotly/validators/layout/__init__.py index fb124527519..a46db557c06 100644 --- a/packages/python/plotly/plotly/validators/layout/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yaxis import YaxisValidator from ._xaxis import XaxisValidator @@ -99,105 +98,10 @@ from ._activeselection import ActiveselectionValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yaxis.YaxisValidator", - "._xaxis.XaxisValidator", - "._width.WidthValidator", - "._waterfallmode.WaterfallmodeValidator", - "._waterfallgroupgap.WaterfallgroupgapValidator", - "._waterfallgap.WaterfallgapValidator", - "._violinmode.ViolinmodeValidator", - "._violingroupgap.ViolingroupgapValidator", - "._violingap.ViolingapValidator", - "._updatemenudefaults.UpdatemenudefaultsValidator", - "._updatemenus.UpdatemenusValidator", - "._uniformtext.UniformtextValidator", - "._uirevision.UirevisionValidator", - "._treemapcolorway.TreemapcolorwayValidator", - "._transition.TransitionValidator", - "._title.TitleValidator", - "._ternary.TernaryValidator", - "._template.TemplateValidator", - "._sunburstcolorway.SunburstcolorwayValidator", - "._spikedistance.SpikedistanceValidator", - "._smith.SmithValidator", - "._sliderdefaults.SliderdefaultsValidator", - "._sliders.SlidersValidator", - "._showlegend.ShowlegendValidator", - "._shapedefaults.ShapedefaultsValidator", - "._shapes.ShapesValidator", - "._separators.SeparatorsValidator", - "._selectiondefaults.SelectiondefaultsValidator", - "._selections.SelectionsValidator", - "._selectionrevision.SelectionrevisionValidator", - "._selectdirection.SelectdirectionValidator", - "._scene.SceneValidator", - "._scattermode.ScattermodeValidator", - "._scattergap.ScattergapValidator", - "._polar.PolarValidator", - "._plot_bgcolor.Plot_BgcolorValidator", - "._piecolorway.PiecolorwayValidator", - "._paper_bgcolor.Paper_BgcolorValidator", - "._newshape.NewshapeValidator", - "._newselection.NewselectionValidator", - "._modebar.ModebarValidator", - "._minreducedwidth.MinreducedwidthValidator", - "._minreducedheight.MinreducedheightValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._margin.MarginValidator", - "._mapbox.MapboxValidator", - "._map.MapValidator", - "._legend.LegendValidator", - "._imagedefaults.ImagedefaultsValidator", - "._images.ImagesValidator", - "._iciclecolorway.IciclecolorwayValidator", - "._hoversubplots.HoversubplotsValidator", - "._hovermode.HovermodeValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverdistance.HoverdistanceValidator", - "._hidesources.HidesourcesValidator", - "._hiddenlabelssrc.HiddenlabelssrcValidator", - "._hiddenlabels.HiddenlabelsValidator", - "._height.HeightValidator", - "._grid.GridValidator", - "._geo.GeoValidator", - "._funnelmode.FunnelmodeValidator", - "._funnelgroupgap.FunnelgroupgapValidator", - "._funnelgap.FunnelgapValidator", - "._funnelareacolorway.FunnelareacolorwayValidator", - "._font.FontValidator", - "._extendtreemapcolors.ExtendtreemapcolorsValidator", - "._extendsunburstcolors.ExtendsunburstcolorsValidator", - "._extendpiecolors.ExtendpiecolorsValidator", - "._extendiciclecolors.ExtendiciclecolorsValidator", - "._extendfunnelareacolors.ExtendfunnelareacolorsValidator", - "._editrevision.EditrevisionValidator", - "._dragmode.DragmodeValidator", - "._datarevision.DatarevisionValidator", - "._computed.ComputedValidator", - "._colorway.ColorwayValidator", - "._colorscale.ColorscaleValidator", - "._coloraxis.ColoraxisValidator", - "._clickmode.ClickmodeValidator", - "._calendar.CalendarValidator", - "._boxmode.BoxmodeValidator", - "._boxgroupgap.BoxgroupgapValidator", - "._boxgap.BoxgapValidator", - "._barnorm.BarnormValidator", - "._barmode.BarmodeValidator", - "._bargroupgap.BargroupgapValidator", - "._bargap.BargapValidator", - "._barcornerradius.BarcornerradiusValidator", - "._autotypenumbers.AutotypenumbersValidator", - "._autosize.AutosizeValidator", - "._annotationdefaults.AnnotationdefaultsValidator", - "._annotations.AnnotationsValidator", - "._activeshape.ActiveshapeValidator", - "._activeselection.ActiveselectionValidator", - ], + ['._yaxis.YaxisValidator', '._xaxis.XaxisValidator', '._width.WidthValidator', '._waterfallmode.WaterfallmodeValidator', '._waterfallgroupgap.WaterfallgroupgapValidator', '._waterfallgap.WaterfallgapValidator', '._violinmode.ViolinmodeValidator', '._violingroupgap.ViolingroupgapValidator', '._violingap.ViolingapValidator', '._updatemenudefaults.UpdatemenudefaultsValidator', '._updatemenus.UpdatemenusValidator', '._uniformtext.UniformtextValidator', '._uirevision.UirevisionValidator', '._treemapcolorway.TreemapcolorwayValidator', '._transition.TransitionValidator', '._title.TitleValidator', '._ternary.TernaryValidator', '._template.TemplateValidator', '._sunburstcolorway.SunburstcolorwayValidator', '._spikedistance.SpikedistanceValidator', '._smith.SmithValidator', '._sliderdefaults.SliderdefaultsValidator', '._sliders.SlidersValidator', '._showlegend.ShowlegendValidator', '._shapedefaults.ShapedefaultsValidator', '._shapes.ShapesValidator', '._separators.SeparatorsValidator', '._selectiondefaults.SelectiondefaultsValidator', '._selections.SelectionsValidator', '._selectionrevision.SelectionrevisionValidator', '._selectdirection.SelectdirectionValidator', '._scene.SceneValidator', '._scattermode.ScattermodeValidator', '._scattergap.ScattergapValidator', '._polar.PolarValidator', '._plot_bgcolor.Plot_BgcolorValidator', '._piecolorway.PiecolorwayValidator', '._paper_bgcolor.Paper_BgcolorValidator', '._newshape.NewshapeValidator', '._newselection.NewselectionValidator', '._modebar.ModebarValidator', '._minreducedwidth.MinreducedwidthValidator', '._minreducedheight.MinreducedheightValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._margin.MarginValidator', '._mapbox.MapboxValidator', '._map.MapValidator', '._legend.LegendValidator', '._imagedefaults.ImagedefaultsValidator', '._images.ImagesValidator', '._iciclecolorway.IciclecolorwayValidator', '._hoversubplots.HoversubplotsValidator', '._hovermode.HovermodeValidator', '._hoverlabel.HoverlabelValidator', '._hoverdistance.HoverdistanceValidator', '._hidesources.HidesourcesValidator', '._hiddenlabelssrc.HiddenlabelssrcValidator', '._hiddenlabels.HiddenlabelsValidator', '._height.HeightValidator', '._grid.GridValidator', '._geo.GeoValidator', '._funnelmode.FunnelmodeValidator', '._funnelgroupgap.FunnelgroupgapValidator', '._funnelgap.FunnelgapValidator', '._funnelareacolorway.FunnelareacolorwayValidator', '._font.FontValidator', '._extendtreemapcolors.ExtendtreemapcolorsValidator', '._extendsunburstcolors.ExtendsunburstcolorsValidator', '._extendpiecolors.ExtendpiecolorsValidator', '._extendiciclecolors.ExtendiciclecolorsValidator', '._extendfunnelareacolors.ExtendfunnelareacolorsValidator', '._editrevision.EditrevisionValidator', '._dragmode.DragmodeValidator', '._datarevision.DatarevisionValidator', '._computed.ComputedValidator', '._colorway.ColorwayValidator', '._colorscale.ColorscaleValidator', '._coloraxis.ColoraxisValidator', '._clickmode.ClickmodeValidator', '._calendar.CalendarValidator', '._boxmode.BoxmodeValidator', '._boxgroupgap.BoxgroupgapValidator', '._boxgap.BoxgapValidator', '._barnorm.BarnormValidator', '._barmode.BarmodeValidator', '._bargroupgap.BargroupgapValidator', '._bargap.BargapValidator', '._barcornerradius.BarcornerradiusValidator', '._autotypenumbers.AutotypenumbersValidator', '._autosize.AutosizeValidator', '._annotationdefaults.AnnotationdefaultsValidator', '._annotations.AnnotationsValidator', '._activeshape.ActiveshapeValidator', '._activeselection.ActiveselectionValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/_activeselection.py b/packages/python/plotly/plotly/validators/layout/_activeselection.py index e09766089ea..daf68a9bea7 100644 --- a/packages/python/plotly/plotly/validators/layout/_activeselection.py +++ b/packages/python/plotly/plotly/validators/layout/_activeselection.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class ActiveselectionValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="activeselection", parent_name="layout", **kwargs): - super(ActiveselectionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Activeselection"), - data_docs=kwargs.pop( - "data_docs", - """ - fillcolor - Sets the color filling the active selection' - interior. - opacity - Sets the opacity of the active selection. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ActiveselectionValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='activeselection', + parent_name='layout', + **kwargs): + super(ActiveselectionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Activeselection'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_activeshape.py b/packages/python/plotly/plotly/validators/layout/_activeshape.py index fb763065f64..4872a8dcdfe 100644 --- a/packages/python/plotly/plotly/validators/layout/_activeshape.py +++ b/packages/python/plotly/plotly/validators/layout/_activeshape.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class ActiveshapeValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="activeshape", parent_name="layout", **kwargs): - super(ActiveshapeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Activeshape"), - data_docs=kwargs.pop( - "data_docs", - """ - fillcolor - Sets the color filling the active shape' - interior. - opacity - Sets the opacity of the active shape. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ActiveshapeValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='activeshape', + parent_name='layout', + **kwargs): + super(ActiveshapeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Activeshape'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_annotationdefaults.py b/packages/python/plotly/plotly/validators/layout/_annotationdefaults.py index b59ff513fe6..e55735e0ea7 100644 --- a/packages/python/plotly/plotly/validators/layout/_annotationdefaults.py +++ b/packages/python/plotly/plotly/validators/layout/_annotationdefaults.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class AnnotationdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="annotationdefaults", parent_name="layout", **kwargs - ): - super(AnnotationdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Annotation"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AnnotationdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='annotationdefaults', + parent_name='layout', + **kwargs): + super(AnnotationdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Annotation'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_annotations.py b/packages/python/plotly/plotly/validators/layout/_annotations.py index 7e5f116bea1..3f49d3a79af 100644 --- a/packages/python/plotly/plotly/validators/layout/_annotations.py +++ b/packages/python/plotly/plotly/validators/layout/_annotations.py @@ -1,333 +1,15 @@ -import _plotly_utils.basevalidators -class AnnotationsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__(self, plotly_name="annotations", parent_name="layout", **kwargs): - super(AnnotationsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Annotation"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the `text` - within the box. Has an effect only if `text` - spans two or more lines (i.e. `text` contains - one or more
HTML tags) or if an explicit - width is set to override the text width. - arrowcolor - Sets the color of the annotation arrow. - arrowhead - Sets the end annotation arrow head style. - arrowside - Sets the annotation arrow head position. - arrowsize - Sets the size of the end annotation arrow head, - relative to `arrowwidth`. A value of 1 - (default) gives a head about 3x as wide as the - line. - arrowwidth - Sets the width (in px) of annotation arrow - line. - ax - Sets the x component of the arrow tail about - the arrow head. If `axref` is `pixel`, a - positive (negative) component corresponds to an - arrow pointing from right to left (left to - right). If `axref` is not `pixel` and is - exactly the same as `xref`, this is an absolute - value on that axis, like `x`, specified in the - same coordinates as `xref`. - axref - Indicates in what coordinates the tail of the - annotation (ax,ay) is specified. If set to a x - axis id (e.g. "x" or "x2"), the `x` position - refers to a x coordinate. If set to "paper", - the `x` position refers to the distance from - the left of the plotting area in normalized - coordinates where 0 (1) corresponds to the left - (right). If set to a x axis ID followed by - "domain" (separated by a space), the position - behaves like for "paper", but refers to the - distance in fractions of the domain length from - the left of the domain of that axis: e.g., *x2 - domain* refers to the domain of the second x - axis and a x position of 0.5 refers to the - point between the left and the right of the - domain of the second x axis. In order for - absolute positioning of the arrow to work, - "axref" must be exactly the same as "xref", - otherwise "axref" will revert to "pixel" - (explained next). For relative positioning, - "axref" can be set to "pixel", in which case - the "ax" value is specified in pixels relative - to "x". Absolute positioning is useful for - trendline annotations which should continue to - indicate the correct trend when zoomed. - Relative positioning is useful for specifying - the text offset for an annotated point. - ay - Sets the y component of the arrow tail about - the arrow head. If `ayref` is `pixel`, a - positive (negative) component corresponds to an - arrow pointing from bottom to top (top to - bottom). If `ayref` is not `pixel` and is - exactly the same as `yref`, this is an absolute - value on that axis, like `y`, specified in the - same coordinates as `yref`. - ayref - Indicates in what coordinates the tail of the - annotation (ax,ay) is specified. If set to a y - axis id (e.g. "y" or "y2"), the `y` position - refers to a y coordinate. If set to "paper", - the `y` position refers to the distance from - the bottom of the plotting area in normalized - coordinates where 0 (1) corresponds to the - bottom (top). If set to a y axis ID followed by - "domain" (separated by a space), the position - behaves like for "paper", but refers to the - distance in fractions of the domain length from - the bottom of the domain of that axis: e.g., - *y2 domain* refers to the domain of the second - y axis and a y position of 0.5 refers to the - point between the bottom and the top of the - domain of the second y axis. In order for - absolute positioning of the arrow to work, - "ayref" must be exactly the same as "yref", - otherwise "ayref" will revert to "pixel" - (explained next). For relative positioning, - "ayref" can be set to "pixel", in which case - the "ay" value is specified in pixels relative - to "y". Absolute positioning is useful for - trendline annotations which should continue to - indicate the correct trend when zoomed. - Relative positioning is useful for specifying - the text offset for an annotated point. - bgcolor - Sets the background color of the annotation. - bordercolor - Sets the color of the border enclosing the - annotation `text`. - borderpad - Sets the padding (in px) between the `text` and - the enclosing border. - borderwidth - Sets the width (in px) of the border enclosing - the annotation `text`. - captureevents - Determines whether the annotation text box - captures mouse move and click events, or allows - those events to pass through to data points in - the plot that may be behind the annotation. By - default `captureevents` is False unless - `hovertext` is provided. If you use the event - `plotly_clickannotation` without `hovertext` - you must explicitly enable `captureevents`. - clicktoshow - Makes this annotation respond to clicks on the - plot. If you click a data point that exactly - matches the `x` and `y` values of this - annotation, and it is hidden (visible: false), - it will appear. In "onoff" mode, you must click - the same point again to make it disappear, so - if you click multiple points, you can show - multiple annotations. In "onout" mode, a click - anywhere else in the plot (on another data - point or not) will hide this annotation. If you - need to show/hide this annotation in response - to different `x` or `y` values, you can set - `xclick` and/or `yclick`. This is useful for - example to label the side of a bar. To label - markers though, `standoff` is preferred over - `xclick` and `yclick`. - font - Sets the annotation text font. - height - Sets an explicit height for the text box. null - (default) lets the text set the box height. - Taller text will be clipped. - hoverlabel - :class:`plotly.graph_objects.layout.annotation. - Hoverlabel` instance or dict with compatible - properties - hovertext - Sets text to appear when hovering over this - annotation. If omitted or blank, no hover label - will appear. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - opacity - Sets the opacity of the annotation (text + - arrow). - showarrow - Determines whether or not the annotation is - drawn with an arrow. If True, `text` is placed - near the arrow's tail. If False, `text` lines - up with the `x` and `y` provided. - standoff - Sets a distance, in pixels, to move the end - arrowhead away from the position it is pointing - at, for example to point at the edge of a - marker independent of zoom. Note that this - shortens the arrow from the `ax` / `ay` vector, - in contrast to `xshift` / `yshift` which moves - everything by this amount. - startarrowhead - Sets the start annotation arrow head style. - startarrowsize - Sets the size of the start annotation arrow - head, relative to `arrowwidth`. A value of 1 - (default) gives a head about 3x as wide as the - line. - startstandoff - Sets a distance, in pixels, to move the start - arrowhead away from the position it is pointing - at, for example to point at the edge of a - marker independent of zoom. Note that this - shortens the arrow from the `ax` / `ay` vector, - in contrast to `xshift` / `yshift` which moves - everything by this amount. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - text - Sets the text associated with this annotation. - Plotly uses a subset of HTML tags to do things - like newline (
), bold (), italics - (), hyperlinks (). - Tags , , , , are - also supported. - textangle - Sets the angle at which the `text` is drawn - with respect to the horizontal. - valign - Sets the vertical alignment of the `text` - within the box. Has an effect only if an - explicit height is set to override the text - height. - visible - Determines whether or not this annotation is - visible. - width - Sets an explicit width for the text box. null - (default) lets the text set the box width. - Wider text will be clipped. There is no - automatic wrapping; use
to start a new - line. - x - Sets the annotation's x position. If the axis - `type` is "log", then you must take the log of - your desired range. If the axis `type` is - "date", it should be date strings, like date - data, though Date objects and unix milliseconds - will be accepted and converted to strings. If - the axis `type` is "category", it should be - numbers, using the scale where each category is - assigned a serial number from zero in the order - it appears. - xanchor - Sets the text box's horizontal position anchor - This anchor binds the `x` position to the - "left", "center" or "right" of the annotation. - For example, if `x` is set to 1, `xref` to - "paper" and `xanchor` to "right" then the - right-most portion of the annotation lines up - with the right-most edge of the plotting area. - If "auto", the anchor is equivalent to "center" - for data-referenced annotations or if there is - an arrow, whereas for paper-referenced with no - arrow, the anchor picked corresponds to the - closest side. - xclick - Toggle this annotation when clicking a data - point whose `x` value is `xclick` rather than - the annotation's `x` value. - xref - Sets the annotation's x coordinate axis. If set - to a x axis id (e.g. "x" or "x2"), the `x` - position refers to a x coordinate. If set to - "paper", the `x` position refers to the - distance from the left of the plotting area in - normalized coordinates where 0 (1) corresponds - to the left (right). If set to a x axis ID - followed by "domain" (separated by a space), - the position behaves like for "paper", but - refers to the distance in fractions of the - domain length from the left of the domain of - that axis: e.g., *x2 domain* refers to the - domain of the second x axis and a x position - of 0.5 refers to the point between the left and - the right of the domain of the second x axis. - xshift - Shifts the position of the whole annotation and - arrow to the right (positive) or left - (negative) by this many pixels. - y - Sets the annotation's y position. If the axis - `type` is "log", then you must take the log of - your desired range. If the axis `type` is - "date", it should be date strings, like date - data, though Date objects and unix milliseconds - will be accepted and converted to strings. If - the axis `type` is "category", it should be - numbers, using the scale where each category is - assigned a serial number from zero in the order - it appears. - yanchor - Sets the text box's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the annotation. - For example, if `y` is set to 1, `yref` to - "paper" and `yanchor` to "top" then the top- - most portion of the annotation lines up with - the top-most edge of the plotting area. If - "auto", the anchor is equivalent to "middle" - for data-referenced annotations or if there is - an arrow, whereas for paper-referenced with no - arrow, the anchor picked corresponds to the - closest side. - yclick - Toggle this annotation when clicking a data - point whose `y` value is `yclick` rather than - the annotation's `y` value. - yref - Sets the annotation's y coordinate axis. If set - to a y axis id (e.g. "y" or "y2"), the `y` - position refers to a y coordinate. If set to - "paper", the `y` position refers to the - distance from the bottom of the plotting area - in normalized coordinates where 0 (1) - corresponds to the bottom (top). If set to a y - axis ID followed by "domain" (separated by a - space), the position behaves like for "paper", - but refers to the distance in fractions of the - domain length from the bottom of the domain of - that axis: e.g., *y2 domain* refers to the - domain of the second y axis and a y position - of 0.5 refers to the point between the bottom - and the top of the domain of the second y axis. - yshift - Shifts the position of the whole annotation and - arrow up (positive) or down (negative) by this - many pixels. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AnnotationsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='annotations', + parent_name='layout', + **kwargs): + super(AnnotationsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Annotation'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_autosize.py b/packages/python/plotly/plotly/validators/layout/_autosize.py index 0897b950ba2..c06b00d1076 100644 --- a/packages/python/plotly/plotly/validators/layout/_autosize.py +++ b/packages/python/plotly/plotly/validators/layout/_autosize.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AutosizeValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="autosize", parent_name="layout", **kwargs): - super(AutosizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutosizeValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autosize', + parent_name='layout', + **kwargs): + super(AutosizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_autotypenumbers.py b/packages/python/plotly/plotly/validators/layout/_autotypenumbers.py index ac7a53076ee..08d59d84f21 100644 --- a/packages/python/plotly/plotly/validators/layout/_autotypenumbers.py +++ b/packages/python/plotly/plotly/validators/layout/_autotypenumbers.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutotypenumbersValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="autotypenumbers", parent_name="layout", **kwargs): - super(AutotypenumbersValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["convert types", "strict"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutotypenumbersValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='autotypenumbers', + parent_name='layout', + **kwargs): + super(AutotypenumbersValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['convert types', 'strict']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_barcornerradius.py b/packages/python/plotly/plotly/validators/layout/_barcornerradius.py index acbc51ecb9c..a988c995b0f 100644 --- a/packages/python/plotly/plotly/validators/layout/_barcornerradius.py +++ b/packages/python/plotly/plotly/validators/layout/_barcornerradius.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BarcornerradiusValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="barcornerradius", parent_name="layout", **kwargs): - super(BarcornerradiusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BarcornerradiusValidator(_bv.AnyValidator): + def __init__(self, plotly_name='barcornerradius', + parent_name='layout', + **kwargs): + super(BarcornerradiusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_bargap.py b/packages/python/plotly/plotly/validators/layout/_bargap.py index bcf276e67c4..5a1a57b7f43 100644 --- a/packages/python/plotly/plotly/validators/layout/_bargap.py +++ b/packages/python/plotly/plotly/validators/layout/_bargap.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class BargapValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="bargap", parent_name="layout", **kwargs): - super(BargapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BargapValidator(_bv.NumberValidator): + def __init__(self, plotly_name='bargap', + parent_name='layout', + **kwargs): + super(BargapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_bargroupgap.py b/packages/python/plotly/plotly/validators/layout/_bargroupgap.py index 544b1a4787a..5f565f99610 100644 --- a/packages/python/plotly/plotly/validators/layout/_bargroupgap.py +++ b/packages/python/plotly/plotly/validators/layout/_bargroupgap.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class BargroupgapValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="bargroupgap", parent_name="layout", **kwargs): - super(BargroupgapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BargroupgapValidator(_bv.NumberValidator): + def __init__(self, plotly_name='bargroupgap', + parent_name='layout', + **kwargs): + super(BargroupgapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_barmode.py b/packages/python/plotly/plotly/validators/layout/_barmode.py index ec8d5a91d98..0bf3c5a5c74 100644 --- a/packages/python/plotly/plotly/validators/layout/_barmode.py +++ b/packages/python/plotly/plotly/validators/layout/_barmode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class BarmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="barmode", parent_name="layout", **kwargs): - super(BarmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["stack", "group", "overlay", "relative"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BarmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='barmode', + parent_name='layout', + **kwargs): + super(BarmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['stack', 'group', 'overlay', 'relative']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_barnorm.py b/packages/python/plotly/plotly/validators/layout/_barnorm.py index 2a0c7cd8d15..238c28f2ce7 100644 --- a/packages/python/plotly/plotly/validators/layout/_barnorm.py +++ b/packages/python/plotly/plotly/validators/layout/_barnorm.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class BarnormValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="barnorm", parent_name="layout", **kwargs): - super(BarnormValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["", "fraction", "percent"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BarnormValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='barnorm', + parent_name='layout', + **kwargs): + super(BarnormValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['', 'fraction', 'percent']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_boxgap.py b/packages/python/plotly/plotly/validators/layout/_boxgap.py index d4ea0ab1ac4..260d043dd97 100644 --- a/packages/python/plotly/plotly/validators/layout/_boxgap.py +++ b/packages/python/plotly/plotly/validators/layout/_boxgap.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class BoxgapValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="boxgap", parent_name="layout", **kwargs): - super(BoxgapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BoxgapValidator(_bv.NumberValidator): + def __init__(self, plotly_name='boxgap', + parent_name='layout', + **kwargs): + super(BoxgapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_boxgroupgap.py b/packages/python/plotly/plotly/validators/layout/_boxgroupgap.py index 6500cca927e..ebe7e2bf482 100644 --- a/packages/python/plotly/plotly/validators/layout/_boxgroupgap.py +++ b/packages/python/plotly/plotly/validators/layout/_boxgroupgap.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class BoxgroupgapValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="boxgroupgap", parent_name="layout", **kwargs): - super(BoxgroupgapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BoxgroupgapValidator(_bv.NumberValidator): + def __init__(self, plotly_name='boxgroupgap', + parent_name='layout', + **kwargs): + super(BoxgroupgapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_boxmode.py b/packages/python/plotly/plotly/validators/layout/_boxmode.py index 26869cedbc8..53388c7a90e 100644 --- a/packages/python/plotly/plotly/validators/layout/_boxmode.py +++ b/packages/python/plotly/plotly/validators/layout/_boxmode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class BoxmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="boxmode", parent_name="layout", **kwargs): - super(BoxmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["group", "overlay"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BoxmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='boxmode', + parent_name='layout', + **kwargs): + super(BoxmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['group', 'overlay']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_calendar.py b/packages/python/plotly/plotly/validators/layout/_calendar.py index 39135ef2909..117e51dd508 100644 --- a/packages/python/plotly/plotly/validators/layout/_calendar.py +++ b/packages/python/plotly/plotly/validators/layout/_calendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class CalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="calendar", parent_name="layout", **kwargs): - super(CalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='calendar', + parent_name='layout', + **kwargs): + super(CalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_clickmode.py b/packages/python/plotly/plotly/validators/layout/_clickmode.py index 153253fbbe6..49e40594215 100644 --- a/packages/python/plotly/plotly/validators/layout/_clickmode.py +++ b/packages/python/plotly/plotly/validators/layout/_clickmode.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ClickmodeValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="clickmode", parent_name="layout", **kwargs): - super(ClickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["event", "select"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ClickmodeValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='clickmode', + parent_name='layout', + **kwargs): + super(ClickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['event', 'select']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_coloraxis.py b/packages/python/plotly/plotly/validators/layout/_coloraxis.py index 7be380042f7..733adf9056e 100644 --- a/packages/python/plotly/plotly/validators/layout/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/layout/_coloraxis.py @@ -1,73 +1,15 @@ -import _plotly_utils.basevalidators -class ColoraxisValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="coloraxis", parent_name="layout", **kwargs): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Coloraxis"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `colorscale`. In case - `colorscale` is unspecified or `autocolorscale` - is true, the default palette will be chosen - according to whether numbers in the `color` - array are all positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - corresponding trace color array(s)) or the - bounds set in `cmin` and `cmax` Defaults to - `false` when `cmin` and `cmax` are set by the - user. - cmax - Sets the upper bound of the color domain. Value - should have the same units as corresponding - trace color array(s) and if set, `cmin` must be - set as well. - cmid - Sets the mid-point of the color domain by - scaling `cmin` and/or `cmax` to be equidistant - to this point. Value should have the same units - as corresponding trace color array(s). Has no - effect when `cauto` is `false`. - cmin - Sets the lower bound of the color domain. Value - should have the same units as corresponding - trace color array(s) and if set, `cmax` must be - set as well. - colorbar - :class:`plotly.graph_objects.layout.coloraxis.C - olorBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. The colorscale must be an - array containing arrays mapping a normalized - value to an rgb, rgba, hex, hsl, hsv, or named - color string. At minimum, a mapping for the - lowest (0) and highest (1) values are required. - For example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use `cmin` and - `cmax`. Alternatively, `colorscale` may be a - palette name string of the following list: Blac - kbody,Bluered,Blues,Cividis,Earth,Electric,Gree - ns,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,R - eds,Viridis,YlGnBu,YlOrRd. - reversescale - Reverses the color mapping if true. If true, - `cmin` will correspond to the last color in the - array and `cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='layout', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Coloraxis'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_colorscale.py b/packages/python/plotly/plotly/validators/layout/_colorscale.py index 0c3e143eee4..4fd96e82e80 100644 --- a/packages/python/plotly/plotly/validators/layout/_colorscale.py +++ b/packages/python/plotly/plotly/validators/layout/_colorscale.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class ColorscaleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="colorscale", parent_name="layout", **kwargs): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Colorscale"), - data_docs=kwargs.pop( - "data_docs", - """ - diverging - Sets the default diverging colorscale. Note - that `autocolorscale` must be true for this - attribute to work. - sequential - Sets the default sequential colorscale for - positive values. Note that `autocolorscale` - must be true for this attribute to work. - sequentialminus - Sets the default sequential colorscale for - negative values. Note that `autocolorscale` - must be true for this attribute to work. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorscale', + parent_name='layout', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Colorscale'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_colorway.py b/packages/python/plotly/plotly/validators/layout/_colorway.py index 89fd6a8a9d4..f9aa1b401e7 100644 --- a/packages/python/plotly/plotly/validators/layout/_colorway.py +++ b/packages/python/plotly/plotly/validators/layout/_colorway.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorwayValidator(_plotly_utils.basevalidators.ColorlistValidator): - def __init__(self, plotly_name="colorway", parent_name="layout", **kwargs): - super(ColorwayValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorwayValidator(_bv.ColorlistValidator): + def __init__(self, plotly_name='colorway', + parent_name='layout', + **kwargs): + super(ColorwayValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_computed.py b/packages/python/plotly/plotly/validators/layout/_computed.py index cee970dac47..dcb9902a586 100644 --- a/packages/python/plotly/plotly/validators/layout/_computed.py +++ b/packages/python/plotly/plotly/validators/layout/_computed.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ComputedValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="computed", parent_name="layout", **kwargs): - super(ComputedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ComputedValidator(_bv.AnyValidator): + def __init__(self, plotly_name='computed', + parent_name='layout', + **kwargs): + super(ComputedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_datarevision.py b/packages/python/plotly/plotly/validators/layout/_datarevision.py index bc845a2fe7c..139e0a69162 100644 --- a/packages/python/plotly/plotly/validators/layout/_datarevision.py +++ b/packages/python/plotly/plotly/validators/layout/_datarevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class DatarevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="datarevision", parent_name="layout", **kwargs): - super(DatarevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DatarevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='datarevision', + parent_name='layout', + **kwargs): + super(DatarevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_dragmode.py b/packages/python/plotly/plotly/validators/layout/_dragmode.py index f959154921a..0dc2602918f 100644 --- a/packages/python/plotly/plotly/validators/layout/_dragmode.py +++ b/packages/python/plotly/plotly/validators/layout/_dragmode.py @@ -1,28 +1,14 @@ -import _plotly_utils.basevalidators -class DragmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="dragmode", parent_name="layout", **kwargs): - super(DragmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "modebar"), - values=kwargs.pop( - "values", - [ - "zoom", - "pan", - "select", - "lasso", - "drawclosedpath", - "drawopenpath", - "drawline", - "drawrect", - "drawcircle", - "orbit", - "turntable", - False, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DragmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='dragmode', + parent_name='layout', + **kwargs): + super(DragmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'modebar'), + values=kwargs.pop('values', ['zoom', 'pan', 'select', 'lasso', 'drawclosedpath', 'drawopenpath', 'drawline', 'drawrect', 'drawcircle', 'orbit', 'turntable', False]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_editrevision.py b/packages/python/plotly/plotly/validators/layout/_editrevision.py index 81cb7aff055..0f4823570cc 100644 --- a/packages/python/plotly/plotly/validators/layout/_editrevision.py +++ b/packages/python/plotly/plotly/validators/layout/_editrevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class EditrevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="editrevision", parent_name="layout", **kwargs): - super(EditrevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EditrevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='editrevision', + parent_name='layout', + **kwargs): + super(EditrevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_extendfunnelareacolors.py b/packages/python/plotly/plotly/validators/layout/_extendfunnelareacolors.py index e5d5d8980de..ec95476d6b8 100644 --- a/packages/python/plotly/plotly/validators/layout/_extendfunnelareacolors.py +++ b/packages/python/plotly/plotly/validators/layout/_extendfunnelareacolors.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ExtendfunnelareacolorsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="extendfunnelareacolors", parent_name="layout", **kwargs - ): - super(ExtendfunnelareacolorsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ExtendfunnelareacolorsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='extendfunnelareacolors', + parent_name='layout', + **kwargs): + super(ExtendfunnelareacolorsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_extendiciclecolors.py b/packages/python/plotly/plotly/validators/layout/_extendiciclecolors.py index 47f634c2c0e..f2aa02d2df5 100644 --- a/packages/python/plotly/plotly/validators/layout/_extendiciclecolors.py +++ b/packages/python/plotly/plotly/validators/layout/_extendiciclecolors.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ExtendiciclecolorsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="extendiciclecolors", parent_name="layout", **kwargs - ): - super(ExtendiciclecolorsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ExtendiciclecolorsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='extendiciclecolors', + parent_name='layout', + **kwargs): + super(ExtendiciclecolorsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_extendpiecolors.py b/packages/python/plotly/plotly/validators/layout/_extendpiecolors.py index 0a227c3ec7a..d40b3bc9410 100644 --- a/packages/python/plotly/plotly/validators/layout/_extendpiecolors.py +++ b/packages/python/plotly/plotly/validators/layout/_extendpiecolors.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ExtendpiecolorsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="extendpiecolors", parent_name="layout", **kwargs): - super(ExtendpiecolorsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExtendpiecolorsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='extendpiecolors', + parent_name='layout', + **kwargs): + super(ExtendpiecolorsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_extendsunburstcolors.py b/packages/python/plotly/plotly/validators/layout/_extendsunburstcolors.py index bd85813f7fd..88aa2f98f19 100644 --- a/packages/python/plotly/plotly/validators/layout/_extendsunburstcolors.py +++ b/packages/python/plotly/plotly/validators/layout/_extendsunburstcolors.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ExtendsunburstcolorsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="extendsunburstcolors", parent_name="layout", **kwargs - ): - super(ExtendsunburstcolorsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ExtendsunburstcolorsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='extendsunburstcolors', + parent_name='layout', + **kwargs): + super(ExtendsunburstcolorsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_extendtreemapcolors.py b/packages/python/plotly/plotly/validators/layout/_extendtreemapcolors.py index e9b22af1d5b..6f61c6a6b4b 100644 --- a/packages/python/plotly/plotly/validators/layout/_extendtreemapcolors.py +++ b/packages/python/plotly/plotly/validators/layout/_extendtreemapcolors.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ExtendtreemapcolorsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="extendtreemapcolors", parent_name="layout", **kwargs - ): - super(ExtendtreemapcolorsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ExtendtreemapcolorsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='extendtreemapcolors', + parent_name='layout', + **kwargs): + super(ExtendtreemapcolorsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_font.py b/packages/python/plotly/plotly/validators/layout/_font.py index 835e0ba5ae4..f3318664a00 100644 --- a/packages/python/plotly/plotly/validators/layout/_font.py +++ b/packages/python/plotly/plotly/validators/layout/_font.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="layout", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='layout', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_funnelareacolorway.py b/packages/python/plotly/plotly/validators/layout/_funnelareacolorway.py index 9c588aa2774..30e4dda8e1d 100644 --- a/packages/python/plotly/plotly/validators/layout/_funnelareacolorway.py +++ b/packages/python/plotly/plotly/validators/layout/_funnelareacolorway.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FunnelareacolorwayValidator(_plotly_utils.basevalidators.ColorlistValidator): - def __init__( - self, plotly_name="funnelareacolorway", parent_name="layout", **kwargs - ): - super(FunnelareacolorwayValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FunnelareacolorwayValidator(_bv.ColorlistValidator): + def __init__(self, plotly_name='funnelareacolorway', + parent_name='layout', + **kwargs): + super(FunnelareacolorwayValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_funnelgap.py b/packages/python/plotly/plotly/validators/layout/_funnelgap.py index 679d46923b4..e49969862c0 100644 --- a/packages/python/plotly/plotly/validators/layout/_funnelgap.py +++ b/packages/python/plotly/plotly/validators/layout/_funnelgap.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class FunnelgapValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="funnelgap", parent_name="layout", **kwargs): - super(FunnelgapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FunnelgapValidator(_bv.NumberValidator): + def __init__(self, plotly_name='funnelgap', + parent_name='layout', + **kwargs): + super(FunnelgapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_funnelgroupgap.py b/packages/python/plotly/plotly/validators/layout/_funnelgroupgap.py index a2e4d32d292..3b013edcf3b 100644 --- a/packages/python/plotly/plotly/validators/layout/_funnelgroupgap.py +++ b/packages/python/plotly/plotly/validators/layout/_funnelgroupgap.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class FunnelgroupgapValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="funnelgroupgap", parent_name="layout", **kwargs): - super(FunnelgroupgapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FunnelgroupgapValidator(_bv.NumberValidator): + def __init__(self, plotly_name='funnelgroupgap', + parent_name='layout', + **kwargs): + super(FunnelgroupgapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_funnelmode.py b/packages/python/plotly/plotly/validators/layout/_funnelmode.py index 1805cb89caa..64627350b47 100644 --- a/packages/python/plotly/plotly/validators/layout/_funnelmode.py +++ b/packages/python/plotly/plotly/validators/layout/_funnelmode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class FunnelmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="funnelmode", parent_name="layout", **kwargs): - super(FunnelmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["stack", "group", "overlay"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FunnelmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='funnelmode', + parent_name='layout', + **kwargs): + super(FunnelmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['stack', 'group', 'overlay']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_geo.py b/packages/python/plotly/plotly/validators/layout/_geo.py index fe0e3cbbf68..19a22dddd97 100644 --- a/packages/python/plotly/plotly/validators/layout/_geo.py +++ b/packages/python/plotly/plotly/validators/layout/_geo.py @@ -1,114 +1,15 @@ -import _plotly_utils.basevalidators -class GeoValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="geo", parent_name="layout", **kwargs): - super(GeoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Geo"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Set the background color of the map - center - :class:`plotly.graph_objects.layout.geo.Center` - instance or dict with compatible properties - coastlinecolor - Sets the coastline color. - coastlinewidth - Sets the coastline stroke width (in px). - countrycolor - Sets line color of the country boundaries. - countrywidth - Sets line width (in px) of the country - boundaries. - domain - :class:`plotly.graph_objects.layout.geo.Domain` - instance or dict with compatible properties - fitbounds - Determines if this subplot's view settings are - auto-computed to fit trace data. On scoped - maps, setting `fitbounds` leads to `center.lon` - and `center.lat` getting auto-filled. On maps - with a non-clipped projection, setting - `fitbounds` leads to `center.lon`, - `center.lat`, and `projection.rotation.lon` - getting auto-filled. On maps with a clipped - projection, setting `fitbounds` leads to - `center.lon`, `center.lat`, - `projection.rotation.lon`, - `projection.rotation.lat`, `lonaxis.range` and - `lataxis.range` getting auto-filled. If - "locations", only the trace's visible locations - are considered in the `fitbounds` computations. - If "geojson", the entire trace input `geojson` - (if provided) is considered in the `fitbounds` - computations, Defaults to False. - framecolor - Sets the color the frame. - framewidth - Sets the stroke width (in px) of the frame. - lakecolor - Sets the color of the lakes. - landcolor - Sets the land mass color. - lataxis - :class:`plotly.graph_objects.layout.geo.Lataxis - ` instance or dict with compatible properties - lonaxis - :class:`plotly.graph_objects.layout.geo.Lonaxis - ` instance or dict with compatible properties - oceancolor - Sets the ocean color - projection - :class:`plotly.graph_objects.layout.geo.Project - ion` instance or dict with compatible - properties - resolution - Sets the resolution of the base layers. The - values have units of km/mm e.g. 110 corresponds - to a scale ratio of 1:110,000,000. - rivercolor - Sets color of the rivers. - riverwidth - Sets the stroke width (in px) of the rivers. - scope - Set the scope of the map. - showcoastlines - Sets whether or not the coastlines are drawn. - showcountries - Sets whether or not country boundaries are - drawn. - showframe - Sets whether or not a frame is drawn around the - map. - showlakes - Sets whether or not lakes are drawn. - showland - Sets whether or not land masses are filled in - color. - showocean - Sets whether or not oceans are filled in color. - showrivers - Sets whether or not rivers are drawn. - showsubunits - Sets whether or not boundaries of subunits - within countries (e.g. states, provinces) are - drawn. - subunitcolor - Sets the color of the subunits boundaries. - subunitwidth - Sets the stroke width (in px) of the subunits - boundaries. - uirevision - Controls persistence of user-driven changes in - the view (projection and center). Defaults to - `layout.uirevision`. - visible - Sets the default visibility of the base layers. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class GeoValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='geo', + parent_name='layout', + **kwargs): + super(GeoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Geo'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_grid.py b/packages/python/plotly/plotly/validators/layout/_grid.py index 5b1212a94e6..4e39f1943fb 100644 --- a/packages/python/plotly/plotly/validators/layout/_grid.py +++ b/packages/python/plotly/plotly/validators/layout/_grid.py @@ -1,95 +1,15 @@ -import _plotly_utils.basevalidators -class GridValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="grid", parent_name="layout", **kwargs): - super(GridValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Grid"), - data_docs=kwargs.pop( - "data_docs", - """ - columns - The number of columns in the grid. If you - provide a 2D `subplots` array, the length of - its longest row is used as the default. If you - give an `xaxes` array, its length is used as - the default. But it's also possible to have a - different length, if you want to leave a row at - the end for non-cartesian subplots. - domain - :class:`plotly.graph_objects.layout.grid.Domain - ` instance or dict with compatible properties - pattern - If no `subplots`, `xaxes`, or `yaxes` are given - but we do have `rows` and `columns`, we can - generate defaults using consecutive axis IDs, - in two ways: "coupled" gives one x axis per - column and one y axis per row. "independent" - uses a new xy pair for each cell, left-to-right - across each row then iterating rows according - to `roworder`. - roworder - Is the first row the top or the bottom? Note - that columns are always enumerated from left to - right. - rows - The number of rows in the grid. If you provide - a 2D `subplots` array or a `yaxes` array, its - length is used as the default. But it's also - possible to have a different length, if you - want to leave a row at the end for non- - cartesian subplots. - subplots - Used for freeform grids, where some axes may be - shared across subplots but others are not. Each - entry should be a cartesian subplot id, like - "xy" or "x3y2", or "" to leave that cell empty. - You may reuse x axes within the same column, - and y axes within the same row. Non-cartesian - subplots and traces that support `domain` can - place themselves in this grid separately using - the `gridcell` attribute. - xaxes - Used with `yaxes` when the x and y axes are - shared across columns and rows. Each entry - should be an x axis id like "x", "x2", etc., or - "" to not put an x axis in that column. Entries - other than "" must be unique. Ignored if - `subplots` is present. If missing but `yaxes` - is present, will generate consecutive IDs. - xgap - Horizontal space between grid cells, expressed - as a fraction of the total width available to - one cell. Defaults to 0.1 for coupled-axes - grids and 0.2 for independent grids. - xside - Sets where the x axis labels and titles go. - "bottom" means the very bottom of the grid. - "bottom plot" is the lowest plot that each x - axis is used in. "top" and "top plot" are - similar. - yaxes - Used with `yaxes` when the x and y axes are - shared across columns and rows. Each entry - should be an y axis id like "y", "y2", etc., or - "" to not put a y axis in that row. Entries - other than "" must be unique. Ignored if - `subplots` is present. If missing but `xaxes` - is present, will generate consecutive IDs. - ygap - Vertical space between grid cells, expressed as - a fraction of the total height available to one - cell. Defaults to 0.1 for coupled-axes grids - and 0.3 for independent grids. - yside - Sets where the y axis labels and titles go. - "left" means the very left edge of the grid. - *left plot* is the leftmost plot that each y - axis is used in. "right" and *right plot* are - similar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class GridValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='grid', + parent_name='layout', + **kwargs): + super(GridValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Grid'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_height.py b/packages/python/plotly/plotly/validators/layout/_height.py index d92c4b5b6a0..57b5d4efaa2 100644 --- a/packages/python/plotly/plotly/validators/layout/_height.py +++ b/packages/python/plotly/plotly/validators/layout/_height.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HeightValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="height", parent_name="layout", **kwargs): - super(HeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 10), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HeightValidator(_bv.NumberValidator): + def __init__(self, plotly_name='height', + parent_name='layout', + **kwargs): + super(HeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 10), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_hiddenlabels.py b/packages/python/plotly/plotly/validators/layout/_hiddenlabels.py index f557d870453..3ca9920435a 100644 --- a/packages/python/plotly/plotly/validators/layout/_hiddenlabels.py +++ b/packages/python/plotly/plotly/validators/layout/_hiddenlabels.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HiddenlabelsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="hiddenlabels", parent_name="layout", **kwargs): - super(HiddenlabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HiddenlabelsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='hiddenlabels', + parent_name='layout', + **kwargs): + super(HiddenlabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_hiddenlabelssrc.py b/packages/python/plotly/plotly/validators/layout/_hiddenlabelssrc.py index 413365e0b19..b51df8c91d9 100644 --- a/packages/python/plotly/plotly/validators/layout/_hiddenlabelssrc.py +++ b/packages/python/plotly/plotly/validators/layout/_hiddenlabelssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HiddenlabelssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hiddenlabelssrc", parent_name="layout", **kwargs): - super(HiddenlabelssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HiddenlabelssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hiddenlabelssrc', + parent_name='layout', + **kwargs): + super(HiddenlabelssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_hidesources.py b/packages/python/plotly/plotly/validators/layout/_hidesources.py index 1166c15e0cb..f581ab1f69e 100644 --- a/packages/python/plotly/plotly/validators/layout/_hidesources.py +++ b/packages/python/plotly/plotly/validators/layout/_hidesources.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HidesourcesValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="hidesources", parent_name="layout", **kwargs): - super(HidesourcesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HidesourcesValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='hidesources', + parent_name='layout', + **kwargs): + super(HidesourcesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_hoverdistance.py b/packages/python/plotly/plotly/validators/layout/_hoverdistance.py index 98224c0d74f..a98607d9290 100644 --- a/packages/python/plotly/plotly/validators/layout/_hoverdistance.py +++ b/packages/python/plotly/plotly/validators/layout/_hoverdistance.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HoverdistanceValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="hoverdistance", parent_name="layout", **kwargs): - super(HoverdistanceValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverdistanceValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='hoverdistance', + parent_name='layout', + **kwargs): + super(HoverdistanceValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_hoverlabel.py b/packages/python/plotly/plotly/validators/layout/_hoverlabel.py index 08a04e69d7d..11f17228c89 100644 --- a/packages/python/plotly/plotly/validators/layout/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/layout/_hoverlabel.py @@ -1,43 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="layout", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - bgcolor - Sets the background color of all hover labels - on graph - bordercolor - Sets the border color of all hover labels on - graph. - font - Sets the default hover label font used by all - traces on the graph. - grouptitlefont - Sets the font for group titles in hover - (unified modes). Defaults to `hoverlabel.font`. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='layout', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_hovermode.py b/packages/python/plotly/plotly/validators/layout/_hovermode.py index 33a84ecc6d2..013024cb973 100644 --- a/packages/python/plotly/plotly/validators/layout/_hovermode.py +++ b/packages/python/plotly/plotly/validators/layout/_hovermode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovermodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="hovermode", parent_name="layout", **kwargs): - super(HovermodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "modebar"), - values=kwargs.pop( - "values", ["x", "y", "closest", False, "x unified", "y unified"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovermodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='hovermode', + parent_name='layout', + **kwargs): + super(HovermodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'modebar'), + values=kwargs.pop('values', ['x', 'y', 'closest', False, 'x unified', 'y unified']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_hoversubplots.py b/packages/python/plotly/plotly/validators/layout/_hoversubplots.py index 1290fff33e6..19dd243ab1d 100644 --- a/packages/python/plotly/plotly/validators/layout/_hoversubplots.py +++ b/packages/python/plotly/plotly/validators/layout/_hoversubplots.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HoversubplotsValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="hoversubplots", parent_name="layout", **kwargs): - super(HoversubplotsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["single", "overlaying", "axis"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoversubplotsValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='hoversubplots', + parent_name='layout', + **kwargs): + super(HoversubplotsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['single', 'overlaying', 'axis']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_iciclecolorway.py b/packages/python/plotly/plotly/validators/layout/_iciclecolorway.py index 1c720184dad..4feae74dc2c 100644 --- a/packages/python/plotly/plotly/validators/layout/_iciclecolorway.py +++ b/packages/python/plotly/plotly/validators/layout/_iciclecolorway.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IciclecolorwayValidator(_plotly_utils.basevalidators.ColorlistValidator): - def __init__(self, plotly_name="iciclecolorway", parent_name="layout", **kwargs): - super(IciclecolorwayValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IciclecolorwayValidator(_bv.ColorlistValidator): + def __init__(self, plotly_name='iciclecolorway', + parent_name='layout', + **kwargs): + super(IciclecolorwayValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_imagedefaults.py b/packages/python/plotly/plotly/validators/layout/_imagedefaults.py index 0ffc4b4b558..8f8c6a43a19 100644 --- a/packages/python/plotly/plotly/validators/layout/_imagedefaults.py +++ b/packages/python/plotly/plotly/validators/layout/_imagedefaults.py @@ -1,16 +1,15 @@ -import _plotly_utils.basevalidators -class ImagedefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="imagedefaults", parent_name="layout", **kwargs): - super(ImagedefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Image"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ImagedefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='imagedefaults', + parent_name='layout', + **kwargs): + super(ImagedefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Image'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_images.py b/packages/python/plotly/plotly/validators/layout/_images.py index 055c4fc7f53..24f46c90c66 100644 --- a/packages/python/plotly/plotly/validators/layout/_images.py +++ b/packages/python/plotly/plotly/validators/layout/_images.py @@ -1,113 +1,15 @@ -import _plotly_utils.basevalidators -class ImagesValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__(self, plotly_name="images", parent_name="layout", **kwargs): - super(ImagesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Image"), - data_docs=kwargs.pop( - "data_docs", - """ - layer - Specifies whether images are drawn below or - above traces. When `xref` and `yref` are both - set to `paper`, image is drawn below the entire - plot area. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - opacity - Sets the opacity of the image. - sizex - Sets the image container size horizontally. The - image will be sized based on the `position` - value. When `xref` is set to `paper`, units are - sized relative to the plot width. When `xref` - ends with ` domain`, units are sized relative - to the axis width. - sizey - Sets the image container size vertically. The - image will be sized based on the `position` - value. When `yref` is set to `paper`, units are - sized relative to the plot height. When `yref` - ends with ` domain`, units are sized relative - to the axis height. - sizing - Specifies which dimension of the image to - constrain. - source - Specifies the URL of the image to be used. The - URL must be accessible from the domain where - the plot code is run, and can be either - relative or absolute. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - visible - Determines whether or not this image is - visible. - x - Sets the image's x position. When `xref` is set - to `paper`, units are sized relative to the - plot height. See `xref` for more info - xanchor - Sets the anchor for the x position - xref - Sets the images's x coordinate axis. If set to - a x axis id (e.g. "x" or "x2"), the `x` - position refers to a x coordinate. If set to - "paper", the `x` position refers to the - distance from the left of the plotting area in - normalized coordinates where 0 (1) corresponds - to the left (right). If set to a x axis ID - followed by "domain" (separated by a space), - the position behaves like for "paper", but - refers to the distance in fractions of the - domain length from the left of the domain of - that axis: e.g., *x2 domain* refers to the - domain of the second x axis and a x position - of 0.5 refers to the point between the left and - the right of the domain of the second x axis. - y - Sets the image's y position. When `yref` is set - to `paper`, units are sized relative to the - plot height. See `yref` for more info - yanchor - Sets the anchor for the y position. - yref - Sets the images's y coordinate axis. If set to - a y axis id (e.g. "y" or "y2"), the `y` - position refers to a y coordinate. If set to - "paper", the `y` position refers to the - distance from the bottom of the plotting area - in normalized coordinates where 0 (1) - corresponds to the bottom (top). If set to a y - axis ID followed by "domain" (separated by a - space), the position behaves like for "paper", - but refers to the distance in fractions of the - domain length from the bottom of the domain of - that axis: e.g., *y2 domain* refers to the - domain of the second y axis and a y position - of 0.5 refers to the point between the bottom - and the top of the domain of the second y axis. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ImagesValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='images', + parent_name='layout', + **kwargs): + super(ImagesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Image'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_legend.py b/packages/python/plotly/plotly/validators/layout/_legend.py index ef5f28c294b..9c644d78f02 100644 --- a/packages/python/plotly/plotly/validators/layout/_legend.py +++ b/packages/python/plotly/plotly/validators/layout/_legend.py @@ -1,145 +1,15 @@ -import _plotly_utils.basevalidators -class LegendValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="legend", parent_name="layout", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legend"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the legend background color. Defaults to - `layout.paper_bgcolor`. - bordercolor - Sets the color of the border enclosing the - legend. - borderwidth - Sets the width (in px) of the border enclosing - the legend. - entrywidth - Sets the width (in px or fraction) of the - legend. Use 0 to size the entry based on the - text width, when `entrywidthmode` is set to - "pixels". - entrywidthmode - Determines what entrywidth means. - font - Sets the font used to text the legend items. - groupclick - Determines the behavior on legend group item - click. "toggleitem" toggles the visibility of - the individual item clicked on the graph. - "togglegroup" toggles the visibility of all - items in the same legendgroup as the item - clicked on the graph. - grouptitlefont - Sets the font for group titles in legend. - Defaults to `legend.font` with its size - increased about 10%. - indentation - Sets the indentation (in px) of the legend - entries. - itemclick - Determines the behavior on legend item click. - "toggle" toggles the visibility of the item - clicked on the graph. "toggleothers" makes the - clicked item the sole visible item on the - graph. False disables legend item click - interactions. - itemdoubleclick - Determines the behavior on legend item double- - click. "toggle" toggles the visibility of the - item clicked on the graph. "toggleothers" makes - the clicked item the sole visible item on the - graph. False disables legend item double-click - interactions. - itemsizing - Determines if the legend items symbols scale - with their corresponding "trace" attributes or - remain "constant" independent of the symbol - size on the graph. - itemwidth - Sets the width (in px) of the legend item - symbols (the part other than the title.text). - orientation - Sets the orientation of the legend. - title - :class:`plotly.graph_objects.layout.legend.Titl - e` instance or dict with compatible properties - tracegroupgap - Sets the amount of vertical space (in px) - between legend groups. - traceorder - Determines the order at which the legend items - are displayed. If "normal", the items are - displayed top-to-bottom in the same order as - the input data. If "reversed", the items are - displayed in the opposite order as "normal". If - "grouped", the items are displayed in groups - (when a trace `legendgroup` is provided). if - "grouped+reversed", the items are displayed in - the opposite order as "grouped". - uirevision - Controls persistence of legend-driven changes - in trace and pie label visibility. Defaults to - `layout.uirevision`. - valign - Sets the vertical alignment of the symbols with - respect to their associated text. - visible - Determines whether or not this legend is - visible. - x - Sets the x position with respect to `xref` (in - normalized coordinates) of the legend. When - `xref` is "paper", defaults to 1.02 for - vertical legends and defaults to 0 for - horizontal legends. When `xref` is "container", - defaults to 1 for vertical legends and defaults - to 0 for horizontal legends. Must be between 0 - and 1 if `xref` is "container". and between - "-2" and 3 if `xref` is "paper". - xanchor - Sets the legend's horizontal position anchor. - This anchor binds the `x` position to the - "left", "center" or "right" of the legend. - Value "auto" anchors legends to the right for - `x` values greater than or equal to 2/3, - anchors legends to the left for `x` values less - than or equal to 1/3 and anchors legends with - respect to their center otherwise. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` (in - normalized coordinates) of the legend. When - `yref` is "paper", defaults to 1 for vertical - legends, defaults to "-0.1" for horizontal - legends on graphs w/o range sliders and - defaults to 1.1 for horizontal legends on graph - with one or multiple range sliders. When `yref` - is "container", defaults to 1. Must be between - 0 and 1 if `yref` is "container" and between - "-2" and 3 if `yref` is "paper". - yanchor - Sets the legend's vertical position anchor This - anchor binds the `y` position to the "top", - "middle" or "bottom" of the legend. Value - "auto" anchors legends at their bottom for `y` - values less than or equal to 1/3, anchors - legends to at their top for `y` values greater - than or equal to 2/3 and anchors legends with - respect to their middle otherwise. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legend', + parent_name='layout', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legend'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_map.py b/packages/python/plotly/plotly/validators/layout/_map.py index e3f463c622f..4403f80b0c4 100644 --- a/packages/python/plotly/plotly/validators/layout/_map.py +++ b/packages/python/plotly/plotly/validators/layout/_map.py @@ -1,69 +1,15 @@ -import _plotly_utils.basevalidators -class MapValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="map", parent_name="layout", **kwargs): - super(MapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Map"), - data_docs=kwargs.pop( - "data_docs", - """ - bearing - Sets the bearing angle of the map in degrees - counter-clockwise from North (map.bearing). - bounds - :class:`plotly.graph_objects.layout.map.Bounds` - instance or dict with compatible properties - center - :class:`plotly.graph_objects.layout.map.Center` - instance or dict with compatible properties - domain - :class:`plotly.graph_objects.layout.map.Domain` - instance or dict with compatible properties - layers - A tuple of - :class:`plotly.graph_objects.layout.map.Layer` - instances or dicts with compatible properties - layerdefaults - When used in a template (as - layout.template.layout.map.layerdefaults), sets - the default property values to use for elements - of layout.map.layers - pitch - Sets the pitch angle of the map (in degrees, - where 0 means perpendicular to the surface of - the map) (map.pitch). - style - Defines the map layers that are rendered by - default below the trace layers defined in - `data`, which are themselves by default - rendered below the layers defined in - `layout.map.layers`. These layers can be - defined either explicitly as a Map Style object - which can contain multiple layer definitions - that load data from any public or private Tile - Map Service (TMS or XYZ) or Web Map Service - (WMS) or implicitly by using one of the built- - in style objects which use WMSes or by using a - custom style URL Map Style objects are of the - form described in the MapLibre GL JS - documentation available at - https://maplibre.org/maplibre-style-spec/ The - built-in plotly.js styles objects are: basic, - carto-darkmatter, carto-darkmatter-nolabels, - carto-positron, carto-positron-nolabels, carto- - voyager, carto-voyager-nolabels, dark, light, - open-street-map, outdoors, satellite, - satellite-streets, streets, white-bg. - uirevision - Controls persistence of user-driven changes in - the view: `center`, `zoom`, `bearing`, `pitch`. - Defaults to `layout.uirevision`. - zoom - Sets the zoom level of the map (map.zoom). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MapValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='map', + parent_name='layout', + **kwargs): + super(MapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Map'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_mapbox.py b/packages/python/plotly/plotly/validators/layout/_mapbox.py index ff98a1c3bb4..ca252f6fe27 100644 --- a/packages/python/plotly/plotly/validators/layout/_mapbox.py +++ b/packages/python/plotly/plotly/validators/layout/_mapbox.py @@ -1,85 +1,15 @@ -import _plotly_utils.basevalidators -class MapboxValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="mapbox", parent_name="layout", **kwargs): - super(MapboxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Mapbox"), - data_docs=kwargs.pop( - "data_docs", - """ - accesstoken - Sets the mapbox access token to be used for - this mapbox map. Alternatively, the mapbox - access token can be set in the configuration - options under `mapboxAccessToken`. Note that - accessToken are only required when `style` (e.g - with values : basic, streets, outdoors, light, - dark, satellite, satellite-streets ) and/or a - layout layer references the Mapbox server. - bearing - Sets the bearing angle of the map in degrees - counter-clockwise from North (mapbox.bearing). - bounds - :class:`plotly.graph_objects.layout.mapbox.Boun - ds` instance or dict with compatible properties - center - :class:`plotly.graph_objects.layout.mapbox.Cent - er` instance or dict with compatible properties - domain - :class:`plotly.graph_objects.layout.mapbox.Doma - in` instance or dict with compatible properties - layers - A tuple of :class:`plotly.graph_objects.layout. - mapbox.Layer` instances or dicts with - compatible properties - layerdefaults - When used in a template (as - layout.template.layout.mapbox.layerdefaults), - sets the default property values to use for - elements of layout.mapbox.layers - pitch - Sets the pitch angle of the map (in degrees, - where 0 means perpendicular to the surface of - the map) (mapbox.pitch). - style - Defines the map layers that are rendered by - default below the trace layers defined in - `data`, which are themselves by default - rendered below the layers defined in - `layout.mapbox.layers`. These layers can be - defined either explicitly as a Mapbox Style - object which can contain multiple layer - definitions that load data from any public or - private Tile Map Service (TMS or XYZ) or Web - Map Service (WMS) or implicitly by using one of - the built-in style objects which use WMSes - which do not require any access tokens, or by - using a default Mapbox style or custom Mapbox - style URL, both of which require a Mapbox - access token Note that Mapbox access token can - be set in the `accesstoken` attribute or in the - `mapboxAccessToken` config option. Mapbox - Style objects are of the form described in the - Mapbox GL JS documentation available at - https://docs.mapbox.com/mapbox-gl-js/style-spec - The built-in plotly.js styles objects are: - carto-darkmatter, carto-positron, open-street- - map, stamen-terrain, stamen-toner, stamen- - watercolor, white-bg The built-in Mapbox - styles are: basic, streets, outdoors, light, - dark, satellite, satellite-streets Mapbox - style URLs are of the form: - mapbox://mapbox.mapbox-- - uirevision - Controls persistence of user-driven changes in - the view: `center`, `zoom`, `bearing`, `pitch`. - Defaults to `layout.uirevision`. - zoom - Sets the zoom level of the map (mapbox.zoom). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MapboxValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='mapbox', + parent_name='layout', + **kwargs): + super(MapboxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Mapbox'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_margin.py b/packages/python/plotly/plotly/validators/layout/_margin.py index 5ca23ec7d9e..a53f1acac83 100644 --- a/packages/python/plotly/plotly/validators/layout/_margin.py +++ b/packages/python/plotly/plotly/validators/layout/_margin.py @@ -1,32 +1,15 @@ -import _plotly_utils.basevalidators -class MarginValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="margin", parent_name="layout", **kwargs): - super(MarginValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Margin"), - data_docs=kwargs.pop( - "data_docs", - """ - autoexpand - Turns on/off margin expansion computations. - Legends, colorbars, updatemenus, sliders, axis - rangeselector and rangeslider are allowed to - push the margins by defaults. - b - Sets the bottom margin (in px). - l - Sets the left margin (in px). - pad - Sets the amount of padding (in px) between the - plotting area and the axis lines - r - Sets the right margin (in px). - t - Sets the top margin (in px). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarginValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='margin', + parent_name='layout', + **kwargs): + super(MarginValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Margin'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_meta.py b/packages/python/plotly/plotly/validators/layout/_meta.py index ce409d8281f..e236a7f29ab 100644 --- a/packages/python/plotly/plotly/validators/layout/_meta.py +++ b/packages/python/plotly/plotly/validators/layout/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="layout", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='layout', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_metasrc.py b/packages/python/plotly/plotly/validators/layout/_metasrc.py index 95410b4d548..f53fa79690a 100644 --- a/packages/python/plotly/plotly/validators/layout/_metasrc.py +++ b/packages/python/plotly/plotly/validators/layout/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="layout", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='layout', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_minreducedheight.py b/packages/python/plotly/plotly/validators/layout/_minreducedheight.py index 3381ac82eb4..84d90e317cf 100644 --- a/packages/python/plotly/plotly/validators/layout/_minreducedheight.py +++ b/packages/python/plotly/plotly/validators/layout/_minreducedheight.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinreducedheightValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="minreducedheight", parent_name="layout", **kwargs): - super(MinreducedheightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 2), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinreducedheightValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minreducedheight', + parent_name='layout', + **kwargs): + super(MinreducedheightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 2), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_minreducedwidth.py b/packages/python/plotly/plotly/validators/layout/_minreducedwidth.py index 0618ff740d1..4f19e4a5ae5 100644 --- a/packages/python/plotly/plotly/validators/layout/_minreducedwidth.py +++ b/packages/python/plotly/plotly/validators/layout/_minreducedwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinreducedwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="minreducedwidth", parent_name="layout", **kwargs): - super(MinreducedwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 2), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinreducedwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minreducedwidth', + parent_name='layout', + **kwargs): + super(MinreducedwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 2), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_modebar.py b/packages/python/plotly/plotly/validators/layout/_modebar.py index 9c50eaa6689..193673f2c4c 100644 --- a/packages/python/plotly/plotly/validators/layout/_modebar.py +++ b/packages/python/plotly/plotly/validators/layout/_modebar.py @@ -1,73 +1,15 @@ -import _plotly_utils.basevalidators -class ModebarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="modebar", parent_name="layout", **kwargs): - super(ModebarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Modebar"), - data_docs=kwargs.pop( - "data_docs", - """ - activecolor - Sets the color of the active or hovered on - icons in the modebar. - add - Determines which predefined modebar buttons to - add. Please note that these buttons will only - be shown if they are compatible with all trace - types used in a graph. Similar to - `config.modeBarButtonsToAdd` option. This may - include "v1hovermode", "hoverclosest", - "hovercompare", "togglehover", - "togglespikelines", "drawline", "drawopenpath", - "drawclosedpath", "drawcircle", "drawrect", - "eraseshape". - addsrc - Sets the source reference on Chart Studio Cloud - for `add`. - bgcolor - Sets the background color of the modebar. - color - Sets the color of the icons in the modebar. - orientation - Sets the orientation of the modebar. - remove - Determines which predefined modebar buttons to - remove. Similar to - `config.modeBarButtonsToRemove` option. This - may include "autoScale2d", "autoscale", - "editInChartStudio", "editinchartstudio", - "hoverCompareCartesian", "hovercompare", - "lasso", "lasso2d", "orbitRotation", - "orbitrotation", "pan", "pan2d", "pan3d", - "reset", "resetCameraDefault3d", - "resetCameraLastSave3d", "resetGeo", - "resetSankeyGroup", "resetScale2d", - "resetViewMap", "resetViewMapbox", - "resetViews", "resetcameradefault", - "resetcameralastsave", "resetsankeygroup", - "resetscale", "resetview", "resetviews", - "select", "select2d", "sendDataToCloud", - "senddatatocloud", "tableRotation", - "tablerotation", "toImage", "toggleHover", - "toggleSpikelines", "togglehover", - "togglespikelines", "toimage", "zoom", - "zoom2d", "zoom3d", "zoomIn2d", "zoomInGeo", - "zoomInMap", "zoomInMapbox", "zoomOut2d", - "zoomOutGeo", "zoomOutMap", "zoomOutMapbox", - "zoomin", "zoomout". - removesrc - Sets the source reference on Chart Studio Cloud - for `remove`. - uirevision - Controls persistence of user-driven changes - related to the modebar, including `hovermode`, - `dragmode`, and `showspikes` at both the root - level and inside subplots. Defaults to - `layout.uirevision`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ModebarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='modebar', + parent_name='layout', + **kwargs): + super(ModebarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Modebar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_newselection.py b/packages/python/plotly/plotly/validators/layout/_newselection.py index 01b0ac441bd..69c43f932f4 100644 --- a/packages/python/plotly/plotly/validators/layout/_newselection.py +++ b/packages/python/plotly/plotly/validators/layout/_newselection.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class NewselectionValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="newselection", parent_name="layout", **kwargs): - super(NewselectionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Newselection"), - data_docs=kwargs.pop( - "data_docs", - """ - line - :class:`plotly.graph_objects.layout.newselectio - n.Line` instance or dict with compatible - properties - mode - Describes how a new selection is created. If - `immediate`, a new selection is created after - first mouse up. If `gradual`, a new selection - is not created after first mouse. By adding to - and subtracting from the initial selection, - this option allows declaring extra outlines of - the selection. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NewselectionValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='newselection', + parent_name='layout', + **kwargs): + super(NewselectionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Newselection'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_newshape.py b/packages/python/plotly/plotly/validators/layout/_newshape.py index 9e5690f9e2f..8fed2e3fcbd 100644 --- a/packages/python/plotly/plotly/validators/layout/_newshape.py +++ b/packages/python/plotly/plotly/validators/layout/_newshape.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class NewshapeValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="newshape", parent_name="layout", **kwargs): - super(NewshapeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Newshape"), - data_docs=kwargs.pop( - "data_docs", - """ - drawdirection - When `dragmode` is set to "drawrect", - "drawline" or "drawcircle" this limits the drag - to be horizontal, vertical or diagonal. Using - "diagonal" there is no limit e.g. in drawing - lines in any direction. "ortho" limits the draw - to be either horizontal or vertical. - "horizontal" allows horizontal extend. - "vertical" allows vertical extend. - fillcolor - Sets the color filling new shapes' interior. - Please note that if using a fillcolor with - alpha greater than half, drag inside the active - shape starts moving the shape underneath, - otherwise a new shape could be started over. - fillrule - Determines the path's interior. For more info - please visit https://developer.mozilla.org/en- - US/docs/Web/SVG/Attribute/fill-rule - label - :class:`plotly.graph_objects.layout.newshape.La - bel` instance or dict with compatible - properties - layer - Specifies whether new shapes are drawn below - gridlines ("below"), between gridlines and - traces ("between") or above traces ("above"). - legend - Sets the reference to a legend to show new - shape in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for new shape. Traces and - shapes part of the same legend group hide/show - at the same time when toggling legend items. - legendgrouptitle - :class:`plotly.graph_objects.layout.newshape.Le - gendgrouptitle` instance or dict with - compatible properties - legendrank - Sets the legend rank for new shape. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. - legendwidth - Sets the width (in px or fraction) of the - legend for new shape. - line - :class:`plotly.graph_objects.layout.newshape.Li - ne` instance or dict with compatible properties - name - Sets new shape name. The name appears as the - legend item. - opacity - Sets the opacity of new shapes. - showlegend - Determines whether or not new shape is shown in - the legend. - visible - Determines whether or not new shape is visible. - If "legendonly", the shape is not drawn, but - can appear as a legend item (provided that the - legend itself is visible). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NewshapeValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='newshape', + parent_name='layout', + **kwargs): + super(NewshapeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Newshape'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_paper_bgcolor.py b/packages/python/plotly/plotly/validators/layout/_paper_bgcolor.py index cd94a97fd08..08fd819b88b 100644 --- a/packages/python/plotly/plotly/validators/layout/_paper_bgcolor.py +++ b/packages/python/plotly/plotly/validators/layout/_paper_bgcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Paper_BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="paper_bgcolor", parent_name="layout", **kwargs): - super(Paper_BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Paper_BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='paper_bgcolor', + parent_name='layout', + **kwargs): + super(Paper_BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_piecolorway.py b/packages/python/plotly/plotly/validators/layout/_piecolorway.py index cdfe8a91015..067b4c1999b 100644 --- a/packages/python/plotly/plotly/validators/layout/_piecolorway.py +++ b/packages/python/plotly/plotly/validators/layout/_piecolorway.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class PiecolorwayValidator(_plotly_utils.basevalidators.ColorlistValidator): - def __init__(self, plotly_name="piecolorway", parent_name="layout", **kwargs): - super(PiecolorwayValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class PiecolorwayValidator(_bv.ColorlistValidator): + def __init__(self, plotly_name='piecolorway', + parent_name='layout', + **kwargs): + super(PiecolorwayValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_plot_bgcolor.py b/packages/python/plotly/plotly/validators/layout/_plot_bgcolor.py index 7bda1ca3c4f..22569db2207 100644 --- a/packages/python/plotly/plotly/validators/layout/_plot_bgcolor.py +++ b/packages/python/plotly/plotly/validators/layout/_plot_bgcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Plot_BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="plot_bgcolor", parent_name="layout", **kwargs): - super(Plot_BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Plot_BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='plot_bgcolor', + parent_name='layout', + **kwargs): + super(Plot_BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_polar.py b/packages/python/plotly/plotly/validators/layout/_polar.py index f399743ac63..bd5d764bda0 100644 --- a/packages/python/plotly/plotly/validators/layout/_polar.py +++ b/packages/python/plotly/plotly/validators/layout/_polar.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class PolarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="polar", parent_name="layout", **kwargs): - super(PolarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Polar"), - data_docs=kwargs.pop( - "data_docs", - """ - angularaxis - :class:`plotly.graph_objects.layout.polar.Angul - arAxis` instance or dict with compatible - properties - bargap - Sets the gap between bars of adjacent location - coordinates. Values are unitless, they - represent fractions of the minimum difference - in bar positions in the data. - barmode - Determines how bars at the same location - coordinate are displayed on the graph. With - "stack", the bars are stacked on top of one - another With "overlay", the bars are plotted - over one another, you might need to reduce - "opacity" to see multiple bars. - bgcolor - Set the background color of the subplot - domain - :class:`plotly.graph_objects.layout.polar.Domai - n` instance or dict with compatible properties - gridshape - Determines if the radial axis grid lines and - angular axis line are drawn as "circular" - sectors or as "linear" (polygon) sectors. Has - an effect only when the angular axis has `type` - "category". Note that `radialaxis.angle` is - snapped to the angle of the closest vertex when - `gridshape` is "circular" (so that radial axis - scale is the same as the data scale). - hole - Sets the fraction of the radius to cut out of - the polar subplot. - radialaxis - :class:`plotly.graph_objects.layout.polar.Radia - lAxis` instance or dict with compatible - properties - sector - Sets angular span of this polar subplot with - two angles (in degrees). Sector are assumed to - be spanned in the counterclockwise direction - with 0 corresponding to rightmost limit of the - polar subplot. - uirevision - Controls persistence of user-driven changes in - axis attributes, if not overridden in the - individual axes. Defaults to - `layout.uirevision`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class PolarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='polar', + parent_name='layout', + **kwargs): + super(PolarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Polar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_scattergap.py b/packages/python/plotly/plotly/validators/layout/_scattergap.py index 27689459b8a..4c1271aa57c 100644 --- a/packages/python/plotly/plotly/validators/layout/_scattergap.py +++ b/packages/python/plotly/plotly/validators/layout/_scattergap.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ScattergapValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="scattergap", parent_name="layout", **kwargs): - super(ScattergapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ScattergapValidator(_bv.NumberValidator): + def __init__(self, plotly_name='scattergap', + parent_name='layout', + **kwargs): + super(ScattergapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_scattermode.py b/packages/python/plotly/plotly/validators/layout/_scattermode.py index c747a3ceef8..1c7fb7853f0 100644 --- a/packages/python/plotly/plotly/validators/layout/_scattermode.py +++ b/packages/python/plotly/plotly/validators/layout/_scattermode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ScattermodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="scattermode", parent_name="layout", **kwargs): - super(ScattermodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["group", "overlay"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ScattermodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='scattermode', + parent_name='layout', + **kwargs): + super(ScattermodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['group', 'overlay']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_scene.py b/packages/python/plotly/plotly/validators/layout/_scene.py index 8b28a08365c..69cc3903518 100644 --- a/packages/python/plotly/plotly/validators/layout/_scene.py +++ b/packages/python/plotly/plotly/validators/layout/_scene.py @@ -1,67 +1,15 @@ -import _plotly_utils.basevalidators -class SceneValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="scene", parent_name="layout", **kwargs): - super(SceneValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Scene"), - data_docs=kwargs.pop( - "data_docs", - """ - annotations - A tuple of :class:`plotly.graph_objects.layout. - scene.Annotation` instances or dicts with - compatible properties - annotationdefaults - When used in a template (as layout.template.lay - out.scene.annotationdefaults), sets the default - property values to use for elements of - layout.scene.annotations - aspectmode - If "cube", this scene's axes are drawn as a - cube, regardless of the axes' ranges. If - "data", this scene's axes are drawn in - proportion with the axes' ranges. If "manual", - this scene's axes are drawn in proportion with - the input of "aspectratio" (the default - behavior if "aspectratio" is provided). If - "auto", this scene's axes are drawn using the - results of "data" except when one axis is more - than four times the size of the two others, - where in that case the results of "cube" are - used. - aspectratio - Sets this scene's axis aspectratio. - bgcolor +import _plotly_utils.basevalidators as _bv - camera - :class:`plotly.graph_objects.layout.scene.Camer - a` instance or dict with compatible properties - domain - :class:`plotly.graph_objects.layout.scene.Domai - n` instance or dict with compatible properties - dragmode - Determines the mode of drag interactions for - this scene. - hovermode - Determines the mode of hover interactions for - this scene. - uirevision - Controls persistence of user-driven changes in - camera attributes. Defaults to - `layout.uirevision`. - xaxis - :class:`plotly.graph_objects.layout.scene.XAxis - ` instance or dict with compatible properties - yaxis - :class:`plotly.graph_objects.layout.scene.YAxis - ` instance or dict with compatible properties - zaxis - :class:`plotly.graph_objects.layout.scene.ZAxis - ` instance or dict with compatible properties -""", - ), - **kwargs, - ) + +class SceneValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='scene', + parent_name='layout', + **kwargs): + super(SceneValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Scene'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_selectdirection.py b/packages/python/plotly/plotly/validators/layout/_selectdirection.py index 09a76e79bfd..fe04d543c09 100644 --- a/packages/python/plotly/plotly/validators/layout/_selectdirection.py +++ b/packages/python/plotly/plotly/validators/layout/_selectdirection.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SelectdirectionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="selectdirection", parent_name="layout", **kwargs): - super(SelectdirectionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["h", "v", "d", "any"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SelectdirectionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='selectdirection', + parent_name='layout', + **kwargs): + super(SelectdirectionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['h', 'v', 'd', 'any']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_selectiondefaults.py b/packages/python/plotly/plotly/validators/layout/_selectiondefaults.py index fb2db11d1f3..b751824d5ea 100644 --- a/packages/python/plotly/plotly/validators/layout/_selectiondefaults.py +++ b/packages/python/plotly/plotly/validators/layout/_selectiondefaults.py @@ -1,16 +1,15 @@ -import _plotly_utils.basevalidators -class SelectiondefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="selectiondefaults", parent_name="layout", **kwargs): - super(SelectiondefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Selection"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectiondefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='selectiondefaults', + parent_name='layout', + **kwargs): + super(SelectiondefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Selection'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_selectionrevision.py b/packages/python/plotly/plotly/validators/layout/_selectionrevision.py index bfde6745e98..743a19edc36 100644 --- a/packages/python/plotly/plotly/validators/layout/_selectionrevision.py +++ b/packages/python/plotly/plotly/validators/layout/_selectionrevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SelectionrevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="selectionrevision", parent_name="layout", **kwargs): - super(SelectionrevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectionrevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='selectionrevision', + parent_name='layout', + **kwargs): + super(SelectionrevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_selections.py b/packages/python/plotly/plotly/validators/layout/_selections.py index 6fcb5106371..f4113cea51e 100644 --- a/packages/python/plotly/plotly/validators/layout/_selections.py +++ b/packages/python/plotly/plotly/validators/layout/_selections.py @@ -1,93 +1,15 @@ -import _plotly_utils.basevalidators -class SelectionsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__(self, plotly_name="selections", parent_name="layout", **kwargs): - super(SelectionsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Selection"), - data_docs=kwargs.pop( - "data_docs", - """ - line - :class:`plotly.graph_objects.layout.selection.L - ine` instance or dict with compatible - properties - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - opacity - Sets the opacity of the selection. - path - For `type` "path" - a valid SVG path similar to - `shapes.path` in data coordinates. Allowed - segments are: M, L and Z. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - type - Specifies the selection type to be drawn. If - "rect", a rectangle is drawn linking - (`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`) and - (`x0`,`y1`). If "path", draw a custom SVG path - using `path`. - x0 - Sets the selection's starting x position. - x1 - Sets the selection's end x position. - xref - Sets the selection's x coordinate axis. If set - to a x axis id (e.g. "x" or "x2"), the `x` - position refers to a x coordinate. If set to - "paper", the `x` position refers to the - distance from the left of the plotting area in - normalized coordinates where 0 (1) corresponds - to the left (right). If set to a x axis ID - followed by "domain" (separated by a space), - the position behaves like for "paper", but - refers to the distance in fractions of the - domain length from the left of the domain of - that axis: e.g., *x2 domain* refers to the - domain of the second x axis and a x position - of 0.5 refers to the point between the left and - the right of the domain of the second x axis. - y0 - Sets the selection's starting y position. - y1 - Sets the selection's end y position. - yref - Sets the selection's x coordinate axis. If set - to a y axis id (e.g. "y" or "y2"), the `y` - position refers to a y coordinate. If set to - "paper", the `y` position refers to the - distance from the bottom of the plotting area - in normalized coordinates where 0 (1) - corresponds to the bottom (top). If set to a y - axis ID followed by "domain" (separated by a - space), the position behaves like for "paper", - but refers to the distance in fractions of the - domain length from the bottom of the domain of - that axis: e.g., *y2 domain* refers to the - domain of the second y axis and a y position - of 0.5 refers to the point between the bottom - and the top of the domain of the second y axis. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectionsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='selections', + parent_name='layout', + **kwargs): + super(SelectionsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Selection'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_separators.py b/packages/python/plotly/plotly/validators/layout/_separators.py index beccb46197b..54347e64a44 100644 --- a/packages/python/plotly/plotly/validators/layout/_separators.py +++ b/packages/python/plotly/plotly/validators/layout/_separators.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatorsValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="separators", parent_name="layout", **kwargs): - super(SeparatorsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatorsValidator(_bv.StringValidator): + def __init__(self, plotly_name='separators', + parent_name='layout', + **kwargs): + super(SeparatorsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_shapedefaults.py b/packages/python/plotly/plotly/validators/layout/_shapedefaults.py index 12dd9c1c3a8..a17a1d36985 100644 --- a/packages/python/plotly/plotly/validators/layout/_shapedefaults.py +++ b/packages/python/plotly/plotly/validators/layout/_shapedefaults.py @@ -1,16 +1,15 @@ -import _plotly_utils.basevalidators -class ShapedefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="shapedefaults", parent_name="layout", **kwargs): - super(ShapedefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Shape"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShapedefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='shapedefaults', + parent_name='layout', + **kwargs): + super(ShapedefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Shape'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_shapes.py b/packages/python/plotly/plotly/validators/layout/_shapes.py index 8c6ef3cf92e..87b1a49d30a 100644 --- a/packages/python/plotly/plotly/validators/layout/_shapes.py +++ b/packages/python/plotly/plotly/validators/layout/_shapes.py @@ -1,250 +1,15 @@ -import _plotly_utils.basevalidators -class ShapesValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__(self, plotly_name="shapes", parent_name="layout", **kwargs): - super(ShapesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Shape"), - data_docs=kwargs.pop( - "data_docs", - """ - editable - Determines whether the shape could be activated - for edit or not. Has no effect when the older - editable shapes mode is enabled via - `config.editable` or - `config.edits.shapePosition`. - fillcolor - Sets the color filling the shape's interior. - Only applies to closed shapes. - fillrule - Determines which regions of complex paths - constitute the interior. For more info please - visit https://developer.mozilla.org/en- - US/docs/Web/SVG/Attribute/fill-rule - label - :class:`plotly.graph_objects.layout.shape.Label - ` instance or dict with compatible properties - layer - Specifies whether shapes are drawn below - gridlines ("below"), between gridlines and - traces ("between") or above traces ("above"). - legend - Sets the reference to a legend to show this - shape in. References to these legends are - "legend", "legend2", "legend3", etc. Settings - for these legends are set in the layout, under - `layout.legend`, `layout.legend2`, etc. - legendgroup - Sets the legend group for this shape. Traces - and shapes part of the same legend group - hide/show at the same time when toggling legend - items. - legendgrouptitle - :class:`plotly.graph_objects.layout.shape.Legen - dgrouptitle` instance or dict with compatible - properties - legendrank - Sets the legend rank for this shape. Items and - groups with smaller ranks are presented on - top/left side while with "reversed" - `legend.traceorder` they are on bottom/right - side. The default legendrank is 1000, so that - you can use ranks less than 1000 to place - certain items before all unranked items, and - ranks greater than 1000 to go after all - unranked items. When having unranked or equal - rank items shapes would be displayed after - traces i.e. according to their order in data - and layout. - legendwidth - Sets the width (in px or fraction) of the - legend for this shape. - line - :class:`plotly.graph_objects.layout.shape.Line` - instance or dict with compatible properties - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - opacity - Sets the opacity of the shape. - path - For `type` "path" - a valid SVG path with the - pixel values replaced by data values in - `xsizemode`/`ysizemode` being "scaled" and - taken unmodified as pixels relative to - `xanchor` and `yanchor` in case of "pixel" size - mode. There are a few restrictions / quirks - only absolute instructions, not relative. So - the allowed segments are: M, L, H, V, Q, C, T, - S, and Z arcs (A) are not allowed because - radius rx and ry are relative. In the future we - could consider supporting relative commands, - but we would have to decide on how to handle - date and log axes. Note that even as is, Q and - C Bezier paths that are smooth on linear axes - may not be smooth on log, and vice versa. no - chained "polybezier" commands - specify the - segment type for each one. On category axes, - values are numbers scaled to the serial numbers - of categories because using the categories - themselves there would be no way to describe - fractional positions On data axes: because - space and T are both normal components of path - strings, we can't use either to separate date - from time parts. Therefore we'll use underscore - for this purpose: 2015-02-21_13:45:56.789 - showlegend - Determines whether or not this shape is shown - in the legend. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - type - Specifies the shape type to be drawn. If - "line", a line is drawn from (`x0`,`y0`) to - (`x1`,`y1`) with respect to the axes' sizing - mode. If "circle", a circle is drawn from - ((`x0`+`x1`)/2, (`y0`+`y1`)/2)) with radius - (|(`x0`+`x1`)/2 - `x0`|, |(`y0`+`y1`)/2 - -`y0`)|) with respect to the axes' sizing mode. - If "rect", a rectangle is drawn linking - (`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`), - (`x0`,`y1`), (`x0`,`y0`) with respect to the - axes' sizing mode. If "path", draw a custom SVG - path using `path`. with respect to the axes' - sizing mode. - visible - Determines whether or not this shape is - visible. If "legendonly", the shape is not - drawn, but can appear as a legend item - (provided that the legend itself is visible). - x0 - Sets the shape's starting x position. See - `type` and `xsizemode` for more info. - x0shift - Shifts `x0` away from the center of the - category when `xref` is a "category" or - "multicategory" axis. -0.5 corresponds to the - start of the category and 0.5 corresponds to - the end of the category. - x1 - Sets the shape's end x position. See `type` and - `xsizemode` for more info. - x1shift - Shifts `x1` away from the center of the - category when `xref` is a "category" or - "multicategory" axis. -0.5 corresponds to the - start of the category and 0.5 corresponds to - the end of the category. - xanchor - Only relevant in conjunction with `xsizemode` - set to "pixel". Specifies the anchor point on - the x axis to which `x0`, `x1` and x - coordinates within `path` are relative to. E.g. - useful to attach a pixel sized shape to a - certain data value. No effect when `xsizemode` - not set to "pixel". - xref - Sets the shape's x coordinate axis. If set to a - x axis id (e.g. "x" or "x2"), the `x` position - refers to a x coordinate. If set to "paper", - the `x` position refers to the distance from - the left of the plotting area in normalized - coordinates where 0 (1) corresponds to the left - (right). If set to a x axis ID followed by - "domain" (separated by a space), the position - behaves like for "paper", but refers to the - distance in fractions of the domain length from - the left of the domain of that axis: e.g., *x2 - domain* refers to the domain of the second x - axis and a x position of 0.5 refers to the - point between the left and the right of the - domain of the second x axis. - xsizemode - Sets the shapes's sizing mode along the x axis. - If set to "scaled", `x0`, `x1` and x - coordinates within `path` refer to data values - on the x axis or a fraction of the plot area's - width (`xref` set to "paper"). If set to - "pixel", `xanchor` specifies the x position in - terms of data or plot fraction but `x0`, `x1` - and x coordinates within `path` are pixels - relative to `xanchor`. This way, the shape can - have a fixed width while maintaining a position - relative to data or plot fraction. - y0 - Sets the shape's starting y position. See - `type` and `ysizemode` for more info. - y0shift - Shifts `y0` away from the center of the - category when `yref` is a "category" or - "multicategory" axis. -0.5 corresponds to the - start of the category and 0.5 corresponds to - the end of the category. - y1 - Sets the shape's end y position. See `type` and - `ysizemode` for more info. - y1shift - Shifts `y1` away from the center of the - category when `yref` is a "category" or - "multicategory" axis. -0.5 corresponds to the - start of the category and 0.5 corresponds to - the end of the category. - yanchor - Only relevant in conjunction with `ysizemode` - set to "pixel". Specifies the anchor point on - the y axis to which `y0`, `y1` and y - coordinates within `path` are relative to. E.g. - useful to attach a pixel sized shape to a - certain data value. No effect when `ysizemode` - not set to "pixel". - yref - Sets the shape's y coordinate axis. If set to a - y axis id (e.g. "y" or "y2"), the `y` position - refers to a y coordinate. If set to "paper", - the `y` position refers to the distance from - the bottom of the plotting area in normalized - coordinates where 0 (1) corresponds to the - bottom (top). If set to a y axis ID followed by - "domain" (separated by a space), the position - behaves like for "paper", but refers to the - distance in fractions of the domain length from - the bottom of the domain of that axis: e.g., - *y2 domain* refers to the domain of the second - y axis and a y position of 0.5 refers to the - point between the bottom and the top of the - domain of the second y axis. - ysizemode - Sets the shapes's sizing mode along the y axis. - If set to "scaled", `y0`, `y1` and y - coordinates within `path` refer to data values - on the y axis or a fraction of the plot area's - height (`yref` set to "paper"). If set to - "pixel", `yanchor` specifies the y position in - terms of data or plot fraction but `y0`, `y1` - and y coordinates within `path` are pixels - relative to `yanchor`. This way, the shape can - have a fixed height while maintaining a - position relative to data or plot fraction. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShapesValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='shapes', + parent_name='layout', + **kwargs): + super(ShapesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Shape'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_showlegend.py b/packages/python/plotly/plotly/validators/layout/_showlegend.py index 61285e2e1f2..b8ada6d9dc6 100644 --- a/packages/python/plotly/plotly/validators/layout/_showlegend.py +++ b/packages/python/plotly/plotly/validators/layout/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="layout", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='layout', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_sliderdefaults.py b/packages/python/plotly/plotly/validators/layout/_sliderdefaults.py index 46ff054d946..5f7420742ce 100644 --- a/packages/python/plotly/plotly/validators/layout/_sliderdefaults.py +++ b/packages/python/plotly/plotly/validators/layout/_sliderdefaults.py @@ -1,16 +1,15 @@ -import _plotly_utils.basevalidators -class SliderdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="sliderdefaults", parent_name="layout", **kwargs): - super(SliderdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Slider"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SliderdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='sliderdefaults', + parent_name='layout', + **kwargs): + super(SliderdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Slider'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_sliders.py b/packages/python/plotly/plotly/validators/layout/_sliders.py index c43ae5f32c8..bcd2d345ef9 100644 --- a/packages/python/plotly/plotly/validators/layout/_sliders.py +++ b/packages/python/plotly/plotly/validators/layout/_sliders.py @@ -1,110 +1,15 @@ -import _plotly_utils.basevalidators -class SlidersValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__(self, plotly_name="sliders", parent_name="layout", **kwargs): - super(SlidersValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Slider"), - data_docs=kwargs.pop( - "data_docs", - """ - active - Determines which button (by index starting from - 0) is considered active. - activebgcolor - Sets the background color of the slider grip - while dragging. - bgcolor - Sets the background color of the slider. - bordercolor - Sets the color of the border enclosing the - slider. - borderwidth - Sets the width (in px) of the border enclosing - the slider. - currentvalue - :class:`plotly.graph_objects.layout.slider.Curr - entvalue` instance or dict with compatible - properties - font - Sets the font of the slider step labels. - len - Sets the length of the slider This measure - excludes the padding of both ends. That is, the - slider's length is this length minus the - padding on both ends. - lenmode - Determines whether this slider length is set in - units of plot "fraction" or in *pixels. Use - `len` to set the value. - minorticklen - Sets the length in pixels of minor step tick - marks - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - pad - Set the padding of the slider component along - each side. - steps - A tuple of :class:`plotly.graph_objects.layout. - slider.Step` instances or dicts with compatible - properties - stepdefaults - When used in a template (as - layout.template.layout.slider.stepdefaults), - sets the default property values to use for - elements of layout.slider.steps - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - tickcolor - Sets the color of the border enclosing the - slider. - ticklen - Sets the length in pixels of step tick marks - tickwidth - Sets the tick width (in px). - transition - :class:`plotly.graph_objects.layout.slider.Tran - sition` instance or dict with compatible - properties - visible - Determines whether or not the slider is - visible. - x - Sets the x position (in normalized coordinates) - of the slider. - xanchor - Sets the slider's horizontal position anchor. - This anchor binds the `x` position to the - "left", "center" or "right" of the range - selector. - y - Sets the y position (in normalized coordinates) - of the slider. - yanchor - Sets the slider's vertical position anchor This - anchor binds the `y` position to the "top", - "middle" or "bottom" of the range selector. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SlidersValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='sliders', + parent_name='layout', + **kwargs): + super(SlidersValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Slider'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_smith.py b/packages/python/plotly/plotly/validators/layout/_smith.py index b2a1aa5e808..932789524c5 100644 --- a/packages/python/plotly/plotly/validators/layout/_smith.py +++ b/packages/python/plotly/plotly/validators/layout/_smith.py @@ -1,29 +1,15 @@ -import _plotly_utils.basevalidators -class SmithValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="smith", parent_name="layout", **kwargs): - super(SmithValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Smith"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Set the background color of the subplot - domain - :class:`plotly.graph_objects.layout.smith.Domai - n` instance or dict with compatible properties - imaginaryaxis - :class:`plotly.graph_objects.layout.smith.Imagi - naryaxis` instance or dict with compatible - properties - realaxis - :class:`plotly.graph_objects.layout.smith.Reala - xis` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SmithValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='smith', + parent_name='layout', + **kwargs): + super(SmithValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Smith'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_spikedistance.py b/packages/python/plotly/plotly/validators/layout/_spikedistance.py index 41158dde8c8..ce45e9e0c3a 100644 --- a/packages/python/plotly/plotly/validators/layout/_spikedistance.py +++ b/packages/python/plotly/plotly/validators/layout/_spikedistance.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SpikedistanceValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="spikedistance", parent_name="layout", **kwargs): - super(SpikedistanceValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SpikedistanceValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='spikedistance', + parent_name='layout', + **kwargs): + super(SpikedistanceValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_sunburstcolorway.py b/packages/python/plotly/plotly/validators/layout/_sunburstcolorway.py index b0cc21ddb92..eb099d1ef78 100644 --- a/packages/python/plotly/plotly/validators/layout/_sunburstcolorway.py +++ b/packages/python/plotly/plotly/validators/layout/_sunburstcolorway.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SunburstcolorwayValidator(_plotly_utils.basevalidators.ColorlistValidator): - def __init__(self, plotly_name="sunburstcolorway", parent_name="layout", **kwargs): - super(SunburstcolorwayValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SunburstcolorwayValidator(_bv.ColorlistValidator): + def __init__(self, plotly_name='sunburstcolorway', + parent_name='layout', + **kwargs): + super(SunburstcolorwayValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_template.py b/packages/python/plotly/plotly/validators/layout/_template.py index 3f612073ddd..0656ed3fb0a 100644 --- a/packages/python/plotly/plotly/validators/layout/_template.py +++ b/packages/python/plotly/plotly/validators/layout/_template.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class TemplateValidator(_plotly_utils.basevalidators.BaseTemplateValidator): - def __init__(self, plotly_name="template", parent_name="layout", **kwargs): - super(TemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Template"), - data_docs=kwargs.pop( - "data_docs", - """ - data - :class:`plotly.graph_objects.layout.template.Da - ta` instance or dict with compatible properties - layout - :class:`plotly.graph_objects.Layout` instance - or dict with compatible properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateValidator(_bv.BaseTemplateValidator): + def __init__(self, plotly_name='template', + parent_name='layout', + **kwargs): + super(TemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Template'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_ternary.py b/packages/python/plotly/plotly/validators/layout/_ternary.py index 4be51c5256a..c362b00d4f4 100644 --- a/packages/python/plotly/plotly/validators/layout/_ternary.py +++ b/packages/python/plotly/plotly/validators/layout/_ternary.py @@ -1,39 +1,15 @@ -import _plotly_utils.basevalidators -class TernaryValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="ternary", parent_name="layout", **kwargs): - super(TernaryValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Ternary"), - data_docs=kwargs.pop( - "data_docs", - """ - aaxis - :class:`plotly.graph_objects.layout.ternary.Aax - is` instance or dict with compatible properties - baxis - :class:`plotly.graph_objects.layout.ternary.Bax - is` instance or dict with compatible properties - bgcolor - Set the background color of the subplot - caxis - :class:`plotly.graph_objects.layout.ternary.Cax - is` instance or dict with compatible properties - domain - :class:`plotly.graph_objects.layout.ternary.Dom - ain` instance or dict with compatible - properties - sum - The number each triplet should sum to, and the - maximum range of each axis - uirevision - Controls persistence of user-driven changes in - axis `min` and `title`, if not overridden in - the individual axes. Defaults to - `layout.uirevision`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TernaryValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='ternary', + parent_name='layout', + **kwargs): + super(TernaryValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Ternary'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_title.py b/packages/python/plotly/plotly/validators/layout/_title.py index 6dc1b258d34..62f2245d8c0 100644 --- a/packages/python/plotly/plotly/validators/layout/_title.py +++ b/packages/python/plotly/plotly/validators/layout/_title.py @@ -1,83 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__(self, plotly_name="title", parent_name="layout", **kwargs): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - automargin - Determines whether the title can automatically - push the figure margins. If `yref='paper'` then - the margin will expand to ensure that the title - doesn’t overlap with the edges of the - container. If `yref='container'` then the - margins will ensure that the title doesn’t - overlap with the plot area, tick labels, and - axis titles. If `automargin=true` and the - margins need to be expanded, then y will be set - to a default 1 and yanchor will be set to an - appropriate default to ensure that minimal - margin space is needed. Note that when - `yref='paper'`, only 1 or 0 are allowed y - values. Invalid values will be reset to the - default 1. - font - Sets the title font. - pad - Sets the padding of the title. Each padding - value only applies when the corresponding - `xanchor`/`yanchor` value is set accordingly. - E.g. for left padding to take effect, `xanchor` - must be set to "left". The same rule applies if - `xanchor`/`yanchor` is determined - automatically. Padding is muted if the - respective anchor value is "middle*/*center". - subtitle - :class:`plotly.graph_objects.layout.title.Subti - tle` instance or dict with compatible - properties - text - Sets the plot's title. - x - Sets the x position with respect to `xref` in - normalized coordinates from 0 (left) to 1 - (right). - xanchor - Sets the title's horizontal alignment with - respect to its x position. "left" means that - the title starts at x, "right" means that the - title ends at x and "center" means that the - title's center is at x. "auto" divides `xref` - by three and calculates the `xanchor` value - automatically based on the value of `x`. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` in - normalized coordinates from 0 (bottom) to 1 - (top). "auto" places the baseline of the title - onto the vertical center of the top margin. - yanchor - Sets the title's vertical alignment with - respect to its y position. "top" means that the - title's cap line is at y, "bottom" means that - the title's baseline is at y and "middle" means - that the title's midline is at y. "auto" - divides `yref` by three and calculates the - `yanchor` value automatically based on the - value of `y`. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='layout', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_transition.py b/packages/python/plotly/plotly/validators/layout/_transition.py index edc2c1a6736..8c587292e1e 100644 --- a/packages/python/plotly/plotly/validators/layout/_transition.py +++ b/packages/python/plotly/plotly/validators/layout/_transition.py @@ -1,26 +1,15 @@ -import _plotly_utils.basevalidators -class TransitionValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="transition", parent_name="layout", **kwargs): - super(TransitionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Transition"), - data_docs=kwargs.pop( - "data_docs", - """ - duration - The duration of the transition, in - milliseconds. If equal to zero, updates are - synchronous. - easing - The easing function used for the transition - ordering - Determines whether the figure's layout or - traces smoothly transitions during updates that - make both traces and layout change. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TransitionValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='transition', + parent_name='layout', + **kwargs): + super(TransitionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Transition'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_treemapcolorway.py b/packages/python/plotly/plotly/validators/layout/_treemapcolorway.py index 1567bd2e6fc..6f612146f3a 100644 --- a/packages/python/plotly/plotly/validators/layout/_treemapcolorway.py +++ b/packages/python/plotly/plotly/validators/layout/_treemapcolorway.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TreemapcolorwayValidator(_plotly_utils.basevalidators.ColorlistValidator): - def __init__(self, plotly_name="treemapcolorway", parent_name="layout", **kwargs): - super(TreemapcolorwayValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TreemapcolorwayValidator(_bv.ColorlistValidator): + def __init__(self, plotly_name='treemapcolorway', + parent_name='layout', + **kwargs): + super(TreemapcolorwayValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_uirevision.py b/packages/python/plotly/plotly/validators/layout/_uirevision.py index 0677a49b851..ad63efe6e3f 100644 --- a/packages/python/plotly/plotly/validators/layout/_uirevision.py +++ b/packages/python/plotly/plotly/validators/layout/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="layout", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='layout', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_uniformtext.py b/packages/python/plotly/plotly/validators/layout/_uniformtext.py index e768a0c7a0c..661f67aff7a 100644 --- a/packages/python/plotly/plotly/validators/layout/_uniformtext.py +++ b/packages/python/plotly/plotly/validators/layout/_uniformtext.py @@ -1,30 +1,15 @@ -import _plotly_utils.basevalidators -class UniformtextValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="uniformtext", parent_name="layout", **kwargs): - super(UniformtextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Uniformtext"), - data_docs=kwargs.pop( - "data_docs", - """ - minsize - Sets the minimum text size between traces of - the same type. - mode - Determines how the font size for various text - elements are uniformed between each trace type. - If the computed text sizes were smaller than - the minimum size defined by - `uniformtext.minsize` using "hide" option hides - the text; and using "show" option shows the - text without further downscaling. Please note - that if the size defined by `minsize` is - greater than the font size defined by trace, - then the `minsize` is used. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UniformtextValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='uniformtext', + parent_name='layout', + **kwargs): + super(UniformtextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Uniformtext'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_updatemenudefaults.py b/packages/python/plotly/plotly/validators/layout/_updatemenudefaults.py index 065656e861b..e2679e430c8 100644 --- a/packages/python/plotly/plotly/validators/layout/_updatemenudefaults.py +++ b/packages/python/plotly/plotly/validators/layout/_updatemenudefaults.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class UpdatemenudefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="updatemenudefaults", parent_name="layout", **kwargs - ): - super(UpdatemenudefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Updatemenu"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UpdatemenudefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='updatemenudefaults', + parent_name='layout', + **kwargs): + super(UpdatemenudefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Updatemenu'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_updatemenus.py b/packages/python/plotly/plotly/validators/layout/_updatemenus.py index dab9febd51a..e37bb56b918 100644 --- a/packages/python/plotly/plotly/validators/layout/_updatemenus.py +++ b/packages/python/plotly/plotly/validators/layout/_updatemenus.py @@ -1,95 +1,15 @@ -import _plotly_utils.basevalidators -class UpdatemenusValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__(self, plotly_name="updatemenus", parent_name="layout", **kwargs): - super(UpdatemenusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Updatemenu"), - data_docs=kwargs.pop( - "data_docs", - """ - active - Determines which button (by index starting from - 0) is considered active. - bgcolor - Sets the background color of the update menu - buttons. - bordercolor - Sets the color of the border enclosing the - update menu. - borderwidth - Sets the width (in px) of the border enclosing - the update menu. - buttons - A tuple of :class:`plotly.graph_objects.layout. - updatemenu.Button` instances or dicts with - compatible properties - buttondefaults - When used in a template (as layout.template.lay - out.updatemenu.buttondefaults), sets the - default property values to use for elements of - layout.updatemenu.buttons - direction - Determines the direction in which the buttons - are laid out, whether in a dropdown menu or a - row/column of buttons. For `left` and `up`, the - buttons will still appear in left-to-right or - top-to-bottom order respectively. - font - Sets the font of the update menu button text. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - pad - Sets the padding around the buttons or dropdown - menu. - showactive - Highlights active dropdown item or active - button if true. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - type - Determines whether the buttons are accessible - via a dropdown menu or whether the buttons are - stacked horizontally or vertically - visible - Determines whether or not the update menu is - visible. - x - Sets the x position (in normalized coordinates) - of the update menu. - xanchor - Sets the update menu's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the range - selector. - y - Sets the y position (in normalized coordinates) - of the update menu. - yanchor - Sets the update menu's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the range - selector. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UpdatemenusValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='updatemenus', + parent_name='layout', + **kwargs): + super(UpdatemenusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Updatemenu'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_violingap.py b/packages/python/plotly/plotly/validators/layout/_violingap.py index 37a395cd4da..82ee977b42f 100644 --- a/packages/python/plotly/plotly/validators/layout/_violingap.py +++ b/packages/python/plotly/plotly/validators/layout/_violingap.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ViolingapValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="violingap", parent_name="layout", **kwargs): - super(ViolingapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ViolingapValidator(_bv.NumberValidator): + def __init__(self, plotly_name='violingap', + parent_name='layout', + **kwargs): + super(ViolingapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_violingroupgap.py b/packages/python/plotly/plotly/validators/layout/_violingroupgap.py index b56c26657e2..66843f12857 100644 --- a/packages/python/plotly/plotly/validators/layout/_violingroupgap.py +++ b/packages/python/plotly/plotly/validators/layout/_violingroupgap.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ViolingroupgapValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="violingroupgap", parent_name="layout", **kwargs): - super(ViolingroupgapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ViolingroupgapValidator(_bv.NumberValidator): + def __init__(self, plotly_name='violingroupgap', + parent_name='layout', + **kwargs): + super(ViolingroupgapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_violinmode.py b/packages/python/plotly/plotly/validators/layout/_violinmode.py index 78c2824d395..50169d9fa66 100644 --- a/packages/python/plotly/plotly/validators/layout/_violinmode.py +++ b/packages/python/plotly/plotly/validators/layout/_violinmode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ViolinmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="violinmode", parent_name="layout", **kwargs): - super(ViolinmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["group", "overlay"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ViolinmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='violinmode', + parent_name='layout', + **kwargs): + super(ViolinmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['group', 'overlay']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_waterfallgap.py b/packages/python/plotly/plotly/validators/layout/_waterfallgap.py index 42f82595051..879caf35812 100644 --- a/packages/python/plotly/plotly/validators/layout/_waterfallgap.py +++ b/packages/python/plotly/plotly/validators/layout/_waterfallgap.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class WaterfallgapValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="waterfallgap", parent_name="layout", **kwargs): - super(WaterfallgapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WaterfallgapValidator(_bv.NumberValidator): + def __init__(self, plotly_name='waterfallgap', + parent_name='layout', + **kwargs): + super(WaterfallgapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_waterfallgroupgap.py b/packages/python/plotly/plotly/validators/layout/_waterfallgroupgap.py index 7cbeb7b121e..1a74d413b55 100644 --- a/packages/python/plotly/plotly/validators/layout/_waterfallgroupgap.py +++ b/packages/python/plotly/plotly/validators/layout/_waterfallgroupgap.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class WaterfallgroupgapValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="waterfallgroupgap", parent_name="layout", **kwargs): - super(WaterfallgroupgapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WaterfallgroupgapValidator(_bv.NumberValidator): + def __init__(self, plotly_name='waterfallgroupgap', + parent_name='layout', + **kwargs): + super(WaterfallgroupgapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_waterfallmode.py b/packages/python/plotly/plotly/validators/layout/_waterfallmode.py index 6c590f2d41d..380e69efc67 100644 --- a/packages/python/plotly/plotly/validators/layout/_waterfallmode.py +++ b/packages/python/plotly/plotly/validators/layout/_waterfallmode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WaterfallmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="waterfallmode", parent_name="layout", **kwargs): - super(WaterfallmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["group", "overlay"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WaterfallmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='waterfallmode', + parent_name='layout', + **kwargs): + super(WaterfallmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['group', 'overlay']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_width.py b/packages/python/plotly/plotly/validators/layout/_width.py index cf15a2e8c97..33e43ff8b77 100644 --- a/packages/python/plotly/plotly/validators/layout/_width.py +++ b/packages/python/plotly/plotly/validators/layout/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="layout", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 10), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='layout', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 10), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_xaxis.py b/packages/python/plotly/plotly/validators/layout/_xaxis.py index 23e776bf0ab..3cd98a3ae2a 100644 --- a/packages/python/plotly/plotly/validators/layout/_xaxis.py +++ b/packages/python/plotly/plotly/validators/layout/_xaxis.py @@ -1,585 +1,15 @@ -import _plotly_utils.basevalidators -class XaxisValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="xaxis", parent_name="layout", **kwargs): - super(XaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "XAxis"), - data_docs=kwargs.pop( - "data_docs", - """ - anchor - If set to an opposite-letter axis id (e.g. - `x2`, `y`), this axis is bound to the - corresponding opposite-letter axis. If set to - "free", this axis' position is determined by - `position`. - automargin - Determines whether long tick labels - automatically grow the figure margins. - autorange - Determines whether or not the range of this - axis is computed in relation to the input data. - See `rangemode` for more info. If `range` is - provided and it has a value for both the lower - and upper bound, `autorange` is set to False. - Using "min" applies autorange only to set the - minimum. Using "max" applies autorange only to - set the maximum. Using *min reversed* applies - autorange only to set the minimum on a reversed - axis. Using *max reversed* applies autorange - only to set the maximum on a reversed axis. - Using "reversed" applies autorange on both ends - and reverses the axis direction. - autorangeoptions - :class:`plotly.graph_objects.layout.xaxis.Autor - angeoptions` instance or dict with compatible - properties - autotickangles - When `tickangle` is set to "auto", it will be - set to the first angle in this array that is - large enough to prevent label overlap. - autotypenumbers - Using "strict" a numeric string in trace data - is not converted to a number. Using *convert - types* a numeric string in trace data may be - treated as a number during automatic axis - `type` detection. Defaults to - layout.autotypenumbers. - calendar - Sets the calendar system to use for `range` and - `tick0` if this is a date axis. This does not - set the calendar for interpreting data on this - axis, that's specified in the trace or via the - global `layout.calendar` - categoryarray - Sets the order in which categories on this axis - appear. Only has an effect if `categoryorder` - is set to "array". Used with `categoryorder`. - categoryarraysrc - Sets the source reference on Chart Studio Cloud - for `categoryarray`. - categoryorder - Specifies the ordering logic for the case of - categorical variables. By default, plotly uses - "trace", which specifies the order that is - present in the data supplied. Set - `categoryorder` to *category ascending* or - *category descending* if order should be - determined by the alphanumerical order of the - category names. Set `categoryorder` to "array" - to derive the ordering from the attribute - `categoryarray`. If a category is not found in - the `categoryarray` array, the sorting behavior - for that attribute will be identical to the - "trace" mode. The unspecified categories will - follow the categories in `categoryarray`. Set - `categoryorder` to *total ascending* or *total - descending* if order should be determined by - the numerical order of the values. Similarly, - the order can be determined by the min, max, - sum, mean, geometric mean or median of all the - values. - color - Sets default for all colors associated with - this axis all at once: line, font, tick, and - grid colors. Grid color is lightened by - blending this with the plot background - Individual pieces can override this. - constrain - If this axis needs to be compressed (either due - to its own `scaleanchor` and `scaleratio` or - those of the other axis), determines how that - happens: by increasing the "range", or by - decreasing the "domain". Default is "domain" - for axes containing image traces, "range" - otherwise. - constraintoward - If this axis needs to be compressed (either due - to its own `scaleanchor` and `scaleratio` or - those of the other axis), determines which - direction we push the originally specified plot - area. Options are "left", "center" (default), - and "right" for x axes, and "top", "middle" - (default), and "bottom" for y axes. - dividercolor - Sets the color of the dividers Only has an - effect on "multicategory" axes. - dividerwidth - Sets the width (in px) of the dividers Only has - an effect on "multicategory" axes. - domain - Sets the domain of this axis (in plot - fraction). - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - fixedrange - Determines whether or not this axis is zoom- - able. If true, then zoom is disabled. - gridcolor - Sets the color of the grid lines. - 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 width (in px) of the grid lines. - hoverformat - Sets the hover text formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - insiderange - Could be used to set the desired inside range - of this axis (excluding the labels) when - `ticklabelposition` of the anchored axis has - "inside". Not implemented for axes with `type` - "log". This would be ignored when `range` is - provided. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - layer - Sets the layer on which this axis is displayed. - If *above traces*, this axis is displayed above - all the subplot's traces If *below traces*, - this axis is displayed below all the subplot's - traces, but above the grid lines. Useful when - used together with scatter-like traces with - `cliponaxis` set to False to show markers - and/or text nodes above this axis. - linecolor - Sets the axis line color. - linewidth - Sets the width (in px) of the axis line. - matches - If set to another axis id (e.g. `x2`, `y`), the - range of this axis will match the range of the - corresponding axis in data-coordinates space. - Moreover, matching axes share auto-range - values, category lists and histogram auto-bins. - Note that setting axes simultaneously in both a - `scaleanchor` and a `matches` constraint is - currently forbidden. Moreover, note that - matching axes must have the same `type`. - maxallowed - Determines the maximum range of this axis. - minallowed - Determines the minimum range of this axis. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - minor - :class:`plotly.graph_objects.layout.xaxis.Minor - ` instance or dict with compatible properties - mirror - Determines if the axis lines or/and ticks are - mirrored to the opposite side of the plotting - area. If True, the axis lines are mirrored. If - "ticks", the axis lines and ticks are mirrored. - If False, mirroring is disable. If "all", axis - lines are mirrored on all shared-axes subplots. - If "allticks", axis lines and ticks are - mirrored on all shared-axes subplots. - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - overlaying - If set a same-letter axis id, this axis is - overlaid on top of the corresponding same- - letter axis, with traces and axes visible for - both axes. If False, this axis does not overlay - any same-letter axes. In this case, for axes - with overlapping domains only the highest- - numbered axis will be visible. - position - Sets the position of this axis in the plotting - space (in normalized coordinates). Only has an - effect if `anchor` is set to "free". - range - Sets the range of this axis. If the axis `type` - is "log", then you must take the log of your - desired range (e.g. to set the range from 1 to - 100, set the range from 0 to 2). If the axis - `type` is "date", it should be date strings, - like date data, though Date objects and unix - milliseconds will be accepted and converted to - strings. If the axis `type` is "category", it - should be numbers, using the scale where each - category is assigned a serial number from zero - in the order it appears. Leaving either or both - elements `null` impacts the default - `autorange`. - rangebreaks - A tuple of :class:`plotly.graph_objects.layout. - xaxis.Rangebreak` instances or dicts with - compatible properties - rangebreakdefaults - When used in a template (as layout.template.lay - out.xaxis.rangebreakdefaults), sets the default - property values to use for elements of - layout.xaxis.rangebreaks - rangemode - If "normal", the range is computed in relation - to the extrema of the input data. If *tozero*`, - the range extends to 0, regardless of the input - data If "nonnegative", the range is non- - negative, regardless of the input data. Applies - only to linear axes. - rangeselector - :class:`plotly.graph_objects.layout.xaxis.Range - selector` instance or dict with compatible - properties - rangeslider - :class:`plotly.graph_objects.layout.xaxis.Range - slider` instance or dict with compatible - properties - scaleanchor - If set to another axis id (e.g. `x2`, `y`), the - range of this axis changes together with the - range of the corresponding axis such that the - scale of pixels per unit is in a constant - ratio. Both axes are still zoomable, but when - you zoom one, the other will zoom the same - amount, keeping a fixed midpoint. `constrain` - and `constraintoward` determine how we enforce - the constraint. You can chain these, ie `yaxis: - {scaleanchor: *x*}, xaxis2: {scaleanchor: *y*}` - but you can only link axes of the same `type`. - The linked axis can have the opposite letter - (to constrain the aspect ratio) or the same - letter (to match scales across subplots). Loops - (`yaxis: {scaleanchor: *x*}, xaxis: - {scaleanchor: *y*}` or longer) are redundant - and the last constraint encountered will be - ignored to avoid possible inconsistent - constraints via `scaleratio`. Note that setting - axes simultaneously in both a `scaleanchor` and - a `matches` constraint is currently forbidden. - Setting `false` allows to remove a default - constraint (occasionally, you may need to - prevent a default `scaleanchor` constraint from - being applied, eg. when having an image trace - `yaxis: {scaleanchor: "x"}` is set - automatically in order for pixels to be - rendered as squares, setting `yaxis: - {scaleanchor: false}` allows to remove the - constraint). - scaleratio - If this axis is linked to another by - `scaleanchor`, this determines the pixel to - unit scale ratio. For example, if this value is - 10, then every unit on this axis spans 10 times - the number of pixels as a unit on the linked - axis. Use this for example to create an - elevation profile where the vertical scale is - exaggerated a fixed amount with respect to the - horizontal. - separatethousands - If "true", even 4-digit integers are separated - showdividers - Determines whether or not a dividers are drawn - between the category levels of this axis. Only - has an effect on "multicategory" axes. - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - showline - Determines whether or not a line bounding this - axis is drawn. - showspikes - Determines whether or not spikes (aka - droplines) are drawn for this axis. Note: This - only takes affect when hovermode = closest - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - side - Determines whether a x (y) axis is positioned - at the "bottom" ("left") or "top" ("right") of - the plotting area. - spikecolor - Sets the spike color. If undefined, will use - the series color - spikedash - 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"). - spikemode - Determines the drawing mode for the spike line - If "toaxis", the line is drawn from the data - point to the axis the series is plotted on. If - "across", the line is drawn across the entire - plot area, and supercedes "toaxis". If - "marker", then a marker dot is drawn on the - axis the series is plotted on - spikesnap - Determines whether spikelines are stuck to the - cursor or to the closest datapoints. - spikethickness - Sets the width (in px) of the zero line. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the tick font. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.layout. - xaxis.Tickformatstop` instances or dicts with - compatible properties - tickformatstopdefaults - When used in a template (as layout.template.lay - out.xaxis.tickformatstopdefaults), sets the - default property values to use for elements of - layout.xaxis.tickformatstops - ticklabelindex - Only for axes with `type` "date" or "linear". - Instead of drawing the major tick label, draw - the label for the minor tick that is n - positions away from the major tick. E.g. to - always draw the label for the minor tick before - each major tick, choose `ticklabelindex` -1. - This is useful for date axes with - `ticklabelmode` "period" if you want to label - the period that ends with each major tick - instead of the period that begins there. - ticklabelindexsrc - Sets the source reference on Chart Studio Cloud - for `ticklabelindex`. - ticklabelmode - Determines where tick labels are drawn with - respect to their corresponding ticks and grid - lines. Only has an effect for axes of `type` - "date" When set to "period", tick labels are - drawn in the middle of the period between - ticks. - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. Otherwise on - "category" and "multicategory" axes the default - is "allow". In other cases the default is *hide - past div*. - ticklabelposition - Determines where tick labels are drawn with - respect to the axis Please note that top or - bottom has no effect on x axes or when - `ticklabelmode` is set to "period". Similarly - left or right has no effect on y axes or when - `ticklabelmode` is set to "period". Has no - effect on "multicategory" axes or when - `tickson` is set to "boundaries". When used on - axes linked by `matches` or `scaleanchor`, no - extra padding for inside labels would be added - by autorange, so that the scales could match. - ticklabelshift - Shifts the tick labels by the specified number - of pixels in parallel to the axis. Positive - values move the labels in the positive - direction of the axis. - ticklabelstandoff - Sets the standoff distance (in px) between the - axis tick labels and their default position. A - positive `ticklabelstandoff` moves the labels - farther away from the plot area if - `ticklabelposition` is "outside", and deeper - into the plot area if `ticklabelposition` is - "inside". A negative `ticklabelstandoff` works - in the opposite direction, moving outside ticks - towards the plot area and inside ticks towards - the outside. If the negative value is large - enough, inside ticks can even end up outside - and vice versa. - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). If "sync", the number of ticks will - sync with the overlayed axis set by - `overlaying` property. - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - tickson - Determines where ticks and grid lines are drawn - with respect to their corresponding tick - labels. Only has an effect for axes of `type` - "category" or "multicategory". When set to - "boundaries", ticks and grid lines are drawn - half a category to the left/bottom of labels. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.layout.xaxis.Title - ` instance or dict with compatible properties - type - Sets the axis type. By default, plotly attempts - to determined the axis type by looking into the - data of the traces that referenced the axis in - question. - uirevision - Controls persistence of user-driven changes in - axis `range`, `autorange`, and `title` if in - `editable: true` configuration. Defaults to - `layout.uirevision`. - visible - A single toggle to hide the axis while - preserving interaction like dragging. Default - is true when a cheater plot is present on the - axis, otherwise false - zeroline - Determines whether or not a line is drawn at - along the 0 value of this axis. If True, the - zero line is drawn on top of the grid lines. - zerolinecolor - Sets the line color of the zero line. - zerolinewidth - Sets the width (in px) of the zero line. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XaxisValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='xaxis', + parent_name='layout', + **kwargs): + super(XaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'XAxis'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/_yaxis.py b/packages/python/plotly/plotly/validators/layout/_yaxis.py index 6715092795d..997125e8ae9 100644 --- a/packages/python/plotly/plotly/validators/layout/_yaxis.py +++ b/packages/python/plotly/plotly/validators/layout/_yaxis.py @@ -1,596 +1,15 @@ -import _plotly_utils.basevalidators -class YaxisValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="yaxis", parent_name="layout", **kwargs): - super(YaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "YAxis"), - data_docs=kwargs.pop( - "data_docs", - """ - anchor - If set to an opposite-letter axis id (e.g. - `x2`, `y`), this axis is bound to the - corresponding opposite-letter axis. If set to - "free", this axis' position is determined by - `position`. - automargin - Determines whether long tick labels - automatically grow the figure margins. - autorange - Determines whether or not the range of this - axis is computed in relation to the input data. - See `rangemode` for more info. If `range` is - provided and it has a value for both the lower - and upper bound, `autorange` is set to False. - Using "min" applies autorange only to set the - minimum. Using "max" applies autorange only to - set the maximum. Using *min reversed* applies - autorange only to set the minimum on a reversed - axis. Using *max reversed* applies autorange - only to set the maximum on a reversed axis. - Using "reversed" applies autorange on both ends - and reverses the axis direction. - autorangeoptions - :class:`plotly.graph_objects.layout.yaxis.Autor - angeoptions` instance or dict with compatible - properties - autoshift - Automatically reposition the axis to avoid - overlap with other axes with the same - `overlaying` value. This repositioning will - account for any `shift` amount applied to other - axes on the same side with `autoshift` is set - to true. Only has an effect if `anchor` is set - to "free". - autotickangles - When `tickangle` is set to "auto", it will be - set to the first angle in this array that is - large enough to prevent label overlap. - autotypenumbers - Using "strict" a numeric string in trace data - is not converted to a number. Using *convert - types* a numeric string in trace data may be - treated as a number during automatic axis - `type` detection. Defaults to - layout.autotypenumbers. - calendar - Sets the calendar system to use for `range` and - `tick0` if this is a date axis. This does not - set the calendar for interpreting data on this - axis, that's specified in the trace or via the - global `layout.calendar` - categoryarray - Sets the order in which categories on this axis - appear. Only has an effect if `categoryorder` - is set to "array". Used with `categoryorder`. - categoryarraysrc - Sets the source reference on Chart Studio Cloud - for `categoryarray`. - categoryorder - Specifies the ordering logic for the case of - categorical variables. By default, plotly uses - "trace", which specifies the order that is - present in the data supplied. Set - `categoryorder` to *category ascending* or - *category descending* if order should be - determined by the alphanumerical order of the - category names. Set `categoryorder` to "array" - to derive the ordering from the attribute - `categoryarray`. If a category is not found in - the `categoryarray` array, the sorting behavior - for that attribute will be identical to the - "trace" mode. The unspecified categories will - follow the categories in `categoryarray`. Set - `categoryorder` to *total ascending* or *total - descending* if order should be determined by - the numerical order of the values. Similarly, - the order can be determined by the min, max, - sum, mean, geometric mean or median of all the - values. - color - Sets default for all colors associated with - this axis all at once: line, font, tick, and - grid colors. Grid color is lightened by - blending this with the plot background - Individual pieces can override this. - constrain - If this axis needs to be compressed (either due - to its own `scaleanchor` and `scaleratio` or - those of the other axis), determines how that - happens: by increasing the "range", or by - decreasing the "domain". Default is "domain" - for axes containing image traces, "range" - otherwise. - constraintoward - If this axis needs to be compressed (either due - to its own `scaleanchor` and `scaleratio` or - those of the other axis), determines which - direction we push the originally specified plot - area. Options are "left", "center" (default), - and "right" for x axes, and "top", "middle" - (default), and "bottom" for y axes. - dividercolor - Sets the color of the dividers Only has an - effect on "multicategory" axes. - dividerwidth - Sets the width (in px) of the dividers Only has - an effect on "multicategory" axes. - domain - Sets the domain of this axis (in plot - fraction). - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - fixedrange - Determines whether or not this axis is zoom- - able. If true, then zoom is disabled. - gridcolor - Sets the color of the grid lines. - 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 width (in px) of the grid lines. - hoverformat - Sets the hover text formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - insiderange - Could be used to set the desired inside range - of this axis (excluding the labels) when - `ticklabelposition` of the anchored axis has - "inside". Not implemented for axes with `type` - "log". This would be ignored when `range` is - provided. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - layer - Sets the layer on which this axis is displayed. - If *above traces*, this axis is displayed above - all the subplot's traces If *below traces*, - this axis is displayed below all the subplot's - traces, but above the grid lines. Useful when - used together with scatter-like traces with - `cliponaxis` set to False to show markers - and/or text nodes above this axis. - linecolor - Sets the axis line color. - linewidth - Sets the width (in px) of the axis line. - matches - If set to another axis id (e.g. `x2`, `y`), the - range of this axis will match the range of the - corresponding axis in data-coordinates space. - Moreover, matching axes share auto-range - values, category lists and histogram auto-bins. - Note that setting axes simultaneously in both a - `scaleanchor` and a `matches` constraint is - currently forbidden. Moreover, note that - matching axes must have the same `type`. - maxallowed - Determines the maximum range of this axis. - minallowed - Determines the minimum range of this axis. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - minor - :class:`plotly.graph_objects.layout.yaxis.Minor - ` instance or dict with compatible properties - mirror - Determines if the axis lines or/and ticks are - mirrored to the opposite side of the plotting - area. If True, the axis lines are mirrored. If - "ticks", the axis lines and ticks are mirrored. - If False, mirroring is disable. If "all", axis - lines are mirrored on all shared-axes subplots. - If "allticks", axis lines and ticks are - mirrored on all shared-axes subplots. - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - overlaying - If set a same-letter axis id, this axis is - overlaid on top of the corresponding same- - letter axis, with traces and axes visible for - both axes. If False, this axis does not overlay - any same-letter axes. In this case, for axes - with overlapping domains only the highest- - numbered axis will be visible. - position - Sets the position of this axis in the plotting - space (in normalized coordinates). Only has an - effect if `anchor` is set to "free". - range - Sets the range of this axis. If the axis `type` - is "log", then you must take the log of your - desired range (e.g. to set the range from 1 to - 100, set the range from 0 to 2). If the axis - `type` is "date", it should be date strings, - like date data, though Date objects and unix - milliseconds will be accepted and converted to - strings. If the axis `type` is "category", it - should be numbers, using the scale where each - category is assigned a serial number from zero - in the order it appears. Leaving either or both - elements `null` impacts the default - `autorange`. - rangebreaks - A tuple of :class:`plotly.graph_objects.layout. - yaxis.Rangebreak` instances or dicts with - compatible properties - rangebreakdefaults - When used in a template (as layout.template.lay - out.yaxis.rangebreakdefaults), sets the default - property values to use for elements of - layout.yaxis.rangebreaks - rangemode - If "normal", the range is computed in relation - to the extrema of the input data. If *tozero*`, - the range extends to 0, regardless of the input - data If "nonnegative", the range is non- - negative, regardless of the input data. Applies - only to linear axes. - scaleanchor - If set to another axis id (e.g. `x2`, `y`), the - range of this axis changes together with the - range of the corresponding axis such that the - scale of pixels per unit is in a constant - ratio. Both axes are still zoomable, but when - you zoom one, the other will zoom the same - amount, keeping a fixed midpoint. `constrain` - and `constraintoward` determine how we enforce - the constraint. You can chain these, ie `yaxis: - {scaleanchor: *x*}, xaxis2: {scaleanchor: *y*}` - but you can only link axes of the same `type`. - The linked axis can have the opposite letter - (to constrain the aspect ratio) or the same - letter (to match scales across subplots). Loops - (`yaxis: {scaleanchor: *x*}, xaxis: - {scaleanchor: *y*}` or longer) are redundant - and the last constraint encountered will be - ignored to avoid possible inconsistent - constraints via `scaleratio`. Note that setting - axes simultaneously in both a `scaleanchor` and - a `matches` constraint is currently forbidden. - Setting `false` allows to remove a default - constraint (occasionally, you may need to - prevent a default `scaleanchor` constraint from - being applied, eg. when having an image trace - `yaxis: {scaleanchor: "x"}` is set - automatically in order for pixels to be - rendered as squares, setting `yaxis: - {scaleanchor: false}` allows to remove the - constraint). - scaleratio - If this axis is linked to another by - `scaleanchor`, this determines the pixel to - unit scale ratio. For example, if this value is - 10, then every unit on this axis spans 10 times - the number of pixels as a unit on the linked - axis. Use this for example to create an - elevation profile where the vertical scale is - exaggerated a fixed amount with respect to the - horizontal. - separatethousands - If "true", even 4-digit integers are separated - shift - Moves the axis a given number of pixels from - where it would have been otherwise. Accepts - both positive and negative values, which will - shift the axis either right or left, - respectively. If `autoshift` is set to true, - then this defaults to a padding of -3 if `side` - is set to "left". and defaults to +3 if `side` - is set to "right". Defaults to 0 if `autoshift` - is set to false. Only has an effect if `anchor` - is set to "free". - showdividers - Determines whether or not a dividers are drawn - between the category levels of this axis. Only - has an effect on "multicategory" axes. - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - showline - Determines whether or not a line bounding this - axis is drawn. - showspikes - Determines whether or not spikes (aka - droplines) are drawn for this axis. Note: This - only takes affect when hovermode = closest - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - side - Determines whether a x (y) axis is positioned - at the "bottom" ("left") or "top" ("right") of - the plotting area. - spikecolor - Sets the spike color. If undefined, will use - the series color - spikedash - 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"). - spikemode - Determines the drawing mode for the spike line - If "toaxis", the line is drawn from the data - point to the axis the series is plotted on. If - "across", the line is drawn across the entire - plot area, and supercedes "toaxis". If - "marker", then a marker dot is drawn on the - axis the series is plotted on - spikesnap - Determines whether spikelines are stuck to the - cursor or to the closest datapoints. - spikethickness - Sets the width (in px) of the zero line. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the tick font. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.layout. - yaxis.Tickformatstop` instances or dicts with - compatible properties - tickformatstopdefaults - When used in a template (as layout.template.lay - out.yaxis.tickformatstopdefaults), sets the - default property values to use for elements of - layout.yaxis.tickformatstops - ticklabelindex - Only for axes with `type` "date" or "linear". - Instead of drawing the major tick label, draw - the label for the minor tick that is n - positions away from the major tick. E.g. to - always draw the label for the minor tick before - each major tick, choose `ticklabelindex` -1. - This is useful for date axes with - `ticklabelmode` "period" if you want to label - the period that ends with each major tick - instead of the period that begins there. - ticklabelindexsrc - Sets the source reference on Chart Studio Cloud - for `ticklabelindex`. - ticklabelmode - Determines where tick labels are drawn with - respect to their corresponding ticks and grid - lines. Only has an effect for axes of `type` - "date" When set to "period", tick labels are - drawn in the middle of the period between - ticks. - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. Otherwise on - "category" and "multicategory" axes the default - is "allow". In other cases the default is *hide - past div*. - ticklabelposition - Determines where tick labels are drawn with - respect to the axis Please note that top or - bottom has no effect on x axes or when - `ticklabelmode` is set to "period". Similarly - left or right has no effect on y axes or when - `ticklabelmode` is set to "period". Has no - effect on "multicategory" axes or when - `tickson` is set to "boundaries". When used on - axes linked by `matches` or `scaleanchor`, no - extra padding for inside labels would be added - by autorange, so that the scales could match. - ticklabelshift - Shifts the tick labels by the specified number - of pixels in parallel to the axis. Positive - values move the labels in the positive - direction of the axis. - ticklabelstandoff - Sets the standoff distance (in px) between the - axis tick labels and their default position. A - positive `ticklabelstandoff` moves the labels - farther away from the plot area if - `ticklabelposition` is "outside", and deeper - into the plot area if `ticklabelposition` is - "inside". A negative `ticklabelstandoff` works - in the opposite direction, moving outside ticks - towards the plot area and inside ticks towards - the outside. If the negative value is large - enough, inside ticks can even end up outside - and vice versa. - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). If "sync", the number of ticks will - sync with the overlayed axis set by - `overlaying` property. - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - tickson - Determines where ticks and grid lines are drawn - with respect to their corresponding tick - labels. Only has an effect for axes of `type` - "category" or "multicategory". When set to - "boundaries", ticks and grid lines are drawn - half a category to the left/bottom of labels. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.layout.yaxis.Title - ` instance or dict with compatible properties - type - Sets the axis type. By default, plotly attempts - to determined the axis type by looking into the - data of the traces that referenced the axis in - question. - uirevision - Controls persistence of user-driven changes in - axis `range`, `autorange`, and `title` if in - `editable: true` configuration. Defaults to - `layout.uirevision`. - visible - A single toggle to hide the axis while - preserving interaction like dragging. Default - is true when a cheater plot is present on the - axis, otherwise false - zeroline - Determines whether or not a line is drawn at - along the 0 value of this axis. If True, the - zero line is drawn on top of the grid lines. - zerolinecolor - Sets the line color of the zero line. - zerolinewidth - Sets the width (in px) of the zero line. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YaxisValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='yaxis', + parent_name='layout', + **kwargs): + super(YaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'YAxis'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/activeselection/__init__.py b/packages/python/plotly/plotly/validators/layout/activeselection/__init__.py index 37b66700cd0..3c205cd7ccb 100644 --- a/packages/python/plotly/plotly/validators/layout/activeselection/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/activeselection/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._opacity import OpacityValidator from ._fillcolor import FillcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._opacity.OpacityValidator", "._fillcolor.FillcolorValidator"] + __name__, + [], + ['._opacity.OpacityValidator', '._fillcolor.FillcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/activeselection/_fillcolor.py b/packages/python/plotly/plotly/validators/layout/activeselection/_fillcolor.py index 8e67e61522c..9ba77582275 100644 --- a/packages/python/plotly/plotly/validators/layout/activeselection/_fillcolor.py +++ b/packages/python/plotly/plotly/validators/layout/activeselection/_fillcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="fillcolor", parent_name="layout.activeselection", **kwargs - ): - super(FillcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fillcolor', + parent_name='layout.activeselection', + **kwargs): + super(FillcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/activeselection/_opacity.py b/packages/python/plotly/plotly/validators/layout/activeselection/_opacity.py index 14f50b9a60e..b8724c15a60 100644 --- a/packages/python/plotly/plotly/validators/layout/activeselection/_opacity.py +++ b/packages/python/plotly/plotly/validators/layout/activeselection/_opacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="layout.activeselection", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='layout.activeselection', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/activeshape/__init__.py b/packages/python/plotly/plotly/validators/layout/activeshape/__init__.py index 37b66700cd0..3c205cd7ccb 100644 --- a/packages/python/plotly/plotly/validators/layout/activeshape/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/activeshape/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._opacity import OpacityValidator from ._fillcolor import FillcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._opacity.OpacityValidator", "._fillcolor.FillcolorValidator"] + __name__, + [], + ['._opacity.OpacityValidator', '._fillcolor.FillcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/activeshape/_fillcolor.py b/packages/python/plotly/plotly/validators/layout/activeshape/_fillcolor.py index 4f95513188b..1f2d2f34f58 100644 --- a/packages/python/plotly/plotly/validators/layout/activeshape/_fillcolor.py +++ b/packages/python/plotly/plotly/validators/layout/activeshape/_fillcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="fillcolor", parent_name="layout.activeshape", **kwargs - ): - super(FillcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fillcolor', + parent_name='layout.activeshape', + **kwargs): + super(FillcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/activeshape/_opacity.py b/packages/python/plotly/plotly/validators/layout/activeshape/_opacity.py index ad2b9f45e05..59c4b8e6db4 100644 --- a/packages/python/plotly/plotly/validators/layout/activeshape/_opacity.py +++ b/packages/python/plotly/plotly/validators/layout/activeshape/_opacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="layout.activeshape", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='layout.activeshape', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/__init__.py b/packages/python/plotly/plotly/validators/layout/annotation/__init__.py index 90ee50de9b1..1d8858602ac 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yshift import YshiftValidator from ._yref import YrefValidator @@ -47,53 +46,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yshift.YshiftValidator", - "._yref.YrefValidator", - "._yclick.YclickValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xshift.XshiftValidator", - "._xref.XrefValidator", - "._xclick.XclickValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._width.WidthValidator", - "._visible.VisibleValidator", - "._valign.ValignValidator", - "._textangle.TextangleValidator", - "._text.TextValidator", - "._templateitemname.TemplateitemnameValidator", - "._startstandoff.StartstandoffValidator", - "._startarrowsize.StartarrowsizeValidator", - "._startarrowhead.StartarrowheadValidator", - "._standoff.StandoffValidator", - "._showarrow.ShowarrowValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._hovertext.HovertextValidator", - "._hoverlabel.HoverlabelValidator", - "._height.HeightValidator", - "._font.FontValidator", - "._clicktoshow.ClicktoshowValidator", - "._captureevents.CaptureeventsValidator", - "._borderwidth.BorderwidthValidator", - "._borderpad.BorderpadValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - "._ayref.AyrefValidator", - "._ay.AyValidator", - "._axref.AxrefValidator", - "._ax.AxValidator", - "._arrowwidth.ArrowwidthValidator", - "._arrowsize.ArrowsizeValidator", - "._arrowside.ArrowsideValidator", - "._arrowhead.ArrowheadValidator", - "._arrowcolor.ArrowcolorValidator", - "._align.AlignValidator", - ], + ['._yshift.YshiftValidator', '._yref.YrefValidator', '._yclick.YclickValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xshift.XshiftValidator', '._xref.XrefValidator', '._xclick.XclickValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._width.WidthValidator', '._visible.VisibleValidator', '._valign.ValignValidator', '._textangle.TextangleValidator', '._text.TextValidator', '._templateitemname.TemplateitemnameValidator', '._startstandoff.StartstandoffValidator', '._startarrowsize.StartarrowsizeValidator', '._startarrowhead.StartarrowheadValidator', '._standoff.StandoffValidator', '._showarrow.ShowarrowValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._hovertext.HovertextValidator', '._hoverlabel.HoverlabelValidator', '._height.HeightValidator', '._font.FontValidator', '._clicktoshow.ClicktoshowValidator', '._captureevents.CaptureeventsValidator', '._borderwidth.BorderwidthValidator', '._borderpad.BorderpadValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator', '._ayref.AyrefValidator', '._ay.AyValidator', '._axref.AxrefValidator', '._ax.AxValidator', '._arrowwidth.ArrowwidthValidator', '._arrowsize.ArrowsizeValidator', '._arrowside.ArrowsideValidator', '._arrowhead.ArrowheadValidator', '._arrowcolor.ArrowcolorValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_align.py b/packages/python/plotly/plotly/validators/layout/annotation/_align.py index bf4ea98e0f5..52ccdd253ad 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_align.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_align.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="align", parent_name="layout.annotation", **kwargs): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='layout.annotation', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_arrowcolor.py b/packages/python/plotly/plotly/validators/layout/annotation/_arrowcolor.py index 0b487baa3f8..995b7216072 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_arrowcolor.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_arrowcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ArrowcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="arrowcolor", parent_name="layout.annotation", **kwargs - ): - super(ArrowcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrowcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='arrowcolor', + parent_name='layout.annotation', + **kwargs): + super(ArrowcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_arrowhead.py b/packages/python/plotly/plotly/validators/layout/annotation/_arrowhead.py index 188277f5938..6190ea95e9e 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_arrowhead.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_arrowhead.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ArrowheadValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="arrowhead", parent_name="layout.annotation", **kwargs - ): - super(ArrowheadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - max=kwargs.pop("max", 8), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrowheadValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='arrowhead', + parent_name='layout.annotation', + **kwargs): + super(ArrowheadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + max=kwargs.pop('max', 8), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_arrowside.py b/packages/python/plotly/plotly/validators/layout/annotation/_arrowside.py index 7c7e70accea..9dbb0e954fa 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_arrowside.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_arrowside.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ArrowsideValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="arrowside", parent_name="layout.annotation", **kwargs - ): - super(ArrowsideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["end", "start"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrowsideValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='arrowside', + parent_name='layout.annotation', + **kwargs): + super(ArrowsideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['end', 'start']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_arrowsize.py b/packages/python/plotly/plotly/validators/layout/annotation/_arrowsize.py index ebcc95dd497..02a9f5e94dd 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_arrowsize.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_arrowsize.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ArrowsizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="arrowsize", parent_name="layout.annotation", **kwargs - ): - super(ArrowsizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - min=kwargs.pop("min", 0.3), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrowsizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='arrowsize', + parent_name='layout.annotation', + **kwargs): + super(ArrowsizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + min=kwargs.pop('min', 0.3), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_arrowwidth.py b/packages/python/plotly/plotly/validators/layout/annotation/_arrowwidth.py index 729910c2ec3..16c2b68fe3a 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_arrowwidth.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_arrowwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ArrowwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="arrowwidth", parent_name="layout.annotation", **kwargs - ): - super(ArrowwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - min=kwargs.pop("min", 0.1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrowwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='arrowwidth', + parent_name='layout.annotation', + **kwargs): + super(ArrowwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + min=kwargs.pop('min', 0.1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_ax.py b/packages/python/plotly/plotly/validators/layout/annotation/_ax.py index 7497764224a..cee22b1a3c6 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_ax.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_ax.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AxValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="ax", parent_name="layout.annotation", **kwargs): - super(AxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AxValidator(_bv.AnyValidator): + def __init__(self, plotly_name='ax', + parent_name='layout.annotation', + **kwargs): + super(AxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_axref.py b/packages/python/plotly/plotly/validators/layout/annotation/_axref.py index de39b7d7d87..54444297e3d 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_axref.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_axref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AxrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="axref", parent_name="layout.annotation", **kwargs): - super(AxrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", ["pixel", "/^x([2-9]|[1-9][0-9]+)?( domain)?$/"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AxrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='axref', + parent_name='layout.annotation', + **kwargs): + super(AxrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['pixel', '/^x([2-9]|[1-9][0-9]+)?( domain)?$/']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_ay.py b/packages/python/plotly/plotly/validators/layout/annotation/_ay.py index 02c00c73a3f..722a7e7fafa 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_ay.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_ay.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AyValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="ay", parent_name="layout.annotation", **kwargs): - super(AyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AyValidator(_bv.AnyValidator): + def __init__(self, plotly_name='ay', + parent_name='layout.annotation', + **kwargs): + super(AyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_ayref.py b/packages/python/plotly/plotly/validators/layout/annotation/_ayref.py index d4c33be4776..1471dd70f9a 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_ayref.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_ayref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AyrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="ayref", parent_name="layout.annotation", **kwargs): - super(AyrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", ["pixel", "/^y([2-9]|[1-9][0-9]+)?( domain)?$/"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AyrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ayref', + parent_name='layout.annotation', + **kwargs): + super(AyrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['pixel', '/^y([2-9]|[1-9][0-9]+)?( domain)?$/']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_bgcolor.py b/packages/python/plotly/plotly/validators/layout/annotation/_bgcolor.py index 8c6be8b00dc..5b2b874ada9 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="layout.annotation", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='layout.annotation', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_bordercolor.py b/packages/python/plotly/plotly/validators/layout/annotation/_bordercolor.py index 2ac75856c24..1cc7097ea43 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="layout.annotation", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='layout.annotation', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_borderpad.py b/packages/python/plotly/plotly/validators/layout/annotation/_borderpad.py index 1e184071145..7104be3ea7d 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_borderpad.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_borderpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderpad", parent_name="layout.annotation", **kwargs - ): - super(BorderpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderpad', + parent_name='layout.annotation', + **kwargs): + super(BorderpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_borderwidth.py b/packages/python/plotly/plotly/validators/layout/annotation/_borderwidth.py index 0773f095a4a..51dd2dd4a1a 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_borderwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderwidth", parent_name="layout.annotation", **kwargs - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='layout.annotation', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_captureevents.py b/packages/python/plotly/plotly/validators/layout/annotation/_captureevents.py index aa77f28a6ba..4ce32646b9c 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_captureevents.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_captureevents.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CaptureeventsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="captureevents", parent_name="layout.annotation", **kwargs - ): - super(CaptureeventsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CaptureeventsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='captureevents', + parent_name='layout.annotation', + **kwargs): + super(CaptureeventsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_clicktoshow.py b/packages/python/plotly/plotly/validators/layout/annotation/_clicktoshow.py index 37af8128446..f45356b955f 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_clicktoshow.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_clicktoshow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ClicktoshowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="clicktoshow", parent_name="layout.annotation", **kwargs - ): - super(ClicktoshowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop("values", [False, "onoff", "onout"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ClicktoshowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='clicktoshow', + parent_name='layout.annotation', + **kwargs): + super(ClicktoshowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', [False, 'onoff', 'onout']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_font.py b/packages/python/plotly/plotly/validators/layout/annotation/_font.py index f06709a007c..1266e0a3e8d 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_font.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_font.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="layout.annotation", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='layout.annotation', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_height.py b/packages/python/plotly/plotly/validators/layout/annotation/_height.py index 1d7a1112660..da711c3107e 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_height.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_height.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HeightValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="height", parent_name="layout.annotation", **kwargs): - super(HeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HeightValidator(_bv.NumberValidator): + def __init__(self, plotly_name='height', + parent_name='layout.annotation', + **kwargs): + super(HeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_hoverlabel.py b/packages/python/plotly/plotly/validators/layout/annotation/_hoverlabel.py index 16b3a6f03a4..efdf7c7f16b 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_hoverlabel.py @@ -1,30 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="hoverlabel", parent_name="layout.annotation", **kwargs - ): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the background color of the hover label. - By default uses the annotation's `bgcolor` made - opaque, or white if it was transparent. - bordercolor - Sets the border color of the hover label. By - default uses either dark grey or white, for - maximum contrast with `hoverlabel.bgcolor`. - font - Sets the hover label text font. By default uses - the global hover font and size, with color from - `hoverlabel.bordercolor`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='layout.annotation', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_hovertext.py b/packages/python/plotly/plotly/validators/layout/annotation/_hovertext.py index 8c6fe8f11d9..b97a44adf33 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_hovertext.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_hovertext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="hovertext", parent_name="layout.annotation", **kwargs - ): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='layout.annotation', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_name.py b/packages/python/plotly/plotly/validators/layout/annotation/_name.py index ccb18eb54a8..8578e7590a4 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_name.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="layout.annotation", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='layout.annotation', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_opacity.py b/packages/python/plotly/plotly/validators/layout/annotation/_opacity.py index dc9ef44fada..21342529990 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_opacity.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_opacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="layout.annotation", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='layout.annotation', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_showarrow.py b/packages/python/plotly/plotly/validators/layout/annotation/_showarrow.py index fa99cd1d51e..485f8096be2 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_showarrow.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_showarrow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowarrowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showarrow", parent_name="layout.annotation", **kwargs - ): - super(ShowarrowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowarrowValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showarrow', + parent_name='layout.annotation', + **kwargs): + super(ShowarrowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_standoff.py b/packages/python/plotly/plotly/validators/layout/annotation/_standoff.py index 13a8cbafe29..6c0e3de5dc9 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_standoff.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_standoff.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StandoffValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="standoff", parent_name="layout.annotation", **kwargs - ): - super(StandoffValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StandoffValidator(_bv.NumberValidator): + def __init__(self, plotly_name='standoff', + parent_name='layout.annotation', + **kwargs): + super(StandoffValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_startarrowhead.py b/packages/python/plotly/plotly/validators/layout/annotation/_startarrowhead.py index b9502005ee5..254d3f17f74 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_startarrowhead.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_startarrowhead.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StartarrowheadValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="startarrowhead", parent_name="layout.annotation", **kwargs - ): - super(StartarrowheadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - max=kwargs.pop("max", 8), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StartarrowheadValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='startarrowhead', + parent_name='layout.annotation', + **kwargs): + super(StartarrowheadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + max=kwargs.pop('max', 8), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_startarrowsize.py b/packages/python/plotly/plotly/validators/layout/annotation/_startarrowsize.py index f8b88b2a156..2ae1e880a57 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_startarrowsize.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_startarrowsize.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StartarrowsizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="startarrowsize", parent_name="layout.annotation", **kwargs - ): - super(StartarrowsizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - min=kwargs.pop("min", 0.3), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StartarrowsizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='startarrowsize', + parent_name='layout.annotation', + **kwargs): + super(StartarrowsizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + min=kwargs.pop('min', 0.3), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_startstandoff.py b/packages/python/plotly/plotly/validators/layout/annotation/_startstandoff.py index 3e894bdd6ac..8ecb456f924 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_startstandoff.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_startstandoff.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StartstandoffValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="startstandoff", parent_name="layout.annotation", **kwargs - ): - super(StartstandoffValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StartstandoffValidator(_bv.NumberValidator): + def __init__(self, plotly_name='startstandoff', + parent_name='layout.annotation', + **kwargs): + super(StartstandoffValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_templateitemname.py b/packages/python/plotly/plotly/validators/layout/annotation/_templateitemname.py index 83557b1f3eb..75c9d460493 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_templateitemname.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="templateitemname", parent_name="layout.annotation", **kwargs - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='layout.annotation', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_text.py b/packages/python/plotly/plotly/validators/layout/annotation/_text.py index aaedee4c4d1..558226f9263 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_text.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_text.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="layout.annotation", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='layout.annotation', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_textangle.py b/packages/python/plotly/plotly/validators/layout/annotation/_textangle.py index 3a35577dbfb..7ce58566e4c 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_textangle.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_textangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="textangle", parent_name="layout.annotation", **kwargs - ): - super(TextangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='textangle', + parent_name='layout.annotation', + **kwargs): + super(TextangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_valign.py b/packages/python/plotly/plotly/validators/layout/annotation/_valign.py index 5514eac3951..4b22e00613c 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_valign.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_valign.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ValignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="valign", parent_name="layout.annotation", **kwargs): - super(ValignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='valign', + parent_name='layout.annotation', + **kwargs): + super(ValignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_visible.py b/packages/python/plotly/plotly/validators/layout/annotation/_visible.py index f83bc5e5326..2510bb51d3a 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_visible.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_visible.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="visible", parent_name="layout.annotation", **kwargs - ): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='layout.annotation', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_width.py b/packages/python/plotly/plotly/validators/layout/annotation/_width.py index 358bf63318d..61d226b85ea 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_width.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="layout.annotation", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='layout.annotation', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_x.py b/packages/python/plotly/plotly/validators/layout/annotation/_x.py index 1d82b6c8d27..31c30ee582b 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_x.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="x", parent_name="layout.annotation", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.AnyValidator): + def __init__(self, plotly_name='x', + parent_name='layout.annotation', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_xanchor.py b/packages/python/plotly/plotly/validators/layout/annotation/_xanchor.py index bb70ca0dca8..4694068fa49 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_xanchor.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="layout.annotation", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - values=kwargs.pop("values", ["auto", "left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='layout.annotation', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + values=kwargs.pop('values', ['auto', 'left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_xclick.py b/packages/python/plotly/plotly/validators/layout/annotation/_xclick.py index 826617e60ac..0d648c35d8c 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_xclick.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_xclick.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XclickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="xclick", parent_name="layout.annotation", **kwargs): - super(XclickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XclickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='xclick', + parent_name='layout.annotation', + **kwargs): + super(XclickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_xref.py b/packages/python/plotly/plotly/validators/layout/annotation/_xref.py index 896c495c544..87c9d3e2047 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_xref.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xref", parent_name="layout.annotation", **kwargs): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", ["paper", "/^x([2-9]|[1-9][0-9]+)?( domain)?$/"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='layout.annotation', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['paper', '/^x([2-9]|[1-9][0-9]+)?( domain)?$/']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_xshift.py b/packages/python/plotly/plotly/validators/layout/annotation/_xshift.py index 6f85b00d515..5c036c3d3aa 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_xshift.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_xshift.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XshiftValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="xshift", parent_name="layout.annotation", **kwargs): - super(XshiftValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XshiftValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xshift', + parent_name='layout.annotation', + **kwargs): + super(XshiftValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_y.py b/packages/python/plotly/plotly/validators/layout/annotation/_y.py index 3071eecb099..64673d08a27 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_y.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="y", parent_name="layout.annotation", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.AnyValidator): + def __init__(self, plotly_name='y', + parent_name='layout.annotation', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_yanchor.py b/packages/python/plotly/plotly/validators/layout/annotation/_yanchor.py index 6946236c6d5..39db6335538 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_yanchor.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="layout.annotation", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - values=kwargs.pop("values", ["auto", "top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='layout.annotation', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + values=kwargs.pop('values', ['auto', 'top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_yclick.py b/packages/python/plotly/plotly/validators/layout/annotation/_yclick.py index 5847be553b7..6b66b77e0a4 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_yclick.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_yclick.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YclickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="yclick", parent_name="layout.annotation", **kwargs): - super(YclickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YclickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='yclick', + parent_name='layout.annotation', + **kwargs): + super(YclickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_yref.py b/packages/python/plotly/plotly/validators/layout/annotation/_yref.py index c3bc11f50cd..fc597ac300a 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_yref.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yref", parent_name="layout.annotation", **kwargs): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", ["paper", "/^y([2-9]|[1-9][0-9]+)?( domain)?$/"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='layout.annotation', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['paper', '/^y([2-9]|[1-9][0-9]+)?( domain)?$/']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/_yshift.py b/packages/python/plotly/plotly/validators/layout/annotation/_yshift.py index 5633cad7599..c944124dc9e 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/_yshift.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/_yshift.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YshiftValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="yshift", parent_name="layout.annotation", **kwargs): - super(YshiftValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YshiftValidator(_bv.NumberValidator): + def __init__(self, plotly_name='yshift', + parent_name='layout.annotation', + **kwargs): + super(YshiftValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/font/__init__.py b/packages/python/plotly/plotly/validators/layout/annotation/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/annotation/font/_color.py b/packages/python/plotly/plotly/validators/layout/annotation/font/_color.py index 409571e1295..997f12a0ed3 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/font/_color.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.annotation.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.annotation.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/font/_family.py b/packages/python/plotly/plotly/validators/layout/annotation/font/_family.py index 6001c7bd832..cf98870af8e 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/font/_family.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="layout.annotation.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.annotation.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/font/_lineposition.py b/packages/python/plotly/plotly/validators/layout/annotation/font/_lineposition.py index 656c5c46ffe..d78d15b033d 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/font/_lineposition.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="layout.annotation.font", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.annotation.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/font/_shadow.py b/packages/python/plotly/plotly/validators/layout/annotation/font/_shadow.py index 783969d9140..e86f76cb554 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="layout.annotation.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.annotation.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/font/_size.py b/packages/python/plotly/plotly/validators/layout/annotation/font/_size.py index 6e94ac765b6..b3439f78514 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/font/_size.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="layout.annotation.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.annotation.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/font/_style.py b/packages/python/plotly/plotly/validators/layout/annotation/font/_style.py index abfca46caed..9e7d2c9f233 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/font/_style.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="layout.annotation.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.annotation.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/font/_textcase.py b/packages/python/plotly/plotly/validators/layout/annotation/font/_textcase.py index 934898ae293..1f0a6199fb2 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/font/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="layout.annotation.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.annotation.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/font/_variant.py b/packages/python/plotly/plotly/validators/layout/annotation/font/_variant.py index 3c517a27024..3aa22f2664e 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/font/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="layout.annotation.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.annotation.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/font/_weight.py b/packages/python/plotly/plotly/validators/layout/annotation/font/_weight.py index 151d4bedf0b..df842ce23f8 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/font/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="layout.annotation.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.annotation.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/__init__.py index 6cd9f4b93cd..a6c44864195 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import FontValidator from ._bordercolor import BordercolorValidator from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._font.FontValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._font.FontValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/_bgcolor.py index 373a8102515..5aebecd618e 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/_bgcolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bgcolor", - parent_name="layout.annotation.hoverlabel", - **kwargs, - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='layout.annotation.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/_bordercolor.py index da22b67cfdd..f10db59ce87 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/_bordercolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bordercolor", - parent_name="layout.annotation.hoverlabel", - **kwargs, - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='layout.annotation.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/_font.py index 0b5a79b2696..1ab5055ec34 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="layout.annotation.hoverlabel", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='layout.annotation.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_color.py index 92982d1fdd7..a7d11c85db9 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="layout.annotation.hoverlabel.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.annotation.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_family.py index fbdb47316fb..644d104e2a6 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="layout.annotation.hoverlabel.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.annotation.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_lineposition.py index e7bc5d6e8cb..e8da652b855 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.annotation.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.annotation.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_shadow.py index 8b64dbce11e..4c89819be3f 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="layout.annotation.hoverlabel.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.annotation.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_size.py index 0cc11a116bb..2126865faa3 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="layout.annotation.hoverlabel.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.annotation.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_style.py index 461e09731d8..145d83729cd 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="layout.annotation.hoverlabel.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.annotation.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_textcase.py index 15539adb970..817147d2b2b 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="layout.annotation.hoverlabel.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.annotation.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_variant.py index 518a3d7c82f..117cf0ed270 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="layout.annotation.hoverlabel.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.annotation.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_weight.py index 5756b4ebf71..501e4473f19 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="layout.annotation.hoverlabel.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.annotation.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/__init__.py b/packages/python/plotly/plotly/validators/layout/coloraxis/__init__.py index e57f36a2392..f7bfab727db 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._showscale import ShowscaleValidator from ._reversescale import ReversescaleValidator @@ -13,19 +12,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._showscale.ShowscaleValidator", - "._reversescale.ReversescaleValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._showscale.ShowscaleValidator', '._reversescale.ReversescaleValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/_autocolorscale.py b/packages/python/plotly/plotly/validators/layout/coloraxis/_autocolorscale.py index bcf71ba8d54..4c4e4fc88e2 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="layout.coloraxis", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='layout.coloraxis', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/_cauto.py b/packages/python/plotly/plotly/validators/layout/coloraxis/_cauto.py index 23b9c287e77..aeeaf57dbcc 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/_cauto.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/_cauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cauto", parent_name="layout.coloraxis", **kwargs): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='layout.coloraxis', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/_cmax.py b/packages/python/plotly/plotly/validators/layout/coloraxis/_cmax.py index c2bcb20ab9f..70af834bda8 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/_cmax.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/_cmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmax", parent_name="layout.coloraxis", **kwargs): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='layout.coloraxis', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/_cmid.py b/packages/python/plotly/plotly/validators/layout/coloraxis/_cmid.py index f5781ececfa..280820015a6 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/_cmid.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/_cmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmid", parent_name="layout.coloraxis", **kwargs): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='layout.coloraxis', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/_cmin.py b/packages/python/plotly/plotly/validators/layout/coloraxis/_cmin.py index b6eafec3cd1..5cbb5ba24f8 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/_cmin.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/_cmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmin", parent_name="layout.coloraxis", **kwargs): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='layout.coloraxis', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/_colorbar.py b/packages/python/plotly/plotly/validators/layout/coloraxis/_colorbar.py index c28a1b46e5c..ce8ef6d3322 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/_colorbar.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/_colorbar.py @@ -1,282 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="colorbar", parent_name="layout.coloraxis", **kwargs - ): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.layout. - coloraxis.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.lay - out.coloraxis.colorbar.tickformatstopdefaults), - sets the default property values to use for - elements of - layout.coloraxis.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.layout.coloraxis.c - olorbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='layout.coloraxis', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/_colorscale.py b/packages/python/plotly/plotly/validators/layout/coloraxis/_colorscale.py index 2b63ea2745b..1719d68b1df 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/_colorscale.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="layout.coloraxis", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='layout.coloraxis', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/_reversescale.py b/packages/python/plotly/plotly/validators/layout/coloraxis/_reversescale.py index 96df8c8a4af..c3b3aa08348 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/_reversescale.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="layout.coloraxis", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='layout.coloraxis', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/_showscale.py b/packages/python/plotly/plotly/validators/layout/coloraxis/_showscale.py index a9f6d614848..3a5069fcee8 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/_showscale.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/_showscale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showscale", parent_name="layout.coloraxis", **kwargs - ): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='layout.coloraxis', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/__init__.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_bgcolor.py index 188c3d3de02..c94428294aa 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="layout.coloraxis.colorbar", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_bordercolor.py index ebe09f30c99..8896d0f0605 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_bordercolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bordercolor", - parent_name="layout.coloraxis.colorbar", - **kwargs, - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_borderwidth.py index ab646d5a7d1..62e3200f775 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_borderwidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="borderwidth", - parent_name="layout.coloraxis.colorbar", - **kwargs, - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_dtick.py index 2d3eed267fa..b72ae699559 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="layout.coloraxis.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_exponentformat.py index 7c3014c3a24..dd0dfaf30cc 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_exponentformat.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="exponentformat", - parent_name="layout.coloraxis.colorbar", - **kwargs, - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_labelalias.py index 0250c30ead3..120c680c407 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_labelalias.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="labelalias", - parent_name="layout.coloraxis.colorbar", - **kwargs, - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_len.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_len.py index 47d33e019e7..32805548921 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_len.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="len", parent_name="layout.coloraxis.colorbar", **kwargs - ): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_lenmode.py index b3dcc3d8db9..1204b00fae5 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_lenmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="lenmode", parent_name="layout.coloraxis.colorbar", **kwargs - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_minexponent.py index 156d547ed2d..efa8f503896 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_minexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="minexponent", - parent_name="layout.coloraxis.colorbar", - **kwargs, - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_nticks.py index e8744d0b06d..60d0bcddb24 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="layout.coloraxis.colorbar", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_orientation.py index ce6cb0b2759..04fe3a8430b 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_orientation.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="orientation", - parent_name="layout.coloraxis.colorbar", - **kwargs, - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_outlinecolor.py index c60f84bac34..4c7ad355325 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_outlinecolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="outlinecolor", - parent_name="layout.coloraxis.colorbar", - **kwargs, - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_outlinewidth.py index 2cbe62b9ed1..151bff0e2a4 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_outlinewidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="outlinewidth", - parent_name="layout.coloraxis.colorbar", - **kwargs, - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_separatethousands.py index ff136db6fa8..59fed27f48e 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="layout.coloraxis.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_showexponent.py index 9f5ff8f5312..d9192203ce1 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_showexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showexponent", - parent_name="layout.coloraxis.colorbar", - **kwargs, - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_showticklabels.py index 29f9fef5f00..f2b5f8c7846 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="layout.coloraxis.colorbar", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_showtickprefix.py index be9f6d1c940..defd431de8e 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="layout.coloraxis.colorbar", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_showticksuffix.py index 59b1fd23093..287c1cd7fe6 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="layout.coloraxis.colorbar", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_thickness.py index f48cb2da55f..089c2b90212 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="layout.coloraxis.colorbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_thicknessmode.py index c6a034cee8a..55dee55ae55 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_thicknessmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="thicknessmode", - parent_name="layout.coloraxis.colorbar", - **kwargs, - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tick0.py index f00c88e0711..fc0be6c5420 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="layout.coloraxis.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickangle.py index 740fd8519a4..1988ceb41e2 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="layout.coloraxis.colorbar", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickcolor.py index a579d1a06d3..dcde9c88a52 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="layout.coloraxis.colorbar", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickfont.py index a4fac6d1696..c5892487856 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="layout.coloraxis.colorbar", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickformat.py index 057ae7d58b0..23d769aed92 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickformat.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickformat", - parent_name="layout.coloraxis.colorbar", - **kwargs, - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickformatstopdefaults.py index 3fb52d55bb1..acd126b72ea 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="layout.coloraxis.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickformatstops.py index 69d05ce8d20..31dc0116590 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="layout.coloraxis.colorbar", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticklabeloverflow.py index 5c053cca06d..b4509214d82 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="layout.coloraxis.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticklabelposition.py index 7535e3c5697..fa423f0a2af 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="layout.coloraxis.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticklabelstep.py index 85793a7c257..91b3ba35383 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticklabelstep.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="ticklabelstep", - parent_name="layout.coloraxis.colorbar", - **kwargs, - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticklen.py index 9c24fe27a3c..840743385a3 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="layout.coloraxis.colorbar", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickmode.py index 627b524fac4..9353d71ecf9 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="layout.coloraxis.colorbar", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickprefix.py index 3edd785f387..90e439af48e 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickprefix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickprefix", - parent_name="layout.coloraxis.colorbar", - **kwargs, - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticks.py index ea778433c90..68076218a04 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="layout.coloraxis.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticksuffix.py index 33c59f33594..bad97d8668f 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticksuffix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="ticksuffix", - parent_name="layout.coloraxis.colorbar", - **kwargs, - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticktext.py index 39fee4e683f..05e57ca4335 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="layout.coloraxis.colorbar", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticktextsrc.py index 12f014e7c30..e9b552c29c8 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ticktextsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="ticktextsrc", - parent_name="layout.coloraxis.colorbar", - **kwargs, - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickvals.py index a500ceaf5d7..7c37df81d20 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="layout.coloraxis.colorbar", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickvalssrc.py index a9fdc51ba90..6346d746c35 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickvalssrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="tickvalssrc", - parent_name="layout.coloraxis.colorbar", - **kwargs, - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickwidth.py index c6c3ded55d7..ceccdd5f40b 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="layout.coloraxis.colorbar", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_title.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_title.py index 3ca73b4fda3..400aa77e6c0 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="layout.coloraxis.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_x.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_x.py index 01a5e482e3d..d62510e2b02 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_x.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="x", parent_name="layout.coloraxis.colorbar", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_xanchor.py index e30cc1360bc..6ca04ef9f2c 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="layout.coloraxis.colorbar", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_xpad.py index 40cc17aa6c0..ce69308426b 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_xpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="xpad", parent_name="layout.coloraxis.colorbar", **kwargs - ): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_xref.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_xref.py index 20a974d4045..8a9c935e759 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xref", parent_name="layout.coloraxis.colorbar", **kwargs - ): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_y.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_y.py index dac427570ea..68d245d6ee4 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_y.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="y", parent_name="layout.coloraxis.colorbar", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_yanchor.py index ed62f5b79ec..044c2dd39bd 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="layout.coloraxis.colorbar", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ypad.py index 91503b65a95..bc1ff1e908f 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_ypad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ypad", parent_name="layout.coloraxis.colorbar", **kwargs - ): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_yref.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_yref.py index 4658e3192a8..22eed27e91b 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yref", parent_name="layout.coloraxis.colorbar", **kwargs - ): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='layout.coloraxis.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_color.py index a64965b5d1e..b65b1023257 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="layout.coloraxis.colorbar.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.coloraxis.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_family.py index 1bae4b07e60..f6164ab01f2 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="layout.coloraxis.colorbar.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.coloraxis.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_lineposition.py index 0bc2c9d5ec5..dfdc22db558 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.coloraxis.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.coloraxis.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_shadow.py index 9e906784109..e309adcb064 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="layout.coloraxis.colorbar.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.coloraxis.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_size.py index ec171d779e6..82bb747b7be 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="layout.coloraxis.colorbar.tickfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.coloraxis.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_style.py index dcdc693b6b0..729c8f45b91 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="layout.coloraxis.colorbar.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.coloraxis.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_textcase.py index a840820b25f..828ec5547f3 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="layout.coloraxis.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.coloraxis.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_variant.py index 4fd7f272ffd..2bd1a4e4108 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="layout.coloraxis.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.coloraxis.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_weight.py index 6ae7d06a8a3..b2b588a3fae 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="layout.coloraxis.colorbar.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.coloraxis.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_dtickrange.py index 2cf86f2d1a7..6c02d7ff599 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="layout.coloraxis.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - items=kwargs.pop( - "items", - [ - {"editType": "colorbars", "valType": "any"}, - {"editType": "colorbars", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='layout.coloraxis.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + items=kwargs.pop('items', [{'editType': 'colorbars', 'valType': 'any'}, {'editType': 'colorbars', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_enabled.py index 6365599c923..23500dc7d1f 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="layout.coloraxis.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='layout.coloraxis.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_name.py index 162d2b737e8..65ce4e54d91 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="layout.coloraxis.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='layout.coloraxis.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_templateitemname.py index c8dce4f2904..ad2a8a08644 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="layout.coloraxis.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='layout.coloraxis.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_value.py index 7f0823c50a6..22d5d4c217d 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="layout.coloraxis.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='layout.coloraxis.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/_font.py index 79acbc62bf4..963468c7545 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/_font.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="font", - parent_name="layout.coloraxis.colorbar.title", - **kwargs, - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='layout.coloraxis.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/_side.py index 699631ad2aa..3424f84732c 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/_side.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="side", - parent_name="layout.coloraxis.colorbar.title", - **kwargs, - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='layout.coloraxis.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/_text.py index 3b8b567de46..cb89ab795a4 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/_text.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="text", - parent_name="layout.coloraxis.colorbar.title", - **kwargs, - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='layout.coloraxis.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_color.py index 93ecf4aa6f3..f2ccd4f6e96 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="layout.coloraxis.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.coloraxis.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_family.py index fd6e197c8cb..cf64b66077c 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="layout.coloraxis.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.coloraxis.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_lineposition.py index 051e2948615..39d64c0d578 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.coloraxis.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.coloraxis.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_shadow.py index 973908cb77c..fed49910b1b 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="layout.coloraxis.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.coloraxis.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_size.py index af2e516d1cb..d1590bbc2a4 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="layout.coloraxis.colorbar.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.coloraxis.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_style.py index ef325872cf3..9b3267a874e 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="layout.coloraxis.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.coloraxis.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_textcase.py index 2eb7dcdc5b8..d8d1c6ececd 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="layout.coloraxis.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.coloraxis.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_variant.py index 0e5eda9436f..2d6e0d11b78 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="layout.coloraxis.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.coloraxis.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_weight.py index 8479b72b150..806922c59e3 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="layout.coloraxis.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.coloraxis.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/colorscale/__init__.py b/packages/python/plotly/plotly/validators/layout/colorscale/__init__.py index 0dc4e7ac68d..8b55b769a09 100644 --- a/packages/python/plotly/plotly/validators/layout/colorscale/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/colorscale/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._sequentialminus import SequentialminusValidator from ._sequential import SequentialValidator from ._diverging import DivergingValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._sequentialminus.SequentialminusValidator", - "._sequential.SequentialValidator", - "._diverging.DivergingValidator", - ], + ['._sequentialminus.SequentialminusValidator', '._sequential.SequentialValidator', '._diverging.DivergingValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/colorscale/_diverging.py b/packages/python/plotly/plotly/validators/layout/colorscale/_diverging.py index 8a9805d9c5f..7db668b157d 100644 --- a/packages/python/plotly/plotly/validators/layout/colorscale/_diverging.py +++ b/packages/python/plotly/plotly/validators/layout/colorscale/_diverging.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class DivergingValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="diverging", parent_name="layout.colorscale", **kwargs - ): - super(DivergingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DivergingValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='diverging', + parent_name='layout.colorscale', + **kwargs): + super(DivergingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/colorscale/_sequential.py b/packages/python/plotly/plotly/validators/layout/colorscale/_sequential.py index ba8d9270e42..ea21b958512 100644 --- a/packages/python/plotly/plotly/validators/layout/colorscale/_sequential.py +++ b/packages/python/plotly/plotly/validators/layout/colorscale/_sequential.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SequentialValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="sequential", parent_name="layout.colorscale", **kwargs - ): - super(SequentialValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SequentialValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='sequential', + parent_name='layout.colorscale', + **kwargs): + super(SequentialValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/colorscale/_sequentialminus.py b/packages/python/plotly/plotly/validators/layout/colorscale/_sequentialminus.py index 4073f1f2430..47b7bf3e463 100644 --- a/packages/python/plotly/plotly/validators/layout/colorscale/_sequentialminus.py +++ b/packages/python/plotly/plotly/validators/layout/colorscale/_sequentialminus.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SequentialminusValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="sequentialminus", parent_name="layout.colorscale", **kwargs - ): - super(SequentialminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SequentialminusValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='sequentialminus', + parent_name='layout.colorscale', + **kwargs): + super(SequentialminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/font/__init__.py b/packages/python/plotly/plotly/validators/layout/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/font/_color.py b/packages/python/plotly/plotly/validators/layout/font/_color.py index f87c0076db8..d25c0f4bfe0 100644 --- a/packages/python/plotly/plotly/validators/layout/font/_color.py +++ b/packages/python/plotly/plotly/validators/layout/font/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="layout.font", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/font/_family.py b/packages/python/plotly/plotly/validators/layout/font/_family.py index 970915a20d8..73a32855bd6 100644 --- a/packages/python/plotly/plotly/validators/layout/font/_family.py +++ b/packages/python/plotly/plotly/validators/layout/font/_family.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="family", parent_name="layout.font", **kwargs): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/font/_lineposition.py b/packages/python/plotly/plotly/validators/layout/font/_lineposition.py index 66b4ef6a22a..7429577ca17 100644 --- a/packages/python/plotly/plotly/validators/layout/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/font/_lineposition.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="lineposition", parent_name="layout.font", **kwargs): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/font/_shadow.py b/packages/python/plotly/plotly/validators/layout/font/_shadow.py index 071b7d6cb1d..96390fd9cf3 100644 --- a/packages/python/plotly/plotly/validators/layout/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/font/_shadow.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="shadow", parent_name="layout.font", **kwargs): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/font/_size.py b/packages/python/plotly/plotly/validators/layout/font/_size.py index 95aef675966..84c05458417 100644 --- a/packages/python/plotly/plotly/validators/layout/font/_size.py +++ b/packages/python/plotly/plotly/validators/layout/font/_size.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="layout.font", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/font/_style.py b/packages/python/plotly/plotly/validators/layout/font/_style.py index 31bf495a6a0..8794917a07e 100644 --- a/packages/python/plotly/plotly/validators/layout/font/_style.py +++ b/packages/python/plotly/plotly/validators/layout/font/_style.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="style", parent_name="layout.font", **kwargs): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/font/_textcase.py b/packages/python/plotly/plotly/validators/layout/font/_textcase.py index 5fbe55abe59..83d4c79f96c 100644 --- a/packages/python/plotly/plotly/validators/layout/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/font/_textcase.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="textcase", parent_name="layout.font", **kwargs): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/font/_variant.py b/packages/python/plotly/plotly/validators/layout/font/_variant.py index 6b3951e9b61..4e4a98b7eb0 100644 --- a/packages/python/plotly/plotly/validators/layout/font/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/font/_variant.py @@ -1,22 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="variant", parent_name="layout.font", **kwargs): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/font/_weight.py b/packages/python/plotly/plotly/validators/layout/font/_weight.py index a6a8351def1..bad25cf4ed9 100644 --- a/packages/python/plotly/plotly/validators/layout/font/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/font/_weight.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="weight", parent_name="layout.font", **kwargs): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/__init__.py b/packages/python/plotly/plotly/validators/layout/geo/__init__.py index ea8ac8b2d9a..c914a16a87f 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/geo/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._uirevision import UirevisionValidator @@ -36,42 +35,10 @@ 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", - ], + ['._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'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/geo/_bgcolor.py b/packages/python/plotly/plotly/validators/layout/geo/_bgcolor.py index bbbbfdae4bf..f35e1c61d11 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_bgcolor.py @@ -1,11 +1,13 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_center.py b/packages/python/plotly/plotly/validators/layout/geo/_center.py index a1b4c1a7d59..5fd3deb4c9d 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_center.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_center.py @@ -1,27 +1,15 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class CenterValidator(_bv.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', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_coastlinecolor.py b/packages/python/plotly/plotly/validators/layout/geo/_coastlinecolor.py index 6d1faff5c2a..1f2d88ab87a 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_coastlinecolor.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_coastlinecolor.py @@ -1,13 +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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CoastlinecolorValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_coastlinewidth.py b/packages/python/plotly/plotly/validators/layout/geo/_coastlinewidth.py index 95aa959d9d5..3e6fa1c5c22 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_coastlinewidth.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_coastlinewidth.py @@ -1,14 +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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CoastlinewidthValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_countrycolor.py b/packages/python/plotly/plotly/validators/layout/geo/_countrycolor.py index c91927d26b8..4736c29a18d 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_countrycolor.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_countrycolor.py @@ -1,11 +1,13 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class CountrycolorValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_countrywidth.py b/packages/python/plotly/plotly/validators/layout/geo/_countrywidth.py index 7c38cbfaefb..70861957241 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_countrywidth.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_countrywidth.py @@ -1,12 +1,14 @@ -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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CountrywidthValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_domain.py b/packages/python/plotly/plotly/validators/layout/geo/_domain.py index df58813b031..20f4d68609c 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_domain.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_domain.py @@ -1,42 +1,15 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class DomainValidator(_bv.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', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_fitbounds.py b/packages/python/plotly/plotly/validators/layout/geo/_fitbounds.py index ef1818e0814..a8ff6ef9b3d 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_fitbounds.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_fitbounds.py @@ -1,12 +1,14 @@ -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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FitboundsValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_framecolor.py b/packages/python/plotly/plotly/validators/layout/geo/_framecolor.py index f3331d3812e..1963642ff61 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_framecolor.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_framecolor.py @@ -1,11 +1,13 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class FramecolorValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_framewidth.py b/packages/python/plotly/plotly/validators/layout/geo/_framewidth.py index a4ce655cfd6..00d769d64ff 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_framewidth.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_framewidth.py @@ -1,12 +1,14 @@ -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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FramewidthValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_lakecolor.py b/packages/python/plotly/plotly/validators/layout/geo/_lakecolor.py index 56233fe2805..a4708122f92 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_lakecolor.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_lakecolor.py @@ -1,11 +1,13 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class LakecolorValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_landcolor.py b/packages/python/plotly/plotly/validators/layout/geo/_landcolor.py index b68020a939e..e8dfb8728a3 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_landcolor.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_landcolor.py @@ -1,11 +1,13 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class LandcolorValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_lataxis.py b/packages/python/plotly/plotly/validators/layout/geo/_lataxis.py index 62bf9dcabba..5e364f15100 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_lataxis.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_lataxis.py @@ -1,37 +1,15 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class LataxisValidator(_bv.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', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_lonaxis.py b/packages/python/plotly/plotly/validators/layout/geo/_lonaxis.py index 39605851486..7c439d77077 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_lonaxis.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_lonaxis.py @@ -1,37 +1,15 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class LonaxisValidator(_bv.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', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_oceancolor.py b/packages/python/plotly/plotly/validators/layout/geo/_oceancolor.py index 7974ec166a5..de173860738 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_oceancolor.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_oceancolor.py @@ -1,11 +1,13 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class OceancolorValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_projection.py b/packages/python/plotly/plotly/validators/layout/geo/_projection.py index 15b33161d21..2836ef40d05 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_projection.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_projection.py @@ -1,38 +1,15 @@ -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 sphere’s - 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, - ) +import _plotly_utils.basevalidators as _bv + + +class ProjectionValidator(_bv.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', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_resolution.py b/packages/python/plotly/plotly/validators/layout/geo/_resolution.py index 6ff86ee31cd..e2ea259e3b9 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_resolution.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_resolution.py @@ -1,13 +1,15 @@ -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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ResolutionValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_rivercolor.py b/packages/python/plotly/plotly/validators/layout/geo/_rivercolor.py index 5ffa39be776..1724084a722 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_rivercolor.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_rivercolor.py @@ -1,11 +1,13 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class RivercolorValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_riverwidth.py b/packages/python/plotly/plotly/validators/layout/geo/_riverwidth.py index acd9af0b00f..0ad86d77f4d 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_riverwidth.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_riverwidth.py @@ -1,12 +1,14 @@ -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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RiverwidthValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_scope.py b/packages/python/plotly/plotly/validators/layout/geo/_scope.py index d5aacbbc091..f1ff55c03cb 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_scope.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_scope.py @@ -1,23 +1,14 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class ScopeValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_showcoastlines.py b/packages/python/plotly/plotly/validators/layout/geo/_showcoastlines.py index e5d31bb9446..5f923ce319f 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_showcoastlines.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_showcoastlines.py @@ -1,13 +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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowcoastlinesValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_showcountries.py b/packages/python/plotly/plotly/validators/layout/geo/_showcountries.py index bfdc83352c5..3af51825cc8 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_showcountries.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_showcountries.py @@ -1,11 +1,13 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowcountriesValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_showframe.py b/packages/python/plotly/plotly/validators/layout/geo/_showframe.py index f2f44e0f5f5..cc3697d12b7 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_showframe.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_showframe.py @@ -1,11 +1,13 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowframeValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_showlakes.py b/packages/python/plotly/plotly/validators/layout/geo/_showlakes.py index b1a8040f9eb..3feac23cf3a 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_showlakes.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_showlakes.py @@ -1,11 +1,13 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlakesValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_showland.py b/packages/python/plotly/plotly/validators/layout/geo/_showland.py index 8009059037b..76cec012027 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_showland.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_showland.py @@ -1,11 +1,13 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlandValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_showocean.py b/packages/python/plotly/plotly/validators/layout/geo/_showocean.py index 081de792d79..ee3f95bae5d 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_showocean.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_showocean.py @@ -1,11 +1,13 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowoceanValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_showrivers.py b/packages/python/plotly/plotly/validators/layout/geo/_showrivers.py index 08c97840501..7ce44582f34 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_showrivers.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_showrivers.py @@ -1,11 +1,13 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowriversValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_showsubunits.py b/packages/python/plotly/plotly/validators/layout/geo/_showsubunits.py index 39cba4814d5..5d321729fcf 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_showsubunits.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_showsubunits.py @@ -1,11 +1,13 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowsubunitsValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_subunitcolor.py b/packages/python/plotly/plotly/validators/layout/geo/_subunitcolor.py index e64fd032627..2c04c2da708 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_subunitcolor.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_subunitcolor.py @@ -1,11 +1,13 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class SubunitcolorValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_subunitwidth.py b/packages/python/plotly/plotly/validators/layout/geo/_subunitwidth.py index 4d8d6bbb5e9..f0e6a0f4d18 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_subunitwidth.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_subunitwidth.py @@ -1,12 +1,14 @@ -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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SubunitwidthValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_uirevision.py b/packages/python/plotly/plotly/validators/layout/geo/_uirevision.py index 754857b676c..a18b44c62fd 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_uirevision.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_uirevision.py @@ -1,11 +1,13 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/_visible.py b/packages/python/plotly/plotly/validators/layout/geo/_visible.py index 8acac3fc865..b3f9b2b972d 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/_visible.py +++ b/packages/python/plotly/plotly/validators/layout/geo/_visible.py @@ -1,11 +1,13 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/center/__init__.py b/packages/python/plotly/plotly/validators/layout/geo/center/__init__.py index a723b74f147..afd2812dadd 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/center/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/geo/center/__init__.py @@ -1,12 +1,14 @@ 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"] + __name__, + [], + ['._lon.LonValidator', '._lat.LatValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/geo/center/_lat.py b/packages/python/plotly/plotly/validators/layout/geo/center/_lat.py index 76d14714da8..452d7ebfad6 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/center/_lat.py +++ b/packages/python/plotly/plotly/validators/layout/geo/center/_lat.py @@ -1,11 +1,13 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class LatValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/center/_lon.py b/packages/python/plotly/plotly/validators/layout/geo/center/_lon.py index c1259a67e34..a1a202e725f 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/center/_lon.py +++ b/packages/python/plotly/plotly/validators/layout/geo/center/_lon.py @@ -1,11 +1,13 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class LonValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/domain/__init__.py b/packages/python/plotly/plotly/validators/layout/geo/domain/__init__.py index 67de5030d0a..705a2194402 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/geo/domain/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._y import YValidator from ._x import XValidator @@ -8,14 +7,10 @@ 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", - ], + ['._y.YValidator', '._x.XValidator', '._row.RowValidator', '._column.ColumnValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/geo/domain/_column.py b/packages/python/plotly/plotly/validators/layout/geo/domain/_column.py index 45ad71318b3..7a96c7417f9 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/domain/_column.py +++ b/packages/python/plotly/plotly/validators/layout/geo/domain/_column.py @@ -1,12 +1,14 @@ -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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColumnValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/domain/_row.py b/packages/python/plotly/plotly/validators/layout/geo/domain/_row.py index 5bc43e3012a..499a7c06b6f 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/domain/_row.py +++ b/packages/python/plotly/plotly/validators/layout/geo/domain/_row.py @@ -1,12 +1,14 @@ -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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RowValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/domain/_x.py b/packages/python/plotly/plotly/validators/layout/geo/domain/_x.py index 97151916ae3..cc49359820b 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/domain/_x.py +++ b/packages/python/plotly/plotly/validators/layout/geo/domain/_x.py @@ -1,18 +1,14 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/domain/_y.py b/packages/python/plotly/plotly/validators/layout/geo/domain/_y.py index a3533b11825..c5a64c93859 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/domain/_y.py +++ b/packages/python/plotly/plotly/validators/layout/geo/domain/_y.py @@ -1,18 +1,14 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/lataxis/__init__.py b/packages/python/plotly/plotly/validators/layout/geo/lataxis/__init__.py index 307a63cc3fa..87717781dd8 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/lataxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/geo/lataxis/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tick0 import Tick0Validator from ._showgrid import ShowgridValidator @@ -11,17 +10,10 @@ 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", - ], + ['._tick0.Tick0Validator', '._showgrid.ShowgridValidator', '._range.RangeValidator', '._gridwidth.GridwidthValidator', '._griddash.GriddashValidator', '._gridcolor.GridcolorValidator', '._dtick.DtickValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/geo/lataxis/_dtick.py b/packages/python/plotly/plotly/validators/layout/geo/lataxis/_dtick.py index 7fe49b8944a..824e185e87a 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/lataxis/_dtick.py +++ b/packages/python/plotly/plotly/validators/layout/geo/lataxis/_dtick.py @@ -1,11 +1,13 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/lataxis/_gridcolor.py b/packages/python/plotly/plotly/validators/layout/geo/lataxis/_gridcolor.py index 7af73629f7a..43395702486 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/lataxis/_gridcolor.py +++ b/packages/python/plotly/plotly/validators/layout/geo/lataxis/_gridcolor.py @@ -1,13 +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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridcolorValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/lataxis/_griddash.py b/packages/python/plotly/plotly/validators/layout/geo/lataxis/_griddash.py index 848516d9898..401303a8405 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/lataxis/_griddash.py +++ b/packages/python/plotly/plotly/validators/layout/geo/lataxis/_griddash.py @@ -1,16 +1,14 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class GriddashValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/lataxis/_gridwidth.py b/packages/python/plotly/plotly/validators/layout/geo/lataxis/_gridwidth.py index e686c829046..32880d66f8b 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/lataxis/_gridwidth.py +++ b/packages/python/plotly/plotly/validators/layout/geo/lataxis/_gridwidth.py @@ -1,14 +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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridwidthValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/lataxis/_range.py b/packages/python/plotly/plotly/validators/layout/geo/lataxis/_range.py index e3e76958ecf..52e751058a3 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/lataxis/_range.py +++ b/packages/python/plotly/plotly/validators/layout/geo/lataxis/_range.py @@ -1,18 +1,14 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class RangeValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/lataxis/_showgrid.py b/packages/python/plotly/plotly/validators/layout/geo/lataxis/_showgrid.py index 965108e52cf..c63e1aa85d6 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/lataxis/_showgrid.py +++ b/packages/python/plotly/plotly/validators/layout/geo/lataxis/_showgrid.py @@ -1,13 +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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowgridValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/lataxis/_tick0.py b/packages/python/plotly/plotly/validators/layout/geo/lataxis/_tick0.py index 04003f88089..1796354e0ac 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/lataxis/_tick0.py +++ b/packages/python/plotly/plotly/validators/layout/geo/lataxis/_tick0.py @@ -1,11 +1,13 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/lonaxis/__init__.py b/packages/python/plotly/plotly/validators/layout/geo/lonaxis/__init__.py index 307a63cc3fa..87717781dd8 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/lonaxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/geo/lonaxis/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tick0 import Tick0Validator from ._showgrid import ShowgridValidator @@ -11,17 +10,10 @@ 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", - ], + ['._tick0.Tick0Validator', '._showgrid.ShowgridValidator', '._range.RangeValidator', '._gridwidth.GridwidthValidator', '._griddash.GriddashValidator', '._gridcolor.GridcolorValidator', '._dtick.DtickValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_dtick.py b/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_dtick.py index a252a49784c..f0707d30d91 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_dtick.py +++ b/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_dtick.py @@ -1,11 +1,13 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_gridcolor.py b/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_gridcolor.py index d520608ebc6..3318be1945e 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_gridcolor.py +++ b/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_gridcolor.py @@ -1,13 +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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridcolorValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_griddash.py b/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_griddash.py index daad35c60f2..d726ccc503e 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_griddash.py +++ b/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_griddash.py @@ -1,16 +1,14 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class GriddashValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_gridwidth.py b/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_gridwidth.py index 46e718d98b8..2b55814e112 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_gridwidth.py +++ b/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_gridwidth.py @@ -1,14 +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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridwidthValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_range.py b/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_range.py index 4a8612f87d8..18f82f35643 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_range.py +++ b/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_range.py @@ -1,18 +1,14 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class RangeValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_showgrid.py b/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_showgrid.py index 0d8a64316a5..97ef10043fe 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_showgrid.py +++ b/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_showgrid.py @@ -1,13 +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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowgridValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_tick0.py b/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_tick0.py index 0f255e017a7..be334dd71bd 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_tick0.py +++ b/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_tick0.py @@ -1,11 +1,13 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/projection/__init__.py b/packages/python/plotly/plotly/validators/layout/geo/projection/__init__.py index eae069ecb76..179996edfe8 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/projection/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/geo/projection/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._type import TypeValidator from ._tilt import TiltValidator @@ -10,16 +9,10 @@ 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", - ], + ['._type.TypeValidator', '._tilt.TiltValidator', '._scale.ScaleValidator', '._rotation.RotationValidator', '._parallels.ParallelsValidator', '._distance.DistanceValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/geo/projection/_distance.py b/packages/python/plotly/plotly/validators/layout/geo/projection/_distance.py index 7b5b3e92b71..f705a08ad92 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/projection/_distance.py +++ b/packages/python/plotly/plotly/validators/layout/geo/projection/_distance.py @@ -1,14 +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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DistanceValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/projection/_parallels.py b/packages/python/plotly/plotly/validators/layout/geo/projection/_parallels.py index 675136532cc..dfbc4d82a0b 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/projection/_parallels.py +++ b/packages/python/plotly/plotly/validators/layout/geo/projection/_parallels.py @@ -1,20 +1,14 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class ParallelsValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/projection/_rotation.py b/packages/python/plotly/plotly/validators/layout/geo/projection/_rotation.py index 551dc6426e9..cd64ae89885 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/projection/_rotation.py +++ b/packages/python/plotly/plotly/validators/layout/geo/projection/_rotation.py @@ -1,28 +1,15 @@ -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, - ) +import _plotly_utils.basevalidators as _bv + + +class RotationValidator(_bv.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', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/projection/_scale.py b/packages/python/plotly/plotly/validators/layout/geo/projection/_scale.py index f6b6dfda7b4..cbf10939723 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/projection/_scale.py +++ b/packages/python/plotly/plotly/validators/layout/geo/projection/_scale.py @@ -1,14 +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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ScaleValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/projection/_tilt.py b/packages/python/plotly/plotly/validators/layout/geo/projection/_tilt.py index 7683108329a..835b9160867 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/projection/_tilt.py +++ b/packages/python/plotly/plotly/validators/layout/geo/projection/_tilt.py @@ -1,13 +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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TiltValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/projection/_type.py b/packages/python/plotly/plotly/validators/layout/geo/projection/_type.py index 14a3aa59567..cd69ec3f054 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/projection/_type.py +++ b/packages/python/plotly/plotly/validators/layout/geo/projection/_type.py @@ -1,102 +1,14 @@ -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", - "equal earth", - "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, - ) +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.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', 'equal earth', '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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/projection/rotation/__init__.py b/packages/python/plotly/plotly/validators/layout/geo/projection/rotation/__init__.py index 2d51bf35990..555cb56558e 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/projection/rotation/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/geo/projection/rotation/__init__.py @@ -1,15 +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"], + ['._roll.RollValidator', '._lon.LonValidator', '._lat.LatValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/geo/projection/rotation/_lat.py b/packages/python/plotly/plotly/validators/layout/geo/projection/rotation/_lat.py index c15cd42f3a6..ba3babb8d1a 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/projection/rotation/_lat.py +++ b/packages/python/plotly/plotly/validators/layout/geo/projection/rotation/_lat.py @@ -1,13 +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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LatValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/projection/rotation/_lon.py b/packages/python/plotly/plotly/validators/layout/geo/projection/rotation/_lon.py index 4973ac5a879..796f8137ef4 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/projection/rotation/_lon.py +++ b/packages/python/plotly/plotly/validators/layout/geo/projection/rotation/_lon.py @@ -1,13 +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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LonValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/geo/projection/rotation/_roll.py b/packages/python/plotly/plotly/validators/layout/geo/projection/rotation/_roll.py index 03d2dc05f15..1e11eebad34 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/projection/rotation/_roll.py +++ b/packages/python/plotly/plotly/validators/layout/geo/projection/rotation/_roll.py @@ -1,13 +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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RollValidator(_bv.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/grid/__init__.py b/packages/python/plotly/plotly/validators/layout/grid/__init__.py index 2557633adeb..030ed7349b3 100644 --- a/packages/python/plotly/plotly/validators/layout/grid/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/grid/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yside import YsideValidator from ._ygap import YgapValidator @@ -16,22 +15,10 @@ from ._columns import ColumnsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yside.YsideValidator", - "._ygap.YgapValidator", - "._yaxes.YaxesValidator", - "._xside.XsideValidator", - "._xgap.XgapValidator", - "._xaxes.XaxesValidator", - "._subplots.SubplotsValidator", - "._rows.RowsValidator", - "._roworder.RoworderValidator", - "._pattern.PatternValidator", - "._domain.DomainValidator", - "._columns.ColumnsValidator", - ], + ['._yside.YsideValidator', '._ygap.YgapValidator', '._yaxes.YaxesValidator', '._xside.XsideValidator', '._xgap.XgapValidator', '._xaxes.XaxesValidator', '._subplots.SubplotsValidator', '._rows.RowsValidator', '._roworder.RoworderValidator', '._pattern.PatternValidator', '._domain.DomainValidator', '._columns.ColumnsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/grid/_columns.py b/packages/python/plotly/plotly/validators/layout/grid/_columns.py index b569c8c0488..de5ba789b7d 100644 --- a/packages/python/plotly/plotly/validators/layout/grid/_columns.py +++ b/packages/python/plotly/plotly/validators/layout/grid/_columns.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColumnsValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="columns", parent_name="layout.grid", **kwargs): - super(ColumnsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColumnsValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='columns', + parent_name='layout.grid', + **kwargs): + super(ColumnsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/grid/_domain.py b/packages/python/plotly/plotly/validators/layout/grid/_domain.py index 522a53309c2..fddc76c98d8 100644 --- a/packages/python/plotly/plotly/validators/layout/grid/_domain.py +++ b/packages/python/plotly/plotly/validators/layout/grid/_domain.py @@ -1,26 +1,15 @@ -import _plotly_utils.basevalidators -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="domain", parent_name="layout.grid", **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", - """ - x - Sets the horizontal domain of this grid subplot - (in plot fraction). The first and last cells - end exactly at the domain edges, with no grout - around the edges. - y - Sets the vertical domain of this grid subplot - (in plot fraction). The first and last cells - end exactly at the domain edges, with no grout - around the edges. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DomainValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='domain', + parent_name='layout.grid', + **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', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/grid/_pattern.py b/packages/python/plotly/plotly/validators/layout/grid/_pattern.py index ee91ab4d5c0..74a00133d0f 100644 --- a/packages/python/plotly/plotly/validators/layout/grid/_pattern.py +++ b/packages/python/plotly/plotly/validators/layout/grid/_pattern.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class PatternValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="pattern", parent_name="layout.grid", **kwargs): - super(PatternValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["independent", "coupled"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class PatternValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='pattern', + parent_name='layout.grid', + **kwargs): + super(PatternValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['independent', 'coupled']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/grid/_roworder.py b/packages/python/plotly/plotly/validators/layout/grid/_roworder.py index 7bd6a4c282f..d2a83b54de6 100644 --- a/packages/python/plotly/plotly/validators/layout/grid/_roworder.py +++ b/packages/python/plotly/plotly/validators/layout/grid/_roworder.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class RoworderValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="roworder", parent_name="layout.grid", **kwargs): - super(RoworderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["top to bottom", "bottom to top"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RoworderValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='roworder', + parent_name='layout.grid', + **kwargs): + super(RoworderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['top to bottom', 'bottom to top']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/grid/_rows.py b/packages/python/plotly/plotly/validators/layout/grid/_rows.py index 0341d1b78be..928f23ed3a1 100644 --- a/packages/python/plotly/plotly/validators/layout/grid/_rows.py +++ b/packages/python/plotly/plotly/validators/layout/grid/_rows.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class RowsValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="rows", parent_name="layout.grid", **kwargs): - super(RowsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RowsValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='rows', + parent_name='layout.grid', + **kwargs): + super(RowsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/grid/_subplots.py b/packages/python/plotly/plotly/validators/layout/grid/_subplots.py index a8a98f6aec2..76eabb51b16 100644 --- a/packages/python/plotly/plotly/validators/layout/grid/_subplots.py +++ b/packages/python/plotly/plotly/validators/layout/grid/_subplots.py @@ -1,21 +1,16 @@ -import _plotly_utils.basevalidators -class SubplotsValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="subplots", parent_name="layout.grid", **kwargs): - super(SubplotsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dimensions=kwargs.pop("dimensions", 2), - edit_type=kwargs.pop("edit_type", "plot"), - free_length=kwargs.pop("free_length", True), - items=kwargs.pop( - "items", - { - "editType": "plot", - "valType": "enumerated", - "values": ["/^x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?$/", ""], - }, - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SubplotsValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='subplots', + parent_name='layout.grid', + **kwargs): + super(SubplotsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dimensions=kwargs.pop('dimensions', 2), + edit_type=kwargs.pop('edit_type', 'plot'), + free_length=kwargs.pop('free_length', True), + items=kwargs.pop('items', {'editType': 'plot', 'valType': 'enumerated', 'values': ['/^x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?$/', '']}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/grid/_xaxes.py b/packages/python/plotly/plotly/validators/layout/grid/_xaxes.py index dc4d9ce9a07..a29d04e800e 100644 --- a/packages/python/plotly/plotly/validators/layout/grid/_xaxes.py +++ b/packages/python/plotly/plotly/validators/layout/grid/_xaxes.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class XaxesValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="xaxes", parent_name="layout.grid", **kwargs): - super(XaxesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - free_length=kwargs.pop("free_length", True), - items=kwargs.pop( - "items", - { - "editType": "plot", - "valType": "enumerated", - "values": ["/^x([2-9]|[1-9][0-9]+)?( domain)?$/", ""], - }, - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XaxesValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='xaxes', + parent_name='layout.grid', + **kwargs): + super(XaxesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + free_length=kwargs.pop('free_length', True), + items=kwargs.pop('items', {'editType': 'plot', 'valType': 'enumerated', 'values': ['/^x([2-9]|[1-9][0-9]+)?( domain)?$/', '']}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/grid/_xgap.py b/packages/python/plotly/plotly/validators/layout/grid/_xgap.py index ef5d0a1caa9..ff533235843 100644 --- a/packages/python/plotly/plotly/validators/layout/grid/_xgap.py +++ b/packages/python/plotly/plotly/validators/layout/grid/_xgap.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class XgapValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="xgap", parent_name="layout.grid", **kwargs): - super(XgapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XgapValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xgap', + parent_name='layout.grid', + **kwargs): + super(XgapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/grid/_xside.py b/packages/python/plotly/plotly/validators/layout/grid/_xside.py index ec94ce1a4f6..79230138196 100644 --- a/packages/python/plotly/plotly/validators/layout/grid/_xside.py +++ b/packages/python/plotly/plotly/validators/layout/grid/_xside.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XsideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xside", parent_name="layout.grid", **kwargs): - super(XsideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["bottom", "bottom plot", "top plot", "top"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XsideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xside', + parent_name='layout.grid', + **kwargs): + super(XsideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['bottom', 'bottom plot', 'top plot', 'top']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/grid/_yaxes.py b/packages/python/plotly/plotly/validators/layout/grid/_yaxes.py index 8c91b5c496e..fa6869c59cc 100644 --- a/packages/python/plotly/plotly/validators/layout/grid/_yaxes.py +++ b/packages/python/plotly/plotly/validators/layout/grid/_yaxes.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class YaxesValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="yaxes", parent_name="layout.grid", **kwargs): - super(YaxesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - free_length=kwargs.pop("free_length", True), - items=kwargs.pop( - "items", - { - "editType": "plot", - "valType": "enumerated", - "values": ["/^y([2-9]|[1-9][0-9]+)?( domain)?$/", ""], - }, - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YaxesValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='yaxes', + parent_name='layout.grid', + **kwargs): + super(YaxesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + free_length=kwargs.pop('free_length', True), + items=kwargs.pop('items', {'editType': 'plot', 'valType': 'enumerated', 'values': ['/^y([2-9]|[1-9][0-9]+)?( domain)?$/', '']}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/grid/_ygap.py b/packages/python/plotly/plotly/validators/layout/grid/_ygap.py index 968020d8145..cbf10ef3499 100644 --- a/packages/python/plotly/plotly/validators/layout/grid/_ygap.py +++ b/packages/python/plotly/plotly/validators/layout/grid/_ygap.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class YgapValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="ygap", parent_name="layout.grid", **kwargs): - super(YgapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YgapValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ygap', + parent_name='layout.grid', + **kwargs): + super(YgapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/grid/_yside.py b/packages/python/plotly/plotly/validators/layout/grid/_yside.py index bdf59a4e6ac..211f12c7862 100644 --- a/packages/python/plotly/plotly/validators/layout/grid/_yside.py +++ b/packages/python/plotly/plotly/validators/layout/grid/_yside.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YsideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yside", parent_name="layout.grid", **kwargs): - super(YsideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["left", "left plot", "right plot", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YsideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yside', + parent_name='layout.grid', + **kwargs): + super(YsideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['left', 'left plot', 'right plot', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/grid/domain/__init__.py b/packages/python/plotly/plotly/validators/layout/grid/domain/__init__.py index 6b635136346..a292ad3dd88 100644 --- a/packages/python/plotly/plotly/validators/layout/grid/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/grid/domain/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._y import YValidator from ._x import XValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._y.YValidator", "._x.XValidator"] + __name__, + [], + ['._y.YValidator', '._x.XValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/grid/domain/_x.py b/packages/python/plotly/plotly/validators/layout/grid/domain/_x.py index 88119130512..7070c335151 100644 --- a/packages/python/plotly/plotly/validators/layout/grid/domain/_x.py +++ b/packages/python/plotly/plotly/validators/layout/grid/domain/_x.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="x", parent_name="layout.grid.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, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='x', + parent_name='layout.grid.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/grid/domain/_y.py b/packages/python/plotly/plotly/validators/layout/grid/domain/_y.py index c03f5a032cb..c39eb24bab2 100644 --- a/packages/python/plotly/plotly/validators/layout/grid/domain/_y.py +++ b/packages/python/plotly/plotly/validators/layout/grid/domain/_y.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="y", parent_name="layout.grid.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, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='y', + parent_name='layout.grid.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/layout/hoverlabel/__init__.py index 1d84805b7fd..dbffceae42f 100644 --- a/packages/python/plotly/plotly/validators/layout/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelength import NamelengthValidator from ._grouptitlefont import GrouptitlefontValidator @@ -10,16 +9,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelength.NamelengthValidator", - "._grouptitlefont.GrouptitlefontValidator", - "._font.FontValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - "._align.AlignValidator", - ], + ['._namelength.NamelengthValidator', '._grouptitlefont.GrouptitlefontValidator', '._font.FontValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/layout/hoverlabel/_align.py index f11bfaf7837..f3c0b1b9217 100644 --- a/packages/python/plotly/plotly/validators/layout/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/layout/hoverlabel/_align.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="align", parent_name="layout.hoverlabel", **kwargs): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='layout.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/layout/hoverlabel/_bgcolor.py index 2075a389cc5..c8df56c83d1 100644 --- a/packages/python/plotly/plotly/validators/layout/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/layout/hoverlabel/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="layout.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='layout.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/layout/hoverlabel/_bordercolor.py index b07470a90ca..44e77e51713 100644 --- a/packages/python/plotly/plotly/validators/layout/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/layout/hoverlabel/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="layout.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='layout.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/layout/hoverlabel/_font.py index 7461f3e9782..7529dcdf5e5 100644 --- a/packages/python/plotly/plotly/validators/layout/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/layout/hoverlabel/_font.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="layout.hoverlabel", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='layout.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/hoverlabel/_grouptitlefont.py b/packages/python/plotly/plotly/validators/layout/hoverlabel/_grouptitlefont.py index bc9cf9f8671..8c89ea88467 100644 --- a/packages/python/plotly/plotly/validators/layout/hoverlabel/_grouptitlefont.py +++ b/packages/python/plotly/plotly/validators/layout/hoverlabel/_grouptitlefont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class GrouptitlefontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="grouptitlefont", parent_name="layout.hoverlabel", **kwargs - ): - super(GrouptitlefontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Grouptitlefont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class GrouptitlefontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='grouptitlefont', + parent_name='layout.hoverlabel', + **kwargs): + super(GrouptitlefontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Grouptitlefont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/layout/hoverlabel/_namelength.py index 04a545415a8..1a0449c7f02 100644 --- a/packages/python/plotly/plotly/validators/layout/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/layout/hoverlabel/_namelength.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="layout.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='layout.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/layout/hoverlabel/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_color.py index e72d921a129..d159bf92d90 100644 --- a/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_family.py index 7d65ed6605c..d5115ca5383 100644 --- a/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="layout.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_lineposition.py index fd25fa96635..b86ea40565f 100644 --- a/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_lineposition.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="layout.hoverlabel.font", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_shadow.py index 1ab11432f40..3f2fb662de2 100644 --- a/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="layout.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_size.py index 02f4523cc13..aacc0de5067 100644 --- a/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="layout.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_style.py index 4d3c30dc9ef..08be7e0fd6f 100644 --- a/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="layout.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_textcase.py index 8c03a9e5c05..5865e3ba549 100644 --- a/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="layout.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_variant.py index 4ce5cd733e2..e7e76a9d3b8 100644 --- a/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="layout.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_weight.py index ed8f9ffa4b0..7ca73f43edf 100644 --- a/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/hoverlabel/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="layout.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/__init__.py b/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_color.py b/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_color.py index c04bbbeb00a..e5effc25f34 100644 --- a/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_color.py +++ b/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="layout.hoverlabel.grouptitlefont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.hoverlabel.grouptitlefont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_family.py b/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_family.py index 1b703692251..268a3ba7484 100644 --- a/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_family.py +++ b/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="layout.hoverlabel.grouptitlefont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.hoverlabel.grouptitlefont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_lineposition.py b/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_lineposition.py index a865819c515..c4482a60242 100644 --- a/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.hoverlabel.grouptitlefont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.hoverlabel.grouptitlefont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_shadow.py b/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_shadow.py index ed31049ffa6..da5a33b4501 100644 --- a/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="layout.hoverlabel.grouptitlefont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.hoverlabel.grouptitlefont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_size.py b/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_size.py index 6b2d3454eeb..06ac8408e99 100644 --- a/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_size.py +++ b/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="layout.hoverlabel.grouptitlefont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.hoverlabel.grouptitlefont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_style.py b/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_style.py index 4f943802c95..048576670ac 100644 --- a/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_style.py +++ b/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="layout.hoverlabel.grouptitlefont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.hoverlabel.grouptitlefont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_textcase.py b/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_textcase.py index 70046ab18e8..9e74f898617 100644 --- a/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="layout.hoverlabel.grouptitlefont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.hoverlabel.grouptitlefont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_variant.py b/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_variant.py index 22f8d75e811..5690e00a499 100644 --- a/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="layout.hoverlabel.grouptitlefont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.hoverlabel.grouptitlefont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_weight.py b/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_weight.py index 133812836f5..0d9469a2214 100644 --- a/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/hoverlabel/grouptitlefont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="layout.hoverlabel.grouptitlefont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.hoverlabel.grouptitlefont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/image/__init__.py b/packages/python/plotly/plotly/validators/layout/image/__init__.py index 2adb6f66953..2d68ba104f5 100644 --- a/packages/python/plotly/plotly/validators/layout/image/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/image/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._yanchor import YanchorValidator @@ -19,25 +18,10 @@ from ._layer import LayerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._visible.VisibleValidator", - "._templateitemname.TemplateitemnameValidator", - "._source.SourceValidator", - "._sizing.SizingValidator", - "._sizey.SizeyValidator", - "._sizex.SizexValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._layer.LayerValidator", - ], + ['._yref.YrefValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._visible.VisibleValidator', '._templateitemname.TemplateitemnameValidator', '._source.SourceValidator', '._sizing.SizingValidator', '._sizey.SizeyValidator', '._sizex.SizexValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._layer.LayerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/image/_layer.py b/packages/python/plotly/plotly/validators/layout/image/_layer.py index d36dfb8b448..43057cf4cac 100644 --- a/packages/python/plotly/plotly/validators/layout/image/_layer.py +++ b/packages/python/plotly/plotly/validators/layout/image/_layer.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="layer", parent_name="layout.image", **kwargs): - super(LayerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop("values", ["below", "above"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LayerValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='layer', + parent_name='layout.image', + **kwargs): + super(LayerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['below', 'above']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/image/_name.py b/packages/python/plotly/plotly/validators/layout/image/_name.py index a641345064d..c08717bd205 100644 --- a/packages/python/plotly/plotly/validators/layout/image/_name.py +++ b/packages/python/plotly/plotly/validators/layout/image/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="layout.image", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='layout.image', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/image/_opacity.py b/packages/python/plotly/plotly/validators/layout/image/_opacity.py index 56c53e237c2..66f03ee81ab 100644 --- a/packages/python/plotly/plotly/validators/layout/image/_opacity.py +++ b/packages/python/plotly/plotly/validators/layout/image/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="layout.image", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='layout.image', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/image/_sizex.py b/packages/python/plotly/plotly/validators/layout/image/_sizex.py index f0f2be30ce0..e23d582500a 100644 --- a/packages/python/plotly/plotly/validators/layout/image/_sizex.py +++ b/packages/python/plotly/plotly/validators/layout/image/_sizex.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SizexValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="sizex", parent_name="layout.image", **kwargs): - super(SizexValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizexValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sizex', + parent_name='layout.image', + **kwargs): + super(SizexValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/image/_sizey.py b/packages/python/plotly/plotly/validators/layout/image/_sizey.py index 66d6ea2f8b4..71a7ecff517 100644 --- a/packages/python/plotly/plotly/validators/layout/image/_sizey.py +++ b/packages/python/plotly/plotly/validators/layout/image/_sizey.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SizeyValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="sizey", parent_name="layout.image", **kwargs): - super(SizeyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeyValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sizey', + parent_name='layout.image', + **kwargs): + super(SizeyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/image/_sizing.py b/packages/python/plotly/plotly/validators/layout/image/_sizing.py index 8d51ec7bc84..80928e3f9b8 100644 --- a/packages/python/plotly/plotly/validators/layout/image/_sizing.py +++ b/packages/python/plotly/plotly/validators/layout/image/_sizing.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizingValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="sizing", parent_name="layout.image", **kwargs): - super(SizingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop("values", ["fill", "contain", "stretch"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizingValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='sizing', + parent_name='layout.image', + **kwargs): + super(SizingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['fill', 'contain', 'stretch']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/image/_source.py b/packages/python/plotly/plotly/validators/layout/image/_source.py index 8157544de16..6abd87d9ae4 100644 --- a/packages/python/plotly/plotly/validators/layout/image/_source.py +++ b/packages/python/plotly/plotly/validators/layout/image/_source.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SourceValidator(_plotly_utils.basevalidators.ImageUriValidator): - def __init__(self, plotly_name="source", parent_name="layout.image", **kwargs): - super(SourceValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SourceValidator(_bv.ImageUriValidator): + def __init__(self, plotly_name='source', + parent_name='layout.image', + **kwargs): + super(SourceValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/image/_templateitemname.py b/packages/python/plotly/plotly/validators/layout/image/_templateitemname.py index 4ac45d2087d..a14e173c7f0 100644 --- a/packages/python/plotly/plotly/validators/layout/image/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/layout/image/_templateitemname.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="templateitemname", parent_name="layout.image", **kwargs - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='layout.image', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/image/_visible.py b/packages/python/plotly/plotly/validators/layout/image/_visible.py index 8132fc0ebc8..5af1ee76b26 100644 --- a/packages/python/plotly/plotly/validators/layout/image/_visible.py +++ b/packages/python/plotly/plotly/validators/layout/image/_visible.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="visible", parent_name="layout.image", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='layout.image', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/image/_x.py b/packages/python/plotly/plotly/validators/layout/image/_x.py index 20ae64db88a..d19174876eb 100644 --- a/packages/python/plotly/plotly/validators/layout/image/_x.py +++ b/packages/python/plotly/plotly/validators/layout/image/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="x", parent_name="layout.image", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.AnyValidator): + def __init__(self, plotly_name='x', + parent_name='layout.image', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/image/_xanchor.py b/packages/python/plotly/plotly/validators/layout/image/_xanchor.py index d7f787e510b..5fab8cefb03 100644 --- a/packages/python/plotly/plotly/validators/layout/image/_xanchor.py +++ b/packages/python/plotly/plotly/validators/layout/image/_xanchor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xanchor", parent_name="layout.image", **kwargs): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='layout.image', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/image/_xref.py b/packages/python/plotly/plotly/validators/layout/image/_xref.py index a12b526c76b..bc0809283f2 100644 --- a/packages/python/plotly/plotly/validators/layout/image/_xref.py +++ b/packages/python/plotly/plotly/validators/layout/image/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xref", parent_name="layout.image", **kwargs): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop( - "values", ["paper", "/^x([2-9]|[1-9][0-9]+)?( domain)?$/"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='layout.image', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['paper', '/^x([2-9]|[1-9][0-9]+)?( domain)?$/']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/image/_y.py b/packages/python/plotly/plotly/validators/layout/image/_y.py index 18cd74f7741..b90dad97cf2 100644 --- a/packages/python/plotly/plotly/validators/layout/image/_y.py +++ b/packages/python/plotly/plotly/validators/layout/image/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="y", parent_name="layout.image", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.AnyValidator): + def __init__(self, plotly_name='y', + parent_name='layout.image', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/image/_yanchor.py b/packages/python/plotly/plotly/validators/layout/image/_yanchor.py index 181a1edb8a8..392f48af87e 100644 --- a/packages/python/plotly/plotly/validators/layout/image/_yanchor.py +++ b/packages/python/plotly/plotly/validators/layout/image/_yanchor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yanchor", parent_name="layout.image", **kwargs): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='layout.image', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/image/_yref.py b/packages/python/plotly/plotly/validators/layout/image/_yref.py index aa2b8ecc60b..38a3b1195c0 100644 --- a/packages/python/plotly/plotly/validators/layout/image/_yref.py +++ b/packages/python/plotly/plotly/validators/layout/image/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yref", parent_name="layout.image", **kwargs): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop( - "values", ["paper", "/^y([2-9]|[1-9][0-9]+)?( domain)?$/"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='layout.image', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['paper', '/^y([2-9]|[1-9][0-9]+)?( domain)?$/']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/__init__.py b/packages/python/plotly/plotly/validators/layout/legend/__init__.py index 64c39fe4948..90ea2377b9c 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/legend/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._yanchor import YanchorValidator @@ -30,36 +29,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._visible.VisibleValidator", - "._valign.ValignValidator", - "._uirevision.UirevisionValidator", - "._traceorder.TraceorderValidator", - "._tracegroupgap.TracegroupgapValidator", - "._title.TitleValidator", - "._orientation.OrientationValidator", - "._itemwidth.ItemwidthValidator", - "._itemsizing.ItemsizingValidator", - "._itemdoubleclick.ItemdoubleclickValidator", - "._itemclick.ItemclickValidator", - "._indentation.IndentationValidator", - "._grouptitlefont.GrouptitlefontValidator", - "._groupclick.GroupclickValidator", - "._font.FontValidator", - "._entrywidthmode.EntrywidthmodeValidator", - "._entrywidth.EntrywidthValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._visible.VisibleValidator', '._valign.ValignValidator', '._uirevision.UirevisionValidator', '._traceorder.TraceorderValidator', '._tracegroupgap.TracegroupgapValidator', '._title.TitleValidator', '._orientation.OrientationValidator', '._itemwidth.ItemwidthValidator', '._itemsizing.ItemsizingValidator', '._itemdoubleclick.ItemdoubleclickValidator', '._itemclick.ItemclickValidator', '._indentation.IndentationValidator', '._grouptitlefont.GrouptitlefontValidator', '._groupclick.GroupclickValidator', '._font.FontValidator', '._entrywidthmode.EntrywidthmodeValidator', '._entrywidth.EntrywidthValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/legend/_bgcolor.py b/packages/python/plotly/plotly/validators/layout/legend/_bgcolor.py index 3f4eb5149a4..84dfb5a7b40 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/layout/legend/_bgcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="bgcolor", parent_name="layout.legend", **kwargs): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='layout.legend', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/_bordercolor.py b/packages/python/plotly/plotly/validators/layout/legend/_bordercolor.py index f9073070c06..f29a4881428 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/layout/legend/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="layout.legend", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='layout.legend', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/_borderwidth.py b/packages/python/plotly/plotly/validators/layout/legend/_borderwidth.py index a77aa600990..387b9d0d4b6 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/layout/legend/_borderwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderwidth", parent_name="layout.legend", **kwargs - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='layout.legend', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/_entrywidth.py b/packages/python/plotly/plotly/validators/layout/legend/_entrywidth.py index 32ca023fe57..82fe57f3543 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/_entrywidth.py +++ b/packages/python/plotly/plotly/validators/layout/legend/_entrywidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class EntrywidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="entrywidth", parent_name="layout.legend", **kwargs): - super(EntrywidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class EntrywidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='entrywidth', + parent_name='layout.legend', + **kwargs): + super(EntrywidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/_entrywidthmode.py b/packages/python/plotly/plotly/validators/layout/legend/_entrywidthmode.py index ed2cf8476a3..2903dfb7ea7 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/_entrywidthmode.py +++ b/packages/python/plotly/plotly/validators/layout/legend/_entrywidthmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class EntrywidthmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="entrywidthmode", parent_name="layout.legend", **kwargs - ): - super(EntrywidthmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class EntrywidthmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='entrywidthmode', + parent_name='layout.legend', + **kwargs): + super(EntrywidthmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/_font.py b/packages/python/plotly/plotly/validators/layout/legend/_font.py index 9ca1d9e5e4e..8ee9618b01a 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/_font.py +++ b/packages/python/plotly/plotly/validators/layout/legend/_font.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="layout.legend", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='layout.legend', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/_groupclick.py b/packages/python/plotly/plotly/validators/layout/legend/_groupclick.py index 2ff9c0b6222..6aae2c9d17e 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/_groupclick.py +++ b/packages/python/plotly/plotly/validators/layout/legend/_groupclick.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class GroupclickValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="groupclick", parent_name="layout.legend", **kwargs): - super(GroupclickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - values=kwargs.pop("values", ["toggleitem", "togglegroup"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GroupclickValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='groupclick', + parent_name='layout.legend', + **kwargs): + super(GroupclickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + values=kwargs.pop('values', ['toggleitem', 'togglegroup']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/_grouptitlefont.py b/packages/python/plotly/plotly/validators/layout/legend/_grouptitlefont.py index 6cfee9e7ac3..159d48ca530 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/_grouptitlefont.py +++ b/packages/python/plotly/plotly/validators/layout/legend/_grouptitlefont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class GrouptitlefontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="grouptitlefont", parent_name="layout.legend", **kwargs - ): - super(GrouptitlefontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Grouptitlefont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class GrouptitlefontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='grouptitlefont', + parent_name='layout.legend', + **kwargs): + super(GrouptitlefontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Grouptitlefont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/_indentation.py b/packages/python/plotly/plotly/validators/layout/legend/_indentation.py index c5244eafbdb..bd503943834 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/_indentation.py +++ b/packages/python/plotly/plotly/validators/layout/legend/_indentation.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class IndentationValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="indentation", parent_name="layout.legend", **kwargs - ): - super(IndentationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - min=kwargs.pop("min", -15), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class IndentationValidator(_bv.NumberValidator): + def __init__(self, plotly_name='indentation', + parent_name='layout.legend', + **kwargs): + super(IndentationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + min=kwargs.pop('min', -15), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/_itemclick.py b/packages/python/plotly/plotly/validators/layout/legend/_itemclick.py index 107b0fda93f..c440915a98a 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/_itemclick.py +++ b/packages/python/plotly/plotly/validators/layout/legend/_itemclick.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ItemclickValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="itemclick", parent_name="layout.legend", **kwargs): - super(ItemclickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - values=kwargs.pop("values", ["toggle", "toggleothers", False]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ItemclickValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='itemclick', + parent_name='layout.legend', + **kwargs): + super(ItemclickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + values=kwargs.pop('values', ['toggle', 'toggleothers', False]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/_itemdoubleclick.py b/packages/python/plotly/plotly/validators/layout/legend/_itemdoubleclick.py index db1c42d0f56..5479c585299 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/_itemdoubleclick.py +++ b/packages/python/plotly/plotly/validators/layout/legend/_itemdoubleclick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ItemdoubleclickValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="itemdoubleclick", parent_name="layout.legend", **kwargs - ): - super(ItemdoubleclickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - values=kwargs.pop("values", ["toggle", "toggleothers", False]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ItemdoubleclickValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='itemdoubleclick', + parent_name='layout.legend', + **kwargs): + super(ItemdoubleclickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + values=kwargs.pop('values', ['toggle', 'toggleothers', False]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/_itemsizing.py b/packages/python/plotly/plotly/validators/layout/legend/_itemsizing.py index 62422302639..95796bd55a0 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/_itemsizing.py +++ b/packages/python/plotly/plotly/validators/layout/legend/_itemsizing.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ItemsizingValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="itemsizing", parent_name="layout.legend", **kwargs): - super(ItemsizingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - values=kwargs.pop("values", ["trace", "constant"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ItemsizingValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='itemsizing', + parent_name='layout.legend', + **kwargs): + super(ItemsizingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + values=kwargs.pop('values', ['trace', 'constant']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/_itemwidth.py b/packages/python/plotly/plotly/validators/layout/legend/_itemwidth.py index 126c3742677..75547054ba0 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/_itemwidth.py +++ b/packages/python/plotly/plotly/validators/layout/legend/_itemwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ItemwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="itemwidth", parent_name="layout.legend", **kwargs): - super(ItemwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - min=kwargs.pop("min", 30), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ItemwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='itemwidth', + parent_name='layout.legend', + **kwargs): + super(ItemwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + min=kwargs.pop('min', 30), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/_orientation.py b/packages/python/plotly/plotly/validators/layout/legend/_orientation.py index 9cbb38bdf23..f4bcfc59622 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/_orientation.py +++ b/packages/python/plotly/plotly/validators/layout/legend/_orientation.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="orientation", parent_name="layout.legend", **kwargs - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - values=kwargs.pop("values", ["v", "h"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='layout.legend', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + values=kwargs.pop('values', ['v', 'h']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/_title.py b/packages/python/plotly/plotly/validators/layout/legend/_title.py index 25dc83b365f..17c05b7ca21 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/_title.py +++ b/packages/python/plotly/plotly/validators/layout/legend/_title.py @@ -1,30 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__(self, plotly_name="title", parent_name="layout.legend", **kwargs): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend's title font. Defaults to - `legend.font` with its size increased about - 20%. - side - Determines the location of legend's title with - respect to the legend items. Defaulted to "top" - with `orientation` is "h". Defaulted to "left" - with `orientation` is "v". The *top left* - options could be used to expand top center and - top right are for horizontal alignment legend - area in both x and y sides. - text - Sets the title of the legend. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='layout.legend', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/_tracegroupgap.py b/packages/python/plotly/plotly/validators/layout/legend/_tracegroupgap.py index f3f59779b68..52103f31ac2 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/_tracegroupgap.py +++ b/packages/python/plotly/plotly/validators/layout/legend/_tracegroupgap.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TracegroupgapValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tracegroupgap", parent_name="layout.legend", **kwargs - ): - super(TracegroupgapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TracegroupgapValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tracegroupgap', + parent_name='layout.legend', + **kwargs): + super(TracegroupgapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/_traceorder.py b/packages/python/plotly/plotly/validators/layout/legend/_traceorder.py index 96968fcb539..e162780fb6f 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/_traceorder.py +++ b/packages/python/plotly/plotly/validators/layout/legend/_traceorder.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TraceorderValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="traceorder", parent_name="layout.legend", **kwargs): - super(TraceorderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - extras=kwargs.pop("extras", ["normal"]), - flags=kwargs.pop("flags", ["reversed", "grouped"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TraceorderValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='traceorder', + parent_name='layout.legend', + **kwargs): + super(TraceorderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + extras=kwargs.pop('extras', ['normal']), + flags=kwargs.pop('flags', ['reversed', 'grouped']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/_uirevision.py b/packages/python/plotly/plotly/validators/layout/legend/_uirevision.py index a6f374e4e25..00c27a8a89f 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/_uirevision.py +++ b/packages/python/plotly/plotly/validators/layout/legend/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="layout.legend", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='layout.legend', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/_valign.py b/packages/python/plotly/plotly/validators/layout/legend/_valign.py index 34d2225f691..38cd2157df5 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/_valign.py +++ b/packages/python/plotly/plotly/validators/layout/legend/_valign.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ValignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="valign", parent_name="layout.legend", **kwargs): - super(ValignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='valign', + parent_name='layout.legend', + **kwargs): + super(ValignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/_visible.py b/packages/python/plotly/plotly/validators/layout/legend/_visible.py index 59485f0dff4..63e101abc0f 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/_visible.py +++ b/packages/python/plotly/plotly/validators/layout/legend/_visible.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="visible", parent_name="layout.legend", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='layout.legend', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/_x.py b/packages/python/plotly/plotly/validators/layout/legend/_x.py index 42aa1996ff8..1bceafaff5d 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/_x.py +++ b/packages/python/plotly/plotly/validators/layout/legend/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x", parent_name="layout.legend", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='layout.legend', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/_xanchor.py b/packages/python/plotly/plotly/validators/layout/legend/_xanchor.py index b56cc4642e5..c832a098188 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/_xanchor.py +++ b/packages/python/plotly/plotly/validators/layout/legend/_xanchor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xanchor", parent_name="layout.legend", **kwargs): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - values=kwargs.pop("values", ["auto", "left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='layout.legend', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + values=kwargs.pop('values', ['auto', 'left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/_xref.py b/packages/python/plotly/plotly/validators/layout/legend/_xref.py index 5536db69b1d..a5fb0b51207 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/_xref.py +++ b/packages/python/plotly/plotly/validators/layout/legend/_xref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xref", parent_name="layout.legend", **kwargs): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='layout.legend', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/_y.py b/packages/python/plotly/plotly/validators/layout/legend/_y.py index 4dc8d92a6fc..20fb0bef308 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/_y.py +++ b/packages/python/plotly/plotly/validators/layout/legend/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y", parent_name="layout.legend", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='layout.legend', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/_yanchor.py b/packages/python/plotly/plotly/validators/layout/legend/_yanchor.py index b1ba7325172..574cdb8adae 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/_yanchor.py +++ b/packages/python/plotly/plotly/validators/layout/legend/_yanchor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yanchor", parent_name="layout.legend", **kwargs): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - values=kwargs.pop("values", ["auto", "top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='layout.legend', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + values=kwargs.pop('values', ['auto', 'top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/_yref.py b/packages/python/plotly/plotly/validators/layout/legend/_yref.py index 2ab188db863..6e6dd5f1146 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/_yref.py +++ b/packages/python/plotly/plotly/validators/layout/legend/_yref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yref", parent_name="layout.legend", **kwargs): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='layout.legend', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/font/__init__.py b/packages/python/plotly/plotly/validators/layout/legend/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/legend/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/legend/font/_color.py b/packages/python/plotly/plotly/validators/layout/legend/font/_color.py index ea6a68fee0c..9af3a5b357e 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/font/_color.py +++ b/packages/python/plotly/plotly/validators/layout/legend/font/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="layout.legend.font", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.legend.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/font/_family.py b/packages/python/plotly/plotly/validators/layout/legend/font/_family.py index 210f8ab8f54..97f7545c6ae 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/font/_family.py +++ b/packages/python/plotly/plotly/validators/layout/legend/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="layout.legend.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.legend.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/font/_lineposition.py b/packages/python/plotly/plotly/validators/layout/legend/font/_lineposition.py index fae2867de4e..0791463baa4 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/legend/font/_lineposition.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="layout.legend.font", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.legend.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/font/_shadow.py b/packages/python/plotly/plotly/validators/layout/legend/font/_shadow.py index 9294bd2b124..d48c2814eb7 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/legend/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="layout.legend.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.legend.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/font/_size.py b/packages/python/plotly/plotly/validators/layout/legend/font/_size.py index 01966d93532..030112060fc 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/font/_size.py +++ b/packages/python/plotly/plotly/validators/layout/legend/font/_size.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="layout.legend.font", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.legend.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/font/_style.py b/packages/python/plotly/plotly/validators/layout/legend/font/_style.py index efc057b4839..08c709273d5 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/font/_style.py +++ b/packages/python/plotly/plotly/validators/layout/legend/font/_style.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="style", parent_name="layout.legend.font", **kwargs): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.legend.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/font/_textcase.py b/packages/python/plotly/plotly/validators/layout/legend/font/_textcase.py index 0e5924d7676..649ad449528 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/legend/font/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="layout.legend.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.legend.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/font/_variant.py b/packages/python/plotly/plotly/validators/layout/legend/font/_variant.py index 2b04b36786e..a1994b61e39 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/font/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/legend/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="layout.legend.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.legend.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/font/_weight.py b/packages/python/plotly/plotly/validators/layout/legend/font/_weight.py index ca77f233e88..85bb0b07c6b 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/font/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/legend/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="layout.legend.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.legend.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/__init__.py b/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_color.py b/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_color.py index f9a43a4e391..f400f2ae760 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_color.py +++ b/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.legend.grouptitlefont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.legend.grouptitlefont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_family.py b/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_family.py index ad291ffbf35..d8b46fb0af8 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_family.py +++ b/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="layout.legend.grouptitlefont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.legend.grouptitlefont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_lineposition.py b/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_lineposition.py index 8dcdaf4bf8f..cc432217a54 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.legend.grouptitlefont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.legend.grouptitlefont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_shadow.py b/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_shadow.py index b25dae8b93f..6fdaa225ee8 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="layout.legend.grouptitlefont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.legend.grouptitlefont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_size.py b/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_size.py index 31b4d96e0c1..cae945f047f 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_size.py +++ b/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="layout.legend.grouptitlefont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.legend.grouptitlefont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_style.py b/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_style.py index 5c7853b2994..54194458d56 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_style.py +++ b/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="layout.legend.grouptitlefont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.legend.grouptitlefont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_textcase.py b/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_textcase.py index 26840847c27..e98654da616 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="layout.legend.grouptitlefont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.legend.grouptitlefont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_variant.py b/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_variant.py index d37c051b530..2843b15674a 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="layout.legend.grouptitlefont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.legend.grouptitlefont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_weight.py b/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_weight.py index cd3f26ff39d..714b7444e93 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/legend/grouptitlefont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="layout.legend.grouptitlefont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.legend.grouptitlefont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/title/__init__.py b/packages/python/plotly/plotly/validators/layout/legend/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/title/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/legend/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/legend/title/_font.py b/packages/python/plotly/plotly/validators/layout/legend/title/_font.py index 06c35bdf737..8f534882944 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/title/_font.py +++ b/packages/python/plotly/plotly/validators/layout/legend/title/_font.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="layout.legend.title", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='layout.legend.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/title/_side.py b/packages/python/plotly/plotly/validators/layout/legend/title/_side.py index 42178ee3fed..0972de905f8 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/title/_side.py +++ b/packages/python/plotly/plotly/validators/layout/legend/title/_side.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="side", parent_name="layout.legend.title", **kwargs): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - values=kwargs.pop( - "values", ["top", "left", "top left", "top center", "top right"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='layout.legend.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + values=kwargs.pop('values', ['top', 'left', 'top left', 'top center', 'top right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/title/_text.py b/packages/python/plotly/plotly/validators/layout/legend/title/_text.py index 8cbb6a6429b..5f97a7e204d 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/title/_text.py +++ b/packages/python/plotly/plotly/validators/layout/legend/title/_text.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="layout.legend.title", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='layout.legend.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/title/font/__init__.py b/packages/python/plotly/plotly/validators/layout/legend/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/legend/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/legend/title/font/_color.py b/packages/python/plotly/plotly/validators/layout/legend/title/font/_color.py index 8f7592de6f6..9ce93d7ad3b 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/layout/legend/title/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.legend.title.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.legend.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/title/font/_family.py b/packages/python/plotly/plotly/validators/layout/legend/title/font/_family.py index 651858af1ff..1aa5e996a3f 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/layout/legend/title/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="layout.legend.title.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.legend.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/layout/legend/title/font/_lineposition.py index e7365f43244..81431a7a163 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/legend/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.legend.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.legend.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/title/font/_shadow.py b/packages/python/plotly/plotly/validators/layout/legend/title/font/_shadow.py index 45f0c5cd5b5..1e4cde9d916 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/legend/title/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="layout.legend.title.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.legend.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/title/font/_size.py b/packages/python/plotly/plotly/validators/layout/legend/title/font/_size.py index f4118a7ac5b..25e33366926 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/layout/legend/title/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="layout.legend.title.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.legend.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/title/font/_style.py b/packages/python/plotly/plotly/validators/layout/legend/title/font/_style.py index d9060d32fba..a26daa4e0a7 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/layout/legend/title/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="layout.legend.title.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.legend.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/title/font/_textcase.py b/packages/python/plotly/plotly/validators/layout/legend/title/font/_textcase.py index 7d11b19bebc..04cb5b42535 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/legend/title/font/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="layout.legend.title.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.legend.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/title/font/_variant.py b/packages/python/plotly/plotly/validators/layout/legend/title/font/_variant.py index df328ff10ea..aec43c81440 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/legend/title/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="layout.legend.title.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.legend.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/legend/title/font/_weight.py b/packages/python/plotly/plotly/validators/layout/legend/title/font/_weight.py index 4bb55053e75..7037296671a 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/legend/title/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="layout.legend.title.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "legend"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.legend.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'legend'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/__init__.py b/packages/python/plotly/plotly/validators/layout/map/__init__.py index 13714b4f18d..ecaccc318cc 100644 --- a/packages/python/plotly/plotly/validators/layout/map/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/map/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zoom import ZoomValidator from ._uirevision import UirevisionValidator @@ -14,20 +13,10 @@ from ._bearing import BearingValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zoom.ZoomValidator", - "._uirevision.UirevisionValidator", - "._style.StyleValidator", - "._pitch.PitchValidator", - "._layerdefaults.LayerdefaultsValidator", - "._layers.LayersValidator", - "._domain.DomainValidator", - "._center.CenterValidator", - "._bounds.BoundsValidator", - "._bearing.BearingValidator", - ], + ['._zoom.ZoomValidator', '._uirevision.UirevisionValidator', '._style.StyleValidator', '._pitch.PitchValidator', '._layerdefaults.LayerdefaultsValidator', '._layers.LayersValidator', '._domain.DomainValidator', '._center.CenterValidator', '._bounds.BoundsValidator', '._bearing.BearingValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/map/_bearing.py b/packages/python/plotly/plotly/validators/layout/map/_bearing.py index 5190be3314e..e04b4457833 100644 --- a/packages/python/plotly/plotly/validators/layout/map/_bearing.py +++ b/packages/python/plotly/plotly/validators/layout/map/_bearing.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BearingValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="bearing", parent_name="layout.map", **kwargs): - super(BearingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BearingValidator(_bv.NumberValidator): + def __init__(self, plotly_name='bearing', + parent_name='layout.map', + **kwargs): + super(BearingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/_bounds.py b/packages/python/plotly/plotly/validators/layout/map/_bounds.py index 90a912790d5..8c32ff8e600 100644 --- a/packages/python/plotly/plotly/validators/layout/map/_bounds.py +++ b/packages/python/plotly/plotly/validators/layout/map/_bounds.py @@ -1,32 +1,15 @@ -import _plotly_utils.basevalidators -class BoundsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="bounds", parent_name="layout.map", **kwargs): - super(BoundsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Bounds"), - data_docs=kwargs.pop( - "data_docs", - """ - east - Sets the maximum longitude of the map (in - degrees East) if `west`, `south` and `north` - are declared. - north - Sets the maximum latitude of the map (in - degrees North) if `east`, `west` and `south` - are declared. - south - Sets the minimum latitude of the map (in - degrees North) if `east`, `west` and `north` - are declared. - west - Sets the minimum longitude of the map (in - degrees East) if `east`, `south` and `north` - are declared. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BoundsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='bounds', + parent_name='layout.map', + **kwargs): + super(BoundsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Bounds'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/_center.py b/packages/python/plotly/plotly/validators/layout/map/_center.py index 8c4eb4cddee..f38bec8922a 100644 --- a/packages/python/plotly/plotly/validators/layout/map/_center.py +++ b/packages/python/plotly/plotly/validators/layout/map/_center.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class CenterValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="center", parent_name="layout.map", **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 center of the map (in - degrees North). - lon - Sets the longitude of the center of the map (in - degrees East). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CenterValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='center', + parent_name='layout.map', + **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', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/_domain.py b/packages/python/plotly/plotly/validators/layout/map/_domain.py index 1816945fced..188f8f953c1 100644 --- a/packages/python/plotly/plotly/validators/layout/map/_domain.py +++ b/packages/python/plotly/plotly/validators/layout/map/_domain.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="domain", parent_name="layout.map", **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 map subplot . - row - If there is a layout grid, use the domain for - this row in the grid for this map subplot . - x - Sets the horizontal domain of this map subplot - (in plot fraction). - y - Sets the vertical domain of this map subplot - (in plot fraction). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DomainValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='domain', + parent_name='layout.map', + **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', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/_layerdefaults.py b/packages/python/plotly/plotly/validators/layout/map/_layerdefaults.py index 9ab62ff5bf0..e6d6f062eaf 100644 --- a/packages/python/plotly/plotly/validators/layout/map/_layerdefaults.py +++ b/packages/python/plotly/plotly/validators/layout/map/_layerdefaults.py @@ -1,16 +1,15 @@ -import _plotly_utils.basevalidators -class LayerdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="layerdefaults", parent_name="layout.map", **kwargs): - super(LayerdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Layer"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LayerdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='layerdefaults', + parent_name='layout.map', + **kwargs): + super(LayerdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Layer'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/_layers.py b/packages/python/plotly/plotly/validators/layout/map/_layers.py index 9ace2539771..3f0558d2c3e 100644 --- a/packages/python/plotly/plotly/validators/layout/map/_layers.py +++ b/packages/python/plotly/plotly/validators/layout/map/_layers.py @@ -1,127 +1,15 @@ -import _plotly_utils.basevalidators -class LayersValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__(self, plotly_name="layers", parent_name="layout.map", **kwargs): - super(LayersValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Layer"), - data_docs=kwargs.pop( - "data_docs", - """ - below - Determines if the layer will be inserted before - the layer with the specified ID. If omitted or - set to '', the layer will be inserted above - every existing layer. - circle - :class:`plotly.graph_objects.layout.map.layer.C - ircle` instance or dict with compatible - properties - color - Sets the primary layer color. If `type` is - "circle", color corresponds to the circle color - (map.layer.paint.circle-color) If `type` is - "line", color corresponds to the line color - (map.layer.paint.line-color) If `type` is - "fill", color corresponds to the fill color - (map.layer.paint.fill-color) If `type` is - "symbol", color corresponds to the icon color - (map.layer.paint.icon-color) - coordinates - Sets the coordinates array contains [longitude, - latitude] pairs for the image corners listed in - clockwise order: top left, top right, bottom - right, bottom left. Only has an effect for - "image" `sourcetype`. - fill - :class:`plotly.graph_objects.layout.map.layer.F - ill` instance or dict with compatible - properties - line - :class:`plotly.graph_objects.layout.map.layer.L - ine` instance or dict with compatible - properties - maxzoom - Sets the maximum zoom level - (map.layer.maxzoom). At zoom levels equal to or - greater than the maxzoom, the layer will be - hidden. - minzoom - Sets the minimum zoom level - (map.layer.minzoom). At zoom levels less than - the minzoom, the layer will be hidden. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - opacity - Sets the opacity of the layer. If `type` is - "circle", opacity corresponds to the circle - opacity (map.layer.paint.circle-opacity) If - `type` is "line", opacity corresponds to the - line opacity (map.layer.paint.line-opacity) If - `type` is "fill", opacity corresponds to the - fill opacity (map.layer.paint.fill-opacity) If - `type` is "symbol", opacity corresponds to the - icon/text opacity (map.layer.paint.text- - opacity) - source - Sets the source data for this layer - (map.layer.source). When `sourcetype` is set to - "geojson", `source` can be a URL to a GeoJSON - or a GeoJSON object. When `sourcetype` is set - to "vector" or "raster", `source` can be a URL - or an array of tile URLs. When `sourcetype` is - set to "image", `source` can be a URL to an - image. - sourceattribution - Sets the attribution for this source. - sourcelayer - Specifies the layer to use from a vector tile - source (map.layer.source-layer). Required for - "vector" source type that supports multiple - layers. - sourcetype - Sets the source type for this layer, that is - the type of the layer data. - symbol - :class:`plotly.graph_objects.layout.map.layer.S - ymbol` instance or dict with compatible - properties - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - type - Sets the layer type, that is the how the layer - data set in `source` will be rendered With - `sourcetype` set to "geojson", the following - values are allowed: "circle", "line", "fill" - and "symbol". but note that "line" and "fill" - are not compatible with Point GeoJSON - geometries. With `sourcetype` set to "vector", - the following values are allowed: "circle", - "line", "fill" and "symbol". With `sourcetype` - set to "raster" or `*image*`, only the "raster" - value is allowed. - visible - Determines whether this layer is displayed -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LayersValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='layers', + parent_name='layout.map', + **kwargs): + super(LayersValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Layer'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/_pitch.py b/packages/python/plotly/plotly/validators/layout/map/_pitch.py index 33e2aafa695..06ea8ef64f5 100644 --- a/packages/python/plotly/plotly/validators/layout/map/_pitch.py +++ b/packages/python/plotly/plotly/validators/layout/map/_pitch.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class PitchValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="pitch", parent_name="layout.map", **kwargs): - super(PitchValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class PitchValidator(_bv.NumberValidator): + def __init__(self, plotly_name='pitch', + parent_name='layout.map', + **kwargs): + super(PitchValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/_style.py b/packages/python/plotly/plotly/validators/layout/map/_style.py index 8b84e2be47c..14533aabe09 100644 --- a/packages/python/plotly/plotly/validators/layout/map/_style.py +++ b/packages/python/plotly/plotly/validators/layout/map/_style.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="style", parent_name="layout.map", **kwargs): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "basic", - "carto-darkmatter", - "carto-darkmatter-nolabels", - "carto-positron", - "carto-positron-nolabels", - "carto-voyager", - "carto-voyager-nolabels", - "dark", - "light", - "open-street-map", - "outdoors", - "satellite", - "satellite-streets", - "streets", - "white-bg", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.AnyValidator): + def __init__(self, plotly_name='style', + parent_name='layout.map', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['basic', 'carto-darkmatter', 'carto-darkmatter-nolabels', 'carto-positron', 'carto-positron-nolabels', 'carto-voyager', 'carto-voyager-nolabels', 'dark', 'light', 'open-street-map', 'outdoors', 'satellite', 'satellite-streets', 'streets', 'white-bg']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/_uirevision.py b/packages/python/plotly/plotly/validators/layout/map/_uirevision.py index e859dacb589..6c16e306d42 100644 --- a/packages/python/plotly/plotly/validators/layout/map/_uirevision.py +++ b/packages/python/plotly/plotly/validators/layout/map/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="layout.map", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='layout.map', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/_zoom.py b/packages/python/plotly/plotly/validators/layout/map/_zoom.py index b9916f31727..dd34260a965 100644 --- a/packages/python/plotly/plotly/validators/layout/map/_zoom.py +++ b/packages/python/plotly/plotly/validators/layout/map/_zoom.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZoomValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zoom", parent_name="layout.map", **kwargs): - super(ZoomValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZoomValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zoom', + parent_name='layout.map', + **kwargs): + super(ZoomValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/bounds/__init__.py b/packages/python/plotly/plotly/validators/layout/map/bounds/__init__.py index c07c964cd67..3b4a12c575f 100644 --- a/packages/python/plotly/plotly/validators/layout/map/bounds/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/map/bounds/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._west import WestValidator from ._south import SouthValidator @@ -8,14 +7,10 @@ from ._east import EastValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._west.WestValidator", - "._south.SouthValidator", - "._north.NorthValidator", - "._east.EastValidator", - ], + ['._west.WestValidator', '._south.SouthValidator', '._north.NorthValidator', '._east.EastValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/map/bounds/_east.py b/packages/python/plotly/plotly/validators/layout/map/bounds/_east.py index 82f489f5fd6..0a1adfe345f 100644 --- a/packages/python/plotly/plotly/validators/layout/map/bounds/_east.py +++ b/packages/python/plotly/plotly/validators/layout/map/bounds/_east.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class EastValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="east", parent_name="layout.map.bounds", **kwargs): - super(EastValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EastValidator(_bv.NumberValidator): + def __init__(self, plotly_name='east', + parent_name='layout.map.bounds', + **kwargs): + super(EastValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/bounds/_north.py b/packages/python/plotly/plotly/validators/layout/map/bounds/_north.py index a8eb320ed26..e25fdbcb9cb 100644 --- a/packages/python/plotly/plotly/validators/layout/map/bounds/_north.py +++ b/packages/python/plotly/plotly/validators/layout/map/bounds/_north.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NorthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="north", parent_name="layout.map.bounds", **kwargs): - super(NorthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NorthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='north', + parent_name='layout.map.bounds', + **kwargs): + super(NorthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/bounds/_south.py b/packages/python/plotly/plotly/validators/layout/map/bounds/_south.py index c1259da69a4..9524f464a91 100644 --- a/packages/python/plotly/plotly/validators/layout/map/bounds/_south.py +++ b/packages/python/plotly/plotly/validators/layout/map/bounds/_south.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SouthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="south", parent_name="layout.map.bounds", **kwargs): - super(SouthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SouthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='south', + parent_name='layout.map.bounds', + **kwargs): + super(SouthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/bounds/_west.py b/packages/python/plotly/plotly/validators/layout/map/bounds/_west.py index 6e7d7d26f8e..e703c89bcd4 100644 --- a/packages/python/plotly/plotly/validators/layout/map/bounds/_west.py +++ b/packages/python/plotly/plotly/validators/layout/map/bounds/_west.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class WestValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="west", parent_name="layout.map.bounds", **kwargs): - super(WestValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WestValidator(_bv.NumberValidator): + def __init__(self, plotly_name='west', + parent_name='layout.map.bounds', + **kwargs): + super(WestValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/center/__init__.py b/packages/python/plotly/plotly/validators/layout/map/center/__init__.py index a723b74f147..afd2812dadd 100644 --- a/packages/python/plotly/plotly/validators/layout/map/center/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/map/center/__init__.py @@ -1,12 +1,14 @@ 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"] + __name__, + [], + ['._lon.LonValidator', '._lat.LatValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/map/center/_lat.py b/packages/python/plotly/plotly/validators/layout/map/center/_lat.py index 103eaa50983..5380fff5f83 100644 --- a/packages/python/plotly/plotly/validators/layout/map/center/_lat.py +++ b/packages/python/plotly/plotly/validators/layout/map/center/_lat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LatValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="lat", parent_name="layout.map.center", **kwargs): - super(LatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LatValidator(_bv.NumberValidator): + def __init__(self, plotly_name='lat', + parent_name='layout.map.center', + **kwargs): + super(LatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/center/_lon.py b/packages/python/plotly/plotly/validators/layout/map/center/_lon.py index 92ac5de39f2..a2cfa01e02e 100644 --- a/packages/python/plotly/plotly/validators/layout/map/center/_lon.py +++ b/packages/python/plotly/plotly/validators/layout/map/center/_lon.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LonValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="lon", parent_name="layout.map.center", **kwargs): - super(LonValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LonValidator(_bv.NumberValidator): + def __init__(self, plotly_name='lon', + parent_name='layout.map.center', + **kwargs): + super(LonValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/domain/__init__.py b/packages/python/plotly/plotly/validators/layout/map/domain/__init__.py index 67de5030d0a..705a2194402 100644 --- a/packages/python/plotly/plotly/validators/layout/map/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/map/domain/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._y import YValidator from ._x import XValidator @@ -8,14 +7,10 @@ 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", - ], + ['._y.YValidator', '._x.XValidator', '._row.RowValidator', '._column.ColumnValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/map/domain/_column.py b/packages/python/plotly/plotly/validators/layout/map/domain/_column.py index 1edcaf12d1e..b8e8ea72b72 100644 --- a/packages/python/plotly/plotly/validators/layout/map/domain/_column.py +++ b/packages/python/plotly/plotly/validators/layout/map/domain/_column.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="column", parent_name="layout.map.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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColumnValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='column', + parent_name='layout.map.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/domain/_row.py b/packages/python/plotly/plotly/validators/layout/map/domain/_row.py index bbe67e36d9b..1cf2806d89b 100644 --- a/packages/python/plotly/plotly/validators/layout/map/domain/_row.py +++ b/packages/python/plotly/plotly/validators/layout/map/domain/_row.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="row", parent_name="layout.map.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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RowValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='row', + parent_name='layout.map.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/domain/_x.py b/packages/python/plotly/plotly/validators/layout/map/domain/_x.py index 91c2b9a1c47..670baad2a82 100644 --- a/packages/python/plotly/plotly/validators/layout/map/domain/_x.py +++ b/packages/python/plotly/plotly/validators/layout/map/domain/_x.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="x", parent_name="layout.map.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, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='x', + parent_name='layout.map.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/domain/_y.py b/packages/python/plotly/plotly/validators/layout/map/domain/_y.py index 9fe193fee8f..cf92fd9118b 100644 --- a/packages/python/plotly/plotly/validators/layout/map/domain/_y.py +++ b/packages/python/plotly/plotly/validators/layout/map/domain/_y.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="y", parent_name="layout.map.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, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='y', + parent_name='layout.map.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/__init__.py b/packages/python/plotly/plotly/validators/layout/map/layer/__init__.py index 93e08a556b2..69185aed4fb 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._type import TypeValidator @@ -22,28 +21,10 @@ from ._below import BelowValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._type.TypeValidator", - "._templateitemname.TemplateitemnameValidator", - "._symbol.SymbolValidator", - "._sourcetype.SourcetypeValidator", - "._sourcelayer.SourcelayerValidator", - "._sourceattribution.SourceattributionValidator", - "._source.SourceValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._minzoom.MinzoomValidator", - "._maxzoom.MaxzoomValidator", - "._line.LineValidator", - "._fill.FillValidator", - "._coordinates.CoordinatesValidator", - "._color.ColorValidator", - "._circle.CircleValidator", - "._below.BelowValidator", - ], + ['._visible.VisibleValidator', '._type.TypeValidator', '._templateitemname.TemplateitemnameValidator', '._symbol.SymbolValidator', '._sourcetype.SourcetypeValidator', '._sourcelayer.SourcelayerValidator', '._sourceattribution.SourceattributionValidator', '._source.SourceValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._minzoom.MinzoomValidator', '._maxzoom.MaxzoomValidator', '._line.LineValidator', '._fill.FillValidator', '._coordinates.CoordinatesValidator', '._color.ColorValidator', '._circle.CircleValidator', '._below.BelowValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/_below.py b/packages/python/plotly/plotly/validators/layout/map/layer/_below.py index 6cca251a6e6..1e073e45f97 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/_below.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/_below.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BelowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="below", parent_name="layout.map.layer", **kwargs): - super(BelowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BelowValidator(_bv.StringValidator): + def __init__(self, plotly_name='below', + parent_name='layout.map.layer', + **kwargs): + super(BelowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/_circle.py b/packages/python/plotly/plotly/validators/layout/map/layer/_circle.py index 1aa48e43fe8..0c4a9eb2f59 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/_circle.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/_circle.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class CircleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="circle", parent_name="layout.map.layer", **kwargs): - super(CircleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Circle"), - data_docs=kwargs.pop( - "data_docs", - """ - radius - Sets the circle radius (map.layer.paint.circle- - radius). Has an effect only when `type` is set - to "circle". -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CircleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='circle', + parent_name='layout.map.layer', + **kwargs): + super(CircleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Circle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/_color.py b/packages/python/plotly/plotly/validators/layout/map/layer/_color.py index 97359cfbc6c..a0c565f6ce0 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/_color.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="layout.map.layer", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.map.layer', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/_coordinates.py b/packages/python/plotly/plotly/validators/layout/map/layer/_coordinates.py index f7a91cbc538..40d117c2884 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/_coordinates.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/_coordinates.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CoordinatesValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="coordinates", parent_name="layout.map.layer", **kwargs - ): - super(CoordinatesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CoordinatesValidator(_bv.AnyValidator): + def __init__(self, plotly_name='coordinates', + parent_name='layout.map.layer', + **kwargs): + super(CoordinatesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/_fill.py b/packages/python/plotly/plotly/validators/layout/map/layer/_fill.py index 1b9742afc40..1abe8bb6cdd 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/_fill.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/_fill.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class FillValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="fill", parent_name="layout.map.layer", **kwargs): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Fill"), - data_docs=kwargs.pop( - "data_docs", - """ - outlinecolor - Sets the fill outline color - (map.layer.paint.fill-outline-color). Has an - effect only when `type` is set to "fill". -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='fill', + parent_name='layout.map.layer', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Fill'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/_line.py b/packages/python/plotly/plotly/validators/layout/map/layer/_line.py index 82872348c2c..aef40ae3794 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/_line.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/_line.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="layout.map.layer", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - dash - Sets the length of dashes and gaps - (map.layer.paint.line-dasharray). Has an effect - only when `type` is set to "line". - dashsrc - Sets the source reference on Chart Studio Cloud - for `dash`. - width - Sets the line width (map.layer.paint.line- - width). Has an effect only when `type` is set - to "line". -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='layout.map.layer', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/_maxzoom.py b/packages/python/plotly/plotly/validators/layout/map/layer/_maxzoom.py index 9d44e32c319..bb32c10f246 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/_maxzoom.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/_maxzoom.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxzoomValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="maxzoom", parent_name="layout.map.layer", **kwargs): - super(MaxzoomValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 24), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxzoomValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxzoom', + parent_name='layout.map.layer', + **kwargs): + super(MaxzoomValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 24), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/_minzoom.py b/packages/python/plotly/plotly/validators/layout/map/layer/_minzoom.py index efce76e2df3..6aa6695933a 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/_minzoom.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/_minzoom.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class MinzoomValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="minzoom", parent_name="layout.map.layer", **kwargs): - super(MinzoomValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 24), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinzoomValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minzoom', + parent_name='layout.map.layer', + **kwargs): + super(MinzoomValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 24), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/_name.py b/packages/python/plotly/plotly/validators/layout/map/layer/_name.py index 8b1a0d8b7c3..2e4a7f555a0 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/_name.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="layout.map.layer", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='layout.map.layer', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/_opacity.py b/packages/python/plotly/plotly/validators/layout/map/layer/_opacity.py index 00314bdd7e4..9d781253b5e 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/_opacity.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="layout.map.layer", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='layout.map.layer', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/_source.py b/packages/python/plotly/plotly/validators/layout/map/layer/_source.py index fcbb4f5b1b3..b743b8a0dfa 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/_source.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/_source.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SourceValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="source", parent_name="layout.map.layer", **kwargs): - super(SourceValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SourceValidator(_bv.AnyValidator): + def __init__(self, plotly_name='source', + parent_name='layout.map.layer', + **kwargs): + super(SourceValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/_sourceattribution.py b/packages/python/plotly/plotly/validators/layout/map/layer/_sourceattribution.py index dc43e5f8feb..33f401290e9 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/_sourceattribution.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/_sourceattribution.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SourceattributionValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="sourceattribution", parent_name="layout.map.layer", **kwargs - ): - super(SourceattributionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SourceattributionValidator(_bv.StringValidator): + def __init__(self, plotly_name='sourceattribution', + parent_name='layout.map.layer', + **kwargs): + super(SourceattributionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/_sourcelayer.py b/packages/python/plotly/plotly/validators/layout/map/layer/_sourcelayer.py index 61a15d14fe5..2f52c389d48 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/_sourcelayer.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/_sourcelayer.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SourcelayerValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="sourcelayer", parent_name="layout.map.layer", **kwargs - ): - super(SourcelayerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SourcelayerValidator(_bv.StringValidator): + def __init__(self, plotly_name='sourcelayer', + parent_name='layout.map.layer', + **kwargs): + super(SourcelayerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/_sourcetype.py b/packages/python/plotly/plotly/validators/layout/map/layer/_sourcetype.py index 55bd4904061..4845b53ceed 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/_sourcetype.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/_sourcetype.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SourcetypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="sourcetype", parent_name="layout.map.layer", **kwargs - ): - super(SourcetypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["geojson", "vector", "raster", "image"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SourcetypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='sourcetype', + parent_name='layout.map.layer', + **kwargs): + super(SourcetypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['geojson', 'vector', 'raster', 'image']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/_symbol.py b/packages/python/plotly/plotly/validators/layout/map/layer/_symbol.py index 1192a69a57a..07e842a96b8 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/_symbol.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/_symbol.py @@ -1,44 +1,15 @@ -import _plotly_utils.basevalidators -class SymbolValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="symbol", parent_name="layout.map.layer", **kwargs): - super(SymbolValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Symbol"), - data_docs=kwargs.pop( - "data_docs", - """ - icon - Sets the symbol icon image - (map.layer.layout.icon-image). Full list: - https://www.map.com/maki-icons/ - iconsize - Sets the symbol icon size - (map.layer.layout.icon-size). Has an effect - only when `type` is set to "symbol". - placement - Sets the symbol and/or text placement - (map.layer.layout.symbol-placement). If - `placement` is "point", the label is placed - where the geometry is located If `placement` is - "line", the label is placed along the line of - the geometry If `placement` is "line-center", - the label is placed on the center of the - geometry - text - Sets the symbol text (map.layer.layout.text- - field). - textfont - Sets the icon text font - (color=map.layer.paint.text-color, - size=map.layer.layout.text-size). Has an effect - only when `type` is set to "symbol". - textposition - Sets the positions of the `text` elements with - respects to the (x,y) coordinates. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SymbolValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='symbol', + parent_name='layout.map.layer', + **kwargs): + super(SymbolValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Symbol'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/_templateitemname.py b/packages/python/plotly/plotly/validators/layout/map/layer/_templateitemname.py index 6e9cb4fffa4..7afb614af60 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/_templateitemname.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="templateitemname", parent_name="layout.map.layer", **kwargs - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='layout.map.layer', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/_type.py b/packages/python/plotly/plotly/validators/layout/map/layer/_type.py index 5a88a153980..e0e314c894b 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/_type.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/_type.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="type", parent_name="layout.map.layer", **kwargs): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["circle", "line", "fill", "symbol", "raster"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='layout.map.layer', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['circle', 'line', 'fill', 'symbol', 'raster']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/_visible.py b/packages/python/plotly/plotly/validators/layout/map/layer/_visible.py index dbf3fb48ffa..426fb107e94 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/_visible.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/_visible.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="visible", parent_name="layout.map.layer", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='layout.map.layer', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/circle/__init__.py b/packages/python/plotly/plotly/validators/layout/map/layer/circle/__init__.py index 659abf22fbf..1d3da533f8a 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/circle/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/circle/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._radius import RadiusValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._radius.RadiusValidator"] + __name__, + [], + ['._radius.RadiusValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/circle/_radius.py b/packages/python/plotly/plotly/validators/layout/map/layer/circle/_radius.py index 36d8020c130..d8a5891666a 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/circle/_radius.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/circle/_radius.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class RadiusValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="radius", parent_name="layout.map.layer.circle", **kwargs - ): - super(RadiusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RadiusValidator(_bv.NumberValidator): + def __init__(self, plotly_name='radius', + parent_name='layout.map.layer.circle', + **kwargs): + super(RadiusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/fill/__init__.py b/packages/python/plotly/plotly/validators/layout/map/layer/fill/__init__.py index 722f28333c9..57d5fdf5f86 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/fill/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/fill/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._outlinecolor import OutlinecolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._outlinecolor.OutlinecolorValidator"] + __name__, + [], + ['._outlinecolor.OutlinecolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/fill/_outlinecolor.py b/packages/python/plotly/plotly/validators/layout/map/layer/fill/_outlinecolor.py index 71a131968f6..c54390eb497 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/fill/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/fill/_outlinecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="outlinecolor", parent_name="layout.map.layer.fill", **kwargs - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='layout.map.layer.fill', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/line/__init__.py b/packages/python/plotly/plotly/validators/layout/map/layer/line/__init__.py index e2f415ff5bd..f8363a44c3a 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/line/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/line/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._dashsrc import DashsrcValidator from ._dash import DashValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._dashsrc.DashsrcValidator", - "._dash.DashValidator", - ], + ['._width.WidthValidator', '._dashsrc.DashsrcValidator', '._dash.DashValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/line/_dash.py b/packages/python/plotly/plotly/validators/layout/map/layer/line/_dash.py index 22f56eb1cd1..069aa6cdb24 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/line/_dash.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/line/_dash.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class DashValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="dash", parent_name="layout.map.layer.line", **kwargs - ): - super(DashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DashValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='dash', + parent_name='layout.map.layer.line', + **kwargs): + super(DashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/line/_dashsrc.py b/packages/python/plotly/plotly/validators/layout/map/layer/line/_dashsrc.py index 5030f6bebfd..208afc610a5 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/line/_dashsrc.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/line/_dashsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class DashsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="dashsrc", parent_name="layout.map.layer.line", **kwargs - ): - super(DashsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DashsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='dashsrc', + parent_name='layout.map.layer.line', + **kwargs): + super(DashsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/line/_width.py b/packages/python/plotly/plotly/validators/layout/map/layer/line/_width.py index b61a9d03f46..3c9be79ec25 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/line/_width.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/line/_width.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="layout.map.layer.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='layout.map.layer.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/symbol/__init__.py b/packages/python/plotly/plotly/validators/layout/map/layer/symbol/__init__.py index 2b890e661ef..caa86bc53b5 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/symbol/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/symbol/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._textposition import TextpositionValidator from ._textfont import TextfontValidator @@ -10,16 +9,10 @@ from ._icon import IconValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._textposition.TextpositionValidator", - "._textfont.TextfontValidator", - "._text.TextValidator", - "._placement.PlacementValidator", - "._iconsize.IconsizeValidator", - "._icon.IconValidator", - ], + ['._textposition.TextpositionValidator', '._textfont.TextfontValidator', '._text.TextValidator', '._placement.PlacementValidator', '._iconsize.IconsizeValidator', '._icon.IconValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/symbol/_icon.py b/packages/python/plotly/plotly/validators/layout/map/layer/symbol/_icon.py index dcdf5a51302..67f45a5dc35 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/symbol/_icon.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/symbol/_icon.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class IconValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="icon", parent_name="layout.map.layer.symbol", **kwargs - ): - super(IconValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class IconValidator(_bv.StringValidator): + def __init__(self, plotly_name='icon', + parent_name='layout.map.layer.symbol', + **kwargs): + super(IconValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/symbol/_iconsize.py b/packages/python/plotly/plotly/validators/layout/map/layer/symbol/_iconsize.py index 781d1924460..9e92c0833ad 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/symbol/_iconsize.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/symbol/_iconsize.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class IconsizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="iconsize", parent_name="layout.map.layer.symbol", **kwargs - ): - super(IconsizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class IconsizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='iconsize', + parent_name='layout.map.layer.symbol', + **kwargs): + super(IconsizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/symbol/_placement.py b/packages/python/plotly/plotly/validators/layout/map/layer/symbol/_placement.py index 2a238139499..c70f3f5f9ba 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/symbol/_placement.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/symbol/_placement.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class PlacementValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="placement", parent_name="layout.map.layer.symbol", **kwargs - ): - super(PlacementValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["point", "line", "line-center"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class PlacementValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='placement', + parent_name='layout.map.layer.symbol', + **kwargs): + super(PlacementValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['point', 'line', 'line-center']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/symbol/_text.py b/packages/python/plotly/plotly/validators/layout/map/layer/symbol/_text.py index a7e3de35b69..7492ee4089c 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/symbol/_text.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/symbol/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="layout.map.layer.symbol", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='layout.map.layer.symbol', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/symbol/_textfont.py b/packages/python/plotly/plotly/validators/layout/map/layer/symbol/_textfont.py index d2e2100b83e..18450acccf0 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/symbol/_textfont.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/symbol/_textfont.py @@ -1,44 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="textfont", parent_name="layout.map.layer.symbol", **kwargs - ): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='layout.map.layer.symbol', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/symbol/_textposition.py b/packages/python/plotly/plotly/validators/layout/map/layer/symbol/_textposition.py index bd33675f9d6..fe9a3c3a47f 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/symbol/_textposition.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/symbol/_textposition.py @@ -1,31 +1,15 @@ -import _plotly_utils.basevalidators -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textposition", - parent_name="layout.map.layer.symbol", - **kwargs, - ): - super(TextpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "top left", - "top center", - "top right", - "middle left", - "middle center", - "middle right", - "bottom left", - "bottom center", - "bottom right", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textposition', + parent_name='layout.map.layer.symbol', + **kwargs): + super(TextpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['top left', 'top center', 'top right', 'middle left', 'middle center', 'middle right', 'bottom left', 'bottom center', 'bottom right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/symbol/textfont/__init__.py b/packages/python/plotly/plotly/validators/layout/map/layer/symbol/textfont/__init__.py index 9301c0688ce..47e012a7900 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/symbol/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/symbol/textfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._style import StyleValidator @@ -9,15 +8,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._style.StyleValidator', '._size.SizeValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/symbol/textfont/_color.py b/packages/python/plotly/plotly/validators/layout/map/layer/symbol/textfont/_color.py index dae1cc10504..4535288a943 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/symbol/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/symbol/textfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="layout.map.layer.symbol.textfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.map.layer.symbol.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/symbol/textfont/_family.py b/packages/python/plotly/plotly/validators/layout/map/layer/symbol/textfont/_family.py index d0eae613de9..d8985331e9c 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/symbol/textfont/_family.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/symbol/textfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="layout.map.layer.symbol.textfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.map.layer.symbol.textfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/symbol/textfont/_size.py b/packages/python/plotly/plotly/validators/layout/map/layer/symbol/textfont/_size.py index 3d73bc2cd72..2bf4a91d719 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/symbol/textfont/_size.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/symbol/textfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="layout.map.layer.symbol.textfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.map.layer.symbol.textfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/symbol/textfont/_style.py b/packages/python/plotly/plotly/validators/layout/map/layer/symbol/textfont/_style.py index 67ccc17c093..f1ebc789258 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/symbol/textfont/_style.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/symbol/textfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="layout.map.layer.symbol.textfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.map.layer.symbol.textfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/map/layer/symbol/textfont/_weight.py b/packages/python/plotly/plotly/validators/layout/map/layer/symbol/textfont/_weight.py index 8ecec966507..1fd3911d83a 100644 --- a/packages/python/plotly/plotly/validators/layout/map/layer/symbol/textfont/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/map/layer/symbol/textfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="layout.map.layer.symbol.textfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.map.layer.symbol.textfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/__init__.py b/packages/python/plotly/plotly/validators/layout/mapbox/__init__.py index 5e56f18ab58..77b133570f3 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zoom import ZoomValidator from ._uirevision import UirevisionValidator @@ -15,21 +14,10 @@ from ._accesstoken import AccesstokenValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zoom.ZoomValidator", - "._uirevision.UirevisionValidator", - "._style.StyleValidator", - "._pitch.PitchValidator", - "._layerdefaults.LayerdefaultsValidator", - "._layers.LayersValidator", - "._domain.DomainValidator", - "._center.CenterValidator", - "._bounds.BoundsValidator", - "._bearing.BearingValidator", - "._accesstoken.AccesstokenValidator", - ], + ['._zoom.ZoomValidator', '._uirevision.UirevisionValidator', '._style.StyleValidator', '._pitch.PitchValidator', '._layerdefaults.LayerdefaultsValidator', '._layers.LayersValidator', '._domain.DomainValidator', '._center.CenterValidator', '._bounds.BoundsValidator', '._bearing.BearingValidator', '._accesstoken.AccesstokenValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/_accesstoken.py b/packages/python/plotly/plotly/validators/layout/mapbox/_accesstoken.py index 8567b7bc773..6fe574842ca 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/_accesstoken.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/_accesstoken.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AccesstokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="accesstoken", parent_name="layout.mapbox", **kwargs - ): - super(AccesstokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AccesstokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='accesstoken', + parent_name='layout.mapbox', + **kwargs): + super(AccesstokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/_bearing.py b/packages/python/plotly/plotly/validators/layout/mapbox/_bearing.py index cc1ce00d7b2..76d1c2e0784 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/_bearing.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/_bearing.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BearingValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="bearing", parent_name="layout.mapbox", **kwargs): - super(BearingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BearingValidator(_bv.NumberValidator): + def __init__(self, plotly_name='bearing', + parent_name='layout.mapbox', + **kwargs): + super(BearingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/_bounds.py b/packages/python/plotly/plotly/validators/layout/mapbox/_bounds.py index b554f795254..f06cbde8de9 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/_bounds.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/_bounds.py @@ -1,32 +1,15 @@ -import _plotly_utils.basevalidators -class BoundsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="bounds", parent_name="layout.mapbox", **kwargs): - super(BoundsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Bounds"), - data_docs=kwargs.pop( - "data_docs", - """ - east - Sets the maximum longitude of the map (in - degrees East) if `west`, `south` and `north` - are declared. - north - Sets the maximum latitude of the map (in - degrees North) if `east`, `west` and `south` - are declared. - south - Sets the minimum latitude of the map (in - degrees North) if `east`, `west` and `north` - are declared. - west - Sets the minimum longitude of the map (in - degrees East) if `east`, `south` and `north` - are declared. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BoundsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='bounds', + parent_name='layout.mapbox', + **kwargs): + super(BoundsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Bounds'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/_center.py b/packages/python/plotly/plotly/validators/layout/mapbox/_center.py index 0f0eae132c2..ed6bd60d584 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/_center.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/_center.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class CenterValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="center", parent_name="layout.mapbox", **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 center of the map (in - degrees North). - lon - Sets the longitude of the center of the map (in - degrees East). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CenterValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='center', + parent_name='layout.mapbox', + **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', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/_domain.py b/packages/python/plotly/plotly/validators/layout/mapbox/_domain.py index e810f05b7a1..c504cda1d71 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/_domain.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/_domain.py @@ -1,29 +1,15 @@ -import _plotly_utils.basevalidators -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="domain", parent_name="layout.mapbox", **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 mapbox subplot - . - row - If there is a layout grid, use the domain for - this row in the grid for this mapbox subplot . - x - Sets the horizontal domain of this mapbox - subplot (in plot fraction). - y - Sets the vertical domain of this mapbox subplot - (in plot fraction). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DomainValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='domain', + parent_name='layout.mapbox', + **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', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/_layerdefaults.py b/packages/python/plotly/plotly/validators/layout/mapbox/_layerdefaults.py index e4d0461dfc2..6d3a83d6135 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/_layerdefaults.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/_layerdefaults.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LayerdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="layerdefaults", parent_name="layout.mapbox", **kwargs - ): - super(LayerdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Layer"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LayerdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='layerdefaults', + parent_name='layout.mapbox', + **kwargs): + super(LayerdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Layer'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/_layers.py b/packages/python/plotly/plotly/validators/layout/mapbox/_layers.py index 65230282144..de82fa4bb97 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/_layers.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/_layers.py @@ -1,127 +1,15 @@ -import _plotly_utils.basevalidators -class LayersValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__(self, plotly_name="layers", parent_name="layout.mapbox", **kwargs): - super(LayersValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Layer"), - data_docs=kwargs.pop( - "data_docs", - """ - below - Determines if the layer will be inserted before - the layer with the specified ID. If omitted or - set to '', the layer will be inserted above - every existing layer. - circle - :class:`plotly.graph_objects.layout.mapbox.laye - r.Circle` instance or dict with compatible - properties - color - Sets the primary layer color. If `type` is - "circle", color corresponds to the circle color - (mapbox.layer.paint.circle-color) If `type` is - "line", color corresponds to the line color - (mapbox.layer.paint.line-color) If `type` is - "fill", color corresponds to the fill color - (mapbox.layer.paint.fill-color) If `type` is - "symbol", color corresponds to the icon color - (mapbox.layer.paint.icon-color) - coordinates - Sets the coordinates array contains [longitude, - latitude] pairs for the image corners listed in - clockwise order: top left, top right, bottom - right, bottom left. Only has an effect for - "image" `sourcetype`. - fill - :class:`plotly.graph_objects.layout.mapbox.laye - r.Fill` instance or dict with compatible - properties - line - :class:`plotly.graph_objects.layout.mapbox.laye - r.Line` instance or dict with compatible - properties - maxzoom - Sets the maximum zoom level - (mapbox.layer.maxzoom). At zoom levels equal to - or greater than the maxzoom, the layer will be - hidden. - minzoom - Sets the minimum zoom level - (mapbox.layer.minzoom). At zoom levels less - than the minzoom, the layer will be hidden. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - opacity - Sets the opacity of the layer. If `type` is - "circle", opacity corresponds to the circle - opacity (mapbox.layer.paint.circle-opacity) If - `type` is "line", opacity corresponds to the - line opacity (mapbox.layer.paint.line-opacity) - If `type` is "fill", opacity corresponds to the - fill opacity (mapbox.layer.paint.fill-opacity) - If `type` is "symbol", opacity corresponds to - the icon/text opacity (mapbox.layer.paint.text- - opacity) - source - Sets the source data for this layer - (mapbox.layer.source). When `sourcetype` is set - to "geojson", `source` can be a URL to a - GeoJSON or a GeoJSON object. When `sourcetype` - is set to "vector" or "raster", `source` can be - a URL or an array of tile URLs. When - `sourcetype` is set to "image", `source` can be - a URL to an image. - sourceattribution - Sets the attribution for this source. - sourcelayer - Specifies the layer to use from a vector tile - source (mapbox.layer.source-layer). Required - for "vector" source type that supports multiple - layers. - sourcetype - Sets the source type for this layer, that is - the type of the layer data. - symbol - :class:`plotly.graph_objects.layout.mapbox.laye - r.Symbol` instance or dict with compatible - properties - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - type - Sets the layer type, that is the how the layer - data set in `source` will be rendered With - `sourcetype` set to "geojson", the following - values are allowed: "circle", "line", "fill" - and "symbol". but note that "line" and "fill" - are not compatible with Point GeoJSON - geometries. With `sourcetype` set to "vector", - the following values are allowed: "circle", - "line", "fill" and "symbol". With `sourcetype` - set to "raster" or `*image*`, only the "raster" - value is allowed. - visible - Determines whether this layer is displayed -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LayersValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='layers', + parent_name='layout.mapbox', + **kwargs): + super(LayersValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Layer'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/_pitch.py b/packages/python/plotly/plotly/validators/layout/mapbox/_pitch.py index c0e5ef9130c..bd076e957d7 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/_pitch.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/_pitch.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class PitchValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="pitch", parent_name="layout.mapbox", **kwargs): - super(PitchValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class PitchValidator(_bv.NumberValidator): + def __init__(self, plotly_name='pitch', + parent_name='layout.mapbox', + **kwargs): + super(PitchValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/_style.py b/packages/python/plotly/plotly/validators/layout/mapbox/_style.py index ee96f7f6818..c337ba8a40e 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/_style.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/_style.py @@ -1,30 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="style", parent_name="layout.mapbox", **kwargs): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "basic", - "streets", - "outdoors", - "light", - "dark", - "satellite", - "satellite-streets", - "carto-darkmatter", - "carto-positron", - "open-street-map", - "stamen-terrain", - "stamen-toner", - "stamen-watercolor", - "white-bg", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.AnyValidator): + def __init__(self, plotly_name='style', + parent_name='layout.mapbox', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['basic', 'streets', 'outdoors', 'light', 'dark', 'satellite', 'satellite-streets', 'carto-darkmatter', 'carto-positron', 'open-street-map', 'stamen-terrain', 'stamen-toner', 'stamen-watercolor', 'white-bg']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/_uirevision.py b/packages/python/plotly/plotly/validators/layout/mapbox/_uirevision.py index 1545116a044..506efd10033 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/_uirevision.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="layout.mapbox", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='layout.mapbox', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/_zoom.py b/packages/python/plotly/plotly/validators/layout/mapbox/_zoom.py index 9fb8fdee9de..56b97a0c296 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/_zoom.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/_zoom.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZoomValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="zoom", parent_name="layout.mapbox", **kwargs): - super(ZoomValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZoomValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zoom', + parent_name='layout.mapbox', + **kwargs): + super(ZoomValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/bounds/__init__.py b/packages/python/plotly/plotly/validators/layout/mapbox/bounds/__init__.py index c07c964cd67..3b4a12c575f 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/bounds/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/bounds/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._west import WestValidator from ._south import SouthValidator @@ -8,14 +7,10 @@ from ._east import EastValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._west.WestValidator", - "._south.SouthValidator", - "._north.NorthValidator", - "._east.EastValidator", - ], + ['._west.WestValidator', '._south.SouthValidator', '._north.NorthValidator', '._east.EastValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/bounds/_east.py b/packages/python/plotly/plotly/validators/layout/mapbox/bounds/_east.py index c497d0a2746..6a00f433899 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/bounds/_east.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/bounds/_east.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class EastValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="east", parent_name="layout.mapbox.bounds", **kwargs - ): - super(EastValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class EastValidator(_bv.NumberValidator): + def __init__(self, plotly_name='east', + parent_name='layout.mapbox.bounds', + **kwargs): + super(EastValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/bounds/_north.py b/packages/python/plotly/plotly/validators/layout/mapbox/bounds/_north.py index 5250ce0ce5e..1f05fc8e5d8 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/bounds/_north.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/bounds/_north.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NorthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="north", parent_name="layout.mapbox.bounds", **kwargs - ): - super(NorthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NorthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='north', + parent_name='layout.mapbox.bounds', + **kwargs): + super(NorthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/bounds/_south.py b/packages/python/plotly/plotly/validators/layout/mapbox/bounds/_south.py index 4175c1c4b51..3c4409a55ec 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/bounds/_south.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/bounds/_south.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SouthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="south", parent_name="layout.mapbox.bounds", **kwargs - ): - super(SouthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SouthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='south', + parent_name='layout.mapbox.bounds', + **kwargs): + super(SouthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/bounds/_west.py b/packages/python/plotly/plotly/validators/layout/mapbox/bounds/_west.py index 9e51a1794fe..968fbd19d0b 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/bounds/_west.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/bounds/_west.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WestValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="west", parent_name="layout.mapbox.bounds", **kwargs - ): - super(WestValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WestValidator(_bv.NumberValidator): + def __init__(self, plotly_name='west', + parent_name='layout.mapbox.bounds', + **kwargs): + super(WestValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/center/__init__.py b/packages/python/plotly/plotly/validators/layout/mapbox/center/__init__.py index a723b74f147..afd2812dadd 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/center/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/center/__init__.py @@ -1,12 +1,14 @@ 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"] + __name__, + [], + ['._lon.LonValidator', '._lat.LatValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/center/_lat.py b/packages/python/plotly/plotly/validators/layout/mapbox/center/_lat.py index 199ab106d36..ff87ecdff5c 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/center/_lat.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/center/_lat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LatValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="lat", parent_name="layout.mapbox.center", **kwargs): - super(LatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LatValidator(_bv.NumberValidator): + def __init__(self, plotly_name='lat', + parent_name='layout.mapbox.center', + **kwargs): + super(LatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/center/_lon.py b/packages/python/plotly/plotly/validators/layout/mapbox/center/_lon.py index adcee9d1832..26d8d8012c6 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/center/_lon.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/center/_lon.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LonValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="lon", parent_name="layout.mapbox.center", **kwargs): - super(LonValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LonValidator(_bv.NumberValidator): + def __init__(self, plotly_name='lon', + parent_name='layout.mapbox.center', + **kwargs): + super(LonValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/domain/__init__.py b/packages/python/plotly/plotly/validators/layout/mapbox/domain/__init__.py index 67de5030d0a..705a2194402 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/domain/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._y import YValidator from ._x import XValidator @@ -8,14 +7,10 @@ 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", - ], + ['._y.YValidator', '._x.XValidator', '._row.RowValidator', '._column.ColumnValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/domain/_column.py b/packages/python/plotly/plotly/validators/layout/mapbox/domain/_column.py index 2f4cf0cddf4..e913de49270 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/domain/_column.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/domain/_column.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="column", parent_name="layout.mapbox.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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColumnValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='column', + parent_name='layout.mapbox.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/domain/_row.py b/packages/python/plotly/plotly/validators/layout/mapbox/domain/_row.py index efed263ed5d..ff5d10fab56 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/domain/_row.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/domain/_row.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="row", parent_name="layout.mapbox.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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RowValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='row', + parent_name='layout.mapbox.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/domain/_x.py b/packages/python/plotly/plotly/validators/layout/mapbox/domain/_x.py index df168842762..36d2f4aa095 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/domain/_x.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/domain/_x.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="x", parent_name="layout.mapbox.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, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='x', + parent_name='layout.mapbox.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/domain/_y.py b/packages/python/plotly/plotly/validators/layout/mapbox/domain/_y.py index 4f462f14ee1..a03e1f15e0b 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/domain/_y.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/domain/_y.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="y", parent_name="layout.mapbox.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, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='y', + parent_name='layout.mapbox.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/__init__.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/__init__.py index 93e08a556b2..69185aed4fb 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._type import TypeValidator @@ -22,28 +21,10 @@ from ._below import BelowValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._type.TypeValidator", - "._templateitemname.TemplateitemnameValidator", - "._symbol.SymbolValidator", - "._sourcetype.SourcetypeValidator", - "._sourcelayer.SourcelayerValidator", - "._sourceattribution.SourceattributionValidator", - "._source.SourceValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._minzoom.MinzoomValidator", - "._maxzoom.MaxzoomValidator", - "._line.LineValidator", - "._fill.FillValidator", - "._coordinates.CoordinatesValidator", - "._color.ColorValidator", - "._circle.CircleValidator", - "._below.BelowValidator", - ], + ['._visible.VisibleValidator', '._type.TypeValidator', '._templateitemname.TemplateitemnameValidator', '._symbol.SymbolValidator', '._sourcetype.SourcetypeValidator', '._sourcelayer.SourcelayerValidator', '._sourceattribution.SourceattributionValidator', '._source.SourceValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._minzoom.MinzoomValidator', '._maxzoom.MaxzoomValidator', '._line.LineValidator', '._fill.FillValidator', '._coordinates.CoordinatesValidator', '._color.ColorValidator', '._circle.CircleValidator', '._below.BelowValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_below.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_below.py index 79c34798063..0823a561b59 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_below.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_below.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BelowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="below", parent_name="layout.mapbox.layer", **kwargs - ): - super(BelowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BelowValidator(_bv.StringValidator): + def __init__(self, plotly_name='below', + parent_name='layout.mapbox.layer', + **kwargs): + super(BelowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_circle.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_circle.py index 7548ec2db27..3000a348e5f 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_circle.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_circle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class CircleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="circle", parent_name="layout.mapbox.layer", **kwargs - ): - super(CircleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Circle"), - data_docs=kwargs.pop( - "data_docs", - """ - radius - Sets the circle radius - (mapbox.layer.paint.circle-radius). Has an - effect only when `type` is set to "circle". -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CircleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='circle', + parent_name='layout.mapbox.layer', + **kwargs): + super(CircleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Circle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_color.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_color.py index 73325241351..a7d5d8b97c7 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_color.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.mapbox.layer", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.mapbox.layer', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_coordinates.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_coordinates.py index cf0ea46868c..854926cff0d 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_coordinates.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_coordinates.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CoordinatesValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="coordinates", parent_name="layout.mapbox.layer", **kwargs - ): - super(CoordinatesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CoordinatesValidator(_bv.AnyValidator): + def __init__(self, plotly_name='coordinates', + parent_name='layout.mapbox.layer', + **kwargs): + super(CoordinatesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_fill.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_fill.py index d32eb91b479..2b8a41af524 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_fill.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_fill.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class FillValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="fill", parent_name="layout.mapbox.layer", **kwargs): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Fill"), - data_docs=kwargs.pop( - "data_docs", - """ - outlinecolor - Sets the fill outline color - (mapbox.layer.paint.fill-outline-color). Has an - effect only when `type` is set to "fill". -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='fill', + parent_name='layout.mapbox.layer', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Fill'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_line.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_line.py index ea6700651b6..48002b74ffe 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_line.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_line.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="layout.mapbox.layer", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - dash - Sets the length of dashes and gaps - (mapbox.layer.paint.line-dasharray). Has an - effect only when `type` is set to "line". - dashsrc - Sets the source reference on Chart Studio Cloud - for `dash`. - width - Sets the line width (mapbox.layer.paint.line- - width). Has an effect only when `type` is set - to "line". -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='layout.mapbox.layer', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_maxzoom.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_maxzoom.py index d6d2c60f07c..ab3c0f6575a 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_maxzoom.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_maxzoom.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxzoomValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxzoom", parent_name="layout.mapbox.layer", **kwargs - ): - super(MaxzoomValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 24), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxzoomValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxzoom', + parent_name='layout.mapbox.layer', + **kwargs): + super(MaxzoomValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 24), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_minzoom.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_minzoom.py index fa67a7c6dfb..24120f674ef 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_minzoom.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_minzoom.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MinzoomValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minzoom", parent_name="layout.mapbox.layer", **kwargs - ): - super(MinzoomValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 24), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinzoomValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minzoom', + parent_name='layout.mapbox.layer', + **kwargs): + super(MinzoomValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 24), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_name.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_name.py index 8e68fdf6c0f..aabf75fe73b 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_name.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="layout.mapbox.layer", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='layout.mapbox.layer', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_opacity.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_opacity.py index b99c9cd82ce..f93929cf317 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_opacity.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_opacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="layout.mapbox.layer", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='layout.mapbox.layer', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_source.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_source.py index 9c7b69dd09a..d080d915f09 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_source.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_source.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SourceValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="source", parent_name="layout.mapbox.layer", **kwargs - ): - super(SourceValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SourceValidator(_bv.AnyValidator): + def __init__(self, plotly_name='source', + parent_name='layout.mapbox.layer', + **kwargs): + super(SourceValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_sourceattribution.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_sourceattribution.py index 6cd8dea4bdb..87094ebfb97 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_sourceattribution.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_sourceattribution.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SourceattributionValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="sourceattribution", - parent_name="layout.mapbox.layer", - **kwargs, - ): - super(SourceattributionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SourceattributionValidator(_bv.StringValidator): + def __init__(self, plotly_name='sourceattribution', + parent_name='layout.mapbox.layer', + **kwargs): + super(SourceattributionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_sourcelayer.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_sourcelayer.py index 0c319819796..86d6cf8890f 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_sourcelayer.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_sourcelayer.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SourcelayerValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="sourcelayer", parent_name="layout.mapbox.layer", **kwargs - ): - super(SourcelayerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SourcelayerValidator(_bv.StringValidator): + def __init__(self, plotly_name='sourcelayer', + parent_name='layout.mapbox.layer', + **kwargs): + super(SourcelayerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_sourcetype.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_sourcetype.py index db480a48819..df444911a1e 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_sourcetype.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_sourcetype.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SourcetypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="sourcetype", parent_name="layout.mapbox.layer", **kwargs - ): - super(SourcetypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["geojson", "vector", "raster", "image"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SourcetypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='sourcetype', + parent_name='layout.mapbox.layer', + **kwargs): + super(SourcetypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['geojson', 'vector', 'raster', 'image']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_symbol.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_symbol.py index b9209f89799..5ca1c1767a4 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_symbol.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_symbol.py @@ -1,46 +1,15 @@ -import _plotly_utils.basevalidators -class SymbolValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="symbol", parent_name="layout.mapbox.layer", **kwargs - ): - super(SymbolValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Symbol"), - data_docs=kwargs.pop( - "data_docs", - """ - icon - Sets the symbol icon image - (mapbox.layer.layout.icon-image). Full list: - https://www.mapbox.com/maki-icons/ - iconsize - Sets the symbol icon size - (mapbox.layer.layout.icon-size). Has an effect - only when `type` is set to "symbol". - placement - Sets the symbol and/or text placement - (mapbox.layer.layout.symbol-placement). If - `placement` is "point", the label is placed - where the geometry is located If `placement` is - "line", the label is placed along the line of - the geometry If `placement` is "line-center", - the label is placed on the center of the - geometry - text - Sets the symbol text (mapbox.layer.layout.text- - field). - textfont - Sets the icon text font - (color=mapbox.layer.paint.text-color, - size=mapbox.layer.layout.text-size). Has an - effect only when `type` is set to "symbol". - textposition - Sets the positions of the `text` elements with - respects to the (x,y) coordinates. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SymbolValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='symbol', + parent_name='layout.mapbox.layer', + **kwargs): + super(SymbolValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Symbol'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_templateitemname.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_templateitemname.py index 95c15bb6f36..b3e200eb991 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="layout.mapbox.layer", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='layout.mapbox.layer', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_type.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_type.py index 080b73c1c12..ce6671b6f41 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_type.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_type.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="type", parent_name="layout.mapbox.layer", **kwargs): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["circle", "line", "fill", "symbol", "raster"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='layout.mapbox.layer', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['circle', 'line', 'fill', 'symbol', 'raster']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_visible.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_visible.py index 782efb5c93f..7230da37125 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/_visible.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/_visible.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="visible", parent_name="layout.mapbox.layer", **kwargs - ): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='layout.mapbox.layer', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/circle/__init__.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/circle/__init__.py index 659abf22fbf..1d3da533f8a 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/circle/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/circle/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._radius import RadiusValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._radius.RadiusValidator"] + __name__, + [], + ['._radius.RadiusValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/circle/_radius.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/circle/_radius.py index 82011307ce6..29e7ebf9a5c 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/circle/_radius.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/circle/_radius.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class RadiusValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="radius", parent_name="layout.mapbox.layer.circle", **kwargs - ): - super(RadiusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RadiusValidator(_bv.NumberValidator): + def __init__(self, plotly_name='radius', + parent_name='layout.mapbox.layer.circle', + **kwargs): + super(RadiusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/fill/__init__.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/fill/__init__.py index 722f28333c9..57d5fdf5f86 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/fill/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/fill/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._outlinecolor import OutlinecolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._outlinecolor.OutlinecolorValidator"] + __name__, + [], + ['._outlinecolor.OutlinecolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/fill/_outlinecolor.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/fill/_outlinecolor.py index 2e5e9d29c7b..335b18a32f3 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/fill/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/fill/_outlinecolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="outlinecolor", - parent_name="layout.mapbox.layer.fill", - **kwargs, - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='layout.mapbox.layer.fill', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/line/__init__.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/line/__init__.py index e2f415ff5bd..f8363a44c3a 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/line/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/line/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._dashsrc import DashsrcValidator from ._dash import DashValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._dashsrc.DashsrcValidator", - "._dash.DashValidator", - ], + ['._width.WidthValidator', '._dashsrc.DashsrcValidator', '._dash.DashValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/line/_dash.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/line/_dash.py index 76f7a60a5e1..55ff3d01ba3 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/line/_dash.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/line/_dash.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class DashValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="dash", parent_name="layout.mapbox.layer.line", **kwargs - ): - super(DashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DashValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='dash', + parent_name='layout.mapbox.layer.line', + **kwargs): + super(DashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/line/_dashsrc.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/line/_dashsrc.py index 766df152d82..800cc93a41b 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/line/_dashsrc.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/line/_dashsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class DashsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="dashsrc", parent_name="layout.mapbox.layer.line", **kwargs - ): - super(DashsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DashsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='dashsrc', + parent_name='layout.mapbox.layer.line', + **kwargs): + super(DashsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/line/_width.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/line/_width.py index 49751ba6dbe..028f8b73179 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/line/_width.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/line/_width.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="layout.mapbox.layer.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='layout.mapbox.layer.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/__init__.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/__init__.py index 2b890e661ef..caa86bc53b5 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._textposition import TextpositionValidator from ._textfont import TextfontValidator @@ -10,16 +9,10 @@ from ._icon import IconValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._textposition.TextpositionValidator", - "._textfont.TextfontValidator", - "._text.TextValidator", - "._placement.PlacementValidator", - "._iconsize.IconsizeValidator", - "._icon.IconValidator", - ], + ['._textposition.TextpositionValidator', '._textfont.TextfontValidator', '._text.TextValidator', '._placement.PlacementValidator', '._iconsize.IconsizeValidator', '._icon.IconValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/_icon.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/_icon.py index 920742e280d..93b7ca375b9 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/_icon.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/_icon.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class IconValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="icon", parent_name="layout.mapbox.layer.symbol", **kwargs - ): - super(IconValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class IconValidator(_bv.StringValidator): + def __init__(self, plotly_name='icon', + parent_name='layout.mapbox.layer.symbol', + **kwargs): + super(IconValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/_iconsize.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/_iconsize.py index 974897ebf1c..1239c61c616 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/_iconsize.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/_iconsize.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class IconsizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="iconsize", parent_name="layout.mapbox.layer.symbol", **kwargs - ): - super(IconsizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class IconsizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='iconsize', + parent_name='layout.mapbox.layer.symbol', + **kwargs): + super(IconsizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/_placement.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/_placement.py index 54c79d31ee6..3776c56f42f 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/_placement.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/_placement.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class PlacementValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="placement", - parent_name="layout.mapbox.layer.symbol", - **kwargs, - ): - super(PlacementValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["point", "line", "line-center"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class PlacementValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='placement', + parent_name='layout.mapbox.layer.symbol', + **kwargs): + super(PlacementValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['point', 'line', 'line-center']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/_text.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/_text.py index e67b63f90d5..29b4563e394 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/_text.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="layout.mapbox.layer.symbol", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='layout.mapbox.layer.symbol', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/_textfont.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/_textfont.py index d46e5f3d70b..194c921563c 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/_textfont.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/_textfont.py @@ -1,44 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="textfont", parent_name="layout.mapbox.layer.symbol", **kwargs - ): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='layout.mapbox.layer.symbol', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/_textposition.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/_textposition.py index a6f1fd8a375..00bc372e621 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/_textposition.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/_textposition.py @@ -1,31 +1,15 @@ -import _plotly_utils.basevalidators -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textposition", - parent_name="layout.mapbox.layer.symbol", - **kwargs, - ): - super(TextpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "top left", - "top center", - "top right", - "middle left", - "middle center", - "middle right", - "bottom left", - "bottom center", - "bottom right", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textposition', + parent_name='layout.mapbox.layer.symbol', + **kwargs): + super(TextpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['top left', 'top center', 'top right', 'middle left', 'middle center', 'middle right', 'bottom left', 'bottom center', 'bottom right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/textfont/__init__.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/textfont/__init__.py index 9301c0688ce..47e012a7900 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/textfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._style import StyleValidator @@ -9,15 +8,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._style.StyleValidator', '._size.SizeValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/textfont/_color.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/textfont/_color.py index 4af6d971f51..538b7129dc1 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/textfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="layout.mapbox.layer.symbol.textfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.mapbox.layer.symbol.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/textfont/_family.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/textfont/_family.py index 2031c247358..5aedde0a091 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/textfont/_family.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/textfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="layout.mapbox.layer.symbol.textfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.mapbox.layer.symbol.textfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/textfont/_size.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/textfont/_size.py index 25b6edbee51..9597ec1f1ad 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/textfont/_size.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/textfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="layout.mapbox.layer.symbol.textfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.mapbox.layer.symbol.textfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/textfont/_style.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/textfont/_style.py index 7d9ced34acd..dd6f4c50bb8 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/textfont/_style.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/textfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="layout.mapbox.layer.symbol.textfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.mapbox.layer.symbol.textfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/textfont/_weight.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/textfont/_weight.py index b40069b9f18..3cb70be913d 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/textfont/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/textfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="layout.mapbox.layer.symbol.textfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.mapbox.layer.symbol.textfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/margin/__init__.py b/packages/python/plotly/plotly/validators/layout/margin/__init__.py index 82c96bf627f..0a776c52053 100644 --- a/packages/python/plotly/plotly/validators/layout/margin/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/margin/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._t import TValidator from ._r import RValidator @@ -10,16 +9,10 @@ from ._autoexpand import AutoexpandValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._t.TValidator", - "._r.RValidator", - "._pad.PadValidator", - "._l.LValidator", - "._b.BValidator", - "._autoexpand.AutoexpandValidator", - ], + ['._t.TValidator', '._r.RValidator', '._pad.PadValidator', '._l.LValidator', '._b.BValidator', '._autoexpand.AutoexpandValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/margin/_autoexpand.py b/packages/python/plotly/plotly/validators/layout/margin/_autoexpand.py index 60a18f39001..6bb8b477728 100644 --- a/packages/python/plotly/plotly/validators/layout/margin/_autoexpand.py +++ b/packages/python/plotly/plotly/validators/layout/margin/_autoexpand.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AutoexpandValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="autoexpand", parent_name="layout.margin", **kwargs): - super(AutoexpandValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutoexpandValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autoexpand', + parent_name='layout.margin', + **kwargs): + super(AutoexpandValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/margin/_b.py b/packages/python/plotly/plotly/validators/layout/margin/_b.py index 091211fd098..5526d2f4a9d 100644 --- a/packages/python/plotly/plotly/validators/layout/margin/_b.py +++ b/packages/python/plotly/plotly/validators/layout/margin/_b.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class BValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="b", parent_name="layout.margin", **kwargs): - super(BValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BValidator(_bv.NumberValidator): + def __init__(self, plotly_name='b', + parent_name='layout.margin', + **kwargs): + super(BValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/margin/_l.py b/packages/python/plotly/plotly/validators/layout/margin/_l.py index d61d67c387b..de4ad2ebf19 100644 --- a/packages/python/plotly/plotly/validators/layout/margin/_l.py +++ b/packages/python/plotly/plotly/validators/layout/margin/_l.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="l", parent_name="layout.margin", **kwargs): - super(LValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LValidator(_bv.NumberValidator): + def __init__(self, plotly_name='l', + parent_name='layout.margin', + **kwargs): + super(LValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/margin/_pad.py b/packages/python/plotly/plotly/validators/layout/margin/_pad.py index dd9d8d7259c..7373b9b78d8 100644 --- a/packages/python/plotly/plotly/validators/layout/margin/_pad.py +++ b/packages/python/plotly/plotly/validators/layout/margin/_pad.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class PadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="pad", parent_name="layout.margin", **kwargs): - super(PadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class PadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='pad', + parent_name='layout.margin', + **kwargs): + super(PadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/margin/_r.py b/packages/python/plotly/plotly/validators/layout/margin/_r.py index ec8e4dec115..be56ae90b1e 100644 --- a/packages/python/plotly/plotly/validators/layout/margin/_r.py +++ b/packages/python/plotly/plotly/validators/layout/margin/_r.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class RValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="r", parent_name="layout.margin", **kwargs): - super(RValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RValidator(_bv.NumberValidator): + def __init__(self, plotly_name='r', + parent_name='layout.margin', + **kwargs): + super(RValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/margin/_t.py b/packages/python/plotly/plotly/validators/layout/margin/_t.py index 6ecd8256ba6..5818e26e854 100644 --- a/packages/python/plotly/plotly/validators/layout/margin/_t.py +++ b/packages/python/plotly/plotly/validators/layout/margin/_t.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="t", parent_name="layout.margin", **kwargs): - super(TValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TValidator(_bv.NumberValidator): + def __init__(self, plotly_name='t', + parent_name='layout.margin', + **kwargs): + super(TValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/modebar/__init__.py b/packages/python/plotly/plotly/validators/layout/modebar/__init__.py index 5791ea538b0..9a9ee51054e 100644 --- a/packages/python/plotly/plotly/validators/layout/modebar/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/modebar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._uirevision import UirevisionValidator from ._removesrc import RemovesrcValidator @@ -13,19 +12,10 @@ from ._activecolor import ActivecolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._uirevision.UirevisionValidator", - "._removesrc.RemovesrcValidator", - "._remove.RemoveValidator", - "._orientation.OrientationValidator", - "._color.ColorValidator", - "._bgcolor.BgcolorValidator", - "._addsrc.AddsrcValidator", - "._add.AddValidator", - "._activecolor.ActivecolorValidator", - ], + ['._uirevision.UirevisionValidator', '._removesrc.RemovesrcValidator', '._remove.RemoveValidator', '._orientation.OrientationValidator', '._color.ColorValidator', '._bgcolor.BgcolorValidator', '._addsrc.AddsrcValidator', '._add.AddValidator', '._activecolor.ActivecolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/modebar/_activecolor.py b/packages/python/plotly/plotly/validators/layout/modebar/_activecolor.py index e2dd7517919..59a1cb3bf46 100644 --- a/packages/python/plotly/plotly/validators/layout/modebar/_activecolor.py +++ b/packages/python/plotly/plotly/validators/layout/modebar/_activecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ActivecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="activecolor", parent_name="layout.modebar", **kwargs - ): - super(ActivecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "modebar"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ActivecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='activecolor', + parent_name='layout.modebar', + **kwargs): + super(ActivecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'modebar'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/modebar/_add.py b/packages/python/plotly/plotly/validators/layout/modebar/_add.py index 511f58a49b1..737c3fe3551 100644 --- a/packages/python/plotly/plotly/validators/layout/modebar/_add.py +++ b/packages/python/plotly/plotly/validators/layout/modebar/_add.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class AddValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="add", parent_name="layout.modebar", **kwargs): - super(AddValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "modebar"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AddValidator(_bv.StringValidator): + def __init__(self, plotly_name='add', + parent_name='layout.modebar', + **kwargs): + super(AddValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'modebar'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/modebar/_addsrc.py b/packages/python/plotly/plotly/validators/layout/modebar/_addsrc.py index e9715885472..e84bae3ea4d 100644 --- a/packages/python/plotly/plotly/validators/layout/modebar/_addsrc.py +++ b/packages/python/plotly/plotly/validators/layout/modebar/_addsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AddsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="addsrc", parent_name="layout.modebar", **kwargs): - super(AddsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AddsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='addsrc', + parent_name='layout.modebar', + **kwargs): + super(AddsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/modebar/_bgcolor.py b/packages/python/plotly/plotly/validators/layout/modebar/_bgcolor.py index 4531f041838..97e01b5a7d6 100644 --- a/packages/python/plotly/plotly/validators/layout/modebar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/layout/modebar/_bgcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="bgcolor", parent_name="layout.modebar", **kwargs): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "modebar"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='layout.modebar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'modebar'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/modebar/_color.py b/packages/python/plotly/plotly/validators/layout/modebar/_color.py index b986d6401eb..b1959610715 100644 --- a/packages/python/plotly/plotly/validators/layout/modebar/_color.py +++ b/packages/python/plotly/plotly/validators/layout/modebar/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="layout.modebar", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "modebar"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.modebar', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'modebar'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/modebar/_orientation.py b/packages/python/plotly/plotly/validators/layout/modebar/_orientation.py index 559800db300..1f76d0a6647 100644 --- a/packages/python/plotly/plotly/validators/layout/modebar/_orientation.py +++ b/packages/python/plotly/plotly/validators/layout/modebar/_orientation.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="orientation", parent_name="layout.modebar", **kwargs - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "modebar"), - values=kwargs.pop("values", ["v", "h"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='layout.modebar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'modebar'), + values=kwargs.pop('values', ['v', 'h']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/modebar/_remove.py b/packages/python/plotly/plotly/validators/layout/modebar/_remove.py index 6c9e43b2ee4..3d4f17ff8fd 100644 --- a/packages/python/plotly/plotly/validators/layout/modebar/_remove.py +++ b/packages/python/plotly/plotly/validators/layout/modebar/_remove.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class RemoveValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="remove", parent_name="layout.modebar", **kwargs): - super(RemoveValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "modebar"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RemoveValidator(_bv.StringValidator): + def __init__(self, plotly_name='remove', + parent_name='layout.modebar', + **kwargs): + super(RemoveValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'modebar'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/modebar/_removesrc.py b/packages/python/plotly/plotly/validators/layout/modebar/_removesrc.py index 19a5974b7c2..cce9021f617 100644 --- a/packages/python/plotly/plotly/validators/layout/modebar/_removesrc.py +++ b/packages/python/plotly/plotly/validators/layout/modebar/_removesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class RemovesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="removesrc", parent_name="layout.modebar", **kwargs): - super(RemovesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RemovesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='removesrc', + parent_name='layout.modebar', + **kwargs): + super(RemovesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/modebar/_uirevision.py b/packages/python/plotly/plotly/validators/layout/modebar/_uirevision.py index 1edcb3f80cb..70474a552e6 100644 --- a/packages/python/plotly/plotly/validators/layout/modebar/_uirevision.py +++ b/packages/python/plotly/plotly/validators/layout/modebar/_uirevision.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="uirevision", parent_name="layout.modebar", **kwargs - ): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='layout.modebar', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newselection/__init__.py b/packages/python/plotly/plotly/validators/layout/newselection/__init__.py index 4bfab4498e2..0bd117a71a5 100644 --- a/packages/python/plotly/plotly/validators/layout/newselection/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/newselection/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._mode import ModeValidator from ._line import LineValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._mode.ModeValidator", "._line.LineValidator"] + __name__, + [], + ['._mode.ModeValidator', '._line.LineValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/newselection/_line.py b/packages/python/plotly/plotly/validators/layout/newselection/_line.py index 14455516b17..215308422a9 100644 --- a/packages/python/plotly/plotly/validators/layout/newselection/_line.py +++ b/packages/python/plotly/plotly/validators/layout/newselection/_line.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="layout.newselection", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the line color. By default uses either - dark grey or white to increase contrast with - background color. - dash - 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"). - width - Sets the line width (in px). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='layout.newselection', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newselection/_mode.py b/packages/python/plotly/plotly/validators/layout/newselection/_mode.py index 890dab6d315..92bc5ce9b38 100644 --- a/packages/python/plotly/plotly/validators/layout/newselection/_mode.py +++ b/packages/python/plotly/plotly/validators/layout/newselection/_mode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ModeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="mode", parent_name="layout.newselection", **kwargs): - super(ModeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["immediate", "gradual"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ModeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='mode', + parent_name='layout.newselection', + **kwargs): + super(ModeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['immediate', 'gradual']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newselection/line/__init__.py b/packages/python/plotly/plotly/validators/layout/newselection/line/__init__.py index cff41466517..e42e2f2974d 100644 --- a/packages/python/plotly/plotly/validators/layout/newselection/line/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/newselection/line/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._dash import DashValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._width.WidthValidator", "._dash.DashValidator", "._color.ColorValidator"], + ['._width.WidthValidator', '._dash.DashValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/newselection/line/_color.py b/packages/python/plotly/plotly/validators/layout/newselection/line/_color.py index dd506ecb86d..cedb41f4117 100644 --- a/packages/python/plotly/plotly/validators/layout/newselection/line/_color.py +++ b/packages/python/plotly/plotly/validators/layout/newselection/line/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.newselection.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.newselection.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newselection/line/_dash.py b/packages/python/plotly/plotly/validators/layout/newselection/line/_dash.py index dc459f40ec5..49fdea69f2d 100644 --- a/packages/python/plotly/plotly/validators/layout/newselection/line/_dash.py +++ b/packages/python/plotly/plotly/validators/layout/newselection/line/_dash.py @@ -1,16 +1,14 @@ -import _plotly_utils.basevalidators -class DashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__( - self, plotly_name="dash", parent_name="layout.newselection.line", **kwargs - ): - super(DashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DashValidator(_bv.DashValidator): + def __init__(self, plotly_name='dash', + parent_name='layout.newselection.line', + **kwargs): + super(DashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newselection/line/_width.py b/packages/python/plotly/plotly/validators/layout/newselection/line/_width.py index 92eae7746d6..de8c77ba33b 100644 --- a/packages/python/plotly/plotly/validators/layout/newselection/line/_width.py +++ b/packages/python/plotly/plotly/validators/layout/newselection/line/_width.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="layout.newselection.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='layout.newselection.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/__init__.py b/packages/python/plotly/plotly/validators/layout/newshape/__init__.py index 3248c60cb71..05a5071e0ee 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._showlegend import ShowlegendValidator @@ -19,25 +18,10 @@ from ._drawdirection import DrawdirectionValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._showlegend.ShowlegendValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._line.LineValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._layer.LayerValidator", - "._label.LabelValidator", - "._fillrule.FillruleValidator", - "._fillcolor.FillcolorValidator", - "._drawdirection.DrawdirectionValidator", - ], + ['._visible.VisibleValidator', '._showlegend.ShowlegendValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._line.LineValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._layer.LayerValidator', '._label.LabelValidator', '._fillrule.FillruleValidator', '._fillcolor.FillcolorValidator', '._drawdirection.DrawdirectionValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/newshape/_drawdirection.py b/packages/python/plotly/plotly/validators/layout/newshape/_drawdirection.py index ea1d94eb722..1bfca914c4f 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/_drawdirection.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/_drawdirection.py @@ -1,16 +1,14 @@ -import _plotly_utils.basevalidators -class DrawdirectionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="drawdirection", parent_name="layout.newshape", **kwargs - ): - super(DrawdirectionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", ["ortho", "horizontal", "vertical", "diagonal"] - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DrawdirectionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='drawdirection', + parent_name='layout.newshape', + **kwargs): + super(DrawdirectionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['ortho', 'horizontal', 'vertical', 'diagonal']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/_fillcolor.py b/packages/python/plotly/plotly/validators/layout/newshape/_fillcolor.py index 8ccefafa0b7..c61a5563114 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/_fillcolor.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/_fillcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="fillcolor", parent_name="layout.newshape", **kwargs - ): - super(FillcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fillcolor', + parent_name='layout.newshape', + **kwargs): + super(FillcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/_fillrule.py b/packages/python/plotly/plotly/validators/layout/newshape/_fillrule.py index 831ac264f39..2fd600f36f8 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/_fillrule.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/_fillrule.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class FillruleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="fillrule", parent_name="layout.newshape", **kwargs): - super(FillruleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["evenodd", "nonzero"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillruleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='fillrule', + parent_name='layout.newshape', + **kwargs): + super(FillruleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['evenodd', 'nonzero']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/_label.py b/packages/python/plotly/plotly/validators/layout/newshape/_label.py index 62091c0b24b..eefdfdc18a7 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/_label.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/_label.py @@ -1,83 +1,15 @@ -import _plotly_utils.basevalidators -class LabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="label", parent_name="layout.newshape", **kwargs): - super(LabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Label"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets the new shape label text font. - padding - Sets padding (in px) between edge of label and - edge of new shape. - text - Sets the text to display with the new shape. It - is also used for legend item if `name` is not - provided. - textangle - Sets the angle at which the label text is drawn - with respect to the horizontal. For lines, - angle "auto" is the same angle as the line. For - all other shapes, angle "auto" is horizontal. - textposition - Sets the position of the label text relative to - the new shape. Supported values for rectangles, - circles and paths are *top left*, *top center*, - *top right*, *middle left*, *middle center*, - *middle right*, *bottom left*, *bottom center*, - and *bottom right*. Supported values for lines - are "start", "middle", and "end". Default: - *middle center* for rectangles, circles, and - paths; "middle" for lines. - texttemplate - Template string used for rendering the new - shape's label. Note that this will override - `text`. Variables are inserted using - %{variable}, for example "x0: %{x0}". Numbers - are formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{x0:$.2f}". See https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{x0|%m %b %Y}". See - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. A single - multiplication or division operation may be - applied to numeric variables, and combined with - d3 number formatting, for example "Length in - cm: %{x0*2.54}", "%{slope*60:.1f} meters per - second." For log axes, variable values are - given in log units. For date axes, x/y - coordinate variables and center variables use - datetimes, while all other variable values use - values in ms. Finally, the template string has - access to variables `x0`, `x1`, `y0`, `y1`, - `slope`, `dx`, `dy`, `width`, `height`, - `length`, `xcenter` and `ycenter`. - xanchor - Sets the label's horizontal position anchor - This anchor binds the specified `textposition` - to the "left", "center" or "right" of the label - text. For example, if `textposition` is set to - *top right* and `xanchor` to "right" then the - right-most portion of the label text lines up - with the right-most edge of the new shape. - yanchor - Sets the label's vertical position anchor This - anchor binds the specified `textposition` to - the "top", "middle" or "bottom" of the label - text. For example, if `textposition` is set to - *top right* and `yanchor` to "top" then the - top-most portion of the label text lines up - with the top-most edge of the new shape. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='label', + parent_name='layout.newshape', + **kwargs): + super(LabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Label'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/_layer.py b/packages/python/plotly/plotly/validators/layout/newshape/_layer.py index 84c2c6d325f..d2bd575fad7 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/_layer.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/_layer.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="layer", parent_name="layout.newshape", **kwargs): - super(LayerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["below", "above", "between"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LayerValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='layer', + parent_name='layout.newshape', + **kwargs): + super(LayerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['below', 'above', 'between']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/_legend.py b/packages/python/plotly/plotly/validators/layout/newshape/_legend.py index fb05ffd8a47..b8003b5d018 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/_legend.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="layout.newshape", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='layout.newshape', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/_legendgroup.py b/packages/python/plotly/plotly/validators/layout/newshape/_legendgroup.py index c3ecf094e28..e1938e48cc5 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/_legendgroup.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="legendgroup", parent_name="layout.newshape", **kwargs - ): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='layout.newshape', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/layout/newshape/_legendgrouptitle.py index 1e5b4ffcaed..26211fdf7fe 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="layout.newshape", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='layout.newshape', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/_legendrank.py b/packages/python/plotly/plotly/validators/layout/newshape/_legendrank.py index 37aeca56ba7..aed5754d950 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/_legendrank.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/_legendrank.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="legendrank", parent_name="layout.newshape", **kwargs - ): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='layout.newshape', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/_legendwidth.py b/packages/python/plotly/plotly/validators/layout/newshape/_legendwidth.py index f1b124e8544..759bb1dc1e1 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/_legendwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="legendwidth", parent_name="layout.newshape", **kwargs - ): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='layout.newshape', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/_line.py b/packages/python/plotly/plotly/validators/layout/newshape/_line.py index f7bf66aaee0..e1c1913b8f4 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/_line.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/_line.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="layout.newshape", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the line color. By default uses either - dark grey or white to increase contrast with - background color. - dash - 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"). - width - Sets the line width (in px). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='layout.newshape', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/_name.py b/packages/python/plotly/plotly/validators/layout/newshape/_name.py index a9a3f3651d8..84d63472736 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/_name.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="layout.newshape", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='layout.newshape', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/_opacity.py b/packages/python/plotly/plotly/validators/layout/newshape/_opacity.py index 75c13e75741..87bd134269a 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/_opacity.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="layout.newshape", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='layout.newshape', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/_showlegend.py b/packages/python/plotly/plotly/validators/layout/newshape/_showlegend.py index e3e63914e40..13b7ee125bd 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/_showlegend.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/_showlegend.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showlegend", parent_name="layout.newshape", **kwargs - ): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='layout.newshape', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/_visible.py b/packages/python/plotly/plotly/validators/layout/newshape/_visible.py index 93ef2eed72f..385b0cc61c8 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/_visible.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="layout.newshape", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='layout.newshape', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/label/__init__.py b/packages/python/plotly/plotly/validators/layout/newshape/label/__init__.py index c6a5f99963d..0678a633ff6 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/label/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/label/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yanchor import YanchorValidator from ._xanchor import XanchorValidator @@ -12,18 +11,10 @@ from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yanchor.YanchorValidator", - "._xanchor.XanchorValidator", - "._texttemplate.TexttemplateValidator", - "._textposition.TextpositionValidator", - "._textangle.TextangleValidator", - "._text.TextValidator", - "._padding.PaddingValidator", - "._font.FontValidator", - ], + ['._yanchor.YanchorValidator', '._xanchor.XanchorValidator', '._texttemplate.TexttemplateValidator', '._textposition.TextpositionValidator', '._textangle.TextangleValidator', '._text.TextValidator', '._padding.PaddingValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/newshape/label/_font.py b/packages/python/plotly/plotly/validators/layout/newshape/label/_font.py index caf91e06060..62d1663ae47 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/label/_font.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/label/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="layout.newshape.label", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='layout.newshape.label', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/label/_padding.py b/packages/python/plotly/plotly/validators/layout/newshape/label/_padding.py index d6193fd014b..0af008f7971 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/label/_padding.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/label/_padding.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class PaddingValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="padding", parent_name="layout.newshape.label", **kwargs - ): - super(PaddingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class PaddingValidator(_bv.NumberValidator): + def __init__(self, plotly_name='padding', + parent_name='layout.newshape.label', + **kwargs): + super(PaddingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/label/_text.py b/packages/python/plotly/plotly/validators/layout/newshape/label/_text.py index d7fa4c11789..9865691f4e6 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/label/_text.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/label/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="layout.newshape.label", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='layout.newshape.label', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/label/_textangle.py b/packages/python/plotly/plotly/validators/layout/newshape/label/_textangle.py index eb34515d647..6b868c4858f 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/label/_textangle.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/label/_textangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="textangle", parent_name="layout.newshape.label", **kwargs - ): - super(TextangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='textangle', + parent_name='layout.newshape.label', + **kwargs): + super(TextangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/label/_textposition.py b/packages/python/plotly/plotly/validators/layout/newshape/label/_textposition.py index 4f8971303e2..0cc1db66eff 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/label/_textposition.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/label/_textposition.py @@ -1,30 +1,14 @@ -import _plotly_utils.basevalidators -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textposition", parent_name="layout.newshape.label", **kwargs - ): - super(TextpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "top left", - "top center", - "top right", - "middle left", - "middle center", - "middle right", - "bottom left", - "bottom center", - "bottom right", - "start", - "middle", - "end", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textposition', + parent_name='layout.newshape.label', + **kwargs): + super(TextpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['top left', 'top center', 'top right', 'middle left', 'middle center', 'middle right', 'bottom left', 'bottom center', 'bottom right', 'start', 'middle', 'end']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/label/_texttemplate.py b/packages/python/plotly/plotly/validators/layout/newshape/label/_texttemplate.py index 3a99adbf53d..53520cee7f2 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/label/_texttemplate.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/label/_texttemplate.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="texttemplate", parent_name="layout.newshape.label", **kwargs - ): - super(TexttemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='texttemplate', + parent_name='layout.newshape.label', + **kwargs): + super(TexttemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/label/_xanchor.py b/packages/python/plotly/plotly/validators/layout/newshape/label/_xanchor.py index 2e2cbeb0e60..de10077a37d 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/label/_xanchor.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/label/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="layout.newshape.label", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["auto", "left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='layout.newshape.label', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['auto', 'left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/label/_yanchor.py b/packages/python/plotly/plotly/validators/layout/newshape/label/_yanchor.py index b7028be733b..04ac2141f22 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/label/_yanchor.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/label/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="layout.newshape.label", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='layout.newshape.label', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/label/font/__init__.py b/packages/python/plotly/plotly/validators/layout/newshape/label/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/label/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/label/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/newshape/label/font/_color.py b/packages/python/plotly/plotly/validators/layout/newshape/label/font/_color.py index 1c0b8375fc9..5a67188939e 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/label/font/_color.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/label/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.newshape.label.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.newshape.label.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/label/font/_family.py b/packages/python/plotly/plotly/validators/layout/newshape/label/font/_family.py index c84163c2de8..2409b6e5d62 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/label/font/_family.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/label/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="layout.newshape.label.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.newshape.label.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/label/font/_lineposition.py b/packages/python/plotly/plotly/validators/layout/newshape/label/font/_lineposition.py index 44667b9a338..82e2e78ef73 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/label/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/label/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.newshape.label.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.newshape.label.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/label/font/_shadow.py b/packages/python/plotly/plotly/validators/layout/newshape/label/font/_shadow.py index 742eefffb05..db121b2978f 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/label/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/label/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="layout.newshape.label.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.newshape.label.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/label/font/_size.py b/packages/python/plotly/plotly/validators/layout/newshape/label/font/_size.py index b03a117e107..e0aa7d80dc9 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/label/font/_size.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/label/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="layout.newshape.label.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.newshape.label.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/label/font/_style.py b/packages/python/plotly/plotly/validators/layout/newshape/label/font/_style.py index ffcbbb46be0..1caf13aed4e 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/label/font/_style.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/label/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="layout.newshape.label.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.newshape.label.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/label/font/_textcase.py b/packages/python/plotly/plotly/validators/layout/newshape/label/font/_textcase.py index e741aa02baf..33f37a850f3 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/label/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/label/font/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="layout.newshape.label.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.newshape.label.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/label/font/_variant.py b/packages/python/plotly/plotly/validators/layout/newshape/label/font/_variant.py index e8bc240221b..54ebd2a3b52 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/label/font/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/label/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="layout.newshape.label.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.newshape.label.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/label/font/_weight.py b/packages/python/plotly/plotly/validators/layout/newshape/label/font/_weight.py index 502ae8af938..dbac7a6f87f 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/label/font/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/label/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="layout.newshape.label.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.newshape.label.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/_font.py index 2b05763e582..8521922faae 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/_font.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="font", - parent_name="layout.newshape.legendgrouptitle", - **kwargs, - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='layout.newshape.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/_text.py index ad442d2fed0..485ce281970 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/_text.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="text", - parent_name="layout.newshape.legendgrouptitle", - **kwargs, - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='layout.newshape.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_color.py index fb0ae6c5829..938289da4b0 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="layout.newshape.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.newshape.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_family.py index 70c09ac28db..040b20e719f 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="layout.newshape.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.newshape.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_lineposition.py index 57e8e7a6d06..8e929135d8a 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.newshape.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.newshape.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_shadow.py index 16e6333d576..c8cef49dde0 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="layout.newshape.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.newshape.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_size.py index 1f3fa45256e..bd2bc01d4a7 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="layout.newshape.legendgrouptitle.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.newshape.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_style.py index 29bc22edce1..e3c0cdff506 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="layout.newshape.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.newshape.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_textcase.py index 830e7d0e2ce..d4de84c9dcf 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="layout.newshape.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.newshape.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_variant.py index 649cb2543c9..f5b85a6736a 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="layout.newshape.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.newshape.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_weight.py index 0a2daf5f52e..28bc218961c 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="layout.newshape.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.newshape.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/line/__init__.py b/packages/python/plotly/plotly/validators/layout/newshape/line/__init__.py index cff41466517..e42e2f2974d 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/line/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/line/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._dash import DashValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._width.WidthValidator", "._dash.DashValidator", "._color.ColorValidator"], + ['._width.WidthValidator', '._dash.DashValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/newshape/line/_color.py b/packages/python/plotly/plotly/validators/layout/newshape/line/_color.py index 674e9080daa..92b71182f4a 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/line/_color.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/line/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.newshape.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.newshape.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/line/_dash.py b/packages/python/plotly/plotly/validators/layout/newshape/line/_dash.py index 8cc38e9dfed..11bc50c99d3 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/line/_dash.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/line/_dash.py @@ -1,16 +1,14 @@ -import _plotly_utils.basevalidators -class DashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__( - self, plotly_name="dash", parent_name="layout.newshape.line", **kwargs - ): - super(DashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DashValidator(_bv.DashValidator): + def __init__(self, plotly_name='dash', + parent_name='layout.newshape.line', + **kwargs): + super(DashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/newshape/line/_width.py b/packages/python/plotly/plotly/validators/layout/newshape/line/_width.py index c4bea327772..785d837ed67 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/line/_width.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/line/_width.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="layout.newshape.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='layout.newshape.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/__init__.py b/packages/python/plotly/plotly/validators/layout/polar/__init__.py index 42956b87133..5562eb1a879 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/polar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._uirevision import UirevisionValidator from ._sector import SectorValidator @@ -14,20 +13,10 @@ from ._angularaxis import AngularaxisValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._uirevision.UirevisionValidator", - "._sector.SectorValidator", - "._radialaxis.RadialaxisValidator", - "._hole.HoleValidator", - "._gridshape.GridshapeValidator", - "._domain.DomainValidator", - "._bgcolor.BgcolorValidator", - "._barmode.BarmodeValidator", - "._bargap.BargapValidator", - "._angularaxis.AngularaxisValidator", - ], + ['._uirevision.UirevisionValidator', '._sector.SectorValidator', '._radialaxis.RadialaxisValidator', '._hole.HoleValidator', '._gridshape.GridshapeValidator', '._domain.DomainValidator', '._bgcolor.BgcolorValidator', '._barmode.BarmodeValidator', '._bargap.BargapValidator', '._angularaxis.AngularaxisValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/polar/_angularaxis.py b/packages/python/plotly/plotly/validators/layout/polar/_angularaxis.py index cced1665ced..ad0d3ca8756 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/_angularaxis.py +++ b/packages/python/plotly/plotly/validators/layout/polar/_angularaxis.py @@ -1,304 +1,15 @@ -import _plotly_utils.basevalidators -class AngularaxisValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="angularaxis", parent_name="layout.polar", **kwargs): - super(AngularaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "AngularAxis"), - data_docs=kwargs.pop( - "data_docs", - """ - autotypenumbers - Using "strict" a numeric string in trace data - is not converted to a number. Using *convert - types* a numeric string in trace data may be - treated as a number during automatic axis - `type` detection. Defaults to - layout.autotypenumbers. - categoryarray - Sets the order in which categories on this axis - appear. Only has an effect if `categoryorder` - is set to "array". Used with `categoryorder`. - categoryarraysrc - Sets the source reference on Chart Studio Cloud - for `categoryarray`. - categoryorder - Specifies the ordering logic for the case of - categorical variables. By default, plotly uses - "trace", which specifies the order that is - present in the data supplied. Set - `categoryorder` to *category ascending* or - *category descending* if order should be - determined by the alphanumerical order of the - category names. Set `categoryorder` to "array" - to derive the ordering from the attribute - `categoryarray`. If a category is not found in - the `categoryarray` array, the sorting behavior - for that attribute will be identical to the - "trace" mode. The unspecified categories will - follow the categories in `categoryarray`. Set - `categoryorder` to *total ascending* or *total - descending* if order should be determined by - the numerical order of the values. Similarly, - the order can be determined by the min, max, - sum, mean, geometric mean or median of all the - values. - color - Sets default for all colors associated with - this axis all at once: line, font, tick, and - grid colors. Grid color is lightened by - blending this with the plot background - Individual pieces can override this. - direction - Sets the direction corresponding to positive - angles. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - gridcolor - Sets the color of the grid lines. - 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 width (in px) of the grid lines. - hoverformat - Sets the hover text formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - layer - Sets the layer on which this axis is displayed. - If *above traces*, this axis is displayed above - all the subplot's traces If *below traces*, - this axis is displayed below all the subplot's - traces, but above the grid lines. Useful when - used together with scatter-like traces with - `cliponaxis` set to False to show markers - and/or text nodes above this axis. - linecolor - Sets the axis line color. - linewidth - Sets the width (in px) of the axis line. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - period - Set the angular period. Has an effect only when - `angularaxis.type` is "category". - rotation - Sets that start position (in degrees) of the - angular axis By default, polar subplots with - `direction` set to "counterclockwise" get a - `rotation` of 0 which corresponds to due East - (like what mathematicians prefer). In turn, - polar with `direction` set to "clockwise" get a - rotation of 90 which corresponds to due North - (like on a compass), - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - showline - Determines whether or not a line bounding this - axis is drawn. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thetaunit - Sets the format unit of the formatted "theta" - values. Has an effect only when - `angularaxis.type` is "linear". - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the tick font. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.layout. - polar.angularaxis.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.lay - out.polar.angularaxis.tickformatstopdefaults), - sets the default property values to use for - elements of - layout.polar.angularaxis.tickformatstops - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - type - Sets the angular axis type. If "linear", set - `thetaunit` to determine the unit in which axis - value are shown. If *category, use `period` to - set the number of integer coordinates around - polar axis. - uirevision - Controls persistence of user-driven changes in - axis `rotation`. Defaults to - `polar.uirevision`. - visible - A single toggle to hide the axis while - preserving interaction like dragging. Default - is true when a cheater plot is present on the - axis, otherwise false -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AngularaxisValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='angularaxis', + parent_name='layout.polar', + **kwargs): + super(AngularaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'AngularAxis'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/_bargap.py b/packages/python/plotly/plotly/validators/layout/polar/_bargap.py index e5167c56e95..523e7d52884 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/_bargap.py +++ b/packages/python/plotly/plotly/validators/layout/polar/_bargap.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class BargapValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="bargap", parent_name="layout.polar", **kwargs): - super(BargapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BargapValidator(_bv.NumberValidator): + def __init__(self, plotly_name='bargap', + parent_name='layout.polar', + **kwargs): + super(BargapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/_barmode.py b/packages/python/plotly/plotly/validators/layout/polar/_barmode.py index 1100a3671c6..8b256f96e9f 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/_barmode.py +++ b/packages/python/plotly/plotly/validators/layout/polar/_barmode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class BarmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="barmode", parent_name="layout.polar", **kwargs): - super(BarmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["stack", "overlay"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BarmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='barmode', + parent_name='layout.polar', + **kwargs): + super(BarmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['stack', 'overlay']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/_bgcolor.py b/packages/python/plotly/plotly/validators/layout/polar/_bgcolor.py index f168d24cbbe..e807d6e29fb 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/layout/polar/_bgcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="bgcolor", parent_name="layout.polar", **kwargs): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='layout.polar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/_domain.py b/packages/python/plotly/plotly/validators/layout/polar/_domain.py index 814b46dce1a..3c75d2abc85 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/_domain.py +++ b/packages/python/plotly/plotly/validators/layout/polar/_domain.py @@ -1,29 +1,15 @@ -import _plotly_utils.basevalidators -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="domain", parent_name="layout.polar", **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 polar subplot - . - row - If there is a layout grid, use the domain for - this row in the grid for this polar subplot . - x - Sets the horizontal domain of this polar - subplot (in plot fraction). - y - Sets the vertical domain of this polar subplot - (in plot fraction). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DomainValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='domain', + parent_name='layout.polar', + **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', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/_gridshape.py b/packages/python/plotly/plotly/validators/layout/polar/_gridshape.py index 438dd954f1e..b69d021b496 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/_gridshape.py +++ b/packages/python/plotly/plotly/validators/layout/polar/_gridshape.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class GridshapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="gridshape", parent_name="layout.polar", **kwargs): - super(GridshapeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["circular", "linear"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridshapeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='gridshape', + parent_name='layout.polar', + **kwargs): + super(GridshapeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['circular', 'linear']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/_hole.py b/packages/python/plotly/plotly/validators/layout/polar/_hole.py index 4795a46b581..cf8ff36aafe 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/_hole.py +++ b/packages/python/plotly/plotly/validators/layout/polar/_hole.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class HoleValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="hole", parent_name="layout.polar", **kwargs): - super(HoleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoleValidator(_bv.NumberValidator): + def __init__(self, plotly_name='hole', + parent_name='layout.polar', + **kwargs): + super(HoleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/_radialaxis.py b/packages/python/plotly/plotly/validators/layout/polar/_radialaxis.py index fa199d8d577..90345707153 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/_radialaxis.py +++ b/packages/python/plotly/plotly/validators/layout/polar/_radialaxis.py @@ -1,352 +1,15 @@ -import _plotly_utils.basevalidators -class RadialaxisValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="radialaxis", parent_name="layout.polar", **kwargs): - super(RadialaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "RadialAxis"), - data_docs=kwargs.pop( - "data_docs", - """ - angle - Sets the angle (in degrees) from which the - radial axis is drawn. Note that by default, - radial axis line on the theta=0 line - corresponds to a line pointing right (like what - mathematicians prefer). Defaults to the first - `polar.sector` angle. - autorange - Determines whether or not the range of this - axis is computed in relation to the input data. - See `rangemode` for more info. If `range` is - provided and it has a value for both the lower - and upper bound, `autorange` is set to False. - Using "min" applies autorange only to set the - minimum. Using "max" applies autorange only to - set the maximum. Using *min reversed* applies - autorange only to set the minimum on a reversed - axis. Using *max reversed* applies autorange - only to set the maximum on a reversed axis. - Using "reversed" applies autorange on both ends - and reverses the axis direction. - autorangeoptions - :class:`plotly.graph_objects.layout.polar.radia - laxis.Autorangeoptions` instance or dict with - compatible properties - autotickangles - When `tickangle` is set to "auto", it will be - set to the first angle in this array that is - large enough to prevent label overlap. - autotypenumbers - Using "strict" a numeric string in trace data - is not converted to a number. Using *convert - types* a numeric string in trace data may be - treated as a number during automatic axis - `type` detection. Defaults to - layout.autotypenumbers. - calendar - Sets the calendar system to use for `range` and - `tick0` if this is a date axis. This does not - set the calendar for interpreting data on this - axis, that's specified in the trace or via the - global `layout.calendar` - categoryarray - Sets the order in which categories on this axis - appear. Only has an effect if `categoryorder` - is set to "array". Used with `categoryorder`. - categoryarraysrc - Sets the source reference on Chart Studio Cloud - for `categoryarray`. - categoryorder - Specifies the ordering logic for the case of - categorical variables. By default, plotly uses - "trace", which specifies the order that is - present in the data supplied. Set - `categoryorder` to *category ascending* or - *category descending* if order should be - determined by the alphanumerical order of the - category names. Set `categoryorder` to "array" - to derive the ordering from the attribute - `categoryarray`. If a category is not found in - the `categoryarray` array, the sorting behavior - for that attribute will be identical to the - "trace" mode. The unspecified categories will - follow the categories in `categoryarray`. Set - `categoryorder` to *total ascending* or *total - descending* if order should be determined by - the numerical order of the values. Similarly, - the order can be determined by the min, max, - sum, mean, geometric mean or median of all the - values. - color - Sets default for all colors associated with - this axis all at once: line, font, tick, and - grid colors. Grid color is lightened by - blending this with the plot background - Individual pieces can override this. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - gridcolor - Sets the color of the grid lines. - 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 width (in px) of the grid lines. - hoverformat - Sets the hover text formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - layer - Sets the layer on which this axis is displayed. - If *above traces*, this axis is displayed above - all the subplot's traces If *below traces*, - this axis is displayed below all the subplot's - traces, but above the grid lines. Useful when - used together with scatter-like traces with - `cliponaxis` set to False to show markers - and/or text nodes above this axis. - linecolor - Sets the axis line color. - linewidth - Sets the width (in px) of the axis line. - maxallowed - Determines the maximum range of this axis. - minallowed - Determines the minimum range of this axis. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - range - Sets the range of this axis. If the axis `type` - is "log", then you must take the log of your - desired range (e.g. to set the range from 1 to - 100, set the range from 0 to 2). If the axis - `type` is "date", it should be date strings, - like date data, though Date objects and unix - milliseconds will be accepted and converted to - strings. If the axis `type` is "category", it - should be numbers, using the scale where each - category is assigned a serial number from zero - in the order it appears. Leaving either or both - elements `null` impacts the default - `autorange`. - rangemode - If *tozero*`, the range extends to 0, - regardless of the input data If "nonnegative", - the range is non-negative, regardless of the - input data. If "normal", the range is computed - in relation to the extrema of the input data - (same behavior as for cartesian axes). - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - showline - Determines whether or not a line bounding this - axis is drawn. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - side - Determines on which side of radial axis line - the tick and tick labels appear. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the tick font. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.layout. - polar.radialaxis.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.lay - out.polar.radialaxis.tickformatstopdefaults), - sets the default property values to use for - elements of - layout.polar.radialaxis.tickformatstops - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.layout.polar.radia - laxis.Title` instance or dict with compatible - properties - type - Sets the axis type. By default, plotly attempts - to determined the axis type by looking into the - data of the traces that referenced the axis in - question. - uirevision - Controls persistence of user-driven changes in - axis `range`, `autorange`, `angle`, and `title` - if in `editable: true` configuration. Defaults - to `polar.uirevision`. - visible - A single toggle to hide the axis while - preserving interaction like dragging. Default - is true when a cheater plot is present on the - axis, otherwise false -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RadialaxisValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='radialaxis', + parent_name='layout.polar', + **kwargs): + super(RadialaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'RadialAxis'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/_sector.py b/packages/python/plotly/plotly/validators/layout/polar/_sector.py index 307f270c9ce..289ba05821b 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/_sector.py +++ b/packages/python/plotly/plotly/validators/layout/polar/_sector.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class SectorValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="sector", parent_name="layout.polar", **kwargs): - super(SectorValidator, 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, - ) +import _plotly_utils.basevalidators as _bv + + +class SectorValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='sector', + parent_name='layout.polar', + **kwargs): + super(SectorValidator, 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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/_uirevision.py b/packages/python/plotly/plotly/validators/layout/polar/_uirevision.py index 9df8e5a598e..7e4e45ab8af 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/_uirevision.py +++ b/packages/python/plotly/plotly/validators/layout/polar/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="layout.polar", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='layout.polar', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/__init__.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/__init__.py index 02c7519fe54..d54b261c201 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._uirevision import UirevisionValidator @@ -53,59 +52,10 @@ from ._autotypenumbers import AutotypenumbersValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._uirevision.UirevisionValidator", - "._type.TypeValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thetaunit.ThetaunitValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showline.ShowlineValidator", - "._showgrid.ShowgridValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._rotation.RotationValidator", - "._period.PeriodValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._linewidth.LinewidthValidator", - "._linecolor.LinecolorValidator", - "._layer.LayerValidator", - "._labelalias.LabelaliasValidator", - "._hoverformat.HoverformatValidator", - "._gridwidth.GridwidthValidator", - "._griddash.GriddashValidator", - "._gridcolor.GridcolorValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._direction.DirectionValidator", - "._color.ColorValidator", - "._categoryorder.CategoryorderValidator", - "._categoryarraysrc.CategoryarraysrcValidator", - "._categoryarray.CategoryarrayValidator", - "._autotypenumbers.AutotypenumbersValidator", - ], + ['._visible.VisibleValidator', '._uirevision.UirevisionValidator', '._type.TypeValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thetaunit.ThetaunitValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showline.ShowlineValidator', '._showgrid.ShowgridValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._rotation.RotationValidator', '._period.PeriodValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._linewidth.LinewidthValidator', '._linecolor.LinecolorValidator', '._layer.LayerValidator', '._labelalias.LabelaliasValidator', '._hoverformat.HoverformatValidator', '._gridwidth.GridwidthValidator', '._griddash.GriddashValidator', '._gridcolor.GridcolorValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._direction.DirectionValidator', '._color.ColorValidator', '._categoryorder.CategoryorderValidator', '._categoryarraysrc.CategoryarraysrcValidator', '._categoryarray.CategoryarrayValidator', '._autotypenumbers.AutotypenumbersValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_autotypenumbers.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_autotypenumbers.py index c4fb31ff105..3c3017be416 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_autotypenumbers.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_autotypenumbers.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class AutotypenumbersValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="autotypenumbers", - parent_name="layout.polar.angularaxis", - **kwargs, - ): - super(AutotypenumbersValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["convert types", "strict"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutotypenumbersValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='autotypenumbers', + parent_name='layout.polar.angularaxis', + **kwargs): + super(AutotypenumbersValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['convert types', 'strict']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_categoryarray.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_categoryarray.py index 233577c1a82..bcc38fa1129 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_categoryarray.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_categoryarray.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name="categoryarray", - parent_name="layout.polar.angularaxis", - **kwargs, - ): - super(CategoryarrayValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CategoryarrayValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='categoryarray', + parent_name='layout.polar.angularaxis', + **kwargs): + super(CategoryarrayValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_categoryarraysrc.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_categoryarraysrc.py index 5b17a0ee66f..0c85bb27d87 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_categoryarraysrc.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_categoryarraysrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="categoryarraysrc", - parent_name="layout.polar.angularaxis", - **kwargs, - ): - super(CategoryarraysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CategoryarraysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='categoryarraysrc', + parent_name='layout.polar.angularaxis', + **kwargs): + super(CategoryarraysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_categoryorder.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_categoryorder.py index 934c867c12c..bb2f6184b92 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_categoryorder.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_categoryorder.py @@ -1,39 +1,14 @@ -import _plotly_utils.basevalidators -class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="categoryorder", - parent_name="layout.polar.angularaxis", - **kwargs, - ): - super(CategoryorderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "trace", - "category ascending", - "category descending", - "array", - "total ascending", - "total descending", - "min ascending", - "min descending", - "max ascending", - "max descending", - "sum ascending", - "sum descending", - "mean ascending", - "mean descending", - "geometric mean ascending", - "geometric mean descending", - "median ascending", - "median descending", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CategoryorderValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='categoryorder', + parent_name='layout.polar.angularaxis', + **kwargs): + super(CategoryorderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['trace', 'category ascending', 'category descending', 'array', 'total ascending', 'total descending', 'min ascending', 'min descending', 'max ascending', 'max descending', 'sum ascending', 'sum descending', 'mean ascending', 'mean descending', 'geometric mean ascending', 'geometric mean descending', 'median ascending', 'median descending']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_color.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_color.py index 5542e4e18d8..ad0bd2524fd 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_color.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.polar.angularaxis", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.polar.angularaxis', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_direction.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_direction.py index b8ce2b5732b..089ba7953fb 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_direction.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_direction.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DirectionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="direction", parent_name="layout.polar.angularaxis", **kwargs - ): - super(DirectionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["counterclockwise", "clockwise"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DirectionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='direction', + parent_name='layout.polar.angularaxis', + **kwargs): + super(DirectionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['counterclockwise', 'clockwise']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_dtick.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_dtick.py index 4c181c746fa..47c14b59715 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_dtick.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="layout.polar.angularaxis", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='layout.polar.angularaxis', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_exponentformat.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_exponentformat.py index 74db8b44589..91ea669d078 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_exponentformat.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="exponentformat", - parent_name="layout.polar.angularaxis", - **kwargs, - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='layout.polar.angularaxis', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_gridcolor.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_gridcolor.py index 2d6dcda3cb0..9f3b0dd77a0 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_gridcolor.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_gridcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="gridcolor", parent_name="layout.polar.angularaxis", **kwargs - ): - super(GridcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='gridcolor', + parent_name='layout.polar.angularaxis', + **kwargs): + super(GridcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_griddash.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_griddash.py index b5c0d236df4..b90e984566b 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_griddash.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_griddash.py @@ -1,16 +1,14 @@ -import _plotly_utils.basevalidators -class GriddashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__( - self, plotly_name="griddash", parent_name="layout.polar.angularaxis", **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, - ) +import _plotly_utils.basevalidators as _bv + + +class GriddashValidator(_bv.DashValidator): + def __init__(self, plotly_name='griddash', + parent_name='layout.polar.angularaxis', + **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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_gridwidth.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_gridwidth.py index f92929571f0..bbfe96b7020 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_gridwidth.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_gridwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="gridwidth", parent_name="layout.polar.angularaxis", **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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='gridwidth', + parent_name='layout.polar.angularaxis', + **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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_hoverformat.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_hoverformat.py index 7370c7294b0..c1560ba0a23 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_hoverformat.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_hoverformat.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="hoverformat", - parent_name="layout.polar.angularaxis", - **kwargs, - ): - super(HoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='hoverformat', + parent_name='layout.polar.angularaxis', + **kwargs): + super(HoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_labelalias.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_labelalias.py index 34062d37ba3..0fc39418d76 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_labelalias.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="layout.polar.angularaxis", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='layout.polar.angularaxis', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_layer.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_layer.py index 40599471087..f6799fc5b66 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_layer.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_layer.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="layer", parent_name="layout.polar.angularaxis", **kwargs - ): - super(LayerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["above traces", "below traces"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LayerValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='layer', + parent_name='layout.polar.angularaxis', + **kwargs): + super(LayerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['above traces', 'below traces']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_linecolor.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_linecolor.py index f1f0031807a..fd33ef3db6b 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_linecolor.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_linecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="linecolor", parent_name="layout.polar.angularaxis", **kwargs - ): - super(LinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='linecolor', + parent_name='layout.polar.angularaxis', + **kwargs): + super(LinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_linewidth.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_linewidth.py index 52f24afbed3..b1e3b866078 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_linewidth.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_linewidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="linewidth", parent_name="layout.polar.angularaxis", **kwargs - ): - super(LinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='linewidth', + parent_name='layout.polar.angularaxis', + **kwargs): + super(LinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_minexponent.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_minexponent.py index ec10b1d93ca..ac2e687ac1a 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_minexponent.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_minexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="minexponent", - parent_name="layout.polar.angularaxis", - **kwargs, - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='layout.polar.angularaxis', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_nticks.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_nticks.py index 0bea91ea073..1bb08f1133b 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_nticks.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="layout.polar.angularaxis", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='layout.polar.angularaxis', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_period.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_period.py index 0fd54802ce8..ab21ec3736f 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_period.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_period.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class PeriodValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="period", parent_name="layout.polar.angularaxis", **kwargs - ): - super(PeriodValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class PeriodValidator(_bv.NumberValidator): + def __init__(self, plotly_name='period', + parent_name='layout.polar.angularaxis', + **kwargs): + super(PeriodValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_rotation.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_rotation.py index 286b130418f..4f18e491c73 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_rotation.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_rotation.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class RotationValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="rotation", parent_name="layout.polar.angularaxis", **kwargs - ): - super(RotationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RotationValidator(_bv.AngleValidator): + def __init__(self, plotly_name='rotation', + parent_name='layout.polar.angularaxis', + **kwargs): + super(RotationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_separatethousands.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_separatethousands.py index 6719fa55eb6..c8d4aaae09c 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="layout.polar.angularaxis", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='layout.polar.angularaxis', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_showexponent.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_showexponent.py index 9e36eb0c27e..318c46b43a3 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_showexponent.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_showexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showexponent", - parent_name="layout.polar.angularaxis", - **kwargs, - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='layout.polar.angularaxis', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_showgrid.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_showgrid.py index 2ee3cfc52bb..c80d5d1c3b8 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_showgrid.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_showgrid.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showgrid", parent_name="layout.polar.angularaxis", **kwargs - ): - super(ShowgridValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowgridValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showgrid', + parent_name='layout.polar.angularaxis', + **kwargs): + super(ShowgridValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_showline.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_showline.py index 5795aff18a5..2fccb9ab6c1 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_showline.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_showline.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showline", parent_name="layout.polar.angularaxis", **kwargs - ): - super(ShowlineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowlineValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showline', + parent_name='layout.polar.angularaxis', + **kwargs): + super(ShowlineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_showticklabels.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_showticklabels.py index 8e27e214bc5..bf4e933a281 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="layout.polar.angularaxis", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='layout.polar.angularaxis', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_showtickprefix.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_showtickprefix.py index 5d431462eb4..ceaa7238215 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="layout.polar.angularaxis", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='layout.polar.angularaxis', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_showticksuffix.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_showticksuffix.py index 88e10e92db0..656dfcdde7b 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="layout.polar.angularaxis", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='layout.polar.angularaxis', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_thetaunit.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_thetaunit.py index 4d2f41ed663..9923e49b8ed 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_thetaunit.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_thetaunit.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThetaunitValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="thetaunit", parent_name="layout.polar.angularaxis", **kwargs - ): - super(ThetaunitValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["radians", "degrees"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThetaunitValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thetaunit', + parent_name='layout.polar.angularaxis', + **kwargs): + super(ThetaunitValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['radians', 'degrees']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tick0.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tick0.py index 7b6b0d051ab..babff8fbb8a 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tick0.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="layout.polar.angularaxis", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='layout.polar.angularaxis', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickangle.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickangle.py index 01fa9b26e07..8a05c6d12d2 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickangle.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="layout.polar.angularaxis", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='layout.polar.angularaxis', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickcolor.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickcolor.py index a63d09bbb51..2dd21a26f37 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="layout.polar.angularaxis", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='layout.polar.angularaxis', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickfont.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickfont.py index a615aaba28c..35842cca373 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickfont.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="layout.polar.angularaxis", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='layout.polar.angularaxis', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickformat.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickformat.py index c160be58bd0..17d26125bef 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickformat.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="layout.polar.angularaxis", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='layout.polar.angularaxis', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickformatstopdefaults.py index 2fe4dec5643..83ca41b1269 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="layout.polar.angularaxis", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='layout.polar.angularaxis', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickformatstops.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickformatstops.py index 13809e2e5ce..a2f99597da3 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="layout.polar.angularaxis", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='layout.polar.angularaxis', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_ticklabelstep.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_ticklabelstep.py index 89edf13850a..6284b95ca67 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_ticklabelstep.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="ticklabelstep", - parent_name="layout.polar.angularaxis", - **kwargs, - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='layout.polar.angularaxis', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_ticklen.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_ticklen.py index 826379039f9..842cee0afe0 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_ticklen.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="layout.polar.angularaxis", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='layout.polar.angularaxis', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickmode.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickmode.py index 4acfc40cde3..edb1e8596bd 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickmode.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="layout.polar.angularaxis", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='layout.polar.angularaxis', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickprefix.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickprefix.py index d0fa9bac227..60afa375940 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="layout.polar.angularaxis", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='layout.polar.angularaxis', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_ticks.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_ticks.py index 3220db663f4..bc8bd4f445e 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_ticks.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="layout.polar.angularaxis", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='layout.polar.angularaxis', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_ticksuffix.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_ticksuffix.py index 8f388f71141..6b9d0aced86 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="layout.polar.angularaxis", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='layout.polar.angularaxis', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_ticktext.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_ticktext.py index efd3457870e..52d66ce8d50 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_ticktext.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="layout.polar.angularaxis", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='layout.polar.angularaxis', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_ticktextsrc.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_ticktextsrc.py index 31a4de19d0e..cd5de5f5537 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_ticktextsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="ticktextsrc", - parent_name="layout.polar.angularaxis", - **kwargs, - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='layout.polar.angularaxis', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickvals.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickvals.py index 3964899f09e..9759e21286e 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickvals.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="layout.polar.angularaxis", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='layout.polar.angularaxis', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickvalssrc.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickvalssrc.py index 671364f7bec..d154e495416 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickvalssrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="tickvalssrc", - parent_name="layout.polar.angularaxis", - **kwargs, - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='layout.polar.angularaxis', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickwidth.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickwidth.py index cc73c0913bc..912e69bd260 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="layout.polar.angularaxis", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='layout.polar.angularaxis', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_type.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_type.py index 00cc3b03f2f..ae7c4a43df7 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_type.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_type.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="type", parent_name="layout.polar.angularaxis", **kwargs - ): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["-", "linear", "category"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='layout.polar.angularaxis', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['-', 'linear', 'category']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_uirevision.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_uirevision.py index 5a616ce81b2..0ef14513da9 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_uirevision.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_uirevision.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="uirevision", parent_name="layout.polar.angularaxis", **kwargs - ): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='layout.polar.angularaxis', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_visible.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_visible.py index 0caebf1a762..6bac43b17de 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_visible.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_visible.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="visible", parent_name="layout.polar.angularaxis", **kwargs - ): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='layout.polar.angularaxis', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/__init__.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_color.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_color.py index 01ab764bd3f..c09b3449619 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="layout.polar.angularaxis.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.polar.angularaxis.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_family.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_family.py index 94a810246dc..1390eb4363f 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="layout.polar.angularaxis.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.polar.angularaxis.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_lineposition.py index 1528a65a5f7..f87045fa9df 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.polar.angularaxis.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.polar.angularaxis.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_shadow.py index e1446abad40..86284e760a4 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="layout.polar.angularaxis.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.polar.angularaxis.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_size.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_size.py index 9926e207dab..f380f20bfe9 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="layout.polar.angularaxis.tickfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.polar.angularaxis.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_style.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_style.py index e10bd564b79..c047c0905a4 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="layout.polar.angularaxis.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.polar.angularaxis.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_textcase.py index b2814f726c9..c8100a88f03 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="layout.polar.angularaxis.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.polar.angularaxis.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_variant.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_variant.py index 5d2643d5655..5f9ffabd4e9 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="layout.polar.angularaxis.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.polar.angularaxis.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_weight.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_weight.py index 2fd57945c11..e7c28f65bcd 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="layout.polar.angularaxis.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.polar.angularaxis.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickformatstop/_dtickrange.py index 40ce41230b7..0d60d0cf94e 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="layout.polar.angularaxis.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - items=kwargs.pop( - "items", - [ - {"editType": "plot", "valType": "any"}, - {"editType": "plot", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='layout.polar.angularaxis.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + items=kwargs.pop('items', [{'editType': 'plot', 'valType': 'any'}, {'editType': 'plot', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickformatstop/_enabled.py index 2d01c9a1af0..b2980aa036d 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="layout.polar.angularaxis.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='layout.polar.angularaxis.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickformatstop/_name.py index be3e5bf316f..6c698e422dc 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="layout.polar.angularaxis.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='layout.polar.angularaxis.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickformatstop/_templateitemname.py index 8eb582d6d59..d50760595fb 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="layout.polar.angularaxis.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='layout.polar.angularaxis.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickformatstop/_value.py index d133aa048d1..f241c2a42c8 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="layout.polar.angularaxis.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='layout.polar.angularaxis.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/domain/__init__.py b/packages/python/plotly/plotly/validators/layout/polar/domain/__init__.py index 67de5030d0a..705a2194402 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/polar/domain/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._y import YValidator from ._x import XValidator @@ -8,14 +7,10 @@ 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", - ], + ['._y.YValidator', '._x.XValidator', '._row.RowValidator', '._column.ColumnValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/polar/domain/_column.py b/packages/python/plotly/plotly/validators/layout/polar/domain/_column.py index d22c8d7a5d0..1121f70223d 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/domain/_column.py +++ b/packages/python/plotly/plotly/validators/layout/polar/domain/_column.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="column", parent_name="layout.polar.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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColumnValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='column', + parent_name='layout.polar.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/domain/_row.py b/packages/python/plotly/plotly/validators/layout/polar/domain/_row.py index 924b140b8c2..0cdda7bdfb8 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/domain/_row.py +++ b/packages/python/plotly/plotly/validators/layout/polar/domain/_row.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="row", parent_name="layout.polar.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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RowValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='row', + parent_name='layout.polar.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/domain/_x.py b/packages/python/plotly/plotly/validators/layout/polar/domain/_x.py index 0fb9c883001..9a964dd0b82 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/domain/_x.py +++ b/packages/python/plotly/plotly/validators/layout/polar/domain/_x.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="x", parent_name="layout.polar.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, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='x', + parent_name='layout.polar.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/domain/_y.py b/packages/python/plotly/plotly/validators/layout/polar/domain/_y.py index e2c659ac279..eb1f5e5ebcb 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/domain/_y.py +++ b/packages/python/plotly/plotly/validators/layout/polar/domain/_y.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="y", parent_name="layout.polar.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, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='y', + parent_name='layout.polar.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/__init__.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/__init__.py index 4f19bdf159b..1ea76974326 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._uirevision import UirevisionValidator @@ -60,66 +59,10 @@ from ._angle import AngleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._uirevision.UirevisionValidator", - "._type.TypeValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._side.SideValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showline.ShowlineValidator", - "._showgrid.ShowgridValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._rangemode.RangemodeValidator", - "._range.RangeValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._minallowed.MinallowedValidator", - "._maxallowed.MaxallowedValidator", - "._linewidth.LinewidthValidator", - "._linecolor.LinecolorValidator", - "._layer.LayerValidator", - "._labelalias.LabelaliasValidator", - "._hoverformat.HoverformatValidator", - "._gridwidth.GridwidthValidator", - "._griddash.GriddashValidator", - "._gridcolor.GridcolorValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._color.ColorValidator", - "._categoryorder.CategoryorderValidator", - "._categoryarraysrc.CategoryarraysrcValidator", - "._categoryarray.CategoryarrayValidator", - "._calendar.CalendarValidator", - "._autotypenumbers.AutotypenumbersValidator", - "._autotickangles.AutotickanglesValidator", - "._autorangeoptions.AutorangeoptionsValidator", - "._autorange.AutorangeValidator", - "._angle.AngleValidator", - ], + ['._visible.VisibleValidator', '._uirevision.UirevisionValidator', '._type.TypeValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._side.SideValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showline.ShowlineValidator', '._showgrid.ShowgridValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._rangemode.RangemodeValidator', '._range.RangeValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._minallowed.MinallowedValidator', '._maxallowed.MaxallowedValidator', '._linewidth.LinewidthValidator', '._linecolor.LinecolorValidator', '._layer.LayerValidator', '._labelalias.LabelaliasValidator', '._hoverformat.HoverformatValidator', '._gridwidth.GridwidthValidator', '._griddash.GriddashValidator', '._gridcolor.GridcolorValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._color.ColorValidator', '._categoryorder.CategoryorderValidator', '._categoryarraysrc.CategoryarraysrcValidator', '._categoryarray.CategoryarrayValidator', '._calendar.CalendarValidator', '._autotypenumbers.AutotypenumbersValidator', '._autotickangles.AutotickanglesValidator', '._autorangeoptions.AutorangeoptionsValidator', '._autorange.AutorangeValidator', '._angle.AngleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_angle.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_angle.py index da1e1d0fcdd..bf6bd1eda2e 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_angle.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_angle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AngleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="angle", parent_name="layout.polar.radialaxis", **kwargs - ): - super(AngleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AngleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='angle', + parent_name='layout.polar.radialaxis', + **kwargs): + super(AngleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_autorange.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_autorange.py index af9cf4e5f3e..fe51029e2b0 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_autorange.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_autorange.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class AutorangeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="autorange", parent_name="layout.polar.radialaxis", **kwargs - ): - super(AutorangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop( - "values", - [True, False, "reversed", "min reversed", "max reversed", "min", "max"], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutorangeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='autorange', + parent_name='layout.polar.radialaxis', + **kwargs): + super(AutorangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', [True, False, 'reversed', 'min reversed', 'max reversed', 'min', 'max']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_autorangeoptions.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_autorangeoptions.py index 5920011fbe0..ade3473d5f1 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_autorangeoptions.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_autorangeoptions.py @@ -1,38 +1,15 @@ -import _plotly_utils.basevalidators -class AutorangeoptionsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="autorangeoptions", - parent_name="layout.polar.radialaxis", - **kwargs, - ): - super(AutorangeoptionsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Autorangeoptions"), - data_docs=kwargs.pop( - "data_docs", - """ - clipmax - Clip autorange maximum if it goes beyond this - value. Has no effect when - `autorangeoptions.maxallowed` is provided. - clipmin - Clip autorange minimum if it goes beyond this - value. Has no effect when - `autorangeoptions.minallowed` is provided. - include - Ensure this value is included in autorange. - includesrc - Sets the source reference on Chart Studio Cloud - for `include`. - maxallowed - Use this value exactly as autorange maximum. - minallowed - Use this value exactly as autorange minimum. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutorangeoptionsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='autorangeoptions', + parent_name='layout.polar.radialaxis', + **kwargs): + super(AutorangeoptionsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Autorangeoptions'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_autotickangles.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_autotickangles.py index 9338fb88df9..ff405376cd8 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_autotickangles.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_autotickangles.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class AutotickanglesValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="autotickangles", - parent_name="layout.polar.radialaxis", - **kwargs, - ): - super(AutotickanglesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - free_length=kwargs.pop("free_length", True), - items=kwargs.pop("items", {"valType": "angle"}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutotickanglesValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='autotickangles', + parent_name='layout.polar.radialaxis', + **kwargs): + super(AutotickanglesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + free_length=kwargs.pop('free_length', True), + items=kwargs.pop('items', {'valType': 'angle'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_autotypenumbers.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_autotypenumbers.py index 3dfcc3c7183..d1b0b603feb 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_autotypenumbers.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_autotypenumbers.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class AutotypenumbersValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="autotypenumbers", - parent_name="layout.polar.radialaxis", - **kwargs, - ): - super(AutotypenumbersValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["convert types", "strict"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutotypenumbersValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='autotypenumbers', + parent_name='layout.polar.radialaxis', + **kwargs): + super(AutotypenumbersValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['convert types', 'strict']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_calendar.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_calendar.py index 04b8266c426..84dc0352525 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_calendar.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_calendar.py @@ -1,34 +1,14 @@ -import _plotly_utils.basevalidators -class CalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="calendar", parent_name="layout.polar.radialaxis", **kwargs - ): - super(CalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='calendar', + parent_name='layout.polar.radialaxis', + **kwargs): + super(CalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_categoryarray.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_categoryarray.py index a31614ecf6c..27994d14f8c 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_categoryarray.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_categoryarray.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name="categoryarray", - parent_name="layout.polar.radialaxis", - **kwargs, - ): - super(CategoryarrayValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CategoryarrayValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='categoryarray', + parent_name='layout.polar.radialaxis', + **kwargs): + super(CategoryarrayValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_categoryarraysrc.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_categoryarraysrc.py index 7e9e8375b9a..d074cc98017 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_categoryarraysrc.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_categoryarraysrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="categoryarraysrc", - parent_name="layout.polar.radialaxis", - **kwargs, - ): - super(CategoryarraysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CategoryarraysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='categoryarraysrc', + parent_name='layout.polar.radialaxis', + **kwargs): + super(CategoryarraysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_categoryorder.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_categoryorder.py index ecd82f18d32..8a9f9b9b986 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_categoryorder.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_categoryorder.py @@ -1,39 +1,14 @@ -import _plotly_utils.basevalidators -class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="categoryorder", - parent_name="layout.polar.radialaxis", - **kwargs, - ): - super(CategoryorderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "trace", - "category ascending", - "category descending", - "array", - "total ascending", - "total descending", - "min ascending", - "min descending", - "max ascending", - "max descending", - "sum ascending", - "sum descending", - "mean ascending", - "mean descending", - "geometric mean ascending", - "geometric mean descending", - "median ascending", - "median descending", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CategoryorderValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='categoryorder', + parent_name='layout.polar.radialaxis', + **kwargs): + super(CategoryorderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['trace', 'category ascending', 'category descending', 'array', 'total ascending', 'total descending', 'min ascending', 'min descending', 'max ascending', 'max descending', 'sum ascending', 'sum descending', 'mean ascending', 'mean descending', 'geometric mean ascending', 'geometric mean descending', 'median ascending', 'median descending']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_color.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_color.py index c6ac9bef47f..ec950576d39 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_color.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.polar.radialaxis", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.polar.radialaxis', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_dtick.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_dtick.py index 39a2e9ca32d..cee77087fbe 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_dtick.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="layout.polar.radialaxis", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='layout.polar.radialaxis', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_exponentformat.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_exponentformat.py index 73046ca69df..ccc85cacc05 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_exponentformat.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="exponentformat", - parent_name="layout.polar.radialaxis", - **kwargs, - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='layout.polar.radialaxis', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_gridcolor.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_gridcolor.py index 1e8a2820faa..887399130d7 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_gridcolor.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_gridcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="gridcolor", parent_name="layout.polar.radialaxis", **kwargs - ): - super(GridcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='gridcolor', + parent_name='layout.polar.radialaxis', + **kwargs): + super(GridcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_griddash.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_griddash.py index 004ade41b00..53679d1270b 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_griddash.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_griddash.py @@ -1,16 +1,14 @@ -import _plotly_utils.basevalidators -class GriddashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__( - self, plotly_name="griddash", parent_name="layout.polar.radialaxis", **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, - ) +import _plotly_utils.basevalidators as _bv + + +class GriddashValidator(_bv.DashValidator): + def __init__(self, plotly_name='griddash', + parent_name='layout.polar.radialaxis', + **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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_gridwidth.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_gridwidth.py index 23b83276499..d17ef7e9720 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_gridwidth.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_gridwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="gridwidth", parent_name="layout.polar.radialaxis", **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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='gridwidth', + parent_name='layout.polar.radialaxis', + **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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_hoverformat.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_hoverformat.py index 8681eb91638..b7d34e60574 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_hoverformat.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_hoverformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="hoverformat", parent_name="layout.polar.radialaxis", **kwargs - ): - super(HoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='hoverformat', + parent_name='layout.polar.radialaxis', + **kwargs): + super(HoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_labelalias.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_labelalias.py index 7e3a180aa87..a6713f58a93 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_labelalias.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="layout.polar.radialaxis", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='layout.polar.radialaxis', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_layer.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_layer.py index 09f45dee59d..7148ec485b4 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_layer.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_layer.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="layer", parent_name="layout.polar.radialaxis", **kwargs - ): - super(LayerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["above traces", "below traces"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LayerValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='layer', + parent_name='layout.polar.radialaxis', + **kwargs): + super(LayerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['above traces', 'below traces']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_linecolor.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_linecolor.py index aadb3aa1b50..0282afd5639 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_linecolor.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_linecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="linecolor", parent_name="layout.polar.radialaxis", **kwargs - ): - super(LinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='linecolor', + parent_name='layout.polar.radialaxis', + **kwargs): + super(LinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_linewidth.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_linewidth.py index 6d8216a40f5..21fbdcefbe1 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_linewidth.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_linewidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="linewidth", parent_name="layout.polar.radialaxis", **kwargs - ): - super(LinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='linewidth', + parent_name='layout.polar.radialaxis', + **kwargs): + super(LinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_maxallowed.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_maxallowed.py index ee6a29d22d7..65938107f30 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_maxallowed.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_maxallowed.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MaxallowedValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="maxallowed", parent_name="layout.polar.radialaxis", **kwargs - ): - super(MaxallowedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"^autorange": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxallowedValidator(_bv.AnyValidator): + def __init__(self, plotly_name='maxallowed', + parent_name='layout.polar.radialaxis', + **kwargs): + super(MaxallowedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'^autorange': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_minallowed.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_minallowed.py index 8b7d83f93de..66039846884 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_minallowed.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_minallowed.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinallowedValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="minallowed", parent_name="layout.polar.radialaxis", **kwargs - ): - super(MinallowedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"^autorange": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinallowedValidator(_bv.AnyValidator): + def __init__(self, plotly_name='minallowed', + parent_name='layout.polar.radialaxis', + **kwargs): + super(MinallowedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'^autorange': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_minexponent.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_minexponent.py index 010bf6f6f95..5f8218c2e5c 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_minexponent.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="layout.polar.radialaxis", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='layout.polar.radialaxis', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_nticks.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_nticks.py index 8b760bd621c..3e543e77af9 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_nticks.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="layout.polar.radialaxis", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='layout.polar.radialaxis', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_range.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_range.py index 1ed75419d68..3d739309bef 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_range.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_range.py @@ -1,30 +1,16 @@ -import _plotly_utils.basevalidators -class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, plotly_name="range", parent_name="layout.polar.radialaxis", **kwargs - ): - super(RangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"autorange": False}), - items=kwargs.pop( - "items", - [ - { - "editType": "plot", - "impliedEdits": {"^autorange": False}, - "valType": "any", - }, - { - "editType": "plot", - "impliedEdits": {"^autorange": False}, - "valType": "any", - }, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='range', + parent_name='layout.polar.radialaxis', + **kwargs): + super(RangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'autorange': False}), + items=kwargs.pop('items', [{'editType': 'plot', 'impliedEdits': {'^autorange': False}, 'valType': 'any'}, {'editType': 'plot', 'impliedEdits': {'^autorange': False}, 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_rangemode.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_rangemode.py index 89b2c4a9f28..e45566ff86a 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_rangemode.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_rangemode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class RangemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="rangemode", parent_name="layout.polar.radialaxis", **kwargs - ): - super(RangemodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["tozero", "nonnegative", "normal"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RangemodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='rangemode', + parent_name='layout.polar.radialaxis', + **kwargs): + super(RangemodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['tozero', 'nonnegative', 'normal']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_separatethousands.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_separatethousands.py index 02ca7be1900..5b7a2140af7 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="layout.polar.radialaxis", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='layout.polar.radialaxis', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_showexponent.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_showexponent.py index c9a6b09307c..af09d77ad96 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_showexponent.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_showexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showexponent", - parent_name="layout.polar.radialaxis", - **kwargs, - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='layout.polar.radialaxis', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_showgrid.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_showgrid.py index 1b583de9f93..909d248a2d6 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_showgrid.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_showgrid.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showgrid", parent_name="layout.polar.radialaxis", **kwargs - ): - super(ShowgridValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowgridValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showgrid', + parent_name='layout.polar.radialaxis', + **kwargs): + super(ShowgridValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_showline.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_showline.py index 4ba88625294..27816145ba9 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_showline.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_showline.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showline", parent_name="layout.polar.radialaxis", **kwargs - ): - super(ShowlineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowlineValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showline', + parent_name='layout.polar.radialaxis', + **kwargs): + super(ShowlineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_showticklabels.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_showticklabels.py index 799108d739e..f06e61e87f4 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="layout.polar.radialaxis", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='layout.polar.radialaxis', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_showtickprefix.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_showtickprefix.py index fe867368da0..991a2d85ea8 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="layout.polar.radialaxis", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='layout.polar.radialaxis', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_showticksuffix.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_showticksuffix.py index 4db6465ecc2..e371d3049e5 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="layout.polar.radialaxis", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='layout.polar.radialaxis', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_side.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_side.py index f54d7de3a78..ca4719ce934 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_side.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_side.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="side", parent_name="layout.polar.radialaxis", **kwargs - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["clockwise", "counterclockwise"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='layout.polar.radialaxis', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['clockwise', 'counterclockwise']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tick0.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tick0.py index 8c2e2eefafb..94c49a71443 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tick0.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="layout.polar.radialaxis", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='layout.polar.radialaxis', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickangle.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickangle.py index 3a0acfdd8cb..0bc2ed8b74f 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickangle.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="layout.polar.radialaxis", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='layout.polar.radialaxis', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickcolor.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickcolor.py index 343113607dc..486574a8564 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="layout.polar.radialaxis", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='layout.polar.radialaxis', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickfont.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickfont.py index ad67d14d267..b6dc3b8b1f0 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickfont.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="layout.polar.radialaxis", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='layout.polar.radialaxis', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickformat.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickformat.py index d83bdf2e2b9..4193031366c 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickformat.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="layout.polar.radialaxis", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='layout.polar.radialaxis', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickformatstopdefaults.py index 075a4d892d6..e1e7652adef 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="layout.polar.radialaxis", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='layout.polar.radialaxis', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickformatstops.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickformatstops.py index 41a080b5b0c..508a5dbf4ae 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="layout.polar.radialaxis", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='layout.polar.radialaxis', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_ticklabelstep.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_ticklabelstep.py index 4321fc6d24c..45b4536a0d2 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_ticklabelstep.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="ticklabelstep", - parent_name="layout.polar.radialaxis", - **kwargs, - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='layout.polar.radialaxis', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_ticklen.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_ticklen.py index 3373cf967ca..d2e1b61f9ef 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_ticklen.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="layout.polar.radialaxis", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='layout.polar.radialaxis', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickmode.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickmode.py index 9cd4a4e43c1..1f428d2814a 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickmode.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="layout.polar.radialaxis", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='layout.polar.radialaxis', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickprefix.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickprefix.py index cd7502f133a..e7f03740f28 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="layout.polar.radialaxis", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='layout.polar.radialaxis', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_ticks.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_ticks.py index 1e885a57ff5..17a31750ba2 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_ticks.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="layout.polar.radialaxis", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='layout.polar.radialaxis', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_ticksuffix.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_ticksuffix.py index e134aaecf64..447e5de4194 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="layout.polar.radialaxis", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='layout.polar.radialaxis', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_ticktext.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_ticktext.py index ce387f8c30e..351d957f3cd 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_ticktext.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="layout.polar.radialaxis", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='layout.polar.radialaxis', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_ticktextsrc.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_ticktextsrc.py index 94e4a40e0fb..1cd996eb471 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="layout.polar.radialaxis", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='layout.polar.radialaxis', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickvals.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickvals.py index 643e0b978bd..b6c793a8dd7 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickvals.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="layout.polar.radialaxis", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='layout.polar.radialaxis', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickvalssrc.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickvalssrc.py index 18f7cc7a0a1..4d7195fa5ce 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="layout.polar.radialaxis", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='layout.polar.radialaxis', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickwidth.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickwidth.py index a0a6cf00ffa..1c9596be5f7 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="layout.polar.radialaxis", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='layout.polar.radialaxis', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_title.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_title.py index bc4cd9a8742..e1b839e3a40 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_title.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_title.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="layout.polar.radialaxis", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this axis' title font. - text - Sets the title of this axis. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='layout.polar.radialaxis', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_type.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_type.py index 42ed593d4e2..ff21a9d0309 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_type.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_type.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="type", parent_name="layout.polar.radialaxis", **kwargs - ): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["-", "linear", "log", "date", "category"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='layout.polar.radialaxis', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['-', 'linear', 'log', 'date', 'category']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_uirevision.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_uirevision.py index 47e3d1eaed5..f04c732add7 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_uirevision.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_uirevision.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="uirevision", parent_name="layout.polar.radialaxis", **kwargs - ): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='layout.polar.radialaxis', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_visible.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_visible.py index d09b1c2dcca..014bd25998a 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_visible.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_visible.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="visible", parent_name="layout.polar.radialaxis", **kwargs - ): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='layout.polar.radialaxis', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/autorangeoptions/__init__.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/autorangeoptions/__init__.py index 701f84c04e0..7f4b2620040 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/autorangeoptions/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/autorangeoptions/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._minallowed import MinallowedValidator from ._maxallowed import MaxallowedValidator @@ -10,16 +9,10 @@ from ._clipmax import ClipmaxValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._minallowed.MinallowedValidator", - "._maxallowed.MaxallowedValidator", - "._includesrc.IncludesrcValidator", - "._include.IncludeValidator", - "._clipmin.ClipminValidator", - "._clipmax.ClipmaxValidator", - ], + ['._minallowed.MinallowedValidator', '._maxallowed.MaxallowedValidator', '._includesrc.IncludesrcValidator', '._include.IncludeValidator', '._clipmin.ClipminValidator', '._clipmax.ClipmaxValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/autorangeoptions/_clipmax.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/autorangeoptions/_clipmax.py index 6196cc9bf85..932c0b69dd2 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/autorangeoptions/_clipmax.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/autorangeoptions/_clipmax.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ClipmaxValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="clipmax", - parent_name="layout.polar.radialaxis.autorangeoptions", - **kwargs, - ): - super(ClipmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ClipmaxValidator(_bv.AnyValidator): + def __init__(self, plotly_name='clipmax', + parent_name='layout.polar.radialaxis.autorangeoptions', + **kwargs): + super(ClipmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/autorangeoptions/_clipmin.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/autorangeoptions/_clipmin.py index db92e2cc259..13e21d64ec9 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/autorangeoptions/_clipmin.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/autorangeoptions/_clipmin.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ClipminValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="clipmin", - parent_name="layout.polar.radialaxis.autorangeoptions", - **kwargs, - ): - super(ClipminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ClipminValidator(_bv.AnyValidator): + def __init__(self, plotly_name='clipmin', + parent_name='layout.polar.radialaxis.autorangeoptions', + **kwargs): + super(ClipminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/autorangeoptions/_include.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/autorangeoptions/_include.py index 3a64de5c163..8df6a4e254a 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/autorangeoptions/_include.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/autorangeoptions/_include.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class IncludeValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="include", - parent_name="layout.polar.radialaxis.autorangeoptions", - **kwargs, - ): - super(IncludeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IncludeValidator(_bv.AnyValidator): + def __init__(self, plotly_name='include', + parent_name='layout.polar.radialaxis.autorangeoptions', + **kwargs): + super(IncludeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/autorangeoptions/_includesrc.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/autorangeoptions/_includesrc.py index 144738c7957..7afbfe83835 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/autorangeoptions/_includesrc.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/autorangeoptions/_includesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class IncludesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="includesrc", - parent_name="layout.polar.radialaxis.autorangeoptions", - **kwargs, - ): - super(IncludesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IncludesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='includesrc', + parent_name='layout.polar.radialaxis.autorangeoptions', + **kwargs): + super(IncludesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/autorangeoptions/_maxallowed.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/autorangeoptions/_maxallowed.py index 12bf22d96c4..4bccd3b8776 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/autorangeoptions/_maxallowed.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/autorangeoptions/_maxallowed.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class MaxallowedValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="maxallowed", - parent_name="layout.polar.radialaxis.autorangeoptions", - **kwargs, - ): - super(MaxallowedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MaxallowedValidator(_bv.AnyValidator): + def __init__(self, plotly_name='maxallowed', + parent_name='layout.polar.radialaxis.autorangeoptions', + **kwargs): + super(MaxallowedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/autorangeoptions/_minallowed.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/autorangeoptions/_minallowed.py index 95b06d26ee6..84bc5fdc90a 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/autorangeoptions/_minallowed.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/autorangeoptions/_minallowed.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class MinallowedValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="minallowed", - parent_name="layout.polar.radialaxis.autorangeoptions", - **kwargs, - ): - super(MinallowedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MinallowedValidator(_bv.AnyValidator): + def __init__(self, plotly_name='minallowed', + parent_name='layout.polar.radialaxis.autorangeoptions', + **kwargs): + super(MinallowedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/__init__.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_color.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_color.py index 8023362f586..36781b0d0e6 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="layout.polar.radialaxis.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.polar.radialaxis.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_family.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_family.py index b585e5ab665..016bb6e43a9 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="layout.polar.radialaxis.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.polar.radialaxis.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_lineposition.py index 70eb69c23eb..d555b1d4ea4 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.polar.radialaxis.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.polar.radialaxis.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_shadow.py index 8545b8ded85..d707efad1a1 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="layout.polar.radialaxis.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.polar.radialaxis.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_size.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_size.py index a7493d083b0..3d2f9d29184 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="layout.polar.radialaxis.tickfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.polar.radialaxis.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_style.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_style.py index 7f6fa6f5b1a..770ba52e9b2 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="layout.polar.radialaxis.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.polar.radialaxis.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_textcase.py index 81149627f74..202e6371198 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="layout.polar.radialaxis.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.polar.radialaxis.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_variant.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_variant.py index eb0a77242fa..7f98ba5ccf3 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="layout.polar.radialaxis.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.polar.radialaxis.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_weight.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_weight.py index 50d84447a89..ed7720c42b5 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="layout.polar.radialaxis.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.polar.radialaxis.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickformatstop/_dtickrange.py index 3d53c63dd5b..db13ec8cedb 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="layout.polar.radialaxis.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - items=kwargs.pop( - "items", - [ - {"editType": "plot", "valType": "any"}, - {"editType": "plot", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='layout.polar.radialaxis.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + items=kwargs.pop('items', [{'editType': 'plot', 'valType': 'any'}, {'editType': 'plot', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickformatstop/_enabled.py index be8503cc3db..ffeb8c1497a 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="layout.polar.radialaxis.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='layout.polar.radialaxis.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickformatstop/_name.py index a3d7ce3b93d..93bbdd74247 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="layout.polar.radialaxis.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='layout.polar.radialaxis.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickformatstop/_templateitemname.py index 43e9ed4b5a6..a4076d74003 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="layout.polar.radialaxis.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='layout.polar.radialaxis.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickformatstop/_value.py index d991d35a6e4..1db489930ac 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="layout.polar.radialaxis.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='layout.polar.radialaxis.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/__init__.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/_font.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/_font.py index 2ac30fd47d9..58dd0b33eb3 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/_font.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="layout.polar.radialaxis.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='layout.polar.radialaxis.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/_text.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/_text.py index 9b77810add1..3567b98c89a 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/_text.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="layout.polar.radialaxis.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='layout.polar.radialaxis.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/__init__.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_color.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_color.py index 7e5f192acac..91119ae5d8f 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="layout.polar.radialaxis.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.polar.radialaxis.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_family.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_family.py index ae854b998d5..8ffae235eee 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="layout.polar.radialaxis.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.polar.radialaxis.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_lineposition.py index 5ae165ec28d..82e1110cfa6 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.polar.radialaxis.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.polar.radialaxis.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_shadow.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_shadow.py index b4385665649..90d01dc8052 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="layout.polar.radialaxis.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.polar.radialaxis.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_size.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_size.py index 8e4395068c1..3df6e0953ce 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="layout.polar.radialaxis.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.polar.radialaxis.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_style.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_style.py index 6682debb1b6..94b23b1927f 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="layout.polar.radialaxis.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.polar.radialaxis.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_textcase.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_textcase.py index 1bc0820cb61..6e120eb93ea 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="layout.polar.radialaxis.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.polar.radialaxis.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_variant.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_variant.py index b650934f400..5819896e884 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="layout.polar.radialaxis.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.polar.radialaxis.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_weight.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_weight.py index 2de5695abeb..fcf8642474b 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="layout.polar.radialaxis.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.polar.radialaxis.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/__init__.py index 28f3948043f..e7d5a075bec 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zaxis import ZaxisValidator from ._yaxis import YaxisValidator @@ -17,23 +16,10 @@ from ._annotations import AnnotationsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zaxis.ZaxisValidator", - "._yaxis.YaxisValidator", - "._xaxis.XaxisValidator", - "._uirevision.UirevisionValidator", - "._hovermode.HovermodeValidator", - "._dragmode.DragmodeValidator", - "._domain.DomainValidator", - "._camera.CameraValidator", - "._bgcolor.BgcolorValidator", - "._aspectratio.AspectratioValidator", - "._aspectmode.AspectmodeValidator", - "._annotationdefaults.AnnotationdefaultsValidator", - "._annotations.AnnotationsValidator", - ], + ['._zaxis.ZaxisValidator', '._yaxis.YaxisValidator', '._xaxis.XaxisValidator', '._uirevision.UirevisionValidator', '._hovermode.HovermodeValidator', '._dragmode.DragmodeValidator', '._domain.DomainValidator', '._camera.CameraValidator', '._bgcolor.BgcolorValidator', '._aspectratio.AspectratioValidator', '._aspectmode.AspectmodeValidator', '._annotationdefaults.AnnotationdefaultsValidator', '._annotations.AnnotationsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/_annotationdefaults.py b/packages/python/plotly/plotly/validators/layout/scene/_annotationdefaults.py index a6faa3f14d8..4dfefe77414 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/_annotationdefaults.py +++ b/packages/python/plotly/plotly/validators/layout/scene/_annotationdefaults.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class AnnotationdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="annotationdefaults", parent_name="layout.scene", **kwargs - ): - super(AnnotationdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Annotation"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AnnotationdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='annotationdefaults', + parent_name='layout.scene', + **kwargs): + super(AnnotationdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Annotation'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/_annotations.py b/packages/python/plotly/plotly/validators/layout/scene/_annotations.py index 59bc4de65b6..2c7b244a7ba 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/_annotations.py +++ b/packages/python/plotly/plotly/validators/layout/scene/_annotations.py @@ -1,192 +1,15 @@ -import _plotly_utils.basevalidators -class AnnotationsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__(self, plotly_name="annotations", parent_name="layout.scene", **kwargs): - super(AnnotationsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Annotation"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the `text` - within the box. Has an effect only if `text` - spans two or more lines (i.e. `text` contains - one or more
HTML tags) or if an explicit - width is set to override the text width. - arrowcolor - Sets the color of the annotation arrow. - arrowhead - Sets the end annotation arrow head style. - arrowside - Sets the annotation arrow head position. - arrowsize - Sets the size of the end annotation arrow head, - relative to `arrowwidth`. A value of 1 - (default) gives a head about 3x as wide as the - line. - arrowwidth - Sets the width (in px) of annotation arrow - line. - ax - Sets the x component of the arrow tail about - the arrow head (in pixels). - ay - Sets the y component of the arrow tail about - the arrow head (in pixels). - bgcolor - Sets the background color of the annotation. - bordercolor - Sets the color of the border enclosing the - annotation `text`. - borderpad - Sets the padding (in px) between the `text` and - the enclosing border. - borderwidth - Sets the width (in px) of the border enclosing - the annotation `text`. - captureevents - Determines whether the annotation text box - captures mouse move and click events, or allows - those events to pass through to data points in - the plot that may be behind the annotation. By - default `captureevents` is False unless - `hovertext` is provided. If you use the event - `plotly_clickannotation` without `hovertext` - you must explicitly enable `captureevents`. - font - Sets the annotation text font. - height - Sets an explicit height for the text box. null - (default) lets the text set the box height. - Taller text will be clipped. - hoverlabel - :class:`plotly.graph_objects.layout.scene.annot - ation.Hoverlabel` instance or dict with - compatible properties - hovertext - Sets text to appear when hovering over this - annotation. If omitted or blank, no hover label - will appear. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - opacity - Sets the opacity of the annotation (text + - arrow). - showarrow - Determines whether or not the annotation is - drawn with an arrow. If True, `text` is placed - near the arrow's tail. If False, `text` lines - up with the `x` and `y` provided. - standoff - Sets a distance, in pixels, to move the end - arrowhead away from the position it is pointing - at, for example to point at the edge of a - marker independent of zoom. Note that this - shortens the arrow from the `ax` / `ay` vector, - in contrast to `xshift` / `yshift` which moves - everything by this amount. - startarrowhead - Sets the start annotation arrow head style. - startarrowsize - Sets the size of the start annotation arrow - head, relative to `arrowwidth`. A value of 1 - (default) gives a head about 3x as wide as the - line. - startstandoff - Sets a distance, in pixels, to move the start - arrowhead away from the position it is pointing - at, for example to point at the edge of a - marker independent of zoom. Note that this - shortens the arrow from the `ax` / `ay` vector, - in contrast to `xshift` / `yshift` which moves - everything by this amount. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - text - Sets the text associated with this annotation. - Plotly uses a subset of HTML tags to do things - like newline (
), bold (), italics - (), hyperlinks (). - Tags , , , , are - also supported. - textangle - Sets the angle at which the `text` is drawn - with respect to the horizontal. - valign - Sets the vertical alignment of the `text` - within the box. Has an effect only if an - explicit height is set to override the text - height. - visible - Determines whether or not this annotation is - visible. - width - Sets an explicit width for the text box. null - (default) lets the text set the box width. - Wider text will be clipped. There is no - automatic wrapping; use
to start a new - line. - x - Sets the annotation's x position. - xanchor - Sets the text box's horizontal position anchor - This anchor binds the `x` position to the - "left", "center" or "right" of the annotation. - For example, if `x` is set to 1, `xref` to - "paper" and `xanchor` to "right" then the - right-most portion of the annotation lines up - with the right-most edge of the plotting area. - If "auto", the anchor is equivalent to "center" - for data-referenced annotations or if there is - an arrow, whereas for paper-referenced with no - arrow, the anchor picked corresponds to the - closest side. - xshift - Shifts the position of the whole annotation and - arrow to the right (positive) or left - (negative) by this many pixels. - y - Sets the annotation's y position. - yanchor - Sets the text box's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the annotation. - For example, if `y` is set to 1, `yref` to - "paper" and `yanchor` to "top" then the top- - most portion of the annotation lines up with - the top-most edge of the plotting area. If - "auto", the anchor is equivalent to "middle" - for data-referenced annotations or if there is - an arrow, whereas for paper-referenced with no - arrow, the anchor picked corresponds to the - closest side. - yshift - Shifts the position of the whole annotation and - arrow up (positive) or down (negative) by this - many pixels. - z - Sets the annotation's z position. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AnnotationsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='annotations', + parent_name='layout.scene', + **kwargs): + super(AnnotationsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Annotation'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/_aspectmode.py b/packages/python/plotly/plotly/validators/layout/scene/_aspectmode.py index b610258cffe..b1c3e05e6d3 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/_aspectmode.py +++ b/packages/python/plotly/plotly/validators/layout/scene/_aspectmode.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class AspectmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="aspectmode", parent_name="layout.scene", **kwargs): - super(AspectmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "cube", "data", "manual"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AspectmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='aspectmode', + parent_name='layout.scene', + **kwargs): + super(AspectmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'cube', 'data', 'manual']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/_aspectratio.py b/packages/python/plotly/plotly/validators/layout/scene/_aspectratio.py index b48c3f85978..3ea63196357 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/_aspectratio.py +++ b/packages/python/plotly/plotly/validators/layout/scene/_aspectratio.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class AspectratioValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="aspectratio", parent_name="layout.scene", **kwargs): - super(AspectratioValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Aspectratio"), - data_docs=kwargs.pop( - "data_docs", - """ - x +import _plotly_utils.basevalidators as _bv - y - z - -""", - ), - **kwargs, - ) +class AspectratioValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='aspectratio', + parent_name='layout.scene', + **kwargs): + super(AspectratioValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Aspectratio'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/_bgcolor.py b/packages/python/plotly/plotly/validators/layout/scene/_bgcolor.py index 59f974c3866..bada9b3f839 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/layout/scene/_bgcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="bgcolor", parent_name="layout.scene", **kwargs): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='layout.scene', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/_camera.py b/packages/python/plotly/plotly/validators/layout/scene/_camera.py index 15cd9b41214..12887a1e691 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/_camera.py +++ b/packages/python/plotly/plotly/validators/layout/scene/_camera.py @@ -1,36 +1,15 @@ -import _plotly_utils.basevalidators -class CameraValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="camera", parent_name="layout.scene", **kwargs): - super(CameraValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Camera"), - data_docs=kwargs.pop( - "data_docs", - """ - center - Sets the (x,y,z) components of the 'center' - camera vector This vector determines the - translation (x,y,z) space about the center of - this scene. By default, there is no such - translation. - eye - Sets the (x,y,z) components of the 'eye' camera - vector. This vector determines the view point - about the origin of this scene. - projection - :class:`plotly.graph_objects.layout.scene.camer - a.Projection` instance or dict with compatible - properties - up - Sets the (x,y,z) components of the 'up' camera - vector. This vector determines the up direction - of this scene with respect to the page. The - default is *{x: 0, y: 0, z: 1}* which means - that the z axis points up. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CameraValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='camera', + parent_name='layout.scene', + **kwargs): + super(CameraValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Camera'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/_domain.py b/packages/python/plotly/plotly/validators/layout/scene/_domain.py index 72e1a3c0877..8654c3ed70b 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/_domain.py +++ b/packages/python/plotly/plotly/validators/layout/scene/_domain.py @@ -1,29 +1,15 @@ -import _plotly_utils.basevalidators -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="domain", parent_name="layout.scene", **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 scene subplot - . - row - If there is a layout grid, use the domain for - this row in the grid for this scene subplot . - x - Sets the horizontal domain of this scene - subplot (in plot fraction). - y - Sets the vertical domain of this scene subplot - (in plot fraction). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DomainValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='domain', + parent_name='layout.scene', + **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', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/_dragmode.py b/packages/python/plotly/plotly/validators/layout/scene/_dragmode.py index ea06274741b..9fcb1978821 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/_dragmode.py +++ b/packages/python/plotly/plotly/validators/layout/scene/_dragmode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class DragmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="dragmode", parent_name="layout.scene", **kwargs): - super(DragmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["orbit", "turntable", "zoom", "pan", False]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DragmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='dragmode', + parent_name='layout.scene', + **kwargs): + super(DragmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['orbit', 'turntable', 'zoom', 'pan', False]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/_hovermode.py b/packages/python/plotly/plotly/validators/layout/scene/_hovermode.py index 89f547c020c..625046fc72c 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/_hovermode.py +++ b/packages/python/plotly/plotly/validators/layout/scene/_hovermode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovermodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="hovermode", parent_name="layout.scene", **kwargs): - super(HovermodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "modebar"), - values=kwargs.pop("values", ["closest", False]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovermodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='hovermode', + parent_name='layout.scene', + **kwargs): + super(HovermodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'modebar'), + values=kwargs.pop('values', ['closest', False]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/_uirevision.py b/packages/python/plotly/plotly/validators/layout/scene/_uirevision.py index 479f876b19d..8681e520ca4 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/_uirevision.py +++ b/packages/python/plotly/plotly/validators/layout/scene/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="layout.scene", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='layout.scene', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/_xaxis.py b/packages/python/plotly/plotly/validators/layout/scene/_xaxis.py index 88d2f7ead71..5c6c039708a 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/_xaxis.py +++ b/packages/python/plotly/plotly/validators/layout/scene/_xaxis.py @@ -1,343 +1,15 @@ -import _plotly_utils.basevalidators -class XaxisValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="xaxis", parent_name="layout.scene", **kwargs): - super(XaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "XAxis"), - data_docs=kwargs.pop( - "data_docs", - """ - autorange - Determines whether or not the range of this - axis is computed in relation to the input data. - See `rangemode` for more info. If `range` is - provided and it has a value for both the lower - and upper bound, `autorange` is set to False. - Using "min" applies autorange only to set the - minimum. Using "max" applies autorange only to - set the maximum. Using *min reversed* applies - autorange only to set the minimum on a reversed - axis. Using *max reversed* applies autorange - only to set the maximum on a reversed axis. - Using "reversed" applies autorange on both ends - and reverses the axis direction. - autorangeoptions - :class:`plotly.graph_objects.layout.scene.xaxis - .Autorangeoptions` instance or dict with - compatible properties - autotypenumbers - Using "strict" a numeric string in trace data - is not converted to a number. Using *convert - types* a numeric string in trace data may be - treated as a number during automatic axis - `type` detection. Defaults to - layout.autotypenumbers. - backgroundcolor - Sets the background color of this axis' wall. - calendar - Sets the calendar system to use for `range` and - `tick0` if this is a date axis. This does not - set the calendar for interpreting data on this - axis, that's specified in the trace or via the - global `layout.calendar` - categoryarray - Sets the order in which categories on this axis - appear. Only has an effect if `categoryorder` - is set to "array". Used with `categoryorder`. - categoryarraysrc - Sets the source reference on Chart Studio Cloud - for `categoryarray`. - categoryorder - Specifies the ordering logic for the case of - categorical variables. By default, plotly uses - "trace", which specifies the order that is - present in the data supplied. Set - `categoryorder` to *category ascending* or - *category descending* if order should be - determined by the alphanumerical order of the - category names. Set `categoryorder` to "array" - to derive the ordering from the attribute - `categoryarray`. If a category is not found in - the `categoryarray` array, the sorting behavior - for that attribute will be identical to the - "trace" mode. The unspecified categories will - follow the categories in `categoryarray`. Set - `categoryorder` to *total ascending* or *total - descending* if order should be determined by - the numerical order of the values. Similarly, - the order can be determined by the min, max, - sum, mean, geometric mean or median of all the - values. - color - Sets default for all colors associated with - this axis all at once: line, font, tick, and - grid colors. Grid color is lightened by - blending this with the plot background - Individual pieces can override this. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - gridcolor - Sets the color of the grid lines. - gridwidth - Sets the width (in px) of the grid lines. - hoverformat - Sets the hover text formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - linecolor - Sets the axis line color. - linewidth - Sets the width (in px) of the axis line. - maxallowed - Determines the maximum range of this axis. - minallowed - Determines the minimum range of this axis. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - mirror - Determines if the axis lines or/and ticks are - mirrored to the opposite side of the plotting - area. If True, the axis lines are mirrored. If - "ticks", the axis lines and ticks are mirrored. - If False, mirroring is disable. If "all", axis - lines are mirrored on all shared-axes subplots. - If "allticks", axis lines and ticks are - mirrored on all shared-axes subplots. - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - range - Sets the range of this axis. If the axis `type` - is "log", then you must take the log of your - desired range (e.g. to set the range from 1 to - 100, set the range from 0 to 2). If the axis - `type` is "date", it should be date strings, - like date data, though Date objects and unix - milliseconds will be accepted and converted to - strings. If the axis `type` is "category", it - should be numbers, using the scale where each - category is assigned a serial number from zero - in the order it appears. Leaving either or both - elements `null` impacts the default - `autorange`. - rangemode - If "normal", the range is computed in relation - to the extrema of the input data. If *tozero*`, - the range extends to 0, regardless of the input - data If "nonnegative", the range is non- - negative, regardless of the input data. Applies - only to linear axes. - separatethousands - If "true", even 4-digit integers are separated - showaxeslabels - Sets whether or not this axis is labeled - showbackground - Sets whether or not this axis' wall has a - background color. - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - showline - Determines whether or not a line bounding this - axis is drawn. - showspikes - Sets whether or not spikes starting from data - points to this axis' wall are shown on hover. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - spikecolor - Sets the color of the spikes. - spikesides - Sets whether or not spikes extending from the - projection data points to this axis' wall - boundaries are shown on hover. - spikethickness - Sets the thickness (in px) of the spikes. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the tick font. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.layout. - scene.xaxis.Tickformatstop` instances or dicts - with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.lay - out.scene.xaxis.tickformatstopdefaults), sets - the default property values to use for elements - of layout.scene.xaxis.tickformatstops - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.layout.scene.xaxis - .Title` instance or dict with compatible - properties - type - Sets the axis type. By default, plotly attempts - to determined the axis type by looking into the - data of the traces that referenced the axis in - question. - visible - A single toggle to hide the axis while - preserving interaction like dragging. Default - is true when a cheater plot is present on the - axis, otherwise false - zeroline - Determines whether or not a line is drawn at - along the 0 value of this axis. If True, the - zero line is drawn on top of the grid lines. - zerolinecolor - Sets the line color of the zero line. - zerolinewidth - Sets the width (in px) of the zero line. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XaxisValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='xaxis', + parent_name='layout.scene', + **kwargs): + super(XaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'XAxis'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/_yaxis.py b/packages/python/plotly/plotly/validators/layout/scene/_yaxis.py index 161a1ef8366..fc112d80dce 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/_yaxis.py +++ b/packages/python/plotly/plotly/validators/layout/scene/_yaxis.py @@ -1,343 +1,15 @@ -import _plotly_utils.basevalidators -class YaxisValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="yaxis", parent_name="layout.scene", **kwargs): - super(YaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "YAxis"), - data_docs=kwargs.pop( - "data_docs", - """ - autorange - Determines whether or not the range of this - axis is computed in relation to the input data. - See `rangemode` for more info. If `range` is - provided and it has a value for both the lower - and upper bound, `autorange` is set to False. - Using "min" applies autorange only to set the - minimum. Using "max" applies autorange only to - set the maximum. Using *min reversed* applies - autorange only to set the minimum on a reversed - axis. Using *max reversed* applies autorange - only to set the maximum on a reversed axis. - Using "reversed" applies autorange on both ends - and reverses the axis direction. - autorangeoptions - :class:`plotly.graph_objects.layout.scene.yaxis - .Autorangeoptions` instance or dict with - compatible properties - autotypenumbers - Using "strict" a numeric string in trace data - is not converted to a number. Using *convert - types* a numeric string in trace data may be - treated as a number during automatic axis - `type` detection. Defaults to - layout.autotypenumbers. - backgroundcolor - Sets the background color of this axis' wall. - calendar - Sets the calendar system to use for `range` and - `tick0` if this is a date axis. This does not - set the calendar for interpreting data on this - axis, that's specified in the trace or via the - global `layout.calendar` - categoryarray - Sets the order in which categories on this axis - appear. Only has an effect if `categoryorder` - is set to "array". Used with `categoryorder`. - categoryarraysrc - Sets the source reference on Chart Studio Cloud - for `categoryarray`. - categoryorder - Specifies the ordering logic for the case of - categorical variables. By default, plotly uses - "trace", which specifies the order that is - present in the data supplied. Set - `categoryorder` to *category ascending* or - *category descending* if order should be - determined by the alphanumerical order of the - category names. Set `categoryorder` to "array" - to derive the ordering from the attribute - `categoryarray`. If a category is not found in - the `categoryarray` array, the sorting behavior - for that attribute will be identical to the - "trace" mode. The unspecified categories will - follow the categories in `categoryarray`. Set - `categoryorder` to *total ascending* or *total - descending* if order should be determined by - the numerical order of the values. Similarly, - the order can be determined by the min, max, - sum, mean, geometric mean or median of all the - values. - color - Sets default for all colors associated with - this axis all at once: line, font, tick, and - grid colors. Grid color is lightened by - blending this with the plot background - Individual pieces can override this. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - gridcolor - Sets the color of the grid lines. - gridwidth - Sets the width (in px) of the grid lines. - hoverformat - Sets the hover text formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - linecolor - Sets the axis line color. - linewidth - Sets the width (in px) of the axis line. - maxallowed - Determines the maximum range of this axis. - minallowed - Determines the minimum range of this axis. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - mirror - Determines if the axis lines or/and ticks are - mirrored to the opposite side of the plotting - area. If True, the axis lines are mirrored. If - "ticks", the axis lines and ticks are mirrored. - If False, mirroring is disable. If "all", axis - lines are mirrored on all shared-axes subplots. - If "allticks", axis lines and ticks are - mirrored on all shared-axes subplots. - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - range - Sets the range of this axis. If the axis `type` - is "log", then you must take the log of your - desired range (e.g. to set the range from 1 to - 100, set the range from 0 to 2). If the axis - `type` is "date", it should be date strings, - like date data, though Date objects and unix - milliseconds will be accepted and converted to - strings. If the axis `type` is "category", it - should be numbers, using the scale where each - category is assigned a serial number from zero - in the order it appears. Leaving either or both - elements `null` impacts the default - `autorange`. - rangemode - If "normal", the range is computed in relation - to the extrema of the input data. If *tozero*`, - the range extends to 0, regardless of the input - data If "nonnegative", the range is non- - negative, regardless of the input data. Applies - only to linear axes. - separatethousands - If "true", even 4-digit integers are separated - showaxeslabels - Sets whether or not this axis is labeled - showbackground - Sets whether or not this axis' wall has a - background color. - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - showline - Determines whether or not a line bounding this - axis is drawn. - showspikes - Sets whether or not spikes starting from data - points to this axis' wall are shown on hover. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - spikecolor - Sets the color of the spikes. - spikesides - Sets whether or not spikes extending from the - projection data points to this axis' wall - boundaries are shown on hover. - spikethickness - Sets the thickness (in px) of the spikes. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the tick font. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.layout. - scene.yaxis.Tickformatstop` instances or dicts - with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.lay - out.scene.yaxis.tickformatstopdefaults), sets - the default property values to use for elements - of layout.scene.yaxis.tickformatstops - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.layout.scene.yaxis - .Title` instance or dict with compatible - properties - type - Sets the axis type. By default, plotly attempts - to determined the axis type by looking into the - data of the traces that referenced the axis in - question. - visible - A single toggle to hide the axis while - preserving interaction like dragging. Default - is true when a cheater plot is present on the - axis, otherwise false - zeroline - Determines whether or not a line is drawn at - along the 0 value of this axis. If True, the - zero line is drawn on top of the grid lines. - zerolinecolor - Sets the line color of the zero line. - zerolinewidth - Sets the width (in px) of the zero line. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YaxisValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='yaxis', + parent_name='layout.scene', + **kwargs): + super(YaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'YAxis'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/_zaxis.py b/packages/python/plotly/plotly/validators/layout/scene/_zaxis.py index 93640da1c07..a34272b0f81 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/_zaxis.py +++ b/packages/python/plotly/plotly/validators/layout/scene/_zaxis.py @@ -1,343 +1,15 @@ -import _plotly_utils.basevalidators -class ZaxisValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="zaxis", parent_name="layout.scene", **kwargs): - super(ZaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ZAxis"), - data_docs=kwargs.pop( - "data_docs", - """ - autorange - Determines whether or not the range of this - axis is computed in relation to the input data. - See `rangemode` for more info. If `range` is - provided and it has a value for both the lower - and upper bound, `autorange` is set to False. - Using "min" applies autorange only to set the - minimum. Using "max" applies autorange only to - set the maximum. Using *min reversed* applies - autorange only to set the minimum on a reversed - axis. Using *max reversed* applies autorange - only to set the maximum on a reversed axis. - Using "reversed" applies autorange on both ends - and reverses the axis direction. - autorangeoptions - :class:`plotly.graph_objects.layout.scene.zaxis - .Autorangeoptions` instance or dict with - compatible properties - autotypenumbers - Using "strict" a numeric string in trace data - is not converted to a number. Using *convert - types* a numeric string in trace data may be - treated as a number during automatic axis - `type` detection. Defaults to - layout.autotypenumbers. - backgroundcolor - Sets the background color of this axis' wall. - calendar - Sets the calendar system to use for `range` and - `tick0` if this is a date axis. This does not - set the calendar for interpreting data on this - axis, that's specified in the trace or via the - global `layout.calendar` - categoryarray - Sets the order in which categories on this axis - appear. Only has an effect if `categoryorder` - is set to "array". Used with `categoryorder`. - categoryarraysrc - Sets the source reference on Chart Studio Cloud - for `categoryarray`. - categoryorder - Specifies the ordering logic for the case of - categorical variables. By default, plotly uses - "trace", which specifies the order that is - present in the data supplied. Set - `categoryorder` to *category ascending* or - *category descending* if order should be - determined by the alphanumerical order of the - category names. Set `categoryorder` to "array" - to derive the ordering from the attribute - `categoryarray`. If a category is not found in - the `categoryarray` array, the sorting behavior - for that attribute will be identical to the - "trace" mode. The unspecified categories will - follow the categories in `categoryarray`. Set - `categoryorder` to *total ascending* or *total - descending* if order should be determined by - the numerical order of the values. Similarly, - the order can be determined by the min, max, - sum, mean, geometric mean or median of all the - values. - color - Sets default for all colors associated with - this axis all at once: line, font, tick, and - grid colors. Grid color is lightened by - blending this with the plot background - Individual pieces can override this. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - gridcolor - Sets the color of the grid lines. - gridwidth - Sets the width (in px) of the grid lines. - hoverformat - Sets the hover text formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - linecolor - Sets the axis line color. - linewidth - Sets the width (in px) of the axis line. - maxallowed - Determines the maximum range of this axis. - minallowed - Determines the minimum range of this axis. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - mirror - Determines if the axis lines or/and ticks are - mirrored to the opposite side of the plotting - area. If True, the axis lines are mirrored. If - "ticks", the axis lines and ticks are mirrored. - If False, mirroring is disable. If "all", axis - lines are mirrored on all shared-axes subplots. - If "allticks", axis lines and ticks are - mirrored on all shared-axes subplots. - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - range - Sets the range of this axis. If the axis `type` - is "log", then you must take the log of your - desired range (e.g. to set the range from 1 to - 100, set the range from 0 to 2). If the axis - `type` is "date", it should be date strings, - like date data, though Date objects and unix - milliseconds will be accepted and converted to - strings. If the axis `type` is "category", it - should be numbers, using the scale where each - category is assigned a serial number from zero - in the order it appears. Leaving either or both - elements `null` impacts the default - `autorange`. - rangemode - If "normal", the range is computed in relation - to the extrema of the input data. If *tozero*`, - the range extends to 0, regardless of the input - data If "nonnegative", the range is non- - negative, regardless of the input data. Applies - only to linear axes. - separatethousands - If "true", even 4-digit integers are separated - showaxeslabels - Sets whether or not this axis is labeled - showbackground - Sets whether or not this axis' wall has a - background color. - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - showline - Determines whether or not a line bounding this - axis is drawn. - showspikes - Sets whether or not spikes starting from data - points to this axis' wall are shown on hover. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - spikecolor - Sets the color of the spikes. - spikesides - Sets whether or not spikes extending from the - projection data points to this axis' wall - boundaries are shown on hover. - spikethickness - Sets the thickness (in px) of the spikes. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the tick font. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.layout. - scene.zaxis.Tickformatstop` instances or dicts - with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.lay - out.scene.zaxis.tickformatstopdefaults), sets - the default property values to use for elements - of layout.scene.zaxis.tickformatstops - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.layout.scene.zaxis - .Title` instance or dict with compatible - properties - type - Sets the axis type. By default, plotly attempts - to determined the axis type by looking into the - data of the traces that referenced the axis in - question. - visible - A single toggle to hide the axis while - preserving interaction like dragging. Default - is true when a cheater plot is present on the - axis, otherwise false - zeroline - Determines whether or not a line is drawn at - along the 0 value of this axis. If True, the - zero line is drawn on top of the grid lines. - zerolinecolor - Sets the line color of the zero line. - zerolinewidth - Sets the width (in px) of the zero line. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZaxisValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='zaxis', + parent_name='layout.scene', + **kwargs): + super(ZaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ZAxis'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/__init__.py index 723a59944b1..c3fbfed098e 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._z import ZValidator from ._yshift import YshiftValidator @@ -41,47 +40,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._z.ZValidator", - "._yshift.YshiftValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xshift.XshiftValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._width.WidthValidator", - "._visible.VisibleValidator", - "._valign.ValignValidator", - "._textangle.TextangleValidator", - "._text.TextValidator", - "._templateitemname.TemplateitemnameValidator", - "._startstandoff.StartstandoffValidator", - "._startarrowsize.StartarrowsizeValidator", - "._startarrowhead.StartarrowheadValidator", - "._standoff.StandoffValidator", - "._showarrow.ShowarrowValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._hovertext.HovertextValidator", - "._hoverlabel.HoverlabelValidator", - "._height.HeightValidator", - "._font.FontValidator", - "._captureevents.CaptureeventsValidator", - "._borderwidth.BorderwidthValidator", - "._borderpad.BorderpadValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - "._ay.AyValidator", - "._ax.AxValidator", - "._arrowwidth.ArrowwidthValidator", - "._arrowsize.ArrowsizeValidator", - "._arrowside.ArrowsideValidator", - "._arrowhead.ArrowheadValidator", - "._arrowcolor.ArrowcolorValidator", - "._align.AlignValidator", - ], + ['._z.ZValidator', '._yshift.YshiftValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xshift.XshiftValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._width.WidthValidator', '._visible.VisibleValidator', '._valign.ValignValidator', '._textangle.TextangleValidator', '._text.TextValidator', '._templateitemname.TemplateitemnameValidator', '._startstandoff.StartstandoffValidator', '._startarrowsize.StartarrowsizeValidator', '._startarrowhead.StartarrowheadValidator', '._standoff.StandoffValidator', '._showarrow.ShowarrowValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._hovertext.HovertextValidator', '._hoverlabel.HoverlabelValidator', '._height.HeightValidator', '._font.FontValidator', '._captureevents.CaptureeventsValidator', '._borderwidth.BorderwidthValidator', '._borderpad.BorderpadValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator', '._ay.AyValidator', '._ax.AxValidator', '._arrowwidth.ArrowwidthValidator', '._arrowsize.ArrowsizeValidator', '._arrowside.ArrowsideValidator', '._arrowhead.ArrowheadValidator', '._arrowcolor.ArrowcolorValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_align.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_align.py index a33c7160fdb..2365dff6956 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_align.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_align.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="align", parent_name="layout.scene.annotation", **kwargs - ): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='layout.scene.annotation', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_arrowcolor.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_arrowcolor.py index 7916a4a73e7..2c2c5ca746f 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_arrowcolor.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_arrowcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ArrowcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="arrowcolor", parent_name="layout.scene.annotation", **kwargs - ): - super(ArrowcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrowcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='arrowcolor', + parent_name='layout.scene.annotation', + **kwargs): + super(ArrowcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_arrowhead.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_arrowhead.py index 872e3a5ed54..e1395893e18 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_arrowhead.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_arrowhead.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ArrowheadValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="arrowhead", parent_name="layout.scene.annotation", **kwargs - ): - super(ArrowheadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 8), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrowheadValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='arrowhead', + parent_name='layout.scene.annotation', + **kwargs): + super(ArrowheadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 8), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_arrowside.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_arrowside.py index 3bea9ca23a0..ed3d1238485 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_arrowside.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_arrowside.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ArrowsideValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="arrowside", parent_name="layout.scene.annotation", **kwargs - ): - super(ArrowsideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["end", "start"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrowsideValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='arrowside', + parent_name='layout.scene.annotation', + **kwargs): + super(ArrowsideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['end', 'start']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_arrowsize.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_arrowsize.py index cc653a07574..aea7e6fac8c 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_arrowsize.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_arrowsize.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ArrowsizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="arrowsize", parent_name="layout.scene.annotation", **kwargs - ): - super(ArrowsizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0.3), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrowsizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='arrowsize', + parent_name='layout.scene.annotation', + **kwargs): + super(ArrowsizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0.3), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_arrowwidth.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_arrowwidth.py index 866ac1c9d90..985866dae1b 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_arrowwidth.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_arrowwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ArrowwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="arrowwidth", parent_name="layout.scene.annotation", **kwargs - ): - super(ArrowwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0.1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrowwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='arrowwidth', + parent_name='layout.scene.annotation', + **kwargs): + super(ArrowwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0.1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_ax.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_ax.py index 8bfa4a609eb..ff7004d78b0 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_ax.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_ax.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ax", parent_name="layout.scene.annotation", **kwargs - ): - super(AxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ax', + parent_name='layout.scene.annotation', + **kwargs): + super(AxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_ay.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_ay.py index 15c9309cb7b..cf91aea0955 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_ay.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_ay.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AyValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ay", parent_name="layout.scene.annotation", **kwargs - ): - super(AyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AyValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ay', + parent_name='layout.scene.annotation', + **kwargs): + super(AyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_bgcolor.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_bgcolor.py index 396d5d32523..078d0521e79 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="layout.scene.annotation", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='layout.scene.annotation', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_bordercolor.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_bordercolor.py index 91f6ff528af..2e6a4c46ea5 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="layout.scene.annotation", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='layout.scene.annotation', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_borderpad.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_borderpad.py index 3f602f11d10..8d8b5cba30e 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_borderpad.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_borderpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderpad", parent_name="layout.scene.annotation", **kwargs - ): - super(BorderpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderpad', + parent_name='layout.scene.annotation', + **kwargs): + super(BorderpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_borderwidth.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_borderwidth.py index cdbedbb2eda..21e4c5cc0b2 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_borderwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderwidth", parent_name="layout.scene.annotation", **kwargs - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='layout.scene.annotation', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_captureevents.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_captureevents.py index 06e3700550b..1af99abc5d6 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_captureevents.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_captureevents.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class CaptureeventsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="captureevents", - parent_name="layout.scene.annotation", - **kwargs, - ): - super(CaptureeventsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CaptureeventsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='captureevents', + parent_name='layout.scene.annotation', + **kwargs): + super(CaptureeventsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_font.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_font.py index 308433eb8b7..eb79d924227 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_font.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="layout.scene.annotation", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='layout.scene.annotation', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_height.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_height.py index bab78d2ce74..fef0a255d61 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_height.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_height.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class HeightValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="height", parent_name="layout.scene.annotation", **kwargs - ): - super(HeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HeightValidator(_bv.NumberValidator): + def __init__(self, plotly_name='height', + parent_name='layout.scene.annotation', + **kwargs): + super(HeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_hoverlabel.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_hoverlabel.py index 88ec79d8f25..478b95a7224 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_hoverlabel.py @@ -1,30 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="hoverlabel", parent_name="layout.scene.annotation", **kwargs - ): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the background color of the hover label. - By default uses the annotation's `bgcolor` made - opaque, or white if it was transparent. - bordercolor - Sets the border color of the hover label. By - default uses either dark grey or white, for - maximum contrast with `hoverlabel.bgcolor`. - font - Sets the hover label text font. By default uses - the global hover font and size, with color from - `hoverlabel.bordercolor`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='layout.scene.annotation', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_hovertext.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_hovertext.py index d174da02947..dad8daa411b 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_hovertext.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_hovertext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="hovertext", parent_name="layout.scene.annotation", **kwargs - ): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='layout.scene.annotation', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_name.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_name.py index 7dbece68871..f803ec1a44d 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_name.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_name.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="name", parent_name="layout.scene.annotation", **kwargs - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='layout.scene.annotation', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_opacity.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_opacity.py index 190cdb6e744..3284e6b7622 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_opacity.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_opacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="layout.scene.annotation", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='layout.scene.annotation', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_showarrow.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_showarrow.py index d5201213ef7..627538ca572 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_showarrow.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_showarrow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowarrowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showarrow", parent_name="layout.scene.annotation", **kwargs - ): - super(ShowarrowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowarrowValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showarrow', + parent_name='layout.scene.annotation', + **kwargs): + super(ShowarrowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_standoff.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_standoff.py index 7d42fc834b5..17c3a888100 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_standoff.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_standoff.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StandoffValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="standoff", parent_name="layout.scene.annotation", **kwargs - ): - super(StandoffValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StandoffValidator(_bv.NumberValidator): + def __init__(self, plotly_name='standoff', + parent_name='layout.scene.annotation', + **kwargs): + super(StandoffValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_startarrowhead.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_startarrowhead.py index 2306415fb33..672e294e521 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_startarrowhead.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_startarrowhead.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class StartarrowheadValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="startarrowhead", - parent_name="layout.scene.annotation", - **kwargs, - ): - super(StartarrowheadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 8), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StartarrowheadValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='startarrowhead', + parent_name='layout.scene.annotation', + **kwargs): + super(StartarrowheadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 8), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_startarrowsize.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_startarrowsize.py index 954ff007c87..615d8a21ab3 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_startarrowsize.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_startarrowsize.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StartarrowsizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="startarrowsize", - parent_name="layout.scene.annotation", - **kwargs, - ): - super(StartarrowsizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0.3), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StartarrowsizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='startarrowsize', + parent_name='layout.scene.annotation', + **kwargs): + super(StartarrowsizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0.3), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_startstandoff.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_startstandoff.py index f51fc1928ea..46758f6adcf 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_startstandoff.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_startstandoff.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StartstandoffValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="startstandoff", - parent_name="layout.scene.annotation", - **kwargs, - ): - super(StartstandoffValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StartstandoffValidator(_bv.NumberValidator): + def __init__(self, plotly_name='startstandoff', + parent_name='layout.scene.annotation', + **kwargs): + super(StartstandoffValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_templateitemname.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_templateitemname.py index cb0c43a865b..69a8670c74c 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="layout.scene.annotation", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='layout.scene.annotation', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_text.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_text.py index 2e70c881529..35bdff5d6da 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_text.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="layout.scene.annotation", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='layout.scene.annotation', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_textangle.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_textangle.py index 417bceced48..9ed76d5a097 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_textangle.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_textangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="textangle", parent_name="layout.scene.annotation", **kwargs - ): - super(TextangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='textangle', + parent_name='layout.scene.annotation', + **kwargs): + super(TextangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_valign.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_valign.py index 50bf4200c46..abd9ffbaaa4 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_valign.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_valign.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ValignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="valign", parent_name="layout.scene.annotation", **kwargs - ): - super(ValignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='valign', + parent_name='layout.scene.annotation', + **kwargs): + super(ValignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_visible.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_visible.py index 7a7f9935d77..6186e71ee04 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_visible.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_visible.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="visible", parent_name="layout.scene.annotation", **kwargs - ): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='layout.scene.annotation', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_width.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_width.py index 44658219f9a..c715def503f 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_width.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_width.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="layout.scene.annotation", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='layout.scene.annotation', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_x.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_x.py index 558f329ca7a..9a97521bc00 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_x.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_x.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="x", parent_name="layout.scene.annotation", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.AnyValidator): + def __init__(self, plotly_name='x', + parent_name='layout.scene.annotation', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_xanchor.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_xanchor.py index 27a29e5475a..fe936744fce 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_xanchor.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="layout.scene.annotation", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["auto", "left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='layout.scene.annotation', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['auto', 'left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_xshift.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_xshift.py index 3b2e5541e78..2e0da96ad45 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_xshift.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_xshift.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class XshiftValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="xshift", parent_name="layout.scene.annotation", **kwargs - ): - super(XshiftValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XshiftValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xshift', + parent_name='layout.scene.annotation', + **kwargs): + super(XshiftValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_y.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_y.py index de1168676e6..7494bc8b322 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_y.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_y.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="y", parent_name="layout.scene.annotation", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.AnyValidator): + def __init__(self, plotly_name='y', + parent_name='layout.scene.annotation', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_yanchor.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_yanchor.py index f74aa85e525..6f0743603c6 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_yanchor.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="layout.scene.annotation", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["auto", "top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='layout.scene.annotation', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['auto', 'top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_yshift.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_yshift.py index d4a92053eae..10b0f83cbac 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_yshift.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_yshift.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class YshiftValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="yshift", parent_name="layout.scene.annotation", **kwargs - ): - super(YshiftValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YshiftValidator(_bv.NumberValidator): + def __init__(self, plotly_name='yshift', + parent_name='layout.scene.annotation', + **kwargs): + super(YshiftValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/_z.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/_z.py index e8c2be240ac..74a8758f9d0 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/_z.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/_z.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ZValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="z", parent_name="layout.scene.annotation", **kwargs - ): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.AnyValidator): + def __init__(self, plotly_name='z', + parent_name='layout.scene.annotation', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/font/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_color.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_color.py index 39cb5160b53..6ced76274d9 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_color.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.scene.annotation.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.scene.annotation.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_family.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_family.py index 4c7bc9e5b80..dcc8ea9dc8f 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_family.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="layout.scene.annotation.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.scene.annotation.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_lineposition.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_lineposition.py index 03be35b82fe..a24602f4725 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.scene.annotation.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.scene.annotation.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_shadow.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_shadow.py index e6af82b2c15..2c3853c9b42 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="layout.scene.annotation.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.scene.annotation.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_size.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_size.py index ed3331c762f..6885ec0d246 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_size.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="layout.scene.annotation.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.scene.annotation.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_style.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_style.py index 1ea15849651..0d5b7f92c21 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_style.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="layout.scene.annotation.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.scene.annotation.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_textcase.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_textcase.py index 324e8d7e18d..e4337ccc9e2 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="layout.scene.annotation.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.scene.annotation.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_variant.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_variant.py index bab6052d76c..05ce0779457 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="layout.scene.annotation.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.scene.annotation.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_weight.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_weight.py index a28d088f2ea..cc3b8990857 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="layout.scene.annotation.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.scene.annotation.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/__init__.py index 6cd9f4b93cd..a6c44864195 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._font import FontValidator from ._bordercolor import BordercolorValidator from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._font.FontValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._font.FontValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/_bgcolor.py index 84a8d96b948..d704e0c73ca 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/_bgcolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bgcolor", - parent_name="layout.scene.annotation.hoverlabel", - **kwargs, - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='layout.scene.annotation.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/_bordercolor.py index c26c2fedb8c..29442f427fb 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/_bordercolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bordercolor", - parent_name="layout.scene.annotation.hoverlabel", - **kwargs, - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='layout.scene.annotation.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/_font.py index 41c904576a8..cbf2fa5fbbe 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/_font.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="font", - parent_name="layout.scene.annotation.hoverlabel", - **kwargs, - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='layout.scene.annotation.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_color.py index a75d5e38dbf..d739e7b4a31 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="layout.scene.annotation.hoverlabel.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.scene.annotation.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_family.py index c9512eb1232..ffe9f0ab86f 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="layout.scene.annotation.hoverlabel.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.scene.annotation.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_lineposition.py index ac63fdd6b8f..ff3102715fd 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.scene.annotation.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.scene.annotation.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_shadow.py index 4d6d1aa2587..cc2fcf56ffd 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="layout.scene.annotation.hoverlabel.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.scene.annotation.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_size.py index b955bb7dd43..54ff8d9d636 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="layout.scene.annotation.hoverlabel.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.scene.annotation.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_style.py index ce03de4321c..bdc462c9d65 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="layout.scene.annotation.hoverlabel.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.scene.annotation.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_textcase.py index 4727886e3ec..1c2ec45669c 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="layout.scene.annotation.hoverlabel.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.scene.annotation.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_variant.py index 60e0278326f..0169d65e9c1 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="layout.scene.annotation.hoverlabel.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.scene.annotation.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_weight.py index f364d50daae..02739c0ae5d 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="layout.scene.annotation.hoverlabel.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.scene.annotation.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/aspectratio/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/aspectratio/__init__.py index 52779f59bc4..21cfa26dac1 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/aspectratio/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/aspectratio/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._z import ZValidator from ._y import YValidator from ._x import XValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] + __name__, + [], + ['._z.ZValidator', '._y.YValidator', '._x.XValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/aspectratio/_x.py b/packages/python/plotly/plotly/validators/layout/scene/aspectratio/_x.py index acf08888c7c..67384094cb9 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/aspectratio/_x.py +++ b/packages/python/plotly/plotly/validators/layout/scene/aspectratio/_x.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="x", parent_name="layout.scene.aspectratio", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"^aspectmode": "manual"}), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='layout.scene.aspectratio', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'^aspectmode': 'manual'}), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/aspectratio/_y.py b/packages/python/plotly/plotly/validators/layout/scene/aspectratio/_y.py index 2a86381e706..e80e2780b65 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/aspectratio/_y.py +++ b/packages/python/plotly/plotly/validators/layout/scene/aspectratio/_y.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="y", parent_name="layout.scene.aspectratio", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"^aspectmode": "manual"}), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='layout.scene.aspectratio', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'^aspectmode': 'manual'}), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/aspectratio/_z.py b/packages/python/plotly/plotly/validators/layout/scene/aspectratio/_z.py index 615def6da44..0c82c1784b0 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/aspectratio/_z.py +++ b/packages/python/plotly/plotly/validators/layout/scene/aspectratio/_z.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ZValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="z", parent_name="layout.scene.aspectratio", **kwargs - ): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"^aspectmode": "manual"}), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.NumberValidator): + def __init__(self, plotly_name='z', + parent_name='layout.scene.aspectratio', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'^aspectmode': 'manual'}), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/camera/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/camera/__init__.py index 6fda571b1ed..4fc2f0f1113 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/camera/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/camera/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._up import UpValidator from ._projection import ProjectionValidator @@ -8,14 +7,10 @@ from ._center import CenterValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._up.UpValidator", - "._projection.ProjectionValidator", - "._eye.EyeValidator", - "._center.CenterValidator", - ], + ['._up.UpValidator', '._projection.ProjectionValidator', '._eye.EyeValidator', '._center.CenterValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/camera/_center.py b/packages/python/plotly/plotly/validators/layout/scene/camera/_center.py index 6e24a08ea9f..f6aa7d7545f 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/camera/_center.py +++ b/packages/python/plotly/plotly/validators/layout/scene/camera/_center.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class CenterValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="center", parent_name="layout.scene.camera", **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", - """ - x +import _plotly_utils.basevalidators as _bv - y - z - -""", - ), - **kwargs, - ) +class CenterValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='center', + parent_name='layout.scene.camera', + **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', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/camera/_eye.py b/packages/python/plotly/plotly/validators/layout/scene/camera/_eye.py index c0588894063..36df9af83a5 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/camera/_eye.py +++ b/packages/python/plotly/plotly/validators/layout/scene/camera/_eye.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class EyeValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="eye", parent_name="layout.scene.camera", **kwargs): - super(EyeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Eye"), - data_docs=kwargs.pop( - "data_docs", - """ - x +import _plotly_utils.basevalidators as _bv - y - z - -""", - ), - **kwargs, - ) +class EyeValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='eye', + parent_name='layout.scene.camera', + **kwargs): + super(EyeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Eye'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/camera/_projection.py b/packages/python/plotly/plotly/validators/layout/scene/camera/_projection.py index c9fd40128b6..2b1a34fa9f3 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/camera/_projection.py +++ b/packages/python/plotly/plotly/validators/layout/scene/camera/_projection.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class ProjectionValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="projection", parent_name="layout.scene.camera", **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", - """ - type - Sets the projection type. The projection type - could be either "perspective" or - "orthographic". The default is "perspective". -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ProjectionValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='projection', + parent_name='layout.scene.camera', + **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', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/camera/_up.py b/packages/python/plotly/plotly/validators/layout/scene/camera/_up.py index 99d11a4341f..de5edbaec91 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/camera/_up.py +++ b/packages/python/plotly/plotly/validators/layout/scene/camera/_up.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class UpValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="up", parent_name="layout.scene.camera", **kwargs): - super(UpValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Up"), - data_docs=kwargs.pop( - "data_docs", - """ - x +import _plotly_utils.basevalidators as _bv - y - z - -""", - ), - **kwargs, - ) +class UpValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='up', + parent_name='layout.scene.camera', + **kwargs): + super(UpValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Up'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/camera/center/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/camera/center/__init__.py index 52779f59bc4..21cfa26dac1 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/camera/center/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/camera/center/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._z import ZValidator from ._y import YValidator from ._x import XValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] + __name__, + [], + ['._z.ZValidator', '._y.YValidator', '._x.XValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/camera/center/_x.py b/packages/python/plotly/plotly/validators/layout/scene/camera/center/_x.py index e091625e3ab..1f9c2734dd4 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/camera/center/_x.py +++ b/packages/python/plotly/plotly/validators/layout/scene/camera/center/_x.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="x", parent_name="layout.scene.camera.center", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "camera"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='layout.scene.camera.center', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'camera'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/camera/center/_y.py b/packages/python/plotly/plotly/validators/layout/scene/camera/center/_y.py index 77b0b003430..0eb3ab0fdc3 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/camera/center/_y.py +++ b/packages/python/plotly/plotly/validators/layout/scene/camera/center/_y.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="y", parent_name="layout.scene.camera.center", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "camera"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='layout.scene.camera.center', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'camera'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/camera/center/_z.py b/packages/python/plotly/plotly/validators/layout/scene/camera/center/_z.py index c07c9706498..58a5abf84da 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/camera/center/_z.py +++ b/packages/python/plotly/plotly/validators/layout/scene/camera/center/_z.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ZValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="z", parent_name="layout.scene.camera.center", **kwargs - ): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "camera"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.NumberValidator): + def __init__(self, plotly_name='z', + parent_name='layout.scene.camera.center', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'camera'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/camera/eye/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/camera/eye/__init__.py index 52779f59bc4..21cfa26dac1 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/camera/eye/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/camera/eye/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._z import ZValidator from ._y import YValidator from ._x import XValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] + __name__, + [], + ['._z.ZValidator', '._y.YValidator', '._x.XValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/camera/eye/_x.py b/packages/python/plotly/plotly/validators/layout/scene/camera/eye/_x.py index bf7b62c1a75..9824e60dd30 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/camera/eye/_x.py +++ b/packages/python/plotly/plotly/validators/layout/scene/camera/eye/_x.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="x", parent_name="layout.scene.camera.eye", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "camera"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='layout.scene.camera.eye', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'camera'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/camera/eye/_y.py b/packages/python/plotly/plotly/validators/layout/scene/camera/eye/_y.py index 354f6a730a4..87a9f6eb1a5 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/camera/eye/_y.py +++ b/packages/python/plotly/plotly/validators/layout/scene/camera/eye/_y.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="y", parent_name="layout.scene.camera.eye", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "camera"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='layout.scene.camera.eye', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'camera'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/camera/eye/_z.py b/packages/python/plotly/plotly/validators/layout/scene/camera/eye/_z.py index df5c5213633..3163b97a3ce 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/camera/eye/_z.py +++ b/packages/python/plotly/plotly/validators/layout/scene/camera/eye/_z.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ZValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="z", parent_name="layout.scene.camera.eye", **kwargs - ): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "camera"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.NumberValidator): + def __init__(self, plotly_name='z', + parent_name='layout.scene.camera.eye', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'camera'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/camera/projection/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/camera/projection/__init__.py index 6026c0dbbb9..9adc06c2da8 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/camera/projection/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/camera/projection/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._type import TypeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._type.TypeValidator"] + __name__, + [], + ['._type.TypeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/camera/projection/_type.py b/packages/python/plotly/plotly/validators/layout/scene/camera/projection/_type.py index b8de48c7164..7b040a4117f 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/camera/projection/_type.py +++ b/packages/python/plotly/plotly/validators/layout/scene/camera/projection/_type.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="type", parent_name="layout.scene.camera.projection", **kwargs - ): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["perspective", "orthographic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='layout.scene.camera.projection', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['perspective', 'orthographic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/camera/up/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/camera/up/__init__.py index 52779f59bc4..21cfa26dac1 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/camera/up/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/camera/up/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._z import ZValidator from ._y import YValidator from ._x import XValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] + __name__, + [], + ['._z.ZValidator', '._y.YValidator', '._x.XValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/camera/up/_x.py b/packages/python/plotly/plotly/validators/layout/scene/camera/up/_x.py index 548c33de84f..6d7a29bf5e9 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/camera/up/_x.py +++ b/packages/python/plotly/plotly/validators/layout/scene/camera/up/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x", parent_name="layout.scene.camera.up", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "camera"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='layout.scene.camera.up', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'camera'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/camera/up/_y.py b/packages/python/plotly/plotly/validators/layout/scene/camera/up/_y.py index 9590845b86d..cb46f41476e 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/camera/up/_y.py +++ b/packages/python/plotly/plotly/validators/layout/scene/camera/up/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y", parent_name="layout.scene.camera.up", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "camera"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='layout.scene.camera.up', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'camera'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/camera/up/_z.py b/packages/python/plotly/plotly/validators/layout/scene/camera/up/_z.py index b75f7e5d146..0aa39a92246 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/camera/up/_z.py +++ b/packages/python/plotly/plotly/validators/layout/scene/camera/up/_z.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="z", parent_name="layout.scene.camera.up", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "camera"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.NumberValidator): + def __init__(self, plotly_name='z', + parent_name='layout.scene.camera.up', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'camera'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/domain/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/domain/__init__.py index 67de5030d0a..705a2194402 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/domain/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._y import YValidator from ._x import XValidator @@ -8,14 +7,10 @@ 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", - ], + ['._y.YValidator', '._x.XValidator', '._row.RowValidator', '._column.ColumnValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/domain/_column.py b/packages/python/plotly/plotly/validators/layout/scene/domain/_column.py index eb7db691187..985cd242a0a 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/domain/_column.py +++ b/packages/python/plotly/plotly/validators/layout/scene/domain/_column.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="column", parent_name="layout.scene.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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColumnValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='column', + parent_name='layout.scene.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/domain/_row.py b/packages/python/plotly/plotly/validators/layout/scene/domain/_row.py index d9e0366e33d..78ded35e222 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/domain/_row.py +++ b/packages/python/plotly/plotly/validators/layout/scene/domain/_row.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="row", parent_name="layout.scene.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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RowValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='row', + parent_name='layout.scene.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/domain/_x.py b/packages/python/plotly/plotly/validators/layout/scene/domain/_x.py index 2e64d1ed5f6..480fd7c2105 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/domain/_x.py +++ b/packages/python/plotly/plotly/validators/layout/scene/domain/_x.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="x", parent_name="layout.scene.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, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='x', + parent_name='layout.scene.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/domain/_y.py b/packages/python/plotly/plotly/validators/layout/scene/domain/_y.py index ea79ee51054..30b6865ae3a 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/domain/_y.py +++ b/packages/python/plotly/plotly/validators/layout/scene/domain/_y.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="y", parent_name="layout.scene.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, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='y', + parent_name='layout.scene.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/__init__.py index b95df1031f8..cf9b162ae27 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zerolinewidth import ZerolinewidthValidator from ._zerolinecolor import ZerolinecolorValidator @@ -64,70 +63,10 @@ from ._autorange import AutorangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zerolinewidth.ZerolinewidthValidator", - "._zerolinecolor.ZerolinecolorValidator", - "._zeroline.ZerolineValidator", - "._visible.VisibleValidator", - "._type.TypeValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._spikethickness.SpikethicknessValidator", - "._spikesides.SpikesidesValidator", - "._spikecolor.SpikecolorValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showspikes.ShowspikesValidator", - "._showline.ShowlineValidator", - "._showgrid.ShowgridValidator", - "._showexponent.ShowexponentValidator", - "._showbackground.ShowbackgroundValidator", - "._showaxeslabels.ShowaxeslabelsValidator", - "._separatethousands.SeparatethousandsValidator", - "._rangemode.RangemodeValidator", - "._range.RangeValidator", - "._nticks.NticksValidator", - "._mirror.MirrorValidator", - "._minexponent.MinexponentValidator", - "._minallowed.MinallowedValidator", - "._maxallowed.MaxallowedValidator", - "._linewidth.LinewidthValidator", - "._linecolor.LinecolorValidator", - "._labelalias.LabelaliasValidator", - "._hoverformat.HoverformatValidator", - "._gridwidth.GridwidthValidator", - "._gridcolor.GridcolorValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._color.ColorValidator", - "._categoryorder.CategoryorderValidator", - "._categoryarraysrc.CategoryarraysrcValidator", - "._categoryarray.CategoryarrayValidator", - "._calendar.CalendarValidator", - "._backgroundcolor.BackgroundcolorValidator", - "._autotypenumbers.AutotypenumbersValidator", - "._autorangeoptions.AutorangeoptionsValidator", - "._autorange.AutorangeValidator", - ], + ['._zerolinewidth.ZerolinewidthValidator', '._zerolinecolor.ZerolinecolorValidator', '._zeroline.ZerolineValidator', '._visible.VisibleValidator', '._type.TypeValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._spikethickness.SpikethicknessValidator', '._spikesides.SpikesidesValidator', '._spikecolor.SpikecolorValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showspikes.ShowspikesValidator', '._showline.ShowlineValidator', '._showgrid.ShowgridValidator', '._showexponent.ShowexponentValidator', '._showbackground.ShowbackgroundValidator', '._showaxeslabels.ShowaxeslabelsValidator', '._separatethousands.SeparatethousandsValidator', '._rangemode.RangemodeValidator', '._range.RangeValidator', '._nticks.NticksValidator', '._mirror.MirrorValidator', '._minexponent.MinexponentValidator', '._minallowed.MinallowedValidator', '._maxallowed.MaxallowedValidator', '._linewidth.LinewidthValidator', '._linecolor.LinecolorValidator', '._labelalias.LabelaliasValidator', '._hoverformat.HoverformatValidator', '._gridwidth.GridwidthValidator', '._gridcolor.GridcolorValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._color.ColorValidator', '._categoryorder.CategoryorderValidator', '._categoryarraysrc.CategoryarraysrcValidator', '._categoryarray.CategoryarrayValidator', '._calendar.CalendarValidator', '._backgroundcolor.BackgroundcolorValidator', '._autotypenumbers.AutotypenumbersValidator', '._autorangeoptions.AutorangeoptionsValidator', '._autorange.AutorangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_autorange.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_autorange.py index 4db777e8f68..1e292e94944 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_autorange.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_autorange.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class AutorangeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="autorange", parent_name="layout.scene.xaxis", **kwargs - ): - super(AutorangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop( - "values", - [True, False, "reversed", "min reversed", "max reversed", "min", "max"], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutorangeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='autorange', + parent_name='layout.scene.xaxis', + **kwargs): + super(AutorangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', [True, False, 'reversed', 'min reversed', 'max reversed', 'min', 'max']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_autorangeoptions.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_autorangeoptions.py index 36221c5c5da..c6e926afa46 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_autorangeoptions.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_autorangeoptions.py @@ -1,35 +1,15 @@ -import _plotly_utils.basevalidators -class AutorangeoptionsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="autorangeoptions", parent_name="layout.scene.xaxis", **kwargs - ): - super(AutorangeoptionsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Autorangeoptions"), - data_docs=kwargs.pop( - "data_docs", - """ - clipmax - Clip autorange maximum if it goes beyond this - value. Has no effect when - `autorangeoptions.maxallowed` is provided. - clipmin - Clip autorange minimum if it goes beyond this - value. Has no effect when - `autorangeoptions.minallowed` is provided. - include - Ensure this value is included in autorange. - includesrc - Sets the source reference on Chart Studio Cloud - for `include`. - maxallowed - Use this value exactly as autorange maximum. - minallowed - Use this value exactly as autorange minimum. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutorangeoptionsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='autorangeoptions', + parent_name='layout.scene.xaxis', + **kwargs): + super(AutorangeoptionsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Autorangeoptions'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_autotypenumbers.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_autotypenumbers.py index ac85e997c6b..6e4d3ad391a 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_autotypenumbers.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_autotypenumbers.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutotypenumbersValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="autotypenumbers", parent_name="layout.scene.xaxis", **kwargs - ): - super(AutotypenumbersValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["convert types", "strict"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutotypenumbersValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='autotypenumbers', + parent_name='layout.scene.xaxis', + **kwargs): + super(AutotypenumbersValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['convert types', 'strict']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_backgroundcolor.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_backgroundcolor.py index 49f934fef6d..52d1b4ce353 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_backgroundcolor.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_backgroundcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BackgroundcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="backgroundcolor", parent_name="layout.scene.xaxis", **kwargs - ): - super(BackgroundcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BackgroundcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='backgroundcolor', + parent_name='layout.scene.xaxis', + **kwargs): + super(BackgroundcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_calendar.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_calendar.py index af0c3149ee9..6a1e8e2a24f 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_calendar.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_calendar.py @@ -1,34 +1,14 @@ -import _plotly_utils.basevalidators -class CalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="calendar", parent_name="layout.scene.xaxis", **kwargs - ): - super(CalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='calendar', + parent_name='layout.scene.xaxis', + **kwargs): + super(CalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_categoryarray.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_categoryarray.py index 3f6b2e946d0..691e6398891 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_categoryarray.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_categoryarray.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="categoryarray", parent_name="layout.scene.xaxis", **kwargs - ): - super(CategoryarrayValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CategoryarrayValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='categoryarray', + parent_name='layout.scene.xaxis', + **kwargs): + super(CategoryarrayValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_categoryarraysrc.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_categoryarraysrc.py index aa19e3b3b38..278f9406faa 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_categoryarraysrc.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_categoryarraysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="categoryarraysrc", parent_name="layout.scene.xaxis", **kwargs - ): - super(CategoryarraysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CategoryarraysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='categoryarraysrc', + parent_name='layout.scene.xaxis', + **kwargs): + super(CategoryarraysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_categoryorder.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_categoryorder.py index 0f979934535..7cc9bfba0b1 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_categoryorder.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_categoryorder.py @@ -1,36 +1,14 @@ -import _plotly_utils.basevalidators -class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="categoryorder", parent_name="layout.scene.xaxis", **kwargs - ): - super(CategoryorderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "trace", - "category ascending", - "category descending", - "array", - "total ascending", - "total descending", - "min ascending", - "min descending", - "max ascending", - "max descending", - "sum ascending", - "sum descending", - "mean ascending", - "mean descending", - "geometric mean ascending", - "geometric mean descending", - "median ascending", - "median descending", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CategoryorderValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='categoryorder', + parent_name='layout.scene.xaxis', + **kwargs): + super(CategoryorderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['trace', 'category ascending', 'category descending', 'array', 'total ascending', 'total descending', 'min ascending', 'min descending', 'max ascending', 'max descending', 'sum ascending', 'sum descending', 'mean ascending', 'mean descending', 'geometric mean ascending', 'geometric mean descending', 'median ascending', 'median descending']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_color.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_color.py index ef4dd8794fa..e72248f7288 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_color.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="layout.scene.xaxis", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.scene.xaxis', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_dtick.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_dtick.py index b169b04cb88..d84797ac13e 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_dtick.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_dtick.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="dtick", parent_name="layout.scene.xaxis", **kwargs): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='layout.scene.xaxis', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_exponentformat.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_exponentformat.py index 52ef25e76dd..6f086e9b550 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_exponentformat.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="exponentformat", parent_name="layout.scene.xaxis", **kwargs - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='layout.scene.xaxis', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_gridcolor.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_gridcolor.py index ce7e423c07e..3991a212cca 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_gridcolor.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_gridcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="gridcolor", parent_name="layout.scene.xaxis", **kwargs - ): - super(GridcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='gridcolor', + parent_name='layout.scene.xaxis', + **kwargs): + super(GridcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_gridwidth.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_gridwidth.py index 98a3ce40a16..ca1704b71a9 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_gridwidth.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_gridwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="gridwidth", parent_name="layout.scene.xaxis", **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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='gridwidth', + parent_name='layout.scene.xaxis', + **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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_hoverformat.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_hoverformat.py index 7938e32a63c..7c61807c24b 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_hoverformat.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_hoverformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="hoverformat", parent_name="layout.scene.xaxis", **kwargs - ): - super(HoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='hoverformat', + parent_name='layout.scene.xaxis', + **kwargs): + super(HoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_labelalias.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_labelalias.py index 4f5ad3e47fe..06c779a7edb 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_labelalias.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="layout.scene.xaxis", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='layout.scene.xaxis', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_linecolor.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_linecolor.py index c89c320a51d..addca5909fe 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_linecolor.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_linecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="linecolor", parent_name="layout.scene.xaxis", **kwargs - ): - super(LinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='linecolor', + parent_name='layout.scene.xaxis', + **kwargs): + super(LinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_linewidth.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_linewidth.py index aff97855055..99b2134cae8 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_linewidth.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_linewidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="linewidth", parent_name="layout.scene.xaxis", **kwargs - ): - super(LinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='linewidth', + parent_name='layout.scene.xaxis', + **kwargs): + super(LinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_maxallowed.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_maxallowed.py index 30d6bed1def..e6f5e1088b8 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_maxallowed.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_maxallowed.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MaxallowedValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="maxallowed", parent_name="layout.scene.xaxis", **kwargs - ): - super(MaxallowedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"^autorange": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxallowedValidator(_bv.AnyValidator): + def __init__(self, plotly_name='maxallowed', + parent_name='layout.scene.xaxis', + **kwargs): + super(MaxallowedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'^autorange': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_minallowed.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_minallowed.py index 1458314ff10..88245d25c9c 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_minallowed.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_minallowed.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinallowedValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="minallowed", parent_name="layout.scene.xaxis", **kwargs - ): - super(MinallowedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"^autorange": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinallowedValidator(_bv.AnyValidator): + def __init__(self, plotly_name='minallowed', + parent_name='layout.scene.xaxis', + **kwargs): + super(MinallowedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'^autorange': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_minexponent.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_minexponent.py index afb277bcfd3..873b0cb127f 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_minexponent.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="layout.scene.xaxis", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='layout.scene.xaxis', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_mirror.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_mirror.py index a8fef0830fa..6d7252226c7 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_mirror.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_mirror.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MirrorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="mirror", parent_name="layout.scene.xaxis", **kwargs - ): - super(MirrorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", [True, "ticks", False, "all", "allticks"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MirrorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='mirror', + parent_name='layout.scene.xaxis', + **kwargs): + super(MirrorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', [True, 'ticks', False, 'all', 'allticks']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_nticks.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_nticks.py index ad37185c095..8788a48a736 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_nticks.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="layout.scene.xaxis", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='layout.scene.xaxis', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_range.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_range.py index 2d4dd0b1338..fd8cce1a838 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_range.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_range.py @@ -1,28 +1,16 @@ -import _plotly_utils.basevalidators -class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="range", parent_name="layout.scene.xaxis", **kwargs): - super(RangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", False), - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"autorange": False}), - items=kwargs.pop( - "items", - [ - { - "editType": "plot", - "impliedEdits": {"^autorange": False}, - "valType": "any", - }, - { - "editType": "plot", - "impliedEdits": {"^autorange": False}, - "valType": "any", - }, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='range', + parent_name='layout.scene.xaxis', + **kwargs): + super(RangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', False), + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'autorange': False}), + items=kwargs.pop('items', [{'editType': 'plot', 'impliedEdits': {'^autorange': False}, 'valType': 'any'}, {'editType': 'plot', 'impliedEdits': {'^autorange': False}, 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_rangemode.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_rangemode.py index 0ab362ab2e7..bfebde3e75c 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_rangemode.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_rangemode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class RangemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="rangemode", parent_name="layout.scene.xaxis", **kwargs - ): - super(RangemodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "tozero", "nonnegative"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RangemodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='rangemode', + parent_name='layout.scene.xaxis', + **kwargs): + super(RangemodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'tozero', 'nonnegative']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_separatethousands.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_separatethousands.py index 654921c23d3..16780bc4246 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="layout.scene.xaxis", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='layout.scene.xaxis', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showaxeslabels.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showaxeslabels.py index 0d22803a688..e6d9a10fd22 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showaxeslabels.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showaxeslabels.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowaxeslabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showaxeslabels", parent_name="layout.scene.xaxis", **kwargs - ): - super(ShowaxeslabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowaxeslabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showaxeslabels', + parent_name='layout.scene.xaxis', + **kwargs): + super(ShowaxeslabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showbackground.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showbackground.py index 11809bb1850..817d8c7575b 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showbackground.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showbackground.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowbackgroundValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showbackground", parent_name="layout.scene.xaxis", **kwargs - ): - super(ShowbackgroundValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowbackgroundValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showbackground', + parent_name='layout.scene.xaxis', + **kwargs): + super(ShowbackgroundValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showexponent.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showexponent.py index ed5e756e81d..254f0857600 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showexponent.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="layout.scene.xaxis", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='layout.scene.xaxis', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showgrid.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showgrid.py index 104a8c5ca39..58072305b8d 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showgrid.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showgrid.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showgrid", parent_name="layout.scene.xaxis", **kwargs - ): - super(ShowgridValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowgridValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showgrid', + parent_name='layout.scene.xaxis', + **kwargs): + super(ShowgridValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showline.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showline.py index 0bbbca65a18..aa0c4a17801 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showline.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showline.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showline", parent_name="layout.scene.xaxis", **kwargs - ): - super(ShowlineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowlineValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showline', + parent_name='layout.scene.xaxis', + **kwargs): + super(ShowlineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showspikes.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showspikes.py index 82bbc4aad12..9d280792362 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showspikes.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showspikes.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowspikesValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showspikes", parent_name="layout.scene.xaxis", **kwargs - ): - super(ShowspikesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowspikesValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showspikes', + parent_name='layout.scene.xaxis', + **kwargs): + super(ShowspikesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showticklabels.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showticklabels.py index 66c911af79f..5a87ad6e180 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showticklabels.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showticklabels", parent_name="layout.scene.xaxis", **kwargs - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='layout.scene.xaxis', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showtickprefix.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showtickprefix.py index 41d4adef7bb..eb67851402a 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showtickprefix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showtickprefix", parent_name="layout.scene.xaxis", **kwargs - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='layout.scene.xaxis', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showticksuffix.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showticksuffix.py index c6368eac214..42cbac07817 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_showticksuffix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showticksuffix", parent_name="layout.scene.xaxis", **kwargs - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='layout.scene.xaxis', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_spikecolor.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_spikecolor.py index e8e2d72beca..4f1e7151f4c 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_spikecolor.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_spikecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SpikecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="spikecolor", parent_name="layout.scene.xaxis", **kwargs - ): - super(SpikecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SpikecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='spikecolor', + parent_name='layout.scene.xaxis', + **kwargs): + super(SpikecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_spikesides.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_spikesides.py index 5ffda40399d..377289791a1 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_spikesides.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_spikesides.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SpikesidesValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="spikesides", parent_name="layout.scene.xaxis", **kwargs - ): - super(SpikesidesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SpikesidesValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='spikesides', + parent_name='layout.scene.xaxis', + **kwargs): + super(SpikesidesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_spikethickness.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_spikethickness.py index 0fd134fec68..7ee9f1c37f2 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_spikethickness.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_spikethickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SpikethicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="spikethickness", parent_name="layout.scene.xaxis", **kwargs - ): - super(SpikethicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SpikethicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='spikethickness', + parent_name='layout.scene.xaxis', + **kwargs): + super(SpikethicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tick0.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tick0.py index 6e9c7e7277c..db08a86a3d6 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tick0.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tick0.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="tick0", parent_name="layout.scene.xaxis", **kwargs): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='layout.scene.xaxis', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickangle.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickangle.py index be84ada4341..ff0d49bb140 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickangle.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="layout.scene.xaxis", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='layout.scene.xaxis', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickcolor.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickcolor.py index 1e895f54ee7..4e0ff464c15 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="layout.scene.xaxis", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='layout.scene.xaxis', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickfont.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickfont.py index 4d8eccd0158..1ea32d746ce 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickfont.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="layout.scene.xaxis", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='layout.scene.xaxis', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickformat.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickformat.py index 662684d39bb..8852e8cf941 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickformat.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="layout.scene.xaxis", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='layout.scene.xaxis', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickformatstopdefaults.py index 9d1675d888c..65843e8fa01 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="layout.scene.xaxis", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='layout.scene.xaxis', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickformatstops.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickformatstops.py index 12c5b5c0461..c3fd8cc6d1b 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickformatstops.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="tickformatstops", parent_name="layout.scene.xaxis", **kwargs - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='layout.scene.xaxis', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_ticklen.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_ticklen.py index e9830f4d3eb..9473097f794 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_ticklen.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="layout.scene.xaxis", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='layout.scene.xaxis', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickmode.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickmode.py index d96292ff303..a968abb2773 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickmode.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="layout.scene.xaxis", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='layout.scene.xaxis', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickprefix.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickprefix.py index 7991ec162f6..f45412aec75 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="layout.scene.xaxis", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='layout.scene.xaxis', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_ticks.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_ticks.py index fb8e2887187..01617cb8e34 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_ticks.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_ticks.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="ticks", parent_name="layout.scene.xaxis", **kwargs): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='layout.scene.xaxis', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_ticksuffix.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_ticksuffix.py index 5f91ca042ea..c2acae98a8a 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="layout.scene.xaxis", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='layout.scene.xaxis', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_ticktext.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_ticktext.py index 60b51bb036a..337fafe3daf 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_ticktext.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="layout.scene.xaxis", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='layout.scene.xaxis', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_ticktextsrc.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_ticktextsrc.py index 1288b9e8303..0990debb637 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="layout.scene.xaxis", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='layout.scene.xaxis', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickvals.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickvals.py index c22ff8cb0d3..a5ef4a36e6e 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickvals.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="layout.scene.xaxis", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='layout.scene.xaxis', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickvalssrc.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickvalssrc.py index 2c47be974c5..5f626ac9487 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="layout.scene.xaxis", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='layout.scene.xaxis', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickwidth.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickwidth.py index 8fdc2dad1eb..0450353b6aa 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="layout.scene.xaxis", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='layout.scene.xaxis', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_title.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_title.py index 643bdc8875b..6d6988f5857 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_title.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_title.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__(self, plotly_name="title", parent_name="layout.scene.xaxis", **kwargs): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this axis' title font. - text - Sets the title of this axis. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='layout.scene.xaxis', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_type.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_type.py index a26964bbd78..db31b2fee16 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_type.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_type.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="type", parent_name="layout.scene.xaxis", **kwargs): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["-", "linear", "log", "date", "category"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='layout.scene.xaxis', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['-', 'linear', 'log', 'date', 'category']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_visible.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_visible.py index 775cd5d8633..63b832831a8 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_visible.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_visible.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="visible", parent_name="layout.scene.xaxis", **kwargs - ): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='layout.scene.xaxis', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_zeroline.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_zeroline.py index 69b5ee5dec5..a460e3c88d6 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_zeroline.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_zeroline.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ZerolineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="zeroline", parent_name="layout.scene.xaxis", **kwargs - ): - super(ZerolineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZerolineValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='zeroline', + parent_name='layout.scene.xaxis', + **kwargs): + super(ZerolineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_zerolinecolor.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_zerolinecolor.py index 2df493ed372..86f439673d7 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_zerolinecolor.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_zerolinecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ZerolinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="zerolinecolor", parent_name="layout.scene.xaxis", **kwargs - ): - super(ZerolinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZerolinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='zerolinecolor', + parent_name='layout.scene.xaxis', + **kwargs): + super(ZerolinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_zerolinewidth.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_zerolinewidth.py index 70ffee536bf..0334f96d72d 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/_zerolinewidth.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/_zerolinewidth.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ZerolinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="zerolinewidth", parent_name="layout.scene.xaxis", **kwargs - ): - super(ZerolinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZerolinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zerolinewidth', + parent_name='layout.scene.xaxis', + **kwargs): + super(ZerolinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/autorangeoptions/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/autorangeoptions/__init__.py index 701f84c04e0..7f4b2620040 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/autorangeoptions/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/autorangeoptions/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._minallowed import MinallowedValidator from ._maxallowed import MaxallowedValidator @@ -10,16 +9,10 @@ from ._clipmax import ClipmaxValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._minallowed.MinallowedValidator", - "._maxallowed.MaxallowedValidator", - "._includesrc.IncludesrcValidator", - "._include.IncludeValidator", - "._clipmin.ClipminValidator", - "._clipmax.ClipmaxValidator", - ], + ['._minallowed.MinallowedValidator', '._maxallowed.MaxallowedValidator', '._includesrc.IncludesrcValidator', '._include.IncludeValidator', '._clipmin.ClipminValidator', '._clipmax.ClipmaxValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/autorangeoptions/_clipmax.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/autorangeoptions/_clipmax.py index d3528a7a121..309fac0853b 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/autorangeoptions/_clipmax.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/autorangeoptions/_clipmax.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ClipmaxValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="clipmax", - parent_name="layout.scene.xaxis.autorangeoptions", - **kwargs, - ): - super(ClipmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ClipmaxValidator(_bv.AnyValidator): + def __init__(self, plotly_name='clipmax', + parent_name='layout.scene.xaxis.autorangeoptions', + **kwargs): + super(ClipmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/autorangeoptions/_clipmin.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/autorangeoptions/_clipmin.py index 3c45a58fe23..3b2bc26eba1 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/autorangeoptions/_clipmin.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/autorangeoptions/_clipmin.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ClipminValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="clipmin", - parent_name="layout.scene.xaxis.autorangeoptions", - **kwargs, - ): - super(ClipminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ClipminValidator(_bv.AnyValidator): + def __init__(self, plotly_name='clipmin', + parent_name='layout.scene.xaxis.autorangeoptions', + **kwargs): + super(ClipminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/autorangeoptions/_include.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/autorangeoptions/_include.py index 3382cb77027..884edbd6e1f 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/autorangeoptions/_include.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/autorangeoptions/_include.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class IncludeValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="include", - parent_name="layout.scene.xaxis.autorangeoptions", - **kwargs, - ): - super(IncludeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IncludeValidator(_bv.AnyValidator): + def __init__(self, plotly_name='include', + parent_name='layout.scene.xaxis.autorangeoptions', + **kwargs): + super(IncludeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/autorangeoptions/_includesrc.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/autorangeoptions/_includesrc.py index 9d396fc441f..234a2eed2c9 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/autorangeoptions/_includesrc.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/autorangeoptions/_includesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class IncludesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="includesrc", - parent_name="layout.scene.xaxis.autorangeoptions", - **kwargs, - ): - super(IncludesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IncludesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='includesrc', + parent_name='layout.scene.xaxis.autorangeoptions', + **kwargs): + super(IncludesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/autorangeoptions/_maxallowed.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/autorangeoptions/_maxallowed.py index 533cd8b44c9..bd2b1da4d9e 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/autorangeoptions/_maxallowed.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/autorangeoptions/_maxallowed.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class MaxallowedValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="maxallowed", - parent_name="layout.scene.xaxis.autorangeoptions", - **kwargs, - ): - super(MaxallowedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MaxallowedValidator(_bv.AnyValidator): + def __init__(self, plotly_name='maxallowed', + parent_name='layout.scene.xaxis.autorangeoptions', + **kwargs): + super(MaxallowedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/autorangeoptions/_minallowed.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/autorangeoptions/_minallowed.py index 66f8bab1081..fa478ef7d01 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/autorangeoptions/_minallowed.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/autorangeoptions/_minallowed.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class MinallowedValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="minallowed", - parent_name="layout.scene.xaxis.autorangeoptions", - **kwargs, - ): - super(MinallowedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MinallowedValidator(_bv.AnyValidator): + def __init__(self, plotly_name='minallowed', + parent_name='layout.scene.xaxis.autorangeoptions', + **kwargs): + super(MinallowedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_color.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_color.py index de62e0132fd..ee1e72ecb84 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.scene.xaxis.tickfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.scene.xaxis.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_family.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_family.py index 3bc26253267..7056d834d55 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="layout.scene.xaxis.tickfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.scene.xaxis.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_lineposition.py index ff296cf8ecd..3df3b05474f 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.scene.xaxis.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.scene.xaxis.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_shadow.py index ab92c4fc0e4..8ca9576b6d1 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="layout.scene.xaxis.tickfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.scene.xaxis.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_size.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_size.py index 8844599f39f..463ae2b59bd 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="layout.scene.xaxis.tickfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.scene.xaxis.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_style.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_style.py index 46397ee8c26..43674a26d68 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="layout.scene.xaxis.tickfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.scene.xaxis.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_textcase.py index 19cd704f546..f5c6ef6ebf2 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="layout.scene.xaxis.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.scene.xaxis.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_variant.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_variant.py index 77bb6877685..fa0bc25cf15 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="layout.scene.xaxis.tickfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.scene.xaxis.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_weight.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_weight.py index 08ff3be1fbc..d8a78220b6d 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="layout.scene.xaxis.tickfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.scene.xaxis.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickformatstop/_dtickrange.py index f6d66f15754..2e28cb87998 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="layout.scene.xaxis.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - items=kwargs.pop( - "items", - [ - {"editType": "plot", "valType": "any"}, - {"editType": "plot", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='layout.scene.xaxis.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + items=kwargs.pop('items', [{'editType': 'plot', 'valType': 'any'}, {'editType': 'plot', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickformatstop/_enabled.py index 921cf3da874..1292ee3c169 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="layout.scene.xaxis.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='layout.scene.xaxis.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickformatstop/_name.py index 8ebeff5eeff..ff4fa6e9010 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="layout.scene.xaxis.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='layout.scene.xaxis.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickformatstop/_templateitemname.py index f810dbf4f22..1a750800ad8 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="layout.scene.xaxis.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='layout.scene.xaxis.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickformatstop/_value.py index b31129cdff2..a1954b46bab 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="layout.scene.xaxis.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='layout.scene.xaxis.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/_font.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/_font.py index 0b5745a9ebb..a3000466b6f 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/_font.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="layout.scene.xaxis.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='layout.scene.xaxis.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/_text.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/_text.py index 7055f4b2913..1a873bc03f5 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/_text.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="layout.scene.xaxis.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='layout.scene.xaxis.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_color.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_color.py index 5bd4f83a4b9..3a60bf81d6c 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.scene.xaxis.title.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.scene.xaxis.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_family.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_family.py index f8681f0c228..6e25f78d0b7 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="layout.scene.xaxis.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.scene.xaxis.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_lineposition.py index 9e0f7ad6429..aaa3b198eab 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.scene.xaxis.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.scene.xaxis.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_shadow.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_shadow.py index bb869fc4423..63456f67dcc 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="layout.scene.xaxis.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.scene.xaxis.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_size.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_size.py index f77a0536f2f..c9afc00ff84 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="layout.scene.xaxis.title.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.scene.xaxis.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_style.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_style.py index cec38e95200..554921992f8 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="layout.scene.xaxis.title.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.scene.xaxis.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_textcase.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_textcase.py index df0e0ed4abe..ea6950b8f9a 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="layout.scene.xaxis.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.scene.xaxis.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_variant.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_variant.py index 911bdf5b7c8..4c20aac34c4 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="layout.scene.xaxis.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.scene.xaxis.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_weight.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_weight.py index d7e6c9a44ae..5eb5cb70047 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="layout.scene.xaxis.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.scene.xaxis.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/__init__.py index b95df1031f8..cf9b162ae27 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zerolinewidth import ZerolinewidthValidator from ._zerolinecolor import ZerolinecolorValidator @@ -64,70 +63,10 @@ from ._autorange import AutorangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zerolinewidth.ZerolinewidthValidator", - "._zerolinecolor.ZerolinecolorValidator", - "._zeroline.ZerolineValidator", - "._visible.VisibleValidator", - "._type.TypeValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._spikethickness.SpikethicknessValidator", - "._spikesides.SpikesidesValidator", - "._spikecolor.SpikecolorValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showspikes.ShowspikesValidator", - "._showline.ShowlineValidator", - "._showgrid.ShowgridValidator", - "._showexponent.ShowexponentValidator", - "._showbackground.ShowbackgroundValidator", - "._showaxeslabels.ShowaxeslabelsValidator", - "._separatethousands.SeparatethousandsValidator", - "._rangemode.RangemodeValidator", - "._range.RangeValidator", - "._nticks.NticksValidator", - "._mirror.MirrorValidator", - "._minexponent.MinexponentValidator", - "._minallowed.MinallowedValidator", - "._maxallowed.MaxallowedValidator", - "._linewidth.LinewidthValidator", - "._linecolor.LinecolorValidator", - "._labelalias.LabelaliasValidator", - "._hoverformat.HoverformatValidator", - "._gridwidth.GridwidthValidator", - "._gridcolor.GridcolorValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._color.ColorValidator", - "._categoryorder.CategoryorderValidator", - "._categoryarraysrc.CategoryarraysrcValidator", - "._categoryarray.CategoryarrayValidator", - "._calendar.CalendarValidator", - "._backgroundcolor.BackgroundcolorValidator", - "._autotypenumbers.AutotypenumbersValidator", - "._autorangeoptions.AutorangeoptionsValidator", - "._autorange.AutorangeValidator", - ], + ['._zerolinewidth.ZerolinewidthValidator', '._zerolinecolor.ZerolinecolorValidator', '._zeroline.ZerolineValidator', '._visible.VisibleValidator', '._type.TypeValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._spikethickness.SpikethicknessValidator', '._spikesides.SpikesidesValidator', '._spikecolor.SpikecolorValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showspikes.ShowspikesValidator', '._showline.ShowlineValidator', '._showgrid.ShowgridValidator', '._showexponent.ShowexponentValidator', '._showbackground.ShowbackgroundValidator', '._showaxeslabels.ShowaxeslabelsValidator', '._separatethousands.SeparatethousandsValidator', '._rangemode.RangemodeValidator', '._range.RangeValidator', '._nticks.NticksValidator', '._mirror.MirrorValidator', '._minexponent.MinexponentValidator', '._minallowed.MinallowedValidator', '._maxallowed.MaxallowedValidator', '._linewidth.LinewidthValidator', '._linecolor.LinecolorValidator', '._labelalias.LabelaliasValidator', '._hoverformat.HoverformatValidator', '._gridwidth.GridwidthValidator', '._gridcolor.GridcolorValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._color.ColorValidator', '._categoryorder.CategoryorderValidator', '._categoryarraysrc.CategoryarraysrcValidator', '._categoryarray.CategoryarrayValidator', '._calendar.CalendarValidator', '._backgroundcolor.BackgroundcolorValidator', '._autotypenumbers.AutotypenumbersValidator', '._autorangeoptions.AutorangeoptionsValidator', '._autorange.AutorangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_autorange.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_autorange.py index 35e17654d66..c6455918c21 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_autorange.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_autorange.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class AutorangeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="autorange", parent_name="layout.scene.yaxis", **kwargs - ): - super(AutorangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop( - "values", - [True, False, "reversed", "min reversed", "max reversed", "min", "max"], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutorangeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='autorange', + parent_name='layout.scene.yaxis', + **kwargs): + super(AutorangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', [True, False, 'reversed', 'min reversed', 'max reversed', 'min', 'max']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_autorangeoptions.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_autorangeoptions.py index d35a13f0061..c4fddf99bbe 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_autorangeoptions.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_autorangeoptions.py @@ -1,35 +1,15 @@ -import _plotly_utils.basevalidators -class AutorangeoptionsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="autorangeoptions", parent_name="layout.scene.yaxis", **kwargs - ): - super(AutorangeoptionsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Autorangeoptions"), - data_docs=kwargs.pop( - "data_docs", - """ - clipmax - Clip autorange maximum if it goes beyond this - value. Has no effect when - `autorangeoptions.maxallowed` is provided. - clipmin - Clip autorange minimum if it goes beyond this - value. Has no effect when - `autorangeoptions.minallowed` is provided. - include - Ensure this value is included in autorange. - includesrc - Sets the source reference on Chart Studio Cloud - for `include`. - maxallowed - Use this value exactly as autorange maximum. - minallowed - Use this value exactly as autorange minimum. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutorangeoptionsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='autorangeoptions', + parent_name='layout.scene.yaxis', + **kwargs): + super(AutorangeoptionsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Autorangeoptions'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_autotypenumbers.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_autotypenumbers.py index 80142732ec1..2a6eb2458ef 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_autotypenumbers.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_autotypenumbers.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutotypenumbersValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="autotypenumbers", parent_name="layout.scene.yaxis", **kwargs - ): - super(AutotypenumbersValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["convert types", "strict"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutotypenumbersValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='autotypenumbers', + parent_name='layout.scene.yaxis', + **kwargs): + super(AutotypenumbersValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['convert types', 'strict']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_backgroundcolor.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_backgroundcolor.py index 96993ff2e46..f626e025331 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_backgroundcolor.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_backgroundcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BackgroundcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="backgroundcolor", parent_name="layout.scene.yaxis", **kwargs - ): - super(BackgroundcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BackgroundcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='backgroundcolor', + parent_name='layout.scene.yaxis', + **kwargs): + super(BackgroundcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_calendar.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_calendar.py index 9f58f65ad40..73a7586fa28 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_calendar.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_calendar.py @@ -1,34 +1,14 @@ -import _plotly_utils.basevalidators -class CalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="calendar", parent_name="layout.scene.yaxis", **kwargs - ): - super(CalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='calendar', + parent_name='layout.scene.yaxis', + **kwargs): + super(CalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_categoryarray.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_categoryarray.py index 18d06322fbe..5a4f52a0575 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_categoryarray.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_categoryarray.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="categoryarray", parent_name="layout.scene.yaxis", **kwargs - ): - super(CategoryarrayValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CategoryarrayValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='categoryarray', + parent_name='layout.scene.yaxis', + **kwargs): + super(CategoryarrayValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_categoryarraysrc.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_categoryarraysrc.py index bee1b8f6eab..50287ac5aba 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_categoryarraysrc.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_categoryarraysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="categoryarraysrc", parent_name="layout.scene.yaxis", **kwargs - ): - super(CategoryarraysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CategoryarraysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='categoryarraysrc', + parent_name='layout.scene.yaxis', + **kwargs): + super(CategoryarraysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_categoryorder.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_categoryorder.py index 72e85695940..1a2aa196bac 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_categoryorder.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_categoryorder.py @@ -1,36 +1,14 @@ -import _plotly_utils.basevalidators -class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="categoryorder", parent_name="layout.scene.yaxis", **kwargs - ): - super(CategoryorderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "trace", - "category ascending", - "category descending", - "array", - "total ascending", - "total descending", - "min ascending", - "min descending", - "max ascending", - "max descending", - "sum ascending", - "sum descending", - "mean ascending", - "mean descending", - "geometric mean ascending", - "geometric mean descending", - "median ascending", - "median descending", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CategoryorderValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='categoryorder', + parent_name='layout.scene.yaxis', + **kwargs): + super(CategoryorderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['trace', 'category ascending', 'category descending', 'array', 'total ascending', 'total descending', 'min ascending', 'min descending', 'max ascending', 'max descending', 'sum ascending', 'sum descending', 'mean ascending', 'mean descending', 'geometric mean ascending', 'geometric mean descending', 'median ascending', 'median descending']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_color.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_color.py index 995fa472d5a..78f0483f999 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_color.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="layout.scene.yaxis", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.scene.yaxis', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_dtick.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_dtick.py index 93e6cb7fa11..8993bf00041 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_dtick.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_dtick.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="dtick", parent_name="layout.scene.yaxis", **kwargs): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='layout.scene.yaxis', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_exponentformat.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_exponentformat.py index 5f205f9a25e..2f653286e72 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_exponentformat.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="exponentformat", parent_name="layout.scene.yaxis", **kwargs - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='layout.scene.yaxis', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_gridcolor.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_gridcolor.py index e92ab3ec3c3..ad7414e4e91 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_gridcolor.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_gridcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="gridcolor", parent_name="layout.scene.yaxis", **kwargs - ): - super(GridcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='gridcolor', + parent_name='layout.scene.yaxis', + **kwargs): + super(GridcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_gridwidth.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_gridwidth.py index d75a6752a14..1a1a61c7d96 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_gridwidth.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_gridwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="gridwidth", parent_name="layout.scene.yaxis", **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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='gridwidth', + parent_name='layout.scene.yaxis', + **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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_hoverformat.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_hoverformat.py index 6159b11f839..c9a1b8eb344 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_hoverformat.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_hoverformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="hoverformat", parent_name="layout.scene.yaxis", **kwargs - ): - super(HoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='hoverformat', + parent_name='layout.scene.yaxis', + **kwargs): + super(HoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_labelalias.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_labelalias.py index 934c0e8d826..da6cba4ea4c 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_labelalias.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="layout.scene.yaxis", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='layout.scene.yaxis', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_linecolor.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_linecolor.py index 0968766135c..d060cbb385a 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_linecolor.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_linecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="linecolor", parent_name="layout.scene.yaxis", **kwargs - ): - super(LinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='linecolor', + parent_name='layout.scene.yaxis', + **kwargs): + super(LinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_linewidth.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_linewidth.py index 328611453f2..e59de66eab0 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_linewidth.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_linewidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="linewidth", parent_name="layout.scene.yaxis", **kwargs - ): - super(LinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='linewidth', + parent_name='layout.scene.yaxis', + **kwargs): + super(LinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_maxallowed.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_maxallowed.py index 98055a2ef86..adfc4af027d 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_maxallowed.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_maxallowed.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MaxallowedValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="maxallowed", parent_name="layout.scene.yaxis", **kwargs - ): - super(MaxallowedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"^autorange": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxallowedValidator(_bv.AnyValidator): + def __init__(self, plotly_name='maxallowed', + parent_name='layout.scene.yaxis', + **kwargs): + super(MaxallowedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'^autorange': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_minallowed.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_minallowed.py index 7912d25c731..286aa8a3910 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_minallowed.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_minallowed.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinallowedValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="minallowed", parent_name="layout.scene.yaxis", **kwargs - ): - super(MinallowedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"^autorange": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinallowedValidator(_bv.AnyValidator): + def __init__(self, plotly_name='minallowed', + parent_name='layout.scene.yaxis', + **kwargs): + super(MinallowedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'^autorange': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_minexponent.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_minexponent.py index 0e605aa6ec7..43299d9eb9f 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_minexponent.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="layout.scene.yaxis", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='layout.scene.yaxis', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_mirror.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_mirror.py index e2bae9b38ad..3e9e49aa0b5 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_mirror.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_mirror.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MirrorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="mirror", parent_name="layout.scene.yaxis", **kwargs - ): - super(MirrorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", [True, "ticks", False, "all", "allticks"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MirrorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='mirror', + parent_name='layout.scene.yaxis', + **kwargs): + super(MirrorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', [True, 'ticks', False, 'all', 'allticks']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_nticks.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_nticks.py index 08b2814496d..619c6ed17af 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_nticks.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="layout.scene.yaxis", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='layout.scene.yaxis', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_range.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_range.py index c4851f5514b..afe6c13bc31 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_range.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_range.py @@ -1,28 +1,16 @@ -import _plotly_utils.basevalidators -class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="range", parent_name="layout.scene.yaxis", **kwargs): - super(RangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", False), - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"autorange": False}), - items=kwargs.pop( - "items", - [ - { - "editType": "plot", - "impliedEdits": {"^autorange": False}, - "valType": "any", - }, - { - "editType": "plot", - "impliedEdits": {"^autorange": False}, - "valType": "any", - }, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='range', + parent_name='layout.scene.yaxis', + **kwargs): + super(RangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', False), + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'autorange': False}), + items=kwargs.pop('items', [{'editType': 'plot', 'impliedEdits': {'^autorange': False}, 'valType': 'any'}, {'editType': 'plot', 'impliedEdits': {'^autorange': False}, 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_rangemode.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_rangemode.py index c370a8d09be..6889cbb6f69 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_rangemode.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_rangemode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class RangemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="rangemode", parent_name="layout.scene.yaxis", **kwargs - ): - super(RangemodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "tozero", "nonnegative"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RangemodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='rangemode', + parent_name='layout.scene.yaxis', + **kwargs): + super(RangemodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'tozero', 'nonnegative']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_separatethousands.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_separatethousands.py index 6cf74d5e2a4..3611feed242 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="layout.scene.yaxis", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='layout.scene.yaxis', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showaxeslabels.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showaxeslabels.py index 85218a8458e..b0e5712c18d 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showaxeslabels.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showaxeslabels.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowaxeslabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showaxeslabels", parent_name="layout.scene.yaxis", **kwargs - ): - super(ShowaxeslabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowaxeslabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showaxeslabels', + parent_name='layout.scene.yaxis', + **kwargs): + super(ShowaxeslabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showbackground.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showbackground.py index 426c3e74547..dfa78e89344 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showbackground.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showbackground.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowbackgroundValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showbackground", parent_name="layout.scene.yaxis", **kwargs - ): - super(ShowbackgroundValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowbackgroundValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showbackground', + parent_name='layout.scene.yaxis', + **kwargs): + super(ShowbackgroundValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showexponent.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showexponent.py index c1def79a76a..c0e32158af5 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showexponent.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="layout.scene.yaxis", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='layout.scene.yaxis', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showgrid.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showgrid.py index 90ed455473c..adc17879a86 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showgrid.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showgrid.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showgrid", parent_name="layout.scene.yaxis", **kwargs - ): - super(ShowgridValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowgridValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showgrid', + parent_name='layout.scene.yaxis', + **kwargs): + super(ShowgridValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showline.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showline.py index 0af44ef746a..a063a70307a 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showline.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showline.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showline", parent_name="layout.scene.yaxis", **kwargs - ): - super(ShowlineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowlineValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showline', + parent_name='layout.scene.yaxis', + **kwargs): + super(ShowlineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showspikes.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showspikes.py index 1a730b6b701..65791f4f759 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showspikes.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showspikes.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowspikesValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showspikes", parent_name="layout.scene.yaxis", **kwargs - ): - super(ShowspikesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowspikesValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showspikes', + parent_name='layout.scene.yaxis', + **kwargs): + super(ShowspikesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showticklabels.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showticklabels.py index cd37d59e56c..a77b6a63d82 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showticklabels.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showticklabels", parent_name="layout.scene.yaxis", **kwargs - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='layout.scene.yaxis', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showtickprefix.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showtickprefix.py index 1a98730f034..65028119a48 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showtickprefix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showtickprefix", parent_name="layout.scene.yaxis", **kwargs - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='layout.scene.yaxis', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showticksuffix.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showticksuffix.py index 23fcca0c7c0..320971d06b1 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_showticksuffix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showticksuffix", parent_name="layout.scene.yaxis", **kwargs - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='layout.scene.yaxis', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_spikecolor.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_spikecolor.py index a6d322f34b1..b9e35e11e69 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_spikecolor.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_spikecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SpikecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="spikecolor", parent_name="layout.scene.yaxis", **kwargs - ): - super(SpikecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SpikecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='spikecolor', + parent_name='layout.scene.yaxis', + **kwargs): + super(SpikecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_spikesides.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_spikesides.py index 8bbfd0abe87..79e54e29196 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_spikesides.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_spikesides.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SpikesidesValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="spikesides", parent_name="layout.scene.yaxis", **kwargs - ): - super(SpikesidesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SpikesidesValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='spikesides', + parent_name='layout.scene.yaxis', + **kwargs): + super(SpikesidesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_spikethickness.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_spikethickness.py index 7b39781fe75..afe9835483a 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_spikethickness.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_spikethickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SpikethicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="spikethickness", parent_name="layout.scene.yaxis", **kwargs - ): - super(SpikethicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SpikethicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='spikethickness', + parent_name='layout.scene.yaxis', + **kwargs): + super(SpikethicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tick0.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tick0.py index 6977b786af0..b8409317bc3 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tick0.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tick0.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="tick0", parent_name="layout.scene.yaxis", **kwargs): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='layout.scene.yaxis', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickangle.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickangle.py index 029ab1e9fef..bfb0ace86ad 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickangle.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="layout.scene.yaxis", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='layout.scene.yaxis', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickcolor.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickcolor.py index 613c2ce073f..6be90632ccd 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="layout.scene.yaxis", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='layout.scene.yaxis', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickfont.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickfont.py index 18a4482686b..08cb205719d 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickfont.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="layout.scene.yaxis", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='layout.scene.yaxis', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickformat.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickformat.py index ffdca526bcb..489fa0ae983 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickformat.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="layout.scene.yaxis", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='layout.scene.yaxis', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickformatstopdefaults.py index 39b4aa9958d..e20bfc0733b 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="layout.scene.yaxis", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='layout.scene.yaxis', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickformatstops.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickformatstops.py index e2138d8c924..cb770040ec5 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickformatstops.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="tickformatstops", parent_name="layout.scene.yaxis", **kwargs - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='layout.scene.yaxis', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_ticklen.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_ticklen.py index 8a436ee58f6..9a11b2d7043 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_ticklen.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="layout.scene.yaxis", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='layout.scene.yaxis', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickmode.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickmode.py index d8c1c1f854f..c4b9833ecb0 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickmode.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="layout.scene.yaxis", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='layout.scene.yaxis', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickprefix.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickprefix.py index c66562d236d..ab8f2290a16 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="layout.scene.yaxis", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='layout.scene.yaxis', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_ticks.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_ticks.py index 1d440dc9467..ef40c23e616 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_ticks.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_ticks.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="ticks", parent_name="layout.scene.yaxis", **kwargs): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='layout.scene.yaxis', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_ticksuffix.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_ticksuffix.py index ec5afa18ece..83f962792cd 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="layout.scene.yaxis", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='layout.scene.yaxis', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_ticktext.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_ticktext.py index a1dcfc29958..0ed4f9995b7 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_ticktext.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="layout.scene.yaxis", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='layout.scene.yaxis', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_ticktextsrc.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_ticktextsrc.py index 10c4fac7c78..e681479d8bc 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="layout.scene.yaxis", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='layout.scene.yaxis', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickvals.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickvals.py index e3ade261b1f..9aac1ead9e2 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickvals.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="layout.scene.yaxis", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='layout.scene.yaxis', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickvalssrc.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickvalssrc.py index 36c4563ae69..6108a583ae7 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="layout.scene.yaxis", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='layout.scene.yaxis', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickwidth.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickwidth.py index 41ebb25bbb6..a94e6c75f46 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="layout.scene.yaxis", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='layout.scene.yaxis', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_title.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_title.py index c8558802c51..44ee700c926 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_title.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_title.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__(self, plotly_name="title", parent_name="layout.scene.yaxis", **kwargs): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this axis' title font. - text - Sets the title of this axis. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='layout.scene.yaxis', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_type.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_type.py index 7819d0926c8..421e03b486f 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_type.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_type.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="type", parent_name="layout.scene.yaxis", **kwargs): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["-", "linear", "log", "date", "category"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='layout.scene.yaxis', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['-', 'linear', 'log', 'date', 'category']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_visible.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_visible.py index 2b9d992a7e2..1a5c460efe7 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_visible.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_visible.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="visible", parent_name="layout.scene.yaxis", **kwargs - ): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='layout.scene.yaxis', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_zeroline.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_zeroline.py index 8aab452f509..2cd7827ccda 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_zeroline.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_zeroline.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ZerolineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="zeroline", parent_name="layout.scene.yaxis", **kwargs - ): - super(ZerolineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZerolineValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='zeroline', + parent_name='layout.scene.yaxis', + **kwargs): + super(ZerolineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_zerolinecolor.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_zerolinecolor.py index 328a982b1b1..3911813317b 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_zerolinecolor.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_zerolinecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ZerolinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="zerolinecolor", parent_name="layout.scene.yaxis", **kwargs - ): - super(ZerolinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZerolinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='zerolinecolor', + parent_name='layout.scene.yaxis', + **kwargs): + super(ZerolinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_zerolinewidth.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_zerolinewidth.py index 450707ecced..757935cb6eb 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/_zerolinewidth.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/_zerolinewidth.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ZerolinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="zerolinewidth", parent_name="layout.scene.yaxis", **kwargs - ): - super(ZerolinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZerolinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zerolinewidth', + parent_name='layout.scene.yaxis', + **kwargs): + super(ZerolinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/autorangeoptions/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/autorangeoptions/__init__.py index 701f84c04e0..7f4b2620040 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/autorangeoptions/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/autorangeoptions/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._minallowed import MinallowedValidator from ._maxallowed import MaxallowedValidator @@ -10,16 +9,10 @@ from ._clipmax import ClipmaxValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._minallowed.MinallowedValidator", - "._maxallowed.MaxallowedValidator", - "._includesrc.IncludesrcValidator", - "._include.IncludeValidator", - "._clipmin.ClipminValidator", - "._clipmax.ClipmaxValidator", - ], + ['._minallowed.MinallowedValidator', '._maxallowed.MaxallowedValidator', '._includesrc.IncludesrcValidator', '._include.IncludeValidator', '._clipmin.ClipminValidator', '._clipmax.ClipmaxValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/autorangeoptions/_clipmax.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/autorangeoptions/_clipmax.py index 692ec59a06a..0da7ac21e81 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/autorangeoptions/_clipmax.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/autorangeoptions/_clipmax.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ClipmaxValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="clipmax", - parent_name="layout.scene.yaxis.autorangeoptions", - **kwargs, - ): - super(ClipmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ClipmaxValidator(_bv.AnyValidator): + def __init__(self, plotly_name='clipmax', + parent_name='layout.scene.yaxis.autorangeoptions', + **kwargs): + super(ClipmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/autorangeoptions/_clipmin.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/autorangeoptions/_clipmin.py index a52d49af996..e260969f5e5 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/autorangeoptions/_clipmin.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/autorangeoptions/_clipmin.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ClipminValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="clipmin", - parent_name="layout.scene.yaxis.autorangeoptions", - **kwargs, - ): - super(ClipminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ClipminValidator(_bv.AnyValidator): + def __init__(self, plotly_name='clipmin', + parent_name='layout.scene.yaxis.autorangeoptions', + **kwargs): + super(ClipminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/autorangeoptions/_include.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/autorangeoptions/_include.py index 3401ab5a4dc..91c1e5850cb 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/autorangeoptions/_include.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/autorangeoptions/_include.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class IncludeValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="include", - parent_name="layout.scene.yaxis.autorangeoptions", - **kwargs, - ): - super(IncludeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IncludeValidator(_bv.AnyValidator): + def __init__(self, plotly_name='include', + parent_name='layout.scene.yaxis.autorangeoptions', + **kwargs): + super(IncludeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/autorangeoptions/_includesrc.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/autorangeoptions/_includesrc.py index d2b561d72b6..b037ef02691 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/autorangeoptions/_includesrc.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/autorangeoptions/_includesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class IncludesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="includesrc", - parent_name="layout.scene.yaxis.autorangeoptions", - **kwargs, - ): - super(IncludesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IncludesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='includesrc', + parent_name='layout.scene.yaxis.autorangeoptions', + **kwargs): + super(IncludesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/autorangeoptions/_maxallowed.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/autorangeoptions/_maxallowed.py index bd2c861282e..7771a5e82b2 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/autorangeoptions/_maxallowed.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/autorangeoptions/_maxallowed.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class MaxallowedValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="maxallowed", - parent_name="layout.scene.yaxis.autorangeoptions", - **kwargs, - ): - super(MaxallowedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MaxallowedValidator(_bv.AnyValidator): + def __init__(self, plotly_name='maxallowed', + parent_name='layout.scene.yaxis.autorangeoptions', + **kwargs): + super(MaxallowedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/autorangeoptions/_minallowed.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/autorangeoptions/_minallowed.py index 215fdc4265b..833d3022706 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/autorangeoptions/_minallowed.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/autorangeoptions/_minallowed.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class MinallowedValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="minallowed", - parent_name="layout.scene.yaxis.autorangeoptions", - **kwargs, - ): - super(MinallowedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MinallowedValidator(_bv.AnyValidator): + def __init__(self, plotly_name='minallowed', + parent_name='layout.scene.yaxis.autorangeoptions', + **kwargs): + super(MinallowedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_color.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_color.py index 67b773201cb..973793fa2d6 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.scene.yaxis.tickfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.scene.yaxis.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_family.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_family.py index d9432ca5c91..7e2d4bf0666 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="layout.scene.yaxis.tickfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.scene.yaxis.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_lineposition.py index 81c534a6072..64051fbf550 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.scene.yaxis.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.scene.yaxis.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_shadow.py index 87849204b64..add82566bb8 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="layout.scene.yaxis.tickfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.scene.yaxis.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_size.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_size.py index ba86022d986..ae5a49cc77b 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="layout.scene.yaxis.tickfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.scene.yaxis.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_style.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_style.py index d1379bab29b..525a2c289a8 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="layout.scene.yaxis.tickfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.scene.yaxis.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_textcase.py index 54f24bb0b59..da1a6565bd0 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="layout.scene.yaxis.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.scene.yaxis.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_variant.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_variant.py index e90f59e2f3a..ca290be5977 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="layout.scene.yaxis.tickfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.scene.yaxis.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_weight.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_weight.py index 57efc948f40..48ad5fab7f7 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="layout.scene.yaxis.tickfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.scene.yaxis.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickformatstop/_dtickrange.py index 35e3ef66a9d..9fb7b648048 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="layout.scene.yaxis.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - items=kwargs.pop( - "items", - [ - {"editType": "plot", "valType": "any"}, - {"editType": "plot", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='layout.scene.yaxis.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + items=kwargs.pop('items', [{'editType': 'plot', 'valType': 'any'}, {'editType': 'plot', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickformatstop/_enabled.py index 983003da7ed..12ca0363b7d 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="layout.scene.yaxis.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='layout.scene.yaxis.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickformatstop/_name.py index 8c97ec0f7ee..be1a8480837 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="layout.scene.yaxis.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='layout.scene.yaxis.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickformatstop/_templateitemname.py index b97fb9a8ce7..da630049f2a 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="layout.scene.yaxis.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='layout.scene.yaxis.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickformatstop/_value.py index 8fc7371a443..373676b4f9d 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="layout.scene.yaxis.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='layout.scene.yaxis.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/_font.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/_font.py index a4c692da423..98e2ff97fee 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/_font.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="layout.scene.yaxis.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='layout.scene.yaxis.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/_text.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/_text.py index 784410bc7ff..34ee59afb39 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/_text.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="layout.scene.yaxis.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='layout.scene.yaxis.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_color.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_color.py index 6a066d49973..a49f93867c3 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.scene.yaxis.title.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.scene.yaxis.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_family.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_family.py index 10b8fe1e661..2e6bce173ea 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="layout.scene.yaxis.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.scene.yaxis.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_lineposition.py index 4c5324029d1..f1184735d17 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.scene.yaxis.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.scene.yaxis.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_shadow.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_shadow.py index e4bb87e0011..85fa29b4a2b 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="layout.scene.yaxis.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.scene.yaxis.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_size.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_size.py index 47bdf06b435..40ad7171c0b 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="layout.scene.yaxis.title.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.scene.yaxis.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_style.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_style.py index fce897ed71d..7198f63d1d3 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="layout.scene.yaxis.title.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.scene.yaxis.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_textcase.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_textcase.py index 51955d77b1f..b7f4c312ce6 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="layout.scene.yaxis.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.scene.yaxis.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_variant.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_variant.py index f88fe591ecb..90a8c8594b9 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="layout.scene.yaxis.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.scene.yaxis.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_weight.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_weight.py index 5b6b1e677c3..36b9a57067a 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="layout.scene.yaxis.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.scene.yaxis.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/__init__.py index b95df1031f8..cf9b162ae27 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zerolinewidth import ZerolinewidthValidator from ._zerolinecolor import ZerolinecolorValidator @@ -64,70 +63,10 @@ from ._autorange import AutorangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zerolinewidth.ZerolinewidthValidator", - "._zerolinecolor.ZerolinecolorValidator", - "._zeroline.ZerolineValidator", - "._visible.VisibleValidator", - "._type.TypeValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._spikethickness.SpikethicknessValidator", - "._spikesides.SpikesidesValidator", - "._spikecolor.SpikecolorValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showspikes.ShowspikesValidator", - "._showline.ShowlineValidator", - "._showgrid.ShowgridValidator", - "._showexponent.ShowexponentValidator", - "._showbackground.ShowbackgroundValidator", - "._showaxeslabels.ShowaxeslabelsValidator", - "._separatethousands.SeparatethousandsValidator", - "._rangemode.RangemodeValidator", - "._range.RangeValidator", - "._nticks.NticksValidator", - "._mirror.MirrorValidator", - "._minexponent.MinexponentValidator", - "._minallowed.MinallowedValidator", - "._maxallowed.MaxallowedValidator", - "._linewidth.LinewidthValidator", - "._linecolor.LinecolorValidator", - "._labelalias.LabelaliasValidator", - "._hoverformat.HoverformatValidator", - "._gridwidth.GridwidthValidator", - "._gridcolor.GridcolorValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._color.ColorValidator", - "._categoryorder.CategoryorderValidator", - "._categoryarraysrc.CategoryarraysrcValidator", - "._categoryarray.CategoryarrayValidator", - "._calendar.CalendarValidator", - "._backgroundcolor.BackgroundcolorValidator", - "._autotypenumbers.AutotypenumbersValidator", - "._autorangeoptions.AutorangeoptionsValidator", - "._autorange.AutorangeValidator", - ], + ['._zerolinewidth.ZerolinewidthValidator', '._zerolinecolor.ZerolinecolorValidator', '._zeroline.ZerolineValidator', '._visible.VisibleValidator', '._type.TypeValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._spikethickness.SpikethicknessValidator', '._spikesides.SpikesidesValidator', '._spikecolor.SpikecolorValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showspikes.ShowspikesValidator', '._showline.ShowlineValidator', '._showgrid.ShowgridValidator', '._showexponent.ShowexponentValidator', '._showbackground.ShowbackgroundValidator', '._showaxeslabels.ShowaxeslabelsValidator', '._separatethousands.SeparatethousandsValidator', '._rangemode.RangemodeValidator', '._range.RangeValidator', '._nticks.NticksValidator', '._mirror.MirrorValidator', '._minexponent.MinexponentValidator', '._minallowed.MinallowedValidator', '._maxallowed.MaxallowedValidator', '._linewidth.LinewidthValidator', '._linecolor.LinecolorValidator', '._labelalias.LabelaliasValidator', '._hoverformat.HoverformatValidator', '._gridwidth.GridwidthValidator', '._gridcolor.GridcolorValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._color.ColorValidator', '._categoryorder.CategoryorderValidator', '._categoryarraysrc.CategoryarraysrcValidator', '._categoryarray.CategoryarrayValidator', '._calendar.CalendarValidator', '._backgroundcolor.BackgroundcolorValidator', '._autotypenumbers.AutotypenumbersValidator', '._autorangeoptions.AutorangeoptionsValidator', '._autorange.AutorangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_autorange.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_autorange.py index eaae6e6ca26..114cd7fc36c 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_autorange.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_autorange.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class AutorangeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="autorange", parent_name="layout.scene.zaxis", **kwargs - ): - super(AutorangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop( - "values", - [True, False, "reversed", "min reversed", "max reversed", "min", "max"], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutorangeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='autorange', + parent_name='layout.scene.zaxis', + **kwargs): + super(AutorangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', [True, False, 'reversed', 'min reversed', 'max reversed', 'min', 'max']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_autorangeoptions.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_autorangeoptions.py index 22dce4ccea0..b27428b61ad 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_autorangeoptions.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_autorangeoptions.py @@ -1,35 +1,15 @@ -import _plotly_utils.basevalidators -class AutorangeoptionsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="autorangeoptions", parent_name="layout.scene.zaxis", **kwargs - ): - super(AutorangeoptionsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Autorangeoptions"), - data_docs=kwargs.pop( - "data_docs", - """ - clipmax - Clip autorange maximum if it goes beyond this - value. Has no effect when - `autorangeoptions.maxallowed` is provided. - clipmin - Clip autorange minimum if it goes beyond this - value. Has no effect when - `autorangeoptions.minallowed` is provided. - include - Ensure this value is included in autorange. - includesrc - Sets the source reference on Chart Studio Cloud - for `include`. - maxallowed - Use this value exactly as autorange maximum. - minallowed - Use this value exactly as autorange minimum. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutorangeoptionsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='autorangeoptions', + parent_name='layout.scene.zaxis', + **kwargs): + super(AutorangeoptionsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Autorangeoptions'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_autotypenumbers.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_autotypenumbers.py index 175376d186d..5cd61b40566 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_autotypenumbers.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_autotypenumbers.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutotypenumbersValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="autotypenumbers", parent_name="layout.scene.zaxis", **kwargs - ): - super(AutotypenumbersValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["convert types", "strict"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutotypenumbersValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='autotypenumbers', + parent_name='layout.scene.zaxis', + **kwargs): + super(AutotypenumbersValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['convert types', 'strict']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_backgroundcolor.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_backgroundcolor.py index 8be4e10a5fb..8c0f7f5f00a 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_backgroundcolor.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_backgroundcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BackgroundcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="backgroundcolor", parent_name="layout.scene.zaxis", **kwargs - ): - super(BackgroundcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BackgroundcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='backgroundcolor', + parent_name='layout.scene.zaxis', + **kwargs): + super(BackgroundcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_calendar.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_calendar.py index d5a4b71cd91..014594429f6 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_calendar.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_calendar.py @@ -1,34 +1,14 @@ -import _plotly_utils.basevalidators -class CalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="calendar", parent_name="layout.scene.zaxis", **kwargs - ): - super(CalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='calendar', + parent_name='layout.scene.zaxis', + **kwargs): + super(CalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_categoryarray.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_categoryarray.py index e422240b9c8..9fac9286c68 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_categoryarray.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_categoryarray.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="categoryarray", parent_name="layout.scene.zaxis", **kwargs - ): - super(CategoryarrayValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CategoryarrayValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='categoryarray', + parent_name='layout.scene.zaxis', + **kwargs): + super(CategoryarrayValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_categoryarraysrc.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_categoryarraysrc.py index 1c0cd084f8e..f241bf4c358 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_categoryarraysrc.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_categoryarraysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="categoryarraysrc", parent_name="layout.scene.zaxis", **kwargs - ): - super(CategoryarraysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CategoryarraysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='categoryarraysrc', + parent_name='layout.scene.zaxis', + **kwargs): + super(CategoryarraysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_categoryorder.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_categoryorder.py index 6c94587d012..b53853b86d7 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_categoryorder.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_categoryorder.py @@ -1,36 +1,14 @@ -import _plotly_utils.basevalidators -class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="categoryorder", parent_name="layout.scene.zaxis", **kwargs - ): - super(CategoryorderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "trace", - "category ascending", - "category descending", - "array", - "total ascending", - "total descending", - "min ascending", - "min descending", - "max ascending", - "max descending", - "sum ascending", - "sum descending", - "mean ascending", - "mean descending", - "geometric mean ascending", - "geometric mean descending", - "median ascending", - "median descending", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CategoryorderValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='categoryorder', + parent_name='layout.scene.zaxis', + **kwargs): + super(CategoryorderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['trace', 'category ascending', 'category descending', 'array', 'total ascending', 'total descending', 'min ascending', 'min descending', 'max ascending', 'max descending', 'sum ascending', 'sum descending', 'mean ascending', 'mean descending', 'geometric mean ascending', 'geometric mean descending', 'median ascending', 'median descending']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_color.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_color.py index 5a948d0492e..ebf8b9ba2f1 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_color.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="layout.scene.zaxis", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.scene.zaxis', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_dtick.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_dtick.py index 89e315e8f04..ed99c2170f5 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_dtick.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_dtick.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="dtick", parent_name="layout.scene.zaxis", **kwargs): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='layout.scene.zaxis', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_exponentformat.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_exponentformat.py index e8bbf49a8c5..475b44caa8a 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_exponentformat.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="exponentformat", parent_name="layout.scene.zaxis", **kwargs - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='layout.scene.zaxis', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_gridcolor.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_gridcolor.py index 5fd52c934c0..2ea81aa1808 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_gridcolor.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_gridcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="gridcolor", parent_name="layout.scene.zaxis", **kwargs - ): - super(GridcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='gridcolor', + parent_name='layout.scene.zaxis', + **kwargs): + super(GridcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_gridwidth.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_gridwidth.py index 02c21e998af..c8894c8819c 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_gridwidth.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_gridwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="gridwidth", parent_name="layout.scene.zaxis", **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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='gridwidth', + parent_name='layout.scene.zaxis', + **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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_hoverformat.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_hoverformat.py index 463268407b2..f3f612e6022 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_hoverformat.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_hoverformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="hoverformat", parent_name="layout.scene.zaxis", **kwargs - ): - super(HoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='hoverformat', + parent_name='layout.scene.zaxis', + **kwargs): + super(HoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_labelalias.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_labelalias.py index 5dd991fdbfa..64046de8af0 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_labelalias.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="layout.scene.zaxis", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='layout.scene.zaxis', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_linecolor.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_linecolor.py index 1be41448164..d1e0b88f129 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_linecolor.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_linecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="linecolor", parent_name="layout.scene.zaxis", **kwargs - ): - super(LinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='linecolor', + parent_name='layout.scene.zaxis', + **kwargs): + super(LinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_linewidth.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_linewidth.py index f6d6c342d22..7fc5c07976d 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_linewidth.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_linewidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="linewidth", parent_name="layout.scene.zaxis", **kwargs - ): - super(LinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='linewidth', + parent_name='layout.scene.zaxis', + **kwargs): + super(LinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_maxallowed.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_maxallowed.py index c8be55290dd..aee16c7547f 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_maxallowed.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_maxallowed.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MaxallowedValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="maxallowed", parent_name="layout.scene.zaxis", **kwargs - ): - super(MaxallowedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"^autorange": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxallowedValidator(_bv.AnyValidator): + def __init__(self, plotly_name='maxallowed', + parent_name='layout.scene.zaxis', + **kwargs): + super(MaxallowedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'^autorange': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_minallowed.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_minallowed.py index 6b9b9627169..b0e1d1702d6 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_minallowed.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_minallowed.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinallowedValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="minallowed", parent_name="layout.scene.zaxis", **kwargs - ): - super(MinallowedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"^autorange": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinallowedValidator(_bv.AnyValidator): + def __init__(self, plotly_name='minallowed', + parent_name='layout.scene.zaxis', + **kwargs): + super(MinallowedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'^autorange': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_minexponent.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_minexponent.py index cf4db2fa5e3..38de3f696e2 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_minexponent.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="layout.scene.zaxis", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='layout.scene.zaxis', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_mirror.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_mirror.py index 4b32e6729cb..076a0267c76 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_mirror.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_mirror.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MirrorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="mirror", parent_name="layout.scene.zaxis", **kwargs - ): - super(MirrorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", [True, "ticks", False, "all", "allticks"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MirrorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='mirror', + parent_name='layout.scene.zaxis', + **kwargs): + super(MirrorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', [True, 'ticks', False, 'all', 'allticks']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_nticks.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_nticks.py index 5c9e5d8e1e8..e50a6e23a13 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_nticks.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="layout.scene.zaxis", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='layout.scene.zaxis', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_range.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_range.py index aa1962a35c7..9fc362df292 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_range.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_range.py @@ -1,28 +1,16 @@ -import _plotly_utils.basevalidators -class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="range", parent_name="layout.scene.zaxis", **kwargs): - super(RangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", False), - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"autorange": False}), - items=kwargs.pop( - "items", - [ - { - "editType": "plot", - "impliedEdits": {"^autorange": False}, - "valType": "any", - }, - { - "editType": "plot", - "impliedEdits": {"^autorange": False}, - "valType": "any", - }, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='range', + parent_name='layout.scene.zaxis', + **kwargs): + super(RangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', False), + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'autorange': False}), + items=kwargs.pop('items', [{'editType': 'plot', 'impliedEdits': {'^autorange': False}, 'valType': 'any'}, {'editType': 'plot', 'impliedEdits': {'^autorange': False}, 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_rangemode.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_rangemode.py index 780a6e43154..57608ddb4ac 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_rangemode.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_rangemode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class RangemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="rangemode", parent_name="layout.scene.zaxis", **kwargs - ): - super(RangemodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "tozero", "nonnegative"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RangemodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='rangemode', + parent_name='layout.scene.zaxis', + **kwargs): + super(RangemodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'tozero', 'nonnegative']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_separatethousands.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_separatethousands.py index e867ec19d88..bb0bce6709e 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="layout.scene.zaxis", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='layout.scene.zaxis', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showaxeslabels.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showaxeslabels.py index 8f890c2773e..992ce62875a 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showaxeslabels.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showaxeslabels.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowaxeslabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showaxeslabels", parent_name="layout.scene.zaxis", **kwargs - ): - super(ShowaxeslabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowaxeslabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showaxeslabels', + parent_name='layout.scene.zaxis', + **kwargs): + super(ShowaxeslabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showbackground.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showbackground.py index 030facc6771..fbe46df5531 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showbackground.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showbackground.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowbackgroundValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showbackground", parent_name="layout.scene.zaxis", **kwargs - ): - super(ShowbackgroundValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowbackgroundValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showbackground', + parent_name='layout.scene.zaxis', + **kwargs): + super(ShowbackgroundValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showexponent.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showexponent.py index d13ae1e0b8a..84af6f788db 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showexponent.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="layout.scene.zaxis", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='layout.scene.zaxis', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showgrid.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showgrid.py index 1d45c4b2d2c..09354a2a91f 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showgrid.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showgrid.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showgrid", parent_name="layout.scene.zaxis", **kwargs - ): - super(ShowgridValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowgridValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showgrid', + parent_name='layout.scene.zaxis', + **kwargs): + super(ShowgridValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showline.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showline.py index aa6e577f821..8df43ecfd49 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showline.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showline.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showline", parent_name="layout.scene.zaxis", **kwargs - ): - super(ShowlineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowlineValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showline', + parent_name='layout.scene.zaxis', + **kwargs): + super(ShowlineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showspikes.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showspikes.py index 5ea1e336d26..e07fcfda5d9 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showspikes.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showspikes.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowspikesValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showspikes", parent_name="layout.scene.zaxis", **kwargs - ): - super(ShowspikesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowspikesValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showspikes', + parent_name='layout.scene.zaxis', + **kwargs): + super(ShowspikesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showticklabels.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showticklabels.py index e292804247b..acdbba7de12 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showticklabels.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showticklabels", parent_name="layout.scene.zaxis", **kwargs - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='layout.scene.zaxis', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showtickprefix.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showtickprefix.py index 4e0b81e2aaa..528ffaa03e9 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showtickprefix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showtickprefix", parent_name="layout.scene.zaxis", **kwargs - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='layout.scene.zaxis', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showticksuffix.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showticksuffix.py index 1bb83aaf0a4..1c154a13db1 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_showticksuffix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showticksuffix", parent_name="layout.scene.zaxis", **kwargs - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='layout.scene.zaxis', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_spikecolor.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_spikecolor.py index d261adede3b..58a23f5cd4a 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_spikecolor.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_spikecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SpikecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="spikecolor", parent_name="layout.scene.zaxis", **kwargs - ): - super(SpikecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SpikecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='spikecolor', + parent_name='layout.scene.zaxis', + **kwargs): + super(SpikecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_spikesides.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_spikesides.py index a258a227840..c4ebd0ab43c 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_spikesides.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_spikesides.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SpikesidesValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="spikesides", parent_name="layout.scene.zaxis", **kwargs - ): - super(SpikesidesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SpikesidesValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='spikesides', + parent_name='layout.scene.zaxis', + **kwargs): + super(SpikesidesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_spikethickness.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_spikethickness.py index 75dd93b89f4..fd83e0dbb80 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_spikethickness.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_spikethickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SpikethicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="spikethickness", parent_name="layout.scene.zaxis", **kwargs - ): - super(SpikethicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SpikethicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='spikethickness', + parent_name='layout.scene.zaxis', + **kwargs): + super(SpikethicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tick0.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tick0.py index a39460d2f34..1cfa8de7554 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tick0.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tick0.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="tick0", parent_name="layout.scene.zaxis", **kwargs): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='layout.scene.zaxis', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickangle.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickangle.py index bb72dee36ca..6f9e7b03e18 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickangle.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="layout.scene.zaxis", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='layout.scene.zaxis', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickcolor.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickcolor.py index 78dbd886752..bffe575eb32 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="layout.scene.zaxis", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='layout.scene.zaxis', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickfont.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickfont.py index e5c2bd902ea..9a3642c8b4f 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickfont.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="layout.scene.zaxis", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='layout.scene.zaxis', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickformat.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickformat.py index bf83b2adbae..ddb03950b80 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickformat.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="layout.scene.zaxis", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='layout.scene.zaxis', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickformatstopdefaults.py index 8c3751b6fda..b4128565223 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="layout.scene.zaxis", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='layout.scene.zaxis', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickformatstops.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickformatstops.py index cabfab02ced..1bce39c62e8 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickformatstops.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="tickformatstops", parent_name="layout.scene.zaxis", **kwargs - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='layout.scene.zaxis', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_ticklen.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_ticklen.py index 947f1266a29..d4a2551fe09 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_ticklen.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="layout.scene.zaxis", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='layout.scene.zaxis', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickmode.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickmode.py index c690bd8ff30..6694616e23a 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickmode.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="layout.scene.zaxis", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='layout.scene.zaxis', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickprefix.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickprefix.py index 7d233945865..be3ffb47656 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="layout.scene.zaxis", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='layout.scene.zaxis', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_ticks.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_ticks.py index 7a96f855f6a..c7f81cc1428 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_ticks.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_ticks.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="ticks", parent_name="layout.scene.zaxis", **kwargs): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='layout.scene.zaxis', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_ticksuffix.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_ticksuffix.py index bacbee8c651..265a00dec90 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="layout.scene.zaxis", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='layout.scene.zaxis', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_ticktext.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_ticktext.py index 0f243e03eba..b84cce0ce3a 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_ticktext.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="layout.scene.zaxis", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='layout.scene.zaxis', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_ticktextsrc.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_ticktextsrc.py index 7dba15af5e2..d49e2a6beb2 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="layout.scene.zaxis", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='layout.scene.zaxis', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickvals.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickvals.py index b58eb462d93..3a4c87ebde0 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickvals.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="layout.scene.zaxis", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='layout.scene.zaxis', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickvalssrc.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickvalssrc.py index 8d515fb082d..4d80d89f513 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="layout.scene.zaxis", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='layout.scene.zaxis', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickwidth.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickwidth.py index 308e2e74f3b..f9f7b24e59b 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="layout.scene.zaxis", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='layout.scene.zaxis', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_title.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_title.py index 79d137210b2..60320687f17 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_title.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_title.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__(self, plotly_name="title", parent_name="layout.scene.zaxis", **kwargs): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this axis' title font. - text - Sets the title of this axis. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='layout.scene.zaxis', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_type.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_type.py index e804f360792..4888bc4c657 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_type.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_type.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="type", parent_name="layout.scene.zaxis", **kwargs): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["-", "linear", "log", "date", "category"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='layout.scene.zaxis', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['-', 'linear', 'log', 'date', 'category']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_visible.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_visible.py index 9aeded29ea5..f50e5a62b65 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_visible.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_visible.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="visible", parent_name="layout.scene.zaxis", **kwargs - ): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='layout.scene.zaxis', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_zeroline.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_zeroline.py index 2aafd057969..6c8322b2f98 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_zeroline.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_zeroline.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ZerolineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="zeroline", parent_name="layout.scene.zaxis", **kwargs - ): - super(ZerolineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZerolineValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='zeroline', + parent_name='layout.scene.zaxis', + **kwargs): + super(ZerolineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_zerolinecolor.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_zerolinecolor.py index 2bab5882ca6..e9253df2378 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_zerolinecolor.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_zerolinecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ZerolinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="zerolinecolor", parent_name="layout.scene.zaxis", **kwargs - ): - super(ZerolinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZerolinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='zerolinecolor', + parent_name='layout.scene.zaxis', + **kwargs): + super(ZerolinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_zerolinewidth.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_zerolinewidth.py index 16a92ed2324..87cac04c40f 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/_zerolinewidth.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/_zerolinewidth.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ZerolinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="zerolinewidth", parent_name="layout.scene.zaxis", **kwargs - ): - super(ZerolinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZerolinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zerolinewidth', + parent_name='layout.scene.zaxis', + **kwargs): + super(ZerolinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/autorangeoptions/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/autorangeoptions/__init__.py index 701f84c04e0..7f4b2620040 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/autorangeoptions/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/autorangeoptions/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._minallowed import MinallowedValidator from ._maxallowed import MaxallowedValidator @@ -10,16 +9,10 @@ from ._clipmax import ClipmaxValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._minallowed.MinallowedValidator", - "._maxallowed.MaxallowedValidator", - "._includesrc.IncludesrcValidator", - "._include.IncludeValidator", - "._clipmin.ClipminValidator", - "._clipmax.ClipmaxValidator", - ], + ['._minallowed.MinallowedValidator', '._maxallowed.MaxallowedValidator', '._includesrc.IncludesrcValidator', '._include.IncludeValidator', '._clipmin.ClipminValidator', '._clipmax.ClipmaxValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/autorangeoptions/_clipmax.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/autorangeoptions/_clipmax.py index 541dcbabf32..aa6c04c273d 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/autorangeoptions/_clipmax.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/autorangeoptions/_clipmax.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ClipmaxValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="clipmax", - parent_name="layout.scene.zaxis.autorangeoptions", - **kwargs, - ): - super(ClipmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ClipmaxValidator(_bv.AnyValidator): + def __init__(self, plotly_name='clipmax', + parent_name='layout.scene.zaxis.autorangeoptions', + **kwargs): + super(ClipmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/autorangeoptions/_clipmin.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/autorangeoptions/_clipmin.py index b40caa3fca2..6e0e419d342 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/autorangeoptions/_clipmin.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/autorangeoptions/_clipmin.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ClipminValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="clipmin", - parent_name="layout.scene.zaxis.autorangeoptions", - **kwargs, - ): - super(ClipminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ClipminValidator(_bv.AnyValidator): + def __init__(self, plotly_name='clipmin', + parent_name='layout.scene.zaxis.autorangeoptions', + **kwargs): + super(ClipminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/autorangeoptions/_include.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/autorangeoptions/_include.py index c2d3401cbdf..189f1cfa026 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/autorangeoptions/_include.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/autorangeoptions/_include.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class IncludeValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="include", - parent_name="layout.scene.zaxis.autorangeoptions", - **kwargs, - ): - super(IncludeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IncludeValidator(_bv.AnyValidator): + def __init__(self, plotly_name='include', + parent_name='layout.scene.zaxis.autorangeoptions', + **kwargs): + super(IncludeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/autorangeoptions/_includesrc.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/autorangeoptions/_includesrc.py index dee1f42fb06..3e3df60b5f4 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/autorangeoptions/_includesrc.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/autorangeoptions/_includesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class IncludesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="includesrc", - parent_name="layout.scene.zaxis.autorangeoptions", - **kwargs, - ): - super(IncludesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IncludesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='includesrc', + parent_name='layout.scene.zaxis.autorangeoptions', + **kwargs): + super(IncludesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/autorangeoptions/_maxallowed.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/autorangeoptions/_maxallowed.py index 56d5dc856f8..3144f95c815 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/autorangeoptions/_maxallowed.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/autorangeoptions/_maxallowed.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class MaxallowedValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="maxallowed", - parent_name="layout.scene.zaxis.autorangeoptions", - **kwargs, - ): - super(MaxallowedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MaxallowedValidator(_bv.AnyValidator): + def __init__(self, plotly_name='maxallowed', + parent_name='layout.scene.zaxis.autorangeoptions', + **kwargs): + super(MaxallowedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/autorangeoptions/_minallowed.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/autorangeoptions/_minallowed.py index b031c37761a..42bea23202b 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/autorangeoptions/_minallowed.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/autorangeoptions/_minallowed.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class MinallowedValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="minallowed", - parent_name="layout.scene.zaxis.autorangeoptions", - **kwargs, - ): - super(MinallowedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MinallowedValidator(_bv.AnyValidator): + def __init__(self, plotly_name='minallowed', + parent_name='layout.scene.zaxis.autorangeoptions', + **kwargs): + super(MinallowedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_color.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_color.py index 194e31b1300..2859c56ebee 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.scene.zaxis.tickfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.scene.zaxis.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_family.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_family.py index 48c2c5d6514..797b34ee765 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="layout.scene.zaxis.tickfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.scene.zaxis.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_lineposition.py index 456f9608c57..85e0b9286a9 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.scene.zaxis.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.scene.zaxis.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_shadow.py index 3b208f7465c..0f4f972ae03 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="layout.scene.zaxis.tickfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.scene.zaxis.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_size.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_size.py index ff74fdfadef..667cf7a178b 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="layout.scene.zaxis.tickfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.scene.zaxis.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_style.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_style.py index dc8a3c505b1..4cd73dda4ea 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="layout.scene.zaxis.tickfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.scene.zaxis.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_textcase.py index 93e2e011686..7de19f1f6e0 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="layout.scene.zaxis.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.scene.zaxis.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_variant.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_variant.py index 04d25b96952..bcbf8a77621 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="layout.scene.zaxis.tickfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.scene.zaxis.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_weight.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_weight.py index 983d728c8de..b57bc4cf217 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="layout.scene.zaxis.tickfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.scene.zaxis.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickformatstop/_dtickrange.py index 6e7dc019798..7cb10244b4e 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="layout.scene.zaxis.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - items=kwargs.pop( - "items", - [ - {"editType": "plot", "valType": "any"}, - {"editType": "plot", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='layout.scene.zaxis.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + items=kwargs.pop('items', [{'editType': 'plot', 'valType': 'any'}, {'editType': 'plot', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickformatstop/_enabled.py index 0e22fdb56ef..352f10a0e93 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="layout.scene.zaxis.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='layout.scene.zaxis.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickformatstop/_name.py index 074c9a5ea62..97d684f0ca2 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="layout.scene.zaxis.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='layout.scene.zaxis.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickformatstop/_templateitemname.py index 593e5039982..25bb1e8d3ba 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="layout.scene.zaxis.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='layout.scene.zaxis.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickformatstop/_value.py index 871839b71de..f18f9d3698b 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="layout.scene.zaxis.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='layout.scene.zaxis.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/_font.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/_font.py index 237e25c699c..71facd79095 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/_font.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="layout.scene.zaxis.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='layout.scene.zaxis.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/_text.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/_text.py index 9bce25eb576..4251f0591aa 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/_text.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="layout.scene.zaxis.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='layout.scene.zaxis.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_color.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_color.py index b01b06906f2..31bf5915934 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.scene.zaxis.title.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.scene.zaxis.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_family.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_family.py index 4fe68626249..27e845abe74 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="layout.scene.zaxis.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.scene.zaxis.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_lineposition.py index 8df8198bb5d..685c360b502 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.scene.zaxis.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.scene.zaxis.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_shadow.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_shadow.py index 75f1b0b210a..f50e4891656 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="layout.scene.zaxis.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.scene.zaxis.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_size.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_size.py index ccb49275e6c..24393ef1530 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="layout.scene.zaxis.title.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.scene.zaxis.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_style.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_style.py index 9ee0415c4ec..b8f9691c14c 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="layout.scene.zaxis.title.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.scene.zaxis.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_textcase.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_textcase.py index ca9c8fd5047..5993100cafd 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="layout.scene.zaxis.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.scene.zaxis.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_variant.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_variant.py index 46bb41ce405..2272be83e45 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="layout.scene.zaxis.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.scene.zaxis.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_weight.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_weight.py index 765126c7a5a..7a45ea36f54 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="layout.scene.zaxis.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.scene.zaxis.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/selection/__init__.py b/packages/python/plotly/plotly/validators/layout/selection/__init__.py index 12ba4f55b40..5806dad324a 100644 --- a/packages/python/plotly/plotly/validators/layout/selection/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/selection/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._y1 import Y1Validator @@ -16,22 +15,10 @@ from ._line import LineValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._y1.Y1Validator", - "._y0.Y0Validator", - "._xref.XrefValidator", - "._x1.X1Validator", - "._x0.X0Validator", - "._type.TypeValidator", - "._templateitemname.TemplateitemnameValidator", - "._path.PathValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._line.LineValidator", - ], + ['._yref.YrefValidator', '._y1.Y1Validator', '._y0.Y0Validator', '._xref.XrefValidator', '._x1.X1Validator', '._x0.X0Validator', '._type.TypeValidator', '._templateitemname.TemplateitemnameValidator', '._path.PathValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._line.LineValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/selection/_line.py b/packages/python/plotly/plotly/validators/layout/selection/_line.py index 7017d95469e..c30dc59b33f 100644 --- a/packages/python/plotly/plotly/validators/layout/selection/_line.py +++ b/packages/python/plotly/plotly/validators/layout/selection/_line.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="layout.selection", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the line color. - dash - 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"). - width - Sets the line width (in px). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='layout.selection', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/selection/_name.py b/packages/python/plotly/plotly/validators/layout/selection/_name.py index 3074c4fa66d..a02c20a387d 100644 --- a/packages/python/plotly/plotly/validators/layout/selection/_name.py +++ b/packages/python/plotly/plotly/validators/layout/selection/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="layout.selection", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='layout.selection', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/selection/_opacity.py b/packages/python/plotly/plotly/validators/layout/selection/_opacity.py index 08c319d99b6..88691599765 100644 --- a/packages/python/plotly/plotly/validators/layout/selection/_opacity.py +++ b/packages/python/plotly/plotly/validators/layout/selection/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="layout.selection", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='layout.selection', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/selection/_path.py b/packages/python/plotly/plotly/validators/layout/selection/_path.py index abcd9692922..2cf912978e2 100644 --- a/packages/python/plotly/plotly/validators/layout/selection/_path.py +++ b/packages/python/plotly/plotly/validators/layout/selection/_path.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class PathValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="path", parent_name="layout.selection", **kwargs): - super(PathValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class PathValidator(_bv.StringValidator): + def __init__(self, plotly_name='path', + parent_name='layout.selection', + **kwargs): + super(PathValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/selection/_templateitemname.py b/packages/python/plotly/plotly/validators/layout/selection/_templateitemname.py index fd8a09d6fbc..272934f4144 100644 --- a/packages/python/plotly/plotly/validators/layout/selection/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/layout/selection/_templateitemname.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="templateitemname", parent_name="layout.selection", **kwargs - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='layout.selection', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/selection/_type.py b/packages/python/plotly/plotly/validators/layout/selection/_type.py index 28262664c52..011eccedc12 100644 --- a/packages/python/plotly/plotly/validators/layout/selection/_type.py +++ b/packages/python/plotly/plotly/validators/layout/selection/_type.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="type", parent_name="layout.selection", **kwargs): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop("values", ["rect", "path"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='layout.selection', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['rect', 'path']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/selection/_x0.py b/packages/python/plotly/plotly/validators/layout/selection/_x0.py index 9287c41e40b..efb8bf86d3a 100644 --- a/packages/python/plotly/plotly/validators/layout/selection/_x0.py +++ b/packages/python/plotly/plotly/validators/layout/selection/_x0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class X0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="x0", parent_name="layout.selection", **kwargs): - super(X0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class X0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='x0', + parent_name='layout.selection', + **kwargs): + super(X0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/selection/_x1.py b/packages/python/plotly/plotly/validators/layout/selection/_x1.py index 87a0d634bfa..edbd7234148 100644 --- a/packages/python/plotly/plotly/validators/layout/selection/_x1.py +++ b/packages/python/plotly/plotly/validators/layout/selection/_x1.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class X1Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="x1", parent_name="layout.selection", **kwargs): - super(X1Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class X1Validator(_bv.AnyValidator): + def __init__(self, plotly_name='x1', + parent_name='layout.selection', + **kwargs): + super(X1Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/selection/_xref.py b/packages/python/plotly/plotly/validators/layout/selection/_xref.py index 7a4be8fba36..9539859c5fb 100644 --- a/packages/python/plotly/plotly/validators/layout/selection/_xref.py +++ b/packages/python/plotly/plotly/validators/layout/selection/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xref", parent_name="layout.selection", **kwargs): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop( - "values", ["paper", "/^x([2-9]|[1-9][0-9]+)?( domain)?$/"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='layout.selection', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['paper', '/^x([2-9]|[1-9][0-9]+)?( domain)?$/']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/selection/_y0.py b/packages/python/plotly/plotly/validators/layout/selection/_y0.py index fbff6d5394a..f677a853198 100644 --- a/packages/python/plotly/plotly/validators/layout/selection/_y0.py +++ b/packages/python/plotly/plotly/validators/layout/selection/_y0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Y0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="y0", parent_name="layout.selection", **kwargs): - super(Y0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Y0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='y0', + parent_name='layout.selection', + **kwargs): + super(Y0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/selection/_y1.py b/packages/python/plotly/plotly/validators/layout/selection/_y1.py index f576b5505cd..6c685982dbf 100644 --- a/packages/python/plotly/plotly/validators/layout/selection/_y1.py +++ b/packages/python/plotly/plotly/validators/layout/selection/_y1.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Y1Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="y1", parent_name="layout.selection", **kwargs): - super(Y1Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Y1Validator(_bv.AnyValidator): + def __init__(self, plotly_name='y1', + parent_name='layout.selection', + **kwargs): + super(Y1Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/selection/_yref.py b/packages/python/plotly/plotly/validators/layout/selection/_yref.py index 38ceef30be8..e100029a2cf 100644 --- a/packages/python/plotly/plotly/validators/layout/selection/_yref.py +++ b/packages/python/plotly/plotly/validators/layout/selection/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yref", parent_name="layout.selection", **kwargs): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop( - "values", ["paper", "/^y([2-9]|[1-9][0-9]+)?( domain)?$/"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='layout.selection', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['paper', '/^y([2-9]|[1-9][0-9]+)?( domain)?$/']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/selection/line/__init__.py b/packages/python/plotly/plotly/validators/layout/selection/line/__init__.py index cff41466517..e42e2f2974d 100644 --- a/packages/python/plotly/plotly/validators/layout/selection/line/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/selection/line/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._dash import DashValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._width.WidthValidator", "._dash.DashValidator", "._color.ColorValidator"], + ['._width.WidthValidator', '._dash.DashValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/selection/line/_color.py b/packages/python/plotly/plotly/validators/layout/selection/line/_color.py index 8a054d845db..e5bbab1008c 100644 --- a/packages/python/plotly/plotly/validators/layout/selection/line/_color.py +++ b/packages/python/plotly/plotly/validators/layout/selection/line/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.selection.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.selection.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/selection/line/_dash.py b/packages/python/plotly/plotly/validators/layout/selection/line/_dash.py index 29a6efd8073..2bc634811e3 100644 --- a/packages/python/plotly/plotly/validators/layout/selection/line/_dash.py +++ b/packages/python/plotly/plotly/validators/layout/selection/line/_dash.py @@ -1,16 +1,14 @@ -import _plotly_utils.basevalidators -class DashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__( - self, plotly_name="dash", parent_name="layout.selection.line", **kwargs - ): - super(DashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop( - "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DashValidator(_bv.DashValidator): + def __init__(self, plotly_name='dash', + parent_name='layout.selection.line', + **kwargs): + super(DashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/selection/line/_width.py b/packages/python/plotly/plotly/validators/layout/selection/line/_width.py index e32fd424f5e..c8098b18f85 100644 --- a/packages/python/plotly/plotly/validators/layout/selection/line/_width.py +++ b/packages/python/plotly/plotly/validators/layout/selection/line/_width.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="layout.selection.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "arraydraw"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='layout.selection.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'arraydraw'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/__init__.py b/packages/python/plotly/plotly/validators/layout/shape/__init__.py index aefa39690c2..c08f27419e1 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/shape/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._ysizemode import YsizemodeValidator from ._yref import YrefValidator @@ -36,42 +35,10 @@ from ._editable import EditableValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._ysizemode.YsizemodeValidator", - "._yref.YrefValidator", - "._yanchor.YanchorValidator", - "._y1shift.Y1ShiftValidator", - "._y1.Y1Validator", - "._y0shift.Y0ShiftValidator", - "._y0.Y0Validator", - "._xsizemode.XsizemodeValidator", - "._xref.XrefValidator", - "._xanchor.XanchorValidator", - "._x1shift.X1ShiftValidator", - "._x1.X1Validator", - "._x0shift.X0ShiftValidator", - "._x0.X0Validator", - "._visible.VisibleValidator", - "._type.TypeValidator", - "._templateitemname.TemplateitemnameValidator", - "._showlegend.ShowlegendValidator", - "._path.PathValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._line.LineValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._layer.LayerValidator", - "._label.LabelValidator", - "._fillrule.FillruleValidator", - "._fillcolor.FillcolorValidator", - "._editable.EditableValidator", - ], + ['._ysizemode.YsizemodeValidator', '._yref.YrefValidator', '._yanchor.YanchorValidator', '._y1shift.Y1ShiftValidator', '._y1.Y1Validator', '._y0shift.Y0ShiftValidator', '._y0.Y0Validator', '._xsizemode.XsizemodeValidator', '._xref.XrefValidator', '._xanchor.XanchorValidator', '._x1shift.X1ShiftValidator', '._x1.X1Validator', '._x0shift.X0ShiftValidator', '._x0.X0Validator', '._visible.VisibleValidator', '._type.TypeValidator', '._templateitemname.TemplateitemnameValidator', '._showlegend.ShowlegendValidator', '._path.PathValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._line.LineValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._layer.LayerValidator', '._label.LabelValidator', '._fillrule.FillruleValidator', '._fillcolor.FillcolorValidator', '._editable.EditableValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/shape/_editable.py b/packages/python/plotly/plotly/validators/layout/shape/_editable.py index 755527aff7b..917b0f50d2e 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_editable.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_editable.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class EditableValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="editable", parent_name="layout.shape", **kwargs): - super(EditableValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EditableValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='editable', + parent_name='layout.shape', + **kwargs): + super(EditableValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_fillcolor.py b/packages/python/plotly/plotly/validators/layout/shape/_fillcolor.py index 22a32493e37..e2b0f6b8568 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_fillcolor.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_fillcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="fillcolor", parent_name="layout.shape", **kwargs): - super(FillcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FillcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fillcolor', + parent_name='layout.shape', + **kwargs): + super(FillcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_fillrule.py b/packages/python/plotly/plotly/validators/layout/shape/_fillrule.py index 2454afa5c1c..dcf7cda276f 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_fillrule.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_fillrule.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class FillruleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="fillrule", parent_name="layout.shape", **kwargs): - super(FillruleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop("values", ["evenodd", "nonzero"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillruleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='fillrule', + parent_name='layout.shape', + **kwargs): + super(FillruleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['evenodd', 'nonzero']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_label.py b/packages/python/plotly/plotly/validators/layout/shape/_label.py index adb9c069c95..73a53bc7621 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_label.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_label.py @@ -1,82 +1,15 @@ -import _plotly_utils.basevalidators -class LabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="label", parent_name="layout.shape", **kwargs): - super(LabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Label"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets the shape label text font. - padding - Sets padding (in px) between edge of label and - edge of shape. - text - Sets the text to display with shape. It is also - used for legend item if `name` is not provided. - textangle - Sets the angle at which the label text is drawn - with respect to the horizontal. For lines, - angle "auto" is the same angle as the line. For - all other shapes, angle "auto" is horizontal. - textposition - Sets the position of the label text relative to - the shape. Supported values for rectangles, - circles and paths are *top left*, *top center*, - *top right*, *middle left*, *middle center*, - *middle right*, *bottom left*, *bottom center*, - and *bottom right*. Supported values for lines - are "start", "middle", and "end". Default: - *middle center* for rectangles, circles, and - paths; "middle" for lines. - texttemplate - Template string used for rendering the shape's - label. Note that this will override `text`. - Variables are inserted using %{variable}, for - example "x0: %{x0}". Numbers are formatted - using d3-format's syntax %{variable:d3-format}, - for example "Price: %{x0:$.2f}". See https://gi - thub.com/d3/d3-format/tree/v1.4.5#d3-format for - details on the formatting syntax. Dates are - formatted using d3-time-format's syntax - %{variable|d3-time-format}, for example "Day: - %{x0|%m %b %Y}". See - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. A single - multiplication or division operation may be - applied to numeric variables, and combined with - d3 number formatting, for example "Length in - cm: %{x0*2.54}", "%{slope*60:.1f} meters per - second." For log axes, variable values are - given in log units. For date axes, x/y - coordinate variables and center variables use - datetimes, while all other variable values use - values in ms. Finally, the template string has - access to variables `x0`, `x1`, `y0`, `y1`, - `slope`, `dx`, `dy`, `width`, `height`, - `length`, `xcenter` and `ycenter`. - xanchor - Sets the label's horizontal position anchor - This anchor binds the specified `textposition` - to the "left", "center" or "right" of the label - text. For example, if `textposition` is set to - *top right* and `xanchor` to "right" then the - right-most portion of the label text lines up - with the right-most edge of the shape. - yanchor - Sets the label's vertical position anchor This - anchor binds the specified `textposition` to - the "top", "middle" or "bottom" of the label - text. For example, if `textposition` is set to - *top right* and `yanchor` to "top" then the - top-most portion of the label text lines up - with the top-most edge of the shape. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='label', + parent_name='layout.shape', + **kwargs): + super(LabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Label'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_layer.py b/packages/python/plotly/plotly/validators/layout/shape/_layer.py index 7775d370e57..3201e4e4f63 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_layer.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_layer.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="layer", parent_name="layout.shape", **kwargs): - super(LayerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop("values", ["below", "above", "between"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LayerValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='layer', + parent_name='layout.shape', + **kwargs): + super(LayerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['below', 'above', 'between']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_legend.py b/packages/python/plotly/plotly/validators/layout/shape/_legend.py index b4f3b595e3c..2aea8fbaf5b 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_legend.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="layout.shape", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='layout.shape', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_legendgroup.py b/packages/python/plotly/plotly/validators/layout/shape/_legendgroup.py index 2c45f89665f..67a62a1d625 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="layout.shape", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='layout.shape', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/layout/shape/_legendgrouptitle.py index 63f93c783d7..fd36b57f871 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="layout.shape", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='layout.shape', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_legendrank.py b/packages/python/plotly/plotly/validators/layout/shape/_legendrank.py index 28eec2d678e..99e8e8eb083 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_legendrank.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="layout.shape", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='layout.shape', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_legendwidth.py b/packages/python/plotly/plotly/validators/layout/shape/_legendwidth.py index 89c4904bb2e..a61e467fe59 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="layout.shape", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='layout.shape', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_line.py b/packages/python/plotly/plotly/validators/layout/shape/_line.py index 75b7910340a..9a566f95d6b 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_line.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_line.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="layout.shape", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the line color. - dash - 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"). - width - Sets the line width (in px). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='layout.shape', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_name.py b/packages/python/plotly/plotly/validators/layout/shape/_name.py index 085f21db04c..8d75a874e33 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_name.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="layout.shape", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='layout.shape', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_opacity.py b/packages/python/plotly/plotly/validators/layout/shape/_opacity.py index 19f44342b59..40fdc8ac329 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_opacity.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="layout.shape", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='layout.shape', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_path.py b/packages/python/plotly/plotly/validators/layout/shape/_path.py index 754e1772c90..21ab015b5e3 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_path.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_path.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class PathValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="path", parent_name="layout.shape", **kwargs): - super(PathValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class PathValidator(_bv.StringValidator): + def __init__(self, plotly_name='path', + parent_name='layout.shape', + **kwargs): + super(PathValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_showlegend.py b/packages/python/plotly/plotly/validators/layout/shape/_showlegend.py index 2d332f12986..054978636f6 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_showlegend.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="layout.shape", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='layout.shape', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_templateitemname.py b/packages/python/plotly/plotly/validators/layout/shape/_templateitemname.py index d1df4657b1e..6f340d071df 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_templateitemname.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="templateitemname", parent_name="layout.shape", **kwargs - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='layout.shape', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_type.py b/packages/python/plotly/plotly/validators/layout/shape/_type.py index 80fd2fdbf82..cb26fccca62 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_type.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_type.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="type", parent_name="layout.shape", **kwargs): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - values=kwargs.pop("values", ["circle", "rect", "path", "line"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='layout.shape', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + values=kwargs.pop('values', ['circle', 'rect', 'path', 'line']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_visible.py b/packages/python/plotly/plotly/validators/layout/shape/_visible.py index 465a8a0e816..fbe8cdfa449 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_visible.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="layout.shape", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='layout.shape', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_x0.py b/packages/python/plotly/plotly/validators/layout/shape/_x0.py index 1c9642e6a67..0877aea1707 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_x0.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_x0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class X0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="x0", parent_name="layout.shape", **kwargs): - super(X0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class X0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='x0', + parent_name='layout.shape', + **kwargs): + super(X0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_x0shift.py b/packages/python/plotly/plotly/validators/layout/shape/_x0shift.py index fddaad3ac47..9a9187ddc93 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_x0shift.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_x0shift.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class X0ShiftValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x0shift", parent_name="layout.shape", **kwargs): - super(X0ShiftValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class X0ShiftValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x0shift', + parent_name='layout.shape', + **kwargs): + super(X0ShiftValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_x1.py b/packages/python/plotly/plotly/validators/layout/shape/_x1.py index b7d6f51a7d2..a8d651616b1 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_x1.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_x1.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class X1Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="x1", parent_name="layout.shape", **kwargs): - super(X1Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class X1Validator(_bv.AnyValidator): + def __init__(self, plotly_name='x1', + parent_name='layout.shape', + **kwargs): + super(X1Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_x1shift.py b/packages/python/plotly/plotly/validators/layout/shape/_x1shift.py index 02aaa138e78..0a3586e4047 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_x1shift.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_x1shift.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class X1ShiftValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x1shift", parent_name="layout.shape", **kwargs): - super(X1ShiftValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class X1ShiftValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x1shift', + parent_name='layout.shape', + **kwargs): + super(X1ShiftValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_xanchor.py b/packages/python/plotly/plotly/validators/layout/shape/_xanchor.py index d6ba286da8e..afcd39aeb04 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_xanchor.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_xanchor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XanchorValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="xanchor", parent_name="layout.shape", **kwargs): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.AnyValidator): + def __init__(self, plotly_name='xanchor', + parent_name='layout.shape', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_xref.py b/packages/python/plotly/plotly/validators/layout/shape/_xref.py index 065f9868b58..1e36bcf8366 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_xref.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xref", parent_name="layout.shape", **kwargs): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", ["paper", "/^x([2-9]|[1-9][0-9]+)?( domain)?$/"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='layout.shape', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['paper', '/^x([2-9]|[1-9][0-9]+)?( domain)?$/']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_xsizemode.py b/packages/python/plotly/plotly/validators/layout/shape/_xsizemode.py index 34f9ead7a99..a70004887d4 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_xsizemode.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_xsizemode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XsizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xsizemode", parent_name="layout.shape", **kwargs): - super(XsizemodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - values=kwargs.pop("values", ["scaled", "pixel"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XsizemodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xsizemode', + parent_name='layout.shape', + **kwargs): + super(XsizemodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + values=kwargs.pop('values', ['scaled', 'pixel']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_y0.py b/packages/python/plotly/plotly/validators/layout/shape/_y0.py index 85f933f59a5..b7ca437b3eb 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_y0.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_y0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Y0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="y0", parent_name="layout.shape", **kwargs): - super(Y0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Y0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='y0', + parent_name='layout.shape', + **kwargs): + super(Y0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_y0shift.py b/packages/python/plotly/plotly/validators/layout/shape/_y0shift.py index ea5d94af0c3..ce829895347 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_y0shift.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_y0shift.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class Y0ShiftValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y0shift", parent_name="layout.shape", **kwargs): - super(Y0ShiftValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Y0ShiftValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y0shift', + parent_name='layout.shape', + **kwargs): + super(Y0ShiftValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_y1.py b/packages/python/plotly/plotly/validators/layout/shape/_y1.py index a7b28a1d2d3..2e0799b715f 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_y1.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_y1.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Y1Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="y1", parent_name="layout.shape", **kwargs): - super(Y1Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Y1Validator(_bv.AnyValidator): + def __init__(self, plotly_name='y1', + parent_name='layout.shape', + **kwargs): + super(Y1Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_y1shift.py b/packages/python/plotly/plotly/validators/layout/shape/_y1shift.py index 47c142afd16..a1565a70632 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_y1shift.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_y1shift.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class Y1ShiftValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y1shift", parent_name="layout.shape", **kwargs): - super(Y1ShiftValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Y1ShiftValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y1shift', + parent_name='layout.shape', + **kwargs): + super(Y1ShiftValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_yanchor.py b/packages/python/plotly/plotly/validators/layout/shape/_yanchor.py index 3cad26d1028..deec3f6756f 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_yanchor.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_yanchor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YanchorValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="yanchor", parent_name="layout.shape", **kwargs): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.AnyValidator): + def __init__(self, plotly_name='yanchor', + parent_name='layout.shape', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_yref.py b/packages/python/plotly/plotly/validators/layout/shape/_yref.py index d362c4151c2..318a5fad72c 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_yref.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yref", parent_name="layout.shape", **kwargs): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", ["paper", "/^y([2-9]|[1-9][0-9]+)?( domain)?$/"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='layout.shape', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['paper', '/^y([2-9]|[1-9][0-9]+)?( domain)?$/']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/_ysizemode.py b/packages/python/plotly/plotly/validators/layout/shape/_ysizemode.py index 8659ab0e61d..b070e65503d 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/_ysizemode.py +++ b/packages/python/plotly/plotly/validators/layout/shape/_ysizemode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YsizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="ysizemode", parent_name="layout.shape", **kwargs): - super(YsizemodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - values=kwargs.pop("values", ["scaled", "pixel"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YsizemodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ysizemode', + parent_name='layout.shape', + **kwargs): + super(YsizemodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + values=kwargs.pop('values', ['scaled', 'pixel']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/label/__init__.py b/packages/python/plotly/plotly/validators/layout/shape/label/__init__.py index c6a5f99963d..0678a633ff6 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/label/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/shape/label/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yanchor import YanchorValidator from ._xanchor import XanchorValidator @@ -12,18 +11,10 @@ from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yanchor.YanchorValidator", - "._xanchor.XanchorValidator", - "._texttemplate.TexttemplateValidator", - "._textposition.TextpositionValidator", - "._textangle.TextangleValidator", - "._text.TextValidator", - "._padding.PaddingValidator", - "._font.FontValidator", - ], + ['._yanchor.YanchorValidator', '._xanchor.XanchorValidator', '._texttemplate.TexttemplateValidator', '._textposition.TextpositionValidator', '._textangle.TextangleValidator', '._text.TextValidator', '._padding.PaddingValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/shape/label/_font.py b/packages/python/plotly/plotly/validators/layout/shape/label/_font.py index a6868456d44..6c5d9454a6f 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/label/_font.py +++ b/packages/python/plotly/plotly/validators/layout/shape/label/_font.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="layout.shape.label", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='layout.shape.label', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/label/_padding.py b/packages/python/plotly/plotly/validators/layout/shape/label/_padding.py index dadd7669ad6..0049179ccc5 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/label/_padding.py +++ b/packages/python/plotly/plotly/validators/layout/shape/label/_padding.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class PaddingValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="padding", parent_name="layout.shape.label", **kwargs - ): - super(PaddingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class PaddingValidator(_bv.NumberValidator): + def __init__(self, plotly_name='padding', + parent_name='layout.shape.label', + **kwargs): + super(PaddingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/label/_text.py b/packages/python/plotly/plotly/validators/layout/shape/label/_text.py index 59b00bfe988..f80148d6389 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/label/_text.py +++ b/packages/python/plotly/plotly/validators/layout/shape/label/_text.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="layout.shape.label", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='layout.shape.label', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/label/_textangle.py b/packages/python/plotly/plotly/validators/layout/shape/label/_textangle.py index 6934194a779..b5ef604f75c 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/label/_textangle.py +++ b/packages/python/plotly/plotly/validators/layout/shape/label/_textangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="textangle", parent_name="layout.shape.label", **kwargs - ): - super(TextangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='textangle', + parent_name='layout.shape.label', + **kwargs): + super(TextangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/label/_textposition.py b/packages/python/plotly/plotly/validators/layout/shape/label/_textposition.py index 4201b92d679..a93cf27c6ee 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/label/_textposition.py +++ b/packages/python/plotly/plotly/validators/layout/shape/label/_textposition.py @@ -1,30 +1,14 @@ -import _plotly_utils.basevalidators -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textposition", parent_name="layout.shape.label", **kwargs - ): - super(TextpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop( - "values", - [ - "top left", - "top center", - "top right", - "middle left", - "middle center", - "middle right", - "bottom left", - "bottom center", - "bottom right", - "start", - "middle", - "end", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textposition', + parent_name='layout.shape.label', + **kwargs): + super(TextpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['top left', 'top center', 'top right', 'middle left', 'middle center', 'middle right', 'bottom left', 'bottom center', 'bottom right', 'start', 'middle', 'end']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/label/_texttemplate.py b/packages/python/plotly/plotly/validators/layout/shape/label/_texttemplate.py index 76a0eb74394..30b49a6dd1e 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/label/_texttemplate.py +++ b/packages/python/plotly/plotly/validators/layout/shape/label/_texttemplate.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="texttemplate", parent_name="layout.shape.label", **kwargs - ): - super(TexttemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='texttemplate', + parent_name='layout.shape.label', + **kwargs): + super(TexttemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/label/_xanchor.py b/packages/python/plotly/plotly/validators/layout/shape/label/_xanchor.py index 2ce86e0fff9..06907249696 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/label/_xanchor.py +++ b/packages/python/plotly/plotly/validators/layout/shape/label/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="layout.shape.label", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - values=kwargs.pop("values", ["auto", "left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='layout.shape.label', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + values=kwargs.pop('values', ['auto', 'left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/label/_yanchor.py b/packages/python/plotly/plotly/validators/layout/shape/label/_yanchor.py index d5da6312aa0..f981c33ea15 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/label/_yanchor.py +++ b/packages/python/plotly/plotly/validators/layout/shape/label/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="layout.shape.label", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='layout.shape.label', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/label/font/__init__.py b/packages/python/plotly/plotly/validators/layout/shape/label/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/label/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/shape/label/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/shape/label/font/_color.py b/packages/python/plotly/plotly/validators/layout/shape/label/font/_color.py index aad3e1590cb..1a451099ddb 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/label/font/_color.py +++ b/packages/python/plotly/plotly/validators/layout/shape/label/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.shape.label.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.shape.label.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/label/font/_family.py b/packages/python/plotly/plotly/validators/layout/shape/label/font/_family.py index 63cb58e9fe2..d97048dc4ae 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/label/font/_family.py +++ b/packages/python/plotly/plotly/validators/layout/shape/label/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="layout.shape.label.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.shape.label.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/label/font/_lineposition.py b/packages/python/plotly/plotly/validators/layout/shape/label/font/_lineposition.py index cd5e2f84305..17dbc8aa571 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/label/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/shape/label/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.shape.label.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.shape.label.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/label/font/_shadow.py b/packages/python/plotly/plotly/validators/layout/shape/label/font/_shadow.py index bf1c8415b0d..1a90d8ddcdc 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/label/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/shape/label/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="layout.shape.label.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.shape.label.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/label/font/_size.py b/packages/python/plotly/plotly/validators/layout/shape/label/font/_size.py index 4635de948ef..47a0ddacf44 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/label/font/_size.py +++ b/packages/python/plotly/plotly/validators/layout/shape/label/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="layout.shape.label.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.shape.label.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/label/font/_style.py b/packages/python/plotly/plotly/validators/layout/shape/label/font/_style.py index a65bd892bdf..da01625033e 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/label/font/_style.py +++ b/packages/python/plotly/plotly/validators/layout/shape/label/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="layout.shape.label.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.shape.label.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/label/font/_textcase.py b/packages/python/plotly/plotly/validators/layout/shape/label/font/_textcase.py index d4cb7f787dc..5f71fb3d599 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/label/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/shape/label/font/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="layout.shape.label.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.shape.label.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/label/font/_variant.py b/packages/python/plotly/plotly/validators/layout/shape/label/font/_variant.py index 9234bfbb1d3..656175d9fc2 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/label/font/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/shape/label/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="layout.shape.label.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.shape.label.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/label/font/_weight.py b/packages/python/plotly/plotly/validators/layout/shape/label/font/_weight.py index ec82a919e0f..c8bb59ada0b 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/label/font/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/shape/label/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="layout.shape.label.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.shape.label.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/_font.py index b3b2e55070c..8123e26a7b2 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="layout.shape.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='layout.shape.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/_text.py index 8161016e954..9000c795a09 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="layout.shape.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='layout.shape.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_color.py index bb0fc5affa7..357309e8b57 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="layout.shape.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.shape.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_family.py index 3aa7ed94f8b..011fca7111c 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="layout.shape.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.shape.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_lineposition.py index 5e784eb6efe..7d4face047b 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.shape.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.shape.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_shadow.py index 61ed7e48d6d..40453a2a91a 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="layout.shape.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.shape.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_size.py index c0e5adc6ec0..4bb9bf88f72 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="layout.shape.legendgrouptitle.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.shape.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_style.py index ce6d3daacbb..c36464d99d1 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="layout.shape.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.shape.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_textcase.py index 3a57aa9de3d..d76a9598598 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="layout.shape.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.shape.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_variant.py index 40f9c358113..9ec6268f7bc 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="layout.shape.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.shape.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_weight.py index f55a2e319be..ee8d3e10494 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/shape/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="layout.shape.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.shape.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/line/__init__.py b/packages/python/plotly/plotly/validators/layout/shape/line/__init__.py index cff41466517..e42e2f2974d 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/line/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/shape/line/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._dash import DashValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._width.WidthValidator", "._dash.DashValidator", "._color.ColorValidator"], + ['._width.WidthValidator', '._dash.DashValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/shape/line/_color.py b/packages/python/plotly/plotly/validators/layout/shape/line/_color.py index c1075a2715c..bc3f95fd598 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/line/_color.py +++ b/packages/python/plotly/plotly/validators/layout/shape/line/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="layout.shape.line", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.shape.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/line/_dash.py b/packages/python/plotly/plotly/validators/layout/shape/line/_dash.py index 86b5e089a8d..28933cede12 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/line/_dash.py +++ b/packages/python/plotly/plotly/validators/layout/shape/line/_dash.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__(self, plotly_name="dash", parent_name="layout.shape.line", **kwargs): - super(DashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop( - "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DashValidator(_bv.DashValidator): + def __init__(self, plotly_name='dash', + parent_name='layout.shape.line', + **kwargs): + super(DashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/shape/line/_width.py b/packages/python/plotly/plotly/validators/layout/shape/line/_width.py index 98613739275..9f9413b2c60 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/line/_width.py +++ b/packages/python/plotly/plotly/validators/layout/shape/line/_width.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="layout.shape.line", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "calc+arraydraw"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='layout.shape.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/__init__.py b/packages/python/plotly/plotly/validators/layout/slider/__init__.py index 54bb79b340a..1248db3c03b 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/slider/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yanchor import YanchorValidator from ._y import YValidator @@ -28,34 +27,10 @@ from ._active import ActiveValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._visible.VisibleValidator", - "._transition.TransitionValidator", - "._tickwidth.TickwidthValidator", - "._ticklen.TicklenValidator", - "._tickcolor.TickcolorValidator", - "._templateitemname.TemplateitemnameValidator", - "._stepdefaults.StepdefaultsValidator", - "._steps.StepsValidator", - "._pad.PadValidator", - "._name.NameValidator", - "._minorticklen.MinorticklenValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._font.FontValidator", - "._currentvalue.CurrentvalueValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - "._activebgcolor.ActivebgcolorValidator", - "._active.ActiveValidator", - ], + ['._yanchor.YanchorValidator', '._y.YValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._visible.VisibleValidator', '._transition.TransitionValidator', '._tickwidth.TickwidthValidator', '._ticklen.TicklenValidator', '._tickcolor.TickcolorValidator', '._templateitemname.TemplateitemnameValidator', '._stepdefaults.StepdefaultsValidator', '._steps.StepsValidator', '._pad.PadValidator', '._name.NameValidator', '._minorticklen.MinorticklenValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._font.FontValidator', '._currentvalue.CurrentvalueValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator', '._activebgcolor.ActivebgcolorValidator', '._active.ActiveValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/slider/_active.py b/packages/python/plotly/plotly/validators/layout/slider/_active.py index ee6b622d715..948d3ae1179 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/_active.py +++ b/packages/python/plotly/plotly/validators/layout/slider/_active.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ActiveValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="active", parent_name="layout.slider", **kwargs): - super(ActiveValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ActiveValidator(_bv.NumberValidator): + def __init__(self, plotly_name='active', + parent_name='layout.slider', + **kwargs): + super(ActiveValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/_activebgcolor.py b/packages/python/plotly/plotly/validators/layout/slider/_activebgcolor.py index f7f3a57a3ae..335cc2a645e 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/_activebgcolor.py +++ b/packages/python/plotly/plotly/validators/layout/slider/_activebgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ActivebgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="activebgcolor", parent_name="layout.slider", **kwargs - ): - super(ActivebgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ActivebgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='activebgcolor', + parent_name='layout.slider', + **kwargs): + super(ActivebgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/_bgcolor.py b/packages/python/plotly/plotly/validators/layout/slider/_bgcolor.py index dc714273417..bb27ade79b6 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/layout/slider/_bgcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="bgcolor", parent_name="layout.slider", **kwargs): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='layout.slider', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/_bordercolor.py b/packages/python/plotly/plotly/validators/layout/slider/_bordercolor.py index 7df82b57a0d..55976963d22 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/layout/slider/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="layout.slider", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='layout.slider', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/_borderwidth.py b/packages/python/plotly/plotly/validators/layout/slider/_borderwidth.py index af1c7e54b36..ab0b9598557 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/layout/slider/_borderwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderwidth", parent_name="layout.slider", **kwargs - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='layout.slider', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/_currentvalue.py b/packages/python/plotly/plotly/validators/layout/slider/_currentvalue.py index 2dccc62d5fc..505fd2f73b4 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/_currentvalue.py +++ b/packages/python/plotly/plotly/validators/layout/slider/_currentvalue.py @@ -1,35 +1,15 @@ -import _plotly_utils.basevalidators -class CurrentvalueValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="currentvalue", parent_name="layout.slider", **kwargs - ): - super(CurrentvalueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Currentvalue"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets the font of the current value label text. - offset - The amount of space, in pixels, between the - current value label and the slider. - prefix - When currentvalue.visible is true, this sets - the prefix of the label. - suffix - When currentvalue.visible is true, this sets - the suffix of the label. - visible - Shows the currently-selected value above the - slider. - xanchor - The alignment of the value readout relative to - the length of the slider. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CurrentvalueValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='currentvalue', + parent_name='layout.slider', + **kwargs): + super(CurrentvalueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Currentvalue'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/_font.py b/packages/python/plotly/plotly/validators/layout/slider/_font.py index 25c97ddaf86..3bb15cb6048 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/_font.py +++ b/packages/python/plotly/plotly/validators/layout/slider/_font.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="layout.slider", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='layout.slider', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/_len.py b/packages/python/plotly/plotly/validators/layout/slider/_len.py index 4c32d579e05..0685799c75c 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/_len.py +++ b/packages/python/plotly/plotly/validators/layout/slider/_len.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="len", parent_name="layout.slider", **kwargs): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='layout.slider', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/_lenmode.py b/packages/python/plotly/plotly/validators/layout/slider/_lenmode.py index 66c638d1286..7cdfaa84329 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/_lenmode.py +++ b/packages/python/plotly/plotly/validators/layout/slider/_lenmode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="lenmode", parent_name="layout.slider", **kwargs): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='layout.slider', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/_minorticklen.py b/packages/python/plotly/plotly/validators/layout/slider/_minorticklen.py index adba18a6a03..81e9472bac5 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/_minorticklen.py +++ b/packages/python/plotly/plotly/validators/layout/slider/_minorticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinorticklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minorticklen", parent_name="layout.slider", **kwargs - ): - super(MinorticklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinorticklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minorticklen', + parent_name='layout.slider', + **kwargs): + super(MinorticklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/_name.py b/packages/python/plotly/plotly/validators/layout/slider/_name.py index 3989f9f3509..f64142ff074 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/_name.py +++ b/packages/python/plotly/plotly/validators/layout/slider/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="layout.slider", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='layout.slider', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/_pad.py b/packages/python/plotly/plotly/validators/layout/slider/_pad.py index d80669a0170..d3522b1b38c 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/_pad.py +++ b/packages/python/plotly/plotly/validators/layout/slider/_pad.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class PadValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="pad", parent_name="layout.slider", **kwargs): - super(PadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Pad"), - data_docs=kwargs.pop( - "data_docs", - """ - b - The amount of padding (in px) along the bottom - of the component. - l - The amount of padding (in px) on the left side - of the component. - r - The amount of padding (in px) on the right side - of the component. - t - The amount of padding (in px) along the top of - the component. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class PadValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='pad', + parent_name='layout.slider', + **kwargs): + super(PadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Pad'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/_stepdefaults.py b/packages/python/plotly/plotly/validators/layout/slider/_stepdefaults.py index 9eff359b833..8505f9a8a34 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/_stepdefaults.py +++ b/packages/python/plotly/plotly/validators/layout/slider/_stepdefaults.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class StepdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="stepdefaults", parent_name="layout.slider", **kwargs - ): - super(StepdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Step"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StepdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stepdefaults', + parent_name='layout.slider', + **kwargs): + super(StepdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Step'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/_steps.py b/packages/python/plotly/plotly/validators/layout/slider/_steps.py index c2f6b1f0c7d..0bb9440c223 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/_steps.py +++ b/packages/python/plotly/plotly/validators/layout/slider/_steps.py @@ -1,67 +1,15 @@ -import _plotly_utils.basevalidators -class StepsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__(self, plotly_name="steps", parent_name="layout.slider", **kwargs): - super(StepsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Step"), - data_docs=kwargs.pop( - "data_docs", - """ - args - Sets the arguments values to be passed to the - Plotly method set in `method` on slide. - execute - When true, the API method is executed. When - false, all other behaviors are the same and - command execution is skipped. This may be - useful when hooking into, for example, the - `plotly_sliderchange` method and executing the - API command manually without losing the benefit - of the slider automatically binding to the - state of the plot through the specification of - `method` and `args`. - label - Sets the text label to appear on the slider - method - Sets the Plotly method to be called when the - slider value is changed. If the `skip` method - is used, the API slider will function as normal - but will perform no API calls and will not bind - automatically to state updates. This may be - used to create a component interface and attach - to slider events manually via JavaScript. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - Sets the value of the slider step, used to - refer to the step programatically. Defaults to - the slider label if not provided. - visible - Determines whether or not this step is included - in the slider. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StepsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='steps', + parent_name='layout.slider', + **kwargs): + super(StepsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Step'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/_templateitemname.py b/packages/python/plotly/plotly/validators/layout/slider/_templateitemname.py index 7db9a9067d0..7bf12351d5e 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/layout/slider/_templateitemname.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="templateitemname", parent_name="layout.slider", **kwargs - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='layout.slider', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/_tickcolor.py b/packages/python/plotly/plotly/validators/layout/slider/_tickcolor.py index 3581c3028cf..027060ea239 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/layout/slider/_tickcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="tickcolor", parent_name="layout.slider", **kwargs): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='layout.slider', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/_ticklen.py b/packages/python/plotly/plotly/validators/layout/slider/_ticklen.py index de63d0a57cd..2793acbda11 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/_ticklen.py +++ b/packages/python/plotly/plotly/validators/layout/slider/_ticklen.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="ticklen", parent_name="layout.slider", **kwargs): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='layout.slider', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/_tickwidth.py b/packages/python/plotly/plotly/validators/layout/slider/_tickwidth.py index f23e5c15e3e..a8f836d98c6 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/layout/slider/_tickwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="tickwidth", parent_name="layout.slider", **kwargs): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='layout.slider', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/_transition.py b/packages/python/plotly/plotly/validators/layout/slider/_transition.py index dd5261b97ba..5b9c2c4c744 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/_transition.py +++ b/packages/python/plotly/plotly/validators/layout/slider/_transition.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TransitionValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="transition", parent_name="layout.slider", **kwargs): - super(TransitionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Transition"), - data_docs=kwargs.pop( - "data_docs", - """ - duration - Sets the duration of the slider transition - easing - Sets the easing function of the slider - transition -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TransitionValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='transition', + parent_name='layout.slider', + **kwargs): + super(TransitionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Transition'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/_visible.py b/packages/python/plotly/plotly/validators/layout/slider/_visible.py index b91186fad37..e29a9908e0e 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/_visible.py +++ b/packages/python/plotly/plotly/validators/layout/slider/_visible.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="visible", parent_name="layout.slider", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='layout.slider', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/_x.py b/packages/python/plotly/plotly/validators/layout/slider/_x.py index c65f3a28f5f..20128d46529 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/_x.py +++ b/packages/python/plotly/plotly/validators/layout/slider/_x.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x", parent_name="layout.slider", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - max=kwargs.pop("max", 3), - min=kwargs.pop("min", -2), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='layout.slider', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + max=kwargs.pop('max', 3), + min=kwargs.pop('min', -2), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/_xanchor.py b/packages/python/plotly/plotly/validators/layout/slider/_xanchor.py index 878baf15eec..27f10d0bed3 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/_xanchor.py +++ b/packages/python/plotly/plotly/validators/layout/slider/_xanchor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xanchor", parent_name="layout.slider", **kwargs): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop("values", ["auto", "left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='layout.slider', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['auto', 'left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/_y.py b/packages/python/plotly/plotly/validators/layout/slider/_y.py index 95248eb93c6..2a366cd02a1 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/_y.py +++ b/packages/python/plotly/plotly/validators/layout/slider/_y.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y", parent_name="layout.slider", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - max=kwargs.pop("max", 3), - min=kwargs.pop("min", -2), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='layout.slider', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + max=kwargs.pop('max', 3), + min=kwargs.pop('min', -2), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/_yanchor.py b/packages/python/plotly/plotly/validators/layout/slider/_yanchor.py index 59e60fb6eab..2bce821147c 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/_yanchor.py +++ b/packages/python/plotly/plotly/validators/layout/slider/_yanchor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yanchor", parent_name="layout.slider", **kwargs): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop("values", ["auto", "top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='layout.slider', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['auto', 'top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/__init__.py b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/__init__.py index 7d45ab0ca0f..2dbfa230239 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._xanchor import XanchorValidator from ._visible import VisibleValidator @@ -10,16 +9,10 @@ from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._xanchor.XanchorValidator", - "._visible.VisibleValidator", - "._suffix.SuffixValidator", - "._prefix.PrefixValidator", - "._offset.OffsetValidator", - "._font.FontValidator", - ], + ['._xanchor.XanchorValidator', '._visible.VisibleValidator', '._suffix.SuffixValidator', '._prefix.PrefixValidator', '._offset.OffsetValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/_font.py b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/_font.py index 386030113e5..83eba49440e 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/_font.py +++ b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="layout.slider.currentvalue", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='layout.slider.currentvalue', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/_offset.py b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/_offset.py index 244808499b1..c52f4d8442c 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/_offset.py +++ b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/_offset.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OffsetValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="offset", parent_name="layout.slider.currentvalue", **kwargs - ): - super(OffsetValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OffsetValidator(_bv.NumberValidator): + def __init__(self, plotly_name='offset', + parent_name='layout.slider.currentvalue', + **kwargs): + super(OffsetValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/_prefix.py b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/_prefix.py index 14734e394d5..d20f18cf86a 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/_prefix.py +++ b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/_prefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class PrefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="prefix", parent_name="layout.slider.currentvalue", **kwargs - ): - super(PrefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class PrefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='prefix', + parent_name='layout.slider.currentvalue', + **kwargs): + super(PrefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/_suffix.py b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/_suffix.py index 1999b6fad5f..2cd5d5ad0a7 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/_suffix.py +++ b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/_suffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="suffix", parent_name="layout.slider.currentvalue", **kwargs - ): - super(SuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='suffix', + parent_name='layout.slider.currentvalue', + **kwargs): + super(SuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/_visible.py b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/_visible.py index 43cde0777bf..24df45eea4d 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/_visible.py +++ b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/_visible.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="visible", parent_name="layout.slider.currentvalue", **kwargs - ): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='layout.slider.currentvalue', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/_xanchor.py b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/_xanchor.py index e1e9ef0aaa9..e8be418eb84 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/_xanchor.py +++ b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="layout.slider.currentvalue", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='layout.slider.currentvalue', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/__init__.py b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_color.py b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_color.py index d4f39799a74..3b4a2a7f0a1 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_color.py +++ b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="layout.slider.currentvalue.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.slider.currentvalue.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_family.py b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_family.py index 6d3d9b14bdd..066378e553e 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_family.py +++ b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="layout.slider.currentvalue.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.slider.currentvalue.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_lineposition.py b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_lineposition.py index 659c9723dc4..0524253e373 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.slider.currentvalue.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.slider.currentvalue.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_shadow.py b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_shadow.py index d6d1431e84e..488465db7b0 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="layout.slider.currentvalue.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.slider.currentvalue.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_size.py b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_size.py index bd4d814ca22..d850c3d0acd 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_size.py +++ b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="layout.slider.currentvalue.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.slider.currentvalue.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_style.py b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_style.py index caf3ed8a5c0..489f8b09e18 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_style.py +++ b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="layout.slider.currentvalue.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.slider.currentvalue.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_textcase.py b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_textcase.py index 9c47d0720fb..e6026f3580c 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="layout.slider.currentvalue.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.slider.currentvalue.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_variant.py b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_variant.py index d8c6e8896cd..9f1ea35ec73 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="layout.slider.currentvalue.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.slider.currentvalue.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_weight.py b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_weight.py index 01192ea148b..7752f97aa08 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="layout.slider.currentvalue.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.slider.currentvalue.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/font/__init__.py b/packages/python/plotly/plotly/validators/layout/slider/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/slider/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/slider/font/_color.py b/packages/python/plotly/plotly/validators/layout/slider/font/_color.py index a06e2039c1a..8e9481608ef 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/font/_color.py +++ b/packages/python/plotly/plotly/validators/layout/slider/font/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="layout.slider.font", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.slider.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/font/_family.py b/packages/python/plotly/plotly/validators/layout/slider/font/_family.py index f787aff2195..24452336472 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/font/_family.py +++ b/packages/python/plotly/plotly/validators/layout/slider/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="layout.slider.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.slider.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/font/_lineposition.py b/packages/python/plotly/plotly/validators/layout/slider/font/_lineposition.py index b74ca1010cc..1f91eb57b4b 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/slider/font/_lineposition.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="layout.slider.font", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.slider.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/font/_shadow.py b/packages/python/plotly/plotly/validators/layout/slider/font/_shadow.py index f9f8047333a..8eb0cdad4c5 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/slider/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="layout.slider.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.slider.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/font/_size.py b/packages/python/plotly/plotly/validators/layout/slider/font/_size.py index f47cb9f63b1..e9ab189ed69 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/font/_size.py +++ b/packages/python/plotly/plotly/validators/layout/slider/font/_size.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="layout.slider.font", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.slider.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/font/_style.py b/packages/python/plotly/plotly/validators/layout/slider/font/_style.py index 2bef10c36bf..5b42513557f 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/font/_style.py +++ b/packages/python/plotly/plotly/validators/layout/slider/font/_style.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="style", parent_name="layout.slider.font", **kwargs): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.slider.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/font/_textcase.py b/packages/python/plotly/plotly/validators/layout/slider/font/_textcase.py index f3c9a13b3a5..5c75bfc0364 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/slider/font/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="layout.slider.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.slider.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/font/_variant.py b/packages/python/plotly/plotly/validators/layout/slider/font/_variant.py index 958738d6d7e..992de6758b6 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/font/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/slider/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="layout.slider.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.slider.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/font/_weight.py b/packages/python/plotly/plotly/validators/layout/slider/font/_weight.py index 89787f49472..facf0075b1a 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/font/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/slider/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="layout.slider.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.slider.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/pad/__init__.py b/packages/python/plotly/plotly/validators/layout/slider/pad/__init__.py index 04e64dbc5ee..3fc9abf4579 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/pad/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/slider/pad/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._t import TValidator from ._r import RValidator @@ -8,9 +7,10 @@ from ._b import BValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._t.TValidator", "._r.RValidator", "._l.LValidator", "._b.BValidator"], + ['._t.TValidator', '._r.RValidator', '._l.LValidator', '._b.BValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/slider/pad/_b.py b/packages/python/plotly/plotly/validators/layout/slider/pad/_b.py index db7707de5d4..1e84a2259ee 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/pad/_b.py +++ b/packages/python/plotly/plotly/validators/layout/slider/pad/_b.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="b", parent_name="layout.slider.pad", **kwargs): - super(BValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BValidator(_bv.NumberValidator): + def __init__(self, plotly_name='b', + parent_name='layout.slider.pad', + **kwargs): + super(BValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/pad/_l.py b/packages/python/plotly/plotly/validators/layout/slider/pad/_l.py index a22bd4e56ca..5c04d9d6757 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/pad/_l.py +++ b/packages/python/plotly/plotly/validators/layout/slider/pad/_l.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="l", parent_name="layout.slider.pad", **kwargs): - super(LValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LValidator(_bv.NumberValidator): + def __init__(self, plotly_name='l', + parent_name='layout.slider.pad', + **kwargs): + super(LValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/pad/_r.py b/packages/python/plotly/plotly/validators/layout/slider/pad/_r.py index 93b43971023..7dda85e18b5 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/pad/_r.py +++ b/packages/python/plotly/plotly/validators/layout/slider/pad/_r.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class RValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="r", parent_name="layout.slider.pad", **kwargs): - super(RValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RValidator(_bv.NumberValidator): + def __init__(self, plotly_name='r', + parent_name='layout.slider.pad', + **kwargs): + super(RValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/pad/_t.py b/packages/python/plotly/plotly/validators/layout/slider/pad/_t.py index 1da3e539cce..df84a2f1681 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/pad/_t.py +++ b/packages/python/plotly/plotly/validators/layout/slider/pad/_t.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="t", parent_name="layout.slider.pad", **kwargs): - super(TValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TValidator(_bv.NumberValidator): + def __init__(self, plotly_name='t', + parent_name='layout.slider.pad', + **kwargs): + super(TValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/step/__init__.py b/packages/python/plotly/plotly/validators/layout/slider/step/__init__.py index 8abecadfbd8..8f10230dc3f 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/step/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/slider/step/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._value import ValueValidator @@ -12,18 +11,10 @@ from ._args import ArgsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._method.MethodValidator", - "._label.LabelValidator", - "._execute.ExecuteValidator", - "._args.ArgsValidator", - ], + ['._visible.VisibleValidator', '._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._method.MethodValidator', '._label.LabelValidator', '._execute.ExecuteValidator', '._args.ArgsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/slider/step/_args.py b/packages/python/plotly/plotly/validators/layout/slider/step/_args.py index 8a4af5719f5..087f9843e1e 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/step/_args.py +++ b/packages/python/plotly/plotly/validators/layout/slider/step/_args.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class ArgsValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="args", parent_name="layout.slider.step", **kwargs): - super(ArgsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - free_length=kwargs.pop("free_length", True), - items=kwargs.pop( - "items", - [ - {"editType": "arraydraw", "valType": "any"}, - {"editType": "arraydraw", "valType": "any"}, - {"editType": "arraydraw", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ArgsValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='args', + parent_name='layout.slider.step', + **kwargs): + super(ArgsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + free_length=kwargs.pop('free_length', True), + items=kwargs.pop('items', [{'editType': 'arraydraw', 'valType': 'any'}, {'editType': 'arraydraw', 'valType': 'any'}, {'editType': 'arraydraw', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/step/_execute.py b/packages/python/plotly/plotly/validators/layout/slider/step/_execute.py index 9253f7afe19..badb12fa174 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/step/_execute.py +++ b/packages/python/plotly/plotly/validators/layout/slider/step/_execute.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ExecuteValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="execute", parent_name="layout.slider.step", **kwargs - ): - super(ExecuteValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ExecuteValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='execute', + parent_name='layout.slider.step', + **kwargs): + super(ExecuteValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/step/_label.py b/packages/python/plotly/plotly/validators/layout/slider/step/_label.py index fc68a652505..873e00161ea 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/step/_label.py +++ b/packages/python/plotly/plotly/validators/layout/slider/step/_label.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LabelValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="label", parent_name="layout.slider.step", **kwargs): - super(LabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelValidator(_bv.StringValidator): + def __init__(self, plotly_name='label', + parent_name='layout.slider.step', + **kwargs): + super(LabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/step/_method.py b/packages/python/plotly/plotly/validators/layout/slider/step/_method.py index e15d2131917..c53bbc69c4a 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/step/_method.py +++ b/packages/python/plotly/plotly/validators/layout/slider/step/_method.py @@ -1,16 +1,14 @@ -import _plotly_utils.basevalidators -class MethodValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="method", parent_name="layout.slider.step", **kwargs - ): - super(MethodValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop( - "values", ["restyle", "relayout", "animate", "update", "skip"] - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MethodValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='method', + parent_name='layout.slider.step', + **kwargs): + super(MethodValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['restyle', 'relayout', 'animate', 'update', 'skip']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/step/_name.py b/packages/python/plotly/plotly/validators/layout/slider/step/_name.py index 4ca1bf01554..847dcb97f89 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/step/_name.py +++ b/packages/python/plotly/plotly/validators/layout/slider/step/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="layout.slider.step", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='layout.slider.step', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/step/_templateitemname.py b/packages/python/plotly/plotly/validators/layout/slider/step/_templateitemname.py index 9faef2901e4..1ce33c315c1 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/step/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/layout/slider/step/_templateitemname.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="templateitemname", parent_name="layout.slider.step", **kwargs - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='layout.slider.step', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/step/_value.py b/packages/python/plotly/plotly/validators/layout/slider/step/_value.py index fa77517e27a..eb128c97156 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/step/_value.py +++ b/packages/python/plotly/plotly/validators/layout/slider/step/_value.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="value", parent_name="layout.slider.step", **kwargs): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='layout.slider.step', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/step/_visible.py b/packages/python/plotly/plotly/validators/layout/slider/step/_visible.py index 447d96fbf8d..97ded0514bb 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/step/_visible.py +++ b/packages/python/plotly/plotly/validators/layout/slider/step/_visible.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="visible", parent_name="layout.slider.step", **kwargs - ): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='layout.slider.step', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/transition/__init__.py b/packages/python/plotly/plotly/validators/layout/slider/transition/__init__.py index 7d9860a84d8..d3b3a5fbc0d 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/transition/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/slider/transition/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._easing import EasingValidator from ._duration import DurationValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._easing.EasingValidator", "._duration.DurationValidator"] + __name__, + [], + ['._easing.EasingValidator', '._duration.DurationValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/slider/transition/_duration.py b/packages/python/plotly/plotly/validators/layout/slider/transition/_duration.py index 9dbb57cb487..bd51586db19 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/transition/_duration.py +++ b/packages/python/plotly/plotly/validators/layout/slider/transition/_duration.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DurationValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="duration", parent_name="layout.slider.transition", **kwargs - ): - super(DurationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DurationValidator(_bv.NumberValidator): + def __init__(self, plotly_name='duration', + parent_name='layout.slider.transition', + **kwargs): + super(DurationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/slider/transition/_easing.py b/packages/python/plotly/plotly/validators/layout/slider/transition/_easing.py index 6a9adbdeed6..aaa786c454c 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/transition/_easing.py +++ b/packages/python/plotly/plotly/validators/layout/slider/transition/_easing.py @@ -1,54 +1,14 @@ -import _plotly_utils.basevalidators -class EasingValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="easing", parent_name="layout.slider.transition", **kwargs - ): - super(EasingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop( - "values", - [ - "linear", - "quad", - "cubic", - "sin", - "exp", - "circle", - "elastic", - "back", - "bounce", - "linear-in", - "quad-in", - "cubic-in", - "sin-in", - "exp-in", - "circle-in", - "elastic-in", - "back-in", - "bounce-in", - "linear-out", - "quad-out", - "cubic-out", - "sin-out", - "exp-out", - "circle-out", - "elastic-out", - "back-out", - "bounce-out", - "linear-in-out", - "quad-in-out", - "cubic-in-out", - "sin-in-out", - "exp-in-out", - "circle-in-out", - "elastic-in-out", - "back-in-out", - "bounce-in-out", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EasingValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='easing', + parent_name='layout.slider.transition', + **kwargs): + super(EasingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['linear', 'quad', 'cubic', 'sin', 'exp', 'circle', 'elastic', 'back', 'bounce', 'linear-in', 'quad-in', 'cubic-in', 'sin-in', 'exp-in', 'circle-in', 'elastic-in', 'back-in', 'bounce-in', 'linear-out', 'quad-out', 'cubic-out', 'sin-out', 'exp-out', 'circle-out', 'elastic-out', 'back-out', 'bounce-out', 'linear-in-out', 'quad-in-out', 'cubic-in-out', 'sin-in-out', 'exp-in-out', 'circle-in-out', 'elastic-in-out', 'back-in-out', 'bounce-in-out']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/__init__.py b/packages/python/plotly/plotly/validators/layout/smith/__init__.py index afc951432ff..7a1f135be44 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/smith/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._realaxis import RealaxisValidator from ._imaginaryaxis import ImaginaryaxisValidator @@ -8,14 +7,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._realaxis.RealaxisValidator", - "._imaginaryaxis.ImaginaryaxisValidator", - "._domain.DomainValidator", - "._bgcolor.BgcolorValidator", - ], + ['._realaxis.RealaxisValidator', '._imaginaryaxis.ImaginaryaxisValidator', '._domain.DomainValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/smith/_bgcolor.py b/packages/python/plotly/plotly/validators/layout/smith/_bgcolor.py index ddc3d8d1bfb..ef13e87a788 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/layout/smith/_bgcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="bgcolor", parent_name="layout.smith", **kwargs): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='layout.smith', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/_domain.py b/packages/python/plotly/plotly/validators/layout/smith/_domain.py index d2623eda7eb..db9cf43d7c8 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/_domain.py +++ b/packages/python/plotly/plotly/validators/layout/smith/_domain.py @@ -1,29 +1,15 @@ -import _plotly_utils.basevalidators -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="domain", parent_name="layout.smith", **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 smith subplot - . - row - If there is a layout grid, use the domain for - this row in the grid for this smith subplot . - x - Sets the horizontal domain of this smith - subplot (in plot fraction). - y - Sets the vertical domain of this smith subplot - (in plot fraction). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DomainValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='domain', + parent_name='layout.smith', + **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', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/_imaginaryaxis.py b/packages/python/plotly/plotly/validators/layout/smith/_imaginaryaxis.py index 64ea5f94072..c20c80220d1 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/_imaginaryaxis.py +++ b/packages/python/plotly/plotly/validators/layout/smith/_imaginaryaxis.py @@ -1,134 +1,15 @@ -import _plotly_utils.basevalidators -class ImaginaryaxisValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="imaginaryaxis", parent_name="layout.smith", **kwargs - ): - super(ImaginaryaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Imaginaryaxis"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets default for all colors associated with - this axis all at once: line, font, tick, and - grid colors. Grid color is lightened by - blending this with the plot background - Individual pieces can override this. - gridcolor - Sets the color of the grid lines. - 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 width (in px) of the grid lines. - hoverformat - Sets the hover text formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - layer - Sets the layer on which this axis is displayed. - If *above traces*, this axis is displayed above - all the subplot's traces If *below traces*, - this axis is displayed below all the subplot's - traces, but above the grid lines. Useful when - used together with scatter-like traces with - `cliponaxis` set to False to show markers - and/or text nodes above this axis. - linecolor - Sets the axis line color. - linewidth - Sets the width (in px) of the axis line. - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - showline - Determines whether or not a line bounding this - axis is drawn. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - tickcolor - Sets the tick color. - tickfont - Sets the tick font. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - ticklen - Sets the tick length (in px). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - tickvals - Sets the values at which ticks on this axis - appear. Defaults to `realaxis.tickvals` plus - the same as negatives and zero. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - visible - A single toggle to hide the axis while - preserving interaction like dragging. Default - is true when a cheater plot is present on the - axis, otherwise false -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ImaginaryaxisValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='imaginaryaxis', + parent_name='layout.smith', + **kwargs): + super(ImaginaryaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Imaginaryaxis'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/_realaxis.py b/packages/python/plotly/plotly/validators/layout/smith/_realaxis.py index 16367a1d47a..cab53712545 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/_realaxis.py +++ b/packages/python/plotly/plotly/validators/layout/smith/_realaxis.py @@ -1,138 +1,15 @@ -import _plotly_utils.basevalidators -class RealaxisValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="realaxis", parent_name="layout.smith", **kwargs): - super(RealaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Realaxis"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets default for all colors associated with - this axis all at once: line, font, tick, and - grid colors. Grid color is lightened by - blending this with the plot background - Individual pieces can override this. - gridcolor - Sets the color of the grid lines. - 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 width (in px) of the grid lines. - hoverformat - Sets the hover text formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - layer - Sets the layer on which this axis is displayed. - If *above traces*, this axis is displayed above - all the subplot's traces If *below traces*, - this axis is displayed below all the subplot's - traces, but above the grid lines. Useful when - used together with scatter-like traces with - `cliponaxis` set to False to show markers - and/or text nodes above this axis. - linecolor - Sets the axis line color. - linewidth - Sets the width (in px) of the axis line. - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - showline - Determines whether or not a line bounding this - axis is drawn. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - side - Determines on which side of real axis line the - tick and tick labels appear. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the tick font. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - ticklen - Sets the tick length (in px). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If "top" - ("bottom"), this axis' are drawn above (below) - the axis line. - ticksuffix - Sets a tick label suffix. - tickvals - Sets the values at which ticks on this axis - appear. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - visible - A single toggle to hide the axis while - preserving interaction like dragging. Default - is true when a cheater plot is present on the - axis, otherwise false -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RealaxisValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='realaxis', + parent_name='layout.smith', + **kwargs): + super(RealaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Realaxis'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/domain/__init__.py b/packages/python/plotly/plotly/validators/layout/smith/domain/__init__.py index 67de5030d0a..705a2194402 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/smith/domain/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._y import YValidator from ._x import XValidator @@ -8,14 +7,10 @@ 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", - ], + ['._y.YValidator', '._x.XValidator', '._row.RowValidator', '._column.ColumnValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/smith/domain/_column.py b/packages/python/plotly/plotly/validators/layout/smith/domain/_column.py index 2b7b61b1940..19060c953dd 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/domain/_column.py +++ b/packages/python/plotly/plotly/validators/layout/smith/domain/_column.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="column", parent_name="layout.smith.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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColumnValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='column', + parent_name='layout.smith.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/domain/_row.py b/packages/python/plotly/plotly/validators/layout/smith/domain/_row.py index 87674164ffe..b7729494737 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/domain/_row.py +++ b/packages/python/plotly/plotly/validators/layout/smith/domain/_row.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="row", parent_name="layout.smith.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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RowValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='row', + parent_name='layout.smith.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/domain/_x.py b/packages/python/plotly/plotly/validators/layout/smith/domain/_x.py index 7a7b727601d..8e1cf831e0a 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/domain/_x.py +++ b/packages/python/plotly/plotly/validators/layout/smith/domain/_x.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="x", parent_name="layout.smith.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, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='x', + parent_name='layout.smith.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/domain/_y.py b/packages/python/plotly/plotly/validators/layout/smith/domain/_y.py index 8b7fb032d78..9cbe68603e4 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/domain/_y.py +++ b/packages/python/plotly/plotly/validators/layout/smith/domain/_y.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="y", parent_name="layout.smith.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, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='y', + parent_name='layout.smith.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/__init__.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/__init__.py index 6cb6e2eb065..dfc0f184df9 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._tickwidth import TickwidthValidator @@ -29,35 +28,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._ticklen.TicklenValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showline.ShowlineValidator", - "._showgrid.ShowgridValidator", - "._linewidth.LinewidthValidator", - "._linecolor.LinecolorValidator", - "._layer.LayerValidator", - "._labelalias.LabelaliasValidator", - "._hoverformat.HoverformatValidator", - "._gridwidth.GridwidthValidator", - "._griddash.GriddashValidator", - "._gridcolor.GridcolorValidator", - "._color.ColorValidator", - ], + ['._visible.VisibleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._ticklen.TicklenValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showline.ShowlineValidator', '._showgrid.ShowgridValidator', '._linewidth.LinewidthValidator', '._linecolor.LinecolorValidator', '._layer.LayerValidator', '._labelalias.LabelaliasValidator', '._hoverformat.HoverformatValidator', '._gridwidth.GridwidthValidator', '._griddash.GriddashValidator', '._gridcolor.GridcolorValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_color.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_color.py index bebbef22096..78f1f82d22d 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_color.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.smith.imaginaryaxis", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.smith.imaginaryaxis', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_gridcolor.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_gridcolor.py index c4b00bb21e5..fb1995b41ad 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_gridcolor.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_gridcolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="gridcolor", - parent_name="layout.smith.imaginaryaxis", - **kwargs, - ): - super(GridcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class GridcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='gridcolor', + parent_name='layout.smith.imaginaryaxis', + **kwargs): + super(GridcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_griddash.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_griddash.py index 81af5c4040f..fc05a37e839 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_griddash.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_griddash.py @@ -1,16 +1,14 @@ -import _plotly_utils.basevalidators -class GriddashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__( - self, plotly_name="griddash", parent_name="layout.smith.imaginaryaxis", **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, - ) +import _plotly_utils.basevalidators as _bv + + +class GriddashValidator(_bv.DashValidator): + def __init__(self, plotly_name='griddash', + parent_name='layout.smith.imaginaryaxis', + **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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_gridwidth.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_gridwidth.py index add49d4eae3..7d5fe7cf6a0 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_gridwidth.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_gridwidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="gridwidth", - parent_name="layout.smith.imaginaryaxis", - **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, - ) +import _plotly_utils.basevalidators as _bv + + +class GridwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='gridwidth', + parent_name='layout.smith.imaginaryaxis', + **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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_hoverformat.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_hoverformat.py index 56971fa3a2b..c79181af6e1 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_hoverformat.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_hoverformat.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="hoverformat", - parent_name="layout.smith.imaginaryaxis", - **kwargs, - ): - super(HoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='hoverformat', + parent_name='layout.smith.imaginaryaxis', + **kwargs): + super(HoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_labelalias.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_labelalias.py index 4c03b1e0dd6..662a7d564df 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_labelalias.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_labelalias.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="labelalias", - parent_name="layout.smith.imaginaryaxis", - **kwargs, - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='layout.smith.imaginaryaxis', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_layer.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_layer.py index ba4a9623d9f..18f73c84fc0 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_layer.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_layer.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="layer", parent_name="layout.smith.imaginaryaxis", **kwargs - ): - super(LayerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["above traces", "below traces"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LayerValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='layer', + parent_name='layout.smith.imaginaryaxis', + **kwargs): + super(LayerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['above traces', 'below traces']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_linecolor.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_linecolor.py index 2f32347c898..bbe08b916e0 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_linecolor.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_linecolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="linecolor", - parent_name="layout.smith.imaginaryaxis", - **kwargs, - ): - super(LinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='linecolor', + parent_name='layout.smith.imaginaryaxis', + **kwargs): + super(LinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_linewidth.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_linewidth.py index 42c7a7fe350..86096ceddf4 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_linewidth.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_linewidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="linewidth", - parent_name="layout.smith.imaginaryaxis", - **kwargs, - ): - super(LinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='linewidth', + parent_name='layout.smith.imaginaryaxis', + **kwargs): + super(LinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_showgrid.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_showgrid.py index 5979082bc3d..928871e8bc5 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_showgrid.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_showgrid.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showgrid", parent_name="layout.smith.imaginaryaxis", **kwargs - ): - super(ShowgridValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowgridValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showgrid', + parent_name='layout.smith.imaginaryaxis', + **kwargs): + super(ShowgridValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_showline.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_showline.py index 89035731f39..16036d6936f 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_showline.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_showline.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showline", parent_name="layout.smith.imaginaryaxis", **kwargs - ): - super(ShowlineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowlineValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showline', + parent_name='layout.smith.imaginaryaxis', + **kwargs): + super(ShowlineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_showticklabels.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_showticklabels.py index cadd9f57939..3ea6984a850 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="layout.smith.imaginaryaxis", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='layout.smith.imaginaryaxis', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_showtickprefix.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_showtickprefix.py index 008a21981b1..cf1a7148adc 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="layout.smith.imaginaryaxis", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='layout.smith.imaginaryaxis', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_showticksuffix.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_showticksuffix.py index 499911991f2..653ca46fc54 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="layout.smith.imaginaryaxis", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='layout.smith.imaginaryaxis', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_tickcolor.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_tickcolor.py index 476444cce4f..d87953abf14 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_tickcolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="tickcolor", - parent_name="layout.smith.imaginaryaxis", - **kwargs, - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='layout.smith.imaginaryaxis', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_tickfont.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_tickfont.py index 0822a7e61a4..777e0dbd911 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_tickfont.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="layout.smith.imaginaryaxis", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='layout.smith.imaginaryaxis', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_tickformat.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_tickformat.py index 73fb995b82f..d04ad556afe 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_tickformat.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_tickformat.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickformat", - parent_name="layout.smith.imaginaryaxis", - **kwargs, - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='layout.smith.imaginaryaxis', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_ticklen.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_ticklen.py index 02e68c798d3..6366022a394 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_ticklen.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="layout.smith.imaginaryaxis", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='layout.smith.imaginaryaxis', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_tickprefix.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_tickprefix.py index ee51f0b3e2e..cf0cca8ad48 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_tickprefix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickprefix", - parent_name="layout.smith.imaginaryaxis", - **kwargs, - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='layout.smith.imaginaryaxis', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_ticks.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_ticks.py index 7dba258e370..a9b2c60824b 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_ticks.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="layout.smith.imaginaryaxis", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='layout.smith.imaginaryaxis', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_ticksuffix.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_ticksuffix.py index bdd207293a8..075a67111a7 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_ticksuffix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="ticksuffix", - parent_name="layout.smith.imaginaryaxis", - **kwargs, - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='layout.smith.imaginaryaxis', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_tickvals.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_tickvals.py index 0780e13a735..3c113b01c32 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_tickvals.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="layout.smith.imaginaryaxis", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='layout.smith.imaginaryaxis', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_tickvalssrc.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_tickvalssrc.py index 56b36ac9cd8..ca97612217c 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_tickvalssrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="tickvalssrc", - parent_name="layout.smith.imaginaryaxis", - **kwargs, - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='layout.smith.imaginaryaxis', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_tickwidth.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_tickwidth.py index 29f47d4fc5a..e8abfbcaaac 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_tickwidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="tickwidth", - parent_name="layout.smith.imaginaryaxis", - **kwargs, - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='layout.smith.imaginaryaxis', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_visible.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_visible.py index e4c74b3cd3c..4b02326da57 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_visible.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_visible.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="visible", parent_name="layout.smith.imaginaryaxis", **kwargs - ): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='layout.smith.imaginaryaxis', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/__init__.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_color.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_color.py index faa650ef730..67fef96ea85 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="layout.smith.imaginaryaxis.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.smith.imaginaryaxis.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_family.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_family.py index 44d5056bde9..648b211de5d 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="layout.smith.imaginaryaxis.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.smith.imaginaryaxis.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_lineposition.py index ca54eaa8837..e5b9d0e6cc2 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.smith.imaginaryaxis.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.smith.imaginaryaxis.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_shadow.py index 1b4ebb40f6f..fe92bbc6374 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="layout.smith.imaginaryaxis.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.smith.imaginaryaxis.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_size.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_size.py index 3c65941605d..fa4632a0d89 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="layout.smith.imaginaryaxis.tickfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.smith.imaginaryaxis.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_style.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_style.py index af8bc324dd8..40b0e659d2d 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="layout.smith.imaginaryaxis.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.smith.imaginaryaxis.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_textcase.py index 16312ea64e5..1d3521c988c 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="layout.smith.imaginaryaxis.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.smith.imaginaryaxis.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_variant.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_variant.py index 173511e7a29..b2cb624c58a 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="layout.smith.imaginaryaxis.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.smith.imaginaryaxis.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_weight.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_weight.py index d643e1d9afe..64bc56f3634 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="layout.smith.imaginaryaxis.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.smith.imaginaryaxis.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/__init__.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/__init__.py index d70a1c4234c..aad9ba9552b 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._tickwidth import TickwidthValidator @@ -31,37 +30,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._ticklen.TicklenValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._side.SideValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showline.ShowlineValidator", - "._showgrid.ShowgridValidator", - "._linewidth.LinewidthValidator", - "._linecolor.LinecolorValidator", - "._layer.LayerValidator", - "._labelalias.LabelaliasValidator", - "._hoverformat.HoverformatValidator", - "._gridwidth.GridwidthValidator", - "._griddash.GriddashValidator", - "._gridcolor.GridcolorValidator", - "._color.ColorValidator", - ], + ['._visible.VisibleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._ticklen.TicklenValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._side.SideValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showline.ShowlineValidator', '._showgrid.ShowgridValidator', '._linewidth.LinewidthValidator', '._linecolor.LinecolorValidator', '._layer.LayerValidator', '._labelalias.LabelaliasValidator', '._hoverformat.HoverformatValidator', '._gridwidth.GridwidthValidator', '._griddash.GriddashValidator', '._gridcolor.GridcolorValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_color.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_color.py index 462acdffd21..bbf2f6256d9 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_color.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.smith.realaxis", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.smith.realaxis', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_gridcolor.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_gridcolor.py index b1ad35ff0eb..c2b4c18443a 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_gridcolor.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_gridcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="gridcolor", parent_name="layout.smith.realaxis", **kwargs - ): - super(GridcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='gridcolor', + parent_name='layout.smith.realaxis', + **kwargs): + super(GridcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_griddash.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_griddash.py index a5a842d5a6e..33e479805eb 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_griddash.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_griddash.py @@ -1,16 +1,14 @@ -import _plotly_utils.basevalidators -class GriddashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__( - self, plotly_name="griddash", parent_name="layout.smith.realaxis", **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, - ) +import _plotly_utils.basevalidators as _bv + + +class GriddashValidator(_bv.DashValidator): + def __init__(self, plotly_name='griddash', + parent_name='layout.smith.realaxis', + **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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_gridwidth.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_gridwidth.py index ce891b907dd..0f7524ad770 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_gridwidth.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_gridwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="gridwidth", parent_name="layout.smith.realaxis", **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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='gridwidth', + parent_name='layout.smith.realaxis', + **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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_hoverformat.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_hoverformat.py index 4aba26587d5..45b8f80fbf5 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_hoverformat.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_hoverformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="hoverformat", parent_name="layout.smith.realaxis", **kwargs - ): - super(HoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='hoverformat', + parent_name='layout.smith.realaxis', + **kwargs): + super(HoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_labelalias.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_labelalias.py index 65d48cbc8ca..99c67c48b79 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_labelalias.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="layout.smith.realaxis", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='layout.smith.realaxis', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_layer.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_layer.py index d2d2c919440..c590785d668 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_layer.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_layer.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="layer", parent_name="layout.smith.realaxis", **kwargs - ): - super(LayerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["above traces", "below traces"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LayerValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='layer', + parent_name='layout.smith.realaxis', + **kwargs): + super(LayerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['above traces', 'below traces']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_linecolor.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_linecolor.py index 2adec9a47bb..b2cbd721743 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_linecolor.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_linecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="linecolor", parent_name="layout.smith.realaxis", **kwargs - ): - super(LinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='linecolor', + parent_name='layout.smith.realaxis', + **kwargs): + super(LinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_linewidth.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_linewidth.py index ceb2a97bd4d..2fbd61f04b6 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_linewidth.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_linewidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="linewidth", parent_name="layout.smith.realaxis", **kwargs - ): - super(LinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='linewidth', + parent_name='layout.smith.realaxis', + **kwargs): + super(LinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_showgrid.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_showgrid.py index 915cdb91d7e..a22c3b83de4 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_showgrid.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_showgrid.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showgrid", parent_name="layout.smith.realaxis", **kwargs - ): - super(ShowgridValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowgridValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showgrid', + parent_name='layout.smith.realaxis', + **kwargs): + super(ShowgridValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_showline.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_showline.py index 366aac83fa1..231a47392cc 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_showline.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_showline.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showline", parent_name="layout.smith.realaxis", **kwargs - ): - super(ShowlineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowlineValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showline', + parent_name='layout.smith.realaxis', + **kwargs): + super(ShowlineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_showticklabels.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_showticklabels.py index 7e2626ee95d..ea8f967b232 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="layout.smith.realaxis", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='layout.smith.realaxis', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_showtickprefix.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_showtickprefix.py index f0a1ba9b6de..fb2dd13c35c 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="layout.smith.realaxis", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='layout.smith.realaxis', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_showticksuffix.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_showticksuffix.py index 3cbc26e428e..36a70a8cbad 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="layout.smith.realaxis", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='layout.smith.realaxis', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_side.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_side.py index 2181306f875..45932e010eb 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_side.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_side.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="side", parent_name="layout.smith.realaxis", **kwargs - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["top", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='layout.smith.realaxis', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickangle.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickangle.py index ab7b7d09e0a..c7ebde8f048 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickangle.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="layout.smith.realaxis", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='layout.smith.realaxis', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickcolor.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickcolor.py index bde9e4a3b49..106da24498b 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="layout.smith.realaxis", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='layout.smith.realaxis', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickfont.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickfont.py index 73c64d3de54..cab30ce2801 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickfont.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="layout.smith.realaxis", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='layout.smith.realaxis', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickformat.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickformat.py index 2cae60d7687..3c9e90fdb02 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickformat.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="layout.smith.realaxis", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='layout.smith.realaxis', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_ticklen.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_ticklen.py index c60c12ac882..202219cb544 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_ticklen.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="layout.smith.realaxis", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='layout.smith.realaxis', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickprefix.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickprefix.py index 1ad45e19f1b..6738e7d21d3 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="layout.smith.realaxis", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='layout.smith.realaxis', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_ticks.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_ticks.py index 4f2459f4a84..f5c79bbd08f 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_ticks.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="layout.smith.realaxis", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop("values", ["top", "bottom", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='layout.smith.realaxis', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['top', 'bottom', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_ticksuffix.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_ticksuffix.py index 7e36de1809e..ba69040c614 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="layout.smith.realaxis", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='layout.smith.realaxis', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickvals.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickvals.py index a9f701c4208..9e6899d4821 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickvals.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="layout.smith.realaxis", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='layout.smith.realaxis', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickvalssrc.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickvalssrc.py index cc044ab6a28..480528ac86a 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="layout.smith.realaxis", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='layout.smith.realaxis', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickwidth.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickwidth.py index 32b2fd001b9..f51335d9586 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="layout.smith.realaxis", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='layout.smith.realaxis', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_visible.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_visible.py index 177c1fb4304..b405d49fd84 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_visible.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_visible.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="visible", parent_name="layout.smith.realaxis", **kwargs - ): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='layout.smith.realaxis', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/__init__.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_color.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_color.py index daf36ae190f..83e6a80c39c 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="layout.smith.realaxis.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.smith.realaxis.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_family.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_family.py index ee5cc26d80e..765e487a5fb 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="layout.smith.realaxis.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.smith.realaxis.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_lineposition.py index ce957617e99..8d85bdd0823 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.smith.realaxis.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.smith.realaxis.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_shadow.py index 1b62faee872..515ebd95da2 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="layout.smith.realaxis.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.smith.realaxis.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_size.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_size.py index 8a8487ca2e2..011d9f27e7d 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="layout.smith.realaxis.tickfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.smith.realaxis.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_style.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_style.py index 903724edead..4f994dc4c3c 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="layout.smith.realaxis.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.smith.realaxis.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_textcase.py index 3e030c575dc..fcfbf25db42 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="layout.smith.realaxis.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.smith.realaxis.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_variant.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_variant.py index ceed82e406f..c17df464361 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="layout.smith.realaxis.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.smith.realaxis.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_weight.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_weight.py index 53a242f2182..75037d71d6c 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="layout.smith.realaxis.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.smith.realaxis.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/__init__.py b/packages/python/plotly/plotly/validators/layout/template/__init__.py index bba1136f42a..0e0db9294ec 100644 --- a/packages/python/plotly/plotly/validators/layout/template/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/template/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._layout import LayoutValidator from ._data import DataValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._layout.LayoutValidator", "._data.DataValidator"] + __name__, + [], + ['._layout.LayoutValidator', '._data.DataValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/template/_data.py b/packages/python/plotly/plotly/validators/layout/template/_data.py index a18bd8de060..79da9709272 100644 --- a/packages/python/plotly/plotly/validators/layout/template/_data.py +++ b/packages/python/plotly/plotly/validators/layout/template/_data.py @@ -1,197 +1,15 @@ -import _plotly_utils.basevalidators -class DataValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="data", parent_name="layout.template", **kwargs): - super(DataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Data"), - data_docs=kwargs.pop( - "data_docs", - """ - barpolar - A tuple of - :class:`plotly.graph_objects.Barpolar` - instances or dicts with compatible properties - bar - A tuple of :class:`plotly.graph_objects.Bar` - instances or dicts with compatible properties - box - A tuple of :class:`plotly.graph_objects.Box` - instances or dicts with compatible properties - candlestick - A tuple of - :class:`plotly.graph_objects.Candlestick` - instances or dicts with compatible properties - carpet - A tuple of :class:`plotly.graph_objects.Carpet` - instances or dicts with compatible properties - choroplethmapbox - A tuple of - :class:`plotly.graph_objects.Choroplethmapbox` - instances or dicts with compatible properties - choroplethmap - A tuple of - :class:`plotly.graph_objects.Choroplethmap` - instances or dicts with compatible properties - choropleth - A tuple of - :class:`plotly.graph_objects.Choropleth` - instances or dicts with compatible properties - cone - A tuple of :class:`plotly.graph_objects.Cone` - instances or dicts with compatible properties - contourcarpet - A tuple of - :class:`plotly.graph_objects.Contourcarpet` - instances or dicts with compatible properties - contour - A tuple of - :class:`plotly.graph_objects.Contour` instances - or dicts with compatible properties - densitymapbox - A tuple of - :class:`plotly.graph_objects.Densitymapbox` - instances or dicts with compatible properties - densitymap - A tuple of - :class:`plotly.graph_objects.Densitymap` - instances or dicts with compatible properties - funnelarea - A tuple of - :class:`plotly.graph_objects.Funnelarea` - instances or dicts with compatible properties - funnel - A tuple of :class:`plotly.graph_objects.Funnel` - instances or dicts with compatible properties - heatmap - A tuple of - :class:`plotly.graph_objects.Heatmap` instances - or dicts with compatible properties - histogram2dcontour - A tuple of :class:`plotly.graph_objects.Histogr - am2dContour` instances or dicts with compatible - properties - histogram2d - A tuple of - :class:`plotly.graph_objects.Histogram2d` - instances or dicts with compatible properties - histogram - A tuple of - :class:`plotly.graph_objects.Histogram` - instances or dicts with compatible properties - icicle - A tuple of :class:`plotly.graph_objects.Icicle` - instances or dicts with compatible properties - image - A tuple of :class:`plotly.graph_objects.Image` - instances or dicts with compatible properties - indicator - A tuple of - :class:`plotly.graph_objects.Indicator` - instances or dicts with compatible properties - isosurface - A tuple of - :class:`plotly.graph_objects.Isosurface` - instances or dicts with compatible properties - mesh3d - A tuple of :class:`plotly.graph_objects.Mesh3d` - instances or dicts with compatible properties - ohlc - A tuple of :class:`plotly.graph_objects.Ohlc` - instances or dicts with compatible properties - parcats - A tuple of - :class:`plotly.graph_objects.Parcats` instances - or dicts with compatible properties - parcoords - A tuple of - :class:`plotly.graph_objects.Parcoords` - instances or dicts with compatible properties - pie - A tuple of :class:`plotly.graph_objects.Pie` - instances or dicts with compatible properties - sankey - A tuple of :class:`plotly.graph_objects.Sankey` - instances or dicts with compatible properties - scatter3d - A tuple of - :class:`plotly.graph_objects.Scatter3d` - instances or dicts with compatible properties - scattercarpet - A tuple of - :class:`plotly.graph_objects.Scattercarpet` - instances or dicts with compatible properties - scattergeo - A tuple of - :class:`plotly.graph_objects.Scattergeo` - instances or dicts with compatible properties - scattergl - A tuple of - :class:`plotly.graph_objects.Scattergl` - instances or dicts with compatible properties - scattermapbox - A tuple of - :class:`plotly.graph_objects.Scattermapbox` - instances or dicts with compatible properties - scattermap - A tuple of - :class:`plotly.graph_objects.Scattermap` - instances or dicts with compatible properties - scatterpolargl - A tuple of - :class:`plotly.graph_objects.Scatterpolargl` - instances or dicts with compatible properties - scatterpolar - A tuple of - :class:`plotly.graph_objects.Scatterpolar` - instances or dicts with compatible properties - scatter - A tuple of - :class:`plotly.graph_objects.Scatter` instances - or dicts with compatible properties - scattersmith - A tuple of - :class:`plotly.graph_objects.Scattersmith` - instances or dicts with compatible properties - scatterternary - A tuple of - :class:`plotly.graph_objects.Scatterternary` - instances or dicts with compatible properties - splom - A tuple of :class:`plotly.graph_objects.Splom` - instances or dicts with compatible properties - streamtube - A tuple of - :class:`plotly.graph_objects.Streamtube` - instances or dicts with compatible properties - sunburst - A tuple of - :class:`plotly.graph_objects.Sunburst` - instances or dicts with compatible properties - surface - A tuple of - :class:`plotly.graph_objects.Surface` instances - or dicts with compatible properties - table - A tuple of :class:`plotly.graph_objects.Table` - instances or dicts with compatible properties - treemap - A tuple of - :class:`plotly.graph_objects.Treemap` instances - or dicts with compatible properties - violin - A tuple of :class:`plotly.graph_objects.Violin` - instances or dicts with compatible properties - volume - A tuple of :class:`plotly.graph_objects.Volume` - instances or dicts with compatible properties - waterfall - A tuple of - :class:`plotly.graph_objects.Waterfall` - instances or dicts with compatible properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DataValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='data', + parent_name='layout.template', + **kwargs): + super(DataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Data'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/_layout.py b/packages/python/plotly/plotly/validators/layout/template/_layout.py index f0ff4de14fa..c2145476d17 100644 --- a/packages/python/plotly/plotly/validators/layout/template/_layout.py +++ b/packages/python/plotly/plotly/validators/layout/template/_layout.py @@ -1,16 +1,15 @@ -import _plotly_utils.basevalidators -class LayoutValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="layout", parent_name="layout.template", **kwargs): - super(LayoutValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Layout"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LayoutValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='layout', + parent_name='layout.template', + **kwargs): + super(LayoutValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Layout'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/__init__.py b/packages/python/plotly/plotly/validators/layout/template/data/__init__.py index da0ae909741..f6a79d23862 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._waterfall import WaterfallValidator from ._volume import VolumeValidator @@ -53,59 +52,10 @@ from ._barpolar import BarpolarValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._waterfall.WaterfallValidator", - "._volume.VolumeValidator", - "._violin.ViolinValidator", - "._treemap.TreemapValidator", - "._table.TableValidator", - "._surface.SurfaceValidator", - "._sunburst.SunburstValidator", - "._streamtube.StreamtubeValidator", - "._splom.SplomValidator", - "._scatterternary.ScatterternaryValidator", - "._scattersmith.ScattersmithValidator", - "._scatter.ScatterValidator", - "._scatterpolar.ScatterpolarValidator", - "._scatterpolargl.ScatterpolarglValidator", - "._scattermap.ScattermapValidator", - "._scattermapbox.ScattermapboxValidator", - "._scattergl.ScatterglValidator", - "._scattergeo.ScattergeoValidator", - "._scattercarpet.ScattercarpetValidator", - "._scatter3d.Scatter3DValidator", - "._sankey.SankeyValidator", - "._pie.PieValidator", - "._parcoords.ParcoordsValidator", - "._parcats.ParcatsValidator", - "._ohlc.OhlcValidator", - "._mesh3d.Mesh3DValidator", - "._isosurface.IsosurfaceValidator", - "._indicator.IndicatorValidator", - "._image.ImageValidator", - "._icicle.IcicleValidator", - "._histogram.HistogramValidator", - "._histogram2d.Histogram2DValidator", - "._histogram2dcontour.Histogram2DcontourValidator", - "._heatmap.HeatmapValidator", - "._funnel.FunnelValidator", - "._funnelarea.FunnelareaValidator", - "._densitymap.DensitymapValidator", - "._densitymapbox.DensitymapboxValidator", - "._contour.ContourValidator", - "._contourcarpet.ContourcarpetValidator", - "._cone.ConeValidator", - "._choropleth.ChoroplethValidator", - "._choroplethmap.ChoroplethmapValidator", - "._choroplethmapbox.ChoroplethmapboxValidator", - "._carpet.CarpetValidator", - "._candlestick.CandlestickValidator", - "._box.BoxValidator", - "._bar.BarValidator", - "._barpolar.BarpolarValidator", - ], + ['._waterfall.WaterfallValidator', '._volume.VolumeValidator', '._violin.ViolinValidator', '._treemap.TreemapValidator', '._table.TableValidator', '._surface.SurfaceValidator', '._sunburst.SunburstValidator', '._streamtube.StreamtubeValidator', '._splom.SplomValidator', '._scatterternary.ScatterternaryValidator', '._scattersmith.ScattersmithValidator', '._scatter.ScatterValidator', '._scatterpolar.ScatterpolarValidator', '._scatterpolargl.ScatterpolarglValidator', '._scattermap.ScattermapValidator', '._scattermapbox.ScattermapboxValidator', '._scattergl.ScatterglValidator', '._scattergeo.ScattergeoValidator', '._scattercarpet.ScattercarpetValidator', '._scatter3d.Scatter3DValidator', '._sankey.SankeyValidator', '._pie.PieValidator', '._parcoords.ParcoordsValidator', '._parcats.ParcatsValidator', '._ohlc.OhlcValidator', '._mesh3d.Mesh3DValidator', '._isosurface.IsosurfaceValidator', '._indicator.IndicatorValidator', '._image.ImageValidator', '._icicle.IcicleValidator', '._histogram.HistogramValidator', '._histogram2d.Histogram2DValidator', '._histogram2dcontour.Histogram2DcontourValidator', '._heatmap.HeatmapValidator', '._funnel.FunnelValidator', '._funnelarea.FunnelareaValidator', '._densitymap.DensitymapValidator', '._densitymapbox.DensitymapboxValidator', '._contour.ContourValidator', '._contourcarpet.ContourcarpetValidator', '._cone.ConeValidator', '._choropleth.ChoroplethValidator', '._choroplethmap.ChoroplethmapValidator', '._choroplethmapbox.ChoroplethmapboxValidator', '._carpet.CarpetValidator', '._candlestick.CandlestickValidator', '._box.BoxValidator', '._bar.BarValidator', '._barpolar.BarpolarValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_bar.py b/packages/python/plotly/plotly/validators/layout/template/data/_bar.py index b91930642e8..fdbe2693956 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_bar.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_bar.py @@ -1,16 +1,15 @@ -import _plotly_utils.basevalidators -class BarValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__(self, plotly_name="bar", parent_name="layout.template.data", **kwargs): - super(BarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Bar"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BarValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='bar', + parent_name='layout.template.data', + **kwargs): + super(BarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Bar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_barpolar.py b/packages/python/plotly/plotly/validators/layout/template/data/_barpolar.py index ae424bf2f72..ad222f42c34 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_barpolar.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_barpolar.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class BarpolarValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="barpolar", parent_name="layout.template.data", **kwargs - ): - super(BarpolarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Barpolar"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BarpolarValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='barpolar', + parent_name='layout.template.data', + **kwargs): + super(BarpolarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Barpolar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_box.py b/packages/python/plotly/plotly/validators/layout/template/data/_box.py index 803d299448a..14993762fe6 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_box.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_box.py @@ -1,16 +1,15 @@ -import _plotly_utils.basevalidators -class BoxValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__(self, plotly_name="box", parent_name="layout.template.data", **kwargs): - super(BoxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Box"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BoxValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='box', + parent_name='layout.template.data', + **kwargs): + super(BoxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Box'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_candlestick.py b/packages/python/plotly/plotly/validators/layout/template/data/_candlestick.py index f2686900288..f05173c9c63 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_candlestick.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_candlestick.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class CandlestickValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="candlestick", parent_name="layout.template.data", **kwargs - ): - super(CandlestickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Candlestick"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CandlestickValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='candlestick', + parent_name='layout.template.data', + **kwargs): + super(CandlestickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Candlestick'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_carpet.py b/packages/python/plotly/plotly/validators/layout/template/data/_carpet.py index ff93e03085f..ea9d2204fa7 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_carpet.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_carpet.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class CarpetValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="carpet", parent_name="layout.template.data", **kwargs - ): - super(CarpetValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Carpet"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CarpetValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='carpet', + parent_name='layout.template.data', + **kwargs): + super(CarpetValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Carpet'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_choropleth.py b/packages/python/plotly/plotly/validators/layout/template/data/_choropleth.py index 4253a3d925a..10f9266c317 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_choropleth.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_choropleth.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class ChoroplethValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="choropleth", parent_name="layout.template.data", **kwargs - ): - super(ChoroplethValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Choropleth"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ChoroplethValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='choropleth', + parent_name='layout.template.data', + **kwargs): + super(ChoroplethValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Choropleth'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_choroplethmap.py b/packages/python/plotly/plotly/validators/layout/template/data/_choroplethmap.py index fe8deba541c..9240f36638e 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_choroplethmap.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_choroplethmap.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class ChoroplethmapValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="choroplethmap", parent_name="layout.template.data", **kwargs - ): - super(ChoroplethmapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Choroplethmap"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ChoroplethmapValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='choroplethmap', + parent_name='layout.template.data', + **kwargs): + super(ChoroplethmapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Choroplethmap'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_choroplethmapbox.py b/packages/python/plotly/plotly/validators/layout/template/data/_choroplethmapbox.py index 882279d4949..dd1ee72d190 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_choroplethmapbox.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_choroplethmapbox.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class ChoroplethmapboxValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="choroplethmapbox", - parent_name="layout.template.data", - **kwargs, - ): - super(ChoroplethmapboxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Choroplethmapbox"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ChoroplethmapboxValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='choroplethmapbox', + parent_name='layout.template.data', + **kwargs): + super(ChoroplethmapboxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Choroplethmapbox'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_cone.py b/packages/python/plotly/plotly/validators/layout/template/data/_cone.py index 73df86f08fa..6ed01fdf51b 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_cone.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_cone.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class ConeValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="cone", parent_name="layout.template.data", **kwargs - ): - super(ConeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Cone"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ConeValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='cone', + parent_name='layout.template.data', + **kwargs): + super(ConeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Cone'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_contour.py b/packages/python/plotly/plotly/validators/layout/template/data/_contour.py index 47905d5ad49..f8a03952f41 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_contour.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_contour.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class ContourValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="contour", parent_name="layout.template.data", **kwargs - ): - super(ContourValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Contour"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ContourValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='contour', + parent_name='layout.template.data', + **kwargs): + super(ContourValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Contour'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_contourcarpet.py b/packages/python/plotly/plotly/validators/layout/template/data/_contourcarpet.py index b40e0292b60..8660004379d 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_contourcarpet.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_contourcarpet.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class ContourcarpetValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="contourcarpet", parent_name="layout.template.data", **kwargs - ): - super(ContourcarpetValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Contourcarpet"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ContourcarpetValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='contourcarpet', + parent_name='layout.template.data', + **kwargs): + super(ContourcarpetValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Contourcarpet'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_densitymap.py b/packages/python/plotly/plotly/validators/layout/template/data/_densitymap.py index 98a867b5d01..05ff7b621eb 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_densitymap.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_densitymap.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class DensitymapValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="densitymap", parent_name="layout.template.data", **kwargs - ): - super(DensitymapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Densitymap"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DensitymapValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='densitymap', + parent_name='layout.template.data', + **kwargs): + super(DensitymapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Densitymap'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_densitymapbox.py b/packages/python/plotly/plotly/validators/layout/template/data/_densitymapbox.py index 6ea6762697e..a61aeacc8e0 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_densitymapbox.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_densitymapbox.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class DensitymapboxValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="densitymapbox", parent_name="layout.template.data", **kwargs - ): - super(DensitymapboxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Densitymapbox"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DensitymapboxValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='densitymapbox', + parent_name='layout.template.data', + **kwargs): + super(DensitymapboxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Densitymapbox'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_funnel.py b/packages/python/plotly/plotly/validators/layout/template/data/_funnel.py index 1cdd39d3e1b..b560e06e85a 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_funnel.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_funnel.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FunnelValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="funnel", parent_name="layout.template.data", **kwargs - ): - super(FunnelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Funnel"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FunnelValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='funnel', + parent_name='layout.template.data', + **kwargs): + super(FunnelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Funnel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_funnelarea.py b/packages/python/plotly/plotly/validators/layout/template/data/_funnelarea.py index 5b0ee95af9f..84c5891c234 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_funnelarea.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_funnelarea.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FunnelareaValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="funnelarea", parent_name="layout.template.data", **kwargs - ): - super(FunnelareaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Funnelarea"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FunnelareaValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='funnelarea', + parent_name='layout.template.data', + **kwargs): + super(FunnelareaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Funnelarea'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_heatmap.py b/packages/python/plotly/plotly/validators/layout/template/data/_heatmap.py index 2c49e30cf7a..757c8c4250a 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_heatmap.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_heatmap.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class HeatmapValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="heatmap", parent_name="layout.template.data", **kwargs - ): - super(HeatmapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Heatmap"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HeatmapValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='heatmap', + parent_name='layout.template.data', + **kwargs): + super(HeatmapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Heatmap'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_histogram.py b/packages/python/plotly/plotly/validators/layout/template/data/_histogram.py index fa3bdbb9f6f..269a8ab8ef6 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_histogram.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_histogram.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class HistogramValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="histogram", parent_name="layout.template.data", **kwargs - ): - super(HistogramValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Histogram"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HistogramValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='histogram', + parent_name='layout.template.data', + **kwargs): + super(HistogramValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Histogram'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_histogram2d.py b/packages/python/plotly/plotly/validators/layout/template/data/_histogram2d.py index b783a77b4c2..00772d5bc70 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_histogram2d.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_histogram2d.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class Histogram2DValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="histogram2d", parent_name="layout.template.data", **kwargs - ): - super(Histogram2DValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Histogram2d"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Histogram2DValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='histogram2d', + parent_name='layout.template.data', + **kwargs): + super(Histogram2DValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Histogram2d'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_histogram2dcontour.py b/packages/python/plotly/plotly/validators/layout/template/data/_histogram2dcontour.py index 1d68a410ea9..d0917e0a58f 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_histogram2dcontour.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_histogram2dcontour.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class Histogram2DcontourValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="histogram2dcontour", - parent_name="layout.template.data", - **kwargs, - ): - super(Histogram2DcontourValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Histogram2dContour"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Histogram2DcontourValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='histogram2dcontour', + parent_name='layout.template.data', + **kwargs): + super(Histogram2DcontourValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Histogram2dContour'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_icicle.py b/packages/python/plotly/plotly/validators/layout/template/data/_icicle.py index f57765ae6d3..20aa3fd5c00 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_icicle.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_icicle.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class IcicleValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="icicle", parent_name="layout.template.data", **kwargs - ): - super(IcicleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Icicle"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IcicleValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='icicle', + parent_name='layout.template.data', + **kwargs): + super(IcicleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Icicle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_image.py b/packages/python/plotly/plotly/validators/layout/template/data/_image.py index 7eaa9a942c2..97cfc8cd4f0 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_image.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_image.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class ImageValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="image", parent_name="layout.template.data", **kwargs - ): - super(ImageValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Image"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ImageValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='image', + parent_name='layout.template.data', + **kwargs): + super(ImageValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Image'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_indicator.py b/packages/python/plotly/plotly/validators/layout/template/data/_indicator.py index c1328703f3a..25b73cab502 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_indicator.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_indicator.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class IndicatorValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="indicator", parent_name="layout.template.data", **kwargs - ): - super(IndicatorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Indicator"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IndicatorValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='indicator', + parent_name='layout.template.data', + **kwargs): + super(IndicatorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Indicator'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_isosurface.py b/packages/python/plotly/plotly/validators/layout/template/data/_isosurface.py index b595eb2d8dd..8bef2391a3b 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_isosurface.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_isosurface.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class IsosurfaceValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="isosurface", parent_name="layout.template.data", **kwargs - ): - super(IsosurfaceValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Isosurface"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IsosurfaceValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='isosurface', + parent_name='layout.template.data', + **kwargs): + super(IsosurfaceValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Isosurface'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_mesh3d.py b/packages/python/plotly/plotly/validators/layout/template/data/_mesh3d.py index ddc72e9c773..40226a2d565 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_mesh3d.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_mesh3d.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class Mesh3DValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="mesh3d", parent_name="layout.template.data", **kwargs - ): - super(Mesh3DValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Mesh3d"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Mesh3DValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='mesh3d', + parent_name='layout.template.data', + **kwargs): + super(Mesh3DValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Mesh3d'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_ohlc.py b/packages/python/plotly/plotly/validators/layout/template/data/_ohlc.py index 75f7c0cc6d2..7b1ce880d17 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_ohlc.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_ohlc.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class OhlcValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="ohlc", parent_name="layout.template.data", **kwargs - ): - super(OhlcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Ohlc"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OhlcValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='ohlc', + parent_name='layout.template.data', + **kwargs): + super(OhlcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Ohlc'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_parcats.py b/packages/python/plotly/plotly/validators/layout/template/data/_parcats.py index a92aeeb7e3c..8775f86d8db 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_parcats.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_parcats.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class ParcatsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="parcats", parent_name="layout.template.data", **kwargs - ): - super(ParcatsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Parcats"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ParcatsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='parcats', + parent_name='layout.template.data', + **kwargs): + super(ParcatsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Parcats'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_parcoords.py b/packages/python/plotly/plotly/validators/layout/template/data/_parcoords.py index 603adc5606e..ba18ca08b71 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_parcoords.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_parcoords.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class ParcoordsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="parcoords", parent_name="layout.template.data", **kwargs - ): - super(ParcoordsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Parcoords"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ParcoordsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='parcoords', + parent_name='layout.template.data', + **kwargs): + super(ParcoordsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Parcoords'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_pie.py b/packages/python/plotly/plotly/validators/layout/template/data/_pie.py index 42a39f75a43..018cfca5d15 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_pie.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_pie.py @@ -1,16 +1,15 @@ -import _plotly_utils.basevalidators -class PieValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__(self, plotly_name="pie", parent_name="layout.template.data", **kwargs): - super(PieValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Pie"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class PieValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='pie', + parent_name='layout.template.data', + **kwargs): + super(PieValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Pie'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_sankey.py b/packages/python/plotly/plotly/validators/layout/template/data/_sankey.py index c2b7664948f..bb326d0b8db 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_sankey.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_sankey.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class SankeyValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="sankey", parent_name="layout.template.data", **kwargs - ): - super(SankeyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Sankey"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SankeyValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='sankey', + parent_name='layout.template.data', + **kwargs): + super(SankeyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Sankey'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_scatter.py b/packages/python/plotly/plotly/validators/layout/template/data/_scatter.py index caf23cc1dea..19c3ed869c3 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_scatter.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_scatter.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class ScatterValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="scatter", parent_name="layout.template.data", **kwargs - ): - super(ScatterValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Scatter"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ScatterValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='scatter', + parent_name='layout.template.data', + **kwargs): + super(ScatterValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Scatter'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_scatter3d.py b/packages/python/plotly/plotly/validators/layout/template/data/_scatter3d.py index 810402aeb3d..818c9f1fc2e 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_scatter3d.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_scatter3d.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class Scatter3DValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="scatter3d", parent_name="layout.template.data", **kwargs - ): - super(Scatter3DValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Scatter3d"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Scatter3DValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='scatter3d', + parent_name='layout.template.data', + **kwargs): + super(Scatter3DValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Scatter3d'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_scattercarpet.py b/packages/python/plotly/plotly/validators/layout/template/data/_scattercarpet.py index eb44a656722..2cbd34a1051 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_scattercarpet.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_scattercarpet.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class ScattercarpetValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="scattercarpet", parent_name="layout.template.data", **kwargs - ): - super(ScattercarpetValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Scattercarpet"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ScattercarpetValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='scattercarpet', + parent_name='layout.template.data', + **kwargs): + super(ScattercarpetValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Scattercarpet'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_scattergeo.py b/packages/python/plotly/plotly/validators/layout/template/data/_scattergeo.py index 55e5277eaae..59dfda2cc29 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_scattergeo.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_scattergeo.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class ScattergeoValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="scattergeo", parent_name="layout.template.data", **kwargs - ): - super(ScattergeoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Scattergeo"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ScattergeoValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='scattergeo', + parent_name='layout.template.data', + **kwargs): + super(ScattergeoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Scattergeo'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_scattergl.py b/packages/python/plotly/plotly/validators/layout/template/data/_scattergl.py index b4400120ad4..19094db5993 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_scattergl.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_scattergl.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class ScatterglValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="scattergl", parent_name="layout.template.data", **kwargs - ): - super(ScatterglValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Scattergl"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ScatterglValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='scattergl', + parent_name='layout.template.data', + **kwargs): + super(ScatterglValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Scattergl'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_scattermap.py b/packages/python/plotly/plotly/validators/layout/template/data/_scattermap.py index 73eab73344d..ab60bf240e8 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_scattermap.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_scattermap.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class ScattermapValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="scattermap", parent_name="layout.template.data", **kwargs - ): - super(ScattermapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Scattermap"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ScattermapValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='scattermap', + parent_name='layout.template.data', + **kwargs): + super(ScattermapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Scattermap'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_scattermapbox.py b/packages/python/plotly/plotly/validators/layout/template/data/_scattermapbox.py index 970f59110d4..62537e21a46 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_scattermapbox.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_scattermapbox.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class ScattermapboxValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="scattermapbox", parent_name="layout.template.data", **kwargs - ): - super(ScattermapboxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Scattermapbox"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ScattermapboxValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='scattermapbox', + parent_name='layout.template.data', + **kwargs): + super(ScattermapboxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Scattermapbox'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_scatterpolar.py b/packages/python/plotly/plotly/validators/layout/template/data/_scatterpolar.py index 77b17da4671..4b8220169a4 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_scatterpolar.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_scatterpolar.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class ScatterpolarValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="scatterpolar", parent_name="layout.template.data", **kwargs - ): - super(ScatterpolarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Scatterpolar"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ScatterpolarValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='scatterpolar', + parent_name='layout.template.data', + **kwargs): + super(ScatterpolarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Scatterpolar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_scatterpolargl.py b/packages/python/plotly/plotly/validators/layout/template/data/_scatterpolargl.py index 6520a3c51c5..acbfe0e7b38 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_scatterpolargl.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_scatterpolargl.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class ScatterpolarglValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="scatterpolargl", parent_name="layout.template.data", **kwargs - ): - super(ScatterpolarglValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Scatterpolargl"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ScatterpolarglValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='scatterpolargl', + parent_name='layout.template.data', + **kwargs): + super(ScatterpolarglValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Scatterpolargl'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_scattersmith.py b/packages/python/plotly/plotly/validators/layout/template/data/_scattersmith.py index c62fc952030..a13c888b3d9 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_scattersmith.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_scattersmith.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class ScattersmithValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="scattersmith", parent_name="layout.template.data", **kwargs - ): - super(ScattersmithValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Scattersmith"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ScattersmithValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='scattersmith', + parent_name='layout.template.data', + **kwargs): + super(ScattersmithValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Scattersmith'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_scatterternary.py b/packages/python/plotly/plotly/validators/layout/template/data/_scatterternary.py index 1902e1ffbf1..7a9f6446a08 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_scatterternary.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_scatterternary.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class ScatterternaryValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="scatterternary", parent_name="layout.template.data", **kwargs - ): - super(ScatterternaryValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Scatterternary"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ScatterternaryValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='scatterternary', + parent_name='layout.template.data', + **kwargs): + super(ScatterternaryValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Scatterternary'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_splom.py b/packages/python/plotly/plotly/validators/layout/template/data/_splom.py index b259a256922..4753005eb99 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_splom.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_splom.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class SplomValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="splom", parent_name="layout.template.data", **kwargs - ): - super(SplomValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Splom"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SplomValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='splom', + parent_name='layout.template.data', + **kwargs): + super(SplomValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Splom'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_streamtube.py b/packages/python/plotly/plotly/validators/layout/template/data/_streamtube.py index 60e8790ca1b..84592154e02 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_streamtube.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_streamtube.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class StreamtubeValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="streamtube", parent_name="layout.template.data", **kwargs - ): - super(StreamtubeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Streamtube"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamtubeValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='streamtube', + parent_name='layout.template.data', + **kwargs): + super(StreamtubeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Streamtube'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_sunburst.py b/packages/python/plotly/plotly/validators/layout/template/data/_sunburst.py index bf8323566bc..ba8d15a594d 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_sunburst.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_sunburst.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class SunburstValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="sunburst", parent_name="layout.template.data", **kwargs - ): - super(SunburstValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Sunburst"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SunburstValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='sunburst', + parent_name='layout.template.data', + **kwargs): + super(SunburstValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Sunburst'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_surface.py b/packages/python/plotly/plotly/validators/layout/template/data/_surface.py index 3277668fe8b..5668bbfa444 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_surface.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_surface.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class SurfaceValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="surface", parent_name="layout.template.data", **kwargs - ): - super(SurfaceValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Surface"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SurfaceValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='surface', + parent_name='layout.template.data', + **kwargs): + super(SurfaceValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Surface'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_table.py b/packages/python/plotly/plotly/validators/layout/template/data/_table.py index c2e5a490956..f32192ab74e 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_table.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_table.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class TableValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="table", parent_name="layout.template.data", **kwargs - ): - super(TableValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Table"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TableValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='table', + parent_name='layout.template.data', + **kwargs): + super(TableValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Table'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_treemap.py b/packages/python/plotly/plotly/validators/layout/template/data/_treemap.py index 70e380417ce..969ee005f91 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_treemap.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_treemap.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class TreemapValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="treemap", parent_name="layout.template.data", **kwargs - ): - super(TreemapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Treemap"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TreemapValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='treemap', + parent_name='layout.template.data', + **kwargs): + super(TreemapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Treemap'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_violin.py b/packages/python/plotly/plotly/validators/layout/template/data/_violin.py index 91f6842f529..61387b44506 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_violin.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_violin.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class ViolinValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="violin", parent_name="layout.template.data", **kwargs - ): - super(ViolinValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Violin"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ViolinValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='violin', + parent_name='layout.template.data', + **kwargs): + super(ViolinValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Violin'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_volume.py b/packages/python/plotly/plotly/validators/layout/template/data/_volume.py index b7edcfc7b11..b99eb287bcc 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_volume.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_volume.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class VolumeValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="volume", parent_name="layout.template.data", **kwargs - ): - super(VolumeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Volume"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VolumeValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='volume', + parent_name='layout.template.data', + **kwargs): + super(VolumeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Volume'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/template/data/_waterfall.py b/packages/python/plotly/plotly/validators/layout/template/data/_waterfall.py index eb599180631..d95d650fb6a 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/_waterfall.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/_waterfall.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class WaterfallValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="waterfall", parent_name="layout.template.data", **kwargs - ): - super(WaterfallValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Waterfall"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WaterfallValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='waterfall', + parent_name='layout.template.data', + **kwargs): + super(WaterfallValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Waterfall'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/__init__.py index 6c9d35db381..317f032fe1e 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._uirevision import UirevisionValidator from ._sum import SumValidator @@ -11,17 +10,10 @@ from ._aaxis import AaxisValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._uirevision.UirevisionValidator", - "._sum.SumValidator", - "._domain.DomainValidator", - "._caxis.CaxisValidator", - "._bgcolor.BgcolorValidator", - "._baxis.BaxisValidator", - "._aaxis.AaxisValidator", - ], + ['._uirevision.UirevisionValidator', '._sum.SumValidator', '._domain.DomainValidator', '._caxis.CaxisValidator', '._bgcolor.BgcolorValidator', '._baxis.BaxisValidator', '._aaxis.AaxisValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/ternary/_aaxis.py b/packages/python/plotly/plotly/validators/layout/ternary/_aaxis.py index bcae070c7ec..928610f64b1 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/_aaxis.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/_aaxis.py @@ -1,248 +1,15 @@ -import _plotly_utils.basevalidators -class AaxisValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="aaxis", parent_name="layout.ternary", **kwargs): - super(AaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Aaxis"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets default for all colors associated with - this axis all at once: line, font, tick, and - grid colors. Grid color is lightened by - blending this with the plot background - Individual pieces can override this. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - gridcolor - Sets the color of the grid lines. - 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 width (in px) of the grid lines. - hoverformat - Sets the hover text formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - layer - Sets the layer on which this axis is displayed. - If *above traces*, this axis is displayed above - all the subplot's traces If *below traces*, - this axis is displayed below all the subplot's - traces, but above the grid lines. Useful when - used together with scatter-like traces with - `cliponaxis` set to False to show markers - and/or text nodes above this axis. - linecolor - Sets the axis line color. - linewidth - Sets the width (in px) of the axis line. - min - The minimum value visible on this axis. The - maximum is determined by the sum minus the - minimum values of the other two axes. The full - view corresponds to all the minima set to zero. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - showline - Determines whether or not a line bounding this - axis is drawn. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the tick font. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.layout. - ternary.aaxis.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.lay - out.ternary.aaxis.tickformatstopdefaults), sets - the default property values to use for elements - of layout.ternary.aaxis.tickformatstops - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.layout.ternary.aax - is.Title` instance or dict with compatible - properties - uirevision - Controls persistence of user-driven changes in - axis `min`, and `title` if in `editable: true` - configuration. Defaults to - `ternary.uirevision`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AaxisValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='aaxis', + parent_name='layout.ternary', + **kwargs): + super(AaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Aaxis'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/_baxis.py b/packages/python/plotly/plotly/validators/layout/ternary/_baxis.py index 622aa8704c2..576dbc71414 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/_baxis.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/_baxis.py @@ -1,248 +1,15 @@ -import _plotly_utils.basevalidators -class BaxisValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="baxis", parent_name="layout.ternary", **kwargs): - super(BaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Baxis"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets default for all colors associated with - this axis all at once: line, font, tick, and - grid colors. Grid color is lightened by - blending this with the plot background - Individual pieces can override this. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - gridcolor - Sets the color of the grid lines. - 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 width (in px) of the grid lines. - hoverformat - Sets the hover text formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - layer - Sets the layer on which this axis is displayed. - If *above traces*, this axis is displayed above - all the subplot's traces If *below traces*, - this axis is displayed below all the subplot's - traces, but above the grid lines. Useful when - used together with scatter-like traces with - `cliponaxis` set to False to show markers - and/or text nodes above this axis. - linecolor - Sets the axis line color. - linewidth - Sets the width (in px) of the axis line. - min - The minimum value visible on this axis. The - maximum is determined by the sum minus the - minimum values of the other two axes. The full - view corresponds to all the minima set to zero. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - showline - Determines whether or not a line bounding this - axis is drawn. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the tick font. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.layout. - ternary.baxis.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.lay - out.ternary.baxis.tickformatstopdefaults), sets - the default property values to use for elements - of layout.ternary.baxis.tickformatstops - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.layout.ternary.bax - is.Title` instance or dict with compatible - properties - uirevision - Controls persistence of user-driven changes in - axis `min`, and `title` if in `editable: true` - configuration. Defaults to - `ternary.uirevision`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BaxisValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='baxis', + parent_name='layout.ternary', + **kwargs): + super(BaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Baxis'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/_bgcolor.py b/packages/python/plotly/plotly/validators/layout/ternary/_bgcolor.py index 3f4b3206706..e376d98e261 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/_bgcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="bgcolor", parent_name="layout.ternary", **kwargs): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='layout.ternary', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/_caxis.py b/packages/python/plotly/plotly/validators/layout/ternary/_caxis.py index f44ac4681cd..b24d2f91a06 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/_caxis.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/_caxis.py @@ -1,248 +1,15 @@ -import _plotly_utils.basevalidators -class CaxisValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="caxis", parent_name="layout.ternary", **kwargs): - super(CaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Caxis"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets default for all colors associated with - this axis all at once: line, font, tick, and - grid colors. Grid color is lightened by - blending this with the plot background - Individual pieces can override this. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - gridcolor - Sets the color of the grid lines. - 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 width (in px) of the grid lines. - hoverformat - Sets the hover text formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - layer - Sets the layer on which this axis is displayed. - If *above traces*, this axis is displayed above - all the subplot's traces If *below traces*, - this axis is displayed below all the subplot's - traces, but above the grid lines. Useful when - used together with scatter-like traces with - `cliponaxis` set to False to show markers - and/or text nodes above this axis. - linecolor - Sets the axis line color. - linewidth - Sets the width (in px) of the axis line. - min - The minimum value visible on this axis. The - maximum is determined by the sum minus the - minimum values of the other two axes. The full - view corresponds to all the minima set to zero. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - showline - Determines whether or not a line bounding this - axis is drawn. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the tick font. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.layout. - ternary.caxis.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.lay - out.ternary.caxis.tickformatstopdefaults), sets - the default property values to use for elements - of layout.ternary.caxis.tickformatstops - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.layout.ternary.cax - is.Title` instance or dict with compatible - properties - uirevision - Controls persistence of user-driven changes in - axis `min`, and `title` if in `editable: true` - configuration. Defaults to - `ternary.uirevision`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CaxisValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='caxis', + parent_name='layout.ternary', + **kwargs): + super(CaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Caxis'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/_domain.py b/packages/python/plotly/plotly/validators/layout/ternary/_domain.py index b2abda08e5f..ed9fce423f9 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/_domain.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/_domain.py @@ -1,29 +1,15 @@ -import _plotly_utils.basevalidators -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="domain", parent_name="layout.ternary", **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 ternary - subplot . - row - If there is a layout grid, use the domain for - this row in the grid for this ternary subplot . - x - Sets the horizontal domain of this ternary - subplot (in plot fraction). - y - Sets the vertical domain of this ternary - subplot (in plot fraction). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DomainValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='domain', + parent_name='layout.ternary', + **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', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/_sum.py b/packages/python/plotly/plotly/validators/layout/ternary/_sum.py index 6d8e2f30efa..c2882707bf4 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/_sum.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/_sum.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SumValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="sum", parent_name="layout.ternary", **kwargs): - super(SumValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SumValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sum', + parent_name='layout.ternary', + **kwargs): + super(SumValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/_uirevision.py b/packages/python/plotly/plotly/validators/layout/ternary/_uirevision.py index 2c0e5b4689c..7296d572020 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/_uirevision.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/_uirevision.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="uirevision", parent_name="layout.ternary", **kwargs - ): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='layout.ternary', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/__init__.py index 0fafe618243..e367393f9dd 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._uirevision import UirevisionValidator from ._title import TitleValidator @@ -45,51 +44,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._uirevision.UirevisionValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showline.ShowlineValidator", - "._showgrid.ShowgridValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._min.MinValidator", - "._linewidth.LinewidthValidator", - "._linecolor.LinecolorValidator", - "._layer.LayerValidator", - "._labelalias.LabelaliasValidator", - "._hoverformat.HoverformatValidator", - "._gridwidth.GridwidthValidator", - "._griddash.GriddashValidator", - "._gridcolor.GridcolorValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._color.ColorValidator", - ], + ['._uirevision.UirevisionValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showline.ShowlineValidator', '._showgrid.ShowgridValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._min.MinValidator', '._linewidth.LinewidthValidator', '._linecolor.LinecolorValidator', '._layer.LayerValidator', '._labelalias.LabelaliasValidator', '._hoverformat.HoverformatValidator', '._gridwidth.GridwidthValidator', '._griddash.GriddashValidator', '._gridcolor.GridcolorValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_color.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_color.py index 15bccd0d20b..61fe4486167 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_color.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.ternary.aaxis", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.ternary.aaxis', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_dtick.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_dtick.py index 49c81600d68..4d1efc1ff5c 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_dtick.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="layout.ternary.aaxis", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='layout.ternary.aaxis', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_exponentformat.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_exponentformat.py index a34627991cf..45a43411894 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_exponentformat.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="exponentformat", parent_name="layout.ternary.aaxis", **kwargs - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='layout.ternary.aaxis', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_gridcolor.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_gridcolor.py index a371f2748c0..fd34d28dfc6 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_gridcolor.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_gridcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="gridcolor", parent_name="layout.ternary.aaxis", **kwargs - ): - super(GridcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='gridcolor', + parent_name='layout.ternary.aaxis', + **kwargs): + super(GridcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_griddash.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_griddash.py index f8df3bd1aa2..db3b3bc36c6 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_griddash.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_griddash.py @@ -1,16 +1,14 @@ -import _plotly_utils.basevalidators -class GriddashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__( - self, plotly_name="griddash", parent_name="layout.ternary.aaxis", **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, - ) +import _plotly_utils.basevalidators as _bv + + +class GriddashValidator(_bv.DashValidator): + def __init__(self, plotly_name='griddash', + parent_name='layout.ternary.aaxis', + **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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_gridwidth.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_gridwidth.py index 3b9263932f3..c17b0ca0b8e 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_gridwidth.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_gridwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="gridwidth", parent_name="layout.ternary.aaxis", **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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='gridwidth', + parent_name='layout.ternary.aaxis', + **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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_hoverformat.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_hoverformat.py index 7443bdc1ac7..3d214b705b2 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_hoverformat.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_hoverformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="hoverformat", parent_name="layout.ternary.aaxis", **kwargs - ): - super(HoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='hoverformat', + parent_name='layout.ternary.aaxis', + **kwargs): + super(HoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_labelalias.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_labelalias.py index 28772929927..7632ddc0b5f 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_labelalias.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="layout.ternary.aaxis", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='layout.ternary.aaxis', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_layer.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_layer.py index 04353659902..928e624204f 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_layer.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_layer.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="layer", parent_name="layout.ternary.aaxis", **kwargs - ): - super(LayerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["above traces", "below traces"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LayerValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='layer', + parent_name='layout.ternary.aaxis', + **kwargs): + super(LayerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['above traces', 'below traces']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_linecolor.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_linecolor.py index 796a86d565a..195504917cf 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_linecolor.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_linecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="linecolor", parent_name="layout.ternary.aaxis", **kwargs - ): - super(LinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='linecolor', + parent_name='layout.ternary.aaxis', + **kwargs): + super(LinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_linewidth.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_linewidth.py index 34a01018a98..f80335bc9ec 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_linewidth.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_linewidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="linewidth", parent_name="layout.ternary.aaxis", **kwargs - ): - super(LinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='linewidth', + parent_name='layout.ternary.aaxis', + **kwargs): + super(LinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_min.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_min.py index b8f48ee73e5..d478acca6f7 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_min.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_min.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="min", parent_name="layout.ternary.aaxis", **kwargs): - super(MinValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinValidator(_bv.NumberValidator): + def __init__(self, plotly_name='min', + parent_name='layout.ternary.aaxis', + **kwargs): + super(MinValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_minexponent.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_minexponent.py index 8196fac9a26..375a06d4bd4 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_minexponent.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="layout.ternary.aaxis", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='layout.ternary.aaxis', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_nticks.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_nticks.py index 9fe2cfd30d8..f8ac9f19832 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_nticks.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="layout.ternary.aaxis", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='layout.ternary.aaxis', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_separatethousands.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_separatethousands.py index 73db08e248f..1c9bb4a3f08 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="layout.ternary.aaxis", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='layout.ternary.aaxis', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_showexponent.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_showexponent.py index d427c7e5dfa..a81e413b525 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_showexponent.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="layout.ternary.aaxis", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='layout.ternary.aaxis', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_showgrid.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_showgrid.py index d76eb03791a..74101b076f8 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_showgrid.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_showgrid.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showgrid", parent_name="layout.ternary.aaxis", **kwargs - ): - super(ShowgridValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowgridValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showgrid', + parent_name='layout.ternary.aaxis', + **kwargs): + super(ShowgridValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_showline.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_showline.py index b48e7e1fa9f..ecb4312b494 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_showline.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_showline.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showline", parent_name="layout.ternary.aaxis", **kwargs - ): - super(ShowlineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowlineValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showline', + parent_name='layout.ternary.aaxis', + **kwargs): + super(ShowlineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_showticklabels.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_showticklabels.py index c0c3794e70c..6717b668aed 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_showticklabels.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showticklabels", parent_name="layout.ternary.aaxis", **kwargs - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='layout.ternary.aaxis', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_showtickprefix.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_showtickprefix.py index 69621fa0415..92a3a7808a5 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_showtickprefix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showtickprefix", parent_name="layout.ternary.aaxis", **kwargs - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='layout.ternary.aaxis', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_showticksuffix.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_showticksuffix.py index 86d7a8ed13f..4e1fbae0d38 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_showticksuffix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showticksuffix", parent_name="layout.ternary.aaxis", **kwargs - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='layout.ternary.aaxis', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tick0.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tick0.py index 3aa8d005dee..521394c5768 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tick0.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="layout.ternary.aaxis", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='layout.ternary.aaxis', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickangle.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickangle.py index 34595ae574c..b393aeacb04 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickangle.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="layout.ternary.aaxis", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='layout.ternary.aaxis', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickcolor.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickcolor.py index c315fbcc754..08c4b1ff7f1 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="layout.ternary.aaxis", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='layout.ternary.aaxis', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickfont.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickfont.py index 3d2a1bc7d48..619edc37b46 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickfont.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="layout.ternary.aaxis", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='layout.ternary.aaxis', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickformat.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickformat.py index 5d506740e04..eabfd6e376c 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickformat.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="layout.ternary.aaxis", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='layout.ternary.aaxis', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickformatstopdefaults.py index 9bca349a355..8b5bbfdab2b 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="layout.ternary.aaxis", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='layout.ternary.aaxis', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickformatstops.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickformatstops.py index f25670c3e4b..0444f87fe34 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="layout.ternary.aaxis", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='layout.ternary.aaxis', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_ticklabelstep.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_ticklabelstep.py index 5659106df10..e15008e8046 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_ticklabelstep.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="ticklabelstep", parent_name="layout.ternary.aaxis", **kwargs - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='layout.ternary.aaxis', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_ticklen.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_ticklen.py index 9157d944f1e..78e1a896872 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_ticklen.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="layout.ternary.aaxis", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='layout.ternary.aaxis', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickmode.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickmode.py index f28c8e99b92..cd1a217d10e 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickmode.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="layout.ternary.aaxis", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='layout.ternary.aaxis', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickprefix.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickprefix.py index 4f988fcd290..37af7793f2b 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="layout.ternary.aaxis", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='layout.ternary.aaxis', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_ticks.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_ticks.py index c97a73a27e7..ce31078b220 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_ticks.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="layout.ternary.aaxis", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='layout.ternary.aaxis', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_ticksuffix.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_ticksuffix.py index 5dbe280eb5a..26ad7c0b192 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="layout.ternary.aaxis", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='layout.ternary.aaxis', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_ticktext.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_ticktext.py index cc3248e0d7e..e5a5c100e2f 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_ticktext.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="layout.ternary.aaxis", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='layout.ternary.aaxis', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_ticktextsrc.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_ticktextsrc.py index 7bd6da09b92..1d0742c81e1 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="layout.ternary.aaxis", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='layout.ternary.aaxis', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickvals.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickvals.py index dc7329e0889..42aa8de61d5 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickvals.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="layout.ternary.aaxis", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='layout.ternary.aaxis', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickvalssrc.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickvalssrc.py index e9950719a6d..76f5e69b33e 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="layout.ternary.aaxis", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='layout.ternary.aaxis', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickwidth.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickwidth.py index b1c59bdeb92..e103705c16d 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="layout.ternary.aaxis", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='layout.ternary.aaxis', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_title.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_title.py index 0024dfcd5f9..f97e50ad6bc 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_title.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_title.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="layout.ternary.aaxis", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this axis' title font. - text - Sets the title of this axis. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='layout.ternary.aaxis', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_uirevision.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_uirevision.py index f9b44f3c61a..755f3457b7f 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_uirevision.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_uirevision.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="uirevision", parent_name="layout.ternary.aaxis", **kwargs - ): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='layout.ternary.aaxis', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_color.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_color.py index 15864fee5f7..38cdfadb18e 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.ternary.aaxis.tickfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.ternary.aaxis.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_family.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_family.py index 17257e3d7df..32de31ebf3c 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="layout.ternary.aaxis.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.ternary.aaxis.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_lineposition.py index c621ac133eb..739ef320c48 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.ternary.aaxis.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.ternary.aaxis.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_shadow.py index 2911253ae05..30c2a693e09 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="layout.ternary.aaxis.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.ternary.aaxis.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_size.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_size.py index 3c3f5193b41..d37e82e0aef 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="layout.ternary.aaxis.tickfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.ternary.aaxis.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_style.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_style.py index d438c2f75a9..0d0f40f65e1 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="layout.ternary.aaxis.tickfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.ternary.aaxis.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_textcase.py index 6b7f8795428..d40e6bf695b 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="layout.ternary.aaxis.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.ternary.aaxis.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_variant.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_variant.py index b780f65fd43..65334201633 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="layout.ternary.aaxis.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.ternary.aaxis.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_weight.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_weight.py index e1b3be89d25..8991e421e01 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="layout.ternary.aaxis.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.ternary.aaxis.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickformatstop/_dtickrange.py index 0c8a5e4d2ad..7ae23f6ecf9 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="layout.ternary.aaxis.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - items=kwargs.pop( - "items", - [ - {"editType": "plot", "valType": "any"}, - {"editType": "plot", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='layout.ternary.aaxis.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + items=kwargs.pop('items', [{'editType': 'plot', 'valType': 'any'}, {'editType': 'plot', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickformatstop/_enabled.py index 047be9cbc9c..56b0c235508 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="layout.ternary.aaxis.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='layout.ternary.aaxis.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickformatstop/_name.py index cad40679c17..186779710ee 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="layout.ternary.aaxis.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='layout.ternary.aaxis.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickformatstop/_templateitemname.py index 60672120fbe..c0612c7c6b2 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="layout.ternary.aaxis.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='layout.ternary.aaxis.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickformatstop/_value.py index a9c601c8d59..da590e3fec7 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="layout.ternary.aaxis.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='layout.ternary.aaxis.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/_font.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/_font.py index 9e6cc35483a..c2384f2eaf2 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/_font.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="layout.ternary.aaxis.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='layout.ternary.aaxis.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/_text.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/_text.py index 6771e130e18..9ede1eeba07 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/_text.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="layout.ternary.aaxis.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='layout.ternary.aaxis.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_color.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_color.py index d34a02e65c5..a0447e8476a 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="layout.ternary.aaxis.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.ternary.aaxis.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_family.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_family.py index 6a2cb30306d..572af5c6fd1 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="layout.ternary.aaxis.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.ternary.aaxis.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_lineposition.py index 2323013343c..b90e391dadb 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.ternary.aaxis.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.ternary.aaxis.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_shadow.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_shadow.py index 754b2ad638e..69bd780552f 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="layout.ternary.aaxis.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.ternary.aaxis.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_size.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_size.py index 4f95af68bcb..8e6c7c9daae 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="layout.ternary.aaxis.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.ternary.aaxis.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_style.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_style.py index dba515e6175..af6ccaace1a 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="layout.ternary.aaxis.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.ternary.aaxis.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_textcase.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_textcase.py index eea25995355..25fdedf7e89 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="layout.ternary.aaxis.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.ternary.aaxis.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_variant.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_variant.py index 7c30d1dad69..2515053d28c 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="layout.ternary.aaxis.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.ternary.aaxis.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_weight.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_weight.py index 629b98dc8e4..a1a53b99dd5 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="layout.ternary.aaxis.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.ternary.aaxis.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/__init__.py index 0fafe618243..e367393f9dd 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._uirevision import UirevisionValidator from ._title import TitleValidator @@ -45,51 +44,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._uirevision.UirevisionValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showline.ShowlineValidator", - "._showgrid.ShowgridValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._min.MinValidator", - "._linewidth.LinewidthValidator", - "._linecolor.LinecolorValidator", - "._layer.LayerValidator", - "._labelalias.LabelaliasValidator", - "._hoverformat.HoverformatValidator", - "._gridwidth.GridwidthValidator", - "._griddash.GriddashValidator", - "._gridcolor.GridcolorValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._color.ColorValidator", - ], + ['._uirevision.UirevisionValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showline.ShowlineValidator', '._showgrid.ShowgridValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._min.MinValidator', '._linewidth.LinewidthValidator', '._linecolor.LinecolorValidator', '._layer.LayerValidator', '._labelalias.LabelaliasValidator', '._hoverformat.HoverformatValidator', '._gridwidth.GridwidthValidator', '._griddash.GriddashValidator', '._gridcolor.GridcolorValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_color.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_color.py index 81f4118614b..e9c76d2fdb3 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_color.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.ternary.baxis", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.ternary.baxis', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_dtick.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_dtick.py index cc8e71bc7b1..4e80364ca25 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_dtick.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="layout.ternary.baxis", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='layout.ternary.baxis', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_exponentformat.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_exponentformat.py index 7a8833f6dc5..f6409c91c4a 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_exponentformat.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="exponentformat", parent_name="layout.ternary.baxis", **kwargs - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='layout.ternary.baxis', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_gridcolor.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_gridcolor.py index 4b8e97783d1..9b675f3595c 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_gridcolor.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_gridcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="gridcolor", parent_name="layout.ternary.baxis", **kwargs - ): - super(GridcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='gridcolor', + parent_name='layout.ternary.baxis', + **kwargs): + super(GridcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_griddash.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_griddash.py index 5212538f670..401a3c1f8d2 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_griddash.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_griddash.py @@ -1,16 +1,14 @@ -import _plotly_utils.basevalidators -class GriddashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__( - self, plotly_name="griddash", parent_name="layout.ternary.baxis", **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, - ) +import _plotly_utils.basevalidators as _bv + + +class GriddashValidator(_bv.DashValidator): + def __init__(self, plotly_name='griddash', + parent_name='layout.ternary.baxis', + **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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_gridwidth.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_gridwidth.py index 546c2891cef..8e215f2b972 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_gridwidth.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_gridwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="gridwidth", parent_name="layout.ternary.baxis", **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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='gridwidth', + parent_name='layout.ternary.baxis', + **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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_hoverformat.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_hoverformat.py index 6bfd37b2264..374c55b1c3a 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_hoverformat.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_hoverformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="hoverformat", parent_name="layout.ternary.baxis", **kwargs - ): - super(HoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='hoverformat', + parent_name='layout.ternary.baxis', + **kwargs): + super(HoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_labelalias.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_labelalias.py index d76024f8e02..6837b83b5ad 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_labelalias.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="layout.ternary.baxis", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='layout.ternary.baxis', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_layer.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_layer.py index e18dcf19e50..c2495934b17 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_layer.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_layer.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="layer", parent_name="layout.ternary.baxis", **kwargs - ): - super(LayerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["above traces", "below traces"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LayerValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='layer', + parent_name='layout.ternary.baxis', + **kwargs): + super(LayerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['above traces', 'below traces']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_linecolor.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_linecolor.py index 1db6adbb3a6..ce7a592041a 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_linecolor.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_linecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="linecolor", parent_name="layout.ternary.baxis", **kwargs - ): - super(LinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='linecolor', + parent_name='layout.ternary.baxis', + **kwargs): + super(LinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_linewidth.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_linewidth.py index 2ae4c65cbd3..02c39fa71a3 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_linewidth.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_linewidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="linewidth", parent_name="layout.ternary.baxis", **kwargs - ): - super(LinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='linewidth', + parent_name='layout.ternary.baxis', + **kwargs): + super(LinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_min.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_min.py index 90ec0786385..251c1eeb824 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_min.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_min.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="min", parent_name="layout.ternary.baxis", **kwargs): - super(MinValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinValidator(_bv.NumberValidator): + def __init__(self, plotly_name='min', + parent_name='layout.ternary.baxis', + **kwargs): + super(MinValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_minexponent.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_minexponent.py index 142086b3e57..cddf7e8a250 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_minexponent.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="layout.ternary.baxis", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='layout.ternary.baxis', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_nticks.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_nticks.py index 23c4d8d345a..9ea8f8b2f9d 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_nticks.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="layout.ternary.baxis", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='layout.ternary.baxis', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_separatethousands.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_separatethousands.py index f3512096d9a..17f78604ec7 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="layout.ternary.baxis", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='layout.ternary.baxis', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_showexponent.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_showexponent.py index 445dd5f5ec9..7c0b6a83f0c 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_showexponent.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="layout.ternary.baxis", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='layout.ternary.baxis', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_showgrid.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_showgrid.py index a02196bbf83..7842e455955 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_showgrid.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_showgrid.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showgrid", parent_name="layout.ternary.baxis", **kwargs - ): - super(ShowgridValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowgridValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showgrid', + parent_name='layout.ternary.baxis', + **kwargs): + super(ShowgridValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_showline.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_showline.py index 7b86bb76b5c..aeb99e9584c 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_showline.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_showline.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showline", parent_name="layout.ternary.baxis", **kwargs - ): - super(ShowlineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowlineValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showline', + parent_name='layout.ternary.baxis', + **kwargs): + super(ShowlineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_showticklabels.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_showticklabels.py index 922f00c49e5..2f02fc30951 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_showticklabels.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showticklabels", parent_name="layout.ternary.baxis", **kwargs - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='layout.ternary.baxis', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_showtickprefix.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_showtickprefix.py index 6f57deed79c..92726f57978 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_showtickprefix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showtickprefix", parent_name="layout.ternary.baxis", **kwargs - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='layout.ternary.baxis', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_showticksuffix.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_showticksuffix.py index 633a125f7eb..9e9da4e496b 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_showticksuffix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showticksuffix", parent_name="layout.ternary.baxis", **kwargs - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='layout.ternary.baxis', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tick0.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tick0.py index 011aad01bc3..be17aa4315d 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tick0.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="layout.ternary.baxis", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='layout.ternary.baxis', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickangle.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickangle.py index 9bf3e01ffa1..a04fe5ef105 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickangle.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="layout.ternary.baxis", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='layout.ternary.baxis', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickcolor.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickcolor.py index 7352b2e57cb..2566eb80e75 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="layout.ternary.baxis", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='layout.ternary.baxis', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickfont.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickfont.py index dc9f1d74da5..d2abb414073 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickfont.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="layout.ternary.baxis", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='layout.ternary.baxis', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickformat.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickformat.py index 4944fcb3c1e..bf8d009ed26 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickformat.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="layout.ternary.baxis", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='layout.ternary.baxis', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickformatstopdefaults.py index 4e5064d76bc..261cc35a1d5 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="layout.ternary.baxis", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='layout.ternary.baxis', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickformatstops.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickformatstops.py index 345d97a8597..3ec92a3ac98 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="layout.ternary.baxis", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='layout.ternary.baxis', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_ticklabelstep.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_ticklabelstep.py index d51c479b625..c9de0f5d63a 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_ticklabelstep.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="ticklabelstep", parent_name="layout.ternary.baxis", **kwargs - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='layout.ternary.baxis', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_ticklen.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_ticklen.py index be3d81e24e9..898cf1ad0e3 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_ticklen.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="layout.ternary.baxis", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='layout.ternary.baxis', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickmode.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickmode.py index 4049721008f..2ff13664859 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickmode.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="layout.ternary.baxis", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='layout.ternary.baxis', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickprefix.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickprefix.py index 4f9a8faec67..16cd1784d44 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="layout.ternary.baxis", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='layout.ternary.baxis', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_ticks.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_ticks.py index 9b2e433d7a0..66e090946b5 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_ticks.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="layout.ternary.baxis", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='layout.ternary.baxis', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_ticksuffix.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_ticksuffix.py index e65decd24c6..6bc1f331615 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="layout.ternary.baxis", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='layout.ternary.baxis', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_ticktext.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_ticktext.py index ee294edb738..91d54271ef6 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_ticktext.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="layout.ternary.baxis", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='layout.ternary.baxis', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_ticktextsrc.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_ticktextsrc.py index 4ba97c3b0ad..545f1af79b5 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="layout.ternary.baxis", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='layout.ternary.baxis', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickvals.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickvals.py index eb508a95051..65b51cbab05 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickvals.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="layout.ternary.baxis", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='layout.ternary.baxis', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickvalssrc.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickvalssrc.py index 3d36fade33c..43435fe4317 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="layout.ternary.baxis", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='layout.ternary.baxis', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickwidth.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickwidth.py index fb2186d69ef..a94d019a6b8 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="layout.ternary.baxis", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='layout.ternary.baxis', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_title.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_title.py index aa188ea51cc..a24e3a70f8d 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_title.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_title.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="layout.ternary.baxis", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this axis' title font. - text - Sets the title of this axis. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='layout.ternary.baxis', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_uirevision.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_uirevision.py index 6dd2a8ff666..38ee31a0da2 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_uirevision.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_uirevision.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="uirevision", parent_name="layout.ternary.baxis", **kwargs - ): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='layout.ternary.baxis', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_color.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_color.py index 1c8db02dcd9..bfd0714dc2b 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.ternary.baxis.tickfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.ternary.baxis.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_family.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_family.py index 02eb706aba3..663a8c13d1c 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="layout.ternary.baxis.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.ternary.baxis.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_lineposition.py index 64936830139..9e888ff5055 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.ternary.baxis.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.ternary.baxis.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_shadow.py index dafe10d05d8..1f6a6bdd384 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="layout.ternary.baxis.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.ternary.baxis.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_size.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_size.py index 04bbe0731a7..3ffa3a7c38e 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="layout.ternary.baxis.tickfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.ternary.baxis.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_style.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_style.py index 0768a24db45..b461fd220f4 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="layout.ternary.baxis.tickfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.ternary.baxis.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_textcase.py index f5e71e0ee89..21e88f8d8d7 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="layout.ternary.baxis.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.ternary.baxis.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_variant.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_variant.py index 7fabe78bffd..1dc21d342d9 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="layout.ternary.baxis.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.ternary.baxis.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_weight.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_weight.py index cf72a5d20b0..b8d96b978e8 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="layout.ternary.baxis.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.ternary.baxis.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickformatstop/_dtickrange.py index b60aceedcc6..2955421904e 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="layout.ternary.baxis.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - items=kwargs.pop( - "items", - [ - {"editType": "plot", "valType": "any"}, - {"editType": "plot", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='layout.ternary.baxis.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + items=kwargs.pop('items', [{'editType': 'plot', 'valType': 'any'}, {'editType': 'plot', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickformatstop/_enabled.py index edd5f951d53..5c0c34701ea 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="layout.ternary.baxis.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='layout.ternary.baxis.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickformatstop/_name.py index 8eea5666393..709813df658 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="layout.ternary.baxis.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='layout.ternary.baxis.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickformatstop/_templateitemname.py index 6307cc6a8b1..d6bec670395 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="layout.ternary.baxis.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='layout.ternary.baxis.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickformatstop/_value.py index 80b6df39bd5..5e8f27cb664 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="layout.ternary.baxis.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='layout.ternary.baxis.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/_font.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/_font.py index f7424b2798f..dbc2c1bd47b 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/_font.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="layout.ternary.baxis.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='layout.ternary.baxis.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/_text.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/_text.py index 9d4dd5118af..f27aa6cdf0a 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/_text.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="layout.ternary.baxis.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='layout.ternary.baxis.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_color.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_color.py index c819cc912e4..7baf5273363 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="layout.ternary.baxis.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.ternary.baxis.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_family.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_family.py index f5e6eddaab4..ef6e9531f92 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="layout.ternary.baxis.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.ternary.baxis.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_lineposition.py index 621d852b3b7..27b9ce8c77c 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.ternary.baxis.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.ternary.baxis.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_shadow.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_shadow.py index 40062e44c30..51859a9c6ed 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="layout.ternary.baxis.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.ternary.baxis.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_size.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_size.py index 565cfb63605..25858beffca 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="layout.ternary.baxis.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.ternary.baxis.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_style.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_style.py index 168d5658ae9..0eec9c73efd 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="layout.ternary.baxis.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.ternary.baxis.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_textcase.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_textcase.py index 2cfa5b44adf..c114430f3af 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="layout.ternary.baxis.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.ternary.baxis.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_variant.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_variant.py index 5c420d3a061..016474896aa 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="layout.ternary.baxis.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.ternary.baxis.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_weight.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_weight.py index 076b993189e..c555331b4e0 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="layout.ternary.baxis.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.ternary.baxis.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/__init__.py index 0fafe618243..e367393f9dd 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._uirevision import UirevisionValidator from ._title import TitleValidator @@ -45,51 +44,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._uirevision.UirevisionValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showline.ShowlineValidator", - "._showgrid.ShowgridValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._min.MinValidator", - "._linewidth.LinewidthValidator", - "._linecolor.LinecolorValidator", - "._layer.LayerValidator", - "._labelalias.LabelaliasValidator", - "._hoverformat.HoverformatValidator", - "._gridwidth.GridwidthValidator", - "._griddash.GriddashValidator", - "._gridcolor.GridcolorValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._color.ColorValidator", - ], + ['._uirevision.UirevisionValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showline.ShowlineValidator', '._showgrid.ShowgridValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._min.MinValidator', '._linewidth.LinewidthValidator', '._linecolor.LinecolorValidator', '._layer.LayerValidator', '._labelalias.LabelaliasValidator', '._hoverformat.HoverformatValidator', '._gridwidth.GridwidthValidator', '._griddash.GriddashValidator', '._gridcolor.GridcolorValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_color.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_color.py index 445c83b07f2..8b4f0f96cce 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_color.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.ternary.caxis", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.ternary.caxis', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_dtick.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_dtick.py index 5b31a874b9c..ccc0525deab 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_dtick.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="layout.ternary.caxis", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='layout.ternary.caxis', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_exponentformat.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_exponentformat.py index 5fe6734daee..a5529417efa 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_exponentformat.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="exponentformat", parent_name="layout.ternary.caxis", **kwargs - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='layout.ternary.caxis', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_gridcolor.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_gridcolor.py index 444f930ba97..3df0b9c660c 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_gridcolor.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_gridcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="gridcolor", parent_name="layout.ternary.caxis", **kwargs - ): - super(GridcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='gridcolor', + parent_name='layout.ternary.caxis', + **kwargs): + super(GridcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_griddash.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_griddash.py index 6336c362d29..d245e1b3f97 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_griddash.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_griddash.py @@ -1,16 +1,14 @@ -import _plotly_utils.basevalidators -class GriddashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__( - self, plotly_name="griddash", parent_name="layout.ternary.caxis", **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, - ) +import _plotly_utils.basevalidators as _bv + + +class GriddashValidator(_bv.DashValidator): + def __init__(self, plotly_name='griddash', + parent_name='layout.ternary.caxis', + **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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_gridwidth.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_gridwidth.py index 77178201e29..35978ea7342 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_gridwidth.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_gridwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="gridwidth", parent_name="layout.ternary.caxis", **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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='gridwidth', + parent_name='layout.ternary.caxis', + **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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_hoverformat.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_hoverformat.py index df67ce269e5..b21e2d230fb 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_hoverformat.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_hoverformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="hoverformat", parent_name="layout.ternary.caxis", **kwargs - ): - super(HoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='hoverformat', + parent_name='layout.ternary.caxis', + **kwargs): + super(HoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_labelalias.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_labelalias.py index 5211c225ce9..ca661a0d2f5 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_labelalias.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="layout.ternary.caxis", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='layout.ternary.caxis', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_layer.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_layer.py index 71472ff37b4..9c62f4b73e9 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_layer.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_layer.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="layer", parent_name="layout.ternary.caxis", **kwargs - ): - super(LayerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["above traces", "below traces"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LayerValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='layer', + parent_name='layout.ternary.caxis', + **kwargs): + super(LayerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['above traces', 'below traces']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_linecolor.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_linecolor.py index c21fd97b6ca..980e5c3ec77 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_linecolor.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_linecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="linecolor", parent_name="layout.ternary.caxis", **kwargs - ): - super(LinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='linecolor', + parent_name='layout.ternary.caxis', + **kwargs): + super(LinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_linewidth.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_linewidth.py index f2f88f69bce..1d15941170f 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_linewidth.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_linewidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="linewidth", parent_name="layout.ternary.caxis", **kwargs - ): - super(LinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='linewidth', + parent_name='layout.ternary.caxis', + **kwargs): + super(LinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_min.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_min.py index 19ca2f04be9..79a51c2a170 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_min.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_min.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="min", parent_name="layout.ternary.caxis", **kwargs): - super(MinValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinValidator(_bv.NumberValidator): + def __init__(self, plotly_name='min', + parent_name='layout.ternary.caxis', + **kwargs): + super(MinValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_minexponent.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_minexponent.py index b9b0b50d5f3..5b6095081b6 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_minexponent.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="layout.ternary.caxis", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='layout.ternary.caxis', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_nticks.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_nticks.py index 5c5b0fc32ed..21d2631f5ad 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_nticks.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="layout.ternary.caxis", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='layout.ternary.caxis', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_separatethousands.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_separatethousands.py index 58113c40db7..b97978fab3d 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="layout.ternary.caxis", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='layout.ternary.caxis', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_showexponent.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_showexponent.py index 89d668e881a..b7023ed2f4f 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_showexponent.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="layout.ternary.caxis", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='layout.ternary.caxis', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_showgrid.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_showgrid.py index 4d3d8f4e91d..6032eaa1b55 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_showgrid.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_showgrid.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showgrid", parent_name="layout.ternary.caxis", **kwargs - ): - super(ShowgridValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowgridValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showgrid', + parent_name='layout.ternary.caxis', + **kwargs): + super(ShowgridValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_showline.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_showline.py index c8e4d1cb7a9..a900ad1b296 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_showline.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_showline.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showline", parent_name="layout.ternary.caxis", **kwargs - ): - super(ShowlineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowlineValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showline', + parent_name='layout.ternary.caxis', + **kwargs): + super(ShowlineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_showticklabels.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_showticklabels.py index 4149cd6027e..765ddde6a87 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_showticklabels.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showticklabels", parent_name="layout.ternary.caxis", **kwargs - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='layout.ternary.caxis', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_showtickprefix.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_showtickprefix.py index 1c214423d78..7a14a55549a 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_showtickprefix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showtickprefix", parent_name="layout.ternary.caxis", **kwargs - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='layout.ternary.caxis', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_showticksuffix.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_showticksuffix.py index 77db3984711..aa214ed2b78 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_showticksuffix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showticksuffix", parent_name="layout.ternary.caxis", **kwargs - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='layout.ternary.caxis', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tick0.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tick0.py index 698fa9479c8..8252f376fcf 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tick0.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="layout.ternary.caxis", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='layout.ternary.caxis', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickangle.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickangle.py index 9572f41751a..a08f9c42960 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickangle.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="layout.ternary.caxis", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='layout.ternary.caxis', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickcolor.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickcolor.py index 0b2ede38d67..2a1de5bc7ef 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="layout.ternary.caxis", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='layout.ternary.caxis', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickfont.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickfont.py index 4095c0366c9..83a3f37389a 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickfont.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="layout.ternary.caxis", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='layout.ternary.caxis', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickformat.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickformat.py index 5c19bf57ae0..e31da28942e 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickformat.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="layout.ternary.caxis", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='layout.ternary.caxis', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickformatstopdefaults.py index 42fc6530d91..df948ece1b5 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="layout.ternary.caxis", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='layout.ternary.caxis', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickformatstops.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickformatstops.py index 2b0e2415fca..0553ce0fd5c 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="layout.ternary.caxis", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='layout.ternary.caxis', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_ticklabelstep.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_ticklabelstep.py index bbcb7a847a5..6371dd4d4d0 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_ticklabelstep.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="ticklabelstep", parent_name="layout.ternary.caxis", **kwargs - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='layout.ternary.caxis', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_ticklen.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_ticklen.py index 0216e825f04..801641dc13a 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_ticklen.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="layout.ternary.caxis", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='layout.ternary.caxis', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickmode.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickmode.py index f83c3d11996..95fef39cee6 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickmode.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="layout.ternary.caxis", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='layout.ternary.caxis', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickprefix.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickprefix.py index 1d4ac5e86b4..f368f1531a9 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="layout.ternary.caxis", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='layout.ternary.caxis', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_ticks.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_ticks.py index aaf601c9b88..fd21e374afa 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_ticks.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="layout.ternary.caxis", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='layout.ternary.caxis', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_ticksuffix.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_ticksuffix.py index e8424811357..29f82104e9b 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="layout.ternary.caxis", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='layout.ternary.caxis', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_ticktext.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_ticktext.py index 92f428cfd73..cd918150bc2 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_ticktext.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="layout.ternary.caxis", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='layout.ternary.caxis', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_ticktextsrc.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_ticktextsrc.py index 5ecdfb7003d..57316a650e1 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="layout.ternary.caxis", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='layout.ternary.caxis', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickvals.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickvals.py index 986ff5e3978..edb34afd790 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickvals.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="layout.ternary.caxis", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='layout.ternary.caxis', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickvalssrc.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickvalssrc.py index bb08253cfab..de779b2dd54 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="layout.ternary.caxis", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='layout.ternary.caxis', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickwidth.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickwidth.py index 4e1ecd81e36..04eb8684622 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="layout.ternary.caxis", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='layout.ternary.caxis', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_title.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_title.py index ce6321ecf13..cf8722b43b9 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_title.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_title.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="layout.ternary.caxis", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this axis' title font. - text - Sets the title of this axis. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='layout.ternary.caxis', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_uirevision.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_uirevision.py index 830d7e213c7..f34ed5923bc 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_uirevision.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_uirevision.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="uirevision", parent_name="layout.ternary.caxis", **kwargs - ): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='layout.ternary.caxis', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_color.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_color.py index 81b7dcb5461..3a9521403dc 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.ternary.caxis.tickfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.ternary.caxis.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_family.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_family.py index 4b4461e3d3a..412fc4fda61 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="layout.ternary.caxis.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.ternary.caxis.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_lineposition.py index 4961449b6c4..a9b27ceb90f 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.ternary.caxis.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.ternary.caxis.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_shadow.py index 1b4b69acd82..43aee2afcb4 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="layout.ternary.caxis.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.ternary.caxis.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_size.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_size.py index 8bcddbdd0f6..64251958f2c 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="layout.ternary.caxis.tickfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.ternary.caxis.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_style.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_style.py index 5ded3c244a5..ce8f6504cb5 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="layout.ternary.caxis.tickfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.ternary.caxis.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_textcase.py index acda7aaaaa8..a9ed5447515 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="layout.ternary.caxis.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.ternary.caxis.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_variant.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_variant.py index fc3e0983713..abd889fdd83 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="layout.ternary.caxis.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.ternary.caxis.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_weight.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_weight.py index f5bbc61a07e..8b5ad2abad4 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="layout.ternary.caxis.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.ternary.caxis.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickformatstop/_dtickrange.py index 985e7edc3af..33d9f19ec99 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="layout.ternary.caxis.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - items=kwargs.pop( - "items", - [ - {"editType": "plot", "valType": "any"}, - {"editType": "plot", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='layout.ternary.caxis.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + items=kwargs.pop('items', [{'editType': 'plot', 'valType': 'any'}, {'editType': 'plot', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickformatstop/_enabled.py index 1102a0996e3..8fd4c416bc9 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="layout.ternary.caxis.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='layout.ternary.caxis.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickformatstop/_name.py index 3a6ff074067..5a86864dcb6 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="layout.ternary.caxis.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='layout.ternary.caxis.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickformatstop/_templateitemname.py index dc4c665fc9c..25904a2e353 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="layout.ternary.caxis.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='layout.ternary.caxis.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickformatstop/_value.py index 80fced51dd7..d7d20b0d7f4 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="layout.ternary.caxis.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='layout.ternary.caxis.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/_font.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/_font.py index fb15481211f..aa0f28cd9a3 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/_font.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="layout.ternary.caxis.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='layout.ternary.caxis.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/_text.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/_text.py index 706481313ce..9a28b191b54 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/_text.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="layout.ternary.caxis.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='layout.ternary.caxis.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_color.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_color.py index cba638198b1..a042a29e1a7 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="layout.ternary.caxis.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.ternary.caxis.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_family.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_family.py index 4962500a293..6340ee84176 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="layout.ternary.caxis.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.ternary.caxis.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_lineposition.py index 163f871f732..6595e5b949e 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.ternary.caxis.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.ternary.caxis.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_shadow.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_shadow.py index 732dd3eda07..f5a15d6ac0e 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="layout.ternary.caxis.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.ternary.caxis.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_size.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_size.py index a104f3fd7ce..06d46cf4a4c 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="layout.ternary.caxis.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.ternary.caxis.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_style.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_style.py index af8ea85e861..ec836fdaa9f 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="layout.ternary.caxis.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.ternary.caxis.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_textcase.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_textcase.py index 99fb0d1804d..2c60383996e 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="layout.ternary.caxis.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.ternary.caxis.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_variant.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_variant.py index 0db41f3296f..fe3dd317d3e 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="layout.ternary.caxis.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.ternary.caxis.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_weight.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_weight.py index 48593222507..dffc65add18 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="layout.ternary.caxis.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.ternary.caxis.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/domain/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/domain/__init__.py index 67de5030d0a..705a2194402 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/domain/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._y import YValidator from ._x import XValidator @@ -8,14 +7,10 @@ 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", - ], + ['._y.YValidator', '._x.XValidator', '._row.RowValidator', '._column.ColumnValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/ternary/domain/_column.py b/packages/python/plotly/plotly/validators/layout/ternary/domain/_column.py index 2a69c44e313..ae15d0c7371 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/domain/_column.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/domain/_column.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="column", parent_name="layout.ternary.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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColumnValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='column', + parent_name='layout.ternary.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/domain/_row.py b/packages/python/plotly/plotly/validators/layout/ternary/domain/_row.py index 2322246b721..ff70451f759 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/domain/_row.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/domain/_row.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="row", parent_name="layout.ternary.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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RowValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='row', + parent_name='layout.ternary.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/domain/_x.py b/packages/python/plotly/plotly/validators/layout/ternary/domain/_x.py index 2ec412e51d7..1e748076127 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/domain/_x.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/domain/_x.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="x", parent_name="layout.ternary.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, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='x', + parent_name='layout.ternary.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/ternary/domain/_y.py b/packages/python/plotly/plotly/validators/layout/ternary/domain/_y.py index 0d45bc53a45..367a34de32e 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/domain/_y.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/domain/_y.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="y", parent_name="layout.ternary.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, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='y', + parent_name='layout.ternary.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/__init__.py b/packages/python/plotly/plotly/validators/layout/title/__init__.py index ff0523d6807..b48ab6b05c2 100644 --- a/packages/python/plotly/plotly/validators/layout/title/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/title/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._yanchor import YanchorValidator @@ -15,21 +14,10 @@ from ._automargin import AutomarginValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._text.TextValidator", - "._subtitle.SubtitleValidator", - "._pad.PadValidator", - "._font.FontValidator", - "._automargin.AutomarginValidator", - ], + ['._yref.YrefValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._text.TextValidator', '._subtitle.SubtitleValidator', '._pad.PadValidator', '._font.FontValidator', '._automargin.AutomarginValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/title/_automargin.py b/packages/python/plotly/plotly/validators/layout/title/_automargin.py index 54acf090f01..c6a17a0f220 100644 --- a/packages/python/plotly/plotly/validators/layout/title/_automargin.py +++ b/packages/python/plotly/plotly/validators/layout/title/_automargin.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AutomarginValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="automargin", parent_name="layout.title", **kwargs): - super(AutomarginValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutomarginValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='automargin', + parent_name='layout.title', + **kwargs): + super(AutomarginValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/_font.py b/packages/python/plotly/plotly/validators/layout/title/_font.py index 748bf7a20df..3dfd16d7d53 100644 --- a/packages/python/plotly/plotly/validators/layout/title/_font.py +++ b/packages/python/plotly/plotly/validators/layout/title/_font.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="layout.title", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='layout.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/_pad.py b/packages/python/plotly/plotly/validators/layout/title/_pad.py index 4a2ecbc678a..950aaa8c863 100644 --- a/packages/python/plotly/plotly/validators/layout/title/_pad.py +++ b/packages/python/plotly/plotly/validators/layout/title/_pad.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class PadValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="pad", parent_name="layout.title", **kwargs): - super(PadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Pad"), - data_docs=kwargs.pop( - "data_docs", - """ - b - The amount of padding (in px) along the bottom - of the component. - l - The amount of padding (in px) on the left side - of the component. - r - The amount of padding (in px) on the right side - of the component. - t - The amount of padding (in px) along the top of - the component. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class PadValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='pad', + parent_name='layout.title', + **kwargs): + super(PadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Pad'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/_subtitle.py b/packages/python/plotly/plotly/validators/layout/title/_subtitle.py index b74d1474cb8..14b69b3719c 100644 --- a/packages/python/plotly/plotly/validators/layout/title/_subtitle.py +++ b/packages/python/plotly/plotly/validators/layout/title/_subtitle.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class SubtitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="subtitle", parent_name="layout.title", **kwargs): - super(SubtitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Subtitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets the subtitle font. - text - Sets the plot's subtitle. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SubtitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='subtitle', + parent_name='layout.title', + **kwargs): + super(SubtitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Subtitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/_text.py b/packages/python/plotly/plotly/validators/layout/title/_text.py index 306c672976e..1fab0cb2486 100644 --- a/packages/python/plotly/plotly/validators/layout/title/_text.py +++ b/packages/python/plotly/plotly/validators/layout/title/_text.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="layout.title", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='layout.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/_x.py b/packages/python/plotly/plotly/validators/layout/title/_x.py index 72f5e357b86..461dbef1bfb 100644 --- a/packages/python/plotly/plotly/validators/layout/title/_x.py +++ b/packages/python/plotly/plotly/validators/layout/title/_x.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x", parent_name="layout.title", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='layout.title', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/_xanchor.py b/packages/python/plotly/plotly/validators/layout/title/_xanchor.py index 8d1cd362b57..8ce8f8dcdf3 100644 --- a/packages/python/plotly/plotly/validators/layout/title/_xanchor.py +++ b/packages/python/plotly/plotly/validators/layout/title/_xanchor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xanchor", parent_name="layout.title", **kwargs): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - values=kwargs.pop("values", ["auto", "left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='layout.title', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + values=kwargs.pop('values', ['auto', 'left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/_xref.py b/packages/python/plotly/plotly/validators/layout/title/_xref.py index e1ce968ed4c..0475e51830e 100644 --- a/packages/python/plotly/plotly/validators/layout/title/_xref.py +++ b/packages/python/plotly/plotly/validators/layout/title/_xref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xref", parent_name="layout.title", **kwargs): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='layout.title', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/_y.py b/packages/python/plotly/plotly/validators/layout/title/_y.py index 9a184bfae81..49652bd63ba 100644 --- a/packages/python/plotly/plotly/validators/layout/title/_y.py +++ b/packages/python/plotly/plotly/validators/layout/title/_y.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y", parent_name="layout.title", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='layout.title', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/_yanchor.py b/packages/python/plotly/plotly/validators/layout/title/_yanchor.py index 3a2e60fd155..118a1c74ad2 100644 --- a/packages/python/plotly/plotly/validators/layout/title/_yanchor.py +++ b/packages/python/plotly/plotly/validators/layout/title/_yanchor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yanchor", parent_name="layout.title", **kwargs): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - values=kwargs.pop("values", ["auto", "top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='layout.title', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + values=kwargs.pop('values', ['auto', 'top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/_yref.py b/packages/python/plotly/plotly/validators/layout/title/_yref.py index 3e9523fe0db..5769bad2985 100644 --- a/packages/python/plotly/plotly/validators/layout/title/_yref.py +++ b/packages/python/plotly/plotly/validators/layout/title/_yref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yref", parent_name="layout.title", **kwargs): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='layout.title', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/font/__init__.py b/packages/python/plotly/plotly/validators/layout/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/title/font/_color.py b/packages/python/plotly/plotly/validators/layout/title/font/_color.py index e5c8c451c14..30c00798feb 100644 --- a/packages/python/plotly/plotly/validators/layout/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/layout/title/font/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="layout.title.font", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/font/_family.py b/packages/python/plotly/plotly/validators/layout/title/font/_family.py index 33803083d53..328fe561c77 100644 --- a/packages/python/plotly/plotly/validators/layout/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/layout/title/font/_family.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="family", parent_name="layout.title.font", **kwargs): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/layout/title/font/_lineposition.py index bbbbea590f2..e1575869dde 100644 --- a/packages/python/plotly/plotly/validators/layout/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/title/font/_lineposition.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="layout.title.font", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/font/_shadow.py b/packages/python/plotly/plotly/validators/layout/title/font/_shadow.py index 309cddd429c..29a2b5660f0 100644 --- a/packages/python/plotly/plotly/validators/layout/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/title/font/_shadow.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="shadow", parent_name="layout.title.font", **kwargs): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/font/_size.py b/packages/python/plotly/plotly/validators/layout/title/font/_size.py index e53e199f324..5928dfb9d2a 100644 --- a/packages/python/plotly/plotly/validators/layout/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/layout/title/font/_size.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="layout.title.font", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/font/_style.py b/packages/python/plotly/plotly/validators/layout/title/font/_style.py index 881f04c4998..7e9f1e15496 100644 --- a/packages/python/plotly/plotly/validators/layout/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/layout/title/font/_style.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="style", parent_name="layout.title.font", **kwargs): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/font/_textcase.py b/packages/python/plotly/plotly/validators/layout/title/font/_textcase.py index 2d01a361ebf..f6209184d68 100644 --- a/packages/python/plotly/plotly/validators/layout/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/title/font/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="layout.title.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/font/_variant.py b/packages/python/plotly/plotly/validators/layout/title/font/_variant.py index 0aab05197a9..d7057b3be23 100644 --- a/packages/python/plotly/plotly/validators/layout/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/title/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="layout.title.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/font/_weight.py b/packages/python/plotly/plotly/validators/layout/title/font/_weight.py index 4a05d3ac7a3..6dd4c596a7f 100644 --- a/packages/python/plotly/plotly/validators/layout/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/title/font/_weight.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="weight", parent_name="layout.title.font", **kwargs): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/pad/__init__.py b/packages/python/plotly/plotly/validators/layout/title/pad/__init__.py index 04e64dbc5ee..3fc9abf4579 100644 --- a/packages/python/plotly/plotly/validators/layout/title/pad/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/title/pad/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._t import TValidator from ._r import RValidator @@ -8,9 +7,10 @@ from ._b import BValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._t.TValidator", "._r.RValidator", "._l.LValidator", "._b.BValidator"], + ['._t.TValidator', '._r.RValidator', '._l.LValidator', '._b.BValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/title/pad/_b.py b/packages/python/plotly/plotly/validators/layout/title/pad/_b.py index fff09d801b1..6d58153947c 100644 --- a/packages/python/plotly/plotly/validators/layout/title/pad/_b.py +++ b/packages/python/plotly/plotly/validators/layout/title/pad/_b.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="b", parent_name="layout.title.pad", **kwargs): - super(BValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BValidator(_bv.NumberValidator): + def __init__(self, plotly_name='b', + parent_name='layout.title.pad', + **kwargs): + super(BValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/pad/_l.py b/packages/python/plotly/plotly/validators/layout/title/pad/_l.py index 75a1a7e2ad0..9d135647ac6 100644 --- a/packages/python/plotly/plotly/validators/layout/title/pad/_l.py +++ b/packages/python/plotly/plotly/validators/layout/title/pad/_l.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="l", parent_name="layout.title.pad", **kwargs): - super(LValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LValidator(_bv.NumberValidator): + def __init__(self, plotly_name='l', + parent_name='layout.title.pad', + **kwargs): + super(LValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/pad/_r.py b/packages/python/plotly/plotly/validators/layout/title/pad/_r.py index afa1a1fe5ed..5df0a4bd7a9 100644 --- a/packages/python/plotly/plotly/validators/layout/title/pad/_r.py +++ b/packages/python/plotly/plotly/validators/layout/title/pad/_r.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class RValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="r", parent_name="layout.title.pad", **kwargs): - super(RValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RValidator(_bv.NumberValidator): + def __init__(self, plotly_name='r', + parent_name='layout.title.pad', + **kwargs): + super(RValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/pad/_t.py b/packages/python/plotly/plotly/validators/layout/title/pad/_t.py index 53a3f666e46..91995d3f727 100644 --- a/packages/python/plotly/plotly/validators/layout/title/pad/_t.py +++ b/packages/python/plotly/plotly/validators/layout/title/pad/_t.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="t", parent_name="layout.title.pad", **kwargs): - super(TValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TValidator(_bv.NumberValidator): + def __init__(self, plotly_name='t', + parent_name='layout.title.pad', + **kwargs): + super(TValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/subtitle/__init__.py b/packages/python/plotly/plotly/validators/layout/title/subtitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/layout/title/subtitle/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/title/subtitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/title/subtitle/_font.py b/packages/python/plotly/plotly/validators/layout/title/subtitle/_font.py index 7c6da318c8a..7b3983f5905 100644 --- a/packages/python/plotly/plotly/validators/layout/title/subtitle/_font.py +++ b/packages/python/plotly/plotly/validators/layout/title/subtitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="layout.title.subtitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='layout.title.subtitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/subtitle/_text.py b/packages/python/plotly/plotly/validators/layout/title/subtitle/_text.py index 9b10ca7c2ac..154c4f232ed 100644 --- a/packages/python/plotly/plotly/validators/layout/title/subtitle/_text.py +++ b/packages/python/plotly/plotly/validators/layout/title/subtitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="layout.title.subtitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='layout.title.subtitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/subtitle/font/__init__.py b/packages/python/plotly/plotly/validators/layout/title/subtitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/title/subtitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/title/subtitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_color.py b/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_color.py index 60e321f2e9d..1cccf0db082 100644 --- a/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.title.subtitle.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.title.subtitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_family.py b/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_family.py index a5ce0803f21..47f4e14f0d5 100644 --- a/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="layout.title.subtitle.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.title.subtitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_lineposition.py index ec92d350f17..28ffe98ce89 100644 --- a/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.title.subtitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.title.subtitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_shadow.py b/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_shadow.py index 4587620448d..844ddf3aed2 100644 --- a/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="layout.title.subtitle.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.title.subtitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_size.py b/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_size.py index a43ed1d68c6..89aa07972ad 100644 --- a/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="layout.title.subtitle.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.title.subtitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_style.py b/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_style.py index 7515f8df6fb..4c2cbd0db65 100644 --- a/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="layout.title.subtitle.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.title.subtitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_textcase.py b/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_textcase.py index e857836cf12..a5128dbbed4 100644 --- a/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="layout.title.subtitle.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.title.subtitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_variant.py b/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_variant.py index 5ae59c2fc69..97aec2273e2 100644 --- a/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="layout.title.subtitle.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.title.subtitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_weight.py b/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_weight.py index dfc8934c05f..ae8611d173c 100644 --- a/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/title/subtitle/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="layout.title.subtitle.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.title.subtitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/transition/__init__.py b/packages/python/plotly/plotly/validators/layout/transition/__init__.py index 07de6dadaf7..945cd07d6db 100644 --- a/packages/python/plotly/plotly/validators/layout/transition/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/transition/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._ordering import OrderingValidator from ._easing import EasingValidator from ._duration import DurationValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._ordering.OrderingValidator", - "._easing.EasingValidator", - "._duration.DurationValidator", - ], + ['._ordering.OrderingValidator', '._easing.EasingValidator', '._duration.DurationValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/transition/_duration.py b/packages/python/plotly/plotly/validators/layout/transition/_duration.py index 7c46ce987ff..e119d8f9b0c 100644 --- a/packages/python/plotly/plotly/validators/layout/transition/_duration.py +++ b/packages/python/plotly/plotly/validators/layout/transition/_duration.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DurationValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="duration", parent_name="layout.transition", **kwargs - ): - super(DurationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DurationValidator(_bv.NumberValidator): + def __init__(self, plotly_name='duration', + parent_name='layout.transition', + **kwargs): + super(DurationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/transition/_easing.py b/packages/python/plotly/plotly/validators/layout/transition/_easing.py index ccad9edea2e..d9de06ec7d4 100644 --- a/packages/python/plotly/plotly/validators/layout/transition/_easing.py +++ b/packages/python/plotly/plotly/validators/layout/transition/_easing.py @@ -1,52 +1,14 @@ -import _plotly_utils.basevalidators -class EasingValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="easing", parent_name="layout.transition", **kwargs): - super(EasingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "linear", - "quad", - "cubic", - "sin", - "exp", - "circle", - "elastic", - "back", - "bounce", - "linear-in", - "quad-in", - "cubic-in", - "sin-in", - "exp-in", - "circle-in", - "elastic-in", - "back-in", - "bounce-in", - "linear-out", - "quad-out", - "cubic-out", - "sin-out", - "exp-out", - "circle-out", - "elastic-out", - "back-out", - "bounce-out", - "linear-in-out", - "quad-in-out", - "cubic-in-out", - "sin-in-out", - "exp-in-out", - "circle-in-out", - "elastic-in-out", - "back-in-out", - "bounce-in-out", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EasingValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='easing', + parent_name='layout.transition', + **kwargs): + super(EasingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['linear', 'quad', 'cubic', 'sin', 'exp', 'circle', 'elastic', 'back', 'bounce', 'linear-in', 'quad-in', 'cubic-in', 'sin-in', 'exp-in', 'circle-in', 'elastic-in', 'back-in', 'bounce-in', 'linear-out', 'quad-out', 'cubic-out', 'sin-out', 'exp-out', 'circle-out', 'elastic-out', 'back-out', 'bounce-out', 'linear-in-out', 'quad-in-out', 'cubic-in-out', 'sin-in-out', 'exp-in-out', 'circle-in-out', 'elastic-in-out', 'back-in-out', 'bounce-in-out']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/transition/_ordering.py b/packages/python/plotly/plotly/validators/layout/transition/_ordering.py index c2bac1855cb..b7b241c3022 100644 --- a/packages/python/plotly/plotly/validators/layout/transition/_ordering.py +++ b/packages/python/plotly/plotly/validators/layout/transition/_ordering.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrderingValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ordering", parent_name="layout.transition", **kwargs - ): - super(OrderingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["layout first", "traces first"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrderingValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ordering', + parent_name='layout.transition', + **kwargs): + super(OrderingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['layout first', 'traces first']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/uniformtext/__init__.py b/packages/python/plotly/plotly/validators/layout/uniformtext/__init__.py index 8ddff597fe3..5ecc3523d1c 100644 --- a/packages/python/plotly/plotly/validators/layout/uniformtext/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/uniformtext/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._mode import ModeValidator from ._minsize import MinsizeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._mode.ModeValidator", "._minsize.MinsizeValidator"] + __name__, + [], + ['._mode.ModeValidator', '._minsize.MinsizeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/uniformtext/_minsize.py b/packages/python/plotly/plotly/validators/layout/uniformtext/_minsize.py index 69c37d35525..0a8c5ae4a9c 100644 --- a/packages/python/plotly/plotly/validators/layout/uniformtext/_minsize.py +++ b/packages/python/plotly/plotly/validators/layout/uniformtext/_minsize.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinsizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minsize", parent_name="layout.uniformtext", **kwargs - ): - super(MinsizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinsizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minsize', + parent_name='layout.uniformtext', + **kwargs): + super(MinsizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/uniformtext/_mode.py b/packages/python/plotly/plotly/validators/layout/uniformtext/_mode.py index 85b70ef0824..4728d1a6650 100644 --- a/packages/python/plotly/plotly/validators/layout/uniformtext/_mode.py +++ b/packages/python/plotly/plotly/validators/layout/uniformtext/_mode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ModeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="mode", parent_name="layout.uniformtext", **kwargs): - super(ModeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", [False, "hide", "show"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ModeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='mode', + parent_name='layout.uniformtext', + **kwargs): + super(ModeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', [False, 'hide', 'show']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/__init__.py b/packages/python/plotly/plotly/validators/layout/updatemenu/__init__.py index cedac6271e8..9cf87de794e 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yanchor import YanchorValidator from ._y import YValidator @@ -22,28 +21,10 @@ from ._active import ActiveValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._visible.VisibleValidator", - "._type.TypeValidator", - "._templateitemname.TemplateitemnameValidator", - "._showactive.ShowactiveValidator", - "._pad.PadValidator", - "._name.NameValidator", - "._font.FontValidator", - "._direction.DirectionValidator", - "._buttondefaults.ButtondefaultsValidator", - "._buttons.ButtonsValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - "._active.ActiveValidator", - ], + ['._yanchor.YanchorValidator', '._y.YValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._visible.VisibleValidator', '._type.TypeValidator', '._templateitemname.TemplateitemnameValidator', '._showactive.ShowactiveValidator', '._pad.PadValidator', '._name.NameValidator', '._font.FontValidator', '._direction.DirectionValidator', '._buttondefaults.ButtondefaultsValidator', '._buttons.ButtonsValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator', '._active.ActiveValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/_active.py b/packages/python/plotly/plotly/validators/layout/updatemenu/_active.py index 8bca3ec41eb..a1ce1e5f4b3 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/_active.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/_active.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ActiveValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="active", parent_name="layout.updatemenu", **kwargs): - super(ActiveValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ActiveValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='active', + parent_name='layout.updatemenu', + **kwargs): + super(ActiveValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/_bgcolor.py b/packages/python/plotly/plotly/validators/layout/updatemenu/_bgcolor.py index 3344dbb1b73..e0970460572 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="layout.updatemenu", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='layout.updatemenu', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/_bordercolor.py b/packages/python/plotly/plotly/validators/layout/updatemenu/_bordercolor.py index 97bdb33b758..1552dcb56e9 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="layout.updatemenu", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='layout.updatemenu', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/_borderwidth.py b/packages/python/plotly/plotly/validators/layout/updatemenu/_borderwidth.py index 11e0852edce..f71711e7f9e 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/_borderwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderwidth", parent_name="layout.updatemenu", **kwargs - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='layout.updatemenu', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/_buttondefaults.py b/packages/python/plotly/plotly/validators/layout/updatemenu/_buttondefaults.py index fe7839c7569..a9ed392392f 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/_buttondefaults.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/_buttondefaults.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class ButtondefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="buttondefaults", parent_name="layout.updatemenu", **kwargs - ): - super(ButtondefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Button"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ButtondefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='buttondefaults', + parent_name='layout.updatemenu', + **kwargs): + super(ButtondefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Button'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/_buttons.py b/packages/python/plotly/plotly/validators/layout/updatemenu/_buttons.py index 6f2e43ff415..7e9a4eec556 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/_buttons.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/_buttons.py @@ -1,71 +1,15 @@ -import _plotly_utils.basevalidators -class ButtonsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="buttons", parent_name="layout.updatemenu", **kwargs - ): - super(ButtonsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Button"), - data_docs=kwargs.pop( - "data_docs", - """ - args - Sets the arguments values to be passed to the - Plotly method set in `method` on click. - args2 - Sets a 2nd set of `args`, these arguments - values are passed to the Plotly method set in - `method` when clicking this button while in the - active state. Use this to create toggle - buttons. - execute - When true, the API method is executed. When - false, all other behaviors are the same and - command execution is skipped. This may be - useful when hooking into, for example, the - `plotly_buttonclicked` method and executing the - API command manually without losing the benefit - of the updatemenu automatically binding to the - state of the plot through the specification of - `method` and `args`. - label - Sets the text label to appear on the button. - method - Sets the Plotly method to be called on click. - If the `skip` method is used, the API - updatemenu will function as normal but will - perform no API calls and will not bind - automatically to state updates. This may be - used to create a component interface and attach - to updatemenu events manually via JavaScript. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - visible - Determines whether or not this button is - visible. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ButtonsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='buttons', + parent_name='layout.updatemenu', + **kwargs): + super(ButtonsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Button'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/_direction.py b/packages/python/plotly/plotly/validators/layout/updatemenu/_direction.py index c1a469b5c5e..bccc6a248b1 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/_direction.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/_direction.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DirectionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="direction", parent_name="layout.updatemenu", **kwargs - ): - super(DirectionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop("values", ["left", "right", "up", "down"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DirectionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='direction', + parent_name='layout.updatemenu', + **kwargs): + super(DirectionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['left', 'right', 'up', 'down']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/_font.py b/packages/python/plotly/plotly/validators/layout/updatemenu/_font.py index 54980bf31c3..fc5d44ec667 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/_font.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/_font.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="layout.updatemenu", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='layout.updatemenu', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/_name.py b/packages/python/plotly/plotly/validators/layout/updatemenu/_name.py index 7564825f1c5..2a45a88a778 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/_name.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="layout.updatemenu", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='layout.updatemenu', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/_pad.py b/packages/python/plotly/plotly/validators/layout/updatemenu/_pad.py index 35ab1f298b9..066fbcf2c99 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/_pad.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/_pad.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class PadValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="pad", parent_name="layout.updatemenu", **kwargs): - super(PadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Pad"), - data_docs=kwargs.pop( - "data_docs", - """ - b - The amount of padding (in px) along the bottom - of the component. - l - The amount of padding (in px) on the left side - of the component. - r - The amount of padding (in px) on the right side - of the component. - t - The amount of padding (in px) along the top of - the component. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class PadValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='pad', + parent_name='layout.updatemenu', + **kwargs): + super(PadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Pad'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/_showactive.py b/packages/python/plotly/plotly/validators/layout/updatemenu/_showactive.py index baa47a05160..dd2624c8be8 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/_showactive.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/_showactive.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowactiveValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showactive", parent_name="layout.updatemenu", **kwargs - ): - super(ShowactiveValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowactiveValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showactive', + parent_name='layout.updatemenu', + **kwargs): + super(ShowactiveValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/_templateitemname.py b/packages/python/plotly/plotly/validators/layout/updatemenu/_templateitemname.py index b0358faa4ce..190ce0bc5b9 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/_templateitemname.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="templateitemname", parent_name="layout.updatemenu", **kwargs - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='layout.updatemenu', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/_type.py b/packages/python/plotly/plotly/validators/layout/updatemenu/_type.py index a6716a7d646..1d6930621c2 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/_type.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/_type.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="type", parent_name="layout.updatemenu", **kwargs): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop("values", ["dropdown", "buttons"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='layout.updatemenu', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['dropdown', 'buttons']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/_visible.py b/packages/python/plotly/plotly/validators/layout/updatemenu/_visible.py index d225cbf1170..f3c6d58e3cf 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/_visible.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/_visible.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="visible", parent_name="layout.updatemenu", **kwargs - ): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='layout.updatemenu', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/_x.py b/packages/python/plotly/plotly/validators/layout/updatemenu/_x.py index bc619b4f3f2..76cc747f5b0 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/_x.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/_x.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x", parent_name="layout.updatemenu", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - max=kwargs.pop("max", 3), - min=kwargs.pop("min", -2), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='layout.updatemenu', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + max=kwargs.pop('max', 3), + min=kwargs.pop('min', -2), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/_xanchor.py b/packages/python/plotly/plotly/validators/layout/updatemenu/_xanchor.py index 3bd91bff1aa..cea95621806 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/_xanchor.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="layout.updatemenu", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop("values", ["auto", "left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='layout.updatemenu', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['auto', 'left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/_y.py b/packages/python/plotly/plotly/validators/layout/updatemenu/_y.py index 3d0d153064f..b73e51e0c11 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/_y.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/_y.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y", parent_name="layout.updatemenu", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - max=kwargs.pop("max", 3), - min=kwargs.pop("min", -2), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='layout.updatemenu', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + max=kwargs.pop('max', 3), + min=kwargs.pop('min', -2), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/_yanchor.py b/packages/python/plotly/plotly/validators/layout/updatemenu/_yanchor.py index 97a132c9824..9b4c44b7d8c 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/_yanchor.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="layout.updatemenu", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop("values", ["auto", "top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='layout.updatemenu', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['auto', 'top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/button/__init__.py b/packages/python/plotly/plotly/validators/layout/updatemenu/button/__init__.py index e0a90a88c06..6e90f868890 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/button/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/button/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._templateitemname import TemplateitemnameValidator @@ -12,18 +11,10 @@ from ._args import ArgsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._method.MethodValidator", - "._label.LabelValidator", - "._execute.ExecuteValidator", - "._args2.Args2Validator", - "._args.ArgsValidator", - ], + ['._visible.VisibleValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._method.MethodValidator', '._label.LabelValidator', '._execute.ExecuteValidator', '._args2.Args2Validator', '._args.ArgsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/button/_args.py b/packages/python/plotly/plotly/validators/layout/updatemenu/button/_args.py index 2fc9ff2adbb..c6dc07016c3 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/button/_args.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/button/_args.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class ArgsValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, plotly_name="args", parent_name="layout.updatemenu.button", **kwargs - ): - super(ArgsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - free_length=kwargs.pop("free_length", True), - items=kwargs.pop( - "items", - [ - {"editType": "arraydraw", "valType": "any"}, - {"editType": "arraydraw", "valType": "any"}, - {"editType": "arraydraw", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ArgsValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='args', + parent_name='layout.updatemenu.button', + **kwargs): + super(ArgsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + free_length=kwargs.pop('free_length', True), + items=kwargs.pop('items', [{'editType': 'arraydraw', 'valType': 'any'}, {'editType': 'arraydraw', 'valType': 'any'}, {'editType': 'arraydraw', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/button/_args2.py b/packages/python/plotly/plotly/validators/layout/updatemenu/button/_args2.py index eaae9d8a9eb..02f4af49a3b 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/button/_args2.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/button/_args2.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class Args2Validator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, plotly_name="args2", parent_name="layout.updatemenu.button", **kwargs - ): - super(Args2Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - free_length=kwargs.pop("free_length", True), - items=kwargs.pop( - "items", - [ - {"editType": "arraydraw", "valType": "any"}, - {"editType": "arraydraw", "valType": "any"}, - {"editType": "arraydraw", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Args2Validator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='args2', + parent_name='layout.updatemenu.button', + **kwargs): + super(Args2Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + free_length=kwargs.pop('free_length', True), + items=kwargs.pop('items', [{'editType': 'arraydraw', 'valType': 'any'}, {'editType': 'arraydraw', 'valType': 'any'}, {'editType': 'arraydraw', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/button/_execute.py b/packages/python/plotly/plotly/validators/layout/updatemenu/button/_execute.py index 67b6bdf8863..3c5c6c99e86 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/button/_execute.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/button/_execute.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ExecuteValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="execute", parent_name="layout.updatemenu.button", **kwargs - ): - super(ExecuteValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ExecuteValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='execute', + parent_name='layout.updatemenu.button', + **kwargs): + super(ExecuteValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/button/_label.py b/packages/python/plotly/plotly/validators/layout/updatemenu/button/_label.py index 29fc32253f3..ad695997b60 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/button/_label.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/button/_label.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="label", parent_name="layout.updatemenu.button", **kwargs - ): - super(LabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelValidator(_bv.StringValidator): + def __init__(self, plotly_name='label', + parent_name='layout.updatemenu.button', + **kwargs): + super(LabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/button/_method.py b/packages/python/plotly/plotly/validators/layout/updatemenu/button/_method.py index b1d7c69e8b4..f64ae1549e7 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/button/_method.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/button/_method.py @@ -1,16 +1,14 @@ -import _plotly_utils.basevalidators -class MethodValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="method", parent_name="layout.updatemenu.button", **kwargs - ): - super(MethodValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop( - "values", ["restyle", "relayout", "animate", "update", "skip"] - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MethodValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='method', + parent_name='layout.updatemenu.button', + **kwargs): + super(MethodValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['restyle', 'relayout', 'animate', 'update', 'skip']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/button/_name.py b/packages/python/plotly/plotly/validators/layout/updatemenu/button/_name.py index ecd6c0f05b7..8b1caf0a0ae 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/button/_name.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/button/_name.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="name", parent_name="layout.updatemenu.button", **kwargs - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='layout.updatemenu.button', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/button/_templateitemname.py b/packages/python/plotly/plotly/validators/layout/updatemenu/button/_templateitemname.py index 7e6485fb2dc..7f6bb505c78 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/button/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/button/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="layout.updatemenu.button", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='layout.updatemenu.button', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/button/_visible.py b/packages/python/plotly/plotly/validators/layout/updatemenu/button/_visible.py index 0f6fd75ab30..c83bdf7777a 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/button/_visible.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/button/_visible.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="visible", parent_name="layout.updatemenu.button", **kwargs - ): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='layout.updatemenu.button', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/font/__init__.py b/packages/python/plotly/plotly/validators/layout/updatemenu/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/font/_color.py b/packages/python/plotly/plotly/validators/layout/updatemenu/font/_color.py index e8f47add9e8..ac371fa9fd1 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/font/_color.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.updatemenu.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.updatemenu.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/font/_family.py b/packages/python/plotly/plotly/validators/layout/updatemenu/font/_family.py index 764f8449972..ceb39395dbb 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/font/_family.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="layout.updatemenu.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.updatemenu.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/font/_lineposition.py b/packages/python/plotly/plotly/validators/layout/updatemenu/font/_lineposition.py index 4cb5e3b5f96..0ba37b38246 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/font/_lineposition.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="layout.updatemenu.font", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.updatemenu.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/font/_shadow.py b/packages/python/plotly/plotly/validators/layout/updatemenu/font/_shadow.py index 396b59fa410..ab8434d5f4f 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="layout.updatemenu.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.updatemenu.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/font/_size.py b/packages/python/plotly/plotly/validators/layout/updatemenu/font/_size.py index bc266124c2f..bb24ba5f5d3 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/font/_size.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="layout.updatemenu.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.updatemenu.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/font/_style.py b/packages/python/plotly/plotly/validators/layout/updatemenu/font/_style.py index 4e8ee7939a2..279db41fb3c 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/font/_style.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="layout.updatemenu.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.updatemenu.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/font/_textcase.py b/packages/python/plotly/plotly/validators/layout/updatemenu/font/_textcase.py index 3045b5de856..04e9e97c3b9 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/font/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="layout.updatemenu.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.updatemenu.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/font/_variant.py b/packages/python/plotly/plotly/validators/layout/updatemenu/font/_variant.py index f7721474f0c..de233b1b0fb 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/font/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="layout.updatemenu.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.updatemenu.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/font/_weight.py b/packages/python/plotly/plotly/validators/layout/updatemenu/font/_weight.py index 4eba4995989..dd272768ef3 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/font/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="layout.updatemenu.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.updatemenu.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/pad/__init__.py b/packages/python/plotly/plotly/validators/layout/updatemenu/pad/__init__.py index 04e64dbc5ee..3fc9abf4579 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/pad/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/pad/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._t import TValidator from ._r import RValidator @@ -8,9 +7,10 @@ from ._b import BValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._t.TValidator", "._r.RValidator", "._l.LValidator", "._b.BValidator"], + ['._t.TValidator', '._r.RValidator', '._l.LValidator', '._b.BValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/pad/_b.py b/packages/python/plotly/plotly/validators/layout/updatemenu/pad/_b.py index 3c45fd96c42..29bebe2d2dd 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/pad/_b.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/pad/_b.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="b", parent_name="layout.updatemenu.pad", **kwargs): - super(BValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BValidator(_bv.NumberValidator): + def __init__(self, plotly_name='b', + parent_name='layout.updatemenu.pad', + **kwargs): + super(BValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/pad/_l.py b/packages/python/plotly/plotly/validators/layout/updatemenu/pad/_l.py index ec9dc3d1511..5c8087f209b 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/pad/_l.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/pad/_l.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="l", parent_name="layout.updatemenu.pad", **kwargs): - super(LValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LValidator(_bv.NumberValidator): + def __init__(self, plotly_name='l', + parent_name='layout.updatemenu.pad', + **kwargs): + super(LValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/pad/_r.py b/packages/python/plotly/plotly/validators/layout/updatemenu/pad/_r.py index d0a68cd52ac..42373edb5c6 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/pad/_r.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/pad/_r.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class RValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="r", parent_name="layout.updatemenu.pad", **kwargs): - super(RValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RValidator(_bv.NumberValidator): + def __init__(self, plotly_name='r', + parent_name='layout.updatemenu.pad', + **kwargs): + super(RValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/pad/_t.py b/packages/python/plotly/plotly/validators/layout/updatemenu/pad/_t.py index 7b32734bad4..d40463c6cb7 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/pad/_t.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/pad/_t.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="t", parent_name="layout.updatemenu.pad", **kwargs): - super(TValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "arraydraw"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TValidator(_bv.NumberValidator): + def __init__(self, plotly_name='t', + parent_name='layout.updatemenu.pad', + **kwargs): + super(TValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'arraydraw'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/__init__.py b/packages/python/plotly/plotly/validators/layout/xaxis/__init__.py index be5a049045c..3ed265b9582 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zerolinewidth import ZerolinewidthValidator from ._zerolinecolor import ZerolinecolorValidator @@ -97,103 +96,10 @@ from ._anchor import AnchorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zerolinewidth.ZerolinewidthValidator", - "._zerolinecolor.ZerolinecolorValidator", - "._zeroline.ZerolineValidator", - "._visible.VisibleValidator", - "._uirevision.UirevisionValidator", - "._type.TypeValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._tickson.TicksonValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelstandoff.TicklabelstandoffValidator", - "._ticklabelshift.TicklabelshiftValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._ticklabelmode.TicklabelmodeValidator", - "._ticklabelindexsrc.TicklabelindexsrcValidator", - "._ticklabelindex.TicklabelindexValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._spikethickness.SpikethicknessValidator", - "._spikesnap.SpikesnapValidator", - "._spikemode.SpikemodeValidator", - "._spikedash.SpikedashValidator", - "._spikecolor.SpikecolorValidator", - "._side.SideValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showspikes.ShowspikesValidator", - "._showline.ShowlineValidator", - "._showgrid.ShowgridValidator", - "._showexponent.ShowexponentValidator", - "._showdividers.ShowdividersValidator", - "._separatethousands.SeparatethousandsValidator", - "._scaleratio.ScaleratioValidator", - "._scaleanchor.ScaleanchorValidator", - "._rangeslider.RangesliderValidator", - "._rangeselector.RangeselectorValidator", - "._rangemode.RangemodeValidator", - "._rangebreakdefaults.RangebreakdefaultsValidator", - "._rangebreaks.RangebreaksValidator", - "._range.RangeValidator", - "._position.PositionValidator", - "._overlaying.OverlayingValidator", - "._nticks.NticksValidator", - "._mirror.MirrorValidator", - "._minor.MinorValidator", - "._minexponent.MinexponentValidator", - "._minallowed.MinallowedValidator", - "._maxallowed.MaxallowedValidator", - "._matches.MatchesValidator", - "._linewidth.LinewidthValidator", - "._linecolor.LinecolorValidator", - "._layer.LayerValidator", - "._labelalias.LabelaliasValidator", - "._insiderange.InsiderangeValidator", - "._hoverformat.HoverformatValidator", - "._gridwidth.GridwidthValidator", - "._griddash.GriddashValidator", - "._gridcolor.GridcolorValidator", - "._fixedrange.FixedrangeValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._domain.DomainValidator", - "._dividerwidth.DividerwidthValidator", - "._dividercolor.DividercolorValidator", - "._constraintoward.ConstraintowardValidator", - "._constrain.ConstrainValidator", - "._color.ColorValidator", - "._categoryorder.CategoryorderValidator", - "._categoryarraysrc.CategoryarraysrcValidator", - "._categoryarray.CategoryarrayValidator", - "._calendar.CalendarValidator", - "._autotypenumbers.AutotypenumbersValidator", - "._autotickangles.AutotickanglesValidator", - "._autorangeoptions.AutorangeoptionsValidator", - "._autorange.AutorangeValidator", - "._automargin.AutomarginValidator", - "._anchor.AnchorValidator", - ], + ['._zerolinewidth.ZerolinewidthValidator', '._zerolinecolor.ZerolinecolorValidator', '._zeroline.ZerolineValidator', '._visible.VisibleValidator', '._uirevision.UirevisionValidator', '._type.TypeValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._tickson.TicksonValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelstandoff.TicklabelstandoffValidator', '._ticklabelshift.TicklabelshiftValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._ticklabelmode.TicklabelmodeValidator', '._ticklabelindexsrc.TicklabelindexsrcValidator', '._ticklabelindex.TicklabelindexValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._spikethickness.SpikethicknessValidator', '._spikesnap.SpikesnapValidator', '._spikemode.SpikemodeValidator', '._spikedash.SpikedashValidator', '._spikecolor.SpikecolorValidator', '._side.SideValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showspikes.ShowspikesValidator', '._showline.ShowlineValidator', '._showgrid.ShowgridValidator', '._showexponent.ShowexponentValidator', '._showdividers.ShowdividersValidator', '._separatethousands.SeparatethousandsValidator', '._scaleratio.ScaleratioValidator', '._scaleanchor.ScaleanchorValidator', '._rangeslider.RangesliderValidator', '._rangeselector.RangeselectorValidator', '._rangemode.RangemodeValidator', '._rangebreakdefaults.RangebreakdefaultsValidator', '._rangebreaks.RangebreaksValidator', '._range.RangeValidator', '._position.PositionValidator', '._overlaying.OverlayingValidator', '._nticks.NticksValidator', '._mirror.MirrorValidator', '._minor.MinorValidator', '._minexponent.MinexponentValidator', '._minallowed.MinallowedValidator', '._maxallowed.MaxallowedValidator', '._matches.MatchesValidator', '._linewidth.LinewidthValidator', '._linecolor.LinecolorValidator', '._layer.LayerValidator', '._labelalias.LabelaliasValidator', '._insiderange.InsiderangeValidator', '._hoverformat.HoverformatValidator', '._gridwidth.GridwidthValidator', '._griddash.GriddashValidator', '._gridcolor.GridcolorValidator', '._fixedrange.FixedrangeValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._domain.DomainValidator', '._dividerwidth.DividerwidthValidator', '._dividercolor.DividercolorValidator', '._constraintoward.ConstraintowardValidator', '._constrain.ConstrainValidator', '._color.ColorValidator', '._categoryorder.CategoryorderValidator', '._categoryarraysrc.CategoryarraysrcValidator', '._categoryarray.CategoryarrayValidator', '._calendar.CalendarValidator', '._autotypenumbers.AutotypenumbersValidator', '._autotickangles.AutotickanglesValidator', '._autorangeoptions.AutorangeoptionsValidator', '._autorange.AutorangeValidator', '._automargin.AutomarginValidator', '._anchor.AnchorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_anchor.py b/packages/python/plotly/plotly/validators/layout/xaxis/_anchor.py index 00a1af05f8b..cafc162996f 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_anchor.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_anchor.py @@ -1,19 +1,14 @@ -import _plotly_utils.basevalidators -class AnchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="anchor", parent_name="layout.xaxis", **kwargs): - super(AnchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "free", - "/^x([2-9]|[1-9][0-9]+)?( domain)?$/", - "/^y([2-9]|[1-9][0-9]+)?( domain)?$/", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AnchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='anchor', + parent_name='layout.xaxis', + **kwargs): + super(AnchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['free', '/^x([2-9]|[1-9][0-9]+)?( domain)?$/', '/^y([2-9]|[1-9][0-9]+)?( domain)?$/']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_automargin.py b/packages/python/plotly/plotly/validators/layout/xaxis/_automargin.py index 1cd1a656570..3532e1c4309 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_automargin.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_automargin.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AutomarginValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="automargin", parent_name="layout.xaxis", **kwargs): - super(AutomarginValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - extras=kwargs.pop("extras", [True, False]), - flags=kwargs.pop( - "flags", ["height", "width", "left", "right", "top", "bottom"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutomarginValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='automargin', + parent_name='layout.xaxis', + **kwargs): + super(AutomarginValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + extras=kwargs.pop('extras', [True, False]), + flags=kwargs.pop('flags', ['height', 'width', 'left', 'right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_autorange.py b/packages/python/plotly/plotly/validators/layout/xaxis/_autorange.py index c703dee9e64..b9381ac56bb 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_autorange.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_autorange.py @@ -1,16 +1,15 @@ -import _plotly_utils.basevalidators -class AutorangeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="autorange", parent_name="layout.xaxis", **kwargs): - super(AutorangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "axrange"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop( - "values", - [True, False, "reversed", "min reversed", "max reversed", "min", "max"], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutorangeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='autorange', + parent_name='layout.xaxis', + **kwargs): + super(AutorangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'axrange'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', [True, False, 'reversed', 'min reversed', 'max reversed', 'min', 'max']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_autorangeoptions.py b/packages/python/plotly/plotly/validators/layout/xaxis/_autorangeoptions.py index 08d6a22712c..c19d53ad419 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_autorangeoptions.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_autorangeoptions.py @@ -1,35 +1,15 @@ -import _plotly_utils.basevalidators -class AutorangeoptionsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="autorangeoptions", parent_name="layout.xaxis", **kwargs - ): - super(AutorangeoptionsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Autorangeoptions"), - data_docs=kwargs.pop( - "data_docs", - """ - clipmax - Clip autorange maximum if it goes beyond this - value. Has no effect when - `autorangeoptions.maxallowed` is provided. - clipmin - Clip autorange minimum if it goes beyond this - value. Has no effect when - `autorangeoptions.minallowed` is provided. - include - Ensure this value is included in autorange. - includesrc - Sets the source reference on Chart Studio Cloud - for `include`. - maxallowed - Use this value exactly as autorange maximum. - minallowed - Use this value exactly as autorange minimum. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutorangeoptionsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='autorangeoptions', + parent_name='layout.xaxis', + **kwargs): + super(AutorangeoptionsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Autorangeoptions'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_autotickangles.py b/packages/python/plotly/plotly/validators/layout/xaxis/_autotickangles.py index 6162a927202..6a39a6129b7 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_autotickangles.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_autotickangles.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AutotickanglesValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, plotly_name="autotickangles", parent_name="layout.xaxis", **kwargs - ): - super(AutotickanglesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - free_length=kwargs.pop("free_length", True), - items=kwargs.pop("items", {"valType": "angle"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutotickanglesValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='autotickangles', + parent_name='layout.xaxis', + **kwargs): + super(AutotickanglesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + free_length=kwargs.pop('free_length', True), + items=kwargs.pop('items', {'valType': 'angle'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_autotypenumbers.py b/packages/python/plotly/plotly/validators/layout/xaxis/_autotypenumbers.py index 5862fc718f3..3683212e9ef 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_autotypenumbers.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_autotypenumbers.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutotypenumbersValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="autotypenumbers", parent_name="layout.xaxis", **kwargs - ): - super(AutotypenumbersValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["convert types", "strict"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutotypenumbersValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='autotypenumbers', + parent_name='layout.xaxis', + **kwargs): + super(AutotypenumbersValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['convert types', 'strict']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_calendar.py b/packages/python/plotly/plotly/validators/layout/xaxis/_calendar.py index c4fbd692583..4357e4449ca 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_calendar.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_calendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class CalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="calendar", parent_name="layout.xaxis", **kwargs): - super(CalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='calendar', + parent_name='layout.xaxis', + **kwargs): + super(CalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_categoryarray.py b/packages/python/plotly/plotly/validators/layout/xaxis/_categoryarray.py index 5aa4088c1c1..71c44d8d724 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_categoryarray.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_categoryarray.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="categoryarray", parent_name="layout.xaxis", **kwargs - ): - super(CategoryarrayValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CategoryarrayValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='categoryarray', + parent_name='layout.xaxis', + **kwargs): + super(CategoryarrayValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_categoryarraysrc.py b/packages/python/plotly/plotly/validators/layout/xaxis/_categoryarraysrc.py index c7c6d8c06b8..6b1e80ca06d 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_categoryarraysrc.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_categoryarraysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="categoryarraysrc", parent_name="layout.xaxis", **kwargs - ): - super(CategoryarraysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CategoryarraysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='categoryarraysrc', + parent_name='layout.xaxis', + **kwargs): + super(CategoryarraysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_categoryorder.py b/packages/python/plotly/plotly/validators/layout/xaxis/_categoryorder.py index c914afc6f42..cd11fc11d03 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_categoryorder.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_categoryorder.py @@ -1,36 +1,14 @@ -import _plotly_utils.basevalidators -class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="categoryorder", parent_name="layout.xaxis", **kwargs - ): - super(CategoryorderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "trace", - "category ascending", - "category descending", - "array", - "total ascending", - "total descending", - "min ascending", - "min descending", - "max ascending", - "max descending", - "sum ascending", - "sum descending", - "mean ascending", - "mean descending", - "geometric mean ascending", - "geometric mean descending", - "median ascending", - "median descending", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CategoryorderValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='categoryorder', + parent_name='layout.xaxis', + **kwargs): + super(CategoryorderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['trace', 'category ascending', 'category descending', 'array', 'total ascending', 'total descending', 'min ascending', 'min descending', 'max ascending', 'max descending', 'sum ascending', 'sum descending', 'mean ascending', 'mean descending', 'geometric mean ascending', 'geometric mean descending', 'median ascending', 'median descending']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_color.py b/packages/python/plotly/plotly/validators/layout/xaxis/_color.py index 69f981c130d..9b88b883996 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_color.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="layout.xaxis", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.xaxis', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_constrain.py b/packages/python/plotly/plotly/validators/layout/xaxis/_constrain.py index f8bab252bd1..a091abf8ba6 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_constrain.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_constrain.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ConstrainValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="constrain", parent_name="layout.xaxis", **kwargs): - super(ConstrainValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["range", "domain"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ConstrainValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='constrain', + parent_name='layout.xaxis', + **kwargs): + super(ConstrainValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['range', 'domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_constraintoward.py b/packages/python/plotly/plotly/validators/layout/xaxis/_constraintoward.py index 30cb202148d..5608e263dda 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_constraintoward.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_constraintoward.py @@ -1,16 +1,14 @@ -import _plotly_utils.basevalidators -class ConstraintowardValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="constraintoward", parent_name="layout.xaxis", **kwargs - ): - super(ConstraintowardValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", ["left", "center", "right", "top", "middle", "bottom"] - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ConstraintowardValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='constraintoward', + parent_name='layout.xaxis', + **kwargs): + super(ConstraintowardValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['left', 'center', 'right', 'top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_dividercolor.py b/packages/python/plotly/plotly/validators/layout/xaxis/_dividercolor.py index 3a828151e9a..d54e2774a2a 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_dividercolor.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_dividercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class DividercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="dividercolor", parent_name="layout.xaxis", **kwargs - ): - super(DividercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DividercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='dividercolor', + parent_name='layout.xaxis', + **kwargs): + super(DividercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_dividerwidth.py b/packages/python/plotly/plotly/validators/layout/xaxis/_dividerwidth.py index 081e530ef40..a9587e35b3b 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_dividerwidth.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_dividerwidth.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class DividerwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="dividerwidth", parent_name="layout.xaxis", **kwargs - ): - super(DividerwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DividerwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dividerwidth', + parent_name='layout.xaxis', + **kwargs): + super(DividerwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_domain.py b/packages/python/plotly/plotly/validators/layout/xaxis/_domain.py index ba770de97f9..f1959aabe13 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_domain.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_domain.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class DomainValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="domain", parent_name="layout.xaxis", **kwargs): - super(DomainValidator, 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, - ) +import _plotly_utils.basevalidators as _bv + + +class DomainValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='domain', + parent_name='layout.xaxis', + **kwargs): + super(DomainValidator, 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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_dtick.py b/packages/python/plotly/plotly/validators/layout/xaxis/_dtick.py index ae40ad3aef1..42e6148f312 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_dtick.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_dtick.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="dtick", parent_name="layout.xaxis", **kwargs): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='layout.xaxis', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_exponentformat.py b/packages/python/plotly/plotly/validators/layout/xaxis/_exponentformat.py index 6b460fe80ef..14c9d9b7956 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_exponentformat.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="exponentformat", parent_name="layout.xaxis", **kwargs - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='layout.xaxis', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_fixedrange.py b/packages/python/plotly/plotly/validators/layout/xaxis/_fixedrange.py index 41f2a3adda7..115c8d59b54 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_fixedrange.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_fixedrange.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FixedrangeValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="fixedrange", parent_name="layout.xaxis", **kwargs): - super(FixedrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FixedrangeValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='fixedrange', + parent_name='layout.xaxis', + **kwargs): + super(FixedrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_gridcolor.py b/packages/python/plotly/plotly/validators/layout/xaxis/_gridcolor.py index c1b4110e115..e25bb865449 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_gridcolor.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_gridcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="gridcolor", parent_name="layout.xaxis", **kwargs): - super(GridcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class GridcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='gridcolor', + parent_name='layout.xaxis', + **kwargs): + super(GridcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_griddash.py b/packages/python/plotly/plotly/validators/layout/xaxis/_griddash.py index db0cb6e9912..e4af9858deb 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_griddash.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_griddash.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class GriddashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__(self, plotly_name="griddash", parent_name="layout.xaxis", **kwargs): - super(GriddashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop( - "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GriddashValidator(_bv.DashValidator): + def __init__(self, plotly_name='griddash', + parent_name='layout.xaxis', + **kwargs): + super(GriddashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_gridwidth.py b/packages/python/plotly/plotly/validators/layout/xaxis/_gridwidth.py index 5ca0e2299d5..ec1f793ba10 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_gridwidth.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_gridwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="gridwidth", parent_name="layout.xaxis", **kwargs): - super(GridwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='gridwidth', + parent_name='layout.xaxis', + **kwargs): + super(GridwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_hoverformat.py b/packages/python/plotly/plotly/validators/layout/xaxis/_hoverformat.py index 4bbc9ec44a2..71d906c5f00 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_hoverformat.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_hoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hoverformat", parent_name="layout.xaxis", **kwargs): - super(HoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='hoverformat', + parent_name='layout.xaxis', + **kwargs): + super(HoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_insiderange.py b/packages/python/plotly/plotly/validators/layout/xaxis/_insiderange.py index ef193da2e1b..20857ffb915 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_insiderange.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_insiderange.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class InsiderangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="insiderange", parent_name="layout.xaxis", **kwargs): - super(InsiderangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - items=kwargs.pop( - "items", - [ - {"editType": "plot", "valType": "any"}, - {"editType": "plot", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class InsiderangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='insiderange', + parent_name='layout.xaxis', + **kwargs): + super(InsiderangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + items=kwargs.pop('items', [{'editType': 'plot', 'valType': 'any'}, {'editType': 'plot', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_labelalias.py b/packages/python/plotly/plotly/validators/layout/xaxis/_labelalias.py index 57fdd4dafb1..5a79673345d 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_labelalias.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_labelalias.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="labelalias", parent_name="layout.xaxis", **kwargs): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='layout.xaxis', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_layer.py b/packages/python/plotly/plotly/validators/layout/xaxis/_layer.py index ae2f8e0794f..16e73518c94 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_layer.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_layer.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="layer", parent_name="layout.xaxis", **kwargs): - super(LayerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["above traces", "below traces"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LayerValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='layer', + parent_name='layout.xaxis', + **kwargs): + super(LayerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['above traces', 'below traces']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_linecolor.py b/packages/python/plotly/plotly/validators/layout/xaxis/_linecolor.py index b8023922023..4b286f6cbe3 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_linecolor.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_linecolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="linecolor", parent_name="layout.xaxis", **kwargs): - super(LinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='linecolor', + parent_name='layout.xaxis', + **kwargs): + super(LinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_linewidth.py b/packages/python/plotly/plotly/validators/layout/xaxis/_linewidth.py index f4c65428635..e7ac51e70a8 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_linewidth.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_linewidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="linewidth", parent_name="layout.xaxis", **kwargs): - super(LinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks+layoutstyle"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='linewidth', + parent_name='layout.xaxis', + **kwargs): + super(LinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks+layoutstyle'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_matches.py b/packages/python/plotly/plotly/validators/layout/xaxis/_matches.py index 2add8daf216..6037c23f159 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_matches.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_matches.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class MatchesValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="matches", parent_name="layout.xaxis", **kwargs): - super(MatchesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "/^x([2-9]|[1-9][0-9]+)?( domain)?$/", - "/^y([2-9]|[1-9][0-9]+)?( domain)?$/", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MatchesValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='matches', + parent_name='layout.xaxis', + **kwargs): + super(MatchesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['/^x([2-9]|[1-9][0-9]+)?( domain)?$/', '/^y([2-9]|[1-9][0-9]+)?( domain)?$/']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_maxallowed.py b/packages/python/plotly/plotly/validators/layout/xaxis/_maxallowed.py index 4f824b82480..7ac795fc3af 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_maxallowed.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_maxallowed.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MaxallowedValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="maxallowed", parent_name="layout.xaxis", **kwargs): - super(MaxallowedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"^autorange": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxallowedValidator(_bv.AnyValidator): + def __init__(self, plotly_name='maxallowed', + parent_name='layout.xaxis', + **kwargs): + super(MaxallowedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'^autorange': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_minallowed.py b/packages/python/plotly/plotly/validators/layout/xaxis/_minallowed.py index ef05c31304c..59f93ddcef1 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_minallowed.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_minallowed.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinallowedValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="minallowed", parent_name="layout.xaxis", **kwargs): - super(MinallowedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"^autorange": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinallowedValidator(_bv.AnyValidator): + def __init__(self, plotly_name='minallowed', + parent_name='layout.xaxis', + **kwargs): + super(MinallowedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'^autorange': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_minexponent.py b/packages/python/plotly/plotly/validators/layout/xaxis/_minexponent.py index 780cb19030c..168afaa8a09 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_minexponent.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_minexponent.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="minexponent", parent_name="layout.xaxis", **kwargs): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='layout.xaxis', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_minor.py b/packages/python/plotly/plotly/validators/layout/xaxis/_minor.py index 5fdb4da1d56..eb6f5ce203d 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_minor.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_minor.py @@ -1,104 +1,15 @@ -import _plotly_utils.basevalidators -class MinorValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="minor", parent_name="layout.xaxis", **kwargs): - super(MinorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Minor"), - data_docs=kwargs.pop( - "data_docs", - """ - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - gridcolor - Sets the color of the grid lines. - 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 width (in px) of the grid lines. - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickcolor - Sets the tick color. - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MinorValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='minor', + parent_name='layout.xaxis', + **kwargs): + super(MinorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Minor'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_mirror.py b/packages/python/plotly/plotly/validators/layout/xaxis/_mirror.py index 892e576cb1e..a098af32a02 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_mirror.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_mirror.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MirrorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="mirror", parent_name="layout.xaxis", **kwargs): - super(MirrorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks+layoutstyle"), - values=kwargs.pop("values", [True, "ticks", False, "all", "allticks"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MirrorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='mirror', + parent_name='layout.xaxis', + **kwargs): + super(MirrorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks+layoutstyle'), + values=kwargs.pop('values', [True, 'ticks', False, 'all', 'allticks']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_nticks.py b/packages/python/plotly/plotly/validators/layout/xaxis/_nticks.py index 6cb18239e22..4746214f38a 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_nticks.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_nticks.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="nticks", parent_name="layout.xaxis", **kwargs): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='layout.xaxis', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_overlaying.py b/packages/python/plotly/plotly/validators/layout/xaxis/_overlaying.py index fc009e719b3..686073b09f6 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_overlaying.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_overlaying.py @@ -1,19 +1,14 @@ -import _plotly_utils.basevalidators -class OverlayingValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="overlaying", parent_name="layout.xaxis", **kwargs): - super(OverlayingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "free", - "/^x([2-9]|[1-9][0-9]+)?( domain)?$/", - "/^y([2-9]|[1-9][0-9]+)?( domain)?$/", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OverlayingValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='overlaying', + parent_name='layout.xaxis', + **kwargs): + super(OverlayingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['free', '/^x([2-9]|[1-9][0-9]+)?( domain)?$/', '/^y([2-9]|[1-9][0-9]+)?( domain)?$/']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_position.py b/packages/python/plotly/plotly/validators/layout/xaxis/_position.py index 87072a3cc72..61c0c894f22 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_position.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_position.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class PositionValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="position", parent_name="layout.xaxis", **kwargs): - super(PositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class PositionValidator(_bv.NumberValidator): + def __init__(self, plotly_name='position', + parent_name='layout.xaxis', + **kwargs): + super(PositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_range.py b/packages/python/plotly/plotly/validators/layout/xaxis/_range.py index cf7e4d01564..943e0fe06cf 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_range.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_range.py @@ -1,30 +1,16 @@ -import _plotly_utils.basevalidators -class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="range", parent_name="layout.xaxis", **kwargs): - super(RangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "axrange"), - implied_edits=kwargs.pop("implied_edits", {"autorange": False}), - items=kwargs.pop( - "items", - [ - { - "anim": True, - "editType": "axrange", - "impliedEdits": {"^autorange": False}, - "valType": "any", - }, - { - "anim": True, - "editType": "axrange", - "impliedEdits": {"^autorange": False}, - "valType": "any", - }, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='range', + parent_name='layout.xaxis', + **kwargs): + super(RangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'axrange'), + implied_edits=kwargs.pop('implied_edits', {'autorange': False}), + items=kwargs.pop('items', [{'anim': True, 'editType': 'axrange', 'impliedEdits': {'^autorange': False}, 'valType': 'any'}, {'anim': True, 'editType': 'axrange', 'impliedEdits': {'^autorange': False}, 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_rangebreakdefaults.py b/packages/python/plotly/plotly/validators/layout/xaxis/_rangebreakdefaults.py index 4f1a4af57e9..6ebfbc3f53a 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_rangebreakdefaults.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_rangebreakdefaults.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class RangebreakdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="rangebreakdefaults", parent_name="layout.xaxis", **kwargs - ): - super(RangebreakdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Rangebreak"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RangebreakdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='rangebreakdefaults', + parent_name='layout.xaxis', + **kwargs): + super(RangebreakdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Rangebreak'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_rangebreaks.py b/packages/python/plotly/plotly/validators/layout/xaxis/_rangebreaks.py index 1936458ac21..02511c740d9 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_rangebreaks.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_rangebreaks.py @@ -1,67 +1,15 @@ -import _plotly_utils.basevalidators -class RangebreaksValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__(self, plotly_name="rangebreaks", parent_name="layout.xaxis", **kwargs): - super(RangebreaksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Rangebreak"), - data_docs=kwargs.pop( - "data_docs", - """ - bounds - Sets the lower and upper bounds of this axis - rangebreak. Can be used with `pattern`. - dvalue - Sets the size of each `values` item. The - default is one day in milliseconds. - enabled - Determines whether this axis rangebreak is - enabled or disabled. Please note that - `rangebreaks` only work for "date" axis type. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - pattern - Determines a pattern on the time line that - generates breaks. If *day of week* - days of - the week in English e.g. 'Sunday' or `sun` - (matching is case-insensitive and considers - only the first three characters), as well as - Sunday-based integers between 0 and 6. If - "hour" - hour (24-hour clock) as decimal - numbers between 0 and 24. for more info. - Examples: - { pattern: 'day of week', bounds: - [6, 1] } or simply { bounds: ['sat', 'mon'] } - breaks from Saturday to Monday (i.e. skips the - weekends). - { pattern: 'hour', bounds: [17, 8] - } breaks from 5pm to 8am (i.e. skips non-work - hours). - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - values - Sets the coordinate values corresponding to the - rangebreaks. An alternative to `bounds`. Use - `dvalue` to set the size of the values along - the axis. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RangebreaksValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='rangebreaks', + parent_name='layout.xaxis', + **kwargs): + super(RangebreaksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Rangebreak'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_rangemode.py b/packages/python/plotly/plotly/validators/layout/xaxis/_rangemode.py index 826220881fc..e83fdabe2a9 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_rangemode.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_rangemode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class RangemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="rangemode", parent_name="layout.xaxis", **kwargs): - super(RangemodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "tozero", "nonnegative"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RangemodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='rangemode', + parent_name='layout.xaxis', + **kwargs): + super(RangemodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'tozero', 'nonnegative']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_rangeselector.py b/packages/python/plotly/plotly/validators/layout/xaxis/_rangeselector.py index 1bacb9302b5..b05eaa9d31e 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_rangeselector.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_rangeselector.py @@ -1,63 +1,15 @@ -import _plotly_utils.basevalidators -class RangeselectorValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="rangeselector", parent_name="layout.xaxis", **kwargs - ): - super(RangeselectorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Rangeselector"), - data_docs=kwargs.pop( - "data_docs", - """ - activecolor - Sets the background color of the active range - selector button. - bgcolor - Sets the background color of the range selector - buttons. - bordercolor - Sets the color of the border enclosing the - range selector. - borderwidth - Sets the width (in px) of the border enclosing - the range selector. - buttons - Sets the specifications for each buttons. By - default, a range selector comes with no - buttons. - buttondefaults - When used in a template (as layout.template.lay - out.xaxis.rangeselector.buttondefaults), sets - the default property values to use for elements - of layout.xaxis.rangeselector.buttons - font - Sets the font of the range selector button - text. - visible - Determines whether or not this range selector - is visible. Note that range selectors are only - available for x axes of `type` set to or auto- - typed to "date". - x - Sets the x position (in normalized coordinates) - of the range selector. - xanchor - Sets the range selector's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the range - selector. - y - Sets the y position (in normalized coordinates) - of the range selector. - yanchor - Sets the range selector's vertical position - anchor This anchor binds the `y` position to - the "top", "middle" or "bottom" of the range - selector. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RangeselectorValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='rangeselector', + parent_name='layout.xaxis', + **kwargs): + super(RangeselectorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Rangeselector'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_rangeslider.py b/packages/python/plotly/plotly/validators/layout/xaxis/_rangeslider.py index 1c25c169e12..ce0ce711213 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_rangeslider.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_rangeslider.py @@ -1,50 +1,15 @@ -import _plotly_utils.basevalidators -class RangesliderValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="rangeslider", parent_name="layout.xaxis", **kwargs): - super(RangesliderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Rangeslider"), - data_docs=kwargs.pop( - "data_docs", - """ - autorange - Determines whether or not the range slider - range is computed in relation to the input - data. If `range` is provided, then `autorange` - is set to False. - bgcolor - Sets the background color of the range slider. - bordercolor - Sets the border color of the range slider. - borderwidth - Sets the border width of the range slider. - range - Sets the range of the range slider. If not set, - defaults to the full xaxis range. If the axis - `type` is "log", then you must take the log of - your desired range. If the axis `type` is - "date", it should be date strings, like date - data, though Date objects and unix milliseconds - will be accepted and converted to strings. If - the axis `type` is "category", it should be - numbers, using the scale where each category is - assigned a serial number from zero in the order - it appears. - thickness - The height of the range slider as a fraction of - the total plot area height. - visible - Determines whether or not the range slider will - be visible. If visible, perpendicular axes will - be set to `fixedrange` - yaxis - :class:`plotly.graph_objects.layout.xaxis.range - slider.YAxis` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RangesliderValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='rangeslider', + parent_name='layout.xaxis', + **kwargs): + super(RangesliderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Rangeslider'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_scaleanchor.py b/packages/python/plotly/plotly/validators/layout/xaxis/_scaleanchor.py index 48819032c3f..ee86cccbf77 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_scaleanchor.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_scaleanchor.py @@ -1,19 +1,14 @@ -import _plotly_utils.basevalidators -class ScaleanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="scaleanchor", parent_name="layout.xaxis", **kwargs): - super(ScaleanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "/^x([2-9]|[1-9][0-9]+)?( domain)?$/", - "/^y([2-9]|[1-9][0-9]+)?( domain)?$/", - False, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ScaleanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='scaleanchor', + parent_name='layout.xaxis', + **kwargs): + super(ScaleanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['/^x([2-9]|[1-9][0-9]+)?( domain)?$/', '/^y([2-9]|[1-9][0-9]+)?( domain)?$/', False]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_scaleratio.py b/packages/python/plotly/plotly/validators/layout/xaxis/_scaleratio.py index 5526bcb07e7..529f30f8ed6 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_scaleratio.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_scaleratio.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ScaleratioValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="scaleratio", parent_name="layout.xaxis", **kwargs): - super(ScaleratioValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ScaleratioValidator(_bv.NumberValidator): + def __init__(self, plotly_name='scaleratio', + parent_name='layout.xaxis', + **kwargs): + super(ScaleratioValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_separatethousands.py b/packages/python/plotly/plotly/validators/layout/xaxis/_separatethousands.py index ca4e2f062fe..caab722e6e4 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_separatethousands.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="separatethousands", parent_name="layout.xaxis", **kwargs - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='layout.xaxis', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_showdividers.py b/packages/python/plotly/plotly/validators/layout/xaxis/_showdividers.py index 8b8b543795c..ccb4aaf5968 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_showdividers.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_showdividers.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowdividersValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showdividers", parent_name="layout.xaxis", **kwargs - ): - super(ShowdividersValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowdividersValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showdividers', + parent_name='layout.xaxis', + **kwargs): + super(ShowdividersValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_showexponent.py b/packages/python/plotly/plotly/validators/layout/xaxis/_showexponent.py index 18227f25155..d1d350ef6ea 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_showexponent.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="layout.xaxis", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='layout.xaxis', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_showgrid.py b/packages/python/plotly/plotly/validators/layout/xaxis/_showgrid.py index ace8a2e854a..0c3a210faea 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_showgrid.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_showgrid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showgrid", parent_name="layout.xaxis", **kwargs): - super(ShowgridValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowgridValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showgrid', + parent_name='layout.xaxis', + **kwargs): + super(ShowgridValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_showline.py b/packages/python/plotly/plotly/validators/layout/xaxis/_showline.py index e1d2f6544fe..5f20bca512c 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_showline.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_showline.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showline", parent_name="layout.xaxis", **kwargs): - super(ShowlineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks+layoutstyle"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlineValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showline', + parent_name='layout.xaxis', + **kwargs): + super(ShowlineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks+layoutstyle'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_showspikes.py b/packages/python/plotly/plotly/validators/layout/xaxis/_showspikes.py index 44f0c8a5c4d..915afe1e517 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_showspikes.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_showspikes.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowspikesValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showspikes", parent_name="layout.xaxis", **kwargs): - super(ShowspikesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "modebar"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowspikesValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showspikes', + parent_name='layout.xaxis', + **kwargs): + super(ShowspikesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'modebar'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_showticklabels.py b/packages/python/plotly/plotly/validators/layout/xaxis/_showticklabels.py index 0b85d7fc67c..7d0665c1c28 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_showticklabels.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showticklabels", parent_name="layout.xaxis", **kwargs - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='layout.xaxis', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_showtickprefix.py b/packages/python/plotly/plotly/validators/layout/xaxis/_showtickprefix.py index bc95ebc6066..3d99211eb54 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_showtickprefix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showtickprefix", parent_name="layout.xaxis", **kwargs - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='layout.xaxis', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_showticksuffix.py b/packages/python/plotly/plotly/validators/layout/xaxis/_showticksuffix.py index 96c550923af..a4bfcf8e69e 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_showticksuffix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showticksuffix", parent_name="layout.xaxis", **kwargs - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='layout.xaxis', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_side.py b/packages/python/plotly/plotly/validators/layout/xaxis/_side.py index 5ab9c2be12a..5fc2cb31d50 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_side.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_side.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="side", parent_name="layout.xaxis", **kwargs): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["top", "bottom", "left", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='layout.xaxis', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['top', 'bottom', 'left', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_spikecolor.py b/packages/python/plotly/plotly/validators/layout/xaxis/_spikecolor.py index caae434677a..7c8fb8f0c76 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_spikecolor.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_spikecolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SpikecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="spikecolor", parent_name="layout.xaxis", **kwargs): - super(SpikecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SpikecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='spikecolor', + parent_name='layout.xaxis', + **kwargs): + super(SpikecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_spikedash.py b/packages/python/plotly/plotly/validators/layout/xaxis/_spikedash.py index b2a425bbe12..3afa41bd651 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_spikedash.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_spikedash.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SpikedashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__(self, plotly_name="spikedash", parent_name="layout.xaxis", **kwargs): - super(SpikedashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SpikedashValidator(_bv.DashValidator): + def __init__(self, plotly_name='spikedash', + parent_name='layout.xaxis', + **kwargs): + super(SpikedashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_spikemode.py b/packages/python/plotly/plotly/validators/layout/xaxis/_spikemode.py index c94b047b9a3..14b7d7c4469 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_spikemode.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_spikemode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SpikemodeValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="spikemode", parent_name="layout.xaxis", **kwargs): - super(SpikemodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - flags=kwargs.pop("flags", ["toaxis", "across", "marker"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SpikemodeValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='spikemode', + parent_name='layout.xaxis', + **kwargs): + super(SpikemodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + flags=kwargs.pop('flags', ['toaxis', 'across', 'marker']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_spikesnap.py b/packages/python/plotly/plotly/validators/layout/xaxis/_spikesnap.py index 780256b842d..392a3819fa3 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_spikesnap.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_spikesnap.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SpikesnapValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="spikesnap", parent_name="layout.xaxis", **kwargs): - super(SpikesnapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["data", "cursor", "hovered data"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SpikesnapValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='spikesnap', + parent_name='layout.xaxis', + **kwargs): + super(SpikesnapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['data', 'cursor', 'hovered data']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_spikethickness.py b/packages/python/plotly/plotly/validators/layout/xaxis/_spikethickness.py index 949ac5ec8d3..77ec4f05bbe 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_spikethickness.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_spikethickness.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SpikethicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="spikethickness", parent_name="layout.xaxis", **kwargs - ): - super(SpikethicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SpikethicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='spikethickness', + parent_name='layout.xaxis', + **kwargs): + super(SpikethicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_tick0.py b/packages/python/plotly/plotly/validators/layout/xaxis/_tick0.py index bbd05ba561e..9845f0f1319 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_tick0.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_tick0.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="tick0", parent_name="layout.xaxis", **kwargs): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='layout.xaxis', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_tickangle.py b/packages/python/plotly/plotly/validators/layout/xaxis/_tickangle.py index a1886c8ba93..bde571a67d2 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_tickangle.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_tickangle.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__(self, plotly_name="tickangle", parent_name="layout.xaxis", **kwargs): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='layout.xaxis', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_tickcolor.py b/packages/python/plotly/plotly/validators/layout/xaxis/_tickcolor.py index 14dbd0c63ff..45f00d75735 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_tickcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="tickcolor", parent_name="layout.xaxis", **kwargs): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='layout.xaxis', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_tickfont.py b/packages/python/plotly/plotly/validators/layout/xaxis/_tickfont.py index 0b33a612496..32f108a5074 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_tickfont.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_tickfont.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="tickfont", parent_name="layout.xaxis", **kwargs): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='layout.xaxis', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_tickformat.py b/packages/python/plotly/plotly/validators/layout/xaxis/_tickformat.py index 5d8e98a10e9..40960a98fdf 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_tickformat.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_tickformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="tickformat", parent_name="layout.xaxis", **kwargs): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='layout.xaxis', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/layout/xaxis/_tickformatstopdefaults.py index 1c3b8633a84..3b51aeabc30 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_tickformatstopdefaults.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickformatstopdefaults", parent_name="layout.xaxis", **kwargs - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='layout.xaxis', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_tickformatstops.py b/packages/python/plotly/plotly/validators/layout/xaxis/_tickformatstops.py index 3278895dafd..b73c6ec4955 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_tickformatstops.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="tickformatstops", parent_name="layout.xaxis", **kwargs - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='layout.xaxis', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabelindex.py b/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabelindex.py index 4078bd028b9..213011a177e 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabelindex.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabelindex.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabelindexValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="ticklabelindex", parent_name="layout.xaxis", **kwargs - ): - super(TicklabelindexValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelindexValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelindex', + parent_name='layout.xaxis', + **kwargs): + super(TicklabelindexValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabelindexsrc.py b/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabelindexsrc.py index 0154c702c63..05969f6d7a4 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabelindexsrc.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabelindexsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicklabelindexsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticklabelindexsrc", parent_name="layout.xaxis", **kwargs - ): - super(TicklabelindexsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelindexsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticklabelindexsrc', + parent_name='layout.xaxis', + **kwargs): + super(TicklabelindexsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabelmode.py b/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabelmode.py index 18be892bd2e..91f14d4f4ca 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabelmode.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabelmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabelmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticklabelmode", parent_name="layout.xaxis", **kwargs - ): - super(TicklabelmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop("values", ["instant", "period"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelmode', + parent_name='layout.xaxis', + **kwargs): + super(TicklabelmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['instant', 'period']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabeloverflow.py index e496d5b845f..a3f43973b7d 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabeloverflow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticklabeloverflow", parent_name="layout.xaxis", **kwargs - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='layout.xaxis', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabelposition.py b/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabelposition.py index b8d3b26b471..20d1f9ead1e 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabelposition.py @@ -1,28 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticklabelposition", parent_name="layout.xaxis", **kwargs - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='layout.xaxis', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabelshift.py b/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabelshift.py index 6ae55bbe6ae..cdb1254ed22 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabelshift.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabelshift.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicklabelshiftValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="ticklabelshift", parent_name="layout.xaxis", **kwargs - ): - super(TicklabelshiftValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelshiftValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelshift', + parent_name='layout.xaxis', + **kwargs): + super(TicklabelshiftValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabelstandoff.py b/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabelstandoff.py index 1a8d1e71253..c9e06562492 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabelstandoff.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabelstandoff.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicklabelstandoffValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="ticklabelstandoff", parent_name="layout.xaxis", **kwargs - ): - super(TicklabelstandoffValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelstandoffValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstandoff', + parent_name='layout.xaxis', + **kwargs): + super(TicklabelstandoffValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabelstep.py b/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabelstep.py index ac382245296..a1dd8a43bdf 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_ticklabelstep.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="ticklabelstep", parent_name="layout.xaxis", **kwargs - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='layout.xaxis', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_ticklen.py b/packages/python/plotly/plotly/validators/layout/xaxis/_ticklen.py index 3c1979618ff..657ba18280f 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_ticklen.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_ticklen.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="ticklen", parent_name="layout.xaxis", **kwargs): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='layout.xaxis', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_tickmode.py b/packages/python/plotly/plotly/validators/layout/xaxis/_tickmode.py index b9db01540eb..932c6d217a9 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_tickmode.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_tickmode.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="tickmode", parent_name="layout.xaxis", **kwargs): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array", "sync"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='layout.xaxis', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array', 'sync']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_tickprefix.py b/packages/python/plotly/plotly/validators/layout/xaxis/_tickprefix.py index 97e94856c16..126ea017505 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_tickprefix.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="tickprefix", parent_name="layout.xaxis", **kwargs): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='layout.xaxis', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_ticks.py b/packages/python/plotly/plotly/validators/layout/xaxis/_ticks.py index 21023d64a73..5aad9c8719c 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_ticks.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_ticks.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="ticks", parent_name="layout.xaxis", **kwargs): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='layout.xaxis', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_tickson.py b/packages/python/plotly/plotly/validators/layout/xaxis/_tickson.py index 889b931b99f..21d8467e72b 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_tickson.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_tickson.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksonValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="tickson", parent_name="layout.xaxis", **kwargs): - super(TicksonValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop("values", ["labels", "boundaries"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksonValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickson', + parent_name='layout.xaxis', + **kwargs): + super(TicksonValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['labels', 'boundaries']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_ticksuffix.py b/packages/python/plotly/plotly/validators/layout/xaxis/_ticksuffix.py index 69ad94efe8c..7488e6b6f32 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_ticksuffix.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="ticksuffix", parent_name="layout.xaxis", **kwargs): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='layout.xaxis', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_ticktext.py b/packages/python/plotly/plotly/validators/layout/xaxis/_ticktext.py index 2c6f73f837a..5b9734619f4 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_ticktext.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_ticktext.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ticktext", parent_name="layout.xaxis", **kwargs): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='layout.xaxis', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_ticktextsrc.py b/packages/python/plotly/plotly/validators/layout/xaxis/_ticktextsrc.py index db0a5c55b59..bc0ff63afd0 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_ticktextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="ticktextsrc", parent_name="layout.xaxis", **kwargs): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='layout.xaxis', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_tickvals.py b/packages/python/plotly/plotly/validators/layout/xaxis/_tickvals.py index c0061daf686..70cc3c86050 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_tickvals.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_tickvals.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="tickvals", parent_name="layout.xaxis", **kwargs): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='layout.xaxis', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_tickvalssrc.py b/packages/python/plotly/plotly/validators/layout/xaxis/_tickvalssrc.py index e7dc511535f..e904c8cb572 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_tickvalssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="tickvalssrc", parent_name="layout.xaxis", **kwargs): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='layout.xaxis', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_tickwidth.py b/packages/python/plotly/plotly/validators/layout/xaxis/_tickwidth.py index da6d1332ec8..6f5c16aab45 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_tickwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="tickwidth", parent_name="layout.xaxis", **kwargs): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='layout.xaxis', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_title.py b/packages/python/plotly/plotly/validators/layout/xaxis/_title.py index ffa67b3dd81..3843592fc0c 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_title.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_title.py @@ -1,32 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__(self, plotly_name="title", parent_name="layout.xaxis", **kwargs): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this axis' title font. - standoff - Sets the standoff distance (in px) between the - axis labels and the title text The default - value is a function of the axis tick labels, - the title `font.size` and the axis `linewidth`. - Note that the axis title position is always - constrained within the margins, so the actual - standoff distance is always less than the set - or default value. By setting `standoff` and - turning on `automargin`, plotly.js will push - the margins to fit the axis title at given - standoff distance. - text - Sets the title of this axis. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='layout.xaxis', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_type.py b/packages/python/plotly/plotly/validators/layout/xaxis/_type.py index bb76bbb65e7..9528dd906ac 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_type.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_type.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="type", parent_name="layout.xaxis", **kwargs): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", ["-", "linear", "log", "date", "category", "multicategory"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='layout.xaxis', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['-', 'linear', 'log', 'date', 'category', 'multicategory']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_uirevision.py b/packages/python/plotly/plotly/validators/layout/xaxis/_uirevision.py index da99dc386a7..0a1a6242268 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_uirevision.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="layout.xaxis", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='layout.xaxis', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_visible.py b/packages/python/plotly/plotly/validators/layout/xaxis/_visible.py index ae8d5b0b9d2..e3d83e0da5b 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_visible.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_visible.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="visible", parent_name="layout.xaxis", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='layout.xaxis', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_zeroline.py b/packages/python/plotly/plotly/validators/layout/xaxis/_zeroline.py index 132f401b5a9..5f6da2ed3e0 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_zeroline.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_zeroline.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZerolineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="zeroline", parent_name="layout.xaxis", **kwargs): - super(ZerolineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZerolineValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='zeroline', + parent_name='layout.xaxis', + **kwargs): + super(ZerolineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_zerolinecolor.py b/packages/python/plotly/plotly/validators/layout/xaxis/_zerolinecolor.py index 276c0ecf04c..bb695dc93fd 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_zerolinecolor.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_zerolinecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ZerolinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="zerolinecolor", parent_name="layout.xaxis", **kwargs - ): - super(ZerolinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZerolinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='zerolinecolor', + parent_name='layout.xaxis', + **kwargs): + super(ZerolinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_zerolinewidth.py b/packages/python/plotly/plotly/validators/layout/xaxis/_zerolinewidth.py index 840204575bb..859b184ad60 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_zerolinewidth.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_zerolinewidth.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ZerolinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="zerolinewidth", parent_name="layout.xaxis", **kwargs - ): - super(ZerolinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZerolinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zerolinewidth', + parent_name='layout.xaxis', + **kwargs): + super(ZerolinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/autorangeoptions/__init__.py b/packages/python/plotly/plotly/validators/layout/xaxis/autorangeoptions/__init__.py index 701f84c04e0..7f4b2620040 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/autorangeoptions/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/autorangeoptions/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._minallowed import MinallowedValidator from ._maxallowed import MaxallowedValidator @@ -10,16 +9,10 @@ from ._clipmax import ClipmaxValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._minallowed.MinallowedValidator", - "._maxallowed.MaxallowedValidator", - "._includesrc.IncludesrcValidator", - "._include.IncludeValidator", - "._clipmin.ClipminValidator", - "._clipmax.ClipmaxValidator", - ], + ['._minallowed.MinallowedValidator', '._maxallowed.MaxallowedValidator', '._includesrc.IncludesrcValidator', '._include.IncludeValidator', '._clipmin.ClipminValidator', '._clipmax.ClipmaxValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/autorangeoptions/_clipmax.py b/packages/python/plotly/plotly/validators/layout/xaxis/autorangeoptions/_clipmax.py index 341fe48e6e4..ff2129045f7 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/autorangeoptions/_clipmax.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/autorangeoptions/_clipmax.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ClipmaxValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="clipmax", - parent_name="layout.xaxis.autorangeoptions", - **kwargs, - ): - super(ClipmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ClipmaxValidator(_bv.AnyValidator): + def __init__(self, plotly_name='clipmax', + parent_name='layout.xaxis.autorangeoptions', + **kwargs): + super(ClipmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/autorangeoptions/_clipmin.py b/packages/python/plotly/plotly/validators/layout/xaxis/autorangeoptions/_clipmin.py index 22e728fc3a9..55442499376 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/autorangeoptions/_clipmin.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/autorangeoptions/_clipmin.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ClipminValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="clipmin", - parent_name="layout.xaxis.autorangeoptions", - **kwargs, - ): - super(ClipminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ClipminValidator(_bv.AnyValidator): + def __init__(self, plotly_name='clipmin', + parent_name='layout.xaxis.autorangeoptions', + **kwargs): + super(ClipminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/autorangeoptions/_include.py b/packages/python/plotly/plotly/validators/layout/xaxis/autorangeoptions/_include.py index 31737bfd642..4bd85871ee8 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/autorangeoptions/_include.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/autorangeoptions/_include.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class IncludeValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="include", - parent_name="layout.xaxis.autorangeoptions", - **kwargs, - ): - super(IncludeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IncludeValidator(_bv.AnyValidator): + def __init__(self, plotly_name='include', + parent_name='layout.xaxis.autorangeoptions', + **kwargs): + super(IncludeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/autorangeoptions/_includesrc.py b/packages/python/plotly/plotly/validators/layout/xaxis/autorangeoptions/_includesrc.py index 593e7937cf2..49f37af76f9 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/autorangeoptions/_includesrc.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/autorangeoptions/_includesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class IncludesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="includesrc", - parent_name="layout.xaxis.autorangeoptions", - **kwargs, - ): - super(IncludesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IncludesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='includesrc', + parent_name='layout.xaxis.autorangeoptions', + **kwargs): + super(IncludesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/autorangeoptions/_maxallowed.py b/packages/python/plotly/plotly/validators/layout/xaxis/autorangeoptions/_maxallowed.py index cc1c3aa1e62..38ac8464300 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/autorangeoptions/_maxallowed.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/autorangeoptions/_maxallowed.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class MaxallowedValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="maxallowed", - parent_name="layout.xaxis.autorangeoptions", - **kwargs, - ): - super(MaxallowedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MaxallowedValidator(_bv.AnyValidator): + def __init__(self, plotly_name='maxallowed', + parent_name='layout.xaxis.autorangeoptions', + **kwargs): + super(MaxallowedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/autorangeoptions/_minallowed.py b/packages/python/plotly/plotly/validators/layout/xaxis/autorangeoptions/_minallowed.py index 4faf5cfbe1e..1ecfe1644af 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/autorangeoptions/_minallowed.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/autorangeoptions/_minallowed.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class MinallowedValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="minallowed", - parent_name="layout.xaxis.autorangeoptions", - **kwargs, - ): - super(MinallowedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MinallowedValidator(_bv.AnyValidator): + def __init__(self, plotly_name='minallowed', + parent_name='layout.xaxis.autorangeoptions', + **kwargs): + super(MinallowedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/minor/__init__.py b/packages/python/plotly/plotly/validators/layout/xaxis/minor/__init__.py index 27860a82b88..e8918912f0b 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/minor/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/minor/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickwidth import TickwidthValidator from ._tickvalssrc import TickvalssrcValidator @@ -18,24 +17,10 @@ from ._dtick import DtickValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticks.TicksValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._tickcolor.TickcolorValidator", - "._tick0.Tick0Validator", - "._showgrid.ShowgridValidator", - "._nticks.NticksValidator", - "._gridwidth.GridwidthValidator", - "._griddash.GriddashValidator", - "._gridcolor.GridcolorValidator", - "._dtick.DtickValidator", - ], + ['._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticks.TicksValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._tickcolor.TickcolorValidator', '._tick0.Tick0Validator', '._showgrid.ShowgridValidator', '._nticks.NticksValidator', '._gridwidth.GridwidthValidator', '._griddash.GriddashValidator', '._gridcolor.GridcolorValidator', '._dtick.DtickValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_dtick.py b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_dtick.py index 92aef5224f1..4336a6e6fcd 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_dtick.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_dtick.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="dtick", parent_name="layout.xaxis.minor", **kwargs): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='layout.xaxis.minor', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_gridcolor.py b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_gridcolor.py index 0fe85bc1b42..775450b1cf9 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_gridcolor.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_gridcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="gridcolor", parent_name="layout.xaxis.minor", **kwargs - ): - super(GridcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='gridcolor', + parent_name='layout.xaxis.minor', + **kwargs): + super(GridcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_griddash.py b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_griddash.py index 49893ff1574..0438e5917fa 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_griddash.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_griddash.py @@ -1,16 +1,14 @@ -import _plotly_utils.basevalidators -class GriddashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__( - self, plotly_name="griddash", parent_name="layout.xaxis.minor", **kwargs - ): - super(GriddashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop( - "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class GriddashValidator(_bv.DashValidator): + def __init__(self, plotly_name='griddash', + parent_name='layout.xaxis.minor', + **kwargs): + super(GriddashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_gridwidth.py b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_gridwidth.py index a98c793affc..98b2d62a474 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_gridwidth.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_gridwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="gridwidth", parent_name="layout.xaxis.minor", **kwargs - ): - super(GridwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='gridwidth', + parent_name='layout.xaxis.minor', + **kwargs): + super(GridwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_nticks.py b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_nticks.py index 80a947aa434..23c831212a3 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_nticks.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="layout.xaxis.minor", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='layout.xaxis.minor', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_showgrid.py b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_showgrid.py index 424abbbd264..daa95b8a2fe 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_showgrid.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_showgrid.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showgrid", parent_name="layout.xaxis.minor", **kwargs - ): - super(ShowgridValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowgridValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showgrid', + parent_name='layout.xaxis.minor', + **kwargs): + super(ShowgridValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_tick0.py b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_tick0.py index f2413c1c9c3..cd797ca0ef4 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_tick0.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_tick0.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="tick0", parent_name="layout.xaxis.minor", **kwargs): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='layout.xaxis.minor', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_tickcolor.py b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_tickcolor.py index fc4ec184b02..b3300b6d50e 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="layout.xaxis.minor", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='layout.xaxis.minor', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_ticklen.py b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_ticklen.py index 588224dc0ff..d5a56bab12c 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_ticklen.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="layout.xaxis.minor", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='layout.xaxis.minor', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_tickmode.py b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_tickmode.py index fc6889ba1f8..d0da6cce154 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_tickmode.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="layout.xaxis.minor", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='layout.xaxis.minor', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_ticks.py b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_ticks.py index 7009ebfa56b..c783ef9b0ec 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_ticks.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_ticks.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="ticks", parent_name="layout.xaxis.minor", **kwargs): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='layout.xaxis.minor', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_tickvals.py b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_tickvals.py index c31a4883aa5..878c956879b 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_tickvals.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="layout.xaxis.minor", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='layout.xaxis.minor', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_tickvalssrc.py b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_tickvalssrc.py index c5d999431bf..eea41cbc263 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="layout.xaxis.minor", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='layout.xaxis.minor', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_tickwidth.py b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_tickwidth.py index 11b3a3474d3..d17ecd13fc4 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="layout.xaxis.minor", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='layout.xaxis.minor', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/__init__.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/__init__.py index 03883658535..f2db8394845 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._values import ValuesValidator from ._templateitemname import TemplateitemnameValidator @@ -11,17 +10,10 @@ from ._bounds import BoundsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._values.ValuesValidator", - "._templateitemname.TemplateitemnameValidator", - "._pattern.PatternValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dvalue.DvalueValidator", - "._bounds.BoundsValidator", - ], + ['._values.ValuesValidator', '._templateitemname.TemplateitemnameValidator', '._pattern.PatternValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dvalue.DvalueValidator', '._bounds.BoundsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/_bounds.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/_bounds.py index f2c40b9a5f9..377dbbefe8b 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/_bounds.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/_bounds.py @@ -1,20 +1,14 @@ -import _plotly_utils.basevalidators -class BoundsValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, plotly_name="bounds", parent_name="layout.xaxis.rangebreak", **kwargs - ): - super(BoundsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "valType": "any"}, - {"editType": "calc", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BoundsValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='bounds', + parent_name='layout.xaxis.rangebreak', + **kwargs): + super(BoundsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'valType': 'any'}, {'editType': 'calc', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/_dvalue.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/_dvalue.py index e89216a4c6d..19064101ecb 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/_dvalue.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/_dvalue.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DvalueValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="dvalue", parent_name="layout.xaxis.rangebreak", **kwargs - ): - super(DvalueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DvalueValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dvalue', + parent_name='layout.xaxis.rangebreak', + **kwargs): + super(DvalueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/_enabled.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/_enabled.py index 760a704ccee..77bf1976238 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/_enabled.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/_enabled.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="enabled", parent_name="layout.xaxis.rangebreak", **kwargs - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='layout.xaxis.rangebreak', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/_name.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/_name.py index 6605d7797da..6aa6201f121 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/_name.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/_name.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="name", parent_name="layout.xaxis.rangebreak", **kwargs - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='layout.xaxis.rangebreak', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/_pattern.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/_pattern.py index d906cd22283..81a82e8c979 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/_pattern.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/_pattern.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class PatternValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="pattern", parent_name="layout.xaxis.rangebreak", **kwargs - ): - super(PatternValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["day of week", "hour", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class PatternValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='pattern', + parent_name='layout.xaxis.rangebreak', + **kwargs): + super(PatternValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['day of week', 'hour', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/_templateitemname.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/_templateitemname.py index 894188d860c..2c19e28b1b5 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="layout.xaxis.rangebreak", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='layout.xaxis.rangebreak', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/_values.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/_values.py index ff932107fe7..bed34aa993b 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/_values.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangebreak/_values.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ValuesValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, plotly_name="values", parent_name="layout.xaxis.rangebreak", **kwargs - ): - super(ValuesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - free_length=kwargs.pop("free_length", True), - items=kwargs.pop("items", {"editType": "calc", "valType": "any"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValuesValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='values', + parent_name='layout.xaxis.rangebreak', + **kwargs): + super(ValuesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + free_length=kwargs.pop('free_length', True), + items=kwargs.pop('items', {'editType': 'calc', 'valType': 'any'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/__init__.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/__init__.py index 4e2ef7c7f34..c18b18f5809 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yanchor import YanchorValidator from ._y import YValidator @@ -16,22 +15,10 @@ from ._activecolor import ActivecolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._visible.VisibleValidator", - "._font.FontValidator", - "._buttondefaults.ButtondefaultsValidator", - "._buttons.ButtonsValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - "._activecolor.ActivecolorValidator", - ], + ['._yanchor.YanchorValidator', '._y.YValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._visible.VisibleValidator', '._font.FontValidator', '._buttondefaults.ButtondefaultsValidator', '._buttons.ButtonsValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator', '._activecolor.ActivecolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_activecolor.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_activecolor.py index 729edd111bc..518e8bf85ef 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_activecolor.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_activecolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ActivecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="activecolor", - parent_name="layout.xaxis.rangeselector", - **kwargs, - ): - super(ActivecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ActivecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='activecolor', + parent_name='layout.xaxis.rangeselector', + **kwargs): + super(ActivecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_bgcolor.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_bgcolor.py index 1f3dc0061db..d6753367c5e 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="layout.xaxis.rangeselector", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='layout.xaxis.rangeselector', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_bordercolor.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_bordercolor.py index 8a2c804a446..1c232b63e6b 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_bordercolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bordercolor", - parent_name="layout.xaxis.rangeselector", - **kwargs, - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='layout.xaxis.rangeselector', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_borderwidth.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_borderwidth.py index 8a6d64055c0..7050c0d10d4 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_borderwidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="borderwidth", - parent_name="layout.xaxis.rangeselector", - **kwargs, - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='layout.xaxis.rangeselector', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_buttondefaults.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_buttondefaults.py index 4d40da0f35c..c57baf9aaa6 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_buttondefaults.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_buttondefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class ButtondefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="buttondefaults", - parent_name="layout.xaxis.rangeselector", - **kwargs, - ): - super(ButtondefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Button"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ButtondefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='buttondefaults', + parent_name='layout.xaxis.rangeselector', + **kwargs): + super(ButtondefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Button'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_buttons.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_buttons.py index cdc25142158..c65a7aa0c3c 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_buttons.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_buttons.py @@ -1,63 +1,15 @@ -import _plotly_utils.basevalidators -class ButtonsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="buttons", parent_name="layout.xaxis.rangeselector", **kwargs - ): - super(ButtonsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Button"), - data_docs=kwargs.pop( - "data_docs", - """ - count - Sets the number of steps to take to update the - range. Use with `step` to specify the update - interval. - label - Sets the text label to appear on the button. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - step - The unit of measurement that the `count` value - will set the range by. - stepmode - Sets the range update mode. If "backward", the - range update shifts the start of range back - "count" times "step" milliseconds. If "todate", - the range update shifts the start of range back - to the first timestamp from "count" times - "step" milliseconds back. For example, with - `step` set to "year" and `count` set to 1 the - range update shifts the start of the range back - to January 01 of the current year. Month and - year "todate" are currently available only for - the built-in (Gregorian) calendar. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - visible - Determines whether or not this button is - visible. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ButtonsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='buttons', + parent_name='layout.xaxis.rangeselector', + **kwargs): + super(ButtonsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Button'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_font.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_font.py index 4a64548f3b8..c66b8ddf299 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_font.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="layout.xaxis.rangeselector", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='layout.xaxis.rangeselector', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_visible.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_visible.py index ec87ff4ec4d..3b0b6e1d742 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_visible.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_visible.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="visible", parent_name="layout.xaxis.rangeselector", **kwargs - ): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='layout.xaxis.rangeselector', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_x.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_x.py index 12d987a9ca1..45ef70bd463 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_x.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_x.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="x", parent_name="layout.xaxis.rangeselector", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 3), - min=kwargs.pop("min", -2), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='layout.xaxis.rangeselector', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 3), + min=kwargs.pop('min', -2), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_xanchor.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_xanchor.py index c2f82545b18..5ce43767d57 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_xanchor.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="layout.xaxis.rangeselector", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["auto", "left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='layout.xaxis.rangeselector', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['auto', 'left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_y.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_y.py index c2fd1b1c3f3..3695faecde9 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_y.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_y.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="y", parent_name="layout.xaxis.rangeselector", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 3), - min=kwargs.pop("min", -2), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='layout.xaxis.rangeselector', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 3), + min=kwargs.pop('min', -2), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_yanchor.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_yanchor.py index e1c0f4935b0..15d004b143f 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_yanchor.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="layout.xaxis.rangeselector", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["auto", "top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='layout.xaxis.rangeselector', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['auto', 'top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/__init__.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/__init__.py index 50e76b682db..351164b94a4 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._templateitemname import TemplateitemnameValidator @@ -11,17 +10,10 @@ from ._count import CountValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._templateitemname.TemplateitemnameValidator", - "._stepmode.StepmodeValidator", - "._step.StepValidator", - "._name.NameValidator", - "._label.LabelValidator", - "._count.CountValidator", - ], + ['._visible.VisibleValidator', '._templateitemname.TemplateitemnameValidator', '._stepmode.StepmodeValidator', '._step.StepValidator', '._name.NameValidator', '._label.LabelValidator', '._count.CountValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/_count.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/_count.py index c479be13a0c..fbeef591467 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/_count.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/_count.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class CountValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="count", - parent_name="layout.xaxis.rangeselector.button", - **kwargs, - ): - super(CountValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CountValidator(_bv.NumberValidator): + def __init__(self, plotly_name='count', + parent_name='layout.xaxis.rangeselector.button', + **kwargs): + super(CountValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/_label.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/_label.py index 591edfaf8c7..010b2b167d5 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/_label.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/_label.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LabelValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="label", - parent_name="layout.xaxis.rangeselector.button", - **kwargs, - ): - super(LabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelValidator(_bv.StringValidator): + def __init__(self, plotly_name='label', + parent_name='layout.xaxis.rangeselector.button', + **kwargs): + super(LabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/_name.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/_name.py index 7dbb9c668a0..ca6e929b5c9 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/_name.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="layout.xaxis.rangeselector.button", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='layout.xaxis.rangeselector.button', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/_step.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/_step.py index de4f7e2a182..46d2a8faaf5 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/_step.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/_step.py @@ -1,19 +1,14 @@ -import _plotly_utils.basevalidators -class StepValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="step", - parent_name="layout.xaxis.rangeselector.button", - **kwargs, - ): - super(StepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", ["month", "year", "day", "hour", "minute", "second", "all"] - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StepValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='step', + parent_name='layout.xaxis.rangeselector.button', + **kwargs): + super(StepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['month', 'year', 'day', 'hour', 'minute', 'second', 'all']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/_stepmode.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/_stepmode.py index 5183664e405..28dbe911a28 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/_stepmode.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/_stepmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StepmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="stepmode", - parent_name="layout.xaxis.rangeselector.button", - **kwargs, - ): - super(StepmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["backward", "todate"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StepmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='stepmode', + parent_name='layout.xaxis.rangeselector.button', + **kwargs): + super(StepmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['backward', 'todate']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/_templateitemname.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/_templateitemname.py index 78a9036a9a3..8059fa0c986 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="layout.xaxis.rangeselector.button", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='layout.xaxis.rangeselector.button', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/_visible.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/_visible.py index a03aca5f1c5..dba1e679aaf 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/_visible.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/_visible.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="visible", - parent_name="layout.xaxis.rangeselector.button", - **kwargs, - ): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='layout.xaxis.rangeselector.button', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/__init__.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_color.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_color.py index 307d3b721a6..fe65a496808 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_color.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="layout.xaxis.rangeselector.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.xaxis.rangeselector.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_family.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_family.py index 60c48fb067f..32295ab7561 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_family.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="layout.xaxis.rangeselector.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.xaxis.rangeselector.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_lineposition.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_lineposition.py index 3ca2ab2dc39..9fb571ff904 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.xaxis.rangeselector.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.xaxis.rangeselector.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_shadow.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_shadow.py index 3e761bf6b36..866b8d9492f 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="layout.xaxis.rangeselector.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.xaxis.rangeselector.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_size.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_size.py index 7b5fa3ba2f2..fd183755a5b 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_size.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="layout.xaxis.rangeselector.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.xaxis.rangeselector.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_style.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_style.py index b65be360c2e..e4d365fa7e7 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_style.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="layout.xaxis.rangeselector.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.xaxis.rangeselector.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_textcase.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_textcase.py index 40d4338b03a..4bb52f60466 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="layout.xaxis.rangeselector.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.xaxis.rangeselector.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_variant.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_variant.py index b168211778f..ba63252db9e 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="layout.xaxis.rangeselector.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.xaxis.rangeselector.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_weight.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_weight.py index a4330623f5c..a054ffaea77 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="layout.xaxis.rangeselector.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.xaxis.rangeselector.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/__init__.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/__init__.py index b772996f42c..d78ba34d19f 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yaxis import YaxisValidator from ._visible import VisibleValidator @@ -12,18 +11,10 @@ from ._autorange import AutorangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yaxis.YaxisValidator", - "._visible.VisibleValidator", - "._thickness.ThicknessValidator", - "._range.RangeValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - "._autorange.AutorangeValidator", - ], + ['._yaxis.YaxisValidator', '._visible.VisibleValidator', '._thickness.ThicknessValidator', '._range.RangeValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator', '._autorange.AutorangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_autorange.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_autorange.py index 0acbff9a6cc..7aee0495743 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_autorange.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_autorange.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutorangeValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autorange", parent_name="layout.xaxis.rangeslider", **kwargs - ): - super(AutorangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutorangeValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autorange', + parent_name='layout.xaxis.rangeslider', + **kwargs): + super(AutorangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_bgcolor.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_bgcolor.py index 1cd68f9387d..60e35ea66a1 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="layout.xaxis.rangeslider", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='layout.xaxis.rangeslider', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_bordercolor.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_bordercolor.py index 30858da33ac..023de7664f7 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_bordercolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bordercolor", - parent_name="layout.xaxis.rangeslider", - **kwargs, - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='layout.xaxis.rangeslider', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_borderwidth.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_borderwidth.py index a3d04dc3c72..e15a5588c0b 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_borderwidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class BorderwidthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="borderwidth", - parent_name="layout.xaxis.rangeslider", - **kwargs, - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='layout.xaxis.rangeslider', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_range.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_range.py index dd49692a9ee..c36d14791f2 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_range.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_range.py @@ -1,29 +1,15 @@ -import _plotly_utils.basevalidators -class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, plotly_name="range", parent_name="layout.xaxis.rangeslider", **kwargs - ): - super(RangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autorange": False}), - items=kwargs.pop( - "items", - [ - { - "editType": "calc", - "impliedEdits": {"^autorange": False}, - "valType": "any", - }, - { - "editType": "calc", - "impliedEdits": {"^autorange": False}, - "valType": "any", - }, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='range', + parent_name='layout.xaxis.rangeslider', + **kwargs): + super(RangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autorange': False}), + items=kwargs.pop('items', [{'editType': 'calc', 'impliedEdits': {'^autorange': False}, 'valType': 'any'}, {'editType': 'calc', 'impliedEdits': {'^autorange': False}, 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_thickness.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_thickness.py index 9269e949e96..e8f917871c6 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_thickness.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_thickness.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="layout.xaxis.rangeslider", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='layout.xaxis.rangeslider', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_visible.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_visible.py index 7c5b31be38e..5d3d574f314 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_visible.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_visible.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="visible", parent_name="layout.xaxis.rangeslider", **kwargs - ): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='layout.xaxis.rangeslider', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_yaxis.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_yaxis.py index f35578845c0..edcfbcd327e 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_yaxis.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/_yaxis.py @@ -1,29 +1,15 @@ -import _plotly_utils.basevalidators -class YaxisValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="yaxis", parent_name="layout.xaxis.rangeslider", **kwargs - ): - super(YaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "YAxis"), - data_docs=kwargs.pop( - "data_docs", - """ - range - Sets the range of this axis for the - rangeslider. - rangemode - Determines whether or not the range of this - axis in the rangeslider use the same value than - in the main plot when zooming in/out. If - "auto", the autorange will be used. If "fixed", - the `range` is used. If "match", the current - range of the corresponding y-axis on the main - subplot is used. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YaxisValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='yaxis', + parent_name='layout.xaxis.rangeslider', + **kwargs): + super(YaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'YAxis'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/yaxis/__init__.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/yaxis/__init__.py index 4f27a744de8..4f672907e3d 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/yaxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/yaxis/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._rangemode import RangemodeValidator from ._range import RangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._rangemode.RangemodeValidator", "._range.RangeValidator"] + __name__, + [], + ['._rangemode.RangemodeValidator', '._range.RangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/yaxis/_range.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/yaxis/_range.py index c2b532b3169..87cab72531f 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/yaxis/_range.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/yaxis/_range.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="range", - parent_name="layout.xaxis.rangeslider.yaxis", - **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": "any"}, - {"editType": "plot", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='range', + parent_name='layout.xaxis.rangeslider.yaxis', + **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': 'any'}, {'editType': 'plot', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/yaxis/_rangemode.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/yaxis/_rangemode.py index 94e1436d59c..9b149bb417a 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/yaxis/_rangemode.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/yaxis/_rangemode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class RangemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="rangemode", - parent_name="layout.xaxis.rangeslider.yaxis", - **kwargs, - ): - super(RangemodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["auto", "fixed", "match"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RangemodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='rangemode', + parent_name='layout.xaxis.rangeslider.yaxis', + **kwargs): + super(RangemodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['auto', 'fixed', 'match']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/__init__.py b/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_color.py b/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_color.py index 8d6016f51ad..e6276ce4af3 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.xaxis.tickfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.xaxis.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_family.py b/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_family.py index 4de3925644b..d4d68b4543f 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="layout.xaxis.tickfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.xaxis.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_lineposition.py index 9c7d66c749f..76418af16aa 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_lineposition.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="layout.xaxis.tickfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.xaxis.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_shadow.py index 73842a444f6..31dbc8cff71 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="layout.xaxis.tickfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.xaxis.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_size.py b/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_size.py index 283c2a8d4c5..3115e67a58e 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="layout.xaxis.tickfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.xaxis.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_style.py b/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_style.py index 8ce3ab49426..4e0fbaa9569 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="layout.xaxis.tickfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.xaxis.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_textcase.py index fbc4a9661c5..4915ce34c19 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="layout.xaxis.tickfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.xaxis.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_variant.py b/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_variant.py index 463befa4a62..db4ba5b4077 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="layout.xaxis.tickfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.xaxis.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_weight.py b/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_weight.py index cb10a0db54a..a6d2cd91139 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="layout.xaxis.tickfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.xaxis.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/layout/xaxis/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/layout/xaxis/tickformatstop/_dtickrange.py index 3c0d740eeb6..abfcfca952d 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="layout.xaxis.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - items=kwargs.pop( - "items", - [ - {"editType": "ticks", "valType": "any"}, - {"editType": "ticks", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='layout.xaxis.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + items=kwargs.pop('items', [{'editType': 'ticks', 'valType': 'any'}, {'editType': 'ticks', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/layout/xaxis/tickformatstop/_enabled.py index 26bc2468e09..f9c3bde7ba7 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/tickformatstop/_enabled.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="enabled", parent_name="layout.xaxis.tickformatstop", **kwargs - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='layout.xaxis.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/layout/xaxis/tickformatstop/_name.py index b1624dc31ec..b58ac71f784 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/tickformatstop/_name.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="name", parent_name="layout.xaxis.tickformatstop", **kwargs - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='layout.xaxis.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/layout/xaxis/tickformatstop/_templateitemname.py index 7d5b9b9ad20..8a3f5a3c450 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="layout.xaxis.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='layout.xaxis.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/layout/xaxis/tickformatstop/_value.py index 4957a991124..0efdf47612a 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/tickformatstop/_value.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="value", parent_name="layout.xaxis.tickformatstop", **kwargs - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='layout.xaxis.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/title/__init__.py b/packages/python/plotly/plotly/validators/layout/xaxis/title/__init__.py index e8ad96b4dc9..e2ad39fd5c8 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/title/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/title/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._standoff import StandoffValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._text.TextValidator", - "._standoff.StandoffValidator", - "._font.FontValidator", - ], + ['._text.TextValidator', '._standoff.StandoffValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/title/_font.py b/packages/python/plotly/plotly/validators/layout/xaxis/title/_font.py index adf321ba949..8ddd253e8a8 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/title/_font.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/title/_font.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="layout.xaxis.title", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='layout.xaxis.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/title/_standoff.py b/packages/python/plotly/plotly/validators/layout/xaxis/title/_standoff.py index 318cbf58140..13104b1882e 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/title/_standoff.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/title/_standoff.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StandoffValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="standoff", parent_name="layout.xaxis.title", **kwargs - ): - super(StandoffValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StandoffValidator(_bv.NumberValidator): + def __init__(self, plotly_name='standoff', + parent_name='layout.xaxis.title', + **kwargs): + super(StandoffValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/title/_text.py b/packages/python/plotly/plotly/validators/layout/xaxis/title/_text.py index d1d6cb26336..7936b9033a8 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/title/_text.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/title/_text.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="layout.xaxis.title", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='layout.xaxis.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/title/font/__init__.py b/packages/python/plotly/plotly/validators/layout/xaxis/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_color.py b/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_color.py index 27d5b3f65cb..c874407e1b9 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.xaxis.title.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.xaxis.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_family.py b/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_family.py index 573bb79c430..1a18a65fa3a 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="layout.xaxis.title.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.xaxis.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_lineposition.py index dcd1591043e..8df701401de 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.xaxis.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.xaxis.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_shadow.py b/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_shadow.py index 56d9e973918..f6d83ab041a 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="layout.xaxis.title.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.xaxis.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_size.py b/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_size.py index 5f371bf2ddc..6b26936ad9f 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="layout.xaxis.title.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.xaxis.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_style.py b/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_style.py index 2e2874af04d..290d547457f 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="layout.xaxis.title.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.xaxis.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_textcase.py b/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_textcase.py index fb504d1ac5e..0461352c89b 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="layout.xaxis.title.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.xaxis.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_variant.py b/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_variant.py index 34333db56d2..967bf6e21bf 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="layout.xaxis.title.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.xaxis.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_weight.py b/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_weight.py index 864d90a61ab..21dbf24e2ec 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/title/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="layout.xaxis.title.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.xaxis.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/__init__.py b/packages/python/plotly/plotly/validators/layout/yaxis/__init__.py index b081aee460c..0267dae5609 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zerolinewidth import ZerolinewidthValidator from ._zerolinecolor import ZerolinecolorValidator @@ -97,103 +96,10 @@ from ._anchor import AnchorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zerolinewidth.ZerolinewidthValidator", - "._zerolinecolor.ZerolinecolorValidator", - "._zeroline.ZerolineValidator", - "._visible.VisibleValidator", - "._uirevision.UirevisionValidator", - "._type.TypeValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._tickson.TicksonValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelstandoff.TicklabelstandoffValidator", - "._ticklabelshift.TicklabelshiftValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._ticklabelmode.TicklabelmodeValidator", - "._ticklabelindexsrc.TicklabelindexsrcValidator", - "._ticklabelindex.TicklabelindexValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._spikethickness.SpikethicknessValidator", - "._spikesnap.SpikesnapValidator", - "._spikemode.SpikemodeValidator", - "._spikedash.SpikedashValidator", - "._spikecolor.SpikecolorValidator", - "._side.SideValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showspikes.ShowspikesValidator", - "._showline.ShowlineValidator", - "._showgrid.ShowgridValidator", - "._showexponent.ShowexponentValidator", - "._showdividers.ShowdividersValidator", - "._shift.ShiftValidator", - "._separatethousands.SeparatethousandsValidator", - "._scaleratio.ScaleratioValidator", - "._scaleanchor.ScaleanchorValidator", - "._rangemode.RangemodeValidator", - "._rangebreakdefaults.RangebreakdefaultsValidator", - "._rangebreaks.RangebreaksValidator", - "._range.RangeValidator", - "._position.PositionValidator", - "._overlaying.OverlayingValidator", - "._nticks.NticksValidator", - "._mirror.MirrorValidator", - "._minor.MinorValidator", - "._minexponent.MinexponentValidator", - "._minallowed.MinallowedValidator", - "._maxallowed.MaxallowedValidator", - "._matches.MatchesValidator", - "._linewidth.LinewidthValidator", - "._linecolor.LinecolorValidator", - "._layer.LayerValidator", - "._labelalias.LabelaliasValidator", - "._insiderange.InsiderangeValidator", - "._hoverformat.HoverformatValidator", - "._gridwidth.GridwidthValidator", - "._griddash.GriddashValidator", - "._gridcolor.GridcolorValidator", - "._fixedrange.FixedrangeValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._domain.DomainValidator", - "._dividerwidth.DividerwidthValidator", - "._dividercolor.DividercolorValidator", - "._constraintoward.ConstraintowardValidator", - "._constrain.ConstrainValidator", - "._color.ColorValidator", - "._categoryorder.CategoryorderValidator", - "._categoryarraysrc.CategoryarraysrcValidator", - "._categoryarray.CategoryarrayValidator", - "._calendar.CalendarValidator", - "._autotypenumbers.AutotypenumbersValidator", - "._autotickangles.AutotickanglesValidator", - "._autoshift.AutoshiftValidator", - "._autorangeoptions.AutorangeoptionsValidator", - "._autorange.AutorangeValidator", - "._automargin.AutomarginValidator", - "._anchor.AnchorValidator", - ], + ['._zerolinewidth.ZerolinewidthValidator', '._zerolinecolor.ZerolinecolorValidator', '._zeroline.ZerolineValidator', '._visible.VisibleValidator', '._uirevision.UirevisionValidator', '._type.TypeValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._tickson.TicksonValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelstandoff.TicklabelstandoffValidator', '._ticklabelshift.TicklabelshiftValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._ticklabelmode.TicklabelmodeValidator', '._ticklabelindexsrc.TicklabelindexsrcValidator', '._ticklabelindex.TicklabelindexValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._spikethickness.SpikethicknessValidator', '._spikesnap.SpikesnapValidator', '._spikemode.SpikemodeValidator', '._spikedash.SpikedashValidator', '._spikecolor.SpikecolorValidator', '._side.SideValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showspikes.ShowspikesValidator', '._showline.ShowlineValidator', '._showgrid.ShowgridValidator', '._showexponent.ShowexponentValidator', '._showdividers.ShowdividersValidator', '._shift.ShiftValidator', '._separatethousands.SeparatethousandsValidator', '._scaleratio.ScaleratioValidator', '._scaleanchor.ScaleanchorValidator', '._rangemode.RangemodeValidator', '._rangebreakdefaults.RangebreakdefaultsValidator', '._rangebreaks.RangebreaksValidator', '._range.RangeValidator', '._position.PositionValidator', '._overlaying.OverlayingValidator', '._nticks.NticksValidator', '._mirror.MirrorValidator', '._minor.MinorValidator', '._minexponent.MinexponentValidator', '._minallowed.MinallowedValidator', '._maxallowed.MaxallowedValidator', '._matches.MatchesValidator', '._linewidth.LinewidthValidator', '._linecolor.LinecolorValidator', '._layer.LayerValidator', '._labelalias.LabelaliasValidator', '._insiderange.InsiderangeValidator', '._hoverformat.HoverformatValidator', '._gridwidth.GridwidthValidator', '._griddash.GriddashValidator', '._gridcolor.GridcolorValidator', '._fixedrange.FixedrangeValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._domain.DomainValidator', '._dividerwidth.DividerwidthValidator', '._dividercolor.DividercolorValidator', '._constraintoward.ConstraintowardValidator', '._constrain.ConstrainValidator', '._color.ColorValidator', '._categoryorder.CategoryorderValidator', '._categoryarraysrc.CategoryarraysrcValidator', '._categoryarray.CategoryarrayValidator', '._calendar.CalendarValidator', '._autotypenumbers.AutotypenumbersValidator', '._autotickangles.AutotickanglesValidator', '._autoshift.AutoshiftValidator', '._autorangeoptions.AutorangeoptionsValidator', '._autorange.AutorangeValidator', '._automargin.AutomarginValidator', '._anchor.AnchorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_anchor.py b/packages/python/plotly/plotly/validators/layout/yaxis/_anchor.py index b74acd57464..d358082d00c 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_anchor.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_anchor.py @@ -1,19 +1,14 @@ -import _plotly_utils.basevalidators -class AnchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="anchor", parent_name="layout.yaxis", **kwargs): - super(AnchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "free", - "/^x([2-9]|[1-9][0-9]+)?( domain)?$/", - "/^y([2-9]|[1-9][0-9]+)?( domain)?$/", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AnchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='anchor', + parent_name='layout.yaxis', + **kwargs): + super(AnchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['free', '/^x([2-9]|[1-9][0-9]+)?( domain)?$/', '/^y([2-9]|[1-9][0-9]+)?( domain)?$/']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_automargin.py b/packages/python/plotly/plotly/validators/layout/yaxis/_automargin.py index e299ba46ec5..8775bb3d0b9 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_automargin.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_automargin.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AutomarginValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="automargin", parent_name="layout.yaxis", **kwargs): - super(AutomarginValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - extras=kwargs.pop("extras", [True, False]), - flags=kwargs.pop( - "flags", ["height", "width", "left", "right", "top", "bottom"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutomarginValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='automargin', + parent_name='layout.yaxis', + **kwargs): + super(AutomarginValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + extras=kwargs.pop('extras', [True, False]), + flags=kwargs.pop('flags', ['height', 'width', 'left', 'right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_autorange.py b/packages/python/plotly/plotly/validators/layout/yaxis/_autorange.py index 2f737d42381..2458955d0e7 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_autorange.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_autorange.py @@ -1,16 +1,15 @@ -import _plotly_utils.basevalidators -class AutorangeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="autorange", parent_name="layout.yaxis", **kwargs): - super(AutorangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "axrange"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop( - "values", - [True, False, "reversed", "min reversed", "max reversed", "min", "max"], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutorangeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='autorange', + parent_name='layout.yaxis', + **kwargs): + super(AutorangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'axrange'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', [True, False, 'reversed', 'min reversed', 'max reversed', 'min', 'max']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_autorangeoptions.py b/packages/python/plotly/plotly/validators/layout/yaxis/_autorangeoptions.py index 88e5afd59e8..9cf8fc799c0 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_autorangeoptions.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_autorangeoptions.py @@ -1,35 +1,15 @@ -import _plotly_utils.basevalidators -class AutorangeoptionsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="autorangeoptions", parent_name="layout.yaxis", **kwargs - ): - super(AutorangeoptionsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Autorangeoptions"), - data_docs=kwargs.pop( - "data_docs", - """ - clipmax - Clip autorange maximum if it goes beyond this - value. Has no effect when - `autorangeoptions.maxallowed` is provided. - clipmin - Clip autorange minimum if it goes beyond this - value. Has no effect when - `autorangeoptions.minallowed` is provided. - include - Ensure this value is included in autorange. - includesrc - Sets the source reference on Chart Studio Cloud - for `include`. - maxallowed - Use this value exactly as autorange maximum. - minallowed - Use this value exactly as autorange minimum. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutorangeoptionsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='autorangeoptions', + parent_name='layout.yaxis', + **kwargs): + super(AutorangeoptionsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Autorangeoptions'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_autoshift.py b/packages/python/plotly/plotly/validators/layout/yaxis/_autoshift.py index f2f8638cd11..6a75fc23382 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_autoshift.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_autoshift.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AutoshiftValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="autoshift", parent_name="layout.yaxis", **kwargs): - super(AutoshiftValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutoshiftValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autoshift', + parent_name='layout.yaxis', + **kwargs): + super(AutoshiftValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_autotickangles.py b/packages/python/plotly/plotly/validators/layout/yaxis/_autotickangles.py index 261fb45dcb3..a314c750700 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_autotickangles.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_autotickangles.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AutotickanglesValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, plotly_name="autotickangles", parent_name="layout.yaxis", **kwargs - ): - super(AutotickanglesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - free_length=kwargs.pop("free_length", True), - items=kwargs.pop("items", {"valType": "angle"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutotickanglesValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='autotickangles', + parent_name='layout.yaxis', + **kwargs): + super(AutotickanglesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + free_length=kwargs.pop('free_length', True), + items=kwargs.pop('items', {'valType': 'angle'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_autotypenumbers.py b/packages/python/plotly/plotly/validators/layout/yaxis/_autotypenumbers.py index 11d2b3fd859..a822a2b8741 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_autotypenumbers.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_autotypenumbers.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutotypenumbersValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="autotypenumbers", parent_name="layout.yaxis", **kwargs - ): - super(AutotypenumbersValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["convert types", "strict"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutotypenumbersValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='autotypenumbers', + parent_name='layout.yaxis', + **kwargs): + super(AutotypenumbersValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['convert types', 'strict']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_calendar.py b/packages/python/plotly/plotly/validators/layout/yaxis/_calendar.py index 9643eb40681..2aabe76438e 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_calendar.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_calendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class CalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="calendar", parent_name="layout.yaxis", **kwargs): - super(CalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='calendar', + parent_name='layout.yaxis', + **kwargs): + super(CalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_categoryarray.py b/packages/python/plotly/plotly/validators/layout/yaxis/_categoryarray.py index b398ef550cf..f1e648774cf 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_categoryarray.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_categoryarray.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="categoryarray", parent_name="layout.yaxis", **kwargs - ): - super(CategoryarrayValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CategoryarrayValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='categoryarray', + parent_name='layout.yaxis', + **kwargs): + super(CategoryarrayValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_categoryarraysrc.py b/packages/python/plotly/plotly/validators/layout/yaxis/_categoryarraysrc.py index 2ab8a854336..a18e595d60e 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_categoryarraysrc.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_categoryarraysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="categoryarraysrc", parent_name="layout.yaxis", **kwargs - ): - super(CategoryarraysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CategoryarraysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='categoryarraysrc', + parent_name='layout.yaxis', + **kwargs): + super(CategoryarraysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_categoryorder.py b/packages/python/plotly/plotly/validators/layout/yaxis/_categoryorder.py index 63a43b72673..5e97ce01a33 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_categoryorder.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_categoryorder.py @@ -1,36 +1,14 @@ -import _plotly_utils.basevalidators -class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="categoryorder", parent_name="layout.yaxis", **kwargs - ): - super(CategoryorderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "trace", - "category ascending", - "category descending", - "array", - "total ascending", - "total descending", - "min ascending", - "min descending", - "max ascending", - "max descending", - "sum ascending", - "sum descending", - "mean ascending", - "mean descending", - "geometric mean ascending", - "geometric mean descending", - "median ascending", - "median descending", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CategoryorderValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='categoryorder', + parent_name='layout.yaxis', + **kwargs): + super(CategoryorderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['trace', 'category ascending', 'category descending', 'array', 'total ascending', 'total descending', 'min ascending', 'min descending', 'max ascending', 'max descending', 'sum ascending', 'sum descending', 'mean ascending', 'mean descending', 'geometric mean ascending', 'geometric mean descending', 'median ascending', 'median descending']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_color.py b/packages/python/plotly/plotly/validators/layout/yaxis/_color.py index 8b20ab6faff..6dd20f68eef 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_color.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="layout.yaxis", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.yaxis', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_constrain.py b/packages/python/plotly/plotly/validators/layout/yaxis/_constrain.py index 889a504e341..01552c637aa 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_constrain.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_constrain.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ConstrainValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="constrain", parent_name="layout.yaxis", **kwargs): - super(ConstrainValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["range", "domain"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ConstrainValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='constrain', + parent_name='layout.yaxis', + **kwargs): + super(ConstrainValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['range', 'domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_constraintoward.py b/packages/python/plotly/plotly/validators/layout/yaxis/_constraintoward.py index 4146c7da74f..ee3c2476094 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_constraintoward.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_constraintoward.py @@ -1,16 +1,14 @@ -import _plotly_utils.basevalidators -class ConstraintowardValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="constraintoward", parent_name="layout.yaxis", **kwargs - ): - super(ConstraintowardValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", ["left", "center", "right", "top", "middle", "bottom"] - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ConstraintowardValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='constraintoward', + parent_name='layout.yaxis', + **kwargs): + super(ConstraintowardValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['left', 'center', 'right', 'top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_dividercolor.py b/packages/python/plotly/plotly/validators/layout/yaxis/_dividercolor.py index 6f9dd0b0059..58ec9afe4c2 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_dividercolor.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_dividercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class DividercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="dividercolor", parent_name="layout.yaxis", **kwargs - ): - super(DividercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DividercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='dividercolor', + parent_name='layout.yaxis', + **kwargs): + super(DividercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_dividerwidth.py b/packages/python/plotly/plotly/validators/layout/yaxis/_dividerwidth.py index afe396f0d8b..6dbd9ec98fa 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_dividerwidth.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_dividerwidth.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class DividerwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="dividerwidth", parent_name="layout.yaxis", **kwargs - ): - super(DividerwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DividerwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dividerwidth', + parent_name='layout.yaxis', + **kwargs): + super(DividerwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_domain.py b/packages/python/plotly/plotly/validators/layout/yaxis/_domain.py index 7d8be496ed6..c68a42900d3 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_domain.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_domain.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class DomainValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="domain", parent_name="layout.yaxis", **kwargs): - super(DomainValidator, 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, - ) +import _plotly_utils.basevalidators as _bv + + +class DomainValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='domain', + parent_name='layout.yaxis', + **kwargs): + super(DomainValidator, 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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_dtick.py b/packages/python/plotly/plotly/validators/layout/yaxis/_dtick.py index ae707f355aa..499c9946a88 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_dtick.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_dtick.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="dtick", parent_name="layout.yaxis", **kwargs): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='layout.yaxis', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_exponentformat.py b/packages/python/plotly/plotly/validators/layout/yaxis/_exponentformat.py index 1122a6fcf51..4e47cc3b805 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_exponentformat.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="exponentformat", parent_name="layout.yaxis", **kwargs - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='layout.yaxis', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_fixedrange.py b/packages/python/plotly/plotly/validators/layout/yaxis/_fixedrange.py index f9b65aab565..611b09da0cf 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_fixedrange.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_fixedrange.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FixedrangeValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="fixedrange", parent_name="layout.yaxis", **kwargs): - super(FixedrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FixedrangeValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='fixedrange', + parent_name='layout.yaxis', + **kwargs): + super(FixedrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_gridcolor.py b/packages/python/plotly/plotly/validators/layout/yaxis/_gridcolor.py index 75de9acaa15..1d739d641ab 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_gridcolor.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_gridcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="gridcolor", parent_name="layout.yaxis", **kwargs): - super(GridcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class GridcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='gridcolor', + parent_name='layout.yaxis', + **kwargs): + super(GridcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_griddash.py b/packages/python/plotly/plotly/validators/layout/yaxis/_griddash.py index 3bfd34783b5..4a04d3e295f 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_griddash.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_griddash.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class GriddashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__(self, plotly_name="griddash", parent_name="layout.yaxis", **kwargs): - super(GriddashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop( - "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GriddashValidator(_bv.DashValidator): + def __init__(self, plotly_name='griddash', + parent_name='layout.yaxis', + **kwargs): + super(GriddashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_gridwidth.py b/packages/python/plotly/plotly/validators/layout/yaxis/_gridwidth.py index a9a9f16e68a..a91b78293ff 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_gridwidth.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_gridwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="gridwidth", parent_name="layout.yaxis", **kwargs): - super(GridwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='gridwidth', + parent_name='layout.yaxis', + **kwargs): + super(GridwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_hoverformat.py b/packages/python/plotly/plotly/validators/layout/yaxis/_hoverformat.py index 7281c178da4..b60b3463f97 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_hoverformat.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_hoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hoverformat", parent_name="layout.yaxis", **kwargs): - super(HoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='hoverformat', + parent_name='layout.yaxis', + **kwargs): + super(HoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_insiderange.py b/packages/python/plotly/plotly/validators/layout/yaxis/_insiderange.py index 23873102a42..556871021e3 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_insiderange.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_insiderange.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class InsiderangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="insiderange", parent_name="layout.yaxis", **kwargs): - super(InsiderangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - items=kwargs.pop( - "items", - [ - {"editType": "plot", "valType": "any"}, - {"editType": "plot", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class InsiderangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='insiderange', + parent_name='layout.yaxis', + **kwargs): + super(InsiderangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + items=kwargs.pop('items', [{'editType': 'plot', 'valType': 'any'}, {'editType': 'plot', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_labelalias.py b/packages/python/plotly/plotly/validators/layout/yaxis/_labelalias.py index 0dd665dd744..1f4e9a16adf 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_labelalias.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_labelalias.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="labelalias", parent_name="layout.yaxis", **kwargs): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='layout.yaxis', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_layer.py b/packages/python/plotly/plotly/validators/layout/yaxis/_layer.py index dda4eb090f2..3cbcd5c4cb9 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_layer.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_layer.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="layer", parent_name="layout.yaxis", **kwargs): - super(LayerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["above traces", "below traces"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LayerValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='layer', + parent_name='layout.yaxis', + **kwargs): + super(LayerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['above traces', 'below traces']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_linecolor.py b/packages/python/plotly/plotly/validators/layout/yaxis/_linecolor.py index f5adc30c6d6..d134ae9abaa 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_linecolor.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_linecolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="linecolor", parent_name="layout.yaxis", **kwargs): - super(LinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "layoutstyle"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='linecolor', + parent_name='layout.yaxis', + **kwargs): + super(LinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'layoutstyle'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_linewidth.py b/packages/python/plotly/plotly/validators/layout/yaxis/_linewidth.py index d62ec494121..1334e49b3cf 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_linewidth.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_linewidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="linewidth", parent_name="layout.yaxis", **kwargs): - super(LinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks+layoutstyle"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='linewidth', + parent_name='layout.yaxis', + **kwargs): + super(LinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks+layoutstyle'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_matches.py b/packages/python/plotly/plotly/validators/layout/yaxis/_matches.py index 85b53647212..5c29a3f51e6 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_matches.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_matches.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class MatchesValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="matches", parent_name="layout.yaxis", **kwargs): - super(MatchesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "/^x([2-9]|[1-9][0-9]+)?( domain)?$/", - "/^y([2-9]|[1-9][0-9]+)?( domain)?$/", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MatchesValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='matches', + parent_name='layout.yaxis', + **kwargs): + super(MatchesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['/^x([2-9]|[1-9][0-9]+)?( domain)?$/', '/^y([2-9]|[1-9][0-9]+)?( domain)?$/']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_maxallowed.py b/packages/python/plotly/plotly/validators/layout/yaxis/_maxallowed.py index be24ce40aa1..182c62438e5 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_maxallowed.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_maxallowed.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MaxallowedValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="maxallowed", parent_name="layout.yaxis", **kwargs): - super(MaxallowedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"^autorange": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxallowedValidator(_bv.AnyValidator): + def __init__(self, plotly_name='maxallowed', + parent_name='layout.yaxis', + **kwargs): + super(MaxallowedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'^autorange': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_minallowed.py b/packages/python/plotly/plotly/validators/layout/yaxis/_minallowed.py index 098c842966a..261c148b0cf 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_minallowed.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_minallowed.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinallowedValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="minallowed", parent_name="layout.yaxis", **kwargs): - super(MinallowedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"^autorange": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinallowedValidator(_bv.AnyValidator): + def __init__(self, plotly_name='minallowed', + parent_name='layout.yaxis', + **kwargs): + super(MinallowedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'^autorange': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_minexponent.py b/packages/python/plotly/plotly/validators/layout/yaxis/_minexponent.py index b1e7145399f..296a4ae0224 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_minexponent.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_minexponent.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="minexponent", parent_name="layout.yaxis", **kwargs): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='layout.yaxis', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_minor.py b/packages/python/plotly/plotly/validators/layout/yaxis/_minor.py index b0b20ae6bb1..c94c79a1c5a 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_minor.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_minor.py @@ -1,104 +1,15 @@ -import _plotly_utils.basevalidators -class MinorValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="minor", parent_name="layout.yaxis", **kwargs): - super(MinorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Minor"), - data_docs=kwargs.pop( - "data_docs", - """ - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - gridcolor - Sets the color of the grid lines. - 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 width (in px) of the grid lines. - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - showgrid - Determines whether or not grid lines are drawn. - If True, the grid lines are drawn at every tick - mark. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickcolor - Sets the tick color. - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MinorValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='minor', + parent_name='layout.yaxis', + **kwargs): + super(MinorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Minor'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_mirror.py b/packages/python/plotly/plotly/validators/layout/yaxis/_mirror.py index 66eec2e3c40..9d57ec125eb 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_mirror.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_mirror.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MirrorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="mirror", parent_name="layout.yaxis", **kwargs): - super(MirrorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks+layoutstyle"), - values=kwargs.pop("values", [True, "ticks", False, "all", "allticks"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MirrorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='mirror', + parent_name='layout.yaxis', + **kwargs): + super(MirrorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks+layoutstyle'), + values=kwargs.pop('values', [True, 'ticks', False, 'all', 'allticks']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_nticks.py b/packages/python/plotly/plotly/validators/layout/yaxis/_nticks.py index a9bc214f04e..2c4d4023b49 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_nticks.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_nticks.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="nticks", parent_name="layout.yaxis", **kwargs): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='layout.yaxis', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_overlaying.py b/packages/python/plotly/plotly/validators/layout/yaxis/_overlaying.py index ba0c49c039d..b780a555b99 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_overlaying.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_overlaying.py @@ -1,19 +1,14 @@ -import _plotly_utils.basevalidators -class OverlayingValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="overlaying", parent_name="layout.yaxis", **kwargs): - super(OverlayingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "free", - "/^x([2-9]|[1-9][0-9]+)?( domain)?$/", - "/^y([2-9]|[1-9][0-9]+)?( domain)?$/", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OverlayingValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='overlaying', + parent_name='layout.yaxis', + **kwargs): + super(OverlayingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['free', '/^x([2-9]|[1-9][0-9]+)?( domain)?$/', '/^y([2-9]|[1-9][0-9]+)?( domain)?$/']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_position.py b/packages/python/plotly/plotly/validators/layout/yaxis/_position.py index 86b438df67a..0510245f6fc 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_position.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_position.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class PositionValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="position", parent_name="layout.yaxis", **kwargs): - super(PositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class PositionValidator(_bv.NumberValidator): + def __init__(self, plotly_name='position', + parent_name='layout.yaxis', + **kwargs): + super(PositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_range.py b/packages/python/plotly/plotly/validators/layout/yaxis/_range.py index 0ce610d21cf..cc4e6ef5c7b 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_range.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_range.py @@ -1,30 +1,16 @@ -import _plotly_utils.basevalidators -class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="range", parent_name="layout.yaxis", **kwargs): - super(RangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "axrange"), - implied_edits=kwargs.pop("implied_edits", {"autorange": False}), - items=kwargs.pop( - "items", - [ - { - "anim": True, - "editType": "axrange", - "impliedEdits": {"^autorange": False}, - "valType": "any", - }, - { - "anim": True, - "editType": "axrange", - "impliedEdits": {"^autorange": False}, - "valType": "any", - }, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='range', + parent_name='layout.yaxis', + **kwargs): + super(RangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'axrange'), + implied_edits=kwargs.pop('implied_edits', {'autorange': False}), + items=kwargs.pop('items', [{'anim': True, 'editType': 'axrange', 'impliedEdits': {'^autorange': False}, 'valType': 'any'}, {'anim': True, 'editType': 'axrange', 'impliedEdits': {'^autorange': False}, 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_rangebreakdefaults.py b/packages/python/plotly/plotly/validators/layout/yaxis/_rangebreakdefaults.py index 4672f81a047..ea04c720e4f 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_rangebreakdefaults.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_rangebreakdefaults.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class RangebreakdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="rangebreakdefaults", parent_name="layout.yaxis", **kwargs - ): - super(RangebreakdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Rangebreak"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RangebreakdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='rangebreakdefaults', + parent_name='layout.yaxis', + **kwargs): + super(RangebreakdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Rangebreak'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_rangebreaks.py b/packages/python/plotly/plotly/validators/layout/yaxis/_rangebreaks.py index 0f78ac34f3b..1080ba1b2c3 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_rangebreaks.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_rangebreaks.py @@ -1,67 +1,15 @@ -import _plotly_utils.basevalidators -class RangebreaksValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__(self, plotly_name="rangebreaks", parent_name="layout.yaxis", **kwargs): - super(RangebreaksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Rangebreak"), - data_docs=kwargs.pop( - "data_docs", - """ - bounds - Sets the lower and upper bounds of this axis - rangebreak. Can be used with `pattern`. - dvalue - Sets the size of each `values` item. The - default is one day in milliseconds. - enabled - Determines whether this axis rangebreak is - enabled or disabled. Please note that - `rangebreaks` only work for "date" axis type. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - pattern - Determines a pattern on the time line that - generates breaks. If *day of week* - days of - the week in English e.g. 'Sunday' or `sun` - (matching is case-insensitive and considers - only the first three characters), as well as - Sunday-based integers between 0 and 6. If - "hour" - hour (24-hour clock) as decimal - numbers between 0 and 24. for more info. - Examples: - { pattern: 'day of week', bounds: - [6, 1] } or simply { bounds: ['sat', 'mon'] } - breaks from Saturday to Monday (i.e. skips the - weekends). - { pattern: 'hour', bounds: [17, 8] - } breaks from 5pm to 8am (i.e. skips non-work - hours). - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - values - Sets the coordinate values corresponding to the - rangebreaks. An alternative to `bounds`. Use - `dvalue` to set the size of the values along - the axis. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RangebreaksValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='rangebreaks', + parent_name='layout.yaxis', + **kwargs): + super(RangebreaksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Rangebreak'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_rangemode.py b/packages/python/plotly/plotly/validators/layout/yaxis/_rangemode.py index e59e360ee40..19ef5e3a17a 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_rangemode.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_rangemode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class RangemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="rangemode", parent_name="layout.yaxis", **kwargs): - super(RangemodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "tozero", "nonnegative"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RangemodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='rangemode', + parent_name='layout.yaxis', + **kwargs): + super(RangemodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'tozero', 'nonnegative']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_scaleanchor.py b/packages/python/plotly/plotly/validators/layout/yaxis/_scaleanchor.py index 241db369387..700fc7fdccd 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_scaleanchor.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_scaleanchor.py @@ -1,19 +1,14 @@ -import _plotly_utils.basevalidators -class ScaleanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="scaleanchor", parent_name="layout.yaxis", **kwargs): - super(ScaleanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "/^x([2-9]|[1-9][0-9]+)?( domain)?$/", - "/^y([2-9]|[1-9][0-9]+)?( domain)?$/", - False, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ScaleanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='scaleanchor', + parent_name='layout.yaxis', + **kwargs): + super(ScaleanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['/^x([2-9]|[1-9][0-9]+)?( domain)?$/', '/^y([2-9]|[1-9][0-9]+)?( domain)?$/', False]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_scaleratio.py b/packages/python/plotly/plotly/validators/layout/yaxis/_scaleratio.py index 341aa62a965..8b944e7c7d4 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_scaleratio.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_scaleratio.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ScaleratioValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="scaleratio", parent_name="layout.yaxis", **kwargs): - super(ScaleratioValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ScaleratioValidator(_bv.NumberValidator): + def __init__(self, plotly_name='scaleratio', + parent_name='layout.yaxis', + **kwargs): + super(ScaleratioValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_separatethousands.py b/packages/python/plotly/plotly/validators/layout/yaxis/_separatethousands.py index 77ec9350d9e..fa32a06e8f2 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_separatethousands.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="separatethousands", parent_name="layout.yaxis", **kwargs - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='layout.yaxis', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_shift.py b/packages/python/plotly/plotly/validators/layout/yaxis/_shift.py index cdfc87bc25b..4ebfcb892e7 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_shift.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_shift.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShiftValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="shift", parent_name="layout.yaxis", **kwargs): - super(ShiftValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShiftValidator(_bv.NumberValidator): + def __init__(self, plotly_name='shift', + parent_name='layout.yaxis', + **kwargs): + super(ShiftValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_showdividers.py b/packages/python/plotly/plotly/validators/layout/yaxis/_showdividers.py index af3e6d03aed..0feb6a014f3 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_showdividers.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_showdividers.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowdividersValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showdividers", parent_name="layout.yaxis", **kwargs - ): - super(ShowdividersValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowdividersValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showdividers', + parent_name='layout.yaxis', + **kwargs): + super(ShowdividersValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_showexponent.py b/packages/python/plotly/plotly/validators/layout/yaxis/_showexponent.py index 207e2ed444d..d8e6900937c 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_showexponent.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="layout.yaxis", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='layout.yaxis', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_showgrid.py b/packages/python/plotly/plotly/validators/layout/yaxis/_showgrid.py index ccc3013ec4e..453614174d6 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_showgrid.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_showgrid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showgrid", parent_name="layout.yaxis", **kwargs): - super(ShowgridValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowgridValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showgrid', + parent_name='layout.yaxis', + **kwargs): + super(ShowgridValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_showline.py b/packages/python/plotly/plotly/validators/layout/yaxis/_showline.py index 9161f56824a..7dc4ecf6336 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_showline.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_showline.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showline", parent_name="layout.yaxis", **kwargs): - super(ShowlineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks+layoutstyle"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlineValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showline', + parent_name='layout.yaxis', + **kwargs): + super(ShowlineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks+layoutstyle'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_showspikes.py b/packages/python/plotly/plotly/validators/layout/yaxis/_showspikes.py index bcdefbd81d4..6e0eaa7844d 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_showspikes.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_showspikes.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowspikesValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showspikes", parent_name="layout.yaxis", **kwargs): - super(ShowspikesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "modebar"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowspikesValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showspikes', + parent_name='layout.yaxis', + **kwargs): + super(ShowspikesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'modebar'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_showticklabels.py b/packages/python/plotly/plotly/validators/layout/yaxis/_showticklabels.py index 5b26ea3f3c4..31e2eb44b21 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_showticklabels.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showticklabels", parent_name="layout.yaxis", **kwargs - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='layout.yaxis', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_showtickprefix.py b/packages/python/plotly/plotly/validators/layout/yaxis/_showtickprefix.py index 0b540282e45..f16568d5055 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_showtickprefix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showtickprefix", parent_name="layout.yaxis", **kwargs - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='layout.yaxis', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_showticksuffix.py b/packages/python/plotly/plotly/validators/layout/yaxis/_showticksuffix.py index 70e20229b14..00d14ffbcde 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_showticksuffix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showticksuffix", parent_name="layout.yaxis", **kwargs - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='layout.yaxis', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_side.py b/packages/python/plotly/plotly/validators/layout/yaxis/_side.py index 95d7c48ec5e..3b0a683e20c 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_side.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_side.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="side", parent_name="layout.yaxis", **kwargs): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["top", "bottom", "left", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='layout.yaxis', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['top', 'bottom', 'left', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_spikecolor.py b/packages/python/plotly/plotly/validators/layout/yaxis/_spikecolor.py index 87580b7e716..2804675f587 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_spikecolor.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_spikecolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SpikecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="spikecolor", parent_name="layout.yaxis", **kwargs): - super(SpikecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SpikecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='spikecolor', + parent_name='layout.yaxis', + **kwargs): + super(SpikecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_spikedash.py b/packages/python/plotly/plotly/validators/layout/yaxis/_spikedash.py index 8f2ae4012d1..31d8b919076 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_spikedash.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_spikedash.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SpikedashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__(self, plotly_name="spikedash", parent_name="layout.yaxis", **kwargs): - super(SpikedashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SpikedashValidator(_bv.DashValidator): + def __init__(self, plotly_name='spikedash', + parent_name='layout.yaxis', + **kwargs): + super(SpikedashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_spikemode.py b/packages/python/plotly/plotly/validators/layout/yaxis/_spikemode.py index 0ba05a888aa..a97642e720e 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_spikemode.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_spikemode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SpikemodeValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="spikemode", parent_name="layout.yaxis", **kwargs): - super(SpikemodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - flags=kwargs.pop("flags", ["toaxis", "across", "marker"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SpikemodeValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='spikemode', + parent_name='layout.yaxis', + **kwargs): + super(SpikemodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + flags=kwargs.pop('flags', ['toaxis', 'across', 'marker']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_spikesnap.py b/packages/python/plotly/plotly/validators/layout/yaxis/_spikesnap.py index 6fdf975858f..cfbb2dbf963 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_spikesnap.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_spikesnap.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SpikesnapValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="spikesnap", parent_name="layout.yaxis", **kwargs): - super(SpikesnapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["data", "cursor", "hovered data"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SpikesnapValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='spikesnap', + parent_name='layout.yaxis', + **kwargs): + super(SpikesnapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['data', 'cursor', 'hovered data']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_spikethickness.py b/packages/python/plotly/plotly/validators/layout/yaxis/_spikethickness.py index c5e28fefc54..18178adfe7f 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_spikethickness.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_spikethickness.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SpikethicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="spikethickness", parent_name="layout.yaxis", **kwargs - ): - super(SpikethicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SpikethicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='spikethickness', + parent_name='layout.yaxis', + **kwargs): + super(SpikethicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_tick0.py b/packages/python/plotly/plotly/validators/layout/yaxis/_tick0.py index 7b324c3a0eb..6a59d04938b 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_tick0.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_tick0.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="tick0", parent_name="layout.yaxis", **kwargs): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='layout.yaxis', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_tickangle.py b/packages/python/plotly/plotly/validators/layout/yaxis/_tickangle.py index ba701e15cb5..c0ee6abf4c2 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_tickangle.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_tickangle.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__(self, plotly_name="tickangle", parent_name="layout.yaxis", **kwargs): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='layout.yaxis', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_tickcolor.py b/packages/python/plotly/plotly/validators/layout/yaxis/_tickcolor.py index 1e13c351b56..298a8d630cc 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_tickcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="tickcolor", parent_name="layout.yaxis", **kwargs): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='layout.yaxis', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_tickfont.py b/packages/python/plotly/plotly/validators/layout/yaxis/_tickfont.py index e55d0167a89..17523089dc3 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_tickfont.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_tickfont.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="tickfont", parent_name="layout.yaxis", **kwargs): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='layout.yaxis', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_tickformat.py b/packages/python/plotly/plotly/validators/layout/yaxis/_tickformat.py index fa8214a043b..be1c009247b 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_tickformat.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_tickformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="tickformat", parent_name="layout.yaxis", **kwargs): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='layout.yaxis', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/layout/yaxis/_tickformatstopdefaults.py index 4a6942dd16e..aa5e9a341d0 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_tickformatstopdefaults.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickformatstopdefaults", parent_name="layout.yaxis", **kwargs - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='layout.yaxis', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_tickformatstops.py b/packages/python/plotly/plotly/validators/layout/yaxis/_tickformatstops.py index 1aff114f02f..5c63d344786 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_tickformatstops.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="tickformatstops", parent_name="layout.yaxis", **kwargs - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='layout.yaxis', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabelindex.py b/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabelindex.py index 6f3df29d1b7..dbb109994f8 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabelindex.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabelindex.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabelindexValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="ticklabelindex", parent_name="layout.yaxis", **kwargs - ): - super(TicklabelindexValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelindexValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelindex', + parent_name='layout.yaxis', + **kwargs): + super(TicklabelindexValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabelindexsrc.py b/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabelindexsrc.py index 0d0c77a6f75..2afed5286a3 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabelindexsrc.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabelindexsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicklabelindexsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticklabelindexsrc", parent_name="layout.yaxis", **kwargs - ): - super(TicklabelindexsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelindexsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticklabelindexsrc', + parent_name='layout.yaxis', + **kwargs): + super(TicklabelindexsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabelmode.py b/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabelmode.py index 164d49f56aa..2624f751cca 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabelmode.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabelmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabelmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticklabelmode", parent_name="layout.yaxis", **kwargs - ): - super(TicklabelmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop("values", ["instant", "period"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelmode', + parent_name='layout.yaxis', + **kwargs): + super(TicklabelmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['instant', 'period']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabeloverflow.py index ff2bf9766c2..86db99fb240 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabeloverflow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticklabeloverflow", parent_name="layout.yaxis", **kwargs - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='layout.yaxis', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabelposition.py b/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabelposition.py index 2f49aee90e6..11a89cf67ae 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabelposition.py @@ -1,28 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticklabelposition", parent_name="layout.yaxis", **kwargs - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='layout.yaxis', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabelshift.py b/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabelshift.py index bbef76d1768..253a29f87d6 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabelshift.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabelshift.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicklabelshiftValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="ticklabelshift", parent_name="layout.yaxis", **kwargs - ): - super(TicklabelshiftValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelshiftValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelshift', + parent_name='layout.yaxis', + **kwargs): + super(TicklabelshiftValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabelstandoff.py b/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabelstandoff.py index c46e83562a3..e975334b6cc 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabelstandoff.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabelstandoff.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicklabelstandoffValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="ticklabelstandoff", parent_name="layout.yaxis", **kwargs - ): - super(TicklabelstandoffValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelstandoffValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstandoff', + parent_name='layout.yaxis', + **kwargs): + super(TicklabelstandoffValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabelstep.py b/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabelstep.py index 683d7825f22..142344997de 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_ticklabelstep.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="ticklabelstep", parent_name="layout.yaxis", **kwargs - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='layout.yaxis', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_ticklen.py b/packages/python/plotly/plotly/validators/layout/yaxis/_ticklen.py index 38cde5b2872..53d3443ee84 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_ticklen.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_ticklen.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="ticklen", parent_name="layout.yaxis", **kwargs): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='layout.yaxis', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_tickmode.py b/packages/python/plotly/plotly/validators/layout/yaxis/_tickmode.py index a75c20cfa3b..50ee424c60c 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_tickmode.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_tickmode.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="tickmode", parent_name="layout.yaxis", **kwargs): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array", "sync"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='layout.yaxis', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array', 'sync']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_tickprefix.py b/packages/python/plotly/plotly/validators/layout/yaxis/_tickprefix.py index 452a8fd8854..a32fc88f380 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_tickprefix.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="tickprefix", parent_name="layout.yaxis", **kwargs): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='layout.yaxis', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_ticks.py b/packages/python/plotly/plotly/validators/layout/yaxis/_ticks.py index 19830c8a90f..41079ab21c1 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_ticks.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_ticks.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="ticks", parent_name="layout.yaxis", **kwargs): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='layout.yaxis', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_tickson.py b/packages/python/plotly/plotly/validators/layout/yaxis/_tickson.py index 9a1ac3649cf..0cd83a81641 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_tickson.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_tickson.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksonValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="tickson", parent_name="layout.yaxis", **kwargs): - super(TicksonValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop("values", ["labels", "boundaries"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksonValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickson', + parent_name='layout.yaxis', + **kwargs): + super(TicksonValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['labels', 'boundaries']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_ticksuffix.py b/packages/python/plotly/plotly/validators/layout/yaxis/_ticksuffix.py index 6bc108ff66b..8a49839f3db 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_ticksuffix.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="ticksuffix", parent_name="layout.yaxis", **kwargs): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='layout.yaxis', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_ticktext.py b/packages/python/plotly/plotly/validators/layout/yaxis/_ticktext.py index 92468316953..6e589e14ebf 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_ticktext.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_ticktext.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ticktext", parent_name="layout.yaxis", **kwargs): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='layout.yaxis', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_ticktextsrc.py b/packages/python/plotly/plotly/validators/layout/yaxis/_ticktextsrc.py index c79b304ba46..992957081ae 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_ticktextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="ticktextsrc", parent_name="layout.yaxis", **kwargs): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='layout.yaxis', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_tickvals.py b/packages/python/plotly/plotly/validators/layout/yaxis/_tickvals.py index e5e641835fa..fed4155b8e4 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_tickvals.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_tickvals.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="tickvals", parent_name="layout.yaxis", **kwargs): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='layout.yaxis', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_tickvalssrc.py b/packages/python/plotly/plotly/validators/layout/yaxis/_tickvalssrc.py index 8cf431ca460..6fea2c52047 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_tickvalssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="tickvalssrc", parent_name="layout.yaxis", **kwargs): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='layout.yaxis', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_tickwidth.py b/packages/python/plotly/plotly/validators/layout/yaxis/_tickwidth.py index 2810f164149..b154b3d5c70 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_tickwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="tickwidth", parent_name="layout.yaxis", **kwargs): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='layout.yaxis', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_title.py b/packages/python/plotly/plotly/validators/layout/yaxis/_title.py index ef6734d219c..82274bc7ec8 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_title.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_title.py @@ -1,32 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__(self, plotly_name="title", parent_name="layout.yaxis", **kwargs): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this axis' title font. - standoff - Sets the standoff distance (in px) between the - axis labels and the title text The default - value is a function of the axis tick labels, - the title `font.size` and the axis `linewidth`. - Note that the axis title position is always - constrained within the margins, so the actual - standoff distance is always less than the set - or default value. By setting `standoff` and - turning on `automargin`, plotly.js will push - the margins to fit the axis title at given - standoff distance. - text - Sets the title of this axis. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='layout.yaxis', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_type.py b/packages/python/plotly/plotly/validators/layout/yaxis/_type.py index 18796c814c1..36f38f13f30 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_type.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_type.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="type", parent_name="layout.yaxis", **kwargs): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", ["-", "linear", "log", "date", "category", "multicategory"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='layout.yaxis', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['-', 'linear', 'log', 'date', 'category', 'multicategory']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_uirevision.py b/packages/python/plotly/plotly/validators/layout/yaxis/_uirevision.py index 8a336770762..5d61da2f4f1 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_uirevision.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="layout.yaxis", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='layout.yaxis', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_visible.py b/packages/python/plotly/plotly/validators/layout/yaxis/_visible.py index 59a07a109ad..755e8742d27 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_visible.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_visible.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="visible", parent_name="layout.yaxis", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='layout.yaxis', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_zeroline.py b/packages/python/plotly/plotly/validators/layout/yaxis/_zeroline.py index 94a1455e930..14b81cdc793 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_zeroline.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_zeroline.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZerolineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="zeroline", parent_name="layout.yaxis", **kwargs): - super(ZerolineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZerolineValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='zeroline', + parent_name='layout.yaxis', + **kwargs): + super(ZerolineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_zerolinecolor.py b/packages/python/plotly/plotly/validators/layout/yaxis/_zerolinecolor.py index bc75f094426..b0088325a96 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_zerolinecolor.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_zerolinecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ZerolinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="zerolinecolor", parent_name="layout.yaxis", **kwargs - ): - super(ZerolinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZerolinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='zerolinecolor', + parent_name='layout.yaxis', + **kwargs): + super(ZerolinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_zerolinewidth.py b/packages/python/plotly/plotly/validators/layout/yaxis/_zerolinewidth.py index 8b1f12a3b98..eccb6e502c9 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_zerolinewidth.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_zerolinewidth.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ZerolinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="zerolinewidth", parent_name="layout.yaxis", **kwargs - ): - super(ZerolinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZerolinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='zerolinewidth', + parent_name='layout.yaxis', + **kwargs): + super(ZerolinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/autorangeoptions/__init__.py b/packages/python/plotly/plotly/validators/layout/yaxis/autorangeoptions/__init__.py index 701f84c04e0..7f4b2620040 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/autorangeoptions/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/autorangeoptions/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._minallowed import MinallowedValidator from ._maxallowed import MaxallowedValidator @@ -10,16 +9,10 @@ from ._clipmax import ClipmaxValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._minallowed.MinallowedValidator", - "._maxallowed.MaxallowedValidator", - "._includesrc.IncludesrcValidator", - "._include.IncludeValidator", - "._clipmin.ClipminValidator", - "._clipmax.ClipmaxValidator", - ], + ['._minallowed.MinallowedValidator', '._maxallowed.MaxallowedValidator', '._includesrc.IncludesrcValidator', '._include.IncludeValidator', '._clipmin.ClipminValidator', '._clipmax.ClipmaxValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/autorangeoptions/_clipmax.py b/packages/python/plotly/plotly/validators/layout/yaxis/autorangeoptions/_clipmax.py index 2ff2ca46b47..bee3718df4f 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/autorangeoptions/_clipmax.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/autorangeoptions/_clipmax.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ClipmaxValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="clipmax", - parent_name="layout.yaxis.autorangeoptions", - **kwargs, - ): - super(ClipmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ClipmaxValidator(_bv.AnyValidator): + def __init__(self, plotly_name='clipmax', + parent_name='layout.yaxis.autorangeoptions', + **kwargs): + super(ClipmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/autorangeoptions/_clipmin.py b/packages/python/plotly/plotly/validators/layout/yaxis/autorangeoptions/_clipmin.py index 4f7df433a45..92724a72dfa 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/autorangeoptions/_clipmin.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/autorangeoptions/_clipmin.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ClipminValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="clipmin", - parent_name="layout.yaxis.autorangeoptions", - **kwargs, - ): - super(ClipminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ClipminValidator(_bv.AnyValidator): + def __init__(self, plotly_name='clipmin', + parent_name='layout.yaxis.autorangeoptions', + **kwargs): + super(ClipminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/autorangeoptions/_include.py b/packages/python/plotly/plotly/validators/layout/yaxis/autorangeoptions/_include.py index 8dcd1d2a1ee..92e47167366 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/autorangeoptions/_include.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/autorangeoptions/_include.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class IncludeValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="include", - parent_name="layout.yaxis.autorangeoptions", - **kwargs, - ): - super(IncludeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IncludeValidator(_bv.AnyValidator): + def __init__(self, plotly_name='include', + parent_name='layout.yaxis.autorangeoptions', + **kwargs): + super(IncludeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/autorangeoptions/_includesrc.py b/packages/python/plotly/plotly/validators/layout/yaxis/autorangeoptions/_includesrc.py index a9bd9fe0b2d..457069eac20 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/autorangeoptions/_includesrc.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/autorangeoptions/_includesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class IncludesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="includesrc", - parent_name="layout.yaxis.autorangeoptions", - **kwargs, - ): - super(IncludesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IncludesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='includesrc', + parent_name='layout.yaxis.autorangeoptions', + **kwargs): + super(IncludesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/autorangeoptions/_maxallowed.py b/packages/python/plotly/plotly/validators/layout/yaxis/autorangeoptions/_maxallowed.py index 0059a1dba34..a3af470d9eb 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/autorangeoptions/_maxallowed.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/autorangeoptions/_maxallowed.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class MaxallowedValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="maxallowed", - parent_name="layout.yaxis.autorangeoptions", - **kwargs, - ): - super(MaxallowedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MaxallowedValidator(_bv.AnyValidator): + def __init__(self, plotly_name='maxallowed', + parent_name='layout.yaxis.autorangeoptions', + **kwargs): + super(MaxallowedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/autorangeoptions/_minallowed.py b/packages/python/plotly/plotly/validators/layout/yaxis/autorangeoptions/_minallowed.py index 8008d2f5c22..2ebbde4d9c3 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/autorangeoptions/_minallowed.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/autorangeoptions/_minallowed.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class MinallowedValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="minallowed", - parent_name="layout.yaxis.autorangeoptions", - **kwargs, - ): - super(MinallowedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MinallowedValidator(_bv.AnyValidator): + def __init__(self, plotly_name='minallowed', + parent_name='layout.yaxis.autorangeoptions', + **kwargs): + super(MinallowedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/minor/__init__.py b/packages/python/plotly/plotly/validators/layout/yaxis/minor/__init__.py index 27860a82b88..e8918912f0b 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/minor/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/minor/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._tickwidth import TickwidthValidator from ._tickvalssrc import TickvalssrcValidator @@ -18,24 +17,10 @@ from ._dtick import DtickValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticks.TicksValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._tickcolor.TickcolorValidator", - "._tick0.Tick0Validator", - "._showgrid.ShowgridValidator", - "._nticks.NticksValidator", - "._gridwidth.GridwidthValidator", - "._griddash.GriddashValidator", - "._gridcolor.GridcolorValidator", - "._dtick.DtickValidator", - ], + ['._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticks.TicksValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._tickcolor.TickcolorValidator', '._tick0.Tick0Validator', '._showgrid.ShowgridValidator', '._nticks.NticksValidator', '._gridwidth.GridwidthValidator', '._griddash.GriddashValidator', '._gridcolor.GridcolorValidator', '._dtick.DtickValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_dtick.py b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_dtick.py index c1753b0a6a6..cfdc3691349 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_dtick.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_dtick.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="dtick", parent_name="layout.yaxis.minor", **kwargs): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='layout.yaxis.minor', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_gridcolor.py b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_gridcolor.py index 308f17541ca..70ef97687fc 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_gridcolor.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_gridcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="gridcolor", parent_name="layout.yaxis.minor", **kwargs - ): - super(GridcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='gridcolor', + parent_name='layout.yaxis.minor', + **kwargs): + super(GridcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_griddash.py b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_griddash.py index 1ca8429bf73..a3d386755f0 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_griddash.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_griddash.py @@ -1,16 +1,14 @@ -import _plotly_utils.basevalidators -class GriddashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__( - self, plotly_name="griddash", parent_name="layout.yaxis.minor", **kwargs - ): - super(GriddashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop( - "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class GriddashValidator(_bv.DashValidator): + def __init__(self, plotly_name='griddash', + parent_name='layout.yaxis.minor', + **kwargs): + super(GriddashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_gridwidth.py b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_gridwidth.py index b4988e01eee..397b9799477 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_gridwidth.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_gridwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="gridwidth", parent_name="layout.yaxis.minor", **kwargs - ): - super(GridwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GridwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='gridwidth', + parent_name='layout.yaxis.minor', + **kwargs): + super(GridwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_nticks.py b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_nticks.py index e9178e0b78e..1d16544bd70 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_nticks.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="layout.yaxis.minor", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='layout.yaxis.minor', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_showgrid.py b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_showgrid.py index de9af918673..ba51db963a5 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_showgrid.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_showgrid.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showgrid", parent_name="layout.yaxis.minor", **kwargs - ): - super(ShowgridValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowgridValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showgrid', + parent_name='layout.yaxis.minor', + **kwargs): + super(ShowgridValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_tick0.py b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_tick0.py index 113d05e3977..05b79c9dc11 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_tick0.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_tick0.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="tick0", parent_name="layout.yaxis.minor", **kwargs): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='layout.yaxis.minor', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_tickcolor.py b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_tickcolor.py index 15c4dfe893f..f1550c4d198 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="layout.yaxis.minor", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='layout.yaxis.minor', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_ticklen.py b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_ticklen.py index 6ef5436ee10..6dba8577686 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_ticklen.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="layout.yaxis.minor", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='layout.yaxis.minor', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_tickmode.py b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_tickmode.py index 8ea6d4d4763..3b0f5d8326a 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_tickmode.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="layout.yaxis.minor", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='layout.yaxis.minor', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_ticks.py b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_ticks.py index dcc5ba5a158..5d8605abb9a 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_ticks.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_ticks.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="ticks", parent_name="layout.yaxis.minor", **kwargs): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='layout.yaxis.minor', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_tickvals.py b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_tickvals.py index 9c3e7850f8d..97a61459bdf 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_tickvals.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="layout.yaxis.minor", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='layout.yaxis.minor', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_tickvalssrc.py b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_tickvalssrc.py index 9b16c27d734..a96f103bc37 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="layout.yaxis.minor", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='layout.yaxis.minor', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_tickwidth.py b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_tickwidth.py index 7d12597cad8..12734ae678c 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="layout.yaxis.minor", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='layout.yaxis.minor', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/__init__.py b/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/__init__.py index 03883658535..f2db8394845 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._values import ValuesValidator from ._templateitemname import TemplateitemnameValidator @@ -11,17 +10,10 @@ from ._bounds import BoundsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._values.ValuesValidator", - "._templateitemname.TemplateitemnameValidator", - "._pattern.PatternValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dvalue.DvalueValidator", - "._bounds.BoundsValidator", - ], + ['._values.ValuesValidator', '._templateitemname.TemplateitemnameValidator', '._pattern.PatternValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dvalue.DvalueValidator', '._bounds.BoundsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/_bounds.py b/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/_bounds.py index 6caf9a64b5a..c6cb74360e4 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/_bounds.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/_bounds.py @@ -1,20 +1,14 @@ -import _plotly_utils.basevalidators -class BoundsValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, plotly_name="bounds", parent_name="layout.yaxis.rangebreak", **kwargs - ): - super(BoundsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "valType": "any"}, - {"editType": "calc", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BoundsValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='bounds', + parent_name='layout.yaxis.rangebreak', + **kwargs): + super(BoundsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'valType': 'any'}, {'editType': 'calc', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/_dvalue.py b/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/_dvalue.py index 85f07445749..69ae90bee5b 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/_dvalue.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/_dvalue.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DvalueValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="dvalue", parent_name="layout.yaxis.rangebreak", **kwargs - ): - super(DvalueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DvalueValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dvalue', + parent_name='layout.yaxis.rangebreak', + **kwargs): + super(DvalueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/_enabled.py b/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/_enabled.py index a302a7f1c9c..171cdb1f816 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/_enabled.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/_enabled.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="enabled", parent_name="layout.yaxis.rangebreak", **kwargs - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='layout.yaxis.rangebreak', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/_name.py b/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/_name.py index 347ac646ad3..ee505971efb 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/_name.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/_name.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="name", parent_name="layout.yaxis.rangebreak", **kwargs - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='layout.yaxis.rangebreak', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/_pattern.py b/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/_pattern.py index 331317d2e5b..c0c5984bcb9 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/_pattern.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/_pattern.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class PatternValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="pattern", parent_name="layout.yaxis.rangebreak", **kwargs - ): - super(PatternValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["day of week", "hour", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class PatternValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='pattern', + parent_name='layout.yaxis.rangebreak', + **kwargs): + super(PatternValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['day of week', 'hour', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/_templateitemname.py b/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/_templateitemname.py index 00318042eb3..2280e66baef 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="layout.yaxis.rangebreak", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='layout.yaxis.rangebreak', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/_values.py b/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/_values.py index c1076708fb5..4a0146753d0 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/_values.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/rangebreak/_values.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ValuesValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, plotly_name="values", parent_name="layout.yaxis.rangebreak", **kwargs - ): - super(ValuesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - free_length=kwargs.pop("free_length", True), - items=kwargs.pop("items", {"editType": "calc", "valType": "any"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValuesValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='values', + parent_name='layout.yaxis.rangebreak', + **kwargs): + super(ValuesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + free_length=kwargs.pop('free_length', True), + items=kwargs.pop('items', {'editType': 'calc', 'valType': 'any'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/__init__.py b/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_color.py b/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_color.py index d3e70c57f22..e1adfde1c74 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.yaxis.tickfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.yaxis.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_family.py b/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_family.py index d311526674e..38fc4e66959 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="layout.yaxis.tickfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.yaxis.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_lineposition.py index 99dc6725df0..f8580420303 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_lineposition.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="layout.yaxis.tickfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.yaxis.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_shadow.py index dd3c38dd7b3..38d1cf93a5d 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="layout.yaxis.tickfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.yaxis.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_size.py b/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_size.py index 6bd11497ef5..4e3ec8de3d0 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="layout.yaxis.tickfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.yaxis.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_style.py b/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_style.py index 360946af755..10d7d94ef0c 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="layout.yaxis.tickfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.yaxis.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_textcase.py index d4564daee73..35a4f39cb78 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="layout.yaxis.tickfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.yaxis.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_variant.py b/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_variant.py index b704344df0b..bade605e5d8 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="layout.yaxis.tickfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.yaxis.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_weight.py b/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_weight.py index 6fc4b64ad26..8571ca2190b 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="layout.yaxis.tickfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.yaxis.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/layout/yaxis/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/layout/yaxis/tickformatstop/_dtickrange.py index abf1131c097..fc3b35f2c3f 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="layout.yaxis.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - items=kwargs.pop( - "items", - [ - {"editType": "ticks", "valType": "any"}, - {"editType": "ticks", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='layout.yaxis.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + items=kwargs.pop('items', [{'editType': 'ticks', 'valType': 'any'}, {'editType': 'ticks', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/layout/yaxis/tickformatstop/_enabled.py index 8d7ce57f4b6..9ca30208760 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/tickformatstop/_enabled.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="enabled", parent_name="layout.yaxis.tickformatstop", **kwargs - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='layout.yaxis.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/layout/yaxis/tickformatstop/_name.py index d0280b3ba70..fe4b5fd4d12 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/tickformatstop/_name.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="name", parent_name="layout.yaxis.tickformatstop", **kwargs - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='layout.yaxis.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/layout/yaxis/tickformatstop/_templateitemname.py index 7d930dab93e..0e210987890 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="layout.yaxis.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='layout.yaxis.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/layout/yaxis/tickformatstop/_value.py index 0a43d801476..8fae675b905 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/tickformatstop/_value.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="value", parent_name="layout.yaxis.tickformatstop", **kwargs - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='layout.yaxis.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/title/__init__.py b/packages/python/plotly/plotly/validators/layout/yaxis/title/__init__.py index e8ad96b4dc9..e2ad39fd5c8 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/title/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/title/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._standoff import StandoffValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._text.TextValidator", - "._standoff.StandoffValidator", - "._font.FontValidator", - ], + ['._text.TextValidator', '._standoff.StandoffValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/title/_font.py b/packages/python/plotly/plotly/validators/layout/yaxis/title/_font.py index 16ba168ff83..34c88521a1d 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/title/_font.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/title/_font.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="layout.yaxis.title", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='layout.yaxis.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/title/_standoff.py b/packages/python/plotly/plotly/validators/layout/yaxis/title/_standoff.py index eff34897c65..b0d5f75286f 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/title/_standoff.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/title/_standoff.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StandoffValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="standoff", parent_name="layout.yaxis.title", **kwargs - ): - super(StandoffValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StandoffValidator(_bv.NumberValidator): + def __init__(self, plotly_name='standoff', + parent_name='layout.yaxis.title', + **kwargs): + super(StandoffValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/title/_text.py b/packages/python/plotly/plotly/validators/layout/yaxis/title/_text.py index f90a0adfb2a..212895f75e2 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/title/_text.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/title/_text.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="layout.yaxis.title", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='layout.yaxis.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/title/font/__init__.py b/packages/python/plotly/plotly/validators/layout/yaxis/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_color.py b/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_color.py index b1bb5b4af0e..763cf43f71d 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="layout.yaxis.title.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='layout.yaxis.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_family.py b/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_family.py index 3a5ed8d4aa4..02e010cf46f 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="layout.yaxis.title.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='layout.yaxis.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_lineposition.py index 7b89c32f788..802c32d5866 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="layout.yaxis.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='layout.yaxis.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_shadow.py b/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_shadow.py index 85e4a71a08d..7285a14bb1b 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="layout.yaxis.title.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='layout.yaxis.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_size.py b/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_size.py index d7992ca800b..b445ed2822f 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="layout.yaxis.title.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='layout.yaxis.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_style.py b/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_style.py index 3aa7a6db5e7..e781f4e785b 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="layout.yaxis.title.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='layout.yaxis.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_textcase.py b/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_textcase.py index 0cf33560fce..dc67d3cc192 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="layout.yaxis.title.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='layout.yaxis.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_variant.py b/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_variant.py index 573b5411590..4a50e76ac58 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="layout.yaxis.title.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='layout.yaxis.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_weight.py b/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_weight.py index c02757ac8ec..99273b025e6 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/title/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="layout.yaxis.title.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "ticks"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='layout.yaxis.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'ticks'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/__init__.py b/packages/python/plotly/plotly/validators/mesh3d/__init__.py index fc0281e8973..f8f7f3ea6df 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/__init__.py +++ b/packages/python/plotly/plotly/validators/mesh3d/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zsrc import ZsrcValidator from ._zhoverformat import ZhoverformatValidator @@ -74,80 +73,10 @@ from ._alphahull import AlphahullValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zsrc.ZsrcValidator", - "._zhoverformat.ZhoverformatValidator", - "._zcalendar.ZcalendarValidator", - "._z.ZValidator", - "._ysrc.YsrcValidator", - "._yhoverformat.YhoverformatValidator", - "._ycalendar.YcalendarValidator", - "._y.YValidator", - "._xsrc.XsrcValidator", - "._xhoverformat.XhoverformatValidator", - "._xcalendar.XcalendarValidator", - "._x.XValidator", - "._visible.VisibleValidator", - "._vertexcolorsrc.VertexcolorsrcValidator", - "._vertexcolor.VertexcolorValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._textsrc.TextsrcValidator", - "._text.TextValidator", - "._stream.StreamValidator", - "._showscale.ShowscaleValidator", - "._showlegend.ShowlegendValidator", - "._scene.SceneValidator", - "._reversescale.ReversescaleValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._lightposition.LightpositionValidator", - "._lighting.LightingValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._ksrc.KsrcValidator", - "._k.KValidator", - "._jsrc.JsrcValidator", - "._j.JValidator", - "._isrc.IsrcValidator", - "._intensitysrc.IntensitysrcValidator", - "._intensitymode.IntensitymodeValidator", - "._intensity.IntensityValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._i.IValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._flatshading.FlatshadingValidator", - "._facecolorsrc.FacecolorsrcValidator", - "._facecolor.FacecolorValidator", - "._delaunayaxis.DelaunayaxisValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._contour.ContourValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - "._alphahull.AlphahullValidator", - ], + ['._zsrc.ZsrcValidator', '._zhoverformat.ZhoverformatValidator', '._zcalendar.ZcalendarValidator', '._z.ZValidator', '._ysrc.YsrcValidator', '._yhoverformat.YhoverformatValidator', '._ycalendar.YcalendarValidator', '._y.YValidator', '._xsrc.XsrcValidator', '._xhoverformat.XhoverformatValidator', '._xcalendar.XcalendarValidator', '._x.XValidator', '._visible.VisibleValidator', '._vertexcolorsrc.VertexcolorsrcValidator', '._vertexcolor.VertexcolorValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._textsrc.TextsrcValidator', '._text.TextValidator', '._stream.StreamValidator', '._showscale.ShowscaleValidator', '._showlegend.ShowlegendValidator', '._scene.SceneValidator', '._reversescale.ReversescaleValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._lightposition.LightpositionValidator', '._lighting.LightingValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._ksrc.KsrcValidator', '._k.KValidator', '._jsrc.JsrcValidator', '._j.JValidator', '._isrc.IsrcValidator', '._intensitysrc.IntensitysrcValidator', '._intensitymode.IntensitymodeValidator', '._intensity.IntensityValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._i.IValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._flatshading.FlatshadingValidator', '._facecolorsrc.FacecolorsrcValidator', '._facecolor.FacecolorValidator', '._delaunayaxis.DelaunayaxisValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._contour.ContourValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator', '._alphahull.AlphahullValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/mesh3d/_alphahull.py b/packages/python/plotly/plotly/validators/mesh3d/_alphahull.py index 64a586ec842..630d2d2080b 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_alphahull.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_alphahull.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AlphahullValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="alphahull", parent_name="mesh3d", **kwargs): - super(AlphahullValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AlphahullValidator(_bv.NumberValidator): + def __init__(self, plotly_name='alphahull', + parent_name='mesh3d', + **kwargs): + super(AlphahullValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_autocolorscale.py b/packages/python/plotly/plotly/validators/mesh3d/_autocolorscale.py index dd8347a9755..578e7434127 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_autocolorscale.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="autocolorscale", parent_name="mesh3d", **kwargs): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='mesh3d', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_cauto.py b/packages/python/plotly/plotly/validators/mesh3d/_cauto.py index 7bd3f6f3966..c3b8b97b1b8 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_cauto.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_cauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cauto", parent_name="mesh3d", **kwargs): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='mesh3d', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_cmax.py b/packages/python/plotly/plotly/validators/mesh3d/_cmax.py index ebf2d12c7f6..ae5e6d548dd 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_cmax.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_cmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmax", parent_name="mesh3d", **kwargs): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='mesh3d', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_cmid.py b/packages/python/plotly/plotly/validators/mesh3d/_cmid.py index 6b857eb388d..0f39a981fca 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_cmid.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_cmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmid", parent_name="mesh3d", **kwargs): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='mesh3d', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_cmin.py b/packages/python/plotly/plotly/validators/mesh3d/_cmin.py index a7558840e37..54ec0610b32 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_cmin.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_cmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmin", parent_name="mesh3d", **kwargs): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='mesh3d', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_color.py b/packages/python/plotly/plotly/validators/mesh3d/_color.py index cf703588bd5..9d2019e3b7d 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_color.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="mesh3d", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - colorscale_path=kwargs.pop("colorscale_path", "mesh3d.colorscale"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='mesh3d', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + colorscale_path=kwargs.pop('colorscale_path', 'mesh3d.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_coloraxis.py b/packages/python/plotly/plotly/validators/mesh3d/_coloraxis.py index d9824c77dce..5107bb0107e 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_coloraxis.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="coloraxis", parent_name="mesh3d", **kwargs): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='mesh3d', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_colorbar.py b/packages/python/plotly/plotly/validators/mesh3d/_colorbar.py index 1d305d725eb..993c27b810e 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_colorbar.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_colorbar.py @@ -1,279 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="colorbar", parent_name="mesh3d", **kwargs): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.mesh3d. - colorbar.Tickformatstop` instances or dicts - with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.mesh3d.colorbar.tickformatstopdefaults), sets - the default property values to use for elements - of mesh3d.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.mesh3d.colorbar.Ti - tle` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='mesh3d', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_colorscale.py b/packages/python/plotly/plotly/validators/mesh3d/_colorscale.py index ca974324888..2d88ee77c37 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_colorscale.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_colorscale.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__(self, plotly_name="colorscale", parent_name="mesh3d", **kwargs): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='mesh3d', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_contour.py b/packages/python/plotly/plotly/validators/mesh3d/_contour.py index c7d2905e08e..c8dc05a7d6f 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_contour.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_contour.py @@ -1,23 +1,15 @@ -import _plotly_utils.basevalidators -class ContourValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="contour", parent_name="mesh3d", **kwargs): - super(ContourValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Contour"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the color of the contour lines. - show - Sets whether or not dynamic contours are shown - on hover - width - Sets the width of the contour lines. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ContourValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='contour', + parent_name='mesh3d', + **kwargs): + super(ContourValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Contour'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_customdata.py b/packages/python/plotly/plotly/validators/mesh3d/_customdata.py index a908fd5ee1a..c607c1d1c29 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_customdata.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="mesh3d", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='mesh3d', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_customdatasrc.py b/packages/python/plotly/plotly/validators/mesh3d/_customdatasrc.py index f98d7e6b55f..a573d166e2f 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="mesh3d", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='mesh3d', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_delaunayaxis.py b/packages/python/plotly/plotly/validators/mesh3d/_delaunayaxis.py index b0a030f2dc4..57cbe243da1 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_delaunayaxis.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_delaunayaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class DelaunayaxisValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="delaunayaxis", parent_name="mesh3d", **kwargs): - super(DelaunayaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["x", "y", "z"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DelaunayaxisValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='delaunayaxis', + parent_name='mesh3d', + **kwargs): + super(DelaunayaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['x', 'y', 'z']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_facecolor.py b/packages/python/plotly/plotly/validators/mesh3d/_facecolor.py index 7d6a091f023..4ae0f7e260e 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_facecolor.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_facecolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FacecolorValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="facecolor", parent_name="mesh3d", **kwargs): - super(FacecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FacecolorValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='facecolor', + parent_name='mesh3d', + **kwargs): + super(FacecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_facecolorsrc.py b/packages/python/plotly/plotly/validators/mesh3d/_facecolorsrc.py index dbe10eb6997..1bcdd74cb64 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_facecolorsrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_facecolorsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FacecolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="facecolorsrc", parent_name="mesh3d", **kwargs): - super(FacecolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FacecolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='facecolorsrc', + parent_name='mesh3d', + **kwargs): + super(FacecolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_flatshading.py b/packages/python/plotly/plotly/validators/mesh3d/_flatshading.py index 549112ce24e..3da3e1f0b6e 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_flatshading.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_flatshading.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FlatshadingValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="flatshading", parent_name="mesh3d", **kwargs): - super(FlatshadingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FlatshadingValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='flatshading', + parent_name='mesh3d', + **kwargs): + super(FlatshadingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_hoverinfo.py b/packages/python/plotly/plotly/validators/mesh3d/_hoverinfo.py index b290e223325..222532cab17 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="mesh3d", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='mesh3d', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/mesh3d/_hoverinfosrc.py index a0381f5769b..cd510573c6a 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="mesh3d", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='mesh3d', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_hoverlabel.py b/packages/python/plotly/plotly/validators/mesh3d/_hoverlabel.py index c0c1e22c98a..bfa862c6057 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="mesh3d", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='mesh3d', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_hovertemplate.py b/packages/python/plotly/plotly/validators/mesh3d/_hovertemplate.py index f77974ac35e..93ad63dd5d0 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_hovertemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="mesh3d", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='mesh3d', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/mesh3d/_hovertemplatesrc.py index d55be7aec88..1e1a89e2aa1 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_hovertemplatesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertemplatesrc", parent_name="mesh3d", **kwargs): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='mesh3d', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_hovertext.py b/packages/python/plotly/plotly/validators/mesh3d/_hovertext.py index 09be0546e44..b010ba2b6b6 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_hovertext.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="mesh3d", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='mesh3d', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_hovertextsrc.py b/packages/python/plotly/plotly/validators/mesh3d/_hovertextsrc.py index 134ee5f4216..53d4c60b71b 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="mesh3d", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='mesh3d', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_i.py b/packages/python/plotly/plotly/validators/mesh3d/_i.py index a0903808b91..6ffabb4b15b 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_i.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_i.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="i", parent_name="mesh3d", **kwargs): - super(IValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='i', + parent_name='mesh3d', + **kwargs): + super(IValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_ids.py b/packages/python/plotly/plotly/validators/mesh3d/_ids.py index 0f938d46799..2ec2cb0aeff 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_ids.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="mesh3d", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='mesh3d', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_idssrc.py b/packages/python/plotly/plotly/validators/mesh3d/_idssrc.py index e0f3a1647bf..60c305229b8 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_idssrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="mesh3d", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='mesh3d', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_intensity.py b/packages/python/plotly/plotly/validators/mesh3d/_intensity.py index 5073ec38100..21f2872eddb 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_intensity.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_intensity.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IntensityValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="intensity", parent_name="mesh3d", **kwargs): - super(IntensityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IntensityValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='intensity', + parent_name='mesh3d', + **kwargs): + super(IntensityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_intensitymode.py b/packages/python/plotly/plotly/validators/mesh3d/_intensitymode.py index c67df2a3694..66fb0887d2c 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_intensitymode.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_intensitymode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class IntensitymodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="intensitymode", parent_name="mesh3d", **kwargs): - super(IntensitymodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["vertex", "cell"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class IntensitymodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='intensitymode', + parent_name='mesh3d', + **kwargs): + super(IntensitymodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['vertex', 'cell']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_intensitysrc.py b/packages/python/plotly/plotly/validators/mesh3d/_intensitysrc.py index c507ac4f25f..d495897386d 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_intensitysrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_intensitysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IntensitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="intensitysrc", parent_name="mesh3d", **kwargs): - super(IntensitysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IntensitysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='intensitysrc', + parent_name='mesh3d', + **kwargs): + super(IntensitysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_isrc.py b/packages/python/plotly/plotly/validators/mesh3d/_isrc.py index 2a85c26fefd..e1b2a98784f 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_isrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_isrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="isrc", parent_name="mesh3d", **kwargs): - super(IsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='isrc', + parent_name='mesh3d', + **kwargs): + super(IsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_j.py b/packages/python/plotly/plotly/validators/mesh3d/_j.py index 12c5c89ab9b..571864085cf 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_j.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_j.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class JValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="j", parent_name="mesh3d", **kwargs): - super(JValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class JValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='j', + parent_name='mesh3d', + **kwargs): + super(JValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_jsrc.py b/packages/python/plotly/plotly/validators/mesh3d/_jsrc.py index 5e8a69313ca..a5494c70723 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_jsrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_jsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class JsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="jsrc", parent_name="mesh3d", **kwargs): - super(JsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class JsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='jsrc', + parent_name='mesh3d', + **kwargs): + super(JsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_k.py b/packages/python/plotly/plotly/validators/mesh3d/_k.py index 264348e3403..4b547182181 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_k.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_k.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class KValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="k", parent_name="mesh3d", **kwargs): - super(KValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class KValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='k', + parent_name='mesh3d', + **kwargs): + super(KValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_ksrc.py b/packages/python/plotly/plotly/validators/mesh3d/_ksrc.py index ada524dd00b..d8253d2cd95 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_ksrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_ksrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class KsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="ksrc", parent_name="mesh3d", **kwargs): - super(KsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class KsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ksrc', + parent_name='mesh3d', + **kwargs): + super(KsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_legend.py b/packages/python/plotly/plotly/validators/mesh3d/_legend.py index bbef4ace315..16987562973 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_legend.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="mesh3d", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='mesh3d', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_legendgroup.py b/packages/python/plotly/plotly/validators/mesh3d/_legendgroup.py index 98c9c6260b4..c503f30227e 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="mesh3d", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='mesh3d', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/mesh3d/_legendgrouptitle.py index 92d48623ee6..04cbb444816 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_legendgrouptitle.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="legendgrouptitle", parent_name="mesh3d", **kwargs): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='mesh3d', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_legendrank.py b/packages/python/plotly/plotly/validators/mesh3d/_legendrank.py index 219fe32f127..10f2b1defbb 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_legendrank.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="mesh3d", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='mesh3d', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_legendwidth.py b/packages/python/plotly/plotly/validators/mesh3d/_legendwidth.py index f7bf80c1a00..fd29364299c 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="mesh3d", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='mesh3d', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_lighting.py b/packages/python/plotly/plotly/validators/mesh3d/_lighting.py index 2d16ba1cf8c..03dac89fa9f 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_lighting.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_lighting.py @@ -1,40 +1,15 @@ -import _plotly_utils.basevalidators -class LightingValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="lighting", parent_name="mesh3d", **kwargs): - super(LightingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Lighting"), - data_docs=kwargs.pop( - "data_docs", - """ - ambient - Ambient light increases overall color - visibility but can wash out the image. - diffuse - Represents the extent that incident rays are - reflected in a range of angles. - facenormalsepsilon - Epsilon for face normals calculation avoids - math issues arising from degenerate geometry. - fresnel - Represents the reflectance as a dependency of - the viewing angle; e.g. paper is reflective - when viewing it from the edge of the paper - (almost 90 degrees), causing shine. - roughness - Alters specular reflection; the rougher the - surface, the wider and less contrasty the - shine. - specular - Represents the level that incident rays are - reflected in a single direction, causing shine. - vertexnormalsepsilon - Epsilon for vertex normals calculation avoids - math issues arising from degenerate geometry. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LightingValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='lighting', + parent_name='mesh3d', + **kwargs): + super(LightingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Lighting'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_lightposition.py b/packages/python/plotly/plotly/validators/mesh3d/_lightposition.py index 4cbac015f65..a616b1cdc7b 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_lightposition.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_lightposition.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class LightpositionValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="lightposition", parent_name="mesh3d", **kwargs): - super(LightpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Lightposition"), - data_docs=kwargs.pop( - "data_docs", - """ - x - Numeric vector, representing the X coordinate - for each vertex. - y - Numeric vector, representing the Y coordinate - for each vertex. - z - Numeric vector, representing the Z coordinate - for each vertex. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LightpositionValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='lightposition', + parent_name='mesh3d', + **kwargs): + super(LightpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Lightposition'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_meta.py b/packages/python/plotly/plotly/validators/mesh3d/_meta.py index a5dd042af7f..9793f4a0380 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_meta.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="mesh3d", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='mesh3d', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_metasrc.py b/packages/python/plotly/plotly/validators/mesh3d/_metasrc.py index 48c4086d603..79b2a364a36 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_metasrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="mesh3d", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='mesh3d', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_name.py b/packages/python/plotly/plotly/validators/mesh3d/_name.py index fe3be2e4d5f..1298d2d3c76 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_name.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="mesh3d", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='mesh3d', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_opacity.py b/packages/python/plotly/plotly/validators/mesh3d/_opacity.py index 7e7a9817480..fe9b8564ade 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_opacity.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="mesh3d", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='mesh3d', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_reversescale.py b/packages/python/plotly/plotly/validators/mesh3d/_reversescale.py index 87a6a3b31f2..b1b3d3a0092 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_reversescale.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_reversescale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="reversescale", parent_name="mesh3d", **kwargs): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='mesh3d', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_scene.py b/packages/python/plotly/plotly/validators/mesh3d/_scene.py index c6118838a3a..65b75c80039 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_scene.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_scene.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SceneValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="scene", parent_name="mesh3d", **kwargs): - super(SceneValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "scene"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SceneValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='scene', + parent_name='mesh3d', + **kwargs): + super(SceneValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'scene'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_showlegend.py b/packages/python/plotly/plotly/validators/mesh3d/_showlegend.py index 03958c8272d..54dfe826707 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_showlegend.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="mesh3d", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='mesh3d', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_showscale.py b/packages/python/plotly/plotly/validators/mesh3d/_showscale.py index 524d89beb47..f585f63cf3c 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_showscale.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_showscale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showscale", parent_name="mesh3d", **kwargs): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='mesh3d', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_stream.py b/packages/python/plotly/plotly/validators/mesh3d/_stream.py index a4514361246..c2e01cf3506 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_stream.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="mesh3d", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='mesh3d', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_text.py b/packages/python/plotly/plotly/validators/mesh3d/_text.py index 40db8163332..19fae210d4b 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_text.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="mesh3d", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='mesh3d', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_textsrc.py b/packages/python/plotly/plotly/validators/mesh3d/_textsrc.py index 3a697c55e12..cdd5b0fa909 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_textsrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="mesh3d", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='mesh3d', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_uid.py b/packages/python/plotly/plotly/validators/mesh3d/_uid.py index b6c0fc41bfc..26edd159e4d 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_uid.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="mesh3d", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='mesh3d', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_uirevision.py b/packages/python/plotly/plotly/validators/mesh3d/_uirevision.py index a01d04509e7..4a995244e14 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_uirevision.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="mesh3d", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='mesh3d', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_vertexcolor.py b/packages/python/plotly/plotly/validators/mesh3d/_vertexcolor.py index c4d866eb247..9cbddb65350 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_vertexcolor.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_vertexcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class VertexcolorValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="vertexcolor", parent_name="mesh3d", **kwargs): - super(VertexcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VertexcolorValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='vertexcolor', + parent_name='mesh3d', + **kwargs): + super(VertexcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_vertexcolorsrc.py b/packages/python/plotly/plotly/validators/mesh3d/_vertexcolorsrc.py index 2a364caa7c2..baa5e27bab4 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_vertexcolorsrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_vertexcolorsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class VertexcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="vertexcolorsrc", parent_name="mesh3d", **kwargs): - super(VertexcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VertexcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='vertexcolorsrc', + parent_name='mesh3d', + **kwargs): + super(VertexcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_visible.py b/packages/python/plotly/plotly/validators/mesh3d/_visible.py index 8e560dc8cd0..4e4cda90665 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_visible.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="mesh3d", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='mesh3d', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_x.py b/packages/python/plotly/plotly/validators/mesh3d/_x.py index 73acdb050cc..5ef99c7cfcb 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_x.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="x", parent_name="mesh3d", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='x', + parent_name='mesh3d', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_xcalendar.py b/packages/python/plotly/plotly/validators/mesh3d/_xcalendar.py index a1189ac7718..ec09d07cde0 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_xcalendar.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_xcalendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xcalendar", parent_name="mesh3d", **kwargs): - super(XcalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XcalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xcalendar', + parent_name='mesh3d', + **kwargs): + super(XcalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_xhoverformat.py b/packages/python/plotly/plotly/validators/mesh3d/_xhoverformat.py index a9b1f072d7c..6e94a95f90d 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_xhoverformat.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_xhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="xhoverformat", parent_name="mesh3d", **kwargs): - super(XhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='xhoverformat', + parent_name='mesh3d', + **kwargs): + super(XhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_xsrc.py b/packages/python/plotly/plotly/validators/mesh3d/_xsrc.py index 9f0e33c9681..61ed70cc83b 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_xsrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_xsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="xsrc", parent_name="mesh3d", **kwargs): - super(XsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='xsrc', + parent_name='mesh3d', + **kwargs): + super(XsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_y.py b/packages/python/plotly/plotly/validators/mesh3d/_y.py index 547a6c72dcf..5b3b35f71e0 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_y.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="y", parent_name="mesh3d", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='y', + parent_name='mesh3d', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_ycalendar.py b/packages/python/plotly/plotly/validators/mesh3d/_ycalendar.py index 5cc69441f45..41a921c6512 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_ycalendar.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_ycalendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="ycalendar", parent_name="mesh3d", **kwargs): - super(YcalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YcalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ycalendar', + parent_name='mesh3d', + **kwargs): + super(YcalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_yhoverformat.py b/packages/python/plotly/plotly/validators/mesh3d/_yhoverformat.py index e3406c19321..5798a43ef11 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_yhoverformat.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_yhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="yhoverformat", parent_name="mesh3d", **kwargs): - super(YhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='yhoverformat', + parent_name='mesh3d', + **kwargs): + super(YhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_ysrc.py b/packages/python/plotly/plotly/validators/mesh3d/_ysrc.py index c48d7007c3d..d730a00e47a 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_ysrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_ysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="ysrc", parent_name="mesh3d", **kwargs): - super(YsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ysrc', + parent_name='mesh3d', + **kwargs): + super(YsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_z.py b/packages/python/plotly/plotly/validators/mesh3d/_z.py index bdce7b2b350..45982432f86 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_z.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_z.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="z", parent_name="mesh3d", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='z', + parent_name='mesh3d', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_zcalendar.py b/packages/python/plotly/plotly/validators/mesh3d/_zcalendar.py index 1e6047057e2..33070a0f635 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_zcalendar.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_zcalendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class ZcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="zcalendar", parent_name="mesh3d", **kwargs): - super(ZcalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZcalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='zcalendar', + parent_name='mesh3d', + **kwargs): + super(ZcalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_zhoverformat.py b/packages/python/plotly/plotly/validators/mesh3d/_zhoverformat.py index fb79539b1df..9aa562555ce 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_zhoverformat.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_zhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="zhoverformat", parent_name="mesh3d", **kwargs): - super(ZhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='zhoverformat', + parent_name='mesh3d', + **kwargs): + super(ZhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/_zsrc.py b/packages/python/plotly/plotly/validators/mesh3d/_zsrc.py index 9ec9082ecf3..494cff8ab19 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/_zsrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/_zsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="zsrc", parent_name="mesh3d", **kwargs): - super(ZsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='zsrc', + parent_name='mesh3d', + **kwargs): + super(ZsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/__init__.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_bgcolor.py index 6c578e40979..2ee79f47e41 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_bgcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="bgcolor", parent_name="mesh3d.colorbar", **kwargs): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='mesh3d.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_bordercolor.py index 6a90a357d80..3db2a9965fb 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="mesh3d.colorbar", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='mesh3d.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_borderwidth.py index d8b97390be3..4bd473bbb66 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_borderwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderwidth", parent_name="mesh3d.colorbar", **kwargs - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='mesh3d.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_dtick.py index 3a094369842..baa73bc515e 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_dtick.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="dtick", parent_name="mesh3d.colorbar", **kwargs): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='mesh3d.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_exponentformat.py index 126fc58c6b7..5a1800234d9 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_exponentformat.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="exponentformat", parent_name="mesh3d.colorbar", **kwargs - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='mesh3d.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_labelalias.py index d102600a507..23121bb0f0b 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="mesh3d.colorbar", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='mesh3d.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_len.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_len.py index 352c951d7ab..45740712160 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_len.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="len", parent_name="mesh3d.colorbar", **kwargs): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='mesh3d.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_lenmode.py index 4afff8033e3..e0897e3f079 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_lenmode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="lenmode", parent_name="mesh3d.colorbar", **kwargs): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='mesh3d.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_minexponent.py index 8e85b921cc4..1ce83fc2313 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="mesh3d.colorbar", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='mesh3d.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_nticks.py index 28bcc81a458..c4eb899e87e 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_nticks.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="nticks", parent_name="mesh3d.colorbar", **kwargs): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='mesh3d.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_orientation.py index ed0ed312210..7e431112a9c 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_orientation.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="orientation", parent_name="mesh3d.colorbar", **kwargs - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='mesh3d.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_outlinecolor.py index 5d1a5475792..28c36439a9f 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_outlinecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="outlinecolor", parent_name="mesh3d.colorbar", **kwargs - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='mesh3d.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_outlinewidth.py index fcf2832edf3..3135df5ba56 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_outlinewidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="outlinewidth", parent_name="mesh3d.colorbar", **kwargs - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='mesh3d.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_separatethousands.py index 7d590138124..46b9bb44305 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_separatethousands.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="separatethousands", parent_name="mesh3d.colorbar", **kwargs - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='mesh3d.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_showexponent.py index c0c8c71f8b2..80373674e69 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="mesh3d.colorbar", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='mesh3d.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_showticklabels.py index 095f1d7e1cd..5f21a234d76 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_showticklabels.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showticklabels", parent_name="mesh3d.colorbar", **kwargs - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='mesh3d.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_showtickprefix.py index 0e04c2eaaa6..cba3615cd3a 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_showtickprefix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showtickprefix", parent_name="mesh3d.colorbar", **kwargs - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='mesh3d.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_showticksuffix.py index 01c08f3d729..9971a3c9e8a 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_showticksuffix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showticksuffix", parent_name="mesh3d.colorbar", **kwargs - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='mesh3d.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_thickness.py index 4f5b4ac5107..b9629058c81 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="mesh3d.colorbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='mesh3d.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_thicknessmode.py index 2d79d18d536..f1dd7219b39 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_thicknessmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="thicknessmode", parent_name="mesh3d.colorbar", **kwargs - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='mesh3d.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tick0.py index 4fe4143067e..715f4959b37 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tick0.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="tick0", parent_name="mesh3d.colorbar", **kwargs): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='mesh3d.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickangle.py index 1a0c0043b8c..1d0372b4b8e 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="mesh3d.colorbar", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='mesh3d.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickcolor.py index 2bb17e502c9..5f5ca671739 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="mesh3d.colorbar", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='mesh3d.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickfont.py index 294afe9563c..8b8852d5f54 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickfont.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="tickfont", parent_name="mesh3d.colorbar", **kwargs): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='mesh3d.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickformat.py index dfffc664239..e59e3487593 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="mesh3d.colorbar", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='mesh3d.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickformatstopdefaults.py index e7287e3b326..79c7284db1b 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="mesh3d.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='mesh3d.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickformatstops.py index d0fbcb8e56f..b0cfe4d1f66 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickformatstops.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="tickformatstops", parent_name="mesh3d.colorbar", **kwargs - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='mesh3d.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticklabeloverflow.py index 5ccaf2969c0..c7f62b85080 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticklabeloverflow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticklabeloverflow", parent_name="mesh3d.colorbar", **kwargs - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='mesh3d.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticklabelposition.py index cd9e75fe3b0..1aabe5f81ec 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticklabelposition.py @@ -1,28 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticklabelposition", parent_name="mesh3d.colorbar", **kwargs - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='mesh3d.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticklabelstep.py index a04073019c0..ed9314f5d96 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticklabelstep.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="ticklabelstep", parent_name="mesh3d.colorbar", **kwargs - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='mesh3d.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticklen.py index fd202c3df1c..94495f813b9 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticklen.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="ticklen", parent_name="mesh3d.colorbar", **kwargs): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='mesh3d.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickmode.py index a10a575ef24..e9e7d8cd034 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickmode.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="tickmode", parent_name="mesh3d.colorbar", **kwargs): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='mesh3d.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickprefix.py index 93809e0807a..0a06f71759a 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="mesh3d.colorbar", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='mesh3d.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticks.py index 394edf64da6..7188b5b33fc 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticks.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="ticks", parent_name="mesh3d.colorbar", **kwargs): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='mesh3d.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticksuffix.py index 4f3a0e86789..94115c7a403 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="mesh3d.colorbar", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='mesh3d.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticktext.py index 07881b488c9..03fc82501f6 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticktext.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ticktext", parent_name="mesh3d.colorbar", **kwargs): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='mesh3d.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticktextsrc.py index 6f175f2bc04..72c71bb26f9 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="mesh3d.colorbar", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='mesh3d.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickvals.py index 73c49f26ce4..bad4a4d69c8 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickvals.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="tickvals", parent_name="mesh3d.colorbar", **kwargs): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='mesh3d.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickvalssrc.py index 6d5f809a7d4..410c860abe7 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="mesh3d.colorbar", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='mesh3d.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickwidth.py index 8bd49e07780..888751d561d 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="mesh3d.colorbar", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='mesh3d.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_title.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_title.py index fe7375c376c..4c5da720536 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_title.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__(self, plotly_name="title", parent_name="mesh3d.colorbar", **kwargs): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='mesh3d.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_x.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_x.py index 44bb8c33876..cd4aab92768 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x", parent_name="mesh3d.colorbar", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='mesh3d.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_xanchor.py index 13a12efb451..4b344949625 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_xanchor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xanchor", parent_name="mesh3d.colorbar", **kwargs): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='mesh3d.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_xpad.py index 72599df24be..e246c4b79e6 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_xpad.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="xpad", parent_name="mesh3d.colorbar", **kwargs): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='mesh3d.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_xref.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_xref.py index 4bb7015f835..8ab20440814 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_xref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xref", parent_name="mesh3d.colorbar", **kwargs): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='mesh3d.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_y.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_y.py index 8d1d774aa77..822e2578f76 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y", parent_name="mesh3d.colorbar", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='mesh3d.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_yanchor.py index 71c4498d78a..1b468438d8f 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_yanchor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yanchor", parent_name="mesh3d.colorbar", **kwargs): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='mesh3d.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ypad.py index 7287f8f6de4..c082f8c0a8a 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_ypad.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="ypad", parent_name="mesh3d.colorbar", **kwargs): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='mesh3d.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_yref.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_yref.py index d43f94780e8..64ad09c569c 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/_yref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yref", parent_name="mesh3d.colorbar", **kwargs): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='mesh3d.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_color.py index 59844b4c838..dc0e0583593 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="mesh3d.colorbar.tickfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='mesh3d.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_family.py index 3385b258c82..cd502b1a44d 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="mesh3d.colorbar.tickfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='mesh3d.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_lineposition.py index 76bcfe1b7a2..f2fe32507d9 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="mesh3d.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='mesh3d.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_shadow.py index 31070d3017c..37b2d8ab22d 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="mesh3d.colorbar.tickfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='mesh3d.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_size.py index 432c1bfa6c2..b9a1654ba46 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="mesh3d.colorbar.tickfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='mesh3d.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_style.py index ea3f21e26ea..6b667a7fc70 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="mesh3d.colorbar.tickfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='mesh3d.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_textcase.py index 0dcb8be5568..5544fb0e892 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="mesh3d.colorbar.tickfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='mesh3d.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_variant.py index 46d77e006a7..e3ba42933c3 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="mesh3d.colorbar.tickfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='mesh3d.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_weight.py index 12db86faa7e..20348688871 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="mesh3d.colorbar.tickfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='mesh3d.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickformatstop/_dtickrange.py index 3bb31f785ba..c9af1a9ac11 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="mesh3d.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - items=kwargs.pop( - "items", - [ - {"editType": "colorbars", "valType": "any"}, - {"editType": "colorbars", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='mesh3d.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + items=kwargs.pop('items', [{'editType': 'colorbars', 'valType': 'any'}, {'editType': 'colorbars', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickformatstop/_enabled.py index 26cb57def07..1c3e5dd9ea0 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="mesh3d.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='mesh3d.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickformatstop/_name.py index cd1368ebbbc..aafd95ba6a1 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickformatstop/_name.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="name", parent_name="mesh3d.colorbar.tickformatstop", **kwargs - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='mesh3d.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickformatstop/_templateitemname.py index 00b6f041a26..440c5d01799 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="mesh3d.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='mesh3d.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickformatstop/_value.py index ff420cd3a76..1962f12f901 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="mesh3d.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='mesh3d.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/_font.py index e22394dba86..cab5a3a0745 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="mesh3d.colorbar.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='mesh3d.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/_side.py index dd268347fbd..2c1eae1969c 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/_side.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="side", parent_name="mesh3d.colorbar.title", **kwargs - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='mesh3d.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/_text.py index 1e909db4d7b..51e844b321d 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="mesh3d.colorbar.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='mesh3d.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_color.py index f8b7ecbcdd9..b38ab10d059 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="mesh3d.colorbar.title.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='mesh3d.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_family.py index a3513443e98..a0a0b5fca79 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="mesh3d.colorbar.title.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='mesh3d.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_lineposition.py index 0b1eab2efb0..9b8980e50d0 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="mesh3d.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='mesh3d.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_shadow.py index e695824e37f..0ee31e97bbe 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="mesh3d.colorbar.title.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='mesh3d.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_size.py index 86f9d48012c..eb1e3cd234a 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="mesh3d.colorbar.title.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='mesh3d.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_style.py index 801faa8d11c..14dde0d9520 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="mesh3d.colorbar.title.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='mesh3d.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_textcase.py index b89153f3f18..e15c0feed74 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="mesh3d.colorbar.title.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='mesh3d.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_variant.py index 0193cbf41c1..9e8f2a8a7d8 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="mesh3d.colorbar.title.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='mesh3d.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_weight.py index 283e1574319..6dceea6352c 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="mesh3d.colorbar.title.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='mesh3d.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/contour/__init__.py b/packages/python/plotly/plotly/validators/mesh3d/contour/__init__.py index 8d51b1d4c02..7d5028f8667 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/contour/__init__.py +++ b/packages/python/plotly/plotly/validators/mesh3d/contour/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._show import ShowValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._width.WidthValidator", "._show.ShowValidator", "._color.ColorValidator"], + ['._width.WidthValidator', '._show.ShowValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/mesh3d/contour/_color.py b/packages/python/plotly/plotly/validators/mesh3d/contour/_color.py index deb30ad2cf9..01bacfb13b9 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/contour/_color.py +++ b/packages/python/plotly/plotly/validators/mesh3d/contour/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="mesh3d.contour", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='mesh3d.contour', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/contour/_show.py b/packages/python/plotly/plotly/validators/mesh3d/contour/_show.py index c72bca0b0d6..7fdbe7a108a 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/contour/_show.py +++ b/packages/python/plotly/plotly/validators/mesh3d/contour/_show.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="show", parent_name="mesh3d.contour", **kwargs): - super(ShowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='show', + parent_name='mesh3d.contour', + **kwargs): + super(ShowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/contour/_width.py b/packages/python/plotly/plotly/validators/mesh3d/contour/_width.py index c802091da0a..631de16ae0c 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/contour/_width.py +++ b/packages/python/plotly/plotly/validators/mesh3d/contour/_width.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="mesh3d.contour", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 16), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='mesh3d.contour', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 16), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_align.py index 68b77db4493..9df42aa4722 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_align.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="align", parent_name="mesh3d.hoverlabel", **kwargs): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='mesh3d.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_alignsrc.py index 2c47097ded8..788652dc564 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="mesh3d.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='mesh3d.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_bgcolor.py index 53294c715f1..62a4d466aac 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="mesh3d.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='mesh3d.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_bgcolorsrc.py index c0db8126f16..61cb6b27baf 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="mesh3d.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='mesh3d.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_bordercolor.py index 0a78a291073..686b3f2e238 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="mesh3d.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='mesh3d.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_bordercolorsrc.py index e90b8275975..a70584e039f 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bordercolorsrc", parent_name="mesh3d.hoverlabel", **kwargs - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='mesh3d.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_font.py index feccc71542a..e7eb73a1998 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_font.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="mesh3d.hoverlabel", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='mesh3d.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_namelength.py index 1e3d1023cec..a9d62aa3af7 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="mesh3d.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='mesh3d.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_namelengthsrc.py index 99c62351f85..5de69025805 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="mesh3d.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='mesh3d.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_color.py index f0294f2720d..1dac657e2ea 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="mesh3d.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='mesh3d.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_colorsrc.py index 259b05e89b4..7e61fe97763 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="mesh3d.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='mesh3d.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_family.py index 1686bb8da7d..87fb0a510e4 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="mesh3d.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='mesh3d.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_familysrc.py index c3dc8b5b1cd..07a0bfc9a0f 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="mesh3d.hoverlabel.font", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='mesh3d.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_lineposition.py index d8e6a684159..fbfcb90670c 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="mesh3d.hoverlabel.font", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='mesh3d.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_linepositionsrc.py index 6a4520f92d6..09940841899 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="mesh3d.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='mesh3d.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_shadow.py index 517c4858a0b..322319f7422 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="mesh3d.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='mesh3d.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_shadowsrc.py index 5154851b8ea..68f42e5dbe6 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="mesh3d.hoverlabel.font", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='mesh3d.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_size.py index ab968fb69df..2189e917723 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="mesh3d.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='mesh3d.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_sizesrc.py index cadd6f52bb5..22f5f9cde4e 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="mesh3d.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='mesh3d.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_style.py index 579c39d7a8a..26da12e9bd7 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="mesh3d.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='mesh3d.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_stylesrc.py index 3c1d3b2454b..d253772862a 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="mesh3d.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='mesh3d.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_textcase.py index 870b59c2364..c15c58000a6 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="mesh3d.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='mesh3d.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_textcasesrc.py index da0b4d89781..6e89f7d6609 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="mesh3d.hoverlabel.font", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='mesh3d.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_variant.py index c8ea2d7f353..88f97191331 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="mesh3d.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='mesh3d.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_variantsrc.py index dda2acbfd67..74eda896133 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="mesh3d.hoverlabel.font", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='mesh3d.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_weight.py index 887832e5cdc..e195b9a7d38 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="mesh3d.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='mesh3d.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_weightsrc.py index 3a308f1a6bb..4da7b093ac9 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="mesh3d.hoverlabel.font", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='mesh3d.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/_font.py index 846e0f7c514..ecbfc8e9a3f 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="mesh3d.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='mesh3d.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/_text.py index 5ce1b70d583..9d553239e38 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="mesh3d.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='mesh3d.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_color.py index 117b25134bc..36ec150be5e 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="mesh3d.legendgrouptitle.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='mesh3d.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_family.py index 79bfe78e93c..ed39adca3bf 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="mesh3d.legendgrouptitle.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='mesh3d.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_lineposition.py index c71e4d8a81b..1eaef06285b 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="mesh3d.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='mesh3d.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_shadow.py index 5bfc135c02f..1551238f5a3 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="mesh3d.legendgrouptitle.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='mesh3d.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_size.py index b0c6a9d2439..217db417349 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="mesh3d.legendgrouptitle.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='mesh3d.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_style.py index cd89b20f225..d7dcf2bac34 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="mesh3d.legendgrouptitle.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='mesh3d.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_textcase.py index 7462e94d200..b301788aafa 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="mesh3d.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='mesh3d.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_variant.py index c0f1be19da7..d37f085aae0 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="mesh3d.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='mesh3d.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_weight.py index e15028aad3b..8c473320152 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/mesh3d/legendgrouptitle/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="mesh3d.legendgrouptitle.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='mesh3d.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/lighting/__init__.py b/packages/python/plotly/plotly/validators/mesh3d/lighting/__init__.py index 028351f35d6..f9c262cc056 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/lighting/__init__.py +++ b/packages/python/plotly/plotly/validators/mesh3d/lighting/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._vertexnormalsepsilon import VertexnormalsepsilonValidator from ._specular import SpecularValidator @@ -11,17 +10,10 @@ from ._ambient import AmbientValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._vertexnormalsepsilon.VertexnormalsepsilonValidator", - "._specular.SpecularValidator", - "._roughness.RoughnessValidator", - "._fresnel.FresnelValidator", - "._facenormalsepsilon.FacenormalsepsilonValidator", - "._diffuse.DiffuseValidator", - "._ambient.AmbientValidator", - ], + ['._vertexnormalsepsilon.VertexnormalsepsilonValidator', '._specular.SpecularValidator', '._roughness.RoughnessValidator', '._fresnel.FresnelValidator', '._facenormalsepsilon.FacenormalsepsilonValidator', '._diffuse.DiffuseValidator', '._ambient.AmbientValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/mesh3d/lighting/_ambient.py b/packages/python/plotly/plotly/validators/mesh3d/lighting/_ambient.py index 769de352b70..2c0ca4cb91b 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/lighting/_ambient.py +++ b/packages/python/plotly/plotly/validators/mesh3d/lighting/_ambient.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class AmbientValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="ambient", parent_name="mesh3d.lighting", **kwargs): - super(AmbientValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AmbientValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ambient', + parent_name='mesh3d.lighting', + **kwargs): + super(AmbientValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/lighting/_diffuse.py b/packages/python/plotly/plotly/validators/mesh3d/lighting/_diffuse.py index 127bee655eb..0531e495ac3 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/lighting/_diffuse.py +++ b/packages/python/plotly/plotly/validators/mesh3d/lighting/_diffuse.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class DiffuseValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="diffuse", parent_name="mesh3d.lighting", **kwargs): - super(DiffuseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DiffuseValidator(_bv.NumberValidator): + def __init__(self, plotly_name='diffuse', + parent_name='mesh3d.lighting', + **kwargs): + super(DiffuseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/lighting/_facenormalsepsilon.py b/packages/python/plotly/plotly/validators/mesh3d/lighting/_facenormalsepsilon.py index 111cfb31a5a..4a5b1af38de 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/lighting/_facenormalsepsilon.py +++ b/packages/python/plotly/plotly/validators/mesh3d/lighting/_facenormalsepsilon.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FacenormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="facenormalsepsilon", parent_name="mesh3d.lighting", **kwargs - ): - super(FacenormalsepsilonValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FacenormalsepsilonValidator(_bv.NumberValidator): + def __init__(self, plotly_name='facenormalsepsilon', + parent_name='mesh3d.lighting', + **kwargs): + super(FacenormalsepsilonValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/lighting/_fresnel.py b/packages/python/plotly/plotly/validators/mesh3d/lighting/_fresnel.py index b80d4539ea9..26acaca997e 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/lighting/_fresnel.py +++ b/packages/python/plotly/plotly/validators/mesh3d/lighting/_fresnel.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class FresnelValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="fresnel", parent_name="mesh3d.lighting", **kwargs): - super(FresnelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 5), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FresnelValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fresnel', + parent_name='mesh3d.lighting', + **kwargs): + super(FresnelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 5), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/lighting/_roughness.py b/packages/python/plotly/plotly/validators/mesh3d/lighting/_roughness.py index 81e2fbf26e2..d69385a8444 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/lighting/_roughness.py +++ b/packages/python/plotly/plotly/validators/mesh3d/lighting/_roughness.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class RoughnessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="roughness", parent_name="mesh3d.lighting", **kwargs - ): - super(RoughnessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RoughnessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='roughness', + parent_name='mesh3d.lighting', + **kwargs): + super(RoughnessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/lighting/_specular.py b/packages/python/plotly/plotly/validators/mesh3d/lighting/_specular.py index 5de8e034dad..ec43302674e 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/lighting/_specular.py +++ b/packages/python/plotly/plotly/validators/mesh3d/lighting/_specular.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SpecularValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="specular", parent_name="mesh3d.lighting", **kwargs): - super(SpecularValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 2), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SpecularValidator(_bv.NumberValidator): + def __init__(self, plotly_name='specular', + parent_name='mesh3d.lighting', + **kwargs): + super(SpecularValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 2), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/lighting/_vertexnormalsepsilon.py b/packages/python/plotly/plotly/validators/mesh3d/lighting/_vertexnormalsepsilon.py index 1b34819b4ab..e8c42529534 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/lighting/_vertexnormalsepsilon.py +++ b/packages/python/plotly/plotly/validators/mesh3d/lighting/_vertexnormalsepsilon.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class VertexnormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="vertexnormalsepsilon", - parent_name="mesh3d.lighting", - **kwargs, - ): - super(VertexnormalsepsilonValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VertexnormalsepsilonValidator(_bv.NumberValidator): + def __init__(self, plotly_name='vertexnormalsepsilon', + parent_name='mesh3d.lighting', + **kwargs): + super(VertexnormalsepsilonValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/lightposition/__init__.py b/packages/python/plotly/plotly/validators/mesh3d/lightposition/__init__.py index 52779f59bc4..21cfa26dac1 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/lightposition/__init__.py +++ b/packages/python/plotly/plotly/validators/mesh3d/lightposition/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._z import ZValidator from ._y import YValidator from ._x import XValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] + __name__, + [], + ['._z.ZValidator', '._y.YValidator', '._x.XValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/mesh3d/lightposition/_x.py b/packages/python/plotly/plotly/validators/mesh3d/lightposition/_x.py index 5005071f76a..4c4e965ff12 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/lightposition/_x.py +++ b/packages/python/plotly/plotly/validators/mesh3d/lightposition/_x.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x", parent_name="mesh3d.lightposition", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 100000), - min=kwargs.pop("min", -100000), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='mesh3d.lightposition', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 100000), + min=kwargs.pop('min', -100000), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/lightposition/_y.py b/packages/python/plotly/plotly/validators/mesh3d/lightposition/_y.py index 3e9c8b58b28..7d658ab74e7 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/lightposition/_y.py +++ b/packages/python/plotly/plotly/validators/mesh3d/lightposition/_y.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y", parent_name="mesh3d.lightposition", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 100000), - min=kwargs.pop("min", -100000), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='mesh3d.lightposition', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 100000), + min=kwargs.pop('min', -100000), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/lightposition/_z.py b/packages/python/plotly/plotly/validators/mesh3d/lightposition/_z.py index 886e1e997ac..124b88c21db 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/lightposition/_z.py +++ b/packages/python/plotly/plotly/validators/mesh3d/lightposition/_z.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ZValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="z", parent_name="mesh3d.lightposition", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 100000), - min=kwargs.pop("min", -100000), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.NumberValidator): + def __init__(self, plotly_name='z', + parent_name='mesh3d.lightposition', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 100000), + min=kwargs.pop('min', -100000), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/stream/__init__.py b/packages/python/plotly/plotly/validators/mesh3d/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/mesh3d/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/mesh3d/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/mesh3d/stream/_maxpoints.py index 7fff7ac574f..0f6d16834b4 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/mesh3d/stream/_maxpoints.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="maxpoints", parent_name="mesh3d.stream", **kwargs): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='mesh3d.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/mesh3d/stream/_token.py b/packages/python/plotly/plotly/validators/mesh3d/stream/_token.py index e69cb6fd2ab..bb3b6853bd2 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/stream/_token.py +++ b/packages/python/plotly/plotly/validators/mesh3d/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="mesh3d.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='mesh3d.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/__init__.py b/packages/python/plotly/plotly/validators/ohlc/__init__.py index 1a42406dad5..0e4ec2a1b63 100644 --- a/packages/python/plotly/plotly/validators/ohlc/__init__.py +++ b/packages/python/plotly/plotly/validators/ohlc/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zorder import ZorderValidator from ._yhoverformat import YhoverformatValidator @@ -53,59 +52,10 @@ from ._close import CloseValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zorder.ZorderValidator", - "._yhoverformat.YhoverformatValidator", - "._yaxis.YaxisValidator", - "._xsrc.XsrcValidator", - "._xperiodalignment.XperiodalignmentValidator", - "._xperiod0.Xperiod0Validator", - "._xperiod.XperiodValidator", - "._xhoverformat.XhoverformatValidator", - "._xcalendar.XcalendarValidator", - "._xaxis.XaxisValidator", - "._x.XValidator", - "._visible.VisibleValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._tickwidth.TickwidthValidator", - "._textsrc.TextsrcValidator", - "._text.TextValidator", - "._stream.StreamValidator", - "._showlegend.ShowlegendValidator", - "._selectedpoints.SelectedpointsValidator", - "._opensrc.OpensrcValidator", - "._open.OpenValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._lowsrc.LowsrcValidator", - "._low.LowValidator", - "._line.LineValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._increasing.IncreasingValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._highsrc.HighsrcValidator", - "._high.HighValidator", - "._decreasing.DecreasingValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._closesrc.ClosesrcValidator", - "._close.CloseValidator", - ], + ['._zorder.ZorderValidator', '._yhoverformat.YhoverformatValidator', '._yaxis.YaxisValidator', '._xsrc.XsrcValidator', '._xperiodalignment.XperiodalignmentValidator', '._xperiod0.Xperiod0Validator', '._xperiod.XperiodValidator', '._xhoverformat.XhoverformatValidator', '._xcalendar.XcalendarValidator', '._xaxis.XaxisValidator', '._x.XValidator', '._visible.VisibleValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._tickwidth.TickwidthValidator', '._textsrc.TextsrcValidator', '._text.TextValidator', '._stream.StreamValidator', '._showlegend.ShowlegendValidator', '._selectedpoints.SelectedpointsValidator', '._opensrc.OpensrcValidator', '._open.OpenValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._lowsrc.LowsrcValidator', '._low.LowValidator', '._line.LineValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._increasing.IncreasingValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._highsrc.HighsrcValidator', '._high.HighValidator', '._decreasing.DecreasingValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._closesrc.ClosesrcValidator', '._close.CloseValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/ohlc/_close.py b/packages/python/plotly/plotly/validators/ohlc/_close.py index db559093b44..f6d8cf75c69 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_close.py +++ b/packages/python/plotly/plotly/validators/ohlc/_close.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CloseValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="close", parent_name="ohlc", **kwargs): - super(CloseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CloseValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='close', + parent_name='ohlc', + **kwargs): + super(CloseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_closesrc.py b/packages/python/plotly/plotly/validators/ohlc/_closesrc.py index 2771f53cd34..8c3a12ba71f 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_closesrc.py +++ b/packages/python/plotly/plotly/validators/ohlc/_closesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ClosesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="closesrc", parent_name="ohlc", **kwargs): - super(ClosesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ClosesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='closesrc', + parent_name='ohlc', + **kwargs): + super(ClosesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_customdata.py b/packages/python/plotly/plotly/validators/ohlc/_customdata.py index 3f41e79e0ca..b128bb19502 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_customdata.py +++ b/packages/python/plotly/plotly/validators/ohlc/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="ohlc", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='ohlc', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_customdatasrc.py b/packages/python/plotly/plotly/validators/ohlc/_customdatasrc.py index ee03e1cecdc..b57298ae6ad 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/ohlc/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="ohlc", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='ohlc', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_decreasing.py b/packages/python/plotly/plotly/validators/ohlc/_decreasing.py index c381e50479b..ccf6ba9d3e2 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_decreasing.py +++ b/packages/python/plotly/plotly/validators/ohlc/_decreasing.py @@ -1,19 +1,15 @@ -import _plotly_utils.basevalidators -class DecreasingValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="decreasing", parent_name="ohlc", **kwargs): - super(DecreasingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Decreasing"), - data_docs=kwargs.pop( - "data_docs", - """ - line - :class:`plotly.graph_objects.ohlc.decreasing.Li - ne` instance or dict with compatible properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DecreasingValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='decreasing', + parent_name='ohlc', + **kwargs): + super(DecreasingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Decreasing'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_high.py b/packages/python/plotly/plotly/validators/ohlc/_high.py index a5479d72cc4..625df39895d 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_high.py +++ b/packages/python/plotly/plotly/validators/ohlc/_high.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HighValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="high", parent_name="ohlc", **kwargs): - super(HighValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HighValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='high', + parent_name='ohlc', + **kwargs): + super(HighValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_highsrc.py b/packages/python/plotly/plotly/validators/ohlc/_highsrc.py index f20ed3abf41..331b3369200 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_highsrc.py +++ b/packages/python/plotly/plotly/validators/ohlc/_highsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HighsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="highsrc", parent_name="ohlc", **kwargs): - super(HighsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HighsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='highsrc', + parent_name='ohlc', + **kwargs): + super(HighsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_hoverinfo.py b/packages/python/plotly/plotly/validators/ohlc/_hoverinfo.py index 92546609750..b927bd4d0ad 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/ohlc/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="ohlc", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='ohlc', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/ohlc/_hoverinfosrc.py index 72a5b7f29b1..db505dd9e41 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/ohlc/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="ohlc", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='ohlc', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_hoverlabel.py b/packages/python/plotly/plotly/validators/ohlc/_hoverlabel.py index 5282edd55cc..ca8655cce81 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/ohlc/_hoverlabel.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="ohlc", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. - split - Show hover information (open, close, high, low) - in separate labels. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='ohlc', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_hovertext.py b/packages/python/plotly/plotly/validators/ohlc/_hovertext.py index 2661378f5dc..c3c916b32be 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_hovertext.py +++ b/packages/python/plotly/plotly/validators/ohlc/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="ohlc", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='ohlc', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_hovertextsrc.py b/packages/python/plotly/plotly/validators/ohlc/_hovertextsrc.py index eceaef417db..50efc213a40 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/ohlc/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="ohlc", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='ohlc', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_ids.py b/packages/python/plotly/plotly/validators/ohlc/_ids.py index 8aa15d6bc33..19e6e24d49e 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_ids.py +++ b/packages/python/plotly/plotly/validators/ohlc/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="ohlc", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='ohlc', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_idssrc.py b/packages/python/plotly/plotly/validators/ohlc/_idssrc.py index 87560b854a3..aede3eb43d3 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_idssrc.py +++ b/packages/python/plotly/plotly/validators/ohlc/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="ohlc", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='ohlc', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_increasing.py b/packages/python/plotly/plotly/validators/ohlc/_increasing.py index cb264e90c59..c8ed2d5b1c2 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_increasing.py +++ b/packages/python/plotly/plotly/validators/ohlc/_increasing.py @@ -1,19 +1,15 @@ -import _plotly_utils.basevalidators -class IncreasingValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="increasing", parent_name="ohlc", **kwargs): - super(IncreasingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Increasing"), - data_docs=kwargs.pop( - "data_docs", - """ - line - :class:`plotly.graph_objects.ohlc.increasing.Li - ne` instance or dict with compatible properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IncreasingValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='increasing', + parent_name='ohlc', + **kwargs): + super(IncreasingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Increasing'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_legend.py b/packages/python/plotly/plotly/validators/ohlc/_legend.py index 9a781df3fb3..1d98ff16951 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_legend.py +++ b/packages/python/plotly/plotly/validators/ohlc/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="ohlc", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='ohlc', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_legendgroup.py b/packages/python/plotly/plotly/validators/ohlc/_legendgroup.py index 384e89c7f3f..1b035cfd273 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/ohlc/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="ohlc", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='ohlc', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/ohlc/_legendgrouptitle.py index ce6838a648d..b6c35d8853c 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/ohlc/_legendgrouptitle.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="legendgrouptitle", parent_name="ohlc", **kwargs): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='ohlc', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_legendrank.py b/packages/python/plotly/plotly/validators/ohlc/_legendrank.py index 14de6bd00b2..63a1dd738ee 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_legendrank.py +++ b/packages/python/plotly/plotly/validators/ohlc/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="ohlc", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='ohlc', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_legendwidth.py b/packages/python/plotly/plotly/validators/ohlc/_legendwidth.py index f56dd212cb2..48f9cdb62cd 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/ohlc/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="ohlc", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='ohlc', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_line.py b/packages/python/plotly/plotly/validators/ohlc/_line.py index 9a21f90b7e6..b6f2e8daa8d 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_line.py +++ b/packages/python/plotly/plotly/validators/ohlc/_line.py @@ -1,29 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="ohlc", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - dash - 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"). - Note that this style setting can also be set - per direction via `increasing.line.dash` and - `decreasing.line.dash`. - width - [object Object] Note that this style setting - can also be set per direction via - `increasing.line.width` and - `decreasing.line.width`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='ohlc', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_low.py b/packages/python/plotly/plotly/validators/ohlc/_low.py index 4cd11320cef..b58809d98f6 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_low.py +++ b/packages/python/plotly/plotly/validators/ohlc/_low.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LowValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="low", parent_name="ohlc", **kwargs): - super(LowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LowValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='low', + parent_name='ohlc', + **kwargs): + super(LowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_lowsrc.py b/packages/python/plotly/plotly/validators/ohlc/_lowsrc.py index 8f6f1f7579e..03761954831 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_lowsrc.py +++ b/packages/python/plotly/plotly/validators/ohlc/_lowsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="lowsrc", parent_name="ohlc", **kwargs): - super(LowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='lowsrc', + parent_name='ohlc', + **kwargs): + super(LowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_meta.py b/packages/python/plotly/plotly/validators/ohlc/_meta.py index 6c202a044e1..dca99a4acd7 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_meta.py +++ b/packages/python/plotly/plotly/validators/ohlc/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="ohlc", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='ohlc', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_metasrc.py b/packages/python/plotly/plotly/validators/ohlc/_metasrc.py index ca6abf77b0e..25fa95dcded 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_metasrc.py +++ b/packages/python/plotly/plotly/validators/ohlc/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="ohlc", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='ohlc', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_name.py b/packages/python/plotly/plotly/validators/ohlc/_name.py index 02483d32219..cab9dc6b62e 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_name.py +++ b/packages/python/plotly/plotly/validators/ohlc/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="ohlc", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='ohlc', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_opacity.py b/packages/python/plotly/plotly/validators/ohlc/_opacity.py index e6bd77598ae..161e931a7e6 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_opacity.py +++ b/packages/python/plotly/plotly/validators/ohlc/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="ohlc", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='ohlc', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_open.py b/packages/python/plotly/plotly/validators/ohlc/_open.py index 6f24d8ee900..5e3f526a6bc 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_open.py +++ b/packages/python/plotly/plotly/validators/ohlc/_open.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class OpenValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="open", parent_name="ohlc", **kwargs): - super(OpenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpenValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='open', + parent_name='ohlc', + **kwargs): + super(OpenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_opensrc.py b/packages/python/plotly/plotly/validators/ohlc/_opensrc.py index 3ff8022c53d..f9e339f7ffe 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_opensrc.py +++ b/packages/python/plotly/plotly/validators/ohlc/_opensrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class OpensrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="opensrc", parent_name="ohlc", **kwargs): - super(OpensrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpensrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='opensrc', + parent_name='ohlc', + **kwargs): + super(OpensrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_selectedpoints.py b/packages/python/plotly/plotly/validators/ohlc/_selectedpoints.py index fa0ceaef672..6b8a77a7357 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_selectedpoints.py +++ b/packages/python/plotly/plotly/validators/ohlc/_selectedpoints.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="selectedpoints", parent_name="ohlc", **kwargs): - super(SelectedpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedpointsValidator(_bv.AnyValidator): + def __init__(self, plotly_name='selectedpoints', + parent_name='ohlc', + **kwargs): + super(SelectedpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_showlegend.py b/packages/python/plotly/plotly/validators/ohlc/_showlegend.py index 6ae29267b1b..7e3c6d91411 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_showlegend.py +++ b/packages/python/plotly/plotly/validators/ohlc/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="ohlc", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='ohlc', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_stream.py b/packages/python/plotly/plotly/validators/ohlc/_stream.py index 86c0b2c3104..e9069b7d6b9 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_stream.py +++ b/packages/python/plotly/plotly/validators/ohlc/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="ohlc", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='ohlc', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_text.py b/packages/python/plotly/plotly/validators/ohlc/_text.py index 755cea4df91..04b9e379ff3 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_text.py +++ b/packages/python/plotly/plotly/validators/ohlc/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="ohlc", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='ohlc', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_textsrc.py b/packages/python/plotly/plotly/validators/ohlc/_textsrc.py index 0e67a0e0841..844ccba0722 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_textsrc.py +++ b/packages/python/plotly/plotly/validators/ohlc/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="ohlc", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='ohlc', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_tickwidth.py b/packages/python/plotly/plotly/validators/ohlc/_tickwidth.py index 46e86c700b4..65e09489d16 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/ohlc/_tickwidth.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="tickwidth", parent_name="ohlc", **kwargs): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 0.5), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='ohlc', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 0.5), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_uid.py b/packages/python/plotly/plotly/validators/ohlc/_uid.py index 49f0605fc4c..33a5ba9dc70 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_uid.py +++ b/packages/python/plotly/plotly/validators/ohlc/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="ohlc", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='ohlc', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_uirevision.py b/packages/python/plotly/plotly/validators/ohlc/_uirevision.py index 6e995793cf6..b07792dd1af 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_uirevision.py +++ b/packages/python/plotly/plotly/validators/ohlc/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="ohlc", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='ohlc', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_visible.py b/packages/python/plotly/plotly/validators/ohlc/_visible.py index 11b73c8a811..6a056d5afd5 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_visible.py +++ b/packages/python/plotly/plotly/validators/ohlc/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="ohlc", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='ohlc', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_x.py b/packages/python/plotly/plotly/validators/ohlc/_x.py index 0a2f55f8fa6..d9634f661c3 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_x.py +++ b/packages/python/plotly/plotly/validators/ohlc/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="x", parent_name="ohlc", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='x', + parent_name='ohlc', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_xaxis.py b/packages/python/plotly/plotly/validators/ohlc/_xaxis.py index f9c35cdccd4..61aa25189ef 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_xaxis.py +++ b/packages/python/plotly/plotly/validators/ohlc/_xaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="xaxis", parent_name="ohlc", **kwargs): - super(XaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "x"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='xaxis', + parent_name='ohlc', + **kwargs): + super(XaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'x'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_xcalendar.py b/packages/python/plotly/plotly/validators/ohlc/_xcalendar.py index f28fd4fe9c7..e58dc6fc8e3 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_xcalendar.py +++ b/packages/python/plotly/plotly/validators/ohlc/_xcalendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xcalendar", parent_name="ohlc", **kwargs): - super(XcalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XcalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xcalendar', + parent_name='ohlc', + **kwargs): + super(XcalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_xhoverformat.py b/packages/python/plotly/plotly/validators/ohlc/_xhoverformat.py index 6799e6862e7..5fe4536d642 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_xhoverformat.py +++ b/packages/python/plotly/plotly/validators/ohlc/_xhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="xhoverformat", parent_name="ohlc", **kwargs): - super(XhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='xhoverformat', + parent_name='ohlc', + **kwargs): + super(XhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_xperiod.py b/packages/python/plotly/plotly/validators/ohlc/_xperiod.py index 5d5c1db7e95..bbceda5e275 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_xperiod.py +++ b/packages/python/plotly/plotly/validators/ohlc/_xperiod.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XperiodValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="xperiod", parent_name="ohlc", **kwargs): - super(XperiodValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XperiodValidator(_bv.AnyValidator): + def __init__(self, plotly_name='xperiod', + parent_name='ohlc', + **kwargs): + super(XperiodValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_xperiod0.py b/packages/python/plotly/plotly/validators/ohlc/_xperiod0.py index af448df0ecf..83499f0a8c7 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_xperiod0.py +++ b/packages/python/plotly/plotly/validators/ohlc/_xperiod0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Xperiod0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="xperiod0", parent_name="ohlc", **kwargs): - super(Xperiod0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Xperiod0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='xperiod0', + parent_name='ohlc', + **kwargs): + super(Xperiod0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_xperiodalignment.py b/packages/python/plotly/plotly/validators/ohlc/_xperiodalignment.py index 1b7c457c28e..b612fefc5e3 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_xperiodalignment.py +++ b/packages/python/plotly/plotly/validators/ohlc/_xperiodalignment.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xperiodalignment", parent_name="ohlc", **kwargs): - super(XperiodalignmentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["start", "middle", "end"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XperiodalignmentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xperiodalignment', + parent_name='ohlc', + **kwargs): + super(XperiodalignmentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['start', 'middle', 'end']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_xsrc.py b/packages/python/plotly/plotly/validators/ohlc/_xsrc.py index 64d3311b0ba..4eebe9ca55a 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_xsrc.py +++ b/packages/python/plotly/plotly/validators/ohlc/_xsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="xsrc", parent_name="ohlc", **kwargs): - super(XsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='xsrc', + parent_name='ohlc', + **kwargs): + super(XsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_yaxis.py b/packages/python/plotly/plotly/validators/ohlc/_yaxis.py index 1cf93cf0908..7d4bac6af35 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_yaxis.py +++ b/packages/python/plotly/plotly/validators/ohlc/_yaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="yaxis", parent_name="ohlc", **kwargs): - super(YaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "y"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='yaxis', + parent_name='ohlc', + **kwargs): + super(YaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'y'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_yhoverformat.py b/packages/python/plotly/plotly/validators/ohlc/_yhoverformat.py index 417dd867101..df30e48b537 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_yhoverformat.py +++ b/packages/python/plotly/plotly/validators/ohlc/_yhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="yhoverformat", parent_name="ohlc", **kwargs): - super(YhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='yhoverformat', + parent_name='ohlc', + **kwargs): + super(YhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/_zorder.py b/packages/python/plotly/plotly/validators/ohlc/_zorder.py index b3ad7f3450d..0e1af350e65 100644 --- a/packages/python/plotly/plotly/validators/ohlc/_zorder.py +++ b/packages/python/plotly/plotly/validators/ohlc/_zorder.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="zorder", parent_name="ohlc", **kwargs): - super(ZorderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZorderValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='zorder', + parent_name='ohlc', + **kwargs): + super(ZorderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/decreasing/__init__.py b/packages/python/plotly/plotly/validators/ohlc/decreasing/__init__.py index 90c7f7b1276..b9f39840568 100644 --- a/packages/python/plotly/plotly/validators/ohlc/decreasing/__init__.py +++ b/packages/python/plotly/plotly/validators/ohlc/decreasing/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import LineValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._line.LineValidator"] + __name__, + [], + ['._line.LineValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/ohlc/decreasing/_line.py b/packages/python/plotly/plotly/validators/ohlc/decreasing/_line.py index 49c9834417f..5525bf634e4 100644 --- a/packages/python/plotly/plotly/validators/ohlc/decreasing/_line.py +++ b/packages/python/plotly/plotly/validators/ohlc/decreasing/_line.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="ohlc.decreasing", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the line color. - dash - 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"). - width - Sets the line width (in px). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='ohlc.decreasing', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/decreasing/line/__init__.py b/packages/python/plotly/plotly/validators/ohlc/decreasing/line/__init__.py index cff41466517..e42e2f2974d 100644 --- a/packages/python/plotly/plotly/validators/ohlc/decreasing/line/__init__.py +++ b/packages/python/plotly/plotly/validators/ohlc/decreasing/line/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._dash import DashValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._width.WidthValidator", "._dash.DashValidator", "._color.ColorValidator"], + ['._width.WidthValidator', '._dash.DashValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/ohlc/decreasing/line/_color.py b/packages/python/plotly/plotly/validators/ohlc/decreasing/line/_color.py index c5210d83e1b..e2aa45cb10b 100644 --- a/packages/python/plotly/plotly/validators/ohlc/decreasing/line/_color.py +++ b/packages/python/plotly/plotly/validators/ohlc/decreasing/line/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="ohlc.decreasing.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='ohlc.decreasing.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/decreasing/line/_dash.py b/packages/python/plotly/plotly/validators/ohlc/decreasing/line/_dash.py index 31d708295f0..79ec30a11b3 100644 --- a/packages/python/plotly/plotly/validators/ohlc/decreasing/line/_dash.py +++ b/packages/python/plotly/plotly/validators/ohlc/decreasing/line/_dash.py @@ -1,16 +1,14 @@ -import _plotly_utils.basevalidators -class DashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__( - self, plotly_name="dash", parent_name="ohlc.decreasing.line", **kwargs - ): - super(DashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DashValidator(_bv.DashValidator): + def __init__(self, plotly_name='dash', + parent_name='ohlc.decreasing.line', + **kwargs): + super(DashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/decreasing/line/_width.py b/packages/python/plotly/plotly/validators/ohlc/decreasing/line/_width.py index b7bf0fcc758..a25496f3833 100644 --- a/packages/python/plotly/plotly/validators/ohlc/decreasing/line/_width.py +++ b/packages/python/plotly/plotly/validators/ohlc/decreasing/line/_width.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="ohlc.decreasing.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='ohlc.decreasing.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/__init__.py index 5504c36e76f..f717a1a9721 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._split import SplitValidator from ._namelengthsrc import NamelengthsrcValidator @@ -14,20 +13,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._split.SplitValidator", - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._split.SplitValidator', '._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_align.py index bc7eda954cc..ea06306dbac 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_align.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="align", parent_name="ohlc.hoverlabel", **kwargs): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='ohlc.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_alignsrc.py index ec375c561a9..676c6d2b9b4 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_alignsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="alignsrc", parent_name="ohlc.hoverlabel", **kwargs): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='ohlc.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_bgcolor.py index 9a75cdeb06e..c5f68d94c38 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_bgcolor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="bgcolor", parent_name="ohlc.hoverlabel", **kwargs): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='ohlc.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_bgcolorsrc.py index 6b45c48e53f..15bf5fc8411 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="ohlc.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='ohlc.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_bordercolor.py index 911d1748cfa..e4e826309fe 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="ohlc.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='ohlc.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_bordercolorsrc.py index aad3319a425..21bf4fec990 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bordercolorsrc", parent_name="ohlc.hoverlabel", **kwargs - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='ohlc.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_font.py index 95c54cc6255..ee2b909ab3d 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_font.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="ohlc.hoverlabel", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='ohlc.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_namelength.py index 7f9c1d44b3f..494cb03c8e7 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="ohlc.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='ohlc.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_namelengthsrc.py index dae5da745c1..54f9a100a07 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="ohlc.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='ohlc.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_split.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_split.py index fec36fbc9dd..96d057dba67 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_split.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/_split.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SplitValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="split", parent_name="ohlc.hoverlabel", **kwargs): - super(SplitValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SplitValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='split', + parent_name='ohlc.hoverlabel', + **kwargs): + super(SplitValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_color.py index 651f3962ff3..0dcf12658fa 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="ohlc.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='ohlc.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_colorsrc.py index ea45957a5be..56ae5a1b726 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="ohlc.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='ohlc.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_family.py index 069e3ad65e6..9722383d491 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="ohlc.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='ohlc.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_familysrc.py index bcca06d0137..c1136b9d03a 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="ohlc.hoverlabel.font", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='ohlc.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_lineposition.py index f714945af2e..4a728a9cccf 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="ohlc.hoverlabel.font", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='ohlc.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_linepositionsrc.py index 8295e4fb8f9..193245e5427 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="ohlc.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='ohlc.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_shadow.py index 9dcd6678692..254741ba273 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="ohlc.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='ohlc.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_shadowsrc.py index 245a43baa50..328b0a35df0 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="ohlc.hoverlabel.font", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='ohlc.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_size.py index ee715c44861..b749fd4b0d7 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="ohlc.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='ohlc.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_sizesrc.py index d55cf9b11b3..275f18aaf14 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="ohlc.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='ohlc.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_style.py index dc163fa92d0..beefbee4208 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="ohlc.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='ohlc.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_stylesrc.py index bb8b5b3d4dc..cf6d6675815 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="ohlc.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='ohlc.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_textcase.py index 13dbb512846..b706fcb4b15 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="ohlc.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='ohlc.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_textcasesrc.py index 71eefd3592c..371a49239d5 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="ohlc.hoverlabel.font", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='ohlc.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_variant.py index 69018236188..d2570066e7c 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="ohlc.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='ohlc.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_variantsrc.py index 532e222dd80..551237b6c93 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="ohlc.hoverlabel.font", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='ohlc.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_weight.py index f539a52bcb2..beabd080854 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="ohlc.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='ohlc.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_weightsrc.py index 4a7af52e77e..4c3f206ecad 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="ohlc.hoverlabel.font", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='ohlc.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/increasing/__init__.py b/packages/python/plotly/plotly/validators/ohlc/increasing/__init__.py index 90c7f7b1276..b9f39840568 100644 --- a/packages/python/plotly/plotly/validators/ohlc/increasing/__init__.py +++ b/packages/python/plotly/plotly/validators/ohlc/increasing/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import LineValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._line.LineValidator"] + __name__, + [], + ['._line.LineValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/ohlc/increasing/_line.py b/packages/python/plotly/plotly/validators/ohlc/increasing/_line.py index 2ed0a29d83d..41c12220fd8 100644 --- a/packages/python/plotly/plotly/validators/ohlc/increasing/_line.py +++ b/packages/python/plotly/plotly/validators/ohlc/increasing/_line.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="ohlc.increasing", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the line color. - dash - 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"). - width - Sets the line width (in px). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='ohlc.increasing', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/increasing/line/__init__.py b/packages/python/plotly/plotly/validators/ohlc/increasing/line/__init__.py index cff41466517..e42e2f2974d 100644 --- a/packages/python/plotly/plotly/validators/ohlc/increasing/line/__init__.py +++ b/packages/python/plotly/plotly/validators/ohlc/increasing/line/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._dash import DashValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._width.WidthValidator", "._dash.DashValidator", "._color.ColorValidator"], + ['._width.WidthValidator', '._dash.DashValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/ohlc/increasing/line/_color.py b/packages/python/plotly/plotly/validators/ohlc/increasing/line/_color.py index b1f75cb2585..baf3cf9bb6d 100644 --- a/packages/python/plotly/plotly/validators/ohlc/increasing/line/_color.py +++ b/packages/python/plotly/plotly/validators/ohlc/increasing/line/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="ohlc.increasing.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='ohlc.increasing.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/increasing/line/_dash.py b/packages/python/plotly/plotly/validators/ohlc/increasing/line/_dash.py index 9ee2a5a805b..9d0a9c3d518 100644 --- a/packages/python/plotly/plotly/validators/ohlc/increasing/line/_dash.py +++ b/packages/python/plotly/plotly/validators/ohlc/increasing/line/_dash.py @@ -1,16 +1,14 @@ -import _plotly_utils.basevalidators -class DashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__( - self, plotly_name="dash", parent_name="ohlc.increasing.line", **kwargs - ): - super(DashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DashValidator(_bv.DashValidator): + def __init__(self, plotly_name='dash', + parent_name='ohlc.increasing.line', + **kwargs): + super(DashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/increasing/line/_width.py b/packages/python/plotly/plotly/validators/ohlc/increasing/line/_width.py index be5368b6864..43c5ffb23d2 100644 --- a/packages/python/plotly/plotly/validators/ohlc/increasing/line/_width.py +++ b/packages/python/plotly/plotly/validators/ohlc/increasing/line/_width.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="ohlc.increasing.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='ohlc.increasing.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/_font.py index e6bc08065c6..b70ced92330 100644 --- a/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="ohlc.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='ohlc.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/_text.py index 15839958584..e6b5af4dfbd 100644 --- a/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="ohlc.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='ohlc.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_color.py index 343a4f12acb..3fb0ac84a42 100644 --- a/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="ohlc.legendgrouptitle.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='ohlc.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_family.py index d1740416e5d..7bac18ef800 100644 --- a/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="ohlc.legendgrouptitle.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='ohlc.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_lineposition.py index 06acd464a51..c70fed5f372 100644 --- a/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="ohlc.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='ohlc.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_shadow.py index ac884973fbc..e1e06a29433 100644 --- a/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="ohlc.legendgrouptitle.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='ohlc.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_size.py index de1de19eecb..8e74ca15395 100644 --- a/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="ohlc.legendgrouptitle.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='ohlc.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_style.py index d0273427efe..d6c69f83c0c 100644 --- a/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="ohlc.legendgrouptitle.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='ohlc.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_textcase.py index f31d5c3f709..2dc8db0a7d6 100644 --- a/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="ohlc.legendgrouptitle.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='ohlc.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_variant.py index 86714857704..f2e0f179449 100644 --- a/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="ohlc.legendgrouptitle.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='ohlc.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_weight.py index c61784a48d4..a45d4bdfa74 100644 --- a/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/ohlc/legendgrouptitle/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="ohlc.legendgrouptitle.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='ohlc.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/line/__init__.py b/packages/python/plotly/plotly/validators/ohlc/line/__init__.py index e02935101ff..bda7e9ea8cb 100644 --- a/packages/python/plotly/plotly/validators/ohlc/line/__init__.py +++ b/packages/python/plotly/plotly/validators/ohlc/line/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._dash import DashValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._width.WidthValidator", "._dash.DashValidator"] + __name__, + [], + ['._width.WidthValidator', '._dash.DashValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/ohlc/line/_dash.py b/packages/python/plotly/plotly/validators/ohlc/line/_dash.py index ce5e0675249..00f2da0a949 100644 --- a/packages/python/plotly/plotly/validators/ohlc/line/_dash.py +++ b/packages/python/plotly/plotly/validators/ohlc/line/_dash.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__(self, plotly_name="dash", parent_name="ohlc.line", **kwargs): - super(DashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DashValidator(_bv.DashValidator): + def __init__(self, plotly_name='dash', + parent_name='ohlc.line', + **kwargs): + super(DashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/line/_width.py b/packages/python/plotly/plotly/validators/ohlc/line/_width.py index 3de1df879db..0364c6a4724 100644 --- a/packages/python/plotly/plotly/validators/ohlc/line/_width.py +++ b/packages/python/plotly/plotly/validators/ohlc/line/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="ohlc.line", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='ohlc.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/stream/__init__.py b/packages/python/plotly/plotly/validators/ohlc/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/ohlc/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/ohlc/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/ohlc/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/ohlc/stream/_maxpoints.py index 365e5701be9..8a982c22661 100644 --- a/packages/python/plotly/plotly/validators/ohlc/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/ohlc/stream/_maxpoints.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="maxpoints", parent_name="ohlc.stream", **kwargs): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='ohlc.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/ohlc/stream/_token.py b/packages/python/plotly/plotly/validators/ohlc/stream/_token.py index 6ee6e3c09a1..03b96109935 100644 --- a/packages/python/plotly/plotly/validators/ohlc/stream/_token.py +++ b/packages/python/plotly/plotly/validators/ohlc/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="ohlc.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='ohlc.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/__init__.py b/packages/python/plotly/plotly/validators/parcats/__init__.py index 6e95a64b31f..4eb0881e333 100644 --- a/packages/python/plotly/plotly/validators/parcats/__init__.py +++ b/packages/python/plotly/plotly/validators/parcats/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._uirevision import UirevisionValidator @@ -27,33 +26,10 @@ from ._arrangement import ArrangementValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._tickfont.TickfontValidator", - "._stream.StreamValidator", - "._sortpaths.SortpathsValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._line.LineValidator", - "._legendwidth.LegendwidthValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._labelfont.LabelfontValidator", - "._hovertemplate.HovertemplateValidator", - "._hoveron.HoveronValidator", - "._hoverinfo.HoverinfoValidator", - "._domain.DomainValidator", - "._dimensiondefaults.DimensiondefaultsValidator", - "._dimensions.DimensionsValidator", - "._countssrc.CountssrcValidator", - "._counts.CountsValidator", - "._bundlecolors.BundlecolorsValidator", - "._arrangement.ArrangementValidator", - ], + ['._visible.VisibleValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._tickfont.TickfontValidator', '._stream.StreamValidator', '._sortpaths.SortpathsValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._line.LineValidator', '._legendwidth.LegendwidthValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._labelfont.LabelfontValidator', '._hovertemplate.HovertemplateValidator', '._hoveron.HoveronValidator', '._hoverinfo.HoverinfoValidator', '._domain.DomainValidator', '._dimensiondefaults.DimensiondefaultsValidator', '._dimensions.DimensionsValidator', '._countssrc.CountssrcValidator', '._counts.CountsValidator', '._bundlecolors.BundlecolorsValidator', '._arrangement.ArrangementValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcats/_arrangement.py b/packages/python/plotly/plotly/validators/parcats/_arrangement.py index c8175da4216..8baf31d589b 100644 --- a/packages/python/plotly/plotly/validators/parcats/_arrangement.py +++ b/packages/python/plotly/plotly/validators/parcats/_arrangement.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ArrangementValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="arrangement", parent_name="parcats", **kwargs): - super(ArrangementValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["perpendicular", "freeform", "fixed"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrangementValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='arrangement', + parent_name='parcats', + **kwargs): + super(ArrangementValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['perpendicular', 'freeform', 'fixed']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/_bundlecolors.py b/packages/python/plotly/plotly/validators/parcats/_bundlecolors.py index a1c2f611b5a..d4169b684e4 100644 --- a/packages/python/plotly/plotly/validators/parcats/_bundlecolors.py +++ b/packages/python/plotly/plotly/validators/parcats/_bundlecolors.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BundlecolorsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="bundlecolors", parent_name="parcats", **kwargs): - super(BundlecolorsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BundlecolorsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='bundlecolors', + parent_name='parcats', + **kwargs): + super(BundlecolorsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/_counts.py b/packages/python/plotly/plotly/validators/parcats/_counts.py index 19249535768..2a917abaad3 100644 --- a/packages/python/plotly/plotly/validators/parcats/_counts.py +++ b/packages/python/plotly/plotly/validators/parcats/_counts.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class CountsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="counts", parent_name="parcats", **kwargs): - super(CountsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CountsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='counts', + parent_name='parcats', + **kwargs): + super(CountsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/_countssrc.py b/packages/python/plotly/plotly/validators/parcats/_countssrc.py index e67d56d36a9..ca9c53a2c65 100644 --- a/packages/python/plotly/plotly/validators/parcats/_countssrc.py +++ b/packages/python/plotly/plotly/validators/parcats/_countssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CountssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="countssrc", parent_name="parcats", **kwargs): - super(CountssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CountssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='countssrc', + parent_name='parcats', + **kwargs): + super(CountssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/_dimensiondefaults.py b/packages/python/plotly/plotly/validators/parcats/_dimensiondefaults.py index 0f92a6eaf95..908c383910f 100644 --- a/packages/python/plotly/plotly/validators/parcats/_dimensiondefaults.py +++ b/packages/python/plotly/plotly/validators/parcats/_dimensiondefaults.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class DimensiondefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="dimensiondefaults", parent_name="parcats", **kwargs - ): - super(DimensiondefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Dimension"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DimensiondefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='dimensiondefaults', + parent_name='parcats', + **kwargs): + super(DimensiondefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Dimension'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/_dimensions.py b/packages/python/plotly/plotly/validators/parcats/_dimensions.py index 1c1885e0b5c..71bdf83ac75 100644 --- a/packages/python/plotly/plotly/validators/parcats/_dimensions.py +++ b/packages/python/plotly/plotly/validators/parcats/_dimensions.py @@ -1,66 +1,15 @@ -import _plotly_utils.basevalidators -class DimensionsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__(self, plotly_name="dimensions", parent_name="parcats", **kwargs): - super(DimensionsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Dimension"), - data_docs=kwargs.pop( - "data_docs", - """ - categoryarray - Sets the order in which categories in this - dimension appear. Only has an effect if - `categoryorder` is set to "array". Used with - `categoryorder`. - categoryarraysrc - Sets the source reference on Chart Studio Cloud - for `categoryarray`. - categoryorder - Specifies the ordering logic for the categories - in the dimension. By default, plotly uses - "trace", which specifies the order that is - present in the data supplied. Set - `categoryorder` to *category ascending* or - *category descending* if order should be - determined by the alphanumerical order of the - category names. Set `categoryorder` to "array" - to derive the ordering from the attribute - `categoryarray`. If a category is not found in - the `categoryarray` array, the sorting behavior - for that attribute will be identical to the - "trace" mode. The unspecified categories will - follow the categories in `categoryarray`. - displayindex - The display index of dimension, from left to - right, zero indexed, defaults to dimension - index. - label - The shown name of the dimension. - ticktext - Sets alternative tick labels for the categories - in this dimension. Only has an effect if - `categoryorder` is set to "array". Should be an - array the same length as `categoryarray` Used - with `categoryorder`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - values - Dimension values. `values[n]` represents the - category value of the `n`th point in the - dataset, therefore the `values` vector for all - dimensions must be the same (longer vectors - will be truncated). - valuessrc - Sets the source reference on Chart Studio Cloud - for `values`. - visible - Shows the dimension when set to `true` (the - default). Hides the dimension for `false`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DimensionsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='dimensions', + parent_name='parcats', + **kwargs): + super(DimensionsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Dimension'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/_domain.py b/packages/python/plotly/plotly/validators/parcats/_domain.py index 51dc30225d3..742f58ca746 100644 --- a/packages/python/plotly/plotly/validators/parcats/_domain.py +++ b/packages/python/plotly/plotly/validators/parcats/_domain.py @@ -1,29 +1,15 @@ -import _plotly_utils.basevalidators -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="domain", parent_name="parcats", **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 parcats trace - . - row - If there is a layout grid, use the domain for - this row in the grid for this parcats trace . - x - Sets the horizontal domain of this parcats - trace (in plot fraction). - y - Sets the vertical domain of this parcats trace - (in plot fraction). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DomainValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='domain', + parent_name='parcats', + **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', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/_hoverinfo.py b/packages/python/plotly/plotly/validators/parcats/_hoverinfo.py index 35d8e40d068..35a7ffc826a 100644 --- a/packages/python/plotly/plotly/validators/parcats/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/parcats/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="parcats", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["count", "probability"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='parcats', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['count', 'probability']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/_hoveron.py b/packages/python/plotly/plotly/validators/parcats/_hoveron.py index 4fc02972c98..5997441ce8f 100644 --- a/packages/python/plotly/plotly/validators/parcats/_hoveron.py +++ b/packages/python/plotly/plotly/validators/parcats/_hoveron.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HoveronValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="hoveron", parent_name="parcats", **kwargs): - super(HoveronValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["category", "color", "dimension"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoveronValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='hoveron', + parent_name='parcats', + **kwargs): + super(HoveronValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['category', 'color', 'dimension']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/_hovertemplate.py b/packages/python/plotly/plotly/validators/parcats/_hovertemplate.py index bf8e6cc3821..cf5aa6be296 100644 --- a/packages/python/plotly/plotly/validators/parcats/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/parcats/_hovertemplate.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="parcats", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='parcats', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/_labelfont.py b/packages/python/plotly/plotly/validators/parcats/_labelfont.py index 591599e26c6..4ecd9610a80 100644 --- a/packages/python/plotly/plotly/validators/parcats/_labelfont.py +++ b/packages/python/plotly/plotly/validators/parcats/_labelfont.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class LabelfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="labelfont", parent_name="parcats", **kwargs): - super(LabelfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Labelfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class LabelfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='labelfont', + parent_name='parcats', + **kwargs): + super(LabelfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Labelfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/parcats/_legendgrouptitle.py index b3cb0262fd3..d1069d13f05 100644 --- a/packages/python/plotly/plotly/validators/parcats/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/parcats/_legendgrouptitle.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="legendgrouptitle", parent_name="parcats", **kwargs): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='parcats', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/_legendwidth.py b/packages/python/plotly/plotly/validators/parcats/_legendwidth.py index 8e6d18a307b..b7bc2d18d21 100644 --- a/packages/python/plotly/plotly/validators/parcats/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/parcats/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="parcats", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='parcats', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/_line.py b/packages/python/plotly/plotly/validators/parcats/_line.py index 49d3faaeb38..90a3e62516c 100644 --- a/packages/python/plotly/plotly/validators/parcats/_line.py +++ b/packages/python/plotly/plotly/validators/parcats/_line.py @@ -1,142 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="parcats", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `line.colorscale`. Has an effect - only if in `line.color` is set to a numerical - array. In case `colorscale` is unspecified or - `autocolorscale` is true, the default palette - will be chosen according to whether numbers in - the `color` array are all positive, all - negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `line.color`) or the bounds set in - `line.cmin` and `line.cmax` Has an effect only - if in `line.color` is set to a numerical array. - Defaults to `false` when `line.cmin` and - `line.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `line.color` is set to a - numerical array. Value should have the same - units as in `line.color` and if set, - `line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `line.cmin` and/or `line.cmax` to be - equidistant to this point. Has an effect only - if in `line.color` is set to a numerical array. - Value should have the same units as in - `line.color`. Has no effect when `line.cauto` - is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `line.color` is set to a - numerical array. Value should have the same - units as in `line.color` and if set, - `line.cmax` must be set as well. - color - Sets the line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `line.cmin` and `line.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.parcats.line.Color - Bar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `line.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `line.cmin` and `line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - This value here applies when hovering over - lines.Finally, the template string has access - to variables `count` and `probability`. - Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - reversescale - Reverses the color mapping if true. Has an - effect only if in `line.color` is set to a - numerical array. If true, `line.cmin` will - correspond to the last color in the array and - `line.cmax` will correspond to the first color. - shape - Sets the shape of the paths. If `linear`, paths - are composed of straight lines. If `hspline`, - paths are composed of horizontal curved splines - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `line.color` is set to a numerical array. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='parcats', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/_meta.py b/packages/python/plotly/plotly/validators/parcats/_meta.py index 229c939cb9f..1537af8ae81 100644 --- a/packages/python/plotly/plotly/validators/parcats/_meta.py +++ b/packages/python/plotly/plotly/validators/parcats/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="parcats", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='parcats', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/_metasrc.py b/packages/python/plotly/plotly/validators/parcats/_metasrc.py index 552faa3d5c9..0a9ca4ad97b 100644 --- a/packages/python/plotly/plotly/validators/parcats/_metasrc.py +++ b/packages/python/plotly/plotly/validators/parcats/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="parcats", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='parcats', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/_name.py b/packages/python/plotly/plotly/validators/parcats/_name.py index 6a6f771f477..06be1c6c390 100644 --- a/packages/python/plotly/plotly/validators/parcats/_name.py +++ b/packages/python/plotly/plotly/validators/parcats/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="parcats", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='parcats', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/_sortpaths.py b/packages/python/plotly/plotly/validators/parcats/_sortpaths.py index 467ac173b95..ccc928370a3 100644 --- a/packages/python/plotly/plotly/validators/parcats/_sortpaths.py +++ b/packages/python/plotly/plotly/validators/parcats/_sortpaths.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SortpathsValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="sortpaths", parent_name="parcats", **kwargs): - super(SortpathsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["forward", "backward"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SortpathsValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='sortpaths', + parent_name='parcats', + **kwargs): + super(SortpathsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['forward', 'backward']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/_stream.py b/packages/python/plotly/plotly/validators/parcats/_stream.py index 331ecda7f20..4ab0f560432 100644 --- a/packages/python/plotly/plotly/validators/parcats/_stream.py +++ b/packages/python/plotly/plotly/validators/parcats/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="parcats", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='parcats', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/_tickfont.py b/packages/python/plotly/plotly/validators/parcats/_tickfont.py index 5abae6a9d9b..bbbc942025c 100644 --- a/packages/python/plotly/plotly/validators/parcats/_tickfont.py +++ b/packages/python/plotly/plotly/validators/parcats/_tickfont.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="tickfont", parent_name="parcats", **kwargs): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='parcats', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/_uid.py b/packages/python/plotly/plotly/validators/parcats/_uid.py index ae354803f83..6fac618c2f3 100644 --- a/packages/python/plotly/plotly/validators/parcats/_uid.py +++ b/packages/python/plotly/plotly/validators/parcats/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="parcats", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='parcats', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/_uirevision.py b/packages/python/plotly/plotly/validators/parcats/_uirevision.py index cadb8a85a3e..37a1bcc8c1a 100644 --- a/packages/python/plotly/plotly/validators/parcats/_uirevision.py +++ b/packages/python/plotly/plotly/validators/parcats/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="parcats", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='parcats', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/_visible.py b/packages/python/plotly/plotly/validators/parcats/_visible.py index 93a4e85aa87..0b35dd794f5 100644 --- a/packages/python/plotly/plotly/validators/parcats/_visible.py +++ b/packages/python/plotly/plotly/validators/parcats/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="parcats", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='parcats', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/dimension/__init__.py b/packages/python/plotly/plotly/validators/parcats/dimension/__init__.py index 166d9faa329..b325096303c 100644 --- a/packages/python/plotly/plotly/validators/parcats/dimension/__init__.py +++ b/packages/python/plotly/plotly/validators/parcats/dimension/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._valuessrc import ValuessrcValidator @@ -14,20 +13,10 @@ from ._categoryarray import CategoryarrayValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._valuessrc.ValuessrcValidator", - "._values.ValuesValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._label.LabelValidator", - "._displayindex.DisplayindexValidator", - "._categoryorder.CategoryorderValidator", - "._categoryarraysrc.CategoryarraysrcValidator", - "._categoryarray.CategoryarrayValidator", - ], + ['._visible.VisibleValidator', '._valuessrc.ValuessrcValidator', '._values.ValuesValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._label.LabelValidator', '._displayindex.DisplayindexValidator', '._categoryorder.CategoryorderValidator', '._categoryarraysrc.CategoryarraysrcValidator', '._categoryarray.CategoryarrayValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcats/dimension/_categoryarray.py b/packages/python/plotly/plotly/validators/parcats/dimension/_categoryarray.py index 85edeaa9b8d..50ccbac1f89 100644 --- a/packages/python/plotly/plotly/validators/parcats/dimension/_categoryarray.py +++ b/packages/python/plotly/plotly/validators/parcats/dimension/_categoryarray.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="categoryarray", parent_name="parcats.dimension", **kwargs - ): - super(CategoryarrayValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CategoryarrayValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='categoryarray', + parent_name='parcats.dimension', + **kwargs): + super(CategoryarrayValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/dimension/_categoryarraysrc.py b/packages/python/plotly/plotly/validators/parcats/dimension/_categoryarraysrc.py index 8b06b340e0c..3f43b94fbb8 100644 --- a/packages/python/plotly/plotly/validators/parcats/dimension/_categoryarraysrc.py +++ b/packages/python/plotly/plotly/validators/parcats/dimension/_categoryarraysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="categoryarraysrc", parent_name="parcats.dimension", **kwargs - ): - super(CategoryarraysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CategoryarraysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='categoryarraysrc', + parent_name='parcats.dimension', + **kwargs): + super(CategoryarraysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/dimension/_categoryorder.py b/packages/python/plotly/plotly/validators/parcats/dimension/_categoryorder.py index 09968442b3b..7ff5059b784 100644 --- a/packages/python/plotly/plotly/validators/parcats/dimension/_categoryorder.py +++ b/packages/python/plotly/plotly/validators/parcats/dimension/_categoryorder.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="categoryorder", parent_name="parcats.dimension", **kwargs - ): - super(CategoryorderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - ["trace", "category ascending", "category descending", "array"], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CategoryorderValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='categoryorder', + parent_name='parcats.dimension', + **kwargs): + super(CategoryorderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['trace', 'category ascending', 'category descending', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/dimension/_displayindex.py b/packages/python/plotly/plotly/validators/parcats/dimension/_displayindex.py index 559d125a569..b584c1faf52 100644 --- a/packages/python/plotly/plotly/validators/parcats/dimension/_displayindex.py +++ b/packages/python/plotly/plotly/validators/parcats/dimension/_displayindex.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class DisplayindexValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="displayindex", parent_name="parcats.dimension", **kwargs - ): - super(DisplayindexValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DisplayindexValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='displayindex', + parent_name='parcats.dimension', + **kwargs): + super(DisplayindexValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/dimension/_label.py b/packages/python/plotly/plotly/validators/parcats/dimension/_label.py index 9840d38bdf4..2395d89afae 100644 --- a/packages/python/plotly/plotly/validators/parcats/dimension/_label.py +++ b/packages/python/plotly/plotly/validators/parcats/dimension/_label.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LabelValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="label", parent_name="parcats.dimension", **kwargs): - super(LabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelValidator(_bv.StringValidator): + def __init__(self, plotly_name='label', + parent_name='parcats.dimension', + **kwargs): + super(LabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/dimension/_ticktext.py b/packages/python/plotly/plotly/validators/parcats/dimension/_ticktext.py index 6c1d645c50d..60f4800143b 100644 --- a/packages/python/plotly/plotly/validators/parcats/dimension/_ticktext.py +++ b/packages/python/plotly/plotly/validators/parcats/dimension/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="parcats.dimension", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='parcats.dimension', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/dimension/_ticktextsrc.py b/packages/python/plotly/plotly/validators/parcats/dimension/_ticktextsrc.py index bd47fb8a3dc..3cfcc6d4513 100644 --- a/packages/python/plotly/plotly/validators/parcats/dimension/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/parcats/dimension/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="parcats.dimension", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='parcats.dimension', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/dimension/_values.py b/packages/python/plotly/plotly/validators/parcats/dimension/_values.py index c4cc246d875..178778437c7 100644 --- a/packages/python/plotly/plotly/validators/parcats/dimension/_values.py +++ b/packages/python/plotly/plotly/validators/parcats/dimension/_values.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ValuesValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="values", parent_name="parcats.dimension", **kwargs): - super(ValuesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValuesValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='values', + parent_name='parcats.dimension', + **kwargs): + super(ValuesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/dimension/_valuessrc.py b/packages/python/plotly/plotly/validators/parcats/dimension/_valuessrc.py index 187803a5bc1..d4b850d5712 100644 --- a/packages/python/plotly/plotly/validators/parcats/dimension/_valuessrc.py +++ b/packages/python/plotly/plotly/validators/parcats/dimension/_valuessrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ValuessrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="valuessrc", parent_name="parcats.dimension", **kwargs - ): - super(ValuessrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValuessrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='valuessrc', + parent_name='parcats.dimension', + **kwargs): + super(ValuessrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/dimension/_visible.py b/packages/python/plotly/plotly/validators/parcats/dimension/_visible.py index 586aa9bff07..e0bd945e0a4 100644 --- a/packages/python/plotly/plotly/validators/parcats/dimension/_visible.py +++ b/packages/python/plotly/plotly/validators/parcats/dimension/_visible.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="visible", parent_name="parcats.dimension", **kwargs - ): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='parcats.dimension', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/domain/__init__.py b/packages/python/plotly/plotly/validators/parcats/domain/__init__.py index 67de5030d0a..705a2194402 100644 --- a/packages/python/plotly/plotly/validators/parcats/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/parcats/domain/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._y import YValidator from ._x import XValidator @@ -8,14 +7,10 @@ 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", - ], + ['._y.YValidator', '._x.XValidator', '._row.RowValidator', '._column.ColumnValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcats/domain/_column.py b/packages/python/plotly/plotly/validators/parcats/domain/_column.py index 0f0090ca352..dd47d73d2f5 100644 --- a/packages/python/plotly/plotly/validators/parcats/domain/_column.py +++ b/packages/python/plotly/plotly/validators/parcats/domain/_column.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="column", parent_name="parcats.domain", **kwargs): - super(ColumnValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColumnValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='column', + parent_name='parcats.domain', + **kwargs): + super(ColumnValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/domain/_row.py b/packages/python/plotly/plotly/validators/parcats/domain/_row.py index 3bd6f4fc95d..0fb9f4afa4d 100644 --- a/packages/python/plotly/plotly/validators/parcats/domain/_row.py +++ b/packages/python/plotly/plotly/validators/parcats/domain/_row.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="row", parent_name="parcats.domain", **kwargs): - super(RowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RowValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='row', + parent_name='parcats.domain', + **kwargs): + super(RowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/domain/_x.py b/packages/python/plotly/plotly/validators/parcats/domain/_x.py index 94b3271d4dc..b61283acd48 100644 --- a/packages/python/plotly/plotly/validators/parcats/domain/_x.py +++ b/packages/python/plotly/plotly/validators/parcats/domain/_x.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="x", parent_name="parcats.domain", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='x', + parent_name='parcats.domain', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}, {'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/domain/_y.py b/packages/python/plotly/plotly/validators/parcats/domain/_y.py index 12b36630b06..8f42751a32c 100644 --- a/packages/python/plotly/plotly/validators/parcats/domain/_y.py +++ b/packages/python/plotly/plotly/validators/parcats/domain/_y.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="y", parent_name="parcats.domain", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='y', + parent_name='parcats.domain', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}, {'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/labelfont/__init__.py b/packages/python/plotly/plotly/validators/parcats/labelfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/parcats/labelfont/__init__.py +++ b/packages/python/plotly/plotly/validators/parcats/labelfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcats/labelfont/_color.py b/packages/python/plotly/plotly/validators/parcats/labelfont/_color.py index 1cf71fd380c..4f63448a7ca 100644 --- a/packages/python/plotly/plotly/validators/parcats/labelfont/_color.py +++ b/packages/python/plotly/plotly/validators/parcats/labelfont/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="parcats.labelfont", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='parcats.labelfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/labelfont/_family.py b/packages/python/plotly/plotly/validators/parcats/labelfont/_family.py index d8419f848aa..071c6c63b87 100644 --- a/packages/python/plotly/plotly/validators/parcats/labelfont/_family.py +++ b/packages/python/plotly/plotly/validators/parcats/labelfont/_family.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="family", parent_name="parcats.labelfont", **kwargs): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='parcats.labelfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/labelfont/_lineposition.py b/packages/python/plotly/plotly/validators/parcats/labelfont/_lineposition.py index fbdbeda09ee..abd13728cb5 100644 --- a/packages/python/plotly/plotly/validators/parcats/labelfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/parcats/labelfont/_lineposition.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="parcats.labelfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='parcats.labelfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/labelfont/_shadow.py b/packages/python/plotly/plotly/validators/parcats/labelfont/_shadow.py index 7530a3dc4c4..ca807620e33 100644 --- a/packages/python/plotly/plotly/validators/parcats/labelfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/parcats/labelfont/_shadow.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="shadow", parent_name="parcats.labelfont", **kwargs): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='parcats.labelfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/labelfont/_size.py b/packages/python/plotly/plotly/validators/parcats/labelfont/_size.py index cef22bb5376..3e1970058ff 100644 --- a/packages/python/plotly/plotly/validators/parcats/labelfont/_size.py +++ b/packages/python/plotly/plotly/validators/parcats/labelfont/_size.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="parcats.labelfont", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='parcats.labelfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/labelfont/_style.py b/packages/python/plotly/plotly/validators/parcats/labelfont/_style.py index 013ec799268..3b2b933690c 100644 --- a/packages/python/plotly/plotly/validators/parcats/labelfont/_style.py +++ b/packages/python/plotly/plotly/validators/parcats/labelfont/_style.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="style", parent_name="parcats.labelfont", **kwargs): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='parcats.labelfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/labelfont/_textcase.py b/packages/python/plotly/plotly/validators/parcats/labelfont/_textcase.py index 6166b0af891..8ed6d50325a 100644 --- a/packages/python/plotly/plotly/validators/parcats/labelfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/parcats/labelfont/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="parcats.labelfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='parcats.labelfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/labelfont/_variant.py b/packages/python/plotly/plotly/validators/parcats/labelfont/_variant.py index 8ccc6ddbb5b..173d497b325 100644 --- a/packages/python/plotly/plotly/validators/parcats/labelfont/_variant.py +++ b/packages/python/plotly/plotly/validators/parcats/labelfont/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="parcats.labelfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='parcats.labelfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/labelfont/_weight.py b/packages/python/plotly/plotly/validators/parcats/labelfont/_weight.py index 5089c36209a..83c36e08298 100644 --- a/packages/python/plotly/plotly/validators/parcats/labelfont/_weight.py +++ b/packages/python/plotly/plotly/validators/parcats/labelfont/_weight.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="weight", parent_name="parcats.labelfont", **kwargs): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='parcats.labelfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/_font.py index c5f2d716d52..abcabdb7959 100644 --- a/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="parcats.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='parcats.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/_text.py index a37d521c335..9e5003d9752 100644 --- a/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="parcats.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='parcats.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_color.py index b9e1d703421..daa2c94cc77 100644 --- a/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="parcats.legendgrouptitle.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='parcats.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_family.py index 9a37ebacee3..421766fa344 100644 --- a/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="parcats.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='parcats.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_lineposition.py index f4ad1406b5b..4f6ccc92236 100644 --- a/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="parcats.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='parcats.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_shadow.py index 79fa9a52865..6a9a62104c2 100644 --- a/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="parcats.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='parcats.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_size.py index c8d34f86046..b58bacd4efa 100644 --- a/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="parcats.legendgrouptitle.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='parcats.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_style.py index ddf78932026..dd73c600f38 100644 --- a/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="parcats.legendgrouptitle.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='parcats.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_textcase.py index 103103a76a7..9bff08b8c43 100644 --- a/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="parcats.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='parcats.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_variant.py index 7f2af783514..6bbd6f0b050 100644 --- a/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="parcats.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='parcats.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_weight.py index c76add8051b..5c50da6f7b1 100644 --- a/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/parcats/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="parcats.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='parcats.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/__init__.py b/packages/python/plotly/plotly/validators/parcats/line/__init__.py index a5677cc3e26..02c21eb6565 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/__init__.py +++ b/packages/python/plotly/plotly/validators/parcats/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._showscale import ShowscaleValidator from ._shape import ShapeValidator @@ -18,24 +17,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._showscale.ShowscaleValidator", - "._shape.ShapeValidator", - "._reversescale.ReversescaleValidator", - "._hovertemplate.HovertemplateValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._showscale.ShowscaleValidator', '._shape.ShapeValidator', '._reversescale.ReversescaleValidator', '._hovertemplate.HovertemplateValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcats/line/_autocolorscale.py b/packages/python/plotly/plotly/validators/parcats/line/_autocolorscale.py index 0f17beae89e..45710bac2e1 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/parcats/line/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="parcats.line", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='parcats.line', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/_cauto.py b/packages/python/plotly/plotly/validators/parcats/line/_cauto.py index 5441c8a8022..abbe135758b 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/_cauto.py +++ b/packages/python/plotly/plotly/validators/parcats/line/_cauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cauto", parent_name="parcats.line", **kwargs): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='parcats.line', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/_cmax.py b/packages/python/plotly/plotly/validators/parcats/line/_cmax.py index 847bd8cdab6..5555691e0c8 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/_cmax.py +++ b/packages/python/plotly/plotly/validators/parcats/line/_cmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmax", parent_name="parcats.line", **kwargs): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='parcats.line', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/_cmid.py b/packages/python/plotly/plotly/validators/parcats/line/_cmid.py index 6236b0ddf4d..5f4178cc03a 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/_cmid.py +++ b/packages/python/plotly/plotly/validators/parcats/line/_cmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmid", parent_name="parcats.line", **kwargs): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='parcats.line', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/_cmin.py b/packages/python/plotly/plotly/validators/parcats/line/_cmin.py index f36ffd00480..98ffe6840b7 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/_cmin.py +++ b/packages/python/plotly/plotly/validators/parcats/line/_cmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmin", parent_name="parcats.line", **kwargs): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='parcats.line', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/_color.py b/packages/python/plotly/plotly/validators/parcats/line/_color.py index c682c57cc65..fb5a56f4cab 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/_color.py +++ b/packages/python/plotly/plotly/validators/parcats/line/_color.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="parcats.line", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - colorscale_path=kwargs.pop("colorscale_path", "parcats.line.colorscale"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='parcats.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + colorscale_path=kwargs.pop('colorscale_path', 'parcats.line.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/_coloraxis.py b/packages/python/plotly/plotly/validators/parcats/line/_coloraxis.py index 5c7c89e6f7d..473aac43832 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/parcats/line/_coloraxis.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="coloraxis", parent_name="parcats.line", **kwargs): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='parcats.line', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/_colorbar.py b/packages/python/plotly/plotly/validators/parcats/line/_colorbar.py index 4a9a1d0d2d3..42cd93a0c13 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/_colorbar.py +++ b/packages/python/plotly/plotly/validators/parcats/line/_colorbar.py @@ -1,280 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="colorbar", parent_name="parcats.line", **kwargs): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.parcats - .line.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.parcats.line.colorbar.tickformatstopdefaults) - , sets the default property values to use for - elements of - parcats.line.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.parcats.line.color - bar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='parcats.line', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/_colorscale.py b/packages/python/plotly/plotly/validators/parcats/line/_colorscale.py index bc14d3dc06e..dbff817f539 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/_colorscale.py +++ b/packages/python/plotly/plotly/validators/parcats/line/_colorscale.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__(self, plotly_name="colorscale", parent_name="parcats.line", **kwargs): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='parcats.line', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/_colorsrc.py b/packages/python/plotly/plotly/validators/parcats/line/_colorsrc.py index 672e2fe250d..35a1fd6a554 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/parcats/line/_colorsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="colorsrc", parent_name="parcats.line", **kwargs): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='parcats.line', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/_hovertemplate.py b/packages/python/plotly/plotly/validators/parcats/line/_hovertemplate.py index faee02b33dc..b156f908f41 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/parcats/line/_hovertemplate.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="hovertemplate", parent_name="parcats.line", **kwargs - ): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='parcats.line', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/_reversescale.py b/packages/python/plotly/plotly/validators/parcats/line/_reversescale.py index 6b90d879eae..323e3309e4c 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/_reversescale.py +++ b/packages/python/plotly/plotly/validators/parcats/line/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="parcats.line", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='parcats.line', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/_shape.py b/packages/python/plotly/plotly/validators/parcats/line/_shape.py index 953a8561050..c77eb4668e5 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/_shape.py +++ b/packages/python/plotly/plotly/validators/parcats/line/_shape.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="shape", parent_name="parcats.line", **kwargs): - super(ShapeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["linear", "hspline"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShapeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='shape', + parent_name='parcats.line', + **kwargs): + super(ShapeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['linear', 'hspline']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/_showscale.py b/packages/python/plotly/plotly/validators/parcats/line/_showscale.py index 9680d114d20..140bf9f0221 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/_showscale.py +++ b/packages/python/plotly/plotly/validators/parcats/line/_showscale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showscale", parent_name="parcats.line", **kwargs): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='parcats.line', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/__init__.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_bgcolor.py index eb750756c98..1cf01760496 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="parcats.line.colorbar", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='parcats.line.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_bordercolor.py index da5694c0624..da6abc52cdb 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="parcats.line.colorbar", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='parcats.line.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_borderwidth.py index f46671833c0..84a5c38bbc0 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_borderwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderwidth", parent_name="parcats.line.colorbar", **kwargs - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='parcats.line.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_dtick.py index b747c42782a..910973469fa 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="parcats.line.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='parcats.line.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_exponentformat.py index 24505521376..27d238daee7 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_exponentformat.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="exponentformat", - parent_name="parcats.line.colorbar", - **kwargs, - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='parcats.line.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_labelalias.py index 76a4df39295..e0cc1b967c4 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="parcats.line.colorbar", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='parcats.line.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_len.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_len.py index 31fae716b2a..0f033cc97c8 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_len.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="len", parent_name="parcats.line.colorbar", **kwargs - ): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='parcats.line.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_lenmode.py index df7d6e66090..d825760ea38 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_lenmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="lenmode", parent_name="parcats.line.colorbar", **kwargs - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='parcats.line.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_minexponent.py index b2c268a9756..bfb91c4de94 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="parcats.line.colorbar", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='parcats.line.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_nticks.py index 62a845c7490..7cba07659dc 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="parcats.line.colorbar", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='parcats.line.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_orientation.py index c3126fb0b09..3bc1e03bbc0 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_orientation.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="orientation", parent_name="parcats.line.colorbar", **kwargs - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='parcats.line.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_outlinecolor.py index 34a452b04f2..8ee340439ea 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_outlinecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="outlinecolor", parent_name="parcats.line.colorbar", **kwargs - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='parcats.line.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_outlinewidth.py index d7d1a86a60a..cc696e59afa 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_outlinewidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="outlinewidth", parent_name="parcats.line.colorbar", **kwargs - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='parcats.line.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_separatethousands.py index cd0c24e6cfd..6a7c407fde8 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="parcats.line.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='parcats.line.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_showexponent.py index 7b73c95bd1f..e1edbf7eb9f 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="parcats.line.colorbar", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='parcats.line.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_showticklabels.py index df6e5b291c3..6ea916fa399 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="parcats.line.colorbar", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='parcats.line.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_showtickprefix.py index 87b00c01368..3d45e74749f 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="parcats.line.colorbar", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='parcats.line.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_showticksuffix.py index e88e143a9fc..1079d59a518 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="parcats.line.colorbar", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='parcats.line.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_thickness.py index aedb5cb8758..b7c0afba9c6 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="parcats.line.colorbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='parcats.line.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_thicknessmode.py index d3ee8249d7b..dae5e7f1dcf 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_thicknessmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="thicknessmode", parent_name="parcats.line.colorbar", **kwargs - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='parcats.line.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tick0.py index 0f5555f1a63..0afae166339 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="parcats.line.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='parcats.line.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickangle.py index 9d7f7a699e2..2947ecc2934 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="parcats.line.colorbar", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='parcats.line.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickcolor.py index 4791447d976..6c564f75541 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="parcats.line.colorbar", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='parcats.line.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickfont.py index 935b7acfdbf..a2f41f7d12f 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="parcats.line.colorbar", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='parcats.line.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickformat.py index c7a02cbfb52..bcdce2b96cc 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="parcats.line.colorbar", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='parcats.line.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickformatstopdefaults.py index fa51128464d..fa13f4e6b86 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="parcats.line.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='parcats.line.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickformatstops.py index 09fa9b683e2..89bc5098d31 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="parcats.line.colorbar", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='parcats.line.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticklabeloverflow.py index 91d99076076..2077f61f32a 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="parcats.line.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='parcats.line.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticklabelposition.py index ac9e417af6c..f91697d7567 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="parcats.line.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='parcats.line.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticklabelstep.py index 18faa76f919..4fd32d522c8 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticklabelstep.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="ticklabelstep", parent_name="parcats.line.colorbar", **kwargs - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='parcats.line.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticklen.py index 6aae35621d3..7a8836e6728 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="parcats.line.colorbar", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='parcats.line.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickmode.py index 21cebcc4cf2..7a700270d8d 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="parcats.line.colorbar", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='parcats.line.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickprefix.py index 33e3f94c4bf..9948356b075 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="parcats.line.colorbar", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='parcats.line.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticks.py index e33116c60ae..4ba757e2a8c 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="parcats.line.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='parcats.line.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticksuffix.py index d80f228fc10..1d8646056da 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="parcats.line.colorbar", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='parcats.line.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticktext.py index 05fe7fa99e8..506a66477b1 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="parcats.line.colorbar", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='parcats.line.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticktextsrc.py index 60711dac2d5..4b41fa3e273 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="parcats.line.colorbar", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='parcats.line.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickvals.py index 87ddd2de607..190680d93f0 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="parcats.line.colorbar", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='parcats.line.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickvalssrc.py index ee8acd9cedc..99fc9cfb554 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="parcats.line.colorbar", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='parcats.line.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickwidth.py index 4ef0dc5f13c..95bc0b2e349 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="parcats.line.colorbar", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='parcats.line.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_title.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_title.py index c90e94e47c2..0ba706b4cd5 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="parcats.line.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='parcats.line.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_x.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_x.py index e49d6edf698..4d0dcbb55ce 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x", parent_name="parcats.line.colorbar", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='parcats.line.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_xanchor.py index e57be71a85d..50e56fd93fc 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="parcats.line.colorbar", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='parcats.line.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_xpad.py index bf7929c1cd3..50a2eb45466 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_xpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="xpad", parent_name="parcats.line.colorbar", **kwargs - ): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='parcats.line.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_xref.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_xref.py index efc88522fbe..7bafb08a0fe 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xref", parent_name="parcats.line.colorbar", **kwargs - ): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='parcats.line.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_y.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_y.py index 82b78b6a773..23ab66c674e 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y", parent_name="parcats.line.colorbar", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='parcats.line.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_yanchor.py index d0444859f11..ba74e1d5b75 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="parcats.line.colorbar", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='parcats.line.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ypad.py index f95b70ae8ca..af8da6e8f17 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_ypad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ypad", parent_name="parcats.line.colorbar", **kwargs - ): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='parcats.line.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_yref.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_yref.py index 1d9bc92b8ae..fcb95bb3dae 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yref", parent_name="parcats.line.colorbar", **kwargs - ): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='parcats.line.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_color.py index df7e0257053..2506f657c30 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="parcats.line.colorbar.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='parcats.line.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_family.py index 4eae2532001..07b1c824b6a 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="parcats.line.colorbar.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='parcats.line.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_lineposition.py index 95c3b3cea07..00167177fc6 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="parcats.line.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='parcats.line.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_shadow.py index 67e1f691c4e..08b242b57e7 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="parcats.line.colorbar.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='parcats.line.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_size.py index 0d4adb86b8e..5ccb14d41cf 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="parcats.line.colorbar.tickfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='parcats.line.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_style.py index 884bcdd3674..392db7a50df 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="parcats.line.colorbar.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='parcats.line.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_textcase.py index 9b54a87efd9..2bc702dc0e1 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="parcats.line.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='parcats.line.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_variant.py index 9ee38eb2bb0..b5afcf7eeed 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="parcats.line.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='parcats.line.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_weight.py index 52ad4719903..9e9b9582bb7 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="parcats.line.colorbar.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='parcats.line.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickformatstop/_dtickrange.py index d0d0db0c591..1c8d4267b29 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="parcats.line.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - items=kwargs.pop( - "items", - [ - {"editType": "colorbars", "valType": "any"}, - {"editType": "colorbars", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='parcats.line.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + items=kwargs.pop('items', [{'editType': 'colorbars', 'valType': 'any'}, {'editType': 'colorbars', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickformatstop/_enabled.py index 57df853fae8..0c3014b01bd 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="parcats.line.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='parcats.line.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickformatstop/_name.py index af8a44de114..dffc2f91115 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="parcats.line.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='parcats.line.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickformatstop/_templateitemname.py index b021492b8fe..d3482e3b768 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="parcats.line.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='parcats.line.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickformatstop/_value.py index 0940425c3eb..ad2cfafaf8c 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="parcats.line.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='parcats.line.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/_font.py index f3c3c9ce63d..b7b69a84973 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="parcats.line.colorbar.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='parcats.line.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/_side.py index 281c74a94f1..5afb67f4e3d 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/_side.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="side", parent_name="parcats.line.colorbar.title", **kwargs - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='parcats.line.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/_text.py index 120207bdc9b..d537618871c 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="parcats.line.colorbar.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='parcats.line.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_color.py index f709a78792f..2217813e5c6 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="parcats.line.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='parcats.line.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_family.py index d466e80bbd1..6305c44625e 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="parcats.line.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='parcats.line.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_lineposition.py index f0c9f6484f2..1816f79fe23 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="parcats.line.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='parcats.line.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_shadow.py index be4b53d56fc..f093d089139 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="parcats.line.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='parcats.line.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_size.py index bbe499555da..39e80d40b6f 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="parcats.line.colorbar.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='parcats.line.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_style.py index 396b30e7ed2..93a3e3c8e03 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="parcats.line.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='parcats.line.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_textcase.py index 3eff3040866..b08d05f6715 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="parcats.line.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='parcats.line.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_variant.py index 64972b7d74f..fbcb08af5de 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="parcats.line.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='parcats.line.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_weight.py index 8f1ceecc240..9f117417a0e 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="parcats.line.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='parcats.line.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/stream/__init__.py b/packages/python/plotly/plotly/validators/parcats/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/parcats/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/parcats/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcats/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/parcats/stream/_maxpoints.py index 1c9b05cf83f..8504aacda56 100644 --- a/packages/python/plotly/plotly/validators/parcats/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/parcats/stream/_maxpoints.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="maxpoints", parent_name="parcats.stream", **kwargs): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='parcats.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/stream/_token.py b/packages/python/plotly/plotly/validators/parcats/stream/_token.py index 1050a23907a..ad99beb6b13 100644 --- a/packages/python/plotly/plotly/validators/parcats/stream/_token.py +++ b/packages/python/plotly/plotly/validators/parcats/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="parcats.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='parcats.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/tickfont/__init__.py b/packages/python/plotly/plotly/validators/parcats/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/parcats/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/parcats/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcats/tickfont/_color.py b/packages/python/plotly/plotly/validators/parcats/tickfont/_color.py index 47f1f0acb62..c7f170f31ff 100644 --- a/packages/python/plotly/plotly/validators/parcats/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/parcats/tickfont/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="parcats.tickfont", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='parcats.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/tickfont/_family.py b/packages/python/plotly/plotly/validators/parcats/tickfont/_family.py index 2f164710e65..3ec681f26fb 100644 --- a/packages/python/plotly/plotly/validators/parcats/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/parcats/tickfont/_family.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="family", parent_name="parcats.tickfont", **kwargs): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='parcats.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/parcats/tickfont/_lineposition.py index 4515876ee95..1ebf585e5b6 100644 --- a/packages/python/plotly/plotly/validators/parcats/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/parcats/tickfont/_lineposition.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="parcats.tickfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='parcats.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/parcats/tickfont/_shadow.py index 486e24acbb6..f8159b3cfa6 100644 --- a/packages/python/plotly/plotly/validators/parcats/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/parcats/tickfont/_shadow.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="shadow", parent_name="parcats.tickfont", **kwargs): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='parcats.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/tickfont/_size.py b/packages/python/plotly/plotly/validators/parcats/tickfont/_size.py index 7203dc5be15..116e7751ba1 100644 --- a/packages/python/plotly/plotly/validators/parcats/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/parcats/tickfont/_size.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="parcats.tickfont", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='parcats.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/tickfont/_style.py b/packages/python/plotly/plotly/validators/parcats/tickfont/_style.py index 35135ffca05..c5c6f7a8fa2 100644 --- a/packages/python/plotly/plotly/validators/parcats/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/parcats/tickfont/_style.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="style", parent_name="parcats.tickfont", **kwargs): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='parcats.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/parcats/tickfont/_textcase.py index be392db3edc..04c5f0579f6 100644 --- a/packages/python/plotly/plotly/validators/parcats/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/parcats/tickfont/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="parcats.tickfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='parcats.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/tickfont/_variant.py b/packages/python/plotly/plotly/validators/parcats/tickfont/_variant.py index e7973e886f4..23c8c386d73 100644 --- a/packages/python/plotly/plotly/validators/parcats/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/parcats/tickfont/_variant.py @@ -1,22 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="variant", parent_name="parcats.tickfont", **kwargs): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='parcats.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcats/tickfont/_weight.py b/packages/python/plotly/plotly/validators/parcats/tickfont/_weight.py index 6550762ca23..148458f49a6 100644 --- a/packages/python/plotly/plotly/validators/parcats/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/parcats/tickfont/_weight.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="weight", parent_name="parcats.tickfont", **kwargs): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='parcats.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/__init__.py b/packages/python/plotly/plotly/validators/parcoords/__init__.py index 9fb0212462b..6de7d607ca1 100644 --- a/packages/python/plotly/plotly/validators/parcoords/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._unselected import UnselectedValidator @@ -29,35 +28,10 @@ from ._customdata import CustomdataValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._unselected.UnselectedValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._tickfont.TickfontValidator", - "._stream.StreamValidator", - "._rangefont.RangefontValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._line.LineValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legend.LegendValidator", - "._labelside.LabelsideValidator", - "._labelfont.LabelfontValidator", - "._labelangle.LabelangleValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._domain.DomainValidator", - "._dimensiondefaults.DimensiondefaultsValidator", - "._dimensions.DimensionsValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - ], + ['._visible.VisibleValidator', '._unselected.UnselectedValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._tickfont.TickfontValidator', '._stream.StreamValidator', '._rangefont.RangefontValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._line.LineValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legend.LegendValidator', '._labelside.LabelsideValidator', '._labelfont.LabelfontValidator', '._labelangle.LabelangleValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._domain.DomainValidator', '._dimensiondefaults.DimensiondefaultsValidator', '._dimensions.DimensionsValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcoords/_customdata.py b/packages/python/plotly/plotly/validators/parcoords/_customdata.py index 1ef160fac35..d2869584be2 100644 --- a/packages/python/plotly/plotly/validators/parcoords/_customdata.py +++ b/packages/python/plotly/plotly/validators/parcoords/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="parcoords", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='parcoords', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/_customdatasrc.py b/packages/python/plotly/plotly/validators/parcoords/_customdatasrc.py index ce0fb04e47e..05c0970b60b 100644 --- a/packages/python/plotly/plotly/validators/parcoords/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/parcoords/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="parcoords", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='parcoords', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/_dimensiondefaults.py b/packages/python/plotly/plotly/validators/parcoords/_dimensiondefaults.py index 2041264bc87..5626ef470cf 100644 --- a/packages/python/plotly/plotly/validators/parcoords/_dimensiondefaults.py +++ b/packages/python/plotly/plotly/validators/parcoords/_dimensiondefaults.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class DimensiondefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="dimensiondefaults", parent_name="parcoords", **kwargs - ): - super(DimensiondefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Dimension"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DimensiondefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='dimensiondefaults', + parent_name='parcoords', + **kwargs): + super(DimensiondefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Dimension'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/_dimensions.py b/packages/python/plotly/plotly/validators/parcoords/_dimensions.py index 1337b114a7e..17b9ae20cdd 100644 --- a/packages/python/plotly/plotly/validators/parcoords/_dimensions.py +++ b/packages/python/plotly/plotly/validators/parcoords/_dimensions.py @@ -1,93 +1,15 @@ -import _plotly_utils.basevalidators -class DimensionsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__(self, plotly_name="dimensions", parent_name="parcoords", **kwargs): - super(DimensionsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Dimension"), - data_docs=kwargs.pop( - "data_docs", - """ - constraintrange - The domain range to which the filter on the - dimension is constrained. Must be an array of - `[fromValue, toValue]` with `fromValue <= - toValue`, or if `multiselect` is not disabled, - you may give an array of arrays, where each - inner array is `[fromValue, toValue]`. - label - The shown name of the dimension. - multiselect - Do we allow multiple selection ranges or just a - single range? - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - range - The domain range that represents the full, - shown axis extent. Defaults to the `values` - extent. Must be an array of `[fromValue, - toValue]` with finite numbers as elements. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - ticktext - Sets the text displayed at the ticks position - via `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - values - Dimension values. `values[n]` represents the - value of the `n`th point in the dataset, - therefore the `values` vector for all - dimensions must be the same (longer vectors - will be truncated). Each value must be a finite - number. - valuessrc - Sets the source reference on Chart Studio Cloud - for `values`. - visible - Shows the dimension when set to `true` (the - default). Hides the dimension for `false`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DimensionsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='dimensions', + parent_name='parcoords', + **kwargs): + super(DimensionsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Dimension'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/_domain.py b/packages/python/plotly/plotly/validators/parcoords/_domain.py index 4c231dbadf5..7b4326c9251 100644 --- a/packages/python/plotly/plotly/validators/parcoords/_domain.py +++ b/packages/python/plotly/plotly/validators/parcoords/_domain.py @@ -1,29 +1,15 @@ -import _plotly_utils.basevalidators -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="domain", parent_name="parcoords", **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 parcoords - trace . - row - If there is a layout grid, use the domain for - this row in the grid for this parcoords trace . - x - Sets the horizontal domain of this parcoords - trace (in plot fraction). - y - Sets the vertical domain of this parcoords - trace (in plot fraction). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DomainValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='domain', + parent_name='parcoords', + **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', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/_ids.py b/packages/python/plotly/plotly/validators/parcoords/_ids.py index 6b39d08e8bb..a2a1f0eaa1c 100644 --- a/packages/python/plotly/plotly/validators/parcoords/_ids.py +++ b/packages/python/plotly/plotly/validators/parcoords/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="parcoords", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='parcoords', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/_idssrc.py b/packages/python/plotly/plotly/validators/parcoords/_idssrc.py index eb227394ecb..25857c3cd8e 100644 --- a/packages/python/plotly/plotly/validators/parcoords/_idssrc.py +++ b/packages/python/plotly/plotly/validators/parcoords/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="parcoords", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='parcoords', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/_labelangle.py b/packages/python/plotly/plotly/validators/parcoords/_labelangle.py index e419cf987b8..db169518fe6 100644 --- a/packages/python/plotly/plotly/validators/parcoords/_labelangle.py +++ b/packages/python/plotly/plotly/validators/parcoords/_labelangle.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LabelangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__(self, plotly_name="labelangle", parent_name="parcoords", **kwargs): - super(LabelangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='labelangle', + parent_name='parcoords', + **kwargs): + super(LabelangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/_labelfont.py b/packages/python/plotly/plotly/validators/parcoords/_labelfont.py index ce357bb001e..7e2ea919279 100644 --- a/packages/python/plotly/plotly/validators/parcoords/_labelfont.py +++ b/packages/python/plotly/plotly/validators/parcoords/_labelfont.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class LabelfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="labelfont", parent_name="parcoords", **kwargs): - super(LabelfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Labelfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class LabelfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='labelfont', + parent_name='parcoords', + **kwargs): + super(LabelfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Labelfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/_labelside.py b/packages/python/plotly/plotly/validators/parcoords/_labelside.py index 31a96b934d5..6dd1d30c9ef 100644 --- a/packages/python/plotly/plotly/validators/parcoords/_labelside.py +++ b/packages/python/plotly/plotly/validators/parcoords/_labelside.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LabelsideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="labelside", parent_name="parcoords", **kwargs): - super(LabelsideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["top", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelsideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='labelside', + parent_name='parcoords', + **kwargs): + super(LabelsideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/_legend.py b/packages/python/plotly/plotly/validators/parcoords/_legend.py index 0ae4cf20c05..9f7a4eb9ed8 100644 --- a/packages/python/plotly/plotly/validators/parcoords/_legend.py +++ b/packages/python/plotly/plotly/validators/parcoords/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="parcoords", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='parcoords', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/parcoords/_legendgrouptitle.py index 58ba2592c54..c2ddcd53c43 100644 --- a/packages/python/plotly/plotly/validators/parcoords/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/parcoords/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="parcoords", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='parcoords', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/_legendrank.py b/packages/python/plotly/plotly/validators/parcoords/_legendrank.py index 4b44f9c641c..4d3f3eb0d29 100644 --- a/packages/python/plotly/plotly/validators/parcoords/_legendrank.py +++ b/packages/python/plotly/plotly/validators/parcoords/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="parcoords", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='parcoords', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/_legendwidth.py b/packages/python/plotly/plotly/validators/parcoords/_legendwidth.py index 0ee8b65a3ef..9cb488dc7a2 100644 --- a/packages/python/plotly/plotly/validators/parcoords/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/parcoords/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="parcoords", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='parcoords', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/_line.py b/packages/python/plotly/plotly/validators/parcoords/_line.py index 80c3b671044..b9d7db87165 100644 --- a/packages/python/plotly/plotly/validators/parcoords/_line.py +++ b/packages/python/plotly/plotly/validators/parcoords/_line.py @@ -1,102 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="parcoords", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `line.colorscale`. Has an effect - only if in `line.color` is set to a numerical - array. In case `colorscale` is unspecified or - `autocolorscale` is true, the default palette - will be chosen according to whether numbers in - the `color` array are all positive, all - negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `line.color`) or the bounds set in - `line.cmin` and `line.cmax` Has an effect only - if in `line.color` is set to a numerical array. - Defaults to `false` when `line.cmin` and - `line.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `line.color` is set to a - numerical array. Value should have the same - units as in `line.color` and if set, - `line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `line.cmin` and/or `line.cmax` to be - equidistant to this point. Has an effect only - if in `line.color` is set to a numerical array. - Value should have the same units as in - `line.color`. Has no effect when `line.cauto` - is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `line.color` is set to a - numerical array. Value should have the same - units as in `line.color` and if set, - `line.cmax` must be set as well. - color - Sets the line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `line.cmin` and `line.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.parcoords.line.Col - orBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `line.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `line.cmin` and `line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `line.color` is set to a - numerical array. If true, `line.cmin` will - correspond to the last color in the array and - `line.cmax` will correspond to the first color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `line.color` is set to a numerical array. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='parcoords', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/_meta.py b/packages/python/plotly/plotly/validators/parcoords/_meta.py index 28b767b7d1a..63d43fcfb5a 100644 --- a/packages/python/plotly/plotly/validators/parcoords/_meta.py +++ b/packages/python/plotly/plotly/validators/parcoords/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="parcoords", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='parcoords', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/_metasrc.py b/packages/python/plotly/plotly/validators/parcoords/_metasrc.py index a7371f41ef3..1a409616bf5 100644 --- a/packages/python/plotly/plotly/validators/parcoords/_metasrc.py +++ b/packages/python/plotly/plotly/validators/parcoords/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="parcoords", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='parcoords', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/_name.py b/packages/python/plotly/plotly/validators/parcoords/_name.py index 014cc511240..d5df9ce86bb 100644 --- a/packages/python/plotly/plotly/validators/parcoords/_name.py +++ b/packages/python/plotly/plotly/validators/parcoords/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="parcoords", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='parcoords', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/_rangefont.py b/packages/python/plotly/plotly/validators/parcoords/_rangefont.py index 0fc09186510..f57cb68b8af 100644 --- a/packages/python/plotly/plotly/validators/parcoords/_rangefont.py +++ b/packages/python/plotly/plotly/validators/parcoords/_rangefont.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class RangefontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="rangefont", parent_name="parcoords", **kwargs): - super(RangefontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Rangefont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class RangefontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='rangefont', + parent_name='parcoords', + **kwargs): + super(RangefontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Rangefont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/_stream.py b/packages/python/plotly/plotly/validators/parcoords/_stream.py index ee96503d691..4a58e6f394a 100644 --- a/packages/python/plotly/plotly/validators/parcoords/_stream.py +++ b/packages/python/plotly/plotly/validators/parcoords/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="parcoords", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='parcoords', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/_tickfont.py b/packages/python/plotly/plotly/validators/parcoords/_tickfont.py index 1704a71b96f..8907dcbe0b2 100644 --- a/packages/python/plotly/plotly/validators/parcoords/_tickfont.py +++ b/packages/python/plotly/plotly/validators/parcoords/_tickfont.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="tickfont", parent_name="parcoords", **kwargs): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='parcoords', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/_uid.py b/packages/python/plotly/plotly/validators/parcoords/_uid.py index bf066b67130..6ac21dda74e 100644 --- a/packages/python/plotly/plotly/validators/parcoords/_uid.py +++ b/packages/python/plotly/plotly/validators/parcoords/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="parcoords", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='parcoords', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/_uirevision.py b/packages/python/plotly/plotly/validators/parcoords/_uirevision.py index 20b12b8bb74..8f66d660a3c 100644 --- a/packages/python/plotly/plotly/validators/parcoords/_uirevision.py +++ b/packages/python/plotly/plotly/validators/parcoords/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="parcoords", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='parcoords', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/_unselected.py b/packages/python/plotly/plotly/validators/parcoords/_unselected.py index 949d237381b..16e7c2e6a21 100644 --- a/packages/python/plotly/plotly/validators/parcoords/_unselected.py +++ b/packages/python/plotly/plotly/validators/parcoords/_unselected.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="unselected", parent_name="parcoords", **kwargs): - super(UnselectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Unselected"), - data_docs=kwargs.pop( - "data_docs", - """ - line - :class:`plotly.graph_objects.parcoords.unselect - ed.Line` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UnselectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='unselected', + parent_name='parcoords', + **kwargs): + super(UnselectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/_visible.py b/packages/python/plotly/plotly/validators/parcoords/_visible.py index fd03a8f7096..c74ea1edcee 100644 --- a/packages/python/plotly/plotly/validators/parcoords/_visible.py +++ b/packages/python/plotly/plotly/validators/parcoords/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="parcoords", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='parcoords', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/dimension/__init__.py b/packages/python/plotly/plotly/validators/parcoords/dimension/__init__.py index 69bde72cd61..6333a27e8c7 100644 --- a/packages/python/plotly/plotly/validators/parcoords/dimension/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/dimension/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._valuessrc import ValuessrcValidator @@ -18,24 +17,10 @@ from ._constraintrange import ConstraintrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._valuessrc.ValuessrcValidator", - "._values.ValuesValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._tickformat.TickformatValidator", - "._templateitemname.TemplateitemnameValidator", - "._range.RangeValidator", - "._name.NameValidator", - "._multiselect.MultiselectValidator", - "._label.LabelValidator", - "._constraintrange.ConstraintrangeValidator", - ], + ['._visible.VisibleValidator', '._valuessrc.ValuessrcValidator', '._values.ValuesValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._tickformat.TickformatValidator', '._templateitemname.TemplateitemnameValidator', '._range.RangeValidator', '._name.NameValidator', '._multiselect.MultiselectValidator', '._label.LabelValidator', '._constraintrange.ConstraintrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcoords/dimension/_constraintrange.py b/packages/python/plotly/plotly/validators/parcoords/dimension/_constraintrange.py index f1055a75c2a..119f9a1a41b 100644 --- a/packages/python/plotly/plotly/validators/parcoords/dimension/_constraintrange.py +++ b/packages/python/plotly/plotly/validators/parcoords/dimension/_constraintrange.py @@ -1,22 +1,16 @@ -import _plotly_utils.basevalidators -class ConstraintrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, plotly_name="constraintrange", parent_name="parcoords.dimension", **kwargs - ): - super(ConstraintrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dimensions=kwargs.pop("dimensions", "1-2"), - edit_type=kwargs.pop("edit_type", "plot"), - free_length=kwargs.pop("free_length", True), - items=kwargs.pop( - "items", - [ - {"editType": "plot", "valType": "any"}, - {"editType": "plot", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ConstraintrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='constraintrange', + parent_name='parcoords.dimension', + **kwargs): + super(ConstraintrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dimensions=kwargs.pop('dimensions', '1-2'), + edit_type=kwargs.pop('edit_type', 'plot'), + free_length=kwargs.pop('free_length', True), + items=kwargs.pop('items', [{'editType': 'plot', 'valType': 'any'}, {'editType': 'plot', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/dimension/_label.py b/packages/python/plotly/plotly/validators/parcoords/dimension/_label.py index 58bbd6bd5f2..12fce0277a6 100644 --- a/packages/python/plotly/plotly/validators/parcoords/dimension/_label.py +++ b/packages/python/plotly/plotly/validators/parcoords/dimension/_label.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="label", parent_name="parcoords.dimension", **kwargs - ): - super(LabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelValidator(_bv.StringValidator): + def __init__(self, plotly_name='label', + parent_name='parcoords.dimension', + **kwargs): + super(LabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/dimension/_multiselect.py b/packages/python/plotly/plotly/validators/parcoords/dimension/_multiselect.py index a0b43f108c0..2a695ee8317 100644 --- a/packages/python/plotly/plotly/validators/parcoords/dimension/_multiselect.py +++ b/packages/python/plotly/plotly/validators/parcoords/dimension/_multiselect.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class MultiselectValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="multiselect", parent_name="parcoords.dimension", **kwargs - ): - super(MultiselectValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MultiselectValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='multiselect', + parent_name='parcoords.dimension', + **kwargs): + super(MultiselectValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/dimension/_name.py b/packages/python/plotly/plotly/validators/parcoords/dimension/_name.py index b071e2f22aa..e935d5abe40 100644 --- a/packages/python/plotly/plotly/validators/parcoords/dimension/_name.py +++ b/packages/python/plotly/plotly/validators/parcoords/dimension/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="parcoords.dimension", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='parcoords.dimension', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/dimension/_range.py b/packages/python/plotly/plotly/validators/parcoords/dimension/_range.py index fe9a4b7a7ca..2f743ec0695 100644 --- a/packages/python/plotly/plotly/validators/parcoords/dimension/_range.py +++ b/packages/python/plotly/plotly/validators/parcoords/dimension/_range.py @@ -1,20 +1,14 @@ -import _plotly_utils.basevalidators -class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, plotly_name="range", parent_name="parcoords.dimension", **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, - ) +import _plotly_utils.basevalidators as _bv + + +class RangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='range', + parent_name='parcoords.dimension', + **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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/dimension/_templateitemname.py b/packages/python/plotly/plotly/validators/parcoords/dimension/_templateitemname.py index 7a8ac7d7534..da2cae947cf 100644 --- a/packages/python/plotly/plotly/validators/parcoords/dimension/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/parcoords/dimension/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="parcoords.dimension", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='parcoords.dimension', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/dimension/_tickformat.py b/packages/python/plotly/plotly/validators/parcoords/dimension/_tickformat.py index 1000206453d..d065a62bf29 100644 --- a/packages/python/plotly/plotly/validators/parcoords/dimension/_tickformat.py +++ b/packages/python/plotly/plotly/validators/parcoords/dimension/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="parcoords.dimension", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='parcoords.dimension', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/dimension/_ticktext.py b/packages/python/plotly/plotly/validators/parcoords/dimension/_ticktext.py index ceaa6118891..a78948dada7 100644 --- a/packages/python/plotly/plotly/validators/parcoords/dimension/_ticktext.py +++ b/packages/python/plotly/plotly/validators/parcoords/dimension/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="parcoords.dimension", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='parcoords.dimension', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/dimension/_ticktextsrc.py b/packages/python/plotly/plotly/validators/parcoords/dimension/_ticktextsrc.py index 7d1958bf663..ae5f0839c1c 100644 --- a/packages/python/plotly/plotly/validators/parcoords/dimension/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/parcoords/dimension/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="parcoords.dimension", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='parcoords.dimension', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/dimension/_tickvals.py b/packages/python/plotly/plotly/validators/parcoords/dimension/_tickvals.py index b1d5672a9f9..d9f7ad5aba1 100644 --- a/packages/python/plotly/plotly/validators/parcoords/dimension/_tickvals.py +++ b/packages/python/plotly/plotly/validators/parcoords/dimension/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="parcoords.dimension", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='parcoords.dimension', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/dimension/_tickvalssrc.py b/packages/python/plotly/plotly/validators/parcoords/dimension/_tickvalssrc.py index 9460b5268a7..c731eeca565 100644 --- a/packages/python/plotly/plotly/validators/parcoords/dimension/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/parcoords/dimension/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="parcoords.dimension", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='parcoords.dimension', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/dimension/_values.py b/packages/python/plotly/plotly/validators/parcoords/dimension/_values.py index a1543a15af7..668d0b5dccc 100644 --- a/packages/python/plotly/plotly/validators/parcoords/dimension/_values.py +++ b/packages/python/plotly/plotly/validators/parcoords/dimension/_values.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ValuesValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="values", parent_name="parcoords.dimension", **kwargs - ): - super(ValuesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValuesValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='values', + parent_name='parcoords.dimension', + **kwargs): + super(ValuesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/dimension/_valuessrc.py b/packages/python/plotly/plotly/validators/parcoords/dimension/_valuessrc.py index d81641aa6ad..99280b2c854 100644 --- a/packages/python/plotly/plotly/validators/parcoords/dimension/_valuessrc.py +++ b/packages/python/plotly/plotly/validators/parcoords/dimension/_valuessrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ValuessrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="valuessrc", parent_name="parcoords.dimension", **kwargs - ): - super(ValuessrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValuessrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='valuessrc', + parent_name='parcoords.dimension', + **kwargs): + super(ValuessrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/dimension/_visible.py b/packages/python/plotly/plotly/validators/parcoords/dimension/_visible.py index 3d214cf1d14..55f6e1bb612 100644 --- a/packages/python/plotly/plotly/validators/parcoords/dimension/_visible.py +++ b/packages/python/plotly/plotly/validators/parcoords/dimension/_visible.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="visible", parent_name="parcoords.dimension", **kwargs - ): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='parcoords.dimension', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/domain/__init__.py b/packages/python/plotly/plotly/validators/parcoords/domain/__init__.py index 67de5030d0a..705a2194402 100644 --- a/packages/python/plotly/plotly/validators/parcoords/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/domain/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._y import YValidator from ._x import XValidator @@ -8,14 +7,10 @@ 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", - ], + ['._y.YValidator', '._x.XValidator', '._row.RowValidator', '._column.ColumnValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcoords/domain/_column.py b/packages/python/plotly/plotly/validators/parcoords/domain/_column.py index 02bbeacd34e..603f81851e0 100644 --- a/packages/python/plotly/plotly/validators/parcoords/domain/_column.py +++ b/packages/python/plotly/plotly/validators/parcoords/domain/_column.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="column", parent_name="parcoords.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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColumnValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='column', + parent_name='parcoords.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/domain/_row.py b/packages/python/plotly/plotly/validators/parcoords/domain/_row.py index 449e22cefbf..cf43cc74857 100644 --- a/packages/python/plotly/plotly/validators/parcoords/domain/_row.py +++ b/packages/python/plotly/plotly/validators/parcoords/domain/_row.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="row", parent_name="parcoords.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, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RowValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='row', + parent_name='parcoords.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/domain/_x.py b/packages/python/plotly/plotly/validators/parcoords/domain/_x.py index 515d581d605..18a1d80ed33 100644 --- a/packages/python/plotly/plotly/validators/parcoords/domain/_x.py +++ b/packages/python/plotly/plotly/validators/parcoords/domain/_x.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="x", parent_name="parcoords.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, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='x', + parent_name='parcoords.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/domain/_y.py b/packages/python/plotly/plotly/validators/parcoords/domain/_y.py index 3daf0b4b89a..3d5ff2f7c50 100644 --- a/packages/python/plotly/plotly/validators/parcoords/domain/_y.py +++ b/packages/python/plotly/plotly/validators/parcoords/domain/_y.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="y", parent_name="parcoords.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, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='y', + parent_name='parcoords.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) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/labelfont/__init__.py b/packages/python/plotly/plotly/validators/parcoords/labelfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/parcoords/labelfont/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/labelfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcoords/labelfont/_color.py b/packages/python/plotly/plotly/validators/parcoords/labelfont/_color.py index cdee8012304..c7d1853467f 100644 --- a/packages/python/plotly/plotly/validators/parcoords/labelfont/_color.py +++ b/packages/python/plotly/plotly/validators/parcoords/labelfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="parcoords.labelfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='parcoords.labelfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/labelfont/_family.py b/packages/python/plotly/plotly/validators/parcoords/labelfont/_family.py index 6452497079f..92941ea56fd 100644 --- a/packages/python/plotly/plotly/validators/parcoords/labelfont/_family.py +++ b/packages/python/plotly/plotly/validators/parcoords/labelfont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="parcoords.labelfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='parcoords.labelfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/labelfont/_lineposition.py b/packages/python/plotly/plotly/validators/parcoords/labelfont/_lineposition.py index e8bf3b59bda..94bfba327d3 100644 --- a/packages/python/plotly/plotly/validators/parcoords/labelfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/parcoords/labelfont/_lineposition.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="parcoords.labelfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='parcoords.labelfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/labelfont/_shadow.py b/packages/python/plotly/plotly/validators/parcoords/labelfont/_shadow.py index 075507bf057..1c2f3165b02 100644 --- a/packages/python/plotly/plotly/validators/parcoords/labelfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/parcoords/labelfont/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="parcoords.labelfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='parcoords.labelfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/labelfont/_size.py b/packages/python/plotly/plotly/validators/parcoords/labelfont/_size.py index 49b61ab91eb..bada1455cc7 100644 --- a/packages/python/plotly/plotly/validators/parcoords/labelfont/_size.py +++ b/packages/python/plotly/plotly/validators/parcoords/labelfont/_size.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="parcoords.labelfont", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='parcoords.labelfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/labelfont/_style.py b/packages/python/plotly/plotly/validators/parcoords/labelfont/_style.py index 1daf7ebee5b..d5fdd388ba9 100644 --- a/packages/python/plotly/plotly/validators/parcoords/labelfont/_style.py +++ b/packages/python/plotly/plotly/validators/parcoords/labelfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="parcoords.labelfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='parcoords.labelfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/labelfont/_textcase.py b/packages/python/plotly/plotly/validators/parcoords/labelfont/_textcase.py index 759d7b89ec3..5681c3b1482 100644 --- a/packages/python/plotly/plotly/validators/parcoords/labelfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/parcoords/labelfont/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="parcoords.labelfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='parcoords.labelfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/labelfont/_variant.py b/packages/python/plotly/plotly/validators/parcoords/labelfont/_variant.py index 6090fddaefb..faa8beb71dd 100644 --- a/packages/python/plotly/plotly/validators/parcoords/labelfont/_variant.py +++ b/packages/python/plotly/plotly/validators/parcoords/labelfont/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="parcoords.labelfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='parcoords.labelfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/labelfont/_weight.py b/packages/python/plotly/plotly/validators/parcoords/labelfont/_weight.py index 3593a5744f0..33e89db6c9a 100644 --- a/packages/python/plotly/plotly/validators/parcoords/labelfont/_weight.py +++ b/packages/python/plotly/plotly/validators/parcoords/labelfont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="parcoords.labelfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='parcoords.labelfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/_font.py index 0eee46907eb..c67116b14a6 100644 --- a/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="parcoords.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='parcoords.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/_text.py index b59e1b82012..0f7879a3a2f 100644 --- a/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="parcoords.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='parcoords.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_color.py index 882105ec044..f198347d095 100644 --- a/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="parcoords.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='parcoords.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_family.py index c8ec06e8293..874db790bb9 100644 --- a/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="parcoords.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='parcoords.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_lineposition.py index 0a166b98a3c..80b56f9a5ff 100644 --- a/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="parcoords.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='parcoords.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_shadow.py index 6acb9988d10..eef4a3bdda9 100644 --- a/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="parcoords.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='parcoords.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_size.py index 25ebae0a3cc..3125d707dce 100644 --- a/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="parcoords.legendgrouptitle.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='parcoords.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_style.py index 309510bf71d..d69a5a22914 100644 --- a/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="parcoords.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='parcoords.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_textcase.py index 40e54fe2377..4c0754172e3 100644 --- a/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="parcoords.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='parcoords.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_variant.py index 595471dba3e..8ec59b84e0d 100644 --- a/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="parcoords.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='parcoords.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_weight.py index ea20c877315..1e7aff7ea0f 100644 --- a/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/parcoords/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="parcoords.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='parcoords.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/__init__.py b/packages/python/plotly/plotly/validators/parcoords/line/__init__.py index acf6c173d89..d45d34a0378 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._showscale import ShowscaleValidator from ._reversescale import ReversescaleValidator @@ -16,22 +15,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._showscale.ShowscaleValidator", - "._reversescale.ReversescaleValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._showscale.ShowscaleValidator', '._reversescale.ReversescaleValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcoords/line/_autocolorscale.py b/packages/python/plotly/plotly/validators/parcoords/line/_autocolorscale.py index 8cb53c80842..67e1bb3e582 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="parcoords.line", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='parcoords.line', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/_cauto.py b/packages/python/plotly/plotly/validators/parcoords/line/_cauto.py index 1f83f16a771..fcae48f2c88 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/_cauto.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/_cauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cauto", parent_name="parcoords.line", **kwargs): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='parcoords.line', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/_cmax.py b/packages/python/plotly/plotly/validators/parcoords/line/_cmax.py index 0dcb28f846e..882d904b650 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/_cmax.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/_cmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmax", parent_name="parcoords.line", **kwargs): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='parcoords.line', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/_cmid.py b/packages/python/plotly/plotly/validators/parcoords/line/_cmid.py index fa8869a9bae..8e0b07f6dbe 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/_cmid.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/_cmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmid", parent_name="parcoords.line", **kwargs): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='parcoords.line', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/_cmin.py b/packages/python/plotly/plotly/validators/parcoords/line/_cmin.py index 479e6d2b660..9a2497610f7 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/_cmin.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/_cmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmin", parent_name="parcoords.line", **kwargs): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='parcoords.line', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/_color.py b/packages/python/plotly/plotly/validators/parcoords/line/_color.py index 2e415f461cd..b851f8829f2 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/_color.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/_color.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="parcoords.line", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - colorscale_path=kwargs.pop("colorscale_path", "parcoords.line.colorscale"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='parcoords.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + colorscale_path=kwargs.pop('colorscale_path', 'parcoords.line.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/_coloraxis.py b/packages/python/plotly/plotly/validators/parcoords/line/_coloraxis.py index 078e6bd02e8..6280fcb5adf 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/_coloraxis.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="coloraxis", parent_name="parcoords.line", **kwargs): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='parcoords.line', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/_colorbar.py b/packages/python/plotly/plotly/validators/parcoords/line/_colorbar.py index fa178b76b5d..4aeb999fd54 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/_colorbar.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/_colorbar.py @@ -1,280 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="colorbar", parent_name="parcoords.line", **kwargs): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.parcoor - ds.line.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.parcoords.line.colorbar.tickformatstopdefault - s), sets the default property values to use for - elements of - parcoords.line.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.parcoords.line.col - orbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='parcoords.line', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/_colorscale.py b/packages/python/plotly/plotly/validators/parcoords/line/_colorscale.py index 794b2bfe8fa..baf43a5a534 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/_colorscale.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="parcoords.line", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='parcoords.line', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/_colorsrc.py b/packages/python/plotly/plotly/validators/parcoords/line/_colorsrc.py index beeef7d6211..1aee4d25283 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/_colorsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="colorsrc", parent_name="parcoords.line", **kwargs): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='parcoords.line', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/_reversescale.py b/packages/python/plotly/plotly/validators/parcoords/line/_reversescale.py index 994ec4692bb..d8380b30310 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/_reversescale.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="parcoords.line", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='parcoords.line', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/_showscale.py b/packages/python/plotly/plotly/validators/parcoords/line/_showscale.py index 9dad256bafb..c6cdad65a52 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/_showscale.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/_showscale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showscale", parent_name="parcoords.line", **kwargs): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='parcoords.line', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/__init__.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_bgcolor.py index e3b6c54eead..71197c44019 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="parcoords.line.colorbar", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='parcoords.line.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_bordercolor.py index e61a76630b4..3777029ac6e 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="parcoords.line.colorbar", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='parcoords.line.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_borderwidth.py index 9f5ab545110..09c30adb431 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_borderwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderwidth", parent_name="parcoords.line.colorbar", **kwargs - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='parcoords.line.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_dtick.py index 1676df84433..c100f16d36f 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="parcoords.line.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='parcoords.line.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_exponentformat.py index 55b0670b594..9aa598cb361 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_exponentformat.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="exponentformat", - parent_name="parcoords.line.colorbar", - **kwargs, - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='parcoords.line.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_labelalias.py index 88383e38e97..161d6b06f95 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="parcoords.line.colorbar", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='parcoords.line.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_len.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_len.py index a2cf4185add..e578706522a 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_len.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="len", parent_name="parcoords.line.colorbar", **kwargs - ): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='parcoords.line.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_lenmode.py index 3bee0ef6aff..7a459c4bdd2 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_lenmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="lenmode", parent_name="parcoords.line.colorbar", **kwargs - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='parcoords.line.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_minexponent.py index 09af0d007ae..3e8d6d27649 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="parcoords.line.colorbar", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='parcoords.line.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_nticks.py index bf293c27b20..5fe248c481d 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="parcoords.line.colorbar", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='parcoords.line.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_orientation.py index dfada886994..a16ba46295c 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_orientation.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="orientation", parent_name="parcoords.line.colorbar", **kwargs - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='parcoords.line.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_outlinecolor.py index ef80296511f..81fc3ca72ed 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_outlinecolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="outlinecolor", - parent_name="parcoords.line.colorbar", - **kwargs, - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='parcoords.line.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_outlinewidth.py index 49fce61d269..e864668ee6e 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_outlinewidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="outlinewidth", - parent_name="parcoords.line.colorbar", - **kwargs, - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='parcoords.line.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_separatethousands.py index b8461009ae1..f4b2a832048 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="parcoords.line.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='parcoords.line.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_showexponent.py index 923ce477b6d..4b0a078da68 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_showexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showexponent", - parent_name="parcoords.line.colorbar", - **kwargs, - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='parcoords.line.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_showticklabels.py index 2a0f1dc4772..3bdf4861c81 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="parcoords.line.colorbar", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='parcoords.line.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_showtickprefix.py index 4905209a397..22fd2692f59 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="parcoords.line.colorbar", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='parcoords.line.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_showticksuffix.py index 521ff7870a4..60da3a02473 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="parcoords.line.colorbar", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='parcoords.line.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_thickness.py index 42aa471ea6b..662eed62f50 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="parcoords.line.colorbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='parcoords.line.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_thicknessmode.py index 5a0c6b7fed8..7969019c56d 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_thicknessmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="thicknessmode", - parent_name="parcoords.line.colorbar", - **kwargs, - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='parcoords.line.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tick0.py index 0471333c673..8f985c5643f 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="parcoords.line.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='parcoords.line.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickangle.py index 0ee19a40d30..df9ddc819d0 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="parcoords.line.colorbar", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='parcoords.line.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickcolor.py index 0510bec6040..3f5fdbec5da 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="parcoords.line.colorbar", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='parcoords.line.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickfont.py index 101e2573451..9a6e0ba9877 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="parcoords.line.colorbar", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='parcoords.line.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickformat.py index f0a944a5725..348fa2eda9a 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="parcoords.line.colorbar", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='parcoords.line.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickformatstopdefaults.py index 181a3b1f888..54ad2909a69 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="parcoords.line.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='parcoords.line.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickformatstops.py index bf3c939f0a8..210bdfbe0c5 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="parcoords.line.colorbar", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='parcoords.line.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticklabeloverflow.py index 477858bd968..00c0367e03f 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="parcoords.line.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='parcoords.line.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticklabelposition.py index 05d93b7f8cf..b9bd9415f88 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="parcoords.line.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='parcoords.line.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticklabelstep.py index 1b92e9ce9c6..cc9f2970ccb 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticklabelstep.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="ticklabelstep", - parent_name="parcoords.line.colorbar", - **kwargs, - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='parcoords.line.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticklen.py index d202cf8c6d4..53a00f17e02 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="parcoords.line.colorbar", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='parcoords.line.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickmode.py index 84a9507828d..7303f2d42e6 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="parcoords.line.colorbar", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='parcoords.line.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickprefix.py index 52423d41d31..c70abdab0b6 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="parcoords.line.colorbar", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='parcoords.line.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticks.py index b1ec58d1cb7..efb2bd5cc80 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="parcoords.line.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='parcoords.line.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticksuffix.py index e95e7e18e9e..842ae971915 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="parcoords.line.colorbar", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='parcoords.line.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticktext.py index 5ba0cd8e252..635a7464ef4 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="parcoords.line.colorbar", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='parcoords.line.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticktextsrc.py index bae22a9e69d..5010ff46626 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="parcoords.line.colorbar", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='parcoords.line.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickvals.py index 6fcf5f1ea0f..031e26f6253 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="parcoords.line.colorbar", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='parcoords.line.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickvalssrc.py index 44e37a13c94..8b6c9a6d5db 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="parcoords.line.colorbar", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='parcoords.line.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickwidth.py index 27599896fb0..1330608c894 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="parcoords.line.colorbar", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='parcoords.line.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_title.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_title.py index 12eca3ff07b..1eacef90ce0 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="parcoords.line.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='parcoords.line.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_x.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_x.py index 1b6a9e3b55a..9e00e3bf252 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_x.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="x", parent_name="parcoords.line.colorbar", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='parcoords.line.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_xanchor.py index 8658ec58b42..65a7f346a59 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="parcoords.line.colorbar", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='parcoords.line.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_xpad.py index 823422ba865..d320adfd2c3 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_xpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="xpad", parent_name="parcoords.line.colorbar", **kwargs - ): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='parcoords.line.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_xref.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_xref.py index 900ae3a9d17..972bbf91044 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xref", parent_name="parcoords.line.colorbar", **kwargs - ): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='parcoords.line.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_y.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_y.py index c08ef88a134..4e69bb28e14 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_y.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="y", parent_name="parcoords.line.colorbar", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='parcoords.line.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_yanchor.py index 9d680370a64..ab5fc940c3e 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="parcoords.line.colorbar", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='parcoords.line.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ypad.py index 9f204b97685..6a6492c5b08 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_ypad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ypad", parent_name="parcoords.line.colorbar", **kwargs - ): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='parcoords.line.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_yref.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_yref.py index 556d1ab0282..92553591c9f 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yref", parent_name="parcoords.line.colorbar", **kwargs - ): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='parcoords.line.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_color.py index ad52474434a..160d1eb3147 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="parcoords.line.colorbar.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='parcoords.line.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_family.py index 769fecb50ec..0246c93477d 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="parcoords.line.colorbar.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='parcoords.line.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_lineposition.py index 69a94e736db..09ca461a051 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="parcoords.line.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='parcoords.line.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_shadow.py index ecdc95d0f27..08bc7dfc6d5 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="parcoords.line.colorbar.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='parcoords.line.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_size.py index bcf2971fefe..dd04597a9b6 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="parcoords.line.colorbar.tickfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='parcoords.line.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_style.py index a163c19ae8d..d847c29eb93 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="parcoords.line.colorbar.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='parcoords.line.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_textcase.py index b91079eeb1a..15e2a793284 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="parcoords.line.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='parcoords.line.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_variant.py index 458ec8dd28b..bd8038ad507 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="parcoords.line.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='parcoords.line.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_weight.py index 18afa72e5e7..a81131ba4bd 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="parcoords.line.colorbar.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='parcoords.line.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickformatstop/_dtickrange.py index 73e75dc915c..b15766ba4a3 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="parcoords.line.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - items=kwargs.pop( - "items", - [ - {"editType": "colorbars", "valType": "any"}, - {"editType": "colorbars", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='parcoords.line.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + items=kwargs.pop('items', [{'editType': 'colorbars', 'valType': 'any'}, {'editType': 'colorbars', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickformatstop/_enabled.py index abd001c608c..12afb5c1e7b 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="parcoords.line.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='parcoords.line.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickformatstop/_name.py index 3b62af4e0b7..e14ad19d142 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="parcoords.line.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='parcoords.line.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickformatstop/_templateitemname.py index 04007c62d99..7945ae8b3c0 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="parcoords.line.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='parcoords.line.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickformatstop/_value.py index b1d46459364..439c5564665 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="parcoords.line.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='parcoords.line.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/_font.py index 4ca22c3ad09..9c3bdaf1d58 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="parcoords.line.colorbar.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='parcoords.line.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/_side.py index 0e8156b146b..e6ece859c38 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/_side.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="side", parent_name="parcoords.line.colorbar.title", **kwargs - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='parcoords.line.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/_text.py index 7657b8d0deb..5a26b2dfd29 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="parcoords.line.colorbar.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='parcoords.line.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_color.py index 40a37889883..3dbe3be67ed 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="parcoords.line.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='parcoords.line.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_family.py index 19c23f12ab4..0e26779cc83 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="parcoords.line.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='parcoords.line.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_lineposition.py index 9c6fa3a8951..38c31ec923d 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="parcoords.line.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='parcoords.line.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_shadow.py index aa236880038..5cc4de9d2a7 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="parcoords.line.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='parcoords.line.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_size.py index d67224836cf..e9235596d13 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="parcoords.line.colorbar.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='parcoords.line.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_style.py index 782529b7a30..38b74b6f5ee 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="parcoords.line.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='parcoords.line.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_textcase.py index cc29356d87f..d50031166b1 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="parcoords.line.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='parcoords.line.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_variant.py index abbc47ceb6e..cd0fb03128c 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="parcoords.line.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='parcoords.line.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_weight.py index a678c66683e..57e2e9500cb 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="parcoords.line.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='parcoords.line.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/rangefont/__init__.py b/packages/python/plotly/plotly/validators/parcoords/rangefont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/parcoords/rangefont/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/rangefont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcoords/rangefont/_color.py b/packages/python/plotly/plotly/validators/parcoords/rangefont/_color.py index 3ead31b559d..b528dc8f181 100644 --- a/packages/python/plotly/plotly/validators/parcoords/rangefont/_color.py +++ b/packages/python/plotly/plotly/validators/parcoords/rangefont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="parcoords.rangefont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='parcoords.rangefont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/rangefont/_family.py b/packages/python/plotly/plotly/validators/parcoords/rangefont/_family.py index 083709e7066..7b802fd4c66 100644 --- a/packages/python/plotly/plotly/validators/parcoords/rangefont/_family.py +++ b/packages/python/plotly/plotly/validators/parcoords/rangefont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="parcoords.rangefont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='parcoords.rangefont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/rangefont/_lineposition.py b/packages/python/plotly/plotly/validators/parcoords/rangefont/_lineposition.py index 6db2d17f98d..69a636ac8d8 100644 --- a/packages/python/plotly/plotly/validators/parcoords/rangefont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/parcoords/rangefont/_lineposition.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="parcoords.rangefont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='parcoords.rangefont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/rangefont/_shadow.py b/packages/python/plotly/plotly/validators/parcoords/rangefont/_shadow.py index 7c6ebfcb989..8d98001d437 100644 --- a/packages/python/plotly/plotly/validators/parcoords/rangefont/_shadow.py +++ b/packages/python/plotly/plotly/validators/parcoords/rangefont/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="parcoords.rangefont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='parcoords.rangefont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/rangefont/_size.py b/packages/python/plotly/plotly/validators/parcoords/rangefont/_size.py index 12952c829c8..61d3c1955b3 100644 --- a/packages/python/plotly/plotly/validators/parcoords/rangefont/_size.py +++ b/packages/python/plotly/plotly/validators/parcoords/rangefont/_size.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="parcoords.rangefont", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='parcoords.rangefont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/rangefont/_style.py b/packages/python/plotly/plotly/validators/parcoords/rangefont/_style.py index 75566065b5c..c8ccf452ad4 100644 --- a/packages/python/plotly/plotly/validators/parcoords/rangefont/_style.py +++ b/packages/python/plotly/plotly/validators/parcoords/rangefont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="parcoords.rangefont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='parcoords.rangefont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/rangefont/_textcase.py b/packages/python/plotly/plotly/validators/parcoords/rangefont/_textcase.py index f1105bc3f4b..9b22e4050ea 100644 --- a/packages/python/plotly/plotly/validators/parcoords/rangefont/_textcase.py +++ b/packages/python/plotly/plotly/validators/parcoords/rangefont/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="parcoords.rangefont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='parcoords.rangefont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/rangefont/_variant.py b/packages/python/plotly/plotly/validators/parcoords/rangefont/_variant.py index a48fc037f3a..2babc33ba99 100644 --- a/packages/python/plotly/plotly/validators/parcoords/rangefont/_variant.py +++ b/packages/python/plotly/plotly/validators/parcoords/rangefont/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="parcoords.rangefont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='parcoords.rangefont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/rangefont/_weight.py b/packages/python/plotly/plotly/validators/parcoords/rangefont/_weight.py index fcbc6de39f6..c2a7f155dbe 100644 --- a/packages/python/plotly/plotly/validators/parcoords/rangefont/_weight.py +++ b/packages/python/plotly/plotly/validators/parcoords/rangefont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="parcoords.rangefont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='parcoords.rangefont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/stream/__init__.py b/packages/python/plotly/plotly/validators/parcoords/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/parcoords/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcoords/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/parcoords/stream/_maxpoints.py index 84107754f19..11e3e720463 100644 --- a/packages/python/plotly/plotly/validators/parcoords/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/parcoords/stream/_maxpoints.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxpoints", parent_name="parcoords.stream", **kwargs - ): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='parcoords.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/stream/_token.py b/packages/python/plotly/plotly/validators/parcoords/stream/_token.py index c431f1a9404..0373dd5cb80 100644 --- a/packages/python/plotly/plotly/validators/parcoords/stream/_token.py +++ b/packages/python/plotly/plotly/validators/parcoords/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="parcoords.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='parcoords.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/tickfont/__init__.py b/packages/python/plotly/plotly/validators/parcoords/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/parcoords/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcoords/tickfont/_color.py b/packages/python/plotly/plotly/validators/parcoords/tickfont/_color.py index 827066d526c..b76ed3e1746 100644 --- a/packages/python/plotly/plotly/validators/parcoords/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/parcoords/tickfont/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="parcoords.tickfont", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='parcoords.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/tickfont/_family.py b/packages/python/plotly/plotly/validators/parcoords/tickfont/_family.py index dcf8986739a..f80b4ea74dd 100644 --- a/packages/python/plotly/plotly/validators/parcoords/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/parcoords/tickfont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="parcoords.tickfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='parcoords.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/parcoords/tickfont/_lineposition.py index 4025a150d5a..3ef1f6b114f 100644 --- a/packages/python/plotly/plotly/validators/parcoords/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/parcoords/tickfont/_lineposition.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="parcoords.tickfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='parcoords.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/parcoords/tickfont/_shadow.py index 85ee51fe875..7593a6bde39 100644 --- a/packages/python/plotly/plotly/validators/parcoords/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/parcoords/tickfont/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="parcoords.tickfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='parcoords.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/tickfont/_size.py b/packages/python/plotly/plotly/validators/parcoords/tickfont/_size.py index 8ef1dcd12ca..dacb74ba39e 100644 --- a/packages/python/plotly/plotly/validators/parcoords/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/parcoords/tickfont/_size.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="parcoords.tickfont", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='parcoords.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/tickfont/_style.py b/packages/python/plotly/plotly/validators/parcoords/tickfont/_style.py index 93a02485a48..f1f7f2a1a84 100644 --- a/packages/python/plotly/plotly/validators/parcoords/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/parcoords/tickfont/_style.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="style", parent_name="parcoords.tickfont", **kwargs): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='parcoords.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/parcoords/tickfont/_textcase.py index 273a0040cba..c59b3d8fb31 100644 --- a/packages/python/plotly/plotly/validators/parcoords/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/parcoords/tickfont/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="parcoords.tickfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='parcoords.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/tickfont/_variant.py b/packages/python/plotly/plotly/validators/parcoords/tickfont/_variant.py index e5a056b77fe..6a01e0c6ef7 100644 --- a/packages/python/plotly/plotly/validators/parcoords/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/parcoords/tickfont/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="parcoords.tickfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='parcoords.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/tickfont/_weight.py b/packages/python/plotly/plotly/validators/parcoords/tickfont/_weight.py index 6f764db0c83..064853ddc39 100644 --- a/packages/python/plotly/plotly/validators/parcoords/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/parcoords/tickfont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="parcoords.tickfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='parcoords.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/unselected/__init__.py b/packages/python/plotly/plotly/validators/parcoords/unselected/__init__.py index 90c7f7b1276..b9f39840568 100644 --- a/packages/python/plotly/plotly/validators/parcoords/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/unselected/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import LineValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._line.LineValidator"] + __name__, + [], + ['._line.LineValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcoords/unselected/_line.py b/packages/python/plotly/plotly/validators/parcoords/unselected/_line.py index 1df68c100ce..416536a04f6 100644 --- a/packages/python/plotly/plotly/validators/parcoords/unselected/_line.py +++ b/packages/python/plotly/plotly/validators/parcoords/unselected/_line.py @@ -1,26 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="line", parent_name="parcoords.unselected", **kwargs - ): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the base color of unselected lines. in - connection with `unselected.line.opacity`. - opacity - Sets the opacity of unselected lines. The - default "auto" decreases the opacity smoothly - as the number of lines increases. Use 1 to - achieve exact `unselected.line.color`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='parcoords.unselected', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/unselected/line/__init__.py b/packages/python/plotly/plotly/validators/parcoords/unselected/line/__init__.py index d8f31347bfd..e07b1781835 100644 --- a/packages/python/plotly/plotly/validators/parcoords/unselected/line/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/unselected/line/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._opacity.OpacityValidator", "._color.ColorValidator"] + __name__, + [], + ['._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/parcoords/unselected/line/_color.py b/packages/python/plotly/plotly/validators/parcoords/unselected/line/_color.py index b7b91d730e6..2ab20c275b2 100644 --- a/packages/python/plotly/plotly/validators/parcoords/unselected/line/_color.py +++ b/packages/python/plotly/plotly/validators/parcoords/unselected/line/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="parcoords.unselected.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='parcoords.unselected.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/parcoords/unselected/line/_opacity.py b/packages/python/plotly/plotly/validators/parcoords/unselected/line/_opacity.py index 2348b092f41..034c0338d0a 100644 --- a/packages/python/plotly/plotly/validators/parcoords/unselected/line/_opacity.py +++ b/packages/python/plotly/plotly/validators/parcoords/unselected/line/_opacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="parcoords.unselected.line", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='parcoords.unselected.line', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/__init__.py b/packages/python/plotly/plotly/validators/pie/__init__.py index 7ee355c1cb4..08f95ce4c72 100644 --- a/packages/python/plotly/plotly/validators/pie/__init__.py +++ b/packages/python/plotly/plotly/validators/pie/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._valuessrc import ValuessrcValidator @@ -57,63 +56,10 @@ from ._automargin import AutomarginValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._valuessrc.ValuessrcValidator", - "._values.ValuesValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._title.TitleValidator", - "._texttemplatesrc.TexttemplatesrcValidator", - "._texttemplate.TexttemplateValidator", - "._textsrc.TextsrcValidator", - "._textpositionsrc.TextpositionsrcValidator", - "._textposition.TextpositionValidator", - "._textinfo.TextinfoValidator", - "._textfont.TextfontValidator", - "._text.TextValidator", - "._stream.StreamValidator", - "._sort.SortValidator", - "._showlegend.ShowlegendValidator", - "._scalegroup.ScalegroupValidator", - "._rotation.RotationValidator", - "._pullsrc.PullsrcValidator", - "._pull.PullValidator", - "._outsidetextfont.OutsidetextfontValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._marker.MarkerValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._labelssrc.LabelssrcValidator", - "._labels.LabelsValidator", - "._label0.Label0Validator", - "._insidetextorientation.InsidetextorientationValidator", - "._insidetextfont.InsidetextfontValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._hole.HoleValidator", - "._domain.DomainValidator", - "._dlabel.DlabelValidator", - "._direction.DirectionValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._automargin.AutomarginValidator", - ], + ['._visible.VisibleValidator', '._valuessrc.ValuessrcValidator', '._values.ValuesValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._title.TitleValidator', '._texttemplatesrc.TexttemplatesrcValidator', '._texttemplate.TexttemplateValidator', '._textsrc.TextsrcValidator', '._textpositionsrc.TextpositionsrcValidator', '._textposition.TextpositionValidator', '._textinfo.TextinfoValidator', '._textfont.TextfontValidator', '._text.TextValidator', '._stream.StreamValidator', '._sort.SortValidator', '._showlegend.ShowlegendValidator', '._scalegroup.ScalegroupValidator', '._rotation.RotationValidator', '._pullsrc.PullsrcValidator', '._pull.PullValidator', '._outsidetextfont.OutsidetextfontValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._marker.MarkerValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._labelssrc.LabelssrcValidator', '._labels.LabelsValidator', '._label0.Label0Validator', '._insidetextorientation.InsidetextorientationValidator', '._insidetextfont.InsidetextfontValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._hole.HoleValidator', '._domain.DomainValidator', '._dlabel.DlabelValidator', '._direction.DirectionValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._automargin.AutomarginValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/pie/_automargin.py b/packages/python/plotly/plotly/validators/pie/_automargin.py index 40d0c9c6985..6a843a4e8fc 100644 --- a/packages/python/plotly/plotly/validators/pie/_automargin.py +++ b/packages/python/plotly/plotly/validators/pie/_automargin.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AutomarginValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="automargin", parent_name="pie", **kwargs): - super(AutomarginValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutomarginValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='automargin', + parent_name='pie', + **kwargs): + super(AutomarginValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_customdata.py b/packages/python/plotly/plotly/validators/pie/_customdata.py index 00f5f52ba69..31285588d10 100644 --- a/packages/python/plotly/plotly/validators/pie/_customdata.py +++ b/packages/python/plotly/plotly/validators/pie/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="pie", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='pie', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_customdatasrc.py b/packages/python/plotly/plotly/validators/pie/_customdatasrc.py index b3ea7a5d1c9..c26b986732c 100644 --- a/packages/python/plotly/plotly/validators/pie/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/pie/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="pie", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='pie', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_direction.py b/packages/python/plotly/plotly/validators/pie/_direction.py index bc706c9f50f..ce9bf48d2c2 100644 --- a/packages/python/plotly/plotly/validators/pie/_direction.py +++ b/packages/python/plotly/plotly/validators/pie/_direction.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class DirectionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="direction", parent_name="pie", **kwargs): - super(DirectionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["clockwise", "counterclockwise"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DirectionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='direction', + parent_name='pie', + **kwargs): + super(DirectionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['clockwise', 'counterclockwise']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_dlabel.py b/packages/python/plotly/plotly/validators/pie/_dlabel.py index 986fc84fddb..9a6e2bc198d 100644 --- a/packages/python/plotly/plotly/validators/pie/_dlabel.py +++ b/packages/python/plotly/plotly/validators/pie/_dlabel.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class DlabelValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="dlabel", parent_name="pie", **kwargs): - super(DlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DlabelValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dlabel', + parent_name='pie', + **kwargs): + super(DlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_domain.py b/packages/python/plotly/plotly/validators/pie/_domain.py index ff1d81a9de5..f929cda1878 100644 --- a/packages/python/plotly/plotly/validators/pie/_domain.py +++ b/packages/python/plotly/plotly/validators/pie/_domain.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="domain", parent_name="pie", **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 pie trace . - row - If there is a layout grid, use the domain for - this row in the grid for this pie trace . - x - Sets the horizontal domain of this pie trace - (in plot fraction). - y - Sets the vertical domain of this pie trace (in - plot fraction). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DomainValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='domain', + parent_name='pie', + **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', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_hole.py b/packages/python/plotly/plotly/validators/pie/_hole.py index b539d85bb3a..1a349153b9e 100644 --- a/packages/python/plotly/plotly/validators/pie/_hole.py +++ b/packages/python/plotly/plotly/validators/pie/_hole.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class HoleValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="hole", parent_name="pie", **kwargs): - super(HoleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoleValidator(_bv.NumberValidator): + def __init__(self, plotly_name='hole', + parent_name='pie', + **kwargs): + super(HoleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_hoverinfo.py b/packages/python/plotly/plotly/validators/pie/_hoverinfo.py index 3fdeadd9002..d695dca7010 100644 --- a/packages/python/plotly/plotly/validators/pie/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/pie/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="pie", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["label", "text", "value", "percent", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='pie', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['label', 'text', 'value', 'percent', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/pie/_hoverinfosrc.py index 5b67b1c833d..302b126d146 100644 --- a/packages/python/plotly/plotly/validators/pie/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/pie/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="pie", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='pie', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_hoverlabel.py b/packages/python/plotly/plotly/validators/pie/_hoverlabel.py index 82e9a98d6cd..23de1452f18 100644 --- a/packages/python/plotly/plotly/validators/pie/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/pie/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="pie", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='pie', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_hovertemplate.py b/packages/python/plotly/plotly/validators/pie/_hovertemplate.py index 008669a2855..f0a0e7e660c 100644 --- a/packages/python/plotly/plotly/validators/pie/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/pie/_hovertemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="pie", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='pie', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/pie/_hovertemplatesrc.py index 27bd761eb69..b9bdc89ec24 100644 --- a/packages/python/plotly/plotly/validators/pie/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/pie/_hovertemplatesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertemplatesrc", parent_name="pie", **kwargs): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='pie', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_hovertext.py b/packages/python/plotly/plotly/validators/pie/_hovertext.py index 6dfc626320b..0135e39e109 100644 --- a/packages/python/plotly/plotly/validators/pie/_hovertext.py +++ b/packages/python/plotly/plotly/validators/pie/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="pie", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='pie', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_hovertextsrc.py b/packages/python/plotly/plotly/validators/pie/_hovertextsrc.py index 43292c62e8b..a0064667a98 100644 --- a/packages/python/plotly/plotly/validators/pie/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/pie/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="pie", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='pie', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_ids.py b/packages/python/plotly/plotly/validators/pie/_ids.py index 1762f18a128..6cbc83d6aa9 100644 --- a/packages/python/plotly/plotly/validators/pie/_ids.py +++ b/packages/python/plotly/plotly/validators/pie/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="pie", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='pie', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_idssrc.py b/packages/python/plotly/plotly/validators/pie/_idssrc.py index 80072a90ed9..ba8343e1fb8 100644 --- a/packages/python/plotly/plotly/validators/pie/_idssrc.py +++ b/packages/python/plotly/plotly/validators/pie/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="pie", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='pie', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_insidetextfont.py b/packages/python/plotly/plotly/validators/pie/_insidetextfont.py index 2317e84b9ff..9d88b73e01f 100644 --- a/packages/python/plotly/plotly/validators/pie/_insidetextfont.py +++ b/packages/python/plotly/plotly/validators/pie/_insidetextfont.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class InsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="insidetextfont", parent_name="pie", **kwargs): - super(InsidetextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Insidetextfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class InsidetextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='insidetextfont', + parent_name='pie', + **kwargs): + super(InsidetextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Insidetextfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_insidetextorientation.py b/packages/python/plotly/plotly/validators/pie/_insidetextorientation.py index f7f95efe463..496dc354b29 100644 --- a/packages/python/plotly/plotly/validators/pie/_insidetextorientation.py +++ b/packages/python/plotly/plotly/validators/pie/_insidetextorientation.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class InsidetextorientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="insidetextorientation", parent_name="pie", **kwargs - ): - super(InsidetextorientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["horizontal", "radial", "tangential", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class InsidetextorientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='insidetextorientation', + parent_name='pie', + **kwargs): + super(InsidetextorientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['horizontal', 'radial', 'tangential', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_label0.py b/packages/python/plotly/plotly/validators/pie/_label0.py index 754dee98dda..5bb2ea51a63 100644 --- a/packages/python/plotly/plotly/validators/pie/_label0.py +++ b/packages/python/plotly/plotly/validators/pie/_label0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Label0Validator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="label0", parent_name="pie", **kwargs): - super(Label0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Label0Validator(_bv.NumberValidator): + def __init__(self, plotly_name='label0', + parent_name='pie', + **kwargs): + super(Label0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_labels.py b/packages/python/plotly/plotly/validators/pie/_labels.py index c08b30e8a23..284dc20ac3a 100644 --- a/packages/python/plotly/plotly/validators/pie/_labels.py +++ b/packages/python/plotly/plotly/validators/pie/_labels.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LabelsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="labels", parent_name="pie", **kwargs): - super(LabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='labels', + parent_name='pie', + **kwargs): + super(LabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_labelssrc.py b/packages/python/plotly/plotly/validators/pie/_labelssrc.py index fea5f084451..bb64f43a6b2 100644 --- a/packages/python/plotly/plotly/validators/pie/_labelssrc.py +++ b/packages/python/plotly/plotly/validators/pie/_labelssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LabelssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="labelssrc", parent_name="pie", **kwargs): - super(LabelssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='labelssrc', + parent_name='pie', + **kwargs): + super(LabelssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_legend.py b/packages/python/plotly/plotly/validators/pie/_legend.py index ea35729c43c..ac633ec5320 100644 --- a/packages/python/plotly/plotly/validators/pie/_legend.py +++ b/packages/python/plotly/plotly/validators/pie/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="pie", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='pie', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_legendgroup.py b/packages/python/plotly/plotly/validators/pie/_legendgroup.py index 6b0275bd564..4565259f8ab 100644 --- a/packages/python/plotly/plotly/validators/pie/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/pie/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="pie", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='pie', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/pie/_legendgrouptitle.py index 554e619ac53..c5367f292d9 100644 --- a/packages/python/plotly/plotly/validators/pie/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/pie/_legendgrouptitle.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="legendgrouptitle", parent_name="pie", **kwargs): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='pie', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_legendrank.py b/packages/python/plotly/plotly/validators/pie/_legendrank.py index 47a2e363cda..f9470d8b792 100644 --- a/packages/python/plotly/plotly/validators/pie/_legendrank.py +++ b/packages/python/plotly/plotly/validators/pie/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="pie", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='pie', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_legendwidth.py b/packages/python/plotly/plotly/validators/pie/_legendwidth.py index 7db5dbdb2ec..773fced1724 100644 --- a/packages/python/plotly/plotly/validators/pie/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/pie/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="pie", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='pie', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_marker.py b/packages/python/plotly/plotly/validators/pie/_marker.py index 5134bed1d81..c88548cd4c0 100644 --- a/packages/python/plotly/plotly/validators/pie/_marker.py +++ b/packages/python/plotly/plotly/validators/pie/_marker.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="pie", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - colors - Sets the color of each sector. If not - specified, the default trace color set is used - to pick the sector colors. - colorssrc - Sets the source reference on Chart Studio Cloud - for `colors`. - line - :class:`plotly.graph_objects.pie.marker.Line` - instance or dict with compatible properties - pattern - Sets the pattern within the marker. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='pie', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_meta.py b/packages/python/plotly/plotly/validators/pie/_meta.py index 54fd0382946..4e2073c436b 100644 --- a/packages/python/plotly/plotly/validators/pie/_meta.py +++ b/packages/python/plotly/plotly/validators/pie/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="pie", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='pie', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_metasrc.py b/packages/python/plotly/plotly/validators/pie/_metasrc.py index dd7b78a6da4..83e04abfeda 100644 --- a/packages/python/plotly/plotly/validators/pie/_metasrc.py +++ b/packages/python/plotly/plotly/validators/pie/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="pie", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='pie', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_name.py b/packages/python/plotly/plotly/validators/pie/_name.py index 4997093701e..cf5e4f7783d 100644 --- a/packages/python/plotly/plotly/validators/pie/_name.py +++ b/packages/python/plotly/plotly/validators/pie/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="pie", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='pie', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_opacity.py b/packages/python/plotly/plotly/validators/pie/_opacity.py index 19d7b58f57e..62b56560340 100644 --- a/packages/python/plotly/plotly/validators/pie/_opacity.py +++ b/packages/python/plotly/plotly/validators/pie/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="pie", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='pie', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_outsidetextfont.py b/packages/python/plotly/plotly/validators/pie/_outsidetextfont.py index 3556ed0beac..9cdaadbbdde 100644 --- a/packages/python/plotly/plotly/validators/pie/_outsidetextfont.py +++ b/packages/python/plotly/plotly/validators/pie/_outsidetextfont.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class OutsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="outsidetextfont", parent_name="pie", **kwargs): - super(OutsidetextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Outsidetextfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class OutsidetextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='outsidetextfont', + parent_name='pie', + **kwargs): + super(OutsidetextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Outsidetextfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_pull.py b/packages/python/plotly/plotly/validators/pie/_pull.py index 8d4b6856e06..9f1a9e29d03 100644 --- a/packages/python/plotly/plotly/validators/pie/_pull.py +++ b/packages/python/plotly/plotly/validators/pie/_pull.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class PullValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="pull", parent_name="pie", **kwargs): - super(PullValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class PullValidator(_bv.NumberValidator): + def __init__(self, plotly_name='pull', + parent_name='pie', + **kwargs): + super(PullValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_pullsrc.py b/packages/python/plotly/plotly/validators/pie/_pullsrc.py index c1057e55600..a080649dd73 100644 --- a/packages/python/plotly/plotly/validators/pie/_pullsrc.py +++ b/packages/python/plotly/plotly/validators/pie/_pullsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class PullsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="pullsrc", parent_name="pie", **kwargs): - super(PullsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class PullsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='pullsrc', + parent_name='pie', + **kwargs): + super(PullsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_rotation.py b/packages/python/plotly/plotly/validators/pie/_rotation.py index 449553a04ef..4d6a1e815a0 100644 --- a/packages/python/plotly/plotly/validators/pie/_rotation.py +++ b/packages/python/plotly/plotly/validators/pie/_rotation.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class RotationValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__(self, plotly_name="rotation", parent_name="pie", **kwargs): - super(RotationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RotationValidator(_bv.AngleValidator): + def __init__(self, plotly_name='rotation', + parent_name='pie', + **kwargs): + super(RotationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_scalegroup.py b/packages/python/plotly/plotly/validators/pie/_scalegroup.py index b1d8f35707e..826ba337739 100644 --- a/packages/python/plotly/plotly/validators/pie/_scalegroup.py +++ b/packages/python/plotly/plotly/validators/pie/_scalegroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ScalegroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="scalegroup", parent_name="pie", **kwargs): - super(ScalegroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ScalegroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='scalegroup', + parent_name='pie', + **kwargs): + super(ScalegroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_showlegend.py b/packages/python/plotly/plotly/validators/pie/_showlegend.py index b076d793629..311408ed2ad 100644 --- a/packages/python/plotly/plotly/validators/pie/_showlegend.py +++ b/packages/python/plotly/plotly/validators/pie/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="pie", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='pie', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_sort.py b/packages/python/plotly/plotly/validators/pie/_sort.py index 7452878a24f..fde123fefed 100644 --- a/packages/python/plotly/plotly/validators/pie/_sort.py +++ b/packages/python/plotly/plotly/validators/pie/_sort.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SortValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="sort", parent_name="pie", **kwargs): - super(SortValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SortValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='sort', + parent_name='pie', + **kwargs): + super(SortValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_stream.py b/packages/python/plotly/plotly/validators/pie/_stream.py index 918ddba8ea4..06600f42091 100644 --- a/packages/python/plotly/plotly/validators/pie/_stream.py +++ b/packages/python/plotly/plotly/validators/pie/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="pie", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='pie', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_text.py b/packages/python/plotly/plotly/validators/pie/_text.py index aa0d25493ba..204fcc9f0b6 100644 --- a/packages/python/plotly/plotly/validators/pie/_text.py +++ b/packages/python/plotly/plotly/validators/pie/_text.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="text", parent_name="pie", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='text', + parent_name='pie', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_textfont.py b/packages/python/plotly/plotly/validators/pie/_textfont.py index ccb8131e66e..05a0286d3de 100644 --- a/packages/python/plotly/plotly/validators/pie/_textfont.py +++ b/packages/python/plotly/plotly/validators/pie/_textfont.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="textfont", parent_name="pie", **kwargs): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='pie', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_textinfo.py b/packages/python/plotly/plotly/validators/pie/_textinfo.py index 438b045c824..681f93d628f 100644 --- a/packages/python/plotly/plotly/validators/pie/_textinfo.py +++ b/packages/python/plotly/plotly/validators/pie/_textinfo.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="textinfo", parent_name="pie", **kwargs): - super(TextinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["label", "text", "value", "percent"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='textinfo', + parent_name='pie', + **kwargs): + super(TextinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['label', 'text', 'value', 'percent']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_textposition.py b/packages/python/plotly/plotly/validators/pie/_textposition.py index 126819c1b83..05eb83b8311 100644 --- a/packages/python/plotly/plotly/validators/pie/_textposition.py +++ b/packages/python/plotly/plotly/validators/pie/_textposition.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="textposition", parent_name="pie", **kwargs): - super(TextpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["inside", "outside", "auto", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textposition', + parent_name='pie', + **kwargs): + super(TextpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['inside', 'outside', 'auto', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_textpositionsrc.py b/packages/python/plotly/plotly/validators/pie/_textpositionsrc.py index 614e7095f78..d5f05f6ff17 100644 --- a/packages/python/plotly/plotly/validators/pie/_textpositionsrc.py +++ b/packages/python/plotly/plotly/validators/pie/_textpositionsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textpositionsrc", parent_name="pie", **kwargs): - super(TextpositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextpositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textpositionsrc', + parent_name='pie', + **kwargs): + super(TextpositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_textsrc.py b/packages/python/plotly/plotly/validators/pie/_textsrc.py index 9086eca8b91..25613d114a2 100644 --- a/packages/python/plotly/plotly/validators/pie/_textsrc.py +++ b/packages/python/plotly/plotly/validators/pie/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="pie", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='pie', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_texttemplate.py b/packages/python/plotly/plotly/validators/pie/_texttemplate.py index ca4ed09880e..b87040e0c34 100644 --- a/packages/python/plotly/plotly/validators/pie/_texttemplate.py +++ b/packages/python/plotly/plotly/validators/pie/_texttemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="texttemplate", parent_name="pie", **kwargs): - super(TexttemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='texttemplate', + parent_name='pie', + **kwargs): + super(TexttemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_texttemplatesrc.py b/packages/python/plotly/plotly/validators/pie/_texttemplatesrc.py index 3b91319faff..2a402a5ab73 100644 --- a/packages/python/plotly/plotly/validators/pie/_texttemplatesrc.py +++ b/packages/python/plotly/plotly/validators/pie/_texttemplatesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="texttemplatesrc", parent_name="pie", **kwargs): - super(TexttemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TexttemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='texttemplatesrc', + parent_name='pie', + **kwargs): + super(TexttemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_title.py b/packages/python/plotly/plotly/validators/pie/_title.py index 4fe46334aea..02d0f7e8440 100644 --- a/packages/python/plotly/plotly/validators/pie/_title.py +++ b/packages/python/plotly/plotly/validators/pie/_title.py @@ -1,23 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__(self, plotly_name="title", parent_name="pie", **kwargs): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets the font used for `title`. - position - Specifies the location of the `title`. - text - Sets the title of the chart. If it is empty, no - title is displayed. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='pie', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_uid.py b/packages/python/plotly/plotly/validators/pie/_uid.py index d339151f5b4..c32c1e509fe 100644 --- a/packages/python/plotly/plotly/validators/pie/_uid.py +++ b/packages/python/plotly/plotly/validators/pie/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="pie", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='pie', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_uirevision.py b/packages/python/plotly/plotly/validators/pie/_uirevision.py index a0b6c318953..930727baf3e 100644 --- a/packages/python/plotly/plotly/validators/pie/_uirevision.py +++ b/packages/python/plotly/plotly/validators/pie/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="pie", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='pie', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_values.py b/packages/python/plotly/plotly/validators/pie/_values.py index 17be9a9c8f8..23be7d57e49 100644 --- a/packages/python/plotly/plotly/validators/pie/_values.py +++ b/packages/python/plotly/plotly/validators/pie/_values.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ValuesValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="values", parent_name="pie", **kwargs): - super(ValuesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValuesValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='values', + parent_name='pie', + **kwargs): + super(ValuesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_valuessrc.py b/packages/python/plotly/plotly/validators/pie/_valuessrc.py index 73310c9d246..043499bab35 100644 --- a/packages/python/plotly/plotly/validators/pie/_valuessrc.py +++ b/packages/python/plotly/plotly/validators/pie/_valuessrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ValuessrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="valuessrc", parent_name="pie", **kwargs): - super(ValuessrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValuessrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='valuessrc', + parent_name='pie', + **kwargs): + super(ValuessrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/_visible.py b/packages/python/plotly/plotly/validators/pie/_visible.py index 99cd1f72143..bcc78ccc6f5 100644 --- a/packages/python/plotly/plotly/validators/pie/_visible.py +++ b/packages/python/plotly/plotly/validators/pie/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="pie", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='pie', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/domain/__init__.py b/packages/python/plotly/plotly/validators/pie/domain/__init__.py index 67de5030d0a..705a2194402 100644 --- a/packages/python/plotly/plotly/validators/pie/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/pie/domain/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._y import YValidator from ._x import XValidator @@ -8,14 +7,10 @@ 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", - ], + ['._y.YValidator', '._x.XValidator', '._row.RowValidator', '._column.ColumnValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/pie/domain/_column.py b/packages/python/plotly/plotly/validators/pie/domain/_column.py index 0c258cc5104..f3974080a68 100644 --- a/packages/python/plotly/plotly/validators/pie/domain/_column.py +++ b/packages/python/plotly/plotly/validators/pie/domain/_column.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="column", parent_name="pie.domain", **kwargs): - super(ColumnValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColumnValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='column', + parent_name='pie.domain', + **kwargs): + super(ColumnValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/domain/_row.py b/packages/python/plotly/plotly/validators/pie/domain/_row.py index b1817d17e65..61be3c95dc5 100644 --- a/packages/python/plotly/plotly/validators/pie/domain/_row.py +++ b/packages/python/plotly/plotly/validators/pie/domain/_row.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="row", parent_name="pie.domain", **kwargs): - super(RowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RowValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='row', + parent_name='pie.domain', + **kwargs): + super(RowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/domain/_x.py b/packages/python/plotly/plotly/validators/pie/domain/_x.py index 0a45400d88d..b9a63b5b37c 100644 --- a/packages/python/plotly/plotly/validators/pie/domain/_x.py +++ b/packages/python/plotly/plotly/validators/pie/domain/_x.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="x", parent_name="pie.domain", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='x', + parent_name='pie.domain', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}, {'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/domain/_y.py b/packages/python/plotly/plotly/validators/pie/domain/_y.py index b8a4b9f3344..adcdf05b9d0 100644 --- a/packages/python/plotly/plotly/validators/pie/domain/_y.py +++ b/packages/python/plotly/plotly/validators/pie/domain/_y.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="y", parent_name="pie.domain", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='y', + parent_name='pie.domain', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}, {'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/_align.py index 9969ab0fd70..2a8955c019b 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/_align.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="align", parent_name="pie.hoverlabel", **kwargs): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='pie.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/_alignsrc.py index 34ce493aca1..d299b3e311f 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/_alignsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="alignsrc", parent_name="pie.hoverlabel", **kwargs): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='pie.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/_bgcolor.py index 1638710073e..650cfb3106c 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/_bgcolor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="bgcolor", parent_name="pie.hoverlabel", **kwargs): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='pie.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/_bgcolorsrc.py index 78213f5ee19..aff6936a493 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="pie.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='pie.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/_bordercolor.py index 6548cb39686..a37514bf208 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="pie.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='pie.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/_bordercolorsrc.py index d8058ab4666..92e91b3ffab 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bordercolorsrc", parent_name="pie.hoverlabel", **kwargs - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='pie.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/_font.py index 458c518a832..1b4af4f1db0 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/_font.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="pie.hoverlabel", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='pie.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/_namelength.py index 7f42c7fdad4..9786c2ab715 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="pie.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='pie.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/_namelengthsrc.py index b467682d2b0..7dbce2b8045 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="pie.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='pie.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_color.py index cee4bff0cd9..fbd08f6b04f 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="pie.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='pie.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_colorsrc.py index ba0b5a01555..84d8e8bcd8a 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="pie.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='pie.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_family.py index 88afed15a2b..f83c809bc17 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="pie.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='pie.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_familysrc.py index 1e66e6e1d81..8bccaeb9ac1 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="pie.hoverlabel.font", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='pie.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_lineposition.py index bff23d08433..450863fc0e8 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="pie.hoverlabel.font", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='pie.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_linepositionsrc.py index 9bfa0fbf50d..ff2b13e5ad3 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_linepositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="linepositionsrc", parent_name="pie.hoverlabel.font", **kwargs - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='pie.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_shadow.py index f22498fe213..7858c4d39ee 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="pie.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='pie.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_shadowsrc.py index a76ca8e0c50..d399b78d85c 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="pie.hoverlabel.font", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='pie.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_size.py index 61830ff3952..f360f543b86 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="pie.hoverlabel.font", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='pie.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_sizesrc.py index 772e5a71f04..1a3688f79c0 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="pie.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='pie.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_style.py index bc1081d6bca..766ab21481c 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="pie.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='pie.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_stylesrc.py index 3b3af9af334..afb1ca7a6af 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="pie.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='pie.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_textcase.py index 7547a425ec6..ec6a5e6a695 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="pie.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='pie.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_textcasesrc.py index 4985affcaca..fbc513826c1 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="pie.hoverlabel.font", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='pie.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_variant.py index b0b324b2a5a..3c17bc5aaea 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="pie.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='pie.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_variantsrc.py index f726e7082b6..0ae727686de 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="pie.hoverlabel.font", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='pie.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_weight.py index b8a9c31a932..ac29d1c911a 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="pie.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='pie.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_weightsrc.py index 25932b7bfb6..7f90af06b21 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="pie.hoverlabel.font", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='pie.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/insidetextfont/__init__.py b/packages/python/plotly/plotly/validators/pie/insidetextfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/pie/insidetextfont/__init__.py +++ b/packages/python/plotly/plotly/validators/pie/insidetextfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/pie/insidetextfont/_color.py b/packages/python/plotly/plotly/validators/pie/insidetextfont/_color.py index 766d4a5f197..1156c6f706f 100644 --- a/packages/python/plotly/plotly/validators/pie/insidetextfont/_color.py +++ b/packages/python/plotly/plotly/validators/pie/insidetextfont/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="pie.insidetextfont", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='pie.insidetextfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/insidetextfont/_colorsrc.py b/packages/python/plotly/plotly/validators/pie/insidetextfont/_colorsrc.py index ce1bfb2bdac..d7fc0d400bd 100644 --- a/packages/python/plotly/plotly/validators/pie/insidetextfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/pie/insidetextfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="pie.insidetextfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='pie.insidetextfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/insidetextfont/_family.py b/packages/python/plotly/plotly/validators/pie/insidetextfont/_family.py index b5a0591c73c..37051268e9f 100644 --- a/packages/python/plotly/plotly/validators/pie/insidetextfont/_family.py +++ b/packages/python/plotly/plotly/validators/pie/insidetextfont/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="pie.insidetextfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='pie.insidetextfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/insidetextfont/_familysrc.py b/packages/python/plotly/plotly/validators/pie/insidetextfont/_familysrc.py index 1619bc278f2..47c65f4579b 100644 --- a/packages/python/plotly/plotly/validators/pie/insidetextfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/pie/insidetextfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="pie.insidetextfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='pie.insidetextfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/insidetextfont/_lineposition.py b/packages/python/plotly/plotly/validators/pie/insidetextfont/_lineposition.py index 73d4e15f443..a26e0792516 100644 --- a/packages/python/plotly/plotly/validators/pie/insidetextfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/pie/insidetextfont/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="pie.insidetextfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='pie.insidetextfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/insidetextfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/pie/insidetextfont/_linepositionsrc.py index 549a5cd5f28..ea0638d082f 100644 --- a/packages/python/plotly/plotly/validators/pie/insidetextfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/pie/insidetextfont/_linepositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="linepositionsrc", parent_name="pie.insidetextfont", **kwargs - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='pie.insidetextfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/insidetextfont/_shadow.py b/packages/python/plotly/plotly/validators/pie/insidetextfont/_shadow.py index 071e336092d..9a5f29f3a2c 100644 --- a/packages/python/plotly/plotly/validators/pie/insidetextfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/pie/insidetextfont/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="pie.insidetextfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='pie.insidetextfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/insidetextfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/pie/insidetextfont/_shadowsrc.py index 5c1ff1c7bcc..886e57ff5c8 100644 --- a/packages/python/plotly/plotly/validators/pie/insidetextfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/pie/insidetextfont/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="pie.insidetextfont", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='pie.insidetextfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/insidetextfont/_size.py b/packages/python/plotly/plotly/validators/pie/insidetextfont/_size.py index 61e49b12c90..808f72d56a3 100644 --- a/packages/python/plotly/plotly/validators/pie/insidetextfont/_size.py +++ b/packages/python/plotly/plotly/validators/pie/insidetextfont/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="pie.insidetextfont", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='pie.insidetextfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/insidetextfont/_sizesrc.py b/packages/python/plotly/plotly/validators/pie/insidetextfont/_sizesrc.py index d91b5f78208..8b674b495d7 100644 --- a/packages/python/plotly/plotly/validators/pie/insidetextfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/pie/insidetextfont/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="pie.insidetextfont", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='pie.insidetextfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/insidetextfont/_style.py b/packages/python/plotly/plotly/validators/pie/insidetextfont/_style.py index 9cddcf17c71..96cdd110394 100644 --- a/packages/python/plotly/plotly/validators/pie/insidetextfont/_style.py +++ b/packages/python/plotly/plotly/validators/pie/insidetextfont/_style.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="style", parent_name="pie.insidetextfont", **kwargs): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='pie.insidetextfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/insidetextfont/_stylesrc.py b/packages/python/plotly/plotly/validators/pie/insidetextfont/_stylesrc.py index eb571706b0c..c752aa3e213 100644 --- a/packages/python/plotly/plotly/validators/pie/insidetextfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/pie/insidetextfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="pie.insidetextfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='pie.insidetextfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/insidetextfont/_textcase.py b/packages/python/plotly/plotly/validators/pie/insidetextfont/_textcase.py index 7f9eb4d6cac..7cddcd35c15 100644 --- a/packages/python/plotly/plotly/validators/pie/insidetextfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/pie/insidetextfont/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="pie.insidetextfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='pie.insidetextfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/insidetextfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/pie/insidetextfont/_textcasesrc.py index e1e6a7fb648..4c6d4197f03 100644 --- a/packages/python/plotly/plotly/validators/pie/insidetextfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/pie/insidetextfont/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="pie.insidetextfont", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='pie.insidetextfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/insidetextfont/_variant.py b/packages/python/plotly/plotly/validators/pie/insidetextfont/_variant.py index b7c4898b164..6ff0d40db06 100644 --- a/packages/python/plotly/plotly/validators/pie/insidetextfont/_variant.py +++ b/packages/python/plotly/plotly/validators/pie/insidetextfont/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="pie.insidetextfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='pie.insidetextfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/insidetextfont/_variantsrc.py b/packages/python/plotly/plotly/validators/pie/insidetextfont/_variantsrc.py index d983c78ebf7..74e0933b42f 100644 --- a/packages/python/plotly/plotly/validators/pie/insidetextfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/pie/insidetextfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="pie.insidetextfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='pie.insidetextfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/insidetextfont/_weight.py b/packages/python/plotly/plotly/validators/pie/insidetextfont/_weight.py index 44dbb659699..06e38d59e78 100644 --- a/packages/python/plotly/plotly/validators/pie/insidetextfont/_weight.py +++ b/packages/python/plotly/plotly/validators/pie/insidetextfont/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="pie.insidetextfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='pie.insidetextfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/insidetextfont/_weightsrc.py b/packages/python/plotly/plotly/validators/pie/insidetextfont/_weightsrc.py index 13f0f395543..c89e94fcc83 100644 --- a/packages/python/plotly/plotly/validators/pie/insidetextfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/pie/insidetextfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="pie.insidetextfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='pie.insidetextfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/pie/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/pie/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/pie/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/pie/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/pie/legendgrouptitle/_font.py index 021bba6030c..b5ace21c127 100644 --- a/packages/python/plotly/plotly/validators/pie/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/pie/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="pie.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='pie.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/pie/legendgrouptitle/_text.py index 625fdaf756c..661966db9bb 100644 --- a/packages/python/plotly/plotly/validators/pie/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/pie/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="pie.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='pie.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_color.py index a3d4f718a52..6b1d2a45e05 100644 --- a/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="pie.legendgrouptitle.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='pie.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_family.py index 861181b8719..35478e31cf4 100644 --- a/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="pie.legendgrouptitle.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='pie.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_lineposition.py index 2d7e00d3e4c..9c87c826fd4 100644 --- a/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="pie.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='pie.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_shadow.py index bea3fdad670..22551aa2802 100644 --- a/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="pie.legendgrouptitle.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='pie.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_size.py index e3e710fa5f0..056f8e46c4c 100644 --- a/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="pie.legendgrouptitle.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='pie.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_style.py index e3824fea45f..5ba21400190 100644 --- a/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="pie.legendgrouptitle.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='pie.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_textcase.py index 81c2f2edb5d..2b38934b5f5 100644 --- a/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="pie.legendgrouptitle.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='pie.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_variant.py index 6213aae355b..b1a72f54a54 100644 --- a/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="pie.legendgrouptitle.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='pie.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_weight.py index bea2b3a83ec..b469059a5ea 100644 --- a/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/pie/legendgrouptitle/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="pie.legendgrouptitle.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='pie.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/marker/__init__.py b/packages/python/plotly/plotly/validators/pie/marker/__init__.py index aeae3564f66..3178e7ee24a 100644 --- a/packages/python/plotly/plotly/validators/pie/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/pie/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._pattern import PatternValidator from ._line import LineValidator @@ -8,14 +7,10 @@ from ._colors import ColorsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._pattern.PatternValidator", - "._line.LineValidator", - "._colorssrc.ColorssrcValidator", - "._colors.ColorsValidator", - ], + ['._pattern.PatternValidator', '._line.LineValidator', '._colorssrc.ColorssrcValidator', '._colors.ColorsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/pie/marker/_colors.py b/packages/python/plotly/plotly/validators/pie/marker/_colors.py index 4d1ce950307..1186eb7dbda 100644 --- a/packages/python/plotly/plotly/validators/pie/marker/_colors.py +++ b/packages/python/plotly/plotly/validators/pie/marker/_colors.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="colors", parent_name="pie.marker", **kwargs): - super(ColorsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='colors', + parent_name='pie.marker', + **kwargs): + super(ColorsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/marker/_colorssrc.py b/packages/python/plotly/plotly/validators/pie/marker/_colorssrc.py index bf222615f2c..f0569cccd18 100644 --- a/packages/python/plotly/plotly/validators/pie/marker/_colorssrc.py +++ b/packages/python/plotly/plotly/validators/pie/marker/_colorssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="colorssrc", parent_name="pie.marker", **kwargs): - super(ColorssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorssrc', + parent_name='pie.marker', + **kwargs): + super(ColorssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/marker/_line.py b/packages/python/plotly/plotly/validators/pie/marker/_line.py index 05f8f1dc826..39fb83cca5d 100644 --- a/packages/python/plotly/plotly/validators/pie/marker/_line.py +++ b/packages/python/plotly/plotly/validators/pie/marker/_line.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="pie.marker", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the color of the line enclosing each - sector. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - width - Sets the width (in px) of the line enclosing - each sector. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='pie.marker', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/marker/_pattern.py b/packages/python/plotly/plotly/validators/pie/marker/_pattern.py index 4e0277de408..b47fe2c86df 100644 --- a/packages/python/plotly/plotly/validators/pie/marker/_pattern.py +++ b/packages/python/plotly/plotly/validators/pie/marker/_pattern.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class PatternValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="pattern", parent_name="pie.marker", **kwargs): - super(PatternValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Pattern"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - When there is no colorscale sets the color of - background pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "overlay". Otherwise, defaults to a transparent - background. - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - fgcolor - When there is no colorscale sets the color of - foreground pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "replace". Otherwise, defaults to dark grey or - white to increase contrast with the `bgcolor`. - fgcolorsrc - Sets the source reference on Chart Studio Cloud - for `fgcolor`. - fgopacity - Sets the opacity of the foreground pattern - fill. Defaults to a 0.5 when `fillmode` is - "overlay". Otherwise, defaults to 1. - fillmode - Determines whether `marker.color` should be - used as a default to `bgcolor` or a `fgcolor`. - shape - Sets the shape of the pattern fill. By default, - no pattern is used for filling the area. - shapesrc - Sets the source reference on Chart Studio Cloud - for `shape`. - size - Sets the size of unit squares of the pattern - fill in pixels, which corresponds to the - interval of repetition of the pattern. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - solidity - Sets the solidity of the pattern fill. Solidity - is roughly the fraction of the area filled by - the pattern. Solidity of 0 shows only the - background color without pattern and solidty of - 1 shows only the foreground color without - pattern. - soliditysrc - Sets the source reference on Chart Studio Cloud - for `solidity`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class PatternValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='pattern', + parent_name='pie.marker', + **kwargs): + super(PatternValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Pattern'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/marker/line/__init__.py b/packages/python/plotly/plotly/validators/pie/marker/line/__init__.py index a2b9e1ae50c..522c01899cf 100644 --- a/packages/python/plotly/plotly/validators/pie/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/pie/marker/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._widthsrc import WidthsrcValidator from ._width import WidthValidator @@ -8,14 +7,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._widthsrc.WidthsrcValidator", - "._width.WidthValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._widthsrc.WidthsrcValidator', '._width.WidthValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/pie/marker/line/_color.py b/packages/python/plotly/plotly/validators/pie/marker/line/_color.py index 2fb231f7874..b519733aee8 100644 --- a/packages/python/plotly/plotly/validators/pie/marker/line/_color.py +++ b/packages/python/plotly/plotly/validators/pie/marker/line/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="pie.marker.line", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='pie.marker.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/marker/line/_colorsrc.py b/packages/python/plotly/plotly/validators/pie/marker/line/_colorsrc.py index 9178fffd552..76137ca4a84 100644 --- a/packages/python/plotly/plotly/validators/pie/marker/line/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/pie/marker/line/_colorsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="colorsrc", parent_name="pie.marker.line", **kwargs): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='pie.marker.line', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/marker/line/_width.py b/packages/python/plotly/plotly/validators/pie/marker/line/_width.py index a754a75ab10..d681f77cc80 100644 --- a/packages/python/plotly/plotly/validators/pie/marker/line/_width.py +++ b/packages/python/plotly/plotly/validators/pie/marker/line/_width.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="pie.marker.line", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='pie.marker.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/marker/line/_widthsrc.py b/packages/python/plotly/plotly/validators/pie/marker/line/_widthsrc.py index f20132c2bf9..164496da0ef 100644 --- a/packages/python/plotly/plotly/validators/pie/marker/line/_widthsrc.py +++ b/packages/python/plotly/plotly/validators/pie/marker/line/_widthsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="widthsrc", parent_name="pie.marker.line", **kwargs): - super(WidthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WidthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='widthsrc', + parent_name='pie.marker.line', + **kwargs): + super(WidthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/marker/pattern/__init__.py b/packages/python/plotly/plotly/validators/pie/marker/pattern/__init__.py index e190f962c46..de3616dbc8a 100644 --- a/packages/python/plotly/plotly/validators/pie/marker/pattern/__init__.py +++ b/packages/python/plotly/plotly/validators/pie/marker/pattern/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._soliditysrc import SoliditysrcValidator from ._solidity import SolidityValidator @@ -16,22 +15,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._soliditysrc.SoliditysrcValidator", - "._solidity.SolidityValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shapesrc.ShapesrcValidator", - "._shape.ShapeValidator", - "._fillmode.FillmodeValidator", - "._fgopacity.FgopacityValidator", - "._fgcolorsrc.FgcolorsrcValidator", - "._fgcolor.FgcolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - ], + ['._soliditysrc.SoliditysrcValidator', '._solidity.SolidityValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shapesrc.ShapesrcValidator', '._shape.ShapeValidator', '._fillmode.FillmodeValidator', '._fgopacity.FgopacityValidator', '._fgcolorsrc.FgcolorsrcValidator', '._fgcolor.FgcolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/pie/marker/pattern/_bgcolor.py b/packages/python/plotly/plotly/validators/pie/marker/pattern/_bgcolor.py index 4dedd28ff5b..1cbe3841758 100644 --- a/packages/python/plotly/plotly/validators/pie/marker/pattern/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/pie/marker/pattern/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="pie.marker.pattern", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='pie.marker.pattern', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/marker/pattern/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/pie/marker/pattern/_bgcolorsrc.py index 874028535e1..087e458870c 100644 --- a/packages/python/plotly/plotly/validators/pie/marker/pattern/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/pie/marker/pattern/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="pie.marker.pattern", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='pie.marker.pattern', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/marker/pattern/_fgcolor.py b/packages/python/plotly/plotly/validators/pie/marker/pattern/_fgcolor.py index f21b05dc0f2..21c354a347d 100644 --- a/packages/python/plotly/plotly/validators/pie/marker/pattern/_fgcolor.py +++ b/packages/python/plotly/plotly/validators/pie/marker/pattern/_fgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class FgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="fgcolor", parent_name="pie.marker.pattern", **kwargs - ): - super(FgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fgcolor', + parent_name='pie.marker.pattern', + **kwargs): + super(FgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/marker/pattern/_fgcolorsrc.py b/packages/python/plotly/plotly/validators/pie/marker/pattern/_fgcolorsrc.py index 74c793c646b..b10bf1f96ca 100644 --- a/packages/python/plotly/plotly/validators/pie/marker/pattern/_fgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/pie/marker/pattern/_fgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="fgcolorsrc", parent_name="pie.marker.pattern", **kwargs - ): - super(FgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='fgcolorsrc', + parent_name='pie.marker.pattern', + **kwargs): + super(FgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/marker/pattern/_fgopacity.py b/packages/python/plotly/plotly/validators/pie/marker/pattern/_fgopacity.py index 0c1532e7194..c80186df762 100644 --- a/packages/python/plotly/plotly/validators/pie/marker/pattern/_fgopacity.py +++ b/packages/python/plotly/plotly/validators/pie/marker/pattern/_fgopacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FgopacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="fgopacity", parent_name="pie.marker.pattern", **kwargs - ): - super(FgopacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FgopacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fgopacity', + parent_name='pie.marker.pattern', + **kwargs): + super(FgopacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/marker/pattern/_fillmode.py b/packages/python/plotly/plotly/validators/pie/marker/pattern/_fillmode.py index bf9a1e9556b..a7a6ce29f08 100644 --- a/packages/python/plotly/plotly/validators/pie/marker/pattern/_fillmode.py +++ b/packages/python/plotly/plotly/validators/pie/marker/pattern/_fillmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class FillmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="fillmode", parent_name="pie.marker.pattern", **kwargs - ): - super(FillmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["replace", "overlay"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='fillmode', + parent_name='pie.marker.pattern', + **kwargs): + super(FillmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['replace', 'overlay']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/marker/pattern/_shape.py b/packages/python/plotly/plotly/validators/pie/marker/pattern/_shape.py index f87457d72ee..54abceec735 100644 --- a/packages/python/plotly/plotly/validators/pie/marker/pattern/_shape.py +++ b/packages/python/plotly/plotly/validators/pie/marker/pattern/_shape.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="shape", parent_name="pie.marker.pattern", **kwargs): - super(ShapeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["", "/", "\\", "x", "-", "|", "+", "."]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShapeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='shape', + parent_name='pie.marker.pattern', + **kwargs): + super(ShapeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['', '/', '\\', 'x', '-', '|', '+', '.']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/marker/pattern/_shapesrc.py b/packages/python/plotly/plotly/validators/pie/marker/pattern/_shapesrc.py index aaff7d1bdf7..6fae3c92f3f 100644 --- a/packages/python/plotly/plotly/validators/pie/marker/pattern/_shapesrc.py +++ b/packages/python/plotly/plotly/validators/pie/marker/pattern/_shapesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShapesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shapesrc", parent_name="pie.marker.pattern", **kwargs - ): - super(ShapesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShapesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shapesrc', + parent_name='pie.marker.pattern', + **kwargs): + super(ShapesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/marker/pattern/_size.py b/packages/python/plotly/plotly/validators/pie/marker/pattern/_size.py index 60b1369ae78..7d54a653177 100644 --- a/packages/python/plotly/plotly/validators/pie/marker/pattern/_size.py +++ b/packages/python/plotly/plotly/validators/pie/marker/pattern/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="pie.marker.pattern", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='pie.marker.pattern', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/marker/pattern/_sizesrc.py b/packages/python/plotly/plotly/validators/pie/marker/pattern/_sizesrc.py index d461056afc2..bab5488a0df 100644 --- a/packages/python/plotly/plotly/validators/pie/marker/pattern/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/pie/marker/pattern/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="pie.marker.pattern", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='pie.marker.pattern', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/marker/pattern/_solidity.py b/packages/python/plotly/plotly/validators/pie/marker/pattern/_solidity.py index 5b6b873891f..b69b9e3a86d 100644 --- a/packages/python/plotly/plotly/validators/pie/marker/pattern/_solidity.py +++ b/packages/python/plotly/plotly/validators/pie/marker/pattern/_solidity.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class SolidityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="solidity", parent_name="pie.marker.pattern", **kwargs - ): - super(SolidityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SolidityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='solidity', + parent_name='pie.marker.pattern', + **kwargs): + super(SolidityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/marker/pattern/_soliditysrc.py b/packages/python/plotly/plotly/validators/pie/marker/pattern/_soliditysrc.py index 0a5d34df316..88071b89c0b 100644 --- a/packages/python/plotly/plotly/validators/pie/marker/pattern/_soliditysrc.py +++ b/packages/python/plotly/plotly/validators/pie/marker/pattern/_soliditysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SoliditysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="soliditysrc", parent_name="pie.marker.pattern", **kwargs - ): - super(SoliditysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SoliditysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='soliditysrc', + parent_name='pie.marker.pattern', + **kwargs): + super(SoliditysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/outsidetextfont/__init__.py b/packages/python/plotly/plotly/validators/pie/outsidetextfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/pie/outsidetextfont/__init__.py +++ b/packages/python/plotly/plotly/validators/pie/outsidetextfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_color.py b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_color.py index f4a3293445c..b6e204afb9d 100644 --- a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_color.py +++ b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="pie.outsidetextfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='pie.outsidetextfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_colorsrc.py b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_colorsrc.py index 762400b6a9f..55883adbe3f 100644 --- a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="pie.outsidetextfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='pie.outsidetextfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_family.py b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_family.py index 6f5602956f0..088dfb9ab6e 100644 --- a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_family.py +++ b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="pie.outsidetextfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='pie.outsidetextfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_familysrc.py b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_familysrc.py index db526c184ab..6f2937b86d6 100644 --- a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="pie.outsidetextfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='pie.outsidetextfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_lineposition.py b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_lineposition.py index bbd9f2f9a83..f9f42b8bdbf 100644 --- a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="pie.outsidetextfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='pie.outsidetextfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_linepositionsrc.py index 542347140ac..f2045b79c97 100644 --- a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_linepositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="linepositionsrc", parent_name="pie.outsidetextfont", **kwargs - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='pie.outsidetextfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_shadow.py b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_shadow.py index 51d51e11e44..75153f5c2c6 100644 --- a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="pie.outsidetextfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='pie.outsidetextfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_shadowsrc.py index 06af4c478b8..5b1da5a8c80 100644 --- a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="pie.outsidetextfont", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='pie.outsidetextfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_size.py b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_size.py index 4078cfb9d2f..3f8344112a4 100644 --- a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_size.py +++ b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="pie.outsidetextfont", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='pie.outsidetextfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_sizesrc.py b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_sizesrc.py index 9e4318a4d68..63b8220dcb4 100644 --- a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="pie.outsidetextfont", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='pie.outsidetextfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_style.py b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_style.py index 18818047ec9..729255d10e6 100644 --- a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_style.py +++ b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="pie.outsidetextfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='pie.outsidetextfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_stylesrc.py b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_stylesrc.py index 3ca7e751e68..24a0e096dee 100644 --- a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="pie.outsidetextfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='pie.outsidetextfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_textcase.py b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_textcase.py index 7a32a1542b5..90a85a44f58 100644 --- a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="pie.outsidetextfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='pie.outsidetextfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_textcasesrc.py index 6fdb93bb06a..4ad90d235aa 100644 --- a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="pie.outsidetextfont", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='pie.outsidetextfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_variant.py b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_variant.py index 39fa39f1d74..9c92d0a88d5 100644 --- a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_variant.py +++ b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="pie.outsidetextfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='pie.outsidetextfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_variantsrc.py b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_variantsrc.py index 32a9ad3e19d..d6b879daf93 100644 --- a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="pie.outsidetextfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='pie.outsidetextfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_weight.py b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_weight.py index 6688663e82f..c1b8fb6cfde 100644 --- a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_weight.py +++ b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="pie.outsidetextfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='pie.outsidetextfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_weightsrc.py b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_weightsrc.py index 650d7367dde..0f06684d861 100644 --- a/packages/python/plotly/plotly/validators/pie/outsidetextfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/pie/outsidetextfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="pie.outsidetextfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='pie.outsidetextfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/stream/__init__.py b/packages/python/plotly/plotly/validators/pie/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/pie/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/pie/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/pie/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/pie/stream/_maxpoints.py index 3f152ff71a6..90173684a57 100644 --- a/packages/python/plotly/plotly/validators/pie/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/pie/stream/_maxpoints.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="maxpoints", parent_name="pie.stream", **kwargs): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='pie.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/stream/_token.py b/packages/python/plotly/plotly/validators/pie/stream/_token.py index 58022ebab7d..4f4800750fc 100644 --- a/packages/python/plotly/plotly/validators/pie/stream/_token.py +++ b/packages/python/plotly/plotly/validators/pie/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="pie.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='pie.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/textfont/__init__.py b/packages/python/plotly/plotly/validators/pie/textfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/pie/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/pie/textfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/pie/textfont/_color.py b/packages/python/plotly/plotly/validators/pie/textfont/_color.py index 150670ebd08..7e46f0e343f 100644 --- a/packages/python/plotly/plotly/validators/pie/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/pie/textfont/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="pie.textfont", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='pie.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/textfont/_colorsrc.py b/packages/python/plotly/plotly/validators/pie/textfont/_colorsrc.py index 40006c00bef..55e7ce538a4 100644 --- a/packages/python/plotly/plotly/validators/pie/textfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/pie/textfont/_colorsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="colorsrc", parent_name="pie.textfont", **kwargs): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='pie.textfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/textfont/_family.py b/packages/python/plotly/plotly/validators/pie/textfont/_family.py index 0bb6404dc60..b8086754c8a 100644 --- a/packages/python/plotly/plotly/validators/pie/textfont/_family.py +++ b/packages/python/plotly/plotly/validators/pie/textfont/_family.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="family", parent_name="pie.textfont", **kwargs): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='pie.textfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/textfont/_familysrc.py b/packages/python/plotly/plotly/validators/pie/textfont/_familysrc.py index f3d83a1dd90..42c1e7cf24a 100644 --- a/packages/python/plotly/plotly/validators/pie/textfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/pie/textfont/_familysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="familysrc", parent_name="pie.textfont", **kwargs): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='pie.textfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/textfont/_lineposition.py b/packages/python/plotly/plotly/validators/pie/textfont/_lineposition.py index a70daf89df2..e626261077b 100644 --- a/packages/python/plotly/plotly/validators/pie/textfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/pie/textfont/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="pie.textfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='pie.textfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/textfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/pie/textfont/_linepositionsrc.py index 6894e5700a2..4d063dcdf6a 100644 --- a/packages/python/plotly/plotly/validators/pie/textfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/pie/textfont/_linepositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="linepositionsrc", parent_name="pie.textfont", **kwargs - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='pie.textfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/textfont/_shadow.py b/packages/python/plotly/plotly/validators/pie/textfont/_shadow.py index a1a4791c232..8a15d0ffdea 100644 --- a/packages/python/plotly/plotly/validators/pie/textfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/pie/textfont/_shadow.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="shadow", parent_name="pie.textfont", **kwargs): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='pie.textfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/textfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/pie/textfont/_shadowsrc.py index 313072823e7..8a97404a3f1 100644 --- a/packages/python/plotly/plotly/validators/pie/textfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/pie/textfont/_shadowsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="shadowsrc", parent_name="pie.textfont", **kwargs): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='pie.textfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/textfont/_size.py b/packages/python/plotly/plotly/validators/pie/textfont/_size.py index bc163ab5342..667e43e3c9b 100644 --- a/packages/python/plotly/plotly/validators/pie/textfont/_size.py +++ b/packages/python/plotly/plotly/validators/pie/textfont/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="pie.textfont", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='pie.textfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/textfont/_sizesrc.py b/packages/python/plotly/plotly/validators/pie/textfont/_sizesrc.py index e8c4d79fd5a..bd499b200dc 100644 --- a/packages/python/plotly/plotly/validators/pie/textfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/pie/textfont/_sizesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="sizesrc", parent_name="pie.textfont", **kwargs): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='pie.textfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/textfont/_style.py b/packages/python/plotly/plotly/validators/pie/textfont/_style.py index d4c169651a7..9c45478d098 100644 --- a/packages/python/plotly/plotly/validators/pie/textfont/_style.py +++ b/packages/python/plotly/plotly/validators/pie/textfont/_style.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="style", parent_name="pie.textfont", **kwargs): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='pie.textfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/textfont/_stylesrc.py b/packages/python/plotly/plotly/validators/pie/textfont/_stylesrc.py index 7fb87ebdb24..2b28118f4af 100644 --- a/packages/python/plotly/plotly/validators/pie/textfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/pie/textfont/_stylesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="stylesrc", parent_name="pie.textfont", **kwargs): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='pie.textfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/textfont/_textcase.py b/packages/python/plotly/plotly/validators/pie/textfont/_textcase.py index a9df1d8b063..3b976cc5bfb 100644 --- a/packages/python/plotly/plotly/validators/pie/textfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/pie/textfont/_textcase.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="textcase", parent_name="pie.textfont", **kwargs): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='pie.textfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/textfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/pie/textfont/_textcasesrc.py index 9714e8e4b25..c0b18f80a62 100644 --- a/packages/python/plotly/plotly/validators/pie/textfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/pie/textfont/_textcasesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textcasesrc", parent_name="pie.textfont", **kwargs): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='pie.textfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/textfont/_variant.py b/packages/python/plotly/plotly/validators/pie/textfont/_variant.py index 27bc860dc67..c768fe9385f 100644 --- a/packages/python/plotly/plotly/validators/pie/textfont/_variant.py +++ b/packages/python/plotly/plotly/validators/pie/textfont/_variant.py @@ -1,23 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="variant", parent_name="pie.textfont", **kwargs): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='pie.textfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/textfont/_variantsrc.py b/packages/python/plotly/plotly/validators/pie/textfont/_variantsrc.py index a79cf5d8431..01e6ae4702a 100644 --- a/packages/python/plotly/plotly/validators/pie/textfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/pie/textfont/_variantsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="variantsrc", parent_name="pie.textfont", **kwargs): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='pie.textfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/textfont/_weight.py b/packages/python/plotly/plotly/validators/pie/textfont/_weight.py index eb2ed903f22..f26a3996fb4 100644 --- a/packages/python/plotly/plotly/validators/pie/textfont/_weight.py +++ b/packages/python/plotly/plotly/validators/pie/textfont/_weight.py @@ -1,15 +1,17 @@ -import _plotly_utils.basevalidators - - -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="weight", parent_name="pie.textfont", **kwargs): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='pie.textfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/textfont/_weightsrc.py b/packages/python/plotly/plotly/validators/pie/textfont/_weightsrc.py index 8cc58186e43..54f867bb478 100644 --- a/packages/python/plotly/plotly/validators/pie/textfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/pie/textfont/_weightsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="weightsrc", parent_name="pie.textfont", **kwargs): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='pie.textfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/title/__init__.py b/packages/python/plotly/plotly/validators/pie/title/__init__.py index bedd4ba1767..4f52affeec9 100644 --- a/packages/python/plotly/plotly/validators/pie/title/__init__.py +++ b/packages/python/plotly/plotly/validators/pie/title/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._position import PositionValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._text.TextValidator", - "._position.PositionValidator", - "._font.FontValidator", - ], + ['._text.TextValidator', '._position.PositionValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/pie/title/_font.py b/packages/python/plotly/plotly/validators/pie/title/_font.py index dc7359145a4..181fc013164 100644 --- a/packages/python/plotly/plotly/validators/pie/title/_font.py +++ b/packages/python/plotly/plotly/validators/pie/title/_font.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="pie.title", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='pie.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/title/_position.py b/packages/python/plotly/plotly/validators/pie/title/_position.py index de1de712a2d..5fc1b3c7985 100644 --- a/packages/python/plotly/plotly/validators/pie/title/_position.py +++ b/packages/python/plotly/plotly/validators/pie/title/_position.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class PositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="position", parent_name="pie.title", **kwargs): - super(PositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "top left", - "top center", - "top right", - "middle center", - "bottom left", - "bottom center", - "bottom right", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class PositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='position', + parent_name='pie.title', + **kwargs): + super(PositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['top left', 'top center', 'top right', 'middle center', 'bottom left', 'bottom center', 'bottom right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/title/_text.py b/packages/python/plotly/plotly/validators/pie/title/_text.py index 45178d2e64c..deb5b3616ae 100644 --- a/packages/python/plotly/plotly/validators/pie/title/_text.py +++ b/packages/python/plotly/plotly/validators/pie/title/_text.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="pie.title", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='pie.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/title/font/__init__.py b/packages/python/plotly/plotly/validators/pie/title/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/pie/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/pie/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/pie/title/font/_color.py b/packages/python/plotly/plotly/validators/pie/title/font/_color.py index ebca1fb0169..ab65e07abe7 100644 --- a/packages/python/plotly/plotly/validators/pie/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/pie/title/font/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="pie.title.font", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='pie.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/title/font/_colorsrc.py b/packages/python/plotly/plotly/validators/pie/title/font/_colorsrc.py index 5244a8ff1c1..0c34da1042d 100644 --- a/packages/python/plotly/plotly/validators/pie/title/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/pie/title/font/_colorsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="colorsrc", parent_name="pie.title.font", **kwargs): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='pie.title.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/title/font/_family.py b/packages/python/plotly/plotly/validators/pie/title/font/_family.py index 04cb80f5b41..ce5b4b22e0a 100644 --- a/packages/python/plotly/plotly/validators/pie/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/pie/title/font/_family.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="family", parent_name="pie.title.font", **kwargs): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='pie.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/title/font/_familysrc.py b/packages/python/plotly/plotly/validators/pie/title/font/_familysrc.py index 1415d300f6d..b2266e9acec 100644 --- a/packages/python/plotly/plotly/validators/pie/title/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/pie/title/font/_familysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="familysrc", parent_name="pie.title.font", **kwargs): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='pie.title.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/pie/title/font/_lineposition.py index f5bc7cab642..3a81d119a69 100644 --- a/packages/python/plotly/plotly/validators/pie/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/pie/title/font/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="pie.title.font", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='pie.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/title/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/pie/title/font/_linepositionsrc.py index 0d6aa40f68a..d29299bd0f5 100644 --- a/packages/python/plotly/plotly/validators/pie/title/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/pie/title/font/_linepositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="linepositionsrc", parent_name="pie.title.font", **kwargs - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='pie.title.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/title/font/_shadow.py b/packages/python/plotly/plotly/validators/pie/title/font/_shadow.py index b2503809580..d1417de80a8 100644 --- a/packages/python/plotly/plotly/validators/pie/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/pie/title/font/_shadow.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="shadow", parent_name="pie.title.font", **kwargs): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='pie.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/title/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/pie/title/font/_shadowsrc.py index f92c1c3179e..0b959154598 100644 --- a/packages/python/plotly/plotly/validators/pie/title/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/pie/title/font/_shadowsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="shadowsrc", parent_name="pie.title.font", **kwargs): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='pie.title.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/title/font/_size.py b/packages/python/plotly/plotly/validators/pie/title/font/_size.py index 2b643a0f2c4..24aeeea2aa1 100644 --- a/packages/python/plotly/plotly/validators/pie/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/pie/title/font/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="pie.title.font", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='pie.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/title/font/_sizesrc.py b/packages/python/plotly/plotly/validators/pie/title/font/_sizesrc.py index 0e6a1711d1a..dc9b1a906ae 100644 --- a/packages/python/plotly/plotly/validators/pie/title/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/pie/title/font/_sizesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="sizesrc", parent_name="pie.title.font", **kwargs): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='pie.title.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/title/font/_style.py b/packages/python/plotly/plotly/validators/pie/title/font/_style.py index b86b4fa9ce0..1376e7cd169 100644 --- a/packages/python/plotly/plotly/validators/pie/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/pie/title/font/_style.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="style", parent_name="pie.title.font", **kwargs): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='pie.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/title/font/_stylesrc.py b/packages/python/plotly/plotly/validators/pie/title/font/_stylesrc.py index 0b928717031..e1e678c7100 100644 --- a/packages/python/plotly/plotly/validators/pie/title/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/pie/title/font/_stylesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="stylesrc", parent_name="pie.title.font", **kwargs): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='pie.title.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/title/font/_textcase.py b/packages/python/plotly/plotly/validators/pie/title/font/_textcase.py index 289055989ae..e7a6ca80fec 100644 --- a/packages/python/plotly/plotly/validators/pie/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/pie/title/font/_textcase.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="textcase", parent_name="pie.title.font", **kwargs): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='pie.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/title/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/pie/title/font/_textcasesrc.py index 556cadde040..7f8868a0a33 100644 --- a/packages/python/plotly/plotly/validators/pie/title/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/pie/title/font/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="pie.title.font", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='pie.title.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/title/font/_variant.py b/packages/python/plotly/plotly/validators/pie/title/font/_variant.py index eb19f35fa93..9755f25f7d1 100644 --- a/packages/python/plotly/plotly/validators/pie/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/pie/title/font/_variant.py @@ -1,23 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="variant", parent_name="pie.title.font", **kwargs): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='pie.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/title/font/_variantsrc.py b/packages/python/plotly/plotly/validators/pie/title/font/_variantsrc.py index f0afc43e799..44301d942bb 100644 --- a/packages/python/plotly/plotly/validators/pie/title/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/pie/title/font/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="pie.title.font", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='pie.title.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/title/font/_weight.py b/packages/python/plotly/plotly/validators/pie/title/font/_weight.py index 3b856f65a29..5b5279421b6 100644 --- a/packages/python/plotly/plotly/validators/pie/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/pie/title/font/_weight.py @@ -1,15 +1,17 @@ -import _plotly_utils.basevalidators - - -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="weight", parent_name="pie.title.font", **kwargs): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='pie.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/pie/title/font/_weightsrc.py b/packages/python/plotly/plotly/validators/pie/title/font/_weightsrc.py index e9e8568e761..ac548d85ee6 100644 --- a/packages/python/plotly/plotly/validators/pie/title/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/pie/title/font/_weightsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="weightsrc", parent_name="pie.title.font", **kwargs): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='pie.title.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/__init__.py b/packages/python/plotly/plotly/validators/sankey/__init__.py index 0dd341cd80b..d32e45f461d 100644 --- a/packages/python/plotly/plotly/validators/sankey/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._valuesuffix import ValuesuffixValidator @@ -30,36 +29,10 @@ from ._arrangement import ArrangementValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._valuesuffix.ValuesuffixValidator", - "._valueformat.ValueformatValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._textfont.TextfontValidator", - "._stream.StreamValidator", - "._selectedpoints.SelectedpointsValidator", - "._orientation.OrientationValidator", - "._node.NodeValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._link.LinkValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legend.LegendValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfo.HoverinfoValidator", - "._domain.DomainValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._arrangement.ArrangementValidator", - ], + ['._visible.VisibleValidator', '._valuesuffix.ValuesuffixValidator', '._valueformat.ValueformatValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._textfont.TextfontValidator', '._stream.StreamValidator', '._selectedpoints.SelectedpointsValidator', '._orientation.OrientationValidator', '._node.NodeValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._link.LinkValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legend.LegendValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfo.HoverinfoValidator', '._domain.DomainValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._arrangement.ArrangementValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sankey/_arrangement.py b/packages/python/plotly/plotly/validators/sankey/_arrangement.py index eaa87b42181..8973b8520f8 100644 --- a/packages/python/plotly/plotly/validators/sankey/_arrangement.py +++ b/packages/python/plotly/plotly/validators/sankey/_arrangement.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ArrangementValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="arrangement", parent_name="sankey", **kwargs): - super(ArrangementValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["snap", "perpendicular", "freeform", "fixed"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrangementValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='arrangement', + parent_name='sankey', + **kwargs): + super(ArrangementValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['snap', 'perpendicular', 'freeform', 'fixed']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/_customdata.py b/packages/python/plotly/plotly/validators/sankey/_customdata.py index 82d6f56ded6..b17378efa27 100644 --- a/packages/python/plotly/plotly/validators/sankey/_customdata.py +++ b/packages/python/plotly/plotly/validators/sankey/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="sankey", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='sankey', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/_customdatasrc.py b/packages/python/plotly/plotly/validators/sankey/_customdatasrc.py index 28d03753229..cbdfef33556 100644 --- a/packages/python/plotly/plotly/validators/sankey/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/sankey/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="sankey", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='sankey', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/_domain.py b/packages/python/plotly/plotly/validators/sankey/_domain.py index 49f08934c44..72957bf13d0 100644 --- a/packages/python/plotly/plotly/validators/sankey/_domain.py +++ b/packages/python/plotly/plotly/validators/sankey/_domain.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="domain", parent_name="sankey", **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 sankey trace . - row - If there is a layout grid, use the domain for - this row in the grid for this sankey trace . - x - Sets the horizontal domain of this sankey trace - (in plot fraction). - y - Sets the vertical domain of this sankey trace - (in plot fraction). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DomainValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='domain', + parent_name='sankey', + **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', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/_hoverinfo.py b/packages/python/plotly/plotly/validators/sankey/_hoverinfo.py index 0eaec18c769..5af7875a856 100644 --- a/packages/python/plotly/plotly/validators/sankey/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/sankey/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="sankey", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", []), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='sankey', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', []), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/_hoverlabel.py b/packages/python/plotly/plotly/validators/sankey/_hoverlabel.py index 274e3802edb..708a2bd2ae3 100644 --- a/packages/python/plotly/plotly/validators/sankey/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/sankey/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="sankey", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='sankey', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/_ids.py b/packages/python/plotly/plotly/validators/sankey/_ids.py index 17f678fb7d2..2df1a1e310d 100644 --- a/packages/python/plotly/plotly/validators/sankey/_ids.py +++ b/packages/python/plotly/plotly/validators/sankey/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="sankey", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='sankey', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/_idssrc.py b/packages/python/plotly/plotly/validators/sankey/_idssrc.py index b11c849c893..b57a98e538b 100644 --- a/packages/python/plotly/plotly/validators/sankey/_idssrc.py +++ b/packages/python/plotly/plotly/validators/sankey/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="sankey", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='sankey', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/_legend.py b/packages/python/plotly/plotly/validators/sankey/_legend.py index e67b2337e62..27aaa19e8e4 100644 --- a/packages/python/plotly/plotly/validators/sankey/_legend.py +++ b/packages/python/plotly/plotly/validators/sankey/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="sankey", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='sankey', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/sankey/_legendgrouptitle.py index 146731e4166..a248eabce9a 100644 --- a/packages/python/plotly/plotly/validators/sankey/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/sankey/_legendgrouptitle.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="legendgrouptitle", parent_name="sankey", **kwargs): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='sankey', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/_legendrank.py b/packages/python/plotly/plotly/validators/sankey/_legendrank.py index efca79efb6c..ab7a428a81e 100644 --- a/packages/python/plotly/plotly/validators/sankey/_legendrank.py +++ b/packages/python/plotly/plotly/validators/sankey/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="sankey", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='sankey', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/_legendwidth.py b/packages/python/plotly/plotly/validators/sankey/_legendwidth.py index 1fe5d518cad..923c879e3dd 100644 --- a/packages/python/plotly/plotly/validators/sankey/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/sankey/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="sankey", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='sankey', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/_link.py b/packages/python/plotly/plotly/validators/sankey/_link.py index bf04e16e764..14634ed96b0 100644 --- a/packages/python/plotly/plotly/validators/sankey/_link.py +++ b/packages/python/plotly/plotly/validators/sankey/_link.py @@ -1,126 +1,15 @@ -import _plotly_utils.basevalidators -class LinkValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="link", parent_name="sankey", **kwargs): - super(LinkValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Link"), - data_docs=kwargs.pop( - "data_docs", - """ - arrowlen - Sets the length (in px) of the links arrow, if - 0 no arrow will be drawn. - color - Sets the `link` color. It can be a single - value, or an array for specifying color for - each `link`. If `link.color` is omitted, then - by default, a translucent grey link will be - used. - colorscales - A tuple of :class:`plotly.graph_objects.sankey. - link.Colorscale` instances or dicts with - compatible properties - colorscaledefaults - When used in a template (as layout.template.dat - a.sankey.link.colorscaledefaults), sets the - default property values to use for elements of - sankey.link.colorscales - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - customdata - Assigns extra data to each link. - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - hovercolor - Sets the `link` hover color. It can be a single - value, or an array for specifying hover colors - for each `link`. If `link.hovercolor` is - omitted, then by default, links will become - slightly more opaque when hovered over. - hovercolorsrc - Sets the source reference on Chart Studio Cloud - for `hovercolor`. - hoverinfo - Determines which trace information appear when - hovering links. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverlabel - :class:`plotly.graph_objects.sankey.link.Hoverl - abel` instance or dict with compatible - properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Variables `source` and `target` are node - objects.Finally, the template string has access - to variables `value` and `label`. Anything - contained in tag `` is displayed in the - secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - label - The shown name of the link. - labelsrc - Sets the source reference on Chart Studio Cloud - for `label`. - line - :class:`plotly.graph_objects.sankey.link.Line` - instance or dict with compatible properties - source - An integer number `[0..nodes.length - 1]` that - represents the source node. - sourcesrc - Sets the source reference on Chart Studio Cloud - for `source`. - target - An integer number `[0..nodes.length - 1]` that - represents the target node. - targetsrc - Sets the source reference on Chart Studio Cloud - for `target`. - value - A numeric value representing the flow volume - value. - valuesrc - Sets the source reference on Chart Studio Cloud - for `value`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinkValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='link', + parent_name='sankey', + **kwargs): + super(LinkValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Link'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/_meta.py b/packages/python/plotly/plotly/validators/sankey/_meta.py index b9c24c5929d..b85b2a84957 100644 --- a/packages/python/plotly/plotly/validators/sankey/_meta.py +++ b/packages/python/plotly/plotly/validators/sankey/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="sankey", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='sankey', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/_metasrc.py b/packages/python/plotly/plotly/validators/sankey/_metasrc.py index 081283b280e..1e8d20db8b2 100644 --- a/packages/python/plotly/plotly/validators/sankey/_metasrc.py +++ b/packages/python/plotly/plotly/validators/sankey/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="sankey", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='sankey', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/_name.py b/packages/python/plotly/plotly/validators/sankey/_name.py index ad0332850fe..862dde3ee53 100644 --- a/packages/python/plotly/plotly/validators/sankey/_name.py +++ b/packages/python/plotly/plotly/validators/sankey/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="sankey", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='sankey', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/_node.py b/packages/python/plotly/plotly/validators/sankey/_node.py index 8454ce9285b..4797c9e735d 100644 --- a/packages/python/plotly/plotly/validators/sankey/_node.py +++ b/packages/python/plotly/plotly/validators/sankey/_node.py @@ -1,110 +1,15 @@ -import _plotly_utils.basevalidators -class NodeValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="node", parent_name="sankey", **kwargs): - super(NodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Node"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the alignment method used to position the - nodes along the horizontal axis. - color - Sets the `node` color. It can be a single - value, or an array for specifying color for - each `node`. If `node.color` is omitted, then - the default `Plotly` color palette will be - cycled through to have a variety of colors. - These defaults are not fully opaque, to allow - some visibility of what is beneath the node. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - customdata - Assigns extra data to each node. - customdatasrc - Sets the source reference on Chart Studio Cloud - for `customdata`. - groups - Groups of nodes. Each group is defined by an - array with the indices of the nodes it - contains. Multiple groups can be specified. - hoverinfo - Determines which trace information appear when - hovering nodes. If `none` or `skip` are set, no - information is displayed upon hovering. But, if - `none` is set, click and hover events are still - fired. - hoverlabel - :class:`plotly.graph_objects.sankey.node.Hoverl - abel` instance or dict with compatible - properties - hovertemplate - Template string used for rendering the - information that appear on hover box. Note that - this will override `hoverinfo`. Variables are - inserted using %{variable}, for example "y: - %{y}" as well as %{xother}, {%_xother}, - {%_xother_}, {%xother_}. When showing info for - several points, "xother" will be added to those - with different x positions from the first - point. An underscore before or after - "(x|y)other" will add a space on that side, - only when this field is shown. Numbers are - formatted using d3-format's syntax - %{variable:d3-format}, for example "Price: - %{y:$.2f}". https://github.com/d3/d3- - format/tree/v1.4.5#d3-format for details on the - formatting syntax. Dates are formatted using - d3-time-format's syntax %{variable|d3-time- - format}, for example "Day: %{2019-01-01|%A}". - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format for details on - the date formatting syntax. The variables - available in `hovertemplate` are the ones - emitted as event data described at this link - https://plotly.com/javascript/plotlyjs- - events/#event-data. Additionally, every - attributes that can be specified per-point (the - ones that are `arrayOk: true`) are available. - Variables `sourceLinks` and `targetLinks` are - arrays of link objects.Finally, the template - string has access to variables `value` and - `label`. Anything contained in tag `` is - displayed in the secondary box, for example - "{fullData.name}". To hide the - secondary box completely, use an empty tag - ``. - hovertemplatesrc - Sets the source reference on Chart Studio Cloud - for `hovertemplate`. - label - The shown name of the node. - labelsrc - Sets the source reference on Chart Studio Cloud - for `label`. - line - :class:`plotly.graph_objects.sankey.node.Line` - instance or dict with compatible properties - pad - Sets the padding (in px) between the `nodes`. - thickness - Sets the thickness (in px) of the `nodes`. - x - The normalized horizontal position of the node. - xsrc - Sets the source reference on Chart Studio Cloud - for `x`. - y - The normalized vertical position of the node. - ysrc - Sets the source reference on Chart Studio Cloud - for `y`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NodeValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='node', + parent_name='sankey', + **kwargs): + super(NodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Node'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/_orientation.py b/packages/python/plotly/plotly/validators/sankey/_orientation.py index 40ecb8b773f..4a03a53285e 100644 --- a/packages/python/plotly/plotly/validators/sankey/_orientation.py +++ b/packages/python/plotly/plotly/validators/sankey/_orientation.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="orientation", parent_name="sankey", **kwargs): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["v", "h"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='sankey', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['v', 'h']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/_selectedpoints.py b/packages/python/plotly/plotly/validators/sankey/_selectedpoints.py index cd67a735ace..4b3fe54aa91 100644 --- a/packages/python/plotly/plotly/validators/sankey/_selectedpoints.py +++ b/packages/python/plotly/plotly/validators/sankey/_selectedpoints.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="selectedpoints", parent_name="sankey", **kwargs): - super(SelectedpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedpointsValidator(_bv.AnyValidator): + def __init__(self, plotly_name='selectedpoints', + parent_name='sankey', + **kwargs): + super(SelectedpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/_stream.py b/packages/python/plotly/plotly/validators/sankey/_stream.py index e834751cde3..b6e0b6cdc9e 100644 --- a/packages/python/plotly/plotly/validators/sankey/_stream.py +++ b/packages/python/plotly/plotly/validators/sankey/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="sankey", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='sankey', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/_textfont.py b/packages/python/plotly/plotly/validators/sankey/_textfont.py index ec33a088eb2..f9c31fb3b27 100644 --- a/packages/python/plotly/plotly/validators/sankey/_textfont.py +++ b/packages/python/plotly/plotly/validators/sankey/_textfont.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="textfont", parent_name="sankey", **kwargs): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='sankey', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/_uid.py b/packages/python/plotly/plotly/validators/sankey/_uid.py index fc04ad24fbd..16cd68eb47c 100644 --- a/packages/python/plotly/plotly/validators/sankey/_uid.py +++ b/packages/python/plotly/plotly/validators/sankey/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="sankey", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='sankey', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/_uirevision.py b/packages/python/plotly/plotly/validators/sankey/_uirevision.py index 9e35762607d..755a6a9614e 100644 --- a/packages/python/plotly/plotly/validators/sankey/_uirevision.py +++ b/packages/python/plotly/plotly/validators/sankey/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="sankey", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='sankey', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/_valueformat.py b/packages/python/plotly/plotly/validators/sankey/_valueformat.py index ea67d393097..5abb59539fb 100644 --- a/packages/python/plotly/plotly/validators/sankey/_valueformat.py +++ b/packages/python/plotly/plotly/validators/sankey/_valueformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ValueformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="valueformat", parent_name="sankey", **kwargs): - super(ValueformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='valueformat', + parent_name='sankey', + **kwargs): + super(ValueformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/_valuesuffix.py b/packages/python/plotly/plotly/validators/sankey/_valuesuffix.py index 2b452a6902a..1b651d4db1b 100644 --- a/packages/python/plotly/plotly/validators/sankey/_valuesuffix.py +++ b/packages/python/plotly/plotly/validators/sankey/_valuesuffix.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ValuesuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="valuesuffix", parent_name="sankey", **kwargs): - super(ValuesuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValuesuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='valuesuffix', + parent_name='sankey', + **kwargs): + super(ValuesuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/_visible.py b/packages/python/plotly/plotly/validators/sankey/_visible.py index 67349bb0c5f..8cf5b13ccc6 100644 --- a/packages/python/plotly/plotly/validators/sankey/_visible.py +++ b/packages/python/plotly/plotly/validators/sankey/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="sankey", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='sankey', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/domain/__init__.py b/packages/python/plotly/plotly/validators/sankey/domain/__init__.py index 67de5030d0a..705a2194402 100644 --- a/packages/python/plotly/plotly/validators/sankey/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/domain/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._y import YValidator from ._x import XValidator @@ -8,14 +7,10 @@ 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", - ], + ['._y.YValidator', '._x.XValidator', '._row.RowValidator', '._column.ColumnValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sankey/domain/_column.py b/packages/python/plotly/plotly/validators/sankey/domain/_column.py index 0682b9ddcc0..cd817479c76 100644 --- a/packages/python/plotly/plotly/validators/sankey/domain/_column.py +++ b/packages/python/plotly/plotly/validators/sankey/domain/_column.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="column", parent_name="sankey.domain", **kwargs): - super(ColumnValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColumnValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='column', + parent_name='sankey.domain', + **kwargs): + super(ColumnValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/domain/_row.py b/packages/python/plotly/plotly/validators/sankey/domain/_row.py index 61904898d18..89d55374dc4 100644 --- a/packages/python/plotly/plotly/validators/sankey/domain/_row.py +++ b/packages/python/plotly/plotly/validators/sankey/domain/_row.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="row", parent_name="sankey.domain", **kwargs): - super(RowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RowValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='row', + parent_name='sankey.domain', + **kwargs): + super(RowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/domain/_x.py b/packages/python/plotly/plotly/validators/sankey/domain/_x.py index a4439e0d9a2..3f15e5e98ba 100644 --- a/packages/python/plotly/plotly/validators/sankey/domain/_x.py +++ b/packages/python/plotly/plotly/validators/sankey/domain/_x.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="x", parent_name="sankey.domain", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='x', + parent_name='sankey.domain', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}, {'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/domain/_y.py b/packages/python/plotly/plotly/validators/sankey/domain/_y.py index 7b27417cf58..c632e3f1b24 100644 --- a/packages/python/plotly/plotly/validators/sankey/domain/_y.py +++ b/packages/python/plotly/plotly/validators/sankey/domain/_y.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="y", parent_name="sankey.domain", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='y', + parent_name='sankey.domain', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}, {'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/_align.py index 6eb102f7d4f..39c03be8080 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/_align.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="align", parent_name="sankey.hoverlabel", **kwargs): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='sankey.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/_alignsrc.py index f37beff299c..e769232414a 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="sankey.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='sankey.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/_bgcolor.py index c515e878d64..ae911ac6625 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="sankey.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='sankey.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/_bgcolorsrc.py index e82e40fdf09..afda4af630e 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="sankey.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='sankey.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/_bordercolor.py index 58ad66911d8..5bc9c69f7ea 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="sankey.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='sankey.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/_bordercolorsrc.py index 1473c4760f0..9bb1e8f291a 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bordercolorsrc", parent_name="sankey.hoverlabel", **kwargs - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='sankey.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/_font.py index bf27a49656d..e7b67250612 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/_font.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="sankey.hoverlabel", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='sankey.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/_namelength.py index dcddc578c70..33b62d98149 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="sankey.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='sankey.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/_namelengthsrc.py index c0dc818d58c..6d14dfdae83 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="sankey.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='sankey.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_color.py index fa5012a6ba9..f2206769c56 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="sankey.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='sankey.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_colorsrc.py index cd50f46e980..c5f39690d2f 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="sankey.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='sankey.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_family.py index fbf81b801b5..4308696e21a 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="sankey.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='sankey.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_familysrc.py index 7a965cd6e66..bddee1c7ff7 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="sankey.hoverlabel.font", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='sankey.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_lineposition.py index 1d7d1e2a88e..a053120f062 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="sankey.hoverlabel.font", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='sankey.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_linepositionsrc.py index c0abdb61578..e318def240b 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="sankey.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='sankey.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_shadow.py index 6c8af66ff66..b9055107b24 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="sankey.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='sankey.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_shadowsrc.py index 611023ae427..b8495836e4f 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="sankey.hoverlabel.font", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='sankey.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_size.py index 2db6aad84de..ce8eaba2d40 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="sankey.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='sankey.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_sizesrc.py index 1e2d99dc81c..22162fa04d4 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="sankey.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='sankey.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_style.py index 7c1e5b85d73..5807bb7a9ab 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="sankey.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='sankey.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_stylesrc.py index 049091162de..98c183bda4f 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="sankey.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='sankey.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_textcase.py index d904a2257d2..94641bb00fd 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="sankey.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='sankey.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_textcasesrc.py index 54227cb8dde..a32d5df4633 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="sankey.hoverlabel.font", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='sankey.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_variant.py index f648db56a07..2663a1a4c54 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="sankey.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='sankey.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_variantsrc.py index 9a86416f1b0..02116679a9f 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="sankey.hoverlabel.font", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='sankey.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_weight.py index b9f9cf32a4a..4ad9f3b76d0 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="sankey.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='sankey.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_weightsrc.py index ef19f80f20a..08ae083e814 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="sankey.hoverlabel.font", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='sankey.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/_font.py index e5b84314e50..71fa610edda 100644 --- a/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="sankey.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='sankey.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/_text.py index 0da2bdbadd0..e2940e51d81 100644 --- a/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="sankey.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='sankey.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_color.py index d02c13ed529..0fea69be550 100644 --- a/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="sankey.legendgrouptitle.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='sankey.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_family.py index 1c7721f28c2..7457991f8e0 100644 --- a/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="sankey.legendgrouptitle.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='sankey.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_lineposition.py index b94a1229182..42e7d1191df 100644 --- a/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="sankey.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='sankey.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_shadow.py index c12d45b8789..a766ea548dc 100644 --- a/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="sankey.legendgrouptitle.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='sankey.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_size.py index f4128c909cf..e13592ab9f3 100644 --- a/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="sankey.legendgrouptitle.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='sankey.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_style.py index 643c9547835..fc017e10ba7 100644 --- a/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="sankey.legendgrouptitle.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='sankey.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_textcase.py index e2e288b0cec..9a1061c106a 100644 --- a/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="sankey.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='sankey.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_variant.py index b51817c849e..c5d8b7e53c4 100644 --- a/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="sankey.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='sankey.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_weight.py index 2578cebc618..281b82e7a07 100644 --- a/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/sankey/legendgrouptitle/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="sankey.legendgrouptitle.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='sankey.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/__init__.py b/packages/python/plotly/plotly/validators/sankey/link/__init__.py index 8305b5d1d37..3679e563757 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/link/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._valuesrc import ValuesrcValidator from ._value import ValueValidator @@ -26,32 +25,10 @@ from ._arrowlen import ArrowlenValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._valuesrc.ValuesrcValidator", - "._value.ValueValidator", - "._targetsrc.TargetsrcValidator", - "._target.TargetValidator", - "._sourcesrc.SourcesrcValidator", - "._source.SourceValidator", - "._line.LineValidator", - "._labelsrc.LabelsrcValidator", - "._label.LabelValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfo.HoverinfoValidator", - "._hovercolorsrc.HovercolorsrcValidator", - "._hovercolor.HovercolorValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._colorsrc.ColorsrcValidator", - "._colorscaledefaults.ColorscaledefaultsValidator", - "._colorscales.ColorscalesValidator", - "._color.ColorValidator", - "._arrowlen.ArrowlenValidator", - ], + ['._valuesrc.ValuesrcValidator', '._value.ValueValidator', '._targetsrc.TargetsrcValidator', '._target.TargetValidator', '._sourcesrc.SourcesrcValidator', '._source.SourceValidator', '._line.LineValidator', '._labelsrc.LabelsrcValidator', '._label.LabelValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfo.HoverinfoValidator', '._hovercolorsrc.HovercolorsrcValidator', '._hovercolor.HovercolorValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._colorsrc.ColorsrcValidator', '._colorscaledefaults.ColorscaledefaultsValidator', '._colorscales.ColorscalesValidator', '._color.ColorValidator', '._arrowlen.ArrowlenValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sankey/link/_arrowlen.py b/packages/python/plotly/plotly/validators/sankey/link/_arrowlen.py index b3d9f5e2768..6d21b632b82 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/_arrowlen.py +++ b/packages/python/plotly/plotly/validators/sankey/link/_arrowlen.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ArrowlenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="arrowlen", parent_name="sankey.link", **kwargs): - super(ArrowlenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrowlenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='arrowlen', + parent_name='sankey.link', + **kwargs): + super(ArrowlenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/_color.py b/packages/python/plotly/plotly/validators/sankey/link/_color.py index d9bb10306bd..b831d246812 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/_color.py +++ b/packages/python/plotly/plotly/validators/sankey/link/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="sankey.link", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='sankey.link', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/_colorscaledefaults.py b/packages/python/plotly/plotly/validators/sankey/link/_colorscaledefaults.py index e43c7c95c94..aad19309ff9 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/_colorscaledefaults.py +++ b/packages/python/plotly/plotly/validators/sankey/link/_colorscaledefaults.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class ColorscaledefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="colorscaledefaults", parent_name="sankey.link", **kwargs - ): - super(ColorscaledefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Colorscale"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorscaledefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorscaledefaults', + parent_name='sankey.link', + **kwargs): + super(ColorscaledefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Colorscale'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/_colorscales.py b/packages/python/plotly/plotly/validators/sankey/link/_colorscales.py index a4b70322acf..6fbc00248b5 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/_colorscales.py +++ b/packages/python/plotly/plotly/validators/sankey/link/_colorscales.py @@ -1,58 +1,15 @@ -import _plotly_utils.basevalidators -class ColorscalesValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__(self, plotly_name="colorscales", parent_name="sankey.link", **kwargs): - super(ColorscalesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Colorscale"), - data_docs=kwargs.pop( - "data_docs", - """ - cmax - Sets the upper bound of the color domain. - cmin - Sets the lower bound of the color domain. - colorscale - Sets the colorscale. The colorscale must be an - array containing arrays mapping a normalized - value to an rgb, rgba, hex, hsl, hsv, or named - color string. At minimum, a mapping for the - lowest (0) and highest (1) values are required. - For example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use `cmin` and - `cmax`. Alternatively, `colorscale` may be a - palette name string of the following list: Blac - kbody,Bluered,Blues,Cividis,Earth,Electric,Gree - ns,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,R - eds,Viridis,YlGnBu,YlOrRd. - label - The label of the links to color based on their - concentration within a flow. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorscalesValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='colorscales', + parent_name='sankey.link', + **kwargs): + super(ColorscalesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Colorscale'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/_colorsrc.py b/packages/python/plotly/plotly/validators/sankey/link/_colorsrc.py index 23dfa887160..10b17af589d 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/link/_colorsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="colorsrc", parent_name="sankey.link", **kwargs): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='sankey.link', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/_customdata.py b/packages/python/plotly/plotly/validators/sankey/link/_customdata.py index 93b888cbe64..7ac1fed8220 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/_customdata.py +++ b/packages/python/plotly/plotly/validators/sankey/link/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="sankey.link", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='sankey.link', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/_customdatasrc.py b/packages/python/plotly/plotly/validators/sankey/link/_customdatasrc.py index 644e9e69dc4..6ff57a8e44c 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/sankey/link/_customdatasrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="customdatasrc", parent_name="sankey.link", **kwargs - ): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='sankey.link', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/_hovercolor.py b/packages/python/plotly/plotly/validators/sankey/link/_hovercolor.py index d5ce4c2b154..12713f2187a 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/_hovercolor.py +++ b/packages/python/plotly/plotly/validators/sankey/link/_hovercolor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="hovercolor", parent_name="sankey.link", **kwargs): - super(HovercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='hovercolor', + parent_name='sankey.link', + **kwargs): + super(HovercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/_hovercolorsrc.py b/packages/python/plotly/plotly/validators/sankey/link/_hovercolorsrc.py index 027057cac44..0db5f6024a1 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/_hovercolorsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/link/_hovercolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovercolorsrc", parent_name="sankey.link", **kwargs - ): - super(HovercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovercolorsrc', + parent_name='sankey.link', + **kwargs): + super(HovercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/_hoverinfo.py b/packages/python/plotly/plotly/validators/sankey/link/_hoverinfo.py index 67539c8a1d0..d51ff2d1db9 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/sankey/link/_hoverinfo.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="sankey.link", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "none", "skip"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='sankey.link', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'none', 'skip']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/_hoverlabel.py b/packages/python/plotly/plotly/validators/sankey/link/_hoverlabel.py index 3c16e4f3455..516d4c0e193 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/sankey/link/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="sankey.link", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='sankey.link', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/_hovertemplate.py b/packages/python/plotly/plotly/validators/sankey/link/_hovertemplate.py index bdcbf9e3b5a..af6476604dd 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/sankey/link/_hovertemplate.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="hovertemplate", parent_name="sankey.link", **kwargs - ): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='sankey.link', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/sankey/link/_hovertemplatesrc.py index f46bdaa4a18..bc4aca12aa7 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/sankey/link/_hovertemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertemplatesrc", parent_name="sankey.link", **kwargs - ): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='sankey.link', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/_label.py b/packages/python/plotly/plotly/validators/sankey/link/_label.py index 3e8f2b76053..59389900cba 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/_label.py +++ b/packages/python/plotly/plotly/validators/sankey/link/_label.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LabelValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="label", parent_name="sankey.link", **kwargs): - super(LabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='label', + parent_name='sankey.link', + **kwargs): + super(LabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/_labelsrc.py b/packages/python/plotly/plotly/validators/sankey/link/_labelsrc.py index 6f4908b8232..4d5cb4f267d 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/_labelsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/link/_labelsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LabelsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="labelsrc", parent_name="sankey.link", **kwargs): - super(LabelsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='labelsrc', + parent_name='sankey.link', + **kwargs): + super(LabelsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/_line.py b/packages/python/plotly/plotly/validators/sankey/link/_line.py index d1c7160a305..b350e839fa9 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/_line.py +++ b/packages/python/plotly/plotly/validators/sankey/link/_line.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="sankey.link", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the color of the `line` around each - `link`. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - width - Sets the width (in px) of the `line` around - each `link`. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='sankey.link', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/_source.py b/packages/python/plotly/plotly/validators/sankey/link/_source.py index dd043fca01f..c3f73a6647f 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/_source.py +++ b/packages/python/plotly/plotly/validators/sankey/link/_source.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SourceValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="source", parent_name="sankey.link", **kwargs): - super(SourceValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SourceValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='source', + parent_name='sankey.link', + **kwargs): + super(SourceValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/_sourcesrc.py b/packages/python/plotly/plotly/validators/sankey/link/_sourcesrc.py index 1f614cc76ed..2cab5af2940 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/_sourcesrc.py +++ b/packages/python/plotly/plotly/validators/sankey/link/_sourcesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SourcesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="sourcesrc", parent_name="sankey.link", **kwargs): - super(SourcesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SourcesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sourcesrc', + parent_name='sankey.link', + **kwargs): + super(SourcesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/_target.py b/packages/python/plotly/plotly/validators/sankey/link/_target.py index 753a795b26c..ca2a1e095b6 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/_target.py +++ b/packages/python/plotly/plotly/validators/sankey/link/_target.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TargetValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="target", parent_name="sankey.link", **kwargs): - super(TargetValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TargetValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='target', + parent_name='sankey.link', + **kwargs): + super(TargetValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/_targetsrc.py b/packages/python/plotly/plotly/validators/sankey/link/_targetsrc.py index 0ee7b2a4db6..5eec358ca65 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/_targetsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/link/_targetsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TargetsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="targetsrc", parent_name="sankey.link", **kwargs): - super(TargetsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TargetsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='targetsrc', + parent_name='sankey.link', + **kwargs): + super(TargetsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/_value.py b/packages/python/plotly/plotly/validators/sankey/link/_value.py index 8ab0b55d3e3..73484f13586 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/_value.py +++ b/packages/python/plotly/plotly/validators/sankey/link/_value.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="value", parent_name="sankey.link", **kwargs): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='value', + parent_name='sankey.link', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/_valuesrc.py b/packages/python/plotly/plotly/validators/sankey/link/_valuesrc.py index 421f12e3d47..19568309f0f 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/_valuesrc.py +++ b/packages/python/plotly/plotly/validators/sankey/link/_valuesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ValuesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="valuesrc", parent_name="sankey.link", **kwargs): - super(ValuesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValuesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='valuesrc', + parent_name='sankey.link', + **kwargs): + super(ValuesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/colorscale/__init__.py b/packages/python/plotly/plotly/validators/sankey/link/colorscale/__init__.py index a254f9c1217..b4d78b9a46d 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/colorscale/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/link/colorscale/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._templateitemname import TemplateitemnameValidator from ._name import NameValidator @@ -10,16 +9,10 @@ from ._cmax import CmaxValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._label.LabelValidator", - "._colorscale.ColorscaleValidator", - "._cmin.CminValidator", - "._cmax.CmaxValidator", - ], + ['._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._label.LabelValidator', '._colorscale.ColorscaleValidator', '._cmin.CminValidator', '._cmax.CmaxValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sankey/link/colorscale/_cmax.py b/packages/python/plotly/plotly/validators/sankey/link/colorscale/_cmax.py index b353593e079..c09912b2796 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/colorscale/_cmax.py +++ b/packages/python/plotly/plotly/validators/sankey/link/colorscale/_cmax.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmax", parent_name="sankey.link.colorscale", **kwargs - ): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='sankey.link.colorscale', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/colorscale/_cmin.py b/packages/python/plotly/plotly/validators/sankey/link/colorscale/_cmin.py index 876d83969c5..cee93d89aee 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/colorscale/_cmin.py +++ b/packages/python/plotly/plotly/validators/sankey/link/colorscale/_cmin.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmin", parent_name="sankey.link.colorscale", **kwargs - ): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='sankey.link.colorscale', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/colorscale/_colorscale.py b/packages/python/plotly/plotly/validators/sankey/link/colorscale/_colorscale.py index 35d5c019203..11444fb154f 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/colorscale/_colorscale.py +++ b/packages/python/plotly/plotly/validators/sankey/link/colorscale/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="sankey.link.colorscale", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='sankey.link.colorscale', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/colorscale/_label.py b/packages/python/plotly/plotly/validators/sankey/link/colorscale/_label.py index 9be3de6a211..f3add735153 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/colorscale/_label.py +++ b/packages/python/plotly/plotly/validators/sankey/link/colorscale/_label.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="label", parent_name="sankey.link.colorscale", **kwargs - ): - super(LabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelValidator(_bv.StringValidator): + def __init__(self, plotly_name='label', + parent_name='sankey.link.colorscale', + **kwargs): + super(LabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/colorscale/_name.py b/packages/python/plotly/plotly/validators/sankey/link/colorscale/_name.py index dcf794b4a9b..3aef5c42a06 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/colorscale/_name.py +++ b/packages/python/plotly/plotly/validators/sankey/link/colorscale/_name.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="name", parent_name="sankey.link.colorscale", **kwargs - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='sankey.link.colorscale', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/colorscale/_templateitemname.py b/packages/python/plotly/plotly/validators/sankey/link/colorscale/_templateitemname.py index e916f97bfef..6f4120c3f0a 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/colorscale/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/sankey/link/colorscale/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="sankey.link.colorscale", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='sankey.link.colorscale', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_align.py index 3ff1d4e2700..6c009fbee30 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_align.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="align", parent_name="sankey.link.hoverlabel", **kwargs - ): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='sankey.link.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_alignsrc.py index 50f3532e932..951372e8db1 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="sankey.link.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='sankey.link.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_bgcolor.py index ee7d9dd453f..4db63d698de 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="sankey.link.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='sankey.link.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_bgcolorsrc.py index 3ac467a64ab..53a3dc1c7fd 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="sankey.link.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='sankey.link.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_bordercolor.py index 74ffe401148..7d88fd98cfe 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="sankey.link.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='sankey.link.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_bordercolorsrc.py index 63d6a355379..096ab4c0ae5 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="bordercolorsrc", - parent_name="sankey.link.hoverlabel", - **kwargs, - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='sankey.link.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_font.py index 79ca7b1a7b0..640838ee7ad 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_font.py @@ -1,88 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="sankey.link.hoverlabel", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='sankey.link.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_namelength.py index 9008b94cdee..846a0db4f0d 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="sankey.link.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='sankey.link.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_namelengthsrc.py index 70a235d33b7..72ae8847a0d 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/_namelengthsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="namelengthsrc", - parent_name="sankey.link.hoverlabel", - **kwargs, - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='sankey.link.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_color.py index 00aa5793684..bedf81fcbd1 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="sankey.link.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='sankey.link.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_colorsrc.py index b0dda7a5355..cccb26d00dd 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_colorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="colorsrc", - parent_name="sankey.link.hoverlabel.font", - **kwargs, - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='sankey.link.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_family.py index fc08e322b2e..e7ef6f53c8b 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="sankey.link.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='sankey.link.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_familysrc.py index df32dae0ab8..4a70389c9ee 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_familysrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="familysrc", - parent_name="sankey.link.hoverlabel.font", - **kwargs, - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='sankey.link.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_lineposition.py index 22805593211..901f10e5be1 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="sankey.link.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='sankey.link.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_linepositionsrc.py index 181f820a25e..6580debc273 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="sankey.link.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='sankey.link.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_shadow.py index 910220d7f7f..2577129a7de 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="sankey.link.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='sankey.link.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_shadowsrc.py index 55701ddaa49..e0e57920de1 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="shadowsrc", - parent_name="sankey.link.hoverlabel.font", - **kwargs, - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='sankey.link.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_size.py index 1ebcc885213..aa0fd605d3a 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="sankey.link.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='sankey.link.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_sizesrc.py index 4b6dcc6c1db..6eb0cb20b86 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="sankey.link.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='sankey.link.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_style.py index 03146f40908..49215176855 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="sankey.link.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='sankey.link.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_stylesrc.py index 631ad9eb4cb..d019a8886bf 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_stylesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="stylesrc", - parent_name="sankey.link.hoverlabel.font", - **kwargs, - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='sankey.link.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_textcase.py index 5bd609f5aeb..3a2f33ea989 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_textcase.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="sankey.link.hoverlabel.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='sankey.link.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_textcasesrc.py index 3f7091b4d6d..714ad3eb40c 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="sankey.link.hoverlabel.font", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='sankey.link.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_variant.py index 40b47e8ed2d..fa4363170ae 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="sankey.link.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='sankey.link.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_variantsrc.py index ae2d861985c..3b6b94dd131 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_variantsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="variantsrc", - parent_name="sankey.link.hoverlabel.font", - **kwargs, - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='sankey.link.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_weight.py index 16a2d5319af..eb60977a1d0 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="sankey.link.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='sankey.link.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_weightsrc.py index f99fb456d74..b10d81e3518 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/_weightsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="weightsrc", - parent_name="sankey.link.hoverlabel.font", - **kwargs, - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='sankey.link.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/line/__init__.py b/packages/python/plotly/plotly/validators/sankey/link/line/__init__.py index a2b9e1ae50c..522c01899cf 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/line/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/link/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._widthsrc import WidthsrcValidator from ._width import WidthValidator @@ -8,14 +7,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._widthsrc.WidthsrcValidator", - "._width.WidthValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._widthsrc.WidthsrcValidator', '._width.WidthValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sankey/link/line/_color.py b/packages/python/plotly/plotly/validators/sankey/link/line/_color.py index 35020a81d8d..a6ec677d3b3 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/line/_color.py +++ b/packages/python/plotly/plotly/validators/sankey/link/line/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="sankey.link.line", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='sankey.link.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/line/_colorsrc.py b/packages/python/plotly/plotly/validators/sankey/link/line/_colorsrc.py index 91c79d3b0ca..bf3143526d3 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/line/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/link/line/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="sankey.link.line", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='sankey.link.line', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/line/_width.py b/packages/python/plotly/plotly/validators/sankey/link/line/_width.py index 69cf8d4c75a..7c05eb45651 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/line/_width.py +++ b/packages/python/plotly/plotly/validators/sankey/link/line/_width.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="sankey.link.line", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='sankey.link.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/link/line/_widthsrc.py b/packages/python/plotly/plotly/validators/sankey/link/line/_widthsrc.py index b36b401b321..9332f54cd44 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/line/_widthsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/link/line/_widthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="widthsrc", parent_name="sankey.link.line", **kwargs - ): - super(WidthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='widthsrc', + parent_name='sankey.link.line', + **kwargs): + super(WidthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/__init__.py b/packages/python/plotly/plotly/validators/sankey/node/__init__.py index 276f46d65c3..e1cedbb98da 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/node/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._ysrc import YsrcValidator from ._y import YValidator @@ -23,29 +22,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._ysrc.YsrcValidator", - "._y.YValidator", - "._xsrc.XsrcValidator", - "._x.XValidator", - "._thickness.ThicknessValidator", - "._pad.PadValidator", - "._line.LineValidator", - "._labelsrc.LabelsrcValidator", - "._label.LabelValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfo.HoverinfoValidator", - "._groups.GroupsValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - "._align.AlignValidator", - ], + ['._ysrc.YsrcValidator', '._y.YValidator', '._xsrc.XsrcValidator', '._x.XValidator', '._thickness.ThicknessValidator', '._pad.PadValidator', '._line.LineValidator', '._labelsrc.LabelsrcValidator', '._label.LabelValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfo.HoverinfoValidator', '._groups.GroupsValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sankey/node/_align.py b/packages/python/plotly/plotly/validators/sankey/node/_align.py index 8fb0e5d4ff3..2074f995d72 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/_align.py +++ b/packages/python/plotly/plotly/validators/sankey/node/_align.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="align", parent_name="sankey.node", **kwargs): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["justify", "left", "right", "center"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='sankey.node', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['justify', 'left', 'right', 'center']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/_color.py b/packages/python/plotly/plotly/validators/sankey/node/_color.py index 38d96c1b5e5..585dc14b2bc 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/_color.py +++ b/packages/python/plotly/plotly/validators/sankey/node/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="sankey.node", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='sankey.node', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/_colorsrc.py b/packages/python/plotly/plotly/validators/sankey/node/_colorsrc.py index 2ee3d545537..e1908499bf4 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/node/_colorsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="colorsrc", parent_name="sankey.node", **kwargs): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='sankey.node', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/_customdata.py b/packages/python/plotly/plotly/validators/sankey/node/_customdata.py index 732a433fbc7..51e36a36783 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/_customdata.py +++ b/packages/python/plotly/plotly/validators/sankey/node/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="sankey.node", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='sankey.node', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/_customdatasrc.py b/packages/python/plotly/plotly/validators/sankey/node/_customdatasrc.py index aa461679bf6..1a39ee8db89 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/sankey/node/_customdatasrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="customdatasrc", parent_name="sankey.node", **kwargs - ): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='sankey.node', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/_groups.py b/packages/python/plotly/plotly/validators/sankey/node/_groups.py index fbfeef94c4f..e5b1e148c38 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/_groups.py +++ b/packages/python/plotly/plotly/validators/sankey/node/_groups.py @@ -1,15 +1,17 @@ -import _plotly_utils.basevalidators - - -class GroupsValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="groups", parent_name="sankey.node", **kwargs): - super(GroupsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dimensions=kwargs.pop("dimensions", 2), - edit_type=kwargs.pop("edit_type", "calc"), - free_length=kwargs.pop("free_length", True), - implied_edits=kwargs.pop("implied_edits", {"x": [], "y": []}), - items=kwargs.pop("items", {"editType": "calc", "valType": "number"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GroupsValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='groups', + parent_name='sankey.node', + **kwargs): + super(GroupsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dimensions=kwargs.pop('dimensions', 2), + edit_type=kwargs.pop('edit_type', 'calc'), + free_length=kwargs.pop('free_length', True), + implied_edits=kwargs.pop('implied_edits', {'x': [], 'y': []}), + items=kwargs.pop('items', {'editType': 'calc', 'valType': 'number'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/_hoverinfo.py b/packages/python/plotly/plotly/validators/sankey/node/_hoverinfo.py index c2b14f208d7..26cd7602948 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/sankey/node/_hoverinfo.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="sankey.node", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "none", "skip"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='sankey.node', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'none', 'skip']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/_hoverlabel.py b/packages/python/plotly/plotly/validators/sankey/node/_hoverlabel.py index fb122b3de5c..911bfda8dd8 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/sankey/node/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="sankey.node", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='sankey.node', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/_hovertemplate.py b/packages/python/plotly/plotly/validators/sankey/node/_hovertemplate.py index c3e7c48bd03..7b52a55c039 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/sankey/node/_hovertemplate.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="hovertemplate", parent_name="sankey.node", **kwargs - ): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='sankey.node', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/sankey/node/_hovertemplatesrc.py index cb51f2d1bea..a35326436ec 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/sankey/node/_hovertemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertemplatesrc", parent_name="sankey.node", **kwargs - ): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='sankey.node', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/_label.py b/packages/python/plotly/plotly/validators/sankey/node/_label.py index bfd193e6b3a..d9f27f3edb8 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/_label.py +++ b/packages/python/plotly/plotly/validators/sankey/node/_label.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LabelValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="label", parent_name="sankey.node", **kwargs): - super(LabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='label', + parent_name='sankey.node', + **kwargs): + super(LabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/_labelsrc.py b/packages/python/plotly/plotly/validators/sankey/node/_labelsrc.py index 1d838efc9ae..7596a1bba77 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/_labelsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/node/_labelsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LabelsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="labelsrc", parent_name="sankey.node", **kwargs): - super(LabelsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='labelsrc', + parent_name='sankey.node', + **kwargs): + super(LabelsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/_line.py b/packages/python/plotly/plotly/validators/sankey/node/_line.py index 12b142be92c..dbbff786560 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/_line.py +++ b/packages/python/plotly/plotly/validators/sankey/node/_line.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="sankey.node", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the color of the `line` around each - `node`. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - width - Sets the width (in px) of the `line` around - each `node`. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='sankey.node', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/_pad.py b/packages/python/plotly/plotly/validators/sankey/node/_pad.py index 4e0555f9fcf..52796b78c1e 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/_pad.py +++ b/packages/python/plotly/plotly/validators/sankey/node/_pad.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class PadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="pad", parent_name="sankey.node", **kwargs): - super(PadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class PadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='pad', + parent_name='sankey.node', + **kwargs): + super(PadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/_thickness.py b/packages/python/plotly/plotly/validators/sankey/node/_thickness.py index 61278520d2c..5cf498220e6 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/_thickness.py +++ b/packages/python/plotly/plotly/validators/sankey/node/_thickness.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="thickness", parent_name="sankey.node", **kwargs): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='sankey.node', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/_x.py b/packages/python/plotly/plotly/validators/sankey/node/_x.py index a3294d6e52b..6f29bf2fef6 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/_x.py +++ b/packages/python/plotly/plotly/validators/sankey/node/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="x", parent_name="sankey.node", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='x', + parent_name='sankey.node', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/_xsrc.py b/packages/python/plotly/plotly/validators/sankey/node/_xsrc.py index 8e8608365bc..d412e003ada 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/_xsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/node/_xsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="xsrc", parent_name="sankey.node", **kwargs): - super(XsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='xsrc', + parent_name='sankey.node', + **kwargs): + super(XsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/_y.py b/packages/python/plotly/plotly/validators/sankey/node/_y.py index 427b5f84407..35afd7a731a 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/_y.py +++ b/packages/python/plotly/plotly/validators/sankey/node/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="y", parent_name="sankey.node", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='y', + parent_name='sankey.node', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/_ysrc.py b/packages/python/plotly/plotly/validators/sankey/node/_ysrc.py index 7f98949907f..807cb96e713 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/_ysrc.py +++ b/packages/python/plotly/plotly/validators/sankey/node/_ysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="ysrc", parent_name="sankey.node", **kwargs): - super(YsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ysrc', + parent_name='sankey.node', + **kwargs): + super(YsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_align.py index 3bfa41a8bd3..7c1f9e5170d 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_align.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="align", parent_name="sankey.node.hoverlabel", **kwargs - ): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='sankey.node.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_alignsrc.py index 634ace9bf40..8d082eeed9a 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="sankey.node.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='sankey.node.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_bgcolor.py index 262e5b9ef8c..d9f71b9e737 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="sankey.node.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='sankey.node.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_bgcolorsrc.py index dba4f6661a0..1d6412c658a 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="sankey.node.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='sankey.node.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_bordercolor.py index 126fdacddf4..d2ad0d237db 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="sankey.node.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='sankey.node.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_bordercolorsrc.py index 56b9ad6e321..f5594309ccd 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="bordercolorsrc", - parent_name="sankey.node.hoverlabel", - **kwargs, - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='sankey.node.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_font.py index 23cb89b9255..05057be0074 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_font.py @@ -1,88 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="sankey.node.hoverlabel", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='sankey.node.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_namelength.py index 2861043ecc6..6afc0ee2b25 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="sankey.node.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='sankey.node.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_namelengthsrc.py index accdb33406e..abdba127d80 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_namelengthsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="namelengthsrc", - parent_name="sankey.node.hoverlabel", - **kwargs, - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='sankey.node.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_color.py index 66768a82ba0..13911557557 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="sankey.node.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='sankey.node.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_colorsrc.py index b7202c304bd..2ccecc9a710 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_colorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="colorsrc", - parent_name="sankey.node.hoverlabel.font", - **kwargs, - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='sankey.node.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_family.py index 77d0a78ab0c..856b6cce37c 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="sankey.node.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='sankey.node.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_familysrc.py index 6aca70b0201..5be261bef15 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_familysrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="familysrc", - parent_name="sankey.node.hoverlabel.font", - **kwargs, - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='sankey.node.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_lineposition.py index daf70f34a83..92cf864b8fa 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="sankey.node.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='sankey.node.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_linepositionsrc.py index 19fd6d0b6f6..f46761f7ab5 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="sankey.node.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='sankey.node.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_shadow.py index ecf1fa534d4..a97d0763e47 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="sankey.node.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='sankey.node.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_shadowsrc.py index 7f7a8c66eb4..8989e067307 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="shadowsrc", - parent_name="sankey.node.hoverlabel.font", - **kwargs, - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='sankey.node.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_size.py index 604fadb6071..fa012ae9211 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="sankey.node.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='sankey.node.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_sizesrc.py index 881e8afaf36..e8cf4adf745 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="sankey.node.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='sankey.node.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_style.py index 842eb81fbe7..c88a04fe893 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="sankey.node.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='sankey.node.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_stylesrc.py index e7ad82d34dd..fb546ca782e 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_stylesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="stylesrc", - parent_name="sankey.node.hoverlabel.font", - **kwargs, - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='sankey.node.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_textcase.py index f216f8ec52e..f9ab8d5054b 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_textcase.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="sankey.node.hoverlabel.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='sankey.node.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_textcasesrc.py index a8a4ebdfba7..008664115c6 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="sankey.node.hoverlabel.font", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='sankey.node.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_variant.py index 7c9899669a2..5c9e3a97a49 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="sankey.node.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='sankey.node.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_variantsrc.py index 63d72225793..dc0e691d080 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_variantsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="variantsrc", - parent_name="sankey.node.hoverlabel.font", - **kwargs, - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='sankey.node.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_weight.py index 27b24f234ab..76229cc0e1a 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="sankey.node.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='sankey.node.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_weightsrc.py index bf7357c7471..bc457bcae5b 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/_weightsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="weightsrc", - parent_name="sankey.node.hoverlabel.font", - **kwargs, - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='sankey.node.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/line/__init__.py b/packages/python/plotly/plotly/validators/sankey/node/line/__init__.py index a2b9e1ae50c..522c01899cf 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/line/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/node/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._widthsrc import WidthsrcValidator from ._width import WidthValidator @@ -8,14 +7,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._widthsrc.WidthsrcValidator", - "._width.WidthValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._widthsrc.WidthsrcValidator', '._width.WidthValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sankey/node/line/_color.py b/packages/python/plotly/plotly/validators/sankey/node/line/_color.py index a6243323552..c0e101dabab 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/line/_color.py +++ b/packages/python/plotly/plotly/validators/sankey/node/line/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="sankey.node.line", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='sankey.node.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/line/_colorsrc.py b/packages/python/plotly/plotly/validators/sankey/node/line/_colorsrc.py index 080e1036ccf..a04ae981dcd 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/line/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/node/line/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="sankey.node.line", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='sankey.node.line', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/line/_width.py b/packages/python/plotly/plotly/validators/sankey/node/line/_width.py index 4bf67584325..9c06b172b66 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/line/_width.py +++ b/packages/python/plotly/plotly/validators/sankey/node/line/_width.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="sankey.node.line", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='sankey.node.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/node/line/_widthsrc.py b/packages/python/plotly/plotly/validators/sankey/node/line/_widthsrc.py index fa20b58773e..2d293d20ffb 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/line/_widthsrc.py +++ b/packages/python/plotly/plotly/validators/sankey/node/line/_widthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="widthsrc", parent_name="sankey.node.line", **kwargs - ): - super(WidthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='widthsrc', + parent_name='sankey.node.line', + **kwargs): + super(WidthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/stream/__init__.py b/packages/python/plotly/plotly/validators/sankey/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/sankey/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sankey/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/sankey/stream/_maxpoints.py index a1c24121ac1..d505e03d89e 100644 --- a/packages/python/plotly/plotly/validators/sankey/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/sankey/stream/_maxpoints.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="maxpoints", parent_name="sankey.stream", **kwargs): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='sankey.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/stream/_token.py b/packages/python/plotly/plotly/validators/sankey/stream/_token.py index f320836bc45..d90a6d15625 100644 --- a/packages/python/plotly/plotly/validators/sankey/stream/_token.py +++ b/packages/python/plotly/plotly/validators/sankey/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="sankey.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='sankey.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/textfont/__init__.py b/packages/python/plotly/plotly/validators/sankey/textfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/sankey/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/textfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sankey/textfont/_color.py b/packages/python/plotly/plotly/validators/sankey/textfont/_color.py index 269cf114c23..640f6b7dd7e 100644 --- a/packages/python/plotly/plotly/validators/sankey/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/sankey/textfont/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="sankey.textfont", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='sankey.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/textfont/_family.py b/packages/python/plotly/plotly/validators/sankey/textfont/_family.py index 46acb450e80..cbdead20995 100644 --- a/packages/python/plotly/plotly/validators/sankey/textfont/_family.py +++ b/packages/python/plotly/plotly/validators/sankey/textfont/_family.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="family", parent_name="sankey.textfont", **kwargs): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='sankey.textfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/textfont/_lineposition.py b/packages/python/plotly/plotly/validators/sankey/textfont/_lineposition.py index 8db1857a8d6..fc2b5e39b00 100644 --- a/packages/python/plotly/plotly/validators/sankey/textfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/sankey/textfont/_lineposition.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="sankey.textfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='sankey.textfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/textfont/_shadow.py b/packages/python/plotly/plotly/validators/sankey/textfont/_shadow.py index 57dadf284e4..dfef01b7b07 100644 --- a/packages/python/plotly/plotly/validators/sankey/textfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/sankey/textfont/_shadow.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="shadow", parent_name="sankey.textfont", **kwargs): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='sankey.textfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/textfont/_size.py b/packages/python/plotly/plotly/validators/sankey/textfont/_size.py index 4d3ccdd73a4..de882830188 100644 --- a/packages/python/plotly/plotly/validators/sankey/textfont/_size.py +++ b/packages/python/plotly/plotly/validators/sankey/textfont/_size.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="sankey.textfont", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='sankey.textfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/textfont/_style.py b/packages/python/plotly/plotly/validators/sankey/textfont/_style.py index 04ee72afc6b..24f29143f63 100644 --- a/packages/python/plotly/plotly/validators/sankey/textfont/_style.py +++ b/packages/python/plotly/plotly/validators/sankey/textfont/_style.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="style", parent_name="sankey.textfont", **kwargs): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='sankey.textfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/textfont/_textcase.py b/packages/python/plotly/plotly/validators/sankey/textfont/_textcase.py index 7e2a8788f64..8b29c6c4fe2 100644 --- a/packages/python/plotly/plotly/validators/sankey/textfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/sankey/textfont/_textcase.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="textcase", parent_name="sankey.textfont", **kwargs): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='sankey.textfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/textfont/_variant.py b/packages/python/plotly/plotly/validators/sankey/textfont/_variant.py index b61bd5ebd51..a9d1bf902bd 100644 --- a/packages/python/plotly/plotly/validators/sankey/textfont/_variant.py +++ b/packages/python/plotly/plotly/validators/sankey/textfont/_variant.py @@ -1,22 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="variant", parent_name="sankey.textfont", **kwargs): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='sankey.textfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sankey/textfont/_weight.py b/packages/python/plotly/plotly/validators/sankey/textfont/_weight.py index 886b67fb3e6..b6c680bf7ff 100644 --- a/packages/python/plotly/plotly/validators/sankey/textfont/_weight.py +++ b/packages/python/plotly/plotly/validators/sankey/textfont/_weight.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="weight", parent_name="sankey.textfont", **kwargs): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='sankey.textfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/__init__.py b/packages/python/plotly/plotly/validators/scatter/__init__.py index e159bfe4564..596a8a5bb3c 100644 --- a/packages/python/plotly/plotly/validators/scatter/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zorder import ZorderValidator from ._ysrc import YsrcValidator @@ -78,84 +77,10 @@ from ._alignmentgroup import AlignmentgroupValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zorder.ZorderValidator", - "._ysrc.YsrcValidator", - "._yperiodalignment.YperiodalignmentValidator", - "._yperiod0.Yperiod0Validator", - "._yperiod.YperiodValidator", - "._yhoverformat.YhoverformatValidator", - "._ycalendar.YcalendarValidator", - "._yaxis.YaxisValidator", - "._y0.Y0Validator", - "._y.YValidator", - "._xsrc.XsrcValidator", - "._xperiodalignment.XperiodalignmentValidator", - "._xperiod0.Xperiod0Validator", - "._xperiod.XperiodValidator", - "._xhoverformat.XhoverformatValidator", - "._xcalendar.XcalendarValidator", - "._xaxis.XaxisValidator", - "._x0.X0Validator", - "._x.XValidator", - "._visible.VisibleValidator", - "._unselected.UnselectedValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._texttemplatesrc.TexttemplatesrcValidator", - "._texttemplate.TexttemplateValidator", - "._textsrc.TextsrcValidator", - "._textpositionsrc.TextpositionsrcValidator", - "._textposition.TextpositionValidator", - "._textfont.TextfontValidator", - "._text.TextValidator", - "._stream.StreamValidator", - "._stackgroup.StackgroupValidator", - "._stackgaps.StackgapsValidator", - "._showlegend.ShowlegendValidator", - "._selectedpoints.SelectedpointsValidator", - "._selected.SelectedValidator", - "._orientation.OrientationValidator", - "._opacity.OpacityValidator", - "._offsetgroup.OffsetgroupValidator", - "._name.NameValidator", - "._mode.ModeValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._marker.MarkerValidator", - "._line.LineValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoveron.HoveronValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._groupnorm.GroupnormValidator", - "._fillpattern.FillpatternValidator", - "._fillgradient.FillgradientValidator", - "._fillcolor.FillcolorValidator", - "._fill.FillValidator", - "._error_y.Error_YValidator", - "._error_x.Error_XValidator", - "._dy.DyValidator", - "._dx.DxValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._connectgaps.ConnectgapsValidator", - "._cliponaxis.CliponaxisValidator", - "._alignmentgroup.AlignmentgroupValidator", - ], + ['._zorder.ZorderValidator', '._ysrc.YsrcValidator', '._yperiodalignment.YperiodalignmentValidator', '._yperiod0.Yperiod0Validator', '._yperiod.YperiodValidator', '._yhoverformat.YhoverformatValidator', '._ycalendar.YcalendarValidator', '._yaxis.YaxisValidator', '._y0.Y0Validator', '._y.YValidator', '._xsrc.XsrcValidator', '._xperiodalignment.XperiodalignmentValidator', '._xperiod0.Xperiod0Validator', '._xperiod.XperiodValidator', '._xhoverformat.XhoverformatValidator', '._xcalendar.XcalendarValidator', '._xaxis.XaxisValidator', '._x0.X0Validator', '._x.XValidator', '._visible.VisibleValidator', '._unselected.UnselectedValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._texttemplatesrc.TexttemplatesrcValidator', '._texttemplate.TexttemplateValidator', '._textsrc.TextsrcValidator', '._textpositionsrc.TextpositionsrcValidator', '._textposition.TextpositionValidator', '._textfont.TextfontValidator', '._text.TextValidator', '._stream.StreamValidator', '._stackgroup.StackgroupValidator', '._stackgaps.StackgapsValidator', '._showlegend.ShowlegendValidator', '._selectedpoints.SelectedpointsValidator', '._selected.SelectedValidator', '._orientation.OrientationValidator', '._opacity.OpacityValidator', '._offsetgroup.OffsetgroupValidator', '._name.NameValidator', '._mode.ModeValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._marker.MarkerValidator', '._line.LineValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoveron.HoveronValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._groupnorm.GroupnormValidator', '._fillpattern.FillpatternValidator', '._fillgradient.FillgradientValidator', '._fillcolor.FillcolorValidator', '._fill.FillValidator', '._error_y.Error_YValidator', '._error_x.Error_XValidator', '._dy.DyValidator', '._dx.DxValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._connectgaps.ConnectgapsValidator', '._cliponaxis.CliponaxisValidator', '._alignmentgroup.AlignmentgroupValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter/_alignmentgroup.py b/packages/python/plotly/plotly/validators/scatter/_alignmentgroup.py index ca18b414bde..08963e0fd49 100644 --- a/packages/python/plotly/plotly/validators/scatter/_alignmentgroup.py +++ b/packages/python/plotly/plotly/validators/scatter/_alignmentgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AlignmentgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="alignmentgroup", parent_name="scatter", **kwargs): - super(AlignmentgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AlignmentgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='alignmentgroup', + parent_name='scatter', + **kwargs): + super(AlignmentgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_cliponaxis.py b/packages/python/plotly/plotly/validators/scatter/_cliponaxis.py index 59c66acfefb..4b0aac7a3fa 100644 --- a/packages/python/plotly/plotly/validators/scatter/_cliponaxis.py +++ b/packages/python/plotly/plotly/validators/scatter/_cliponaxis.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CliponaxisValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cliponaxis", parent_name="scatter", **kwargs): - super(CliponaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CliponaxisValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cliponaxis', + parent_name='scatter', + **kwargs): + super(CliponaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_connectgaps.py b/packages/python/plotly/plotly/validators/scatter/_connectgaps.py index c4bd9971678..167b35accf7 100644 --- a/packages/python/plotly/plotly/validators/scatter/_connectgaps.py +++ b/packages/python/plotly/plotly/validators/scatter/_connectgaps.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="connectgaps", parent_name="scatter", **kwargs): - super(ConnectgapsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ConnectgapsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='connectgaps', + parent_name='scatter', + **kwargs): + super(ConnectgapsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_customdata.py b/packages/python/plotly/plotly/validators/scatter/_customdata.py index 090b0d59f88..d3be930186c 100644 --- a/packages/python/plotly/plotly/validators/scatter/_customdata.py +++ b/packages/python/plotly/plotly/validators/scatter/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="scatter", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='scatter', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_customdatasrc.py b/packages/python/plotly/plotly/validators/scatter/_customdatasrc.py index 2706d063898..f281b5248de 100644 --- a/packages/python/plotly/plotly/validators/scatter/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/scatter/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="scatter", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='scatter', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_dx.py b/packages/python/plotly/plotly/validators/scatter/_dx.py index 01b2f94bd81..7858ffa28be 100644 --- a/packages/python/plotly/plotly/validators/scatter/_dx.py +++ b/packages/python/plotly/plotly/validators/scatter/_dx.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class DxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="dx", parent_name="scatter", **kwargs): - super(DxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dx', + parent_name='scatter', + **kwargs): + super(DxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_dy.py b/packages/python/plotly/plotly/validators/scatter/_dy.py index 21736ea4027..b3cb282aff2 100644 --- a/packages/python/plotly/plotly/validators/scatter/_dy.py +++ b/packages/python/plotly/plotly/validators/scatter/_dy.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class DyValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="dy", parent_name="scatter", **kwargs): - super(DyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DyValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dy', + parent_name='scatter', + **kwargs): + super(DyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_error_x.py b/packages/python/plotly/plotly/validators/scatter/_error_x.py index e5346b58da0..0dfea9bf2b7 100644 --- a/packages/python/plotly/plotly/validators/scatter/_error_x.py +++ b/packages/python/plotly/plotly/validators/scatter/_error_x.py @@ -1,73 +1,15 @@ -import _plotly_utils.basevalidators -class Error_XValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="error_x", parent_name="scatter", **kwargs): - super(Error_XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ErrorX"), - data_docs=kwargs.pop( - "data_docs", - """ - array - Sets the data corresponding the length of each - error bar. Values are plotted relative to the - underlying data. - arrayminus - Sets the data corresponding the length of each - error bar in the bottom (left) direction for - vertical (horizontal) bars Values are plotted - relative to the underlying data. - arrayminussrc - Sets the source reference on Chart Studio Cloud - for `arrayminus`. - arraysrc - Sets the source reference on Chart Studio Cloud - for `array`. - color - Sets the stroke color of the error bars. - copy_ystyle +import _plotly_utils.basevalidators as _bv - symmetric - Determines whether or not the error bars have - the same length in both direction (top/bottom - for vertical bars, left/right for horizontal - bars. - thickness - Sets the thickness (in px) of the error bars. - traceref - tracerefminus - - type - Determines the rule used to generate the error - bars. If *constant`, the bar lengths are of a - constant value. Set this constant in `value`. - If "percent", the bar lengths correspond to a - percentage of underlying data. Set this - percentage in `value`. If "sqrt", the bar - lengths correspond to the square of the - underlying data. If "data", the bar lengths are - set with data set `array`. - value - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars. - valueminus - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars in the bottom - (left) direction for vertical (horizontal) bars - visible - Determines whether or not this set of error - bars is visible. - width - Sets the width (in px) of the cross-bar at both - ends of the error bars. -""", - ), - **kwargs, - ) +class Error_XValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='error_x', + parent_name='scatter', + **kwargs): + super(Error_XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ErrorX'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_error_y.py b/packages/python/plotly/plotly/validators/scatter/_error_y.py index e07a28ac018..8de31c6f428 100644 --- a/packages/python/plotly/plotly/validators/scatter/_error_y.py +++ b/packages/python/plotly/plotly/validators/scatter/_error_y.py @@ -1,71 +1,15 @@ -import _plotly_utils.basevalidators -class Error_YValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="error_y", parent_name="scatter", **kwargs): - super(Error_YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ErrorY"), - data_docs=kwargs.pop( - "data_docs", - """ - array - Sets the data corresponding the length of each - error bar. Values are plotted relative to the - underlying data. - arrayminus - Sets the data corresponding the length of each - error bar in the bottom (left) direction for - vertical (horizontal) bars Values are plotted - relative to the underlying data. - arrayminussrc - Sets the source reference on Chart Studio Cloud - for `arrayminus`. - arraysrc - Sets the source reference on Chart Studio Cloud - for `array`. - color - Sets the stroke color of the error bars. - symmetric - Determines whether or not the error bars have - the same length in both direction (top/bottom - for vertical bars, left/right for horizontal - bars. - thickness - Sets the thickness (in px) of the error bars. - traceref +import _plotly_utils.basevalidators as _bv - tracerefminus - type - Determines the rule used to generate the error - bars. If *constant`, the bar lengths are of a - constant value. Set this constant in `value`. - If "percent", the bar lengths correspond to a - percentage of underlying data. Set this - percentage in `value`. If "sqrt", the bar - lengths correspond to the square of the - underlying data. If "data", the bar lengths are - set with data set `array`. - value - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars. - valueminus - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars in the bottom - (left) direction for vertical (horizontal) bars - visible - Determines whether or not this set of error - bars is visible. - width - Sets the width (in px) of the cross-bar at both - ends of the error bars. -""", - ), - **kwargs, - ) +class Error_YValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='error_y', + parent_name='scatter', + **kwargs): + super(Error_YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ErrorY'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_fill.py b/packages/python/plotly/plotly/validators/scatter/_fill.py index d15757193c0..f62a90b81bf 100644 --- a/packages/python/plotly/plotly/validators/scatter/_fill.py +++ b/packages/python/plotly/plotly/validators/scatter/_fill.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class FillValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="fill", parent_name="scatter", **kwargs): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "none", - "tozeroy", - "tozerox", - "tonexty", - "tonextx", - "toself", - "tonext", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='fill', + parent_name='scatter', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['none', 'tozeroy', 'tozerox', 'tonexty', 'tonextx', 'toself', 'tonext']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_fillcolor.py b/packages/python/plotly/plotly/validators/scatter/_fillcolor.py index fe530a47c7c..0e62a0ea68e 100644 --- a/packages/python/plotly/plotly/validators/scatter/_fillcolor.py +++ b/packages/python/plotly/plotly/validators/scatter/_fillcolor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="fillcolor", parent_name="scatter", **kwargs): - super(FillcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fillcolor', + parent_name='scatter', + **kwargs): + super(FillcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_fillgradient.py b/packages/python/plotly/plotly/validators/scatter/_fillgradient.py index 73720a9a9f1..f229985b683 100644 --- a/packages/python/plotly/plotly/validators/scatter/_fillgradient.py +++ b/packages/python/plotly/plotly/validators/scatter/_fillgradient.py @@ -1,45 +1,15 @@ -import _plotly_utils.basevalidators -class FillgradientValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="fillgradient", parent_name="scatter", **kwargs): - super(FillgradientValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Fillgradient"), - data_docs=kwargs.pop( - "data_docs", - """ - colorscale - Sets the fill gradient colors as a color scale. - The color scale is interpreted as a gradient - applied in the direction specified by - "orientation", from the lowest to the highest - value of the scatter plot along that axis, or - from the center to the most distant point from - it, if orientation is "radial". - start - Sets the gradient start value. It is given as - the absolute position on the axis determined by - the orientiation. E.g., if orientation is - "horizontal", the gradient will be horizontal - and start from the x-position given by start. - If omitted, the gradient starts at the lowest - value of the trace along the respective axis. - Ignored if orientation is "radial". - stop - Sets the gradient end value. It is given as the - absolute position on the axis determined by the - orientiation. E.g., if orientation is - "horizontal", the gradient will be horizontal - and end at the x-position given by end. If - omitted, the gradient ends at the highest value - of the trace along the respective axis. Ignored - if orientation is "radial". - type - Sets the type/orientation of the color gradient - for the fill. Defaults to "none". -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FillgradientValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='fillgradient', + parent_name='scatter', + **kwargs): + super(FillgradientValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Fillgradient'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_fillpattern.py b/packages/python/plotly/plotly/validators/scatter/_fillpattern.py index fdb1c740b30..a8d0f862f02 100644 --- a/packages/python/plotly/plotly/validators/scatter/_fillpattern.py +++ b/packages/python/plotly/plotly/validators/scatter/_fillpattern.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class FillpatternValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="fillpattern", parent_name="scatter", **kwargs): - super(FillpatternValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Fillpattern"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - When there is no colorscale sets the color of - background pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "overlay". Otherwise, defaults to a transparent - background. - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - fgcolor - When there is no colorscale sets the color of - foreground pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "replace". Otherwise, defaults to dark grey or - white to increase contrast with the `bgcolor`. - fgcolorsrc - Sets the source reference on Chart Studio Cloud - for `fgcolor`. - fgopacity - Sets the opacity of the foreground pattern - fill. Defaults to a 0.5 when `fillmode` is - "overlay". Otherwise, defaults to 1. - fillmode - Determines whether `marker.color` should be - used as a default to `bgcolor` or a `fgcolor`. - shape - Sets the shape of the pattern fill. By default, - no pattern is used for filling the area. - shapesrc - Sets the source reference on Chart Studio Cloud - for `shape`. - size - Sets the size of unit squares of the pattern - fill in pixels, which corresponds to the - interval of repetition of the pattern. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - solidity - Sets the solidity of the pattern fill. Solidity - is roughly the fraction of the area filled by - the pattern. Solidity of 0 shows only the - background color without pattern and solidty of - 1 shows only the foreground color without - pattern. - soliditysrc - Sets the source reference on Chart Studio Cloud - for `solidity`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FillpatternValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='fillpattern', + parent_name='scatter', + **kwargs): + super(FillpatternValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Fillpattern'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_groupnorm.py b/packages/python/plotly/plotly/validators/scatter/_groupnorm.py index 0632d4d67d5..9bef51bcf5a 100644 --- a/packages/python/plotly/plotly/validators/scatter/_groupnorm.py +++ b/packages/python/plotly/plotly/validators/scatter/_groupnorm.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class GroupnormValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="groupnorm", parent_name="scatter", **kwargs): - super(GroupnormValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["", "fraction", "percent"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GroupnormValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='groupnorm', + parent_name='scatter', + **kwargs): + super(GroupnormValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['', 'fraction', 'percent']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_hoverinfo.py b/packages/python/plotly/plotly/validators/scatter/_hoverinfo.py index 43634ee462c..376d395e39f 100644 --- a/packages/python/plotly/plotly/validators/scatter/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/scatter/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="scatter", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='scatter', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/scatter/_hoverinfosrc.py index 06019dd6141..c74b85140aa 100644 --- a/packages/python/plotly/plotly/validators/scatter/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/scatter/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="scatter", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='scatter', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_hoverlabel.py b/packages/python/plotly/plotly/validators/scatter/_hoverlabel.py index 1b64a02fec9..66a02adbc10 100644 --- a/packages/python/plotly/plotly/validators/scatter/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/scatter/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="scatter", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='scatter', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_hoveron.py b/packages/python/plotly/plotly/validators/scatter/_hoveron.py index baabd083301..2ff680760b4 100644 --- a/packages/python/plotly/plotly/validators/scatter/_hoveron.py +++ b/packages/python/plotly/plotly/validators/scatter/_hoveron.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HoveronValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoveron", parent_name="scatter", **kwargs): - super(HoveronValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - flags=kwargs.pop("flags", ["points", "fills"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoveronValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoveron', + parent_name='scatter', + **kwargs): + super(HoveronValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + flags=kwargs.pop('flags', ['points', 'fills']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_hovertemplate.py b/packages/python/plotly/plotly/validators/scatter/_hovertemplate.py index 52e197df315..e1ccf7ea9a6 100644 --- a/packages/python/plotly/plotly/validators/scatter/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/scatter/_hovertemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="scatter", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='scatter', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/scatter/_hovertemplatesrc.py index e627b9e02a9..48c008712ff 100644 --- a/packages/python/plotly/plotly/validators/scatter/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/scatter/_hovertemplatesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertemplatesrc", parent_name="scatter", **kwargs): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='scatter', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_hovertext.py b/packages/python/plotly/plotly/validators/scatter/_hovertext.py index 22b354ab602..aa6e4ddb4d9 100644 --- a/packages/python/plotly/plotly/validators/scatter/_hovertext.py +++ b/packages/python/plotly/plotly/validators/scatter/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="scatter", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='scatter', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_hovertextsrc.py b/packages/python/plotly/plotly/validators/scatter/_hovertextsrc.py index 81d223fb599..5a9f87ee199 100644 --- a/packages/python/plotly/plotly/validators/scatter/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/scatter/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="scatter", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='scatter', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_ids.py b/packages/python/plotly/plotly/validators/scatter/_ids.py index c3cfad87ca5..979724ba632 100644 --- a/packages/python/plotly/plotly/validators/scatter/_ids.py +++ b/packages/python/plotly/plotly/validators/scatter/_ids.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="scatter", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='scatter', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_idssrc.py b/packages/python/plotly/plotly/validators/scatter/_idssrc.py index f0fe9f64529..a425cf9d30b 100644 --- a/packages/python/plotly/plotly/validators/scatter/_idssrc.py +++ b/packages/python/plotly/plotly/validators/scatter/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="scatter", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='scatter', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_legend.py b/packages/python/plotly/plotly/validators/scatter/_legend.py index d7dc121acfd..64b0a9ad0e3 100644 --- a/packages/python/plotly/plotly/validators/scatter/_legend.py +++ b/packages/python/plotly/plotly/validators/scatter/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="scatter", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='scatter', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_legendgroup.py b/packages/python/plotly/plotly/validators/scatter/_legendgroup.py index 9e1dfe13711..4f9e83a3b11 100644 --- a/packages/python/plotly/plotly/validators/scatter/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/scatter/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="scatter", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='scatter', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/scatter/_legendgrouptitle.py index 971b297a128..85aa3af599a 100644 --- a/packages/python/plotly/plotly/validators/scatter/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/scatter/_legendgrouptitle.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="legendgrouptitle", parent_name="scatter", **kwargs): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='scatter', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_legendrank.py b/packages/python/plotly/plotly/validators/scatter/_legendrank.py index e9c879ad94a..93d1df6b340 100644 --- a/packages/python/plotly/plotly/validators/scatter/_legendrank.py +++ b/packages/python/plotly/plotly/validators/scatter/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="scatter", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='scatter', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_legendwidth.py b/packages/python/plotly/plotly/validators/scatter/_legendwidth.py index 13ea667e058..e0eacd79f82 100644 --- a/packages/python/plotly/plotly/validators/scatter/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/scatter/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="scatter", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='scatter', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_line.py b/packages/python/plotly/plotly/validators/scatter/_line.py index b6d3c5fa7e8..d32a18b2dcf 100644 --- a/packages/python/plotly/plotly/validators/scatter/_line.py +++ b/packages/python/plotly/plotly/validators/scatter/_line.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="scatter", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - backoff - Sets the line back off from the end point of - the nth line segment (in px). This option is - useful e.g. to avoid overlap with arrowhead - markers. With "auto" the lines would trim - before markers if `marker.angleref` is set to - "previous". - backoffsrc - Sets the source reference on Chart Studio Cloud - for `backoff`. - color - Sets the line color. - dash - 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"). - shape - Determines the line shape. With "spline" the - lines are drawn using spline interpolation. The - other available values correspond to step-wise - line shapes. - simplify - Simplifies lines by removing nearly-collinear - points. When transitioning lines, it may be - desirable to disable this so that the number of - points along the resulting SVG path is - unaffected. - smoothing - Has an effect only if `shape` is set to - "spline" Sets the amount of smoothing. 0 - corresponds to no smoothing (equivalent to a - "linear" shape). - width - Sets the line width (in px). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='scatter', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_marker.py b/packages/python/plotly/plotly/validators/scatter/_marker.py index 596ed6b44f3..3299c66282e 100644 --- a/packages/python/plotly/plotly/validators/scatter/_marker.py +++ b/packages/python/plotly/plotly/validators/scatter/_marker.py @@ -1,165 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="scatter", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - angle - Sets the marker angle in respect to `angleref`. - angleref - Sets the reference for marker angle. With - "previous", angle 0 points along the line from - the previous point to this one. With "up", - angle 0 points toward the top of the screen. - anglesrc - Sets the source reference on Chart Studio Cloud - for `angle`. - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.scatter.marker.Col - orBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - gradient - :class:`plotly.graph_objects.scatter.marker.Gra - dient` instance or dict with compatible - properties - line - :class:`plotly.graph_objects.scatter.marker.Lin - e` instance or dict with compatible properties - maxdisplayed - Sets a maximum number of points to be drawn on - the graph. 0 corresponds to no limit. - opacity - Sets the marker opacity. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. - size - Sets the marker size (in px). - sizemin - Has an effect only if `marker.size` is set to a - numerical array. Sets the minimum size (in px) - of the rendered marker points. - sizemode - Has an effect only if `marker.size` is set to a - numerical array. Sets the rule for which the - data in `size` is converted to pixels. - sizeref - Has an effect only if `marker.size` is set to a - numerical array. Sets the scale factor used to - determine the rendered size of marker points. - Use with `sizemin` and `sizemode`. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - standoff - Moves the marker away from the data point in - the direction of `angle` (in px). This can be - useful for example if you have another marker - at this location and you want to point an - arrowhead marker at it. - standoffsrc - Sets the source reference on Chart Studio Cloud - for `standoff`. - symbol - Sets the marker symbol type. Adding 100 is - equivalent to appending "-open" to a symbol - name. Adding 200 is equivalent to appending - "-dot" to a symbol name. Adding 300 is - equivalent to appending "-open-dot" or "dot- - open" to a symbol name. - symbolsrc - Sets the source reference on Chart Studio Cloud - for `symbol`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scatter', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_meta.py b/packages/python/plotly/plotly/validators/scatter/_meta.py index 32d824432ae..1bc7eeb7853 100644 --- a/packages/python/plotly/plotly/validators/scatter/_meta.py +++ b/packages/python/plotly/plotly/validators/scatter/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="scatter", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='scatter', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_metasrc.py b/packages/python/plotly/plotly/validators/scatter/_metasrc.py index c5066dbc4d6..23994afddb5 100644 --- a/packages/python/plotly/plotly/validators/scatter/_metasrc.py +++ b/packages/python/plotly/plotly/validators/scatter/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="scatter", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='scatter', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_mode.py b/packages/python/plotly/plotly/validators/scatter/_mode.py index cdadf40778e..4a55f49482b 100644 --- a/packages/python/plotly/plotly/validators/scatter/_mode.py +++ b/packages/python/plotly/plotly/validators/scatter/_mode.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="mode", parent_name="scatter", **kwargs): - super(ModeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["lines", "markers", "text"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ModeValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='mode', + parent_name='scatter', + **kwargs): + super(ModeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['lines', 'markers', 'text']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_name.py b/packages/python/plotly/plotly/validators/scatter/_name.py index 270756f04e1..05740a44923 100644 --- a/packages/python/plotly/plotly/validators/scatter/_name.py +++ b/packages/python/plotly/plotly/validators/scatter/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="scatter", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='scatter', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_offsetgroup.py b/packages/python/plotly/plotly/validators/scatter/_offsetgroup.py index 562452b2fa7..f6c1b8a9f0c 100644 --- a/packages/python/plotly/plotly/validators/scatter/_offsetgroup.py +++ b/packages/python/plotly/plotly/validators/scatter/_offsetgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class OffsetgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="offsetgroup", parent_name="scatter", **kwargs): - super(OffsetgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OffsetgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='offsetgroup', + parent_name='scatter', + **kwargs): + super(OffsetgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_opacity.py b/packages/python/plotly/plotly/validators/scatter/_opacity.py index 4f6ca3e6621..2a5b6b337a6 100644 --- a/packages/python/plotly/plotly/validators/scatter/_opacity.py +++ b/packages/python/plotly/plotly/validators/scatter/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="scatter", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scatter', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_orientation.py b/packages/python/plotly/plotly/validators/scatter/_orientation.py index 2594fcfa179..bbc28773dc1 100644 --- a/packages/python/plotly/plotly/validators/scatter/_orientation.py +++ b/packages/python/plotly/plotly/validators/scatter/_orientation.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="orientation", parent_name="scatter", **kwargs): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["v", "h"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='scatter', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['v', 'h']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_selected.py b/packages/python/plotly/plotly/validators/scatter/_selected.py index b4064ab9033..0326cc08c5d 100644 --- a/packages/python/plotly/plotly/validators/scatter/_selected.py +++ b/packages/python/plotly/plotly/validators/scatter/_selected.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="selected", parent_name="scatter", **kwargs): - super(SelectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Selected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.scatter.selected.M - arker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.scatter.selected.T - extfont` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='selected', + parent_name='scatter', + **kwargs): + super(SelectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_selectedpoints.py b/packages/python/plotly/plotly/validators/scatter/_selectedpoints.py index 4aa2fc147ce..175193d3aed 100644 --- a/packages/python/plotly/plotly/validators/scatter/_selectedpoints.py +++ b/packages/python/plotly/plotly/validators/scatter/_selectedpoints.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="selectedpoints", parent_name="scatter", **kwargs): - super(SelectedpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedpointsValidator(_bv.AnyValidator): + def __init__(self, plotly_name='selectedpoints', + parent_name='scatter', + **kwargs): + super(SelectedpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_showlegend.py b/packages/python/plotly/plotly/validators/scatter/_showlegend.py index 767864b2277..930586e5285 100644 --- a/packages/python/plotly/plotly/validators/scatter/_showlegend.py +++ b/packages/python/plotly/plotly/validators/scatter/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="scatter", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='scatter', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_stackgaps.py b/packages/python/plotly/plotly/validators/scatter/_stackgaps.py index 3c2018ee410..83b896b0aa7 100644 --- a/packages/python/plotly/plotly/validators/scatter/_stackgaps.py +++ b/packages/python/plotly/plotly/validators/scatter/_stackgaps.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class StackgapsValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="stackgaps", parent_name="scatter", **kwargs): - super(StackgapsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["infer zero", "interpolate"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StackgapsValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='stackgaps', + parent_name='scatter', + **kwargs): + super(StackgapsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['infer zero', 'interpolate']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_stackgroup.py b/packages/python/plotly/plotly/validators/scatter/_stackgroup.py index 0bc8462aa79..23b9c40ccbd 100644 --- a/packages/python/plotly/plotly/validators/scatter/_stackgroup.py +++ b/packages/python/plotly/plotly/validators/scatter/_stackgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class StackgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="stackgroup", parent_name="scatter", **kwargs): - super(StackgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StackgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='stackgroup', + parent_name='scatter', + **kwargs): + super(StackgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_stream.py b/packages/python/plotly/plotly/validators/scatter/_stream.py index cd45d6fc923..fb8d6158d78 100644 --- a/packages/python/plotly/plotly/validators/scatter/_stream.py +++ b/packages/python/plotly/plotly/validators/scatter/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="scatter", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='scatter', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_text.py b/packages/python/plotly/plotly/validators/scatter/_text.py index 009be0982a9..6be8e179cf8 100644 --- a/packages/python/plotly/plotly/validators/scatter/_text.py +++ b/packages/python/plotly/plotly/validators/scatter/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="scatter", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scatter', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_textfont.py b/packages/python/plotly/plotly/validators/scatter/_textfont.py index 0bb1e18a7a6..e00aa186451 100644 --- a/packages/python/plotly/plotly/validators/scatter/_textfont.py +++ b/packages/python/plotly/plotly/validators/scatter/_textfont.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="textfont", parent_name="scatter", **kwargs): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='scatter', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_textposition.py b/packages/python/plotly/plotly/validators/scatter/_textposition.py index 4a5ae5c9da3..e1b2170dc82 100644 --- a/packages/python/plotly/plotly/validators/scatter/_textposition.py +++ b/packages/python/plotly/plotly/validators/scatter/_textposition.py @@ -1,26 +1,15 @@ -import _plotly_utils.basevalidators -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="textposition", parent_name="scatter", **kwargs): - super(TextpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "top left", - "top center", - "top right", - "middle left", - "middle center", - "middle right", - "bottom left", - "bottom center", - "bottom right", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textposition', + parent_name='scatter', + **kwargs): + super(TextpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['top left', 'top center', 'top right', 'middle left', 'middle center', 'middle right', 'bottom left', 'bottom center', 'bottom right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_textpositionsrc.py b/packages/python/plotly/plotly/validators/scatter/_textpositionsrc.py index c4b17982047..c525eb5f6e6 100644 --- a/packages/python/plotly/plotly/validators/scatter/_textpositionsrc.py +++ b/packages/python/plotly/plotly/validators/scatter/_textpositionsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textpositionsrc", parent_name="scatter", **kwargs): - super(TextpositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextpositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textpositionsrc', + parent_name='scatter', + **kwargs): + super(TextpositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_textsrc.py b/packages/python/plotly/plotly/validators/scatter/_textsrc.py index d4173b0af38..053573dc581 100644 --- a/packages/python/plotly/plotly/validators/scatter/_textsrc.py +++ b/packages/python/plotly/plotly/validators/scatter/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="scatter", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='scatter', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_texttemplate.py b/packages/python/plotly/plotly/validators/scatter/_texttemplate.py index f95e1320db7..62d34c4c2fe 100644 --- a/packages/python/plotly/plotly/validators/scatter/_texttemplate.py +++ b/packages/python/plotly/plotly/validators/scatter/_texttemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="texttemplate", parent_name="scatter", **kwargs): - super(TexttemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='texttemplate', + parent_name='scatter', + **kwargs): + super(TexttemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_texttemplatesrc.py b/packages/python/plotly/plotly/validators/scatter/_texttemplatesrc.py index 948b3d67b74..bdce3a7359f 100644 --- a/packages/python/plotly/plotly/validators/scatter/_texttemplatesrc.py +++ b/packages/python/plotly/plotly/validators/scatter/_texttemplatesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="texttemplatesrc", parent_name="scatter", **kwargs): - super(TexttemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TexttemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='texttemplatesrc', + parent_name='scatter', + **kwargs): + super(TexttemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_uid.py b/packages/python/plotly/plotly/validators/scatter/_uid.py index ff5ab866ba2..a228e7e6bf3 100644 --- a/packages/python/plotly/plotly/validators/scatter/_uid.py +++ b/packages/python/plotly/plotly/validators/scatter/_uid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="scatter", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='scatter', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_uirevision.py b/packages/python/plotly/plotly/validators/scatter/_uirevision.py index 762dbccbfec..df6ce5d33d5 100644 --- a/packages/python/plotly/plotly/validators/scatter/_uirevision.py +++ b/packages/python/plotly/plotly/validators/scatter/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="scatter", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='scatter', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_unselected.py b/packages/python/plotly/plotly/validators/scatter/_unselected.py index 3dd77157991..3b48e68bf07 100644 --- a/packages/python/plotly/plotly/validators/scatter/_unselected.py +++ b/packages/python/plotly/plotly/validators/scatter/_unselected.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="unselected", parent_name="scatter", **kwargs): - super(UnselectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Unselected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.scatter.unselected - .Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.scatter.unselected - .Textfont` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UnselectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='unselected', + parent_name='scatter', + **kwargs): + super(UnselectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_visible.py b/packages/python/plotly/plotly/validators/scatter/_visible.py index 8a087b56711..918f2c0a4d1 100644 --- a/packages/python/plotly/plotly/validators/scatter/_visible.py +++ b/packages/python/plotly/plotly/validators/scatter/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="scatter", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='scatter', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_x.py b/packages/python/plotly/plotly/validators/scatter/_x.py index 41178ffcc9b..9f1645bf3bc 100644 --- a/packages/python/plotly/plotly/validators/scatter/_x.py +++ b/packages/python/plotly/plotly/validators/scatter/_x.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="x", parent_name="scatter", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='x', + parent_name='scatter', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_x0.py b/packages/python/plotly/plotly/validators/scatter/_x0.py index a07880bc946..2e66f93a9e5 100644 --- a/packages/python/plotly/plotly/validators/scatter/_x0.py +++ b/packages/python/plotly/plotly/validators/scatter/_x0.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class X0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="x0", parent_name="scatter", **kwargs): - super(X0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class X0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='x0', + parent_name='scatter', + **kwargs): + super(X0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_xaxis.py b/packages/python/plotly/plotly/validators/scatter/_xaxis.py index a060bea7061..c83f135bef3 100644 --- a/packages/python/plotly/plotly/validators/scatter/_xaxis.py +++ b/packages/python/plotly/plotly/validators/scatter/_xaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="xaxis", parent_name="scatter", **kwargs): - super(XaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "x"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='xaxis', + parent_name='scatter', + **kwargs): + super(XaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'x'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_xcalendar.py b/packages/python/plotly/plotly/validators/scatter/_xcalendar.py index caa42cc0589..28d77180752 100644 --- a/packages/python/plotly/plotly/validators/scatter/_xcalendar.py +++ b/packages/python/plotly/plotly/validators/scatter/_xcalendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xcalendar", parent_name="scatter", **kwargs): - super(XcalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XcalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xcalendar', + parent_name='scatter', + **kwargs): + super(XcalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_xhoverformat.py b/packages/python/plotly/plotly/validators/scatter/_xhoverformat.py index c7bf4af3c63..10dffc893c0 100644 --- a/packages/python/plotly/plotly/validators/scatter/_xhoverformat.py +++ b/packages/python/plotly/plotly/validators/scatter/_xhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="xhoverformat", parent_name="scatter", **kwargs): - super(XhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='xhoverformat', + parent_name='scatter', + **kwargs): + super(XhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_xperiod.py b/packages/python/plotly/plotly/validators/scatter/_xperiod.py index 4a3d78dba6b..1840bb41b86 100644 --- a/packages/python/plotly/plotly/validators/scatter/_xperiod.py +++ b/packages/python/plotly/plotly/validators/scatter/_xperiod.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XperiodValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="xperiod", parent_name="scatter", **kwargs): - super(XperiodValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XperiodValidator(_bv.AnyValidator): + def __init__(self, plotly_name='xperiod', + parent_name='scatter', + **kwargs): + super(XperiodValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_xperiod0.py b/packages/python/plotly/plotly/validators/scatter/_xperiod0.py index 033f8b73a22..d7002469697 100644 --- a/packages/python/plotly/plotly/validators/scatter/_xperiod0.py +++ b/packages/python/plotly/plotly/validators/scatter/_xperiod0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Xperiod0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="xperiod0", parent_name="scatter", **kwargs): - super(Xperiod0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Xperiod0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='xperiod0', + parent_name='scatter', + **kwargs): + super(Xperiod0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_xperiodalignment.py b/packages/python/plotly/plotly/validators/scatter/_xperiodalignment.py index 33185750636..bed64a631fc 100644 --- a/packages/python/plotly/plotly/validators/scatter/_xperiodalignment.py +++ b/packages/python/plotly/plotly/validators/scatter/_xperiodalignment.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xperiodalignment", parent_name="scatter", **kwargs): - super(XperiodalignmentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["start", "middle", "end"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XperiodalignmentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xperiodalignment', + parent_name='scatter', + **kwargs): + super(XperiodalignmentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['start', 'middle', 'end']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_xsrc.py b/packages/python/plotly/plotly/validators/scatter/_xsrc.py index 81f0105c7e5..892721b2363 100644 --- a/packages/python/plotly/plotly/validators/scatter/_xsrc.py +++ b/packages/python/plotly/plotly/validators/scatter/_xsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="xsrc", parent_name="scatter", **kwargs): - super(XsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='xsrc', + parent_name='scatter', + **kwargs): + super(XsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_y.py b/packages/python/plotly/plotly/validators/scatter/_y.py index e7b80e1b11f..aa26e5b673b 100644 --- a/packages/python/plotly/plotly/validators/scatter/_y.py +++ b/packages/python/plotly/plotly/validators/scatter/_y.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="y", parent_name="scatter", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='y', + parent_name='scatter', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_y0.py b/packages/python/plotly/plotly/validators/scatter/_y0.py index 8cc00eaedd2..efa32e55697 100644 --- a/packages/python/plotly/plotly/validators/scatter/_y0.py +++ b/packages/python/plotly/plotly/validators/scatter/_y0.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class Y0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="y0", parent_name="scatter", **kwargs): - super(Y0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Y0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='y0', + parent_name='scatter', + **kwargs): + super(Y0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_yaxis.py b/packages/python/plotly/plotly/validators/scatter/_yaxis.py index c1e40f7bdab..b64bb0e63f5 100644 --- a/packages/python/plotly/plotly/validators/scatter/_yaxis.py +++ b/packages/python/plotly/plotly/validators/scatter/_yaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="yaxis", parent_name="scatter", **kwargs): - super(YaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "y"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='yaxis', + parent_name='scatter', + **kwargs): + super(YaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'y'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_ycalendar.py b/packages/python/plotly/plotly/validators/scatter/_ycalendar.py index 3e0f9dab2c4..dd42b97233f 100644 --- a/packages/python/plotly/plotly/validators/scatter/_ycalendar.py +++ b/packages/python/plotly/plotly/validators/scatter/_ycalendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="ycalendar", parent_name="scatter", **kwargs): - super(YcalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YcalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ycalendar', + parent_name='scatter', + **kwargs): + super(YcalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_yhoverformat.py b/packages/python/plotly/plotly/validators/scatter/_yhoverformat.py index 4edd1f1c9d2..727c8161713 100644 --- a/packages/python/plotly/plotly/validators/scatter/_yhoverformat.py +++ b/packages/python/plotly/plotly/validators/scatter/_yhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="yhoverformat", parent_name="scatter", **kwargs): - super(YhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='yhoverformat', + parent_name='scatter', + **kwargs): + super(YhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_yperiod.py b/packages/python/plotly/plotly/validators/scatter/_yperiod.py index c4657b1df78..5c10b8013bd 100644 --- a/packages/python/plotly/plotly/validators/scatter/_yperiod.py +++ b/packages/python/plotly/plotly/validators/scatter/_yperiod.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YperiodValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="yperiod", parent_name="scatter", **kwargs): - super(YperiodValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YperiodValidator(_bv.AnyValidator): + def __init__(self, plotly_name='yperiod', + parent_name='scatter', + **kwargs): + super(YperiodValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_yperiod0.py b/packages/python/plotly/plotly/validators/scatter/_yperiod0.py index b4fb0416a21..59f524d47f6 100644 --- a/packages/python/plotly/plotly/validators/scatter/_yperiod0.py +++ b/packages/python/plotly/plotly/validators/scatter/_yperiod0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Yperiod0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="yperiod0", parent_name="scatter", **kwargs): - super(Yperiod0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Yperiod0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='yperiod0', + parent_name='scatter', + **kwargs): + super(Yperiod0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_yperiodalignment.py b/packages/python/plotly/plotly/validators/scatter/_yperiodalignment.py index 3ea1c231f05..1795e49c06c 100644 --- a/packages/python/plotly/plotly/validators/scatter/_yperiodalignment.py +++ b/packages/python/plotly/plotly/validators/scatter/_yperiodalignment.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yperiodalignment", parent_name="scatter", **kwargs): - super(YperiodalignmentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["start", "middle", "end"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YperiodalignmentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yperiodalignment', + parent_name='scatter', + **kwargs): + super(YperiodalignmentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['start', 'middle', 'end']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_ysrc.py b/packages/python/plotly/plotly/validators/scatter/_ysrc.py index cc2de3a27f8..0d08f54f2da 100644 --- a/packages/python/plotly/plotly/validators/scatter/_ysrc.py +++ b/packages/python/plotly/plotly/validators/scatter/_ysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="ysrc", parent_name="scatter", **kwargs): - super(YsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ysrc', + parent_name='scatter', + **kwargs): + super(YsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/_zorder.py b/packages/python/plotly/plotly/validators/scatter/_zorder.py index 5bb39056b57..f7f7a55c281 100644 --- a/packages/python/plotly/plotly/validators/scatter/_zorder.py +++ b/packages/python/plotly/plotly/validators/scatter/_zorder.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="zorder", parent_name="scatter", **kwargs): - super(ZorderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZorderValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='zorder', + parent_name='scatter', + **kwargs): + super(ZorderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/error_x/__init__.py b/packages/python/plotly/plotly/validators/scatter/error_x/__init__.py index 2e3ce59d75d..4c274e2e1d4 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_x/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/error_x/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._visible import VisibleValidator @@ -19,25 +18,10 @@ from ._array import ArrayValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._visible.VisibleValidator", - "._valueminus.ValueminusValidator", - "._value.ValueValidator", - "._type.TypeValidator", - "._tracerefminus.TracerefminusValidator", - "._traceref.TracerefValidator", - "._thickness.ThicknessValidator", - "._symmetric.SymmetricValidator", - "._copy_ystyle.Copy_YstyleValidator", - "._color.ColorValidator", - "._arraysrc.ArraysrcValidator", - "._arrayminussrc.ArrayminussrcValidator", - "._arrayminus.ArrayminusValidator", - "._array.ArrayValidator", - ], + ['._width.WidthValidator', '._visible.VisibleValidator', '._valueminus.ValueminusValidator', '._value.ValueValidator', '._type.TypeValidator', '._tracerefminus.TracerefminusValidator', '._traceref.TracerefValidator', '._thickness.ThicknessValidator', '._symmetric.SymmetricValidator', '._copy_ystyle.Copy_YstyleValidator', '._color.ColorValidator', '._arraysrc.ArraysrcValidator', '._arrayminussrc.ArrayminussrcValidator', '._arrayminus.ArrayminusValidator', '._array.ArrayValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter/error_x/_array.py b/packages/python/plotly/plotly/validators/scatter/error_x/_array.py index 222cd9d2a39..1f94ebb5f5c 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_x/_array.py +++ b/packages/python/plotly/plotly/validators/scatter/error_x/_array.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="array", parent_name="scatter.error_x", **kwargs): - super(ArrayValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ArrayValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='array', + parent_name='scatter.error_x', + **kwargs): + super(ArrayValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/error_x/_arrayminus.py b/packages/python/plotly/plotly/validators/scatter/error_x/_arrayminus.py index 1fc78a4f5ed..c9ce4776f52 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_x/_arrayminus.py +++ b/packages/python/plotly/plotly/validators/scatter/error_x/_arrayminus.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="arrayminus", parent_name="scatter.error_x", **kwargs - ): - super(ArrayminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrayminusValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='arrayminus', + parent_name='scatter.error_x', + **kwargs): + super(ArrayminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/error_x/_arrayminussrc.py b/packages/python/plotly/plotly/validators/scatter/error_x/_arrayminussrc.py index 91529e2573f..f63ade46bf7 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_x/_arrayminussrc.py +++ b/packages/python/plotly/plotly/validators/scatter/error_x/_arrayminussrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="arrayminussrc", parent_name="scatter.error_x", **kwargs - ): - super(ArrayminussrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrayminussrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='arrayminussrc', + parent_name='scatter.error_x', + **kwargs): + super(ArrayminussrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/error_x/_arraysrc.py b/packages/python/plotly/plotly/validators/scatter/error_x/_arraysrc.py index 5c181545869..aa6f8af1da6 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_x/_arraysrc.py +++ b/packages/python/plotly/plotly/validators/scatter/error_x/_arraysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="arraysrc", parent_name="scatter.error_x", **kwargs): - super(ArraysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ArraysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='arraysrc', + parent_name='scatter.error_x', + **kwargs): + super(ArraysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/error_x/_color.py b/packages/python/plotly/plotly/validators/scatter/error_x/_color.py index 6b3fe1a13d5..ba88bd3fb06 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_x/_color.py +++ b/packages/python/plotly/plotly/validators/scatter/error_x/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="scatter.error_x", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatter.error_x', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/error_x/_copy_ystyle.py b/packages/python/plotly/plotly/validators/scatter/error_x/_copy_ystyle.py index bd5f3369395..78b80c241d6 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_x/_copy_ystyle.py +++ b/packages/python/plotly/plotly/validators/scatter/error_x/_copy_ystyle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class Copy_YstyleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="copy_ystyle", parent_name="scatter.error_x", **kwargs - ): - super(Copy_YstyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Copy_YstyleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='copy_ystyle', + parent_name='scatter.error_x', + **kwargs): + super(Copy_YstyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/error_x/_symmetric.py b/packages/python/plotly/plotly/validators/scatter/error_x/_symmetric.py index df1d35d6a2e..005ee83c39b 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_x/_symmetric.py +++ b/packages/python/plotly/plotly/validators/scatter/error_x/_symmetric.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="symmetric", parent_name="scatter.error_x", **kwargs - ): - super(SymmetricValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SymmetricValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='symmetric', + parent_name='scatter.error_x', + **kwargs): + super(SymmetricValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/error_x/_thickness.py b/packages/python/plotly/plotly/validators/scatter/error_x/_thickness.py index 9bc697502f8..dcfc402ff5f 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_x/_thickness.py +++ b/packages/python/plotly/plotly/validators/scatter/error_x/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="scatter.error_x", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='scatter.error_x', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/error_x/_traceref.py b/packages/python/plotly/plotly/validators/scatter/error_x/_traceref.py index 82f4ee39a4c..7fd22a323df 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_x/_traceref.py +++ b/packages/python/plotly/plotly/validators/scatter/error_x/_traceref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="traceref", parent_name="scatter.error_x", **kwargs): - super(TracerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TracerefValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='traceref', + parent_name='scatter.error_x', + **kwargs): + super(TracerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/error_x/_tracerefminus.py b/packages/python/plotly/plotly/validators/scatter/error_x/_tracerefminus.py index 08827e0e6e0..3b59c67de29 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_x/_tracerefminus.py +++ b/packages/python/plotly/plotly/validators/scatter/error_x/_tracerefminus.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="tracerefminus", parent_name="scatter.error_x", **kwargs - ): - super(TracerefminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TracerefminusValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='tracerefminus', + parent_name='scatter.error_x', + **kwargs): + super(TracerefminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/error_x/_type.py b/packages/python/plotly/plotly/validators/scatter/error_x/_type.py index 2c43ca4fdae..d20c55aba2d 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_x/_type.py +++ b/packages/python/plotly/plotly/validators/scatter/error_x/_type.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="type", parent_name="scatter.error_x", **kwargs): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='scatter.error_x', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['percent', 'constant', 'sqrt', 'data']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/error_x/_value.py b/packages/python/plotly/plotly/validators/scatter/error_x/_value.py index f4169d7342a..097309fdb75 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_x/_value.py +++ b/packages/python/plotly/plotly/validators/scatter/error_x/_value.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ValueValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="value", parent_name="scatter.error_x", **kwargs): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.NumberValidator): + def __init__(self, plotly_name='value', + parent_name='scatter.error_x', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/error_x/_valueminus.py b/packages/python/plotly/plotly/validators/scatter/error_x/_valueminus.py index 0077160bb2f..122975b36f0 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_x/_valueminus.py +++ b/packages/python/plotly/plotly/validators/scatter/error_x/_valueminus.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="valueminus", parent_name="scatter.error_x", **kwargs - ): - super(ValueminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueminusValidator(_bv.NumberValidator): + def __init__(self, plotly_name='valueminus', + parent_name='scatter.error_x', + **kwargs): + super(ValueminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/error_x/_visible.py b/packages/python/plotly/plotly/validators/scatter/error_x/_visible.py index 521cc72b4c8..a0cd8e8035b 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_x/_visible.py +++ b/packages/python/plotly/plotly/validators/scatter/error_x/_visible.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="visible", parent_name="scatter.error_x", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='scatter.error_x', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/error_x/_width.py b/packages/python/plotly/plotly/validators/scatter/error_x/_width.py index 60a0920a862..5af68ce2c03 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_x/_width.py +++ b/packages/python/plotly/plotly/validators/scatter/error_x/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="scatter.error_x", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='scatter.error_x', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/error_y/__init__.py b/packages/python/plotly/plotly/validators/scatter/error_y/__init__.py index eff09cd6a0a..d3e93f5c233 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_y/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/error_y/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._visible import VisibleValidator @@ -18,24 +17,10 @@ from ._array import ArrayValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._visible.VisibleValidator", - "._valueminus.ValueminusValidator", - "._value.ValueValidator", - "._type.TypeValidator", - "._tracerefminus.TracerefminusValidator", - "._traceref.TracerefValidator", - "._thickness.ThicknessValidator", - "._symmetric.SymmetricValidator", - "._color.ColorValidator", - "._arraysrc.ArraysrcValidator", - "._arrayminussrc.ArrayminussrcValidator", - "._arrayminus.ArrayminusValidator", - "._array.ArrayValidator", - ], + ['._width.WidthValidator', '._visible.VisibleValidator', '._valueminus.ValueminusValidator', '._value.ValueValidator', '._type.TypeValidator', '._tracerefminus.TracerefminusValidator', '._traceref.TracerefValidator', '._thickness.ThicknessValidator', '._symmetric.SymmetricValidator', '._color.ColorValidator', '._arraysrc.ArraysrcValidator', '._arrayminussrc.ArrayminussrcValidator', '._arrayminus.ArrayminusValidator', '._array.ArrayValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter/error_y/_array.py b/packages/python/plotly/plotly/validators/scatter/error_y/_array.py index d8e7e3024b0..330ec7cdac0 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_y/_array.py +++ b/packages/python/plotly/plotly/validators/scatter/error_y/_array.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="array", parent_name="scatter.error_y", **kwargs): - super(ArrayValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ArrayValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='array', + parent_name='scatter.error_y', + **kwargs): + super(ArrayValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/error_y/_arrayminus.py b/packages/python/plotly/plotly/validators/scatter/error_y/_arrayminus.py index 1f991a14b7b..697feb679c5 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_y/_arrayminus.py +++ b/packages/python/plotly/plotly/validators/scatter/error_y/_arrayminus.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="arrayminus", parent_name="scatter.error_y", **kwargs - ): - super(ArrayminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrayminusValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='arrayminus', + parent_name='scatter.error_y', + **kwargs): + super(ArrayminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/error_y/_arrayminussrc.py b/packages/python/plotly/plotly/validators/scatter/error_y/_arrayminussrc.py index 35b50b1995f..98b45cf0395 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_y/_arrayminussrc.py +++ b/packages/python/plotly/plotly/validators/scatter/error_y/_arrayminussrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="arrayminussrc", parent_name="scatter.error_y", **kwargs - ): - super(ArrayminussrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrayminussrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='arrayminussrc', + parent_name='scatter.error_y', + **kwargs): + super(ArrayminussrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/error_y/_arraysrc.py b/packages/python/plotly/plotly/validators/scatter/error_y/_arraysrc.py index 144f5a1c97e..ae8fae1d4bb 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_y/_arraysrc.py +++ b/packages/python/plotly/plotly/validators/scatter/error_y/_arraysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="arraysrc", parent_name="scatter.error_y", **kwargs): - super(ArraysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ArraysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='arraysrc', + parent_name='scatter.error_y', + **kwargs): + super(ArraysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/error_y/_color.py b/packages/python/plotly/plotly/validators/scatter/error_y/_color.py index bcae05a8c22..5a768cc3fd6 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_y/_color.py +++ b/packages/python/plotly/plotly/validators/scatter/error_y/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="scatter.error_y", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatter.error_y', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/error_y/_symmetric.py b/packages/python/plotly/plotly/validators/scatter/error_y/_symmetric.py index 19e54a45895..c87b76b5db4 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_y/_symmetric.py +++ b/packages/python/plotly/plotly/validators/scatter/error_y/_symmetric.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="symmetric", parent_name="scatter.error_y", **kwargs - ): - super(SymmetricValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SymmetricValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='symmetric', + parent_name='scatter.error_y', + **kwargs): + super(SymmetricValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/error_y/_thickness.py b/packages/python/plotly/plotly/validators/scatter/error_y/_thickness.py index d063d2dc85f..954d5ae04d1 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_y/_thickness.py +++ b/packages/python/plotly/plotly/validators/scatter/error_y/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="scatter.error_y", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='scatter.error_y', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/error_y/_traceref.py b/packages/python/plotly/plotly/validators/scatter/error_y/_traceref.py index 8437b20f7d1..4b2944b5ece 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_y/_traceref.py +++ b/packages/python/plotly/plotly/validators/scatter/error_y/_traceref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="traceref", parent_name="scatter.error_y", **kwargs): - super(TracerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TracerefValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='traceref', + parent_name='scatter.error_y', + **kwargs): + super(TracerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/error_y/_tracerefminus.py b/packages/python/plotly/plotly/validators/scatter/error_y/_tracerefminus.py index d192f3ad447..f8fd67e13eb 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_y/_tracerefminus.py +++ b/packages/python/plotly/plotly/validators/scatter/error_y/_tracerefminus.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="tracerefminus", parent_name="scatter.error_y", **kwargs - ): - super(TracerefminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TracerefminusValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='tracerefminus', + parent_name='scatter.error_y', + **kwargs): + super(TracerefminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/error_y/_type.py b/packages/python/plotly/plotly/validators/scatter/error_y/_type.py index 88cbd1d9a37..1a92a61ebf6 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_y/_type.py +++ b/packages/python/plotly/plotly/validators/scatter/error_y/_type.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="type", parent_name="scatter.error_y", **kwargs): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='scatter.error_y', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['percent', 'constant', 'sqrt', 'data']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/error_y/_value.py b/packages/python/plotly/plotly/validators/scatter/error_y/_value.py index 62e538325d4..6234993a649 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_y/_value.py +++ b/packages/python/plotly/plotly/validators/scatter/error_y/_value.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ValueValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="value", parent_name="scatter.error_y", **kwargs): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.NumberValidator): + def __init__(self, plotly_name='value', + parent_name='scatter.error_y', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/error_y/_valueminus.py b/packages/python/plotly/plotly/validators/scatter/error_y/_valueminus.py index 64d8c502bdb..66b9f5b2899 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_y/_valueminus.py +++ b/packages/python/plotly/plotly/validators/scatter/error_y/_valueminus.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="valueminus", parent_name="scatter.error_y", **kwargs - ): - super(ValueminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueminusValidator(_bv.NumberValidator): + def __init__(self, plotly_name='valueminus', + parent_name='scatter.error_y', + **kwargs): + super(ValueminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/error_y/_visible.py b/packages/python/plotly/plotly/validators/scatter/error_y/_visible.py index a6210764eaa..64f49f8439a 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_y/_visible.py +++ b/packages/python/plotly/plotly/validators/scatter/error_y/_visible.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="visible", parent_name="scatter.error_y", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='scatter.error_y', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/error_y/_width.py b/packages/python/plotly/plotly/validators/scatter/error_y/_width.py index 0bba545099b..0e6d7e77e2e 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_y/_width.py +++ b/packages/python/plotly/plotly/validators/scatter/error_y/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="scatter.error_y", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='scatter.error_y', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/fillgradient/__init__.py b/packages/python/plotly/plotly/validators/scatter/fillgradient/__init__.py index 27798f1e389..af8b913fd1d 100644 --- a/packages/python/plotly/plotly/validators/scatter/fillgradient/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/fillgradient/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._type import TypeValidator from ._stop import StopValidator @@ -8,14 +7,10 @@ from ._colorscale import ColorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._type.TypeValidator", - "._stop.StopValidator", - "._start.StartValidator", - "._colorscale.ColorscaleValidator", - ], + ['._type.TypeValidator', '._stop.StopValidator', '._start.StartValidator', '._colorscale.ColorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter/fillgradient/_colorscale.py b/packages/python/plotly/plotly/validators/scatter/fillgradient/_colorscale.py index 558b59c4542..2da0e5b168a 100644 --- a/packages/python/plotly/plotly/validators/scatter/fillgradient/_colorscale.py +++ b/packages/python/plotly/plotly/validators/scatter/fillgradient/_colorscale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="scatter.fillgradient", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='scatter.fillgradient', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/fillgradient/_start.py b/packages/python/plotly/plotly/validators/scatter/fillgradient/_start.py index 1b7209f2a00..25d59a23cd4 100644 --- a/packages/python/plotly/plotly/validators/scatter/fillgradient/_start.py +++ b/packages/python/plotly/plotly/validators/scatter/fillgradient/_start.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StartValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="start", parent_name="scatter.fillgradient", **kwargs - ): - super(StartValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StartValidator(_bv.NumberValidator): + def __init__(self, plotly_name='start', + parent_name='scatter.fillgradient', + **kwargs): + super(StartValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/fillgradient/_stop.py b/packages/python/plotly/plotly/validators/scatter/fillgradient/_stop.py index 7ec359aaef1..fe8a89cbbd8 100644 --- a/packages/python/plotly/plotly/validators/scatter/fillgradient/_stop.py +++ b/packages/python/plotly/plotly/validators/scatter/fillgradient/_stop.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StopValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="stop", parent_name="scatter.fillgradient", **kwargs - ): - super(StopValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StopValidator(_bv.NumberValidator): + def __init__(self, plotly_name='stop', + parent_name='scatter.fillgradient', + **kwargs): + super(StopValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/fillgradient/_type.py b/packages/python/plotly/plotly/validators/scatter/fillgradient/_type.py index 1d3d80a00bf..97c2e30bb9c 100644 --- a/packages/python/plotly/plotly/validators/scatter/fillgradient/_type.py +++ b/packages/python/plotly/plotly/validators/scatter/fillgradient/_type.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="type", parent_name="scatter.fillgradient", **kwargs - ): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["radial", "horizontal", "vertical", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='scatter.fillgradient', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['radial', 'horizontal', 'vertical', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/fillpattern/__init__.py b/packages/python/plotly/plotly/validators/scatter/fillpattern/__init__.py index e190f962c46..de3616dbc8a 100644 --- a/packages/python/plotly/plotly/validators/scatter/fillpattern/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/fillpattern/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._soliditysrc import SoliditysrcValidator from ._solidity import SolidityValidator @@ -16,22 +15,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._soliditysrc.SoliditysrcValidator", - "._solidity.SolidityValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shapesrc.ShapesrcValidator", - "._shape.ShapeValidator", - "._fillmode.FillmodeValidator", - "._fgopacity.FgopacityValidator", - "._fgcolorsrc.FgcolorsrcValidator", - "._fgcolor.FgcolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - ], + ['._soliditysrc.SoliditysrcValidator', '._solidity.SolidityValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shapesrc.ShapesrcValidator', '._shape.ShapeValidator', '._fillmode.FillmodeValidator', '._fgopacity.FgopacityValidator', '._fgcolorsrc.FgcolorsrcValidator', '._fgcolor.FgcolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter/fillpattern/_bgcolor.py b/packages/python/plotly/plotly/validators/scatter/fillpattern/_bgcolor.py index 6ff0c135257..3528aa5b925 100644 --- a/packages/python/plotly/plotly/validators/scatter/fillpattern/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/scatter/fillpattern/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="scatter.fillpattern", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='scatter.fillpattern', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/fillpattern/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/scatter/fillpattern/_bgcolorsrc.py index 584639630b6..2da5ad829c3 100644 --- a/packages/python/plotly/plotly/validators/scatter/fillpattern/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/scatter/fillpattern/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="scatter.fillpattern", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='scatter.fillpattern', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/fillpattern/_fgcolor.py b/packages/python/plotly/plotly/validators/scatter/fillpattern/_fgcolor.py index 14d1c209178..8b148e59340 100644 --- a/packages/python/plotly/plotly/validators/scatter/fillpattern/_fgcolor.py +++ b/packages/python/plotly/plotly/validators/scatter/fillpattern/_fgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class FgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="fgcolor", parent_name="scatter.fillpattern", **kwargs - ): - super(FgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fgcolor', + parent_name='scatter.fillpattern', + **kwargs): + super(FgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/fillpattern/_fgcolorsrc.py b/packages/python/plotly/plotly/validators/scatter/fillpattern/_fgcolorsrc.py index efa81555fdf..08bd4b0d95f 100644 --- a/packages/python/plotly/plotly/validators/scatter/fillpattern/_fgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/scatter/fillpattern/_fgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="fgcolorsrc", parent_name="scatter.fillpattern", **kwargs - ): - super(FgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='fgcolorsrc', + parent_name='scatter.fillpattern', + **kwargs): + super(FgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/fillpattern/_fgopacity.py b/packages/python/plotly/plotly/validators/scatter/fillpattern/_fgopacity.py index 4b6c2237a1a..ceeb2cc9172 100644 --- a/packages/python/plotly/plotly/validators/scatter/fillpattern/_fgopacity.py +++ b/packages/python/plotly/plotly/validators/scatter/fillpattern/_fgopacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FgopacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="fgopacity", parent_name="scatter.fillpattern", **kwargs - ): - super(FgopacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FgopacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fgopacity', + parent_name='scatter.fillpattern', + **kwargs): + super(FgopacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/fillpattern/_fillmode.py b/packages/python/plotly/plotly/validators/scatter/fillpattern/_fillmode.py index bb46ec29df6..71eebd66fbc 100644 --- a/packages/python/plotly/plotly/validators/scatter/fillpattern/_fillmode.py +++ b/packages/python/plotly/plotly/validators/scatter/fillpattern/_fillmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class FillmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="fillmode", parent_name="scatter.fillpattern", **kwargs - ): - super(FillmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["replace", "overlay"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='fillmode', + parent_name='scatter.fillpattern', + **kwargs): + super(FillmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['replace', 'overlay']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/fillpattern/_shape.py b/packages/python/plotly/plotly/validators/scatter/fillpattern/_shape.py index 610cbf7aa68..bdffbfee34e 100644 --- a/packages/python/plotly/plotly/validators/scatter/fillpattern/_shape.py +++ b/packages/python/plotly/plotly/validators/scatter/fillpattern/_shape.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="shape", parent_name="scatter.fillpattern", **kwargs - ): - super(ShapeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["", "/", "\\", "x", "-", "|", "+", "."]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShapeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='shape', + parent_name='scatter.fillpattern', + **kwargs): + super(ShapeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['', '/', '\\', 'x', '-', '|', '+', '.']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/fillpattern/_shapesrc.py b/packages/python/plotly/plotly/validators/scatter/fillpattern/_shapesrc.py index a31925a4dfd..df86c1c7ae2 100644 --- a/packages/python/plotly/plotly/validators/scatter/fillpattern/_shapesrc.py +++ b/packages/python/plotly/plotly/validators/scatter/fillpattern/_shapesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShapesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shapesrc", parent_name="scatter.fillpattern", **kwargs - ): - super(ShapesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShapesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shapesrc', + parent_name='scatter.fillpattern', + **kwargs): + super(ShapesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/fillpattern/_size.py b/packages/python/plotly/plotly/validators/scatter/fillpattern/_size.py index 3275e1633e3..23312b8463f 100644 --- a/packages/python/plotly/plotly/validators/scatter/fillpattern/_size.py +++ b/packages/python/plotly/plotly/validators/scatter/fillpattern/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="scatter.fillpattern", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatter.fillpattern', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/fillpattern/_sizesrc.py b/packages/python/plotly/plotly/validators/scatter/fillpattern/_sizesrc.py index 9927fe6e547..fcd7b4d76ae 100644 --- a/packages/python/plotly/plotly/validators/scatter/fillpattern/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scatter/fillpattern/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="scatter.fillpattern", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scatter.fillpattern', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/fillpattern/_solidity.py b/packages/python/plotly/plotly/validators/scatter/fillpattern/_solidity.py index 51b03b2efbe..dc4fe6016a1 100644 --- a/packages/python/plotly/plotly/validators/scatter/fillpattern/_solidity.py +++ b/packages/python/plotly/plotly/validators/scatter/fillpattern/_solidity.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class SolidityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="solidity", parent_name="scatter.fillpattern", **kwargs - ): - super(SolidityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SolidityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='solidity', + parent_name='scatter.fillpattern', + **kwargs): + super(SolidityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/fillpattern/_soliditysrc.py b/packages/python/plotly/plotly/validators/scatter/fillpattern/_soliditysrc.py index 021727fed52..a86def5e996 100644 --- a/packages/python/plotly/plotly/validators/scatter/fillpattern/_soliditysrc.py +++ b/packages/python/plotly/plotly/validators/scatter/fillpattern/_soliditysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SoliditysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="soliditysrc", parent_name="scatter.fillpattern", **kwargs - ): - super(SoliditysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SoliditysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='soliditysrc', + parent_name='scatter.fillpattern', + **kwargs): + super(SoliditysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/_align.py index 77322a38183..68bc96a8a77 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/_align.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="align", parent_name="scatter.hoverlabel", **kwargs): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='scatter.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/_alignsrc.py index b93ed10f3e3..52e9b75d959 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="scatter.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='scatter.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/_bgcolor.py index d1c3b31d94a..7e258c55e52 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="scatter.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='scatter.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/_bgcolorsrc.py index 6df63e17a0c..db0944d4bca 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="scatter.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='scatter.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/_bordercolor.py index 479a9ea9ed8..df40450c8d6 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="scatter.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='scatter.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/_bordercolorsrc.py index 82d84690bad..d1f884471b8 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bordercolorsrc", parent_name="scatter.hoverlabel", **kwargs - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='scatter.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/_font.py index 14da90933cb..b3cfce82217 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/_font.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="scatter.hoverlabel", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scatter.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/_namelength.py index b6833359f93..2288769582a 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="scatter.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='scatter.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/_namelengthsrc.py index aea5b68f3f1..8a978c4dc44 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="scatter.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='scatter.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_color.py index 7125d00bde0..47a688605d4 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scatter.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatter.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_colorsrc.py index 8cda62bd6a8..8270987f0ad 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scatter.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scatter.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_family.py index 784ac54faf3..0fcb00ec252 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="scatter.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scatter.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_familysrc.py index 0913ae61994..46709be62d1 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="scatter.hoverlabel.font", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='scatter.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_lineposition.py index e1b7289c888..b283b44175e 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scatter.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scatter.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_linepositionsrc.py index 353399cf801..51e8c4cca7a 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="scatter.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='scatter.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_shadow.py index 583920befed..b7611e0f414 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="scatter.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scatter.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_shadowsrc.py index 244d554f1d1..2ea9deab222 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="scatter.hoverlabel.font", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='scatter.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_size.py index 7f8af7de0f3..fb08da0a599 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scatter.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatter.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_sizesrc.py index 3f415ba6840..75da20e48d4 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="scatter.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scatter.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_style.py index 1b839321490..068117ca140 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="scatter.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scatter.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_stylesrc.py index f0c06fd8a3c..2dfb22a81ec 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="scatter.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='scatter.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_textcase.py index 258d009c547..9305af78702 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="scatter.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scatter.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_textcasesrc.py index c30fc3aad60..8d6c8867219 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="scatter.hoverlabel.font", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='scatter.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_variant.py index 07dab09b746..8fca84f0a00 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="scatter.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scatter.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_variantsrc.py index dc601ac91c7..573a3e865a7 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="scatter.hoverlabel.font", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='scatter.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_weight.py index eefe12fa987..51836dbabd7 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="scatter.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scatter.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_weightsrc.py index 503445f8bc1..d385ef5775b 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="scatter.hoverlabel.font", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='scatter.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/_font.py index c630f5b067a..4dd56fa6476 100644 --- a/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="scatter.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scatter.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/_text.py index 2f96abde4eb..07f846f5e27 100644 --- a/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="scatter.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scatter.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_color.py index 3e2d6a41cfc..48288b61e68 100644 --- a/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scatter.legendgrouptitle.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatter.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_family.py index 630d0965793..3ce09edf0d4 100644 --- a/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scatter.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scatter.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_lineposition.py index 0c761ffdfaf..eeb39966b2b 100644 --- a/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scatter.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scatter.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_shadow.py index eaa79c52214..dc46d9cf8d6 100644 --- a/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scatter.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scatter.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_size.py index 131a6edd36b..b68fe3e7656 100644 --- a/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scatter.legendgrouptitle.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatter.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_style.py index bb55cf3786f..d76a707010a 100644 --- a/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="scatter.legendgrouptitle.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scatter.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_textcase.py index 9cbda07f02b..21ce7245b21 100644 --- a/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scatter.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scatter.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_variant.py index 5e1f0ea60b5..2c7134a373a 100644 --- a/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scatter.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scatter.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_weight.py index caca9406308..2b2595e9ac8 100644 --- a/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scatter.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scatter.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/line/__init__.py b/packages/python/plotly/plotly/validators/scatter/line/__init__.py index ddf365c6a4c..dcd7d0320db 100644 --- a/packages/python/plotly/plotly/validators/scatter/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._smoothing import SmoothingValidator @@ -12,18 +11,10 @@ from ._backoff import BackoffValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._smoothing.SmoothingValidator", - "._simplify.SimplifyValidator", - "._shape.ShapeValidator", - "._dash.DashValidator", - "._color.ColorValidator", - "._backoffsrc.BackoffsrcValidator", - "._backoff.BackoffValidator", - ], + ['._width.WidthValidator', '._smoothing.SmoothingValidator', '._simplify.SimplifyValidator', '._shape.ShapeValidator', '._dash.DashValidator', '._color.ColorValidator', '._backoffsrc.BackoffsrcValidator', '._backoff.BackoffValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter/line/_backoff.py b/packages/python/plotly/plotly/validators/scatter/line/_backoff.py index 35a35ceea4f..abaad87cadf 100644 --- a/packages/python/plotly/plotly/validators/scatter/line/_backoff.py +++ b/packages/python/plotly/plotly/validators/scatter/line/_backoff.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class BackoffValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="backoff", parent_name="scatter.line", **kwargs): - super(BackoffValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BackoffValidator(_bv.NumberValidator): + def __init__(self, plotly_name='backoff', + parent_name='scatter.line', + **kwargs): + super(BackoffValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/line/_backoffsrc.py b/packages/python/plotly/plotly/validators/scatter/line/_backoffsrc.py index ff712617074..2a09d359997 100644 --- a/packages/python/plotly/plotly/validators/scatter/line/_backoffsrc.py +++ b/packages/python/plotly/plotly/validators/scatter/line/_backoffsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BackoffsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="backoffsrc", parent_name="scatter.line", **kwargs): - super(BackoffsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BackoffsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='backoffsrc', + parent_name='scatter.line', + **kwargs): + super(BackoffsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/line/_color.py b/packages/python/plotly/plotly/validators/scatter/line/_color.py index 80cb638daa3..64adcf8d615 100644 --- a/packages/python/plotly/plotly/validators/scatter/line/_color.py +++ b/packages/python/plotly/plotly/validators/scatter/line/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="scatter.line", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatter.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/line/_dash.py b/packages/python/plotly/plotly/validators/scatter/line/_dash.py index fb7fb9eaa97..6bb7130285b 100644 --- a/packages/python/plotly/plotly/validators/scatter/line/_dash.py +++ b/packages/python/plotly/plotly/validators/scatter/line/_dash.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__(self, plotly_name="dash", parent_name="scatter.line", **kwargs): - super(DashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DashValidator(_bv.DashValidator): + def __init__(self, plotly_name='dash', + parent_name='scatter.line', + **kwargs): + super(DashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/line/_shape.py b/packages/python/plotly/plotly/validators/scatter/line/_shape.py index 4b0f9229907..d360de311ff 100644 --- a/packages/python/plotly/plotly/validators/scatter/line/_shape.py +++ b/packages/python/plotly/plotly/validators/scatter/line/_shape.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="shape", parent_name="scatter.line", **kwargs): - super(ShapeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["linear", "spline", "hv", "vh", "hvh", "vhv"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShapeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='shape', + parent_name='scatter.line', + **kwargs): + super(ShapeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['linear', 'spline', 'hv', 'vh', 'hvh', 'vhv']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/line/_simplify.py b/packages/python/plotly/plotly/validators/scatter/line/_simplify.py index 5a2b92838b8..368c7ceb11c 100644 --- a/packages/python/plotly/plotly/validators/scatter/line/_simplify.py +++ b/packages/python/plotly/plotly/validators/scatter/line/_simplify.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SimplifyValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="simplify", parent_name="scatter.line", **kwargs): - super(SimplifyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SimplifyValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='simplify', + parent_name='scatter.line', + **kwargs): + super(SimplifyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/line/_smoothing.py b/packages/python/plotly/plotly/validators/scatter/line/_smoothing.py index 8bb515da45b..64fb3bf5bd1 100644 --- a/packages/python/plotly/plotly/validators/scatter/line/_smoothing.py +++ b/packages/python/plotly/plotly/validators/scatter/line/_smoothing.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SmoothingValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="smoothing", parent_name="scatter.line", **kwargs): - super(SmoothingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 1.3), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SmoothingValidator(_bv.NumberValidator): + def __init__(self, plotly_name='smoothing', + parent_name='scatter.line', + **kwargs): + super(SmoothingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 1.3), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/line/_width.py b/packages/python/plotly/plotly/validators/scatter/line/_width.py index d85f619276d..5009816fcf0 100644 --- a/packages/python/plotly/plotly/validators/scatter/line/_width.py +++ b/packages/python/plotly/plotly/validators/scatter/line/_width.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="scatter.line", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='scatter.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/__init__.py b/packages/python/plotly/plotly/validators/scatter/marker/__init__.py index 8434e73e3f5..a8815dace11 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._symbolsrc import SymbolsrcValidator from ._symbol import SymbolValidator @@ -33,39 +32,10 @@ from ._angle import AngleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._symbolsrc.SymbolsrcValidator", - "._symbol.SymbolValidator", - "._standoffsrc.StandoffsrcValidator", - "._standoff.StandoffValidator", - "._sizesrc.SizesrcValidator", - "._sizeref.SizerefValidator", - "._sizemode.SizemodeValidator", - "._sizemin.SizeminValidator", - "._size.SizeValidator", - "._showscale.ShowscaleValidator", - "._reversescale.ReversescaleValidator", - "._opacitysrc.OpacitysrcValidator", - "._opacity.OpacityValidator", - "._maxdisplayed.MaxdisplayedValidator", - "._line.LineValidator", - "._gradient.GradientValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - "._anglesrc.AnglesrcValidator", - "._angleref.AnglerefValidator", - "._angle.AngleValidator", - ], + ['._symbolsrc.SymbolsrcValidator', '._symbol.SymbolValidator', '._standoffsrc.StandoffsrcValidator', '._standoff.StandoffValidator', '._sizesrc.SizesrcValidator', '._sizeref.SizerefValidator', '._sizemode.SizemodeValidator', '._sizemin.SizeminValidator', '._size.SizeValidator', '._showscale.ShowscaleValidator', '._reversescale.ReversescaleValidator', '._opacitysrc.OpacitysrcValidator', '._opacity.OpacityValidator', '._maxdisplayed.MaxdisplayedValidator', '._line.LineValidator', '._gradient.GradientValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator', '._anglesrc.AnglesrcValidator', '._angleref.AnglerefValidator', '._angle.AngleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter/marker/_angle.py b/packages/python/plotly/plotly/validators/scatter/marker/_angle.py index f2cdb6cba3c..b5f541560b3 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/_angle.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/_angle.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class AngleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__(self, plotly_name="angle", parent_name="scatter.marker", **kwargs): - super(AngleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", False), - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AngleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='angle', + parent_name='scatter.marker', + **kwargs): + super(AngleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', False), + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/_angleref.py b/packages/python/plotly/plotly/validators/scatter/marker/_angleref.py index 885a961f206..2b3fe423743 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/_angleref.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/_angleref.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class AnglerefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="angleref", parent_name="scatter.marker", **kwargs): - super(AnglerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", False), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["previous", "up"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AnglerefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='angleref', + parent_name='scatter.marker', + **kwargs): + super(AnglerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', False), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['previous', 'up']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/_anglesrc.py b/packages/python/plotly/plotly/validators/scatter/marker/_anglesrc.py index 232d4419b90..74d393fee2b 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/_anglesrc.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/_anglesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AnglesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="anglesrc", parent_name="scatter.marker", **kwargs): - super(AnglesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AnglesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='anglesrc', + parent_name='scatter.marker', + **kwargs): + super(AnglesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/_autocolorscale.py b/packages/python/plotly/plotly/validators/scatter/marker/_autocolorscale.py index 025d3d340d7..55db5662684 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="scatter.marker", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='scatter.marker', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/_cauto.py b/packages/python/plotly/plotly/validators/scatter/marker/_cauto.py index ad3a3e6c9bd..16eb1ecaf5a 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/_cauto.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/_cauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cauto", parent_name="scatter.marker", **kwargs): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='scatter.marker', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/_cmax.py b/packages/python/plotly/plotly/validators/scatter/marker/_cmax.py index 213a3248c8c..452e7c37647 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/_cmax.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/_cmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmax", parent_name="scatter.marker", **kwargs): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='scatter.marker', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/_cmid.py b/packages/python/plotly/plotly/validators/scatter/marker/_cmid.py index bd71a27db73..160e0466161 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/_cmid.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/_cmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmid", parent_name="scatter.marker", **kwargs): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='scatter.marker', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/_cmin.py b/packages/python/plotly/plotly/validators/scatter/marker/_cmin.py index df94a4727f4..1b203f7ca00 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/_cmin.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/_cmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmin", parent_name="scatter.marker", **kwargs): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='scatter.marker', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/_color.py b/packages/python/plotly/plotly/validators/scatter/marker/_color.py index 0c5492a1dda..6ada9a61630 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/_color.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="scatter.marker", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - colorscale_path=kwargs.pop("colorscale_path", "scatter.marker.colorscale"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatter.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + colorscale_path=kwargs.pop('colorscale_path', 'scatter.marker.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/_coloraxis.py b/packages/python/plotly/plotly/validators/scatter/marker/_coloraxis.py index 74772c21c72..3c7a6592798 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/_coloraxis.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="coloraxis", parent_name="scatter.marker", **kwargs): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='scatter.marker', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/_colorbar.py b/packages/python/plotly/plotly/validators/scatter/marker/_colorbar.py index fdbcf0aac8d..ff540a36027 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/_colorbar.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/_colorbar.py @@ -1,280 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="colorbar", parent_name="scatter.marker", **kwargs): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.scatter - .marker.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.scatter.marker.colorbar.tickformatstopdefault - s), sets the default property values to use for - elements of - scatter.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.scatter.marker.col - orbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='scatter.marker', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/_colorscale.py b/packages/python/plotly/plotly/validators/scatter/marker/_colorscale.py index 1967b9999f8..f4f9e6285a7 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/_colorscale.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="scatter.marker", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='scatter.marker', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/_colorsrc.py b/packages/python/plotly/plotly/validators/scatter/marker/_colorsrc.py index 9ac999f477e..6342567d963 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/_colorsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="colorsrc", parent_name="scatter.marker", **kwargs): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scatter.marker', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/_gradient.py b/packages/python/plotly/plotly/validators/scatter/marker/_gradient.py index a16c95a6669..a82cc06c88d 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/_gradient.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/_gradient.py @@ -1,29 +1,15 @@ -import _plotly_utils.basevalidators -class GradientValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="gradient", parent_name="scatter.marker", **kwargs): - super(GradientValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Gradient"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the final color of the gradient fill: the - center color for radial, the right for - horizontal, or the bottom for vertical. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - type - Sets the type of gradient used to fill the - markers - typesrc - Sets the source reference on Chart Studio Cloud - for `type`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class GradientValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='gradient', + parent_name='scatter.marker', + **kwargs): + super(GradientValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Gradient'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/_line.py b/packages/python/plotly/plotly/validators/scatter/marker/_line.py index 3702b2d8329..7aa764a00e8 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/_line.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/_line.py @@ -1,105 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="scatter.marker", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.line.colorscale`. Has an - effect only if in `marker.line.color` is set to - a numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.line.color`) or the bounds set in - `marker.line.cmin` and `marker.line.cmax` Has - an effect only if in `marker.line.color` is set - to a numerical array. Defaults to `false` when - `marker.line.cmin` and `marker.line.cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.line.cmin` and/or - `marker.line.cmax` to be equidistant to this - point. Has an effect only if in - `marker.line.color` is set to a numerical - array. Value should have the same units as in - `marker.line.color`. Has no effect when - `marker.line.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmax` must be set as well. - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorscale - Sets the colorscale. Has an effect only if in - `marker.line.color` is set to a numerical - array. The colorscale must be an array - containing arrays mapping a normalized value to - an rgb, rgba, hex, hsl, hsv, or named color - string. At minimum, a mapping for the lowest - (0) and highest (1) values are required. For - example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use - `marker.line.cmin` and `marker.line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.line.color` is set to - a numerical array. If true, `marker.line.cmin` - will correspond to the last color in the array - and `marker.line.cmax` will correspond to the - first color. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='scatter.marker', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/_maxdisplayed.py b/packages/python/plotly/plotly/validators/scatter/marker/_maxdisplayed.py index 7819f8f40aa..6a3ec9e66bd 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/_maxdisplayed.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/_maxdisplayed.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MaxdisplayedValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxdisplayed", parent_name="scatter.marker", **kwargs - ): - super(MaxdisplayedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxdisplayedValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxdisplayed', + parent_name='scatter.marker', + **kwargs): + super(MaxdisplayedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/_opacity.py b/packages/python/plotly/plotly/validators/scatter/marker/_opacity.py index 7f10af8c31e..a41ac3b0e35 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/_opacity.py @@ -1,15 +1,17 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="scatter.marker", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scatter.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/_opacitysrc.py b/packages/python/plotly/plotly/validators/scatter/marker/_opacitysrc.py index 8e44976291d..353423403d4 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/_opacitysrc.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/_opacitysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="opacitysrc", parent_name="scatter.marker", **kwargs - ): - super(OpacitysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacitysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='opacitysrc', + parent_name='scatter.marker', + **kwargs): + super(OpacitysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/_reversescale.py b/packages/python/plotly/plotly/validators/scatter/marker/_reversescale.py index afd3f1be254..7cd750e9214 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/_reversescale.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="scatter.marker", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='scatter.marker', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/_showscale.py b/packages/python/plotly/plotly/validators/scatter/marker/_showscale.py index b1f1b7197cf..df3adcaa4b1 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/_showscale.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/_showscale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showscale", parent_name="scatter.marker", **kwargs): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='scatter.marker', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/_size.py b/packages/python/plotly/plotly/validators/scatter/marker/_size.py index c9bf9eb27fd..f2c0bc4e78f 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/_size.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="scatter.marker", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatter.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/_sizemin.py b/packages/python/plotly/plotly/validators/scatter/marker/_sizemin.py index a03781f33a4..675b656a6ab 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/_sizemin.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/_sizemin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="sizemin", parent_name="scatter.marker", **kwargs): - super(SizeminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sizemin', + parent_name='scatter.marker', + **kwargs): + super(SizeminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/_sizemode.py b/packages/python/plotly/plotly/validators/scatter/marker/_sizemode.py index f2fd3887f33..761f9995c53 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/_sizemode.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/_sizemode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="sizemode", parent_name="scatter.marker", **kwargs): - super(SizemodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["diameter", "area"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizemodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='sizemode', + parent_name='scatter.marker', + **kwargs): + super(SizemodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['diameter', 'area']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/_sizeref.py b/packages/python/plotly/plotly/validators/scatter/marker/_sizeref.py index 6741790a143..38e6331c991 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/_sizeref.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/_sizeref.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="sizeref", parent_name="scatter.marker", **kwargs): - super(SizerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizerefValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sizeref', + parent_name='scatter.marker', + **kwargs): + super(SizerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/_sizesrc.py b/packages/python/plotly/plotly/validators/scatter/marker/_sizesrc.py index be0d9f20025..eac46a6512f 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/_sizesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="sizesrc", parent_name="scatter.marker", **kwargs): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scatter.marker', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/_standoff.py b/packages/python/plotly/plotly/validators/scatter/marker/_standoff.py index 65b594e7a83..1854d90f926 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/_standoff.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/_standoff.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class StandoffValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="standoff", parent_name="scatter.marker", **kwargs): - super(StandoffValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StandoffValidator(_bv.NumberValidator): + def __init__(self, plotly_name='standoff', + parent_name='scatter.marker', + **kwargs): + super(StandoffValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/_standoffsrc.py b/packages/python/plotly/plotly/validators/scatter/marker/_standoffsrc.py index 5997eae1ad8..4b06ce32b25 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/_standoffsrc.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/_standoffsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StandoffsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="standoffsrc", parent_name="scatter.marker", **kwargs - ): - super(StandoffsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StandoffsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='standoffsrc', + parent_name='scatter.marker', + **kwargs): + super(StandoffsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/_symbol.py b/packages/python/plotly/plotly/validators/scatter/marker/_symbol.py index 3a364f7f527..8e9b6906d38 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/_symbol.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/_symbol.py @@ -1,503 +1,15 @@ -import _plotly_utils.basevalidators -class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="symbol", parent_name="scatter.marker", **kwargs): - super(SymbolValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - 0, - "0", - "circle", - 100, - "100", - "circle-open", - 200, - "200", - "circle-dot", - 300, - "300", - "circle-open-dot", - 1, - "1", - "square", - 101, - "101", - "square-open", - 201, - "201", - "square-dot", - 301, - "301", - "square-open-dot", - 2, - "2", - "diamond", - 102, - "102", - "diamond-open", - 202, - "202", - "diamond-dot", - 302, - "302", - "diamond-open-dot", - 3, - "3", - "cross", - 103, - "103", - "cross-open", - 203, - "203", - "cross-dot", - 303, - "303", - "cross-open-dot", - 4, - "4", - "x", - 104, - "104", - "x-open", - 204, - "204", - "x-dot", - 304, - "304", - "x-open-dot", - 5, - "5", - "triangle-up", - 105, - "105", - "triangle-up-open", - 205, - "205", - "triangle-up-dot", - 305, - "305", - "triangle-up-open-dot", - 6, - "6", - "triangle-down", - 106, - "106", - "triangle-down-open", - 206, - "206", - "triangle-down-dot", - 306, - "306", - "triangle-down-open-dot", - 7, - "7", - "triangle-left", - 107, - "107", - "triangle-left-open", - 207, - "207", - "triangle-left-dot", - 307, - "307", - "triangle-left-open-dot", - 8, - "8", - "triangle-right", - 108, - "108", - "triangle-right-open", - 208, - "208", - "triangle-right-dot", - 308, - "308", - "triangle-right-open-dot", - 9, - "9", - "triangle-ne", - 109, - "109", - "triangle-ne-open", - 209, - "209", - "triangle-ne-dot", - 309, - "309", - "triangle-ne-open-dot", - 10, - "10", - "triangle-se", - 110, - "110", - "triangle-se-open", - 210, - "210", - "triangle-se-dot", - 310, - "310", - "triangle-se-open-dot", - 11, - "11", - "triangle-sw", - 111, - "111", - "triangle-sw-open", - 211, - "211", - "triangle-sw-dot", - 311, - "311", - "triangle-sw-open-dot", - 12, - "12", - "triangle-nw", - 112, - "112", - "triangle-nw-open", - 212, - "212", - "triangle-nw-dot", - 312, - "312", - "triangle-nw-open-dot", - 13, - "13", - "pentagon", - 113, - "113", - "pentagon-open", - 213, - "213", - "pentagon-dot", - 313, - "313", - "pentagon-open-dot", - 14, - "14", - "hexagon", - 114, - "114", - "hexagon-open", - 214, - "214", - "hexagon-dot", - 314, - "314", - "hexagon-open-dot", - 15, - "15", - "hexagon2", - 115, - "115", - "hexagon2-open", - 215, - "215", - "hexagon2-dot", - 315, - "315", - "hexagon2-open-dot", - 16, - "16", - "octagon", - 116, - "116", - "octagon-open", - 216, - "216", - "octagon-dot", - 316, - "316", - "octagon-open-dot", - 17, - "17", - "star", - 117, - "117", - "star-open", - 217, - "217", - "star-dot", - 317, - "317", - "star-open-dot", - 18, - "18", - "hexagram", - 118, - "118", - "hexagram-open", - 218, - "218", - "hexagram-dot", - 318, - "318", - "hexagram-open-dot", - 19, - "19", - "star-triangle-up", - 119, - "119", - "star-triangle-up-open", - 219, - "219", - "star-triangle-up-dot", - 319, - "319", - "star-triangle-up-open-dot", - 20, - "20", - "star-triangle-down", - 120, - "120", - "star-triangle-down-open", - 220, - "220", - "star-triangle-down-dot", - 320, - "320", - "star-triangle-down-open-dot", - 21, - "21", - "star-square", - 121, - "121", - "star-square-open", - 221, - "221", - "star-square-dot", - 321, - "321", - "star-square-open-dot", - 22, - "22", - "star-diamond", - 122, - "122", - "star-diamond-open", - 222, - "222", - "star-diamond-dot", - 322, - "322", - "star-diamond-open-dot", - 23, - "23", - "diamond-tall", - 123, - "123", - "diamond-tall-open", - 223, - "223", - "diamond-tall-dot", - 323, - "323", - "diamond-tall-open-dot", - 24, - "24", - "diamond-wide", - 124, - "124", - "diamond-wide-open", - 224, - "224", - "diamond-wide-dot", - 324, - "324", - "diamond-wide-open-dot", - 25, - "25", - "hourglass", - 125, - "125", - "hourglass-open", - 26, - "26", - "bowtie", - 126, - "126", - "bowtie-open", - 27, - "27", - "circle-cross", - 127, - "127", - "circle-cross-open", - 28, - "28", - "circle-x", - 128, - "128", - "circle-x-open", - 29, - "29", - "square-cross", - 129, - "129", - "square-cross-open", - 30, - "30", - "square-x", - 130, - "130", - "square-x-open", - 31, - "31", - "diamond-cross", - 131, - "131", - "diamond-cross-open", - 32, - "32", - "diamond-x", - 132, - "132", - "diamond-x-open", - 33, - "33", - "cross-thin", - 133, - "133", - "cross-thin-open", - 34, - "34", - "x-thin", - 134, - "134", - "x-thin-open", - 35, - "35", - "asterisk", - 135, - "135", - "asterisk-open", - 36, - "36", - "hash", - 136, - "136", - "hash-open", - 236, - "236", - "hash-dot", - 336, - "336", - "hash-open-dot", - 37, - "37", - "y-up", - 137, - "137", - "y-up-open", - 38, - "38", - "y-down", - 138, - "138", - "y-down-open", - 39, - "39", - "y-left", - 139, - "139", - "y-left-open", - 40, - "40", - "y-right", - 140, - "140", - "y-right-open", - 41, - "41", - "line-ew", - 141, - "141", - "line-ew-open", - 42, - "42", - "line-ns", - 142, - "142", - "line-ns-open", - 43, - "43", - "line-ne", - 143, - "143", - "line-ne-open", - 44, - "44", - "line-nw", - 144, - "144", - "line-nw-open", - 45, - "45", - "arrow-up", - 145, - "145", - "arrow-up-open", - 46, - "46", - "arrow-down", - 146, - "146", - "arrow-down-open", - 47, - "47", - "arrow-left", - 147, - "147", - "arrow-left-open", - 48, - "48", - "arrow-right", - 148, - "148", - "arrow-right-open", - 49, - "49", - "arrow-bar-up", - 149, - "149", - "arrow-bar-up-open", - 50, - "50", - "arrow-bar-down", - 150, - "150", - "arrow-bar-down-open", - 51, - "51", - "arrow-bar-left", - 151, - "151", - "arrow-bar-left-open", - 52, - "52", - "arrow-bar-right", - 152, - "152", - "arrow-bar-right-open", - 53, - "53", - "arrow", - 153, - "153", - "arrow-open", - 54, - "54", - "arrow-wide", - 154, - "154", - "arrow-wide-open", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SymbolValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='symbol', + parent_name='scatter.marker', + **kwargs): + super(SymbolValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', [0, '0', 'circle', 100, '100', 'circle-open', 200, '200', 'circle-dot', 300, '300', 'circle-open-dot', 1, '1', 'square', 101, '101', 'square-open', 201, '201', 'square-dot', 301, '301', 'square-open-dot', 2, '2', 'diamond', 102, '102', 'diamond-open', 202, '202', 'diamond-dot', 302, '302', 'diamond-open-dot', 3, '3', 'cross', 103, '103', 'cross-open', 203, '203', 'cross-dot', 303, '303', 'cross-open-dot', 4, '4', 'x', 104, '104', 'x-open', 204, '204', 'x-dot', 304, '304', 'x-open-dot', 5, '5', 'triangle-up', 105, '105', 'triangle-up-open', 205, '205', 'triangle-up-dot', 305, '305', 'triangle-up-open-dot', 6, '6', 'triangle-down', 106, '106', 'triangle-down-open', 206, '206', 'triangle-down-dot', 306, '306', 'triangle-down-open-dot', 7, '7', 'triangle-left', 107, '107', 'triangle-left-open', 207, '207', 'triangle-left-dot', 307, '307', 'triangle-left-open-dot', 8, '8', 'triangle-right', 108, '108', 'triangle-right-open', 208, '208', 'triangle-right-dot', 308, '308', 'triangle-right-open-dot', 9, '9', 'triangle-ne', 109, '109', 'triangle-ne-open', 209, '209', 'triangle-ne-dot', 309, '309', 'triangle-ne-open-dot', 10, '10', 'triangle-se', 110, '110', 'triangle-se-open', 210, '210', 'triangle-se-dot', 310, '310', 'triangle-se-open-dot', 11, '11', 'triangle-sw', 111, '111', 'triangle-sw-open', 211, '211', 'triangle-sw-dot', 311, '311', 'triangle-sw-open-dot', 12, '12', 'triangle-nw', 112, '112', 'triangle-nw-open', 212, '212', 'triangle-nw-dot', 312, '312', 'triangle-nw-open-dot', 13, '13', 'pentagon', 113, '113', 'pentagon-open', 213, '213', 'pentagon-dot', 313, '313', 'pentagon-open-dot', 14, '14', 'hexagon', 114, '114', 'hexagon-open', 214, '214', 'hexagon-dot', 314, '314', 'hexagon-open-dot', 15, '15', 'hexagon2', 115, '115', 'hexagon2-open', 215, '215', 'hexagon2-dot', 315, '315', 'hexagon2-open-dot', 16, '16', 'octagon', 116, '116', 'octagon-open', 216, '216', 'octagon-dot', 316, '316', 'octagon-open-dot', 17, '17', 'star', 117, '117', 'star-open', 217, '217', 'star-dot', 317, '317', 'star-open-dot', 18, '18', 'hexagram', 118, '118', 'hexagram-open', 218, '218', 'hexagram-dot', 318, '318', 'hexagram-open-dot', 19, '19', 'star-triangle-up', 119, '119', 'star-triangle-up-open', 219, '219', 'star-triangle-up-dot', 319, '319', 'star-triangle-up-open-dot', 20, '20', 'star-triangle-down', 120, '120', 'star-triangle-down-open', 220, '220', 'star-triangle-down-dot', 320, '320', 'star-triangle-down-open-dot', 21, '21', 'star-square', 121, '121', 'star-square-open', 221, '221', 'star-square-dot', 321, '321', 'star-square-open-dot', 22, '22', 'star-diamond', 122, '122', 'star-diamond-open', 222, '222', 'star-diamond-dot', 322, '322', 'star-diamond-open-dot', 23, '23', 'diamond-tall', 123, '123', 'diamond-tall-open', 223, '223', 'diamond-tall-dot', 323, '323', 'diamond-tall-open-dot', 24, '24', 'diamond-wide', 124, '124', 'diamond-wide-open', 224, '224', 'diamond-wide-dot', 324, '324', 'diamond-wide-open-dot', 25, '25', 'hourglass', 125, '125', 'hourglass-open', 26, '26', 'bowtie', 126, '126', 'bowtie-open', 27, '27', 'circle-cross', 127, '127', 'circle-cross-open', 28, '28', 'circle-x', 128, '128', 'circle-x-open', 29, '29', 'square-cross', 129, '129', 'square-cross-open', 30, '30', 'square-x', 130, '130', 'square-x-open', 31, '31', 'diamond-cross', 131, '131', 'diamond-cross-open', 32, '32', 'diamond-x', 132, '132', 'diamond-x-open', 33, '33', 'cross-thin', 133, '133', 'cross-thin-open', 34, '34', 'x-thin', 134, '134', 'x-thin-open', 35, '35', 'asterisk', 135, '135', 'asterisk-open', 36, '36', 'hash', 136, '136', 'hash-open', 236, '236', 'hash-dot', 336, '336', 'hash-open-dot', 37, '37', 'y-up', 137, '137', 'y-up-open', 38, '38', 'y-down', 138, '138', 'y-down-open', 39, '39', 'y-left', 139, '139', 'y-left-open', 40, '40', 'y-right', 140, '140', 'y-right-open', 41, '41', 'line-ew', 141, '141', 'line-ew-open', 42, '42', 'line-ns', 142, '142', 'line-ns-open', 43, '43', 'line-ne', 143, '143', 'line-ne-open', 44, '44', 'line-nw', 144, '144', 'line-nw-open', 45, '45', 'arrow-up', 145, '145', 'arrow-up-open', 46, '46', 'arrow-down', 146, '146', 'arrow-down-open', 47, '47', 'arrow-left', 147, '147', 'arrow-left-open', 48, '48', 'arrow-right', 148, '148', 'arrow-right-open', 49, '49', 'arrow-bar-up', 149, '149', 'arrow-bar-up-open', 50, '50', 'arrow-bar-down', 150, '150', 'arrow-bar-down-open', 51, '51', 'arrow-bar-left', 151, '151', 'arrow-bar-left-open', 52, '52', 'arrow-bar-right', 152, '152', 'arrow-bar-right-open', 53, '53', 'arrow', 153, '153', 'arrow-open', 54, '54', 'arrow-wide', 154, '154', 'arrow-wide-open']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/_symbolsrc.py b/packages/python/plotly/plotly/validators/scatter/marker/_symbolsrc.py index 13719d4570a..e46c4c4a924 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/_symbolsrc.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/_symbolsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="symbolsrc", parent_name="scatter.marker", **kwargs): - super(SymbolsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SymbolsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='symbolsrc', + parent_name='scatter.marker', + **kwargs): + super(SymbolsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_bgcolor.py index 8399887bb5a..6fb04fe14f2 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="scatter.marker.colorbar", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='scatter.marker.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_bordercolor.py index 03657f4800b..2f02cf2eb85 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="scatter.marker.colorbar", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='scatter.marker.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_borderwidth.py index 38ee39414c9..8a3b91c778e 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_borderwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderwidth", parent_name="scatter.marker.colorbar", **kwargs - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='scatter.marker.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_dtick.py index cd0eef97651..d45224063d1 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="scatter.marker.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='scatter.marker.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_exponentformat.py index d68dfcb484e..dc4b4849892 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_exponentformat.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="exponentformat", - parent_name="scatter.marker.colorbar", - **kwargs, - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='scatter.marker.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_labelalias.py index ba654ed7a4b..3975d138474 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="scatter.marker.colorbar", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='scatter.marker.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_len.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_len.py index 39628d302a6..ee8787add6c 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_len.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="len", parent_name="scatter.marker.colorbar", **kwargs - ): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='scatter.marker.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_lenmode.py index ceb8cc60c31..37310342c17 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_lenmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="lenmode", parent_name="scatter.marker.colorbar", **kwargs - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='scatter.marker.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_minexponent.py index 5124bf48a2b..f686c626f52 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="scatter.marker.colorbar", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='scatter.marker.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_nticks.py index 542f13d9265..f2974afe96f 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="scatter.marker.colorbar", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='scatter.marker.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_orientation.py index cc15904ff29..3c40cfcef43 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_orientation.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="orientation", parent_name="scatter.marker.colorbar", **kwargs - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='scatter.marker.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_outlinecolor.py index 5f22c331749..3428da58edf 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_outlinecolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="outlinecolor", - parent_name="scatter.marker.colorbar", - **kwargs, - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='scatter.marker.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_outlinewidth.py index 0b8a2ae2173..e21d1eaabe6 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_outlinewidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="outlinewidth", - parent_name="scatter.marker.colorbar", - **kwargs, - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='scatter.marker.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_separatethousands.py index 0db06d828e6..54e5c87c033 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="scatter.marker.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='scatter.marker.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_showexponent.py index 6cbcb649e0e..a292623db70 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_showexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showexponent", - parent_name="scatter.marker.colorbar", - **kwargs, - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='scatter.marker.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_showticklabels.py index 8d0e06d5fe8..385d0614436 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="scatter.marker.colorbar", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='scatter.marker.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_showtickprefix.py index 3633be19611..6fa3dbba8e8 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="scatter.marker.colorbar", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='scatter.marker.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_showticksuffix.py index 8ed606588e9..2025a0d3b79 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="scatter.marker.colorbar", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='scatter.marker.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_thickness.py index cddf5855a5f..bcdd90d0791 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="scatter.marker.colorbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='scatter.marker.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_thicknessmode.py index 5f579903743..cd912f3c45a 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_thicknessmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="thicknessmode", - parent_name="scatter.marker.colorbar", - **kwargs, - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='scatter.marker.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tick0.py index 91825a2cbec..3c66ca0978e 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="scatter.marker.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='scatter.marker.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickangle.py index 36a38a21788..e3ea8aaa38d 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="scatter.marker.colorbar", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='scatter.marker.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickcolor.py index 18455234c88..94b7fa7e96b 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="scatter.marker.colorbar", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='scatter.marker.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickfont.py index dd40df2ecea..41de413b142 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="scatter.marker.colorbar", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='scatter.marker.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickformat.py index a7ff49a95d1..67ffc88b833 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="scatter.marker.colorbar", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='scatter.marker.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickformatstopdefaults.py index 25b1abc1812..6a7c95ee41c 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="scatter.marker.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='scatter.marker.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickformatstops.py index 8e9a4afcc77..339e6ec5ba7 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="scatter.marker.colorbar", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='scatter.marker.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticklabeloverflow.py index 70aa30b39bc..a227e3e2513 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="scatter.marker.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='scatter.marker.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticklabelposition.py index 86f5740c326..265cd29cc6d 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="scatter.marker.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='scatter.marker.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticklabelstep.py index 2d6694e7781..3bad237a978 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticklabelstep.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="ticklabelstep", - parent_name="scatter.marker.colorbar", - **kwargs, - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='scatter.marker.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticklen.py index c8f1bd62cdc..09e93aa0da6 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="scatter.marker.colorbar", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='scatter.marker.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickmode.py index b9f1b8d341c..fae9efb50d9 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="scatter.marker.colorbar", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='scatter.marker.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickprefix.py index 26b171a4c96..3ffbdd68f20 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="scatter.marker.colorbar", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='scatter.marker.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticks.py index 2635fdb156d..b99ac26a124 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="scatter.marker.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='scatter.marker.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticksuffix.py index 06f0fca10f3..5d67e006faf 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="scatter.marker.colorbar", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='scatter.marker.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticktext.py index 98f03d13e2c..0298c3ca355 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="scatter.marker.colorbar", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='scatter.marker.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticktextsrc.py index e5c860dfa64..e758b3dc0cf 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="scatter.marker.colorbar", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='scatter.marker.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickvals.py index 67df9292268..208769e1481 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="scatter.marker.colorbar", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='scatter.marker.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickvalssrc.py index da7f018792e..8160cfeb09a 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="scatter.marker.colorbar", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='scatter.marker.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickwidth.py index 604f512473c..10e1ba36032 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="scatter.marker.colorbar", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='scatter.marker.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_title.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_title.py index 9b1439b3a96..0db5d7eeb93 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="scatter.marker.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='scatter.marker.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_x.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_x.py index 374e27f0ef7..8304ef9d369 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_x.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="x", parent_name="scatter.marker.colorbar", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='scatter.marker.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_xanchor.py index 1573a09d652..2ce1ba7a354 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="scatter.marker.colorbar", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='scatter.marker.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_xpad.py index 10c81c1c232..d4aa18e5d6d 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_xpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="xpad", parent_name="scatter.marker.colorbar", **kwargs - ): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='scatter.marker.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_xref.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_xref.py index ffceac8c474..a3706b0ef3c 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xref", parent_name="scatter.marker.colorbar", **kwargs - ): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='scatter.marker.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_y.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_y.py index 5a19c4bb25d..f13758cb0a6 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_y.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="y", parent_name="scatter.marker.colorbar", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='scatter.marker.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_yanchor.py index 83e742fb2be..bf81092e72d 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="scatter.marker.colorbar", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='scatter.marker.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ypad.py index 19901d1b40c..13494fbb04e 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_ypad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ypad", parent_name="scatter.marker.colorbar", **kwargs - ): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='scatter.marker.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_yref.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_yref.py index 63fe32254f7..cb5bcab6d63 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yref", parent_name="scatter.marker.colorbar", **kwargs - ): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='scatter.marker.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_color.py index 85548b7a2ba..f0f4920a2e8 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatter.marker.colorbar.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatter.marker.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_family.py index 53c41408965..e15ba119154 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scatter.marker.colorbar.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scatter.marker.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_lineposition.py index 2faff5b4a93..23e31e1f193 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scatter.marker.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scatter.marker.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_shadow.py index 0cde2dc9894..20e5d1b94b2 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scatter.marker.colorbar.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scatter.marker.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_size.py index b1c2d86c73b..026ed9a6d3c 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scatter.marker.colorbar.tickfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatter.marker.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_style.py index 6576e53fea8..7827216c208 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scatter.marker.colorbar.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scatter.marker.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_textcase.py index dac54fc6fa5..9e54c96d1c1 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scatter.marker.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scatter.marker.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_variant.py index 268d74686c9..b054db9b70c 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scatter.marker.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scatter.marker.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_weight.py index 6a9e1f198ab..fc1357204c1 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scatter.marker.colorbar.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scatter.marker.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickformatstop/_dtickrange.py index c90cdf4df08..c12c4da4662 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="scatter.marker.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - items=kwargs.pop( - "items", - [ - {"editType": "colorbars", "valType": "any"}, - {"editType": "colorbars", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='scatter.marker.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + items=kwargs.pop('items', [{'editType': 'colorbars', 'valType': 'any'}, {'editType': 'colorbars', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickformatstop/_enabled.py index 060a29194a2..a7e90b6d474 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="scatter.marker.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='scatter.marker.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickformatstop/_name.py index 6d95858edd3..333ed4d04cb 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="scatter.marker.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='scatter.marker.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickformatstop/_templateitemname.py index a23eed02876..56509dfb2be 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="scatter.marker.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='scatter.marker.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickformatstop/_value.py index f0897036a74..b5c196c841d 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="scatter.marker.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='scatter.marker.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/_font.py index 3862f5d7b23..c12aca10a23 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="scatter.marker.colorbar.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scatter.marker.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/_side.py index 42c6668e74e..ae7a34d97a9 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/_side.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="side", parent_name="scatter.marker.colorbar.title", **kwargs - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='scatter.marker.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/_text.py index 6f709415e06..b3adbae1fad 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="scatter.marker.colorbar.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scatter.marker.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_color.py index 73654ca6557..32acbbf1af1 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatter.marker.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatter.marker.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_family.py index a3555ac2650..ffe331b36cd 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scatter.marker.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scatter.marker.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_lineposition.py index 9adbdd11c7c..3783984a632 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scatter.marker.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scatter.marker.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_shadow.py index 7dd64d69781..45a8b47d00a 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scatter.marker.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scatter.marker.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_size.py index f97d150a4ad..a9d3c88c995 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scatter.marker.colorbar.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatter.marker.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_style.py index ae7a966d6b7..cc5f077b155 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scatter.marker.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scatter.marker.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_textcase.py index ba66bc23fc6..ab91b2869a9 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scatter.marker.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scatter.marker.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_variant.py index 569d3830504..038dde0675f 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scatter.marker.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scatter.marker.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_weight.py index b8660f270c8..6ca308d2e6d 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scatter.marker.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scatter.marker.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/gradient/__init__.py b/packages/python/plotly/plotly/validators/scatter/marker/gradient/__init__.py index 624a280ea46..f3927efb3e0 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/gradient/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/gradient/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._typesrc import TypesrcValidator from ._type import TypeValidator @@ -8,14 +7,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._typesrc.TypesrcValidator", - "._type.TypeValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._typesrc.TypesrcValidator', '._type.TypeValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter/marker/gradient/_color.py b/packages/python/plotly/plotly/validators/scatter/marker/gradient/_color.py index 225a4231a27..19784b7653a 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/gradient/_color.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/gradient/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scatter.marker.gradient", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatter.marker.gradient', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/gradient/_colorsrc.py b/packages/python/plotly/plotly/validators/scatter/marker/gradient/_colorsrc.py index 8d15c7bf792..93140549c25 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/gradient/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/gradient/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scatter.marker.gradient", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scatter.marker.gradient', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/gradient/_type.py b/packages/python/plotly/plotly/validators/scatter/marker/gradient/_type.py index c042dc4720a..afe658cc2b4 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/gradient/_type.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/gradient/_type.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="type", parent_name="scatter.marker.gradient", **kwargs - ): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["radial", "horizontal", "vertical", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='scatter.marker.gradient', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['radial', 'horizontal', 'vertical', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/gradient/_typesrc.py b/packages/python/plotly/plotly/validators/scatter/marker/gradient/_typesrc.py index 9a610568114..86601d1efd0 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/gradient/_typesrc.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/gradient/_typesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TypesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="typesrc", parent_name="scatter.marker.gradient", **kwargs - ): - super(TypesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='typesrc', + parent_name='scatter.marker.gradient', + **kwargs): + super(TypesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/line/__init__.py b/packages/python/plotly/plotly/validators/scatter/marker/line/__init__.py index facbe33f884..55d423b11da 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._widthsrc import WidthsrcValidator from ._width import WidthValidator @@ -16,22 +15,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._widthsrc.WidthsrcValidator", - "._width.WidthValidator", - "._reversescale.ReversescaleValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._widthsrc.WidthsrcValidator', '._width.WidthValidator', '._reversescale.ReversescaleValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter/marker/line/_autocolorscale.py b/packages/python/plotly/plotly/validators/scatter/marker/line/_autocolorscale.py index f3573a26703..fbed1bb44ba 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/line/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/line/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="scatter.marker.line", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='scatter.marker.line', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/line/_cauto.py b/packages/python/plotly/plotly/validators/scatter/marker/line/_cauto.py index 88661a24193..c3870669a17 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/line/_cauto.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/line/_cauto.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="cauto", parent_name="scatter.marker.line", **kwargs - ): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='scatter.marker.line', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/line/_cmax.py b/packages/python/plotly/plotly/validators/scatter/marker/line/_cmax.py index 353b7190822..b7e200c1dca 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/line/_cmax.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/line/_cmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmax", parent_name="scatter.marker.line", **kwargs): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='scatter.marker.line', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/line/_cmid.py b/packages/python/plotly/plotly/validators/scatter/marker/line/_cmid.py index ff5e31f5564..4a39cdacdb7 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/line/_cmid.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/line/_cmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmid", parent_name="scatter.marker.line", **kwargs): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='scatter.marker.line', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/line/_cmin.py b/packages/python/plotly/plotly/validators/scatter/marker/line/_cmin.py index 29de8b74c57..70232d24839 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/line/_cmin.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/line/_cmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmin", parent_name="scatter.marker.line", **kwargs): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='scatter.marker.line', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/line/_color.py b/packages/python/plotly/plotly/validators/scatter/marker/line/_color.py index 63b13ff6854..57df09e89f8 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/line/_color.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/line/_color.py @@ -1,18 +1,16 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scatter.marker.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - colorscale_path=kwargs.pop( - "colorscale_path", "scatter.marker.line.colorscale" - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatter.marker.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + colorscale_path=kwargs.pop('colorscale_path', 'scatter.marker.line.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/line/_coloraxis.py b/packages/python/plotly/plotly/validators/scatter/marker/line/_coloraxis.py index 825e0a12a5f..746ddacfafd 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/line/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/line/_coloraxis.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name="coloraxis", parent_name="scatter.marker.line", **kwargs - ): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='scatter.marker.line', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/line/_colorscale.py b/packages/python/plotly/plotly/validators/scatter/marker/line/_colorscale.py index 24d642325fb..f68228e4c76 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/line/_colorscale.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/line/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="scatter.marker.line", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='scatter.marker.line', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/line/_colorsrc.py b/packages/python/plotly/plotly/validators/scatter/marker/line/_colorsrc.py index 76fbd64c8b8..f6f4ad5164f 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/line/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/line/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scatter.marker.line", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scatter.marker.line', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/line/_reversescale.py b/packages/python/plotly/plotly/validators/scatter/marker/line/_reversescale.py index e7a3797fe27..a195d23f181 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/line/_reversescale.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/line/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="scatter.marker.line", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='scatter.marker.line', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/line/_width.py b/packages/python/plotly/plotly/validators/scatter/marker/line/_width.py index d5794557aaa..477556750e3 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/line/_width.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/line/_width.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="scatter.marker.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='scatter.marker.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/marker/line/_widthsrc.py b/packages/python/plotly/plotly/validators/scatter/marker/line/_widthsrc.py index 3e71e64a155..b4c0042d2e9 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/line/_widthsrc.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/line/_widthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="widthsrc", parent_name="scatter.marker.line", **kwargs - ): - super(WidthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='widthsrc', + parent_name='scatter.marker.line', + **kwargs): + super(WidthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/selected/__init__.py b/packages/python/plotly/plotly/validators/scatter/selected/__init__.py index 3b0aeed383f..c0a73fd7df3 100644 --- a/packages/python/plotly/plotly/validators/scatter/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/selected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._textfont import TextfontValidator from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] + __name__, + [], + ['._textfont.TextfontValidator', '._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter/selected/_marker.py b/packages/python/plotly/plotly/validators/scatter/selected/_marker.py index dce7eb58ad5..6c9d278b6f0 100644 --- a/packages/python/plotly/plotly/validators/scatter/selected/_marker.py +++ b/packages/python/plotly/plotly/validators/scatter/selected/_marker.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="scatter.selected", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. - size - Sets the marker size of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scatter.selected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/selected/_textfont.py b/packages/python/plotly/plotly/validators/scatter/selected/_textfont.py index 0a4b2c7564a..7454170d542 100644 --- a/packages/python/plotly/plotly/validators/scatter/selected/_textfont.py +++ b/packages/python/plotly/plotly/validators/scatter/selected/_textfont.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="textfont", parent_name="scatter.selected", **kwargs - ): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the text font color of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='scatter.selected', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/scatter/selected/marker/__init__.py index 8c321a38bc5..b7768f024e8 100644 --- a/packages/python/plotly/plotly/validators/scatter/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/selected/marker/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._size import SizeValidator from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._size.SizeValidator", - "._opacity.OpacityValidator", - "._color.ColorValidator", - ], + ['._size.SizeValidator', '._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter/selected/marker/_color.py b/packages/python/plotly/plotly/validators/scatter/selected/marker/_color.py index f3e57a99c2a..7d1ede991e9 100644 --- a/packages/python/plotly/plotly/validators/scatter/selected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scatter/selected/marker/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scatter.selected.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatter.selected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/selected/marker/_opacity.py b/packages/python/plotly/plotly/validators/scatter/selected/marker/_opacity.py index e75d21d2c66..9b8d025abba 100644 --- a/packages/python/plotly/plotly/validators/scatter/selected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scatter/selected/marker/_opacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="scatter.selected.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scatter.selected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/selected/marker/_size.py b/packages/python/plotly/plotly/validators/scatter/selected/marker/_size.py index ba6e41849d5..8082d60bdc3 100644 --- a/packages/python/plotly/plotly/validators/scatter/selected/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scatter/selected/marker/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scatter.selected.marker", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatter.selected.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/selected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scatter/selected/textfont/__init__.py index a9f087e5af1..86899e5cc51 100644 --- a/packages/python/plotly/plotly/validators/scatter/selected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/selected/textfont/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._color.ColorValidator"] + __name__, + [], + ['._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter/selected/textfont/_color.py b/packages/python/plotly/plotly/validators/scatter/selected/textfont/_color.py index 1cdfaedc7a4..5aa07abd1d6 100644 --- a/packages/python/plotly/plotly/validators/scatter/selected/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/scatter/selected/textfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scatter.selected.textfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatter.selected.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/stream/__init__.py b/packages/python/plotly/plotly/validators/scatter/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/scatter/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/scatter/stream/_maxpoints.py index 0e1bcf3cbc4..66355ce5c7c 100644 --- a/packages/python/plotly/plotly/validators/scatter/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/scatter/stream/_maxpoints.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="maxpoints", parent_name="scatter.stream", **kwargs): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='scatter.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/stream/_token.py b/packages/python/plotly/plotly/validators/scatter/stream/_token.py index 112a934f650..31798b568cc 100644 --- a/packages/python/plotly/plotly/validators/scatter/stream/_token.py +++ b/packages/python/plotly/plotly/validators/scatter/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="scatter.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='scatter.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/textfont/__init__.py b/packages/python/plotly/plotly/validators/scatter/textfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/scatter/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/textfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter/textfont/_color.py b/packages/python/plotly/plotly/validators/scatter/textfont/_color.py index f1ce7da825c..a08403afe00 100644 --- a/packages/python/plotly/plotly/validators/scatter/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/scatter/textfont/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="scatter.textfont", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatter.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/textfont/_colorsrc.py b/packages/python/plotly/plotly/validators/scatter/textfont/_colorsrc.py index 573902c9135..46c50642f76 100644 --- a/packages/python/plotly/plotly/validators/scatter/textfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scatter/textfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scatter.textfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scatter.textfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/textfont/_family.py b/packages/python/plotly/plotly/validators/scatter/textfont/_family.py index 4ccd8962640..cb2662844d3 100644 --- a/packages/python/plotly/plotly/validators/scatter/textfont/_family.py +++ b/packages/python/plotly/plotly/validators/scatter/textfont/_family.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="family", parent_name="scatter.textfont", **kwargs): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scatter.textfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/textfont/_familysrc.py b/packages/python/plotly/plotly/validators/scatter/textfont/_familysrc.py index 7ada4031b4a..bcf581dba48 100644 --- a/packages/python/plotly/plotly/validators/scatter/textfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/scatter/textfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="scatter.textfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='scatter.textfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/textfont/_lineposition.py b/packages/python/plotly/plotly/validators/scatter/textfont/_lineposition.py index 589c2e32fbf..12af96c848e 100644 --- a/packages/python/plotly/plotly/validators/scatter/textfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scatter/textfont/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="scatter.textfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scatter.textfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/textfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/scatter/textfont/_linepositionsrc.py index 1e42a594dc2..642f849c3d7 100644 --- a/packages/python/plotly/plotly/validators/scatter/textfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/scatter/textfont/_linepositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="linepositionsrc", parent_name="scatter.textfont", **kwargs - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='scatter.textfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/textfont/_shadow.py b/packages/python/plotly/plotly/validators/scatter/textfont/_shadow.py index 7183993c6ce..43236b26d94 100644 --- a/packages/python/plotly/plotly/validators/scatter/textfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/scatter/textfont/_shadow.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="shadow", parent_name="scatter.textfont", **kwargs): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scatter.textfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/textfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/scatter/textfont/_shadowsrc.py index 50266bc55c5..0114e624ac2 100644 --- a/packages/python/plotly/plotly/validators/scatter/textfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/scatter/textfont/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="scatter.textfont", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='scatter.textfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/textfont/_size.py b/packages/python/plotly/plotly/validators/scatter/textfont/_size.py index 73df2ed8286..7ec0a6aa745 100644 --- a/packages/python/plotly/plotly/validators/scatter/textfont/_size.py +++ b/packages/python/plotly/plotly/validators/scatter/textfont/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="scatter.textfont", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatter.textfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/textfont/_sizesrc.py b/packages/python/plotly/plotly/validators/scatter/textfont/_sizesrc.py index 77c09ca8b2f..1330aa3e43a 100644 --- a/packages/python/plotly/plotly/validators/scatter/textfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scatter/textfont/_sizesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="sizesrc", parent_name="scatter.textfont", **kwargs): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scatter.textfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/textfont/_style.py b/packages/python/plotly/plotly/validators/scatter/textfont/_style.py index 46afb529fb7..a10ee604905 100644 --- a/packages/python/plotly/plotly/validators/scatter/textfont/_style.py +++ b/packages/python/plotly/plotly/validators/scatter/textfont/_style.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="style", parent_name="scatter.textfont", **kwargs): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scatter.textfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/textfont/_stylesrc.py b/packages/python/plotly/plotly/validators/scatter/textfont/_stylesrc.py index 3ae67d10360..83b364254e1 100644 --- a/packages/python/plotly/plotly/validators/scatter/textfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/scatter/textfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="scatter.textfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='scatter.textfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/textfont/_textcase.py b/packages/python/plotly/plotly/validators/scatter/textfont/_textcase.py index 8c846d5139f..09e2d70017d 100644 --- a/packages/python/plotly/plotly/validators/scatter/textfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/scatter/textfont/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="scatter.textfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scatter.textfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/textfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/scatter/textfont/_textcasesrc.py index 17158530ddc..dec5f103f3e 100644 --- a/packages/python/plotly/plotly/validators/scatter/textfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/scatter/textfont/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="scatter.textfont", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='scatter.textfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/textfont/_variant.py b/packages/python/plotly/plotly/validators/scatter/textfont/_variant.py index 239e307fe8b..a7f9e67648b 100644 --- a/packages/python/plotly/plotly/validators/scatter/textfont/_variant.py +++ b/packages/python/plotly/plotly/validators/scatter/textfont/_variant.py @@ -1,23 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="variant", parent_name="scatter.textfont", **kwargs): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scatter.textfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/textfont/_variantsrc.py b/packages/python/plotly/plotly/validators/scatter/textfont/_variantsrc.py index 69a43995bc3..a360b179d51 100644 --- a/packages/python/plotly/plotly/validators/scatter/textfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/scatter/textfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="scatter.textfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='scatter.textfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/textfont/_weight.py b/packages/python/plotly/plotly/validators/scatter/textfont/_weight.py index e3e1c3340ad..e771ab13428 100644 --- a/packages/python/plotly/plotly/validators/scatter/textfont/_weight.py +++ b/packages/python/plotly/plotly/validators/scatter/textfont/_weight.py @@ -1,15 +1,17 @@ -import _plotly_utils.basevalidators - - -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="weight", parent_name="scatter.textfont", **kwargs): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scatter.textfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/textfont/_weightsrc.py b/packages/python/plotly/plotly/validators/scatter/textfont/_weightsrc.py index fc3fedd3d6a..409b7ca70f2 100644 --- a/packages/python/plotly/plotly/validators/scatter/textfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/scatter/textfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="scatter.textfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='scatter.textfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/unselected/__init__.py b/packages/python/plotly/plotly/validators/scatter/unselected/__init__.py index 3b0aeed383f..c0a73fd7df3 100644 --- a/packages/python/plotly/plotly/validators/scatter/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/unselected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._textfont import TextfontValidator from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] + __name__, + [], + ['._textfont.TextfontValidator', '._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter/unselected/_marker.py b/packages/python/plotly/plotly/validators/scatter/unselected/_marker.py index 7cacde8ce7d..dfcaecf4875 100644 --- a/packages/python/plotly/plotly/validators/scatter/unselected/_marker.py +++ b/packages/python/plotly/plotly/validators/scatter/unselected/_marker.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="scatter.unselected", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - size - Sets the marker size of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scatter.unselected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/unselected/_textfont.py b/packages/python/plotly/plotly/validators/scatter/unselected/_textfont.py index 4ad7ec772fc..463d6e0143b 100644 --- a/packages/python/plotly/plotly/validators/scatter/unselected/_textfont.py +++ b/packages/python/plotly/plotly/validators/scatter/unselected/_textfont.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="textfont", parent_name="scatter.unselected", **kwargs - ): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the text font color of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='scatter.unselected', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/scatter/unselected/marker/__init__.py index 8c321a38bc5..b7768f024e8 100644 --- a/packages/python/plotly/plotly/validators/scatter/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/unselected/marker/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._size import SizeValidator from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._size.SizeValidator", - "._opacity.OpacityValidator", - "._color.ColorValidator", - ], + ['._size.SizeValidator', '._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter/unselected/marker/_color.py b/packages/python/plotly/plotly/validators/scatter/unselected/marker/_color.py index 331c776b011..dcb15686a44 100644 --- a/packages/python/plotly/plotly/validators/scatter/unselected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scatter/unselected/marker/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scatter.unselected.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatter.unselected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/unselected/marker/_opacity.py b/packages/python/plotly/plotly/validators/scatter/unselected/marker/_opacity.py index b0b55394635..fe5f963c860 100644 --- a/packages/python/plotly/plotly/validators/scatter/unselected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scatter/unselected/marker/_opacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="scatter.unselected.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scatter.unselected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/unselected/marker/_size.py b/packages/python/plotly/plotly/validators/scatter/unselected/marker/_size.py index 5b9c79a5702..79076222a7c 100644 --- a/packages/python/plotly/plotly/validators/scatter/unselected/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scatter/unselected/marker/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scatter.unselected.marker", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatter.unselected.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter/unselected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scatter/unselected/textfont/__init__.py index a9f087e5af1..86899e5cc51 100644 --- a/packages/python/plotly/plotly/validators/scatter/unselected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/unselected/textfont/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._color.ColorValidator"] + __name__, + [], + ['._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter/unselected/textfont/_color.py b/packages/python/plotly/plotly/validators/scatter/unselected/textfont/_color.py index ba4eda7a519..8703579979c 100644 --- a/packages/python/plotly/plotly/validators/scatter/unselected/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/scatter/unselected/textfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scatter.unselected.textfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatter.unselected.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/__init__.py index c9a28b14c34..a661e4e5912 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zsrc import ZsrcValidator from ._zhoverformat import ZhoverformatValidator @@ -59,65 +58,10 @@ from ._connectgaps import ConnectgapsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zsrc.ZsrcValidator", - "._zhoverformat.ZhoverformatValidator", - "._zcalendar.ZcalendarValidator", - "._z.ZValidator", - "._ysrc.YsrcValidator", - "._yhoverformat.YhoverformatValidator", - "._ycalendar.YcalendarValidator", - "._y.YValidator", - "._xsrc.XsrcValidator", - "._xhoverformat.XhoverformatValidator", - "._xcalendar.XcalendarValidator", - "._x.XValidator", - "._visible.VisibleValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._texttemplatesrc.TexttemplatesrcValidator", - "._texttemplate.TexttemplateValidator", - "._textsrc.TextsrcValidator", - "._textpositionsrc.TextpositionsrcValidator", - "._textposition.TextpositionValidator", - "._textfont.TextfontValidator", - "._text.TextValidator", - "._surfacecolor.SurfacecolorValidator", - "._surfaceaxis.SurfaceaxisValidator", - "._stream.StreamValidator", - "._showlegend.ShowlegendValidator", - "._scene.SceneValidator", - "._projection.ProjectionValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._mode.ModeValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._marker.MarkerValidator", - "._line.LineValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._error_z.Error_ZValidator", - "._error_y.Error_YValidator", - "._error_x.Error_XValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._connectgaps.ConnectgapsValidator", - ], + ['._zsrc.ZsrcValidator', '._zhoverformat.ZhoverformatValidator', '._zcalendar.ZcalendarValidator', '._z.ZValidator', '._ysrc.YsrcValidator', '._yhoverformat.YhoverformatValidator', '._ycalendar.YcalendarValidator', '._y.YValidator', '._xsrc.XsrcValidator', '._xhoverformat.XhoverformatValidator', '._xcalendar.XcalendarValidator', '._x.XValidator', '._visible.VisibleValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._texttemplatesrc.TexttemplatesrcValidator', '._texttemplate.TexttemplateValidator', '._textsrc.TextsrcValidator', '._textpositionsrc.TextpositionsrcValidator', '._textposition.TextpositionValidator', '._textfont.TextfontValidator', '._text.TextValidator', '._surfacecolor.SurfacecolorValidator', '._surfaceaxis.SurfaceaxisValidator', '._stream.StreamValidator', '._showlegend.ShowlegendValidator', '._scene.SceneValidator', '._projection.ProjectionValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._mode.ModeValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._marker.MarkerValidator', '._line.LineValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._error_z.Error_ZValidator', '._error_y.Error_YValidator', '._error_x.Error_XValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._connectgaps.ConnectgapsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter3d/_connectgaps.py b/packages/python/plotly/plotly/validators/scatter3d/_connectgaps.py index 0c907c5d4c8..990c49027e4 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_connectgaps.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_connectgaps.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="connectgaps", parent_name="scatter3d", **kwargs): - super(ConnectgapsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ConnectgapsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='connectgaps', + parent_name='scatter3d', + **kwargs): + super(ConnectgapsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_customdata.py b/packages/python/plotly/plotly/validators/scatter3d/_customdata.py index e78c83272cf..d687b9765f7 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_customdata.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="scatter3d", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='scatter3d', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_customdatasrc.py b/packages/python/plotly/plotly/validators/scatter3d/_customdatasrc.py index eeaaa1b47d8..55bcd1c1282 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="scatter3d", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='scatter3d', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_error_x.py b/packages/python/plotly/plotly/validators/scatter3d/_error_x.py index 414c3808778..7d98197faf8 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_error_x.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_error_x.py @@ -1,73 +1,15 @@ -import _plotly_utils.basevalidators -class Error_XValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="error_x", parent_name="scatter3d", **kwargs): - super(Error_XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ErrorX"), - data_docs=kwargs.pop( - "data_docs", - """ - array - Sets the data corresponding the length of each - error bar. Values are plotted relative to the - underlying data. - arrayminus - Sets the data corresponding the length of each - error bar in the bottom (left) direction for - vertical (horizontal) bars Values are plotted - relative to the underlying data. - arrayminussrc - Sets the source reference on Chart Studio Cloud - for `arrayminus`. - arraysrc - Sets the source reference on Chart Studio Cloud - for `array`. - color - Sets the stroke color of the error bars. - copy_zstyle +import _plotly_utils.basevalidators as _bv - symmetric - Determines whether or not the error bars have - the same length in both direction (top/bottom - for vertical bars, left/right for horizontal - bars. - thickness - Sets the thickness (in px) of the error bars. - traceref - tracerefminus - - type - Determines the rule used to generate the error - bars. If *constant`, the bar lengths are of a - constant value. Set this constant in `value`. - If "percent", the bar lengths correspond to a - percentage of underlying data. Set this - percentage in `value`. If "sqrt", the bar - lengths correspond to the square of the - underlying data. If "data", the bar lengths are - set with data set `array`. - value - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars. - valueminus - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars in the bottom - (left) direction for vertical (horizontal) bars - visible - Determines whether or not this set of error - bars is visible. - width - Sets the width (in px) of the cross-bar at both - ends of the error bars. -""", - ), - **kwargs, - ) +class Error_XValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='error_x', + parent_name='scatter3d', + **kwargs): + super(Error_XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ErrorX'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_error_y.py b/packages/python/plotly/plotly/validators/scatter3d/_error_y.py index dc2b70655a2..1d04b7d4051 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_error_y.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_error_y.py @@ -1,73 +1,15 @@ -import _plotly_utils.basevalidators -class Error_YValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="error_y", parent_name="scatter3d", **kwargs): - super(Error_YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ErrorY"), - data_docs=kwargs.pop( - "data_docs", - """ - array - Sets the data corresponding the length of each - error bar. Values are plotted relative to the - underlying data. - arrayminus - Sets the data corresponding the length of each - error bar in the bottom (left) direction for - vertical (horizontal) bars Values are plotted - relative to the underlying data. - arrayminussrc - Sets the source reference on Chart Studio Cloud - for `arrayminus`. - arraysrc - Sets the source reference on Chart Studio Cloud - for `array`. - color - Sets the stroke color of the error bars. - copy_zstyle +import _plotly_utils.basevalidators as _bv - symmetric - Determines whether or not the error bars have - the same length in both direction (top/bottom - for vertical bars, left/right for horizontal - bars. - thickness - Sets the thickness (in px) of the error bars. - traceref - tracerefminus - - type - Determines the rule used to generate the error - bars. If *constant`, the bar lengths are of a - constant value. Set this constant in `value`. - If "percent", the bar lengths correspond to a - percentage of underlying data. Set this - percentage in `value`. If "sqrt", the bar - lengths correspond to the square of the - underlying data. If "data", the bar lengths are - set with data set `array`. - value - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars. - valueminus - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars in the bottom - (left) direction for vertical (horizontal) bars - visible - Determines whether or not this set of error - bars is visible. - width - Sets the width (in px) of the cross-bar at both - ends of the error bars. -""", - ), - **kwargs, - ) +class Error_YValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='error_y', + parent_name='scatter3d', + **kwargs): + super(Error_YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ErrorY'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_error_z.py b/packages/python/plotly/plotly/validators/scatter3d/_error_z.py index 35d4c03dd91..8222b7678a5 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_error_z.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_error_z.py @@ -1,71 +1,15 @@ -import _plotly_utils.basevalidators -class Error_ZValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="error_z", parent_name="scatter3d", **kwargs): - super(Error_ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ErrorZ"), - data_docs=kwargs.pop( - "data_docs", - """ - array - Sets the data corresponding the length of each - error bar. Values are plotted relative to the - underlying data. - arrayminus - Sets the data corresponding the length of each - error bar in the bottom (left) direction for - vertical (horizontal) bars Values are plotted - relative to the underlying data. - arrayminussrc - Sets the source reference on Chart Studio Cloud - for `arrayminus`. - arraysrc - Sets the source reference on Chart Studio Cloud - for `array`. - color - Sets the stroke color of the error bars. - symmetric - Determines whether or not the error bars have - the same length in both direction (top/bottom - for vertical bars, left/right for horizontal - bars. - thickness - Sets the thickness (in px) of the error bars. - traceref +import _plotly_utils.basevalidators as _bv - tracerefminus - type - Determines the rule used to generate the error - bars. If *constant`, the bar lengths are of a - constant value. Set this constant in `value`. - If "percent", the bar lengths correspond to a - percentage of underlying data. Set this - percentage in `value`. If "sqrt", the bar - lengths correspond to the square of the - underlying data. If "data", the bar lengths are - set with data set `array`. - value - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars. - valueminus - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars in the bottom - (left) direction for vertical (horizontal) bars - visible - Determines whether or not this set of error - bars is visible. - width - Sets the width (in px) of the cross-bar at both - ends of the error bars. -""", - ), - **kwargs, - ) +class Error_ZValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='error_z', + parent_name='scatter3d', + **kwargs): + super(Error_ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ErrorZ'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_hoverinfo.py b/packages/python/plotly/plotly/validators/scatter3d/_hoverinfo.py index 38589286723..7be5680f747 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="scatter3d", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='scatter3d', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/scatter3d/_hoverinfosrc.py index 2e4ca6ac821..2880c7c736a 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="scatter3d", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='scatter3d', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_hoverlabel.py b/packages/python/plotly/plotly/validators/scatter3d/_hoverlabel.py index ab2ae978689..409e38e1103 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="scatter3d", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='scatter3d', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_hovertemplate.py b/packages/python/plotly/plotly/validators/scatter3d/_hovertemplate.py index cab0520f7b5..67e5a3cb860 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_hovertemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="scatter3d", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='scatter3d', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/scatter3d/_hovertemplatesrc.py index 6cd9ce9e212..29b1de06b17 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_hovertemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertemplatesrc", parent_name="scatter3d", **kwargs - ): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='scatter3d', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_hovertext.py b/packages/python/plotly/plotly/validators/scatter3d/_hovertext.py index ae55845ad8b..25b425aa9f4 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_hovertext.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="scatter3d", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='scatter3d', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_hovertextsrc.py b/packages/python/plotly/plotly/validators/scatter3d/_hovertextsrc.py index 32aaaffc11c..38c4df6e680 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="scatter3d", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='scatter3d', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_ids.py b/packages/python/plotly/plotly/validators/scatter3d/_ids.py index db8096b52b5..99333fc0a3a 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_ids.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="scatter3d", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='scatter3d', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_idssrc.py b/packages/python/plotly/plotly/validators/scatter3d/_idssrc.py index 42574639cc0..f73169016b4 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_idssrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="scatter3d", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='scatter3d', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_legend.py b/packages/python/plotly/plotly/validators/scatter3d/_legend.py index 03291a667e4..1157b8207c8 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_legend.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="scatter3d", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='scatter3d', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_legendgroup.py b/packages/python/plotly/plotly/validators/scatter3d/_legendgroup.py index f9e5ebd962c..c9760e9f297 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="scatter3d", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='scatter3d', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/scatter3d/_legendgrouptitle.py index dd490f6a0e7..65e8d1e710c 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="scatter3d", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='scatter3d', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_legendrank.py b/packages/python/plotly/plotly/validators/scatter3d/_legendrank.py index 014a5ea674f..7b16cf69c68 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_legendrank.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="scatter3d", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='scatter3d', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_legendwidth.py b/packages/python/plotly/plotly/validators/scatter3d/_legendwidth.py index 943ae7c2dc3..f0848aaaaa5 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="scatter3d", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='scatter3d', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_line.py b/packages/python/plotly/plotly/validators/scatter3d/_line.py index 09dd280aecf..f2e5a7efd1b 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_line.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_line.py @@ -1,106 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="scatter3d", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `line.colorscale`. Has an effect - only if in `line.color` is set to a numerical - array. In case `colorscale` is unspecified or - `autocolorscale` is true, the default palette - will be chosen according to whether numbers in - the `color` array are all positive, all - negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `line.color`) or the bounds set in - `line.cmin` and `line.cmax` Has an effect only - if in `line.color` is set to a numerical array. - Defaults to `false` when `line.cmin` and - `line.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `line.color` is set to a - numerical array. Value should have the same - units as in `line.color` and if set, - `line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `line.cmin` and/or `line.cmax` to be - equidistant to this point. Has an effect only - if in `line.color` is set to a numerical array. - Value should have the same units as in - `line.color`. Has no effect when `line.cauto` - is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `line.color` is set to a - numerical array. Value should have the same - units as in `line.color` and if set, - `line.cmax` must be set as well. - color - Sets the line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `line.cmin` and `line.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.scatter3d.line.Col - orBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `line.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `line.cmin` and `line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - dash - Sets the dash style of the lines. - reversescale - Reverses the color mapping if true. Has an - effect only if in `line.color` is set to a - numerical array. If true, `line.cmin` will - correspond to the last color in the array and - `line.cmax` will correspond to the first color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `line.color` is set to a numerical array. - width - Sets the line width (in px). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='scatter3d', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_marker.py b/packages/python/plotly/plotly/validators/scatter3d/_marker.py index 98a9dcf4792..92a65771267 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_marker.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_marker.py @@ -1,137 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="scatter3d", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.scatter3d.marker.C - olorBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - line - :class:`plotly.graph_objects.scatter3d.marker.L - ine` instance or dict with compatible - properties - opacity - Sets the marker opacity. Note that the marker - opacity for scatter3d traces must be a scalar - value for performance reasons. To set a - blending opacity value (i.e. which is not - transparent), set "marker.color" to an rgba - color and use its alpha channel. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. - size - Sets the marker size (in px). - sizemin - Has an effect only if `marker.size` is set to a - numerical array. Sets the minimum size (in px) - of the rendered marker points. - sizemode - Has an effect only if `marker.size` is set to a - numerical array. Sets the rule for which the - data in `size` is converted to pixels. - sizeref - Has an effect only if `marker.size` is set to a - numerical array. Sets the scale factor used to - determine the rendered size of marker points. - Use with `sizemin` and `sizemode`. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - symbol - Sets the marker symbol type. - symbolsrc - Sets the source reference on Chart Studio Cloud - for `symbol`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scatter3d', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_meta.py b/packages/python/plotly/plotly/validators/scatter3d/_meta.py index 4087a15364a..56b7c9eae33 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_meta.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="scatter3d", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='scatter3d', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_metasrc.py b/packages/python/plotly/plotly/validators/scatter3d/_metasrc.py index cc1ee2d8c63..8108b672081 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_metasrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="scatter3d", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='scatter3d', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_mode.py b/packages/python/plotly/plotly/validators/scatter3d/_mode.py index 2cbcd36a1dd..8eb3e1728ad 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_mode.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_mode.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="mode", parent_name="scatter3d", **kwargs): - super(ModeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["lines", "markers", "text"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ModeValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='mode', + parent_name='scatter3d', + **kwargs): + super(ModeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['lines', 'markers', 'text']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_name.py b/packages/python/plotly/plotly/validators/scatter3d/_name.py index cb0558f813f..d4c9710502b 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_name.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="scatter3d", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='scatter3d', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_opacity.py b/packages/python/plotly/plotly/validators/scatter3d/_opacity.py index 2223000e211..4200c0dbe7c 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_opacity.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="scatter3d", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scatter3d', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_projection.py b/packages/python/plotly/plotly/validators/scatter3d/_projection.py index b3cc0fdbace..6a5668be99d 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_projection.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_projection.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class ProjectionValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="projection", parent_name="scatter3d", **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", - """ - x - :class:`plotly.graph_objects.scatter3d.projecti - on.X` instance or dict with compatible - properties - y - :class:`plotly.graph_objects.scatter3d.projecti - on.Y` instance or dict with compatible - properties - z - :class:`plotly.graph_objects.scatter3d.projecti - on.Z` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ProjectionValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='projection', + parent_name='scatter3d', + **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', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_scene.py b/packages/python/plotly/plotly/validators/scatter3d/_scene.py index e06212869f9..221b7806dec 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_scene.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_scene.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SceneValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="scene", parent_name="scatter3d", **kwargs): - super(SceneValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "scene"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SceneValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='scene', + parent_name='scatter3d', + **kwargs): + super(SceneValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'scene'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_showlegend.py b/packages/python/plotly/plotly/validators/scatter3d/_showlegend.py index 3e604c5e2f2..a63a67fbfc4 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_showlegend.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="scatter3d", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='scatter3d', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_stream.py b/packages/python/plotly/plotly/validators/scatter3d/_stream.py index 61ea3739a11..727801aaf0c 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_stream.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="scatter3d", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='scatter3d', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_surfaceaxis.py b/packages/python/plotly/plotly/validators/scatter3d/_surfaceaxis.py index 0c994a41137..91191126f70 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_surfaceaxis.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_surfaceaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SurfaceaxisValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="surfaceaxis", parent_name="scatter3d", **kwargs): - super(SurfaceaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [-1, 0, 1, 2]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SurfaceaxisValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='surfaceaxis', + parent_name='scatter3d', + **kwargs): + super(SurfaceaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [-1, 0, 1, 2]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_surfacecolor.py b/packages/python/plotly/plotly/validators/scatter3d/_surfacecolor.py index af54219bb7f..24e28a62721 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_surfacecolor.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_surfacecolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SurfacecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="surfacecolor", parent_name="scatter3d", **kwargs): - super(SurfacecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SurfacecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='surfacecolor', + parent_name='scatter3d', + **kwargs): + super(SurfacecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_text.py b/packages/python/plotly/plotly/validators/scatter3d/_text.py index b892ce98802..bafbf299e44 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_text.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="scatter3d", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scatter3d', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_textfont.py b/packages/python/plotly/plotly/validators/scatter3d/_textfont.py index fbab9e734ac..cb984220e25 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_textfont.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_textfont.py @@ -1,62 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="textfont", parent_name="scatter3d", **kwargs): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='scatter3d', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_textposition.py b/packages/python/plotly/plotly/validators/scatter3d/_textposition.py index 56164a1b153..4ae5ba2d2b9 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_textposition.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_textposition.py @@ -1,26 +1,15 @@ -import _plotly_utils.basevalidators -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="textposition", parent_name="scatter3d", **kwargs): - super(TextpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "top left", - "top center", - "top right", - "middle left", - "middle center", - "middle right", - "bottom left", - "bottom center", - "bottom right", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textposition', + parent_name='scatter3d', + **kwargs): + super(TextpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['top left', 'top center', 'top right', 'middle left', 'middle center', 'middle right', 'bottom left', 'bottom center', 'bottom right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_textpositionsrc.py b/packages/python/plotly/plotly/validators/scatter3d/_textpositionsrc.py index 6ed87d9c2eb..e16f3bb886c 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_textpositionsrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_textpositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textpositionsrc", parent_name="scatter3d", **kwargs - ): - super(TextpositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextpositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textpositionsrc', + parent_name='scatter3d', + **kwargs): + super(TextpositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_textsrc.py b/packages/python/plotly/plotly/validators/scatter3d/_textsrc.py index 4219c5aa362..f826aa44ea8 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_textsrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="scatter3d", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='scatter3d', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_texttemplate.py b/packages/python/plotly/plotly/validators/scatter3d/_texttemplate.py index 1bc20498443..0571d5655c1 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_texttemplate.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_texttemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="texttemplate", parent_name="scatter3d", **kwargs): - super(TexttemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='texttemplate', + parent_name='scatter3d', + **kwargs): + super(TexttemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_texttemplatesrc.py b/packages/python/plotly/plotly/validators/scatter3d/_texttemplatesrc.py index fa96152174d..0bb280bc0b5 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_texttemplatesrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_texttemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="texttemplatesrc", parent_name="scatter3d", **kwargs - ): - super(TexttemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='texttemplatesrc', + parent_name='scatter3d', + **kwargs): + super(TexttemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_uid.py b/packages/python/plotly/plotly/validators/scatter3d/_uid.py index 19725b83035..bb4b20cce66 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_uid.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="scatter3d", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='scatter3d', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_uirevision.py b/packages/python/plotly/plotly/validators/scatter3d/_uirevision.py index 3781e14c227..df1e3e50381 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_uirevision.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="scatter3d", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='scatter3d', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_visible.py b/packages/python/plotly/plotly/validators/scatter3d/_visible.py index 1bf2894bb0d..54cdfcb54a2 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_visible.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="scatter3d", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='scatter3d', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_x.py b/packages/python/plotly/plotly/validators/scatter3d/_x.py index a7a59dc05c9..86c6d42f9b6 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_x.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="x", parent_name="scatter3d", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='x', + parent_name='scatter3d', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_xcalendar.py b/packages/python/plotly/plotly/validators/scatter3d/_xcalendar.py index 4233e106728..c1cee558dc9 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_xcalendar.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_xcalendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xcalendar", parent_name="scatter3d", **kwargs): - super(XcalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XcalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xcalendar', + parent_name='scatter3d', + **kwargs): + super(XcalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_xhoverformat.py b/packages/python/plotly/plotly/validators/scatter3d/_xhoverformat.py index f434175bf9f..a88c17ad298 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_xhoverformat.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_xhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="xhoverformat", parent_name="scatter3d", **kwargs): - super(XhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='xhoverformat', + parent_name='scatter3d', + **kwargs): + super(XhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_xsrc.py b/packages/python/plotly/plotly/validators/scatter3d/_xsrc.py index fedd96d67d5..d988608a82f 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_xsrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_xsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="xsrc", parent_name="scatter3d", **kwargs): - super(XsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='xsrc', + parent_name='scatter3d', + **kwargs): + super(XsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_y.py b/packages/python/plotly/plotly/validators/scatter3d/_y.py index 3e92f7856b0..d16d4a72b1d 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_y.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="y", parent_name="scatter3d", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='y', + parent_name='scatter3d', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_ycalendar.py b/packages/python/plotly/plotly/validators/scatter3d/_ycalendar.py index a3bb86e9252..d82426af1d0 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_ycalendar.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_ycalendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="ycalendar", parent_name="scatter3d", **kwargs): - super(YcalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YcalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ycalendar', + parent_name='scatter3d', + **kwargs): + super(YcalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_yhoverformat.py b/packages/python/plotly/plotly/validators/scatter3d/_yhoverformat.py index 2dec92fd013..98a459746d6 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_yhoverformat.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_yhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="yhoverformat", parent_name="scatter3d", **kwargs): - super(YhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='yhoverformat', + parent_name='scatter3d', + **kwargs): + super(YhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_ysrc.py b/packages/python/plotly/plotly/validators/scatter3d/_ysrc.py index ee1d761a3db..8036904c383 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_ysrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_ysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="ysrc", parent_name="scatter3d", **kwargs): - super(YsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ysrc', + parent_name='scatter3d', + **kwargs): + super(YsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_z.py b/packages/python/plotly/plotly/validators/scatter3d/_z.py index 68276170874..176b02b2985 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_z.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_z.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="z", parent_name="scatter3d", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='z', + parent_name='scatter3d', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_zcalendar.py b/packages/python/plotly/plotly/validators/scatter3d/_zcalendar.py index 71a0b8a7266..a8c93bb7d4d 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_zcalendar.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_zcalendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class ZcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="zcalendar", parent_name="scatter3d", **kwargs): - super(ZcalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZcalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='zcalendar', + parent_name='scatter3d', + **kwargs): + super(ZcalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_zhoverformat.py b/packages/python/plotly/plotly/validators/scatter3d/_zhoverformat.py index 543d7e8098d..ce9496ed8db 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_zhoverformat.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_zhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="zhoverformat", parent_name="scatter3d", **kwargs): - super(ZhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='zhoverformat', + parent_name='scatter3d', + **kwargs): + super(ZhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/_zsrc.py b/packages/python/plotly/plotly/validators/scatter3d/_zsrc.py index 35c1051cb5e..bf04d4c7b82 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/_zsrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/_zsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="zsrc", parent_name="scatter3d", **kwargs): - super(ZsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='zsrc', + parent_name='scatter3d', + **kwargs): + super(ZsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_x/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/error_x/__init__.py index ff9282973c6..747fe6a0538 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_x/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_x/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._visible import VisibleValidator @@ -19,25 +18,10 @@ from ._array import ArrayValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._visible.VisibleValidator", - "._valueminus.ValueminusValidator", - "._value.ValueValidator", - "._type.TypeValidator", - "._tracerefminus.TracerefminusValidator", - "._traceref.TracerefValidator", - "._thickness.ThicknessValidator", - "._symmetric.SymmetricValidator", - "._copy_zstyle.Copy_ZstyleValidator", - "._color.ColorValidator", - "._arraysrc.ArraysrcValidator", - "._arrayminussrc.ArrayminussrcValidator", - "._arrayminus.ArrayminusValidator", - "._array.ArrayValidator", - ], + ['._width.WidthValidator', '._visible.VisibleValidator', '._valueminus.ValueminusValidator', '._value.ValueValidator', '._type.TypeValidator', '._tracerefminus.TracerefminusValidator', '._traceref.TracerefValidator', '._thickness.ThicknessValidator', '._symmetric.SymmetricValidator', '._copy_zstyle.Copy_ZstyleValidator', '._color.ColorValidator', '._arraysrc.ArraysrcValidator', '._arrayminussrc.ArrayminussrcValidator', '._arrayminus.ArrayminusValidator', '._array.ArrayValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_x/_array.py b/packages/python/plotly/plotly/validators/scatter3d/error_x/_array.py index e062504d972..ee9e4a5d8e2 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_x/_array.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_x/_array.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="array", parent_name="scatter3d.error_x", **kwargs): - super(ArrayValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ArrayValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='array', + parent_name='scatter3d.error_x', + **kwargs): + super(ArrayValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_x/_arrayminus.py b/packages/python/plotly/plotly/validators/scatter3d/error_x/_arrayminus.py index 378e0cbb2cf..8a75caefdf5 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_x/_arrayminus.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_x/_arrayminus.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="arrayminus", parent_name="scatter3d.error_x", **kwargs - ): - super(ArrayminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrayminusValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='arrayminus', + parent_name='scatter3d.error_x', + **kwargs): + super(ArrayminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_x/_arrayminussrc.py b/packages/python/plotly/plotly/validators/scatter3d/error_x/_arrayminussrc.py index edb69ba1c7d..d89d3be84fb 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_x/_arrayminussrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_x/_arrayminussrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="arrayminussrc", parent_name="scatter3d.error_x", **kwargs - ): - super(ArrayminussrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrayminussrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='arrayminussrc', + parent_name='scatter3d.error_x', + **kwargs): + super(ArrayminussrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_x/_arraysrc.py b/packages/python/plotly/plotly/validators/scatter3d/error_x/_arraysrc.py index cf4d8f7420a..794256c4fff 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_x/_arraysrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_x/_arraysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="arraysrc", parent_name="scatter3d.error_x", **kwargs - ): - super(ArraysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArraysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='arraysrc', + parent_name='scatter3d.error_x', + **kwargs): + super(ArraysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_x/_color.py b/packages/python/plotly/plotly/validators/scatter3d/error_x/_color.py index b634d53abc5..8cc3e8abceb 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_x/_color.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_x/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="scatter3d.error_x", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatter3d.error_x', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_x/_copy_zstyle.py b/packages/python/plotly/plotly/validators/scatter3d/error_x/_copy_zstyle.py index 683b9493b7d..07fb36d6145 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_x/_copy_zstyle.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_x/_copy_zstyle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class Copy_ZstyleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="copy_zstyle", parent_name="scatter3d.error_x", **kwargs - ): - super(Copy_ZstyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Copy_ZstyleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='copy_zstyle', + parent_name='scatter3d.error_x', + **kwargs): + super(Copy_ZstyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_x/_symmetric.py b/packages/python/plotly/plotly/validators/scatter3d/error_x/_symmetric.py index 4400e330ef7..3405e80de18 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_x/_symmetric.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_x/_symmetric.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="symmetric", parent_name="scatter3d.error_x", **kwargs - ): - super(SymmetricValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SymmetricValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='symmetric', + parent_name='scatter3d.error_x', + **kwargs): + super(SymmetricValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_x/_thickness.py b/packages/python/plotly/plotly/validators/scatter3d/error_x/_thickness.py index 8d9a6a1d7ce..c87bbc4c8ae 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_x/_thickness.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_x/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="scatter3d.error_x", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='scatter3d.error_x', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_x/_traceref.py b/packages/python/plotly/plotly/validators/scatter3d/error_x/_traceref.py index 29ab9e594a1..a269c33dbf0 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_x/_traceref.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_x/_traceref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="traceref", parent_name="scatter3d.error_x", **kwargs - ): - super(TracerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TracerefValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='traceref', + parent_name='scatter3d.error_x', + **kwargs): + super(TracerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_x/_tracerefminus.py b/packages/python/plotly/plotly/validators/scatter3d/error_x/_tracerefminus.py index afc73820cbb..01f83c3eb83 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_x/_tracerefminus.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_x/_tracerefminus.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="tracerefminus", parent_name="scatter3d.error_x", **kwargs - ): - super(TracerefminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TracerefminusValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='tracerefminus', + parent_name='scatter3d.error_x', + **kwargs): + super(TracerefminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_x/_type.py b/packages/python/plotly/plotly/validators/scatter3d/error_x/_type.py index 381798c7ac7..7d597f94a98 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_x/_type.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_x/_type.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="type", parent_name="scatter3d.error_x", **kwargs): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='scatter3d.error_x', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['percent', 'constant', 'sqrt', 'data']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_x/_value.py b/packages/python/plotly/plotly/validators/scatter3d/error_x/_value.py index 358b176e625..e0d0d8b0c62 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_x/_value.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_x/_value.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ValueValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="value", parent_name="scatter3d.error_x", **kwargs): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.NumberValidator): + def __init__(self, plotly_name='value', + parent_name='scatter3d.error_x', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_x/_valueminus.py b/packages/python/plotly/plotly/validators/scatter3d/error_x/_valueminus.py index 4664beb6616..c7a4ff34971 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_x/_valueminus.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_x/_valueminus.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="valueminus", parent_name="scatter3d.error_x", **kwargs - ): - super(ValueminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueminusValidator(_bv.NumberValidator): + def __init__(self, plotly_name='valueminus', + parent_name='scatter3d.error_x', + **kwargs): + super(ValueminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_x/_visible.py b/packages/python/plotly/plotly/validators/scatter3d/error_x/_visible.py index f69873fb04f..5770caae7bc 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_x/_visible.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_x/_visible.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="visible", parent_name="scatter3d.error_x", **kwargs - ): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='scatter3d.error_x', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_x/_width.py b/packages/python/plotly/plotly/validators/scatter3d/error_x/_width.py index 253aca9e57f..c2dbbbf5e9c 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_x/_width.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_x/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="scatter3d.error_x", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='scatter3d.error_x', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_y/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/error_y/__init__.py index ff9282973c6..747fe6a0538 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_y/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_y/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._visible import VisibleValidator @@ -19,25 +18,10 @@ from ._array import ArrayValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._visible.VisibleValidator", - "._valueminus.ValueminusValidator", - "._value.ValueValidator", - "._type.TypeValidator", - "._tracerefminus.TracerefminusValidator", - "._traceref.TracerefValidator", - "._thickness.ThicknessValidator", - "._symmetric.SymmetricValidator", - "._copy_zstyle.Copy_ZstyleValidator", - "._color.ColorValidator", - "._arraysrc.ArraysrcValidator", - "._arrayminussrc.ArrayminussrcValidator", - "._arrayminus.ArrayminusValidator", - "._array.ArrayValidator", - ], + ['._width.WidthValidator', '._visible.VisibleValidator', '._valueminus.ValueminusValidator', '._value.ValueValidator', '._type.TypeValidator', '._tracerefminus.TracerefminusValidator', '._traceref.TracerefValidator', '._thickness.ThicknessValidator', '._symmetric.SymmetricValidator', '._copy_zstyle.Copy_ZstyleValidator', '._color.ColorValidator', '._arraysrc.ArraysrcValidator', '._arrayminussrc.ArrayminussrcValidator', '._arrayminus.ArrayminusValidator', '._array.ArrayValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_y/_array.py b/packages/python/plotly/plotly/validators/scatter3d/error_y/_array.py index 67372cfcfde..73b108b15f5 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_y/_array.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_y/_array.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="array", parent_name="scatter3d.error_y", **kwargs): - super(ArrayValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ArrayValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='array', + parent_name='scatter3d.error_y', + **kwargs): + super(ArrayValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_y/_arrayminus.py b/packages/python/plotly/plotly/validators/scatter3d/error_y/_arrayminus.py index c24fe735de7..08c97b37afd 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_y/_arrayminus.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_y/_arrayminus.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="arrayminus", parent_name="scatter3d.error_y", **kwargs - ): - super(ArrayminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrayminusValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='arrayminus', + parent_name='scatter3d.error_y', + **kwargs): + super(ArrayminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_y/_arrayminussrc.py b/packages/python/plotly/plotly/validators/scatter3d/error_y/_arrayminussrc.py index bba9b0a20cf..7bbea1a5030 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_y/_arrayminussrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_y/_arrayminussrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="arrayminussrc", parent_name="scatter3d.error_y", **kwargs - ): - super(ArrayminussrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrayminussrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='arrayminussrc', + parent_name='scatter3d.error_y', + **kwargs): + super(ArrayminussrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_y/_arraysrc.py b/packages/python/plotly/plotly/validators/scatter3d/error_y/_arraysrc.py index 47b7b6c275e..f07bc4ab7d0 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_y/_arraysrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_y/_arraysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="arraysrc", parent_name="scatter3d.error_y", **kwargs - ): - super(ArraysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArraysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='arraysrc', + parent_name='scatter3d.error_y', + **kwargs): + super(ArraysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_y/_color.py b/packages/python/plotly/plotly/validators/scatter3d/error_y/_color.py index 0b63777fb33..960ef22b624 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_y/_color.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_y/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="scatter3d.error_y", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatter3d.error_y', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_y/_copy_zstyle.py b/packages/python/plotly/plotly/validators/scatter3d/error_y/_copy_zstyle.py index e63722ce7f9..624e599b998 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_y/_copy_zstyle.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_y/_copy_zstyle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class Copy_ZstyleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="copy_zstyle", parent_name="scatter3d.error_y", **kwargs - ): - super(Copy_ZstyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Copy_ZstyleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='copy_zstyle', + parent_name='scatter3d.error_y', + **kwargs): + super(Copy_ZstyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_y/_symmetric.py b/packages/python/plotly/plotly/validators/scatter3d/error_y/_symmetric.py index df5b406e98a..a1ade512062 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_y/_symmetric.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_y/_symmetric.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="symmetric", parent_name="scatter3d.error_y", **kwargs - ): - super(SymmetricValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SymmetricValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='symmetric', + parent_name='scatter3d.error_y', + **kwargs): + super(SymmetricValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_y/_thickness.py b/packages/python/plotly/plotly/validators/scatter3d/error_y/_thickness.py index 73249190490..519569e1928 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_y/_thickness.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_y/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="scatter3d.error_y", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='scatter3d.error_y', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_y/_traceref.py b/packages/python/plotly/plotly/validators/scatter3d/error_y/_traceref.py index e78c278dcee..192dda99895 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_y/_traceref.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_y/_traceref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="traceref", parent_name="scatter3d.error_y", **kwargs - ): - super(TracerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TracerefValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='traceref', + parent_name='scatter3d.error_y', + **kwargs): + super(TracerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_y/_tracerefminus.py b/packages/python/plotly/plotly/validators/scatter3d/error_y/_tracerefminus.py index 2785c517426..c952cf4df6c 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_y/_tracerefminus.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_y/_tracerefminus.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="tracerefminus", parent_name="scatter3d.error_y", **kwargs - ): - super(TracerefminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TracerefminusValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='tracerefminus', + parent_name='scatter3d.error_y', + **kwargs): + super(TracerefminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_y/_type.py b/packages/python/plotly/plotly/validators/scatter3d/error_y/_type.py index 4b0fd287f84..04ddf89c60e 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_y/_type.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_y/_type.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="type", parent_name="scatter3d.error_y", **kwargs): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='scatter3d.error_y', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['percent', 'constant', 'sqrt', 'data']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_y/_value.py b/packages/python/plotly/plotly/validators/scatter3d/error_y/_value.py index dc722c8d4f2..ffd7a59dfc1 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_y/_value.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_y/_value.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ValueValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="value", parent_name="scatter3d.error_y", **kwargs): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.NumberValidator): + def __init__(self, plotly_name='value', + parent_name='scatter3d.error_y', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_y/_valueminus.py b/packages/python/plotly/plotly/validators/scatter3d/error_y/_valueminus.py index a64a64f3a4e..d545fbf5060 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_y/_valueminus.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_y/_valueminus.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="valueminus", parent_name="scatter3d.error_y", **kwargs - ): - super(ValueminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueminusValidator(_bv.NumberValidator): + def __init__(self, plotly_name='valueminus', + parent_name='scatter3d.error_y', + **kwargs): + super(ValueminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_y/_visible.py b/packages/python/plotly/plotly/validators/scatter3d/error_y/_visible.py index a798aaabf7c..8d985f41e78 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_y/_visible.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_y/_visible.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="visible", parent_name="scatter3d.error_y", **kwargs - ): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='scatter3d.error_y', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_y/_width.py b/packages/python/plotly/plotly/validators/scatter3d/error_y/_width.py index d8b34cb7cfa..69bdca50be5 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_y/_width.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_y/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="scatter3d.error_y", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='scatter3d.error_y', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_z/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/error_z/__init__.py index eff09cd6a0a..d3e93f5c233 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_z/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_z/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._visible import VisibleValidator @@ -18,24 +17,10 @@ from ._array import ArrayValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._visible.VisibleValidator", - "._valueminus.ValueminusValidator", - "._value.ValueValidator", - "._type.TypeValidator", - "._tracerefminus.TracerefminusValidator", - "._traceref.TracerefValidator", - "._thickness.ThicknessValidator", - "._symmetric.SymmetricValidator", - "._color.ColorValidator", - "._arraysrc.ArraysrcValidator", - "._arrayminussrc.ArrayminussrcValidator", - "._arrayminus.ArrayminusValidator", - "._array.ArrayValidator", - ], + ['._width.WidthValidator', '._visible.VisibleValidator', '._valueminus.ValueminusValidator', '._value.ValueValidator', '._type.TypeValidator', '._tracerefminus.TracerefminusValidator', '._traceref.TracerefValidator', '._thickness.ThicknessValidator', '._symmetric.SymmetricValidator', '._color.ColorValidator', '._arraysrc.ArraysrcValidator', '._arrayminussrc.ArrayminussrcValidator', '._arrayminus.ArrayminusValidator', '._array.ArrayValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_z/_array.py b/packages/python/plotly/plotly/validators/scatter3d/error_z/_array.py index 81159c4e107..5dae90edcc4 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_z/_array.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_z/_array.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="array", parent_name="scatter3d.error_z", **kwargs): - super(ArrayValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ArrayValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='array', + parent_name='scatter3d.error_z', + **kwargs): + super(ArrayValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_z/_arrayminus.py b/packages/python/plotly/plotly/validators/scatter3d/error_z/_arrayminus.py index 628266cca0e..ee617defe8c 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_z/_arrayminus.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_z/_arrayminus.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="arrayminus", parent_name="scatter3d.error_z", **kwargs - ): - super(ArrayminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrayminusValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='arrayminus', + parent_name='scatter3d.error_z', + **kwargs): + super(ArrayminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_z/_arrayminussrc.py b/packages/python/plotly/plotly/validators/scatter3d/error_z/_arrayminussrc.py index 354f09870f4..cb899b1c015 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_z/_arrayminussrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_z/_arrayminussrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="arrayminussrc", parent_name="scatter3d.error_z", **kwargs - ): - super(ArrayminussrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrayminussrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='arrayminussrc', + parent_name='scatter3d.error_z', + **kwargs): + super(ArrayminussrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_z/_arraysrc.py b/packages/python/plotly/plotly/validators/scatter3d/error_z/_arraysrc.py index 65a3f9aa8df..da6c38d2511 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_z/_arraysrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_z/_arraysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="arraysrc", parent_name="scatter3d.error_z", **kwargs - ): - super(ArraysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArraysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='arraysrc', + parent_name='scatter3d.error_z', + **kwargs): + super(ArraysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_z/_color.py b/packages/python/plotly/plotly/validators/scatter3d/error_z/_color.py index 3decda02d71..6beb804e560 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_z/_color.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_z/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="scatter3d.error_z", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatter3d.error_z', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_z/_symmetric.py b/packages/python/plotly/plotly/validators/scatter3d/error_z/_symmetric.py index d9afdfeeb12..29a6fa3c8fc 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_z/_symmetric.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_z/_symmetric.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="symmetric", parent_name="scatter3d.error_z", **kwargs - ): - super(SymmetricValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SymmetricValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='symmetric', + parent_name='scatter3d.error_z', + **kwargs): + super(SymmetricValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_z/_thickness.py b/packages/python/plotly/plotly/validators/scatter3d/error_z/_thickness.py index 6d43b0fe19c..a535285c1d0 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_z/_thickness.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_z/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="scatter3d.error_z", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='scatter3d.error_z', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_z/_traceref.py b/packages/python/plotly/plotly/validators/scatter3d/error_z/_traceref.py index 27760600474..abb67dc4fb0 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_z/_traceref.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_z/_traceref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="traceref", parent_name="scatter3d.error_z", **kwargs - ): - super(TracerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TracerefValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='traceref', + parent_name='scatter3d.error_z', + **kwargs): + super(TracerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_z/_tracerefminus.py b/packages/python/plotly/plotly/validators/scatter3d/error_z/_tracerefminus.py index 93b615f9f2d..37e91cdee5f 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_z/_tracerefminus.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_z/_tracerefminus.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="tracerefminus", parent_name="scatter3d.error_z", **kwargs - ): - super(TracerefminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TracerefminusValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='tracerefminus', + parent_name='scatter3d.error_z', + **kwargs): + super(TracerefminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_z/_type.py b/packages/python/plotly/plotly/validators/scatter3d/error_z/_type.py index 187bc65b627..5e570c5f1df 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_z/_type.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_z/_type.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="type", parent_name="scatter3d.error_z", **kwargs): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='scatter3d.error_z', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['percent', 'constant', 'sqrt', 'data']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_z/_value.py b/packages/python/plotly/plotly/validators/scatter3d/error_z/_value.py index 39a984336a9..55f4e329ca0 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_z/_value.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_z/_value.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ValueValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="value", parent_name="scatter3d.error_z", **kwargs): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.NumberValidator): + def __init__(self, plotly_name='value', + parent_name='scatter3d.error_z', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_z/_valueminus.py b/packages/python/plotly/plotly/validators/scatter3d/error_z/_valueminus.py index c1cfde01e71..5f7a6074d0a 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_z/_valueminus.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_z/_valueminus.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="valueminus", parent_name="scatter3d.error_z", **kwargs - ): - super(ValueminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueminusValidator(_bv.NumberValidator): + def __init__(self, plotly_name='valueminus', + parent_name='scatter3d.error_z', + **kwargs): + super(ValueminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_z/_visible.py b/packages/python/plotly/plotly/validators/scatter3d/error_z/_visible.py index 1f89124a6b5..3091799e15b 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_z/_visible.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_z/_visible.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="visible", parent_name="scatter3d.error_z", **kwargs - ): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='scatter3d.error_z', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_z/_width.py b/packages/python/plotly/plotly/validators/scatter3d/error_z/_width.py index 2f96c52335f..bd5cb6ac447 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_z/_width.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_z/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="scatter3d.error_z", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='scatter3d.error_z', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_align.py index ac3e366008a..56eb5ecc8f4 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_align.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="align", parent_name="scatter3d.hoverlabel", **kwargs - ): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='scatter3d.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_alignsrc.py index de7eb695af0..f94d2b633f6 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="scatter3d.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='scatter3d.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_bgcolor.py index abf7cb76585..39b39e03300 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="scatter3d.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='scatter3d.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_bgcolorsrc.py index 831c8c2bf40..8e9ad43300e 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="scatter3d.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='scatter3d.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_bordercolor.py index 067ead44c9c..a7406e17182 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="scatter3d.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='scatter3d.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_bordercolorsrc.py index 246454f6cb9..706e2ba8601 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bordercolorsrc", parent_name="scatter3d.hoverlabel", **kwargs - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='scatter3d.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_font.py index b403a6575b2..7ed6fc39b97 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_font.py @@ -1,88 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="scatter3d.hoverlabel", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scatter3d.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_namelength.py index b4a336dcf1d..71446b41dc1 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="scatter3d.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='scatter3d.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_namelengthsrc.py index 934cac3d06f..a2b276ba5fa 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="scatter3d.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='scatter3d.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_color.py index f4d11d44e24..ad0689be5ad 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scatter3d.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatter3d.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_colorsrc.py index fdd2201dec2..35b74a8e25a 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scatter3d.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scatter3d.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_family.py index 092fa889010..7187821f79d 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="scatter3d.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scatter3d.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_familysrc.py index 38a22080e92..9ba5249472d 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="scatter3d.hoverlabel.font", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='scatter3d.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_lineposition.py index b8b6c7a9432..54391ac17f7 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scatter3d.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scatter3d.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_linepositionsrc.py index 6f653a3ae9a..786230c8911 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="scatter3d.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='scatter3d.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_shadow.py index e2d9319a297..3e12e3f886e 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="scatter3d.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scatter3d.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_shadowsrc.py index 129e918dfda..c130705d92e 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="scatter3d.hoverlabel.font", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='scatter3d.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_size.py index 9c2d7beb576..385d59888df 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scatter3d.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatter3d.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_sizesrc.py index b488b78541c..3727f9fec34 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="scatter3d.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scatter3d.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_style.py index 8ad74f1d0c5..5800e5b17ac 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="scatter3d.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scatter3d.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_stylesrc.py index 40c4004d289..5aea47f196c 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="scatter3d.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='scatter3d.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_textcase.py index e2da3580a96..194a14affb6 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="scatter3d.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scatter3d.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_textcasesrc.py index 6114364f18d..3a1551e7d24 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="scatter3d.hoverlabel.font", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='scatter3d.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_variant.py index 59c3c355fc0..444d2797453 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="scatter3d.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scatter3d.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_variantsrc.py index 410565d42da..955b9773a83 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_variantsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="variantsrc", - parent_name="scatter3d.hoverlabel.font", - **kwargs, - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='scatter3d.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_weight.py index 886493ab14f..add1aeb4a63 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="scatter3d.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scatter3d.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_weightsrc.py index 02947a1c257..d4cf4a2dd75 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="scatter3d.hoverlabel.font", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='scatter3d.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/_font.py index eb137c8d6b1..277f84c7f69 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="scatter3d.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scatter3d.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/_text.py index 98e1fb5c434..414534aa070 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="scatter3d.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scatter3d.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_color.py index 5ac3b6cede8..4a2da9ec0c4 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatter3d.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatter3d.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_family.py index 07bf7fa01dd..f052cb18469 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scatter3d.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scatter3d.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_lineposition.py index 465a0e60f7c..b9d420f8e05 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scatter3d.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scatter3d.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_shadow.py index d063b6285cb..9c8d8f56af4 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scatter3d.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scatter3d.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_size.py index 2b99d89ee09..c8a87959db0 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scatter3d.legendgrouptitle.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatter3d.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_style.py index c8f17514dae..abc42720c8e 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scatter3d.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scatter3d.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_textcase.py index ef725dfc726..31c21cda358 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scatter3d.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scatter3d.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_variant.py index 7ab5cfc52cb..05e8c4959ad 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scatter3d.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scatter3d.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_weight.py index 50476f2fa93..91ba00513f1 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scatter3d/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scatter3d.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scatter3d.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/line/__init__.py index acdb8a9fbcd..d08a6b77c4c 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._showscale import ShowscaleValidator @@ -18,24 +17,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._showscale.ShowscaleValidator", - "._reversescale.ReversescaleValidator", - "._dash.DashValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._width.WidthValidator', '._showscale.ShowscaleValidator', '._reversescale.ReversescaleValidator', '._dash.DashValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/_autocolorscale.py b/packages/python/plotly/plotly/validators/scatter3d/line/_autocolorscale.py index 793e1e2f13a..69618f49504 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="scatter3d.line", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='scatter3d.line', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/_cauto.py b/packages/python/plotly/plotly/validators/scatter3d/line/_cauto.py index c88ebf1d2bd..beb2b2897f0 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/_cauto.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/_cauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cauto", parent_name="scatter3d.line", **kwargs): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='scatter3d.line', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/_cmax.py b/packages/python/plotly/plotly/validators/scatter3d/line/_cmax.py index a4f17f84d54..798e7b3604e 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/_cmax.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/_cmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmax", parent_name="scatter3d.line", **kwargs): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='scatter3d.line', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/_cmid.py b/packages/python/plotly/plotly/validators/scatter3d/line/_cmid.py index 8a81d282426..6306a72ad97 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/_cmid.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/_cmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmid", parent_name="scatter3d.line", **kwargs): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='scatter3d.line', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/_cmin.py b/packages/python/plotly/plotly/validators/scatter3d/line/_cmin.py index 95ae39019b5..bbc81bc9d34 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/_cmin.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/_cmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmin", parent_name="scatter3d.line", **kwargs): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='scatter3d.line', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/_color.py b/packages/python/plotly/plotly/validators/scatter3d/line/_color.py index bc2ca01a1af..8f3cee7c0d3 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/_color.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/_color.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="scatter3d.line", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - colorscale_path=kwargs.pop("colorscale_path", "scatter3d.line.colorscale"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatter3d.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + colorscale_path=kwargs.pop('colorscale_path', 'scatter3d.line.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/_coloraxis.py b/packages/python/plotly/plotly/validators/scatter3d/line/_coloraxis.py index c680d4e0a70..ab100eb8118 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/_coloraxis.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="coloraxis", parent_name="scatter3d.line", **kwargs): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='scatter3d.line', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/_colorbar.py b/packages/python/plotly/plotly/validators/scatter3d/line/_colorbar.py index cdfe435f69f..dc888a2398a 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/_colorbar.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/_colorbar.py @@ -1,280 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="colorbar", parent_name="scatter3d.line", **kwargs): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.scatter - 3d.line.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.scatter3d.line.colorbar.tickformatstopdefault - s), sets the default property values to use for - elements of - scatter3d.line.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.scatter3d.line.col - orbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='scatter3d.line', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/_colorscale.py b/packages/python/plotly/plotly/validators/scatter3d/line/_colorscale.py index c8b8af4c597..e9c7a6903d9 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/_colorscale.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="scatter3d.line", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='scatter3d.line', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/_colorsrc.py b/packages/python/plotly/plotly/validators/scatter3d/line/_colorsrc.py index ba2f770b359..2daaee96395 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/_colorsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="colorsrc", parent_name="scatter3d.line", **kwargs): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scatter3d.line', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/_dash.py b/packages/python/plotly/plotly/validators/scatter3d/line/_dash.py index c0eebf312ea..98cd2310c53 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/_dash.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/_dash.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DashValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="dash", parent_name="scatter3d.line", **kwargs): - super(DashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", ["dash", "dashdot", "dot", "longdash", "longdashdot", "solid"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DashValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='dash', + parent_name='scatter3d.line', + **kwargs): + super(DashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['dash', 'dashdot', 'dot', 'longdash', 'longdashdot', 'solid']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/_reversescale.py b/packages/python/plotly/plotly/validators/scatter3d/line/_reversescale.py index f5a3c6e2705..baf55a7023c 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/_reversescale.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="scatter3d.line", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='scatter3d.line', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/_showscale.py b/packages/python/plotly/plotly/validators/scatter3d/line/_showscale.py index 52a8c6d4362..7cace1be3a0 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/_showscale.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/_showscale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showscale", parent_name="scatter3d.line", **kwargs): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='scatter3d.line', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/_width.py b/packages/python/plotly/plotly/validators/scatter3d/line/_width.py index b983384a503..a56153ddbf2 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/_width.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="scatter3d.line", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='scatter3d.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_bgcolor.py index 27be612729e..3e62c90cf70 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_bordercolor.py index 09eaff48ede..19e18f11149 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_borderwidth.py index 27a09121cd6..199bae3585a 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_borderwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderwidth", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_dtick.py index 320e3d57cdb..3a5e10fce43 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_exponentformat.py index 7be282c94d9..1c915e79b43 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_exponentformat.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="exponentformat", - parent_name="scatter3d.line.colorbar", - **kwargs, - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_labelalias.py index 72131b932fd..74ece6fb91a 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_len.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_len.py index d532170efe4..0a2d89e20c0 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_len.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="len", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_lenmode.py index d33ac15a4ba..c2c09ae2e47 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_lenmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="lenmode", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_minexponent.py index 5a6df8218c9..af73ca94a2c 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_nticks.py index 9c9272ccc17..b0e032a2d45 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_orientation.py index 7ca09a0384b..456bac5faaa 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_orientation.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="orientation", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_outlinecolor.py index c2093eb904e..236b46fa3c3 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_outlinecolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="outlinecolor", - parent_name="scatter3d.line.colorbar", - **kwargs, - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_outlinewidth.py index 69791e51d71..68a47b21f42 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_outlinewidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="outlinewidth", - parent_name="scatter3d.line.colorbar", - **kwargs, - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_separatethousands.py index fe675ecbcdc..6e63b329c0a 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="scatter3d.line.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_showexponent.py index 819d794be11..1c6d9d1b130 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_showexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showexponent", - parent_name="scatter3d.line.colorbar", - **kwargs, - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_showticklabels.py index 551093a97e7..c8cbbab9e6e 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="scatter3d.line.colorbar", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_showtickprefix.py index 8db9b612ceb..f5116c1cb13 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="scatter3d.line.colorbar", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_showticksuffix.py index 896afabca47..9797e21eb34 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="scatter3d.line.colorbar", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_thickness.py index 7ceaa6c7f4f..7d0b3a1787a 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_thicknessmode.py index debf58bec92..e1e0763e7da 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_thicknessmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="thicknessmode", - parent_name="scatter3d.line.colorbar", - **kwargs, - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tick0.py index b4b2be240e5..abf2f4027cf 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickangle.py index 92093ca2623..8bc2428824d 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickcolor.py index 35e2f865f9d..ee160244a37 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickfont.py index 9bb9b41d5cb..489a6d666ce 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickformat.py index c4bcf7f10f9..5700942093f 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickformatstopdefaults.py index ea6356fb4a5..0dcd76f846e 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="scatter3d.line.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickformatstops.py index b1049f046a7..202aee6f4f8 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="scatter3d.line.colorbar", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticklabeloverflow.py index 82cdc738820..db06dc0bcbb 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="scatter3d.line.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticklabelposition.py index ab23ea60bd8..f7233d6f275 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="scatter3d.line.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticklabelstep.py index 1f7122aaa80..9571088a600 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticklabelstep.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="ticklabelstep", - parent_name="scatter3d.line.colorbar", - **kwargs, - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticklen.py index b6a84f2010d..7c332805738 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickmode.py index c848a97a72b..12d1a5d9054 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickprefix.py index e7e412ba9e1..fe454170a75 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticks.py index 13f2a8d77a4..a925909fdc1 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticksuffix.py index 8833af0e8c2..a88d32c6671 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticktext.py index 3070d2c12eb..228ec453990 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticktextsrc.py index 1605dbee81f..6fe42a756fe 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickvals.py index 14a6766c5d8..8590f421db8 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickvalssrc.py index 100291f4c8c..8cbc013265d 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickwidth.py index 088aab879d0..ba6310888de 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_title.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_title.py index f7d4a7d374a..5c0d570ad99 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_x.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_x.py index 17cf104506a..720d82eefd3 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_x.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="x", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_xanchor.py index 97e9d1f2ce7..677f16bba7c 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_xpad.py index fecd40ca8a8..3cda5b3ca8d 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_xpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="xpad", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_xref.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_xref.py index 648c83b885e..5612f3536d9 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xref", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_y.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_y.py index de686f4892e..ffbc4fa76ed 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_y.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="y", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_yanchor.py index 2b8a8aafc0f..4033ae6d7e2 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ypad.py index b1c359f2f92..ff3918653cc 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_ypad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ypad", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_yref.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_yref.py index ff66e141849..55dd0bdaa80 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yref", parent_name="scatter3d.line.colorbar", **kwargs - ): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='scatter3d.line.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_color.py index bfcf8616acc..fcb05404e5c 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatter3d.line.colorbar.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatter3d.line.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_family.py index 5e17421c723..eaa1bb40d8e 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scatter3d.line.colorbar.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scatter3d.line.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_lineposition.py index 28c1bff5d5b..017b96bd34f 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scatter3d.line.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scatter3d.line.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_shadow.py index 3a7c340d05b..b07c6e09889 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scatter3d.line.colorbar.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scatter3d.line.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_size.py index 54e8aa0607c..60633662ae7 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scatter3d.line.colorbar.tickfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatter3d.line.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_style.py index 3908d5f7458..dfd0e034ed4 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scatter3d.line.colorbar.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scatter3d.line.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_textcase.py index ec21d07af35..7fa37973cd3 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scatter3d.line.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scatter3d.line.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_variant.py index 3ef5c222231..487e9d09d71 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scatter3d.line.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scatter3d.line.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_weight.py index d9227749df5..b05938a1dcd 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scatter3d.line.colorbar.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scatter3d.line.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickformatstop/_dtickrange.py index 6be52c8f1fc..44077c39cf5 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="scatter3d.line.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "valType": "any"}, - {"editType": "calc", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='scatter3d.line.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'valType': 'any'}, {'editType': 'calc', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickformatstop/_enabled.py index 68a27a70294..eb1c9f02a72 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="scatter3d.line.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='scatter3d.line.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickformatstop/_name.py index 100dc1ed7d5..240143860ff 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="scatter3d.line.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='scatter3d.line.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickformatstop/_templateitemname.py index e7db0d6ce5b..aa5e173ce3b 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="scatter3d.line.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='scatter3d.line.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickformatstop/_value.py index db86016fe8e..036d396d649 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="scatter3d.line.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='scatter3d.line.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/_font.py index 268e7c90c24..68a29b4d460 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="scatter3d.line.colorbar.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scatter3d.line.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/_side.py index c5faf5f5b93..23ce4b395e5 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/_side.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="side", parent_name="scatter3d.line.colorbar.title", **kwargs - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='scatter3d.line.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/_text.py index 789c9ef91e5..54fb7d09768 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="scatter3d.line.colorbar.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scatter3d.line.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_color.py index 684a609ed3d..396ab907ebe 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatter3d.line.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatter3d.line.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_family.py index 85f9c97fd6f..53c2ad5118e 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scatter3d.line.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scatter3d.line.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_lineposition.py index b8b6be5933e..b30d45be7d9 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scatter3d.line.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scatter3d.line.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_shadow.py index f9377e6f602..a072d2854ef 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scatter3d.line.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scatter3d.line.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_size.py index a6a879261e0..8d520b81ec4 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scatter3d.line.colorbar.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatter3d.line.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_style.py index 75296849354..34143632c34 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scatter3d.line.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scatter3d.line.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_textcase.py index f17e5fddd9c..0df4d78e870 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scatter3d.line.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scatter3d.line.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_variant.py index ee491c87ea7..0284f8b4f21 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scatter3d.line.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scatter3d.line.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_weight.py index 650dfcbe804..df1261da958 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scatter3d.line.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scatter3d.line.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/marker/__init__.py index df67bfdf210..59c0b121667 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._symbolsrc import SymbolsrcValidator from ._symbol import SymbolValidator @@ -25,31 +24,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._symbolsrc.SymbolsrcValidator", - "._symbol.SymbolValidator", - "._sizesrc.SizesrcValidator", - "._sizeref.SizerefValidator", - "._sizemode.SizemodeValidator", - "._sizemin.SizeminValidator", - "._size.SizeValidator", - "._showscale.ShowscaleValidator", - "._reversescale.ReversescaleValidator", - "._opacity.OpacityValidator", - "._line.LineValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._symbolsrc.SymbolsrcValidator', '._symbol.SymbolValidator', '._sizesrc.SizesrcValidator', '._sizeref.SizerefValidator', '._sizemode.SizemodeValidator', '._sizemin.SizeminValidator', '._size.SizeValidator', '._showscale.ShowscaleValidator', '._reversescale.ReversescaleValidator', '._opacity.OpacityValidator', '._line.LineValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/_autocolorscale.py b/packages/python/plotly/plotly/validators/scatter3d/marker/_autocolorscale.py index ea297da0884..cb2edf829b4 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="scatter3d.marker", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='scatter3d.marker', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/_cauto.py b/packages/python/plotly/plotly/validators/scatter3d/marker/_cauto.py index d9b14ddc26b..902cd1b0995 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/_cauto.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/_cauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cauto", parent_name="scatter3d.marker", **kwargs): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='scatter3d.marker', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/_cmax.py b/packages/python/plotly/plotly/validators/scatter3d/marker/_cmax.py index 1234c7b97e2..28d68479178 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/_cmax.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/_cmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmax", parent_name="scatter3d.marker", **kwargs): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='scatter3d.marker', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/_cmid.py b/packages/python/plotly/plotly/validators/scatter3d/marker/_cmid.py index f61aa7dd02d..bd9f7926e21 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/_cmid.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/_cmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmid", parent_name="scatter3d.marker", **kwargs): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='scatter3d.marker', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/_cmin.py b/packages/python/plotly/plotly/validators/scatter3d/marker/_cmin.py index 409f8a398a9..0b2e4744b34 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/_cmin.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/_cmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmin", parent_name="scatter3d.marker", **kwargs): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='scatter3d.marker', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/_color.py b/packages/python/plotly/plotly/validators/scatter3d/marker/_color.py index 2a6fdad40e7..23d88f88af9 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/_color.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="scatter3d.marker", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - colorscale_path=kwargs.pop( - "colorscale_path", "scatter3d.marker.colorscale" - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatter3d.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + colorscale_path=kwargs.pop('colorscale_path', 'scatter3d.marker.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/_coloraxis.py b/packages/python/plotly/plotly/validators/scatter3d/marker/_coloraxis.py index afabb9845fc..81b3f439f71 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/_coloraxis.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name="coloraxis", parent_name="scatter3d.marker", **kwargs - ): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='scatter3d.marker', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/_colorbar.py b/packages/python/plotly/plotly/validators/scatter3d/marker/_colorbar.py index 9a1043503d4..36d93ee584b 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/_colorbar.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/_colorbar.py @@ -1,282 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="colorbar", parent_name="scatter3d.marker", **kwargs - ): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.scatter - 3d.marker.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.scatter3d.marker.colorbar.tickformatstopdefau - lts), sets the default property values to use - for elements of - scatter3d.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.scatter3d.marker.c - olorbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='scatter3d.marker', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/_colorscale.py b/packages/python/plotly/plotly/validators/scatter3d/marker/_colorscale.py index eb80064c8ca..e2e69af852e 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/_colorscale.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="scatter3d.marker", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='scatter3d.marker', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/_colorsrc.py b/packages/python/plotly/plotly/validators/scatter3d/marker/_colorsrc.py index 73389abbfb0..7dbc8695511 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scatter3d.marker", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scatter3d.marker', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/_line.py b/packages/python/plotly/plotly/validators/scatter3d/marker/_line.py index 4b51f5c59dc..6ae6a495fe3 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/_line.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/_line.py @@ -1,102 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="scatter3d.marker", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.line.colorscale`. Has an - effect only if in `marker.line.color` is set to - a numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.line.color`) or the bounds set in - `marker.line.cmin` and `marker.line.cmax` Has - an effect only if in `marker.line.color` is set - to a numerical array. Defaults to `false` when - `marker.line.cmin` and `marker.line.cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.line.cmin` and/or - `marker.line.cmax` to be equidistant to this - point. Has an effect only if in - `marker.line.color` is set to a numerical - array. Value should have the same units as in - `marker.line.color`. Has no effect when - `marker.line.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmax` must be set as well. - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorscale - Sets the colorscale. Has an effect only if in - `marker.line.color` is set to a numerical - array. The colorscale must be an array - containing arrays mapping a normalized value to - an rgb, rgba, hex, hsl, hsv, or named color - string. At minimum, a mapping for the lowest - (0) and highest (1) values are required. For - example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use - `marker.line.cmin` and `marker.line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.line.color` is set to - a numerical array. If true, `marker.line.cmin` - will correspond to the last color in the array - and `marker.line.cmax` will correspond to the - first color. - width - Sets the width (in px) of the lines bounding - the marker points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='scatter3d.marker', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/_opacity.py b/packages/python/plotly/plotly/validators/scatter3d/marker/_opacity.py index aa924b93c16..659b7c33d30 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/_opacity.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="scatter3d.marker", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scatter3d.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/_reversescale.py b/packages/python/plotly/plotly/validators/scatter3d/marker/_reversescale.py index 1a24d8abe20..dc01f54f45f 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/_reversescale.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="scatter3d.marker", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='scatter3d.marker', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/_showscale.py b/packages/python/plotly/plotly/validators/scatter3d/marker/_showscale.py index 0b2bcadcaba..0807659b6fe 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/_showscale.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/_showscale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showscale", parent_name="scatter3d.marker", **kwargs - ): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='scatter3d.marker', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/_size.py b/packages/python/plotly/plotly/validators/scatter3d/marker/_size.py index 5a4ecf2958e..16a1657d81d 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="scatter3d.marker", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatter3d.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/_sizemin.py b/packages/python/plotly/plotly/validators/scatter3d/marker/_sizemin.py index 746c694812e..2d5f0f3e58e 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/_sizemin.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/_sizemin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="sizemin", parent_name="scatter3d.marker", **kwargs): - super(SizeminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sizemin', + parent_name='scatter3d.marker', + **kwargs): + super(SizeminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/_sizemode.py b/packages/python/plotly/plotly/validators/scatter3d/marker/_sizemode.py index b51038d9ecc..5d0ed8fe60c 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/_sizemode.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/_sizemode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="sizemode", parent_name="scatter3d.marker", **kwargs - ): - super(SizemodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["diameter", "area"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizemodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='sizemode', + parent_name='scatter3d.marker', + **kwargs): + super(SizemodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['diameter', 'area']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/_sizeref.py b/packages/python/plotly/plotly/validators/scatter3d/marker/_sizeref.py index 854c81f7697..382fa32e19d 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/_sizeref.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/_sizeref.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="sizeref", parent_name="scatter3d.marker", **kwargs): - super(SizerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizerefValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sizeref', + parent_name='scatter3d.marker', + **kwargs): + super(SizerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/_sizesrc.py b/packages/python/plotly/plotly/validators/scatter3d/marker/_sizesrc.py index e6c440d5915..e2786126e61 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/_sizesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="sizesrc", parent_name="scatter3d.marker", **kwargs): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scatter3d.marker', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/_symbol.py b/packages/python/plotly/plotly/validators/scatter3d/marker/_symbol.py index 1f0b3881952..93ff4b9ae1f 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/_symbol.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/_symbol.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="symbol", parent_name="scatter3d.marker", **kwargs): - super(SymbolValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "circle", - "circle-open", - "cross", - "diamond", - "diamond-open", - "square", - "square-open", - "x", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SymbolValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='symbol', + parent_name='scatter3d.marker', + **kwargs): + super(SymbolValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['circle', 'circle-open', 'cross', 'diamond', 'diamond-open', 'square', 'square-open', 'x']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/_symbolsrc.py b/packages/python/plotly/plotly/validators/scatter3d/marker/_symbolsrc.py index bbf6d9ef5b3..977f15323eb 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/_symbolsrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/_symbolsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="symbolsrc", parent_name="scatter3d.marker", **kwargs - ): - super(SymbolsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SymbolsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='symbolsrc', + parent_name='scatter3d.marker', + **kwargs): + super(SymbolsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_bgcolor.py index b07fea5dc45..9e7f4f16c9b 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="scatter3d.marker.colorbar", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_bordercolor.py index bd7c903ee6d..4978638e628 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_bordercolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bordercolor", - parent_name="scatter3d.marker.colorbar", - **kwargs, - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_borderwidth.py index 26a4d2a2b6a..8d654ef00ce 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_borderwidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="borderwidth", - parent_name="scatter3d.marker.colorbar", - **kwargs, - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_dtick.py index 90f82df0757..ac1c51e8fb2 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="scatter3d.marker.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_exponentformat.py index 8cdba73d5a0..bc74c740139 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_exponentformat.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="exponentformat", - parent_name="scatter3d.marker.colorbar", - **kwargs, - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_labelalias.py index 7b6256f59ae..4b11dc0d9e4 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_labelalias.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="labelalias", - parent_name="scatter3d.marker.colorbar", - **kwargs, - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_len.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_len.py index be818b6b482..0301642cbf8 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_len.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="len", parent_name="scatter3d.marker.colorbar", **kwargs - ): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_lenmode.py index 6528eefcc4a..4d9aa4e9afe 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_lenmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="lenmode", parent_name="scatter3d.marker.colorbar", **kwargs - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_minexponent.py index 35f234bf43b..b98dc8d14b0 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_minexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="minexponent", - parent_name="scatter3d.marker.colorbar", - **kwargs, - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_nticks.py index 70a97d4a7a5..13a34378369 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="scatter3d.marker.colorbar", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_orientation.py index 7b302b54eef..89c6cbfefca 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_orientation.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="orientation", - parent_name="scatter3d.marker.colorbar", - **kwargs, - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_outlinecolor.py index 9c8ad73cdc0..dd85b6ab064 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_outlinecolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="outlinecolor", - parent_name="scatter3d.marker.colorbar", - **kwargs, - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_outlinewidth.py index ea86bf23334..6c33c535ffe 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_outlinewidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="outlinewidth", - parent_name="scatter3d.marker.colorbar", - **kwargs, - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_separatethousands.py index 1a9049e72eb..418350a3cb5 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="scatter3d.marker.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_showexponent.py index b5b6ab48716..78f397fd07d 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_showexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showexponent", - parent_name="scatter3d.marker.colorbar", - **kwargs, - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_showticklabels.py index ce6a9e41019..d63eebc0ffb 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="scatter3d.marker.colorbar", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_showtickprefix.py index f47f6084ab6..dfcc2c0b4da 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="scatter3d.marker.colorbar", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_showticksuffix.py index 5d767f1cda0..1b37955bc47 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="scatter3d.marker.colorbar", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_thickness.py index 29ab16d8f58..21068ab9cb6 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="scatter3d.marker.colorbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_thicknessmode.py index 71978b23add..4ae9caf63ab 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_thicknessmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="thicknessmode", - parent_name="scatter3d.marker.colorbar", - **kwargs, - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tick0.py index 850a1d2da93..d2d92a76738 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="scatter3d.marker.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickangle.py index 4eb3951dd79..8e211f182b4 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="scatter3d.marker.colorbar", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickcolor.py index 12584141cbc..e997dc3f142 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="scatter3d.marker.colorbar", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickfont.py index 394f2e011d6..64cc61d0ad4 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="scatter3d.marker.colorbar", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickformat.py index 23844545c15..5f0cc892966 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickformat.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickformat", - parent_name="scatter3d.marker.colorbar", - **kwargs, - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickformatstopdefaults.py index 560d7606682..1a396acb66d 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="scatter3d.marker.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickformatstops.py index 095d278a540..aaeeaadf65b 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="scatter3d.marker.colorbar", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticklabeloverflow.py index f0511cde010..eafbd2a6cfb 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="scatter3d.marker.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticklabelposition.py index d962f68faaf..31adda9ebf8 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="scatter3d.marker.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticklabelstep.py index b00a4ed7e92..1318916b142 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticklabelstep.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="ticklabelstep", - parent_name="scatter3d.marker.colorbar", - **kwargs, - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticklen.py index 1271ab1c2fd..db388f82f0d 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="scatter3d.marker.colorbar", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickmode.py index 3631269d0c1..8f2148de4cd 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="scatter3d.marker.colorbar", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickprefix.py index 7bf750cb784..7a523ec2e38 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickprefix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickprefix", - parent_name="scatter3d.marker.colorbar", - **kwargs, - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticks.py index 316d4d91ee3..931ef79c772 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="scatter3d.marker.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticksuffix.py index 847e1975767..8c452da662a 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticksuffix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="ticksuffix", - parent_name="scatter3d.marker.colorbar", - **kwargs, - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticktext.py index 9352dae8f71..b28dc271b01 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="scatter3d.marker.colorbar", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticktextsrc.py index 2d536e3df7c..c028978048f 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ticktextsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="ticktextsrc", - parent_name="scatter3d.marker.colorbar", - **kwargs, - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickvals.py index af9c28be75d..49feb16694f 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="scatter3d.marker.colorbar", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickvalssrc.py index 1a964b8300f..07ede8b464a 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickvalssrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="tickvalssrc", - parent_name="scatter3d.marker.colorbar", - **kwargs, - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickwidth.py index 2d330f06af6..0bcc38c90d6 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="scatter3d.marker.colorbar", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_title.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_title.py index 01c69afbebd..d12ad06e742 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="scatter3d.marker.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_x.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_x.py index bd73c2d2147..60735932cc5 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_x.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="x", parent_name="scatter3d.marker.colorbar", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_xanchor.py index 44801e4193a..22e26f1fcef 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="scatter3d.marker.colorbar", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_xpad.py index 8311e324114..b40fc033137 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_xpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="xpad", parent_name="scatter3d.marker.colorbar", **kwargs - ): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_xref.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_xref.py index 81b315ae117..f0b53380f2e 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xref", parent_name="scatter3d.marker.colorbar", **kwargs - ): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_y.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_y.py index cfaef8d5c03..9d4a173c612 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_y.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="y", parent_name="scatter3d.marker.colorbar", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_yanchor.py index c13713f3dae..9a4ee9563f0 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="scatter3d.marker.colorbar", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ypad.py index cc58b0eef21..af43fa07a58 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_ypad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ypad", parent_name="scatter3d.marker.colorbar", **kwargs - ): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_yref.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_yref.py index 7e6de12fbde..898ce4861df 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yref", parent_name="scatter3d.marker.colorbar", **kwargs - ): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='scatter3d.marker.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_color.py index e3477359368..e57142d28bb 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatter3d.marker.colorbar.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatter3d.marker.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_family.py index be720be38b0..0d5307e36b7 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scatter3d.marker.colorbar.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scatter3d.marker.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_lineposition.py index 5bcac68e1e4..a09fa462e6d 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scatter3d.marker.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scatter3d.marker.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_shadow.py index e76c76bf0f8..25b8f40f422 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scatter3d.marker.colorbar.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scatter3d.marker.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_size.py index 40c753833a5..2dc38a43be6 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scatter3d.marker.colorbar.tickfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatter3d.marker.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_style.py index 27118e07764..534718465b9 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scatter3d.marker.colorbar.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scatter3d.marker.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_textcase.py index a2eaba214bb..468591a90e0 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scatter3d.marker.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scatter3d.marker.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_variant.py index 5f575b0ed41..b4b3fdcc287 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scatter3d.marker.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scatter3d.marker.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_weight.py index 6f532507ba1..ab0b77dfbbe 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scatter3d.marker.colorbar.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scatter3d.marker.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_dtickrange.py index 186c73e386b..374163a3366 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="scatter3d.marker.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "valType": "any"}, - {"editType": "calc", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='scatter3d.marker.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'valType': 'any'}, {'editType': 'calc', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_enabled.py index d888ead133c..8af7f89b699 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="scatter3d.marker.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='scatter3d.marker.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_name.py index 9b265afaadc..bc7946767cd 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="scatter3d.marker.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='scatter3d.marker.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_templateitemname.py index fa6a2b515ef..81e84c6db2b 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="scatter3d.marker.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='scatter3d.marker.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_value.py index 57230795e7a..d2d82566c0a 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="scatter3d.marker.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='scatter3d.marker.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/_font.py index c465a43b953..fb46b61950c 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/_font.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="font", - parent_name="scatter3d.marker.colorbar.title", - **kwargs, - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scatter3d.marker.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/_side.py index d8ad402b008..9f2e6bd393e 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/_side.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="side", - parent_name="scatter3d.marker.colorbar.title", - **kwargs, - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='scatter3d.marker.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/_text.py index 8c10f4dd007..99c244e90d5 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/_text.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="text", - parent_name="scatter3d.marker.colorbar.title", - **kwargs, - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scatter3d.marker.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_color.py index f7d28ef23f7..250aece0e0c 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatter3d.marker.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatter3d.marker.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_family.py index 91115a68b83..3477c9e8249 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scatter3d.marker.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scatter3d.marker.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_lineposition.py index 9db07f906f5..159802dd910 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scatter3d.marker.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scatter3d.marker.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_shadow.py index 2306bf9836a..974fb786a76 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scatter3d.marker.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scatter3d.marker.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_size.py index 68a35db225d..398a96af22b 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scatter3d.marker.colorbar.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatter3d.marker.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_style.py index ebf85e86951..58715293cdd 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scatter3d.marker.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scatter3d.marker.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_textcase.py index 01932bd6677..6009f40f25e 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scatter3d.marker.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scatter3d.marker.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_variant.py index bdf5a60a34a..f8f6cc374e2 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scatter3d.marker.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scatter3d.marker.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_weight.py index 192a8f29d92..d03ee2981f6 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scatter3d.marker.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scatter3d.marker.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/line/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/marker/line/__init__.py index cb1dba3be15..c18dc601e9a 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._reversescale import ReversescaleValidator @@ -15,21 +14,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._reversescale.ReversescaleValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._width.WidthValidator', '._reversescale.ReversescaleValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/line/_autocolorscale.py b/packages/python/plotly/plotly/validators/scatter3d/marker/line/_autocolorscale.py index 7cbe677269f..aa8533aedcc 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/line/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/line/_autocolorscale.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="autocolorscale", - parent_name="scatter3d.marker.line", - **kwargs, - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='scatter3d.marker.line', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/line/_cauto.py b/packages/python/plotly/plotly/validators/scatter3d/marker/line/_cauto.py index 887a755de90..27ca70f4d11 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/line/_cauto.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/line/_cauto.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="cauto", parent_name="scatter3d.marker.line", **kwargs - ): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='scatter3d.marker.line', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/line/_cmax.py b/packages/python/plotly/plotly/validators/scatter3d/marker/line/_cmax.py index a908489fbd5..bd675809d1a 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/line/_cmax.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/line/_cmax.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmax", parent_name="scatter3d.marker.line", **kwargs - ): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='scatter3d.marker.line', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/line/_cmid.py b/packages/python/plotly/plotly/validators/scatter3d/marker/line/_cmid.py index dd572905b51..2b53320d9fc 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/line/_cmid.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/line/_cmid.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmid", parent_name="scatter3d.marker.line", **kwargs - ): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='scatter3d.marker.line', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/line/_cmin.py b/packages/python/plotly/plotly/validators/scatter3d/marker/line/_cmin.py index 41440f586c1..abd5dd97b70 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/line/_cmin.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/line/_cmin.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmin", parent_name="scatter3d.marker.line", **kwargs - ): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='scatter3d.marker.line', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/line/_color.py b/packages/python/plotly/plotly/validators/scatter3d/marker/line/_color.py index fcc741a4560..dd751aa60d6 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/line/_color.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/line/_color.py @@ -1,17 +1,15 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scatter3d.marker.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - colorscale_path=kwargs.pop( - "colorscale_path", "scatter3d.marker.line.colorscale" - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatter3d.marker.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + colorscale_path=kwargs.pop('colorscale_path', 'scatter3d.marker.line.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/line/_coloraxis.py b/packages/python/plotly/plotly/validators/scatter3d/marker/line/_coloraxis.py index 923c1cc9cea..7f6664440ac 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/line/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/line/_coloraxis.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name="coloraxis", parent_name="scatter3d.marker.line", **kwargs - ): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='scatter3d.marker.line', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/line/_colorscale.py b/packages/python/plotly/plotly/validators/scatter3d/marker/line/_colorscale.py index 786711f4141..ef3d2398d50 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/line/_colorscale.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/line/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="scatter3d.marker.line", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='scatter3d.marker.line', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/line/_colorsrc.py b/packages/python/plotly/plotly/validators/scatter3d/marker/line/_colorsrc.py index e83a33f52c4..0bbce642103 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/line/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/line/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scatter3d.marker.line", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scatter3d.marker.line', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/line/_reversescale.py b/packages/python/plotly/plotly/validators/scatter3d/marker/line/_reversescale.py index 51262d68066..0d767eef0fd 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/line/_reversescale.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/line/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="scatter3d.marker.line", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='scatter3d.marker.line', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/line/_width.py b/packages/python/plotly/plotly/validators/scatter3d/marker/line/_width.py index af159b59ebc..bd61f163a17 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/line/_width.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/line/_width.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="scatter3d.marker.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='scatter3d.marker.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/projection/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/projection/__init__.py index 52779f59bc4..21cfa26dac1 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/projection/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/projection/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._z import ZValidator from ._y import YValidator from ._x import XValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] + __name__, + [], + ['._z.ZValidator', '._y.YValidator', '._x.XValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter3d/projection/_x.py b/packages/python/plotly/plotly/validators/scatter3d/projection/_x.py index 6560c649cfe..64d47e48d32 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/projection/_x.py +++ b/packages/python/plotly/plotly/validators/scatter3d/projection/_x.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="x", parent_name="scatter3d.projection", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "X"), - data_docs=kwargs.pop( - "data_docs", - """ - opacity - Sets the projection color. - scale - Sets the scale factor determining the size of - the projection marker points. - show - Sets whether or not projections are shown along - the x axis. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='x', + parent_name='scatter3d.projection', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'X'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/projection/_y.py b/packages/python/plotly/plotly/validators/scatter3d/projection/_y.py index e6a83c5a1de..2b8ce1b057c 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/projection/_y.py +++ b/packages/python/plotly/plotly/validators/scatter3d/projection/_y.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="y", parent_name="scatter3d.projection", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Y"), - data_docs=kwargs.pop( - "data_docs", - """ - opacity - Sets the projection color. - scale - Sets the scale factor determining the size of - the projection marker points. - show - Sets whether or not projections are shown along - the y axis. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='y', + parent_name='scatter3d.projection', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Y'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/projection/_z.py b/packages/python/plotly/plotly/validators/scatter3d/projection/_z.py index db4b4de5a7f..dea2d39c647 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/projection/_z.py +++ b/packages/python/plotly/plotly/validators/scatter3d/projection/_z.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class ZValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="z", parent_name="scatter3d.projection", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Z"), - data_docs=kwargs.pop( - "data_docs", - """ - opacity - Sets the projection color. - scale - Sets the scale factor determining the size of - the projection marker points. - show - Sets whether or not projections are shown along - the z axis. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='z', + parent_name='scatter3d.projection', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Z'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/projection/x/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/projection/x/__init__.py index 45005776b78..a6595a1e045 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/projection/x/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/projection/x/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._show import ShowValidator from ._scale import ScaleValidator from ._opacity import OpacityValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._show.ShowValidator", - "._scale.ScaleValidator", - "._opacity.OpacityValidator", - ], + ['._show.ShowValidator', '._scale.ScaleValidator', '._opacity.OpacityValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter3d/projection/x/_opacity.py b/packages/python/plotly/plotly/validators/scatter3d/projection/x/_opacity.py index 44430fa0abc..c369d0c7e9c 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/projection/x/_opacity.py +++ b/packages/python/plotly/plotly/validators/scatter3d/projection/x/_opacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="scatter3d.projection.x", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scatter3d.projection.x', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/projection/x/_scale.py b/packages/python/plotly/plotly/validators/scatter3d/projection/x/_scale.py index 8f945191c86..c17fe55bdad 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/projection/x/_scale.py +++ b/packages/python/plotly/plotly/validators/scatter3d/projection/x/_scale.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ScaleValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="scale", parent_name="scatter3d.projection.x", **kwargs - ): - super(ScaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ScaleValidator(_bv.NumberValidator): + def __init__(self, plotly_name='scale', + parent_name='scatter3d.projection.x', + **kwargs): + super(ScaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/projection/x/_show.py b/packages/python/plotly/plotly/validators/scatter3d/projection/x/_show.py index f82418090da..ab71e47e7c0 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/projection/x/_show.py +++ b/packages/python/plotly/plotly/validators/scatter3d/projection/x/_show.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="show", parent_name="scatter3d.projection.x", **kwargs - ): - super(ShowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='show', + parent_name='scatter3d.projection.x', + **kwargs): + super(ShowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/projection/y/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/projection/y/__init__.py index 45005776b78..a6595a1e045 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/projection/y/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/projection/y/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._show import ShowValidator from ._scale import ScaleValidator from ._opacity import OpacityValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._show.ShowValidator", - "._scale.ScaleValidator", - "._opacity.OpacityValidator", - ], + ['._show.ShowValidator', '._scale.ScaleValidator', '._opacity.OpacityValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter3d/projection/y/_opacity.py b/packages/python/plotly/plotly/validators/scatter3d/projection/y/_opacity.py index a65e91b2015..8a42d80d931 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/projection/y/_opacity.py +++ b/packages/python/plotly/plotly/validators/scatter3d/projection/y/_opacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="scatter3d.projection.y", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scatter3d.projection.y', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/projection/y/_scale.py b/packages/python/plotly/plotly/validators/scatter3d/projection/y/_scale.py index 2e5a922a6ea..a71bbeb6c4e 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/projection/y/_scale.py +++ b/packages/python/plotly/plotly/validators/scatter3d/projection/y/_scale.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ScaleValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="scale", parent_name="scatter3d.projection.y", **kwargs - ): - super(ScaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ScaleValidator(_bv.NumberValidator): + def __init__(self, plotly_name='scale', + parent_name='scatter3d.projection.y', + **kwargs): + super(ScaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/projection/y/_show.py b/packages/python/plotly/plotly/validators/scatter3d/projection/y/_show.py index f75cd1bdd2a..eb2b2bbaaab 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/projection/y/_show.py +++ b/packages/python/plotly/plotly/validators/scatter3d/projection/y/_show.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="show", parent_name="scatter3d.projection.y", **kwargs - ): - super(ShowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='show', + parent_name='scatter3d.projection.y', + **kwargs): + super(ShowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/projection/z/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/projection/z/__init__.py index 45005776b78..a6595a1e045 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/projection/z/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/projection/z/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._show import ShowValidator from ._scale import ScaleValidator from ._opacity import OpacityValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._show.ShowValidator", - "._scale.ScaleValidator", - "._opacity.OpacityValidator", - ], + ['._show.ShowValidator', '._scale.ScaleValidator', '._opacity.OpacityValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter3d/projection/z/_opacity.py b/packages/python/plotly/plotly/validators/scatter3d/projection/z/_opacity.py index 19883878d50..4f02c28685f 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/projection/z/_opacity.py +++ b/packages/python/plotly/plotly/validators/scatter3d/projection/z/_opacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="scatter3d.projection.z", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scatter3d.projection.z', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/projection/z/_scale.py b/packages/python/plotly/plotly/validators/scatter3d/projection/z/_scale.py index e8c0a9ccaa4..ce04be08112 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/projection/z/_scale.py +++ b/packages/python/plotly/plotly/validators/scatter3d/projection/z/_scale.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ScaleValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="scale", parent_name="scatter3d.projection.z", **kwargs - ): - super(ScaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ScaleValidator(_bv.NumberValidator): + def __init__(self, plotly_name='scale', + parent_name='scatter3d.projection.z', + **kwargs): + super(ScaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/projection/z/_show.py b/packages/python/plotly/plotly/validators/scatter3d/projection/z/_show.py index cca198fd3b1..5a10e5f6dfd 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/projection/z/_show.py +++ b/packages/python/plotly/plotly/validators/scatter3d/projection/z/_show.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="show", parent_name="scatter3d.projection.z", **kwargs - ): - super(ShowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='show', + parent_name='scatter3d.projection.z', + **kwargs): + super(ShowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/stream/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter3d/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/scatter3d/stream/_maxpoints.py index 4b7eeb3fc94..ed6a95565f0 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/scatter3d/stream/_maxpoints.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxpoints", parent_name="scatter3d.stream", **kwargs - ): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='scatter3d.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/stream/_token.py b/packages/python/plotly/plotly/validators/scatter3d/stream/_token.py index d3e71113049..8089c841efc 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/stream/_token.py +++ b/packages/python/plotly/plotly/validators/scatter3d/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="scatter3d.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='scatter3d.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/textfont/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/textfont/__init__.py index d87c37ff7aa..7b52683b49b 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/textfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -16,22 +15,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatter3d/textfont/_color.py b/packages/python/plotly/plotly/validators/scatter3d/textfont/_color.py index e109dffc11c..f82d99c3b68 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/scatter3d/textfont/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="scatter3d.textfont", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatter3d.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/textfont/_colorsrc.py b/packages/python/plotly/plotly/validators/scatter3d/textfont/_colorsrc.py index 9a6e2c14081..63bfecf4dd6 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/textfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/textfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scatter3d.textfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scatter3d.textfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/textfont/_family.py b/packages/python/plotly/plotly/validators/scatter3d/textfont/_family.py index ecdb237563e..5f680fdfa55 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/textfont/_family.py +++ b/packages/python/plotly/plotly/validators/scatter3d/textfont/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="scatter3d.textfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scatter3d.textfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/textfont/_familysrc.py b/packages/python/plotly/plotly/validators/scatter3d/textfont/_familysrc.py index a74fed52cf6..5e26f65271e 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/textfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/textfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="scatter3d.textfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='scatter3d.textfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/textfont/_size.py b/packages/python/plotly/plotly/validators/scatter3d/textfont/_size.py index 78ca2c4c6ea..017a272f3a1 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/textfont/_size.py +++ b/packages/python/plotly/plotly/validators/scatter3d/textfont/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="scatter3d.textfont", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatter3d.textfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/textfont/_sizesrc.py b/packages/python/plotly/plotly/validators/scatter3d/textfont/_sizesrc.py index e7e7084bce9..aa5f13ba6df 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/textfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/textfont/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="scatter3d.textfont", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scatter3d.textfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/textfont/_style.py b/packages/python/plotly/plotly/validators/scatter3d/textfont/_style.py index 2e73f475cff..9c5e0295b88 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/textfont/_style.py +++ b/packages/python/plotly/plotly/validators/scatter3d/textfont/_style.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="style", parent_name="scatter3d.textfont", **kwargs): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scatter3d.textfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/textfont/_stylesrc.py b/packages/python/plotly/plotly/validators/scatter3d/textfont/_stylesrc.py index 09ecec3319b..1fae4e4559d 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/textfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/textfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="scatter3d.textfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='scatter3d.textfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/textfont/_variant.py b/packages/python/plotly/plotly/validators/scatter3d/textfont/_variant.py index b239853ee7d..8d198943676 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/textfont/_variant.py +++ b/packages/python/plotly/plotly/validators/scatter3d/textfont/_variant.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="scatter3d.textfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "small-caps"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scatter3d.textfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/textfont/_variantsrc.py b/packages/python/plotly/plotly/validators/scatter3d/textfont/_variantsrc.py index 02945e49d61..792767f1ea1 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/textfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/textfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="scatter3d.textfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='scatter3d.textfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/textfont/_weight.py b/packages/python/plotly/plotly/validators/scatter3d/textfont/_weight.py index 138df0542b0..452f9f9874a 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/textfont/_weight.py +++ b/packages/python/plotly/plotly/validators/scatter3d/textfont/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="scatter3d.textfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scatter3d.textfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatter3d/textfont/_weightsrc.py b/packages/python/plotly/plotly/validators/scatter3d/textfont/_weightsrc.py index 23f242498d7..b8d9475893a 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/textfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/scatter3d/textfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="scatter3d.textfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='scatter3d.textfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/__init__.py index 2a6cd88e3e6..799c1feec27 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zorder import ZorderValidator from ._yaxis import YaxisValidator @@ -54,60 +53,10 @@ from ._a import AValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zorder.ZorderValidator", - "._yaxis.YaxisValidator", - "._xaxis.XaxisValidator", - "._visible.VisibleValidator", - "._unselected.UnselectedValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._texttemplatesrc.TexttemplatesrcValidator", - "._texttemplate.TexttemplateValidator", - "._textsrc.TextsrcValidator", - "._textpositionsrc.TextpositionsrcValidator", - "._textposition.TextpositionValidator", - "._textfont.TextfontValidator", - "._text.TextValidator", - "._stream.StreamValidator", - "._showlegend.ShowlegendValidator", - "._selectedpoints.SelectedpointsValidator", - "._selected.SelectedValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._mode.ModeValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._marker.MarkerValidator", - "._line.LineValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoveron.HoveronValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._fillcolor.FillcolorValidator", - "._fill.FillValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._connectgaps.ConnectgapsValidator", - "._carpet.CarpetValidator", - "._bsrc.BsrcValidator", - "._b.BValidator", - "._asrc.AsrcValidator", - "._a.AValidator", - ], + ['._zorder.ZorderValidator', '._yaxis.YaxisValidator', '._xaxis.XaxisValidator', '._visible.VisibleValidator', '._unselected.UnselectedValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._texttemplatesrc.TexttemplatesrcValidator', '._texttemplate.TexttemplateValidator', '._textsrc.TextsrcValidator', '._textpositionsrc.TextpositionsrcValidator', '._textposition.TextpositionValidator', '._textfont.TextfontValidator', '._text.TextValidator', '._stream.StreamValidator', '._showlegend.ShowlegendValidator', '._selectedpoints.SelectedpointsValidator', '._selected.SelectedValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._mode.ModeValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._marker.MarkerValidator', '._line.LineValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoveron.HoveronValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._fillcolor.FillcolorValidator', '._fill.FillValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._connectgaps.ConnectgapsValidator', '._carpet.CarpetValidator', '._bsrc.BsrcValidator', '._b.BValidator', '._asrc.AsrcValidator', '._a.AValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_a.py b/packages/python/plotly/plotly/validators/scattercarpet/_a.py index 4b796e0f91b..2d7013a7c79 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_a.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_a.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="a", parent_name="scattercarpet", **kwargs): - super(AValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='a', + parent_name='scattercarpet', + **kwargs): + super(AValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_asrc.py b/packages/python/plotly/plotly/validators/scattercarpet/_asrc.py index 3eef85462b5..e0856ac74ec 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_asrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_asrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="asrc", parent_name="scattercarpet", **kwargs): - super(AsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='asrc', + parent_name='scattercarpet', + **kwargs): + super(AsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_b.py b/packages/python/plotly/plotly/validators/scattercarpet/_b.py index 79de8dadc82..8936dc20a87 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_b.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_b.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="b", parent_name="scattercarpet", **kwargs): - super(BValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='b', + parent_name='scattercarpet', + **kwargs): + super(BValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_bsrc.py b/packages/python/plotly/plotly/validators/scattercarpet/_bsrc.py index 6f5305c0a43..14245807b8e 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_bsrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_bsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="bsrc", parent_name="scattercarpet", **kwargs): - super(BsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bsrc', + parent_name='scattercarpet', + **kwargs): + super(BsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_carpet.py b/packages/python/plotly/plotly/validators/scattercarpet/_carpet.py index 55a5c7ebec1..3c52697f42e 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_carpet.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_carpet.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CarpetValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="carpet", parent_name="scattercarpet", **kwargs): - super(CarpetValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CarpetValidator(_bv.StringValidator): + def __init__(self, plotly_name='carpet', + parent_name='scattercarpet', + **kwargs): + super(CarpetValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_connectgaps.py b/packages/python/plotly/plotly/validators/scattercarpet/_connectgaps.py index 6c2ea9c62e8..d7d36b0024f 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_connectgaps.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_connectgaps.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="connectgaps", parent_name="scattercarpet", **kwargs - ): - super(ConnectgapsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ConnectgapsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='connectgaps', + parent_name='scattercarpet', + **kwargs): + super(ConnectgapsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_customdata.py b/packages/python/plotly/plotly/validators/scattercarpet/_customdata.py index ff842872a0a..9210b03f6bc 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_customdata.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="scattercarpet", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='scattercarpet', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_customdatasrc.py b/packages/python/plotly/plotly/validators/scattercarpet/_customdatasrc.py index 3c77561a5af..3cd1cc512dd 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_customdatasrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="customdatasrc", parent_name="scattercarpet", **kwargs - ): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='scattercarpet', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_fill.py b/packages/python/plotly/plotly/validators/scattercarpet/_fill.py index 2d95e5b914d..0b63eb0797e 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_fill.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_fill.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class FillValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="fill", parent_name="scattercarpet", **kwargs): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["none", "toself", "tonext"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='fill', + parent_name='scattercarpet', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['none', 'toself', 'tonext']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_fillcolor.py b/packages/python/plotly/plotly/validators/scattercarpet/_fillcolor.py index c2192e2df7a..59aec8eeb3b 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_fillcolor.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_fillcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="fillcolor", parent_name="scattercarpet", **kwargs): - super(FillcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FillcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fillcolor', + parent_name='scattercarpet', + **kwargs): + super(FillcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_hoverinfo.py b/packages/python/plotly/plotly/validators/scattercarpet/_hoverinfo.py index 96825bb1ffa..ae37fd52996 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="scattercarpet", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["a", "b", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='scattercarpet', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['a', 'b', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/scattercarpet/_hoverinfosrc.py index de7c27c0d06..b30b6a4e8d0 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_hoverinfosrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hoverinfosrc", parent_name="scattercarpet", **kwargs - ): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='scattercarpet', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_hoverlabel.py b/packages/python/plotly/plotly/validators/scattercarpet/_hoverlabel.py index 55feac5cd25..6b828835436 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="scattercarpet", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='scattercarpet', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_hoveron.py b/packages/python/plotly/plotly/validators/scattercarpet/_hoveron.py index b1e9c27064a..ee66b29b921 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_hoveron.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_hoveron.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HoveronValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoveron", parent_name="scattercarpet", **kwargs): - super(HoveronValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - flags=kwargs.pop("flags", ["points", "fills"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoveronValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoveron', + parent_name='scattercarpet', + **kwargs): + super(HoveronValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + flags=kwargs.pop('flags', ['points', 'fills']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_hovertemplate.py b/packages/python/plotly/plotly/validators/scattercarpet/_hovertemplate.py index 87227d6b145..4bc0770bc29 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_hovertemplate.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="hovertemplate", parent_name="scattercarpet", **kwargs - ): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='scattercarpet', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/scattercarpet/_hovertemplatesrc.py index 7c3fbff16ac..7c5555a4e9f 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_hovertemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertemplatesrc", parent_name="scattercarpet", **kwargs - ): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='scattercarpet', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_hovertext.py b/packages/python/plotly/plotly/validators/scattercarpet/_hovertext.py index 475715b067f..b51075aae30 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_hovertext.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="scattercarpet", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='scattercarpet', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_hovertextsrc.py b/packages/python/plotly/plotly/validators/scattercarpet/_hovertextsrc.py index 45549ca3b7c..945ea2e4235 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_hovertextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertextsrc", parent_name="scattercarpet", **kwargs - ): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='scattercarpet', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_ids.py b/packages/python/plotly/plotly/validators/scattercarpet/_ids.py index 711905e8583..5043576725c 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_ids.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="scattercarpet", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='scattercarpet', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_idssrc.py b/packages/python/plotly/plotly/validators/scattercarpet/_idssrc.py index d3e11c606db..aa928b15cc2 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_idssrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="scattercarpet", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='scattercarpet', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_legend.py b/packages/python/plotly/plotly/validators/scattercarpet/_legend.py index c018a7ae897..d4a0b306e32 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_legend.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="scattercarpet", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='scattercarpet', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_legendgroup.py b/packages/python/plotly/plotly/validators/scattercarpet/_legendgroup.py index 50558a8c537..8abeedeae0e 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_legendgroup.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="legendgroup", parent_name="scattercarpet", **kwargs - ): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='scattercarpet', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/scattercarpet/_legendgrouptitle.py index ec57722f886..6a7b51038be 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="scattercarpet", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='scattercarpet', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_legendrank.py b/packages/python/plotly/plotly/validators/scattercarpet/_legendrank.py index 83cf20ad414..93e017704b6 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_legendrank.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="scattercarpet", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='scattercarpet', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_legendwidth.py b/packages/python/plotly/plotly/validators/scattercarpet/_legendwidth.py index 788e67a9194..2d1ec9d475d 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_legendwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="legendwidth", parent_name="scattercarpet", **kwargs - ): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='scattercarpet', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_line.py b/packages/python/plotly/plotly/validators/scattercarpet/_line.py index 41c1a8c2d1c..68821e63c60 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_line.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_line.py @@ -1,45 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="scattercarpet", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - backoff - Sets the line back off from the end point of - the nth line segment (in px). This option is - useful e.g. to avoid overlap with arrowhead - markers. With "auto" the lines would trim - before markers if `marker.angleref` is set to - "previous". - backoffsrc - Sets the source reference on Chart Studio Cloud - for `backoff`. - color - Sets the line color. - dash - 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"). - shape - Determines the line shape. With "spline" the - lines are drawn using spline interpolation. The - other available values correspond to step-wise - line shapes. - smoothing - Has an effect only if `shape` is set to - "spline" Sets the amount of smoothing. 0 - corresponds to no smoothing (equivalent to a - "linear" shape). - width - Sets the line width (in px). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='scattercarpet', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_marker.py b/packages/python/plotly/plotly/validators/scattercarpet/_marker.py index 80948b07def..48abe7ed1f5 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_marker.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_marker.py @@ -1,166 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="scattercarpet", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - angle - Sets the marker angle in respect to `angleref`. - angleref - Sets the reference for marker angle. With - "previous", angle 0 points along the line from - the previous point to this one. With "up", - angle 0 points toward the top of the screen. - anglesrc - Sets the source reference on Chart Studio Cloud - for `angle`. - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.scattercarpet.mark - er.ColorBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - gradient - :class:`plotly.graph_objects.scattercarpet.mark - er.Gradient` instance or dict with compatible - properties - line - :class:`plotly.graph_objects.scattercarpet.mark - er.Line` instance or dict with compatible - properties - maxdisplayed - Sets a maximum number of points to be drawn on - the graph. 0 corresponds to no limit. - opacity - Sets the marker opacity. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. - size - Sets the marker size (in px). - sizemin - Has an effect only if `marker.size` is set to a - numerical array. Sets the minimum size (in px) - of the rendered marker points. - sizemode - Has an effect only if `marker.size` is set to a - numerical array. Sets the rule for which the - data in `size` is converted to pixels. - sizeref - Has an effect only if `marker.size` is set to a - numerical array. Sets the scale factor used to - determine the rendered size of marker points. - Use with `sizemin` and `sizemode`. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - standoff - Moves the marker away from the data point in - the direction of `angle` (in px). This can be - useful for example if you have another marker - at this location and you want to point an - arrowhead marker at it. - standoffsrc - Sets the source reference on Chart Studio Cloud - for `standoff`. - symbol - Sets the marker symbol type. Adding 100 is - equivalent to appending "-open" to a symbol - name. Adding 200 is equivalent to appending - "-dot" to a symbol name. Adding 300 is - equivalent to appending "-open-dot" or "dot- - open" to a symbol name. - symbolsrc - Sets the source reference on Chart Studio Cloud - for `symbol`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scattercarpet', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_meta.py b/packages/python/plotly/plotly/validators/scattercarpet/_meta.py index 34e60c2266b..fbc028a8d47 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_meta.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="scattercarpet", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='scattercarpet', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_metasrc.py b/packages/python/plotly/plotly/validators/scattercarpet/_metasrc.py index cba343cd378..dc2ead50367 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_metasrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="scattercarpet", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='scattercarpet', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_mode.py b/packages/python/plotly/plotly/validators/scattercarpet/_mode.py index 4ee5a5940b0..256a1b203bb 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_mode.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_mode.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="mode", parent_name="scattercarpet", **kwargs): - super(ModeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["lines", "markers", "text"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ModeValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='mode', + parent_name='scattercarpet', + **kwargs): + super(ModeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['lines', 'markers', 'text']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_name.py b/packages/python/plotly/plotly/validators/scattercarpet/_name.py index adbb32d8493..4497f18699b 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_name.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="scattercarpet", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='scattercarpet', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_opacity.py b/packages/python/plotly/plotly/validators/scattercarpet/_opacity.py index a8e1324beb6..1e73897e79e 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_opacity.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="scattercarpet", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scattercarpet', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_selected.py b/packages/python/plotly/plotly/validators/scattercarpet/_selected.py index 08bc9a5640f..5219aec932d 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_selected.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_selected.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="selected", parent_name="scattercarpet", **kwargs): - super(SelectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Selected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.scattercarpet.sele - cted.Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.scattercarpet.sele - cted.Textfont` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='selected', + parent_name='scattercarpet', + **kwargs): + super(SelectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_selectedpoints.py b/packages/python/plotly/plotly/validators/scattercarpet/_selectedpoints.py index f97bf902b56..e28757f581b 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_selectedpoints.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_selectedpoints.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="selectedpoints", parent_name="scattercarpet", **kwargs - ): - super(SelectedpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SelectedpointsValidator(_bv.AnyValidator): + def __init__(self, plotly_name='selectedpoints', + parent_name='scattercarpet', + **kwargs): + super(SelectedpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_showlegend.py b/packages/python/plotly/plotly/validators/scattercarpet/_showlegend.py index 2708b88f040..2045a4114b4 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_showlegend.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="scattercarpet", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='scattercarpet', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_stream.py b/packages/python/plotly/plotly/validators/scattercarpet/_stream.py index 9bd596b155a..db300b28178 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_stream.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="scattercarpet", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='scattercarpet', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_text.py b/packages/python/plotly/plotly/validators/scattercarpet/_text.py index e035068b3de..83194e6bc9a 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_text.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="scattercarpet", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scattercarpet', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_textfont.py b/packages/python/plotly/plotly/validators/scattercarpet/_textfont.py index 83a3c45b010..d4d064cf2d3 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_textfont.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_textfont.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="textfont", parent_name="scattercarpet", **kwargs): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='scattercarpet', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_textposition.py b/packages/python/plotly/plotly/validators/scattercarpet/_textposition.py index c4089bffc6e..cf0d7eee2da 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_textposition.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_textposition.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textposition", parent_name="scattercarpet", **kwargs - ): - super(TextpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "top left", - "top center", - "top right", - "middle left", - "middle center", - "middle right", - "bottom left", - "bottom center", - "bottom right", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textposition', + parent_name='scattercarpet', + **kwargs): + super(TextpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['top left', 'top center', 'top right', 'middle left', 'middle center', 'middle right', 'bottom left', 'bottom center', 'bottom right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_textpositionsrc.py b/packages/python/plotly/plotly/validators/scattercarpet/_textpositionsrc.py index 937b7297b46..f17dd03aeac 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_textpositionsrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_textpositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textpositionsrc", parent_name="scattercarpet", **kwargs - ): - super(TextpositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextpositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textpositionsrc', + parent_name='scattercarpet', + **kwargs): + super(TextpositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_textsrc.py b/packages/python/plotly/plotly/validators/scattercarpet/_textsrc.py index 09c2e079b88..68105333fd5 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_textsrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="scattercarpet", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='scattercarpet', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_texttemplate.py b/packages/python/plotly/plotly/validators/scattercarpet/_texttemplate.py index 33a9f074482..b2412421541 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_texttemplate.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_texttemplate.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="texttemplate", parent_name="scattercarpet", **kwargs - ): - super(TexttemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='texttemplate', + parent_name='scattercarpet', + **kwargs): + super(TexttemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_texttemplatesrc.py b/packages/python/plotly/plotly/validators/scattercarpet/_texttemplatesrc.py index 4a80f38af86..2d35aa1a055 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_texttemplatesrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_texttemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="texttemplatesrc", parent_name="scattercarpet", **kwargs - ): - super(TexttemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='texttemplatesrc', + parent_name='scattercarpet', + **kwargs): + super(TexttemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_uid.py b/packages/python/plotly/plotly/validators/scattercarpet/_uid.py index 857394a80b7..81633b7e9c7 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_uid.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="scattercarpet", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='scattercarpet', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_uirevision.py b/packages/python/plotly/plotly/validators/scattercarpet/_uirevision.py index a94337daaa0..16feb7fb0a6 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_uirevision.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="scattercarpet", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='scattercarpet', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_unselected.py b/packages/python/plotly/plotly/validators/scattercarpet/_unselected.py index 505a46a304c..bb8bfe8a13e 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_unselected.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_unselected.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="unselected", parent_name="scattercarpet", **kwargs): - super(UnselectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Unselected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.scattercarpet.unse - lected.Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.scattercarpet.unse - lected.Textfont` instance or dict with - compatible properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UnselectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='unselected', + parent_name='scattercarpet', + **kwargs): + super(UnselectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_visible.py b/packages/python/plotly/plotly/validators/scattercarpet/_visible.py index 5e71959c15f..64d6a76b6d9 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_visible.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="scattercarpet", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='scattercarpet', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_xaxis.py b/packages/python/plotly/plotly/validators/scattercarpet/_xaxis.py index 020d54151ab..6f980f84d4e 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_xaxis.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_xaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="xaxis", parent_name="scattercarpet", **kwargs): - super(XaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "x"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='xaxis', + parent_name='scattercarpet', + **kwargs): + super(XaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'x'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_yaxis.py b/packages/python/plotly/plotly/validators/scattercarpet/_yaxis.py index d31689ebd66..9618cad37b9 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_yaxis.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_yaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="yaxis", parent_name="scattercarpet", **kwargs): - super(YaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "y"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='yaxis', + parent_name='scattercarpet', + **kwargs): + super(YaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'y'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/_zorder.py b/packages/python/plotly/plotly/validators/scattercarpet/_zorder.py index 2400b66a9af..fe764b97a0d 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/_zorder.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/_zorder.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="zorder", parent_name="scattercarpet", **kwargs): - super(ZorderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZorderValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='zorder', + parent_name='scattercarpet', + **kwargs): + super(ZorderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_align.py index ac3a859e545..c9b732b5442 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_align.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="align", parent_name="scattercarpet.hoverlabel", **kwargs - ): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='scattercarpet.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_alignsrc.py index cd2f1c6f754..6e32baf8e2f 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="scattercarpet.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='scattercarpet.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_bgcolor.py index 847dd1f80bc..ba80c72628e 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="scattercarpet.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='scattercarpet.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_bgcolorsrc.py index 5e2ab9797f4..13bf96e8048 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="scattercarpet.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='scattercarpet.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_bordercolor.py index 281e0523cea..90056d29ef6 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_bordercolor.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bordercolor", - parent_name="scattercarpet.hoverlabel", - **kwargs, - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='scattercarpet.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_bordercolorsrc.py index 0eed31fd5d7..9abcce65906 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="bordercolorsrc", - parent_name="scattercarpet.hoverlabel", - **kwargs, - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='scattercarpet.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_font.py index d418fca00a8..4e23307a67c 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_font.py @@ -1,88 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="scattercarpet.hoverlabel", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scattercarpet.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_namelength.py index 514ea7487df..386e4a301bd 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="scattercarpet.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='scattercarpet.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_namelengthsrc.py index fb6f8c6fa1a..cd5a690a743 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/_namelengthsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="namelengthsrc", - parent_name="scattercarpet.hoverlabel", - **kwargs, - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='scattercarpet.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_color.py index d557187ed91..75be30f1205 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattercarpet.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattercarpet.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_colorsrc.py index 734cc245354..b8379638e0f 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_colorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="colorsrc", - parent_name="scattercarpet.hoverlabel.font", - **kwargs, - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scattercarpet.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_family.py index a547b392d49..b9dfa9f1779 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_family.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scattercarpet.hoverlabel.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattercarpet.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_familysrc.py index eb2bc2fc571..144144b756d 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_familysrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="familysrc", - parent_name="scattercarpet.hoverlabel.font", - **kwargs, - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='scattercarpet.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_lineposition.py index 7e124a93b8c..a7dbe35fd8b 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scattercarpet.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scattercarpet.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_linepositionsrc.py index c1f7a6b59a2..01902d41bb7 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="scattercarpet.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='scattercarpet.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_shadow.py index 2d8e98e33ee..9733b3d2b7a 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_shadow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scattercarpet.hoverlabel.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scattercarpet.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_shadowsrc.py index aa817b779a4..75fd423c868 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="shadowsrc", - parent_name="scattercarpet.hoverlabel.font", - **kwargs, - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='scattercarpet.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_size.py index 4f55b7c689a..db2364a5ac6 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scattercarpet.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattercarpet.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_sizesrc.py index 701c9f5ad49..5d32a207139 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_sizesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="sizesrc", - parent_name="scattercarpet.hoverlabel.font", - **kwargs, - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scattercarpet.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_style.py index 21ed336e5b8..07605ea5e79 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="scattercarpet.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattercarpet.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_stylesrc.py index 3637136987d..c71e39636e4 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_stylesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="stylesrc", - parent_name="scattercarpet.hoverlabel.font", - **kwargs, - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='scattercarpet.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_textcase.py index efdb75fdf95..e1cce6bcac7 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_textcase.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scattercarpet.hoverlabel.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scattercarpet.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_textcasesrc.py index 52a89ee1526..15f05578355 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="scattercarpet.hoverlabel.font", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='scattercarpet.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_variant.py index bf246b0ab5a..807cde67e37 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_variant.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scattercarpet.hoverlabel.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scattercarpet.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_variantsrc.py index ec1ec0fdafd..ddea3a32032 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_variantsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="variantsrc", - parent_name="scattercarpet.hoverlabel.font", - **kwargs, - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='scattercarpet.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_weight.py index ff9d32157c9..6a42573a9d9 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_weight.py @@ -1,20 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scattercarpet.hoverlabel.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scattercarpet.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_weightsrc.py index 6bf9b80888f..bfbe55f1723 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/_weightsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="weightsrc", - parent_name="scattercarpet.hoverlabel.font", - **kwargs, - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='scattercarpet.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/_font.py index 84793aa2d07..80bbc513613 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="scattercarpet.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scattercarpet.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/_text.py index 34a0c36b359..3a89979fa3d 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="scattercarpet.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scattercarpet.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_color.py index 1e2b2455190..4bdd1b77e0f 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scattercarpet.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattercarpet.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_family.py index a2fdecfcfe7..2a9e2e64e8a 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scattercarpet.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattercarpet.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_lineposition.py index 2ee04a84666..7366bd8fa86 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scattercarpet.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scattercarpet.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_shadow.py index effe300f8bd..01c30d97126 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scattercarpet.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scattercarpet.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_size.py index e3f40391493..ead83dc4090 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scattercarpet.legendgrouptitle.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattercarpet.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_style.py index c198f0d6015..3134773031a 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scattercarpet.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattercarpet.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_textcase.py index 589bef4389f..b083c3d3c7b 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scattercarpet.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scattercarpet.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_variant.py index 6ba08118641..5e509ee2cdf 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scattercarpet.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scattercarpet.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_weight.py index b8177744bc9..21bea2e8503 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scattercarpet.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scattercarpet.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/line/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/line/__init__.py index 7045562597a..e5a8bd1f88a 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._smoothing import SmoothingValidator @@ -11,17 +10,10 @@ from ._backoff import BackoffValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._smoothing.SmoothingValidator", - "._shape.ShapeValidator", - "._dash.DashValidator", - "._color.ColorValidator", - "._backoffsrc.BackoffsrcValidator", - "._backoff.BackoffValidator", - ], + ['._width.WidthValidator', '._smoothing.SmoothingValidator', '._shape.ShapeValidator', '._dash.DashValidator', '._color.ColorValidator', '._backoffsrc.BackoffsrcValidator', '._backoff.BackoffValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattercarpet/line/_backoff.py b/packages/python/plotly/plotly/validators/scattercarpet/line/_backoff.py index 43a5882734c..e51c634c1d3 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/line/_backoff.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/line/_backoff.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class BackoffValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="backoff", parent_name="scattercarpet.line", **kwargs - ): - super(BackoffValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BackoffValidator(_bv.NumberValidator): + def __init__(self, plotly_name='backoff', + parent_name='scattercarpet.line', + **kwargs): + super(BackoffValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/line/_backoffsrc.py b/packages/python/plotly/plotly/validators/scattercarpet/line/_backoffsrc.py index e7cfda50672..4068cd20c8e 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/line/_backoffsrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/line/_backoffsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BackoffsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="backoffsrc", parent_name="scattercarpet.line", **kwargs - ): - super(BackoffsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BackoffsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='backoffsrc', + parent_name='scattercarpet.line', + **kwargs): + super(BackoffsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/line/_color.py b/packages/python/plotly/plotly/validators/scattercarpet/line/_color.py index bddc763b1ff..41e29c0f4cf 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/line/_color.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/line/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="scattercarpet.line", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattercarpet.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/line/_dash.py b/packages/python/plotly/plotly/validators/scattercarpet/line/_dash.py index b4c7cab49d6..38c4e0a96b7 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/line/_dash.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/line/_dash.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__(self, plotly_name="dash", parent_name="scattercarpet.line", **kwargs): - super(DashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DashValidator(_bv.DashValidator): + def __init__(self, plotly_name='dash', + parent_name='scattercarpet.line', + **kwargs): + super(DashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/line/_shape.py b/packages/python/plotly/plotly/validators/scattercarpet/line/_shape.py index bf3b7d18d1d..03e221aebb6 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/line/_shape.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/line/_shape.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="shape", parent_name="scattercarpet.line", **kwargs): - super(ShapeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["linear", "spline"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShapeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='shape', + parent_name='scattercarpet.line', + **kwargs): + super(ShapeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['linear', 'spline']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/line/_smoothing.py b/packages/python/plotly/plotly/validators/scattercarpet/line/_smoothing.py index 246eb890d66..a74784a43f6 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/line/_smoothing.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/line/_smoothing.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SmoothingValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="smoothing", parent_name="scattercarpet.line", **kwargs - ): - super(SmoothingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 1.3), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SmoothingValidator(_bv.NumberValidator): + def __init__(self, plotly_name='smoothing', + parent_name='scattercarpet.line', + **kwargs): + super(SmoothingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 1.3), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/line/_width.py b/packages/python/plotly/plotly/validators/scattercarpet/line/_width.py index 8f408e82de1..6cb185d313f 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/line/_width.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/line/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="scattercarpet.line", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='scattercarpet.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/__init__.py index 8434e73e3f5..a8815dace11 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._symbolsrc import SymbolsrcValidator from ._symbol import SymbolValidator @@ -33,39 +32,10 @@ from ._angle import AngleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._symbolsrc.SymbolsrcValidator", - "._symbol.SymbolValidator", - "._standoffsrc.StandoffsrcValidator", - "._standoff.StandoffValidator", - "._sizesrc.SizesrcValidator", - "._sizeref.SizerefValidator", - "._sizemode.SizemodeValidator", - "._sizemin.SizeminValidator", - "._size.SizeValidator", - "._showscale.ShowscaleValidator", - "._reversescale.ReversescaleValidator", - "._opacitysrc.OpacitysrcValidator", - "._opacity.OpacityValidator", - "._maxdisplayed.MaxdisplayedValidator", - "._line.LineValidator", - "._gradient.GradientValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - "._anglesrc.AnglesrcValidator", - "._angleref.AnglerefValidator", - "._angle.AngleValidator", - ], + ['._symbolsrc.SymbolsrcValidator', '._symbol.SymbolValidator', '._standoffsrc.StandoffsrcValidator', '._standoff.StandoffValidator', '._sizesrc.SizesrcValidator', '._sizeref.SizerefValidator', '._sizemode.SizemodeValidator', '._sizemin.SizeminValidator', '._size.SizeValidator', '._showscale.ShowscaleValidator', '._reversescale.ReversescaleValidator', '._opacitysrc.OpacitysrcValidator', '._opacity.OpacityValidator', '._maxdisplayed.MaxdisplayedValidator', '._line.LineValidator', '._gradient.GradientValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator', '._anglesrc.AnglesrcValidator', '._angleref.AnglerefValidator', '._angle.AngleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/_angle.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/_angle.py index f5c125465f3..cbfbb0d85d4 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/_angle.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/_angle.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AngleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="angle", parent_name="scattercarpet.marker", **kwargs - ): - super(AngleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AngleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='angle', + parent_name='scattercarpet.marker', + **kwargs): + super(AngleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/_angleref.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/_angleref.py index f41f56e4803..b9771d60fc1 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/_angleref.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/_angleref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AnglerefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="angleref", parent_name="scattercarpet.marker", **kwargs - ): - super(AnglerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["previous", "up"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AnglerefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='angleref', + parent_name='scattercarpet.marker', + **kwargs): + super(AnglerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['previous', 'up']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/_anglesrc.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/_anglesrc.py index 3d469a50024..5cefa71230c 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/_anglesrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/_anglesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AnglesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="anglesrc", parent_name="scattercarpet.marker", **kwargs - ): - super(AnglesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AnglesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='anglesrc', + parent_name='scattercarpet.marker', + **kwargs): + super(AnglesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/_autocolorscale.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/_autocolorscale.py index a658bed9563..da7f46be5f2 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="scattercarpet.marker", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='scattercarpet.marker', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/_cauto.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/_cauto.py index a405248471a..1c88461a26f 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/_cauto.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/_cauto.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="cauto", parent_name="scattercarpet.marker", **kwargs - ): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='scattercarpet.marker', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/_cmax.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/_cmax.py index 9e8f39a9e8e..657c435c2ea 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/_cmax.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/_cmax.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmax", parent_name="scattercarpet.marker", **kwargs - ): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='scattercarpet.marker', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/_cmid.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/_cmid.py index 56671938e99..d4ec30ac3fa 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/_cmid.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/_cmid.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmid", parent_name="scattercarpet.marker", **kwargs - ): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='scattercarpet.marker', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/_cmin.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/_cmin.py index 8a52fb98d2b..79f400aadaf 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/_cmin.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/_cmin.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmin", parent_name="scattercarpet.marker", **kwargs - ): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='scattercarpet.marker', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/_color.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/_color.py index 1eeb4f0fb8d..a29eb5c2855 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/_color.py @@ -1,17 +1,15 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattercarpet.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - colorscale_path=kwargs.pop( - "colorscale_path", "scattercarpet.marker.colorscale" - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattercarpet.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + colorscale_path=kwargs.pop('colorscale_path', 'scattercarpet.marker.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/_coloraxis.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/_coloraxis.py index 4d245e514d8..07ed6fd3ebd 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/_coloraxis.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name="coloraxis", parent_name="scattercarpet.marker", **kwargs - ): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='scattercarpet.marker', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/_colorbar.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/_colorbar.py index 8d2226095eb..9387362e699 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/_colorbar.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/_colorbar.py @@ -1,282 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="colorbar", parent_name="scattercarpet.marker", **kwargs - ): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.scatter - carpet.marker.colorbar.Tickformatstop` - instances or dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.scattercarpet.marker.colorbar.tickformatstopd - efaults), sets the default property values to - use for elements of - scattercarpet.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.scattercarpet.mark - er.colorbar.Title` instance or dict with - compatible properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='scattercarpet.marker', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/_colorscale.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/_colorscale.py index 56ff5828de9..67fee27136c 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/_colorscale.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="scattercarpet.marker", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='scattercarpet.marker', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/_colorsrc.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/_colorsrc.py index 4d3627fa2b5..e8a59e03028 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scattercarpet.marker", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scattercarpet.marker', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/_gradient.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/_gradient.py index 1571d455793..42a5aa43409 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/_gradient.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/_gradient.py @@ -1,31 +1,15 @@ -import _plotly_utils.basevalidators -class GradientValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="gradient", parent_name="scattercarpet.marker", **kwargs - ): - super(GradientValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Gradient"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the final color of the gradient fill: the - center color for radial, the right for - horizontal, or the bottom for vertical. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - type - Sets the type of gradient used to fill the - markers - typesrc - Sets the source reference on Chart Studio Cloud - for `type`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class GradientValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='gradient', + parent_name='scattercarpet.marker', + **kwargs): + super(GradientValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Gradient'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/_line.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/_line.py index 2eb9d2be328..76342f92c60 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/_line.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/_line.py @@ -1,107 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="line", parent_name="scattercarpet.marker", **kwargs - ): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.line.colorscale`. Has an - effect only if in `marker.line.color` is set to - a numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.line.color`) or the bounds set in - `marker.line.cmin` and `marker.line.cmax` Has - an effect only if in `marker.line.color` is set - to a numerical array. Defaults to `false` when - `marker.line.cmin` and `marker.line.cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.line.cmin` and/or - `marker.line.cmax` to be equidistant to this - point. Has an effect only if in - `marker.line.color` is set to a numerical - array. Value should have the same units as in - `marker.line.color`. Has no effect when - `marker.line.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmax` must be set as well. - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorscale - Sets the colorscale. Has an effect only if in - `marker.line.color` is set to a numerical - array. The colorscale must be an array - containing arrays mapping a normalized value to - an rgb, rgba, hex, hsl, hsv, or named color - string. At minimum, a mapping for the lowest - (0) and highest (1) values are required. For - example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use - `marker.line.cmin` and `marker.line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.line.color` is set to - a numerical array. If true, `marker.line.cmin` - will correspond to the last color in the array - and `marker.line.cmax` will correspond to the - first color. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='scattercarpet.marker', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/_maxdisplayed.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/_maxdisplayed.py index 96fd3072a7f..4dc8b48c301 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/_maxdisplayed.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/_maxdisplayed.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MaxdisplayedValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxdisplayed", parent_name="scattercarpet.marker", **kwargs - ): - super(MaxdisplayedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxdisplayedValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxdisplayed', + parent_name='scattercarpet.marker', + **kwargs): + super(MaxdisplayedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/_opacity.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/_opacity.py index e2cdbb91002..3db14e29030 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/_opacity.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="scattercarpet.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scattercarpet.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/_opacitysrc.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/_opacitysrc.py index a60fee74c63..033ed76bdc4 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/_opacitysrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/_opacitysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="opacitysrc", parent_name="scattercarpet.marker", **kwargs - ): - super(OpacitysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacitysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='opacitysrc', + parent_name='scattercarpet.marker', + **kwargs): + super(OpacitysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/_reversescale.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/_reversescale.py index 625ccb04bcd..9f7db4a0345 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/_reversescale.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="scattercarpet.marker", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='scattercarpet.marker', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/_showscale.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/_showscale.py index 4df21f8bf1b..0e2c50ca21c 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/_showscale.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/_showscale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showscale", parent_name="scattercarpet.marker", **kwargs - ): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='scattercarpet.marker', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/_size.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/_size.py index 7676c02c7bd..b3486961f24 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scattercarpet.marker", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattercarpet.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/_sizemin.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/_sizemin.py index 96c1fcdc8f1..bc70cf82b13 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/_sizemin.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/_sizemin.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="sizemin", parent_name="scattercarpet.marker", **kwargs - ): - super(SizeminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sizemin', + parent_name='scattercarpet.marker', + **kwargs): + super(SizeminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/_sizemode.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/_sizemode.py index f710fc97501..613350c55a1 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/_sizemode.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/_sizemode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="sizemode", parent_name="scattercarpet.marker", **kwargs - ): - super(SizemodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["diameter", "area"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizemodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='sizemode', + parent_name='scattercarpet.marker', + **kwargs): + super(SizemodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['diameter', 'area']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/_sizeref.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/_sizeref.py index 1e39279afb6..e91be470626 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/_sizeref.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/_sizeref.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="sizeref", parent_name="scattercarpet.marker", **kwargs - ): - super(SizerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizerefValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sizeref', + parent_name='scattercarpet.marker', + **kwargs): + super(SizerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/_sizesrc.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/_sizesrc.py index b5e29381361..d947af9f97b 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="scattercarpet.marker", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scattercarpet.marker', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/_standoff.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/_standoff.py index ca37ed66f16..ffdffe1d1c8 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/_standoff.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/_standoff.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StandoffValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="standoff", parent_name="scattercarpet.marker", **kwargs - ): - super(StandoffValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StandoffValidator(_bv.NumberValidator): + def __init__(self, plotly_name='standoff', + parent_name='scattercarpet.marker', + **kwargs): + super(StandoffValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/_standoffsrc.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/_standoffsrc.py index 096673f3777..24d16210d56 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/_standoffsrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/_standoffsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StandoffsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="standoffsrc", parent_name="scattercarpet.marker", **kwargs - ): - super(StandoffsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StandoffsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='standoffsrc', + parent_name='scattercarpet.marker', + **kwargs): + super(StandoffsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/_symbol.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/_symbol.py index 8a66a7852fc..891f2ed5e56 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/_symbol.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/_symbol.py @@ -1,505 +1,15 @@ -import _plotly_utils.basevalidators -class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="symbol", parent_name="scattercarpet.marker", **kwargs - ): - super(SymbolValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - 0, - "0", - "circle", - 100, - "100", - "circle-open", - 200, - "200", - "circle-dot", - 300, - "300", - "circle-open-dot", - 1, - "1", - "square", - 101, - "101", - "square-open", - 201, - "201", - "square-dot", - 301, - "301", - "square-open-dot", - 2, - "2", - "diamond", - 102, - "102", - "diamond-open", - 202, - "202", - "diamond-dot", - 302, - "302", - "diamond-open-dot", - 3, - "3", - "cross", - 103, - "103", - "cross-open", - 203, - "203", - "cross-dot", - 303, - "303", - "cross-open-dot", - 4, - "4", - "x", - 104, - "104", - "x-open", - 204, - "204", - "x-dot", - 304, - "304", - "x-open-dot", - 5, - "5", - "triangle-up", - 105, - "105", - "triangle-up-open", - 205, - "205", - "triangle-up-dot", - 305, - "305", - "triangle-up-open-dot", - 6, - "6", - "triangle-down", - 106, - "106", - "triangle-down-open", - 206, - "206", - "triangle-down-dot", - 306, - "306", - "triangle-down-open-dot", - 7, - "7", - "triangle-left", - 107, - "107", - "triangle-left-open", - 207, - "207", - "triangle-left-dot", - 307, - "307", - "triangle-left-open-dot", - 8, - "8", - "triangle-right", - 108, - "108", - "triangle-right-open", - 208, - "208", - "triangle-right-dot", - 308, - "308", - "triangle-right-open-dot", - 9, - "9", - "triangle-ne", - 109, - "109", - "triangle-ne-open", - 209, - "209", - "triangle-ne-dot", - 309, - "309", - "triangle-ne-open-dot", - 10, - "10", - "triangle-se", - 110, - "110", - "triangle-se-open", - 210, - "210", - "triangle-se-dot", - 310, - "310", - "triangle-se-open-dot", - 11, - "11", - "triangle-sw", - 111, - "111", - "triangle-sw-open", - 211, - "211", - "triangle-sw-dot", - 311, - "311", - "triangle-sw-open-dot", - 12, - "12", - "triangle-nw", - 112, - "112", - "triangle-nw-open", - 212, - "212", - "triangle-nw-dot", - 312, - "312", - "triangle-nw-open-dot", - 13, - "13", - "pentagon", - 113, - "113", - "pentagon-open", - 213, - "213", - "pentagon-dot", - 313, - "313", - "pentagon-open-dot", - 14, - "14", - "hexagon", - 114, - "114", - "hexagon-open", - 214, - "214", - "hexagon-dot", - 314, - "314", - "hexagon-open-dot", - 15, - "15", - "hexagon2", - 115, - "115", - "hexagon2-open", - 215, - "215", - "hexagon2-dot", - 315, - "315", - "hexagon2-open-dot", - 16, - "16", - "octagon", - 116, - "116", - "octagon-open", - 216, - "216", - "octagon-dot", - 316, - "316", - "octagon-open-dot", - 17, - "17", - "star", - 117, - "117", - "star-open", - 217, - "217", - "star-dot", - 317, - "317", - "star-open-dot", - 18, - "18", - "hexagram", - 118, - "118", - "hexagram-open", - 218, - "218", - "hexagram-dot", - 318, - "318", - "hexagram-open-dot", - 19, - "19", - "star-triangle-up", - 119, - "119", - "star-triangle-up-open", - 219, - "219", - "star-triangle-up-dot", - 319, - "319", - "star-triangle-up-open-dot", - 20, - "20", - "star-triangle-down", - 120, - "120", - "star-triangle-down-open", - 220, - "220", - "star-triangle-down-dot", - 320, - "320", - "star-triangle-down-open-dot", - 21, - "21", - "star-square", - 121, - "121", - "star-square-open", - 221, - "221", - "star-square-dot", - 321, - "321", - "star-square-open-dot", - 22, - "22", - "star-diamond", - 122, - "122", - "star-diamond-open", - 222, - "222", - "star-diamond-dot", - 322, - "322", - "star-diamond-open-dot", - 23, - "23", - "diamond-tall", - 123, - "123", - "diamond-tall-open", - 223, - "223", - "diamond-tall-dot", - 323, - "323", - "diamond-tall-open-dot", - 24, - "24", - "diamond-wide", - 124, - "124", - "diamond-wide-open", - 224, - "224", - "diamond-wide-dot", - 324, - "324", - "diamond-wide-open-dot", - 25, - "25", - "hourglass", - 125, - "125", - "hourglass-open", - 26, - "26", - "bowtie", - 126, - "126", - "bowtie-open", - 27, - "27", - "circle-cross", - 127, - "127", - "circle-cross-open", - 28, - "28", - "circle-x", - 128, - "128", - "circle-x-open", - 29, - "29", - "square-cross", - 129, - "129", - "square-cross-open", - 30, - "30", - "square-x", - 130, - "130", - "square-x-open", - 31, - "31", - "diamond-cross", - 131, - "131", - "diamond-cross-open", - 32, - "32", - "diamond-x", - 132, - "132", - "diamond-x-open", - 33, - "33", - "cross-thin", - 133, - "133", - "cross-thin-open", - 34, - "34", - "x-thin", - 134, - "134", - "x-thin-open", - 35, - "35", - "asterisk", - 135, - "135", - "asterisk-open", - 36, - "36", - "hash", - 136, - "136", - "hash-open", - 236, - "236", - "hash-dot", - 336, - "336", - "hash-open-dot", - 37, - "37", - "y-up", - 137, - "137", - "y-up-open", - 38, - "38", - "y-down", - 138, - "138", - "y-down-open", - 39, - "39", - "y-left", - 139, - "139", - "y-left-open", - 40, - "40", - "y-right", - 140, - "140", - "y-right-open", - 41, - "41", - "line-ew", - 141, - "141", - "line-ew-open", - 42, - "42", - "line-ns", - 142, - "142", - "line-ns-open", - 43, - "43", - "line-ne", - 143, - "143", - "line-ne-open", - 44, - "44", - "line-nw", - 144, - "144", - "line-nw-open", - 45, - "45", - "arrow-up", - 145, - "145", - "arrow-up-open", - 46, - "46", - "arrow-down", - 146, - "146", - "arrow-down-open", - 47, - "47", - "arrow-left", - 147, - "147", - "arrow-left-open", - 48, - "48", - "arrow-right", - 148, - "148", - "arrow-right-open", - 49, - "49", - "arrow-bar-up", - 149, - "149", - "arrow-bar-up-open", - 50, - "50", - "arrow-bar-down", - 150, - "150", - "arrow-bar-down-open", - 51, - "51", - "arrow-bar-left", - 151, - "151", - "arrow-bar-left-open", - 52, - "52", - "arrow-bar-right", - 152, - "152", - "arrow-bar-right-open", - 53, - "53", - "arrow", - 153, - "153", - "arrow-open", - 54, - "54", - "arrow-wide", - 154, - "154", - "arrow-wide-open", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SymbolValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='symbol', + parent_name='scattercarpet.marker', + **kwargs): + super(SymbolValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', [0, '0', 'circle', 100, '100', 'circle-open', 200, '200', 'circle-dot', 300, '300', 'circle-open-dot', 1, '1', 'square', 101, '101', 'square-open', 201, '201', 'square-dot', 301, '301', 'square-open-dot', 2, '2', 'diamond', 102, '102', 'diamond-open', 202, '202', 'diamond-dot', 302, '302', 'diamond-open-dot', 3, '3', 'cross', 103, '103', 'cross-open', 203, '203', 'cross-dot', 303, '303', 'cross-open-dot', 4, '4', 'x', 104, '104', 'x-open', 204, '204', 'x-dot', 304, '304', 'x-open-dot', 5, '5', 'triangle-up', 105, '105', 'triangle-up-open', 205, '205', 'triangle-up-dot', 305, '305', 'triangle-up-open-dot', 6, '6', 'triangle-down', 106, '106', 'triangle-down-open', 206, '206', 'triangle-down-dot', 306, '306', 'triangle-down-open-dot', 7, '7', 'triangle-left', 107, '107', 'triangle-left-open', 207, '207', 'triangle-left-dot', 307, '307', 'triangle-left-open-dot', 8, '8', 'triangle-right', 108, '108', 'triangle-right-open', 208, '208', 'triangle-right-dot', 308, '308', 'triangle-right-open-dot', 9, '9', 'triangle-ne', 109, '109', 'triangle-ne-open', 209, '209', 'triangle-ne-dot', 309, '309', 'triangle-ne-open-dot', 10, '10', 'triangle-se', 110, '110', 'triangle-se-open', 210, '210', 'triangle-se-dot', 310, '310', 'triangle-se-open-dot', 11, '11', 'triangle-sw', 111, '111', 'triangle-sw-open', 211, '211', 'triangle-sw-dot', 311, '311', 'triangle-sw-open-dot', 12, '12', 'triangle-nw', 112, '112', 'triangle-nw-open', 212, '212', 'triangle-nw-dot', 312, '312', 'triangle-nw-open-dot', 13, '13', 'pentagon', 113, '113', 'pentagon-open', 213, '213', 'pentagon-dot', 313, '313', 'pentagon-open-dot', 14, '14', 'hexagon', 114, '114', 'hexagon-open', 214, '214', 'hexagon-dot', 314, '314', 'hexagon-open-dot', 15, '15', 'hexagon2', 115, '115', 'hexagon2-open', 215, '215', 'hexagon2-dot', 315, '315', 'hexagon2-open-dot', 16, '16', 'octagon', 116, '116', 'octagon-open', 216, '216', 'octagon-dot', 316, '316', 'octagon-open-dot', 17, '17', 'star', 117, '117', 'star-open', 217, '217', 'star-dot', 317, '317', 'star-open-dot', 18, '18', 'hexagram', 118, '118', 'hexagram-open', 218, '218', 'hexagram-dot', 318, '318', 'hexagram-open-dot', 19, '19', 'star-triangle-up', 119, '119', 'star-triangle-up-open', 219, '219', 'star-triangle-up-dot', 319, '319', 'star-triangle-up-open-dot', 20, '20', 'star-triangle-down', 120, '120', 'star-triangle-down-open', 220, '220', 'star-triangle-down-dot', 320, '320', 'star-triangle-down-open-dot', 21, '21', 'star-square', 121, '121', 'star-square-open', 221, '221', 'star-square-dot', 321, '321', 'star-square-open-dot', 22, '22', 'star-diamond', 122, '122', 'star-diamond-open', 222, '222', 'star-diamond-dot', 322, '322', 'star-diamond-open-dot', 23, '23', 'diamond-tall', 123, '123', 'diamond-tall-open', 223, '223', 'diamond-tall-dot', 323, '323', 'diamond-tall-open-dot', 24, '24', 'diamond-wide', 124, '124', 'diamond-wide-open', 224, '224', 'diamond-wide-dot', 324, '324', 'diamond-wide-open-dot', 25, '25', 'hourglass', 125, '125', 'hourglass-open', 26, '26', 'bowtie', 126, '126', 'bowtie-open', 27, '27', 'circle-cross', 127, '127', 'circle-cross-open', 28, '28', 'circle-x', 128, '128', 'circle-x-open', 29, '29', 'square-cross', 129, '129', 'square-cross-open', 30, '30', 'square-x', 130, '130', 'square-x-open', 31, '31', 'diamond-cross', 131, '131', 'diamond-cross-open', 32, '32', 'diamond-x', 132, '132', 'diamond-x-open', 33, '33', 'cross-thin', 133, '133', 'cross-thin-open', 34, '34', 'x-thin', 134, '134', 'x-thin-open', 35, '35', 'asterisk', 135, '135', 'asterisk-open', 36, '36', 'hash', 136, '136', 'hash-open', 236, '236', 'hash-dot', 336, '336', 'hash-open-dot', 37, '37', 'y-up', 137, '137', 'y-up-open', 38, '38', 'y-down', 138, '138', 'y-down-open', 39, '39', 'y-left', 139, '139', 'y-left-open', 40, '40', 'y-right', 140, '140', 'y-right-open', 41, '41', 'line-ew', 141, '141', 'line-ew-open', 42, '42', 'line-ns', 142, '142', 'line-ns-open', 43, '43', 'line-ne', 143, '143', 'line-ne-open', 44, '44', 'line-nw', 144, '144', 'line-nw-open', 45, '45', 'arrow-up', 145, '145', 'arrow-up-open', 46, '46', 'arrow-down', 146, '146', 'arrow-down-open', 47, '47', 'arrow-left', 147, '147', 'arrow-left-open', 48, '48', 'arrow-right', 148, '148', 'arrow-right-open', 49, '49', 'arrow-bar-up', 149, '149', 'arrow-bar-up-open', 50, '50', 'arrow-bar-down', 150, '150', 'arrow-bar-down-open', 51, '51', 'arrow-bar-left', 151, '151', 'arrow-bar-left-open', 52, '52', 'arrow-bar-right', 152, '152', 'arrow-bar-right-open', 53, '53', 'arrow', 153, '153', 'arrow-open', 54, '54', 'arrow-wide', 154, '154', 'arrow-wide-open']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/_symbolsrc.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/_symbolsrc.py index 950142054ac..d5d789904f0 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/_symbolsrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/_symbolsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="symbolsrc", parent_name="scattercarpet.marker", **kwargs - ): - super(SymbolsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SymbolsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='symbolsrc', + parent_name='scattercarpet.marker', + **kwargs): + super(SymbolsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_bgcolor.py index 14d8d440175..600e7a88995 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_bgcolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bgcolor", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_bordercolor.py index a7d81afb970..fd82031e12b 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_bordercolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bordercolor", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_borderwidth.py index 6c14054c3a9..f4ec6814fca 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_borderwidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="borderwidth", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_dtick.py index 52007629e81..49112ac4b03 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="scattercarpet.marker.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_exponentformat.py index 4b7ad454863..435a8053a43 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_exponentformat.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="exponentformat", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_labelalias.py index 54598bee82c..564e5cf35db 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_labelalias.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="labelalias", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_len.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_len.py index 909c27f4c93..d34eca2bb18 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_len.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="len", parent_name="scattercarpet.marker.colorbar", **kwargs - ): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_lenmode.py index 1d950a183d0..bdebf2ff3af 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_lenmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="lenmode", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_minexponent.py index 899f52cd666..700b085c717 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_minexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="minexponent", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_nticks.py index a27230d204b..86523b8781a 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_nticks.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="nticks", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_orientation.py index d9747b0fc20..85252383190 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_orientation.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="orientation", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_outlinecolor.py index 21c7ae72f0e..2729dd78b38 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_outlinecolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="outlinecolor", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_outlinewidth.py index 37b2931d50e..59f121ef904 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_outlinewidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="outlinewidth", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_separatethousands.py index 47fe1ce6723..121a89728a8 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_showexponent.py index 021a46814f8..b6f94af4c49 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_showexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showexponent", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_showticklabels.py index 4c739cf26ae..d2b6227bf15 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_showtickprefix.py index 756fdc9ccc9..ffe62199614 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_showticksuffix.py index 65362ecd764..dd4653afa44 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_thickness.py index aa69d2bd9cf..bc27a5ad638 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_thickness.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="thickness", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_thicknessmode.py index 1aff8c25b02..f3569bc50ef 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_thicknessmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="thicknessmode", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tick0.py index 49fb269ac41..625866aec04 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="scattercarpet.marker.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickangle.py index 9a7ef6641b4..c36508abf2f 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickangle.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name="tickangle", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickcolor.py index 32df0b6588d..a43132e2f4f 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickcolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="tickcolor", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickfont.py index 9404fe8207c..8687bd2ae34 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickfont.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickfont", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickformat.py index 52ca25092e3..d7b714f431a 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickformat.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickformat", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickformatstopdefaults.py index c8a7fb0da06..a4c20b8c61b 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickformatstops.py index 4bca67ff081..460269e7d17 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticklabeloverflow.py index 44f5514fd43..d632418d5e6 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticklabelposition.py index b28a577be15..a3dc77996e2 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticklabelstep.py index 8d1dc0bb822..ac22db3cec6 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticklabelstep.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="ticklabelstep", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticklen.py index 24ae73ac230..83ff6d06851 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticklen.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="ticklen", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickmode.py index 83c1465f4c1..517b51445d5 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickmode.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="tickmode", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickprefix.py index 5a9b3158f56..574f9a0bf4d 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickprefix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickprefix", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticks.py index e1d9fd675e2..c8add908aff 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="scattercarpet.marker.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticksuffix.py index 7dd6d7ce8ff..a98dcdcffa7 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticksuffix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="ticksuffix", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticktext.py index 9078cc68fdf..ed0c7f91ba8 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticktext.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name="ticktext", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticktextsrc.py index fe2d8279c56..b3b5aa679fb 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ticktextsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="ticktextsrc", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickvals.py index 3773574430f..38f6b44264a 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickvals.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name="tickvals", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickvalssrc.py index 2c49686ebf5..a463af6ac62 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickvalssrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="tickvalssrc", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickwidth.py index a5c1a779066..f4a74482d01 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_tickwidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="tickwidth", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_title.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_title.py index ff2d5ac949d..19daa4edbb6 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="scattercarpet.marker.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_x.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_x.py index 16366085ee0..8258b3dadd9 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_x.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="x", parent_name="scattercarpet.marker.colorbar", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_xanchor.py index 5d04c05e974..2b54127b5a2 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_xanchor.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="xanchor", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_xpad.py index 1e67b492549..cb73e59642c 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_xpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="xpad", parent_name="scattercarpet.marker.colorbar", **kwargs - ): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_xref.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_xref.py index eab939038ad..736461031f2 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xref", parent_name="scattercarpet.marker.colorbar", **kwargs - ): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_y.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_y.py index e90c0527043..216ca7da68c 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_y.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="y", parent_name="scattercarpet.marker.colorbar", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_yanchor.py index 186b5b7d51b..3a31efd6cb7 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_yanchor.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="yanchor", - parent_name="scattercarpet.marker.colorbar", - **kwargs, - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ypad.py index cfa15b511e8..86dfaced4c6 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_ypad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ypad", parent_name="scattercarpet.marker.colorbar", **kwargs - ): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_yref.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_yref.py index 2fdab2766d0..71ee535c44b 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yref", parent_name="scattercarpet.marker.colorbar", **kwargs - ): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='scattercarpet.marker.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_color.py index 4f3e47e6c1a..36fd8284766 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scattercarpet.marker.colorbar.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattercarpet.marker.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_family.py index 8cf7e70ad87..59be0111325 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scattercarpet.marker.colorbar.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattercarpet.marker.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_lineposition.py index 79182f3836a..e906d0b1400 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scattercarpet.marker.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scattercarpet.marker.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_shadow.py index 48ae8653871..e4af514294a 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scattercarpet.marker.colorbar.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scattercarpet.marker.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_size.py index 86e0c213fc6..42d96a7fee8 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scattercarpet.marker.colorbar.tickfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattercarpet.marker.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_style.py index bf560146684..34836fc7ef2 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scattercarpet.marker.colorbar.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattercarpet.marker.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_textcase.py index bfcc614c342..68c615220a1 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scattercarpet.marker.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scattercarpet.marker.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_variant.py index 12f482e4aae..5d80abe75aa 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scattercarpet.marker.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scattercarpet.marker.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_weight.py index 082e9e3b9d4..f75ed330902 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scattercarpet.marker.colorbar.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scattercarpet.marker.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_dtickrange.py index bcdb24c318e..1019f6e9700 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="scattercarpet.marker.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - items=kwargs.pop( - "items", - [ - {"editType": "colorbars", "valType": "any"}, - {"editType": "colorbars", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='scattercarpet.marker.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + items=kwargs.pop('items', [{'editType': 'colorbars', 'valType': 'any'}, {'editType': 'colorbars', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_enabled.py index 09d124c1b2e..e047cc79fe7 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="scattercarpet.marker.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='scattercarpet.marker.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_name.py index 63a065256f2..82c5f80fd51 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="scattercarpet.marker.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='scattercarpet.marker.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_templateitemname.py index 3d1a1841b05..ae0aafbdc6c 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="scattercarpet.marker.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='scattercarpet.marker.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_value.py index 82f8fda17a5..a36fc5e1c5d 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="scattercarpet.marker.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='scattercarpet.marker.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/_font.py index f0906bbfb27..fe1cbf3a77a 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/_font.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="font", - parent_name="scattercarpet.marker.colorbar.title", - **kwargs, - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scattercarpet.marker.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/_side.py index 49917508dbc..774a715e391 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/_side.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="side", - parent_name="scattercarpet.marker.colorbar.title", - **kwargs, - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='scattercarpet.marker.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/_text.py index d5b74f2fad2..6f0ef9faf93 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/_text.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="text", - parent_name="scattercarpet.marker.colorbar.title", - **kwargs, - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scattercarpet.marker.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_color.py index a7e6569fb56..1004ec89128 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scattercarpet.marker.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattercarpet.marker.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_family.py index 46dd394b7de..4b1c5704537 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scattercarpet.marker.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattercarpet.marker.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_lineposition.py index 8b04ada8787..4323291e630 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scattercarpet.marker.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scattercarpet.marker.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_shadow.py index 7da9153fb37..3e871c4e31a 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scattercarpet.marker.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scattercarpet.marker.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_size.py index 8237d52eca1..b9017a78a08 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scattercarpet.marker.colorbar.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattercarpet.marker.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_style.py index 512db0b9330..2b1b0d5a976 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scattercarpet.marker.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattercarpet.marker.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_textcase.py index 4f47cdf47f5..d6da47aba72 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scattercarpet.marker.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scattercarpet.marker.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_variant.py index c552cc61721..795e927ab5d 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scattercarpet.marker.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scattercarpet.marker.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_weight.py index 8f4cc32565e..809098ebeb0 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scattercarpet.marker.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scattercarpet.marker.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/gradient/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/gradient/__init__.py index 624a280ea46..f3927efb3e0 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/gradient/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/gradient/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._typesrc import TypesrcValidator from ._type import TypeValidator @@ -8,14 +7,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._typesrc.TypesrcValidator", - "._type.TypeValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._typesrc.TypesrcValidator', '._type.TypeValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/gradient/_color.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/gradient/_color.py index 44dfe26a2fd..30a98443473 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/gradient/_color.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/gradient/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattercarpet.marker.gradient", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattercarpet.marker.gradient', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/gradient/_colorsrc.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/gradient/_colorsrc.py index 96465db7919..906d356622e 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/gradient/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/gradient/_colorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="colorsrc", - parent_name="scattercarpet.marker.gradient", - **kwargs, - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scattercarpet.marker.gradient', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/gradient/_type.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/gradient/_type.py index 43d6a2f59fc..df7a0a21e2f 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/gradient/_type.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/gradient/_type.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="type", parent_name="scattercarpet.marker.gradient", **kwargs - ): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["radial", "horizontal", "vertical", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='scattercarpet.marker.gradient', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['radial', 'horizontal', 'vertical', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/gradient/_typesrc.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/gradient/_typesrc.py index 6e33fa6383b..ec59ef36227 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/gradient/_typesrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/gradient/_typesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TypesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="typesrc", - parent_name="scattercarpet.marker.gradient", - **kwargs, - ): - super(TypesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TypesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='typesrc', + parent_name='scattercarpet.marker.gradient', + **kwargs): + super(TypesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/line/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/line/__init__.py index facbe33f884..55d423b11da 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._widthsrc import WidthsrcValidator from ._width import WidthValidator @@ -16,22 +15,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._widthsrc.WidthsrcValidator", - "._width.WidthValidator", - "._reversescale.ReversescaleValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._widthsrc.WidthsrcValidator', '._width.WidthValidator', '._reversescale.ReversescaleValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_autocolorscale.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_autocolorscale.py index 003b42a4787..1ee81d43340 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_autocolorscale.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="autocolorscale", - parent_name="scattercarpet.marker.line", - **kwargs, - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='scattercarpet.marker.line', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_cauto.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_cauto.py index 1792950d168..8709fd4cc31 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_cauto.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_cauto.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="cauto", parent_name="scattercarpet.marker.line", **kwargs - ): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='scattercarpet.marker.line', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_cmax.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_cmax.py index b2419e987dc..05f8811131a 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_cmax.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_cmax.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmax", parent_name="scattercarpet.marker.line", **kwargs - ): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='scattercarpet.marker.line', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_cmid.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_cmid.py index d755b2accd4..78b8ae073ac 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_cmid.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_cmid.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmid", parent_name="scattercarpet.marker.line", **kwargs - ): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='scattercarpet.marker.line', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_cmin.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_cmin.py index ea7443b0d23..5851360c640 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_cmin.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_cmin.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmin", parent_name="scattercarpet.marker.line", **kwargs - ): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='scattercarpet.marker.line', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_color.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_color.py index aa83de730b2..37403bc46b1 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_color.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_color.py @@ -1,17 +1,15 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattercarpet.marker.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - colorscale_path=kwargs.pop( - "colorscale_path", "scattercarpet.marker.line.colorscale" - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattercarpet.marker.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + colorscale_path=kwargs.pop('colorscale_path', 'scattercarpet.marker.line.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_coloraxis.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_coloraxis.py index 9e081a9a232..96ef79ab91d 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_coloraxis.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name="coloraxis", parent_name="scattercarpet.marker.line", **kwargs - ): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='scattercarpet.marker.line', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_colorscale.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_colorscale.py index 651b0a448d7..d24a3bfb20c 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_colorscale.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_colorscale.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, - plotly_name="colorscale", - parent_name="scattercarpet.marker.line", - **kwargs, - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='scattercarpet.marker.line', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_colorsrc.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_colorsrc.py index 205692ff6cb..f2037dff967 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scattercarpet.marker.line", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scattercarpet.marker.line', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_reversescale.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_reversescale.py index 8adeea76794..50bca5aa9ba 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_reversescale.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_reversescale.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="reversescale", - parent_name="scattercarpet.marker.line", - **kwargs, - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='scattercarpet.marker.line', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_width.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_width.py index 16add7fbe9a..40970705496 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_width.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_width.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="scattercarpet.marker.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='scattercarpet.marker.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_widthsrc.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_widthsrc.py index 9127cf566f6..2ff5fbbb278 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_widthsrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/line/_widthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="widthsrc", parent_name="scattercarpet.marker.line", **kwargs - ): - super(WidthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='widthsrc', + parent_name='scattercarpet.marker.line', + **kwargs): + super(WidthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/selected/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/selected/__init__.py index 3b0aeed383f..c0a73fd7df3 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/selected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._textfont import TextfontValidator from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] + __name__, + [], + ['._textfont.TextfontValidator', '._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattercarpet/selected/_marker.py b/packages/python/plotly/plotly/validators/scattercarpet/selected/_marker.py index 4ccd864da68..5eb32d32c0b 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/selected/_marker.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/selected/_marker.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="scattercarpet.selected", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. - size - Sets the marker size of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scattercarpet.selected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/selected/_textfont.py b/packages/python/plotly/plotly/validators/scattercarpet/selected/_textfont.py index 512f1181c88..db81d64edf1 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/selected/_textfont.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/selected/_textfont.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="textfont", parent_name="scattercarpet.selected", **kwargs - ): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the text font color of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='scattercarpet.selected', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/selected/marker/__init__.py index 8c321a38bc5..b7768f024e8 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/selected/marker/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._size import SizeValidator from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._size.SizeValidator", - "._opacity.OpacityValidator", - "._color.ColorValidator", - ], + ['._size.SizeValidator', '._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattercarpet/selected/marker/_color.py b/packages/python/plotly/plotly/validators/scattercarpet/selected/marker/_color.py index af81930c0e0..59a4e20735b 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/selected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/selected/marker/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattercarpet.selected.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattercarpet.selected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/selected/marker/_opacity.py b/packages/python/plotly/plotly/validators/scattercarpet/selected/marker/_opacity.py index f6584e6cab7..f8913b2f8c6 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/selected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/selected/marker/_opacity.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="opacity", - parent_name="scattercarpet.selected.marker", - **kwargs, - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scattercarpet.selected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/selected/marker/_size.py b/packages/python/plotly/plotly/validators/scattercarpet/selected/marker/_size.py index e6745d42a05..2643500ca29 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/selected/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/selected/marker/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scattercarpet.selected.marker", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattercarpet.selected.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/selected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/selected/textfont/__init__.py index a9f087e5af1..86899e5cc51 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/selected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/selected/textfont/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._color.ColorValidator"] + __name__, + [], + ['._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattercarpet/selected/textfont/_color.py b/packages/python/plotly/plotly/validators/scattercarpet/selected/textfont/_color.py index fa97b353611..870e0cb04d0 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/selected/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/selected/textfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scattercarpet.selected.textfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattercarpet.selected.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/stream/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattercarpet/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/scattercarpet/stream/_maxpoints.py index bb86d461121..ee7880630f4 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/stream/_maxpoints.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxpoints", parent_name="scattercarpet.stream", **kwargs - ): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='scattercarpet.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/stream/_token.py b/packages/python/plotly/plotly/validators/scattercarpet/stream/_token.py index 4f70acb4062..a69e4660d2b 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/stream/_token.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/stream/_token.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="token", parent_name="scattercarpet.stream", **kwargs - ): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='scattercarpet.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/textfont/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/textfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/textfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_color.py b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_color.py index 3758b5c9a21..8c526eacdc3 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattercarpet.textfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattercarpet.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_colorsrc.py b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_colorsrc.py index 185d6d538d2..cba4cb8cf4a 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scattercarpet.textfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scattercarpet.textfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_family.py b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_family.py index 42020c181ae..79a96639972 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_family.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="scattercarpet.textfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattercarpet.textfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_familysrc.py b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_familysrc.py index 9570b6f2288..4d5d12de292 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="scattercarpet.textfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='scattercarpet.textfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_lineposition.py b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_lineposition.py index cc21e7cf703..4d9e1e8f2a7 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="scattercarpet.textfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scattercarpet.textfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_linepositionsrc.py index 3575b8c7f54..f91600507d8 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="scattercarpet.textfont", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='scattercarpet.textfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_shadow.py b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_shadow.py index 610a87df60d..a60d905282c 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="scattercarpet.textfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scattercarpet.textfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_shadowsrc.py index 5f75f614638..e34b27c4d2a 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="scattercarpet.textfont", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='scattercarpet.textfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_size.py b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_size.py index 0d843093a57..ac9ff2460e1 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_size.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scattercarpet.textfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattercarpet.textfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_sizesrc.py b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_sizesrc.py index 4f2edf3fb33..896d746f0d3 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="scattercarpet.textfont", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scattercarpet.textfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_style.py b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_style.py index e35f2dba16e..2ce1f287ad6 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_style.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="scattercarpet.textfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattercarpet.textfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_stylesrc.py b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_stylesrc.py index ace15207759..083a47b597e 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="scattercarpet.textfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='scattercarpet.textfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_textcase.py b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_textcase.py index 48d8d15990c..f00d6772605 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="scattercarpet.textfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scattercarpet.textfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_textcasesrc.py index 2c6b1d0e8e6..aa61e216240 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="scattercarpet.textfont", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='scattercarpet.textfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_variant.py b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_variant.py index 87dfcc45f49..02bf8a4bde6 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_variant.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="scattercarpet.textfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scattercarpet.textfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_variantsrc.py b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_variantsrc.py index 5ea2e23288e..e53e04426e8 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="scattercarpet.textfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='scattercarpet.textfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_weight.py b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_weight.py index baf0015ead6..216feb1b0e7 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_weight.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="scattercarpet.textfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scattercarpet.textfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_weightsrc.py b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_weightsrc.py index bedc19e002e..ea485c8e9c8 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/textfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/textfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="scattercarpet.textfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='scattercarpet.textfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/unselected/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/unselected/__init__.py index 3b0aeed383f..c0a73fd7df3 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/unselected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._textfont import TextfontValidator from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] + __name__, + [], + ['._textfont.TextfontValidator', '._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattercarpet/unselected/_marker.py b/packages/python/plotly/plotly/validators/scattercarpet/unselected/_marker.py index d3cb3341863..ef209404056 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/unselected/_marker.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/unselected/_marker.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="scattercarpet.unselected", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - size - Sets the marker size of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scattercarpet.unselected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/unselected/_textfont.py b/packages/python/plotly/plotly/validators/scattercarpet/unselected/_textfont.py index 6cc481316b2..daa92f3f58c 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/unselected/_textfont.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/unselected/_textfont.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="textfont", parent_name="scattercarpet.unselected", **kwargs - ): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the text font color of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='scattercarpet.unselected', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/unselected/marker/__init__.py index 8c321a38bc5..b7768f024e8 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/unselected/marker/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._size import SizeValidator from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._size.SizeValidator", - "._opacity.OpacityValidator", - "._color.ColorValidator", - ], + ['._size.SizeValidator', '._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattercarpet/unselected/marker/_color.py b/packages/python/plotly/plotly/validators/scattercarpet/unselected/marker/_color.py index 7c4d37b6908..330d99410c0 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/unselected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/unselected/marker/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scattercarpet.unselected.marker", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattercarpet.unselected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/unselected/marker/_opacity.py b/packages/python/plotly/plotly/validators/scattercarpet/unselected/marker/_opacity.py index ac3a5478291..20a8050a3b2 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/unselected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/unselected/marker/_opacity.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="opacity", - parent_name="scattercarpet.unselected.marker", - **kwargs, - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scattercarpet.unselected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/unselected/marker/_size.py b/packages/python/plotly/plotly/validators/scattercarpet/unselected/marker/_size.py index 7cdfb46f464..60a3debce66 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/unselected/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/unselected/marker/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scattercarpet.unselected.marker", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattercarpet.unselected.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattercarpet/unselected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/unselected/textfont/__init__.py index a9f087e5af1..86899e5cc51 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/unselected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/unselected/textfont/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._color.ColorValidator"] + __name__, + [], + ['._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattercarpet/unselected/textfont/_color.py b/packages/python/plotly/plotly/validators/scattercarpet/unselected/textfont/_color.py index 5053e14f1df..0f2adf35f9d 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/unselected/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/unselected/textfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scattercarpet.unselected.textfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattercarpet.unselected.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/__init__.py index fd1f0586a2e..431cee08de4 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._unselected import UnselectedValidator @@ -55,61 +54,10 @@ from ._connectgaps import ConnectgapsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._unselected.UnselectedValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._texttemplatesrc.TexttemplatesrcValidator", - "._texttemplate.TexttemplateValidator", - "._textsrc.TextsrcValidator", - "._textpositionsrc.TextpositionsrcValidator", - "._textposition.TextpositionValidator", - "._textfont.TextfontValidator", - "._text.TextValidator", - "._stream.StreamValidator", - "._showlegend.ShowlegendValidator", - "._selectedpoints.SelectedpointsValidator", - "._selected.SelectedValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._mode.ModeValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._marker.MarkerValidator", - "._lonsrc.LonsrcValidator", - "._lon.LonValidator", - "._locationssrc.LocationssrcValidator", - "._locations.LocationsValidator", - "._locationmode.LocationmodeValidator", - "._line.LineValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._latsrc.LatsrcValidator", - "._lat.LatValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._geojson.GeojsonValidator", - "._geo.GeoValidator", - "._fillcolor.FillcolorValidator", - "._fill.FillValidator", - "._featureidkey.FeatureidkeyValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._connectgaps.ConnectgapsValidator", - ], + ['._visible.VisibleValidator', '._unselected.UnselectedValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._texttemplatesrc.TexttemplatesrcValidator', '._texttemplate.TexttemplateValidator', '._textsrc.TextsrcValidator', '._textpositionsrc.TextpositionsrcValidator', '._textposition.TextpositionValidator', '._textfont.TextfontValidator', '._text.TextValidator', '._stream.StreamValidator', '._showlegend.ShowlegendValidator', '._selectedpoints.SelectedpointsValidator', '._selected.SelectedValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._mode.ModeValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._marker.MarkerValidator', '._lonsrc.LonsrcValidator', '._lon.LonValidator', '._locationssrc.LocationssrcValidator', '._locations.LocationsValidator', '._locationmode.LocationmodeValidator', '._line.LineValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._latsrc.LatsrcValidator', '._lat.LatValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._geojson.GeojsonValidator', '._geo.GeoValidator', '._fillcolor.FillcolorValidator', '._fill.FillValidator', '._featureidkey.FeatureidkeyValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._connectgaps.ConnectgapsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergeo/_connectgaps.py b/packages/python/plotly/plotly/validators/scattergeo/_connectgaps.py index c0e43ad24c5..53ebf7453dc 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_connectgaps.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_connectgaps.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="connectgaps", parent_name="scattergeo", **kwargs): - super(ConnectgapsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ConnectgapsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='connectgaps', + parent_name='scattergeo', + **kwargs): + super(ConnectgapsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_customdata.py b/packages/python/plotly/plotly/validators/scattergeo/_customdata.py index 987668b3b45..41ae57c7d85 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_customdata.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="scattergeo", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='scattergeo', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_customdatasrc.py b/packages/python/plotly/plotly/validators/scattergeo/_customdatasrc.py index 366b856e697..fc582f2a4f8 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="scattergeo", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='scattergeo', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_featureidkey.py b/packages/python/plotly/plotly/validators/scattergeo/_featureidkey.py index 285101b46a0..b91a9dca5b9 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_featureidkey.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_featureidkey.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FeatureidkeyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="featureidkey", parent_name="scattergeo", **kwargs): - super(FeatureidkeyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FeatureidkeyValidator(_bv.StringValidator): + def __init__(self, plotly_name='featureidkey', + parent_name='scattergeo', + **kwargs): + super(FeatureidkeyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_fill.py b/packages/python/plotly/plotly/validators/scattergeo/_fill.py index 477a0d953e4..854add76174 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_fill.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_fill.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class FillValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="fill", parent_name="scattergeo", **kwargs): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["none", "toself"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='fill', + parent_name='scattergeo', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['none', 'toself']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_fillcolor.py b/packages/python/plotly/plotly/validators/scattergeo/_fillcolor.py index a17e6188e00..b1d2375fc56 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_fillcolor.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_fillcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="fillcolor", parent_name="scattergeo", **kwargs): - super(FillcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FillcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fillcolor', + parent_name='scattergeo', + **kwargs): + super(FillcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_geo.py b/packages/python/plotly/plotly/validators/scattergeo/_geo.py index 7dab6184bcc..5a64ad103a9 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_geo.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_geo.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class GeoValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="geo", parent_name="scattergeo", **kwargs): - super(GeoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "geo"), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class GeoValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='geo', + parent_name='scattergeo', + **kwargs): + super(GeoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'geo'), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_geojson.py b/packages/python/plotly/plotly/validators/scattergeo/_geojson.py index b4e9705cd64..a81c5902def 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_geojson.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_geojson.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class GeojsonValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="geojson", parent_name="scattergeo", **kwargs): - super(GeojsonValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class GeojsonValidator(_bv.AnyValidator): + def __init__(self, plotly_name='geojson', + parent_name='scattergeo', + **kwargs): + super(GeojsonValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_hoverinfo.py b/packages/python/plotly/plotly/validators/scattergeo/_hoverinfo.py index be74e724e0c..4bb82f2a21f 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="scattergeo", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["lon", "lat", "location", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='scattergeo', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['lon', 'lat', 'location', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/scattergeo/_hoverinfosrc.py index b2d4022c9d9..07126919a0b 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="scattergeo", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='scattergeo', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_hoverlabel.py b/packages/python/plotly/plotly/validators/scattergeo/_hoverlabel.py index baedba345ea..de28f5b3c25 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="scattergeo", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='scattergeo', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_hovertemplate.py b/packages/python/plotly/plotly/validators/scattergeo/_hovertemplate.py index a82de196e71..3d19f9e03b1 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_hovertemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="scattergeo", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='scattergeo', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/scattergeo/_hovertemplatesrc.py index 2ce4f12778a..b8370acbeb7 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_hovertemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertemplatesrc", parent_name="scattergeo", **kwargs - ): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='scattergeo', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_hovertext.py b/packages/python/plotly/plotly/validators/scattergeo/_hovertext.py index dd7d14a8048..8cb22b23345 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_hovertext.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="scattergeo", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='scattergeo', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_hovertextsrc.py b/packages/python/plotly/plotly/validators/scattergeo/_hovertextsrc.py index d8714f0bb3a..ee2636f6b93 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="scattergeo", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='scattergeo', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_ids.py b/packages/python/plotly/plotly/validators/scattergeo/_ids.py index fd17b831d65..2c1f7743844 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_ids.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="scattergeo", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='scattergeo', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_idssrc.py b/packages/python/plotly/plotly/validators/scattergeo/_idssrc.py index 01e9b87c26f..ae5446bcdea 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_idssrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="scattergeo", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='scattergeo', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_lat.py b/packages/python/plotly/plotly/validators/scattergeo/_lat.py index 2e1d76e027a..8d88e6b1d6f 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_lat.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_lat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LatValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="lat", parent_name="scattergeo", **kwargs): - super(LatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LatValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='lat', + parent_name='scattergeo', + **kwargs): + super(LatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_latsrc.py b/packages/python/plotly/plotly/validators/scattergeo/_latsrc.py index 8c4203afcd3..0874419ad57 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_latsrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_latsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LatsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="latsrc", parent_name="scattergeo", **kwargs): - super(LatsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LatsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='latsrc', + parent_name='scattergeo', + **kwargs): + super(LatsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_legend.py b/packages/python/plotly/plotly/validators/scattergeo/_legend.py index 797123073a3..2cbb429600e 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_legend.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="scattergeo", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='scattergeo', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_legendgroup.py b/packages/python/plotly/plotly/validators/scattergeo/_legendgroup.py index 6cf7d52220a..618d35ef59e 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="scattergeo", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='scattergeo', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/scattergeo/_legendgrouptitle.py index b106e0b799c..3db1dda2796 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="scattergeo", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='scattergeo', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_legendrank.py b/packages/python/plotly/plotly/validators/scattergeo/_legendrank.py index 9557cb7803e..4cad050e7ff 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_legendrank.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="scattergeo", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='scattergeo', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_legendwidth.py b/packages/python/plotly/plotly/validators/scattergeo/_legendwidth.py index 5c5c4d003ef..660e75f8f6d 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="scattergeo", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='scattergeo', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_line.py b/packages/python/plotly/plotly/validators/scattergeo/_line.py index f820ef78af0..70b01466847 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_line.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_line.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="scattergeo", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the line color. - dash - 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"). - width - Sets the line width (in px). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='scattergeo', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_locationmode.py b/packages/python/plotly/plotly/validators/scattergeo/_locationmode.py index fce0b83675a..99acab4a6d9 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_locationmode.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_locationmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LocationmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="locationmode", parent_name="scattergeo", **kwargs): - super(LocationmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", ["ISO-3", "USA-states", "country names", "geojson-id"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LocationmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='locationmode', + parent_name='scattergeo', + **kwargs): + super(LocationmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['ISO-3', 'USA-states', 'country names', 'geojson-id']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_locations.py b/packages/python/plotly/plotly/validators/scattergeo/_locations.py index 36e7b05eb98..4d19de68084 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_locations.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_locations.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="locations", parent_name="scattergeo", **kwargs): - super(LocationsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LocationsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='locations', + parent_name='scattergeo', + **kwargs): + super(LocationsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_locationssrc.py b/packages/python/plotly/plotly/validators/scattergeo/_locationssrc.py index 95db52e4555..104e2fc461b 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_locationssrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_locationssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="locationssrc", parent_name="scattergeo", **kwargs): - super(LocationssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LocationssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='locationssrc', + parent_name='scattergeo', + **kwargs): + super(LocationssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_lon.py b/packages/python/plotly/plotly/validators/scattergeo/_lon.py index 32472916de8..8d13e9b4541 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_lon.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_lon.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LonValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="lon", parent_name="scattergeo", **kwargs): - super(LonValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LonValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='lon', + parent_name='scattergeo', + **kwargs): + super(LonValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_lonsrc.py b/packages/python/plotly/plotly/validators/scattergeo/_lonsrc.py index c6ac8c54903..51a9276ed36 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_lonsrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_lonsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LonsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="lonsrc", parent_name="scattergeo", **kwargs): - super(LonsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LonsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='lonsrc', + parent_name='scattergeo', + **kwargs): + super(LonsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_marker.py b/packages/python/plotly/plotly/validators/scattergeo/_marker.py index 099726f979d..d22c8ab385e 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_marker.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_marker.py @@ -1,165 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="scattergeo", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - angle - Sets the marker angle in respect to `angleref`. - angleref - Sets the reference for marker angle. With - "previous", angle 0 points along the line from - the previous point to this one. With "up", - angle 0 points toward the top of the screen. - With "north", angle 0 points north based on the - current map projection. - anglesrc - Sets the source reference on Chart Studio Cloud - for `angle`. - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.scattergeo.marker. - ColorBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - gradient - :class:`plotly.graph_objects.scattergeo.marker. - Gradient` instance or dict with compatible - properties - line - :class:`plotly.graph_objects.scattergeo.marker. - Line` instance or dict with compatible - properties - opacity - Sets the marker opacity. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. - size - Sets the marker size (in px). - sizemin - Has an effect only if `marker.size` is set to a - numerical array. Sets the minimum size (in px) - of the rendered marker points. - sizemode - Has an effect only if `marker.size` is set to a - numerical array. Sets the rule for which the - data in `size` is converted to pixels. - sizeref - Has an effect only if `marker.size` is set to a - numerical array. Sets the scale factor used to - determine the rendered size of marker points. - Use with `sizemin` and `sizemode`. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - standoff - Moves the marker away from the data point in - the direction of `angle` (in px). This can be - useful for example if you have another marker - at this location and you want to point an - arrowhead marker at it. - standoffsrc - Sets the source reference on Chart Studio Cloud - for `standoff`. - symbol - Sets the marker symbol type. Adding 100 is - equivalent to appending "-open" to a symbol - name. Adding 200 is equivalent to appending - "-dot" to a symbol name. Adding 300 is - equivalent to appending "-open-dot" or "dot- - open" to a symbol name. - symbolsrc - Sets the source reference on Chart Studio Cloud - for `symbol`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scattergeo', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_meta.py b/packages/python/plotly/plotly/validators/scattergeo/_meta.py index 01d11c35d77..8838b859a2e 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_meta.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="scattergeo", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='scattergeo', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_metasrc.py b/packages/python/plotly/plotly/validators/scattergeo/_metasrc.py index d192d8f267d..4cb3d3194ff 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_metasrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="scattergeo", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='scattergeo', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_mode.py b/packages/python/plotly/plotly/validators/scattergeo/_mode.py index 5a68eb3363c..c30757f3b6a 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_mode.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_mode.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="mode", parent_name="scattergeo", **kwargs): - super(ModeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["lines", "markers", "text"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ModeValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='mode', + parent_name='scattergeo', + **kwargs): + super(ModeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['lines', 'markers', 'text']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_name.py b/packages/python/plotly/plotly/validators/scattergeo/_name.py index 1a0640d841c..3254b343196 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_name.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="scattergeo", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='scattergeo', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_opacity.py b/packages/python/plotly/plotly/validators/scattergeo/_opacity.py index 2b21869bdba..5c965b85910 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_opacity.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="scattergeo", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scattergeo', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_selected.py b/packages/python/plotly/plotly/validators/scattergeo/_selected.py index e29d9657177..4f871da7d8d 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_selected.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_selected.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="selected", parent_name="scattergeo", **kwargs): - super(SelectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Selected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.scattergeo.selecte - d.Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.scattergeo.selecte - d.Textfont` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='selected', + parent_name='scattergeo', + **kwargs): + super(SelectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_selectedpoints.py b/packages/python/plotly/plotly/validators/scattergeo/_selectedpoints.py index e74d6348cd5..1be142c2594 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_selectedpoints.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_selectedpoints.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="selectedpoints", parent_name="scattergeo", **kwargs - ): - super(SelectedpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SelectedpointsValidator(_bv.AnyValidator): + def __init__(self, plotly_name='selectedpoints', + parent_name='scattergeo', + **kwargs): + super(SelectedpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_showlegend.py b/packages/python/plotly/plotly/validators/scattergeo/_showlegend.py index 03f7d799023..a816e0c1b8c 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_showlegend.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="scattergeo", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='scattergeo', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_stream.py b/packages/python/plotly/plotly/validators/scattergeo/_stream.py index 676215c7eda..4a5fcb408eb 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_stream.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="scattergeo", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='scattergeo', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_text.py b/packages/python/plotly/plotly/validators/scattergeo/_text.py index 347d5bd2367..521b6d4ae50 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_text.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="scattergeo", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scattergeo', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_textfont.py b/packages/python/plotly/plotly/validators/scattergeo/_textfont.py index 2a211359b86..28d1333a353 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_textfont.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_textfont.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="textfont", parent_name="scattergeo", **kwargs): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='scattergeo', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_textposition.py b/packages/python/plotly/plotly/validators/scattergeo/_textposition.py index 2658b4e53e2..fda03f2da4a 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_textposition.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_textposition.py @@ -1,26 +1,15 @@ -import _plotly_utils.basevalidators -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="textposition", parent_name="scattergeo", **kwargs): - super(TextpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "top left", - "top center", - "top right", - "middle left", - "middle center", - "middle right", - "bottom left", - "bottom center", - "bottom right", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textposition', + parent_name='scattergeo', + **kwargs): + super(TextpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['top left', 'top center', 'top right', 'middle left', 'middle center', 'middle right', 'bottom left', 'bottom center', 'bottom right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_textpositionsrc.py b/packages/python/plotly/plotly/validators/scattergeo/_textpositionsrc.py index 7404f1c3ef8..4acbb654dae 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_textpositionsrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_textpositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textpositionsrc", parent_name="scattergeo", **kwargs - ): - super(TextpositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextpositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textpositionsrc', + parent_name='scattergeo', + **kwargs): + super(TextpositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_textsrc.py b/packages/python/plotly/plotly/validators/scattergeo/_textsrc.py index 5621e1cd2eb..e8dd77b28e2 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_textsrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="scattergeo", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='scattergeo', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_texttemplate.py b/packages/python/plotly/plotly/validators/scattergeo/_texttemplate.py index e38dbc3de21..1bf58da70a2 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_texttemplate.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_texttemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="texttemplate", parent_name="scattergeo", **kwargs): - super(TexttemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='texttemplate', + parent_name='scattergeo', + **kwargs): + super(TexttemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_texttemplatesrc.py b/packages/python/plotly/plotly/validators/scattergeo/_texttemplatesrc.py index f31311935ab..a617e810f32 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_texttemplatesrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_texttemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="texttemplatesrc", parent_name="scattergeo", **kwargs - ): - super(TexttemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='texttemplatesrc', + parent_name='scattergeo', + **kwargs): + super(TexttemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_uid.py b/packages/python/plotly/plotly/validators/scattergeo/_uid.py index de1ce3fd393..1d5e75378a8 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_uid.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="scattergeo", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='scattergeo', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_uirevision.py b/packages/python/plotly/plotly/validators/scattergeo/_uirevision.py index b96df6e52dd..8fd29b006f2 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_uirevision.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="scattergeo", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='scattergeo', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_unselected.py b/packages/python/plotly/plotly/validators/scattergeo/_unselected.py index 7f50cec248c..ede89f34c56 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_unselected.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_unselected.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="unselected", parent_name="scattergeo", **kwargs): - super(UnselectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Unselected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.scattergeo.unselec - ted.Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.scattergeo.unselec - ted.Textfont` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UnselectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='unselected', + parent_name='scattergeo', + **kwargs): + super(UnselectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/_visible.py b/packages/python/plotly/plotly/validators/scattergeo/_visible.py index d8ab0ebb174..84f22cb312e 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/_visible.py +++ b/packages/python/plotly/plotly/validators/scattergeo/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="scattergeo", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='scattergeo', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_align.py index 1f357e54870..a32ade0772d 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_align.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="align", parent_name="scattergeo.hoverlabel", **kwargs - ): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='scattergeo.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_alignsrc.py index 2efe0fc6dce..d764903e0ab 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="scattergeo.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='scattergeo.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_bgcolor.py index 5fb6f19a4be..8ed54957691 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="scattergeo.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='scattergeo.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_bgcolorsrc.py index 9d3cb4d62e6..a3f740fc3e4 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="scattergeo.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='scattergeo.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_bordercolor.py index f61ad982fb7..40e035e6511 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="scattergeo.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='scattergeo.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_bordercolorsrc.py index 5f52ba12ea8..265d7f2b519 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="bordercolorsrc", - parent_name="scattergeo.hoverlabel", - **kwargs, - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='scattergeo.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_font.py index 17a3a00b5e4..143ba0f304a 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_font.py @@ -1,88 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="scattergeo.hoverlabel", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scattergeo.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_namelength.py index 3568b4bfd81..e28a3d42ccf 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="scattergeo.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='scattergeo.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_namelengthsrc.py index e8ba3850334..e7182c3b0e1 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="scattergeo.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='scattergeo.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_color.py index 865c8a3b523..f9d6dbad954 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattergeo.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattergeo.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_colorsrc.py index 9f4b61ec132..7b10c34b80c 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scattergeo.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scattergeo.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_family.py index dca9574c245..9a3b965e9bc 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="scattergeo.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattergeo.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_familysrc.py index 6432ab515d2..8d8a86059d9 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_familysrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="familysrc", - parent_name="scattergeo.hoverlabel.font", - **kwargs, - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='scattergeo.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_lineposition.py index 08a7544db1d..86880fd0277 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scattergeo.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scattergeo.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_linepositionsrc.py index 893b858bbd6..dd5a31ebb05 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="scattergeo.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='scattergeo.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_shadow.py index 592cfb81281..cd51f4912ce 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="scattergeo.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scattergeo.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_shadowsrc.py index 685bcc5e5ef..c2f206c5731 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="shadowsrc", - parent_name="scattergeo.hoverlabel.font", - **kwargs, - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='scattergeo.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_size.py index 047977a1d7e..065b2fccb85 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scattergeo.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattergeo.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_sizesrc.py index 746b0e923d8..1c6e74ea4b2 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="scattergeo.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scattergeo.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_style.py index fb4bf5589cc..9bb4f455c0d 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="scattergeo.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattergeo.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_stylesrc.py index 30a5242186d..a82e6ac8267 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="scattergeo.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='scattergeo.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_textcase.py index f46dcd091a1..abc8e490e24 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="scattergeo.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scattergeo.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_textcasesrc.py index 5aebd510dd8..6c1a8fc20e2 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="scattergeo.hoverlabel.font", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='scattergeo.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_variant.py index 5d6f287fd0d..7570aa48df6 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="scattergeo.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scattergeo.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_variantsrc.py index 58069c24545..da14d461994 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_variantsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="variantsrc", - parent_name="scattergeo.hoverlabel.font", - **kwargs, - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='scattergeo.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_weight.py index c98e65e0f1f..afafd54d512 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="scattergeo.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scattergeo.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_weightsrc.py index d4b422fe432..d20ceaba6af 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/_weightsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="weightsrc", - parent_name="scattergeo.hoverlabel.font", - **kwargs, - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='scattergeo.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/_font.py index cf5af5ded5a..d284ff58fe3 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="scattergeo.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scattergeo.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/_text.py index 205e8f7f39e..20940baadda 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="scattergeo.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scattergeo.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_color.py index 2a5cacd5937..cd2b52b7827 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scattergeo.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattergeo.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_family.py index 85adebfb28f..4df652db3b6 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scattergeo.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattergeo.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_lineposition.py index bea3dba47c6..1381728a0b7 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scattergeo.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scattergeo.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_shadow.py index 1373d485572..cbb5932a863 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scattergeo.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scattergeo.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_size.py index 30df6561cbe..3ea8c5d2356 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scattergeo.legendgrouptitle.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattergeo.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_style.py index aa64318af25..e7e1266d3fa 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scattergeo.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattergeo.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_textcase.py index 44d71906a5a..86614e5db13 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scattergeo.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scattergeo.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_variant.py index eb15ca13a7e..5802e2c3f99 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scattergeo.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scattergeo.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_weight.py index c5c20d90562..c2f6f92b83d 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scattergeo/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scattergeo.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scattergeo.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/line/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/line/__init__.py index cff41466517..e42e2f2974d 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/line/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._dash import DashValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._width.WidthValidator", "._dash.DashValidator", "._color.ColorValidator"], + ['._width.WidthValidator', '._dash.DashValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergeo/line/_color.py b/packages/python/plotly/plotly/validators/scattergeo/line/_color.py index ef2f6ece505..80277587fcf 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/line/_color.py +++ b/packages/python/plotly/plotly/validators/scattergeo/line/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="scattergeo.line", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattergeo.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/line/_dash.py b/packages/python/plotly/plotly/validators/scattergeo/line/_dash.py index 19e0141147b..4814a7c2cf9 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/line/_dash.py +++ b/packages/python/plotly/plotly/validators/scattergeo/line/_dash.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__(self, plotly_name="dash", parent_name="scattergeo.line", **kwargs): - super(DashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DashValidator(_bv.DashValidator): + def __init__(self, plotly_name='dash', + parent_name='scattergeo.line', + **kwargs): + super(DashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/line/_width.py b/packages/python/plotly/plotly/validators/scattergeo/line/_width.py index 67016792b09..7966f1c04e8 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/line/_width.py +++ b/packages/python/plotly/plotly/validators/scattergeo/line/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="scattergeo.line", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='scattergeo.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/marker/__init__.py index 48545a32a3f..24edd65ed6e 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._symbolsrc import SymbolsrcValidator from ._symbol import SymbolValidator @@ -32,38 +31,10 @@ from ._angle import AngleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._symbolsrc.SymbolsrcValidator", - "._symbol.SymbolValidator", - "._standoffsrc.StandoffsrcValidator", - "._standoff.StandoffValidator", - "._sizesrc.SizesrcValidator", - "._sizeref.SizerefValidator", - "._sizemode.SizemodeValidator", - "._sizemin.SizeminValidator", - "._size.SizeValidator", - "._showscale.ShowscaleValidator", - "._reversescale.ReversescaleValidator", - "._opacitysrc.OpacitysrcValidator", - "._opacity.OpacityValidator", - "._line.LineValidator", - "._gradient.GradientValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - "._anglesrc.AnglesrcValidator", - "._angleref.AnglerefValidator", - "._angle.AngleValidator", - ], + ['._symbolsrc.SymbolsrcValidator', '._symbol.SymbolValidator', '._standoffsrc.StandoffsrcValidator', '._standoff.StandoffValidator', '._sizesrc.SizesrcValidator', '._sizeref.SizerefValidator', '._sizemode.SizemodeValidator', '._sizemin.SizeminValidator', '._size.SizeValidator', '._showscale.ShowscaleValidator', '._reversescale.ReversescaleValidator', '._opacitysrc.OpacitysrcValidator', '._opacity.OpacityValidator', '._line.LineValidator', '._gradient.GradientValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator', '._anglesrc.AnglesrcValidator', '._angleref.AnglerefValidator', '._angle.AngleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/_angle.py b/packages/python/plotly/plotly/validators/scattergeo/marker/_angle.py index 41e354fa563..c37f80ee739 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/_angle.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/_angle.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class AngleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__(self, plotly_name="angle", parent_name="scattergeo.marker", **kwargs): - super(AngleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AngleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='angle', + parent_name='scattergeo.marker', + **kwargs): + super(AngleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/_angleref.py b/packages/python/plotly/plotly/validators/scattergeo/marker/_angleref.py index a92ef988e84..d3c22064ae4 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/_angleref.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/_angleref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AnglerefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="angleref", parent_name="scattergeo.marker", **kwargs - ): - super(AnglerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["previous", "up", "north"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AnglerefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='angleref', + parent_name='scattergeo.marker', + **kwargs): + super(AnglerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['previous', 'up', 'north']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/_anglesrc.py b/packages/python/plotly/plotly/validators/scattergeo/marker/_anglesrc.py index acc8a395e4d..48d79c79554 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/_anglesrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/_anglesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AnglesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="anglesrc", parent_name="scattergeo.marker", **kwargs - ): - super(AnglesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AnglesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='anglesrc', + parent_name='scattergeo.marker', + **kwargs): + super(AnglesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/_autocolorscale.py b/packages/python/plotly/plotly/validators/scattergeo/marker/_autocolorscale.py index 31c823bf233..6441a581338 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="scattergeo.marker", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='scattergeo.marker', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/_cauto.py b/packages/python/plotly/plotly/validators/scattergeo/marker/_cauto.py index 5c0cfa5816f..5f7d3ec7f56 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/_cauto.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/_cauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cauto", parent_name="scattergeo.marker", **kwargs): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='scattergeo.marker', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/_cmax.py b/packages/python/plotly/plotly/validators/scattergeo/marker/_cmax.py index 5c675576386..43d69141dbf 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/_cmax.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/_cmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmax", parent_name="scattergeo.marker", **kwargs): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='scattergeo.marker', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/_cmid.py b/packages/python/plotly/plotly/validators/scattergeo/marker/_cmid.py index 489b30b6c02..5d41136ef20 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/_cmid.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/_cmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmid", parent_name="scattergeo.marker", **kwargs): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='scattergeo.marker', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/_cmin.py b/packages/python/plotly/plotly/validators/scattergeo/marker/_cmin.py index 26153b34e61..bdd08c89243 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/_cmin.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/_cmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmin", parent_name="scattergeo.marker", **kwargs): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='scattergeo.marker', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/_color.py b/packages/python/plotly/plotly/validators/scattergeo/marker/_color.py index 69ff5791084..a1b9e405b77 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/_color.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="scattergeo.marker", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - colorscale_path=kwargs.pop( - "colorscale_path", "scattergeo.marker.colorscale" - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattergeo.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + colorscale_path=kwargs.pop('colorscale_path', 'scattergeo.marker.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/_coloraxis.py b/packages/python/plotly/plotly/validators/scattergeo/marker/_coloraxis.py index cb110116e53..fbd61cd003a 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/_coloraxis.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name="coloraxis", parent_name="scattergeo.marker", **kwargs - ): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='scattergeo.marker', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/_colorbar.py b/packages/python/plotly/plotly/validators/scattergeo/marker/_colorbar.py index 2911383b4ea..86a58e39e40 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/_colorbar.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/_colorbar.py @@ -1,282 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="colorbar", parent_name="scattergeo.marker", **kwargs - ): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.scatter - geo.marker.colorbar.Tickformatstop` instances - or dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.scattergeo.marker.colorbar.tickformatstopdefa - ults), sets the default property values to use - for elements of - scattergeo.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.scattergeo.marker. - colorbar.Title` instance or dict with - compatible properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='scattergeo.marker', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/_colorscale.py b/packages/python/plotly/plotly/validators/scattergeo/marker/_colorscale.py index 349b6f7c313..28d299e6d9d 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/_colorscale.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="scattergeo.marker", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='scattergeo.marker', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/_colorsrc.py b/packages/python/plotly/plotly/validators/scattergeo/marker/_colorsrc.py index 1edf5b8dee2..2fc9b17f5f6 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scattergeo.marker", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scattergeo.marker', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/_gradient.py b/packages/python/plotly/plotly/validators/scattergeo/marker/_gradient.py index 570e6cca8f3..3ac59443680 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/_gradient.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/_gradient.py @@ -1,31 +1,15 @@ -import _plotly_utils.basevalidators -class GradientValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="gradient", parent_name="scattergeo.marker", **kwargs - ): - super(GradientValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Gradient"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the final color of the gradient fill: the - center color for radial, the right for - horizontal, or the bottom for vertical. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - type - Sets the type of gradient used to fill the - markers - typesrc - Sets the source reference on Chart Studio Cloud - for `type`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class GradientValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='gradient', + parent_name='scattergeo.marker', + **kwargs): + super(GradientValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Gradient'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/_line.py b/packages/python/plotly/plotly/validators/scattergeo/marker/_line.py index 5e91543e306..8ff69928cbf 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/_line.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/_line.py @@ -1,105 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="scattergeo.marker", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.line.colorscale`. Has an - effect only if in `marker.line.color` is set to - a numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.line.color`) or the bounds set in - `marker.line.cmin` and `marker.line.cmax` Has - an effect only if in `marker.line.color` is set - to a numerical array. Defaults to `false` when - `marker.line.cmin` and `marker.line.cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.line.cmin` and/or - `marker.line.cmax` to be equidistant to this - point. Has an effect only if in - `marker.line.color` is set to a numerical - array. Value should have the same units as in - `marker.line.color`. Has no effect when - `marker.line.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmax` must be set as well. - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorscale - Sets the colorscale. Has an effect only if in - `marker.line.color` is set to a numerical - array. The colorscale must be an array - containing arrays mapping a normalized value to - an rgb, rgba, hex, hsl, hsv, or named color - string. At minimum, a mapping for the lowest - (0) and highest (1) values are required. For - example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use - `marker.line.cmin` and `marker.line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.line.color` is set to - a numerical array. If true, `marker.line.cmin` - will correspond to the last color in the array - and `marker.line.cmax` will correspond to the - first color. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='scattergeo.marker', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/_opacity.py b/packages/python/plotly/plotly/validators/scattergeo/marker/_opacity.py index 06fe12c54aa..2e124e7e8be 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/_opacity.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="scattergeo.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scattergeo.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/_opacitysrc.py b/packages/python/plotly/plotly/validators/scattergeo/marker/_opacitysrc.py index d497a110235..ca920681658 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/_opacitysrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/_opacitysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="opacitysrc", parent_name="scattergeo.marker", **kwargs - ): - super(OpacitysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacitysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='opacitysrc', + parent_name='scattergeo.marker', + **kwargs): + super(OpacitysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/_reversescale.py b/packages/python/plotly/plotly/validators/scattergeo/marker/_reversescale.py index 6eea92e3b6a..bc141ac5e0d 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/_reversescale.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="scattergeo.marker", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='scattergeo.marker', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/_showscale.py b/packages/python/plotly/plotly/validators/scattergeo/marker/_showscale.py index 744f564e148..0531b6a0c79 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/_showscale.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/_showscale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showscale", parent_name="scattergeo.marker", **kwargs - ): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='scattergeo.marker', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/_size.py b/packages/python/plotly/plotly/validators/scattergeo/marker/_size.py index 11d86d89266..c79f135e408 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="scattergeo.marker", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattergeo.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/_sizemin.py b/packages/python/plotly/plotly/validators/scattergeo/marker/_sizemin.py index 6750f3c3158..d773d267699 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/_sizemin.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/_sizemin.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="sizemin", parent_name="scattergeo.marker", **kwargs - ): - super(SizeminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sizemin', + parent_name='scattergeo.marker', + **kwargs): + super(SizeminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/_sizemode.py b/packages/python/plotly/plotly/validators/scattergeo/marker/_sizemode.py index 55e10e10ac9..3173c70a010 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/_sizemode.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/_sizemode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="sizemode", parent_name="scattergeo.marker", **kwargs - ): - super(SizemodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["diameter", "area"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizemodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='sizemode', + parent_name='scattergeo.marker', + **kwargs): + super(SizemodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['diameter', 'area']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/_sizeref.py b/packages/python/plotly/plotly/validators/scattergeo/marker/_sizeref.py index 9d40a1574c8..74e6a279741 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/_sizeref.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/_sizeref.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="sizeref", parent_name="scattergeo.marker", **kwargs - ): - super(SizerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizerefValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sizeref', + parent_name='scattergeo.marker', + **kwargs): + super(SizerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/_sizesrc.py b/packages/python/plotly/plotly/validators/scattergeo/marker/_sizesrc.py index b1a2f8ae528..d318e094907 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="scattergeo.marker", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scattergeo.marker', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/_standoff.py b/packages/python/plotly/plotly/validators/scattergeo/marker/_standoff.py index 41d5310068a..702bcc21b74 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/_standoff.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/_standoff.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StandoffValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="standoff", parent_name="scattergeo.marker", **kwargs - ): - super(StandoffValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StandoffValidator(_bv.NumberValidator): + def __init__(self, plotly_name='standoff', + parent_name='scattergeo.marker', + **kwargs): + super(StandoffValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/_standoffsrc.py b/packages/python/plotly/plotly/validators/scattergeo/marker/_standoffsrc.py index c9f8a8e3e0e..2ffcea44f12 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/_standoffsrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/_standoffsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StandoffsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="standoffsrc", parent_name="scattergeo.marker", **kwargs - ): - super(StandoffsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StandoffsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='standoffsrc', + parent_name='scattergeo.marker', + **kwargs): + super(StandoffsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/_symbol.py b/packages/python/plotly/plotly/validators/scattergeo/marker/_symbol.py index 39e6e99eb0e..cf86c4ee7f9 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/_symbol.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/_symbol.py @@ -1,503 +1,15 @@ -import _plotly_utils.basevalidators -class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="symbol", parent_name="scattergeo.marker", **kwargs): - super(SymbolValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - 0, - "0", - "circle", - 100, - "100", - "circle-open", - 200, - "200", - "circle-dot", - 300, - "300", - "circle-open-dot", - 1, - "1", - "square", - 101, - "101", - "square-open", - 201, - "201", - "square-dot", - 301, - "301", - "square-open-dot", - 2, - "2", - "diamond", - 102, - "102", - "diamond-open", - 202, - "202", - "diamond-dot", - 302, - "302", - "diamond-open-dot", - 3, - "3", - "cross", - 103, - "103", - "cross-open", - 203, - "203", - "cross-dot", - 303, - "303", - "cross-open-dot", - 4, - "4", - "x", - 104, - "104", - "x-open", - 204, - "204", - "x-dot", - 304, - "304", - "x-open-dot", - 5, - "5", - "triangle-up", - 105, - "105", - "triangle-up-open", - 205, - "205", - "triangle-up-dot", - 305, - "305", - "triangle-up-open-dot", - 6, - "6", - "triangle-down", - 106, - "106", - "triangle-down-open", - 206, - "206", - "triangle-down-dot", - 306, - "306", - "triangle-down-open-dot", - 7, - "7", - "triangle-left", - 107, - "107", - "triangle-left-open", - 207, - "207", - "triangle-left-dot", - 307, - "307", - "triangle-left-open-dot", - 8, - "8", - "triangle-right", - 108, - "108", - "triangle-right-open", - 208, - "208", - "triangle-right-dot", - 308, - "308", - "triangle-right-open-dot", - 9, - "9", - "triangle-ne", - 109, - "109", - "triangle-ne-open", - 209, - "209", - "triangle-ne-dot", - 309, - "309", - "triangle-ne-open-dot", - 10, - "10", - "triangle-se", - 110, - "110", - "triangle-se-open", - 210, - "210", - "triangle-se-dot", - 310, - "310", - "triangle-se-open-dot", - 11, - "11", - "triangle-sw", - 111, - "111", - "triangle-sw-open", - 211, - "211", - "triangle-sw-dot", - 311, - "311", - "triangle-sw-open-dot", - 12, - "12", - "triangle-nw", - 112, - "112", - "triangle-nw-open", - 212, - "212", - "triangle-nw-dot", - 312, - "312", - "triangle-nw-open-dot", - 13, - "13", - "pentagon", - 113, - "113", - "pentagon-open", - 213, - "213", - "pentagon-dot", - 313, - "313", - "pentagon-open-dot", - 14, - "14", - "hexagon", - 114, - "114", - "hexagon-open", - 214, - "214", - "hexagon-dot", - 314, - "314", - "hexagon-open-dot", - 15, - "15", - "hexagon2", - 115, - "115", - "hexagon2-open", - 215, - "215", - "hexagon2-dot", - 315, - "315", - "hexagon2-open-dot", - 16, - "16", - "octagon", - 116, - "116", - "octagon-open", - 216, - "216", - "octagon-dot", - 316, - "316", - "octagon-open-dot", - 17, - "17", - "star", - 117, - "117", - "star-open", - 217, - "217", - "star-dot", - 317, - "317", - "star-open-dot", - 18, - "18", - "hexagram", - 118, - "118", - "hexagram-open", - 218, - "218", - "hexagram-dot", - 318, - "318", - "hexagram-open-dot", - 19, - "19", - "star-triangle-up", - 119, - "119", - "star-triangle-up-open", - 219, - "219", - "star-triangle-up-dot", - 319, - "319", - "star-triangle-up-open-dot", - 20, - "20", - "star-triangle-down", - 120, - "120", - "star-triangle-down-open", - 220, - "220", - "star-triangle-down-dot", - 320, - "320", - "star-triangle-down-open-dot", - 21, - "21", - "star-square", - 121, - "121", - "star-square-open", - 221, - "221", - "star-square-dot", - 321, - "321", - "star-square-open-dot", - 22, - "22", - "star-diamond", - 122, - "122", - "star-diamond-open", - 222, - "222", - "star-diamond-dot", - 322, - "322", - "star-diamond-open-dot", - 23, - "23", - "diamond-tall", - 123, - "123", - "diamond-tall-open", - 223, - "223", - "diamond-tall-dot", - 323, - "323", - "diamond-tall-open-dot", - 24, - "24", - "diamond-wide", - 124, - "124", - "diamond-wide-open", - 224, - "224", - "diamond-wide-dot", - 324, - "324", - "diamond-wide-open-dot", - 25, - "25", - "hourglass", - 125, - "125", - "hourglass-open", - 26, - "26", - "bowtie", - 126, - "126", - "bowtie-open", - 27, - "27", - "circle-cross", - 127, - "127", - "circle-cross-open", - 28, - "28", - "circle-x", - 128, - "128", - "circle-x-open", - 29, - "29", - "square-cross", - 129, - "129", - "square-cross-open", - 30, - "30", - "square-x", - 130, - "130", - "square-x-open", - 31, - "31", - "diamond-cross", - 131, - "131", - "diamond-cross-open", - 32, - "32", - "diamond-x", - 132, - "132", - "diamond-x-open", - 33, - "33", - "cross-thin", - 133, - "133", - "cross-thin-open", - 34, - "34", - "x-thin", - 134, - "134", - "x-thin-open", - 35, - "35", - "asterisk", - 135, - "135", - "asterisk-open", - 36, - "36", - "hash", - 136, - "136", - "hash-open", - 236, - "236", - "hash-dot", - 336, - "336", - "hash-open-dot", - 37, - "37", - "y-up", - 137, - "137", - "y-up-open", - 38, - "38", - "y-down", - 138, - "138", - "y-down-open", - 39, - "39", - "y-left", - 139, - "139", - "y-left-open", - 40, - "40", - "y-right", - 140, - "140", - "y-right-open", - 41, - "41", - "line-ew", - 141, - "141", - "line-ew-open", - 42, - "42", - "line-ns", - 142, - "142", - "line-ns-open", - 43, - "43", - "line-ne", - 143, - "143", - "line-ne-open", - 44, - "44", - "line-nw", - 144, - "144", - "line-nw-open", - 45, - "45", - "arrow-up", - 145, - "145", - "arrow-up-open", - 46, - "46", - "arrow-down", - 146, - "146", - "arrow-down-open", - 47, - "47", - "arrow-left", - 147, - "147", - "arrow-left-open", - 48, - "48", - "arrow-right", - 148, - "148", - "arrow-right-open", - 49, - "49", - "arrow-bar-up", - 149, - "149", - "arrow-bar-up-open", - 50, - "50", - "arrow-bar-down", - 150, - "150", - "arrow-bar-down-open", - 51, - "51", - "arrow-bar-left", - 151, - "151", - "arrow-bar-left-open", - 52, - "52", - "arrow-bar-right", - 152, - "152", - "arrow-bar-right-open", - 53, - "53", - "arrow", - 153, - "153", - "arrow-open", - 54, - "54", - "arrow-wide", - 154, - "154", - "arrow-wide-open", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SymbolValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='symbol', + parent_name='scattergeo.marker', + **kwargs): + super(SymbolValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [0, '0', 'circle', 100, '100', 'circle-open', 200, '200', 'circle-dot', 300, '300', 'circle-open-dot', 1, '1', 'square', 101, '101', 'square-open', 201, '201', 'square-dot', 301, '301', 'square-open-dot', 2, '2', 'diamond', 102, '102', 'diamond-open', 202, '202', 'diamond-dot', 302, '302', 'diamond-open-dot', 3, '3', 'cross', 103, '103', 'cross-open', 203, '203', 'cross-dot', 303, '303', 'cross-open-dot', 4, '4', 'x', 104, '104', 'x-open', 204, '204', 'x-dot', 304, '304', 'x-open-dot', 5, '5', 'triangle-up', 105, '105', 'triangle-up-open', 205, '205', 'triangle-up-dot', 305, '305', 'triangle-up-open-dot', 6, '6', 'triangle-down', 106, '106', 'triangle-down-open', 206, '206', 'triangle-down-dot', 306, '306', 'triangle-down-open-dot', 7, '7', 'triangle-left', 107, '107', 'triangle-left-open', 207, '207', 'triangle-left-dot', 307, '307', 'triangle-left-open-dot', 8, '8', 'triangle-right', 108, '108', 'triangle-right-open', 208, '208', 'triangle-right-dot', 308, '308', 'triangle-right-open-dot', 9, '9', 'triangle-ne', 109, '109', 'triangle-ne-open', 209, '209', 'triangle-ne-dot', 309, '309', 'triangle-ne-open-dot', 10, '10', 'triangle-se', 110, '110', 'triangle-se-open', 210, '210', 'triangle-se-dot', 310, '310', 'triangle-se-open-dot', 11, '11', 'triangle-sw', 111, '111', 'triangle-sw-open', 211, '211', 'triangle-sw-dot', 311, '311', 'triangle-sw-open-dot', 12, '12', 'triangle-nw', 112, '112', 'triangle-nw-open', 212, '212', 'triangle-nw-dot', 312, '312', 'triangle-nw-open-dot', 13, '13', 'pentagon', 113, '113', 'pentagon-open', 213, '213', 'pentagon-dot', 313, '313', 'pentagon-open-dot', 14, '14', 'hexagon', 114, '114', 'hexagon-open', 214, '214', 'hexagon-dot', 314, '314', 'hexagon-open-dot', 15, '15', 'hexagon2', 115, '115', 'hexagon2-open', 215, '215', 'hexagon2-dot', 315, '315', 'hexagon2-open-dot', 16, '16', 'octagon', 116, '116', 'octagon-open', 216, '216', 'octagon-dot', 316, '316', 'octagon-open-dot', 17, '17', 'star', 117, '117', 'star-open', 217, '217', 'star-dot', 317, '317', 'star-open-dot', 18, '18', 'hexagram', 118, '118', 'hexagram-open', 218, '218', 'hexagram-dot', 318, '318', 'hexagram-open-dot', 19, '19', 'star-triangle-up', 119, '119', 'star-triangle-up-open', 219, '219', 'star-triangle-up-dot', 319, '319', 'star-triangle-up-open-dot', 20, '20', 'star-triangle-down', 120, '120', 'star-triangle-down-open', 220, '220', 'star-triangle-down-dot', 320, '320', 'star-triangle-down-open-dot', 21, '21', 'star-square', 121, '121', 'star-square-open', 221, '221', 'star-square-dot', 321, '321', 'star-square-open-dot', 22, '22', 'star-diamond', 122, '122', 'star-diamond-open', 222, '222', 'star-diamond-dot', 322, '322', 'star-diamond-open-dot', 23, '23', 'diamond-tall', 123, '123', 'diamond-tall-open', 223, '223', 'diamond-tall-dot', 323, '323', 'diamond-tall-open-dot', 24, '24', 'diamond-wide', 124, '124', 'diamond-wide-open', 224, '224', 'diamond-wide-dot', 324, '324', 'diamond-wide-open-dot', 25, '25', 'hourglass', 125, '125', 'hourglass-open', 26, '26', 'bowtie', 126, '126', 'bowtie-open', 27, '27', 'circle-cross', 127, '127', 'circle-cross-open', 28, '28', 'circle-x', 128, '128', 'circle-x-open', 29, '29', 'square-cross', 129, '129', 'square-cross-open', 30, '30', 'square-x', 130, '130', 'square-x-open', 31, '31', 'diamond-cross', 131, '131', 'diamond-cross-open', 32, '32', 'diamond-x', 132, '132', 'diamond-x-open', 33, '33', 'cross-thin', 133, '133', 'cross-thin-open', 34, '34', 'x-thin', 134, '134', 'x-thin-open', 35, '35', 'asterisk', 135, '135', 'asterisk-open', 36, '36', 'hash', 136, '136', 'hash-open', 236, '236', 'hash-dot', 336, '336', 'hash-open-dot', 37, '37', 'y-up', 137, '137', 'y-up-open', 38, '38', 'y-down', 138, '138', 'y-down-open', 39, '39', 'y-left', 139, '139', 'y-left-open', 40, '40', 'y-right', 140, '140', 'y-right-open', 41, '41', 'line-ew', 141, '141', 'line-ew-open', 42, '42', 'line-ns', 142, '142', 'line-ns-open', 43, '43', 'line-ne', 143, '143', 'line-ne-open', 44, '44', 'line-nw', 144, '144', 'line-nw-open', 45, '45', 'arrow-up', 145, '145', 'arrow-up-open', 46, '46', 'arrow-down', 146, '146', 'arrow-down-open', 47, '47', 'arrow-left', 147, '147', 'arrow-left-open', 48, '48', 'arrow-right', 148, '148', 'arrow-right-open', 49, '49', 'arrow-bar-up', 149, '149', 'arrow-bar-up-open', 50, '50', 'arrow-bar-down', 150, '150', 'arrow-bar-down-open', 51, '51', 'arrow-bar-left', 151, '151', 'arrow-bar-left-open', 52, '52', 'arrow-bar-right', 152, '152', 'arrow-bar-right-open', 53, '53', 'arrow', 153, '153', 'arrow-open', 54, '54', 'arrow-wide', 154, '154', 'arrow-wide-open']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/_symbolsrc.py b/packages/python/plotly/plotly/validators/scattergeo/marker/_symbolsrc.py index e3c73ef93b3..015d4ab28cb 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/_symbolsrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/_symbolsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="symbolsrc", parent_name="scattergeo.marker", **kwargs - ): - super(SymbolsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SymbolsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='symbolsrc', + parent_name='scattergeo.marker', + **kwargs): + super(SymbolsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_bgcolor.py index 542dab5a15a..635f4607efb 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="scattergeo.marker.colorbar", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_bordercolor.py index f5f5e89df66..4e50552da92 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_bordercolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bordercolor", - parent_name="scattergeo.marker.colorbar", - **kwargs, - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_borderwidth.py index 3ad242f0dd4..b7c0b4390b3 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_borderwidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="borderwidth", - parent_name="scattergeo.marker.colorbar", - **kwargs, - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_dtick.py index 0b815c4e5cf..1d66142f12d 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="scattergeo.marker.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_exponentformat.py index 34ccf9c354f..29d9bbf8436 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_exponentformat.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="exponentformat", - parent_name="scattergeo.marker.colorbar", - **kwargs, - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_labelalias.py index 91c6d0ca448..6b6280eae24 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_labelalias.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="labelalias", - parent_name="scattergeo.marker.colorbar", - **kwargs, - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_len.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_len.py index 510e4ea6c34..9b8d85c54e7 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_len.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="len", parent_name="scattergeo.marker.colorbar", **kwargs - ): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_lenmode.py index becfdef4f47..d42c78347da 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_lenmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="lenmode", parent_name="scattergeo.marker.colorbar", **kwargs - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_minexponent.py index 1a6fab28ea3..7a834daa791 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_minexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="minexponent", - parent_name="scattergeo.marker.colorbar", - **kwargs, - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_nticks.py index 2adc3e3c3af..06e74d568d8 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="scattergeo.marker.colorbar", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_orientation.py index 81d6a01ed37..b16f498c078 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_orientation.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="orientation", - parent_name="scattergeo.marker.colorbar", - **kwargs, - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_outlinecolor.py index 60fbda32505..5f3561dc0c5 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_outlinecolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="outlinecolor", - parent_name="scattergeo.marker.colorbar", - **kwargs, - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_outlinewidth.py index 843bd102cce..7b7affa0d82 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_outlinewidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="outlinewidth", - parent_name="scattergeo.marker.colorbar", - **kwargs, - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_separatethousands.py index 3fb93ddea54..3ecb412c05f 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="scattergeo.marker.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_showexponent.py index 5e26f90e503..ab60f940cb5 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_showexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showexponent", - parent_name="scattergeo.marker.colorbar", - **kwargs, - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_showticklabels.py index 923b5b5dcbb..8874bc3b71c 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="scattergeo.marker.colorbar", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_showtickprefix.py index a608eb4cf85..cd620da5076 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="scattergeo.marker.colorbar", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_showticksuffix.py index 9cc80fbe786..1ade9a3f062 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="scattergeo.marker.colorbar", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_thickness.py index 45162e57116..7c97d2c45bc 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_thickness.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="thickness", - parent_name="scattergeo.marker.colorbar", - **kwargs, - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_thicknessmode.py index 4a388281b54..7389a59ec95 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_thicknessmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="thicknessmode", - parent_name="scattergeo.marker.colorbar", - **kwargs, - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tick0.py index 289a703440f..4aa9f7c84fc 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="scattergeo.marker.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickangle.py index b3d94ae0ce1..3285fd83124 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickangle.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name="tickangle", - parent_name="scattergeo.marker.colorbar", - **kwargs, - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickcolor.py index 3ab9ac35be5..e838ce70b56 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickcolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="tickcolor", - parent_name="scattergeo.marker.colorbar", - **kwargs, - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickfont.py index 0c94c6b4b80..7192c568f3f 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="scattergeo.marker.colorbar", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickformat.py index 0be2aa15b8b..85a3007d726 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickformat.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickformat", - parent_name="scattergeo.marker.colorbar", - **kwargs, - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickformatstopdefaults.py index 9bb452dc6f3..ba4dfbe329a 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="scattergeo.marker.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickformatstops.py index 6743065713d..69b159fdb46 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="scattergeo.marker.colorbar", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticklabeloverflow.py index 34f86220f87..ca013174b8d 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="scattergeo.marker.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticklabelposition.py index 5e17d47df71..1961bfbc38c 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="scattergeo.marker.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticklabelstep.py index 90546541cfc..009eca081cb 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticklabelstep.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="ticklabelstep", - parent_name="scattergeo.marker.colorbar", - **kwargs, - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticklen.py index a4fadf9e42a..a15f2f0c0f2 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="scattergeo.marker.colorbar", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickmode.py index 89714dbfdc5..a38cb77a9d2 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="scattergeo.marker.colorbar", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickprefix.py index f94ac797d59..8700efd87c9 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickprefix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickprefix", - parent_name="scattergeo.marker.colorbar", - **kwargs, - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticks.py index 2738cdbbf99..c16d7bbfeba 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="scattergeo.marker.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticksuffix.py index eea82deeeb6..e6400e6608c 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticksuffix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="ticksuffix", - parent_name="scattergeo.marker.colorbar", - **kwargs, - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticktext.py index 66a7daa9be7..448040d4e01 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="scattergeo.marker.colorbar", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticktextsrc.py index bf142a9902d..aa62ea07942 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ticktextsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="ticktextsrc", - parent_name="scattergeo.marker.colorbar", - **kwargs, - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickvals.py index 8cda6cdca3d..6cd2c982eb8 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="scattergeo.marker.colorbar", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickvalssrc.py index 9e539576cd9..d140fb7ac2a 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickvalssrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="tickvalssrc", - parent_name="scattergeo.marker.colorbar", - **kwargs, - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickwidth.py index c7a9da84573..7a71af1b079 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickwidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="tickwidth", - parent_name="scattergeo.marker.colorbar", - **kwargs, - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_title.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_title.py index c0c8aa79305..e3c2af366f4 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="scattergeo.marker.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_x.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_x.py index 1455eb2ba1b..cf39ca0427d 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_x.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="x", parent_name="scattergeo.marker.colorbar", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_xanchor.py index c307ddc6b74..cc91081c673 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="scattergeo.marker.colorbar", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_xpad.py index a1c35864919..29e1be4c3f0 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_xpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="xpad", parent_name="scattergeo.marker.colorbar", **kwargs - ): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_xref.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_xref.py index 4083c0a82d6..b936272d906 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xref", parent_name="scattergeo.marker.colorbar", **kwargs - ): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_y.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_y.py index 58d8c255ea2..06f26ac8533 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_y.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="y", parent_name="scattergeo.marker.colorbar", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_yanchor.py index f032952444a..c681e5a163a 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="scattergeo.marker.colorbar", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ypad.py index cdb9138895f..27e38594d64 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_ypad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ypad", parent_name="scattergeo.marker.colorbar", **kwargs - ): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_yref.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_yref.py index 9700dda52b7..117f9595f1d 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yref", parent_name="scattergeo.marker.colorbar", **kwargs - ): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='scattergeo.marker.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_color.py index cfbcf0432d6..449845045ff 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scattergeo.marker.colorbar.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattergeo.marker.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_family.py index d117c3be722..03477d6fb58 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scattergeo.marker.colorbar.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattergeo.marker.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_lineposition.py index 096059b8909..00c3c811fb5 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scattergeo.marker.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scattergeo.marker.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_shadow.py index 724f84d1e7a..9cc4894f0fa 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scattergeo.marker.colorbar.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scattergeo.marker.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_size.py index 5038fc69b99..85bbfc2e322 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scattergeo.marker.colorbar.tickfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattergeo.marker.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_style.py index 6249934b3f5..143c84b0180 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scattergeo.marker.colorbar.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattergeo.marker.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_textcase.py index 93ae5498f69..8e893795de3 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scattergeo.marker.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scattergeo.marker.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_variant.py index 61823b398bc..3e7ffdb147c 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scattergeo.marker.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scattergeo.marker.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_weight.py index c7fab9d6ee8..412d5b994b5 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scattergeo.marker.colorbar.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scattergeo.marker.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_dtickrange.py index f8fc7db8a2b..2a80abb814b 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="scattergeo.marker.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "valType": "any"}, - {"editType": "calc", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='scattergeo.marker.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'valType': 'any'}, {'editType': 'calc', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_enabled.py index c28d95d14ab..8d8743b823a 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="scattergeo.marker.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='scattergeo.marker.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_name.py index 2adabbf99e5..fa79ea70cca 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="scattergeo.marker.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='scattergeo.marker.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_templateitemname.py index 6b840af6c73..edc2f75e60d 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="scattergeo.marker.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='scattergeo.marker.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_value.py index f7a9e6442b1..b47a161ec3c 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="scattergeo.marker.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='scattergeo.marker.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/_font.py index 268bc8171b0..b9cfab1bf88 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/_font.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="font", - parent_name="scattergeo.marker.colorbar.title", - **kwargs, - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scattergeo.marker.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/_side.py index eafe0f4b2ee..09ab2eed8b7 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/_side.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="side", - parent_name="scattergeo.marker.colorbar.title", - **kwargs, - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='scattergeo.marker.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/_text.py index cddf13572dd..038c837b78a 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/_text.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="text", - parent_name="scattergeo.marker.colorbar.title", - **kwargs, - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scattergeo.marker.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_color.py index 43d8e2bb288..9de0f173bf2 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scattergeo.marker.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattergeo.marker.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_family.py index 501e4872edd..e4403350557 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scattergeo.marker.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattergeo.marker.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_lineposition.py index 6d69755184d..a8eb2604c78 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scattergeo.marker.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scattergeo.marker.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_shadow.py index 958aad8b8ea..8d11d2b8b78 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scattergeo.marker.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scattergeo.marker.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_size.py index 282efc7c15d..fed6444f8f7 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scattergeo.marker.colorbar.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattergeo.marker.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_style.py index 0649c61012e..9970756cd9c 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scattergeo.marker.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattergeo.marker.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_textcase.py index 5306e1b6b7b..37142ddafcb 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scattergeo.marker.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scattergeo.marker.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_variant.py index a9b5a72a91a..fe6fb76936c 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scattergeo.marker.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scattergeo.marker.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_weight.py index cd304761a9e..a35fc372144 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scattergeo.marker.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scattergeo.marker.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/gradient/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/marker/gradient/__init__.py index 624a280ea46..f3927efb3e0 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/gradient/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/gradient/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._typesrc import TypesrcValidator from ._type import TypeValidator @@ -8,14 +7,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._typesrc.TypesrcValidator", - "._type.TypeValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._typesrc.TypesrcValidator', '._type.TypeValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/gradient/_color.py b/packages/python/plotly/plotly/validators/scattergeo/marker/gradient/_color.py index d3b066ba0da..a2af127ac9a 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/gradient/_color.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/gradient/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattergeo.marker.gradient", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattergeo.marker.gradient', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/gradient/_colorsrc.py b/packages/python/plotly/plotly/validators/scattergeo/marker/gradient/_colorsrc.py index 9aba8d168e2..1ef90985714 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/gradient/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/gradient/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scattergeo.marker.gradient", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scattergeo.marker.gradient', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/gradient/_type.py b/packages/python/plotly/plotly/validators/scattergeo/marker/gradient/_type.py index 949b5d51eda..2b4cba83d3b 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/gradient/_type.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/gradient/_type.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="type", parent_name="scattergeo.marker.gradient", **kwargs - ): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["radial", "horizontal", "vertical", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='scattergeo.marker.gradient', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['radial', 'horizontal', 'vertical', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/gradient/_typesrc.py b/packages/python/plotly/plotly/validators/scattergeo/marker/gradient/_typesrc.py index 0f861dea55b..7f8d602e003 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/gradient/_typesrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/gradient/_typesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TypesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="typesrc", parent_name="scattergeo.marker.gradient", **kwargs - ): - super(TypesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='typesrc', + parent_name='scattergeo.marker.gradient', + **kwargs): + super(TypesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/line/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/marker/line/__init__.py index facbe33f884..55d423b11da 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._widthsrc import WidthsrcValidator from ._width import WidthValidator @@ -16,22 +15,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._widthsrc.WidthsrcValidator", - "._width.WidthValidator", - "._reversescale.ReversescaleValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._widthsrc.WidthsrcValidator', '._width.WidthValidator', '._reversescale.ReversescaleValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/line/_autocolorscale.py b/packages/python/plotly/plotly/validators/scattergeo/marker/line/_autocolorscale.py index 720169fdaa3..d9ecd67b472 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/line/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/line/_autocolorscale.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="autocolorscale", - parent_name="scattergeo.marker.line", - **kwargs, - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='scattergeo.marker.line', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/line/_cauto.py b/packages/python/plotly/plotly/validators/scattergeo/marker/line/_cauto.py index 4721e6126db..340f99746e2 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/line/_cauto.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/line/_cauto.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="cauto", parent_name="scattergeo.marker.line", **kwargs - ): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='scattergeo.marker.line', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/line/_cmax.py b/packages/python/plotly/plotly/validators/scattergeo/marker/line/_cmax.py index 8850ff110c8..af6f1d9a349 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/line/_cmax.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/line/_cmax.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmax", parent_name="scattergeo.marker.line", **kwargs - ): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='scattergeo.marker.line', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/line/_cmid.py b/packages/python/plotly/plotly/validators/scattergeo/marker/line/_cmid.py index 8e8abc502df..e7f6484fb08 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/line/_cmid.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/line/_cmid.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmid", parent_name="scattergeo.marker.line", **kwargs - ): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='scattergeo.marker.line', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/line/_cmin.py b/packages/python/plotly/plotly/validators/scattergeo/marker/line/_cmin.py index 5f101408b3d..8450d2821bb 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/line/_cmin.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/line/_cmin.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmin", parent_name="scattergeo.marker.line", **kwargs - ): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='scattergeo.marker.line', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/line/_color.py b/packages/python/plotly/plotly/validators/scattergeo/marker/line/_color.py index 88432183cc6..a737d5a1461 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/line/_color.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/line/_color.py @@ -1,17 +1,15 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattergeo.marker.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - colorscale_path=kwargs.pop( - "colorscale_path", "scattergeo.marker.line.colorscale" - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattergeo.marker.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + colorscale_path=kwargs.pop('colorscale_path', 'scattergeo.marker.line.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/line/_coloraxis.py b/packages/python/plotly/plotly/validators/scattergeo/marker/line/_coloraxis.py index 970ccb54ebb..2dfef0da83c 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/line/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/line/_coloraxis.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name="coloraxis", parent_name="scattergeo.marker.line", **kwargs - ): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='scattergeo.marker.line', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/line/_colorscale.py b/packages/python/plotly/plotly/validators/scattergeo/marker/line/_colorscale.py index dd35de50932..1d011affe3c 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/line/_colorscale.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/line/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="scattergeo.marker.line", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='scattergeo.marker.line', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/line/_colorsrc.py b/packages/python/plotly/plotly/validators/scattergeo/marker/line/_colorsrc.py index 4938686eb71..5b42d9ec622 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/line/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/line/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scattergeo.marker.line", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scattergeo.marker.line', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/line/_reversescale.py b/packages/python/plotly/plotly/validators/scattergeo/marker/line/_reversescale.py index b03a4173527..5a5bc3eaf42 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/line/_reversescale.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/line/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="scattergeo.marker.line", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='scattergeo.marker.line', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/line/_width.py b/packages/python/plotly/plotly/validators/scattergeo/marker/line/_width.py index bd3b464df36..a9668e4eaea 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/line/_width.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/line/_width.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="scattergeo.marker.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='scattergeo.marker.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/line/_widthsrc.py b/packages/python/plotly/plotly/validators/scattergeo/marker/line/_widthsrc.py index a220ccac4ff..f405dd94b26 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/line/_widthsrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/line/_widthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="widthsrc", parent_name="scattergeo.marker.line", **kwargs - ): - super(WidthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='widthsrc', + parent_name='scattergeo.marker.line', + **kwargs): + super(WidthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/selected/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/selected/__init__.py index 3b0aeed383f..c0a73fd7df3 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/selected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._textfont import TextfontValidator from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] + __name__, + [], + ['._textfont.TextfontValidator', '._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergeo/selected/_marker.py b/packages/python/plotly/plotly/validators/scattergeo/selected/_marker.py index de2a5a84a5f..5fde5883d67 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/selected/_marker.py +++ b/packages/python/plotly/plotly/validators/scattergeo/selected/_marker.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="scattergeo.selected", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. - size - Sets the marker size of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scattergeo.selected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/selected/_textfont.py b/packages/python/plotly/plotly/validators/scattergeo/selected/_textfont.py index 277e71fb0df..b2331abb831 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/selected/_textfont.py +++ b/packages/python/plotly/plotly/validators/scattergeo/selected/_textfont.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="textfont", parent_name="scattergeo.selected", **kwargs - ): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the text font color of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='scattergeo.selected', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/selected/marker/__init__.py index 8c321a38bc5..b7768f024e8 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/selected/marker/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._size import SizeValidator from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._size.SizeValidator", - "._opacity.OpacityValidator", - "._color.ColorValidator", - ], + ['._size.SizeValidator', '._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergeo/selected/marker/_color.py b/packages/python/plotly/plotly/validators/scattergeo/selected/marker/_color.py index 2245425c1fa..56a6998d010 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/selected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scattergeo/selected/marker/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattergeo.selected.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattergeo.selected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/selected/marker/_opacity.py b/packages/python/plotly/plotly/validators/scattergeo/selected/marker/_opacity.py index 9efef74d5bc..63d0d67e59d 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/selected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scattergeo/selected/marker/_opacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="scattergeo.selected.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scattergeo.selected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/selected/marker/_size.py b/packages/python/plotly/plotly/validators/scattergeo/selected/marker/_size.py index 3ff7ba82e97..ae3ceda6c35 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/selected/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scattergeo/selected/marker/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scattergeo.selected.marker", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattergeo.selected.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/selected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/selected/textfont/__init__.py index a9f087e5af1..86899e5cc51 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/selected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/selected/textfont/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._color.ColorValidator"] + __name__, + [], + ['._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergeo/selected/textfont/_color.py b/packages/python/plotly/plotly/validators/scattergeo/selected/textfont/_color.py index c2b99145aaa..5162fcb5efa 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/selected/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/scattergeo/selected/textfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattergeo.selected.textfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattergeo.selected.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/stream/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergeo/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/scattergeo/stream/_maxpoints.py index cf37036b807..962f3db696c 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/scattergeo/stream/_maxpoints.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxpoints", parent_name="scattergeo.stream", **kwargs - ): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='scattergeo.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/stream/_token.py b/packages/python/plotly/plotly/validators/scattergeo/stream/_token.py index 85a7a843dcc..bab09cfca34 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/stream/_token.py +++ b/packages/python/plotly/plotly/validators/scattergeo/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="scattergeo.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='scattergeo.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/textfont/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/textfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/textfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergeo/textfont/_color.py b/packages/python/plotly/plotly/validators/scattergeo/textfont/_color.py index b47cf7354b4..ee5c053b998 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/scattergeo/textfont/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattergeo.textfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattergeo.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/textfont/_colorsrc.py b/packages/python/plotly/plotly/validators/scattergeo/textfont/_colorsrc.py index fc9c27618fb..522706b8f33 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/textfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/textfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scattergeo.textfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scattergeo.textfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/textfont/_family.py b/packages/python/plotly/plotly/validators/scattergeo/textfont/_family.py index f430dcc8ad9..27eba2d0874 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/textfont/_family.py +++ b/packages/python/plotly/plotly/validators/scattergeo/textfont/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="scattergeo.textfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattergeo.textfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/textfont/_familysrc.py b/packages/python/plotly/plotly/validators/scattergeo/textfont/_familysrc.py index 1f69ccf3315..9ad68ef99f8 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/textfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/textfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="scattergeo.textfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='scattergeo.textfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/textfont/_lineposition.py b/packages/python/plotly/plotly/validators/scattergeo/textfont/_lineposition.py index 7c75ee1c30f..a055cfb30c2 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/textfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scattergeo/textfont/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="scattergeo.textfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scattergeo.textfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/textfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/scattergeo/textfont/_linepositionsrc.py index cc64cd4b60f..e1c37ba3481 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/textfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/textfont/_linepositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="linepositionsrc", parent_name="scattergeo.textfont", **kwargs - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='scattergeo.textfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/textfont/_shadow.py b/packages/python/plotly/plotly/validators/scattergeo/textfont/_shadow.py index e965b98a76f..875f2654f4d 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/textfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/scattergeo/textfont/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="scattergeo.textfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scattergeo.textfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/textfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/scattergeo/textfont/_shadowsrc.py index 00b1ff806d5..5a3d4e0c242 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/textfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/textfont/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="scattergeo.textfont", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='scattergeo.textfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/textfont/_size.py b/packages/python/plotly/plotly/validators/scattergeo/textfont/_size.py index ccb0081aec1..26998d0882a 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/textfont/_size.py +++ b/packages/python/plotly/plotly/validators/scattergeo/textfont/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="scattergeo.textfont", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattergeo.textfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/textfont/_sizesrc.py b/packages/python/plotly/plotly/validators/scattergeo/textfont/_sizesrc.py index cacb06256dc..038e467688a 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/textfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/textfont/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="scattergeo.textfont", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scattergeo.textfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/textfont/_style.py b/packages/python/plotly/plotly/validators/scattergeo/textfont/_style.py index 04117efdacd..e888a5b3279 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/textfont/_style.py +++ b/packages/python/plotly/plotly/validators/scattergeo/textfont/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="scattergeo.textfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattergeo.textfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/textfont/_stylesrc.py b/packages/python/plotly/plotly/validators/scattergeo/textfont/_stylesrc.py index 24b12a7af0a..d8c6a141580 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/textfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/textfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="scattergeo.textfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='scattergeo.textfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/textfont/_textcase.py b/packages/python/plotly/plotly/validators/scattergeo/textfont/_textcase.py index b9f3e76797e..6e646898aaf 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/textfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/scattergeo/textfont/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="scattergeo.textfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scattergeo.textfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/textfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/scattergeo/textfont/_textcasesrc.py index 7328a05beb4..1e0d7ad2392 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/textfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/textfont/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="scattergeo.textfont", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='scattergeo.textfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/textfont/_variant.py b/packages/python/plotly/plotly/validators/scattergeo/textfont/_variant.py index 37f80c965e2..aca23c74e93 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/textfont/_variant.py +++ b/packages/python/plotly/plotly/validators/scattergeo/textfont/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="scattergeo.textfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scattergeo.textfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/textfont/_variantsrc.py b/packages/python/plotly/plotly/validators/scattergeo/textfont/_variantsrc.py index a425017c090..db0d735f523 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/textfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/textfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="scattergeo.textfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='scattergeo.textfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/textfont/_weight.py b/packages/python/plotly/plotly/validators/scattergeo/textfont/_weight.py index fb6e0047fea..0cc4ff55059 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/textfont/_weight.py +++ b/packages/python/plotly/plotly/validators/scattergeo/textfont/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="scattergeo.textfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scattergeo.textfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/textfont/_weightsrc.py b/packages/python/plotly/plotly/validators/scattergeo/textfont/_weightsrc.py index bcd8e0c7908..30b9587f71a 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/textfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/scattergeo/textfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="scattergeo.textfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='scattergeo.textfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/unselected/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/unselected/__init__.py index 3b0aeed383f..c0a73fd7df3 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/unselected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._textfont import TextfontValidator from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] + __name__, + [], + ['._textfont.TextfontValidator', '._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergeo/unselected/_marker.py b/packages/python/plotly/plotly/validators/scattergeo/unselected/_marker.py index b233a796ce7..b178430960e 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/unselected/_marker.py +++ b/packages/python/plotly/plotly/validators/scattergeo/unselected/_marker.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="scattergeo.unselected", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - size - Sets the marker size of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scattergeo.unselected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/unselected/_textfont.py b/packages/python/plotly/plotly/validators/scattergeo/unselected/_textfont.py index 77957ee063b..76e34b22c84 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/unselected/_textfont.py +++ b/packages/python/plotly/plotly/validators/scattergeo/unselected/_textfont.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="textfont", parent_name="scattergeo.unselected", **kwargs - ): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the text font color of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='scattergeo.unselected', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/unselected/marker/__init__.py index 8c321a38bc5..b7768f024e8 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/unselected/marker/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._size import SizeValidator from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._size.SizeValidator", - "._opacity.OpacityValidator", - "._color.ColorValidator", - ], + ['._size.SizeValidator', '._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergeo/unselected/marker/_color.py b/packages/python/plotly/plotly/validators/scattergeo/unselected/marker/_color.py index 9ea0805cd4d..66024ded13c 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/unselected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scattergeo/unselected/marker/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattergeo.unselected.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattergeo.unselected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/unselected/marker/_opacity.py b/packages/python/plotly/plotly/validators/scattergeo/unselected/marker/_opacity.py index 19887eb1d2f..eed4563bf21 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/unselected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scattergeo/unselected/marker/_opacity.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="opacity", - parent_name="scattergeo.unselected.marker", - **kwargs, - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scattergeo.unselected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/unselected/marker/_size.py b/packages/python/plotly/plotly/validators/scattergeo/unselected/marker/_size.py index 08f9fa7468b..6ac8f009495 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/unselected/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scattergeo/unselected/marker/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scattergeo.unselected.marker", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattergeo.unselected.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergeo/unselected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/unselected/textfont/__init__.py index a9f087e5af1..86899e5cc51 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/unselected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/unselected/textfont/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._color.ColorValidator"] + __name__, + [], + ['._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergeo/unselected/textfont/_color.py b/packages/python/plotly/plotly/validators/scattergeo/unselected/textfont/_color.py index 9785ddc3c68..95e413b3d31 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/unselected/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/scattergeo/unselected/textfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scattergeo.unselected.textfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattergeo.unselected.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/__init__.py b/packages/python/plotly/plotly/validators/scattergl/__init__.py index 04ea09cc2c9..4b1ee24ca52 100644 --- a/packages/python/plotly/plotly/validators/scattergl/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._ysrc import YsrcValidator from ._yperiodalignment import YperiodalignmentValidator @@ -67,73 +66,10 @@ from ._connectgaps import ConnectgapsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._ysrc.YsrcValidator", - "._yperiodalignment.YperiodalignmentValidator", - "._yperiod0.Yperiod0Validator", - "._yperiod.YperiodValidator", - "._yhoverformat.YhoverformatValidator", - "._ycalendar.YcalendarValidator", - "._yaxis.YaxisValidator", - "._y0.Y0Validator", - "._y.YValidator", - "._xsrc.XsrcValidator", - "._xperiodalignment.XperiodalignmentValidator", - "._xperiod0.Xperiod0Validator", - "._xperiod.XperiodValidator", - "._xhoverformat.XhoverformatValidator", - "._xcalendar.XcalendarValidator", - "._xaxis.XaxisValidator", - "._x0.X0Validator", - "._x.XValidator", - "._visible.VisibleValidator", - "._unselected.UnselectedValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._texttemplatesrc.TexttemplatesrcValidator", - "._texttemplate.TexttemplateValidator", - "._textsrc.TextsrcValidator", - "._textpositionsrc.TextpositionsrcValidator", - "._textposition.TextpositionValidator", - "._textfont.TextfontValidator", - "._text.TextValidator", - "._stream.StreamValidator", - "._showlegend.ShowlegendValidator", - "._selectedpoints.SelectedpointsValidator", - "._selected.SelectedValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._mode.ModeValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._marker.MarkerValidator", - "._line.LineValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._fillcolor.FillcolorValidator", - "._fill.FillValidator", - "._error_y.Error_YValidator", - "._error_x.Error_XValidator", - "._dy.DyValidator", - "._dx.DxValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._connectgaps.ConnectgapsValidator", - ], + ['._ysrc.YsrcValidator', '._yperiodalignment.YperiodalignmentValidator', '._yperiod0.Yperiod0Validator', '._yperiod.YperiodValidator', '._yhoverformat.YhoverformatValidator', '._ycalendar.YcalendarValidator', '._yaxis.YaxisValidator', '._y0.Y0Validator', '._y.YValidator', '._xsrc.XsrcValidator', '._xperiodalignment.XperiodalignmentValidator', '._xperiod0.Xperiod0Validator', '._xperiod.XperiodValidator', '._xhoverformat.XhoverformatValidator', '._xcalendar.XcalendarValidator', '._xaxis.XaxisValidator', '._x0.X0Validator', '._x.XValidator', '._visible.VisibleValidator', '._unselected.UnselectedValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._texttemplatesrc.TexttemplatesrcValidator', '._texttemplate.TexttemplateValidator', '._textsrc.TextsrcValidator', '._textpositionsrc.TextpositionsrcValidator', '._textposition.TextpositionValidator', '._textfont.TextfontValidator', '._text.TextValidator', '._stream.StreamValidator', '._showlegend.ShowlegendValidator', '._selectedpoints.SelectedpointsValidator', '._selected.SelectedValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._mode.ModeValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._marker.MarkerValidator', '._line.LineValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._fillcolor.FillcolorValidator', '._fill.FillValidator', '._error_y.Error_YValidator', '._error_x.Error_XValidator', '._dy.DyValidator', '._dx.DxValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._connectgaps.ConnectgapsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergl/_connectgaps.py b/packages/python/plotly/plotly/validators/scattergl/_connectgaps.py index a70abf6cfc4..99f64b74c18 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_connectgaps.py +++ b/packages/python/plotly/plotly/validators/scattergl/_connectgaps.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="connectgaps", parent_name="scattergl", **kwargs): - super(ConnectgapsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ConnectgapsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='connectgaps', + parent_name='scattergl', + **kwargs): + super(ConnectgapsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_customdata.py b/packages/python/plotly/plotly/validators/scattergl/_customdata.py index fbb73ffd140..b4ad5b95325 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_customdata.py +++ b/packages/python/plotly/plotly/validators/scattergl/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="scattergl", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='scattergl', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_customdatasrc.py b/packages/python/plotly/plotly/validators/scattergl/_customdatasrc.py index 6d8dfc82a7f..74ae82a97f5 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="scattergl", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='scattergl', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_dx.py b/packages/python/plotly/plotly/validators/scattergl/_dx.py index 29afcaacac3..1830c8b6d27 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_dx.py +++ b/packages/python/plotly/plotly/validators/scattergl/_dx.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class DxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="dx", parent_name="scattergl", **kwargs): - super(DxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dx', + parent_name='scattergl', + **kwargs): + super(DxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_dy.py b/packages/python/plotly/plotly/validators/scattergl/_dy.py index 5784a0ea374..bb16da0935b 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_dy.py +++ b/packages/python/plotly/plotly/validators/scattergl/_dy.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class DyValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="dy", parent_name="scattergl", **kwargs): - super(DyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DyValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dy', + parent_name='scattergl', + **kwargs): + super(DyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_error_x.py b/packages/python/plotly/plotly/validators/scattergl/_error_x.py index ee8d67b439a..e5c42aece34 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_error_x.py +++ b/packages/python/plotly/plotly/validators/scattergl/_error_x.py @@ -1,73 +1,15 @@ -import _plotly_utils.basevalidators -class Error_XValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="error_x", parent_name="scattergl", **kwargs): - super(Error_XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ErrorX"), - data_docs=kwargs.pop( - "data_docs", - """ - array - Sets the data corresponding the length of each - error bar. Values are plotted relative to the - underlying data. - arrayminus - Sets the data corresponding the length of each - error bar in the bottom (left) direction for - vertical (horizontal) bars Values are plotted - relative to the underlying data. - arrayminussrc - Sets the source reference on Chart Studio Cloud - for `arrayminus`. - arraysrc - Sets the source reference on Chart Studio Cloud - for `array`. - color - Sets the stroke color of the error bars. - copy_ystyle +import _plotly_utils.basevalidators as _bv - symmetric - Determines whether or not the error bars have - the same length in both direction (top/bottom - for vertical bars, left/right for horizontal - bars. - thickness - Sets the thickness (in px) of the error bars. - traceref - tracerefminus - - type - Determines the rule used to generate the error - bars. If *constant`, the bar lengths are of a - constant value. Set this constant in `value`. - If "percent", the bar lengths correspond to a - percentage of underlying data. Set this - percentage in `value`. If "sqrt", the bar - lengths correspond to the square of the - underlying data. If "data", the bar lengths are - set with data set `array`. - value - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars. - valueminus - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars in the bottom - (left) direction for vertical (horizontal) bars - visible - Determines whether or not this set of error - bars is visible. - width - Sets the width (in px) of the cross-bar at both - ends of the error bars. -""", - ), - **kwargs, - ) +class Error_XValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='error_x', + parent_name='scattergl', + **kwargs): + super(Error_XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ErrorX'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_error_y.py b/packages/python/plotly/plotly/validators/scattergl/_error_y.py index d81c7c0ab20..7e439c5ac6c 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_error_y.py +++ b/packages/python/plotly/plotly/validators/scattergl/_error_y.py @@ -1,71 +1,15 @@ -import _plotly_utils.basevalidators -class Error_YValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="error_y", parent_name="scattergl", **kwargs): - super(Error_YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ErrorY"), - data_docs=kwargs.pop( - "data_docs", - """ - array - Sets the data corresponding the length of each - error bar. Values are plotted relative to the - underlying data. - arrayminus - Sets the data corresponding the length of each - error bar in the bottom (left) direction for - vertical (horizontal) bars Values are plotted - relative to the underlying data. - arrayminussrc - Sets the source reference on Chart Studio Cloud - for `arrayminus`. - arraysrc - Sets the source reference on Chart Studio Cloud - for `array`. - color - Sets the stroke color of the error bars. - symmetric - Determines whether or not the error bars have - the same length in both direction (top/bottom - for vertical bars, left/right for horizontal - bars. - thickness - Sets the thickness (in px) of the error bars. - traceref +import _plotly_utils.basevalidators as _bv - tracerefminus - type - Determines the rule used to generate the error - bars. If *constant`, the bar lengths are of a - constant value. Set this constant in `value`. - If "percent", the bar lengths correspond to a - percentage of underlying data. Set this - percentage in `value`. If "sqrt", the bar - lengths correspond to the square of the - underlying data. If "data", the bar lengths are - set with data set `array`. - value - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars. - valueminus - Sets the value of either the percentage (if - `type` is set to "percent") or the constant (if - `type` is set to "constant") corresponding to - the lengths of the error bars in the bottom - (left) direction for vertical (horizontal) bars - visible - Determines whether or not this set of error - bars is visible. - width - Sets the width (in px) of the cross-bar at both - ends of the error bars. -""", - ), - **kwargs, - ) +class Error_YValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='error_y', + parent_name='scattergl', + **kwargs): + super(Error_YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ErrorY'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_fill.py b/packages/python/plotly/plotly/validators/scattergl/_fill.py index 305e579d401..94d1306dd7d 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_fill.py +++ b/packages/python/plotly/plotly/validators/scattergl/_fill.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class FillValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="fill", parent_name="scattergl", **kwargs): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "none", - "tozeroy", - "tozerox", - "tonexty", - "tonextx", - "toself", - "tonext", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='fill', + parent_name='scattergl', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['none', 'tozeroy', 'tozerox', 'tonexty', 'tonextx', 'toself', 'tonext']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_fillcolor.py b/packages/python/plotly/plotly/validators/scattergl/_fillcolor.py index ac061262bd3..ee34d06ed1e 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_fillcolor.py +++ b/packages/python/plotly/plotly/validators/scattergl/_fillcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="fillcolor", parent_name="scattergl", **kwargs): - super(FillcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FillcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fillcolor', + parent_name='scattergl', + **kwargs): + super(FillcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_hoverinfo.py b/packages/python/plotly/plotly/validators/scattergl/_hoverinfo.py index 519542c0ef5..b4d5d9119c0 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/scattergl/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="scattergl", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='scattergl', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/scattergl/_hoverinfosrc.py index f78d07111d7..541be8a36f2 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="scattergl", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='scattergl', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_hoverlabel.py b/packages/python/plotly/plotly/validators/scattergl/_hoverlabel.py index 9da7b0a6221..e5fcb7e68ff 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/scattergl/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="scattergl", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='scattergl', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_hovertemplate.py b/packages/python/plotly/plotly/validators/scattergl/_hovertemplate.py index 2a1385cc67d..ca5a7e9a044 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/scattergl/_hovertemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="scattergl", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='scattergl', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/scattergl/_hovertemplatesrc.py index 23f214e9235..55f063ef444 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/_hovertemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertemplatesrc", parent_name="scattergl", **kwargs - ): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='scattergl', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_hovertext.py b/packages/python/plotly/plotly/validators/scattergl/_hovertext.py index 703273d744c..349b7bea706 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_hovertext.py +++ b/packages/python/plotly/plotly/validators/scattergl/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="scattergl", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='scattergl', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_hovertextsrc.py b/packages/python/plotly/plotly/validators/scattergl/_hovertextsrc.py index c92c51b6ae8..e3b2e4cc300 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="scattergl", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='scattergl', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_ids.py b/packages/python/plotly/plotly/validators/scattergl/_ids.py index 3132909b275..7743e266142 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_ids.py +++ b/packages/python/plotly/plotly/validators/scattergl/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="scattergl", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='scattergl', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_idssrc.py b/packages/python/plotly/plotly/validators/scattergl/_idssrc.py index caf626ab39e..187ffa4ff73 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_idssrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="scattergl", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='scattergl', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_legend.py b/packages/python/plotly/plotly/validators/scattergl/_legend.py index 00470557b81..1de37715fbf 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_legend.py +++ b/packages/python/plotly/plotly/validators/scattergl/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="scattergl", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='scattergl', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_legendgroup.py b/packages/python/plotly/plotly/validators/scattergl/_legendgroup.py index eb5ffe79ff1..181716f19fc 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/scattergl/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="scattergl", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='scattergl', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/scattergl/_legendgrouptitle.py index 2e7e69b864d..f065297b342 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/scattergl/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="scattergl", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='scattergl', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_legendrank.py b/packages/python/plotly/plotly/validators/scattergl/_legendrank.py index f172435d6cc..b043e56435e 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_legendrank.py +++ b/packages/python/plotly/plotly/validators/scattergl/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="scattergl", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='scattergl', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_legendwidth.py b/packages/python/plotly/plotly/validators/scattergl/_legendwidth.py index 013254c07f2..2723caaa8a5 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/scattergl/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="scattergl", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='scattergl', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_line.py b/packages/python/plotly/plotly/validators/scattergl/_line.py index 33679f51fdd..0b58e9ceb54 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_line.py +++ b/packages/python/plotly/plotly/validators/scattergl/_line.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="scattergl", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the line color. - dash - Sets the style of the lines. - shape - Determines the line shape. The values - correspond to step-wise line shapes. - width - Sets the line width (in px). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='scattergl', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_marker.py b/packages/python/plotly/plotly/validators/scattergl/_marker.py index 443a72f88f0..a13e7a70fd0 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_marker.py +++ b/packages/python/plotly/plotly/validators/scattergl/_marker.py @@ -1,145 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="scattergl", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - angle - Sets the marker angle in respect to `angleref`. - anglesrc - Sets the source reference on Chart Studio Cloud - for `angle`. - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.scattergl.marker.C - olorBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - line - :class:`plotly.graph_objects.scattergl.marker.L - ine` instance or dict with compatible - properties - opacity - Sets the marker opacity. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. - size - Sets the marker size (in px). - sizemin - Has an effect only if `marker.size` is set to a - numerical array. Sets the minimum size (in px) - of the rendered marker points. - sizemode - Has an effect only if `marker.size` is set to a - numerical array. Sets the rule for which the - data in `size` is converted to pixels. - sizeref - Has an effect only if `marker.size` is set to a - numerical array. Sets the scale factor used to - determine the rendered size of marker points. - Use with `sizemin` and `sizemode`. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - symbol - Sets the marker symbol type. Adding 100 is - equivalent to appending "-open" to a symbol - name. Adding 200 is equivalent to appending - "-dot" to a symbol name. Adding 300 is - equivalent to appending "-open-dot" or "dot- - open" to a symbol name. - symbolsrc - Sets the source reference on Chart Studio Cloud - for `symbol`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scattergl', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_meta.py b/packages/python/plotly/plotly/validators/scattergl/_meta.py index 78ba55a4fd7..b0113bc48cd 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_meta.py +++ b/packages/python/plotly/plotly/validators/scattergl/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="scattergl", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='scattergl', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_metasrc.py b/packages/python/plotly/plotly/validators/scattergl/_metasrc.py index f249a9e3d67..d15e9d1ec36 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_metasrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="scattergl", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='scattergl', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_mode.py b/packages/python/plotly/plotly/validators/scattergl/_mode.py index d2df1b28b74..b32ff4c42e1 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_mode.py +++ b/packages/python/plotly/plotly/validators/scattergl/_mode.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="mode", parent_name="scattergl", **kwargs): - super(ModeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["lines", "markers", "text"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ModeValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='mode', + parent_name='scattergl', + **kwargs): + super(ModeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['lines', 'markers', 'text']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_name.py b/packages/python/plotly/plotly/validators/scattergl/_name.py index c7616dc1226..1aabc4e08de 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_name.py +++ b/packages/python/plotly/plotly/validators/scattergl/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="scattergl", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='scattergl', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_opacity.py b/packages/python/plotly/plotly/validators/scattergl/_opacity.py index c4e81231edc..98081717d8e 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_opacity.py +++ b/packages/python/plotly/plotly/validators/scattergl/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="scattergl", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scattergl', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_selected.py b/packages/python/plotly/plotly/validators/scattergl/_selected.py index eec415c9fd2..34e3522f055 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_selected.py +++ b/packages/python/plotly/plotly/validators/scattergl/_selected.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="selected", parent_name="scattergl", **kwargs): - super(SelectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Selected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.scattergl.selected - .Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.scattergl.selected - .Textfont` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='selected', + parent_name='scattergl', + **kwargs): + super(SelectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_selectedpoints.py b/packages/python/plotly/plotly/validators/scattergl/_selectedpoints.py index 42cce48d674..213914928de 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_selectedpoints.py +++ b/packages/python/plotly/plotly/validators/scattergl/_selectedpoints.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="selectedpoints", parent_name="scattergl", **kwargs): - super(SelectedpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedpointsValidator(_bv.AnyValidator): + def __init__(self, plotly_name='selectedpoints', + parent_name='scattergl', + **kwargs): + super(SelectedpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_showlegend.py b/packages/python/plotly/plotly/validators/scattergl/_showlegend.py index 279ccc42b4d..0c0cbaa5009 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_showlegend.py +++ b/packages/python/plotly/plotly/validators/scattergl/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="scattergl", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='scattergl', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_stream.py b/packages/python/plotly/plotly/validators/scattergl/_stream.py index 3e970d3dae7..b3a319c55a2 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_stream.py +++ b/packages/python/plotly/plotly/validators/scattergl/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="scattergl", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='scattergl', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_text.py b/packages/python/plotly/plotly/validators/scattergl/_text.py index b0880e0e5e0..bedd9d18c24 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_text.py +++ b/packages/python/plotly/plotly/validators/scattergl/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="scattergl", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scattergl', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_textfont.py b/packages/python/plotly/plotly/validators/scattergl/_textfont.py index f16ddf60737..f0b9c98738f 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_textfont.py +++ b/packages/python/plotly/plotly/validators/scattergl/_textfont.py @@ -1,62 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="textfont", parent_name="scattergl", **kwargs): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='scattergl', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_textposition.py b/packages/python/plotly/plotly/validators/scattergl/_textposition.py index 3869968829a..2ed2cc7c8de 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_textposition.py +++ b/packages/python/plotly/plotly/validators/scattergl/_textposition.py @@ -1,26 +1,15 @@ -import _plotly_utils.basevalidators -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="textposition", parent_name="scattergl", **kwargs): - super(TextpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "top left", - "top center", - "top right", - "middle left", - "middle center", - "middle right", - "bottom left", - "bottom center", - "bottom right", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textposition', + parent_name='scattergl', + **kwargs): + super(TextpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['top left', 'top center', 'top right', 'middle left', 'middle center', 'middle right', 'bottom left', 'bottom center', 'bottom right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_textpositionsrc.py b/packages/python/plotly/plotly/validators/scattergl/_textpositionsrc.py index d3fb417e25d..b7bc707f053 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_textpositionsrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/_textpositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textpositionsrc", parent_name="scattergl", **kwargs - ): - super(TextpositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextpositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textpositionsrc', + parent_name='scattergl', + **kwargs): + super(TextpositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_textsrc.py b/packages/python/plotly/plotly/validators/scattergl/_textsrc.py index e128ac8627e..69c52d711f5 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_textsrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="scattergl", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='scattergl', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_texttemplate.py b/packages/python/plotly/plotly/validators/scattergl/_texttemplate.py index 8b17b18e00a..437f3b9b69d 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_texttemplate.py +++ b/packages/python/plotly/plotly/validators/scattergl/_texttemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="texttemplate", parent_name="scattergl", **kwargs): - super(TexttemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='texttemplate', + parent_name='scattergl', + **kwargs): + super(TexttemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_texttemplatesrc.py b/packages/python/plotly/plotly/validators/scattergl/_texttemplatesrc.py index bf80209e3d5..def782e45c0 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_texttemplatesrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/_texttemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="texttemplatesrc", parent_name="scattergl", **kwargs - ): - super(TexttemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='texttemplatesrc', + parent_name='scattergl', + **kwargs): + super(TexttemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_uid.py b/packages/python/plotly/plotly/validators/scattergl/_uid.py index eaea0e754e3..37bbf1548f2 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_uid.py +++ b/packages/python/plotly/plotly/validators/scattergl/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="scattergl", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='scattergl', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_uirevision.py b/packages/python/plotly/plotly/validators/scattergl/_uirevision.py index 1b3223dc8e1..f128773af48 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_uirevision.py +++ b/packages/python/plotly/plotly/validators/scattergl/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="scattergl", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='scattergl', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_unselected.py b/packages/python/plotly/plotly/validators/scattergl/_unselected.py index 180890de5cd..11fe99385c4 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_unselected.py +++ b/packages/python/plotly/plotly/validators/scattergl/_unselected.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="unselected", parent_name="scattergl", **kwargs): - super(UnselectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Unselected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.scattergl.unselect - ed.Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.scattergl.unselect - ed.Textfont` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UnselectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='unselected', + parent_name='scattergl', + **kwargs): + super(UnselectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_visible.py b/packages/python/plotly/plotly/validators/scattergl/_visible.py index 061d324b28a..9e946895022 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_visible.py +++ b/packages/python/plotly/plotly/validators/scattergl/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="scattergl", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='scattergl', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_x.py b/packages/python/plotly/plotly/validators/scattergl/_x.py index 687854e2cb7..43190443e1c 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_x.py +++ b/packages/python/plotly/plotly/validators/scattergl/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="x", parent_name="scattergl", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='x', + parent_name='scattergl', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_x0.py b/packages/python/plotly/plotly/validators/scattergl/_x0.py index 315bf685b04..7b9f7e7adda 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_x0.py +++ b/packages/python/plotly/plotly/validators/scattergl/_x0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class X0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="x0", parent_name="scattergl", **kwargs): - super(X0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class X0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='x0', + parent_name='scattergl', + **kwargs): + super(X0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_xaxis.py b/packages/python/plotly/plotly/validators/scattergl/_xaxis.py index 74b3fbdb3e1..4a2af959717 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_xaxis.py +++ b/packages/python/plotly/plotly/validators/scattergl/_xaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="xaxis", parent_name="scattergl", **kwargs): - super(XaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "x"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='xaxis', + parent_name='scattergl', + **kwargs): + super(XaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'x'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_xcalendar.py b/packages/python/plotly/plotly/validators/scattergl/_xcalendar.py index 1f5e1f6f052..c81560e834c 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_xcalendar.py +++ b/packages/python/plotly/plotly/validators/scattergl/_xcalendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xcalendar", parent_name="scattergl", **kwargs): - super(XcalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XcalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xcalendar', + parent_name='scattergl', + **kwargs): + super(XcalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_xhoverformat.py b/packages/python/plotly/plotly/validators/scattergl/_xhoverformat.py index adf35f5cc1b..8d224e6997a 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_xhoverformat.py +++ b/packages/python/plotly/plotly/validators/scattergl/_xhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="xhoverformat", parent_name="scattergl", **kwargs): - super(XhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='xhoverformat', + parent_name='scattergl', + **kwargs): + super(XhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_xperiod.py b/packages/python/plotly/plotly/validators/scattergl/_xperiod.py index 77f6b0cc2ae..f98f363686e 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_xperiod.py +++ b/packages/python/plotly/plotly/validators/scattergl/_xperiod.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XperiodValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="xperiod", parent_name="scattergl", **kwargs): - super(XperiodValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XperiodValidator(_bv.AnyValidator): + def __init__(self, plotly_name='xperiod', + parent_name='scattergl', + **kwargs): + super(XperiodValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_xperiod0.py b/packages/python/plotly/plotly/validators/scattergl/_xperiod0.py index 51fabca429d..86497714f86 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_xperiod0.py +++ b/packages/python/plotly/plotly/validators/scattergl/_xperiod0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Xperiod0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="xperiod0", parent_name="scattergl", **kwargs): - super(Xperiod0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Xperiod0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='xperiod0', + parent_name='scattergl', + **kwargs): + super(Xperiod0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_xperiodalignment.py b/packages/python/plotly/plotly/validators/scattergl/_xperiodalignment.py index 730b3d19cc1..9a2d5a2594c 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_xperiodalignment.py +++ b/packages/python/plotly/plotly/validators/scattergl/_xperiodalignment.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xperiodalignment", parent_name="scattergl", **kwargs - ): - super(XperiodalignmentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["start", "middle", "end"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XperiodalignmentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xperiodalignment', + parent_name='scattergl', + **kwargs): + super(XperiodalignmentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['start', 'middle', 'end']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_xsrc.py b/packages/python/plotly/plotly/validators/scattergl/_xsrc.py index 6e5a2abd2de..a73c5a68ae6 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_xsrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/_xsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="xsrc", parent_name="scattergl", **kwargs): - super(XsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='xsrc', + parent_name='scattergl', + **kwargs): + super(XsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_y.py b/packages/python/plotly/plotly/validators/scattergl/_y.py index 3315fa0e581..9f296e4b01f 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_y.py +++ b/packages/python/plotly/plotly/validators/scattergl/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="y", parent_name="scattergl", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='y', + parent_name='scattergl', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_y0.py b/packages/python/plotly/plotly/validators/scattergl/_y0.py index 7490cc99487..7d7954fa5d4 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_y0.py +++ b/packages/python/plotly/plotly/validators/scattergl/_y0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Y0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="y0", parent_name="scattergl", **kwargs): - super(Y0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Y0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='y0', + parent_name='scattergl', + **kwargs): + super(Y0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_yaxis.py b/packages/python/plotly/plotly/validators/scattergl/_yaxis.py index 8f7eeccc890..8fe0a8057fd 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_yaxis.py +++ b/packages/python/plotly/plotly/validators/scattergl/_yaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="yaxis", parent_name="scattergl", **kwargs): - super(YaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "y"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='yaxis', + parent_name='scattergl', + **kwargs): + super(YaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'y'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_ycalendar.py b/packages/python/plotly/plotly/validators/scattergl/_ycalendar.py index a08121dd1c0..4a6354faf84 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_ycalendar.py +++ b/packages/python/plotly/plotly/validators/scattergl/_ycalendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="ycalendar", parent_name="scattergl", **kwargs): - super(YcalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YcalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ycalendar', + parent_name='scattergl', + **kwargs): + super(YcalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_yhoverformat.py b/packages/python/plotly/plotly/validators/scattergl/_yhoverformat.py index db52c25c4c5..b1098d019d8 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_yhoverformat.py +++ b/packages/python/plotly/plotly/validators/scattergl/_yhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="yhoverformat", parent_name="scattergl", **kwargs): - super(YhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='yhoverformat', + parent_name='scattergl', + **kwargs): + super(YhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_yperiod.py b/packages/python/plotly/plotly/validators/scattergl/_yperiod.py index 47848a1d0c8..fcc2b896cd8 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_yperiod.py +++ b/packages/python/plotly/plotly/validators/scattergl/_yperiod.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YperiodValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="yperiod", parent_name="scattergl", **kwargs): - super(YperiodValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YperiodValidator(_bv.AnyValidator): + def __init__(self, plotly_name='yperiod', + parent_name='scattergl', + **kwargs): + super(YperiodValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_yperiod0.py b/packages/python/plotly/plotly/validators/scattergl/_yperiod0.py index e0922c549fb..7274ae61568 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_yperiod0.py +++ b/packages/python/plotly/plotly/validators/scattergl/_yperiod0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Yperiod0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="yperiod0", parent_name="scattergl", **kwargs): - super(Yperiod0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Yperiod0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='yperiod0', + parent_name='scattergl', + **kwargs): + super(Yperiod0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_yperiodalignment.py b/packages/python/plotly/plotly/validators/scattergl/_yperiodalignment.py index aaceb989993..4282b178ffd 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_yperiodalignment.py +++ b/packages/python/plotly/plotly/validators/scattergl/_yperiodalignment.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yperiodalignment", parent_name="scattergl", **kwargs - ): - super(YperiodalignmentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["start", "middle", "end"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YperiodalignmentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yperiodalignment', + parent_name='scattergl', + **kwargs): + super(YperiodalignmentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['start', 'middle', 'end']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/_ysrc.py b/packages/python/plotly/plotly/validators/scattergl/_ysrc.py index 03941ca1932..a4a5f9d6767 100644 --- a/packages/python/plotly/plotly/validators/scattergl/_ysrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/_ysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="ysrc", parent_name="scattergl", **kwargs): - super(YsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ysrc', + parent_name='scattergl', + **kwargs): + super(YsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/error_x/__init__.py b/packages/python/plotly/plotly/validators/scattergl/error_x/__init__.py index 2e3ce59d75d..4c274e2e1d4 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_x/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_x/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._visible import VisibleValidator @@ -19,25 +18,10 @@ from ._array import ArrayValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._visible.VisibleValidator", - "._valueminus.ValueminusValidator", - "._value.ValueValidator", - "._type.TypeValidator", - "._tracerefminus.TracerefminusValidator", - "._traceref.TracerefValidator", - "._thickness.ThicknessValidator", - "._symmetric.SymmetricValidator", - "._copy_ystyle.Copy_YstyleValidator", - "._color.ColorValidator", - "._arraysrc.ArraysrcValidator", - "._arrayminussrc.ArrayminussrcValidator", - "._arrayminus.ArrayminusValidator", - "._array.ArrayValidator", - ], + ['._width.WidthValidator', '._visible.VisibleValidator', '._valueminus.ValueminusValidator', '._value.ValueValidator', '._type.TypeValidator', '._tracerefminus.TracerefminusValidator', '._traceref.TracerefValidator', '._thickness.ThicknessValidator', '._symmetric.SymmetricValidator', '._copy_ystyle.Copy_YstyleValidator', '._color.ColorValidator', '._arraysrc.ArraysrcValidator', '._arrayminussrc.ArrayminussrcValidator', '._arrayminus.ArrayminusValidator', '._array.ArrayValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergl/error_x/_array.py b/packages/python/plotly/plotly/validators/scattergl/error_x/_array.py index be20aefc100..94f3b341eb6 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_x/_array.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_x/_array.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="array", parent_name="scattergl.error_x", **kwargs): - super(ArrayValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ArrayValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='array', + parent_name='scattergl.error_x', + **kwargs): + super(ArrayValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/error_x/_arrayminus.py b/packages/python/plotly/plotly/validators/scattergl/error_x/_arrayminus.py index b63300b66c8..6ec32d45eb9 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_x/_arrayminus.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_x/_arrayminus.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="arrayminus", parent_name="scattergl.error_x", **kwargs - ): - super(ArrayminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrayminusValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='arrayminus', + parent_name='scattergl.error_x', + **kwargs): + super(ArrayminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/error_x/_arrayminussrc.py b/packages/python/plotly/plotly/validators/scattergl/error_x/_arrayminussrc.py index 4477fe60516..39b44fbf7bc 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_x/_arrayminussrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_x/_arrayminussrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="arrayminussrc", parent_name="scattergl.error_x", **kwargs - ): - super(ArrayminussrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrayminussrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='arrayminussrc', + parent_name='scattergl.error_x', + **kwargs): + super(ArrayminussrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/error_x/_arraysrc.py b/packages/python/plotly/plotly/validators/scattergl/error_x/_arraysrc.py index e2202e80821..f22087dfc41 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_x/_arraysrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_x/_arraysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="arraysrc", parent_name="scattergl.error_x", **kwargs - ): - super(ArraysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArraysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='arraysrc', + parent_name='scattergl.error_x', + **kwargs): + super(ArraysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/error_x/_color.py b/packages/python/plotly/plotly/validators/scattergl/error_x/_color.py index 3132dd3b1fe..9d474183c4b 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_x/_color.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_x/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="scattergl.error_x", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattergl.error_x', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/error_x/_copy_ystyle.py b/packages/python/plotly/plotly/validators/scattergl/error_x/_copy_ystyle.py index 46fe448a128..acf511b5d06 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_x/_copy_ystyle.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_x/_copy_ystyle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class Copy_YstyleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="copy_ystyle", parent_name="scattergl.error_x", **kwargs - ): - super(Copy_YstyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Copy_YstyleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='copy_ystyle', + parent_name='scattergl.error_x', + **kwargs): + super(Copy_YstyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/error_x/_symmetric.py b/packages/python/plotly/plotly/validators/scattergl/error_x/_symmetric.py index e7146ec6ab7..a51bfddff25 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_x/_symmetric.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_x/_symmetric.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="symmetric", parent_name="scattergl.error_x", **kwargs - ): - super(SymmetricValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SymmetricValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='symmetric', + parent_name='scattergl.error_x', + **kwargs): + super(SymmetricValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/error_x/_thickness.py b/packages/python/plotly/plotly/validators/scattergl/error_x/_thickness.py index 4243d737ae7..35465b924ed 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_x/_thickness.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_x/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="scattergl.error_x", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='scattergl.error_x', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/error_x/_traceref.py b/packages/python/plotly/plotly/validators/scattergl/error_x/_traceref.py index 074cda9e27e..33f22207783 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_x/_traceref.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_x/_traceref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="traceref", parent_name="scattergl.error_x", **kwargs - ): - super(TracerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TracerefValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='traceref', + parent_name='scattergl.error_x', + **kwargs): + super(TracerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/error_x/_tracerefminus.py b/packages/python/plotly/plotly/validators/scattergl/error_x/_tracerefminus.py index 2f41195b229..b49cd7d912b 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_x/_tracerefminus.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_x/_tracerefminus.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="tracerefminus", parent_name="scattergl.error_x", **kwargs - ): - super(TracerefminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TracerefminusValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='tracerefminus', + parent_name='scattergl.error_x', + **kwargs): + super(TracerefminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/error_x/_type.py b/packages/python/plotly/plotly/validators/scattergl/error_x/_type.py index 241572ccc81..9106a7f4e7a 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_x/_type.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_x/_type.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="type", parent_name="scattergl.error_x", **kwargs): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='scattergl.error_x', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['percent', 'constant', 'sqrt', 'data']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/error_x/_value.py b/packages/python/plotly/plotly/validators/scattergl/error_x/_value.py index 8c1d3b940ba..039243ac951 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_x/_value.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_x/_value.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ValueValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="value", parent_name="scattergl.error_x", **kwargs): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.NumberValidator): + def __init__(self, plotly_name='value', + parent_name='scattergl.error_x', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/error_x/_valueminus.py b/packages/python/plotly/plotly/validators/scattergl/error_x/_valueminus.py index 16dfe92a582..f6ff0110977 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_x/_valueminus.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_x/_valueminus.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="valueminus", parent_name="scattergl.error_x", **kwargs - ): - super(ValueminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueminusValidator(_bv.NumberValidator): + def __init__(self, plotly_name='valueminus', + parent_name='scattergl.error_x', + **kwargs): + super(ValueminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/error_x/_visible.py b/packages/python/plotly/plotly/validators/scattergl/error_x/_visible.py index 935ac688fd6..d1954a6c8ed 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_x/_visible.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_x/_visible.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="visible", parent_name="scattergl.error_x", **kwargs - ): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='scattergl.error_x', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/error_x/_width.py b/packages/python/plotly/plotly/validators/scattergl/error_x/_width.py index 97947239cd7..9f7c51c8d47 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_x/_width.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_x/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="scattergl.error_x", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='scattergl.error_x', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/error_y/__init__.py b/packages/python/plotly/plotly/validators/scattergl/error_y/__init__.py index eff09cd6a0a..d3e93f5c233 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_y/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_y/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._visible import VisibleValidator @@ -18,24 +17,10 @@ from ._array import ArrayValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._visible.VisibleValidator", - "._valueminus.ValueminusValidator", - "._value.ValueValidator", - "._type.TypeValidator", - "._tracerefminus.TracerefminusValidator", - "._traceref.TracerefValidator", - "._thickness.ThicknessValidator", - "._symmetric.SymmetricValidator", - "._color.ColorValidator", - "._arraysrc.ArraysrcValidator", - "._arrayminussrc.ArrayminussrcValidator", - "._arrayminus.ArrayminusValidator", - "._array.ArrayValidator", - ], + ['._width.WidthValidator', '._visible.VisibleValidator', '._valueminus.ValueminusValidator', '._value.ValueValidator', '._type.TypeValidator', '._tracerefminus.TracerefminusValidator', '._traceref.TracerefValidator', '._thickness.ThicknessValidator', '._symmetric.SymmetricValidator', '._color.ColorValidator', '._arraysrc.ArraysrcValidator', '._arrayminussrc.ArrayminussrcValidator', '._arrayminus.ArrayminusValidator', '._array.ArrayValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergl/error_y/_array.py b/packages/python/plotly/plotly/validators/scattergl/error_y/_array.py index 5c79bf033ba..d80889f8bd6 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_y/_array.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_y/_array.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="array", parent_name="scattergl.error_y", **kwargs): - super(ArrayValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ArrayValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='array', + parent_name='scattergl.error_y', + **kwargs): + super(ArrayValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/error_y/_arrayminus.py b/packages/python/plotly/plotly/validators/scattergl/error_y/_arrayminus.py index 71d06081db9..d443cb8e004 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_y/_arrayminus.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_y/_arrayminus.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="arrayminus", parent_name="scattergl.error_y", **kwargs - ): - super(ArrayminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrayminusValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='arrayminus', + parent_name='scattergl.error_y', + **kwargs): + super(ArrayminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/error_y/_arrayminussrc.py b/packages/python/plotly/plotly/validators/scattergl/error_y/_arrayminussrc.py index 0a6d8ce67bf..f51be18d4a2 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_y/_arrayminussrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_y/_arrayminussrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="arrayminussrc", parent_name="scattergl.error_y", **kwargs - ): - super(ArrayminussrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArrayminussrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='arrayminussrc', + parent_name='scattergl.error_y', + **kwargs): + super(ArrayminussrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/error_y/_arraysrc.py b/packages/python/plotly/plotly/validators/scattergl/error_y/_arraysrc.py index efc0c68feee..2d761e6092e 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_y/_arraysrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_y/_arraysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="arraysrc", parent_name="scattergl.error_y", **kwargs - ): - super(ArraysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ArraysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='arraysrc', + parent_name='scattergl.error_y', + **kwargs): + super(ArraysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/error_y/_color.py b/packages/python/plotly/plotly/validators/scattergl/error_y/_color.py index deb64661a9c..12f606371d5 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_y/_color.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_y/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="scattergl.error_y", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattergl.error_y', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/error_y/_symmetric.py b/packages/python/plotly/plotly/validators/scattergl/error_y/_symmetric.py index bac7d733c29..8a3b3b127d2 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_y/_symmetric.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_y/_symmetric.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="symmetric", parent_name="scattergl.error_y", **kwargs - ): - super(SymmetricValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SymmetricValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='symmetric', + parent_name='scattergl.error_y', + **kwargs): + super(SymmetricValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/error_y/_thickness.py b/packages/python/plotly/plotly/validators/scattergl/error_y/_thickness.py index 839b793bff8..358bd4bb126 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_y/_thickness.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_y/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="scattergl.error_y", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='scattergl.error_y', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/error_y/_traceref.py b/packages/python/plotly/plotly/validators/scattergl/error_y/_traceref.py index 000f2f4d0a2..8dc46330a33 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_y/_traceref.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_y/_traceref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="traceref", parent_name="scattergl.error_y", **kwargs - ): - super(TracerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TracerefValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='traceref', + parent_name='scattergl.error_y', + **kwargs): + super(TracerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/error_y/_tracerefminus.py b/packages/python/plotly/plotly/validators/scattergl/error_y/_tracerefminus.py index 6c3674fdcdb..197967954f7 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_y/_tracerefminus.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_y/_tracerefminus.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="tracerefminus", parent_name="scattergl.error_y", **kwargs - ): - super(TracerefminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TracerefminusValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='tracerefminus', + parent_name='scattergl.error_y', + **kwargs): + super(TracerefminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/error_y/_type.py b/packages/python/plotly/plotly/validators/scattergl/error_y/_type.py index f11b224b310..fbaf354bccb 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_y/_type.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_y/_type.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="type", parent_name="scattergl.error_y", **kwargs): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='scattergl.error_y', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['percent', 'constant', 'sqrt', 'data']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/error_y/_value.py b/packages/python/plotly/plotly/validators/scattergl/error_y/_value.py index 9049da893ca..2b00639b5bf 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_y/_value.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_y/_value.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ValueValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="value", parent_name="scattergl.error_y", **kwargs): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.NumberValidator): + def __init__(self, plotly_name='value', + parent_name='scattergl.error_y', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/error_y/_valueminus.py b/packages/python/plotly/plotly/validators/scattergl/error_y/_valueminus.py index 696dd2e9352..b9d250fdd42 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_y/_valueminus.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_y/_valueminus.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="valueminus", parent_name="scattergl.error_y", **kwargs - ): - super(ValueminusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValueminusValidator(_bv.NumberValidator): + def __init__(self, plotly_name='valueminus', + parent_name='scattergl.error_y', + **kwargs): + super(ValueminusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/error_y/_visible.py b/packages/python/plotly/plotly/validators/scattergl/error_y/_visible.py index 47565215e18..1aba9155c95 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_y/_visible.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_y/_visible.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="visible", parent_name="scattergl.error_y", **kwargs - ): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='scattergl.error_y', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/error_y/_width.py b/packages/python/plotly/plotly/validators/scattergl/error_y/_width.py index a2be97728e5..8cf5f9ac083 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_y/_width.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_y/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="scattergl.error_y", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='scattergl.error_y', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_align.py index 5e353ed7628..c2430df19c4 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_align.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="align", parent_name="scattergl.hoverlabel", **kwargs - ): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='scattergl.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_alignsrc.py index b227a50f19b..dfc83c64a6b 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="scattergl.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='scattergl.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_bgcolor.py index 92a16d525a3..f559174bcc6 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="scattergl.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='scattergl.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_bgcolorsrc.py index b4b2dd872d2..94df59a25ca 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="scattergl.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='scattergl.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_bordercolor.py index cf2f4570606..ddfc07706aa 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="scattergl.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='scattergl.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_bordercolorsrc.py index c3e627140d2..05af0530dab 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bordercolorsrc", parent_name="scattergl.hoverlabel", **kwargs - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='scattergl.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_font.py index 83048b2ab98..77e8077415c 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_font.py @@ -1,88 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="scattergl.hoverlabel", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scattergl.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_namelength.py index 51e5ddef739..1cc43091489 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="scattergl.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='scattergl.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_namelengthsrc.py index 2603013beae..537ee9cc049 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="scattergl.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='scattergl.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_color.py index 9fdecfe4ac8..a70e6f749b1 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattergl.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattergl.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_colorsrc.py index cc44b299d10..d190ed1be06 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scattergl.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scattergl.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_family.py index b7a17b7673c..51a44914b56 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="scattergl.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattergl.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_familysrc.py index 4bd1ceef767..1dcf7ce07b2 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="scattergl.hoverlabel.font", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='scattergl.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_lineposition.py index 5e0fba4fe0f..88e2c76bf01 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scattergl.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scattergl.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_linepositionsrc.py index b370f2026f3..4b9bf17bf4e 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="scattergl.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='scattergl.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_shadow.py index cc27d564411..92c237c5a18 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="scattergl.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scattergl.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_shadowsrc.py index a4de9305034..7dc3e18a911 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="scattergl.hoverlabel.font", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='scattergl.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_size.py index d37b0821d2e..fc721ce8a28 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scattergl.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattergl.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_sizesrc.py index 0139bbf712a..9fc52c28b86 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="scattergl.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scattergl.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_style.py index 9d9b8a5039d..6a98038de14 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="scattergl.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattergl.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_stylesrc.py index a24e9053f67..40b6c59dffd 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="scattergl.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='scattergl.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_textcase.py index bd0c1acf5b7..b899335f4fc 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="scattergl.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scattergl.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_textcasesrc.py index e27ded5952e..f19e2d20265 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="scattergl.hoverlabel.font", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='scattergl.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_variant.py index 556e6681208..f6f07f4f2ab 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="scattergl.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scattergl.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_variantsrc.py index 9a08390ed96..249b4fa552c 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_variantsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="variantsrc", - parent_name="scattergl.hoverlabel.font", - **kwargs, - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='scattergl.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_weight.py index b5d96016dfe..475135d2961 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="scattergl.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scattergl.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_weightsrc.py index 7f361ca6dec..1b9e252aa8b 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="scattergl.hoverlabel.font", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='scattergl.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/_font.py index a8b031d39a5..8a3d00a96b6 100644 --- a/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="scattergl.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scattergl.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/_text.py index 5a10170cd96..821848847f8 100644 --- a/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="scattergl.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scattergl.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_color.py index e3889956524..443962076bc 100644 --- a/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scattergl.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattergl.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_family.py index 3e9c8cd0e17..463651ba6a9 100644 --- a/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scattergl.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattergl.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_lineposition.py index 10b8e17f85e..c3f35bd3738 100644 --- a/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scattergl.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scattergl.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_shadow.py index ebf795d75f8..c939fefe3a0 100644 --- a/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scattergl.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scattergl.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_size.py index b36e19c9b6e..f5dc3abc5b3 100644 --- a/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scattergl.legendgrouptitle.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattergl.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_style.py index 7c8fa72d52f..ccb34c6cd7f 100644 --- a/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scattergl.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattergl.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_textcase.py index 8d4830c4e15..e38778994c3 100644 --- a/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scattergl.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scattergl.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_variant.py index 23d6440924f..f04590734ef 100644 --- a/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scattergl.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scattergl.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_weight.py index 5347feaba09..221e112e190 100644 --- a/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scattergl/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scattergl.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scattergl.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/line/__init__.py b/packages/python/plotly/plotly/validators/scattergl/line/__init__.py index 84b4574bb5e..3383e076a53 100644 --- a/packages/python/plotly/plotly/validators/scattergl/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._shape import ShapeValidator @@ -8,14 +7,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._shape.ShapeValidator", - "._dash.DashValidator", - "._color.ColorValidator", - ], + ['._width.WidthValidator', '._shape.ShapeValidator', '._dash.DashValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergl/line/_color.py b/packages/python/plotly/plotly/validators/scattergl/line/_color.py index d8c0bc2f4b9..76393fca04d 100644 --- a/packages/python/plotly/plotly/validators/scattergl/line/_color.py +++ b/packages/python/plotly/plotly/validators/scattergl/line/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="scattergl.line", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattergl.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/line/_dash.py b/packages/python/plotly/plotly/validators/scattergl/line/_dash.py index 795a071f5cb..9beaddc724b 100644 --- a/packages/python/plotly/plotly/validators/scattergl/line/_dash.py +++ b/packages/python/plotly/plotly/validators/scattergl/line/_dash.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DashValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="dash", parent_name="scattergl.line", **kwargs): - super(DashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", ["dash", "dashdot", "dot", "longdash", "longdashdot", "solid"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DashValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='dash', + parent_name='scattergl.line', + **kwargs): + super(DashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['dash', 'dashdot', 'dot', 'longdash', 'longdashdot', 'solid']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/line/_shape.py b/packages/python/plotly/plotly/validators/scattergl/line/_shape.py index 68faf0784ea..7de2c7d58d5 100644 --- a/packages/python/plotly/plotly/validators/scattergl/line/_shape.py +++ b/packages/python/plotly/plotly/validators/scattergl/line/_shape.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="shape", parent_name="scattergl.line", **kwargs): - super(ShapeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["linear", "hv", "vh", "hvh", "vhv"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShapeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='shape', + parent_name='scattergl.line', + **kwargs): + super(ShapeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['linear', 'hv', 'vh', 'hvh', 'vhv']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/line/_width.py b/packages/python/plotly/plotly/validators/scattergl/line/_width.py index 596fa48118b..899c079545b 100644 --- a/packages/python/plotly/plotly/validators/scattergl/line/_width.py +++ b/packages/python/plotly/plotly/validators/scattergl/line/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="scattergl.line", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='scattergl.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/__init__.py b/packages/python/plotly/plotly/validators/scattergl/marker/__init__.py index dc48879d6be..b939ff13709 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._symbolsrc import SymbolsrcValidator from ._symbol import SymbolValidator @@ -28,34 +27,10 @@ from ._angle import AngleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._symbolsrc.SymbolsrcValidator", - "._symbol.SymbolValidator", - "._sizesrc.SizesrcValidator", - "._sizeref.SizerefValidator", - "._sizemode.SizemodeValidator", - "._sizemin.SizeminValidator", - "._size.SizeValidator", - "._showscale.ShowscaleValidator", - "._reversescale.ReversescaleValidator", - "._opacitysrc.OpacitysrcValidator", - "._opacity.OpacityValidator", - "._line.LineValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - "._anglesrc.AnglesrcValidator", - "._angle.AngleValidator", - ], + ['._symbolsrc.SymbolsrcValidator', '._symbol.SymbolValidator', '._sizesrc.SizesrcValidator', '._sizeref.SizerefValidator', '._sizemode.SizemodeValidator', '._sizemin.SizeminValidator', '._size.SizeValidator', '._showscale.ShowscaleValidator', '._reversescale.ReversescaleValidator', '._opacitysrc.OpacitysrcValidator', '._opacity.OpacityValidator', '._line.LineValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator', '._anglesrc.AnglesrcValidator', '._angle.AngleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/_angle.py b/packages/python/plotly/plotly/validators/scattergl/marker/_angle.py index f8f8be37a3c..7e7621b3a47 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/_angle.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/_angle.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class AngleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__(self, plotly_name="angle", parent_name="scattergl.marker", **kwargs): - super(AngleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AngleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='angle', + parent_name='scattergl.marker', + **kwargs): + super(AngleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/_anglesrc.py b/packages/python/plotly/plotly/validators/scattergl/marker/_anglesrc.py index f5de5f245b0..90305119018 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/_anglesrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/_anglesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AnglesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="anglesrc", parent_name="scattergl.marker", **kwargs - ): - super(AnglesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AnglesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='anglesrc', + parent_name='scattergl.marker', + **kwargs): + super(AnglesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/_autocolorscale.py b/packages/python/plotly/plotly/validators/scattergl/marker/_autocolorscale.py index d6cef03d2cb..d48f06a3931 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="scattergl.marker", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='scattergl.marker', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/_cauto.py b/packages/python/plotly/plotly/validators/scattergl/marker/_cauto.py index 7eac133d5a1..6c60744692e 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/_cauto.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/_cauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cauto", parent_name="scattergl.marker", **kwargs): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='scattergl.marker', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/_cmax.py b/packages/python/plotly/plotly/validators/scattergl/marker/_cmax.py index 8e7cdf28c70..3b71f103254 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/_cmax.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/_cmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmax", parent_name="scattergl.marker", **kwargs): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='scattergl.marker', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/_cmid.py b/packages/python/plotly/plotly/validators/scattergl/marker/_cmid.py index 1bbb08dbaa6..092dd74b35f 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/_cmid.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/_cmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmid", parent_name="scattergl.marker", **kwargs): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='scattergl.marker', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/_cmin.py b/packages/python/plotly/plotly/validators/scattergl/marker/_cmin.py index 55eaee88929..833118584e3 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/_cmin.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/_cmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmin", parent_name="scattergl.marker", **kwargs): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='scattergl.marker', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/_color.py b/packages/python/plotly/plotly/validators/scattergl/marker/_color.py index 4a055355451..0c1d5a36c0a 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/_color.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="scattergl.marker", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - colorscale_path=kwargs.pop( - "colorscale_path", "scattergl.marker.colorscale" - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattergl.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + colorscale_path=kwargs.pop('colorscale_path', 'scattergl.marker.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/_coloraxis.py b/packages/python/plotly/plotly/validators/scattergl/marker/_coloraxis.py index 77a6af97a81..edd967ae511 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/_coloraxis.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name="coloraxis", parent_name="scattergl.marker", **kwargs - ): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='scattergl.marker', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/_colorbar.py b/packages/python/plotly/plotly/validators/scattergl/marker/_colorbar.py index 00e1faab3a2..46cc0ebbb1c 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/_colorbar.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/_colorbar.py @@ -1,282 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="colorbar", parent_name="scattergl.marker", **kwargs - ): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.scatter - gl.marker.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.scattergl.marker.colorbar.tickformatstopdefau - lts), sets the default property values to use - for elements of - scattergl.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.scattergl.marker.c - olorbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='scattergl.marker', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/_colorscale.py b/packages/python/plotly/plotly/validators/scattergl/marker/_colorscale.py index 0ed41b83043..952c76db80c 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/_colorscale.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="scattergl.marker", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='scattergl.marker', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/_colorsrc.py b/packages/python/plotly/plotly/validators/scattergl/marker/_colorsrc.py index 207f192dea1..b3cf3e533cc 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scattergl.marker", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scattergl.marker', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/_line.py b/packages/python/plotly/plotly/validators/scattergl/marker/_line.py index a3e7cee0c40..07af616c081 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/_line.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/_line.py @@ -1,105 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="scattergl.marker", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.line.colorscale`. Has an - effect only if in `marker.line.color` is set to - a numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.line.color`) or the bounds set in - `marker.line.cmin` and `marker.line.cmax` Has - an effect only if in `marker.line.color` is set - to a numerical array. Defaults to `false` when - `marker.line.cmin` and `marker.line.cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.line.cmin` and/or - `marker.line.cmax` to be equidistant to this - point. Has an effect only if in - `marker.line.color` is set to a numerical - array. Value should have the same units as in - `marker.line.color`. Has no effect when - `marker.line.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmax` must be set as well. - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorscale - Sets the colorscale. Has an effect only if in - `marker.line.color` is set to a numerical - array. The colorscale must be an array - containing arrays mapping a normalized value to - an rgb, rgba, hex, hsl, hsv, or named color - string. At minimum, a mapping for the lowest - (0) and highest (1) values are required. For - example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use - `marker.line.cmin` and `marker.line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.line.color` is set to - a numerical array. If true, `marker.line.cmin` - will correspond to the last color in the array - and `marker.line.cmax` will correspond to the - first color. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='scattergl.marker', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/_opacity.py b/packages/python/plotly/plotly/validators/scattergl/marker/_opacity.py index be04ecafdff..74019734211 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/_opacity.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="scattergl.marker", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scattergl.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/_opacitysrc.py b/packages/python/plotly/plotly/validators/scattergl/marker/_opacitysrc.py index 14dc2bff351..875f36ded26 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/_opacitysrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/_opacitysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="opacitysrc", parent_name="scattergl.marker", **kwargs - ): - super(OpacitysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacitysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='opacitysrc', + parent_name='scattergl.marker', + **kwargs): + super(OpacitysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/_reversescale.py b/packages/python/plotly/plotly/validators/scattergl/marker/_reversescale.py index 378b1c16235..050fd808702 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/_reversescale.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="scattergl.marker", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='scattergl.marker', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/_showscale.py b/packages/python/plotly/plotly/validators/scattergl/marker/_showscale.py index ee96926696a..2b2151d77c6 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/_showscale.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/_showscale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showscale", parent_name="scattergl.marker", **kwargs - ): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='scattergl.marker', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/_size.py b/packages/python/plotly/plotly/validators/scattergl/marker/_size.py index fa36c533064..f8cd7b98cb7 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="scattergl.marker", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattergl.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/_sizemin.py b/packages/python/plotly/plotly/validators/scattergl/marker/_sizemin.py index 604a863209d..164a4f8a003 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/_sizemin.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/_sizemin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="sizemin", parent_name="scattergl.marker", **kwargs): - super(SizeminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sizemin', + parent_name='scattergl.marker', + **kwargs): + super(SizeminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/_sizemode.py b/packages/python/plotly/plotly/validators/scattergl/marker/_sizemode.py index 43f8e53b65c..03b312047b6 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/_sizemode.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/_sizemode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="sizemode", parent_name="scattergl.marker", **kwargs - ): - super(SizemodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["diameter", "area"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizemodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='sizemode', + parent_name='scattergl.marker', + **kwargs): + super(SizemodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['diameter', 'area']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/_sizeref.py b/packages/python/plotly/plotly/validators/scattergl/marker/_sizeref.py index 2924d289a0b..1bd55a2be4f 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/_sizeref.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/_sizeref.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="sizeref", parent_name="scattergl.marker", **kwargs): - super(SizerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizerefValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sizeref', + parent_name='scattergl.marker', + **kwargs): + super(SizerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/_sizesrc.py b/packages/python/plotly/plotly/validators/scattergl/marker/_sizesrc.py index 9b9a60aa98f..351bacb3bbe 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/_sizesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="sizesrc", parent_name="scattergl.marker", **kwargs): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scattergl.marker', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/_symbol.py b/packages/python/plotly/plotly/validators/scattergl/marker/_symbol.py index 6051312b15e..a2de62e3d85 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/_symbol.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/_symbol.py @@ -1,503 +1,15 @@ -import _plotly_utils.basevalidators -class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="symbol", parent_name="scattergl.marker", **kwargs): - super(SymbolValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - 0, - "0", - "circle", - 100, - "100", - "circle-open", - 200, - "200", - "circle-dot", - 300, - "300", - "circle-open-dot", - 1, - "1", - "square", - 101, - "101", - "square-open", - 201, - "201", - "square-dot", - 301, - "301", - "square-open-dot", - 2, - "2", - "diamond", - 102, - "102", - "diamond-open", - 202, - "202", - "diamond-dot", - 302, - "302", - "diamond-open-dot", - 3, - "3", - "cross", - 103, - "103", - "cross-open", - 203, - "203", - "cross-dot", - 303, - "303", - "cross-open-dot", - 4, - "4", - "x", - 104, - "104", - "x-open", - 204, - "204", - "x-dot", - 304, - "304", - "x-open-dot", - 5, - "5", - "triangle-up", - 105, - "105", - "triangle-up-open", - 205, - "205", - "triangle-up-dot", - 305, - "305", - "triangle-up-open-dot", - 6, - "6", - "triangle-down", - 106, - "106", - "triangle-down-open", - 206, - "206", - "triangle-down-dot", - 306, - "306", - "triangle-down-open-dot", - 7, - "7", - "triangle-left", - 107, - "107", - "triangle-left-open", - 207, - "207", - "triangle-left-dot", - 307, - "307", - "triangle-left-open-dot", - 8, - "8", - "triangle-right", - 108, - "108", - "triangle-right-open", - 208, - "208", - "triangle-right-dot", - 308, - "308", - "triangle-right-open-dot", - 9, - "9", - "triangle-ne", - 109, - "109", - "triangle-ne-open", - 209, - "209", - "triangle-ne-dot", - 309, - "309", - "triangle-ne-open-dot", - 10, - "10", - "triangle-se", - 110, - "110", - "triangle-se-open", - 210, - "210", - "triangle-se-dot", - 310, - "310", - "triangle-se-open-dot", - 11, - "11", - "triangle-sw", - 111, - "111", - "triangle-sw-open", - 211, - "211", - "triangle-sw-dot", - 311, - "311", - "triangle-sw-open-dot", - 12, - "12", - "triangle-nw", - 112, - "112", - "triangle-nw-open", - 212, - "212", - "triangle-nw-dot", - 312, - "312", - "triangle-nw-open-dot", - 13, - "13", - "pentagon", - 113, - "113", - "pentagon-open", - 213, - "213", - "pentagon-dot", - 313, - "313", - "pentagon-open-dot", - 14, - "14", - "hexagon", - 114, - "114", - "hexagon-open", - 214, - "214", - "hexagon-dot", - 314, - "314", - "hexagon-open-dot", - 15, - "15", - "hexagon2", - 115, - "115", - "hexagon2-open", - 215, - "215", - "hexagon2-dot", - 315, - "315", - "hexagon2-open-dot", - 16, - "16", - "octagon", - 116, - "116", - "octagon-open", - 216, - "216", - "octagon-dot", - 316, - "316", - "octagon-open-dot", - 17, - "17", - "star", - 117, - "117", - "star-open", - 217, - "217", - "star-dot", - 317, - "317", - "star-open-dot", - 18, - "18", - "hexagram", - 118, - "118", - "hexagram-open", - 218, - "218", - "hexagram-dot", - 318, - "318", - "hexagram-open-dot", - 19, - "19", - "star-triangle-up", - 119, - "119", - "star-triangle-up-open", - 219, - "219", - "star-triangle-up-dot", - 319, - "319", - "star-triangle-up-open-dot", - 20, - "20", - "star-triangle-down", - 120, - "120", - "star-triangle-down-open", - 220, - "220", - "star-triangle-down-dot", - 320, - "320", - "star-triangle-down-open-dot", - 21, - "21", - "star-square", - 121, - "121", - "star-square-open", - 221, - "221", - "star-square-dot", - 321, - "321", - "star-square-open-dot", - 22, - "22", - "star-diamond", - 122, - "122", - "star-diamond-open", - 222, - "222", - "star-diamond-dot", - 322, - "322", - "star-diamond-open-dot", - 23, - "23", - "diamond-tall", - 123, - "123", - "diamond-tall-open", - 223, - "223", - "diamond-tall-dot", - 323, - "323", - "diamond-tall-open-dot", - 24, - "24", - "diamond-wide", - 124, - "124", - "diamond-wide-open", - 224, - "224", - "diamond-wide-dot", - 324, - "324", - "diamond-wide-open-dot", - 25, - "25", - "hourglass", - 125, - "125", - "hourglass-open", - 26, - "26", - "bowtie", - 126, - "126", - "bowtie-open", - 27, - "27", - "circle-cross", - 127, - "127", - "circle-cross-open", - 28, - "28", - "circle-x", - 128, - "128", - "circle-x-open", - 29, - "29", - "square-cross", - 129, - "129", - "square-cross-open", - 30, - "30", - "square-x", - 130, - "130", - "square-x-open", - 31, - "31", - "diamond-cross", - 131, - "131", - "diamond-cross-open", - 32, - "32", - "diamond-x", - 132, - "132", - "diamond-x-open", - 33, - "33", - "cross-thin", - 133, - "133", - "cross-thin-open", - 34, - "34", - "x-thin", - 134, - "134", - "x-thin-open", - 35, - "35", - "asterisk", - 135, - "135", - "asterisk-open", - 36, - "36", - "hash", - 136, - "136", - "hash-open", - 236, - "236", - "hash-dot", - 336, - "336", - "hash-open-dot", - 37, - "37", - "y-up", - 137, - "137", - "y-up-open", - 38, - "38", - "y-down", - 138, - "138", - "y-down-open", - 39, - "39", - "y-left", - 139, - "139", - "y-left-open", - 40, - "40", - "y-right", - 140, - "140", - "y-right-open", - 41, - "41", - "line-ew", - 141, - "141", - "line-ew-open", - 42, - "42", - "line-ns", - 142, - "142", - "line-ns-open", - 43, - "43", - "line-ne", - 143, - "143", - "line-ne-open", - 44, - "44", - "line-nw", - 144, - "144", - "line-nw-open", - 45, - "45", - "arrow-up", - 145, - "145", - "arrow-up-open", - 46, - "46", - "arrow-down", - 146, - "146", - "arrow-down-open", - 47, - "47", - "arrow-left", - 147, - "147", - "arrow-left-open", - 48, - "48", - "arrow-right", - 148, - "148", - "arrow-right-open", - 49, - "49", - "arrow-bar-up", - 149, - "149", - "arrow-bar-up-open", - 50, - "50", - "arrow-bar-down", - 150, - "150", - "arrow-bar-down-open", - 51, - "51", - "arrow-bar-left", - 151, - "151", - "arrow-bar-left-open", - 52, - "52", - "arrow-bar-right", - 152, - "152", - "arrow-bar-right-open", - 53, - "53", - "arrow", - 153, - "153", - "arrow-open", - 54, - "54", - "arrow-wide", - 154, - "154", - "arrow-wide-open", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SymbolValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='symbol', + parent_name='scattergl.marker', + **kwargs): + super(SymbolValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [0, '0', 'circle', 100, '100', 'circle-open', 200, '200', 'circle-dot', 300, '300', 'circle-open-dot', 1, '1', 'square', 101, '101', 'square-open', 201, '201', 'square-dot', 301, '301', 'square-open-dot', 2, '2', 'diamond', 102, '102', 'diamond-open', 202, '202', 'diamond-dot', 302, '302', 'diamond-open-dot', 3, '3', 'cross', 103, '103', 'cross-open', 203, '203', 'cross-dot', 303, '303', 'cross-open-dot', 4, '4', 'x', 104, '104', 'x-open', 204, '204', 'x-dot', 304, '304', 'x-open-dot', 5, '5', 'triangle-up', 105, '105', 'triangle-up-open', 205, '205', 'triangle-up-dot', 305, '305', 'triangle-up-open-dot', 6, '6', 'triangle-down', 106, '106', 'triangle-down-open', 206, '206', 'triangle-down-dot', 306, '306', 'triangle-down-open-dot', 7, '7', 'triangle-left', 107, '107', 'triangle-left-open', 207, '207', 'triangle-left-dot', 307, '307', 'triangle-left-open-dot', 8, '8', 'triangle-right', 108, '108', 'triangle-right-open', 208, '208', 'triangle-right-dot', 308, '308', 'triangle-right-open-dot', 9, '9', 'triangle-ne', 109, '109', 'triangle-ne-open', 209, '209', 'triangle-ne-dot', 309, '309', 'triangle-ne-open-dot', 10, '10', 'triangle-se', 110, '110', 'triangle-se-open', 210, '210', 'triangle-se-dot', 310, '310', 'triangle-se-open-dot', 11, '11', 'triangle-sw', 111, '111', 'triangle-sw-open', 211, '211', 'triangle-sw-dot', 311, '311', 'triangle-sw-open-dot', 12, '12', 'triangle-nw', 112, '112', 'triangle-nw-open', 212, '212', 'triangle-nw-dot', 312, '312', 'triangle-nw-open-dot', 13, '13', 'pentagon', 113, '113', 'pentagon-open', 213, '213', 'pentagon-dot', 313, '313', 'pentagon-open-dot', 14, '14', 'hexagon', 114, '114', 'hexagon-open', 214, '214', 'hexagon-dot', 314, '314', 'hexagon-open-dot', 15, '15', 'hexagon2', 115, '115', 'hexagon2-open', 215, '215', 'hexagon2-dot', 315, '315', 'hexagon2-open-dot', 16, '16', 'octagon', 116, '116', 'octagon-open', 216, '216', 'octagon-dot', 316, '316', 'octagon-open-dot', 17, '17', 'star', 117, '117', 'star-open', 217, '217', 'star-dot', 317, '317', 'star-open-dot', 18, '18', 'hexagram', 118, '118', 'hexagram-open', 218, '218', 'hexagram-dot', 318, '318', 'hexagram-open-dot', 19, '19', 'star-triangle-up', 119, '119', 'star-triangle-up-open', 219, '219', 'star-triangle-up-dot', 319, '319', 'star-triangle-up-open-dot', 20, '20', 'star-triangle-down', 120, '120', 'star-triangle-down-open', 220, '220', 'star-triangle-down-dot', 320, '320', 'star-triangle-down-open-dot', 21, '21', 'star-square', 121, '121', 'star-square-open', 221, '221', 'star-square-dot', 321, '321', 'star-square-open-dot', 22, '22', 'star-diamond', 122, '122', 'star-diamond-open', 222, '222', 'star-diamond-dot', 322, '322', 'star-diamond-open-dot', 23, '23', 'diamond-tall', 123, '123', 'diamond-tall-open', 223, '223', 'diamond-tall-dot', 323, '323', 'diamond-tall-open-dot', 24, '24', 'diamond-wide', 124, '124', 'diamond-wide-open', 224, '224', 'diamond-wide-dot', 324, '324', 'diamond-wide-open-dot', 25, '25', 'hourglass', 125, '125', 'hourglass-open', 26, '26', 'bowtie', 126, '126', 'bowtie-open', 27, '27', 'circle-cross', 127, '127', 'circle-cross-open', 28, '28', 'circle-x', 128, '128', 'circle-x-open', 29, '29', 'square-cross', 129, '129', 'square-cross-open', 30, '30', 'square-x', 130, '130', 'square-x-open', 31, '31', 'diamond-cross', 131, '131', 'diamond-cross-open', 32, '32', 'diamond-x', 132, '132', 'diamond-x-open', 33, '33', 'cross-thin', 133, '133', 'cross-thin-open', 34, '34', 'x-thin', 134, '134', 'x-thin-open', 35, '35', 'asterisk', 135, '135', 'asterisk-open', 36, '36', 'hash', 136, '136', 'hash-open', 236, '236', 'hash-dot', 336, '336', 'hash-open-dot', 37, '37', 'y-up', 137, '137', 'y-up-open', 38, '38', 'y-down', 138, '138', 'y-down-open', 39, '39', 'y-left', 139, '139', 'y-left-open', 40, '40', 'y-right', 140, '140', 'y-right-open', 41, '41', 'line-ew', 141, '141', 'line-ew-open', 42, '42', 'line-ns', 142, '142', 'line-ns-open', 43, '43', 'line-ne', 143, '143', 'line-ne-open', 44, '44', 'line-nw', 144, '144', 'line-nw-open', 45, '45', 'arrow-up', 145, '145', 'arrow-up-open', 46, '46', 'arrow-down', 146, '146', 'arrow-down-open', 47, '47', 'arrow-left', 147, '147', 'arrow-left-open', 48, '48', 'arrow-right', 148, '148', 'arrow-right-open', 49, '49', 'arrow-bar-up', 149, '149', 'arrow-bar-up-open', 50, '50', 'arrow-bar-down', 150, '150', 'arrow-bar-down-open', 51, '51', 'arrow-bar-left', 151, '151', 'arrow-bar-left-open', 52, '52', 'arrow-bar-right', 152, '152', 'arrow-bar-right-open', 53, '53', 'arrow', 153, '153', 'arrow-open', 54, '54', 'arrow-wide', 154, '154', 'arrow-wide-open']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/_symbolsrc.py b/packages/python/plotly/plotly/validators/scattergl/marker/_symbolsrc.py index c16808cf2e5..faaeca97b63 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/_symbolsrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/_symbolsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="symbolsrc", parent_name="scattergl.marker", **kwargs - ): - super(SymbolsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SymbolsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='symbolsrc', + parent_name='scattergl.marker', + **kwargs): + super(SymbolsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_bgcolor.py index 135dd3cfd4b..4682f8affa9 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="scattergl.marker.colorbar", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_bordercolor.py index d9c2e44eb3f..1cce44e1d37 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_bordercolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bordercolor", - parent_name="scattergl.marker.colorbar", - **kwargs, - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_borderwidth.py index 130dca6210e..3c567483fd5 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_borderwidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="borderwidth", - parent_name="scattergl.marker.colorbar", - **kwargs, - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_dtick.py index 4355798ddf5..489d1f749af 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="scattergl.marker.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_exponentformat.py index a463a3f59fc..b724fbacfaa 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_exponentformat.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="exponentformat", - parent_name="scattergl.marker.colorbar", - **kwargs, - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_labelalias.py index 0437a94e356..b4336a250b6 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_labelalias.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="labelalias", - parent_name="scattergl.marker.colorbar", - **kwargs, - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_len.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_len.py index b36aebe0254..b18cc161458 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_len.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="len", parent_name="scattergl.marker.colorbar", **kwargs - ): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_lenmode.py index b4cb5958499..8b61e75afb1 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_lenmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="lenmode", parent_name="scattergl.marker.colorbar", **kwargs - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_minexponent.py index e7f39e7cf07..a5e9a12c2fe 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_minexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="minexponent", - parent_name="scattergl.marker.colorbar", - **kwargs, - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_nticks.py index 0deba37b3f4..ce73794f043 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="scattergl.marker.colorbar", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_orientation.py index b954098131a..d7ac5a9bd44 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_orientation.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="orientation", - parent_name="scattergl.marker.colorbar", - **kwargs, - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_outlinecolor.py index 356a007386b..f43beb04868 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_outlinecolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="outlinecolor", - parent_name="scattergl.marker.colorbar", - **kwargs, - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_outlinewidth.py index 21a1a30993b..a397d4461df 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_outlinewidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="outlinewidth", - parent_name="scattergl.marker.colorbar", - **kwargs, - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_separatethousands.py index 636945f9cc2..14a7f066355 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="scattergl.marker.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_showexponent.py index 23ecc700232..c03569ea39f 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_showexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showexponent", - parent_name="scattergl.marker.colorbar", - **kwargs, - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_showticklabels.py index c190c53c7e9..2658efed73d 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="scattergl.marker.colorbar", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_showtickprefix.py index 6698dee9d98..2685bfc284e 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="scattergl.marker.colorbar", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_showticksuffix.py index 68126cfd78b..24767da6519 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="scattergl.marker.colorbar", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_thickness.py index cac68c1ac61..47c57c93938 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="scattergl.marker.colorbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_thicknessmode.py index 9f617b80207..f66db35d682 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_thicknessmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="thicknessmode", - parent_name="scattergl.marker.colorbar", - **kwargs, - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tick0.py index d65a6ee2898..6154159f0f2 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="scattergl.marker.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickangle.py index 10f293b9d14..02b0965f22c 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="scattergl.marker.colorbar", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickcolor.py index c148975af24..fa056f15bc8 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="scattergl.marker.colorbar", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickfont.py index fd20a78b8bd..f9a0a5fcaa4 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="scattergl.marker.colorbar", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickformat.py index 4a5d8610b54..4dd80b39479 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickformat.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickformat", - parent_name="scattergl.marker.colorbar", - **kwargs, - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickformatstopdefaults.py index 30ec7901937..718e05a1b2d 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="scattergl.marker.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickformatstops.py index f30d2a4a4a5..f429119d0d1 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="scattergl.marker.colorbar", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticklabeloverflow.py index 0b49293c269..050d5146c85 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="scattergl.marker.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticklabelposition.py index 9795603f440..00f96dd71d4 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="scattergl.marker.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticklabelstep.py index 4794f7a8853..c2824239cba 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticklabelstep.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="ticklabelstep", - parent_name="scattergl.marker.colorbar", - **kwargs, - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticklen.py index b5ad722fd9f..bf11f31411f 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="scattergl.marker.colorbar", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickmode.py index 40dc2dd7d38..02d222627cc 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="scattergl.marker.colorbar", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickprefix.py index 283b7622a15..45077b0d4fe 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickprefix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickprefix", - parent_name="scattergl.marker.colorbar", - **kwargs, - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticks.py index a2205a0f1b6..2bfc8d89be9 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="scattergl.marker.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticksuffix.py index b226433c98a..f40fd829312 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticksuffix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="ticksuffix", - parent_name="scattergl.marker.colorbar", - **kwargs, - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticktext.py index 960bd449b88..274ce6b0d7b 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="scattergl.marker.colorbar", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticktextsrc.py index 17b6a51df5a..950c7e3b54d 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ticktextsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="ticktextsrc", - parent_name="scattergl.marker.colorbar", - **kwargs, - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickvals.py index 1ba9c88ceef..93e60d3eac4 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="scattergl.marker.colorbar", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickvalssrc.py index a02708c1199..a07a63d303c 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickvalssrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="tickvalssrc", - parent_name="scattergl.marker.colorbar", - **kwargs, - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickwidth.py index c8e8eabfd86..1eb3a2f3bec 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="scattergl.marker.colorbar", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_title.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_title.py index 30f10067d5a..a9bbbd01980 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="scattergl.marker.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_x.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_x.py index 7ee79fbadec..2baf84d2e1d 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_x.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="x", parent_name="scattergl.marker.colorbar", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_xanchor.py index bbad4b4804f..064391a0474 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="scattergl.marker.colorbar", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_xpad.py index 73ba29a90da..faad6cb066c 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_xpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="xpad", parent_name="scattergl.marker.colorbar", **kwargs - ): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_xref.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_xref.py index e89ef2a3722..90c60048e81 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xref", parent_name="scattergl.marker.colorbar", **kwargs - ): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_y.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_y.py index 90c433894bf..83018313e99 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_y.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="y", parent_name="scattergl.marker.colorbar", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_yanchor.py index 3bddde3f8ca..15118c9ca8b 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="scattergl.marker.colorbar", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ypad.py index 2f9a1fc6e3d..46555d73ff0 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_ypad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ypad", parent_name="scattergl.marker.colorbar", **kwargs - ): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_yref.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_yref.py index 3daa43429e5..be1fbd868d1 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yref", parent_name="scattergl.marker.colorbar", **kwargs - ): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='scattergl.marker.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_color.py index d42e6d9c260..3ebf9ae3934 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scattergl.marker.colorbar.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattergl.marker.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_family.py index 7149bbeb0ad..6876e1b77a3 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scattergl.marker.colorbar.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattergl.marker.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_lineposition.py index 3afc2777236..1e6d3fa16ec 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scattergl.marker.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scattergl.marker.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_shadow.py index 37401438b02..5eb1c831f77 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scattergl.marker.colorbar.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scattergl.marker.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_size.py index d11e00ace6f..95977742f47 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scattergl.marker.colorbar.tickfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattergl.marker.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_style.py index a022ed0e12d..3ed5e9dc826 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scattergl.marker.colorbar.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattergl.marker.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_textcase.py index af35c934a08..3b0bf454bfe 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scattergl.marker.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scattergl.marker.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_variant.py index 84ecbf71942..ca5f7f4d862 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scattergl.marker.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scattergl.marker.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_weight.py index dbffe74e521..0da7c278f26 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scattergl.marker.colorbar.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scattergl.marker.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickformatstop/_dtickrange.py index dd58b4cf788..292738fb1e8 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="scattergl.marker.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "valType": "any"}, - {"editType": "calc", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='scattergl.marker.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'valType': 'any'}, {'editType': 'calc', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickformatstop/_enabled.py index df0313ac904..ebc362e5b28 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="scattergl.marker.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='scattergl.marker.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickformatstop/_name.py index 2fd7f9bf94c..ce798213353 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="scattergl.marker.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='scattergl.marker.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickformatstop/_templateitemname.py index f9c49037dc1..a62bbb1c153 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="scattergl.marker.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='scattergl.marker.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickformatstop/_value.py index 934607310f6..c04b78dd7f6 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="scattergl.marker.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='scattergl.marker.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/_font.py index c4fb853d764..c2f7b5705d0 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/_font.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="font", - parent_name="scattergl.marker.colorbar.title", - **kwargs, - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scattergl.marker.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/_side.py index 70bd4ef6028..41091e8d59c 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/_side.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="side", - parent_name="scattergl.marker.colorbar.title", - **kwargs, - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='scattergl.marker.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/_text.py index 0a927f15c5c..ae9f02a1dc8 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/_text.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="text", - parent_name="scattergl.marker.colorbar.title", - **kwargs, - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scattergl.marker.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_color.py index 3a92d6f498d..cfd73bcb4da 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scattergl.marker.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattergl.marker.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_family.py index 9c17a335b71..93c727e8d1c 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scattergl.marker.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattergl.marker.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_lineposition.py index 910c905b08f..d750782eacd 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scattergl.marker.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scattergl.marker.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_shadow.py index 011c7519b41..c8f3069e711 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scattergl.marker.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scattergl.marker.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_size.py index 2f71c2933f0..19b75e6e419 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scattergl.marker.colorbar.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattergl.marker.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_style.py index 188832bee2c..269e0bf519f 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scattergl.marker.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattergl.marker.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_textcase.py index 88f5e6353e8..9db842aa321 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scattergl.marker.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scattergl.marker.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_variant.py index 5758582fec4..79ded270f12 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scattergl.marker.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scattergl.marker.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_weight.py index 363c83bbc90..7bd4f8d8f4f 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scattergl.marker.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scattergl.marker.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/line/__init__.py b/packages/python/plotly/plotly/validators/scattergl/marker/line/__init__.py index facbe33f884..55d423b11da 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._widthsrc import WidthsrcValidator from ._width import WidthValidator @@ -16,22 +15,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._widthsrc.WidthsrcValidator", - "._width.WidthValidator", - "._reversescale.ReversescaleValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._widthsrc.WidthsrcValidator', '._width.WidthValidator', '._reversescale.ReversescaleValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/line/_autocolorscale.py b/packages/python/plotly/plotly/validators/scattergl/marker/line/_autocolorscale.py index 19028a7c268..55bb9ea23d4 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/line/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/line/_autocolorscale.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="autocolorscale", - parent_name="scattergl.marker.line", - **kwargs, - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='scattergl.marker.line', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/line/_cauto.py b/packages/python/plotly/plotly/validators/scattergl/marker/line/_cauto.py index 007da2e6679..e6ee992771a 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/line/_cauto.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/line/_cauto.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="cauto", parent_name="scattergl.marker.line", **kwargs - ): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='scattergl.marker.line', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/line/_cmax.py b/packages/python/plotly/plotly/validators/scattergl/marker/line/_cmax.py index 6a343b75342..b9481c86967 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/line/_cmax.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/line/_cmax.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmax", parent_name="scattergl.marker.line", **kwargs - ): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='scattergl.marker.line', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/line/_cmid.py b/packages/python/plotly/plotly/validators/scattergl/marker/line/_cmid.py index 43d7835e08c..7ffc5be65f7 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/line/_cmid.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/line/_cmid.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmid", parent_name="scattergl.marker.line", **kwargs - ): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='scattergl.marker.line', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/line/_cmin.py b/packages/python/plotly/plotly/validators/scattergl/marker/line/_cmin.py index f9218e27c3e..2dabd6ce10f 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/line/_cmin.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/line/_cmin.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmin", parent_name="scattergl.marker.line", **kwargs - ): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='scattergl.marker.line', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/line/_color.py b/packages/python/plotly/plotly/validators/scattergl/marker/line/_color.py index f5cf89699b4..89576d73eac 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/line/_color.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/line/_color.py @@ -1,17 +1,15 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattergl.marker.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - colorscale_path=kwargs.pop( - "colorscale_path", "scattergl.marker.line.colorscale" - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattergl.marker.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + colorscale_path=kwargs.pop('colorscale_path', 'scattergl.marker.line.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/line/_coloraxis.py b/packages/python/plotly/plotly/validators/scattergl/marker/line/_coloraxis.py index 3b9952080bc..30a387729d5 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/line/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/line/_coloraxis.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name="coloraxis", parent_name="scattergl.marker.line", **kwargs - ): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='scattergl.marker.line', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/line/_colorscale.py b/packages/python/plotly/plotly/validators/scattergl/marker/line/_colorscale.py index 34252afe159..7758b3095d5 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/line/_colorscale.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/line/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="scattergl.marker.line", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='scattergl.marker.line', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/line/_colorsrc.py b/packages/python/plotly/plotly/validators/scattergl/marker/line/_colorsrc.py index d4ba88bda17..58beff3f662 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/line/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/line/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scattergl.marker.line", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scattergl.marker.line', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/line/_reversescale.py b/packages/python/plotly/plotly/validators/scattergl/marker/line/_reversescale.py index 5dd569a3cfa..0de913a3bd3 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/line/_reversescale.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/line/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="scattergl.marker.line", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='scattergl.marker.line', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/line/_width.py b/packages/python/plotly/plotly/validators/scattergl/marker/line/_width.py index 07beed70c6b..56dc4e6ceec 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/line/_width.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/line/_width.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="scattergl.marker.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='scattergl.marker.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/line/_widthsrc.py b/packages/python/plotly/plotly/validators/scattergl/marker/line/_widthsrc.py index 6a958688f94..91f442400bd 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/line/_widthsrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/line/_widthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="widthsrc", parent_name="scattergl.marker.line", **kwargs - ): - super(WidthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='widthsrc', + parent_name='scattergl.marker.line', + **kwargs): + super(WidthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/selected/__init__.py b/packages/python/plotly/plotly/validators/scattergl/selected/__init__.py index 3b0aeed383f..c0a73fd7df3 100644 --- a/packages/python/plotly/plotly/validators/scattergl/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/selected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._textfont import TextfontValidator from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] + __name__, + [], + ['._textfont.TextfontValidator', '._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergl/selected/_marker.py b/packages/python/plotly/plotly/validators/scattergl/selected/_marker.py index 453b645ee07..149e70ee0fe 100644 --- a/packages/python/plotly/plotly/validators/scattergl/selected/_marker.py +++ b/packages/python/plotly/plotly/validators/scattergl/selected/_marker.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="scattergl.selected", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. - size - Sets the marker size of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scattergl.selected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/selected/_textfont.py b/packages/python/plotly/plotly/validators/scattergl/selected/_textfont.py index 991fe50840f..2a5f1230e16 100644 --- a/packages/python/plotly/plotly/validators/scattergl/selected/_textfont.py +++ b/packages/python/plotly/plotly/validators/scattergl/selected/_textfont.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="textfont", parent_name="scattergl.selected", **kwargs - ): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the text font color of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='scattergl.selected', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/scattergl/selected/marker/__init__.py index 8c321a38bc5..b7768f024e8 100644 --- a/packages/python/plotly/plotly/validators/scattergl/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/selected/marker/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._size import SizeValidator from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._size.SizeValidator", - "._opacity.OpacityValidator", - "._color.ColorValidator", - ], + ['._size.SizeValidator', '._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergl/selected/marker/_color.py b/packages/python/plotly/plotly/validators/scattergl/selected/marker/_color.py index 2d74f776414..aebe2f89933 100644 --- a/packages/python/plotly/plotly/validators/scattergl/selected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scattergl/selected/marker/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattergl.selected.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattergl.selected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/selected/marker/_opacity.py b/packages/python/plotly/plotly/validators/scattergl/selected/marker/_opacity.py index 89e9327135e..860fe8e8868 100644 --- a/packages/python/plotly/plotly/validators/scattergl/selected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scattergl/selected/marker/_opacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="scattergl.selected.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scattergl.selected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/selected/marker/_size.py b/packages/python/plotly/plotly/validators/scattergl/selected/marker/_size.py index 079f6596ee6..9c89a027473 100644 --- a/packages/python/plotly/plotly/validators/scattergl/selected/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scattergl/selected/marker/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scattergl.selected.marker", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattergl.selected.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/selected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scattergl/selected/textfont/__init__.py index a9f087e5af1..86899e5cc51 100644 --- a/packages/python/plotly/plotly/validators/scattergl/selected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/selected/textfont/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._color.ColorValidator"] + __name__, + [], + ['._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergl/selected/textfont/_color.py b/packages/python/plotly/plotly/validators/scattergl/selected/textfont/_color.py index 2b0ddb4b801..87972962feb 100644 --- a/packages/python/plotly/plotly/validators/scattergl/selected/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/scattergl/selected/textfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattergl.selected.textfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattergl.selected.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/stream/__init__.py b/packages/python/plotly/plotly/validators/scattergl/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/scattergl/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergl/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/scattergl/stream/_maxpoints.py index 87bf0337c93..fbac76d1026 100644 --- a/packages/python/plotly/plotly/validators/scattergl/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/scattergl/stream/_maxpoints.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxpoints", parent_name="scattergl.stream", **kwargs - ): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='scattergl.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/stream/_token.py b/packages/python/plotly/plotly/validators/scattergl/stream/_token.py index a0e77589f17..ef34c588eb9 100644 --- a/packages/python/plotly/plotly/validators/scattergl/stream/_token.py +++ b/packages/python/plotly/plotly/validators/scattergl/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="scattergl.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='scattergl.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/textfont/__init__.py b/packages/python/plotly/plotly/validators/scattergl/textfont/__init__.py index d87c37ff7aa..7b52683b49b 100644 --- a/packages/python/plotly/plotly/validators/scattergl/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/textfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -16,22 +15,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergl/textfont/_color.py b/packages/python/plotly/plotly/validators/scattergl/textfont/_color.py index 058ae70b602..336fbf3e458 100644 --- a/packages/python/plotly/plotly/validators/scattergl/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/scattergl/textfont/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="scattergl.textfont", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattergl.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/textfont/_colorsrc.py b/packages/python/plotly/plotly/validators/scattergl/textfont/_colorsrc.py index 57213b2c665..e99016ca8b1 100644 --- a/packages/python/plotly/plotly/validators/scattergl/textfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/textfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scattergl.textfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scattergl.textfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/textfont/_family.py b/packages/python/plotly/plotly/validators/scattergl/textfont/_family.py index c3e8329ef23..88226ba3fed 100644 --- a/packages/python/plotly/plotly/validators/scattergl/textfont/_family.py +++ b/packages/python/plotly/plotly/validators/scattergl/textfont/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="scattergl.textfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattergl.textfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/textfont/_familysrc.py b/packages/python/plotly/plotly/validators/scattergl/textfont/_familysrc.py index 55b4c298e07..3124d362e4f 100644 --- a/packages/python/plotly/plotly/validators/scattergl/textfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/textfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="scattergl.textfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='scattergl.textfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/textfont/_size.py b/packages/python/plotly/plotly/validators/scattergl/textfont/_size.py index 62e1ccaa259..c0239bcfca6 100644 --- a/packages/python/plotly/plotly/validators/scattergl/textfont/_size.py +++ b/packages/python/plotly/plotly/validators/scattergl/textfont/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="scattergl.textfont", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattergl.textfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/textfont/_sizesrc.py b/packages/python/plotly/plotly/validators/scattergl/textfont/_sizesrc.py index d185e1f036f..3128d3b2dcf 100644 --- a/packages/python/plotly/plotly/validators/scattergl/textfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/textfont/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="scattergl.textfont", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scattergl.textfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/textfont/_style.py b/packages/python/plotly/plotly/validators/scattergl/textfont/_style.py index c4be2a30359..18c1ba77126 100644 --- a/packages/python/plotly/plotly/validators/scattergl/textfont/_style.py +++ b/packages/python/plotly/plotly/validators/scattergl/textfont/_style.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="style", parent_name="scattergl.textfont", **kwargs): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattergl.textfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/textfont/_stylesrc.py b/packages/python/plotly/plotly/validators/scattergl/textfont/_stylesrc.py index 2d649796096..2c1ca27e5e0 100644 --- a/packages/python/plotly/plotly/validators/scattergl/textfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/textfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="scattergl.textfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='scattergl.textfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/textfont/_variant.py b/packages/python/plotly/plotly/validators/scattergl/textfont/_variant.py index 8693fa2a379..35eddaec217 100644 --- a/packages/python/plotly/plotly/validators/scattergl/textfont/_variant.py +++ b/packages/python/plotly/plotly/validators/scattergl/textfont/_variant.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="scattergl.textfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "small-caps"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scattergl.textfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/textfont/_variantsrc.py b/packages/python/plotly/plotly/validators/scattergl/textfont/_variantsrc.py index fac0bf44d0c..c02695a0434 100644 --- a/packages/python/plotly/plotly/validators/scattergl/textfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/textfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="scattergl.textfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='scattergl.textfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/textfont/_weight.py b/packages/python/plotly/plotly/validators/scattergl/textfont/_weight.py index fa3d81512cd..d3cfcf38f3f 100644 --- a/packages/python/plotly/plotly/validators/scattergl/textfont/_weight.py +++ b/packages/python/plotly/plotly/validators/scattergl/textfont/_weight.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class WeightValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="weight", parent_name="scattergl.textfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "bold"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='weight', + parent_name='scattergl.textfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'bold']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/textfont/_weightsrc.py b/packages/python/plotly/plotly/validators/scattergl/textfont/_weightsrc.py index f0a525f9ab6..2ea40cc721b 100644 --- a/packages/python/plotly/plotly/validators/scattergl/textfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/scattergl/textfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="scattergl.textfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='scattergl.textfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/unselected/__init__.py b/packages/python/plotly/plotly/validators/scattergl/unselected/__init__.py index 3b0aeed383f..c0a73fd7df3 100644 --- a/packages/python/plotly/plotly/validators/scattergl/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/unselected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._textfont import TextfontValidator from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] + __name__, + [], + ['._textfont.TextfontValidator', '._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergl/unselected/_marker.py b/packages/python/plotly/plotly/validators/scattergl/unselected/_marker.py index 4b67a89b5ee..49a573c7051 100644 --- a/packages/python/plotly/plotly/validators/scattergl/unselected/_marker.py +++ b/packages/python/plotly/plotly/validators/scattergl/unselected/_marker.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="scattergl.unselected", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - size - Sets the marker size of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scattergl.unselected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/unselected/_textfont.py b/packages/python/plotly/plotly/validators/scattergl/unselected/_textfont.py index c34ebb48b2e..00c4a504ff0 100644 --- a/packages/python/plotly/plotly/validators/scattergl/unselected/_textfont.py +++ b/packages/python/plotly/plotly/validators/scattergl/unselected/_textfont.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="textfont", parent_name="scattergl.unselected", **kwargs - ): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the text font color of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='scattergl.unselected', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/scattergl/unselected/marker/__init__.py index 8c321a38bc5..b7768f024e8 100644 --- a/packages/python/plotly/plotly/validators/scattergl/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/unselected/marker/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._size import SizeValidator from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._size.SizeValidator", - "._opacity.OpacityValidator", - "._color.ColorValidator", - ], + ['._size.SizeValidator', '._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergl/unselected/marker/_color.py b/packages/python/plotly/plotly/validators/scattergl/unselected/marker/_color.py index f6a9651ac86..04e32848f75 100644 --- a/packages/python/plotly/plotly/validators/scattergl/unselected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scattergl/unselected/marker/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattergl.unselected.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattergl.unselected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/unselected/marker/_opacity.py b/packages/python/plotly/plotly/validators/scattergl/unselected/marker/_opacity.py index d0a50492951..8e3465875e1 100644 --- a/packages/python/plotly/plotly/validators/scattergl/unselected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scattergl/unselected/marker/_opacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="scattergl.unselected.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scattergl.unselected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/unselected/marker/_size.py b/packages/python/plotly/plotly/validators/scattergl/unselected/marker/_size.py index 18e0e6eab61..baece28595a 100644 --- a/packages/python/plotly/plotly/validators/scattergl/unselected/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scattergl/unselected/marker/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scattergl.unselected.marker", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattergl.unselected.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattergl/unselected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scattergl/unselected/textfont/__init__.py index a9f087e5af1..86899e5cc51 100644 --- a/packages/python/plotly/plotly/validators/scattergl/unselected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/unselected/textfont/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._color.ColorValidator"] + __name__, + [], + ['._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattergl/unselected/textfont/_color.py b/packages/python/plotly/plotly/validators/scattergl/unselected/textfont/_color.py index 6527b051d21..93fb7301564 100644 --- a/packages/python/plotly/plotly/validators/scattergl/unselected/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/scattergl/unselected/textfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattergl.unselected.textfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattergl.unselected.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/__init__.py b/packages/python/plotly/plotly/validators/scattermap/__init__.py index 5abe04051d4..1cb9cab4391 100644 --- a/packages/python/plotly/plotly/validators/scattermap/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermap/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._unselected import UnselectedValidator @@ -51,57 +50,10 @@ from ._below import BelowValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._unselected.UnselectedValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._texttemplatesrc.TexttemplatesrcValidator", - "._texttemplate.TexttemplateValidator", - "._textsrc.TextsrcValidator", - "._textposition.TextpositionValidator", - "._textfont.TextfontValidator", - "._text.TextValidator", - "._subplot.SubplotValidator", - "._stream.StreamValidator", - "._showlegend.ShowlegendValidator", - "._selectedpoints.SelectedpointsValidator", - "._selected.SelectedValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._mode.ModeValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._marker.MarkerValidator", - "._lonsrc.LonsrcValidator", - "._lon.LonValidator", - "._line.LineValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._latsrc.LatsrcValidator", - "._lat.LatValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._fillcolor.FillcolorValidator", - "._fill.FillValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._connectgaps.ConnectgapsValidator", - "._cluster.ClusterValidator", - "._below.BelowValidator", - ], + ['._visible.VisibleValidator', '._unselected.UnselectedValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._texttemplatesrc.TexttemplatesrcValidator', '._texttemplate.TexttemplateValidator', '._textsrc.TextsrcValidator', '._textposition.TextpositionValidator', '._textfont.TextfontValidator', '._text.TextValidator', '._subplot.SubplotValidator', '._stream.StreamValidator', '._showlegend.ShowlegendValidator', '._selectedpoints.SelectedpointsValidator', '._selected.SelectedValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._mode.ModeValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._marker.MarkerValidator', '._lonsrc.LonsrcValidator', '._lon.LonValidator', '._line.LineValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._latsrc.LatsrcValidator', '._lat.LatValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._fillcolor.FillcolorValidator', '._fill.FillValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._connectgaps.ConnectgapsValidator', '._cluster.ClusterValidator', '._below.BelowValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermap/_below.py b/packages/python/plotly/plotly/validators/scattermap/_below.py index 8f77832b6b6..6dbbf7bd224 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_below.py +++ b/packages/python/plotly/plotly/validators/scattermap/_below.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BelowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="below", parent_name="scattermap", **kwargs): - super(BelowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BelowValidator(_bv.StringValidator): + def __init__(self, plotly_name='below', + parent_name='scattermap', + **kwargs): + super(BelowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_cluster.py b/packages/python/plotly/plotly/validators/scattermap/_cluster.py index f319ce45f43..65abcfe9142 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_cluster.py +++ b/packages/python/plotly/plotly/validators/scattermap/_cluster.py @@ -1,49 +1,15 @@ -import _plotly_utils.basevalidators -class ClusterValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="cluster", parent_name="scattermap", **kwargs): - super(ClusterValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Cluster"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the color for each cluster step. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - enabled - Determines whether clustering is enabled or - disabled. - maxzoom - Sets the maximum zoom level. At zoom levels - equal to or greater than this, points will - never be clustered. - opacity - Sets the marker opacity. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - size - Sets the size for each cluster step. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - step - Sets how many points it takes to create a - cluster or advance to the next cluster step. - Use this in conjunction with arrays for `size` - and / or `color`. If an integer, steps start at - multiples of this number. If an array, each - step extends from the given value until one - less than the next value. - stepsrc - Sets the source reference on Chart Studio Cloud - for `step`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ClusterValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='cluster', + parent_name='scattermap', + **kwargs): + super(ClusterValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Cluster'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_connectgaps.py b/packages/python/plotly/plotly/validators/scattermap/_connectgaps.py index f41f4971e8a..e19d9216956 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_connectgaps.py +++ b/packages/python/plotly/plotly/validators/scattermap/_connectgaps.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="connectgaps", parent_name="scattermap", **kwargs): - super(ConnectgapsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ConnectgapsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='connectgaps', + parent_name='scattermap', + **kwargs): + super(ConnectgapsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_customdata.py b/packages/python/plotly/plotly/validators/scattermap/_customdata.py index d2052fc9528..1c1051551ac 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_customdata.py +++ b/packages/python/plotly/plotly/validators/scattermap/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="scattermap", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='scattermap', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_customdatasrc.py b/packages/python/plotly/plotly/validators/scattermap/_customdatasrc.py index e9b8121ae09..e9d63d52d68 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="scattermap", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='scattermap', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_fill.py b/packages/python/plotly/plotly/validators/scattermap/_fill.py index cb9f598dc37..25ef7d649b6 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_fill.py +++ b/packages/python/plotly/plotly/validators/scattermap/_fill.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class FillValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="fill", parent_name="scattermap", **kwargs): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["none", "toself"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='fill', + parent_name='scattermap', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['none', 'toself']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_fillcolor.py b/packages/python/plotly/plotly/validators/scattermap/_fillcolor.py index 6a63f142fd7..1efea3e57b4 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_fillcolor.py +++ b/packages/python/plotly/plotly/validators/scattermap/_fillcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="fillcolor", parent_name="scattermap", **kwargs): - super(FillcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FillcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fillcolor', + parent_name='scattermap', + **kwargs): + super(FillcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_hoverinfo.py b/packages/python/plotly/plotly/validators/scattermap/_hoverinfo.py index 0878641077f..0914457f958 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/scattermap/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="scattermap", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["lon", "lat", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='scattermap', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['lon', 'lat', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/scattermap/_hoverinfosrc.py index 9ef6c559884..3b91aaa5680 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="scattermap", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='scattermap', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_hoverlabel.py b/packages/python/plotly/plotly/validators/scattermap/_hoverlabel.py index e1fd26b410c..5ae4c4a6635 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/scattermap/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="scattermap", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='scattermap', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_hovertemplate.py b/packages/python/plotly/plotly/validators/scattermap/_hovertemplate.py index f39a7558dfe..cc5affe2d59 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/scattermap/_hovertemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="scattermap", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='scattermap', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/scattermap/_hovertemplatesrc.py index 9764f51916f..e49b7d10c48 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/_hovertemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertemplatesrc", parent_name="scattermap", **kwargs - ): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='scattermap', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_hovertext.py b/packages/python/plotly/plotly/validators/scattermap/_hovertext.py index e61d5f85ce0..db1ed31f24f 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_hovertext.py +++ b/packages/python/plotly/plotly/validators/scattermap/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="scattermap", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='scattermap', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_hovertextsrc.py b/packages/python/plotly/plotly/validators/scattermap/_hovertextsrc.py index df36fec3551..1991585e2f4 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="scattermap", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='scattermap', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_ids.py b/packages/python/plotly/plotly/validators/scattermap/_ids.py index ade0b467b7f..2bc783ff848 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_ids.py +++ b/packages/python/plotly/plotly/validators/scattermap/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="scattermap", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='scattermap', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_idssrc.py b/packages/python/plotly/plotly/validators/scattermap/_idssrc.py index 07e47d52a4c..71fc72f1e3a 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_idssrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="scattermap", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='scattermap', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_lat.py b/packages/python/plotly/plotly/validators/scattermap/_lat.py index e1e7a21a617..2ef1a369a82 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_lat.py +++ b/packages/python/plotly/plotly/validators/scattermap/_lat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LatValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="lat", parent_name="scattermap", **kwargs): - super(LatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LatValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='lat', + parent_name='scattermap', + **kwargs): + super(LatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_latsrc.py b/packages/python/plotly/plotly/validators/scattermap/_latsrc.py index fbd246064d9..e0f94fd15ab 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_latsrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/_latsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LatsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="latsrc", parent_name="scattermap", **kwargs): - super(LatsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LatsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='latsrc', + parent_name='scattermap', + **kwargs): + super(LatsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_legend.py b/packages/python/plotly/plotly/validators/scattermap/_legend.py index 60613e2997a..0d2111d3ed8 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_legend.py +++ b/packages/python/plotly/plotly/validators/scattermap/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="scattermap", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='scattermap', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_legendgroup.py b/packages/python/plotly/plotly/validators/scattermap/_legendgroup.py index c15205a7515..aa57f7ea96a 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/scattermap/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="scattermap", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='scattermap', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/scattermap/_legendgrouptitle.py index db44e123dcc..cc278d442e7 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/scattermap/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="scattermap", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='scattermap', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_legendrank.py b/packages/python/plotly/plotly/validators/scattermap/_legendrank.py index e2dd0ec25fc..c0d21bdc137 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_legendrank.py +++ b/packages/python/plotly/plotly/validators/scattermap/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="scattermap", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='scattermap', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_legendwidth.py b/packages/python/plotly/plotly/validators/scattermap/_legendwidth.py index 498db23d305..100d0f3927f 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/scattermap/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="scattermap", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='scattermap', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_line.py b/packages/python/plotly/plotly/validators/scattermap/_line.py index 6a31327ceae..2025af9d418 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_line.py +++ b/packages/python/plotly/plotly/validators/scattermap/_line.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="scattermap", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the line color. - width - Sets the line width (in px). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='scattermap', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_lon.py b/packages/python/plotly/plotly/validators/scattermap/_lon.py index 66bda2b3d41..c5edb9906d4 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_lon.py +++ b/packages/python/plotly/plotly/validators/scattermap/_lon.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LonValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="lon", parent_name="scattermap", **kwargs): - super(LonValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LonValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='lon', + parent_name='scattermap', + **kwargs): + super(LonValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_lonsrc.py b/packages/python/plotly/plotly/validators/scattermap/_lonsrc.py index 58e5abbd339..663caa4f6d1 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_lonsrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/_lonsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LonsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="lonsrc", parent_name="scattermap", **kwargs): - super(LonsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LonsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='lonsrc', + parent_name='scattermap', + **kwargs): + super(LonsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_marker.py b/packages/python/plotly/plotly/validators/scattermap/_marker.py index f55e19922ed..d9e059ce5fc 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_marker.py +++ b/packages/python/plotly/plotly/validators/scattermap/_marker.py @@ -1,145 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="scattermap", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - allowoverlap - Flag to draw all symbols, even if they overlap. - angle - Sets the marker orientation from true North, in - degrees clockwise. When using the "auto" - default, no rotation would be applied in - perspective views which is different from using - a zero angle. - anglesrc - Sets the source reference on Chart Studio Cloud - for `angle`. - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.scattermap.marker. - ColorBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - opacity - Sets the marker opacity. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. - size - Sets the marker size (in px). - sizemin - Has an effect only if `marker.size` is set to a - numerical array. Sets the minimum size (in px) - of the rendered marker points. - sizemode - Has an effect only if `marker.size` is set to a - numerical array. Sets the rule for which the - data in `size` is converted to pixels. - sizeref - Has an effect only if `marker.size` is set to a - numerical array. Sets the scale factor used to - determine the rendered size of marker points. - Use with `sizemin` and `sizemode`. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - symbol - Sets the marker symbol. Full list: - https://www.map.com/maki-icons/ Note that the - array `marker.color` and `marker.size` are only - available for "circle" symbols. - symbolsrc - Sets the source reference on Chart Studio Cloud - for `symbol`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scattermap', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_meta.py b/packages/python/plotly/plotly/validators/scattermap/_meta.py index ff32888d943..b75f37cd05c 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_meta.py +++ b/packages/python/plotly/plotly/validators/scattermap/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="scattermap", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='scattermap', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_metasrc.py b/packages/python/plotly/plotly/validators/scattermap/_metasrc.py index ce5b289bb67..a220813ba13 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_metasrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="scattermap", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='scattermap', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_mode.py b/packages/python/plotly/plotly/validators/scattermap/_mode.py index 68e75dbfd9d..e886353a48a 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_mode.py +++ b/packages/python/plotly/plotly/validators/scattermap/_mode.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="mode", parent_name="scattermap", **kwargs): - super(ModeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["lines", "markers", "text"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ModeValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='mode', + parent_name='scattermap', + **kwargs): + super(ModeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['lines', 'markers', 'text']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_name.py b/packages/python/plotly/plotly/validators/scattermap/_name.py index d35e4dcc96d..6ec858d189c 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_name.py +++ b/packages/python/plotly/plotly/validators/scattermap/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="scattermap", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='scattermap', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_opacity.py b/packages/python/plotly/plotly/validators/scattermap/_opacity.py index 18312c5b1df..54dc186f91f 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_opacity.py +++ b/packages/python/plotly/plotly/validators/scattermap/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="scattermap", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scattermap', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_selected.py b/packages/python/plotly/plotly/validators/scattermap/_selected.py index dd8d4212dde..ad4360972a0 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_selected.py +++ b/packages/python/plotly/plotly/validators/scattermap/_selected.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="selected", parent_name="scattermap", **kwargs): - super(SelectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Selected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.scattermap.selecte - d.Marker` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='selected', + parent_name='scattermap', + **kwargs): + super(SelectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_selectedpoints.py b/packages/python/plotly/plotly/validators/scattermap/_selectedpoints.py index c0ef7526673..8e991c95ee1 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_selectedpoints.py +++ b/packages/python/plotly/plotly/validators/scattermap/_selectedpoints.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="selectedpoints", parent_name="scattermap", **kwargs - ): - super(SelectedpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SelectedpointsValidator(_bv.AnyValidator): + def __init__(self, plotly_name='selectedpoints', + parent_name='scattermap', + **kwargs): + super(SelectedpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_showlegend.py b/packages/python/plotly/plotly/validators/scattermap/_showlegend.py index 38eb4fa9dba..3e71f476fd3 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_showlegend.py +++ b/packages/python/plotly/plotly/validators/scattermap/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="scattermap", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='scattermap', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_stream.py b/packages/python/plotly/plotly/validators/scattermap/_stream.py index d11f34a6204..ea490523513 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_stream.py +++ b/packages/python/plotly/plotly/validators/scattermap/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="scattermap", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='scattermap', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_subplot.py b/packages/python/plotly/plotly/validators/scattermap/_subplot.py index b0b330dc89d..8172411dc01 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_subplot.py +++ b/packages/python/plotly/plotly/validators/scattermap/_subplot.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SubplotValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="subplot", parent_name="scattermap", **kwargs): - super(SubplotValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "map"), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SubplotValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='subplot', + parent_name='scattermap', + **kwargs): + super(SubplotValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'map'), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_text.py b/packages/python/plotly/plotly/validators/scattermap/_text.py index 74fcb982a9d..9d8c30ed85a 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_text.py +++ b/packages/python/plotly/plotly/validators/scattermap/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="scattermap", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scattermap', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_textfont.py b/packages/python/plotly/plotly/validators/scattermap/_textfont.py index 9fa68efa1fd..f6fa49dbbc6 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_textfont.py +++ b/packages/python/plotly/plotly/validators/scattermap/_textfont.py @@ -1,42 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="textfont", parent_name="scattermap", **kwargs): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='scattermap', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_textposition.py b/packages/python/plotly/plotly/validators/scattermap/_textposition.py index 663d2f075ca..a19a21bfeb0 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_textposition.py +++ b/packages/python/plotly/plotly/validators/scattermap/_textposition.py @@ -1,26 +1,15 @@ -import _plotly_utils.basevalidators -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="textposition", parent_name="scattermap", **kwargs): - super(TextpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "top left", - "top center", - "top right", - "middle left", - "middle center", - "middle right", - "bottom left", - "bottom center", - "bottom right", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textposition', + parent_name='scattermap', + **kwargs): + super(TextpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['top left', 'top center', 'top right', 'middle left', 'middle center', 'middle right', 'bottom left', 'bottom center', 'bottom right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_textsrc.py b/packages/python/plotly/plotly/validators/scattermap/_textsrc.py index b11f4e2a83e..600b9ab0008 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_textsrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="scattermap", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='scattermap', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_texttemplate.py b/packages/python/plotly/plotly/validators/scattermap/_texttemplate.py index 8bc4aebdf3d..d2b7ec7b8c5 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_texttemplate.py +++ b/packages/python/plotly/plotly/validators/scattermap/_texttemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="texttemplate", parent_name="scattermap", **kwargs): - super(TexttemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='texttemplate', + parent_name='scattermap', + **kwargs): + super(TexttemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_texttemplatesrc.py b/packages/python/plotly/plotly/validators/scattermap/_texttemplatesrc.py index b2486f30474..26a31ac0b5d 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_texttemplatesrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/_texttemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="texttemplatesrc", parent_name="scattermap", **kwargs - ): - super(TexttemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='texttemplatesrc', + parent_name='scattermap', + **kwargs): + super(TexttemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_uid.py b/packages/python/plotly/plotly/validators/scattermap/_uid.py index 0a3b69d80aa..713821ba510 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_uid.py +++ b/packages/python/plotly/plotly/validators/scattermap/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="scattermap", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='scattermap', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_uirevision.py b/packages/python/plotly/plotly/validators/scattermap/_uirevision.py index 99c53576596..f68e5f73ef6 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_uirevision.py +++ b/packages/python/plotly/plotly/validators/scattermap/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="scattermap", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='scattermap', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_unselected.py b/packages/python/plotly/plotly/validators/scattermap/_unselected.py index deb45a81af2..838e643b325 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_unselected.py +++ b/packages/python/plotly/plotly/validators/scattermap/_unselected.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="unselected", parent_name="scattermap", **kwargs): - super(UnselectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Unselected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.scattermap.unselec - ted.Marker` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UnselectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='unselected', + parent_name='scattermap', + **kwargs): + super(UnselectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/_visible.py b/packages/python/plotly/plotly/validators/scattermap/_visible.py index b8bf4a914be..9579b19af88 100644 --- a/packages/python/plotly/plotly/validators/scattermap/_visible.py +++ b/packages/python/plotly/plotly/validators/scattermap/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="scattermap", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='scattermap', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/cluster/__init__.py b/packages/python/plotly/plotly/validators/scattermap/cluster/__init__.py index e8f530f8e9e..378942851e3 100644 --- a/packages/python/plotly/plotly/validators/scattermap/cluster/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermap/cluster/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._stepsrc import StepsrcValidator from ._step import StepValidator @@ -14,20 +13,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._stepsrc.StepsrcValidator", - "._step.StepValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._opacitysrc.OpacitysrcValidator", - "._opacity.OpacityValidator", - "._maxzoom.MaxzoomValidator", - "._enabled.EnabledValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._stepsrc.StepsrcValidator', '._step.StepValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._opacitysrc.OpacitysrcValidator', '._opacity.OpacityValidator', '._maxzoom.MaxzoomValidator', '._enabled.EnabledValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermap/cluster/_color.py b/packages/python/plotly/plotly/validators/scattermap/cluster/_color.py index a6ce5aa7fd8..940c6a62029 100644 --- a/packages/python/plotly/plotly/validators/scattermap/cluster/_color.py +++ b/packages/python/plotly/plotly/validators/scattermap/cluster/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="scattermap.cluster", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattermap.cluster', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/cluster/_colorsrc.py b/packages/python/plotly/plotly/validators/scattermap/cluster/_colorsrc.py index dea17ba84e8..049aa60b05e 100644 --- a/packages/python/plotly/plotly/validators/scattermap/cluster/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/cluster/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scattermap.cluster", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scattermap.cluster', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/cluster/_enabled.py b/packages/python/plotly/plotly/validators/scattermap/cluster/_enabled.py index ad034a4ff88..2e856badcf8 100644 --- a/packages/python/plotly/plotly/validators/scattermap/cluster/_enabled.py +++ b/packages/python/plotly/plotly/validators/scattermap/cluster/_enabled.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="enabled", parent_name="scattermap.cluster", **kwargs - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='scattermap.cluster', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/cluster/_maxzoom.py b/packages/python/plotly/plotly/validators/scattermap/cluster/_maxzoom.py index d993f177477..2d4a52d8f5a 100644 --- a/packages/python/plotly/plotly/validators/scattermap/cluster/_maxzoom.py +++ b/packages/python/plotly/plotly/validators/scattermap/cluster/_maxzoom.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxzoomValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxzoom", parent_name="scattermap.cluster", **kwargs - ): - super(MaxzoomValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 24), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxzoomValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxzoom', + parent_name='scattermap.cluster', + **kwargs): + super(MaxzoomValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 24), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/cluster/_opacity.py b/packages/python/plotly/plotly/validators/scattermap/cluster/_opacity.py index c5ef3dc0ff3..39e18a643a2 100644 --- a/packages/python/plotly/plotly/validators/scattermap/cluster/_opacity.py +++ b/packages/python/plotly/plotly/validators/scattermap/cluster/_opacity.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="scattermap.cluster", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scattermap.cluster', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/cluster/_opacitysrc.py b/packages/python/plotly/plotly/validators/scattermap/cluster/_opacitysrc.py index 0f94bb99a6e..2041465ac44 100644 --- a/packages/python/plotly/plotly/validators/scattermap/cluster/_opacitysrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/cluster/_opacitysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="opacitysrc", parent_name="scattermap.cluster", **kwargs - ): - super(OpacitysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacitysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='opacitysrc', + parent_name='scattermap.cluster', + **kwargs): + super(OpacitysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/cluster/_size.py b/packages/python/plotly/plotly/validators/scattermap/cluster/_size.py index d4b2a3d564e..0682d9a10f4 100644 --- a/packages/python/plotly/plotly/validators/scattermap/cluster/_size.py +++ b/packages/python/plotly/plotly/validators/scattermap/cluster/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="scattermap.cluster", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattermap.cluster', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/cluster/_sizesrc.py b/packages/python/plotly/plotly/validators/scattermap/cluster/_sizesrc.py index ae6e14f32a8..5c44f79facc 100644 --- a/packages/python/plotly/plotly/validators/scattermap/cluster/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/cluster/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="scattermap.cluster", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scattermap.cluster', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/cluster/_step.py b/packages/python/plotly/plotly/validators/scattermap/cluster/_step.py index faf58a49251..9f50e265bd9 100644 --- a/packages/python/plotly/plotly/validators/scattermap/cluster/_step.py +++ b/packages/python/plotly/plotly/validators/scattermap/cluster/_step.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class StepValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="step", parent_name="scattermap.cluster", **kwargs): - super(StepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StepValidator(_bv.NumberValidator): + def __init__(self, plotly_name='step', + parent_name='scattermap.cluster', + **kwargs): + super(StepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/cluster/_stepsrc.py b/packages/python/plotly/plotly/validators/scattermap/cluster/_stepsrc.py index 2a7048bd55a..e505d915023 100644 --- a/packages/python/plotly/plotly/validators/scattermap/cluster/_stepsrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/cluster/_stepsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StepsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stepsrc", parent_name="scattermap.cluster", **kwargs - ): - super(StepsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StepsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stepsrc', + parent_name='scattermap.cluster', + **kwargs): + super(StepsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_align.py index 29b4e20d153..d71510ad4b9 100644 --- a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_align.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="align", parent_name="scattermap.hoverlabel", **kwargs - ): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='scattermap.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_alignsrc.py index 9c881e4fb9f..e688c8b8eaf 100644 --- a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="scattermap.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='scattermap.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_bgcolor.py index 9bc27168a68..d3153620075 100644 --- a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="scattermap.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='scattermap.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_bgcolorsrc.py index 5d64e9c0cfd..226fb7319f9 100644 --- a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="scattermap.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='scattermap.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_bordercolor.py index 3596b436815..17b2f9e6871 100644 --- a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="scattermap.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='scattermap.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_bordercolorsrc.py index e14a4906403..7838b24c1df 100644 --- a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="bordercolorsrc", - parent_name="scattermap.hoverlabel", - **kwargs, - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='scattermap.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_font.py index 4df641bde95..5bada0f643c 100644 --- a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_font.py @@ -1,88 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="scattermap.hoverlabel", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scattermap.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_namelength.py index 8b7e7a0f5fb..ceb50cf8a5e 100644 --- a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="scattermap.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='scattermap.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_namelengthsrc.py index e5cf1ee2863..a1c44a6811b 100644 --- a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="scattermap.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='scattermap.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_color.py index f4046c640e0..c5b251f8c00 100644 --- a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattermap.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattermap.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_colorsrc.py index 8eb3be01567..aeaf78588c4 100644 --- a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scattermap.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scattermap.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_family.py index e4da0804a69..c559bea32a5 100644 --- a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="scattermap.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattermap.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_familysrc.py index 697e132de39..e62e663f3fe 100644 --- a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_familysrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="familysrc", - parent_name="scattermap.hoverlabel.font", - **kwargs, - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='scattermap.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_lineposition.py index 1da7c967b88..744c478146c 100644 --- a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scattermap.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scattermap.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_linepositionsrc.py index 3e30fe6c372..1a6e1636aea 100644 --- a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="scattermap.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='scattermap.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_shadow.py index 5ea5c3b7d81..62ae84e4516 100644 --- a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="scattermap.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scattermap.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_shadowsrc.py index a518996fa66..688bb74ecd2 100644 --- a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="shadowsrc", - parent_name="scattermap.hoverlabel.font", - **kwargs, - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='scattermap.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_size.py index 1b9fe472a29..65e3508234f 100644 --- a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scattermap.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattermap.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_sizesrc.py index 1a16679b4e3..e974e215568 100644 --- a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="scattermap.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scattermap.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_style.py index 8f72f4481e7..9881895c741 100644 --- a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="scattermap.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattermap.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_stylesrc.py index a1f6b8b72c5..54f705e74ff 100644 --- a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="scattermap.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='scattermap.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_textcase.py index 4649ebd868a..55f3de01da5 100644 --- a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="scattermap.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scattermap.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_textcasesrc.py index 3b2add60539..9bd42b37fd3 100644 --- a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="scattermap.hoverlabel.font", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='scattermap.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_variant.py index 5c5693429cf..c99fed59bf9 100644 --- a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="scattermap.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scattermap.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_variantsrc.py index c73d29a6db2..fb80684e31b 100644 --- a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_variantsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="variantsrc", - parent_name="scattermap.hoverlabel.font", - **kwargs, - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='scattermap.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_weight.py index 4f06431b6f6..3bb2461d859 100644 --- a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="scattermap.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scattermap.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_weightsrc.py index 6152cc52872..bf3b84b1485 100644 --- a/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/hoverlabel/font/_weightsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="weightsrc", - parent_name="scattermap.hoverlabel.font", - **kwargs, - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='scattermap.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/_font.py index b4c3e7a89fb..777fdc36113 100644 --- a/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="scattermap.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scattermap.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/_text.py index 2fef42c1932..83c92768f7a 100644 --- a/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="scattermap.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scattermap.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_color.py index 4f0d423551d..bc0d55d7797 100644 --- a/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scattermap.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattermap.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_family.py index 5b4f40932fd..af4817d9f64 100644 --- a/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scattermap.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattermap.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_lineposition.py index b98b6baafa5..73bcbe0729b 100644 --- a/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scattermap.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scattermap.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_shadow.py index 74ab48f8b08..117dfd027b2 100644 --- a/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scattermap.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scattermap.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_size.py index 511f327a282..f6355d10ebb 100644 --- a/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scattermap.legendgrouptitle.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattermap.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_style.py index cde691b49ce..18627ade0a2 100644 --- a/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scattermap.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattermap.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_textcase.py index 23ba65a9989..d44e6dad987 100644 --- a/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scattermap.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scattermap.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_variant.py index 7021092c3d3..556717e172e 100644 --- a/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scattermap.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scattermap.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_weight.py index 9e6f2c9c816..ec8c07c9b75 100644 --- a/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scattermap/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scattermap.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scattermap.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/line/__init__.py b/packages/python/plotly/plotly/validators/scattermap/line/__init__.py index 63a516578b5..e9749ddd90c 100644 --- a/packages/python/plotly/plotly/validators/scattermap/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermap/line/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._width.WidthValidator", "._color.ColorValidator"] + __name__, + [], + ['._width.WidthValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermap/line/_color.py b/packages/python/plotly/plotly/validators/scattermap/line/_color.py index ec518163174..992f385acf7 100644 --- a/packages/python/plotly/plotly/validators/scattermap/line/_color.py +++ b/packages/python/plotly/plotly/validators/scattermap/line/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="scattermap.line", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattermap.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/line/_width.py b/packages/python/plotly/plotly/validators/scattermap/line/_width.py index 43b6ec3591f..2295886eb2d 100644 --- a/packages/python/plotly/plotly/validators/scattermap/line/_width.py +++ b/packages/python/plotly/plotly/validators/scattermap/line/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="scattermap.line", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='scattermap.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/__init__.py b/packages/python/plotly/plotly/validators/scattermap/marker/__init__.py index 1560474e41f..3d73fa0add5 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._symbolsrc import SymbolsrcValidator from ._symbol import SymbolValidator @@ -28,34 +27,10 @@ from ._allowoverlap import AllowoverlapValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._symbolsrc.SymbolsrcValidator", - "._symbol.SymbolValidator", - "._sizesrc.SizesrcValidator", - "._sizeref.SizerefValidator", - "._sizemode.SizemodeValidator", - "._sizemin.SizeminValidator", - "._size.SizeValidator", - "._showscale.ShowscaleValidator", - "._reversescale.ReversescaleValidator", - "._opacitysrc.OpacitysrcValidator", - "._opacity.OpacityValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - "._anglesrc.AnglesrcValidator", - "._angle.AngleValidator", - "._allowoverlap.AllowoverlapValidator", - ], + ['._symbolsrc.SymbolsrcValidator', '._symbol.SymbolValidator', '._sizesrc.SizesrcValidator', '._sizeref.SizerefValidator', '._sizemode.SizemodeValidator', '._sizemin.SizeminValidator', '._size.SizeValidator', '._showscale.ShowscaleValidator', '._reversescale.ReversescaleValidator', '._opacitysrc.OpacitysrcValidator', '._opacity.OpacityValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator', '._anglesrc.AnglesrcValidator', '._angle.AngleValidator', '._allowoverlap.AllowoverlapValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/_allowoverlap.py b/packages/python/plotly/plotly/validators/scattermap/marker/_allowoverlap.py index 82eb5883733..b58ab58bf87 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/_allowoverlap.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/_allowoverlap.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AllowoverlapValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="allowoverlap", parent_name="scattermap.marker", **kwargs - ): - super(AllowoverlapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AllowoverlapValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='allowoverlap', + parent_name='scattermap.marker', + **kwargs): + super(AllowoverlapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/_angle.py b/packages/python/plotly/plotly/validators/scattermap/marker/_angle.py index c8888312e21..3cc3a61aad2 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/_angle.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/_angle.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class AngleValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="angle", parent_name="scattermap.marker", **kwargs): - super(AngleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AngleValidator(_bv.NumberValidator): + def __init__(self, plotly_name='angle', + parent_name='scattermap.marker', + **kwargs): + super(AngleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/_anglesrc.py b/packages/python/plotly/plotly/validators/scattermap/marker/_anglesrc.py index 9b33c61f034..13b19e445a8 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/_anglesrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/_anglesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AnglesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="anglesrc", parent_name="scattermap.marker", **kwargs - ): - super(AnglesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AnglesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='anglesrc', + parent_name='scattermap.marker', + **kwargs): + super(AnglesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/_autocolorscale.py b/packages/python/plotly/plotly/validators/scattermap/marker/_autocolorscale.py index aead9eaecca..72813a8d077 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="scattermap.marker", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='scattermap.marker', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/_cauto.py b/packages/python/plotly/plotly/validators/scattermap/marker/_cauto.py index 70a73b27b7e..03233ef769c 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/_cauto.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/_cauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cauto", parent_name="scattermap.marker", **kwargs): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='scattermap.marker', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/_cmax.py b/packages/python/plotly/plotly/validators/scattermap/marker/_cmax.py index 4f7dd5fa236..311eb2460f2 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/_cmax.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/_cmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmax", parent_name="scattermap.marker", **kwargs): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='scattermap.marker', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/_cmid.py b/packages/python/plotly/plotly/validators/scattermap/marker/_cmid.py index 9f496299131..1082242f407 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/_cmid.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/_cmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmid", parent_name="scattermap.marker", **kwargs): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='scattermap.marker', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/_cmin.py b/packages/python/plotly/plotly/validators/scattermap/marker/_cmin.py index 84c56d57c8d..59626be90ab 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/_cmin.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/_cmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmin", parent_name="scattermap.marker", **kwargs): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='scattermap.marker', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/_color.py b/packages/python/plotly/plotly/validators/scattermap/marker/_color.py index d4fefd25668..d8eaa1358f4 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/_color.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="scattermap.marker", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - colorscale_path=kwargs.pop( - "colorscale_path", "scattermap.marker.colorscale" - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattermap.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + colorscale_path=kwargs.pop('colorscale_path', 'scattermap.marker.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/_coloraxis.py b/packages/python/plotly/plotly/validators/scattermap/marker/_coloraxis.py index 4cffb019361..034223606a8 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/_coloraxis.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name="coloraxis", parent_name="scattermap.marker", **kwargs - ): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='scattermap.marker', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/_colorbar.py b/packages/python/plotly/plotly/validators/scattermap/marker/_colorbar.py index fc17b1b5114..c6ee70dc17b 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/_colorbar.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/_colorbar.py @@ -1,282 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="colorbar", parent_name="scattermap.marker", **kwargs - ): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.scatter - map.marker.colorbar.Tickformatstop` instances - or dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.scattermap.marker.colorbar.tickformatstopdefa - ults), sets the default property values to use - for elements of - scattermap.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.scattermap.marker. - colorbar.Title` instance or dict with - compatible properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='scattermap.marker', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/_colorscale.py b/packages/python/plotly/plotly/validators/scattermap/marker/_colorscale.py index 2475facda12..6c37d7d9225 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/_colorscale.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="scattermap.marker", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='scattermap.marker', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/_colorsrc.py b/packages/python/plotly/plotly/validators/scattermap/marker/_colorsrc.py index 4e879f8043d..611809ae3cc 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scattermap.marker", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scattermap.marker', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/_opacity.py b/packages/python/plotly/plotly/validators/scattermap/marker/_opacity.py index 04896701e0b..2abe6ea9663 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/_opacity.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="scattermap.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scattermap.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/_opacitysrc.py b/packages/python/plotly/plotly/validators/scattermap/marker/_opacitysrc.py index b5d305f9264..3e824574f2c 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/_opacitysrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/_opacitysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="opacitysrc", parent_name="scattermap.marker", **kwargs - ): - super(OpacitysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacitysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='opacitysrc', + parent_name='scattermap.marker', + **kwargs): + super(OpacitysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/_reversescale.py b/packages/python/plotly/plotly/validators/scattermap/marker/_reversescale.py index af3e5abc213..ef66afd9baa 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/_reversescale.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="scattermap.marker", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='scattermap.marker', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/_showscale.py b/packages/python/plotly/plotly/validators/scattermap/marker/_showscale.py index 75fa2cc9eb5..d77494fefa3 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/_showscale.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/_showscale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showscale", parent_name="scattermap.marker", **kwargs - ): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='scattermap.marker', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/_size.py b/packages/python/plotly/plotly/validators/scattermap/marker/_size.py index 31c07b717e2..dd4be4d15e6 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="scattermap.marker", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattermap.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/_sizemin.py b/packages/python/plotly/plotly/validators/scattermap/marker/_sizemin.py index 2a7ccd99dba..4593c32a111 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/_sizemin.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/_sizemin.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="sizemin", parent_name="scattermap.marker", **kwargs - ): - super(SizeminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sizemin', + parent_name='scattermap.marker', + **kwargs): + super(SizeminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/_sizemode.py b/packages/python/plotly/plotly/validators/scattermap/marker/_sizemode.py index 7bd38b5d493..f5438d25037 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/_sizemode.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/_sizemode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="sizemode", parent_name="scattermap.marker", **kwargs - ): - super(SizemodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["diameter", "area"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizemodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='sizemode', + parent_name='scattermap.marker', + **kwargs): + super(SizemodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['diameter', 'area']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/_sizeref.py b/packages/python/plotly/plotly/validators/scattermap/marker/_sizeref.py index 167ef979e33..8ddf140ee97 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/_sizeref.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/_sizeref.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="sizeref", parent_name="scattermap.marker", **kwargs - ): - super(SizerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizerefValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sizeref', + parent_name='scattermap.marker', + **kwargs): + super(SizerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/_sizesrc.py b/packages/python/plotly/plotly/validators/scattermap/marker/_sizesrc.py index 940dd1adc85..964496cf7d4 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="scattermap.marker", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scattermap.marker', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/_symbol.py b/packages/python/plotly/plotly/validators/scattermap/marker/_symbol.py index 44ec16ec9ce..2fb98aca023 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/_symbol.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/_symbol.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SymbolValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="symbol", parent_name="scattermap.marker", **kwargs): - super(SymbolValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SymbolValidator(_bv.StringValidator): + def __init__(self, plotly_name='symbol', + parent_name='scattermap.marker', + **kwargs): + super(SymbolValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/_symbolsrc.py b/packages/python/plotly/plotly/validators/scattermap/marker/_symbolsrc.py index 878194d24fd..9c205358a82 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/_symbolsrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/_symbolsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="symbolsrc", parent_name="scattermap.marker", **kwargs - ): - super(SymbolsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SymbolsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='symbolsrc', + parent_name='scattermap.marker', + **kwargs): + super(SymbolsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_bgcolor.py index 6cd837fae41..0cbe7875c5b 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="scattermap.marker.colorbar", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_bordercolor.py index 817f4a3261e..416923bddd8 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_bordercolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bordercolor", - parent_name="scattermap.marker.colorbar", - **kwargs, - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_borderwidth.py index e13a66c0455..438895c933c 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_borderwidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="borderwidth", - parent_name="scattermap.marker.colorbar", - **kwargs, - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_dtick.py index 2107e5928c3..83bc511cbc2 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="scattermap.marker.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_exponentformat.py index ba0b8e0a609..4507c4fabbd 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_exponentformat.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="exponentformat", - parent_name="scattermap.marker.colorbar", - **kwargs, - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_labelalias.py index e787dba6546..38d30d7d5fe 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_labelalias.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="labelalias", - parent_name="scattermap.marker.colorbar", - **kwargs, - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_len.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_len.py index a7aa81599e0..40b733d6a72 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_len.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="len", parent_name="scattermap.marker.colorbar", **kwargs - ): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_lenmode.py index 27487baeff4..a39e0d4e753 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_lenmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="lenmode", parent_name="scattermap.marker.colorbar", **kwargs - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_minexponent.py index 7f3b748daeb..ae7a0cfd43d 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_minexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="minexponent", - parent_name="scattermap.marker.colorbar", - **kwargs, - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_nticks.py index ce86070b2f1..ea8abe63f3e 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="scattermap.marker.colorbar", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_orientation.py index 4df6303dfb5..aca9bb06a40 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_orientation.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="orientation", - parent_name="scattermap.marker.colorbar", - **kwargs, - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_outlinecolor.py index 0796630e3db..8cdb6aceb70 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_outlinecolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="outlinecolor", - parent_name="scattermap.marker.colorbar", - **kwargs, - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_outlinewidth.py index 049c4df1f8a..a245471b0bc 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_outlinewidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="outlinewidth", - parent_name="scattermap.marker.colorbar", - **kwargs, - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_separatethousands.py index b10abcb9395..706046bd6b9 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="scattermap.marker.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_showexponent.py index 6f17a280bf0..ea5055eb2c7 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_showexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showexponent", - parent_name="scattermap.marker.colorbar", - **kwargs, - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_showticklabels.py index ebce23113f0..515aa6e6381 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="scattermap.marker.colorbar", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_showtickprefix.py index 144c21773ae..0d843e7e94c 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="scattermap.marker.colorbar", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_showticksuffix.py index 26473b2d460..3d2b382350d 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="scattermap.marker.colorbar", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_thickness.py index 3389d0ce71b..d6a8dd1fd84 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_thickness.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="thickness", - parent_name="scattermap.marker.colorbar", - **kwargs, - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_thicknessmode.py index 2bbae3981eb..37da4647931 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_thicknessmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="thicknessmode", - parent_name="scattermap.marker.colorbar", - **kwargs, - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tick0.py index a2fd5c42a5c..7a5267e870d 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="scattermap.marker.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickangle.py index 2e9082337c9..dcedd0ac052 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickangle.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name="tickangle", - parent_name="scattermap.marker.colorbar", - **kwargs, - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickcolor.py index 196a3382380..daf79e1af4c 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickcolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="tickcolor", - parent_name="scattermap.marker.colorbar", - **kwargs, - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickfont.py index d8e66d22bf3..c666ce7fec2 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="scattermap.marker.colorbar", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickformat.py index dfc46830a5a..716bcd2fb43 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickformat.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickformat", - parent_name="scattermap.marker.colorbar", - **kwargs, - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickformatstopdefaults.py index e8e646b6546..c4943a41f19 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="scattermap.marker.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickformatstops.py index 8213517155c..37b25dcd649 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="scattermap.marker.colorbar", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticklabeloverflow.py index 3fbb3a38610..2682801fce5 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="scattermap.marker.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticklabelposition.py index fa873a7fff6..e2a128fd428 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="scattermap.marker.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticklabelstep.py index c6cc44d50ea..2da390c738d 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticklabelstep.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="ticklabelstep", - parent_name="scattermap.marker.colorbar", - **kwargs, - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticklen.py index 0f2c0e9662e..0c85c22446b 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="scattermap.marker.colorbar", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickmode.py index cc7bfa57cb7..df4026c7dd6 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="scattermap.marker.colorbar", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickprefix.py index 234d6b6977f..fb4e41899c7 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickprefix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickprefix", - parent_name="scattermap.marker.colorbar", - **kwargs, - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticks.py index 9344604f836..cc6a88bcb13 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="scattermap.marker.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticksuffix.py index c3853b82641..230af0b1ad3 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticksuffix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="ticksuffix", - parent_name="scattermap.marker.colorbar", - **kwargs, - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticktext.py index bf758dea214..d4e49d806f2 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="scattermap.marker.colorbar", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticktextsrc.py index 6ad9c7c9505..757b2b96bd5 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ticktextsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="ticktextsrc", - parent_name="scattermap.marker.colorbar", - **kwargs, - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickvals.py index 971c1070ac7..a526d13487c 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="scattermap.marker.colorbar", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickvalssrc.py index 1c8c6af3c83..3ddef7c8c4e 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickvalssrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="tickvalssrc", - parent_name="scattermap.marker.colorbar", - **kwargs, - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickwidth.py index 99db01c8d11..5a6f7c32b51 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_tickwidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="tickwidth", - parent_name="scattermap.marker.colorbar", - **kwargs, - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_title.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_title.py index fe3523b7fbe..70ba32f9982 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="scattermap.marker.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_x.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_x.py index a30ad917da4..43d62a7508b 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_x.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="x", parent_name="scattermap.marker.colorbar", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_xanchor.py index bc329f9bfad..d8865c15b0d 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="scattermap.marker.colorbar", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_xpad.py index 67d61b4fc90..6ba256598b4 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_xpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="xpad", parent_name="scattermap.marker.colorbar", **kwargs - ): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_xref.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_xref.py index 4b83341586f..a9ce2ae59e0 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xref", parent_name="scattermap.marker.colorbar", **kwargs - ): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_y.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_y.py index 17d74d9cdc2..d4b8e924919 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_y.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="y", parent_name="scattermap.marker.colorbar", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_yanchor.py index 058a2451e5c..ac75970bf9f 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="scattermap.marker.colorbar", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ypad.py index 25de6732122..cd52c932a22 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_ypad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ypad", parent_name="scattermap.marker.colorbar", **kwargs - ): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_yref.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_yref.py index 692edeb58cd..2e5e97eb74a 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yref", parent_name="scattermap.marker.colorbar", **kwargs - ): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='scattermap.marker.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_color.py index ec378db7158..a9b7c19d794 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scattermap.marker.colorbar.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattermap.marker.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_family.py index 2ce2c8a5ea0..592143f6f38 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scattermap.marker.colorbar.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattermap.marker.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_lineposition.py index c3e2c98e308..c796ff57c58 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scattermap.marker.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scattermap.marker.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_shadow.py index 61568938275..2bca4540420 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scattermap.marker.colorbar.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scattermap.marker.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_size.py index ea700bfec88..2a69465e376 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scattermap.marker.colorbar.tickfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattermap.marker.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_style.py index d56e408d27d..cfea80d99c4 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scattermap.marker.colorbar.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattermap.marker.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_textcase.py index 916d34bd90a..75d703248ba 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scattermap.marker.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scattermap.marker.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_variant.py index eee2dbe558c..0a4a660b47f 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scattermap.marker.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scattermap.marker.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_weight.py index eeb6bcd397f..8ba39de5a6e 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scattermap.marker.colorbar.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scattermap.marker.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickformatstop/_dtickrange.py index 7cba676b0d9..3f3899b1b01 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="scattermap.marker.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "valType": "any"}, - {"editType": "calc", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='scattermap.marker.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'valType': 'any'}, {'editType': 'calc', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickformatstop/_enabled.py index 999dd894ad1..6a235716c08 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="scattermap.marker.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='scattermap.marker.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickformatstop/_name.py index 43ca86bc531..cbf41b152f0 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="scattermap.marker.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='scattermap.marker.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickformatstop/_templateitemname.py index 7b58f36a966..b2490117f2a 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="scattermap.marker.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='scattermap.marker.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickformatstop/_value.py index b685d10f293..ec791f0d4c3 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="scattermap.marker.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='scattermap.marker.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/_font.py index cbdde43314c..b4a1edd525d 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/_font.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="font", - parent_name="scattermap.marker.colorbar.title", - **kwargs, - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scattermap.marker.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/_side.py index 1006d026f4c..3a53953cc56 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/_side.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="side", - parent_name="scattermap.marker.colorbar.title", - **kwargs, - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='scattermap.marker.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/_text.py index b040699ac4e..a6c161df5a1 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/_text.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="text", - parent_name="scattermap.marker.colorbar.title", - **kwargs, - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scattermap.marker.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_color.py index 36d0585ea8f..8f393d8ee46 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scattermap.marker.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattermap.marker.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_family.py index 857033b41df..d915d96fdb4 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scattermap.marker.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattermap.marker.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_lineposition.py index b6b54255eb3..d18d9d36ff1 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scattermap.marker.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scattermap.marker.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_shadow.py index c1d0017affe..56db8777e42 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scattermap.marker.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scattermap.marker.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_size.py index 45fa89752db..4fef09d182c 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scattermap.marker.colorbar.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattermap.marker.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_style.py index f4e2a297b92..758d491fa3e 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scattermap.marker.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattermap.marker.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_textcase.py index 3ea2d402958..f09ad5e80c8 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scattermap.marker.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scattermap.marker.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_variant.py index ed5b4fb0e5a..c4c722f295d 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scattermap.marker.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scattermap.marker.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_weight.py index b324e804484..7b43d532b81 100644 --- a/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scattermap/marker/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scattermap.marker.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scattermap.marker.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/selected/__init__.py b/packages/python/plotly/plotly/validators/scattermap/selected/__init__.py index e9bdb89f26d..8ee3c0f5c26 100644 --- a/packages/python/plotly/plotly/validators/scattermap/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermap/selected/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.MarkerValidator"] + __name__, + [], + ['._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermap/selected/_marker.py b/packages/python/plotly/plotly/validators/scattermap/selected/_marker.py index d8c13c04f06..cb034504592 100644 --- a/packages/python/plotly/plotly/validators/scattermap/selected/_marker.py +++ b/packages/python/plotly/plotly/validators/scattermap/selected/_marker.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="scattermap.selected", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. - size - Sets the marker size of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scattermap.selected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/scattermap/selected/marker/__init__.py index 8c321a38bc5..b7768f024e8 100644 --- a/packages/python/plotly/plotly/validators/scattermap/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermap/selected/marker/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._size import SizeValidator from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._size.SizeValidator", - "._opacity.OpacityValidator", - "._color.ColorValidator", - ], + ['._size.SizeValidator', '._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermap/selected/marker/_color.py b/packages/python/plotly/plotly/validators/scattermap/selected/marker/_color.py index 1be4f77e98c..b613f37b2f2 100644 --- a/packages/python/plotly/plotly/validators/scattermap/selected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scattermap/selected/marker/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattermap.selected.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattermap.selected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/selected/marker/_opacity.py b/packages/python/plotly/plotly/validators/scattermap/selected/marker/_opacity.py index ebc2f57c675..7acbcf7400a 100644 --- a/packages/python/plotly/plotly/validators/scattermap/selected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scattermap/selected/marker/_opacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="scattermap.selected.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scattermap.selected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/selected/marker/_size.py b/packages/python/plotly/plotly/validators/scattermap/selected/marker/_size.py index 0cad239bad7..b9dd67c13f9 100644 --- a/packages/python/plotly/plotly/validators/scattermap/selected/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scattermap/selected/marker/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scattermap.selected.marker", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattermap.selected.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/stream/__init__.py b/packages/python/plotly/plotly/validators/scattermap/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/scattermap/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermap/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermap/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/scattermap/stream/_maxpoints.py index 3c805e0ae64..4fc8b35fb55 100644 --- a/packages/python/plotly/plotly/validators/scattermap/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/scattermap/stream/_maxpoints.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxpoints", parent_name="scattermap.stream", **kwargs - ): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='scattermap.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/stream/_token.py b/packages/python/plotly/plotly/validators/scattermap/stream/_token.py index 1187bbf7476..7111dad85c0 100644 --- a/packages/python/plotly/plotly/validators/scattermap/stream/_token.py +++ b/packages/python/plotly/plotly/validators/scattermap/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="scattermap.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='scattermap.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/textfont/__init__.py b/packages/python/plotly/plotly/validators/scattermap/textfont/__init__.py index 9301c0688ce..47e012a7900 100644 --- a/packages/python/plotly/plotly/validators/scattermap/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermap/textfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._style import StyleValidator @@ -9,15 +8,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._style.StyleValidator', '._size.SizeValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermap/textfont/_color.py b/packages/python/plotly/plotly/validators/scattermap/textfont/_color.py index 995e394128f..2ed6a42d93d 100644 --- a/packages/python/plotly/plotly/validators/scattermap/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/scattermap/textfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattermap.textfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattermap.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/textfont/_family.py b/packages/python/plotly/plotly/validators/scattermap/textfont/_family.py index e2982376116..0470ee7c56f 100644 --- a/packages/python/plotly/plotly/validators/scattermap/textfont/_family.py +++ b/packages/python/plotly/plotly/validators/scattermap/textfont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="scattermap.textfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattermap.textfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/textfont/_size.py b/packages/python/plotly/plotly/validators/scattermap/textfont/_size.py index 69c62feba40..c8f8755d23e 100644 --- a/packages/python/plotly/plotly/validators/scattermap/textfont/_size.py +++ b/packages/python/plotly/plotly/validators/scattermap/textfont/_size.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="scattermap.textfont", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattermap.textfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/textfont/_style.py b/packages/python/plotly/plotly/validators/scattermap/textfont/_style.py index ca1f49fa285..112f347e36d 100644 --- a/packages/python/plotly/plotly/validators/scattermap/textfont/_style.py +++ b/packages/python/plotly/plotly/validators/scattermap/textfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="scattermap.textfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattermap.textfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/textfont/_weight.py b/packages/python/plotly/plotly/validators/scattermap/textfont/_weight.py index 27cf0506c58..e982494b69a 100644 --- a/packages/python/plotly/plotly/validators/scattermap/textfont/_weight.py +++ b/packages/python/plotly/plotly/validators/scattermap/textfont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="scattermap.textfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scattermap.textfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/unselected/__init__.py b/packages/python/plotly/plotly/validators/scattermap/unselected/__init__.py index e9bdb89f26d..8ee3c0f5c26 100644 --- a/packages/python/plotly/plotly/validators/scattermap/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermap/unselected/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.MarkerValidator"] + __name__, + [], + ['._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermap/unselected/_marker.py b/packages/python/plotly/plotly/validators/scattermap/unselected/_marker.py index 51971a7f67d..9133016a93e 100644 --- a/packages/python/plotly/plotly/validators/scattermap/unselected/_marker.py +++ b/packages/python/plotly/plotly/validators/scattermap/unselected/_marker.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="scattermap.unselected", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - size - Sets the marker size of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scattermap.unselected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/scattermap/unselected/marker/__init__.py index 8c321a38bc5..b7768f024e8 100644 --- a/packages/python/plotly/plotly/validators/scattermap/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermap/unselected/marker/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._size import SizeValidator from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._size.SizeValidator", - "._opacity.OpacityValidator", - "._color.ColorValidator", - ], + ['._size.SizeValidator', '._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermap/unselected/marker/_color.py b/packages/python/plotly/plotly/validators/scattermap/unselected/marker/_color.py index 20c1ae57cb3..6af514ec334 100644 --- a/packages/python/plotly/plotly/validators/scattermap/unselected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scattermap/unselected/marker/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattermap.unselected.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattermap.unselected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/unselected/marker/_opacity.py b/packages/python/plotly/plotly/validators/scattermap/unselected/marker/_opacity.py index f1d964847a0..982c7f8010d 100644 --- a/packages/python/plotly/plotly/validators/scattermap/unselected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scattermap/unselected/marker/_opacity.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="opacity", - parent_name="scattermap.unselected.marker", - **kwargs, - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scattermap.unselected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermap/unselected/marker/_size.py b/packages/python/plotly/plotly/validators/scattermap/unselected/marker/_size.py index 9a0a48c2c2a..00607188985 100644 --- a/packages/python/plotly/plotly/validators/scattermap/unselected/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scattermap/unselected/marker/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scattermap.unselected.marker", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattermap.unselected.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/__init__.py index 5abe04051d4..1cb9cab4391 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._unselected import UnselectedValidator @@ -51,57 +50,10 @@ from ._below import BelowValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._unselected.UnselectedValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._texttemplatesrc.TexttemplatesrcValidator", - "._texttemplate.TexttemplateValidator", - "._textsrc.TextsrcValidator", - "._textposition.TextpositionValidator", - "._textfont.TextfontValidator", - "._text.TextValidator", - "._subplot.SubplotValidator", - "._stream.StreamValidator", - "._showlegend.ShowlegendValidator", - "._selectedpoints.SelectedpointsValidator", - "._selected.SelectedValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._mode.ModeValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._marker.MarkerValidator", - "._lonsrc.LonsrcValidator", - "._lon.LonValidator", - "._line.LineValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._latsrc.LatsrcValidator", - "._lat.LatValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._fillcolor.FillcolorValidator", - "._fill.FillValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._connectgaps.ConnectgapsValidator", - "._cluster.ClusterValidator", - "._below.BelowValidator", - ], + ['._visible.VisibleValidator', '._unselected.UnselectedValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._texttemplatesrc.TexttemplatesrcValidator', '._texttemplate.TexttemplateValidator', '._textsrc.TextsrcValidator', '._textposition.TextpositionValidator', '._textfont.TextfontValidator', '._text.TextValidator', '._subplot.SubplotValidator', '._stream.StreamValidator', '._showlegend.ShowlegendValidator', '._selectedpoints.SelectedpointsValidator', '._selected.SelectedValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._mode.ModeValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._marker.MarkerValidator', '._lonsrc.LonsrcValidator', '._lon.LonValidator', '._line.LineValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._latsrc.LatsrcValidator', '._lat.LatValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._fillcolor.FillcolorValidator', '._fill.FillValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._connectgaps.ConnectgapsValidator', '._cluster.ClusterValidator', '._below.BelowValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_below.py b/packages/python/plotly/plotly/validators/scattermapbox/_below.py index 342cd587488..b0d2bd083e5 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_below.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_below.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BelowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="below", parent_name="scattermapbox", **kwargs): - super(BelowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BelowValidator(_bv.StringValidator): + def __init__(self, plotly_name='below', + parent_name='scattermapbox', + **kwargs): + super(BelowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_cluster.py b/packages/python/plotly/plotly/validators/scattermapbox/_cluster.py index 3aa413320ef..e744acbca85 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_cluster.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_cluster.py @@ -1,49 +1,15 @@ -import _plotly_utils.basevalidators -class ClusterValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="cluster", parent_name="scattermapbox", **kwargs): - super(ClusterValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Cluster"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the color for each cluster step. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - enabled - Determines whether clustering is enabled or - disabled. - maxzoom - Sets the maximum zoom level. At zoom levels - equal to or greater than this, points will - never be clustered. - opacity - Sets the marker opacity. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - size - Sets the size for each cluster step. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - step - Sets how many points it takes to create a - cluster or advance to the next cluster step. - Use this in conjunction with arrays for `size` - and / or `color`. If an integer, steps start at - multiples of this number. If an array, each - step extends from the given value until one - less than the next value. - stepsrc - Sets the source reference on Chart Studio Cloud - for `step`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ClusterValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='cluster', + parent_name='scattermapbox', + **kwargs): + super(ClusterValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Cluster'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_connectgaps.py b/packages/python/plotly/plotly/validators/scattermapbox/_connectgaps.py index e7ccb84266d..30deca5260f 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_connectgaps.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_connectgaps.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="connectgaps", parent_name="scattermapbox", **kwargs - ): - super(ConnectgapsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ConnectgapsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='connectgaps', + parent_name='scattermapbox', + **kwargs): + super(ConnectgapsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_customdata.py b/packages/python/plotly/plotly/validators/scattermapbox/_customdata.py index 25a7822f448..02f83c72e65 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_customdata.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="scattermapbox", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='scattermapbox', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_customdatasrc.py b/packages/python/plotly/plotly/validators/scattermapbox/_customdatasrc.py index 9165d844bc4..55f6b5fe84f 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_customdatasrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="customdatasrc", parent_name="scattermapbox", **kwargs - ): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='scattermapbox', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_fill.py b/packages/python/plotly/plotly/validators/scattermapbox/_fill.py index 61b0c4a0247..971a9170017 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_fill.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_fill.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class FillValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="fill", parent_name="scattermapbox", **kwargs): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["none", "toself"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='fill', + parent_name='scattermapbox', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['none', 'toself']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_fillcolor.py b/packages/python/plotly/plotly/validators/scattermapbox/_fillcolor.py index 68509325dd9..1c612b23b5d 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_fillcolor.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_fillcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="fillcolor", parent_name="scattermapbox", **kwargs): - super(FillcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FillcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fillcolor', + parent_name='scattermapbox', + **kwargs): + super(FillcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_hoverinfo.py b/packages/python/plotly/plotly/validators/scattermapbox/_hoverinfo.py index 5f31c98bb4d..05a3f87f538 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="scattermapbox", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["lon", "lat", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='scattermapbox', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['lon', 'lat', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/scattermapbox/_hoverinfosrc.py index ca674e99876..5706f58df9f 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_hoverinfosrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hoverinfosrc", parent_name="scattermapbox", **kwargs - ): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='scattermapbox', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_hoverlabel.py b/packages/python/plotly/plotly/validators/scattermapbox/_hoverlabel.py index d64d4726906..fe99250d013 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="scattermapbox", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='scattermapbox', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_hovertemplate.py b/packages/python/plotly/plotly/validators/scattermapbox/_hovertemplate.py index e852a325e04..aa872638308 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_hovertemplate.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="hovertemplate", parent_name="scattermapbox", **kwargs - ): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='scattermapbox', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/scattermapbox/_hovertemplatesrc.py index e9bd881f568..73a38dae2d4 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_hovertemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertemplatesrc", parent_name="scattermapbox", **kwargs - ): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='scattermapbox', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_hovertext.py b/packages/python/plotly/plotly/validators/scattermapbox/_hovertext.py index 5551981a296..e3d6d7a625a 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_hovertext.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="scattermapbox", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='scattermapbox', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_hovertextsrc.py b/packages/python/plotly/plotly/validators/scattermapbox/_hovertextsrc.py index 793d83d5476..d23581f737e 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_hovertextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertextsrc", parent_name="scattermapbox", **kwargs - ): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='scattermapbox', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_ids.py b/packages/python/plotly/plotly/validators/scattermapbox/_ids.py index 69ed8265a67..39d5c7c3498 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_ids.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="scattermapbox", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='scattermapbox', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_idssrc.py b/packages/python/plotly/plotly/validators/scattermapbox/_idssrc.py index ab8392b80c6..c235c41eb19 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_idssrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="scattermapbox", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='scattermapbox', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_lat.py b/packages/python/plotly/plotly/validators/scattermapbox/_lat.py index b42e1bad00b..b69258a306f 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_lat.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_lat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LatValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="lat", parent_name="scattermapbox", **kwargs): - super(LatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LatValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='lat', + parent_name='scattermapbox', + **kwargs): + super(LatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_latsrc.py b/packages/python/plotly/plotly/validators/scattermapbox/_latsrc.py index 0b8b1ff55a2..78aef7da824 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_latsrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_latsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LatsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="latsrc", parent_name="scattermapbox", **kwargs): - super(LatsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LatsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='latsrc', + parent_name='scattermapbox', + **kwargs): + super(LatsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_legend.py b/packages/python/plotly/plotly/validators/scattermapbox/_legend.py index 61eda251e71..a54593a758e 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_legend.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="scattermapbox", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='scattermapbox', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_legendgroup.py b/packages/python/plotly/plotly/validators/scattermapbox/_legendgroup.py index 3f0e17ae1b3..6345883a257 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_legendgroup.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="legendgroup", parent_name="scattermapbox", **kwargs - ): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='scattermapbox', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/scattermapbox/_legendgrouptitle.py index 081389079e7..813ad7077bb 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="scattermapbox", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='scattermapbox', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_legendrank.py b/packages/python/plotly/plotly/validators/scattermapbox/_legendrank.py index 9b6de458f80..193ddd056b8 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_legendrank.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="scattermapbox", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='scattermapbox', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_legendwidth.py b/packages/python/plotly/plotly/validators/scattermapbox/_legendwidth.py index 30a7362088b..010ffeae6a5 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_legendwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="legendwidth", parent_name="scattermapbox", **kwargs - ): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='scattermapbox', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_line.py b/packages/python/plotly/plotly/validators/scattermapbox/_line.py index 0aa64d96a0f..17de1283382 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_line.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_line.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="scattermapbox", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the line color. - width - Sets the line width (in px). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='scattermapbox', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_lon.py b/packages/python/plotly/plotly/validators/scattermapbox/_lon.py index 3b2bfb0d0f5..e60123b734f 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_lon.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_lon.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LonValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="lon", parent_name="scattermapbox", **kwargs): - super(LonValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LonValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='lon', + parent_name='scattermapbox', + **kwargs): + super(LonValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_lonsrc.py b/packages/python/plotly/plotly/validators/scattermapbox/_lonsrc.py index 54262bf32d6..deddfe75175 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_lonsrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_lonsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LonsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="lonsrc", parent_name="scattermapbox", **kwargs): - super(LonsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LonsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='lonsrc', + parent_name='scattermapbox', + **kwargs): + super(LonsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_marker.py b/packages/python/plotly/plotly/validators/scattermapbox/_marker.py index 40b321ce546..44700ee8b7f 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_marker.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_marker.py @@ -1,145 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="scattermapbox", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - allowoverlap - Flag to draw all symbols, even if they overlap. - angle - Sets the marker orientation from true North, in - degrees clockwise. When using the "auto" - default, no rotation would be applied in - perspective views which is different from using - a zero angle. - anglesrc - Sets the source reference on Chart Studio Cloud - for `angle`. - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.scattermapbox.mark - er.ColorBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - opacity - Sets the marker opacity. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. - size - Sets the marker size (in px). - sizemin - Has an effect only if `marker.size` is set to a - numerical array. Sets the minimum size (in px) - of the rendered marker points. - sizemode - Has an effect only if `marker.size` is set to a - numerical array. Sets the rule for which the - data in `size` is converted to pixels. - sizeref - Has an effect only if `marker.size` is set to a - numerical array. Sets the scale factor used to - determine the rendered size of marker points. - Use with `sizemin` and `sizemode`. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - symbol - Sets the marker symbol. Full list: - https://www.mapbox.com/maki-icons/ Note that - the array `marker.color` and `marker.size` are - only available for "circle" symbols. - symbolsrc - Sets the source reference on Chart Studio Cloud - for `symbol`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scattermapbox', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_meta.py b/packages/python/plotly/plotly/validators/scattermapbox/_meta.py index 359ee67e58f..49c54408331 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_meta.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="scattermapbox", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='scattermapbox', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_metasrc.py b/packages/python/plotly/plotly/validators/scattermapbox/_metasrc.py index bf6b4fca60a..7012ad49e94 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_metasrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="scattermapbox", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='scattermapbox', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_mode.py b/packages/python/plotly/plotly/validators/scattermapbox/_mode.py index e0d4ef26e6f..cca4099a00c 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_mode.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_mode.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="mode", parent_name="scattermapbox", **kwargs): - super(ModeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["lines", "markers", "text"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ModeValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='mode', + parent_name='scattermapbox', + **kwargs): + super(ModeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['lines', 'markers', 'text']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_name.py b/packages/python/plotly/plotly/validators/scattermapbox/_name.py index 6088c21e6ec..3f83ceac50f 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_name.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="scattermapbox", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='scattermapbox', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_opacity.py b/packages/python/plotly/plotly/validators/scattermapbox/_opacity.py index 3fdf2477949..93c4f76d9ae 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_opacity.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="scattermapbox", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scattermapbox', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_selected.py b/packages/python/plotly/plotly/validators/scattermapbox/_selected.py index 5117d010b92..7648727d63b 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_selected.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_selected.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="selected", parent_name="scattermapbox", **kwargs): - super(SelectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Selected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.scattermapbox.sele - cted.Marker` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='selected', + parent_name='scattermapbox', + **kwargs): + super(SelectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_selectedpoints.py b/packages/python/plotly/plotly/validators/scattermapbox/_selectedpoints.py index 284e50bebfd..767e91948fc 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_selectedpoints.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_selectedpoints.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="selectedpoints", parent_name="scattermapbox", **kwargs - ): - super(SelectedpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SelectedpointsValidator(_bv.AnyValidator): + def __init__(self, plotly_name='selectedpoints', + parent_name='scattermapbox', + **kwargs): + super(SelectedpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_showlegend.py b/packages/python/plotly/plotly/validators/scattermapbox/_showlegend.py index f1be8c54715..41cacc2913b 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_showlegend.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="scattermapbox", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='scattermapbox', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_stream.py b/packages/python/plotly/plotly/validators/scattermapbox/_stream.py index 5726a169f76..967efe07f62 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_stream.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="scattermapbox", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='scattermapbox', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_subplot.py b/packages/python/plotly/plotly/validators/scattermapbox/_subplot.py index 3a32042c1b1..f98cd1404da 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_subplot.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_subplot.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SubplotValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="subplot", parent_name="scattermapbox", **kwargs): - super(SubplotValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "mapbox"), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SubplotValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='subplot', + parent_name='scattermapbox', + **kwargs): + super(SubplotValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'mapbox'), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_text.py b/packages/python/plotly/plotly/validators/scattermapbox/_text.py index 3943319278c..021046192b4 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_text.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="scattermapbox", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scattermapbox', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_textfont.py b/packages/python/plotly/plotly/validators/scattermapbox/_textfont.py index 6bc7ab76fc7..ba5a0326f3d 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_textfont.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_textfont.py @@ -1,42 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="textfont", parent_name="scattermapbox", **kwargs): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='scattermapbox', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_textposition.py b/packages/python/plotly/plotly/validators/scattermapbox/_textposition.py index 14895ddd3ac..9b3b4925c18 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_textposition.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_textposition.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textposition", parent_name="scattermapbox", **kwargs - ): - super(TextpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "top left", - "top center", - "top right", - "middle left", - "middle center", - "middle right", - "bottom left", - "bottom center", - "bottom right", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textposition', + parent_name='scattermapbox', + **kwargs): + super(TextpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['top left', 'top center', 'top right', 'middle left', 'middle center', 'middle right', 'bottom left', 'bottom center', 'bottom right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_textsrc.py b/packages/python/plotly/plotly/validators/scattermapbox/_textsrc.py index 114f1560a53..58b5820abb1 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_textsrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="scattermapbox", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='scattermapbox', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_texttemplate.py b/packages/python/plotly/plotly/validators/scattermapbox/_texttemplate.py index a41df0ba1fc..45f033638de 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_texttemplate.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_texttemplate.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="texttemplate", parent_name="scattermapbox", **kwargs - ): - super(TexttemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='texttemplate', + parent_name='scattermapbox', + **kwargs): + super(TexttemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_texttemplatesrc.py b/packages/python/plotly/plotly/validators/scattermapbox/_texttemplatesrc.py index a49fbebb5f3..8e2abf1998b 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_texttemplatesrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_texttemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="texttemplatesrc", parent_name="scattermapbox", **kwargs - ): - super(TexttemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='texttemplatesrc', + parent_name='scattermapbox', + **kwargs): + super(TexttemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_uid.py b/packages/python/plotly/plotly/validators/scattermapbox/_uid.py index b8049e2a334..3dacd550cb4 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_uid.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="scattermapbox", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='scattermapbox', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_uirevision.py b/packages/python/plotly/plotly/validators/scattermapbox/_uirevision.py index 5bdf0a84351..06f0eff85f1 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_uirevision.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="scattermapbox", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='scattermapbox', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_unselected.py b/packages/python/plotly/plotly/validators/scattermapbox/_unselected.py index 3e4106cc450..81b14b617c8 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_unselected.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_unselected.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="unselected", parent_name="scattermapbox", **kwargs): - super(UnselectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Unselected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.scattermapbox.unse - lected.Marker` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UnselectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='unselected', + parent_name='scattermapbox', + **kwargs): + super(UnselectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/_visible.py b/packages/python/plotly/plotly/validators/scattermapbox/_visible.py index 85640767fd9..9033d020616 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/_visible.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="scattermapbox", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='scattermapbox', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/cluster/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/cluster/__init__.py index e8f530f8e9e..378942851e3 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/cluster/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/cluster/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._stepsrc import StepsrcValidator from ._step import StepValidator @@ -14,20 +13,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._stepsrc.StepsrcValidator", - "._step.StepValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._opacitysrc.OpacitysrcValidator", - "._opacity.OpacityValidator", - "._maxzoom.MaxzoomValidator", - "._enabled.EnabledValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._stepsrc.StepsrcValidator', '._step.StepValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._opacitysrc.OpacitysrcValidator', '._opacity.OpacityValidator', '._maxzoom.MaxzoomValidator', '._enabled.EnabledValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermapbox/cluster/_color.py b/packages/python/plotly/plotly/validators/scattermapbox/cluster/_color.py index 6c6c0bf9eb4..736c0613209 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/cluster/_color.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/cluster/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattermapbox.cluster", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattermapbox.cluster', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/cluster/_colorsrc.py b/packages/python/plotly/plotly/validators/scattermapbox/cluster/_colorsrc.py index f433d59b6c6..3af4426cae6 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/cluster/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/cluster/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scattermapbox.cluster", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scattermapbox.cluster', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/cluster/_enabled.py b/packages/python/plotly/plotly/validators/scattermapbox/cluster/_enabled.py index 52228a271c7..df8cdd60cd0 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/cluster/_enabled.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/cluster/_enabled.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="enabled", parent_name="scattermapbox.cluster", **kwargs - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='scattermapbox.cluster', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/cluster/_maxzoom.py b/packages/python/plotly/plotly/validators/scattermapbox/cluster/_maxzoom.py index 2cd73397ad6..b64c3d05efa 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/cluster/_maxzoom.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/cluster/_maxzoom.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxzoomValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxzoom", parent_name="scattermapbox.cluster", **kwargs - ): - super(MaxzoomValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 24), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxzoomValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxzoom', + parent_name='scattermapbox.cluster', + **kwargs): + super(MaxzoomValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 24), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/cluster/_opacity.py b/packages/python/plotly/plotly/validators/scattermapbox/cluster/_opacity.py index a6d4ee5b687..ed3c123fee2 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/cluster/_opacity.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/cluster/_opacity.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="scattermapbox.cluster", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scattermapbox.cluster', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/cluster/_opacitysrc.py b/packages/python/plotly/plotly/validators/scattermapbox/cluster/_opacitysrc.py index d4018d97cc2..c6c1a8a56c0 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/cluster/_opacitysrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/cluster/_opacitysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="opacitysrc", parent_name="scattermapbox.cluster", **kwargs - ): - super(OpacitysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacitysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='opacitysrc', + parent_name='scattermapbox.cluster', + **kwargs): + super(OpacitysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/cluster/_size.py b/packages/python/plotly/plotly/validators/scattermapbox/cluster/_size.py index a245ebc9c72..613aba38aaa 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/cluster/_size.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/cluster/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scattermapbox.cluster", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattermapbox.cluster', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/cluster/_sizesrc.py b/packages/python/plotly/plotly/validators/scattermapbox/cluster/_sizesrc.py index 27c6c408627..23afab7c64d 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/cluster/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/cluster/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="scattermapbox.cluster", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scattermapbox.cluster', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/cluster/_step.py b/packages/python/plotly/plotly/validators/scattermapbox/cluster/_step.py index 0a594ea83e4..a3f55fc3ccd 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/cluster/_step.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/cluster/_step.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StepValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="step", parent_name="scattermapbox.cluster", **kwargs - ): - super(StepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StepValidator(_bv.NumberValidator): + def __init__(self, plotly_name='step', + parent_name='scattermapbox.cluster', + **kwargs): + super(StepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/cluster/_stepsrc.py b/packages/python/plotly/plotly/validators/scattermapbox/cluster/_stepsrc.py index 84ecc5d4000..81983d149cc 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/cluster/_stepsrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/cluster/_stepsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StepsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stepsrc", parent_name="scattermapbox.cluster", **kwargs - ): - super(StepsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StepsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stepsrc', + parent_name='scattermapbox.cluster', + **kwargs): + super(StepsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_align.py index 24685733a0e..c1ad0d2821d 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_align.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="align", parent_name="scattermapbox.hoverlabel", **kwargs - ): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='scattermapbox.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_alignsrc.py index 5e676937809..5b4acc74b65 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="scattermapbox.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='scattermapbox.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_bgcolor.py index 156b67964ab..e7b59facbb6 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="scattermapbox.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='scattermapbox.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_bgcolorsrc.py index 4862094a462..afe3d7b5b11 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="scattermapbox.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='scattermapbox.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_bordercolor.py index b82358b22fe..ea16b804b8f 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_bordercolor.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bordercolor", - parent_name="scattermapbox.hoverlabel", - **kwargs, - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='scattermapbox.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_bordercolorsrc.py index bc74011de0f..cd9aa3f298a 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="bordercolorsrc", - parent_name="scattermapbox.hoverlabel", - **kwargs, - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='scattermapbox.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_font.py index 34e7985b699..f623cd014f7 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_font.py @@ -1,88 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="scattermapbox.hoverlabel", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scattermapbox.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_namelength.py index 058521370bc..490d0e41c72 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="scattermapbox.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='scattermapbox.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_namelengthsrc.py index ac93f946a10..ccc06f9a72e 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/_namelengthsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="namelengthsrc", - parent_name="scattermapbox.hoverlabel", - **kwargs, - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='scattermapbox.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_color.py index c928d85290c..f36bae99628 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattermapbox.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattermapbox.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_colorsrc.py index e38b9140143..2c17880d5fc 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_colorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="colorsrc", - parent_name="scattermapbox.hoverlabel.font", - **kwargs, - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scattermapbox.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_family.py index dec710d0157..ae2311dd219 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_family.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scattermapbox.hoverlabel.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattermapbox.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_familysrc.py index 62e3a52ab27..acc0caf63f0 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_familysrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="familysrc", - parent_name="scattermapbox.hoverlabel.font", - **kwargs, - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='scattermapbox.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_lineposition.py index db39de573e4..3fc0fc1cacb 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scattermapbox.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scattermapbox.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_linepositionsrc.py index 6c641b9a197..b3be17d2619 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="scattermapbox.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='scattermapbox.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_shadow.py index a11ee196749..e1bf8eb0e21 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_shadow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scattermapbox.hoverlabel.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scattermapbox.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_shadowsrc.py index 2707a774c1f..2b9df5312d9 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="shadowsrc", - parent_name="scattermapbox.hoverlabel.font", - **kwargs, - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='scattermapbox.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_size.py index 37d27b60369..e21fa7ac6bb 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scattermapbox.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattermapbox.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_sizesrc.py index 9b6afe36735..77db2a41347 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_sizesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="sizesrc", - parent_name="scattermapbox.hoverlabel.font", - **kwargs, - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scattermapbox.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_style.py index e1210da03b8..2b442bcdc03 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="scattermapbox.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattermapbox.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_stylesrc.py index eee1a358bbd..6736b97287a 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_stylesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="stylesrc", - parent_name="scattermapbox.hoverlabel.font", - **kwargs, - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='scattermapbox.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_textcase.py index 16fdc9e43f8..dad9afd86c1 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_textcase.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scattermapbox.hoverlabel.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scattermapbox.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_textcasesrc.py index 1e5e40a1aa0..b8922494841 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="scattermapbox.hoverlabel.font", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='scattermapbox.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_variant.py index 369bd37d37f..8d42caaf10f 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_variant.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scattermapbox.hoverlabel.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scattermapbox.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_variantsrc.py index 07825ed06b4..053718bcc31 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_variantsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="variantsrc", - parent_name="scattermapbox.hoverlabel.font", - **kwargs, - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='scattermapbox.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_weight.py index f328b6c815a..199a0a7df51 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_weight.py @@ -1,20 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scattermapbox.hoverlabel.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scattermapbox.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_weightsrc.py index d4aa53c03fd..af6477fa8e8 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/_weightsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="weightsrc", - parent_name="scattermapbox.hoverlabel.font", - **kwargs, - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='scattermapbox.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/_font.py index 22886c7bde1..a5b490cc9d0 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="scattermapbox.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scattermapbox.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/_text.py index c7ec0e7df77..d9b4f2fabb0 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="scattermapbox.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scattermapbox.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_color.py index c81df93eea8..e2bf4d46e09 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scattermapbox.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattermapbox.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_family.py index 06356e1d25d..7635646e0ee 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scattermapbox.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattermapbox.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_lineposition.py index 41d8ab8d5d5..5d26c3beebc 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scattermapbox.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scattermapbox.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_shadow.py index a6cc0f7cf55..cf8cf2e93b2 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scattermapbox.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scattermapbox.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_size.py index 5b0adee1437..0265b634e3a 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scattermapbox.legendgrouptitle.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattermapbox.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_style.py index 12e09d5e2a0..9e3f2b4cdf1 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scattermapbox.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattermapbox.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_textcase.py index 641070956d1..4d1f180fe9e 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scattermapbox.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scattermapbox.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_variant.py index 0d40d404564..0ff85bcfca1 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scattermapbox.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scattermapbox.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_weight.py index 5745bcb6b38..c6f4dde8528 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scattermapbox.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scattermapbox.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/line/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/line/__init__.py index 63a516578b5..e9749ddd90c 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/line/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._width.WidthValidator", "._color.ColorValidator"] + __name__, + [], + ['._width.WidthValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermapbox/line/_color.py b/packages/python/plotly/plotly/validators/scattermapbox/line/_color.py index ff7c33b92c8..c77eccb4b8d 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/line/_color.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/line/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="scattermapbox.line", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattermapbox.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/line/_width.py b/packages/python/plotly/plotly/validators/scattermapbox/line/_width.py index 53a9b22f03d..20f6bb394a3 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/line/_width.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/line/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="scattermapbox.line", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='scattermapbox.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/__init__.py index 1560474e41f..3d73fa0add5 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._symbolsrc import SymbolsrcValidator from ._symbol import SymbolValidator @@ -28,34 +27,10 @@ from ._allowoverlap import AllowoverlapValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._symbolsrc.SymbolsrcValidator", - "._symbol.SymbolValidator", - "._sizesrc.SizesrcValidator", - "._sizeref.SizerefValidator", - "._sizemode.SizemodeValidator", - "._sizemin.SizeminValidator", - "._size.SizeValidator", - "._showscale.ShowscaleValidator", - "._reversescale.ReversescaleValidator", - "._opacitysrc.OpacitysrcValidator", - "._opacity.OpacityValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - "._anglesrc.AnglesrcValidator", - "._angle.AngleValidator", - "._allowoverlap.AllowoverlapValidator", - ], + ['._symbolsrc.SymbolsrcValidator', '._symbol.SymbolValidator', '._sizesrc.SizesrcValidator', '._sizeref.SizerefValidator', '._sizemode.SizemodeValidator', '._sizemin.SizeminValidator', '._size.SizeValidator', '._showscale.ShowscaleValidator', '._reversescale.ReversescaleValidator', '._opacitysrc.OpacitysrcValidator', '._opacity.OpacityValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator', '._anglesrc.AnglesrcValidator', '._angle.AngleValidator', '._allowoverlap.AllowoverlapValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/_allowoverlap.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/_allowoverlap.py index f482b096566..c05160750dc 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/_allowoverlap.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/_allowoverlap.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AllowoverlapValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="allowoverlap", parent_name="scattermapbox.marker", **kwargs - ): - super(AllowoverlapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AllowoverlapValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='allowoverlap', + parent_name='scattermapbox.marker', + **kwargs): + super(AllowoverlapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/_angle.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/_angle.py index ab23633ab09..4f5c0f32cb1 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/_angle.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/_angle.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AngleValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="angle", parent_name="scattermapbox.marker", **kwargs - ): - super(AngleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AngleValidator(_bv.NumberValidator): + def __init__(self, plotly_name='angle', + parent_name='scattermapbox.marker', + **kwargs): + super(AngleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/_anglesrc.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/_anglesrc.py index ba5d7fd6e1b..f4342bbf02e 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/_anglesrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/_anglesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AnglesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="anglesrc", parent_name="scattermapbox.marker", **kwargs - ): - super(AnglesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AnglesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='anglesrc', + parent_name='scattermapbox.marker', + **kwargs): + super(AnglesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/_autocolorscale.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/_autocolorscale.py index 4ecfb4366bb..5d4a1a16fe7 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="scattermapbox.marker", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='scattermapbox.marker', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/_cauto.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/_cauto.py index 37252143c51..af07f63f521 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/_cauto.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/_cauto.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="cauto", parent_name="scattermapbox.marker", **kwargs - ): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='scattermapbox.marker', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/_cmax.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/_cmax.py index 1a0755ee18f..ae2c8ad650a 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/_cmax.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/_cmax.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmax", parent_name="scattermapbox.marker", **kwargs - ): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='scattermapbox.marker', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/_cmid.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/_cmid.py index b3066d3d19d..6fa5fac74c7 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/_cmid.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/_cmid.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmid", parent_name="scattermapbox.marker", **kwargs - ): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='scattermapbox.marker', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/_cmin.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/_cmin.py index a692239b7a6..7d32fcd955b 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/_cmin.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/_cmin.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmin", parent_name="scattermapbox.marker", **kwargs - ): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='scattermapbox.marker', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/_color.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/_color.py index baaf7160718..384f9d8945d 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/_color.py @@ -1,17 +1,15 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattermapbox.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - colorscale_path=kwargs.pop( - "colorscale_path", "scattermapbox.marker.colorscale" - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattermapbox.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + colorscale_path=kwargs.pop('colorscale_path', 'scattermapbox.marker.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/_coloraxis.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/_coloraxis.py index a1a9a1b1006..644243c4f9d 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/_coloraxis.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name="coloraxis", parent_name="scattermapbox.marker", **kwargs - ): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='scattermapbox.marker', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/_colorbar.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/_colorbar.py index 02a6f4a53b7..538bcf1352d 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/_colorbar.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/_colorbar.py @@ -1,282 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="colorbar", parent_name="scattermapbox.marker", **kwargs - ): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.scatter - mapbox.marker.colorbar.Tickformatstop` - instances or dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.scattermapbox.marker.colorbar.tickformatstopd - efaults), sets the default property values to - use for elements of - scattermapbox.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.scattermapbox.mark - er.colorbar.Title` instance or dict with - compatible properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='scattermapbox.marker', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/_colorscale.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/_colorscale.py index 5d6e9003852..e127a7a04a7 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/_colorscale.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="scattermapbox.marker", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='scattermapbox.marker', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/_colorsrc.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/_colorsrc.py index 1d14de0360d..d3e1138e154 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scattermapbox.marker", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scattermapbox.marker', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/_opacity.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/_opacity.py index 63af24ea38d..9be8caf77ad 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/_opacity.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="scattermapbox.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scattermapbox.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/_opacitysrc.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/_opacitysrc.py index fae8de92ee9..a4b901812d2 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/_opacitysrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/_opacitysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="opacitysrc", parent_name="scattermapbox.marker", **kwargs - ): - super(OpacitysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacitysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='opacitysrc', + parent_name='scattermapbox.marker', + **kwargs): + super(OpacitysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/_reversescale.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/_reversescale.py index da3cec4596b..2e37d7f0520 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/_reversescale.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="scattermapbox.marker", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='scattermapbox.marker', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/_showscale.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/_showscale.py index deed75209ce..e1cc4d76ec8 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/_showscale.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/_showscale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showscale", parent_name="scattermapbox.marker", **kwargs - ): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='scattermapbox.marker', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/_size.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/_size.py index b849fb9e4d9..8997ad14865 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scattermapbox.marker", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattermapbox.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/_sizemin.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/_sizemin.py index 99ab7c9f6d7..4ca1c6d3026 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/_sizemin.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/_sizemin.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="sizemin", parent_name="scattermapbox.marker", **kwargs - ): - super(SizeminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sizemin', + parent_name='scattermapbox.marker', + **kwargs): + super(SizeminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/_sizemode.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/_sizemode.py index 90963436dad..24906452af5 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/_sizemode.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/_sizemode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="sizemode", parent_name="scattermapbox.marker", **kwargs - ): - super(SizemodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["diameter", "area"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizemodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='sizemode', + parent_name='scattermapbox.marker', + **kwargs): + super(SizemodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['diameter', 'area']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/_sizeref.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/_sizeref.py index 1d445bc8c58..ee49ce97df8 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/_sizeref.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/_sizeref.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="sizeref", parent_name="scattermapbox.marker", **kwargs - ): - super(SizerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizerefValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sizeref', + parent_name='scattermapbox.marker', + **kwargs): + super(SizerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/_sizesrc.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/_sizesrc.py index ab1beb44790..41d503c9dab 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="scattermapbox.marker", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scattermapbox.marker', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/_symbol.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/_symbol.py index 9c80fe03ee9..4b01a1c2598 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/_symbol.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/_symbol.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SymbolValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="symbol", parent_name="scattermapbox.marker", **kwargs - ): - super(SymbolValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SymbolValidator(_bv.StringValidator): + def __init__(self, plotly_name='symbol', + parent_name='scattermapbox.marker', + **kwargs): + super(SymbolValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/_symbolsrc.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/_symbolsrc.py index 5f7420b2eda..91e0a8c48e2 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/_symbolsrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/_symbolsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="symbolsrc", parent_name="scattermapbox.marker", **kwargs - ): - super(SymbolsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SymbolsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='symbolsrc', + parent_name='scattermapbox.marker', + **kwargs): + super(SymbolsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_bgcolor.py index 8814dce6ae8..d3b50ca73ce 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_bgcolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bgcolor", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_bordercolor.py index a0c2f31c528..62e06f41858 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_bordercolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bordercolor", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_borderwidth.py index 05bfba60b2f..53317ce2a43 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_borderwidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="borderwidth", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_dtick.py index 889d22e0dde..b708619364d 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="scattermapbox.marker.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_exponentformat.py index 544ccd42f13..dd3a8412195 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_exponentformat.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="exponentformat", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_labelalias.py index 6e6377d1056..63a331c27cc 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_labelalias.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="labelalias", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_len.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_len.py index bb616a6eba6..fe13e8f1c6f 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_len.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="len", parent_name="scattermapbox.marker.colorbar", **kwargs - ): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_lenmode.py index 6e153f703f4..c24f5be29a5 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_lenmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="lenmode", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_minexponent.py index ef71c761a2e..9671f3d4be8 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_minexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="minexponent", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_nticks.py index 97d42c2ddd8..d13c50fd63f 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_nticks.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="nticks", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_orientation.py index a6f4ffa0770..db1eaa940aa 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_orientation.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="orientation", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_outlinecolor.py index dd146546125..233aecae42b 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_outlinecolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="outlinecolor", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_outlinewidth.py index 22d620f4723..9601703b736 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_outlinewidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="outlinewidth", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_separatethousands.py index 985d88b9224..5963513fef2 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_showexponent.py index e90ffd45973..f171ce9db91 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_showexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showexponent", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_showticklabels.py index ad97beef90c..84b997ac67a 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_showtickprefix.py index 25b434fced5..6c945536484 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_showticksuffix.py index c589af00ae4..28d942e5e62 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_thickness.py index 5eb7fe1a5d9..268d0b5eac8 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_thickness.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="thickness", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_thicknessmode.py index 9ef05efb714..ad1ef3b1455 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_thicknessmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="thicknessmode", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tick0.py index 9b55a9d711c..8326683295d 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="scattermapbox.marker.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickangle.py index dac12d1d752..8d42a99e42e 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickangle.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name="tickangle", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickcolor.py index 249021e8608..817ea47600c 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickcolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="tickcolor", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickfont.py index 5c40d2e0690..1323112353e 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickfont.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickfont", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickformat.py index 0461be192b8..69d6c653385 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickformat.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickformat", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickformatstopdefaults.py index 016f41a4e50..54800123d04 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickformatstops.py index 6238968da10..fff80c1608c 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticklabeloverflow.py index e67a906f707..3ead566360c 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticklabelposition.py index 000ef26ca99..a68d137dcd2 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticklabelstep.py index e6018e81773..24a95a6d2f5 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticklabelstep.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="ticklabelstep", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticklen.py index bb991205089..81d3fdddc69 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticklen.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="ticklen", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickmode.py index bf215ec2a3a..1586aeb8cf6 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickmode.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="tickmode", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickprefix.py index a0ad4f22086..a4e4a28935e 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickprefix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickprefix", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticks.py index 9f791227e71..0e4cabae66b 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="scattermapbox.marker.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticksuffix.py index 8d6d4339548..236a3fb641c 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticksuffix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="ticksuffix", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticktext.py index e014e9a7f23..ba59961a30b 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticktext.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name="ticktext", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticktextsrc.py index a14270d8c95..5ab0173bf9f 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ticktextsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="ticktextsrc", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickvals.py index bd23100f1f9..b877e843b1a 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickvals.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name="tickvals", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickvalssrc.py index dad32a90612..2a2a83534ac 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickvalssrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="tickvalssrc", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickwidth.py index 707db10c2d4..b36d2438d06 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_tickwidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="tickwidth", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_title.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_title.py index 49a801e77d9..b62ffdef607 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="scattermapbox.marker.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_x.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_x.py index b69db6f0dd1..6a33f0fc8f4 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_x.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="x", parent_name="scattermapbox.marker.colorbar", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_xanchor.py index c8b41866eb9..85df43c82e9 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_xanchor.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="xanchor", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_xpad.py index 927eb92734c..602c8f1cf1a 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_xpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="xpad", parent_name="scattermapbox.marker.colorbar", **kwargs - ): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_xref.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_xref.py index 5b6cb514da1..f6bb2f37f81 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xref", parent_name="scattermapbox.marker.colorbar", **kwargs - ): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_y.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_y.py index c7278bb947d..635bf00178f 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_y.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="y", parent_name="scattermapbox.marker.colorbar", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_yanchor.py index d16724ad313..791d3fc828d 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_yanchor.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="yanchor", - parent_name="scattermapbox.marker.colorbar", - **kwargs, - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ypad.py index 45fea207069..ca17472ac45 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_ypad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ypad", parent_name="scattermapbox.marker.colorbar", **kwargs - ): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_yref.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_yref.py index 57066bc9803..f2c360991ae 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yref", parent_name="scattermapbox.marker.colorbar", **kwargs - ): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='scattermapbox.marker.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_color.py index 2bd4a5b8e3b..d230f8a2a81 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scattermapbox.marker.colorbar.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattermapbox.marker.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_family.py index 588626adc9a..e104bfa0b7d 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scattermapbox.marker.colorbar.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattermapbox.marker.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_lineposition.py index d82dc01f54b..93f2e45ec7b 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scattermapbox.marker.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scattermapbox.marker.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_shadow.py index 6791ef955aa..be7024d0b9c 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scattermapbox.marker.colorbar.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scattermapbox.marker.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_size.py index 84c35dfa2a3..3ccdfce1d9e 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scattermapbox.marker.colorbar.tickfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattermapbox.marker.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_style.py index 04326f0802c..826ab231848 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scattermapbox.marker.colorbar.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattermapbox.marker.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_textcase.py index e760cb567bf..bb4f7abff67 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scattermapbox.marker.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scattermapbox.marker.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_variant.py index 4ec92a3d757..b90a6279bff 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scattermapbox.marker.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scattermapbox.marker.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_weight.py index d95d63d916e..bb82643493d 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scattermapbox.marker.colorbar.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scattermapbox.marker.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_dtickrange.py index a2c64f51494..5c4d4bf557a 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="scattermapbox.marker.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "valType": "any"}, - {"editType": "calc", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='scattermapbox.marker.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'valType': 'any'}, {'editType': 'calc', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_enabled.py index 5e3cf3c33c9..9df997c312b 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="scattermapbox.marker.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='scattermapbox.marker.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_name.py index 4eead7f875c..305d9aed29a 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="scattermapbox.marker.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='scattermapbox.marker.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_templateitemname.py index bb80218d799..f764ec587a7 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="scattermapbox.marker.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='scattermapbox.marker.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_value.py index d5f75ee3444..4af8b5e3247 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="scattermapbox.marker.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='scattermapbox.marker.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/_font.py index 43df02ece1b..649ab8ae326 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/_font.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="font", - parent_name="scattermapbox.marker.colorbar.title", - **kwargs, - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scattermapbox.marker.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/_side.py index ef865d826ac..fe3eb86cd1b 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/_side.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="side", - parent_name="scattermapbox.marker.colorbar.title", - **kwargs, - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='scattermapbox.marker.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/_text.py index c4d741664aa..77bbd8ae5b8 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/_text.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="text", - parent_name="scattermapbox.marker.colorbar.title", - **kwargs, - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scattermapbox.marker.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_color.py index 94e329b65a1..d106fd544b8 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scattermapbox.marker.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattermapbox.marker.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_family.py index b61a899f619..e2de1b9dff5 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scattermapbox.marker.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattermapbox.marker.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_lineposition.py index 099125064b8..4c099f7f398 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scattermapbox.marker.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scattermapbox.marker.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_shadow.py index b7516dc0d13..4dc09ff7fd5 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scattermapbox.marker.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scattermapbox.marker.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_size.py index c8b66f0d65e..44c1d7cd62c 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scattermapbox.marker.colorbar.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattermapbox.marker.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_style.py index 8ca0d2b1a88..57a821a16f6 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scattermapbox.marker.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattermapbox.marker.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_textcase.py index 35a853e61c1..ea72ae3f1ed 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scattermapbox.marker.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scattermapbox.marker.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_variant.py index 6cd676ba064..40fcb4d2d16 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scattermapbox.marker.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scattermapbox.marker.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_weight.py index dcd36084379..3ac583e4f09 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scattermapbox.marker.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scattermapbox.marker.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/selected/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/selected/__init__.py index e9bdb89f26d..8ee3c0f5c26 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/selected/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.MarkerValidator"] + __name__, + [], + ['._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermapbox/selected/_marker.py b/packages/python/plotly/plotly/validators/scattermapbox/selected/_marker.py index 08ca315c4ef..a32196ba9ec 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/selected/_marker.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/selected/_marker.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="scattermapbox.selected", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. - size - Sets the marker size of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scattermapbox.selected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/selected/marker/__init__.py index 8c321a38bc5..b7768f024e8 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/selected/marker/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._size import SizeValidator from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._size.SizeValidator", - "._opacity.OpacityValidator", - "._color.ColorValidator", - ], + ['._size.SizeValidator', '._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermapbox/selected/marker/_color.py b/packages/python/plotly/plotly/validators/scattermapbox/selected/marker/_color.py index 185120bea0f..d928c43e16c 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/selected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/selected/marker/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattermapbox.selected.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattermapbox.selected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/selected/marker/_opacity.py b/packages/python/plotly/plotly/validators/scattermapbox/selected/marker/_opacity.py index 0f55127dd11..ac1f822a93d 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/selected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/selected/marker/_opacity.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="opacity", - parent_name="scattermapbox.selected.marker", - **kwargs, - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scattermapbox.selected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/selected/marker/_size.py b/packages/python/plotly/plotly/validators/scattermapbox/selected/marker/_size.py index 25b99656751..6adac66b49a 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/selected/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/selected/marker/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scattermapbox.selected.marker", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattermapbox.selected.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/stream/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermapbox/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/scattermapbox/stream/_maxpoints.py index 9bf701a188c..4ecaa36ebce 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/stream/_maxpoints.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxpoints", parent_name="scattermapbox.stream", **kwargs - ): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='scattermapbox.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/stream/_token.py b/packages/python/plotly/plotly/validators/scattermapbox/stream/_token.py index f8f1eecf70c..f7bb7cd1977 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/stream/_token.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/stream/_token.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="token", parent_name="scattermapbox.stream", **kwargs - ): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='scattermapbox.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/textfont/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/textfont/__init__.py index 9301c0688ce..47e012a7900 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/textfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._style import StyleValidator @@ -9,15 +8,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._style.StyleValidator', '._size.SizeValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermapbox/textfont/_color.py b/packages/python/plotly/plotly/validators/scattermapbox/textfont/_color.py index a53b249dafe..9b39bd8dca7 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/textfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattermapbox.textfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattermapbox.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/textfont/_family.py b/packages/python/plotly/plotly/validators/scattermapbox/textfont/_family.py index 3a44f274f45..ad2e1e35d1a 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/textfont/_family.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/textfont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="scattermapbox.textfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattermapbox.textfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/textfont/_size.py b/packages/python/plotly/plotly/validators/scattermapbox/textfont/_size.py index 7aacb69b4e4..c7113709f9d 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/textfont/_size.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/textfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scattermapbox.textfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattermapbox.textfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/textfont/_style.py b/packages/python/plotly/plotly/validators/scattermapbox/textfont/_style.py index 199c1b0e5d6..cb8e6d54aea 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/textfont/_style.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/textfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="scattermapbox.textfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattermapbox.textfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/textfont/_weight.py b/packages/python/plotly/plotly/validators/scattermapbox/textfont/_weight.py index e9151373b64..68e9173ae5a 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/textfont/_weight.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/textfont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="scattermapbox.textfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scattermapbox.textfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/unselected/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/unselected/__init__.py index e9bdb89f26d..8ee3c0f5c26 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/unselected/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.MarkerValidator"] + __name__, + [], + ['._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermapbox/unselected/_marker.py b/packages/python/plotly/plotly/validators/scattermapbox/unselected/_marker.py index 6c68d6b1da3..3e95068f072 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/unselected/_marker.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/unselected/_marker.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="scattermapbox.unselected", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - size - Sets the marker size of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scattermapbox.unselected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/unselected/marker/__init__.py index 8c321a38bc5..b7768f024e8 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/unselected/marker/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._size import SizeValidator from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._size.SizeValidator", - "._opacity.OpacityValidator", - "._color.ColorValidator", - ], + ['._size.SizeValidator', '._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattermapbox/unselected/marker/_color.py b/packages/python/plotly/plotly/validators/scattermapbox/unselected/marker/_color.py index 4f3e6683a5a..1228c39f596 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/unselected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/unselected/marker/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scattermapbox.unselected.marker", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattermapbox.unselected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/unselected/marker/_opacity.py b/packages/python/plotly/plotly/validators/scattermapbox/unselected/marker/_opacity.py index 0a129ebed33..4778c61eeeb 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/unselected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/unselected/marker/_opacity.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="opacity", - parent_name="scattermapbox.unselected.marker", - **kwargs, - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scattermapbox.unselected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattermapbox/unselected/marker/_size.py b/packages/python/plotly/plotly/validators/scattermapbox/unselected/marker/_size.py index 070575bab23..fed23205e4c 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/unselected/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/unselected/marker/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scattermapbox.unselected.marker", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattermapbox.unselected.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/__init__.py index ce934b10c88..a22cd872dfc 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._unselected import UnselectedValidator @@ -57,63 +56,10 @@ from ._cliponaxis import CliponaxisValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._unselected.UnselectedValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._thetaunit.ThetaunitValidator", - "._thetasrc.ThetasrcValidator", - "._theta0.Theta0Validator", - "._theta.ThetaValidator", - "._texttemplatesrc.TexttemplatesrcValidator", - "._texttemplate.TexttemplateValidator", - "._textsrc.TextsrcValidator", - "._textpositionsrc.TextpositionsrcValidator", - "._textposition.TextpositionValidator", - "._textfont.TextfontValidator", - "._text.TextValidator", - "._subplot.SubplotValidator", - "._stream.StreamValidator", - "._showlegend.ShowlegendValidator", - "._selectedpoints.SelectedpointsValidator", - "._selected.SelectedValidator", - "._rsrc.RsrcValidator", - "._r0.R0Validator", - "._r.RValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._mode.ModeValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._marker.MarkerValidator", - "._line.LineValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoveron.HoveronValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._fillcolor.FillcolorValidator", - "._fill.FillValidator", - "._dtheta.DthetaValidator", - "._dr.DrValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._connectgaps.ConnectgapsValidator", - "._cliponaxis.CliponaxisValidator", - ], + ['._visible.VisibleValidator', '._unselected.UnselectedValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._thetaunit.ThetaunitValidator', '._thetasrc.ThetasrcValidator', '._theta0.Theta0Validator', '._theta.ThetaValidator', '._texttemplatesrc.TexttemplatesrcValidator', '._texttemplate.TexttemplateValidator', '._textsrc.TextsrcValidator', '._textpositionsrc.TextpositionsrcValidator', '._textposition.TextpositionValidator', '._textfont.TextfontValidator', '._text.TextValidator', '._subplot.SubplotValidator', '._stream.StreamValidator', '._showlegend.ShowlegendValidator', '._selectedpoints.SelectedpointsValidator', '._selected.SelectedValidator', '._rsrc.RsrcValidator', '._r0.R0Validator', '._r.RValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._mode.ModeValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._marker.MarkerValidator', '._line.LineValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoveron.HoveronValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._fillcolor.FillcolorValidator', '._fill.FillValidator', '._dtheta.DthetaValidator', '._dr.DrValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._connectgaps.ConnectgapsValidator', '._cliponaxis.CliponaxisValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_cliponaxis.py b/packages/python/plotly/plotly/validators/scatterpolar/_cliponaxis.py index 872c16df76a..8603bcf6b9f 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_cliponaxis.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_cliponaxis.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CliponaxisValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cliponaxis", parent_name="scatterpolar", **kwargs): - super(CliponaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CliponaxisValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cliponaxis', + parent_name='scatterpolar', + **kwargs): + super(CliponaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_connectgaps.py b/packages/python/plotly/plotly/validators/scatterpolar/_connectgaps.py index 2ce3abc08b1..09a0acba866 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_connectgaps.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_connectgaps.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="connectgaps", parent_name="scatterpolar", **kwargs): - super(ConnectgapsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ConnectgapsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='connectgaps', + parent_name='scatterpolar', + **kwargs): + super(ConnectgapsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_customdata.py b/packages/python/plotly/plotly/validators/scatterpolar/_customdata.py index e296fc3ed67..e7743a9bac3 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_customdata.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="scatterpolar", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='scatterpolar', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_customdatasrc.py b/packages/python/plotly/plotly/validators/scatterpolar/_customdatasrc.py index 037a8eababd..5a0a338f941 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_customdatasrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="customdatasrc", parent_name="scatterpolar", **kwargs - ): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='scatterpolar', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_dr.py b/packages/python/plotly/plotly/validators/scatterpolar/_dr.py index 490a577182b..407fc0c86a1 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_dr.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_dr.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class DrValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="dr", parent_name="scatterpolar", **kwargs): - super(DrValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DrValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dr', + parent_name='scatterpolar', + **kwargs): + super(DrValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_dtheta.py b/packages/python/plotly/plotly/validators/scatterpolar/_dtheta.py index 5ce55d9362c..fac9a575664 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_dtheta.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_dtheta.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class DthetaValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="dtheta", parent_name="scatterpolar", **kwargs): - super(DthetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DthetaValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dtheta', + parent_name='scatterpolar', + **kwargs): + super(DthetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_fill.py b/packages/python/plotly/plotly/validators/scatterpolar/_fill.py index b178f00dc04..89098654060 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_fill.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_fill.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class FillValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="fill", parent_name="scatterpolar", **kwargs): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["none", "toself", "tonext"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='fill', + parent_name='scatterpolar', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['none', 'toself', 'tonext']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_fillcolor.py b/packages/python/plotly/plotly/validators/scatterpolar/_fillcolor.py index 86d6a4323c6..294110761fd 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_fillcolor.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_fillcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="fillcolor", parent_name="scatterpolar", **kwargs): - super(FillcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FillcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fillcolor', + parent_name='scatterpolar', + **kwargs): + super(FillcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_hoverinfo.py b/packages/python/plotly/plotly/validators/scatterpolar/_hoverinfo.py index f305caf8d96..12a6041a38c 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="scatterpolar", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["r", "theta", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='scatterpolar', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['r', 'theta', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/scatterpolar/_hoverinfosrc.py index f2ad562a40d..d9cdc5a0847 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_hoverinfosrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hoverinfosrc", parent_name="scatterpolar", **kwargs - ): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='scatterpolar', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_hoverlabel.py b/packages/python/plotly/plotly/validators/scatterpolar/_hoverlabel.py index 34d686c02a7..d4e868b7315 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="scatterpolar", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='scatterpolar', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_hoveron.py b/packages/python/plotly/plotly/validators/scatterpolar/_hoveron.py index e25a3e9ae34..77417244aac 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_hoveron.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_hoveron.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HoveronValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoveron", parent_name="scatterpolar", **kwargs): - super(HoveronValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - flags=kwargs.pop("flags", ["points", "fills"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoveronValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoveron', + parent_name='scatterpolar', + **kwargs): + super(HoveronValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + flags=kwargs.pop('flags', ['points', 'fills']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_hovertemplate.py b/packages/python/plotly/plotly/validators/scatterpolar/_hovertemplate.py index 9d1d3b3a5a0..d59b74a9024 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_hovertemplate.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="hovertemplate", parent_name="scatterpolar", **kwargs - ): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='scatterpolar', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/scatterpolar/_hovertemplatesrc.py index cac2b9a6cf2..72ce536e8ef 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_hovertemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertemplatesrc", parent_name="scatterpolar", **kwargs - ): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='scatterpolar', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_hovertext.py b/packages/python/plotly/plotly/validators/scatterpolar/_hovertext.py index 2bb9f2ddead..50af304f617 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_hovertext.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="scatterpolar", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='scatterpolar', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_hovertextsrc.py b/packages/python/plotly/plotly/validators/scatterpolar/_hovertextsrc.py index 26ed5db61cc..64f5fb50be2 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_hovertextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertextsrc", parent_name="scatterpolar", **kwargs - ): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='scatterpolar', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_ids.py b/packages/python/plotly/plotly/validators/scatterpolar/_ids.py index 29038b12f80..30e0ab6f275 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_ids.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="scatterpolar", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='scatterpolar', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_idssrc.py b/packages/python/plotly/plotly/validators/scatterpolar/_idssrc.py index 8200590fbf0..615731976d5 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_idssrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="scatterpolar", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='scatterpolar', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_legend.py b/packages/python/plotly/plotly/validators/scatterpolar/_legend.py index 7df05b2bf4b..a096e1a1191 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_legend.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="scatterpolar", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='scatterpolar', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_legendgroup.py b/packages/python/plotly/plotly/validators/scatterpolar/_legendgroup.py index a277480c6df..271c1943563 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="scatterpolar", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='scatterpolar', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/scatterpolar/_legendgrouptitle.py index 635aef4a896..b7b5306531b 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="scatterpolar", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='scatterpolar', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_legendrank.py b/packages/python/plotly/plotly/validators/scatterpolar/_legendrank.py index 7adfc62bea4..5db9745963c 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_legendrank.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="scatterpolar", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='scatterpolar', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_legendwidth.py b/packages/python/plotly/plotly/validators/scatterpolar/_legendwidth.py index 98c31328a3c..16c2cbb8ddc 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="scatterpolar", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='scatterpolar', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_line.py b/packages/python/plotly/plotly/validators/scatterpolar/_line.py index f00547043e3..b67120cbf1d 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_line.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_line.py @@ -1,45 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="scatterpolar", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - backoff - Sets the line back off from the end point of - the nth line segment (in px). This option is - useful e.g. to avoid overlap with arrowhead - markers. With "auto" the lines would trim - before markers if `marker.angleref` is set to - "previous". - backoffsrc - Sets the source reference on Chart Studio Cloud - for `backoff`. - color - Sets the line color. - dash - 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"). - shape - Determines the line shape. With "spline" the - lines are drawn using spline interpolation. The - other available values correspond to step-wise - line shapes. - smoothing - Has an effect only if `shape` is set to - "spline" Sets the amount of smoothing. 0 - corresponds to no smoothing (equivalent to a - "linear" shape). - width - Sets the line width (in px). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='scatterpolar', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_marker.py b/packages/python/plotly/plotly/validators/scatterpolar/_marker.py index 3c74e0581cd..43a4b089c88 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_marker.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_marker.py @@ -1,166 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="scatterpolar", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - angle - Sets the marker angle in respect to `angleref`. - angleref - Sets the reference for marker angle. With - "previous", angle 0 points along the line from - the previous point to this one. With "up", - angle 0 points toward the top of the screen. - anglesrc - Sets the source reference on Chart Studio Cloud - for `angle`. - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.scatterpolar.marke - r.ColorBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - gradient - :class:`plotly.graph_objects.scatterpolar.marke - r.Gradient` instance or dict with compatible - properties - line - :class:`plotly.graph_objects.scatterpolar.marke - r.Line` instance or dict with compatible - properties - maxdisplayed - Sets a maximum number of points to be drawn on - the graph. 0 corresponds to no limit. - opacity - Sets the marker opacity. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. - size - Sets the marker size (in px). - sizemin - Has an effect only if `marker.size` is set to a - numerical array. Sets the minimum size (in px) - of the rendered marker points. - sizemode - Has an effect only if `marker.size` is set to a - numerical array. Sets the rule for which the - data in `size` is converted to pixels. - sizeref - Has an effect only if `marker.size` is set to a - numerical array. Sets the scale factor used to - determine the rendered size of marker points. - Use with `sizemin` and `sizemode`. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - standoff - Moves the marker away from the data point in - the direction of `angle` (in px). This can be - useful for example if you have another marker - at this location and you want to point an - arrowhead marker at it. - standoffsrc - Sets the source reference on Chart Studio Cloud - for `standoff`. - symbol - Sets the marker symbol type. Adding 100 is - equivalent to appending "-open" to a symbol - name. Adding 200 is equivalent to appending - "-dot" to a symbol name. Adding 300 is - equivalent to appending "-open-dot" or "dot- - open" to a symbol name. - symbolsrc - Sets the source reference on Chart Studio Cloud - for `symbol`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scatterpolar', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_meta.py b/packages/python/plotly/plotly/validators/scatterpolar/_meta.py index 8830ce4f322..269cbf4a339 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_meta.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="scatterpolar", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='scatterpolar', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_metasrc.py b/packages/python/plotly/plotly/validators/scatterpolar/_metasrc.py index f5535124024..4f5a650e395 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_metasrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="scatterpolar", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='scatterpolar', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_mode.py b/packages/python/plotly/plotly/validators/scatterpolar/_mode.py index f210aeb4d66..e27baeb903e 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_mode.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_mode.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="mode", parent_name="scatterpolar", **kwargs): - super(ModeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["lines", "markers", "text"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ModeValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='mode', + parent_name='scatterpolar', + **kwargs): + super(ModeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['lines', 'markers', 'text']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_name.py b/packages/python/plotly/plotly/validators/scatterpolar/_name.py index 384b8ed0c0a..54661bc081a 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_name.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="scatterpolar", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='scatterpolar', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_opacity.py b/packages/python/plotly/plotly/validators/scatterpolar/_opacity.py index ab052efe1ce..ac163b08195 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_opacity.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="scatterpolar", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scatterpolar', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_r.py b/packages/python/plotly/plotly/validators/scatterpolar/_r.py index 53f8333394a..10e34557ff3 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_r.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_r.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class RValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="r", parent_name="scatterpolar", **kwargs): - super(RValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='r', + parent_name='scatterpolar', + **kwargs): + super(RValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_r0.py b/packages/python/plotly/plotly/validators/scatterpolar/_r0.py index b4d6b4bbd99..7892f87304d 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_r0.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_r0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class R0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="r0", parent_name="scatterpolar", **kwargs): - super(R0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class R0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='r0', + parent_name='scatterpolar', + **kwargs): + super(R0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_rsrc.py b/packages/python/plotly/plotly/validators/scatterpolar/_rsrc.py index 8eb0208ffe4..2a948e1eedc 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_rsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_rsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class RsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="rsrc", parent_name="scatterpolar", **kwargs): - super(RsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='rsrc', + parent_name='scatterpolar', + **kwargs): + super(RsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_selected.py b/packages/python/plotly/plotly/validators/scatterpolar/_selected.py index e8dbe83ed32..fc301556a47 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_selected.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_selected.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="selected", parent_name="scatterpolar", **kwargs): - super(SelectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Selected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.scatterpolar.selec - ted.Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.scatterpolar.selec - ted.Textfont` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='selected', + parent_name='scatterpolar', + **kwargs): + super(SelectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_selectedpoints.py b/packages/python/plotly/plotly/validators/scatterpolar/_selectedpoints.py index 55f0d564b79..708ec5e1fed 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_selectedpoints.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_selectedpoints.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="selectedpoints", parent_name="scatterpolar", **kwargs - ): - super(SelectedpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SelectedpointsValidator(_bv.AnyValidator): + def __init__(self, plotly_name='selectedpoints', + parent_name='scatterpolar', + **kwargs): + super(SelectedpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_showlegend.py b/packages/python/plotly/plotly/validators/scatterpolar/_showlegend.py index d9de07e4faf..77c106cda82 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_showlegend.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="scatterpolar", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='scatterpolar', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_stream.py b/packages/python/plotly/plotly/validators/scatterpolar/_stream.py index 2de71662f45..47494c13256 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_stream.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="scatterpolar", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='scatterpolar', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_subplot.py b/packages/python/plotly/plotly/validators/scatterpolar/_subplot.py index fbe123aacb5..69251bd6593 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_subplot.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_subplot.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SubplotValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="subplot", parent_name="scatterpolar", **kwargs): - super(SubplotValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "polar"), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SubplotValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='subplot', + parent_name='scatterpolar', + **kwargs): + super(SubplotValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'polar'), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_text.py b/packages/python/plotly/plotly/validators/scatterpolar/_text.py index 9a0436e7caf..c9d0e80b94e 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_text.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="scatterpolar", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scatterpolar', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_textfont.py b/packages/python/plotly/plotly/validators/scatterpolar/_textfont.py index 83ad0055951..d0f5cc752b8 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_textfont.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_textfont.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="textfont", parent_name="scatterpolar", **kwargs): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='scatterpolar', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_textposition.py b/packages/python/plotly/plotly/validators/scatterpolar/_textposition.py index af2f965b02c..e3a3993d319 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_textposition.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_textposition.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textposition", parent_name="scatterpolar", **kwargs - ): - super(TextpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "top left", - "top center", - "top right", - "middle left", - "middle center", - "middle right", - "bottom left", - "bottom center", - "bottom right", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textposition', + parent_name='scatterpolar', + **kwargs): + super(TextpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['top left', 'top center', 'top right', 'middle left', 'middle center', 'middle right', 'bottom left', 'bottom center', 'bottom right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_textpositionsrc.py b/packages/python/plotly/plotly/validators/scatterpolar/_textpositionsrc.py index 043d299b8c0..185a51a3b45 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_textpositionsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_textpositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textpositionsrc", parent_name="scatterpolar", **kwargs - ): - super(TextpositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextpositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textpositionsrc', + parent_name='scatterpolar', + **kwargs): + super(TextpositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_textsrc.py b/packages/python/plotly/plotly/validators/scatterpolar/_textsrc.py index bc55ed515f4..08b77473a7b 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_textsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="scatterpolar", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='scatterpolar', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_texttemplate.py b/packages/python/plotly/plotly/validators/scatterpolar/_texttemplate.py index a7ae8286e01..989daf34630 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_texttemplate.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_texttemplate.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="texttemplate", parent_name="scatterpolar", **kwargs - ): - super(TexttemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='texttemplate', + parent_name='scatterpolar', + **kwargs): + super(TexttemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_texttemplatesrc.py b/packages/python/plotly/plotly/validators/scatterpolar/_texttemplatesrc.py index 04a2baf1d8b..b0ee1a438ef 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_texttemplatesrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_texttemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="texttemplatesrc", parent_name="scatterpolar", **kwargs - ): - super(TexttemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='texttemplatesrc', + parent_name='scatterpolar', + **kwargs): + super(TexttemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_theta.py b/packages/python/plotly/plotly/validators/scatterpolar/_theta.py index 23adbe475c1..c8091451f17 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_theta.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_theta.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ThetaValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="theta", parent_name="scatterpolar", **kwargs): - super(ThetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThetaValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='theta', + parent_name='scatterpolar', + **kwargs): + super(ThetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_theta0.py b/packages/python/plotly/plotly/validators/scatterpolar/_theta0.py index 83a0f5eaf26..9fabcc9e02b 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_theta0.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_theta0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Theta0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="theta0", parent_name="scatterpolar", **kwargs): - super(Theta0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Theta0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='theta0', + parent_name='scatterpolar', + **kwargs): + super(Theta0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_thetasrc.py b/packages/python/plotly/plotly/validators/scatterpolar/_thetasrc.py index 0e8742520e2..d1b4a524329 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_thetasrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_thetasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ThetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="thetasrc", parent_name="scatterpolar", **kwargs): - super(ThetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='thetasrc', + parent_name='scatterpolar', + **kwargs): + super(ThetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_thetaunit.py b/packages/python/plotly/plotly/validators/scatterpolar/_thetaunit.py index 00b3e659a1b..2f45dd53ba5 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_thetaunit.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_thetaunit.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThetaunitValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="thetaunit", parent_name="scatterpolar", **kwargs): - super(ThetaunitValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - values=kwargs.pop("values", ["radians", "degrees", "gradians"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThetaunitValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thetaunit', + parent_name='scatterpolar', + **kwargs): + super(ThetaunitValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + values=kwargs.pop('values', ['radians', 'degrees', 'gradians']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_uid.py b/packages/python/plotly/plotly/validators/scatterpolar/_uid.py index 38e4bb03956..53e073e8ebe 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_uid.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="scatterpolar", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='scatterpolar', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_uirevision.py b/packages/python/plotly/plotly/validators/scatterpolar/_uirevision.py index b73384f3e2d..9e79b287723 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_uirevision.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="scatterpolar", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='scatterpolar', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_unselected.py b/packages/python/plotly/plotly/validators/scatterpolar/_unselected.py index e9de4994888..3a2a15ae53d 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_unselected.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_unselected.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="unselected", parent_name="scatterpolar", **kwargs): - super(UnselectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Unselected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.scatterpolar.unsel - ected.Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.scatterpolar.unsel - ected.Textfont` instance or dict with - compatible properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UnselectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='unselected', + parent_name='scatterpolar', + **kwargs): + super(UnselectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/_visible.py b/packages/python/plotly/plotly/validators/scatterpolar/_visible.py index 1ad4b0d3175..cff4bdbb8e9 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/_visible.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="scatterpolar", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='scatterpolar', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_align.py index f644b79c86a..dbd243d1d6e 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_align.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="align", parent_name="scatterpolar.hoverlabel", **kwargs - ): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='scatterpolar.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_alignsrc.py index 1f7f885c911..48a38cf1aed 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="scatterpolar.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='scatterpolar.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_bgcolor.py index 70798d13717..04055067298 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="scatterpolar.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='scatterpolar.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_bgcolorsrc.py index 27693751f76..d1c80f63d8b 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="scatterpolar.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='scatterpolar.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_bordercolor.py index 7a8e4464af9..c1ed1904d75 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="scatterpolar.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='scatterpolar.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_bordercolorsrc.py index 6ea006daf35..247bfdfd1f6 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="bordercolorsrc", - parent_name="scatterpolar.hoverlabel", - **kwargs, - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='scatterpolar.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_font.py index 4a05248cd5d..b497ab42122 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_font.py @@ -1,88 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="scatterpolar.hoverlabel", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scatterpolar.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_namelength.py index 8583d41a37b..42760ee12a6 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="scatterpolar.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='scatterpolar.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_namelengthsrc.py index 5e96de7148e..81b7f7c21f1 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/_namelengthsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="namelengthsrc", - parent_name="scatterpolar.hoverlabel", - **kwargs, - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='scatterpolar.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_color.py index d68e5da77cc..f75ebab6a04 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scatterpolar.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterpolar.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_colorsrc.py index b42ddfd73b7..ec8a33c4e9d 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_colorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="colorsrc", - parent_name="scatterpolar.hoverlabel.font", - **kwargs, - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scatterpolar.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_family.py index e6452ba69aa..00a2fa40228 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="scatterpolar.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scatterpolar.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_familysrc.py index e010d527978..86320ccc020 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_familysrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="familysrc", - parent_name="scatterpolar.hoverlabel.font", - **kwargs, - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='scatterpolar.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_lineposition.py index 5284ed58caa..c00796ec7e2 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scatterpolar.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scatterpolar.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_linepositionsrc.py index eaa314685ee..58677ee7044 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="scatterpolar.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='scatterpolar.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_shadow.py index 2df5661de91..3920914f297 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="scatterpolar.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scatterpolar.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_shadowsrc.py index 3e0250597f4..a52a3ad687f 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="shadowsrc", - parent_name="scatterpolar.hoverlabel.font", - **kwargs, - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='scatterpolar.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_size.py index 7e447acd8dd..27286f3db5e 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scatterpolar.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatterpolar.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_sizesrc.py index 36579748bb1..e6be6a55d6c 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_sizesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="sizesrc", - parent_name="scatterpolar.hoverlabel.font", - **kwargs, - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scatterpolar.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_style.py index 830196b05af..0eb6dbaa974 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="scatterpolar.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scatterpolar.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_stylesrc.py index 35dc9d3428e..d959e81dd44 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_stylesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="stylesrc", - parent_name="scatterpolar.hoverlabel.font", - **kwargs, - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='scatterpolar.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_textcase.py index 1cd3d9029b2..21d2b29e5d2 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_textcase.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scatterpolar.hoverlabel.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scatterpolar.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_textcasesrc.py index b43d5a7d769..417a13399d3 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="scatterpolar.hoverlabel.font", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='scatterpolar.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_variant.py index 4ec491e0c35..7ecf3e9dc49 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_variant.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scatterpolar.hoverlabel.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scatterpolar.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_variantsrc.py index 1dd7157250e..467be4ea2d7 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_variantsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="variantsrc", - parent_name="scatterpolar.hoverlabel.font", - **kwargs, - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='scatterpolar.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_weight.py index 6487cf17587..ca1c373c9df 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="scatterpolar.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scatterpolar.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_weightsrc.py index fb6602acb9e..2231c23d8cc 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/_weightsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="weightsrc", - parent_name="scatterpolar.hoverlabel.font", - **kwargs, - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='scatterpolar.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/_font.py index f8bd85bba81..e9f391d329e 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="scatterpolar.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scatterpolar.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/_text.py index 410cc08e408..eed2d68bc8a 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="scatterpolar.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scatterpolar.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_color.py index 88428b7edc0..970d9a43a54 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatterpolar.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterpolar.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_family.py index 88a98857d99..64db15818f5 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scatterpolar.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scatterpolar.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_lineposition.py index 8b5849971a2..c0f2877dc30 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scatterpolar.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scatterpolar.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_shadow.py index ef249affd9d..53feebea113 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scatterpolar.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scatterpolar.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_size.py index 1890d9ba833..63df50832f8 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scatterpolar.legendgrouptitle.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatterpolar.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_style.py index 3f77014c819..0d24079e438 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scatterpolar.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scatterpolar.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_textcase.py index 075103191ee..b74af2183a6 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scatterpolar.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scatterpolar.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_variant.py index a812ce2c699..427de9c025d 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scatterpolar.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scatterpolar.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_weight.py index 98cf0fb3591..72a1f9442ee 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scatterpolar.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scatterpolar.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/line/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/line/__init__.py index 7045562597a..e5a8bd1f88a 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._smoothing import SmoothingValidator @@ -11,17 +10,10 @@ from ._backoff import BackoffValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._smoothing.SmoothingValidator", - "._shape.ShapeValidator", - "._dash.DashValidator", - "._color.ColorValidator", - "._backoffsrc.BackoffsrcValidator", - "._backoff.BackoffValidator", - ], + ['._width.WidthValidator', '._smoothing.SmoothingValidator', '._shape.ShapeValidator', '._dash.DashValidator', '._color.ColorValidator', '._backoffsrc.BackoffsrcValidator', '._backoff.BackoffValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolar/line/_backoff.py b/packages/python/plotly/plotly/validators/scatterpolar/line/_backoff.py index 51175898152..531b73ff3db 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/line/_backoff.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/line/_backoff.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class BackoffValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="backoff", parent_name="scatterpolar.line", **kwargs - ): - super(BackoffValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BackoffValidator(_bv.NumberValidator): + def __init__(self, plotly_name='backoff', + parent_name='scatterpolar.line', + **kwargs): + super(BackoffValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/line/_backoffsrc.py b/packages/python/plotly/plotly/validators/scatterpolar/line/_backoffsrc.py index ed356ca0ab3..2aeadc003e3 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/line/_backoffsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/line/_backoffsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BackoffsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="backoffsrc", parent_name="scatterpolar.line", **kwargs - ): - super(BackoffsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BackoffsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='backoffsrc', + parent_name='scatterpolar.line', + **kwargs): + super(BackoffsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/line/_color.py b/packages/python/plotly/plotly/validators/scatterpolar/line/_color.py index 548a204b04d..026cefe3edc 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/line/_color.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/line/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="scatterpolar.line", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterpolar.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/line/_dash.py b/packages/python/plotly/plotly/validators/scatterpolar/line/_dash.py index 4f76636892c..b6e15e8783d 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/line/_dash.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/line/_dash.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__(self, plotly_name="dash", parent_name="scatterpolar.line", **kwargs): - super(DashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DashValidator(_bv.DashValidator): + def __init__(self, plotly_name='dash', + parent_name='scatterpolar.line', + **kwargs): + super(DashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/line/_shape.py b/packages/python/plotly/plotly/validators/scatterpolar/line/_shape.py index d077eb0aca7..8c789422e93 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/line/_shape.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/line/_shape.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="shape", parent_name="scatterpolar.line", **kwargs): - super(ShapeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["linear", "spline"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShapeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='shape', + parent_name='scatterpolar.line', + **kwargs): + super(ShapeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['linear', 'spline']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/line/_smoothing.py b/packages/python/plotly/plotly/validators/scatterpolar/line/_smoothing.py index cc91e57322b..7be75614cc0 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/line/_smoothing.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/line/_smoothing.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SmoothingValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="smoothing", parent_name="scatterpolar.line", **kwargs - ): - super(SmoothingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 1.3), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SmoothingValidator(_bv.NumberValidator): + def __init__(self, plotly_name='smoothing', + parent_name='scatterpolar.line', + **kwargs): + super(SmoothingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 1.3), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/line/_width.py b/packages/python/plotly/plotly/validators/scatterpolar/line/_width.py index 68e1add29e9..19b8c40f1fb 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/line/_width.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/line/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="scatterpolar.line", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='scatterpolar.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/__init__.py index 8434e73e3f5..a8815dace11 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._symbolsrc import SymbolsrcValidator from ._symbol import SymbolValidator @@ -33,39 +32,10 @@ from ._angle import AngleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._symbolsrc.SymbolsrcValidator", - "._symbol.SymbolValidator", - "._standoffsrc.StandoffsrcValidator", - "._standoff.StandoffValidator", - "._sizesrc.SizesrcValidator", - "._sizeref.SizerefValidator", - "._sizemode.SizemodeValidator", - "._sizemin.SizeminValidator", - "._size.SizeValidator", - "._showscale.ShowscaleValidator", - "._reversescale.ReversescaleValidator", - "._opacitysrc.OpacitysrcValidator", - "._opacity.OpacityValidator", - "._maxdisplayed.MaxdisplayedValidator", - "._line.LineValidator", - "._gradient.GradientValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - "._anglesrc.AnglesrcValidator", - "._angleref.AnglerefValidator", - "._angle.AngleValidator", - ], + ['._symbolsrc.SymbolsrcValidator', '._symbol.SymbolValidator', '._standoffsrc.StandoffsrcValidator', '._standoff.StandoffValidator', '._sizesrc.SizesrcValidator', '._sizeref.SizerefValidator', '._sizemode.SizemodeValidator', '._sizemin.SizeminValidator', '._size.SizeValidator', '._showscale.ShowscaleValidator', '._reversescale.ReversescaleValidator', '._opacitysrc.OpacitysrcValidator', '._opacity.OpacityValidator', '._maxdisplayed.MaxdisplayedValidator', '._line.LineValidator', '._gradient.GradientValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator', '._anglesrc.AnglesrcValidator', '._angleref.AnglerefValidator', '._angle.AngleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/_angle.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/_angle.py index b1ddabbc6e9..7032faef404 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/_angle.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/_angle.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AngleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="angle", parent_name="scatterpolar.marker", **kwargs - ): - super(AngleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AngleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='angle', + parent_name='scatterpolar.marker', + **kwargs): + super(AngleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/_angleref.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/_angleref.py index 57aea148623..d2b67b589d4 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/_angleref.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/_angleref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AnglerefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="angleref", parent_name="scatterpolar.marker", **kwargs - ): - super(AnglerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["previous", "up"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AnglerefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='angleref', + parent_name='scatterpolar.marker', + **kwargs): + super(AnglerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['previous', 'up']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/_anglesrc.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/_anglesrc.py index 7d51138852c..369d6199f51 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/_anglesrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/_anglesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AnglesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="anglesrc", parent_name="scatterpolar.marker", **kwargs - ): - super(AnglesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AnglesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='anglesrc', + parent_name='scatterpolar.marker', + **kwargs): + super(AnglesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/_autocolorscale.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/_autocolorscale.py index c3e038985f4..e58c365e5bc 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="scatterpolar.marker", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='scatterpolar.marker', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/_cauto.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/_cauto.py index 7ab0b7f9400..961a01fd77b 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/_cauto.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/_cauto.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="cauto", parent_name="scatterpolar.marker", **kwargs - ): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='scatterpolar.marker', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/_cmax.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/_cmax.py index 50af1bb0a9f..82dc756e8cd 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/_cmax.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/_cmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmax", parent_name="scatterpolar.marker", **kwargs): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='scatterpolar.marker', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/_cmid.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/_cmid.py index 7287446e433..b45c415429f 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/_cmid.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/_cmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmid", parent_name="scatterpolar.marker", **kwargs): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='scatterpolar.marker', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/_cmin.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/_cmin.py index 43137b8adc0..593f62eb7fa 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/_cmin.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/_cmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmin", parent_name="scatterpolar.marker", **kwargs): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='scatterpolar.marker', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/_color.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/_color.py index 59776833f54..e8cb5d25297 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/_color.py @@ -1,17 +1,15 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scatterpolar.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - colorscale_path=kwargs.pop( - "colorscale_path", "scatterpolar.marker.colorscale" - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterpolar.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + colorscale_path=kwargs.pop('colorscale_path', 'scatterpolar.marker.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/_coloraxis.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/_coloraxis.py index fa79c1f1d87..dd3eb742884 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/_coloraxis.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name="coloraxis", parent_name="scatterpolar.marker", **kwargs - ): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='scatterpolar.marker', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/_colorbar.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/_colorbar.py index c66e9bdbc8e..d10d5d1ffb0 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/_colorbar.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/_colorbar.py @@ -1,282 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="colorbar", parent_name="scatterpolar.marker", **kwargs - ): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.scatter - polar.marker.colorbar.Tickformatstop` instances - or dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.scatterpolar.marker.colorbar.tickformatstopde - faults), sets the default property values to - use for elements of - scatterpolar.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.scatterpolar.marke - r.colorbar.Title` instance or dict with - compatible properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='scatterpolar.marker', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/_colorscale.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/_colorscale.py index b1b45eb08d3..9efa81da90c 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/_colorscale.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="scatterpolar.marker", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='scatterpolar.marker', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/_colorsrc.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/_colorsrc.py index 103f3da50aa..2490bc6f0b0 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scatterpolar.marker", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scatterpolar.marker', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/_gradient.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/_gradient.py index 0aa1b3a9b5f..46a002481fa 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/_gradient.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/_gradient.py @@ -1,31 +1,15 @@ -import _plotly_utils.basevalidators -class GradientValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="gradient", parent_name="scatterpolar.marker", **kwargs - ): - super(GradientValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Gradient"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the final color of the gradient fill: the - center color for radial, the right for - horizontal, or the bottom for vertical. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - type - Sets the type of gradient used to fill the - markers - typesrc - Sets the source reference on Chart Studio Cloud - for `type`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class GradientValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='gradient', + parent_name='scatterpolar.marker', + **kwargs): + super(GradientValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Gradient'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/_line.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/_line.py index 931db1c1693..6b3b1d11ddf 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/_line.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/_line.py @@ -1,105 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="scatterpolar.marker", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.line.colorscale`. Has an - effect only if in `marker.line.color` is set to - a numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.line.color`) or the bounds set in - `marker.line.cmin` and `marker.line.cmax` Has - an effect only if in `marker.line.color` is set - to a numerical array. Defaults to `false` when - `marker.line.cmin` and `marker.line.cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.line.cmin` and/or - `marker.line.cmax` to be equidistant to this - point. Has an effect only if in - `marker.line.color` is set to a numerical - array. Value should have the same units as in - `marker.line.color`. Has no effect when - `marker.line.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmax` must be set as well. - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorscale - Sets the colorscale. Has an effect only if in - `marker.line.color` is set to a numerical - array. The colorscale must be an array - containing arrays mapping a normalized value to - an rgb, rgba, hex, hsl, hsv, or named color - string. At minimum, a mapping for the lowest - (0) and highest (1) values are required. For - example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use - `marker.line.cmin` and `marker.line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.line.color` is set to - a numerical array. If true, `marker.line.cmin` - will correspond to the last color in the array - and `marker.line.cmax` will correspond to the - first color. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='scatterpolar.marker', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/_maxdisplayed.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/_maxdisplayed.py index 0617e4ffaf9..32afdbecefc 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/_maxdisplayed.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/_maxdisplayed.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MaxdisplayedValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxdisplayed", parent_name="scatterpolar.marker", **kwargs - ): - super(MaxdisplayedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxdisplayedValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxdisplayed', + parent_name='scatterpolar.marker', + **kwargs): + super(MaxdisplayedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/_opacity.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/_opacity.py index a6ec77f0c24..53df951a2e0 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/_opacity.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="scatterpolar.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scatterpolar.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/_opacitysrc.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/_opacitysrc.py index e121da35d66..60baced62f9 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/_opacitysrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/_opacitysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="opacitysrc", parent_name="scatterpolar.marker", **kwargs - ): - super(OpacitysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacitysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='opacitysrc', + parent_name='scatterpolar.marker', + **kwargs): + super(OpacitysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/_reversescale.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/_reversescale.py index 81799268ea6..109d83b69d5 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/_reversescale.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="scatterpolar.marker", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='scatterpolar.marker', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/_showscale.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/_showscale.py index 487eef4bc1f..164ca635db1 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/_showscale.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/_showscale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showscale", parent_name="scatterpolar.marker", **kwargs - ): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='scatterpolar.marker', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/_size.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/_size.py index faef3c05135..0d481eeba59 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="scatterpolar.marker", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatterpolar.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/_sizemin.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/_sizemin.py index e92d29c5b11..942e809dc4e 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/_sizemin.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/_sizemin.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="sizemin", parent_name="scatterpolar.marker", **kwargs - ): - super(SizeminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sizemin', + parent_name='scatterpolar.marker', + **kwargs): + super(SizeminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/_sizemode.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/_sizemode.py index 681132e801d..dc1b1325114 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/_sizemode.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/_sizemode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="sizemode", parent_name="scatterpolar.marker", **kwargs - ): - super(SizemodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["diameter", "area"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizemodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='sizemode', + parent_name='scatterpolar.marker', + **kwargs): + super(SizemodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['diameter', 'area']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/_sizeref.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/_sizeref.py index 532ee5babc6..74f1fb4dbc7 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/_sizeref.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/_sizeref.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="sizeref", parent_name="scatterpolar.marker", **kwargs - ): - super(SizerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizerefValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sizeref', + parent_name='scatterpolar.marker', + **kwargs): + super(SizerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/_sizesrc.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/_sizesrc.py index c83c0fb9e37..0c52590305f 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="scatterpolar.marker", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scatterpolar.marker', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/_standoff.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/_standoff.py index 8626fd86224..fdbf3c0ea95 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/_standoff.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/_standoff.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StandoffValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="standoff", parent_name="scatterpolar.marker", **kwargs - ): - super(StandoffValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StandoffValidator(_bv.NumberValidator): + def __init__(self, plotly_name='standoff', + parent_name='scatterpolar.marker', + **kwargs): + super(StandoffValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/_standoffsrc.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/_standoffsrc.py index 0d39a011518..8242a23e72f 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/_standoffsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/_standoffsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StandoffsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="standoffsrc", parent_name="scatterpolar.marker", **kwargs - ): - super(StandoffsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StandoffsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='standoffsrc', + parent_name='scatterpolar.marker', + **kwargs): + super(StandoffsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/_symbol.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/_symbol.py index a5f966b4e00..52842495272 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/_symbol.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/_symbol.py @@ -1,505 +1,15 @@ -import _plotly_utils.basevalidators -class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="symbol", parent_name="scatterpolar.marker", **kwargs - ): - super(SymbolValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - 0, - "0", - "circle", - 100, - "100", - "circle-open", - 200, - "200", - "circle-dot", - 300, - "300", - "circle-open-dot", - 1, - "1", - "square", - 101, - "101", - "square-open", - 201, - "201", - "square-dot", - 301, - "301", - "square-open-dot", - 2, - "2", - "diamond", - 102, - "102", - "diamond-open", - 202, - "202", - "diamond-dot", - 302, - "302", - "diamond-open-dot", - 3, - "3", - "cross", - 103, - "103", - "cross-open", - 203, - "203", - "cross-dot", - 303, - "303", - "cross-open-dot", - 4, - "4", - "x", - 104, - "104", - "x-open", - 204, - "204", - "x-dot", - 304, - "304", - "x-open-dot", - 5, - "5", - "triangle-up", - 105, - "105", - "triangle-up-open", - 205, - "205", - "triangle-up-dot", - 305, - "305", - "triangle-up-open-dot", - 6, - "6", - "triangle-down", - 106, - "106", - "triangle-down-open", - 206, - "206", - "triangle-down-dot", - 306, - "306", - "triangle-down-open-dot", - 7, - "7", - "triangle-left", - 107, - "107", - "triangle-left-open", - 207, - "207", - "triangle-left-dot", - 307, - "307", - "triangle-left-open-dot", - 8, - "8", - "triangle-right", - 108, - "108", - "triangle-right-open", - 208, - "208", - "triangle-right-dot", - 308, - "308", - "triangle-right-open-dot", - 9, - "9", - "triangle-ne", - 109, - "109", - "triangle-ne-open", - 209, - "209", - "triangle-ne-dot", - 309, - "309", - "triangle-ne-open-dot", - 10, - "10", - "triangle-se", - 110, - "110", - "triangle-se-open", - 210, - "210", - "triangle-se-dot", - 310, - "310", - "triangle-se-open-dot", - 11, - "11", - "triangle-sw", - 111, - "111", - "triangle-sw-open", - 211, - "211", - "triangle-sw-dot", - 311, - "311", - "triangle-sw-open-dot", - 12, - "12", - "triangle-nw", - 112, - "112", - "triangle-nw-open", - 212, - "212", - "triangle-nw-dot", - 312, - "312", - "triangle-nw-open-dot", - 13, - "13", - "pentagon", - 113, - "113", - "pentagon-open", - 213, - "213", - "pentagon-dot", - 313, - "313", - "pentagon-open-dot", - 14, - "14", - "hexagon", - 114, - "114", - "hexagon-open", - 214, - "214", - "hexagon-dot", - 314, - "314", - "hexagon-open-dot", - 15, - "15", - "hexagon2", - 115, - "115", - "hexagon2-open", - 215, - "215", - "hexagon2-dot", - 315, - "315", - "hexagon2-open-dot", - 16, - "16", - "octagon", - 116, - "116", - "octagon-open", - 216, - "216", - "octagon-dot", - 316, - "316", - "octagon-open-dot", - 17, - "17", - "star", - 117, - "117", - "star-open", - 217, - "217", - "star-dot", - 317, - "317", - "star-open-dot", - 18, - "18", - "hexagram", - 118, - "118", - "hexagram-open", - 218, - "218", - "hexagram-dot", - 318, - "318", - "hexagram-open-dot", - 19, - "19", - "star-triangle-up", - 119, - "119", - "star-triangle-up-open", - 219, - "219", - "star-triangle-up-dot", - 319, - "319", - "star-triangle-up-open-dot", - 20, - "20", - "star-triangle-down", - 120, - "120", - "star-triangle-down-open", - 220, - "220", - "star-triangle-down-dot", - 320, - "320", - "star-triangle-down-open-dot", - 21, - "21", - "star-square", - 121, - "121", - "star-square-open", - 221, - "221", - "star-square-dot", - 321, - "321", - "star-square-open-dot", - 22, - "22", - "star-diamond", - 122, - "122", - "star-diamond-open", - 222, - "222", - "star-diamond-dot", - 322, - "322", - "star-diamond-open-dot", - 23, - "23", - "diamond-tall", - 123, - "123", - "diamond-tall-open", - 223, - "223", - "diamond-tall-dot", - 323, - "323", - "diamond-tall-open-dot", - 24, - "24", - "diamond-wide", - 124, - "124", - "diamond-wide-open", - 224, - "224", - "diamond-wide-dot", - 324, - "324", - "diamond-wide-open-dot", - 25, - "25", - "hourglass", - 125, - "125", - "hourglass-open", - 26, - "26", - "bowtie", - 126, - "126", - "bowtie-open", - 27, - "27", - "circle-cross", - 127, - "127", - "circle-cross-open", - 28, - "28", - "circle-x", - 128, - "128", - "circle-x-open", - 29, - "29", - "square-cross", - 129, - "129", - "square-cross-open", - 30, - "30", - "square-x", - 130, - "130", - "square-x-open", - 31, - "31", - "diamond-cross", - 131, - "131", - "diamond-cross-open", - 32, - "32", - "diamond-x", - 132, - "132", - "diamond-x-open", - 33, - "33", - "cross-thin", - 133, - "133", - "cross-thin-open", - 34, - "34", - "x-thin", - 134, - "134", - "x-thin-open", - 35, - "35", - "asterisk", - 135, - "135", - "asterisk-open", - 36, - "36", - "hash", - 136, - "136", - "hash-open", - 236, - "236", - "hash-dot", - 336, - "336", - "hash-open-dot", - 37, - "37", - "y-up", - 137, - "137", - "y-up-open", - 38, - "38", - "y-down", - 138, - "138", - "y-down-open", - 39, - "39", - "y-left", - 139, - "139", - "y-left-open", - 40, - "40", - "y-right", - 140, - "140", - "y-right-open", - 41, - "41", - "line-ew", - 141, - "141", - "line-ew-open", - 42, - "42", - "line-ns", - 142, - "142", - "line-ns-open", - 43, - "43", - "line-ne", - 143, - "143", - "line-ne-open", - 44, - "44", - "line-nw", - 144, - "144", - "line-nw-open", - 45, - "45", - "arrow-up", - 145, - "145", - "arrow-up-open", - 46, - "46", - "arrow-down", - 146, - "146", - "arrow-down-open", - 47, - "47", - "arrow-left", - 147, - "147", - "arrow-left-open", - 48, - "48", - "arrow-right", - 148, - "148", - "arrow-right-open", - 49, - "49", - "arrow-bar-up", - 149, - "149", - "arrow-bar-up-open", - 50, - "50", - "arrow-bar-down", - 150, - "150", - "arrow-bar-down-open", - 51, - "51", - "arrow-bar-left", - 151, - "151", - "arrow-bar-left-open", - 52, - "52", - "arrow-bar-right", - 152, - "152", - "arrow-bar-right-open", - 53, - "53", - "arrow", - 153, - "153", - "arrow-open", - 54, - "54", - "arrow-wide", - 154, - "154", - "arrow-wide-open", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SymbolValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='symbol', + parent_name='scatterpolar.marker', + **kwargs): + super(SymbolValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', [0, '0', 'circle', 100, '100', 'circle-open', 200, '200', 'circle-dot', 300, '300', 'circle-open-dot', 1, '1', 'square', 101, '101', 'square-open', 201, '201', 'square-dot', 301, '301', 'square-open-dot', 2, '2', 'diamond', 102, '102', 'diamond-open', 202, '202', 'diamond-dot', 302, '302', 'diamond-open-dot', 3, '3', 'cross', 103, '103', 'cross-open', 203, '203', 'cross-dot', 303, '303', 'cross-open-dot', 4, '4', 'x', 104, '104', 'x-open', 204, '204', 'x-dot', 304, '304', 'x-open-dot', 5, '5', 'triangle-up', 105, '105', 'triangle-up-open', 205, '205', 'triangle-up-dot', 305, '305', 'triangle-up-open-dot', 6, '6', 'triangle-down', 106, '106', 'triangle-down-open', 206, '206', 'triangle-down-dot', 306, '306', 'triangle-down-open-dot', 7, '7', 'triangle-left', 107, '107', 'triangle-left-open', 207, '207', 'triangle-left-dot', 307, '307', 'triangle-left-open-dot', 8, '8', 'triangle-right', 108, '108', 'triangle-right-open', 208, '208', 'triangle-right-dot', 308, '308', 'triangle-right-open-dot', 9, '9', 'triangle-ne', 109, '109', 'triangle-ne-open', 209, '209', 'triangle-ne-dot', 309, '309', 'triangle-ne-open-dot', 10, '10', 'triangle-se', 110, '110', 'triangle-se-open', 210, '210', 'triangle-se-dot', 310, '310', 'triangle-se-open-dot', 11, '11', 'triangle-sw', 111, '111', 'triangle-sw-open', 211, '211', 'triangle-sw-dot', 311, '311', 'triangle-sw-open-dot', 12, '12', 'triangle-nw', 112, '112', 'triangle-nw-open', 212, '212', 'triangle-nw-dot', 312, '312', 'triangle-nw-open-dot', 13, '13', 'pentagon', 113, '113', 'pentagon-open', 213, '213', 'pentagon-dot', 313, '313', 'pentagon-open-dot', 14, '14', 'hexagon', 114, '114', 'hexagon-open', 214, '214', 'hexagon-dot', 314, '314', 'hexagon-open-dot', 15, '15', 'hexagon2', 115, '115', 'hexagon2-open', 215, '215', 'hexagon2-dot', 315, '315', 'hexagon2-open-dot', 16, '16', 'octagon', 116, '116', 'octagon-open', 216, '216', 'octagon-dot', 316, '316', 'octagon-open-dot', 17, '17', 'star', 117, '117', 'star-open', 217, '217', 'star-dot', 317, '317', 'star-open-dot', 18, '18', 'hexagram', 118, '118', 'hexagram-open', 218, '218', 'hexagram-dot', 318, '318', 'hexagram-open-dot', 19, '19', 'star-triangle-up', 119, '119', 'star-triangle-up-open', 219, '219', 'star-triangle-up-dot', 319, '319', 'star-triangle-up-open-dot', 20, '20', 'star-triangle-down', 120, '120', 'star-triangle-down-open', 220, '220', 'star-triangle-down-dot', 320, '320', 'star-triangle-down-open-dot', 21, '21', 'star-square', 121, '121', 'star-square-open', 221, '221', 'star-square-dot', 321, '321', 'star-square-open-dot', 22, '22', 'star-diamond', 122, '122', 'star-diamond-open', 222, '222', 'star-diamond-dot', 322, '322', 'star-diamond-open-dot', 23, '23', 'diamond-tall', 123, '123', 'diamond-tall-open', 223, '223', 'diamond-tall-dot', 323, '323', 'diamond-tall-open-dot', 24, '24', 'diamond-wide', 124, '124', 'diamond-wide-open', 224, '224', 'diamond-wide-dot', 324, '324', 'diamond-wide-open-dot', 25, '25', 'hourglass', 125, '125', 'hourglass-open', 26, '26', 'bowtie', 126, '126', 'bowtie-open', 27, '27', 'circle-cross', 127, '127', 'circle-cross-open', 28, '28', 'circle-x', 128, '128', 'circle-x-open', 29, '29', 'square-cross', 129, '129', 'square-cross-open', 30, '30', 'square-x', 130, '130', 'square-x-open', 31, '31', 'diamond-cross', 131, '131', 'diamond-cross-open', 32, '32', 'diamond-x', 132, '132', 'diamond-x-open', 33, '33', 'cross-thin', 133, '133', 'cross-thin-open', 34, '34', 'x-thin', 134, '134', 'x-thin-open', 35, '35', 'asterisk', 135, '135', 'asterisk-open', 36, '36', 'hash', 136, '136', 'hash-open', 236, '236', 'hash-dot', 336, '336', 'hash-open-dot', 37, '37', 'y-up', 137, '137', 'y-up-open', 38, '38', 'y-down', 138, '138', 'y-down-open', 39, '39', 'y-left', 139, '139', 'y-left-open', 40, '40', 'y-right', 140, '140', 'y-right-open', 41, '41', 'line-ew', 141, '141', 'line-ew-open', 42, '42', 'line-ns', 142, '142', 'line-ns-open', 43, '43', 'line-ne', 143, '143', 'line-ne-open', 44, '44', 'line-nw', 144, '144', 'line-nw-open', 45, '45', 'arrow-up', 145, '145', 'arrow-up-open', 46, '46', 'arrow-down', 146, '146', 'arrow-down-open', 47, '47', 'arrow-left', 147, '147', 'arrow-left-open', 48, '48', 'arrow-right', 148, '148', 'arrow-right-open', 49, '49', 'arrow-bar-up', 149, '149', 'arrow-bar-up-open', 50, '50', 'arrow-bar-down', 150, '150', 'arrow-bar-down-open', 51, '51', 'arrow-bar-left', 151, '151', 'arrow-bar-left-open', 52, '52', 'arrow-bar-right', 152, '152', 'arrow-bar-right-open', 53, '53', 'arrow', 153, '153', 'arrow-open', 54, '54', 'arrow-wide', 154, '154', 'arrow-wide-open']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/_symbolsrc.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/_symbolsrc.py index cca11ce3bd4..775eb09da20 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/_symbolsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/_symbolsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="symbolsrc", parent_name="scatterpolar.marker", **kwargs - ): - super(SymbolsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SymbolsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='symbolsrc', + parent_name='scatterpolar.marker', + **kwargs): + super(SymbolsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_bgcolor.py index 369334bfb5f..ff4c745e0c2 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_bgcolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bgcolor", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_bordercolor.py index 839c667653a..93c16830b10 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_bordercolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bordercolor", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_borderwidth.py index 1b8fdc87bd7..00a0aacdb21 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_borderwidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="borderwidth", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_dtick.py index cde376ddc5a..7e204083aac 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="scatterpolar.marker.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_exponentformat.py index cf5d267facf..447e829ce99 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_exponentformat.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="exponentformat", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_labelalias.py index 2d1f43a63e4..9e4f844c490 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_labelalias.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="labelalias", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_len.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_len.py index 0f231cc177f..782ccdce138 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_len.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="len", parent_name="scatterpolar.marker.colorbar", **kwargs - ): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_lenmode.py index 01231cc0c83..27a3b9a153b 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_lenmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="lenmode", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_minexponent.py index b9f7ca2831c..17088766ce8 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_minexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="minexponent", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_nticks.py index b3c3f1250e5..82dea50c858 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="scatterpolar.marker.colorbar", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_orientation.py index 5e66e34484f..5201c77b853 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_orientation.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="orientation", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_outlinecolor.py index 409826a8b1d..dff7f3d7e9d 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_outlinecolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="outlinecolor", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_outlinewidth.py index 8f65496f22d..24c6d440abc 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_outlinewidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="outlinewidth", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_separatethousands.py index 9afad978eb9..71d19b9e9b6 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_showexponent.py index 45e2cd38560..33d7bb0644e 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_showexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showexponent", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_showticklabels.py index 73df462c9de..4e40b7d6a11 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_showtickprefix.py index 91edb20c64b..72c3af46935 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_showticksuffix.py index 61c284d7970..e3c827635f9 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_thickness.py index 0c5f61dd9c8..f9ac5944210 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_thickness.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="thickness", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_thicknessmode.py index 11088a51c30..1f7173f8a33 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_thicknessmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="thicknessmode", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tick0.py index 1836fafb470..618b397f16f 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="scatterpolar.marker.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickangle.py index 8a8169d525f..7021c911c73 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickangle.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name="tickangle", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickcolor.py index fe89e84efe4..74c9679444b 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickcolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="tickcolor", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickfont.py index 909ac274403..aef413c64c1 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickfont.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickfont", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickformat.py index afb3579da32..fb75e9f396f 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickformat.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickformat", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickformatstopdefaults.py index 690ec44f092..ebc1fa20ff6 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickformatstops.py index c1aeb909c1e..b630c79fff6 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticklabeloverflow.py index 8306480a6b5..9c6879b059e 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticklabelposition.py index bf3e04d6f6b..b087e1f6309 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticklabelstep.py index 57e3971bc0a..365bc6b593c 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticklabelstep.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="ticklabelstep", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticklen.py index e39d5f671a1..7a63b74d5c5 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticklen.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="ticklen", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickmode.py index b29f1f0858f..52311b8efd1 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickmode.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="tickmode", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickprefix.py index 29b8554c3a3..48d5a49d168 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickprefix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickprefix", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticks.py index c01020ca289..6e8c57a28cf 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="scatterpolar.marker.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticksuffix.py index b92f8a26543..fd9f7803e8a 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticksuffix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="ticksuffix", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticktext.py index 96a088bf1d9..a0b2bb4b85f 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticktext.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name="ticktext", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticktextsrc.py index f9eaa1a6def..355195f89db 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ticktextsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="ticktextsrc", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickvals.py index 3518fca02cc..18492ebe2e6 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickvals.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name="tickvals", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickvalssrc.py index ff360f9f3f7..0a4cf42c791 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickvalssrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="tickvalssrc", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickwidth.py index f6eb5145856..8719abbb4ec 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_tickwidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="tickwidth", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_title.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_title.py index 6dbf31d3f3d..0ee46aba7ee 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="scatterpolar.marker.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_x.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_x.py index 0213bbf93eb..c0ec6f76dfa 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_x.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="x", parent_name="scatterpolar.marker.colorbar", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_xanchor.py index b147918b653..3abbbccc7e6 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_xanchor.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="xanchor", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_xpad.py index 47ddc37e408..b2a308fc070 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_xpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="xpad", parent_name="scatterpolar.marker.colorbar", **kwargs - ): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_xref.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_xref.py index d8b81c0e7e3..2d42da157ac 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xref", parent_name="scatterpolar.marker.colorbar", **kwargs - ): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_y.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_y.py index c05b8f61971..719c36a7f1f 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_y.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="y", parent_name="scatterpolar.marker.colorbar", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_yanchor.py index bdcc264669a..d8dcab535a9 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_yanchor.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="yanchor", - parent_name="scatterpolar.marker.colorbar", - **kwargs, - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ypad.py index 4f18f05c0df..6bb03e55858 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_ypad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ypad", parent_name="scatterpolar.marker.colorbar", **kwargs - ): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_yref.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_yref.py index 65c22045562..04fd4157668 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yref", parent_name="scatterpolar.marker.colorbar", **kwargs - ): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='scatterpolar.marker.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_color.py index 98fe38deb51..b525fd5c8a5 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatterpolar.marker.colorbar.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterpolar.marker.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_family.py index 9258bf18fd9..c64e2b695ad 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scatterpolar.marker.colorbar.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scatterpolar.marker.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_lineposition.py index e12a8b8aa6f..b9fe1995e01 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scatterpolar.marker.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scatterpolar.marker.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_shadow.py index 66b5db62db4..4b2097a7301 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scatterpolar.marker.colorbar.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scatterpolar.marker.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_size.py index 58106cf78de..5e331bbdcc9 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scatterpolar.marker.colorbar.tickfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatterpolar.marker.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_style.py index dabd91194fc..457c2b01b00 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scatterpolar.marker.colorbar.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scatterpolar.marker.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_textcase.py index 204e60098dc..f5b778b1c68 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scatterpolar.marker.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scatterpolar.marker.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_variant.py index eb89b58b18f..27040a2e829 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scatterpolar.marker.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scatterpolar.marker.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_weight.py index 242bbb691f4..8f8a8afae6b 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scatterpolar.marker.colorbar.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scatterpolar.marker.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_dtickrange.py index a1b613ab540..9e412a1e79b 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="scatterpolar.marker.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - items=kwargs.pop( - "items", - [ - {"editType": "colorbars", "valType": "any"}, - {"editType": "colorbars", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='scatterpolar.marker.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + items=kwargs.pop('items', [{'editType': 'colorbars', 'valType': 'any'}, {'editType': 'colorbars', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_enabled.py index 8acf4d3e1a4..c305a15b90f 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="scatterpolar.marker.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='scatterpolar.marker.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_name.py index 33a13af789d..22f8218984d 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="scatterpolar.marker.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='scatterpolar.marker.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_templateitemname.py index fd5824e5811..6c0797fa978 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="scatterpolar.marker.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='scatterpolar.marker.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_value.py index 7de1f4f0ff2..2331878deba 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="scatterpolar.marker.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='scatterpolar.marker.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/_font.py index fd5f5c5d1e2..35ddba35079 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/_font.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="font", - parent_name="scatterpolar.marker.colorbar.title", - **kwargs, - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scatterpolar.marker.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/_side.py index 7529e5d4288..2197133c833 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/_side.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="side", - parent_name="scatterpolar.marker.colorbar.title", - **kwargs, - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='scatterpolar.marker.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/_text.py index 4b1348b8efa..28c8eed6dac 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/_text.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="text", - parent_name="scatterpolar.marker.colorbar.title", - **kwargs, - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scatterpolar.marker.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_color.py index 51c11d76cad..9bfc644bd84 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatterpolar.marker.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterpolar.marker.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_family.py index 252f435ffe7..b4f4db4498a 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scatterpolar.marker.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scatterpolar.marker.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_lineposition.py index 85f487da56f..2549947a1e0 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scatterpolar.marker.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scatterpolar.marker.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_shadow.py index 015f734790b..220228ef8c4 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scatterpolar.marker.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scatterpolar.marker.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_size.py index abbf09b1c26..c303d32133b 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scatterpolar.marker.colorbar.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatterpolar.marker.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_style.py index 0a3a5fda96a..d6e0a3dad21 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scatterpolar.marker.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scatterpolar.marker.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_textcase.py index 840f8b067ba..d9f23386e34 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scatterpolar.marker.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scatterpolar.marker.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_variant.py index ccb90fa3d33..7f6c43722f8 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scatterpolar.marker.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scatterpolar.marker.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_weight.py index fdbdf19623e..dc8fa34f78a 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scatterpolar.marker.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scatterpolar.marker.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/gradient/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/gradient/__init__.py index 624a280ea46..f3927efb3e0 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/gradient/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/gradient/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._typesrc import TypesrcValidator from ._type import TypeValidator @@ -8,14 +7,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._typesrc.TypesrcValidator", - "._type.TypeValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._typesrc.TypesrcValidator', '._type.TypeValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/gradient/_color.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/gradient/_color.py index e9f1cd76025..452eff3905f 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/gradient/_color.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/gradient/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scatterpolar.marker.gradient", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterpolar.marker.gradient', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/gradient/_colorsrc.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/gradient/_colorsrc.py index 5e4641014db..1069571d430 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/gradient/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/gradient/_colorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="colorsrc", - parent_name="scatterpolar.marker.gradient", - **kwargs, - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scatterpolar.marker.gradient', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/gradient/_type.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/gradient/_type.py index 18afa5a8598..ead0e79dabb 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/gradient/_type.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/gradient/_type.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="type", parent_name="scatterpolar.marker.gradient", **kwargs - ): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["radial", "horizontal", "vertical", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='scatterpolar.marker.gradient', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['radial', 'horizontal', 'vertical', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/gradient/_typesrc.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/gradient/_typesrc.py index 0771cd0f375..976033f69c9 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/gradient/_typesrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/gradient/_typesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TypesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="typesrc", - parent_name="scatterpolar.marker.gradient", - **kwargs, - ): - super(TypesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TypesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='typesrc', + parent_name='scatterpolar.marker.gradient', + **kwargs): + super(TypesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/line/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/line/__init__.py index facbe33f884..55d423b11da 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._widthsrc import WidthsrcValidator from ._width import WidthValidator @@ -16,22 +15,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._widthsrc.WidthsrcValidator", - "._width.WidthValidator", - "._reversescale.ReversescaleValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._widthsrc.WidthsrcValidator', '._width.WidthValidator', '._reversescale.ReversescaleValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_autocolorscale.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_autocolorscale.py index 8886a4fe39b..87304a4e7c0 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_autocolorscale.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="autocolorscale", - parent_name="scatterpolar.marker.line", - **kwargs, - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='scatterpolar.marker.line', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_cauto.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_cauto.py index 4cd7b0eae9b..39c6f26c6df 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_cauto.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_cauto.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="cauto", parent_name="scatterpolar.marker.line", **kwargs - ): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='scatterpolar.marker.line', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_cmax.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_cmax.py index d88729d1f3f..2a1d06572f9 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_cmax.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_cmax.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmax", parent_name="scatterpolar.marker.line", **kwargs - ): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='scatterpolar.marker.line', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_cmid.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_cmid.py index 24c0b2a276d..9be24d0aee4 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_cmid.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_cmid.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmid", parent_name="scatterpolar.marker.line", **kwargs - ): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='scatterpolar.marker.line', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_cmin.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_cmin.py index 6a56ae24e1c..0aadd60369a 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_cmin.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_cmin.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmin", parent_name="scatterpolar.marker.line", **kwargs - ): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='scatterpolar.marker.line', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_color.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_color.py index 00d21ba7a91..402a59d0f15 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_color.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_color.py @@ -1,17 +1,15 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scatterpolar.marker.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - colorscale_path=kwargs.pop( - "colorscale_path", "scatterpolar.marker.line.colorscale" - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterpolar.marker.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + colorscale_path=kwargs.pop('colorscale_path', 'scatterpolar.marker.line.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_coloraxis.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_coloraxis.py index 16bd03a9360..f022ad3f7f7 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_coloraxis.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name="coloraxis", parent_name="scatterpolar.marker.line", **kwargs - ): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='scatterpolar.marker.line', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_colorscale.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_colorscale.py index 4d6e4a88a8b..3468479ef43 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_colorscale.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="scatterpolar.marker.line", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='scatterpolar.marker.line', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_colorsrc.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_colorsrc.py index 2320bd185c3..a56a9f0bce2 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scatterpolar.marker.line", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scatterpolar.marker.line', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_reversescale.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_reversescale.py index 5584bbf16d6..50e94740eeb 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_reversescale.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_reversescale.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="reversescale", - parent_name="scatterpolar.marker.line", - **kwargs, - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='scatterpolar.marker.line', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_width.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_width.py index acb0b432082..3ee1a09b99a 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_width.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_width.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="scatterpolar.marker.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='scatterpolar.marker.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_widthsrc.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_widthsrc.py index e8a5f6f4c17..1e11a1391cc 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_widthsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/line/_widthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="widthsrc", parent_name="scatterpolar.marker.line", **kwargs - ): - super(WidthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='widthsrc', + parent_name='scatterpolar.marker.line', + **kwargs): + super(WidthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/selected/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/selected/__init__.py index 3b0aeed383f..c0a73fd7df3 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/selected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._textfont import TextfontValidator from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] + __name__, + [], + ['._textfont.TextfontValidator', '._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolar/selected/_marker.py b/packages/python/plotly/plotly/validators/scatterpolar/selected/_marker.py index d349aaa4cdd..1800abfcbf1 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/selected/_marker.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/selected/_marker.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="scatterpolar.selected", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. - size - Sets the marker size of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scatterpolar.selected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/selected/_textfont.py b/packages/python/plotly/plotly/validators/scatterpolar/selected/_textfont.py index 4a55f164403..919fe9574c5 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/selected/_textfont.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/selected/_textfont.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="textfont", parent_name="scatterpolar.selected", **kwargs - ): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the text font color of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='scatterpolar.selected', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/selected/marker/__init__.py index 8c321a38bc5..b7768f024e8 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/selected/marker/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._size import SizeValidator from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._size.SizeValidator", - "._opacity.OpacityValidator", - "._color.ColorValidator", - ], + ['._size.SizeValidator', '._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolar/selected/marker/_color.py b/packages/python/plotly/plotly/validators/scatterpolar/selected/marker/_color.py index 8167b9d2446..93f4f526874 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/selected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/selected/marker/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scatterpolar.selected.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterpolar.selected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/selected/marker/_opacity.py b/packages/python/plotly/plotly/validators/scatterpolar/selected/marker/_opacity.py index a0189a8d750..e35b567d7e5 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/selected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/selected/marker/_opacity.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="opacity", - parent_name="scatterpolar.selected.marker", - **kwargs, - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scatterpolar.selected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/selected/marker/_size.py b/packages/python/plotly/plotly/validators/scatterpolar/selected/marker/_size.py index dd03c163998..2773b4764fa 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/selected/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/selected/marker/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scatterpolar.selected.marker", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatterpolar.selected.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/selected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/selected/textfont/__init__.py index a9f087e5af1..86899e5cc51 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/selected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/selected/textfont/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._color.ColorValidator"] + __name__, + [], + ['._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolar/selected/textfont/_color.py b/packages/python/plotly/plotly/validators/scatterpolar/selected/textfont/_color.py index 3e494a7669d..0a16e780742 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/selected/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/selected/textfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatterpolar.selected.textfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterpolar.selected.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/stream/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolar/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/scatterpolar/stream/_maxpoints.py index aefe3663988..fd1a2846693 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/stream/_maxpoints.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxpoints", parent_name="scatterpolar.stream", **kwargs - ): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='scatterpolar.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/stream/_token.py b/packages/python/plotly/plotly/validators/scatterpolar/stream/_token.py index 61ca248d09f..f5cd0966c53 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/stream/_token.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/stream/_token.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="token", parent_name="scatterpolar.stream", **kwargs - ): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='scatterpolar.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/textfont/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/textfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/textfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_color.py b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_color.py index 5b5be0d804f..5f471f8d143 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scatterpolar.textfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterpolar.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_colorsrc.py b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_colorsrc.py index 72028dfc3c6..ab03bcaab5f 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scatterpolar.textfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scatterpolar.textfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_family.py b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_family.py index 3ad5773b02c..77364792aff 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_family.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="scatterpolar.textfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scatterpolar.textfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_familysrc.py b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_familysrc.py index c9d16ed9a8c..c45e3d79191 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="scatterpolar.textfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='scatterpolar.textfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_lineposition.py b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_lineposition.py index 62b27fce53c..6f7adea1b16 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="scatterpolar.textfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scatterpolar.textfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_linepositionsrc.py index 09fbd8e8b42..c62d892324b 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="scatterpolar.textfont", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='scatterpolar.textfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_shadow.py b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_shadow.py index 46b7b8f120a..abafa7f5ae5 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="scatterpolar.textfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scatterpolar.textfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_shadowsrc.py index 8fc8eb3969d..5d8c792c04d 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="scatterpolar.textfont", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='scatterpolar.textfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_size.py b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_size.py index a2c7ac28d84..12ad9c7beff 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_size.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scatterpolar.textfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatterpolar.textfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_sizesrc.py b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_sizesrc.py index 31b4ae47c58..aa63d924f84 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="scatterpolar.textfont", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scatterpolar.textfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_style.py b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_style.py index b499f57cfbc..294ff1c57ea 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_style.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="scatterpolar.textfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scatterpolar.textfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_stylesrc.py b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_stylesrc.py index 4f69bfafda6..32e2bc06a7d 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="scatterpolar.textfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='scatterpolar.textfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_textcase.py b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_textcase.py index a95d0d1805a..c9aa1d49864 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="scatterpolar.textfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scatterpolar.textfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_textcasesrc.py index 6dbbc94a92f..e38d34263af 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="scatterpolar.textfont", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='scatterpolar.textfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_variant.py b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_variant.py index 0146ffb83ee..2b976dad541 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_variant.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="scatterpolar.textfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scatterpolar.textfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_variantsrc.py b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_variantsrc.py index 8bdf4b6ff82..e1b25d09ab9 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="scatterpolar.textfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='scatterpolar.textfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_weight.py b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_weight.py index 516e7fa1d4a..af9ddd7dd86 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_weight.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="scatterpolar.textfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scatterpolar.textfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_weightsrc.py b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_weightsrc.py index 666f9dedd06..f28403e322b 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/textfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/textfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="scatterpolar.textfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='scatterpolar.textfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/unselected/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/unselected/__init__.py index 3b0aeed383f..c0a73fd7df3 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/unselected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._textfont import TextfontValidator from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] + __name__, + [], + ['._textfont.TextfontValidator', '._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolar/unselected/_marker.py b/packages/python/plotly/plotly/validators/scatterpolar/unselected/_marker.py index 2915ef8e37f..078a951d8bc 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/unselected/_marker.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/unselected/_marker.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="scatterpolar.unselected", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - size - Sets the marker size of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scatterpolar.unselected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/unselected/_textfont.py b/packages/python/plotly/plotly/validators/scatterpolar/unselected/_textfont.py index 6cb27215831..541b4197b3d 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/unselected/_textfont.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/unselected/_textfont.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="textfont", parent_name="scatterpolar.unselected", **kwargs - ): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the text font color of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='scatterpolar.unselected', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/unselected/marker/__init__.py index 8c321a38bc5..b7768f024e8 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/unselected/marker/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._size import SizeValidator from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._size.SizeValidator", - "._opacity.OpacityValidator", - "._color.ColorValidator", - ], + ['._size.SizeValidator', '._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolar/unselected/marker/_color.py b/packages/python/plotly/plotly/validators/scatterpolar/unselected/marker/_color.py index 4e05bc41ec6..6c19182d3ce 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/unselected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/unselected/marker/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatterpolar.unselected.marker", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterpolar.unselected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/unselected/marker/_opacity.py b/packages/python/plotly/plotly/validators/scatterpolar/unselected/marker/_opacity.py index 412bfa9d3ea..bb355f2bf09 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/unselected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/unselected/marker/_opacity.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="opacity", - parent_name="scatterpolar.unselected.marker", - **kwargs, - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scatterpolar.unselected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/unselected/marker/_size.py b/packages/python/plotly/plotly/validators/scatterpolar/unselected/marker/_size.py index 3d7f8e5c828..bac4d3bbb6d 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/unselected/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/unselected/marker/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scatterpolar.unselected.marker", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatterpolar.unselected.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolar/unselected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/unselected/textfont/__init__.py index a9f087e5af1..86899e5cc51 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/unselected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/unselected/textfont/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._color.ColorValidator"] + __name__, + [], + ['._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolar/unselected/textfont/_color.py b/packages/python/plotly/plotly/validators/scatterpolar/unselected/textfont/_color.py index 8c094235dfc..e70ccf2c814 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/unselected/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/unselected/textfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatterpolar.unselected.textfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterpolar.unselected.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/__init__.py index 69a11c033b3..055fef5f162 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._unselected import UnselectedValidator @@ -55,61 +54,10 @@ from ._connectgaps import ConnectgapsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._unselected.UnselectedValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._thetaunit.ThetaunitValidator", - "._thetasrc.ThetasrcValidator", - "._theta0.Theta0Validator", - "._theta.ThetaValidator", - "._texttemplatesrc.TexttemplatesrcValidator", - "._texttemplate.TexttemplateValidator", - "._textsrc.TextsrcValidator", - "._textpositionsrc.TextpositionsrcValidator", - "._textposition.TextpositionValidator", - "._textfont.TextfontValidator", - "._text.TextValidator", - "._subplot.SubplotValidator", - "._stream.StreamValidator", - "._showlegend.ShowlegendValidator", - "._selectedpoints.SelectedpointsValidator", - "._selected.SelectedValidator", - "._rsrc.RsrcValidator", - "._r0.R0Validator", - "._r.RValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._mode.ModeValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._marker.MarkerValidator", - "._line.LineValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._fillcolor.FillcolorValidator", - "._fill.FillValidator", - "._dtheta.DthetaValidator", - "._dr.DrValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._connectgaps.ConnectgapsValidator", - ], + ['._visible.VisibleValidator', '._unselected.UnselectedValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._thetaunit.ThetaunitValidator', '._thetasrc.ThetasrcValidator', '._theta0.Theta0Validator', '._theta.ThetaValidator', '._texttemplatesrc.TexttemplatesrcValidator', '._texttemplate.TexttemplateValidator', '._textsrc.TextsrcValidator', '._textpositionsrc.TextpositionsrcValidator', '._textposition.TextpositionValidator', '._textfont.TextfontValidator', '._text.TextValidator', '._subplot.SubplotValidator', '._stream.StreamValidator', '._showlegend.ShowlegendValidator', '._selectedpoints.SelectedpointsValidator', '._selected.SelectedValidator', '._rsrc.RsrcValidator', '._r0.R0Validator', '._r.RValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._mode.ModeValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._marker.MarkerValidator', '._line.LineValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._fillcolor.FillcolorValidator', '._fill.FillValidator', '._dtheta.DthetaValidator', '._dr.DrValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._connectgaps.ConnectgapsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_connectgaps.py b/packages/python/plotly/plotly/validators/scatterpolargl/_connectgaps.py index cccb7f7ec63..600c7dd1c5f 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_connectgaps.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_connectgaps.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="connectgaps", parent_name="scatterpolargl", **kwargs - ): - super(ConnectgapsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ConnectgapsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='connectgaps', + parent_name='scatterpolargl', + **kwargs): + super(ConnectgapsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_customdata.py b/packages/python/plotly/plotly/validators/scatterpolargl/_customdata.py index 60d2621cb31..8928a5bfecf 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_customdata.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_customdata.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="customdata", parent_name="scatterpolargl", **kwargs - ): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='scatterpolargl', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_customdatasrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/_customdatasrc.py index 1c8b8a6707b..fafd24f15c1 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_customdatasrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="customdatasrc", parent_name="scatterpolargl", **kwargs - ): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='scatterpolargl', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_dr.py b/packages/python/plotly/plotly/validators/scatterpolargl/_dr.py index 0a3bc8ce682..f1ba05482a6 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_dr.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_dr.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class DrValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="dr", parent_name="scatterpolargl", **kwargs): - super(DrValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DrValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dr', + parent_name='scatterpolargl', + **kwargs): + super(DrValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_dtheta.py b/packages/python/plotly/plotly/validators/scatterpolargl/_dtheta.py index 30be934327f..e4664f52e9f 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_dtheta.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_dtheta.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class DthetaValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="dtheta", parent_name="scatterpolargl", **kwargs): - super(DthetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DthetaValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dtheta', + parent_name='scatterpolargl', + **kwargs): + super(DthetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_fill.py b/packages/python/plotly/plotly/validators/scatterpolargl/_fill.py index 1cabd2cf5ee..03bcc243e1e 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_fill.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_fill.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class FillValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="fill", parent_name="scatterpolargl", **kwargs): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "none", - "tozeroy", - "tozerox", - "tonexty", - "tonextx", - "toself", - "tonext", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='fill', + parent_name='scatterpolargl', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['none', 'tozeroy', 'tozerox', 'tonexty', 'tonextx', 'toself', 'tonext']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_fillcolor.py b/packages/python/plotly/plotly/validators/scatterpolargl/_fillcolor.py index 535873ca581..ec29cfc2a3a 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_fillcolor.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_fillcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="fillcolor", parent_name="scatterpolargl", **kwargs): - super(FillcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FillcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fillcolor', + parent_name='scatterpolargl', + **kwargs): + super(FillcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_hoverinfo.py b/packages/python/plotly/plotly/validators/scatterpolargl/_hoverinfo.py index 588fc3fb297..8dfccdacfe6 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="scatterpolargl", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["r", "theta", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='scatterpolargl', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['r', 'theta', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/_hoverinfosrc.py index e513c43a595..fc978f0710d 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_hoverinfosrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hoverinfosrc", parent_name="scatterpolargl", **kwargs - ): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='scatterpolargl', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_hoverlabel.py b/packages/python/plotly/plotly/validators/scatterpolargl/_hoverlabel.py index e69742b1834..295321d4045 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_hoverlabel.py @@ -1,53 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="hoverlabel", parent_name="scatterpolargl", **kwargs - ): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='scatterpolargl', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_hovertemplate.py b/packages/python/plotly/plotly/validators/scatterpolargl/_hovertemplate.py index f89ecbf1e64..8d9cea4427d 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_hovertemplate.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="hovertemplate", parent_name="scatterpolargl", **kwargs - ): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='scatterpolargl', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/_hovertemplatesrc.py index 9b7f2810878..03ba6a67ded 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_hovertemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertemplatesrc", parent_name="scatterpolargl", **kwargs - ): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='scatterpolargl', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_hovertext.py b/packages/python/plotly/plotly/validators/scatterpolargl/_hovertext.py index d2ce4af252b..ceeda6db616 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_hovertext.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="scatterpolargl", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='scatterpolargl', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_hovertextsrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/_hovertextsrc.py index 5c1c5fb2699..05a6257ddcf 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_hovertextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertextsrc", parent_name="scatterpolargl", **kwargs - ): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='scatterpolargl', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_ids.py b/packages/python/plotly/plotly/validators/scatterpolargl/_ids.py index ee1dde6be8b..32a19dc9b54 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_ids.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="scatterpolargl", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='scatterpolargl', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_idssrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/_idssrc.py index d770e51f7b3..d9497c47f70 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_idssrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="scatterpolargl", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='scatterpolargl', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_legend.py b/packages/python/plotly/plotly/validators/scatterpolargl/_legend.py index 3ea6bb917f5..f3990a37b5c 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_legend.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="scatterpolargl", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='scatterpolargl', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_legendgroup.py b/packages/python/plotly/plotly/validators/scatterpolargl/_legendgroup.py index 6428e9f381b..ecdfa2cb4a1 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_legendgroup.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="legendgroup", parent_name="scatterpolargl", **kwargs - ): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='scatterpolargl', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/scatterpolargl/_legendgrouptitle.py index a136e1fd7ba..70e50102cb0 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="scatterpolargl", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='scatterpolargl', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_legendrank.py b/packages/python/plotly/plotly/validators/scatterpolargl/_legendrank.py index faee6bb2a54..85a3eaf2053 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_legendrank.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_legendrank.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="legendrank", parent_name="scatterpolargl", **kwargs - ): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='scatterpolargl', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_legendwidth.py b/packages/python/plotly/plotly/validators/scatterpolargl/_legendwidth.py index 6d7c7f4fefd..8e05be01647 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_legendwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="legendwidth", parent_name="scatterpolargl", **kwargs - ): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='scatterpolargl', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_line.py b/packages/python/plotly/plotly/validators/scatterpolargl/_line.py index d446796f6e5..d3c716e923b 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_line.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_line.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="scatterpolargl", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the line color. - dash - Sets the style of the lines. - width - Sets the line width (in px). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='scatterpolargl', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_marker.py b/packages/python/plotly/plotly/validators/scatterpolargl/_marker.py index 42f96c14dc2..ac86992012e 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_marker.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_marker.py @@ -1,145 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="scatterpolargl", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - angle - Sets the marker angle in respect to `angleref`. - anglesrc - Sets the source reference on Chart Studio Cloud - for `angle`. - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.scatterpolargl.mar - ker.ColorBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - line - :class:`plotly.graph_objects.scatterpolargl.mar - ker.Line` instance or dict with compatible - properties - opacity - Sets the marker opacity. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. - size - Sets the marker size (in px). - sizemin - Has an effect only if `marker.size` is set to a - numerical array. Sets the minimum size (in px) - of the rendered marker points. - sizemode - Has an effect only if `marker.size` is set to a - numerical array. Sets the rule for which the - data in `size` is converted to pixels. - sizeref - Has an effect only if `marker.size` is set to a - numerical array. Sets the scale factor used to - determine the rendered size of marker points. - Use with `sizemin` and `sizemode`. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - symbol - Sets the marker symbol type. Adding 100 is - equivalent to appending "-open" to a symbol - name. Adding 200 is equivalent to appending - "-dot" to a symbol name. Adding 300 is - equivalent to appending "-open-dot" or "dot- - open" to a symbol name. - symbolsrc - Sets the source reference on Chart Studio Cloud - for `symbol`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scatterpolargl', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_meta.py b/packages/python/plotly/plotly/validators/scatterpolargl/_meta.py index c678fb42e86..71e805a37f7 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_meta.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="scatterpolargl", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='scatterpolargl', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_metasrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/_metasrc.py index 8998a220939..54f52b43878 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_metasrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="scatterpolargl", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='scatterpolargl', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_mode.py b/packages/python/plotly/plotly/validators/scatterpolargl/_mode.py index 94ce272fe48..9c53ff79d05 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_mode.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_mode.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="mode", parent_name="scatterpolargl", **kwargs): - super(ModeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["lines", "markers", "text"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ModeValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='mode', + parent_name='scatterpolargl', + **kwargs): + super(ModeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['lines', 'markers', 'text']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_name.py b/packages/python/plotly/plotly/validators/scatterpolargl/_name.py index 42efadd232e..a980790cd87 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_name.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="scatterpolargl", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='scatterpolargl', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_opacity.py b/packages/python/plotly/plotly/validators/scatterpolargl/_opacity.py index a1f2ba60f4e..a57ab261d8f 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_opacity.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="scatterpolargl", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scatterpolargl', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_r.py b/packages/python/plotly/plotly/validators/scatterpolargl/_r.py index cb10a91a15b..7a3c7947eb6 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_r.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_r.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class RValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="r", parent_name="scatterpolargl", **kwargs): - super(RValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='r', + parent_name='scatterpolargl', + **kwargs): + super(RValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_r0.py b/packages/python/plotly/plotly/validators/scatterpolargl/_r0.py index 4c1171a07bc..2c7749b7a4e 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_r0.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_r0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class R0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="r0", parent_name="scatterpolargl", **kwargs): - super(R0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class R0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='r0', + parent_name='scatterpolargl', + **kwargs): + super(R0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_rsrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/_rsrc.py index 956a53c6743..6465d7ac668 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_rsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_rsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class RsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="rsrc", parent_name="scatterpolargl", **kwargs): - super(RsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='rsrc', + parent_name='scatterpolargl', + **kwargs): + super(RsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_selected.py b/packages/python/plotly/plotly/validators/scatterpolargl/_selected.py index b3d87ae640f..f97e09912c2 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_selected.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_selected.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="selected", parent_name="scatterpolargl", **kwargs): - super(SelectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Selected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.scatterpolargl.sel - ected.Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.scatterpolargl.sel - ected.Textfont` instance or dict with - compatible properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='selected', + parent_name='scatterpolargl', + **kwargs): + super(SelectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_selectedpoints.py b/packages/python/plotly/plotly/validators/scatterpolargl/_selectedpoints.py index acd2459695f..60fbcdd7bf3 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_selectedpoints.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_selectedpoints.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="selectedpoints", parent_name="scatterpolargl", **kwargs - ): - super(SelectedpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SelectedpointsValidator(_bv.AnyValidator): + def __init__(self, plotly_name='selectedpoints', + parent_name='scatterpolargl', + **kwargs): + super(SelectedpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_showlegend.py b/packages/python/plotly/plotly/validators/scatterpolargl/_showlegend.py index 0c7ca9958c5..a2d629ed493 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_showlegend.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_showlegend.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showlegend", parent_name="scatterpolargl", **kwargs - ): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='scatterpolargl', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_stream.py b/packages/python/plotly/plotly/validators/scatterpolargl/_stream.py index bc00dd1ffb9..6c605b6bccf 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_stream.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="scatterpolargl", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='scatterpolargl', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_subplot.py b/packages/python/plotly/plotly/validators/scatterpolargl/_subplot.py index 194566c8dd8..d64d1ebc2e4 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_subplot.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_subplot.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SubplotValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="subplot", parent_name="scatterpolargl", **kwargs): - super(SubplotValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "polar"), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SubplotValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='subplot', + parent_name='scatterpolargl', + **kwargs): + super(SubplotValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'polar'), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_text.py b/packages/python/plotly/plotly/validators/scatterpolargl/_text.py index 8349035e093..4368c438c36 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_text.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="scatterpolargl", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scatterpolargl', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_textfont.py b/packages/python/plotly/plotly/validators/scatterpolargl/_textfont.py index 2fa609ae2b3..71e2cf433d6 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_textfont.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_textfont.py @@ -1,62 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="textfont", parent_name="scatterpolargl", **kwargs): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='scatterpolargl', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_textposition.py b/packages/python/plotly/plotly/validators/scatterpolargl/_textposition.py index 9f226bb746d..12c003b5d64 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_textposition.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_textposition.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textposition", parent_name="scatterpolargl", **kwargs - ): - super(TextpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "top left", - "top center", - "top right", - "middle left", - "middle center", - "middle right", - "bottom left", - "bottom center", - "bottom right", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textposition', + parent_name='scatterpolargl', + **kwargs): + super(TextpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['top left', 'top center', 'top right', 'middle left', 'middle center', 'middle right', 'bottom left', 'bottom center', 'bottom right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_textpositionsrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/_textpositionsrc.py index 22dc7cd90c4..492e6f86c6f 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_textpositionsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_textpositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textpositionsrc", parent_name="scatterpolargl", **kwargs - ): - super(TextpositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextpositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textpositionsrc', + parent_name='scatterpolargl', + **kwargs): + super(TextpositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_textsrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/_textsrc.py index c5b6cce44f7..97bf7fed648 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_textsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="scatterpolargl", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='scatterpolargl', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_texttemplate.py b/packages/python/plotly/plotly/validators/scatterpolargl/_texttemplate.py index 9157a4599fa..faa435b050b 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_texttemplate.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_texttemplate.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="texttemplate", parent_name="scatterpolargl", **kwargs - ): - super(TexttemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='texttemplate', + parent_name='scatterpolargl', + **kwargs): + super(TexttemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_texttemplatesrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/_texttemplatesrc.py index 19af4d92cac..ab2beb90c5a 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_texttemplatesrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_texttemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="texttemplatesrc", parent_name="scatterpolargl", **kwargs - ): - super(TexttemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='texttemplatesrc', + parent_name='scatterpolargl', + **kwargs): + super(TexttemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_theta.py b/packages/python/plotly/plotly/validators/scatterpolargl/_theta.py index f8b0c6f2fbe..6d3a36d3422 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_theta.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_theta.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ThetaValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="theta", parent_name="scatterpolargl", **kwargs): - super(ThetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThetaValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='theta', + parent_name='scatterpolargl', + **kwargs): + super(ThetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_theta0.py b/packages/python/plotly/plotly/validators/scatterpolargl/_theta0.py index 0c72f22ef2c..c2a0b55e642 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_theta0.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_theta0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Theta0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="theta0", parent_name="scatterpolargl", **kwargs): - super(Theta0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Theta0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='theta0', + parent_name='scatterpolargl', + **kwargs): + super(Theta0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_thetasrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/_thetasrc.py index f7d4de2bec1..6d7da0b3851 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_thetasrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_thetasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ThetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="thetasrc", parent_name="scatterpolargl", **kwargs): - super(ThetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='thetasrc', + parent_name='scatterpolargl', + **kwargs): + super(ThetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_thetaunit.py b/packages/python/plotly/plotly/validators/scatterpolargl/_thetaunit.py index da5ecf2212a..2df2bbdaa74 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_thetaunit.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_thetaunit.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThetaunitValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="thetaunit", parent_name="scatterpolargl", **kwargs): - super(ThetaunitValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - values=kwargs.pop("values", ["radians", "degrees", "gradians"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThetaunitValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thetaunit', + parent_name='scatterpolargl', + **kwargs): + super(ThetaunitValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + values=kwargs.pop('values', ['radians', 'degrees', 'gradians']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_uid.py b/packages/python/plotly/plotly/validators/scatterpolargl/_uid.py index 0207353fa12..29bd79cb59f 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_uid.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="scatterpolargl", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='scatterpolargl', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_uirevision.py b/packages/python/plotly/plotly/validators/scatterpolargl/_uirevision.py index 3c9724ceb3e..516f1ba669f 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_uirevision.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_uirevision.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="uirevision", parent_name="scatterpolargl", **kwargs - ): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='scatterpolargl', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_unselected.py b/packages/python/plotly/plotly/validators/scatterpolargl/_unselected.py index 23d1653ecce..01101aa5fcc 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_unselected.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_unselected.py @@ -1,26 +1,15 @@ -import _plotly_utils.basevalidators -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="unselected", parent_name="scatterpolargl", **kwargs - ): - super(UnselectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Unselected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.scatterpolargl.uns - elected.Marker` instance or dict with - compatible properties - textfont - :class:`plotly.graph_objects.scatterpolargl.uns - elected.Textfont` instance or dict with - compatible properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UnselectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='unselected', + parent_name='scatterpolargl', + **kwargs): + super(UnselectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/_visible.py b/packages/python/plotly/plotly/validators/scatterpolargl/_visible.py index ad4df38b628..03174c8210a 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/_visible.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="scatterpolargl", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='scatterpolargl', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_align.py index 581fd7b73e2..76b6f21edec 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_align.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="align", parent_name="scatterpolargl.hoverlabel", **kwargs - ): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='scatterpolargl.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_alignsrc.py index 1eaba8a0e31..fbdcab2e5be 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="scatterpolargl.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='scatterpolargl.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_bgcolor.py index 3c78ec33bb3..cc073591464 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="scatterpolargl.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='scatterpolargl.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_bgcolorsrc.py index 68e5cf54591..1dd386db111 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_bgcolorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="bgcolorsrc", - parent_name="scatterpolargl.hoverlabel", - **kwargs, - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='scatterpolargl.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_bordercolor.py index d241dd98d72..71aaa232856 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_bordercolor.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bordercolor", - parent_name="scatterpolargl.hoverlabel", - **kwargs, - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='scatterpolargl.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_bordercolorsrc.py index 5959a120510..1de336f1c2b 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="bordercolorsrc", - parent_name="scatterpolargl.hoverlabel", - **kwargs, - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='scatterpolargl.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_font.py index 9d9dde2246e..61225d286bb 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_font.py @@ -1,88 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="scatterpolargl.hoverlabel", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scatterpolargl.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_namelength.py index 094244fbcb8..df1d33735de 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_namelength.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="namelength", - parent_name="scatterpolargl.hoverlabel", - **kwargs, - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='scatterpolargl.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_namelengthsrc.py index ddd75364089..9e93bcca8a4 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/_namelengthsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="namelengthsrc", - parent_name="scatterpolargl.hoverlabel", - **kwargs, - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='scatterpolargl.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_color.py index e032229b294..7dc880570ac 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_color.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatterpolargl.hoverlabel.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterpolargl.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_colorsrc.py index 7f99e0e2ef0..7b056cb640b 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_colorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="colorsrc", - parent_name="scatterpolargl.hoverlabel.font", - **kwargs, - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scatterpolargl.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_family.py index 2dffd5f59fd..541df2b0fb3 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_family.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scatterpolargl.hoverlabel.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scatterpolargl.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_familysrc.py index 10cd822bdb0..ff421d97a77 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_familysrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="familysrc", - parent_name="scatterpolargl.hoverlabel.font", - **kwargs, - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='scatterpolargl.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_lineposition.py index ffa1e5b9f5b..5edf40fa940 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scatterpolargl.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scatterpolargl.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_linepositionsrc.py index 04259572c35..21d7f483bdf 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="scatterpolargl.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='scatterpolargl.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_shadow.py index 8710c9e2e6b..07678b14938 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_shadow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scatterpolargl.hoverlabel.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scatterpolargl.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_shadowsrc.py index 415a0989c15..67b04f3e56b 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="shadowsrc", - parent_name="scatterpolargl.hoverlabel.font", - **kwargs, - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='scatterpolargl.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_size.py index 09fe04d11b9..f1473a33366 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scatterpolargl.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatterpolargl.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_sizesrc.py index 15cfffdf36d..fb7a2fb6010 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_sizesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="sizesrc", - parent_name="scatterpolargl.hoverlabel.font", - **kwargs, - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scatterpolargl.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_style.py index 4fbd959cf41..509c2170b1a 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_style.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scatterpolargl.hoverlabel.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scatterpolargl.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_stylesrc.py index 06d3ec5d8d9..1887d711de1 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_stylesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="stylesrc", - parent_name="scatterpolargl.hoverlabel.font", - **kwargs, - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='scatterpolargl.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_textcase.py index a5941886449..b439a28fbcd 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_textcase.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scatterpolargl.hoverlabel.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scatterpolargl.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_textcasesrc.py index 817f7e491ff..2e04b99546f 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="scatterpolargl.hoverlabel.font", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='scatterpolargl.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_variant.py index b1c0f7f87d3..f32fcec5f30 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_variant.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scatterpolargl.hoverlabel.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scatterpolargl.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_variantsrc.py index 20c53e56bd5..cef241e8dc6 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_variantsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="variantsrc", - parent_name="scatterpolargl.hoverlabel.font", - **kwargs, - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='scatterpolargl.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_weight.py index 476be0b801e..85721c0322f 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_weight.py @@ -1,20 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scatterpolargl.hoverlabel.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scatterpolargl.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_weightsrc.py index f7335b8adb2..2a54befc5fc 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/_weightsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="weightsrc", - parent_name="scatterpolargl.hoverlabel.font", - **kwargs, - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='scatterpolargl.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/_font.py index cf3f6ae10df..41c32b78c21 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/_font.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="font", - parent_name="scatterpolargl.legendgrouptitle", - **kwargs, - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scatterpolargl.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/_text.py index 302aec3d03b..42490fc2d0c 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/_text.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="text", - parent_name="scatterpolargl.legendgrouptitle", - **kwargs, - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scatterpolargl.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_color.py index bec44d655a5..5615a295bdd 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatterpolargl.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterpolargl.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_family.py index ff304f1df28..7f32ea92a40 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scatterpolargl.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scatterpolargl.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_lineposition.py index ec11b86b846..ba34da08a09 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scatterpolargl.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scatterpolargl.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_shadow.py index 02a3e18a893..bbb6d71d76e 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scatterpolargl.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scatterpolargl.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_size.py index 803f0ab6440..519ed9f7689 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scatterpolargl.legendgrouptitle.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatterpolargl.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_style.py index 073e80ae08b..c2bb5db7ea8 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scatterpolargl.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scatterpolargl.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_textcase.py index d9488439074..79fd0a9ab68 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scatterpolargl.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scatterpolargl.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_variant.py index b64253abf9a..805a2cf2719 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scatterpolargl.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scatterpolargl.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_weight.py index d8d1c092388..fd3813d8fff 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scatterpolargl.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scatterpolargl.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/line/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/line/__init__.py index cff41466517..e42e2f2974d 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/line/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._dash import DashValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._width.WidthValidator", "._dash.DashValidator", "._color.ColorValidator"], + ['._width.WidthValidator', '._dash.DashValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/line/_color.py b/packages/python/plotly/plotly/validators/scatterpolargl/line/_color.py index 5425d65d942..8ddff02ac23 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/line/_color.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/line/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scatterpolargl.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterpolargl.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/line/_dash.py b/packages/python/plotly/plotly/validators/scatterpolargl/line/_dash.py index 2d8af9699e6..6686487d56a 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/line/_dash.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/line/_dash.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DashValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="dash", parent_name="scatterpolargl.line", **kwargs): - super(DashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", ["dash", "dashdot", "dot", "longdash", "longdashdot", "solid"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DashValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='dash', + parent_name='scatterpolargl.line', + **kwargs): + super(DashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['dash', 'dashdot', 'dot', 'longdash', 'longdashdot', 'solid']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/line/_width.py b/packages/python/plotly/plotly/validators/scatterpolargl/line/_width.py index 10386997d3a..54d2a92bfcf 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/line/_width.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/line/_width.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="scatterpolargl.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='scatterpolargl.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/__init__.py index dc48879d6be..b939ff13709 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._symbolsrc import SymbolsrcValidator from ._symbol import SymbolValidator @@ -28,34 +27,10 @@ from ._angle import AngleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._symbolsrc.SymbolsrcValidator", - "._symbol.SymbolValidator", - "._sizesrc.SizesrcValidator", - "._sizeref.SizerefValidator", - "._sizemode.SizemodeValidator", - "._sizemin.SizeminValidator", - "._size.SizeValidator", - "._showscale.ShowscaleValidator", - "._reversescale.ReversescaleValidator", - "._opacitysrc.OpacitysrcValidator", - "._opacity.OpacityValidator", - "._line.LineValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - "._anglesrc.AnglesrcValidator", - "._angle.AngleValidator", - ], + ['._symbolsrc.SymbolsrcValidator', '._symbol.SymbolValidator', '._sizesrc.SizesrcValidator', '._sizeref.SizerefValidator', '._sizemode.SizemodeValidator', '._sizemin.SizeminValidator', '._size.SizeValidator', '._showscale.ShowscaleValidator', '._reversescale.ReversescaleValidator', '._opacitysrc.OpacitysrcValidator', '._opacity.OpacityValidator', '._line.LineValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator', '._anglesrc.AnglesrcValidator', '._angle.AngleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_angle.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_angle.py index 0786e642448..0c90e605cb5 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_angle.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_angle.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AngleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="angle", parent_name="scatterpolargl.marker", **kwargs - ): - super(AngleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AngleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='angle', + parent_name='scatterpolargl.marker', + **kwargs): + super(AngleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_anglesrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_anglesrc.py index 3bb11c7d442..3760709e77e 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_anglesrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_anglesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AnglesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="anglesrc", parent_name="scatterpolargl.marker", **kwargs - ): - super(AnglesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AnglesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='anglesrc', + parent_name='scatterpolargl.marker', + **kwargs): + super(AnglesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_autocolorscale.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_autocolorscale.py index cfada839f0a..14d3c425793 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_autocolorscale.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="autocolorscale", - parent_name="scatterpolargl.marker", - **kwargs, - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='scatterpolargl.marker', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_cauto.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_cauto.py index b2bbcbc1d99..54ecb9ab80d 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_cauto.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_cauto.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="cauto", parent_name="scatterpolargl.marker", **kwargs - ): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='scatterpolargl.marker', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_cmax.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_cmax.py index e152101cdfe..d9c9cb33761 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_cmax.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_cmax.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmax", parent_name="scatterpolargl.marker", **kwargs - ): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='scatterpolargl.marker', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_cmid.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_cmid.py index 4edfd2b9164..ee08ee7ad07 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_cmid.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_cmid.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmid", parent_name="scatterpolargl.marker", **kwargs - ): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='scatterpolargl.marker', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_cmin.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_cmin.py index 354d2eb549b..1acdfe4176b 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_cmin.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_cmin.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmin", parent_name="scatterpolargl.marker", **kwargs - ): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='scatterpolargl.marker', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_color.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_color.py index 604b2db8ce8..301b4910cd7 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_color.py @@ -1,17 +1,15 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scatterpolargl.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - colorscale_path=kwargs.pop( - "colorscale_path", "scatterpolargl.marker.colorscale" - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterpolargl.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + colorscale_path=kwargs.pop('colorscale_path', 'scatterpolargl.marker.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_coloraxis.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_coloraxis.py index 7690c5ed275..07e888ea9cc 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_coloraxis.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name="coloraxis", parent_name="scatterpolargl.marker", **kwargs - ): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='scatterpolargl.marker', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_colorbar.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_colorbar.py index 10157a4e50a..df0375d9060 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_colorbar.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_colorbar.py @@ -1,282 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="colorbar", parent_name="scatterpolargl.marker", **kwargs - ): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.scatter - polargl.marker.colorbar.Tickformatstop` - instances or dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.scatterpolargl.marker.colorbar.tickformatstop - defaults), sets the default property values to - use for elements of - scatterpolargl.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.scatterpolargl.mar - ker.colorbar.Title` instance or dict with - compatible properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='scatterpolargl.marker', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_colorscale.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_colorscale.py index efbae529763..bc67ad96da6 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_colorscale.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="scatterpolargl.marker", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='scatterpolargl.marker', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_colorsrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_colorsrc.py index 6f144a3a879..bfae44e82f7 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scatterpolargl.marker", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scatterpolargl.marker', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_line.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_line.py index 855250ee55f..4dcd057e79b 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_line.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_line.py @@ -1,107 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="line", parent_name="scatterpolargl.marker", **kwargs - ): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.line.colorscale`. Has an - effect only if in `marker.line.color` is set to - a numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.line.color`) or the bounds set in - `marker.line.cmin` and `marker.line.cmax` Has - an effect only if in `marker.line.color` is set - to a numerical array. Defaults to `false` when - `marker.line.cmin` and `marker.line.cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.line.cmin` and/or - `marker.line.cmax` to be equidistant to this - point. Has an effect only if in - `marker.line.color` is set to a numerical - array. Value should have the same units as in - `marker.line.color`. Has no effect when - `marker.line.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmax` must be set as well. - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorscale - Sets the colorscale. Has an effect only if in - `marker.line.color` is set to a numerical - array. The colorscale must be an array - containing arrays mapping a normalized value to - an rgb, rgba, hex, hsl, hsv, or named color - string. At minimum, a mapping for the lowest - (0) and highest (1) values are required. For - example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use - `marker.line.cmin` and `marker.line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.line.color` is set to - a numerical array. If true, `marker.line.cmin` - will correspond to the last color in the array - and `marker.line.cmax` will correspond to the - first color. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='scatterpolargl.marker', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_opacity.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_opacity.py index fe7cc64fc6d..cfa7cce500d 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_opacity.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="scatterpolargl.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scatterpolargl.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_opacitysrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_opacitysrc.py index 7c92ead162d..4bfdb767c97 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_opacitysrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_opacitysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="opacitysrc", parent_name="scatterpolargl.marker", **kwargs - ): - super(OpacitysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacitysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='opacitysrc', + parent_name='scatterpolargl.marker', + **kwargs): + super(OpacitysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_reversescale.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_reversescale.py index 150c91b51a0..4888be7e126 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_reversescale.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="scatterpolargl.marker", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='scatterpolargl.marker', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_showscale.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_showscale.py index 37fdb12aaa6..4ea1f734a46 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_showscale.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_showscale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showscale", parent_name="scatterpolargl.marker", **kwargs - ): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='scatterpolargl.marker', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_size.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_size.py index 6dcd7404865..5b30d67956e 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scatterpolargl.marker", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatterpolargl.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_sizemin.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_sizemin.py index 718b1ac635f..91f4ec6c5d7 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_sizemin.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_sizemin.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="sizemin", parent_name="scatterpolargl.marker", **kwargs - ): - super(SizeminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sizemin', + parent_name='scatterpolargl.marker', + **kwargs): + super(SizeminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_sizemode.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_sizemode.py index 5794ca9709a..b93202e0315 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_sizemode.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_sizemode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="sizemode", parent_name="scatterpolargl.marker", **kwargs - ): - super(SizemodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["diameter", "area"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizemodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='sizemode', + parent_name='scatterpolargl.marker', + **kwargs): + super(SizemodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['diameter', 'area']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_sizeref.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_sizeref.py index 12545b45288..a441e6a429b 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_sizeref.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_sizeref.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="sizeref", parent_name="scatterpolargl.marker", **kwargs - ): - super(SizerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizerefValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sizeref', + parent_name='scatterpolargl.marker', + **kwargs): + super(SizerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_sizesrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_sizesrc.py index 9fde47c2f17..3cd0b489faa 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="scatterpolargl.marker", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scatterpolargl.marker', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_symbol.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_symbol.py index 01d6ce5ffa3..7caef3ac720 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_symbol.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_symbol.py @@ -1,505 +1,15 @@ -import _plotly_utils.basevalidators -class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="symbol", parent_name="scatterpolargl.marker", **kwargs - ): - super(SymbolValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - 0, - "0", - "circle", - 100, - "100", - "circle-open", - 200, - "200", - "circle-dot", - 300, - "300", - "circle-open-dot", - 1, - "1", - "square", - 101, - "101", - "square-open", - 201, - "201", - "square-dot", - 301, - "301", - "square-open-dot", - 2, - "2", - "diamond", - 102, - "102", - "diamond-open", - 202, - "202", - "diamond-dot", - 302, - "302", - "diamond-open-dot", - 3, - "3", - "cross", - 103, - "103", - "cross-open", - 203, - "203", - "cross-dot", - 303, - "303", - "cross-open-dot", - 4, - "4", - "x", - 104, - "104", - "x-open", - 204, - "204", - "x-dot", - 304, - "304", - "x-open-dot", - 5, - "5", - "triangle-up", - 105, - "105", - "triangle-up-open", - 205, - "205", - "triangle-up-dot", - 305, - "305", - "triangle-up-open-dot", - 6, - "6", - "triangle-down", - 106, - "106", - "triangle-down-open", - 206, - "206", - "triangle-down-dot", - 306, - "306", - "triangle-down-open-dot", - 7, - "7", - "triangle-left", - 107, - "107", - "triangle-left-open", - 207, - "207", - "triangle-left-dot", - 307, - "307", - "triangle-left-open-dot", - 8, - "8", - "triangle-right", - 108, - "108", - "triangle-right-open", - 208, - "208", - "triangle-right-dot", - 308, - "308", - "triangle-right-open-dot", - 9, - "9", - "triangle-ne", - 109, - "109", - "triangle-ne-open", - 209, - "209", - "triangle-ne-dot", - 309, - "309", - "triangle-ne-open-dot", - 10, - "10", - "triangle-se", - 110, - "110", - "triangle-se-open", - 210, - "210", - "triangle-se-dot", - 310, - "310", - "triangle-se-open-dot", - 11, - "11", - "triangle-sw", - 111, - "111", - "triangle-sw-open", - 211, - "211", - "triangle-sw-dot", - 311, - "311", - "triangle-sw-open-dot", - 12, - "12", - "triangle-nw", - 112, - "112", - "triangle-nw-open", - 212, - "212", - "triangle-nw-dot", - 312, - "312", - "triangle-nw-open-dot", - 13, - "13", - "pentagon", - 113, - "113", - "pentagon-open", - 213, - "213", - "pentagon-dot", - 313, - "313", - "pentagon-open-dot", - 14, - "14", - "hexagon", - 114, - "114", - "hexagon-open", - 214, - "214", - "hexagon-dot", - 314, - "314", - "hexagon-open-dot", - 15, - "15", - "hexagon2", - 115, - "115", - "hexagon2-open", - 215, - "215", - "hexagon2-dot", - 315, - "315", - "hexagon2-open-dot", - 16, - "16", - "octagon", - 116, - "116", - "octagon-open", - 216, - "216", - "octagon-dot", - 316, - "316", - "octagon-open-dot", - 17, - "17", - "star", - 117, - "117", - "star-open", - 217, - "217", - "star-dot", - 317, - "317", - "star-open-dot", - 18, - "18", - "hexagram", - 118, - "118", - "hexagram-open", - 218, - "218", - "hexagram-dot", - 318, - "318", - "hexagram-open-dot", - 19, - "19", - "star-triangle-up", - 119, - "119", - "star-triangle-up-open", - 219, - "219", - "star-triangle-up-dot", - 319, - "319", - "star-triangle-up-open-dot", - 20, - "20", - "star-triangle-down", - 120, - "120", - "star-triangle-down-open", - 220, - "220", - "star-triangle-down-dot", - 320, - "320", - "star-triangle-down-open-dot", - 21, - "21", - "star-square", - 121, - "121", - "star-square-open", - 221, - "221", - "star-square-dot", - 321, - "321", - "star-square-open-dot", - 22, - "22", - "star-diamond", - 122, - "122", - "star-diamond-open", - 222, - "222", - "star-diamond-dot", - 322, - "322", - "star-diamond-open-dot", - 23, - "23", - "diamond-tall", - 123, - "123", - "diamond-tall-open", - 223, - "223", - "diamond-tall-dot", - 323, - "323", - "diamond-tall-open-dot", - 24, - "24", - "diamond-wide", - 124, - "124", - "diamond-wide-open", - 224, - "224", - "diamond-wide-dot", - 324, - "324", - "diamond-wide-open-dot", - 25, - "25", - "hourglass", - 125, - "125", - "hourglass-open", - 26, - "26", - "bowtie", - 126, - "126", - "bowtie-open", - 27, - "27", - "circle-cross", - 127, - "127", - "circle-cross-open", - 28, - "28", - "circle-x", - 128, - "128", - "circle-x-open", - 29, - "29", - "square-cross", - 129, - "129", - "square-cross-open", - 30, - "30", - "square-x", - 130, - "130", - "square-x-open", - 31, - "31", - "diamond-cross", - 131, - "131", - "diamond-cross-open", - 32, - "32", - "diamond-x", - 132, - "132", - "diamond-x-open", - 33, - "33", - "cross-thin", - 133, - "133", - "cross-thin-open", - 34, - "34", - "x-thin", - 134, - "134", - "x-thin-open", - 35, - "35", - "asterisk", - 135, - "135", - "asterisk-open", - 36, - "36", - "hash", - 136, - "136", - "hash-open", - 236, - "236", - "hash-dot", - 336, - "336", - "hash-open-dot", - 37, - "37", - "y-up", - 137, - "137", - "y-up-open", - 38, - "38", - "y-down", - 138, - "138", - "y-down-open", - 39, - "39", - "y-left", - 139, - "139", - "y-left-open", - 40, - "40", - "y-right", - 140, - "140", - "y-right-open", - 41, - "41", - "line-ew", - 141, - "141", - "line-ew-open", - 42, - "42", - "line-ns", - 142, - "142", - "line-ns-open", - 43, - "43", - "line-ne", - 143, - "143", - "line-ne-open", - 44, - "44", - "line-nw", - 144, - "144", - "line-nw-open", - 45, - "45", - "arrow-up", - 145, - "145", - "arrow-up-open", - 46, - "46", - "arrow-down", - 146, - "146", - "arrow-down-open", - 47, - "47", - "arrow-left", - 147, - "147", - "arrow-left-open", - 48, - "48", - "arrow-right", - 148, - "148", - "arrow-right-open", - 49, - "49", - "arrow-bar-up", - 149, - "149", - "arrow-bar-up-open", - 50, - "50", - "arrow-bar-down", - 150, - "150", - "arrow-bar-down-open", - 51, - "51", - "arrow-bar-left", - 151, - "151", - "arrow-bar-left-open", - 52, - "52", - "arrow-bar-right", - 152, - "152", - "arrow-bar-right-open", - 53, - "53", - "arrow", - 153, - "153", - "arrow-open", - 54, - "54", - "arrow-wide", - 154, - "154", - "arrow-wide-open", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SymbolValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='symbol', + parent_name='scatterpolargl.marker', + **kwargs): + super(SymbolValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [0, '0', 'circle', 100, '100', 'circle-open', 200, '200', 'circle-dot', 300, '300', 'circle-open-dot', 1, '1', 'square', 101, '101', 'square-open', 201, '201', 'square-dot', 301, '301', 'square-open-dot', 2, '2', 'diamond', 102, '102', 'diamond-open', 202, '202', 'diamond-dot', 302, '302', 'diamond-open-dot', 3, '3', 'cross', 103, '103', 'cross-open', 203, '203', 'cross-dot', 303, '303', 'cross-open-dot', 4, '4', 'x', 104, '104', 'x-open', 204, '204', 'x-dot', 304, '304', 'x-open-dot', 5, '5', 'triangle-up', 105, '105', 'triangle-up-open', 205, '205', 'triangle-up-dot', 305, '305', 'triangle-up-open-dot', 6, '6', 'triangle-down', 106, '106', 'triangle-down-open', 206, '206', 'triangle-down-dot', 306, '306', 'triangle-down-open-dot', 7, '7', 'triangle-left', 107, '107', 'triangle-left-open', 207, '207', 'triangle-left-dot', 307, '307', 'triangle-left-open-dot', 8, '8', 'triangle-right', 108, '108', 'triangle-right-open', 208, '208', 'triangle-right-dot', 308, '308', 'triangle-right-open-dot', 9, '9', 'triangle-ne', 109, '109', 'triangle-ne-open', 209, '209', 'triangle-ne-dot', 309, '309', 'triangle-ne-open-dot', 10, '10', 'triangle-se', 110, '110', 'triangle-se-open', 210, '210', 'triangle-se-dot', 310, '310', 'triangle-se-open-dot', 11, '11', 'triangle-sw', 111, '111', 'triangle-sw-open', 211, '211', 'triangle-sw-dot', 311, '311', 'triangle-sw-open-dot', 12, '12', 'triangle-nw', 112, '112', 'triangle-nw-open', 212, '212', 'triangle-nw-dot', 312, '312', 'triangle-nw-open-dot', 13, '13', 'pentagon', 113, '113', 'pentagon-open', 213, '213', 'pentagon-dot', 313, '313', 'pentagon-open-dot', 14, '14', 'hexagon', 114, '114', 'hexagon-open', 214, '214', 'hexagon-dot', 314, '314', 'hexagon-open-dot', 15, '15', 'hexagon2', 115, '115', 'hexagon2-open', 215, '215', 'hexagon2-dot', 315, '315', 'hexagon2-open-dot', 16, '16', 'octagon', 116, '116', 'octagon-open', 216, '216', 'octagon-dot', 316, '316', 'octagon-open-dot', 17, '17', 'star', 117, '117', 'star-open', 217, '217', 'star-dot', 317, '317', 'star-open-dot', 18, '18', 'hexagram', 118, '118', 'hexagram-open', 218, '218', 'hexagram-dot', 318, '318', 'hexagram-open-dot', 19, '19', 'star-triangle-up', 119, '119', 'star-triangle-up-open', 219, '219', 'star-triangle-up-dot', 319, '319', 'star-triangle-up-open-dot', 20, '20', 'star-triangle-down', 120, '120', 'star-triangle-down-open', 220, '220', 'star-triangle-down-dot', 320, '320', 'star-triangle-down-open-dot', 21, '21', 'star-square', 121, '121', 'star-square-open', 221, '221', 'star-square-dot', 321, '321', 'star-square-open-dot', 22, '22', 'star-diamond', 122, '122', 'star-diamond-open', 222, '222', 'star-diamond-dot', 322, '322', 'star-diamond-open-dot', 23, '23', 'diamond-tall', 123, '123', 'diamond-tall-open', 223, '223', 'diamond-tall-dot', 323, '323', 'diamond-tall-open-dot', 24, '24', 'diamond-wide', 124, '124', 'diamond-wide-open', 224, '224', 'diamond-wide-dot', 324, '324', 'diamond-wide-open-dot', 25, '25', 'hourglass', 125, '125', 'hourglass-open', 26, '26', 'bowtie', 126, '126', 'bowtie-open', 27, '27', 'circle-cross', 127, '127', 'circle-cross-open', 28, '28', 'circle-x', 128, '128', 'circle-x-open', 29, '29', 'square-cross', 129, '129', 'square-cross-open', 30, '30', 'square-x', 130, '130', 'square-x-open', 31, '31', 'diamond-cross', 131, '131', 'diamond-cross-open', 32, '32', 'diamond-x', 132, '132', 'diamond-x-open', 33, '33', 'cross-thin', 133, '133', 'cross-thin-open', 34, '34', 'x-thin', 134, '134', 'x-thin-open', 35, '35', 'asterisk', 135, '135', 'asterisk-open', 36, '36', 'hash', 136, '136', 'hash-open', 236, '236', 'hash-dot', 336, '336', 'hash-open-dot', 37, '37', 'y-up', 137, '137', 'y-up-open', 38, '38', 'y-down', 138, '138', 'y-down-open', 39, '39', 'y-left', 139, '139', 'y-left-open', 40, '40', 'y-right', 140, '140', 'y-right-open', 41, '41', 'line-ew', 141, '141', 'line-ew-open', 42, '42', 'line-ns', 142, '142', 'line-ns-open', 43, '43', 'line-ne', 143, '143', 'line-ne-open', 44, '44', 'line-nw', 144, '144', 'line-nw-open', 45, '45', 'arrow-up', 145, '145', 'arrow-up-open', 46, '46', 'arrow-down', 146, '146', 'arrow-down-open', 47, '47', 'arrow-left', 147, '147', 'arrow-left-open', 48, '48', 'arrow-right', 148, '148', 'arrow-right-open', 49, '49', 'arrow-bar-up', 149, '149', 'arrow-bar-up-open', 50, '50', 'arrow-bar-down', 150, '150', 'arrow-bar-down-open', 51, '51', 'arrow-bar-left', 151, '151', 'arrow-bar-left-open', 52, '52', 'arrow-bar-right', 152, '152', 'arrow-bar-right-open', 53, '53', 'arrow', 153, '153', 'arrow-open', 54, '54', 'arrow-wide', 154, '154', 'arrow-wide-open']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_symbolsrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_symbolsrc.py index addb7620fae..cad3b1b6ceb 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/_symbolsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/_symbolsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="symbolsrc", parent_name="scatterpolargl.marker", **kwargs - ): - super(SymbolsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SymbolsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='symbolsrc', + parent_name='scatterpolargl.marker', + **kwargs): + super(SymbolsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_bgcolor.py index 0aa1d9d11a2..645a3fa2896 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_bgcolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bgcolor", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_bordercolor.py index 53ae187d70f..2236f8ac84a 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_bordercolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bordercolor", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_borderwidth.py index 55727f73559..f906334b497 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_borderwidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="borderwidth", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_dtick.py index 0a2c3842632..cebc36c2884 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_dtick.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="dtick", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_exponentformat.py index b727d3f1f39..bc96b6d8fd0 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_exponentformat.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="exponentformat", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_labelalias.py index 3a2cd2ce284..c0ebb994fc5 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_labelalias.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="labelalias", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_len.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_len.py index fb590c6f2eb..51c9697447f 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_len.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="len", parent_name="scatterpolargl.marker.colorbar", **kwargs - ): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_lenmode.py index ef3b89f826d..9f09b556aa4 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_lenmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="lenmode", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_minexponent.py index 34806203d43..455ed23ea9f 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_minexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="minexponent", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_nticks.py index 37bf0c0334a..ff81c02141c 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_nticks.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="nticks", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_orientation.py index 31206068114..cac68a8e9bb 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_orientation.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="orientation", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_outlinecolor.py index 11088bdcd54..2ec5da674d5 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_outlinecolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="outlinecolor", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_outlinewidth.py index 9adec39c764..d89b97f747d 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_outlinewidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="outlinewidth", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_separatethousands.py index 2b53cb3a25e..b60585348fa 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_showexponent.py index 5bf26e83deb..ba479928f3e 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_showexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showexponent", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_showticklabels.py index e134598888a..e496bc3f4b1 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_showtickprefix.py index b23e3d3e724..d52ab64bd02 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_showticksuffix.py index 94f9a3c3f0e..bb87defe713 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_thickness.py index c5f9c5b0fdf..400a75da54e 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_thickness.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="thickness", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_thicknessmode.py index b9f7eb01d91..1c86bd9eb50 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_thicknessmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="thicknessmode", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tick0.py index c0aff472a1f..e682c0903ab 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tick0.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="tick0", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickangle.py index 32d32209d75..45c3913d964 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickangle.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name="tickangle", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickcolor.py index 5e94d1d3f24..25536b0981b 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickcolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="tickcolor", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickfont.py index 1577d1e030a..e8f4509481f 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickfont.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickfont", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickformat.py index 22d5e344055..14a62031f89 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickformat.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickformat", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickformatstopdefaults.py index ab4f7d27d42..01a02b88574 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickformatstops.py index 297cf672b10..911fee0f0fb 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticklabeloverflow.py index c0eb345e752..d73aa04464f 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticklabelposition.py index 1d7517df0ea..bcca4b611a1 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticklabelstep.py index 524de877be5..fd155204a4d 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticklabelstep.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="ticklabelstep", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticklen.py index abe82a47eeb..ed003016e00 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticklen.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="ticklen", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickmode.py index 2300f93b011..a7b7b725233 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickmode.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="tickmode", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickprefix.py index 217cf583257..0eb1b10d8cf 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickprefix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickprefix", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticks.py index 87dad9ddee9..61d38002ee8 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticks.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticks", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticksuffix.py index 6db266133ee..696c91a87dc 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticksuffix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="ticksuffix", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticktext.py index 974c6f228d0..ae6c1a39569 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticktext.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name="ticktext", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticktextsrc.py index 60995c3f601..37095658c88 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ticktextsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="ticktextsrc", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickvals.py index c00d01965c8..cc882041e62 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickvals.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name="tickvals", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickvalssrc.py index 0ee181df15e..15a6a8ac378 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickvalssrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="tickvalssrc", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickwidth.py index d31ef9fdbb7..7a4910d6c93 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_tickwidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="tickwidth", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_title.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_title.py index 405019d1db8..093aed84d50 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_title.py @@ -1,30 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, - plotly_name="title", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_x.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_x.py index 500bb0f522a..745af466dbb 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_x.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="x", parent_name="scatterpolargl.marker.colorbar", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_xanchor.py index 3a0ac3b6e09..e4e2b26463b 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_xanchor.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="xanchor", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_xpad.py index a7530c52dad..fe9cc4a4efa 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_xpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="xpad", parent_name="scatterpolargl.marker.colorbar", **kwargs - ): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_xref.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_xref.py index 6493a71d06a..ce1ce54dff7 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xref", parent_name="scatterpolargl.marker.colorbar", **kwargs - ): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_y.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_y.py index 1b750e94680..dd813885600 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_y.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="y", parent_name="scatterpolargl.marker.colorbar", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_yanchor.py index bd3110cf99d..83545e294b8 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_yanchor.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="yanchor", - parent_name="scatterpolargl.marker.colorbar", - **kwargs, - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ypad.py index e969a6e3ba1..588315f6ed1 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_ypad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ypad", parent_name="scatterpolargl.marker.colorbar", **kwargs - ): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_yref.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_yref.py index 70992277f91..a1efd09199a 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yref", parent_name="scatterpolargl.marker.colorbar", **kwargs - ): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='scatterpolargl.marker.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_color.py index c677d8a5393..22746e9cf99 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatterpolargl.marker.colorbar.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterpolargl.marker.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_family.py index 155839c3942..61ff00d9d85 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scatterpolargl.marker.colorbar.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scatterpolargl.marker.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_lineposition.py index f40a1b27735..a86ecd3a60f 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scatterpolargl.marker.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scatterpolargl.marker.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_shadow.py index 4c47115a6f3..c205ea24e0d 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scatterpolargl.marker.colorbar.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scatterpolargl.marker.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_size.py index c94da2248ed..dd76caf6d58 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scatterpolargl.marker.colorbar.tickfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatterpolargl.marker.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_style.py index a974cbb10b9..6768cd34ad0 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scatterpolargl.marker.colorbar.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scatterpolargl.marker.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_textcase.py index 8afd7126fdc..7ae1dc617c7 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scatterpolargl.marker.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scatterpolargl.marker.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_variant.py index e6ad75a02f8..5b976e9b9db 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scatterpolargl.marker.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scatterpolargl.marker.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_weight.py index cc8b325ba2a..933fc566f09 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scatterpolargl.marker.colorbar.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scatterpolargl.marker.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_dtickrange.py index 49dd25a0f86..e9afe7b11dc 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="scatterpolargl.marker.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "valType": "any"}, - {"editType": "calc", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='scatterpolargl.marker.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'valType': 'any'}, {'editType': 'calc', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_enabled.py index 1917d88d123..d0675fda16c 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="scatterpolargl.marker.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='scatterpolargl.marker.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_name.py index a564a55869a..af64e83d963 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="scatterpolargl.marker.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='scatterpolargl.marker.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_templateitemname.py index 371aedaa3bd..22054a55531 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="scatterpolargl.marker.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='scatterpolargl.marker.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_value.py index 124bf5f2ae9..57c63cbc5c2 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="scatterpolargl.marker.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='scatterpolargl.marker.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/_font.py index 7dad7ac5c88..8fc9c63942c 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/_font.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="font", - parent_name="scatterpolargl.marker.colorbar.title", - **kwargs, - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scatterpolargl.marker.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/_side.py index 37aaead6ebd..637fcd1d1ef 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/_side.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="side", - parent_name="scatterpolargl.marker.colorbar.title", - **kwargs, - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='scatterpolargl.marker.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/_text.py index f80e1772c29..558c5b4f6da 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/_text.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="text", - parent_name="scatterpolargl.marker.colorbar.title", - **kwargs, - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scatterpolargl.marker.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_color.py index 11527bab7fa..3ace89f155a 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatterpolargl.marker.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterpolargl.marker.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_family.py index 9590b503667..cca5739c023 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scatterpolargl.marker.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scatterpolargl.marker.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_lineposition.py index f4fc804856c..3cdca695f05 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scatterpolargl.marker.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scatterpolargl.marker.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_shadow.py index 0773bf3ad2d..e6f0b633403 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scatterpolargl.marker.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scatterpolargl.marker.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_size.py index d025733a835..e748defe153 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scatterpolargl.marker.colorbar.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatterpolargl.marker.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_style.py index 9e22f04ad28..d73e84355d5 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scatterpolargl.marker.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scatterpolargl.marker.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_textcase.py index 0c4ed9eaf12..67f88474098 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scatterpolargl.marker.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scatterpolargl.marker.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_variant.py index 510666fe5b5..84eda5cf64f 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scatterpolargl.marker.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scatterpolargl.marker.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_weight.py index 93bbbbc64bc..3c609169d11 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scatterpolargl.marker.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scatterpolargl.marker.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/__init__.py index facbe33f884..55d423b11da 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._widthsrc import WidthsrcValidator from ._width import WidthValidator @@ -16,22 +15,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._widthsrc.WidthsrcValidator", - "._width.WidthValidator", - "._reversescale.ReversescaleValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._widthsrc.WidthsrcValidator', '._width.WidthValidator', '._reversescale.ReversescaleValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_autocolorscale.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_autocolorscale.py index 237ee20b745..8c5d091b91d 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_autocolorscale.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="autocolorscale", - parent_name="scatterpolargl.marker.line", - **kwargs, - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='scatterpolargl.marker.line', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_cauto.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_cauto.py index 8a9802003df..6ad5420d8d6 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_cauto.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_cauto.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="cauto", parent_name="scatterpolargl.marker.line", **kwargs - ): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='scatterpolargl.marker.line', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_cmax.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_cmax.py index 5fa90ee7f72..2fdec0f1c3c 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_cmax.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_cmax.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmax", parent_name="scatterpolargl.marker.line", **kwargs - ): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='scatterpolargl.marker.line', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_cmid.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_cmid.py index a771e0afaca..08c8ec3e060 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_cmid.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_cmid.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmid", parent_name="scatterpolargl.marker.line", **kwargs - ): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='scatterpolargl.marker.line', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_cmin.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_cmin.py index 4378230cf45..7eac5fae9f8 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_cmin.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_cmin.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmin", parent_name="scatterpolargl.marker.line", **kwargs - ): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='scatterpolargl.marker.line', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_color.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_color.py index d918523795e..3be13209b92 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_color.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_color.py @@ -1,17 +1,15 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scatterpolargl.marker.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - colorscale_path=kwargs.pop( - "colorscale_path", "scatterpolargl.marker.line.colorscale" - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterpolargl.marker.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + colorscale_path=kwargs.pop('colorscale_path', 'scatterpolargl.marker.line.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_coloraxis.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_coloraxis.py index ec19924e32c..b4c1051b939 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_coloraxis.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, - plotly_name="coloraxis", - parent_name="scatterpolargl.marker.line", - **kwargs, - ): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='scatterpolargl.marker.line', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_colorscale.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_colorscale.py index b6d24bcc9ac..35c833fc816 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_colorscale.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_colorscale.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, - plotly_name="colorscale", - parent_name="scatterpolargl.marker.line", - **kwargs, - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='scatterpolargl.marker.line', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_colorsrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_colorsrc.py index 7ce2f332cff..839179bb9dd 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scatterpolargl.marker.line", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scatterpolargl.marker.line', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_reversescale.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_reversescale.py index ca4fb9f077f..bc891224358 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_reversescale.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_reversescale.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="reversescale", - parent_name="scatterpolargl.marker.line", - **kwargs, - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='scatterpolargl.marker.line', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_width.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_width.py index c23ec49913c..cdefb6a5e70 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_width.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_width.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="scatterpolargl.marker.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='scatterpolargl.marker.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_widthsrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_widthsrc.py index 5d95c6addce..59b4df09f23 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_widthsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/_widthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="widthsrc", parent_name="scatterpolargl.marker.line", **kwargs - ): - super(WidthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='widthsrc', + parent_name='scatterpolargl.marker.line', + **kwargs): + super(WidthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/selected/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/selected/__init__.py index 3b0aeed383f..c0a73fd7df3 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/selected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._textfont import TextfontValidator from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] + __name__, + [], + ['._textfont.TextfontValidator', '._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/selected/_marker.py b/packages/python/plotly/plotly/validators/scatterpolargl/selected/_marker.py index 5dea20dde14..60b4d2d92fe 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/selected/_marker.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/selected/_marker.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="scatterpolargl.selected", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. - size - Sets the marker size of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scatterpolargl.selected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/selected/_textfont.py b/packages/python/plotly/plotly/validators/scatterpolargl/selected/_textfont.py index 8fd5b5e964c..3c3c85b31c2 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/selected/_textfont.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/selected/_textfont.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="textfont", parent_name="scatterpolargl.selected", **kwargs - ): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the text font color of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='scatterpolargl.selected', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/selected/marker/__init__.py index 8c321a38bc5..b7768f024e8 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/selected/marker/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._size import SizeValidator from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._size.SizeValidator", - "._opacity.OpacityValidator", - "._color.ColorValidator", - ], + ['._size.SizeValidator', '._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/selected/marker/_color.py b/packages/python/plotly/plotly/validators/scatterpolargl/selected/marker/_color.py index a9bf020057e..abc75b7f67d 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/selected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/selected/marker/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatterpolargl.selected.marker", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterpolargl.selected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/selected/marker/_opacity.py b/packages/python/plotly/plotly/validators/scatterpolargl/selected/marker/_opacity.py index 92ab430857f..4d130d5acac 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/selected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/selected/marker/_opacity.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="opacity", - parent_name="scatterpolargl.selected.marker", - **kwargs, - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scatterpolargl.selected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/selected/marker/_size.py b/packages/python/plotly/plotly/validators/scatterpolargl/selected/marker/_size.py index ea17e71581e..bac774649dc 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/selected/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/selected/marker/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scatterpolargl.selected.marker", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatterpolargl.selected.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/selected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/selected/textfont/__init__.py index a9f087e5af1..86899e5cc51 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/selected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/selected/textfont/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._color.ColorValidator"] + __name__, + [], + ['._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/selected/textfont/_color.py b/packages/python/plotly/plotly/validators/scatterpolargl/selected/textfont/_color.py index ff8a6ad2a63..6566f63b9ed 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/selected/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/selected/textfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatterpolargl.selected.textfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterpolargl.selected.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/stream/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/scatterpolargl/stream/_maxpoints.py index eb57ec92799..e771ff856c0 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/stream/_maxpoints.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxpoints", parent_name="scatterpolargl.stream", **kwargs - ): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='scatterpolargl.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/stream/_token.py b/packages/python/plotly/plotly/validators/scatterpolargl/stream/_token.py index af7bd228534..16baeab4dc8 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/stream/_token.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/stream/_token.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="token", parent_name="scatterpolargl.stream", **kwargs - ): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='scatterpolargl.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/textfont/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/textfont/__init__.py index d87c37ff7aa..7b52683b49b 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/textfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -16,22 +15,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_color.py b/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_color.py index dcbf751a62c..7e8590f81e7 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scatterpolargl.textfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterpolargl.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_colorsrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_colorsrc.py index 77cc7e7ee72..390618175df 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scatterpolargl.textfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scatterpolargl.textfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_family.py b/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_family.py index bd2fe4ffb34..c7f1c6e1eb3 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_family.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="scatterpolargl.textfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scatterpolargl.textfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_familysrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_familysrc.py index 92e0eafd0c7..6c808681fb3 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="scatterpolargl.textfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='scatterpolargl.textfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_size.py b/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_size.py index ee455937da9..d1476732f48 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_size.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scatterpolargl.textfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatterpolargl.textfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_sizesrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_sizesrc.py index ba2dcde9fea..0d5065b853c 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="scatterpolargl.textfont", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scatterpolargl.textfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_style.py b/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_style.py index bce0696560d..7e633c1d509 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_style.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="scatterpolargl.textfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scatterpolargl.textfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_stylesrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_stylesrc.py index 65266bbaf3c..46b879a19d7 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="scatterpolargl.textfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='scatterpolargl.textfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_variant.py b/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_variant.py index 8c733f88fe6..581e0a888d7 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_variant.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_variant.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="scatterpolargl.textfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "small-caps"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scatterpolargl.textfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_variantsrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_variantsrc.py index 758cf70e36c..dcbab33aba4 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="scatterpolargl.textfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='scatterpolargl.textfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_weight.py b/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_weight.py index 31e017d9200..8b8baa54b4c 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_weight.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_weight.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class WeightValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="weight", parent_name="scatterpolargl.textfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "bold"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='weight', + parent_name='scatterpolargl.textfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'bold']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_weightsrc.py b/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_weightsrc.py index 30f16a76c0b..0f4528847ba 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/textfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="scatterpolargl.textfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='scatterpolargl.textfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/unselected/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/unselected/__init__.py index 3b0aeed383f..c0a73fd7df3 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/unselected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._textfont import TextfontValidator from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] + __name__, + [], + ['._textfont.TextfontValidator', '._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/unselected/_marker.py b/packages/python/plotly/plotly/validators/scatterpolargl/unselected/_marker.py index ccdb46067b0..9b004ef9075 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/unselected/_marker.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/unselected/_marker.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="scatterpolargl.unselected", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - size - Sets the marker size of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scatterpolargl.unselected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/unselected/_textfont.py b/packages/python/plotly/plotly/validators/scatterpolargl/unselected/_textfont.py index cffe3868e64..677bcff2103 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/unselected/_textfont.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/unselected/_textfont.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="textfont", parent_name="scatterpolargl.unselected", **kwargs - ): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the text font color of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='scatterpolargl.unselected', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/unselected/marker/__init__.py index 8c321a38bc5..b7768f024e8 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/unselected/marker/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._size import SizeValidator from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._size.SizeValidator", - "._opacity.OpacityValidator", - "._color.ColorValidator", - ], + ['._size.SizeValidator', '._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/unselected/marker/_color.py b/packages/python/plotly/plotly/validators/scatterpolargl/unselected/marker/_color.py index bd11226a27b..b64f30a41b7 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/unselected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/unselected/marker/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatterpolargl.unselected.marker", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterpolargl.unselected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/unselected/marker/_opacity.py b/packages/python/plotly/plotly/validators/scatterpolargl/unselected/marker/_opacity.py index b358ec3a63f..6ec0125cfee 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/unselected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/unselected/marker/_opacity.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="opacity", - parent_name="scatterpolargl.unselected.marker", - **kwargs, - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scatterpolargl.unselected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/unselected/marker/_size.py b/packages/python/plotly/plotly/validators/scatterpolargl/unselected/marker/_size.py index 0472b666296..840785c7f61 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/unselected/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/unselected/marker/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scatterpolargl.unselected.marker", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatterpolargl.unselected.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/unselected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/unselected/textfont/__init__.py index a9f087e5af1..86899e5cc51 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/unselected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/unselected/textfont/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._color.ColorValidator"] + __name__, + [], + ['._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/unselected/textfont/_color.py b/packages/python/plotly/plotly/validators/scatterpolargl/unselected/textfont/_color.py index b0a96db5102..d7927d5c770 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/unselected/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/unselected/textfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatterpolargl.unselected.textfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterpolargl.unselected.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/__init__.py b/packages/python/plotly/plotly/validators/scattersmith/__init__.py index 4dc55c20dd6..d74eae23d43 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/__init__.py +++ b/packages/python/plotly/plotly/validators/scattersmith/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._unselected import UnselectedValidator @@ -52,58 +51,10 @@ from ._cliponaxis import CliponaxisValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._unselected.UnselectedValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._texttemplatesrc.TexttemplatesrcValidator", - "._texttemplate.TexttemplateValidator", - "._textsrc.TextsrcValidator", - "._textpositionsrc.TextpositionsrcValidator", - "._textposition.TextpositionValidator", - "._textfont.TextfontValidator", - "._text.TextValidator", - "._subplot.SubplotValidator", - "._stream.StreamValidator", - "._showlegend.ShowlegendValidator", - "._selectedpoints.SelectedpointsValidator", - "._selected.SelectedValidator", - "._realsrc.RealsrcValidator", - "._real.RealValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._mode.ModeValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._marker.MarkerValidator", - "._line.LineValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._imagsrc.ImagsrcValidator", - "._imag.ImagValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoveron.HoveronValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._fillcolor.FillcolorValidator", - "._fill.FillValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._connectgaps.ConnectgapsValidator", - "._cliponaxis.CliponaxisValidator", - ], + ['._visible.VisibleValidator', '._unselected.UnselectedValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._texttemplatesrc.TexttemplatesrcValidator', '._texttemplate.TexttemplateValidator', '._textsrc.TextsrcValidator', '._textpositionsrc.TextpositionsrcValidator', '._textposition.TextpositionValidator', '._textfont.TextfontValidator', '._text.TextValidator', '._subplot.SubplotValidator', '._stream.StreamValidator', '._showlegend.ShowlegendValidator', '._selectedpoints.SelectedpointsValidator', '._selected.SelectedValidator', '._realsrc.RealsrcValidator', '._real.RealValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._mode.ModeValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._marker.MarkerValidator', '._line.LineValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._imagsrc.ImagsrcValidator', '._imag.ImagValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoveron.HoveronValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._fillcolor.FillcolorValidator', '._fill.FillValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._connectgaps.ConnectgapsValidator', '._cliponaxis.CliponaxisValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattersmith/_cliponaxis.py b/packages/python/plotly/plotly/validators/scattersmith/_cliponaxis.py index e1f3d15c176..38527e2ef67 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_cliponaxis.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_cliponaxis.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CliponaxisValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cliponaxis", parent_name="scattersmith", **kwargs): - super(CliponaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CliponaxisValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cliponaxis', + parent_name='scattersmith', + **kwargs): + super(CliponaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_connectgaps.py b/packages/python/plotly/plotly/validators/scattersmith/_connectgaps.py index b73157a5e46..421c1903021 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_connectgaps.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_connectgaps.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="connectgaps", parent_name="scattersmith", **kwargs): - super(ConnectgapsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ConnectgapsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='connectgaps', + parent_name='scattersmith', + **kwargs): + super(ConnectgapsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_customdata.py b/packages/python/plotly/plotly/validators/scattersmith/_customdata.py index 0f78b1b1e8c..94f08cf19c6 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_customdata.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="scattersmith", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='scattersmith', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_customdatasrc.py b/packages/python/plotly/plotly/validators/scattersmith/_customdatasrc.py index e3926c00c42..1df5ec8ed5c 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_customdatasrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="customdatasrc", parent_name="scattersmith", **kwargs - ): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='scattersmith', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_fill.py b/packages/python/plotly/plotly/validators/scattersmith/_fill.py index 609059e8cdc..79a4f6ee2ba 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_fill.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_fill.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class FillValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="fill", parent_name="scattersmith", **kwargs): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["none", "toself", "tonext"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='fill', + parent_name='scattersmith', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['none', 'toself', 'tonext']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_fillcolor.py b/packages/python/plotly/plotly/validators/scattersmith/_fillcolor.py index a89a1501954..fcacc35c05a 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_fillcolor.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_fillcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="fillcolor", parent_name="scattersmith", **kwargs): - super(FillcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FillcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fillcolor', + parent_name='scattersmith', + **kwargs): + super(FillcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_hoverinfo.py b/packages/python/plotly/plotly/validators/scattersmith/_hoverinfo.py index 4c3abd843a3..2a61bef11d2 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="scattersmith", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["real", "imag", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='scattersmith', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['real', 'imag', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/scattersmith/_hoverinfosrc.py index 857c15a1812..b0cb86bf941 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_hoverinfosrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hoverinfosrc", parent_name="scattersmith", **kwargs - ): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='scattersmith', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_hoverlabel.py b/packages/python/plotly/plotly/validators/scattersmith/_hoverlabel.py index 0c663a14e21..0ddb5804238 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="scattersmith", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='scattersmith', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_hoveron.py b/packages/python/plotly/plotly/validators/scattersmith/_hoveron.py index c69f0afd6a9..a63d792f26b 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_hoveron.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_hoveron.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HoveronValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoveron", parent_name="scattersmith", **kwargs): - super(HoveronValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - flags=kwargs.pop("flags", ["points", "fills"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoveronValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoveron', + parent_name='scattersmith', + **kwargs): + super(HoveronValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + flags=kwargs.pop('flags', ['points', 'fills']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_hovertemplate.py b/packages/python/plotly/plotly/validators/scattersmith/_hovertemplate.py index 377f0eaccca..cfb09b72563 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_hovertemplate.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="hovertemplate", parent_name="scattersmith", **kwargs - ): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='scattersmith', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/scattersmith/_hovertemplatesrc.py index af772a16e02..156b22c020d 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_hovertemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertemplatesrc", parent_name="scattersmith", **kwargs - ): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='scattersmith', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_hovertext.py b/packages/python/plotly/plotly/validators/scattersmith/_hovertext.py index 93e0099ed63..dc8367e7f39 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_hovertext.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="scattersmith", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='scattersmith', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_hovertextsrc.py b/packages/python/plotly/plotly/validators/scattersmith/_hovertextsrc.py index 8961c104a75..817c9e86f0f 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_hovertextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertextsrc", parent_name="scattersmith", **kwargs - ): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='scattersmith', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_ids.py b/packages/python/plotly/plotly/validators/scattersmith/_ids.py index 7cddc086814..eb6e3469201 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_ids.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="scattersmith", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='scattersmith', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_idssrc.py b/packages/python/plotly/plotly/validators/scattersmith/_idssrc.py index 7fb8e0fc0b0..8e63ae4db0f 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_idssrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="scattersmith", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='scattersmith', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_imag.py b/packages/python/plotly/plotly/validators/scattersmith/_imag.py index 4f01887bc48..4b0421a799c 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_imag.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_imag.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ImagValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="imag", parent_name="scattersmith", **kwargs): - super(ImagValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ImagValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='imag', + parent_name='scattersmith', + **kwargs): + super(ImagValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_imagsrc.py b/packages/python/plotly/plotly/validators/scattersmith/_imagsrc.py index ff13a3a5dfa..e2d44394ffe 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_imagsrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_imagsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ImagsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="imagsrc", parent_name="scattersmith", **kwargs): - super(ImagsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ImagsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='imagsrc', + parent_name='scattersmith', + **kwargs): + super(ImagsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_legend.py b/packages/python/plotly/plotly/validators/scattersmith/_legend.py index 23e1c4365ad..2b65b9efaae 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_legend.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="scattersmith", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='scattersmith', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_legendgroup.py b/packages/python/plotly/plotly/validators/scattersmith/_legendgroup.py index 368453d2493..9b4fb057849 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="scattersmith", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='scattersmith', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/scattersmith/_legendgrouptitle.py index acb3420da3f..072e8f2aadd 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="scattersmith", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='scattersmith', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_legendrank.py b/packages/python/plotly/plotly/validators/scattersmith/_legendrank.py index 35a094d3c35..73ab49befa4 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_legendrank.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="scattersmith", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='scattersmith', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_legendwidth.py b/packages/python/plotly/plotly/validators/scattersmith/_legendwidth.py index e6e50f05b13..5563402fbb0 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="scattersmith", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='scattersmith', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_line.py b/packages/python/plotly/plotly/validators/scattersmith/_line.py index 4ac259e2985..b52373babec 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_line.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_line.py @@ -1,45 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="scattersmith", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - backoff - Sets the line back off from the end point of - the nth line segment (in px). This option is - useful e.g. to avoid overlap with arrowhead - markers. With "auto" the lines would trim - before markers if `marker.angleref` is set to - "previous". - backoffsrc - Sets the source reference on Chart Studio Cloud - for `backoff`. - color - Sets the line color. - dash - 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"). - shape - Determines the line shape. With "spline" the - lines are drawn using spline interpolation. The - other available values correspond to step-wise - line shapes. - smoothing - Has an effect only if `shape` is set to - "spline" Sets the amount of smoothing. 0 - corresponds to no smoothing (equivalent to a - "linear" shape). - width - Sets the line width (in px). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='scattersmith', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_marker.py b/packages/python/plotly/plotly/validators/scattersmith/_marker.py index 6fa3369025e..0c3b2574025 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_marker.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_marker.py @@ -1,166 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="scattersmith", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - angle - Sets the marker angle in respect to `angleref`. - angleref - Sets the reference for marker angle. With - "previous", angle 0 points along the line from - the previous point to this one. With "up", - angle 0 points toward the top of the screen. - anglesrc - Sets the source reference on Chart Studio Cloud - for `angle`. - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.scattersmith.marke - r.ColorBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - gradient - :class:`plotly.graph_objects.scattersmith.marke - r.Gradient` instance or dict with compatible - properties - line - :class:`plotly.graph_objects.scattersmith.marke - r.Line` instance or dict with compatible - properties - maxdisplayed - Sets a maximum number of points to be drawn on - the graph. 0 corresponds to no limit. - opacity - Sets the marker opacity. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. - size - Sets the marker size (in px). - sizemin - Has an effect only if `marker.size` is set to a - numerical array. Sets the minimum size (in px) - of the rendered marker points. - sizemode - Has an effect only if `marker.size` is set to a - numerical array. Sets the rule for which the - data in `size` is converted to pixels. - sizeref - Has an effect only if `marker.size` is set to a - numerical array. Sets the scale factor used to - determine the rendered size of marker points. - Use with `sizemin` and `sizemode`. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - standoff - Moves the marker away from the data point in - the direction of `angle` (in px). This can be - useful for example if you have another marker - at this location and you want to point an - arrowhead marker at it. - standoffsrc - Sets the source reference on Chart Studio Cloud - for `standoff`. - symbol - Sets the marker symbol type. Adding 100 is - equivalent to appending "-open" to a symbol - name. Adding 200 is equivalent to appending - "-dot" to a symbol name. Adding 300 is - equivalent to appending "-open-dot" or "dot- - open" to a symbol name. - symbolsrc - Sets the source reference on Chart Studio Cloud - for `symbol`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scattersmith', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_meta.py b/packages/python/plotly/plotly/validators/scattersmith/_meta.py index 69af95441ca..1771fda6aa0 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_meta.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="scattersmith", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='scattersmith', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_metasrc.py b/packages/python/plotly/plotly/validators/scattersmith/_metasrc.py index 1959bb548ae..a92f2ef75ff 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_metasrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="scattersmith", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='scattersmith', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_mode.py b/packages/python/plotly/plotly/validators/scattersmith/_mode.py index d0242190f16..438e6325801 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_mode.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_mode.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="mode", parent_name="scattersmith", **kwargs): - super(ModeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["lines", "markers", "text"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ModeValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='mode', + parent_name='scattersmith', + **kwargs): + super(ModeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['lines', 'markers', 'text']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_name.py b/packages/python/plotly/plotly/validators/scattersmith/_name.py index 2e9beb640d5..2afa01226fd 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_name.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="scattersmith", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='scattersmith', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_opacity.py b/packages/python/plotly/plotly/validators/scattersmith/_opacity.py index 75b3f6ca83e..a99397f22ba 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_opacity.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="scattersmith", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scattersmith', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_real.py b/packages/python/plotly/plotly/validators/scattersmith/_real.py index 4d4dec1ba00..9e167ac2fa2 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_real.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_real.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class RealValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="real", parent_name="scattersmith", **kwargs): - super(RealValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RealValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='real', + parent_name='scattersmith', + **kwargs): + super(RealValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_realsrc.py b/packages/python/plotly/plotly/validators/scattersmith/_realsrc.py index edf6152eeba..dff8e212c68 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_realsrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_realsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class RealsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="realsrc", parent_name="scattersmith", **kwargs): - super(RealsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RealsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='realsrc', + parent_name='scattersmith', + **kwargs): + super(RealsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_selected.py b/packages/python/plotly/plotly/validators/scattersmith/_selected.py index 4a4a25f1022..4c8775713e7 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_selected.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_selected.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="selected", parent_name="scattersmith", **kwargs): - super(SelectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Selected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.scattersmith.selec - ted.Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.scattersmith.selec - ted.Textfont` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='selected', + parent_name='scattersmith', + **kwargs): + super(SelectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_selectedpoints.py b/packages/python/plotly/plotly/validators/scattersmith/_selectedpoints.py index 87215f1e396..2bbd42daa81 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_selectedpoints.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_selectedpoints.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="selectedpoints", parent_name="scattersmith", **kwargs - ): - super(SelectedpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SelectedpointsValidator(_bv.AnyValidator): + def __init__(self, plotly_name='selectedpoints', + parent_name='scattersmith', + **kwargs): + super(SelectedpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_showlegend.py b/packages/python/plotly/plotly/validators/scattersmith/_showlegend.py index f9161861a40..655cd11c843 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_showlegend.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="scattersmith", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='scattersmith', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_stream.py b/packages/python/plotly/plotly/validators/scattersmith/_stream.py index a5291304302..dbdb47446b9 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_stream.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="scattersmith", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='scattersmith', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_subplot.py b/packages/python/plotly/plotly/validators/scattersmith/_subplot.py index d75ef86441d..fc732fd6e02 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_subplot.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_subplot.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SubplotValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="subplot", parent_name="scattersmith", **kwargs): - super(SubplotValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "smith"), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SubplotValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='subplot', + parent_name='scattersmith', + **kwargs): + super(SubplotValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'smith'), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_text.py b/packages/python/plotly/plotly/validators/scattersmith/_text.py index 101865d8e45..be2c4e670fd 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_text.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="scattersmith", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scattersmith', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_textfont.py b/packages/python/plotly/plotly/validators/scattersmith/_textfont.py index 3ea78a2a412..4b3867d495f 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_textfont.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_textfont.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="textfont", parent_name="scattersmith", **kwargs): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='scattersmith', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_textposition.py b/packages/python/plotly/plotly/validators/scattersmith/_textposition.py index 3a190a31ba6..393b36d25f3 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_textposition.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_textposition.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textposition", parent_name="scattersmith", **kwargs - ): - super(TextpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "top left", - "top center", - "top right", - "middle left", - "middle center", - "middle right", - "bottom left", - "bottom center", - "bottom right", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textposition', + parent_name='scattersmith', + **kwargs): + super(TextpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['top left', 'top center', 'top right', 'middle left', 'middle center', 'middle right', 'bottom left', 'bottom center', 'bottom right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_textpositionsrc.py b/packages/python/plotly/plotly/validators/scattersmith/_textpositionsrc.py index 4af940dae90..cf59eef03f6 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_textpositionsrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_textpositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textpositionsrc", parent_name="scattersmith", **kwargs - ): - super(TextpositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextpositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textpositionsrc', + parent_name='scattersmith', + **kwargs): + super(TextpositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_textsrc.py b/packages/python/plotly/plotly/validators/scattersmith/_textsrc.py index 2ce9eacdffe..05c1fa72c1c 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_textsrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="scattersmith", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='scattersmith', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_texttemplate.py b/packages/python/plotly/plotly/validators/scattersmith/_texttemplate.py index 505facac7cd..6469466c425 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_texttemplate.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_texttemplate.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="texttemplate", parent_name="scattersmith", **kwargs - ): - super(TexttemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='texttemplate', + parent_name='scattersmith', + **kwargs): + super(TexttemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_texttemplatesrc.py b/packages/python/plotly/plotly/validators/scattersmith/_texttemplatesrc.py index 441d2c7b845..1aea3bf46cd 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_texttemplatesrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_texttemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="texttemplatesrc", parent_name="scattersmith", **kwargs - ): - super(TexttemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='texttemplatesrc', + parent_name='scattersmith', + **kwargs): + super(TexttemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_uid.py b/packages/python/plotly/plotly/validators/scattersmith/_uid.py index acc3461579f..232ba115abc 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_uid.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="scattersmith", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='scattersmith', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_uirevision.py b/packages/python/plotly/plotly/validators/scattersmith/_uirevision.py index 3d601797ca2..d8512d1b9e9 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_uirevision.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="scattersmith", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='scattersmith', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_unselected.py b/packages/python/plotly/plotly/validators/scattersmith/_unselected.py index 6d231af560c..06dde381d99 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_unselected.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_unselected.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="unselected", parent_name="scattersmith", **kwargs): - super(UnselectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Unselected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.scattersmith.unsel - ected.Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.scattersmith.unsel - ected.Textfont` instance or dict with - compatible properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UnselectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='unselected', + parent_name='scattersmith', + **kwargs): + super(UnselectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/_visible.py b/packages/python/plotly/plotly/validators/scattersmith/_visible.py index 792e7730771..ff83a7fcb52 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/_visible.py +++ b/packages/python/plotly/plotly/validators/scattersmith/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="scattersmith", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='scattersmith', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_align.py index c816e1bbdce..7a89845284e 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_align.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="align", parent_name="scattersmith.hoverlabel", **kwargs - ): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='scattersmith.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_alignsrc.py index d78a97a65a3..cc83e7006a9 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="scattersmith.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='scattersmith.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_bgcolor.py index d829b8e005d..3bfc95b9bd7 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="scattersmith.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='scattersmith.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_bgcolorsrc.py index b39d86edb60..7cd6d6fe3ba 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="scattersmith.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='scattersmith.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_bordercolor.py index 5615f4299d2..962a9af25c1 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="scattersmith.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='scattersmith.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_bordercolorsrc.py index 0555f319ad3..ff6d079e428 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="bordercolorsrc", - parent_name="scattersmith.hoverlabel", - **kwargs, - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='scattersmith.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_font.py index 1e45cbc4882..8a79033c625 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_font.py @@ -1,88 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="scattersmith.hoverlabel", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scattersmith.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_namelength.py index a933008bfd3..b22d7763340 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="scattersmith.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='scattersmith.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_namelengthsrc.py index 1f25c113d6c..9d242b7b949 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/_namelengthsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="namelengthsrc", - parent_name="scattersmith.hoverlabel", - **kwargs, - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='scattersmith.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_color.py index de5895dfa77..8dad9c788bb 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattersmith.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattersmith.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_colorsrc.py index a8b8649edeb..4820c455ec2 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_colorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="colorsrc", - parent_name="scattersmith.hoverlabel.font", - **kwargs, - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scattersmith.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_family.py index c38bffb5514..21147d8822f 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="scattersmith.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattersmith.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_familysrc.py index abdcd983bc5..eca57512664 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_familysrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="familysrc", - parent_name="scattersmith.hoverlabel.font", - **kwargs, - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='scattersmith.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_lineposition.py index 54283c721f2..fe02ef76339 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scattersmith.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scattersmith.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_linepositionsrc.py index c7726cf6128..f5ae69c79ef 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="scattersmith.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='scattersmith.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_shadow.py index 292189be9f6..77926177729 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="scattersmith.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scattersmith.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_shadowsrc.py index 986d7e6af2a..dce1ad6d87d 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="shadowsrc", - parent_name="scattersmith.hoverlabel.font", - **kwargs, - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='scattersmith.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_size.py index e350b7832a2..fe7db5b6926 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scattersmith.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattersmith.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_sizesrc.py index 560d9da4025..23c3d9ecc50 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_sizesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="sizesrc", - parent_name="scattersmith.hoverlabel.font", - **kwargs, - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scattersmith.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_style.py index 978488a4719..356926dacf6 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="scattersmith.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattersmith.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_stylesrc.py index 8a5d3c08a34..25f35ac30c0 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_stylesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="stylesrc", - parent_name="scattersmith.hoverlabel.font", - **kwargs, - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='scattersmith.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_textcase.py index c07a37534b7..59f346803dd 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_textcase.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scattersmith.hoverlabel.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scattersmith.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_textcasesrc.py index 0648f02539f..c5ff2def8ef 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="scattersmith.hoverlabel.font", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='scattersmith.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_variant.py index 783754f12e7..32f0435c5ee 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_variant.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scattersmith.hoverlabel.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scattersmith.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_variantsrc.py index 29427014988..0af2c7dfcfd 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_variantsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="variantsrc", - parent_name="scattersmith.hoverlabel.font", - **kwargs, - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='scattersmith.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_weight.py index 016c16ebcdd..a2f22cf5320 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="scattersmith.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scattersmith.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_weightsrc.py index b26c4910872..4e00d9b7963 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/hoverlabel/font/_weightsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="weightsrc", - parent_name="scattersmith.hoverlabel.font", - **kwargs, - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='scattersmith.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/_font.py index 824eae5c3a3..17eb050ef0b 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="scattersmith.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scattersmith.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/_text.py index 158418b5400..0761f9384fe 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="scattersmith.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scattersmith.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_color.py index 248a6fe93cb..baa874ea748 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scattersmith.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattersmith.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_family.py index 7de5f0d3d03..7af48db923e 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scattersmith.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattersmith.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_lineposition.py index 42faaf7b5e9..87f25e9bbe4 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scattersmith.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scattersmith.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_shadow.py index fd5f34688cc..7ab5cc7d0e1 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scattersmith.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scattersmith.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_size.py index ef8f19c0ec4..5e867e98c25 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scattersmith.legendgrouptitle.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattersmith.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_style.py index 06276d843e2..216dd7f82f5 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scattersmith.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattersmith.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_textcase.py index b4da3c7b4ea..a867f022fdf 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scattersmith.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scattersmith.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_variant.py index 833670afbe7..c40746445ef 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scattersmith.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scattersmith.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_weight.py index 5ebd3526ba3..8507b7de33a 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scattersmith/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scattersmith.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scattersmith.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/line/__init__.py b/packages/python/plotly/plotly/validators/scattersmith/line/__init__.py index 7045562597a..e5a8bd1f88a 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scattersmith/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._smoothing import SmoothingValidator @@ -11,17 +10,10 @@ from ._backoff import BackoffValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._smoothing.SmoothingValidator", - "._shape.ShapeValidator", - "._dash.DashValidator", - "._color.ColorValidator", - "._backoffsrc.BackoffsrcValidator", - "._backoff.BackoffValidator", - ], + ['._width.WidthValidator', '._smoothing.SmoothingValidator', '._shape.ShapeValidator', '._dash.DashValidator', '._color.ColorValidator', '._backoffsrc.BackoffsrcValidator', '._backoff.BackoffValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattersmith/line/_backoff.py b/packages/python/plotly/plotly/validators/scattersmith/line/_backoff.py index 80bb93c76da..04783b1f105 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/line/_backoff.py +++ b/packages/python/plotly/plotly/validators/scattersmith/line/_backoff.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class BackoffValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="backoff", parent_name="scattersmith.line", **kwargs - ): - super(BackoffValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BackoffValidator(_bv.NumberValidator): + def __init__(self, plotly_name='backoff', + parent_name='scattersmith.line', + **kwargs): + super(BackoffValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/line/_backoffsrc.py b/packages/python/plotly/plotly/validators/scattersmith/line/_backoffsrc.py index 3eeac2b69b6..c1f6c7255c3 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/line/_backoffsrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/line/_backoffsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BackoffsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="backoffsrc", parent_name="scattersmith.line", **kwargs - ): - super(BackoffsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BackoffsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='backoffsrc', + parent_name='scattersmith.line', + **kwargs): + super(BackoffsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/line/_color.py b/packages/python/plotly/plotly/validators/scattersmith/line/_color.py index 608f717d51f..8ee40e272a3 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/line/_color.py +++ b/packages/python/plotly/plotly/validators/scattersmith/line/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="scattersmith.line", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattersmith.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/line/_dash.py b/packages/python/plotly/plotly/validators/scattersmith/line/_dash.py index d6a30b773e6..c60dc5311b0 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/line/_dash.py +++ b/packages/python/plotly/plotly/validators/scattersmith/line/_dash.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__(self, plotly_name="dash", parent_name="scattersmith.line", **kwargs): - super(DashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DashValidator(_bv.DashValidator): + def __init__(self, plotly_name='dash', + parent_name='scattersmith.line', + **kwargs): + super(DashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/line/_shape.py b/packages/python/plotly/plotly/validators/scattersmith/line/_shape.py index 1a2d2b2e816..5c484118eaf 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/line/_shape.py +++ b/packages/python/plotly/plotly/validators/scattersmith/line/_shape.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="shape", parent_name="scattersmith.line", **kwargs): - super(ShapeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["linear", "spline"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShapeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='shape', + parent_name='scattersmith.line', + **kwargs): + super(ShapeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['linear', 'spline']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/line/_smoothing.py b/packages/python/plotly/plotly/validators/scattersmith/line/_smoothing.py index 99d35fb842a..5d7743049fe 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/line/_smoothing.py +++ b/packages/python/plotly/plotly/validators/scattersmith/line/_smoothing.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SmoothingValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="smoothing", parent_name="scattersmith.line", **kwargs - ): - super(SmoothingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 1.3), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SmoothingValidator(_bv.NumberValidator): + def __init__(self, plotly_name='smoothing', + parent_name='scattersmith.line', + **kwargs): + super(SmoothingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 1.3), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/line/_width.py b/packages/python/plotly/plotly/validators/scattersmith/line/_width.py index 901c20ec9ce..00d422bdfd2 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/line/_width.py +++ b/packages/python/plotly/plotly/validators/scattersmith/line/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="scattersmith.line", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='scattersmith.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/__init__.py b/packages/python/plotly/plotly/validators/scattersmith/marker/__init__.py index 8434e73e3f5..a8815dace11 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._symbolsrc import SymbolsrcValidator from ._symbol import SymbolValidator @@ -33,39 +32,10 @@ from ._angle import AngleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._symbolsrc.SymbolsrcValidator", - "._symbol.SymbolValidator", - "._standoffsrc.StandoffsrcValidator", - "._standoff.StandoffValidator", - "._sizesrc.SizesrcValidator", - "._sizeref.SizerefValidator", - "._sizemode.SizemodeValidator", - "._sizemin.SizeminValidator", - "._size.SizeValidator", - "._showscale.ShowscaleValidator", - "._reversescale.ReversescaleValidator", - "._opacitysrc.OpacitysrcValidator", - "._opacity.OpacityValidator", - "._maxdisplayed.MaxdisplayedValidator", - "._line.LineValidator", - "._gradient.GradientValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - "._anglesrc.AnglesrcValidator", - "._angleref.AnglerefValidator", - "._angle.AngleValidator", - ], + ['._symbolsrc.SymbolsrcValidator', '._symbol.SymbolValidator', '._standoffsrc.StandoffsrcValidator', '._standoff.StandoffValidator', '._sizesrc.SizesrcValidator', '._sizeref.SizerefValidator', '._sizemode.SizemodeValidator', '._sizemin.SizeminValidator', '._size.SizeValidator', '._showscale.ShowscaleValidator', '._reversescale.ReversescaleValidator', '._opacitysrc.OpacitysrcValidator', '._opacity.OpacityValidator', '._maxdisplayed.MaxdisplayedValidator', '._line.LineValidator', '._gradient.GradientValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator', '._anglesrc.AnglesrcValidator', '._angleref.AnglerefValidator', '._angle.AngleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/_angle.py b/packages/python/plotly/plotly/validators/scattersmith/marker/_angle.py index 03f5a3bd3e0..c0e582f5205 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/_angle.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/_angle.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AngleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="angle", parent_name="scattersmith.marker", **kwargs - ): - super(AngleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AngleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='angle', + parent_name='scattersmith.marker', + **kwargs): + super(AngleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/_angleref.py b/packages/python/plotly/plotly/validators/scattersmith/marker/_angleref.py index f860dbd62b2..6eedc446e01 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/_angleref.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/_angleref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AnglerefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="angleref", parent_name="scattersmith.marker", **kwargs - ): - super(AnglerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["previous", "up"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AnglerefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='angleref', + parent_name='scattersmith.marker', + **kwargs): + super(AnglerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['previous', 'up']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/_anglesrc.py b/packages/python/plotly/plotly/validators/scattersmith/marker/_anglesrc.py index da1b87b65d2..8752d65b9fe 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/_anglesrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/_anglesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AnglesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="anglesrc", parent_name="scattersmith.marker", **kwargs - ): - super(AnglesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AnglesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='anglesrc', + parent_name='scattersmith.marker', + **kwargs): + super(AnglesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/_autocolorscale.py b/packages/python/plotly/plotly/validators/scattersmith/marker/_autocolorscale.py index b98f7fee0ef..64dacb00406 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="scattersmith.marker", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='scattersmith.marker', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/_cauto.py b/packages/python/plotly/plotly/validators/scattersmith/marker/_cauto.py index 71e550817ee..4617531f0a1 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/_cauto.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/_cauto.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="cauto", parent_name="scattersmith.marker", **kwargs - ): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='scattersmith.marker', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/_cmax.py b/packages/python/plotly/plotly/validators/scattersmith/marker/_cmax.py index 04dd676a545..365e54fd602 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/_cmax.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/_cmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmax", parent_name="scattersmith.marker", **kwargs): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='scattersmith.marker', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/_cmid.py b/packages/python/plotly/plotly/validators/scattersmith/marker/_cmid.py index 563c1684ecd..941b393ee0c 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/_cmid.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/_cmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmid", parent_name="scattersmith.marker", **kwargs): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='scattersmith.marker', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/_cmin.py b/packages/python/plotly/plotly/validators/scattersmith/marker/_cmin.py index 32dab28d9e0..bc595771dbc 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/_cmin.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/_cmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmin", parent_name="scattersmith.marker", **kwargs): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='scattersmith.marker', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/_color.py b/packages/python/plotly/plotly/validators/scattersmith/marker/_color.py index 20ac6969357..fc8cd81edfc 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/_color.py @@ -1,17 +1,15 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattersmith.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - colorscale_path=kwargs.pop( - "colorscale_path", "scattersmith.marker.colorscale" - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattersmith.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + colorscale_path=kwargs.pop('colorscale_path', 'scattersmith.marker.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/_coloraxis.py b/packages/python/plotly/plotly/validators/scattersmith/marker/_coloraxis.py index f22d9a18d69..c690a26f853 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/_coloraxis.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name="coloraxis", parent_name="scattersmith.marker", **kwargs - ): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='scattersmith.marker', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/_colorbar.py b/packages/python/plotly/plotly/validators/scattersmith/marker/_colorbar.py index 39b75606ac1..cd5f97d3d20 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/_colorbar.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/_colorbar.py @@ -1,282 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="colorbar", parent_name="scattersmith.marker", **kwargs - ): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.scatter - smith.marker.colorbar.Tickformatstop` instances - or dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.scattersmith.marker.colorbar.tickformatstopde - faults), sets the default property values to - use for elements of - scattersmith.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.scattersmith.marke - r.colorbar.Title` instance or dict with - compatible properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='scattersmith.marker', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/_colorscale.py b/packages/python/plotly/plotly/validators/scattersmith/marker/_colorscale.py index c1f09c60d45..b909612d4a3 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/_colorscale.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="scattersmith.marker", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='scattersmith.marker', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/_colorsrc.py b/packages/python/plotly/plotly/validators/scattersmith/marker/_colorsrc.py index 1d2e5dccad1..3d78ddcaf55 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scattersmith.marker", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scattersmith.marker', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/_gradient.py b/packages/python/plotly/plotly/validators/scattersmith/marker/_gradient.py index 122adba5f92..8a0ae593f3f 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/_gradient.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/_gradient.py @@ -1,31 +1,15 @@ -import _plotly_utils.basevalidators -class GradientValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="gradient", parent_name="scattersmith.marker", **kwargs - ): - super(GradientValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Gradient"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the final color of the gradient fill: the - center color for radial, the right for - horizontal, or the bottom for vertical. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - type - Sets the type of gradient used to fill the - markers - typesrc - Sets the source reference on Chart Studio Cloud - for `type`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class GradientValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='gradient', + parent_name='scattersmith.marker', + **kwargs): + super(GradientValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Gradient'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/_line.py b/packages/python/plotly/plotly/validators/scattersmith/marker/_line.py index 772a824d574..dfa711edd0f 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/_line.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/_line.py @@ -1,105 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="scattersmith.marker", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.line.colorscale`. Has an - effect only if in `marker.line.color` is set to - a numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.line.color`) or the bounds set in - `marker.line.cmin` and `marker.line.cmax` Has - an effect only if in `marker.line.color` is set - to a numerical array. Defaults to `false` when - `marker.line.cmin` and `marker.line.cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.line.cmin` and/or - `marker.line.cmax` to be equidistant to this - point. Has an effect only if in - `marker.line.color` is set to a numerical - array. Value should have the same units as in - `marker.line.color`. Has no effect when - `marker.line.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmax` must be set as well. - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorscale - Sets the colorscale. Has an effect only if in - `marker.line.color` is set to a numerical - array. The colorscale must be an array - containing arrays mapping a normalized value to - an rgb, rgba, hex, hsl, hsv, or named color - string. At minimum, a mapping for the lowest - (0) and highest (1) values are required. For - example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use - `marker.line.cmin` and `marker.line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.line.color` is set to - a numerical array. If true, `marker.line.cmin` - will correspond to the last color in the array - and `marker.line.cmax` will correspond to the - first color. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='scattersmith.marker', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/_maxdisplayed.py b/packages/python/plotly/plotly/validators/scattersmith/marker/_maxdisplayed.py index 30d6f881c7e..851d020af30 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/_maxdisplayed.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/_maxdisplayed.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MaxdisplayedValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxdisplayed", parent_name="scattersmith.marker", **kwargs - ): - super(MaxdisplayedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxdisplayedValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxdisplayed', + parent_name='scattersmith.marker', + **kwargs): + super(MaxdisplayedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/_opacity.py b/packages/python/plotly/plotly/validators/scattersmith/marker/_opacity.py index 7281ca07f94..065c5589db1 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/_opacity.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="scattersmith.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scattersmith.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/_opacitysrc.py b/packages/python/plotly/plotly/validators/scattersmith/marker/_opacitysrc.py index f5517b39063..44521e9be9c 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/_opacitysrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/_opacitysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="opacitysrc", parent_name="scattersmith.marker", **kwargs - ): - super(OpacitysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacitysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='opacitysrc', + parent_name='scattersmith.marker', + **kwargs): + super(OpacitysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/_reversescale.py b/packages/python/plotly/plotly/validators/scattersmith/marker/_reversescale.py index 35d280ff2ad..ecb9b781efc 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/_reversescale.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="scattersmith.marker", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='scattersmith.marker', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/_showscale.py b/packages/python/plotly/plotly/validators/scattersmith/marker/_showscale.py index 68444e55d52..47c08407cd5 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/_showscale.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/_showscale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showscale", parent_name="scattersmith.marker", **kwargs - ): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='scattersmith.marker', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/_size.py b/packages/python/plotly/plotly/validators/scattersmith/marker/_size.py index 551e243250f..3e35e2b325f 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="scattersmith.marker", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattersmith.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/_sizemin.py b/packages/python/plotly/plotly/validators/scattersmith/marker/_sizemin.py index 048b0849474..562efbb3afb 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/_sizemin.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/_sizemin.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="sizemin", parent_name="scattersmith.marker", **kwargs - ): - super(SizeminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sizemin', + parent_name='scattersmith.marker', + **kwargs): + super(SizeminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/_sizemode.py b/packages/python/plotly/plotly/validators/scattersmith/marker/_sizemode.py index f0541aefc82..c88b77afb8f 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/_sizemode.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/_sizemode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="sizemode", parent_name="scattersmith.marker", **kwargs - ): - super(SizemodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["diameter", "area"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizemodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='sizemode', + parent_name='scattersmith.marker', + **kwargs): + super(SizemodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['diameter', 'area']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/_sizeref.py b/packages/python/plotly/plotly/validators/scattersmith/marker/_sizeref.py index 0aaae965f11..c0aca3deab8 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/_sizeref.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/_sizeref.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="sizeref", parent_name="scattersmith.marker", **kwargs - ): - super(SizerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizerefValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sizeref', + parent_name='scattersmith.marker', + **kwargs): + super(SizerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/_sizesrc.py b/packages/python/plotly/plotly/validators/scattersmith/marker/_sizesrc.py index a3fea8401ee..c5df31faf06 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="scattersmith.marker", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scattersmith.marker', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/_standoff.py b/packages/python/plotly/plotly/validators/scattersmith/marker/_standoff.py index 3ca231c608e..ee887ebac52 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/_standoff.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/_standoff.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StandoffValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="standoff", parent_name="scattersmith.marker", **kwargs - ): - super(StandoffValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StandoffValidator(_bv.NumberValidator): + def __init__(self, plotly_name='standoff', + parent_name='scattersmith.marker', + **kwargs): + super(StandoffValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/_standoffsrc.py b/packages/python/plotly/plotly/validators/scattersmith/marker/_standoffsrc.py index 9ed78205d1d..ac536058f70 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/_standoffsrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/_standoffsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StandoffsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="standoffsrc", parent_name="scattersmith.marker", **kwargs - ): - super(StandoffsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StandoffsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='standoffsrc', + parent_name='scattersmith.marker', + **kwargs): + super(StandoffsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/_symbol.py b/packages/python/plotly/plotly/validators/scattersmith/marker/_symbol.py index 4f599db26f6..0860ef4371c 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/_symbol.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/_symbol.py @@ -1,505 +1,15 @@ -import _plotly_utils.basevalidators -class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="symbol", parent_name="scattersmith.marker", **kwargs - ): - super(SymbolValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - 0, - "0", - "circle", - 100, - "100", - "circle-open", - 200, - "200", - "circle-dot", - 300, - "300", - "circle-open-dot", - 1, - "1", - "square", - 101, - "101", - "square-open", - 201, - "201", - "square-dot", - 301, - "301", - "square-open-dot", - 2, - "2", - "diamond", - 102, - "102", - "diamond-open", - 202, - "202", - "diamond-dot", - 302, - "302", - "diamond-open-dot", - 3, - "3", - "cross", - 103, - "103", - "cross-open", - 203, - "203", - "cross-dot", - 303, - "303", - "cross-open-dot", - 4, - "4", - "x", - 104, - "104", - "x-open", - 204, - "204", - "x-dot", - 304, - "304", - "x-open-dot", - 5, - "5", - "triangle-up", - 105, - "105", - "triangle-up-open", - 205, - "205", - "triangle-up-dot", - 305, - "305", - "triangle-up-open-dot", - 6, - "6", - "triangle-down", - 106, - "106", - "triangle-down-open", - 206, - "206", - "triangle-down-dot", - 306, - "306", - "triangle-down-open-dot", - 7, - "7", - "triangle-left", - 107, - "107", - "triangle-left-open", - 207, - "207", - "triangle-left-dot", - 307, - "307", - "triangle-left-open-dot", - 8, - "8", - "triangle-right", - 108, - "108", - "triangle-right-open", - 208, - "208", - "triangle-right-dot", - 308, - "308", - "triangle-right-open-dot", - 9, - "9", - "triangle-ne", - 109, - "109", - "triangle-ne-open", - 209, - "209", - "triangle-ne-dot", - 309, - "309", - "triangle-ne-open-dot", - 10, - "10", - "triangle-se", - 110, - "110", - "triangle-se-open", - 210, - "210", - "triangle-se-dot", - 310, - "310", - "triangle-se-open-dot", - 11, - "11", - "triangle-sw", - 111, - "111", - "triangle-sw-open", - 211, - "211", - "triangle-sw-dot", - 311, - "311", - "triangle-sw-open-dot", - 12, - "12", - "triangle-nw", - 112, - "112", - "triangle-nw-open", - 212, - "212", - "triangle-nw-dot", - 312, - "312", - "triangle-nw-open-dot", - 13, - "13", - "pentagon", - 113, - "113", - "pentagon-open", - 213, - "213", - "pentagon-dot", - 313, - "313", - "pentagon-open-dot", - 14, - "14", - "hexagon", - 114, - "114", - "hexagon-open", - 214, - "214", - "hexagon-dot", - 314, - "314", - "hexagon-open-dot", - 15, - "15", - "hexagon2", - 115, - "115", - "hexagon2-open", - 215, - "215", - "hexagon2-dot", - 315, - "315", - "hexagon2-open-dot", - 16, - "16", - "octagon", - 116, - "116", - "octagon-open", - 216, - "216", - "octagon-dot", - 316, - "316", - "octagon-open-dot", - 17, - "17", - "star", - 117, - "117", - "star-open", - 217, - "217", - "star-dot", - 317, - "317", - "star-open-dot", - 18, - "18", - "hexagram", - 118, - "118", - "hexagram-open", - 218, - "218", - "hexagram-dot", - 318, - "318", - "hexagram-open-dot", - 19, - "19", - "star-triangle-up", - 119, - "119", - "star-triangle-up-open", - 219, - "219", - "star-triangle-up-dot", - 319, - "319", - "star-triangle-up-open-dot", - 20, - "20", - "star-triangle-down", - 120, - "120", - "star-triangle-down-open", - 220, - "220", - "star-triangle-down-dot", - 320, - "320", - "star-triangle-down-open-dot", - 21, - "21", - "star-square", - 121, - "121", - "star-square-open", - 221, - "221", - "star-square-dot", - 321, - "321", - "star-square-open-dot", - 22, - "22", - "star-diamond", - 122, - "122", - "star-diamond-open", - 222, - "222", - "star-diamond-dot", - 322, - "322", - "star-diamond-open-dot", - 23, - "23", - "diamond-tall", - 123, - "123", - "diamond-tall-open", - 223, - "223", - "diamond-tall-dot", - 323, - "323", - "diamond-tall-open-dot", - 24, - "24", - "diamond-wide", - 124, - "124", - "diamond-wide-open", - 224, - "224", - "diamond-wide-dot", - 324, - "324", - "diamond-wide-open-dot", - 25, - "25", - "hourglass", - 125, - "125", - "hourglass-open", - 26, - "26", - "bowtie", - 126, - "126", - "bowtie-open", - 27, - "27", - "circle-cross", - 127, - "127", - "circle-cross-open", - 28, - "28", - "circle-x", - 128, - "128", - "circle-x-open", - 29, - "29", - "square-cross", - 129, - "129", - "square-cross-open", - 30, - "30", - "square-x", - 130, - "130", - "square-x-open", - 31, - "31", - "diamond-cross", - 131, - "131", - "diamond-cross-open", - 32, - "32", - "diamond-x", - 132, - "132", - "diamond-x-open", - 33, - "33", - "cross-thin", - 133, - "133", - "cross-thin-open", - 34, - "34", - "x-thin", - 134, - "134", - "x-thin-open", - 35, - "35", - "asterisk", - 135, - "135", - "asterisk-open", - 36, - "36", - "hash", - 136, - "136", - "hash-open", - 236, - "236", - "hash-dot", - 336, - "336", - "hash-open-dot", - 37, - "37", - "y-up", - 137, - "137", - "y-up-open", - 38, - "38", - "y-down", - 138, - "138", - "y-down-open", - 39, - "39", - "y-left", - 139, - "139", - "y-left-open", - 40, - "40", - "y-right", - 140, - "140", - "y-right-open", - 41, - "41", - "line-ew", - 141, - "141", - "line-ew-open", - 42, - "42", - "line-ns", - 142, - "142", - "line-ns-open", - 43, - "43", - "line-ne", - 143, - "143", - "line-ne-open", - 44, - "44", - "line-nw", - 144, - "144", - "line-nw-open", - 45, - "45", - "arrow-up", - 145, - "145", - "arrow-up-open", - 46, - "46", - "arrow-down", - 146, - "146", - "arrow-down-open", - 47, - "47", - "arrow-left", - 147, - "147", - "arrow-left-open", - 48, - "48", - "arrow-right", - 148, - "148", - "arrow-right-open", - 49, - "49", - "arrow-bar-up", - 149, - "149", - "arrow-bar-up-open", - 50, - "50", - "arrow-bar-down", - 150, - "150", - "arrow-bar-down-open", - 51, - "51", - "arrow-bar-left", - 151, - "151", - "arrow-bar-left-open", - 52, - "52", - "arrow-bar-right", - 152, - "152", - "arrow-bar-right-open", - 53, - "53", - "arrow", - 153, - "153", - "arrow-open", - 54, - "54", - "arrow-wide", - 154, - "154", - "arrow-wide-open", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SymbolValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='symbol', + parent_name='scattersmith.marker', + **kwargs): + super(SymbolValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', [0, '0', 'circle', 100, '100', 'circle-open', 200, '200', 'circle-dot', 300, '300', 'circle-open-dot', 1, '1', 'square', 101, '101', 'square-open', 201, '201', 'square-dot', 301, '301', 'square-open-dot', 2, '2', 'diamond', 102, '102', 'diamond-open', 202, '202', 'diamond-dot', 302, '302', 'diamond-open-dot', 3, '3', 'cross', 103, '103', 'cross-open', 203, '203', 'cross-dot', 303, '303', 'cross-open-dot', 4, '4', 'x', 104, '104', 'x-open', 204, '204', 'x-dot', 304, '304', 'x-open-dot', 5, '5', 'triangle-up', 105, '105', 'triangle-up-open', 205, '205', 'triangle-up-dot', 305, '305', 'triangle-up-open-dot', 6, '6', 'triangle-down', 106, '106', 'triangle-down-open', 206, '206', 'triangle-down-dot', 306, '306', 'triangle-down-open-dot', 7, '7', 'triangle-left', 107, '107', 'triangle-left-open', 207, '207', 'triangle-left-dot', 307, '307', 'triangle-left-open-dot', 8, '8', 'triangle-right', 108, '108', 'triangle-right-open', 208, '208', 'triangle-right-dot', 308, '308', 'triangle-right-open-dot', 9, '9', 'triangle-ne', 109, '109', 'triangle-ne-open', 209, '209', 'triangle-ne-dot', 309, '309', 'triangle-ne-open-dot', 10, '10', 'triangle-se', 110, '110', 'triangle-se-open', 210, '210', 'triangle-se-dot', 310, '310', 'triangle-se-open-dot', 11, '11', 'triangle-sw', 111, '111', 'triangle-sw-open', 211, '211', 'triangle-sw-dot', 311, '311', 'triangle-sw-open-dot', 12, '12', 'triangle-nw', 112, '112', 'triangle-nw-open', 212, '212', 'triangle-nw-dot', 312, '312', 'triangle-nw-open-dot', 13, '13', 'pentagon', 113, '113', 'pentagon-open', 213, '213', 'pentagon-dot', 313, '313', 'pentagon-open-dot', 14, '14', 'hexagon', 114, '114', 'hexagon-open', 214, '214', 'hexagon-dot', 314, '314', 'hexagon-open-dot', 15, '15', 'hexagon2', 115, '115', 'hexagon2-open', 215, '215', 'hexagon2-dot', 315, '315', 'hexagon2-open-dot', 16, '16', 'octagon', 116, '116', 'octagon-open', 216, '216', 'octagon-dot', 316, '316', 'octagon-open-dot', 17, '17', 'star', 117, '117', 'star-open', 217, '217', 'star-dot', 317, '317', 'star-open-dot', 18, '18', 'hexagram', 118, '118', 'hexagram-open', 218, '218', 'hexagram-dot', 318, '318', 'hexagram-open-dot', 19, '19', 'star-triangle-up', 119, '119', 'star-triangle-up-open', 219, '219', 'star-triangle-up-dot', 319, '319', 'star-triangle-up-open-dot', 20, '20', 'star-triangle-down', 120, '120', 'star-triangle-down-open', 220, '220', 'star-triangle-down-dot', 320, '320', 'star-triangle-down-open-dot', 21, '21', 'star-square', 121, '121', 'star-square-open', 221, '221', 'star-square-dot', 321, '321', 'star-square-open-dot', 22, '22', 'star-diamond', 122, '122', 'star-diamond-open', 222, '222', 'star-diamond-dot', 322, '322', 'star-diamond-open-dot', 23, '23', 'diamond-tall', 123, '123', 'diamond-tall-open', 223, '223', 'diamond-tall-dot', 323, '323', 'diamond-tall-open-dot', 24, '24', 'diamond-wide', 124, '124', 'diamond-wide-open', 224, '224', 'diamond-wide-dot', 324, '324', 'diamond-wide-open-dot', 25, '25', 'hourglass', 125, '125', 'hourglass-open', 26, '26', 'bowtie', 126, '126', 'bowtie-open', 27, '27', 'circle-cross', 127, '127', 'circle-cross-open', 28, '28', 'circle-x', 128, '128', 'circle-x-open', 29, '29', 'square-cross', 129, '129', 'square-cross-open', 30, '30', 'square-x', 130, '130', 'square-x-open', 31, '31', 'diamond-cross', 131, '131', 'diamond-cross-open', 32, '32', 'diamond-x', 132, '132', 'diamond-x-open', 33, '33', 'cross-thin', 133, '133', 'cross-thin-open', 34, '34', 'x-thin', 134, '134', 'x-thin-open', 35, '35', 'asterisk', 135, '135', 'asterisk-open', 36, '36', 'hash', 136, '136', 'hash-open', 236, '236', 'hash-dot', 336, '336', 'hash-open-dot', 37, '37', 'y-up', 137, '137', 'y-up-open', 38, '38', 'y-down', 138, '138', 'y-down-open', 39, '39', 'y-left', 139, '139', 'y-left-open', 40, '40', 'y-right', 140, '140', 'y-right-open', 41, '41', 'line-ew', 141, '141', 'line-ew-open', 42, '42', 'line-ns', 142, '142', 'line-ns-open', 43, '43', 'line-ne', 143, '143', 'line-ne-open', 44, '44', 'line-nw', 144, '144', 'line-nw-open', 45, '45', 'arrow-up', 145, '145', 'arrow-up-open', 46, '46', 'arrow-down', 146, '146', 'arrow-down-open', 47, '47', 'arrow-left', 147, '147', 'arrow-left-open', 48, '48', 'arrow-right', 148, '148', 'arrow-right-open', 49, '49', 'arrow-bar-up', 149, '149', 'arrow-bar-up-open', 50, '50', 'arrow-bar-down', 150, '150', 'arrow-bar-down-open', 51, '51', 'arrow-bar-left', 151, '151', 'arrow-bar-left-open', 52, '52', 'arrow-bar-right', 152, '152', 'arrow-bar-right-open', 53, '53', 'arrow', 153, '153', 'arrow-open', 54, '54', 'arrow-wide', 154, '154', 'arrow-wide-open']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/_symbolsrc.py b/packages/python/plotly/plotly/validators/scattersmith/marker/_symbolsrc.py index 094f0fea2d9..60d3a4d5639 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/_symbolsrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/_symbolsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="symbolsrc", parent_name="scattersmith.marker", **kwargs - ): - super(SymbolsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SymbolsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='symbolsrc', + parent_name='scattersmith.marker', + **kwargs): + super(SymbolsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_bgcolor.py index ab36a8044b8..1ae6efb8e8e 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_bgcolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bgcolor", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_bordercolor.py index c632d9f239a..09e22611b75 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_bordercolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bordercolor", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_borderwidth.py index d9dc13fa683..411c7e15364 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_borderwidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="borderwidth", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_dtick.py index 49db1612ea6..b009d5fac12 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="scattersmith.marker.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_exponentformat.py index db5fd9e2dc9..3ce03a28cc9 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_exponentformat.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="exponentformat", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_labelalias.py index 5fbf64a51be..de561fa68b0 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_labelalias.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="labelalias", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_len.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_len.py index 0574dc243d3..7b9fe87a5f0 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_len.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="len", parent_name="scattersmith.marker.colorbar", **kwargs - ): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_lenmode.py index 8dcc4e35e7e..6c0acc64981 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_lenmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="lenmode", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_minexponent.py index 7bdc5373e4e..853e913e356 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_minexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="minexponent", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_nticks.py index 175fc2b2505..1f2a0861b3a 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="scattersmith.marker.colorbar", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_orientation.py index fc84f94c075..5eae4bb911c 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_orientation.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="orientation", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_outlinecolor.py index a1686cdc4d6..4b613d77905 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_outlinecolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="outlinecolor", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_outlinewidth.py index 7acae473169..b575ac589f2 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_outlinewidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="outlinewidth", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_separatethousands.py index 81fffcc428a..e8d4c4b3832 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_showexponent.py index 6863443ac77..3fdc66d361e 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_showexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showexponent", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_showticklabels.py index 19d00ff7148..58b617c67ce 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_showtickprefix.py index b8cf6f75905..1e403503565 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_showticksuffix.py index a32b9875c7e..089a320fb93 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_thickness.py index 6442b0b563f..afd3d67dae1 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_thickness.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="thickness", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_thicknessmode.py index 71ff988c682..b3a8ba275e6 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_thicknessmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="thicknessmode", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tick0.py index 297687f4fe0..a9a46aea674 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="scattersmith.marker.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickangle.py index b1eab89fc95..5efd69342bd 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickangle.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name="tickangle", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickcolor.py index 79f0e328888..c81fdc2e7fc 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickcolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="tickcolor", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickfont.py index d3353310a5a..91e82c66903 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickfont.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickfont", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickformat.py index 657f9d04db2..aef407a0a3f 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickformat.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickformat", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickformatstopdefaults.py index dffb72f1dd3..eb7106cab8e 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickformatstops.py index 3c83565dd95..91fa4069fa2 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticklabeloverflow.py index 966dd3da04d..c0af2cc0961 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticklabelposition.py index 8e97431ecf6..9f2b21a2c14 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticklabelstep.py index d8dd166e5a2..b4de176449c 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticklabelstep.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="ticklabelstep", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticklen.py index 6104f526a72..f0e6bd20805 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticklen.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="ticklen", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickmode.py index 314d1f836b4..ff8fd182a35 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickmode.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="tickmode", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickprefix.py index be28f50f459..0d19c1e54b2 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickprefix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickprefix", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticks.py index 60218951b93..576b49525ba 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="scattersmith.marker.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticksuffix.py index c26cc46b770..9bb7762aba1 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticksuffix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="ticksuffix", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticktext.py index 558de2f8a08..b947412ee6d 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticktext.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name="ticktext", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticktextsrc.py index 51ee84e816d..d751a4c66d6 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ticktextsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="ticktextsrc", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickvals.py index 7387a52b55e..32d7f753348 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickvals.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name="tickvals", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickvalssrc.py index 366e4a24f7c..97bf25d49ef 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickvalssrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="tickvalssrc", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickwidth.py index 3b9298e8577..d135d3ddc73 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickwidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="tickwidth", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_title.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_title.py index aed71e1281f..b9a3ea24021 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="scattersmith.marker.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_x.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_x.py index af3835c7f1b..80683af48d6 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_x.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="x", parent_name="scattersmith.marker.colorbar", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_xanchor.py index 9477800826c..07a7fccc21f 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_xanchor.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="xanchor", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_xpad.py index a657626add8..bc8ab0906dd 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_xpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="xpad", parent_name="scattersmith.marker.colorbar", **kwargs - ): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_xref.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_xref.py index fb624aad7a7..c65760f9515 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xref", parent_name="scattersmith.marker.colorbar", **kwargs - ): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_y.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_y.py index 95aaca685b9..6b450cb4c97 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_y.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="y", parent_name="scattersmith.marker.colorbar", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_yanchor.py index 9eedc5434d1..7efa2a8e0df 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_yanchor.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="yanchor", - parent_name="scattersmith.marker.colorbar", - **kwargs, - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ypad.py index d50896ae18a..5117fa40147 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_ypad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ypad", parent_name="scattersmith.marker.colorbar", **kwargs - ): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_yref.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_yref.py index 03414cf3d10..52630267d31 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yref", parent_name="scattersmith.marker.colorbar", **kwargs - ): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='scattersmith.marker.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_color.py index bf9df66b89d..e2a87a960e4 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scattersmith.marker.colorbar.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattersmith.marker.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_family.py index 385c2836965..725110bc906 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scattersmith.marker.colorbar.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattersmith.marker.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_lineposition.py index 8dd5518fd25..7e5d0adf5a4 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scattersmith.marker.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scattersmith.marker.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_shadow.py index 767ef8a714c..986d7b39013 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scattersmith.marker.colorbar.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scattersmith.marker.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_size.py index 939d1c29874..5ba0caa7e54 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scattersmith.marker.colorbar.tickfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattersmith.marker.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_style.py index 3fbdc2be211..b5ce922f28e 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scattersmith.marker.colorbar.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattersmith.marker.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_textcase.py index ceda28cf4f8..0c61760671f 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scattersmith.marker.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scattersmith.marker.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_variant.py index fdce8b89a4e..1fd1d0cbe7c 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scattersmith.marker.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scattersmith.marker.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_weight.py index d4de6706c62..22f570360a5 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scattersmith.marker.colorbar.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scattersmith.marker.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_dtickrange.py index 6eec1c29a91..7370b3c7d8b 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="scattersmith.marker.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - items=kwargs.pop( - "items", - [ - {"editType": "colorbars", "valType": "any"}, - {"editType": "colorbars", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='scattersmith.marker.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + items=kwargs.pop('items', [{'editType': 'colorbars', 'valType': 'any'}, {'editType': 'colorbars', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_enabled.py index b78537b59c7..9de218b2738 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="scattersmith.marker.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='scattersmith.marker.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_name.py index 9685cb91626..a485e2411f6 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="scattersmith.marker.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='scattersmith.marker.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_templateitemname.py index a81277026e3..76b1d87f22e 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="scattersmith.marker.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='scattersmith.marker.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_value.py index 27dec553bd3..7f4c482f7f3 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="scattersmith.marker.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='scattersmith.marker.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/_font.py index 5b3026b702f..68502ae32db 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/_font.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="font", - parent_name="scattersmith.marker.colorbar.title", - **kwargs, - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scattersmith.marker.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/_side.py index 5473adebd6e..1645c689e62 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/_side.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="side", - parent_name="scattersmith.marker.colorbar.title", - **kwargs, - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='scattersmith.marker.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/_text.py index e90872971ce..70ba718f61b 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/_text.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="text", - parent_name="scattersmith.marker.colorbar.title", - **kwargs, - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scattersmith.marker.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_color.py index d435fa7382f..c9581eea35a 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scattersmith.marker.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattersmith.marker.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_family.py index c5423d8b56d..4c0c09543c8 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scattersmith.marker.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattersmith.marker.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_lineposition.py index c71ba745038..437fd28b222 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scattersmith.marker.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scattersmith.marker.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_shadow.py index 6cf4477346f..e770290d2dd 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scattersmith.marker.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scattersmith.marker.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_size.py index ad1f82dc481..2e8e79ef78a 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scattersmith.marker.colorbar.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattersmith.marker.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_style.py index ccd83bd0c78..889fad3eb62 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scattersmith.marker.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattersmith.marker.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_textcase.py index a4a82415bd6..5336f7943eb 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scattersmith.marker.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scattersmith.marker.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_variant.py index e2f26dcf131..8725c8c3d0b 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scattersmith.marker.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scattersmith.marker.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_weight.py index 2a95ab9bd63..b22302675e6 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scattersmith.marker.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scattersmith.marker.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/gradient/__init__.py b/packages/python/plotly/plotly/validators/scattersmith/marker/gradient/__init__.py index 624a280ea46..f3927efb3e0 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/gradient/__init__.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/gradient/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._typesrc import TypesrcValidator from ._type import TypeValidator @@ -8,14 +7,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._typesrc.TypesrcValidator", - "._type.TypeValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._typesrc.TypesrcValidator', '._type.TypeValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/gradient/_color.py b/packages/python/plotly/plotly/validators/scattersmith/marker/gradient/_color.py index b3329069f79..c63a769ed48 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/gradient/_color.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/gradient/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattersmith.marker.gradient", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattersmith.marker.gradient', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/gradient/_colorsrc.py b/packages/python/plotly/plotly/validators/scattersmith/marker/gradient/_colorsrc.py index da5205ea1db..7b308ad0904 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/gradient/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/gradient/_colorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="colorsrc", - parent_name="scattersmith.marker.gradient", - **kwargs, - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scattersmith.marker.gradient', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/gradient/_type.py b/packages/python/plotly/plotly/validators/scattersmith/marker/gradient/_type.py index 7e1b57489a2..86570973b49 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/gradient/_type.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/gradient/_type.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="type", parent_name="scattersmith.marker.gradient", **kwargs - ): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["radial", "horizontal", "vertical", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='scattersmith.marker.gradient', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['radial', 'horizontal', 'vertical', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/gradient/_typesrc.py b/packages/python/plotly/plotly/validators/scattersmith/marker/gradient/_typesrc.py index 506010667d5..c70328932ba 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/gradient/_typesrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/gradient/_typesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TypesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="typesrc", - parent_name="scattersmith.marker.gradient", - **kwargs, - ): - super(TypesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TypesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='typesrc', + parent_name='scattersmith.marker.gradient', + **kwargs): + super(TypesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/line/__init__.py b/packages/python/plotly/plotly/validators/scattersmith/marker/line/__init__.py index facbe33f884..55d423b11da 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._widthsrc import WidthsrcValidator from ._width import WidthValidator @@ -16,22 +15,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._widthsrc.WidthsrcValidator", - "._width.WidthValidator", - "._reversescale.ReversescaleValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._widthsrc.WidthsrcValidator', '._width.WidthValidator', '._reversescale.ReversescaleValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/line/_autocolorscale.py b/packages/python/plotly/plotly/validators/scattersmith/marker/line/_autocolorscale.py index 59a82144e23..9d3aa50f883 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/line/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/line/_autocolorscale.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="autocolorscale", - parent_name="scattersmith.marker.line", - **kwargs, - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='scattersmith.marker.line', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/line/_cauto.py b/packages/python/plotly/plotly/validators/scattersmith/marker/line/_cauto.py index b276e6d03b7..3bb05a07702 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/line/_cauto.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/line/_cauto.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="cauto", parent_name="scattersmith.marker.line", **kwargs - ): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='scattersmith.marker.line', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/line/_cmax.py b/packages/python/plotly/plotly/validators/scattersmith/marker/line/_cmax.py index 60ede55a949..b6671b29b00 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/line/_cmax.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/line/_cmax.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmax", parent_name="scattersmith.marker.line", **kwargs - ): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='scattersmith.marker.line', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/line/_cmid.py b/packages/python/plotly/plotly/validators/scattersmith/marker/line/_cmid.py index 095df53ad76..62d2e139464 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/line/_cmid.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/line/_cmid.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmid", parent_name="scattersmith.marker.line", **kwargs - ): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='scattersmith.marker.line', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/line/_cmin.py b/packages/python/plotly/plotly/validators/scattersmith/marker/line/_cmin.py index c67e10a0329..b41628e977d 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/line/_cmin.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/line/_cmin.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmin", parent_name="scattersmith.marker.line", **kwargs - ): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='scattersmith.marker.line', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/line/_color.py b/packages/python/plotly/plotly/validators/scattersmith/marker/line/_color.py index e02eaedbb1b..a531fa452bf 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/line/_color.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/line/_color.py @@ -1,17 +1,15 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattersmith.marker.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - colorscale_path=kwargs.pop( - "colorscale_path", "scattersmith.marker.line.colorscale" - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattersmith.marker.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + colorscale_path=kwargs.pop('colorscale_path', 'scattersmith.marker.line.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/line/_coloraxis.py b/packages/python/plotly/plotly/validators/scattersmith/marker/line/_coloraxis.py index 356dccd2f15..647456e46e5 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/line/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/line/_coloraxis.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name="coloraxis", parent_name="scattersmith.marker.line", **kwargs - ): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='scattersmith.marker.line', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/line/_colorscale.py b/packages/python/plotly/plotly/validators/scattersmith/marker/line/_colorscale.py index 7152d21e22e..6fa12595741 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/line/_colorscale.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/line/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="scattersmith.marker.line", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='scattersmith.marker.line', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/line/_colorsrc.py b/packages/python/plotly/plotly/validators/scattersmith/marker/line/_colorsrc.py index bc72bd69652..e4fd5d7db7e 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/line/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/line/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scattersmith.marker.line", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scattersmith.marker.line', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/line/_reversescale.py b/packages/python/plotly/plotly/validators/scattersmith/marker/line/_reversescale.py index beeaa71748b..74b18e2a5a7 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/line/_reversescale.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/line/_reversescale.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="reversescale", - parent_name="scattersmith.marker.line", - **kwargs, - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='scattersmith.marker.line', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/line/_width.py b/packages/python/plotly/plotly/validators/scattersmith/marker/line/_width.py index fe02330c976..43058f0e37a 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/line/_width.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/line/_width.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="scattersmith.marker.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='scattersmith.marker.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/marker/line/_widthsrc.py b/packages/python/plotly/plotly/validators/scattersmith/marker/line/_widthsrc.py index 24e788d2644..a6ba695e361 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/marker/line/_widthsrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/marker/line/_widthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="widthsrc", parent_name="scattersmith.marker.line", **kwargs - ): - super(WidthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='widthsrc', + parent_name='scattersmith.marker.line', + **kwargs): + super(WidthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/selected/__init__.py b/packages/python/plotly/plotly/validators/scattersmith/selected/__init__.py index 3b0aeed383f..c0a73fd7df3 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/scattersmith/selected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._textfont import TextfontValidator from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] + __name__, + [], + ['._textfont.TextfontValidator', '._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattersmith/selected/_marker.py b/packages/python/plotly/plotly/validators/scattersmith/selected/_marker.py index e7e2222d862..384196e22d5 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/selected/_marker.py +++ b/packages/python/plotly/plotly/validators/scattersmith/selected/_marker.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="scattersmith.selected", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. - size - Sets the marker size of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scattersmith.selected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/selected/_textfont.py b/packages/python/plotly/plotly/validators/scattersmith/selected/_textfont.py index 85be02c2576..e2fbc84e7b6 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/selected/_textfont.py +++ b/packages/python/plotly/plotly/validators/scattersmith/selected/_textfont.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="textfont", parent_name="scattersmith.selected", **kwargs - ): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the text font color of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='scattersmith.selected', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/scattersmith/selected/marker/__init__.py index 8c321a38bc5..b7768f024e8 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattersmith/selected/marker/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._size import SizeValidator from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._size.SizeValidator", - "._opacity.OpacityValidator", - "._color.ColorValidator", - ], + ['._size.SizeValidator', '._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattersmith/selected/marker/_color.py b/packages/python/plotly/plotly/validators/scattersmith/selected/marker/_color.py index 9a5ac6e248b..02e1634d681 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/selected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scattersmith/selected/marker/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattersmith.selected.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattersmith.selected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/selected/marker/_opacity.py b/packages/python/plotly/plotly/validators/scattersmith/selected/marker/_opacity.py index 0531b2e4d56..3c4c742b02d 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/selected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scattersmith/selected/marker/_opacity.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="opacity", - parent_name="scattersmith.selected.marker", - **kwargs, - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scattersmith.selected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/selected/marker/_size.py b/packages/python/plotly/plotly/validators/scattersmith/selected/marker/_size.py index c376b99fa5b..6199cdb403e 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/selected/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scattersmith/selected/marker/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scattersmith.selected.marker", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattersmith.selected.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/selected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scattersmith/selected/textfont/__init__.py index a9f087e5af1..86899e5cc51 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/selected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattersmith/selected/textfont/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._color.ColorValidator"] + __name__, + [], + ['._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattersmith/selected/textfont/_color.py b/packages/python/plotly/plotly/validators/scattersmith/selected/textfont/_color.py index 8d72cb50677..87cbb9fc494 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/selected/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/scattersmith/selected/textfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scattersmith.selected.textfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattersmith.selected.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/stream/__init__.py b/packages/python/plotly/plotly/validators/scattersmith/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/scattersmith/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattersmith/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/scattersmith/stream/_maxpoints.py index 78252328689..a82e03c4575 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/scattersmith/stream/_maxpoints.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxpoints", parent_name="scattersmith.stream", **kwargs - ): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='scattersmith.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/stream/_token.py b/packages/python/plotly/plotly/validators/scattersmith/stream/_token.py index e6b855c4d34..0e928f534cf 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/stream/_token.py +++ b/packages/python/plotly/plotly/validators/scattersmith/stream/_token.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="token", parent_name="scattersmith.stream", **kwargs - ): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='scattersmith.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/textfont/__init__.py b/packages/python/plotly/plotly/validators/scattersmith/textfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattersmith/textfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattersmith/textfont/_color.py b/packages/python/plotly/plotly/validators/scattersmith/textfont/_color.py index 2d7df6248cd..20510995262 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/scattersmith/textfont/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scattersmith.textfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattersmith.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/textfont/_colorsrc.py b/packages/python/plotly/plotly/validators/scattersmith/textfont/_colorsrc.py index 667eedfbb0e..7122adb2d5f 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/textfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/textfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scattersmith.textfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scattersmith.textfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/textfont/_family.py b/packages/python/plotly/plotly/validators/scattersmith/textfont/_family.py index 1a6fba60248..e22adb0ee85 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/textfont/_family.py +++ b/packages/python/plotly/plotly/validators/scattersmith/textfont/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="scattersmith.textfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scattersmith.textfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/textfont/_familysrc.py b/packages/python/plotly/plotly/validators/scattersmith/textfont/_familysrc.py index 977efaa6bf6..cb63727929e 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/textfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/textfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="scattersmith.textfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='scattersmith.textfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/textfont/_lineposition.py b/packages/python/plotly/plotly/validators/scattersmith/textfont/_lineposition.py index 50e2c52ee7a..f21c995ff2c 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/textfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scattersmith/textfont/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="scattersmith.textfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scattersmith.textfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/textfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/scattersmith/textfont/_linepositionsrc.py index c6d18cbf57e..22fd25b8ea2 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/textfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/textfont/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="scattersmith.textfont", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='scattersmith.textfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/textfont/_shadow.py b/packages/python/plotly/plotly/validators/scattersmith/textfont/_shadow.py index b740f255ff4..9dcba3c9338 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/textfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/scattersmith/textfont/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="scattersmith.textfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scattersmith.textfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/textfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/scattersmith/textfont/_shadowsrc.py index fbef53827a3..f50838a32c4 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/textfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/textfont/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="scattersmith.textfont", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='scattersmith.textfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/textfont/_size.py b/packages/python/plotly/plotly/validators/scattersmith/textfont/_size.py index 850a9f5a413..40028d23ada 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/textfont/_size.py +++ b/packages/python/plotly/plotly/validators/scattersmith/textfont/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scattersmith.textfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattersmith.textfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/textfont/_sizesrc.py b/packages/python/plotly/plotly/validators/scattersmith/textfont/_sizesrc.py index 195d58ff490..b1698909e60 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/textfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/textfont/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="scattersmith.textfont", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scattersmith.textfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/textfont/_style.py b/packages/python/plotly/plotly/validators/scattersmith/textfont/_style.py index 7b1cbdbd9eb..f8dbf979679 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/textfont/_style.py +++ b/packages/python/plotly/plotly/validators/scattersmith/textfont/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="scattersmith.textfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scattersmith.textfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/textfont/_stylesrc.py b/packages/python/plotly/plotly/validators/scattersmith/textfont/_stylesrc.py index 0ab8ead8c0a..b073ec5cb90 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/textfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/textfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="scattersmith.textfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='scattersmith.textfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/textfont/_textcase.py b/packages/python/plotly/plotly/validators/scattersmith/textfont/_textcase.py index e5b6cfcb7fd..d6a23d5ada7 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/textfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/scattersmith/textfont/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="scattersmith.textfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scattersmith.textfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/textfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/scattersmith/textfont/_textcasesrc.py index 96bf8ecc924..77b8d843369 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/textfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/textfont/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="scattersmith.textfont", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='scattersmith.textfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/textfont/_variant.py b/packages/python/plotly/plotly/validators/scattersmith/textfont/_variant.py index 99f07ae525d..18622dc884c 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/textfont/_variant.py +++ b/packages/python/plotly/plotly/validators/scattersmith/textfont/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="scattersmith.textfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scattersmith.textfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/textfont/_variantsrc.py b/packages/python/plotly/plotly/validators/scattersmith/textfont/_variantsrc.py index 9ed07409c8b..32a867d38b5 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/textfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/textfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="scattersmith.textfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='scattersmith.textfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/textfont/_weight.py b/packages/python/plotly/plotly/validators/scattersmith/textfont/_weight.py index a5c3a214797..56402dbf7f3 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/textfont/_weight.py +++ b/packages/python/plotly/plotly/validators/scattersmith/textfont/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="scattersmith.textfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scattersmith.textfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/textfont/_weightsrc.py b/packages/python/plotly/plotly/validators/scattersmith/textfont/_weightsrc.py index 79b0b8e24da..bfdc35cfe96 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/textfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/scattersmith/textfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="scattersmith.textfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='scattersmith.textfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/unselected/__init__.py b/packages/python/plotly/plotly/validators/scattersmith/unselected/__init__.py index 3b0aeed383f..c0a73fd7df3 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/scattersmith/unselected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._textfont import TextfontValidator from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] + __name__, + [], + ['._textfont.TextfontValidator', '._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattersmith/unselected/_marker.py b/packages/python/plotly/plotly/validators/scattersmith/unselected/_marker.py index 85cc44ce846..466d1a946be 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/unselected/_marker.py +++ b/packages/python/plotly/plotly/validators/scattersmith/unselected/_marker.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="scattersmith.unselected", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - size - Sets the marker size of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scattersmith.unselected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/unselected/_textfont.py b/packages/python/plotly/plotly/validators/scattersmith/unselected/_textfont.py index 771b5b0ebf1..c564a0c3440 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/unselected/_textfont.py +++ b/packages/python/plotly/plotly/validators/scattersmith/unselected/_textfont.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="textfont", parent_name="scattersmith.unselected", **kwargs - ): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the text font color of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='scattersmith.unselected', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/scattersmith/unselected/marker/__init__.py index 8c321a38bc5..b7768f024e8 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattersmith/unselected/marker/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._size import SizeValidator from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._size.SizeValidator", - "._opacity.OpacityValidator", - "._color.ColorValidator", - ], + ['._size.SizeValidator', '._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattersmith/unselected/marker/_color.py b/packages/python/plotly/plotly/validators/scattersmith/unselected/marker/_color.py index e0d6c289ad3..a98365183f8 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/unselected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scattersmith/unselected/marker/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scattersmith.unselected.marker", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattersmith.unselected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/unselected/marker/_opacity.py b/packages/python/plotly/plotly/validators/scattersmith/unselected/marker/_opacity.py index ddc2587b6ed..c85ae8e0a64 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/unselected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scattersmith/unselected/marker/_opacity.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="opacity", - parent_name="scattersmith.unselected.marker", - **kwargs, - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scattersmith.unselected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/unselected/marker/_size.py b/packages/python/plotly/plotly/validators/scattersmith/unselected/marker/_size.py index 1da3002a3e0..684aa674b96 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/unselected/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scattersmith/unselected/marker/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scattersmith.unselected.marker", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scattersmith.unselected.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scattersmith/unselected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scattersmith/unselected/textfont/__init__.py index a9f087e5af1..86899e5cc51 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/unselected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattersmith/unselected/textfont/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._color.ColorValidator"] + __name__, + [], + ['._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scattersmith/unselected/textfont/_color.py b/packages/python/plotly/plotly/validators/scattersmith/unselected/textfont/_color.py index 4d115b2276a..9a334e57154 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/unselected/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/scattersmith/unselected/textfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scattersmith.unselected.textfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scattersmith.unselected.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/__init__.py index e99da6064dc..3374f414381 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._unselected import UnselectedValidator @@ -55,61 +54,10 @@ from ._a import AValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._unselected.UnselectedValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._texttemplatesrc.TexttemplatesrcValidator", - "._texttemplate.TexttemplateValidator", - "._textsrc.TextsrcValidator", - "._textpositionsrc.TextpositionsrcValidator", - "._textposition.TextpositionValidator", - "._textfont.TextfontValidator", - "._text.TextValidator", - "._sum.SumValidator", - "._subplot.SubplotValidator", - "._stream.StreamValidator", - "._showlegend.ShowlegendValidator", - "._selectedpoints.SelectedpointsValidator", - "._selected.SelectedValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._mode.ModeValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._marker.MarkerValidator", - "._line.LineValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoveron.HoveronValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._fillcolor.FillcolorValidator", - "._fill.FillValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._csrc.CsrcValidator", - "._connectgaps.ConnectgapsValidator", - "._cliponaxis.CliponaxisValidator", - "._c.CValidator", - "._bsrc.BsrcValidator", - "._b.BValidator", - "._asrc.AsrcValidator", - "._a.AValidator", - ], + ['._visible.VisibleValidator', '._unselected.UnselectedValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._texttemplatesrc.TexttemplatesrcValidator', '._texttemplate.TexttemplateValidator', '._textsrc.TextsrcValidator', '._textpositionsrc.TextpositionsrcValidator', '._textposition.TextpositionValidator', '._textfont.TextfontValidator', '._text.TextValidator', '._sum.SumValidator', '._subplot.SubplotValidator', '._stream.StreamValidator', '._showlegend.ShowlegendValidator', '._selectedpoints.SelectedpointsValidator', '._selected.SelectedValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._mode.ModeValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._marker.MarkerValidator', '._line.LineValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoveron.HoveronValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._fillcolor.FillcolorValidator', '._fill.FillValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._csrc.CsrcValidator', '._connectgaps.ConnectgapsValidator', '._cliponaxis.CliponaxisValidator', '._c.CValidator', '._bsrc.BsrcValidator', '._b.BValidator', '._asrc.AsrcValidator', '._a.AValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterternary/_a.py b/packages/python/plotly/plotly/validators/scatterternary/_a.py index 08598a3c4b4..8eb4439f4ad 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_a.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_a.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="a", parent_name="scatterternary", **kwargs): - super(AValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='a', + parent_name='scatterternary', + **kwargs): + super(AValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_asrc.py b/packages/python/plotly/plotly/validators/scatterternary/_asrc.py index 7720b3237a4..110993e9a31 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_asrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_asrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="asrc", parent_name="scatterternary", **kwargs): - super(AsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='asrc', + parent_name='scatterternary', + **kwargs): + super(AsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_b.py b/packages/python/plotly/plotly/validators/scatterternary/_b.py index 33bba83bef0..423395b019b 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_b.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_b.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="b", parent_name="scatterternary", **kwargs): - super(BValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='b', + parent_name='scatterternary', + **kwargs): + super(BValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_bsrc.py b/packages/python/plotly/plotly/validators/scatterternary/_bsrc.py index d7b80734872..d011516bd8c 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_bsrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_bsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="bsrc", parent_name="scatterternary", **kwargs): - super(BsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bsrc', + parent_name='scatterternary', + **kwargs): + super(BsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_c.py b/packages/python/plotly/plotly/validators/scatterternary/_c.py index 2645f589950..3b87fa8e724 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_c.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_c.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="c", parent_name="scatterternary", **kwargs): - super(CValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='c', + parent_name='scatterternary', + **kwargs): + super(CValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_cliponaxis.py b/packages/python/plotly/plotly/validators/scatterternary/_cliponaxis.py index 2f3bfa76691..d44f45be20a 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_cliponaxis.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_cliponaxis.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CliponaxisValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="cliponaxis", parent_name="scatterternary", **kwargs - ): - super(CliponaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CliponaxisValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cliponaxis', + parent_name='scatterternary', + **kwargs): + super(CliponaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_connectgaps.py b/packages/python/plotly/plotly/validators/scatterternary/_connectgaps.py index ba7f921065c..2f37a039409 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_connectgaps.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_connectgaps.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="connectgaps", parent_name="scatterternary", **kwargs - ): - super(ConnectgapsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ConnectgapsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='connectgaps', + parent_name='scatterternary', + **kwargs): + super(ConnectgapsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_csrc.py b/packages/python/plotly/plotly/validators/scatterternary/_csrc.py index a069a6f4d0d..0db91abab86 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_csrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_csrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="csrc", parent_name="scatterternary", **kwargs): - super(CsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='csrc', + parent_name='scatterternary', + **kwargs): + super(CsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_customdata.py b/packages/python/plotly/plotly/validators/scatterternary/_customdata.py index f2b28ef8b2a..0437435bb89 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_customdata.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_customdata.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="customdata", parent_name="scatterternary", **kwargs - ): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='scatterternary', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_customdatasrc.py b/packages/python/plotly/plotly/validators/scatterternary/_customdatasrc.py index d9996ad0bd4..555557952dd 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_customdatasrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="customdatasrc", parent_name="scatterternary", **kwargs - ): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='scatterternary', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_fill.py b/packages/python/plotly/plotly/validators/scatterternary/_fill.py index e2ed1e2b461..79511b8ab6f 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_fill.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_fill.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class FillValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="fill", parent_name="scatterternary", **kwargs): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["none", "toself", "tonext"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='fill', + parent_name='scatterternary', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['none', 'toself', 'tonext']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_fillcolor.py b/packages/python/plotly/plotly/validators/scatterternary/_fillcolor.py index fbdff231f48..62b1753841e 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_fillcolor.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_fillcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="fillcolor", parent_name="scatterternary", **kwargs): - super(FillcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FillcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fillcolor', + parent_name='scatterternary', + **kwargs): + super(FillcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_hoverinfo.py b/packages/python/plotly/plotly/validators/scatterternary/_hoverinfo.py index 27475f88e21..bbffba161b5 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="scatterternary", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["a", "b", "c", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='scatterternary', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['a', 'b', 'c', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/scatterternary/_hoverinfosrc.py index a20eb428dce..6b52e8b797e 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_hoverinfosrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hoverinfosrc", parent_name="scatterternary", **kwargs - ): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='scatterternary', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_hoverlabel.py b/packages/python/plotly/plotly/validators/scatterternary/_hoverlabel.py index 43bdb6a3438..c5db128632d 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_hoverlabel.py @@ -1,53 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="hoverlabel", parent_name="scatterternary", **kwargs - ): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='scatterternary', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_hoveron.py b/packages/python/plotly/plotly/validators/scatterternary/_hoveron.py index cd1cc126054..259a72968fa 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_hoveron.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_hoveron.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HoveronValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoveron", parent_name="scatterternary", **kwargs): - super(HoveronValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - flags=kwargs.pop("flags", ["points", "fills"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoveronValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoveron', + parent_name='scatterternary', + **kwargs): + super(HoveronValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + flags=kwargs.pop('flags', ['points', 'fills']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_hovertemplate.py b/packages/python/plotly/plotly/validators/scatterternary/_hovertemplate.py index 9639265c7fa..5551c6b5d50 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_hovertemplate.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="hovertemplate", parent_name="scatterternary", **kwargs - ): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='scatterternary', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/scatterternary/_hovertemplatesrc.py index d520e7a8a9c..ec4881d5eb1 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_hovertemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertemplatesrc", parent_name="scatterternary", **kwargs - ): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='scatterternary', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_hovertext.py b/packages/python/plotly/plotly/validators/scatterternary/_hovertext.py index ebb48600391..2cf72972374 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_hovertext.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="scatterternary", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='scatterternary', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_hovertextsrc.py b/packages/python/plotly/plotly/validators/scatterternary/_hovertextsrc.py index 07e3a737eb9..9f793d7827d 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_hovertextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertextsrc", parent_name="scatterternary", **kwargs - ): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='scatterternary', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_ids.py b/packages/python/plotly/plotly/validators/scatterternary/_ids.py index f76d9012f78..13ca4471f7d 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_ids.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="scatterternary", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='scatterternary', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_idssrc.py b/packages/python/plotly/plotly/validators/scatterternary/_idssrc.py index e9731d2a47e..aeedd083bb9 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_idssrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="scatterternary", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='scatterternary', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_legend.py b/packages/python/plotly/plotly/validators/scatterternary/_legend.py index bcd44c345ca..a640e6a3574 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_legend.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="scatterternary", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='scatterternary', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_legendgroup.py b/packages/python/plotly/plotly/validators/scatterternary/_legendgroup.py index dd65c0aad86..ca29457171d 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_legendgroup.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="legendgroup", parent_name="scatterternary", **kwargs - ): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='scatterternary', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/scatterternary/_legendgrouptitle.py index 57248571d5d..9eb6978814b 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="scatterternary", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='scatterternary', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_legendrank.py b/packages/python/plotly/plotly/validators/scatterternary/_legendrank.py index 098becd2148..b70d7cd58da 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_legendrank.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_legendrank.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="legendrank", parent_name="scatterternary", **kwargs - ): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='scatterternary', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_legendwidth.py b/packages/python/plotly/plotly/validators/scatterternary/_legendwidth.py index ee2c0196169..f238c86531c 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_legendwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="legendwidth", parent_name="scatterternary", **kwargs - ): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='scatterternary', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_line.py b/packages/python/plotly/plotly/validators/scatterternary/_line.py index 89b69788e4e..f278dca1412 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_line.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_line.py @@ -1,45 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="scatterternary", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - backoff - Sets the line back off from the end point of - the nth line segment (in px). This option is - useful e.g. to avoid overlap with arrowhead - markers. With "auto" the lines would trim - before markers if `marker.angleref` is set to - "previous". - backoffsrc - Sets the source reference on Chart Studio Cloud - for `backoff`. - color - Sets the line color. - dash - 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"). - shape - Determines the line shape. With "spline" the - lines are drawn using spline interpolation. The - other available values correspond to step-wise - line shapes. - smoothing - Has an effect only if `shape` is set to - "spline" Sets the amount of smoothing. 0 - corresponds to no smoothing (equivalent to a - "linear" shape). - width - Sets the line width (in px). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='scatterternary', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_marker.py b/packages/python/plotly/plotly/validators/scatterternary/_marker.py index 9b8054bb246..cff801626fa 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_marker.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_marker.py @@ -1,166 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="scatterternary", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - angle - Sets the marker angle in respect to `angleref`. - angleref - Sets the reference for marker angle. With - "previous", angle 0 points along the line from - the previous point to this one. With "up", - angle 0 points toward the top of the screen. - anglesrc - Sets the source reference on Chart Studio Cloud - for `angle`. - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.scatterternary.mar - ker.ColorBar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - gradient - :class:`plotly.graph_objects.scatterternary.mar - ker.Gradient` instance or dict with compatible - properties - line - :class:`plotly.graph_objects.scatterternary.mar - ker.Line` instance or dict with compatible - properties - maxdisplayed - Sets a maximum number of points to be drawn on - the graph. 0 corresponds to no limit. - opacity - Sets the marker opacity. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. - size - Sets the marker size (in px). - sizemin - Has an effect only if `marker.size` is set to a - numerical array. Sets the minimum size (in px) - of the rendered marker points. - sizemode - Has an effect only if `marker.size` is set to a - numerical array. Sets the rule for which the - data in `size` is converted to pixels. - sizeref - Has an effect only if `marker.size` is set to a - numerical array. Sets the scale factor used to - determine the rendered size of marker points. - Use with `sizemin` and `sizemode`. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - standoff - Moves the marker away from the data point in - the direction of `angle` (in px). This can be - useful for example if you have another marker - at this location and you want to point an - arrowhead marker at it. - standoffsrc - Sets the source reference on Chart Studio Cloud - for `standoff`. - symbol - Sets the marker symbol type. Adding 100 is - equivalent to appending "-open" to a symbol - name. Adding 200 is equivalent to appending - "-dot" to a symbol name. Adding 300 is - equivalent to appending "-open-dot" or "dot- - open" to a symbol name. - symbolsrc - Sets the source reference on Chart Studio Cloud - for `symbol`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scatterternary', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_meta.py b/packages/python/plotly/plotly/validators/scatterternary/_meta.py index 69bfc725f40..8e24cc45bf6 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_meta.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="scatterternary", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='scatterternary', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_metasrc.py b/packages/python/plotly/plotly/validators/scatterternary/_metasrc.py index d13b6bcf441..fd87f0736ce 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_metasrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="scatterternary", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='scatterternary', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_mode.py b/packages/python/plotly/plotly/validators/scatterternary/_mode.py index 1aa4b5cfc79..5340f0ab9d0 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_mode.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_mode.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="mode", parent_name="scatterternary", **kwargs): - super(ModeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["lines", "markers", "text"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ModeValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='mode', + parent_name='scatterternary', + **kwargs): + super(ModeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['lines', 'markers', 'text']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_name.py b/packages/python/plotly/plotly/validators/scatterternary/_name.py index eb186ec00a3..cfcda24951e 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_name.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="scatterternary", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='scatterternary', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_opacity.py b/packages/python/plotly/plotly/validators/scatterternary/_opacity.py index 642e75917ca..b28f8a0f6ce 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_opacity.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="scatterternary", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scatterternary', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_selected.py b/packages/python/plotly/plotly/validators/scatterternary/_selected.py index 4135f7c10da..eed777d3eed 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_selected.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_selected.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="selected", parent_name="scatterternary", **kwargs): - super(SelectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Selected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.scatterternary.sel - ected.Marker` instance or dict with compatible - properties - textfont - :class:`plotly.graph_objects.scatterternary.sel - ected.Textfont` instance or dict with - compatible properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='selected', + parent_name='scatterternary', + **kwargs): + super(SelectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_selectedpoints.py b/packages/python/plotly/plotly/validators/scatterternary/_selectedpoints.py index 9d469229689..0574249add8 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_selectedpoints.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_selectedpoints.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="selectedpoints", parent_name="scatterternary", **kwargs - ): - super(SelectedpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SelectedpointsValidator(_bv.AnyValidator): + def __init__(self, plotly_name='selectedpoints', + parent_name='scatterternary', + **kwargs): + super(SelectedpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_showlegend.py b/packages/python/plotly/plotly/validators/scatterternary/_showlegend.py index 6f279a66b05..b4034d336c6 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_showlegend.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_showlegend.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showlegend", parent_name="scatterternary", **kwargs - ): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='scatterternary', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_stream.py b/packages/python/plotly/plotly/validators/scatterternary/_stream.py index 8a3d755d8d0..39ebd9eb1c6 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_stream.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="scatterternary", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='scatterternary', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_subplot.py b/packages/python/plotly/plotly/validators/scatterternary/_subplot.py index 295d547955d..9e3f188de50 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_subplot.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_subplot.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SubplotValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="subplot", parent_name="scatterternary", **kwargs): - super(SubplotValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "ternary"), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SubplotValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='subplot', + parent_name='scatterternary', + **kwargs): + super(SubplotValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'ternary'), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_sum.py b/packages/python/plotly/plotly/validators/scatterternary/_sum.py index 4440d0fd946..c594356d1ed 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_sum.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_sum.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SumValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="sum", parent_name="scatterternary", **kwargs): - super(SumValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SumValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sum', + parent_name='scatterternary', + **kwargs): + super(SumValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_text.py b/packages/python/plotly/plotly/validators/scatterternary/_text.py index b200aa0f787..23b721537f4 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_text.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="scatterternary", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scatterternary', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_textfont.py b/packages/python/plotly/plotly/validators/scatterternary/_textfont.py index 47b1e2d5295..4d36c0e35fe 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_textfont.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_textfont.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="textfont", parent_name="scatterternary", **kwargs): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='scatterternary', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_textposition.py b/packages/python/plotly/plotly/validators/scatterternary/_textposition.py index 16248fe050b..a16a197d7db 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_textposition.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_textposition.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textposition", parent_name="scatterternary", **kwargs - ): - super(TextpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "top left", - "top center", - "top right", - "middle left", - "middle center", - "middle right", - "bottom left", - "bottom center", - "bottom right", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textposition', + parent_name='scatterternary', + **kwargs): + super(TextpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['top left', 'top center', 'top right', 'middle left', 'middle center', 'middle right', 'bottom left', 'bottom center', 'bottom right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_textpositionsrc.py b/packages/python/plotly/plotly/validators/scatterternary/_textpositionsrc.py index 3a7d1740129..8a5ba70f5eb 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_textpositionsrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_textpositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textpositionsrc", parent_name="scatterternary", **kwargs - ): - super(TextpositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextpositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textpositionsrc', + parent_name='scatterternary', + **kwargs): + super(TextpositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_textsrc.py b/packages/python/plotly/plotly/validators/scatterternary/_textsrc.py index 99ec7ea4fae..281783f5d2f 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_textsrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="scatterternary", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='scatterternary', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_texttemplate.py b/packages/python/plotly/plotly/validators/scatterternary/_texttemplate.py index c7b88d3cc3d..8f9886f288e 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_texttemplate.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_texttemplate.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="texttemplate", parent_name="scatterternary", **kwargs - ): - super(TexttemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='texttemplate', + parent_name='scatterternary', + **kwargs): + super(TexttemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_texttemplatesrc.py b/packages/python/plotly/plotly/validators/scatterternary/_texttemplatesrc.py index a43ec40b7d6..ce4adab9eb6 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_texttemplatesrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_texttemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="texttemplatesrc", parent_name="scatterternary", **kwargs - ): - super(TexttemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='texttemplatesrc', + parent_name='scatterternary', + **kwargs): + super(TexttemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_uid.py b/packages/python/plotly/plotly/validators/scatterternary/_uid.py index 16601f34a27..ddfa4dea1fb 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_uid.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="scatterternary", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='scatterternary', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_uirevision.py b/packages/python/plotly/plotly/validators/scatterternary/_uirevision.py index 4e3e938b827..07a05a4fb38 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_uirevision.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_uirevision.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="uirevision", parent_name="scatterternary", **kwargs - ): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='scatterternary', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_unselected.py b/packages/python/plotly/plotly/validators/scatterternary/_unselected.py index 62f94795f28..acdf782a0e3 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_unselected.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_unselected.py @@ -1,26 +1,15 @@ -import _plotly_utils.basevalidators -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="unselected", parent_name="scatterternary", **kwargs - ): - super(UnselectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Unselected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.scatterternary.uns - elected.Marker` instance or dict with - compatible properties - textfont - :class:`plotly.graph_objects.scatterternary.uns - elected.Textfont` instance or dict with - compatible properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UnselectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='unselected', + parent_name='scatterternary', + **kwargs): + super(UnselectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/_visible.py b/packages/python/plotly/plotly/validators/scatterternary/_visible.py index e85ebda34f6..07cba58c9ad 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/_visible.py +++ b/packages/python/plotly/plotly/validators/scatterternary/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="scatterternary", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='scatterternary', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_align.py index 47c6698b66c..37dcc205477 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_align.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="align", parent_name="scatterternary.hoverlabel", **kwargs - ): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='scatterternary.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_alignsrc.py index cda87a56db8..b96043896df 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="scatterternary.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='scatterternary.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_bgcolor.py index 73d01371775..83a089dfb54 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="scatterternary.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='scatterternary.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_bgcolorsrc.py index c42c0241a62..db762dc2022 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_bgcolorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="bgcolorsrc", - parent_name="scatterternary.hoverlabel", - **kwargs, - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='scatterternary.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_bordercolor.py index 24d8499ddf2..095df3e2e97 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_bordercolor.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bordercolor", - parent_name="scatterternary.hoverlabel", - **kwargs, - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='scatterternary.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_bordercolorsrc.py index 90944c386f2..b8e4aa6386e 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="bordercolorsrc", - parent_name="scatterternary.hoverlabel", - **kwargs, - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='scatterternary.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_font.py index 770e212efe1..462a5c120bb 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_font.py @@ -1,88 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="scatterternary.hoverlabel", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scatterternary.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_namelength.py index aa8051ff471..bd4f7384480 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_namelength.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="namelength", - parent_name="scatterternary.hoverlabel", - **kwargs, - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='scatterternary.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_namelengthsrc.py index 05c3cd07cb5..00b8ec2dcd4 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/_namelengthsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="namelengthsrc", - parent_name="scatterternary.hoverlabel", - **kwargs, - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='scatterternary.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_color.py index d1f685030c3..2ca05c6fe36 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_color.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatterternary.hoverlabel.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterternary.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_colorsrc.py index 5566b9348ff..8b89dd3631b 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_colorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="colorsrc", - parent_name="scatterternary.hoverlabel.font", - **kwargs, - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scatterternary.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_family.py index 7c25acf03a9..8481ac06ddc 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_family.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scatterternary.hoverlabel.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scatterternary.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_familysrc.py index 5ca85d9e44c..52763d3f06d 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_familysrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="familysrc", - parent_name="scatterternary.hoverlabel.font", - **kwargs, - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='scatterternary.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_lineposition.py index 6c96076c99d..409e304ec0e 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scatterternary.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scatterternary.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_linepositionsrc.py index 70fe67db640..e7cdf8b7608 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="scatterternary.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='scatterternary.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_shadow.py index bc731a7f1b4..9935de5448b 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_shadow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scatterternary.hoverlabel.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scatterternary.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_shadowsrc.py index 11da0813804..7f7962afcba 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="shadowsrc", - parent_name="scatterternary.hoverlabel.font", - **kwargs, - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='scatterternary.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_size.py index 3dde4e07ddf..0421e7c7c71 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scatterternary.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatterternary.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_sizesrc.py index 1d0dbb0fe39..496787ae4c9 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_sizesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="sizesrc", - parent_name="scatterternary.hoverlabel.font", - **kwargs, - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scatterternary.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_style.py index 95c40664a84..569ad8032d4 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_style.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scatterternary.hoverlabel.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scatterternary.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_stylesrc.py index a2dd240b315..4dc9dd52d8e 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_stylesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="stylesrc", - parent_name="scatterternary.hoverlabel.font", - **kwargs, - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='scatterternary.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_textcase.py index 2fe944b7075..f55daa5e48c 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_textcase.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scatterternary.hoverlabel.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scatterternary.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_textcasesrc.py index 0c60a0efec5..7146b595b59 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="scatterternary.hoverlabel.font", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='scatterternary.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_variant.py index cae99189143..4a6c526524d 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_variant.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scatterternary.hoverlabel.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scatterternary.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_variantsrc.py index 0f31e19087c..afa364cc109 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_variantsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="variantsrc", - parent_name="scatterternary.hoverlabel.font", - **kwargs, - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='scatterternary.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_weight.py index d2c319ecf16..3f4917ab589 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_weight.py @@ -1,20 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scatterternary.hoverlabel.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scatterternary.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_weightsrc.py index 1852068705d..117d66a9d97 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/_weightsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="weightsrc", - parent_name="scatterternary.hoverlabel.font", - **kwargs, - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='scatterternary.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/_font.py index ca7d2c203b5..fb73f07fd56 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/_font.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="font", - parent_name="scatterternary.legendgrouptitle", - **kwargs, - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scatterternary.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/_text.py index 9899db85ba2..5dc843db471 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/_text.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="text", - parent_name="scatterternary.legendgrouptitle", - **kwargs, - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scatterternary.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_color.py index 0b0dc5f82da..d2e33737990 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatterternary.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterternary.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_family.py index 944fc535612..1471cbe80b5 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scatterternary.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scatterternary.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_lineposition.py index 8037a2cfc96..b31d1cb6de3 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scatterternary.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scatterternary.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_shadow.py index 82e607cc1a6..d1d281bb17d 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scatterternary.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scatterternary.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_size.py index 9d224029fd9..1a11ffcdbc0 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scatterternary.legendgrouptitle.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatterternary.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_style.py index e08f8e552e9..3fb46480ca8 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scatterternary.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scatterternary.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_textcase.py index 47e37b4b6d8..130dbd4efc2 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scatterternary.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scatterternary.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_variant.py index 5b4004dcd58..f4288630e99 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scatterternary.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scatterternary.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_weight.py index e3dbdcaef32..affa5917828 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scatterternary/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scatterternary.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scatterternary.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/line/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/line/__init__.py index 7045562597a..e5a8bd1f88a 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._smoothing import SmoothingValidator @@ -11,17 +10,10 @@ from ._backoff import BackoffValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._smoothing.SmoothingValidator", - "._shape.ShapeValidator", - "._dash.DashValidator", - "._color.ColorValidator", - "._backoffsrc.BackoffsrcValidator", - "._backoff.BackoffValidator", - ], + ['._width.WidthValidator', '._smoothing.SmoothingValidator', '._shape.ShapeValidator', '._dash.DashValidator', '._color.ColorValidator', '._backoffsrc.BackoffsrcValidator', '._backoff.BackoffValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterternary/line/_backoff.py b/packages/python/plotly/plotly/validators/scatterternary/line/_backoff.py index d5b43ba156e..07902130e66 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/line/_backoff.py +++ b/packages/python/plotly/plotly/validators/scatterternary/line/_backoff.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class BackoffValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="backoff", parent_name="scatterternary.line", **kwargs - ): - super(BackoffValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BackoffValidator(_bv.NumberValidator): + def __init__(self, plotly_name='backoff', + parent_name='scatterternary.line', + **kwargs): + super(BackoffValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/line/_backoffsrc.py b/packages/python/plotly/plotly/validators/scatterternary/line/_backoffsrc.py index 6ddc4cd88aa..9b16eee60e5 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/line/_backoffsrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/line/_backoffsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BackoffsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="backoffsrc", parent_name="scatterternary.line", **kwargs - ): - super(BackoffsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BackoffsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='backoffsrc', + parent_name='scatterternary.line', + **kwargs): + super(BackoffsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/line/_color.py b/packages/python/plotly/plotly/validators/scatterternary/line/_color.py index fe24f5e092c..028897fa580 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/line/_color.py +++ b/packages/python/plotly/plotly/validators/scatterternary/line/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scatterternary.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterternary.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/line/_dash.py b/packages/python/plotly/plotly/validators/scatterternary/line/_dash.py index 26e9f6a5fc1..7940130064d 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/line/_dash.py +++ b/packages/python/plotly/plotly/validators/scatterternary/line/_dash.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__(self, plotly_name="dash", parent_name="scatterternary.line", **kwargs): - super(DashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DashValidator(_bv.DashValidator): + def __init__(self, plotly_name='dash', + parent_name='scatterternary.line', + **kwargs): + super(DashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/line/_shape.py b/packages/python/plotly/plotly/validators/scatterternary/line/_shape.py index 6597c45345a..812331fda60 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/line/_shape.py +++ b/packages/python/plotly/plotly/validators/scatterternary/line/_shape.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="shape", parent_name="scatterternary.line", **kwargs - ): - super(ShapeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["linear", "spline"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShapeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='shape', + parent_name='scatterternary.line', + **kwargs): + super(ShapeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['linear', 'spline']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/line/_smoothing.py b/packages/python/plotly/plotly/validators/scatterternary/line/_smoothing.py index 63607768426..b414387f550 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/line/_smoothing.py +++ b/packages/python/plotly/plotly/validators/scatterternary/line/_smoothing.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SmoothingValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="smoothing", parent_name="scatterternary.line", **kwargs - ): - super(SmoothingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 1.3), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SmoothingValidator(_bv.NumberValidator): + def __init__(self, plotly_name='smoothing', + parent_name='scatterternary.line', + **kwargs): + super(SmoothingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 1.3), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/line/_width.py b/packages/python/plotly/plotly/validators/scatterternary/line/_width.py index a76cb305098..3276a263c5f 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/line/_width.py +++ b/packages/python/plotly/plotly/validators/scatterternary/line/_width.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="scatterternary.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='scatterternary.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/marker/__init__.py index 8434e73e3f5..a8815dace11 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._symbolsrc import SymbolsrcValidator from ._symbol import SymbolValidator @@ -33,39 +32,10 @@ from ._angle import AngleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._symbolsrc.SymbolsrcValidator", - "._symbol.SymbolValidator", - "._standoffsrc.StandoffsrcValidator", - "._standoff.StandoffValidator", - "._sizesrc.SizesrcValidator", - "._sizeref.SizerefValidator", - "._sizemode.SizemodeValidator", - "._sizemin.SizeminValidator", - "._size.SizeValidator", - "._showscale.ShowscaleValidator", - "._reversescale.ReversescaleValidator", - "._opacitysrc.OpacitysrcValidator", - "._opacity.OpacityValidator", - "._maxdisplayed.MaxdisplayedValidator", - "._line.LineValidator", - "._gradient.GradientValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - "._anglesrc.AnglesrcValidator", - "._angleref.AnglerefValidator", - "._angle.AngleValidator", - ], + ['._symbolsrc.SymbolsrcValidator', '._symbol.SymbolValidator', '._standoffsrc.StandoffsrcValidator', '._standoff.StandoffValidator', '._sizesrc.SizesrcValidator', '._sizeref.SizerefValidator', '._sizemode.SizemodeValidator', '._sizemin.SizeminValidator', '._size.SizeValidator', '._showscale.ShowscaleValidator', '._reversescale.ReversescaleValidator', '._opacitysrc.OpacitysrcValidator', '._opacity.OpacityValidator', '._maxdisplayed.MaxdisplayedValidator', '._line.LineValidator', '._gradient.GradientValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator', '._anglesrc.AnglesrcValidator', '._angleref.AnglerefValidator', '._angle.AngleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/_angle.py b/packages/python/plotly/plotly/validators/scatterternary/marker/_angle.py index 6f2a84f2b7c..8c0d60b2e27 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/_angle.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/_angle.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AngleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="angle", parent_name="scatterternary.marker", **kwargs - ): - super(AngleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AngleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='angle', + parent_name='scatterternary.marker', + **kwargs): + super(AngleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/_angleref.py b/packages/python/plotly/plotly/validators/scatterternary/marker/_angleref.py index bb44902eccc..ee1bf51c95e 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/_angleref.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/_angleref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AnglerefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="angleref", parent_name="scatterternary.marker", **kwargs - ): - super(AnglerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["previous", "up"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AnglerefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='angleref', + parent_name='scatterternary.marker', + **kwargs): + super(AnglerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['previous', 'up']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/_anglesrc.py b/packages/python/plotly/plotly/validators/scatterternary/marker/_anglesrc.py index c4d56ab5afc..fb6fc6466f7 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/_anglesrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/_anglesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AnglesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="anglesrc", parent_name="scatterternary.marker", **kwargs - ): - super(AnglesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AnglesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='anglesrc', + parent_name='scatterternary.marker', + **kwargs): + super(AnglesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/_autocolorscale.py b/packages/python/plotly/plotly/validators/scatterternary/marker/_autocolorscale.py index 7b5e4952791..320b9ec1c8f 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/_autocolorscale.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="autocolorscale", - parent_name="scatterternary.marker", - **kwargs, - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='scatterternary.marker', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/_cauto.py b/packages/python/plotly/plotly/validators/scatterternary/marker/_cauto.py index a66d68552f7..a988802e567 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/_cauto.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/_cauto.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="cauto", parent_name="scatterternary.marker", **kwargs - ): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='scatterternary.marker', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/_cmax.py b/packages/python/plotly/plotly/validators/scatterternary/marker/_cmax.py index b48fb89947c..f69dc20bf63 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/_cmax.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/_cmax.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmax", parent_name="scatterternary.marker", **kwargs - ): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='scatterternary.marker', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/_cmid.py b/packages/python/plotly/plotly/validators/scatterternary/marker/_cmid.py index eb143f63a8a..d9895d0e50c 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/_cmid.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/_cmid.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmid", parent_name="scatterternary.marker", **kwargs - ): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='scatterternary.marker', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/_cmin.py b/packages/python/plotly/plotly/validators/scatterternary/marker/_cmin.py index 779be26fd38..d9fc88a5051 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/_cmin.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/_cmin.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmin", parent_name="scatterternary.marker", **kwargs - ): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='scatterternary.marker', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/_color.py b/packages/python/plotly/plotly/validators/scatterternary/marker/_color.py index 7a2eb2063d4..f2e21486459 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/_color.py @@ -1,17 +1,15 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scatterternary.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - colorscale_path=kwargs.pop( - "colorscale_path", "scatterternary.marker.colorscale" - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterternary.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + colorscale_path=kwargs.pop('colorscale_path', 'scatterternary.marker.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/_coloraxis.py b/packages/python/plotly/plotly/validators/scatterternary/marker/_coloraxis.py index 4256b631094..7cb9f55b9fe 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/_coloraxis.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name="coloraxis", parent_name="scatterternary.marker", **kwargs - ): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='scatterternary.marker', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/_colorbar.py b/packages/python/plotly/plotly/validators/scatterternary/marker/_colorbar.py index ca8259e2ac5..fd46edfce7f 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/_colorbar.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/_colorbar.py @@ -1,282 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="colorbar", parent_name="scatterternary.marker", **kwargs - ): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.scatter - ternary.marker.colorbar.Tickformatstop` - instances or dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.scatterternary.marker.colorbar.tickformatstop - defaults), sets the default property values to - use for elements of - scatterternary.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.scatterternary.mar - ker.colorbar.Title` instance or dict with - compatible properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='scatterternary.marker', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/_colorscale.py b/packages/python/plotly/plotly/validators/scatterternary/marker/_colorscale.py index 41df3b9842d..6f9c71ceb8e 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/_colorscale.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="scatterternary.marker", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='scatterternary.marker', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/_colorsrc.py b/packages/python/plotly/plotly/validators/scatterternary/marker/_colorsrc.py index 0b98a3554de..6905e9bd6cd 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scatterternary.marker", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scatterternary.marker', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/_gradient.py b/packages/python/plotly/plotly/validators/scatterternary/marker/_gradient.py index 9cdfc652502..511499b845c 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/_gradient.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/_gradient.py @@ -1,31 +1,15 @@ -import _plotly_utils.basevalidators -class GradientValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="gradient", parent_name="scatterternary.marker", **kwargs - ): - super(GradientValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Gradient"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the final color of the gradient fill: the - center color for radial, the right for - horizontal, or the bottom for vertical. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - type - Sets the type of gradient used to fill the - markers - typesrc - Sets the source reference on Chart Studio Cloud - for `type`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class GradientValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='gradient', + parent_name='scatterternary.marker', + **kwargs): + super(GradientValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Gradient'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/_line.py b/packages/python/plotly/plotly/validators/scatterternary/marker/_line.py index dbe66dd21a3..c2c3b0130b4 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/_line.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/_line.py @@ -1,107 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="line", parent_name="scatterternary.marker", **kwargs - ): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.line.colorscale`. Has an - effect only if in `marker.line.color` is set to - a numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.line.color`) or the bounds set in - `marker.line.cmin` and `marker.line.cmax` Has - an effect only if in `marker.line.color` is set - to a numerical array. Defaults to `false` when - `marker.line.cmin` and `marker.line.cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.line.cmin` and/or - `marker.line.cmax` to be equidistant to this - point. Has an effect only if in - `marker.line.color` is set to a numerical - array. Value should have the same units as in - `marker.line.color`. Has no effect when - `marker.line.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmax` must be set as well. - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorscale - Sets the colorscale. Has an effect only if in - `marker.line.color` is set to a numerical - array. The colorscale must be an array - containing arrays mapping a normalized value to - an rgb, rgba, hex, hsl, hsv, or named color - string. At minimum, a mapping for the lowest - (0) and highest (1) values are required. For - example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use - `marker.line.cmin` and `marker.line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.line.color` is set to - a numerical array. If true, `marker.line.cmin` - will correspond to the last color in the array - and `marker.line.cmax` will correspond to the - first color. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='scatterternary.marker', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/_maxdisplayed.py b/packages/python/plotly/plotly/validators/scatterternary/marker/_maxdisplayed.py index 9ea5d497f14..1142bfc7a75 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/_maxdisplayed.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/_maxdisplayed.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MaxdisplayedValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxdisplayed", parent_name="scatterternary.marker", **kwargs - ): - super(MaxdisplayedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxdisplayedValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxdisplayed', + parent_name='scatterternary.marker', + **kwargs): + super(MaxdisplayedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/_opacity.py b/packages/python/plotly/plotly/validators/scatterternary/marker/_opacity.py index dca4a9a6163..47cc0e49fff 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/_opacity.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="scatterternary.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scatterternary.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/_opacitysrc.py b/packages/python/plotly/plotly/validators/scatterternary/marker/_opacitysrc.py index 6d5545776b1..db0bc108558 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/_opacitysrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/_opacitysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="opacitysrc", parent_name="scatterternary.marker", **kwargs - ): - super(OpacitysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacitysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='opacitysrc', + parent_name='scatterternary.marker', + **kwargs): + super(OpacitysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/_reversescale.py b/packages/python/plotly/plotly/validators/scatterternary/marker/_reversescale.py index 41a94e2b11e..7309e7181a2 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/_reversescale.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="scatterternary.marker", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='scatterternary.marker', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/_showscale.py b/packages/python/plotly/plotly/validators/scatterternary/marker/_showscale.py index 746368c4593..67ef1050e06 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/_showscale.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/_showscale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showscale", parent_name="scatterternary.marker", **kwargs - ): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='scatterternary.marker', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/_size.py b/packages/python/plotly/plotly/validators/scatterternary/marker/_size.py index 1a49faffdd6..ff6f424a3ce 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scatterternary.marker", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatterternary.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/_sizemin.py b/packages/python/plotly/plotly/validators/scatterternary/marker/_sizemin.py index e81d4795e57..9aaeb28bbf2 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/_sizemin.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/_sizemin.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="sizemin", parent_name="scatterternary.marker", **kwargs - ): - super(SizeminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sizemin', + parent_name='scatterternary.marker', + **kwargs): + super(SizeminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/_sizemode.py b/packages/python/plotly/plotly/validators/scatterternary/marker/_sizemode.py index 1c7f82297ee..7d2f8ae030a 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/_sizemode.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/_sizemode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="sizemode", parent_name="scatterternary.marker", **kwargs - ): - super(SizemodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["diameter", "area"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizemodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='sizemode', + parent_name='scatterternary.marker', + **kwargs): + super(SizemodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['diameter', 'area']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/_sizeref.py b/packages/python/plotly/plotly/validators/scatterternary/marker/_sizeref.py index a6247e7157d..6b8ebb5d95c 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/_sizeref.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/_sizeref.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="sizeref", parent_name="scatterternary.marker", **kwargs - ): - super(SizerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizerefValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sizeref', + parent_name='scatterternary.marker', + **kwargs): + super(SizerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/_sizesrc.py b/packages/python/plotly/plotly/validators/scatterternary/marker/_sizesrc.py index f2b4591c92e..ebb1506e49c 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="scatterternary.marker", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scatterternary.marker', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/_standoff.py b/packages/python/plotly/plotly/validators/scatterternary/marker/_standoff.py index 3c8f448dcf9..4bd0246f295 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/_standoff.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/_standoff.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StandoffValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="standoff", parent_name="scatterternary.marker", **kwargs - ): - super(StandoffValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StandoffValidator(_bv.NumberValidator): + def __init__(self, plotly_name='standoff', + parent_name='scatterternary.marker', + **kwargs): + super(StandoffValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/_standoffsrc.py b/packages/python/plotly/plotly/validators/scatterternary/marker/_standoffsrc.py index 9bb231531e2..1dd78b813d5 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/_standoffsrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/_standoffsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StandoffsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="standoffsrc", parent_name="scatterternary.marker", **kwargs - ): - super(StandoffsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StandoffsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='standoffsrc', + parent_name='scatterternary.marker', + **kwargs): + super(StandoffsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/_symbol.py b/packages/python/plotly/plotly/validators/scatterternary/marker/_symbol.py index 2760df6fc3e..2eedb9537ba 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/_symbol.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/_symbol.py @@ -1,505 +1,15 @@ -import _plotly_utils.basevalidators -class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="symbol", parent_name="scatterternary.marker", **kwargs - ): - super(SymbolValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - 0, - "0", - "circle", - 100, - "100", - "circle-open", - 200, - "200", - "circle-dot", - 300, - "300", - "circle-open-dot", - 1, - "1", - "square", - 101, - "101", - "square-open", - 201, - "201", - "square-dot", - 301, - "301", - "square-open-dot", - 2, - "2", - "diamond", - 102, - "102", - "diamond-open", - 202, - "202", - "diamond-dot", - 302, - "302", - "diamond-open-dot", - 3, - "3", - "cross", - 103, - "103", - "cross-open", - 203, - "203", - "cross-dot", - 303, - "303", - "cross-open-dot", - 4, - "4", - "x", - 104, - "104", - "x-open", - 204, - "204", - "x-dot", - 304, - "304", - "x-open-dot", - 5, - "5", - "triangle-up", - 105, - "105", - "triangle-up-open", - 205, - "205", - "triangle-up-dot", - 305, - "305", - "triangle-up-open-dot", - 6, - "6", - "triangle-down", - 106, - "106", - "triangle-down-open", - 206, - "206", - "triangle-down-dot", - 306, - "306", - "triangle-down-open-dot", - 7, - "7", - "triangle-left", - 107, - "107", - "triangle-left-open", - 207, - "207", - "triangle-left-dot", - 307, - "307", - "triangle-left-open-dot", - 8, - "8", - "triangle-right", - 108, - "108", - "triangle-right-open", - 208, - "208", - "triangle-right-dot", - 308, - "308", - "triangle-right-open-dot", - 9, - "9", - "triangle-ne", - 109, - "109", - "triangle-ne-open", - 209, - "209", - "triangle-ne-dot", - 309, - "309", - "triangle-ne-open-dot", - 10, - "10", - "triangle-se", - 110, - "110", - "triangle-se-open", - 210, - "210", - "triangle-se-dot", - 310, - "310", - "triangle-se-open-dot", - 11, - "11", - "triangle-sw", - 111, - "111", - "triangle-sw-open", - 211, - "211", - "triangle-sw-dot", - 311, - "311", - "triangle-sw-open-dot", - 12, - "12", - "triangle-nw", - 112, - "112", - "triangle-nw-open", - 212, - "212", - "triangle-nw-dot", - 312, - "312", - "triangle-nw-open-dot", - 13, - "13", - "pentagon", - 113, - "113", - "pentagon-open", - 213, - "213", - "pentagon-dot", - 313, - "313", - "pentagon-open-dot", - 14, - "14", - "hexagon", - 114, - "114", - "hexagon-open", - 214, - "214", - "hexagon-dot", - 314, - "314", - "hexagon-open-dot", - 15, - "15", - "hexagon2", - 115, - "115", - "hexagon2-open", - 215, - "215", - "hexagon2-dot", - 315, - "315", - "hexagon2-open-dot", - 16, - "16", - "octagon", - 116, - "116", - "octagon-open", - 216, - "216", - "octagon-dot", - 316, - "316", - "octagon-open-dot", - 17, - "17", - "star", - 117, - "117", - "star-open", - 217, - "217", - "star-dot", - 317, - "317", - "star-open-dot", - 18, - "18", - "hexagram", - 118, - "118", - "hexagram-open", - 218, - "218", - "hexagram-dot", - 318, - "318", - "hexagram-open-dot", - 19, - "19", - "star-triangle-up", - 119, - "119", - "star-triangle-up-open", - 219, - "219", - "star-triangle-up-dot", - 319, - "319", - "star-triangle-up-open-dot", - 20, - "20", - "star-triangle-down", - 120, - "120", - "star-triangle-down-open", - 220, - "220", - "star-triangle-down-dot", - 320, - "320", - "star-triangle-down-open-dot", - 21, - "21", - "star-square", - 121, - "121", - "star-square-open", - 221, - "221", - "star-square-dot", - 321, - "321", - "star-square-open-dot", - 22, - "22", - "star-diamond", - 122, - "122", - "star-diamond-open", - 222, - "222", - "star-diamond-dot", - 322, - "322", - "star-diamond-open-dot", - 23, - "23", - "diamond-tall", - 123, - "123", - "diamond-tall-open", - 223, - "223", - "diamond-tall-dot", - 323, - "323", - "diamond-tall-open-dot", - 24, - "24", - "diamond-wide", - 124, - "124", - "diamond-wide-open", - 224, - "224", - "diamond-wide-dot", - 324, - "324", - "diamond-wide-open-dot", - 25, - "25", - "hourglass", - 125, - "125", - "hourglass-open", - 26, - "26", - "bowtie", - 126, - "126", - "bowtie-open", - 27, - "27", - "circle-cross", - 127, - "127", - "circle-cross-open", - 28, - "28", - "circle-x", - 128, - "128", - "circle-x-open", - 29, - "29", - "square-cross", - 129, - "129", - "square-cross-open", - 30, - "30", - "square-x", - 130, - "130", - "square-x-open", - 31, - "31", - "diamond-cross", - 131, - "131", - "diamond-cross-open", - 32, - "32", - "diamond-x", - 132, - "132", - "diamond-x-open", - 33, - "33", - "cross-thin", - 133, - "133", - "cross-thin-open", - 34, - "34", - "x-thin", - 134, - "134", - "x-thin-open", - 35, - "35", - "asterisk", - 135, - "135", - "asterisk-open", - 36, - "36", - "hash", - 136, - "136", - "hash-open", - 236, - "236", - "hash-dot", - 336, - "336", - "hash-open-dot", - 37, - "37", - "y-up", - 137, - "137", - "y-up-open", - 38, - "38", - "y-down", - 138, - "138", - "y-down-open", - 39, - "39", - "y-left", - 139, - "139", - "y-left-open", - 40, - "40", - "y-right", - 140, - "140", - "y-right-open", - 41, - "41", - "line-ew", - 141, - "141", - "line-ew-open", - 42, - "42", - "line-ns", - 142, - "142", - "line-ns-open", - 43, - "43", - "line-ne", - 143, - "143", - "line-ne-open", - 44, - "44", - "line-nw", - 144, - "144", - "line-nw-open", - 45, - "45", - "arrow-up", - 145, - "145", - "arrow-up-open", - 46, - "46", - "arrow-down", - 146, - "146", - "arrow-down-open", - 47, - "47", - "arrow-left", - 147, - "147", - "arrow-left-open", - 48, - "48", - "arrow-right", - 148, - "148", - "arrow-right-open", - 49, - "49", - "arrow-bar-up", - 149, - "149", - "arrow-bar-up-open", - 50, - "50", - "arrow-bar-down", - 150, - "150", - "arrow-bar-down-open", - 51, - "51", - "arrow-bar-left", - 151, - "151", - "arrow-bar-left-open", - 52, - "52", - "arrow-bar-right", - 152, - "152", - "arrow-bar-right-open", - 53, - "53", - "arrow", - 153, - "153", - "arrow-open", - 54, - "54", - "arrow-wide", - 154, - "154", - "arrow-wide-open", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SymbolValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='symbol', + parent_name='scatterternary.marker', + **kwargs): + super(SymbolValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', [0, '0', 'circle', 100, '100', 'circle-open', 200, '200', 'circle-dot', 300, '300', 'circle-open-dot', 1, '1', 'square', 101, '101', 'square-open', 201, '201', 'square-dot', 301, '301', 'square-open-dot', 2, '2', 'diamond', 102, '102', 'diamond-open', 202, '202', 'diamond-dot', 302, '302', 'diamond-open-dot', 3, '3', 'cross', 103, '103', 'cross-open', 203, '203', 'cross-dot', 303, '303', 'cross-open-dot', 4, '4', 'x', 104, '104', 'x-open', 204, '204', 'x-dot', 304, '304', 'x-open-dot', 5, '5', 'triangle-up', 105, '105', 'triangle-up-open', 205, '205', 'triangle-up-dot', 305, '305', 'triangle-up-open-dot', 6, '6', 'triangle-down', 106, '106', 'triangle-down-open', 206, '206', 'triangle-down-dot', 306, '306', 'triangle-down-open-dot', 7, '7', 'triangle-left', 107, '107', 'triangle-left-open', 207, '207', 'triangle-left-dot', 307, '307', 'triangle-left-open-dot', 8, '8', 'triangle-right', 108, '108', 'triangle-right-open', 208, '208', 'triangle-right-dot', 308, '308', 'triangle-right-open-dot', 9, '9', 'triangle-ne', 109, '109', 'triangle-ne-open', 209, '209', 'triangle-ne-dot', 309, '309', 'triangle-ne-open-dot', 10, '10', 'triangle-se', 110, '110', 'triangle-se-open', 210, '210', 'triangle-se-dot', 310, '310', 'triangle-se-open-dot', 11, '11', 'triangle-sw', 111, '111', 'triangle-sw-open', 211, '211', 'triangle-sw-dot', 311, '311', 'triangle-sw-open-dot', 12, '12', 'triangle-nw', 112, '112', 'triangle-nw-open', 212, '212', 'triangle-nw-dot', 312, '312', 'triangle-nw-open-dot', 13, '13', 'pentagon', 113, '113', 'pentagon-open', 213, '213', 'pentagon-dot', 313, '313', 'pentagon-open-dot', 14, '14', 'hexagon', 114, '114', 'hexagon-open', 214, '214', 'hexagon-dot', 314, '314', 'hexagon-open-dot', 15, '15', 'hexagon2', 115, '115', 'hexagon2-open', 215, '215', 'hexagon2-dot', 315, '315', 'hexagon2-open-dot', 16, '16', 'octagon', 116, '116', 'octagon-open', 216, '216', 'octagon-dot', 316, '316', 'octagon-open-dot', 17, '17', 'star', 117, '117', 'star-open', 217, '217', 'star-dot', 317, '317', 'star-open-dot', 18, '18', 'hexagram', 118, '118', 'hexagram-open', 218, '218', 'hexagram-dot', 318, '318', 'hexagram-open-dot', 19, '19', 'star-triangle-up', 119, '119', 'star-triangle-up-open', 219, '219', 'star-triangle-up-dot', 319, '319', 'star-triangle-up-open-dot', 20, '20', 'star-triangle-down', 120, '120', 'star-triangle-down-open', 220, '220', 'star-triangle-down-dot', 320, '320', 'star-triangle-down-open-dot', 21, '21', 'star-square', 121, '121', 'star-square-open', 221, '221', 'star-square-dot', 321, '321', 'star-square-open-dot', 22, '22', 'star-diamond', 122, '122', 'star-diamond-open', 222, '222', 'star-diamond-dot', 322, '322', 'star-diamond-open-dot', 23, '23', 'diamond-tall', 123, '123', 'diamond-tall-open', 223, '223', 'diamond-tall-dot', 323, '323', 'diamond-tall-open-dot', 24, '24', 'diamond-wide', 124, '124', 'diamond-wide-open', 224, '224', 'diamond-wide-dot', 324, '324', 'diamond-wide-open-dot', 25, '25', 'hourglass', 125, '125', 'hourglass-open', 26, '26', 'bowtie', 126, '126', 'bowtie-open', 27, '27', 'circle-cross', 127, '127', 'circle-cross-open', 28, '28', 'circle-x', 128, '128', 'circle-x-open', 29, '29', 'square-cross', 129, '129', 'square-cross-open', 30, '30', 'square-x', 130, '130', 'square-x-open', 31, '31', 'diamond-cross', 131, '131', 'diamond-cross-open', 32, '32', 'diamond-x', 132, '132', 'diamond-x-open', 33, '33', 'cross-thin', 133, '133', 'cross-thin-open', 34, '34', 'x-thin', 134, '134', 'x-thin-open', 35, '35', 'asterisk', 135, '135', 'asterisk-open', 36, '36', 'hash', 136, '136', 'hash-open', 236, '236', 'hash-dot', 336, '336', 'hash-open-dot', 37, '37', 'y-up', 137, '137', 'y-up-open', 38, '38', 'y-down', 138, '138', 'y-down-open', 39, '39', 'y-left', 139, '139', 'y-left-open', 40, '40', 'y-right', 140, '140', 'y-right-open', 41, '41', 'line-ew', 141, '141', 'line-ew-open', 42, '42', 'line-ns', 142, '142', 'line-ns-open', 43, '43', 'line-ne', 143, '143', 'line-ne-open', 44, '44', 'line-nw', 144, '144', 'line-nw-open', 45, '45', 'arrow-up', 145, '145', 'arrow-up-open', 46, '46', 'arrow-down', 146, '146', 'arrow-down-open', 47, '47', 'arrow-left', 147, '147', 'arrow-left-open', 48, '48', 'arrow-right', 148, '148', 'arrow-right-open', 49, '49', 'arrow-bar-up', 149, '149', 'arrow-bar-up-open', 50, '50', 'arrow-bar-down', 150, '150', 'arrow-bar-down-open', 51, '51', 'arrow-bar-left', 151, '151', 'arrow-bar-left-open', 52, '52', 'arrow-bar-right', 152, '152', 'arrow-bar-right-open', 53, '53', 'arrow', 153, '153', 'arrow-open', 54, '54', 'arrow-wide', 154, '154', 'arrow-wide-open']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/_symbolsrc.py b/packages/python/plotly/plotly/validators/scatterternary/marker/_symbolsrc.py index 5961d93f06a..696250b5e53 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/_symbolsrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/_symbolsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="symbolsrc", parent_name="scatterternary.marker", **kwargs - ): - super(SymbolsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SymbolsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='symbolsrc', + parent_name='scatterternary.marker', + **kwargs): + super(SymbolsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_bgcolor.py index a5f1bcde739..2956e64bf4b 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_bgcolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bgcolor", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_bordercolor.py index 68bde61b93b..03ab7530e24 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_bordercolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bordercolor", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_borderwidth.py index a763e29ae5e..6f97da02ced 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_borderwidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="borderwidth", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_dtick.py index dafac71dd04..5d7ffdfccd6 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_dtick.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="dtick", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_exponentformat.py index 8d2587bf4ea..87ed823322f 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_exponentformat.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="exponentformat", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_labelalias.py index 9f68b13f79a..2c300037d68 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_labelalias.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="labelalias", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_len.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_len.py index 4154b57dfad..fcfbd955015 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_len.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="len", parent_name="scatterternary.marker.colorbar", **kwargs - ): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_lenmode.py index e533009dfe2..e5fc9a94020 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_lenmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="lenmode", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_minexponent.py index fad0d9ba686..58bab1051bf 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_minexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="minexponent", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_nticks.py index 728e6cf5fc8..e0ece6123a2 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_nticks.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="nticks", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_orientation.py index 286b21193a9..c690e897501 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_orientation.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="orientation", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_outlinecolor.py index d9bc481ab82..4b89e4957fb 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_outlinecolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="outlinecolor", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_outlinewidth.py index b9bbeb43644..3989b0a7312 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_outlinewidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="outlinewidth", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_separatethousands.py index add26afaa0a..a0d0a416be8 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_showexponent.py index a5e14a45352..eed9cfaea60 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_showexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showexponent", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_showticklabels.py index 7a4c0c2d577..472ac38d7e6 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_showtickprefix.py index 81fdbafe74b..1a92eecb97e 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_showticksuffix.py index f7a0a8e9f00..451b9ed9043 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_thickness.py index f561a2d9f0c..a8d51e85346 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_thickness.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="thickness", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_thicknessmode.py index 47ebc27f78a..c6a989d7132 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_thicknessmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="thicknessmode", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tick0.py index 3a3fcbad343..100c1d85a9f 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tick0.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name="tick0", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickangle.py index 791e562c663..2148e04644d 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickangle.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name="tickangle", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickcolor.py index d29d47c7723..8aecd0f8c76 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickcolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="tickcolor", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickfont.py index 689519f931f..6fb68532e1f 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickfont.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickfont", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickformat.py index 9ea655ae504..0762f1355bf 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickformat.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickformat", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickformatstopdefaults.py index d4b11fcdaed..e21429750da 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickformatstops.py index 72c737165e8..725fabd0145 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticklabeloverflow.py index 6669e91a363..3e7d90aef0f 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticklabelposition.py index 4d39a438edd..154f03b1a19 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticklabelstep.py index b802d1e2b11..401654bedbb 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticklabelstep.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="ticklabelstep", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticklen.py index f8414316659..b50166bf997 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticklen.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="ticklen", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickmode.py index 8e75129b7b6..0c77e8dd367 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickmode.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="tickmode", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickprefix.py index ace5153659d..2ee36ef1e0d 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickprefix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="tickprefix", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticks.py index aa7022d2289..93622e25af6 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticks.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticks", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticksuffix.py index bd0fb9078b7..8435e9eeb9d 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticksuffix.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="ticksuffix", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticktext.py index e2660460efa..b86aaf277ff 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticktext.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name="ticktext", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticktextsrc.py index b4dc5965478..c7a77cda39e 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ticktextsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="ticktextsrc", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickvals.py index d031747d9a6..bffccdf5774 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickvals.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name="tickvals", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickvalssrc.py index f8ca43af118..020beae7f58 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickvalssrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="tickvalssrc", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickwidth.py index 7bd99e66ecc..b01cfb958a4 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_tickwidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="tickwidth", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_title.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_title.py index e544abbc319..a32a426963f 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_title.py @@ -1,30 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, - plotly_name="title", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_x.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_x.py index fdb41ac3157..04be13ac0cd 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_x.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="x", parent_name="scatterternary.marker.colorbar", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_xanchor.py index 9dd85a86c44..36797a4e154 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_xanchor.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="xanchor", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_xpad.py index f1e619c8ac9..021557eccae 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_xpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="xpad", parent_name="scatterternary.marker.colorbar", **kwargs - ): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_xref.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_xref.py index 54adb56244a..e10dc53393b 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xref", parent_name="scatterternary.marker.colorbar", **kwargs - ): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_y.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_y.py index c8316d54f43..5f4615f784f 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_y.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="y", parent_name="scatterternary.marker.colorbar", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_yanchor.py index b66ded08117..3cd60a6f8d2 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_yanchor.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="yanchor", - parent_name="scatterternary.marker.colorbar", - **kwargs, - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ypad.py index 43026c0e12f..3eb65d15436 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_ypad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ypad", parent_name="scatterternary.marker.colorbar", **kwargs - ): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_yref.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_yref.py index 924845e30e0..9126ffe7e33 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yref", parent_name="scatterternary.marker.colorbar", **kwargs - ): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='scatterternary.marker.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_color.py index ddf66061f16..57a7c880d4a 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatterternary.marker.colorbar.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterternary.marker.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_family.py index 02b7c443663..390e45338e5 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scatterternary.marker.colorbar.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scatterternary.marker.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_lineposition.py index b22d08713e1..e26a5e3862a 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scatterternary.marker.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scatterternary.marker.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_shadow.py index 69fb5036596..5e084d607b9 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scatterternary.marker.colorbar.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scatterternary.marker.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_size.py index 0346edfca62..390bf15a94a 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scatterternary.marker.colorbar.tickfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatterternary.marker.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_style.py index a1ec53a0b0e..0b189c65b3a 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scatterternary.marker.colorbar.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scatterternary.marker.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_textcase.py index 40529e80a64..5274d3dcafa 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scatterternary.marker.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scatterternary.marker.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_variant.py index ed4a0888149..15953211f93 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scatterternary.marker.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scatterternary.marker.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_weight.py index a4bd6dee3b8..4541a608a8d 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scatterternary.marker.colorbar.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scatterternary.marker.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_dtickrange.py index 7efc9671dec..41f1aee2775 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="scatterternary.marker.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - items=kwargs.pop( - "items", - [ - {"editType": "colorbars", "valType": "any"}, - {"editType": "colorbars", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='scatterternary.marker.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + items=kwargs.pop('items', [{'editType': 'colorbars', 'valType': 'any'}, {'editType': 'colorbars', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_enabled.py index 6a9232ca722..61fdbea9baf 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="scatterternary.marker.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='scatterternary.marker.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_name.py index 12ab2efb8b5..0e19fd84069 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="scatterternary.marker.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='scatterternary.marker.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_templateitemname.py index ca978ee694b..c2922ddc989 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="scatterternary.marker.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='scatterternary.marker.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_value.py index 1742dc58268..12bdb38aa0b 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="scatterternary.marker.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='scatterternary.marker.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/_font.py index f6095648526..696e7ba431d 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/_font.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="font", - parent_name="scatterternary.marker.colorbar.title", - **kwargs, - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='scatterternary.marker.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/_side.py index 3d6674215aa..881773bceeb 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/_side.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="side", - parent_name="scatterternary.marker.colorbar.title", - **kwargs, - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='scatterternary.marker.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/_text.py index a8deee2f042..d2e81134771 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/_text.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="text", - parent_name="scatterternary.marker.colorbar.title", - **kwargs, - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='scatterternary.marker.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_color.py index 23db67cc0f2..ab4be51062e 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatterternary.marker.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterternary.marker.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_family.py index 5f24924972c..8fcd02a33a4 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="scatterternary.marker.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scatterternary.marker.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_lineposition.py index a3544b10f48..479f88b4233 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scatterternary.marker.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scatterternary.marker.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_shadow.py index c06abe2c91c..581ca920993 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="scatterternary.marker.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scatterternary.marker.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_size.py index 1a8c84ff3d4..d4cb15c5dae 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scatterternary.marker.colorbar.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatterternary.marker.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_style.py index 4a9923b9977..9c5db2b355e 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="scatterternary.marker.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scatterternary.marker.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_textcase.py index a545b1cdd01..402e8a3d36e 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="scatterternary.marker.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scatterternary.marker.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_variant.py index 3d444fac79f..4c01ffd3a5c 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="scatterternary.marker.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scatterternary.marker.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_weight.py index 4cc8546703d..6e31ad22b31 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="scatterternary.marker.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scatterternary.marker.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/gradient/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/marker/gradient/__init__.py index 624a280ea46..f3927efb3e0 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/gradient/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/gradient/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._typesrc import TypesrcValidator from ._type import TypeValidator @@ -8,14 +7,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._typesrc.TypesrcValidator", - "._type.TypeValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._typesrc.TypesrcValidator', '._type.TypeValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/gradient/_color.py b/packages/python/plotly/plotly/validators/scatterternary/marker/gradient/_color.py index c6545dbf0e9..0f16fe32ac6 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/gradient/_color.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/gradient/_color.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatterternary.marker.gradient", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterternary.marker.gradient', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/gradient/_colorsrc.py b/packages/python/plotly/plotly/validators/scatterternary/marker/gradient/_colorsrc.py index 4d414b5318a..73e7295d789 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/gradient/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/gradient/_colorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="colorsrc", - parent_name="scatterternary.marker.gradient", - **kwargs, - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scatterternary.marker.gradient', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/gradient/_type.py b/packages/python/plotly/plotly/validators/scatterternary/marker/gradient/_type.py index c3ff6839117..a5643cb8283 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/gradient/_type.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/gradient/_type.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="type", parent_name="scatterternary.marker.gradient", **kwargs - ): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["radial", "horizontal", "vertical", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='scatterternary.marker.gradient', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['radial', 'horizontal', 'vertical', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/gradient/_typesrc.py b/packages/python/plotly/plotly/validators/scatterternary/marker/gradient/_typesrc.py index 0ff73909d2f..b837655ebb9 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/gradient/_typesrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/gradient/_typesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TypesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="typesrc", - parent_name="scatterternary.marker.gradient", - **kwargs, - ): - super(TypesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TypesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='typesrc', + parent_name='scatterternary.marker.gradient', + **kwargs): + super(TypesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/line/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/marker/line/__init__.py index facbe33f884..55d423b11da 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._widthsrc import WidthsrcValidator from ._width import WidthValidator @@ -16,22 +15,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._widthsrc.WidthsrcValidator", - "._width.WidthValidator", - "._reversescale.ReversescaleValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._widthsrc.WidthsrcValidator', '._width.WidthValidator', '._reversescale.ReversescaleValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/line/_autocolorscale.py b/packages/python/plotly/plotly/validators/scatterternary/marker/line/_autocolorscale.py index 3fdd491ba21..c55f92b72ee 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/line/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/line/_autocolorscale.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="autocolorscale", - parent_name="scatterternary.marker.line", - **kwargs, - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='scatterternary.marker.line', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/line/_cauto.py b/packages/python/plotly/plotly/validators/scatterternary/marker/line/_cauto.py index bc0cc209d3d..c9abd56ca5c 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/line/_cauto.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/line/_cauto.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="cauto", parent_name="scatterternary.marker.line", **kwargs - ): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='scatterternary.marker.line', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/line/_cmax.py b/packages/python/plotly/plotly/validators/scatterternary/marker/line/_cmax.py index af3ffedfedc..55e2b8c442e 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/line/_cmax.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/line/_cmax.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmax", parent_name="scatterternary.marker.line", **kwargs - ): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='scatterternary.marker.line', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/line/_cmid.py b/packages/python/plotly/plotly/validators/scatterternary/marker/line/_cmid.py index 5a7ff308b2a..9621f47922e 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/line/_cmid.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/line/_cmid.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmid", parent_name="scatterternary.marker.line", **kwargs - ): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='scatterternary.marker.line', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/line/_cmin.py b/packages/python/plotly/plotly/validators/scatterternary/marker/line/_cmin.py index 1dcd158cfc4..bad35b16b0f 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/line/_cmin.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/line/_cmin.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cmin", parent_name="scatterternary.marker.line", **kwargs - ): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='scatterternary.marker.line', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/line/_color.py b/packages/python/plotly/plotly/validators/scatterternary/marker/line/_color.py index b6d2040af5f..3aafb0f05d9 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/line/_color.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/line/_color.py @@ -1,17 +1,15 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scatterternary.marker.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - colorscale_path=kwargs.pop( - "colorscale_path", "scatterternary.marker.line.colorscale" - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterternary.marker.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + colorscale_path=kwargs.pop('colorscale_path', 'scatterternary.marker.line.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/line/_coloraxis.py b/packages/python/plotly/plotly/validators/scatterternary/marker/line/_coloraxis.py index daca94f888a..021540561d3 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/line/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/line/_coloraxis.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, - plotly_name="coloraxis", - parent_name="scatterternary.marker.line", - **kwargs, - ): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='scatterternary.marker.line', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/line/_colorscale.py b/packages/python/plotly/plotly/validators/scatterternary/marker/line/_colorscale.py index 3c68c9aa42e..a9dcb2b14b8 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/line/_colorscale.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/line/_colorscale.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, - plotly_name="colorscale", - parent_name="scatterternary.marker.line", - **kwargs, - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='scatterternary.marker.line', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/line/_colorsrc.py b/packages/python/plotly/plotly/validators/scatterternary/marker/line/_colorsrc.py index 751ee4036ff..d7174e9182b 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/line/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/line/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scatterternary.marker.line", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scatterternary.marker.line', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/line/_reversescale.py b/packages/python/plotly/plotly/validators/scatterternary/marker/line/_reversescale.py index bb8e425555a..4b654f74f14 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/line/_reversescale.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/line/_reversescale.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="reversescale", - parent_name="scatterternary.marker.line", - **kwargs, - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='scatterternary.marker.line', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/line/_width.py b/packages/python/plotly/plotly/validators/scatterternary/marker/line/_width.py index c8107b3c4ba..1f3deb3c7e3 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/line/_width.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/line/_width.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="scatterternary.marker.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='scatterternary.marker.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/line/_widthsrc.py b/packages/python/plotly/plotly/validators/scatterternary/marker/line/_widthsrc.py index b20747d128d..f20202ec660 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/line/_widthsrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/line/_widthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="widthsrc", parent_name="scatterternary.marker.line", **kwargs - ): - super(WidthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='widthsrc', + parent_name='scatterternary.marker.line', + **kwargs): + super(WidthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/selected/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/selected/__init__.py index 3b0aeed383f..c0a73fd7df3 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/selected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._textfont import TextfontValidator from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] + __name__, + [], + ['._textfont.TextfontValidator', '._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterternary/selected/_marker.py b/packages/python/plotly/plotly/validators/scatterternary/selected/_marker.py index 3aacec97adf..4627304ce66 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/selected/_marker.py +++ b/packages/python/plotly/plotly/validators/scatterternary/selected/_marker.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="scatterternary.selected", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. - size - Sets the marker size of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scatterternary.selected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/selected/_textfont.py b/packages/python/plotly/plotly/validators/scatterternary/selected/_textfont.py index de5d9f18ccb..6710a231c31 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/selected/_textfont.py +++ b/packages/python/plotly/plotly/validators/scatterternary/selected/_textfont.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="textfont", parent_name="scatterternary.selected", **kwargs - ): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the text font color of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='scatterternary.selected', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/selected/marker/__init__.py index 8c321a38bc5..b7768f024e8 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/selected/marker/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._size import SizeValidator from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._size.SizeValidator", - "._opacity.OpacityValidator", - "._color.ColorValidator", - ], + ['._size.SizeValidator', '._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterternary/selected/marker/_color.py b/packages/python/plotly/plotly/validators/scatterternary/selected/marker/_color.py index 8cab348619a..3c4e5df9dc9 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/selected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scatterternary/selected/marker/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatterternary.selected.marker", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterternary.selected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/selected/marker/_opacity.py b/packages/python/plotly/plotly/validators/scatterternary/selected/marker/_opacity.py index 894dba78490..081aded9617 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/selected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scatterternary/selected/marker/_opacity.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="opacity", - parent_name="scatterternary.selected.marker", - **kwargs, - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scatterternary.selected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/selected/marker/_size.py b/packages/python/plotly/plotly/validators/scatterternary/selected/marker/_size.py index 555f486eeb7..7682aa88547 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/selected/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scatterternary/selected/marker/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scatterternary.selected.marker", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatterternary.selected.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/selected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/selected/textfont/__init__.py index a9f087e5af1..86899e5cc51 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/selected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/selected/textfont/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._color.ColorValidator"] + __name__, + [], + ['._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterternary/selected/textfont/_color.py b/packages/python/plotly/plotly/validators/scatterternary/selected/textfont/_color.py index 19015549968..22ebb908915 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/selected/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/scatterternary/selected/textfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatterternary.selected.textfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterternary.selected.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/stream/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterternary/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/scatterternary/stream/_maxpoints.py index 8a849f94a16..7952191f54e 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/scatterternary/stream/_maxpoints.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxpoints", parent_name="scatterternary.stream", **kwargs - ): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='scatterternary.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/stream/_token.py b/packages/python/plotly/plotly/validators/scatterternary/stream/_token.py index 82f5aaf4a24..bfbeebb9e36 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/stream/_token.py +++ b/packages/python/plotly/plotly/validators/scatterternary/stream/_token.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="token", parent_name="scatterternary.stream", **kwargs - ): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='scatterternary.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/textfont/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/textfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/textfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterternary/textfont/_color.py b/packages/python/plotly/plotly/validators/scatterternary/textfont/_color.py index 90febec5491..e135e005ed8 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/scatterternary/textfont/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="scatterternary.textfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterternary.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/textfont/_colorsrc.py b/packages/python/plotly/plotly/validators/scatterternary/textfont/_colorsrc.py index 9d46b7ad0e3..cd191b59a91 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/textfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/textfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="scatterternary.textfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='scatterternary.textfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/textfont/_family.py b/packages/python/plotly/plotly/validators/scatterternary/textfont/_family.py index b182ea7d8e7..9b5fcf3d10e 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/textfont/_family.py +++ b/packages/python/plotly/plotly/validators/scatterternary/textfont/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="scatterternary.textfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='scatterternary.textfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/textfont/_familysrc.py b/packages/python/plotly/plotly/validators/scatterternary/textfont/_familysrc.py index 94f6e83fd6b..e2afbefdd1a 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/textfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/textfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="scatterternary.textfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='scatterternary.textfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/textfont/_lineposition.py b/packages/python/plotly/plotly/validators/scatterternary/textfont/_lineposition.py index 992be4ebc41..c0d4255380f 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/textfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/scatterternary/textfont/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="scatterternary.textfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='scatterternary.textfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/textfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/scatterternary/textfont/_linepositionsrc.py index a6041d57e02..d79a0979d6f 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/textfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/textfont/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="scatterternary.textfont", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='scatterternary.textfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/textfont/_shadow.py b/packages/python/plotly/plotly/validators/scatterternary/textfont/_shadow.py index 4d31561d5f0..ce824240f5c 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/textfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/scatterternary/textfont/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="scatterternary.textfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='scatterternary.textfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/textfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/scatterternary/textfont/_shadowsrc.py index 763a1550518..5cf9396fe5d 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/textfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/textfont/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="scatterternary.textfont", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='scatterternary.textfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/textfont/_size.py b/packages/python/plotly/plotly/validators/scatterternary/textfont/_size.py index 20f8e18b05a..a01d32eaa4c 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/textfont/_size.py +++ b/packages/python/plotly/plotly/validators/scatterternary/textfont/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="scatterternary.textfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatterternary.textfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/textfont/_sizesrc.py b/packages/python/plotly/plotly/validators/scatterternary/textfont/_sizesrc.py index f7f5de097c8..84ffc382132 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/textfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/textfont/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="scatterternary.textfont", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='scatterternary.textfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/textfont/_style.py b/packages/python/plotly/plotly/validators/scatterternary/textfont/_style.py index 4846096ea9e..fa0773cc170 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/textfont/_style.py +++ b/packages/python/plotly/plotly/validators/scatterternary/textfont/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="scatterternary.textfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='scatterternary.textfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/textfont/_stylesrc.py b/packages/python/plotly/plotly/validators/scatterternary/textfont/_stylesrc.py index af6fffd866d..3aa615308d8 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/textfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/textfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="scatterternary.textfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='scatterternary.textfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/textfont/_textcase.py b/packages/python/plotly/plotly/validators/scatterternary/textfont/_textcase.py index 3905767de21..18d45d1d46c 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/textfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/scatterternary/textfont/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="scatterternary.textfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='scatterternary.textfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/textfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/scatterternary/textfont/_textcasesrc.py index 77bce59e93f..0f8e4ddb3f5 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/textfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/textfont/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="scatterternary.textfont", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='scatterternary.textfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/textfont/_variant.py b/packages/python/plotly/plotly/validators/scatterternary/textfont/_variant.py index ee043cec844..a5bea7b51ab 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/textfont/_variant.py +++ b/packages/python/plotly/plotly/validators/scatterternary/textfont/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="scatterternary.textfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='scatterternary.textfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/textfont/_variantsrc.py b/packages/python/plotly/plotly/validators/scatterternary/textfont/_variantsrc.py index a77c911fca7..016e286aacd 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/textfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/textfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="scatterternary.textfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='scatterternary.textfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/textfont/_weight.py b/packages/python/plotly/plotly/validators/scatterternary/textfont/_weight.py index 705ed666729..e4737b4a5d1 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/textfont/_weight.py +++ b/packages/python/plotly/plotly/validators/scatterternary/textfont/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="scatterternary.textfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='scatterternary.textfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/textfont/_weightsrc.py b/packages/python/plotly/plotly/validators/scatterternary/textfont/_weightsrc.py index f5d3fe0aa7c..c0f9b252e55 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/textfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/scatterternary/textfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="scatterternary.textfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='scatterternary.textfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/unselected/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/unselected/__init__.py index 3b0aeed383f..c0a73fd7df3 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/unselected/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._textfont import TextfontValidator from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] + __name__, + [], + ['._textfont.TextfontValidator', '._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterternary/unselected/_marker.py b/packages/python/plotly/plotly/validators/scatterternary/unselected/_marker.py index 69585dd5a84..e459d5613fb 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/unselected/_marker.py +++ b/packages/python/plotly/plotly/validators/scatterternary/unselected/_marker.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="scatterternary.unselected", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - size - Sets the marker size of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='scatterternary.unselected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/unselected/_textfont.py b/packages/python/plotly/plotly/validators/scatterternary/unselected/_textfont.py index a997b31bc62..4c2c299aed4 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/unselected/_textfont.py +++ b/packages/python/plotly/plotly/validators/scatterternary/unselected/_textfont.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="textfont", parent_name="scatterternary.unselected", **kwargs - ): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the text font color of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='scatterternary.unselected', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/unselected/marker/__init__.py index 8c321a38bc5..b7768f024e8 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/unselected/marker/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._size import SizeValidator from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._size.SizeValidator", - "._opacity.OpacityValidator", - "._color.ColorValidator", - ], + ['._size.SizeValidator', '._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterternary/unselected/marker/_color.py b/packages/python/plotly/plotly/validators/scatterternary/unselected/marker/_color.py index 664108c03bd..4f3e0906c22 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/unselected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/scatterternary/unselected/marker/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatterternary.unselected.marker", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterternary.unselected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/unselected/marker/_opacity.py b/packages/python/plotly/plotly/validators/scatterternary/unselected/marker/_opacity.py index 42c59112a3a..3694e6df10f 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/unselected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/scatterternary/unselected/marker/_opacity.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="opacity", - parent_name="scatterternary.unselected.marker", - **kwargs, - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='scatterternary.unselected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/unselected/marker/_size.py b/packages/python/plotly/plotly/validators/scatterternary/unselected/marker/_size.py index e893af5a057..a124f48640e 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/unselected/marker/_size.py +++ b/packages/python/plotly/plotly/validators/scatterternary/unselected/marker/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="scatterternary.unselected.marker", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='scatterternary.unselected.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/scatterternary/unselected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/unselected/textfont/__init__.py index a9f087e5af1..86899e5cc51 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/unselected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/unselected/textfont/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._color.ColorValidator"] + __name__, + [], + ['._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/scatterternary/unselected/textfont/_color.py b/packages/python/plotly/plotly/validators/scatterternary/unselected/textfont/_color.py index 299acd375af..c610e2217e3 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/unselected/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/scatterternary/unselected/textfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="scatterternary.unselected.textfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='scatterternary.unselected.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/__init__.py b/packages/python/plotly/plotly/validators/splom/__init__.py index c928a1b08d9..3d82b6e6445 100644 --- a/packages/python/plotly/plotly/validators/splom/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yhoverformat import YhoverformatValidator from ._yaxes import YaxesValidator @@ -44,50 +43,10 @@ from ._customdata import CustomdataValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yhoverformat.YhoverformatValidator", - "._yaxes.YaxesValidator", - "._xhoverformat.XhoverformatValidator", - "._xaxes.XaxesValidator", - "._visible.VisibleValidator", - "._unselected.UnselectedValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._textsrc.TextsrcValidator", - "._text.TextValidator", - "._stream.StreamValidator", - "._showupperhalf.ShowupperhalfValidator", - "._showlowerhalf.ShowlowerhalfValidator", - "._showlegend.ShowlegendValidator", - "._selectedpoints.SelectedpointsValidator", - "._selected.SelectedValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._marker.MarkerValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._dimensiondefaults.DimensiondefaultsValidator", - "._dimensions.DimensionsValidator", - "._diagonal.DiagonalValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - ], + ['._yhoverformat.YhoverformatValidator', '._yaxes.YaxesValidator', '._xhoverformat.XhoverformatValidator', '._xaxes.XaxesValidator', '._visible.VisibleValidator', '._unselected.UnselectedValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._textsrc.TextsrcValidator', '._text.TextValidator', '._stream.StreamValidator', '._showupperhalf.ShowupperhalfValidator', '._showlowerhalf.ShowlowerhalfValidator', '._showlegend.ShowlegendValidator', '._selectedpoints.SelectedpointsValidator', '._selected.SelectedValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._marker.MarkerValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._dimensiondefaults.DimensiondefaultsValidator', '._dimensions.DimensionsValidator', '._diagonal.DiagonalValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/splom/_customdata.py b/packages/python/plotly/plotly/validators/splom/_customdata.py index bb84b58a26e..070cca7d2f4 100644 --- a/packages/python/plotly/plotly/validators/splom/_customdata.py +++ b/packages/python/plotly/plotly/validators/splom/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="splom", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='splom', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_customdatasrc.py b/packages/python/plotly/plotly/validators/splom/_customdatasrc.py index 6edf7445850..156162a7bca 100644 --- a/packages/python/plotly/plotly/validators/splom/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/splom/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="splom", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='splom', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_diagonal.py b/packages/python/plotly/plotly/validators/splom/_diagonal.py index 34a3645a538..2fa896e30e3 100644 --- a/packages/python/plotly/plotly/validators/splom/_diagonal.py +++ b/packages/python/plotly/plotly/validators/splom/_diagonal.py @@ -1,19 +1,15 @@ -import _plotly_utils.basevalidators -class DiagonalValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="diagonal", parent_name="splom", **kwargs): - super(DiagonalValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Diagonal"), - data_docs=kwargs.pop( - "data_docs", - """ - visible - Determines whether or not subplots on the - diagonal are displayed. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DiagonalValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='diagonal', + parent_name='splom', + **kwargs): + super(DiagonalValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Diagonal'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_dimensiondefaults.py b/packages/python/plotly/plotly/validators/splom/_dimensiondefaults.py index fa1e8792ab8..5b7df0a346f 100644 --- a/packages/python/plotly/plotly/validators/splom/_dimensiondefaults.py +++ b/packages/python/plotly/plotly/validators/splom/_dimensiondefaults.py @@ -1,16 +1,15 @@ -import _plotly_utils.basevalidators -class DimensiondefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="dimensiondefaults", parent_name="splom", **kwargs): - super(DimensiondefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Dimension"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DimensiondefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='dimensiondefaults', + parent_name='splom', + **kwargs): + super(DimensiondefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Dimension'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_dimensions.py b/packages/python/plotly/plotly/validators/splom/_dimensions.py index b8a3f24ce23..b50a17169d4 100644 --- a/packages/python/plotly/plotly/validators/splom/_dimensions.py +++ b/packages/python/plotly/plotly/validators/splom/_dimensions.py @@ -1,53 +1,15 @@ -import _plotly_utils.basevalidators -class DimensionsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__(self, plotly_name="dimensions", parent_name="splom", **kwargs): - super(DimensionsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Dimension"), - data_docs=kwargs.pop( - "data_docs", - """ - axis - :class:`plotly.graph_objects.splom.dimension.Ax - is` instance or dict with compatible properties - label - Sets the label corresponding to this splom - dimension. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - values - Sets the dimension values to be plotted. - valuessrc - Sets the source reference on Chart Studio Cloud - for `values`. - visible - Determines whether or not this dimension is - shown on the graph. Note that even visible - false dimension contribute to the default grid - generate by this splom trace. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DimensionsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='dimensions', + parent_name='splom', + **kwargs): + super(DimensionsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Dimension'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_hoverinfo.py b/packages/python/plotly/plotly/validators/splom/_hoverinfo.py index 1a7c9e97c83..58076aa199b 100644 --- a/packages/python/plotly/plotly/validators/splom/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/splom/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="splom", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='splom', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/splom/_hoverinfosrc.py index f70aef653d2..bd6f9d1278a 100644 --- a/packages/python/plotly/plotly/validators/splom/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/splom/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="splom", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='splom', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_hoverlabel.py b/packages/python/plotly/plotly/validators/splom/_hoverlabel.py index af691c91340..3539ca58842 100644 --- a/packages/python/plotly/plotly/validators/splom/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/splom/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="splom", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='splom', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_hovertemplate.py b/packages/python/plotly/plotly/validators/splom/_hovertemplate.py index 0d3e29802f6..40105644fed 100644 --- a/packages/python/plotly/plotly/validators/splom/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/splom/_hovertemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="splom", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='splom', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/splom/_hovertemplatesrc.py index 4740238947d..dbc31bb5959 100644 --- a/packages/python/plotly/plotly/validators/splom/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/splom/_hovertemplatesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertemplatesrc", parent_name="splom", **kwargs): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='splom', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_hovertext.py b/packages/python/plotly/plotly/validators/splom/_hovertext.py index 589166232ab..5cbe7e65959 100644 --- a/packages/python/plotly/plotly/validators/splom/_hovertext.py +++ b/packages/python/plotly/plotly/validators/splom/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="splom", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='splom', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_hovertextsrc.py b/packages/python/plotly/plotly/validators/splom/_hovertextsrc.py index f6ba891101d..7e0ae4c343f 100644 --- a/packages/python/plotly/plotly/validators/splom/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/splom/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="splom", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='splom', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_ids.py b/packages/python/plotly/plotly/validators/splom/_ids.py index ff429d83630..b3c7f1276da 100644 --- a/packages/python/plotly/plotly/validators/splom/_ids.py +++ b/packages/python/plotly/plotly/validators/splom/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="splom", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='splom', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_idssrc.py b/packages/python/plotly/plotly/validators/splom/_idssrc.py index e2cb23c6f4b..91235998610 100644 --- a/packages/python/plotly/plotly/validators/splom/_idssrc.py +++ b/packages/python/plotly/plotly/validators/splom/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="splom", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='splom', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_legend.py b/packages/python/plotly/plotly/validators/splom/_legend.py index fc4b71d1972..fff26a0f321 100644 --- a/packages/python/plotly/plotly/validators/splom/_legend.py +++ b/packages/python/plotly/plotly/validators/splom/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="splom", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='splom', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_legendgroup.py b/packages/python/plotly/plotly/validators/splom/_legendgroup.py index a923e4e8e65..2de0d24627b 100644 --- a/packages/python/plotly/plotly/validators/splom/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/splom/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="splom", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='splom', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/splom/_legendgrouptitle.py index 3afbc71dee9..a9179dbad50 100644 --- a/packages/python/plotly/plotly/validators/splom/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/splom/_legendgrouptitle.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="legendgrouptitle", parent_name="splom", **kwargs): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='splom', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_legendrank.py b/packages/python/plotly/plotly/validators/splom/_legendrank.py index d58319e2400..29eaa5e125b 100644 --- a/packages/python/plotly/plotly/validators/splom/_legendrank.py +++ b/packages/python/plotly/plotly/validators/splom/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="splom", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='splom', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_legendwidth.py b/packages/python/plotly/plotly/validators/splom/_legendwidth.py index 0003be76d4e..036da19fb94 100644 --- a/packages/python/plotly/plotly/validators/splom/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/splom/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="splom", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='splom', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_marker.py b/packages/python/plotly/plotly/validators/splom/_marker.py index 5f961fb6a25..9400e7709ee 100644 --- a/packages/python/plotly/plotly/validators/splom/_marker.py +++ b/packages/python/plotly/plotly/validators/splom/_marker.py @@ -1,144 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="splom", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - angle - Sets the marker angle in respect to `angleref`. - anglesrc - Sets the source reference on Chart Studio Cloud - for `angle`. - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if in `marker.color` is set to a - numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.color`) or the bounds set in - `marker.cmin` and `marker.cmax` Has an effect - only if in `marker.color` is set to a numerical - array. Defaults to `false` when `marker.cmin` - and `marker.cmax` are set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if in `marker.color` is set to a numerical - array. Value should have the same units as in - `marker.color`. Has no effect when - `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.color` is set to a - numerical array. Value should have the same - units as in `marker.color` and if set, - `marker.cmax` must be set as well. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.splom.marker.Color - Bar` instance or dict with compatible - properties - colorscale - Sets the colorscale. Has an effect only if in - `marker.color` is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - line - :class:`plotly.graph_objects.splom.marker.Line` - instance or dict with compatible properties - opacity - Sets the marker opacity. - opacitysrc - Sets the source reference on Chart Studio Cloud - for `opacity`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.color` is set to a - numerical array. If true, `marker.cmin` will - correspond to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - in `marker.color` is set to a numerical array. - size - Sets the marker size (in px). - sizemin - Has an effect only if `marker.size` is set to a - numerical array. Sets the minimum size (in px) - of the rendered marker points. - sizemode - Has an effect only if `marker.size` is set to a - numerical array. Sets the rule for which the - data in `size` is converted to pixels. - sizeref - Has an effect only if `marker.size` is set to a - numerical array. Sets the scale factor used to - determine the rendered size of marker points. - Use with `sizemin` and `sizemode`. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - symbol - Sets the marker symbol type. Adding 100 is - equivalent to appending "-open" to a symbol - name. Adding 200 is equivalent to appending - "-dot" to a symbol name. Adding 300 is - equivalent to appending "-open-dot" or "dot- - open" to a symbol name. - symbolsrc - Sets the source reference on Chart Studio Cloud - for `symbol`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='splom', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_meta.py b/packages/python/plotly/plotly/validators/splom/_meta.py index 69cd7c07665..a465df0efbb 100644 --- a/packages/python/plotly/plotly/validators/splom/_meta.py +++ b/packages/python/plotly/plotly/validators/splom/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="splom", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='splom', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_metasrc.py b/packages/python/plotly/plotly/validators/splom/_metasrc.py index 14499f55425..cc38ab55164 100644 --- a/packages/python/plotly/plotly/validators/splom/_metasrc.py +++ b/packages/python/plotly/plotly/validators/splom/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="splom", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='splom', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_name.py b/packages/python/plotly/plotly/validators/splom/_name.py index 1ba82b2a139..24a2a0bc253 100644 --- a/packages/python/plotly/plotly/validators/splom/_name.py +++ b/packages/python/plotly/plotly/validators/splom/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="splom", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='splom', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_opacity.py b/packages/python/plotly/plotly/validators/splom/_opacity.py index a5e1910f6d1..6fa3ce29450 100644 --- a/packages/python/plotly/plotly/validators/splom/_opacity.py +++ b/packages/python/plotly/plotly/validators/splom/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="splom", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='splom', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_selected.py b/packages/python/plotly/plotly/validators/splom/_selected.py index eaa18afd6fa..a29e27f1337 100644 --- a/packages/python/plotly/plotly/validators/splom/_selected.py +++ b/packages/python/plotly/plotly/validators/splom/_selected.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="selected", parent_name="splom", **kwargs): - super(SelectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Selected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.splom.selected.Mar - ker` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='selected', + parent_name='splom', + **kwargs): + super(SelectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_selectedpoints.py b/packages/python/plotly/plotly/validators/splom/_selectedpoints.py index 05967761fac..e4146798adf 100644 --- a/packages/python/plotly/plotly/validators/splom/_selectedpoints.py +++ b/packages/python/plotly/plotly/validators/splom/_selectedpoints.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="selectedpoints", parent_name="splom", **kwargs): - super(SelectedpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedpointsValidator(_bv.AnyValidator): + def __init__(self, plotly_name='selectedpoints', + parent_name='splom', + **kwargs): + super(SelectedpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_showlegend.py b/packages/python/plotly/plotly/validators/splom/_showlegend.py index 6d5851fcbc0..0edefadd8f6 100644 --- a/packages/python/plotly/plotly/validators/splom/_showlegend.py +++ b/packages/python/plotly/plotly/validators/splom/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="splom", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='splom', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_showlowerhalf.py b/packages/python/plotly/plotly/validators/splom/_showlowerhalf.py index a911c1a7be9..a028301ada8 100644 --- a/packages/python/plotly/plotly/validators/splom/_showlowerhalf.py +++ b/packages/python/plotly/plotly/validators/splom/_showlowerhalf.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlowerhalfValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlowerhalf", parent_name="splom", **kwargs): - super(ShowlowerhalfValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlowerhalfValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlowerhalf', + parent_name='splom', + **kwargs): + super(ShowlowerhalfValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_showupperhalf.py b/packages/python/plotly/plotly/validators/splom/_showupperhalf.py index a529511fc85..cbeacce1f4b 100644 --- a/packages/python/plotly/plotly/validators/splom/_showupperhalf.py +++ b/packages/python/plotly/plotly/validators/splom/_showupperhalf.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowupperhalfValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showupperhalf", parent_name="splom", **kwargs): - super(ShowupperhalfValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowupperhalfValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showupperhalf', + parent_name='splom', + **kwargs): + super(ShowupperhalfValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_stream.py b/packages/python/plotly/plotly/validators/splom/_stream.py index 31939ba5fca..f9c7a7d77ee 100644 --- a/packages/python/plotly/plotly/validators/splom/_stream.py +++ b/packages/python/plotly/plotly/validators/splom/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="splom", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='splom', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_text.py b/packages/python/plotly/plotly/validators/splom/_text.py index 2589d4f0fea..86baba7836e 100644 --- a/packages/python/plotly/plotly/validators/splom/_text.py +++ b/packages/python/plotly/plotly/validators/splom/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="splom", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='splom', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_textsrc.py b/packages/python/plotly/plotly/validators/splom/_textsrc.py index 8e06eb1ee83..d4321d541ef 100644 --- a/packages/python/plotly/plotly/validators/splom/_textsrc.py +++ b/packages/python/plotly/plotly/validators/splom/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="splom", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='splom', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_uid.py b/packages/python/plotly/plotly/validators/splom/_uid.py index 1cc68e7df48..9fbd498a6cc 100644 --- a/packages/python/plotly/plotly/validators/splom/_uid.py +++ b/packages/python/plotly/plotly/validators/splom/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="splom", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='splom', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_uirevision.py b/packages/python/plotly/plotly/validators/splom/_uirevision.py index f09d2d5b34d..7cc59fe52d9 100644 --- a/packages/python/plotly/plotly/validators/splom/_uirevision.py +++ b/packages/python/plotly/plotly/validators/splom/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="splom", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='splom', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_unselected.py b/packages/python/plotly/plotly/validators/splom/_unselected.py index 8924bc4a9eb..f72a25e73b4 100644 --- a/packages/python/plotly/plotly/validators/splom/_unselected.py +++ b/packages/python/plotly/plotly/validators/splom/_unselected.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="unselected", parent_name="splom", **kwargs): - super(UnselectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Unselected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.splom.unselected.M - arker` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UnselectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='unselected', + parent_name='splom', + **kwargs): + super(UnselectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_visible.py b/packages/python/plotly/plotly/validators/splom/_visible.py index 1b9b886ff6b..75fd521bb1f 100644 --- a/packages/python/plotly/plotly/validators/splom/_visible.py +++ b/packages/python/plotly/plotly/validators/splom/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="splom", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='splom', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_xaxes.py b/packages/python/plotly/plotly/validators/splom/_xaxes.py index 9ecc6cad2cb..f644a0abc42 100644 --- a/packages/python/plotly/plotly/validators/splom/_xaxes.py +++ b/packages/python/plotly/plotly/validators/splom/_xaxes.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class XaxesValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="xaxes", parent_name="splom", **kwargs): - super(XaxesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - free_length=kwargs.pop("free_length", True), - items=kwargs.pop( - "items", - { - "editType": "plot", - "regex": "/^x([2-9]|[1-9][0-9]+)?( domain)?$/", - "valType": "subplotid", - }, - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XaxesValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='xaxes', + parent_name='splom', + **kwargs): + super(XaxesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + free_length=kwargs.pop('free_length', True), + items=kwargs.pop('items', {'editType': 'plot', 'regex': '/^x([2-9]|[1-9][0-9]+)?( domain)?$/', 'valType': 'subplotid'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_xhoverformat.py b/packages/python/plotly/plotly/validators/splom/_xhoverformat.py index 0bbc2f7731d..8515f702a2e 100644 --- a/packages/python/plotly/plotly/validators/splom/_xhoverformat.py +++ b/packages/python/plotly/plotly/validators/splom/_xhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="xhoverformat", parent_name="splom", **kwargs): - super(XhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='xhoverformat', + parent_name='splom', + **kwargs): + super(XhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_yaxes.py b/packages/python/plotly/plotly/validators/splom/_yaxes.py index 3395d06ba25..283ee72e2b8 100644 --- a/packages/python/plotly/plotly/validators/splom/_yaxes.py +++ b/packages/python/plotly/plotly/validators/splom/_yaxes.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class YaxesValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="yaxes", parent_name="splom", **kwargs): - super(YaxesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - free_length=kwargs.pop("free_length", True), - items=kwargs.pop( - "items", - { - "editType": "plot", - "regex": "/^y([2-9]|[1-9][0-9]+)?( domain)?$/", - "valType": "subplotid", - }, - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YaxesValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='yaxes', + parent_name='splom', + **kwargs): + super(YaxesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + free_length=kwargs.pop('free_length', True), + items=kwargs.pop('items', {'editType': 'plot', 'regex': '/^y([2-9]|[1-9][0-9]+)?( domain)?$/', 'valType': 'subplotid'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/_yhoverformat.py b/packages/python/plotly/plotly/validators/splom/_yhoverformat.py index ec067387290..6600a0a4daa 100644 --- a/packages/python/plotly/plotly/validators/splom/_yhoverformat.py +++ b/packages/python/plotly/plotly/validators/splom/_yhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="yhoverformat", parent_name="splom", **kwargs): - super(YhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='yhoverformat', + parent_name='splom', + **kwargs): + super(YhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/diagonal/__init__.py b/packages/python/plotly/plotly/validators/splom/diagonal/__init__.py index 5a516ae4827..8ab2f86bb45 100644 --- a/packages/python/plotly/plotly/validators/splom/diagonal/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/diagonal/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._visible.VisibleValidator"] + __name__, + [], + ['._visible.VisibleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/splom/diagonal/_visible.py b/packages/python/plotly/plotly/validators/splom/diagonal/_visible.py index 6b6d3dfadb2..eec384e2db0 100644 --- a/packages/python/plotly/plotly/validators/splom/diagonal/_visible.py +++ b/packages/python/plotly/plotly/validators/splom/diagonal/_visible.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="visible", parent_name="splom.diagonal", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='splom.diagonal', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/dimension/__init__.py b/packages/python/plotly/plotly/validators/splom/dimension/__init__.py index ca97d79c70a..f5e2c7eb621 100644 --- a/packages/python/plotly/plotly/validators/splom/dimension/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/dimension/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._valuessrc import ValuessrcValidator @@ -11,17 +10,10 @@ from ._axis import AxisValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._valuessrc.ValuessrcValidator", - "._values.ValuesValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._label.LabelValidator", - "._axis.AxisValidator", - ], + ['._visible.VisibleValidator', '._valuessrc.ValuessrcValidator', '._values.ValuesValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._label.LabelValidator', '._axis.AxisValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/splom/dimension/_axis.py b/packages/python/plotly/plotly/validators/splom/dimension/_axis.py index 22c3620305e..cb562078fee 100644 --- a/packages/python/plotly/plotly/validators/splom/dimension/_axis.py +++ b/packages/python/plotly/plotly/validators/splom/dimension/_axis.py @@ -1,26 +1,15 @@ -import _plotly_utils.basevalidators -class AxisValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="axis", parent_name="splom.dimension", **kwargs): - super(AxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Axis"), - data_docs=kwargs.pop( - "data_docs", - """ - matches - Determines whether or not the x & y axes - generated by this dimension match. Equivalent - to setting the `matches` axis attribute in the - layout with the correct axis id. - type - Sets the axis type for this dimension's - generated x and y axes. Note that the axis - `type` values set in layout take precedence - over this attribute. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AxisValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='axis', + parent_name='splom.dimension', + **kwargs): + super(AxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Axis'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/dimension/_label.py b/packages/python/plotly/plotly/validators/splom/dimension/_label.py index 35e6cd00d5c..429ab7368fd 100644 --- a/packages/python/plotly/plotly/validators/splom/dimension/_label.py +++ b/packages/python/plotly/plotly/validators/splom/dimension/_label.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LabelValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="label", parent_name="splom.dimension", **kwargs): - super(LabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelValidator(_bv.StringValidator): + def __init__(self, plotly_name='label', + parent_name='splom.dimension', + **kwargs): + super(LabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/dimension/_name.py b/packages/python/plotly/plotly/validators/splom/dimension/_name.py index 6881e387cbc..12f48139d83 100644 --- a/packages/python/plotly/plotly/validators/splom/dimension/_name.py +++ b/packages/python/plotly/plotly/validators/splom/dimension/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="splom.dimension", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='splom.dimension', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/dimension/_templateitemname.py b/packages/python/plotly/plotly/validators/splom/dimension/_templateitemname.py index 0e4c08a0b71..d17b8c1d9da 100644 --- a/packages/python/plotly/plotly/validators/splom/dimension/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/splom/dimension/_templateitemname.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="templateitemname", parent_name="splom.dimension", **kwargs - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='splom.dimension', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/dimension/_values.py b/packages/python/plotly/plotly/validators/splom/dimension/_values.py index b87cbc0478c..f61b3162a40 100644 --- a/packages/python/plotly/plotly/validators/splom/dimension/_values.py +++ b/packages/python/plotly/plotly/validators/splom/dimension/_values.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ValuesValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="values", parent_name="splom.dimension", **kwargs): - super(ValuesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValuesValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='values', + parent_name='splom.dimension', + **kwargs): + super(ValuesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/dimension/_valuessrc.py b/packages/python/plotly/plotly/validators/splom/dimension/_valuessrc.py index b7140894930..b24171b2276 100644 --- a/packages/python/plotly/plotly/validators/splom/dimension/_valuessrc.py +++ b/packages/python/plotly/plotly/validators/splom/dimension/_valuessrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ValuessrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="valuessrc", parent_name="splom.dimension", **kwargs - ): - super(ValuessrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ValuessrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='valuessrc', + parent_name='splom.dimension', + **kwargs): + super(ValuessrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/dimension/_visible.py b/packages/python/plotly/plotly/validators/splom/dimension/_visible.py index 694a4a9f1cf..aae606a0229 100644 --- a/packages/python/plotly/plotly/validators/splom/dimension/_visible.py +++ b/packages/python/plotly/plotly/validators/splom/dimension/_visible.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="visible", parent_name="splom.dimension", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='splom.dimension', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/dimension/axis/__init__.py b/packages/python/plotly/plotly/validators/splom/dimension/axis/__init__.py index 23af7f078b6..b56c2391c42 100644 --- a/packages/python/plotly/plotly/validators/splom/dimension/axis/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/dimension/axis/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._type import TypeValidator from ._matches import MatchesValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._type.TypeValidator", "._matches.MatchesValidator"] + __name__, + [], + ['._type.TypeValidator', '._matches.MatchesValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/splom/dimension/axis/_matches.py b/packages/python/plotly/plotly/validators/splom/dimension/axis/_matches.py index 5c407abd3cd..b68fc9f6009 100644 --- a/packages/python/plotly/plotly/validators/splom/dimension/axis/_matches.py +++ b/packages/python/plotly/plotly/validators/splom/dimension/axis/_matches.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class MatchesValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="matches", parent_name="splom.dimension.axis", **kwargs - ): - super(MatchesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MatchesValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='matches', + parent_name='splom.dimension.axis', + **kwargs): + super(MatchesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/dimension/axis/_type.py b/packages/python/plotly/plotly/validators/splom/dimension/axis/_type.py index d13a210ba30..c08f1d86e2e 100644 --- a/packages/python/plotly/plotly/validators/splom/dimension/axis/_type.py +++ b/packages/python/plotly/plotly/validators/splom/dimension/axis/_type.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="type", parent_name="splom.dimension.axis", **kwargs - ): - super(TypeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - values=kwargs.pop("values", ["linear", "log", "date", "category"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TypeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='type', + parent_name='splom.dimension.axis', + **kwargs): + super(TypeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + values=kwargs.pop('values', ['linear', 'log', 'date', 'category']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/_align.py index 2e655811830..1c3e96e791f 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/_align.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="align", parent_name="splom.hoverlabel", **kwargs): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='splom.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/_alignsrc.py index f75de77e65a..73fc8608d81 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="splom.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='splom.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/_bgcolor.py index a5dff7ed557..f4c59015bc3 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/_bgcolor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="bgcolor", parent_name="splom.hoverlabel", **kwargs): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='splom.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/_bgcolorsrc.py index 16232f6f22f..8d02e5c7493 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="splom.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='splom.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/_bordercolor.py index 6e1a1ad6f79..4dd4a635b9b 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="splom.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='splom.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/_bordercolorsrc.py index 624d249273c..08fca6cf250 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bordercolorsrc", parent_name="splom.hoverlabel", **kwargs - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='splom.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/_font.py index a4de3b5e6b4..311f3945e25 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/_font.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="splom.hoverlabel", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='splom.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/_namelength.py index 6b3b90d145c..676fd3cb0b7 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="splom.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='splom.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/_namelengthsrc.py index 1f80b25de4a..596614ebcbc 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="splom.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='splom.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_color.py index 1c9b31a8b0b..757e1fa85fe 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="splom.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='splom.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_colorsrc.py index d40713c94aa..e89f876da9a 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="splom.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='splom.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_family.py index 2fec99fb1c8..9cb65b5cd6c 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="splom.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='splom.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_familysrc.py index 6b1c3dc32a7..32ed2eea546 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="splom.hoverlabel.font", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='splom.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_lineposition.py index e8e714420f9..4973c58b25f 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="splom.hoverlabel.font", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='splom.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_linepositionsrc.py index e0a04dfec7c..8c420fd4480 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="splom.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='splom.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_shadow.py index f17a3ec80c5..423ec703b86 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="splom.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='splom.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_shadowsrc.py index 1cb26553e62..75d1c8b1152 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="splom.hoverlabel.font", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='splom.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_size.py index 6a5866dcbad..eb5c8c64990 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="splom.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='splom.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_sizesrc.py index d52034c43f1..3b4d239e17b 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="splom.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='splom.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_style.py index 4e683bac210..ecdb206a7dc 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="splom.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='splom.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_stylesrc.py index 887cb812ac3..6bddc1a6774 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="splom.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='splom.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_textcase.py index 1fa3bde0a0b..9aac92d9eb2 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="splom.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='splom.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_textcasesrc.py index b8d3ebccf6e..15f543b42b3 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="splom.hoverlabel.font", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='splom.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_variant.py index 16010ab3a0f..a788307d623 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="splom.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='splom.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_variantsrc.py index e2c6a15a2d2..702612a70cd 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="splom.hoverlabel.font", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='splom.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_weight.py index 97e775eb2a9..ff307e7926b 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="splom.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='splom.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_weightsrc.py index d5c2dab59ff..48309a6ea97 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="splom.hoverlabel.font", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='splom.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/splom/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/splom/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/splom/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/splom/legendgrouptitle/_font.py index 0778a27c67e..c19cce94bbf 100644 --- a/packages/python/plotly/plotly/validators/splom/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/splom/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="splom.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='splom.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/splom/legendgrouptitle/_text.py index 068195ae946..ae9babf5211 100644 --- a/packages/python/plotly/plotly/validators/splom/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/splom/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="splom.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='splom.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_color.py index c9af0573d39..a19e96264f7 100644 --- a/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="splom.legendgrouptitle.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='splom.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_family.py index d12123cfab0..7699b2d6a86 100644 --- a/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="splom.legendgrouptitle.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='splom.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_lineposition.py index fc08c346fb9..5a5b12b51f6 100644 --- a/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="splom.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='splom.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_shadow.py index e3fa9947fb0..ed701118101 100644 --- a/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="splom.legendgrouptitle.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='splom.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_size.py index 1f350879213..95d7d5eda62 100644 --- a/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="splom.legendgrouptitle.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='splom.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_style.py index f9c6156b86b..12a7429744d 100644 --- a/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="splom.legendgrouptitle.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='splom.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_textcase.py index 5f6c6640901..08f810e50fb 100644 --- a/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="splom.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='splom.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_variant.py index 1c8dc0128ad..72297c0d5ad 100644 --- a/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="splom.legendgrouptitle.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='splom.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_weight.py index e3dfbebe92b..3b9635fb5bb 100644 --- a/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/splom/legendgrouptitle/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="splom.legendgrouptitle.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='splom.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/__init__.py b/packages/python/plotly/plotly/validators/splom/marker/__init__.py index dc48879d6be..b939ff13709 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._symbolsrc import SymbolsrcValidator from ._symbol import SymbolValidator @@ -28,34 +27,10 @@ from ._angle import AngleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._symbolsrc.SymbolsrcValidator", - "._symbol.SymbolValidator", - "._sizesrc.SizesrcValidator", - "._sizeref.SizerefValidator", - "._sizemode.SizemodeValidator", - "._sizemin.SizeminValidator", - "._size.SizeValidator", - "._showscale.ShowscaleValidator", - "._reversescale.ReversescaleValidator", - "._opacitysrc.OpacitysrcValidator", - "._opacity.OpacityValidator", - "._line.LineValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - "._anglesrc.AnglesrcValidator", - "._angle.AngleValidator", - ], + ['._symbolsrc.SymbolsrcValidator', '._symbol.SymbolValidator', '._sizesrc.SizesrcValidator', '._sizeref.SizerefValidator', '._sizemode.SizemodeValidator', '._sizemin.SizeminValidator', '._size.SizeValidator', '._showscale.ShowscaleValidator', '._reversescale.ReversescaleValidator', '._opacitysrc.OpacitysrcValidator', '._opacity.OpacityValidator', '._line.LineValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator', '._anglesrc.AnglesrcValidator', '._angle.AngleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/splom/marker/_angle.py b/packages/python/plotly/plotly/validators/splom/marker/_angle.py index 0707622c4e3..6a59e5b5335 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/_angle.py +++ b/packages/python/plotly/plotly/validators/splom/marker/_angle.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class AngleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__(self, plotly_name="angle", parent_name="splom.marker", **kwargs): - super(AngleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AngleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='angle', + parent_name='splom.marker', + **kwargs): + super(AngleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/_anglesrc.py b/packages/python/plotly/plotly/validators/splom/marker/_anglesrc.py index 30150404d38..0e443e60e8f 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/_anglesrc.py +++ b/packages/python/plotly/plotly/validators/splom/marker/_anglesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AnglesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="anglesrc", parent_name="splom.marker", **kwargs): - super(AnglesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AnglesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='anglesrc', + parent_name='splom.marker', + **kwargs): + super(AnglesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/_autocolorscale.py b/packages/python/plotly/plotly/validators/splom/marker/_autocolorscale.py index 7a3bb603c30..3cd62737073 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/splom/marker/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="splom.marker", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='splom.marker', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/_cauto.py b/packages/python/plotly/plotly/validators/splom/marker/_cauto.py index 0bb31d50979..009169fa468 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/_cauto.py +++ b/packages/python/plotly/plotly/validators/splom/marker/_cauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cauto", parent_name="splom.marker", **kwargs): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='splom.marker', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/_cmax.py b/packages/python/plotly/plotly/validators/splom/marker/_cmax.py index 02076794b3c..7bdcd7400a9 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/_cmax.py +++ b/packages/python/plotly/plotly/validators/splom/marker/_cmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmax", parent_name="splom.marker", **kwargs): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='splom.marker', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/_cmid.py b/packages/python/plotly/plotly/validators/splom/marker/_cmid.py index d1793b5394f..e148e6f3e78 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/_cmid.py +++ b/packages/python/plotly/plotly/validators/splom/marker/_cmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmid", parent_name="splom.marker", **kwargs): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='splom.marker', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/_cmin.py b/packages/python/plotly/plotly/validators/splom/marker/_cmin.py index 7abcddd4968..59936069087 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/_cmin.py +++ b/packages/python/plotly/plotly/validators/splom/marker/_cmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmin", parent_name="splom.marker", **kwargs): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='splom.marker', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/_color.py b/packages/python/plotly/plotly/validators/splom/marker/_color.py index ee03eae5995..089d0822fcd 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/_color.py +++ b/packages/python/plotly/plotly/validators/splom/marker/_color.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="splom.marker", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - colorscale_path=kwargs.pop("colorscale_path", "splom.marker.colorscale"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='splom.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + colorscale_path=kwargs.pop('colorscale_path', 'splom.marker.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/_coloraxis.py b/packages/python/plotly/plotly/validators/splom/marker/_coloraxis.py index 415a2154001..1e317233fd1 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/splom/marker/_coloraxis.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="coloraxis", parent_name="splom.marker", **kwargs): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='splom.marker', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/_colorbar.py b/packages/python/plotly/plotly/validators/splom/marker/_colorbar.py index 460b64e8b2d..0d8426faac4 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/_colorbar.py +++ b/packages/python/plotly/plotly/validators/splom/marker/_colorbar.py @@ -1,280 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="colorbar", parent_name="splom.marker", **kwargs): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.splom.m - arker.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.splom.marker.colorbar.tickformatstopdefaults) - , sets the default property values to use for - elements of - splom.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.splom.marker.color - bar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='splom.marker', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/_colorscale.py b/packages/python/plotly/plotly/validators/splom/marker/_colorscale.py index 55b208ed82a..a329c8746a4 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/_colorscale.py +++ b/packages/python/plotly/plotly/validators/splom/marker/_colorscale.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__(self, plotly_name="colorscale", parent_name="splom.marker", **kwargs): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='splom.marker', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/_colorsrc.py b/packages/python/plotly/plotly/validators/splom/marker/_colorsrc.py index 4388f7b1389..2b1fd8f9ac0 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/splom/marker/_colorsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="colorsrc", parent_name="splom.marker", **kwargs): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='splom.marker', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/_line.py b/packages/python/plotly/plotly/validators/splom/marker/_line.py index 2e9e061b0f2..7bc493b8834 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/_line.py +++ b/packages/python/plotly/plotly/validators/splom/marker/_line.py @@ -1,105 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="splom.marker", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.line.colorscale`. Has an - effect only if in `marker.line.color` is set to - a numerical array. In case `colorscale` is - unspecified or `autocolorscale` is true, the - default palette will be chosen according to - whether numbers in the `color` array are all - positive, all negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - in `marker.line.color`) or the bounds set in - `marker.line.cmin` and `marker.line.cmax` Has - an effect only if in `marker.line.color` is set - to a numerical array. Defaults to `false` when - `marker.line.cmin` and `marker.line.cmax` are - set by the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmin` must be set as well. - cmid - Sets the mid-point of the color domain by - scaling `marker.line.cmin` and/or - `marker.line.cmax` to be equidistant to this - point. Has an effect only if in - `marker.line.color` is set to a numerical - array. Value should have the same units as in - `marker.line.color`. Has no effect when - `marker.line.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if in `marker.line.color` is set - to a numerical array. Value should have the - same units as in `marker.line.color` and if - set, `marker.line.cmax` must be set as well. - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorscale - Sets the colorscale. Has an effect only if in - `marker.line.color` is set to a numerical - array. The colorscale must be an array - containing arrays mapping a normalized value to - an rgb, rgba, hex, hsl, hsv, or named color - string. At minimum, a mapping for the lowest - (0) and highest (1) values are required. For - example, `[[0, 'rgb(0,0,255)'], [1, - 'rgb(255,0,0)']]`. To control the bounds of the - colorscale in color space, use - `marker.line.cmin` and `marker.line.cmax`. - Alternatively, `colorscale` may be a palette - name string of the following list: Blackbody,Bl - uered,Blues,Cividis,Earth,Electric,Greens,Greys - ,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viri - dis,YlGnBu,YlOrRd. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - reversescale - Reverses the color mapping if true. Has an - effect only if in `marker.line.color` is set to - a numerical array. If true, `marker.line.cmin` - will correspond to the last color in the array - and `marker.line.cmax` will correspond to the - first color. - width - Sets the width (in px) of the lines bounding - the marker points. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='splom.marker', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/_opacity.py b/packages/python/plotly/plotly/validators/splom/marker/_opacity.py index adf1a014c1a..c73fb799d39 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/splom/marker/_opacity.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="splom.marker", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='splom.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/_opacitysrc.py b/packages/python/plotly/plotly/validators/splom/marker/_opacitysrc.py index 0e0f2d021f9..a5511ce4bde 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/_opacitysrc.py +++ b/packages/python/plotly/plotly/validators/splom/marker/_opacitysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="opacitysrc", parent_name="splom.marker", **kwargs): - super(OpacitysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacitysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='opacitysrc', + parent_name='splom.marker', + **kwargs): + super(OpacitysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/_reversescale.py b/packages/python/plotly/plotly/validators/splom/marker/_reversescale.py index 0991e079c11..0420eb73281 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/_reversescale.py +++ b/packages/python/plotly/plotly/validators/splom/marker/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="splom.marker", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='splom.marker', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/_showscale.py b/packages/python/plotly/plotly/validators/splom/marker/_showscale.py index 6b1ef8c0408..d2d96d0c06d 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/_showscale.py +++ b/packages/python/plotly/plotly/validators/splom/marker/_showscale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showscale", parent_name="splom.marker", **kwargs): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='splom.marker', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/_size.py b/packages/python/plotly/plotly/validators/splom/marker/_size.py index 5c07388eb0b..c661b261ea1 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/_size.py +++ b/packages/python/plotly/plotly/validators/splom/marker/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="splom.marker", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "markerSize"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='splom.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'markerSize'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/_sizemin.py b/packages/python/plotly/plotly/validators/splom/marker/_sizemin.py index 8c932263cbc..9bb224a1e9b 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/_sizemin.py +++ b/packages/python/plotly/plotly/validators/splom/marker/_sizemin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="sizemin", parent_name="splom.marker", **kwargs): - super(SizeminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sizemin', + parent_name='splom.marker', + **kwargs): + super(SizeminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/_sizemode.py b/packages/python/plotly/plotly/validators/splom/marker/_sizemode.py index 88dbe2bdde6..defaacdc43d 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/_sizemode.py +++ b/packages/python/plotly/plotly/validators/splom/marker/_sizemode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="sizemode", parent_name="splom.marker", **kwargs): - super(SizemodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["diameter", "area"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizemodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='sizemode', + parent_name='splom.marker', + **kwargs): + super(SizemodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['diameter', 'area']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/_sizeref.py b/packages/python/plotly/plotly/validators/splom/marker/_sizeref.py index e9eac467440..487afb12f60 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/_sizeref.py +++ b/packages/python/plotly/plotly/validators/splom/marker/_sizeref.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="sizeref", parent_name="splom.marker", **kwargs): - super(SizerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizerefValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sizeref', + parent_name='splom.marker', + **kwargs): + super(SizerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/_sizesrc.py b/packages/python/plotly/plotly/validators/splom/marker/_sizesrc.py index 56509265222..a20b90020a0 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/splom/marker/_sizesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="sizesrc", parent_name="splom.marker", **kwargs): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='splom.marker', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/_symbol.py b/packages/python/plotly/plotly/validators/splom/marker/_symbol.py index 84a640a528b..5447168a3fe 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/_symbol.py +++ b/packages/python/plotly/plotly/validators/splom/marker/_symbol.py @@ -1,503 +1,15 @@ -import _plotly_utils.basevalidators -class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="symbol", parent_name="splom.marker", **kwargs): - super(SymbolValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - 0, - "0", - "circle", - 100, - "100", - "circle-open", - 200, - "200", - "circle-dot", - 300, - "300", - "circle-open-dot", - 1, - "1", - "square", - 101, - "101", - "square-open", - 201, - "201", - "square-dot", - 301, - "301", - "square-open-dot", - 2, - "2", - "diamond", - 102, - "102", - "diamond-open", - 202, - "202", - "diamond-dot", - 302, - "302", - "diamond-open-dot", - 3, - "3", - "cross", - 103, - "103", - "cross-open", - 203, - "203", - "cross-dot", - 303, - "303", - "cross-open-dot", - 4, - "4", - "x", - 104, - "104", - "x-open", - 204, - "204", - "x-dot", - 304, - "304", - "x-open-dot", - 5, - "5", - "triangle-up", - 105, - "105", - "triangle-up-open", - 205, - "205", - "triangle-up-dot", - 305, - "305", - "triangle-up-open-dot", - 6, - "6", - "triangle-down", - 106, - "106", - "triangle-down-open", - 206, - "206", - "triangle-down-dot", - 306, - "306", - "triangle-down-open-dot", - 7, - "7", - "triangle-left", - 107, - "107", - "triangle-left-open", - 207, - "207", - "triangle-left-dot", - 307, - "307", - "triangle-left-open-dot", - 8, - "8", - "triangle-right", - 108, - "108", - "triangle-right-open", - 208, - "208", - "triangle-right-dot", - 308, - "308", - "triangle-right-open-dot", - 9, - "9", - "triangle-ne", - 109, - "109", - "triangle-ne-open", - 209, - "209", - "triangle-ne-dot", - 309, - "309", - "triangle-ne-open-dot", - 10, - "10", - "triangle-se", - 110, - "110", - "triangle-se-open", - 210, - "210", - "triangle-se-dot", - 310, - "310", - "triangle-se-open-dot", - 11, - "11", - "triangle-sw", - 111, - "111", - "triangle-sw-open", - 211, - "211", - "triangle-sw-dot", - 311, - "311", - "triangle-sw-open-dot", - 12, - "12", - "triangle-nw", - 112, - "112", - "triangle-nw-open", - 212, - "212", - "triangle-nw-dot", - 312, - "312", - "triangle-nw-open-dot", - 13, - "13", - "pentagon", - 113, - "113", - "pentagon-open", - 213, - "213", - "pentagon-dot", - 313, - "313", - "pentagon-open-dot", - 14, - "14", - "hexagon", - 114, - "114", - "hexagon-open", - 214, - "214", - "hexagon-dot", - 314, - "314", - "hexagon-open-dot", - 15, - "15", - "hexagon2", - 115, - "115", - "hexagon2-open", - 215, - "215", - "hexagon2-dot", - 315, - "315", - "hexagon2-open-dot", - 16, - "16", - "octagon", - 116, - "116", - "octagon-open", - 216, - "216", - "octagon-dot", - 316, - "316", - "octagon-open-dot", - 17, - "17", - "star", - 117, - "117", - "star-open", - 217, - "217", - "star-dot", - 317, - "317", - "star-open-dot", - 18, - "18", - "hexagram", - 118, - "118", - "hexagram-open", - 218, - "218", - "hexagram-dot", - 318, - "318", - "hexagram-open-dot", - 19, - "19", - "star-triangle-up", - 119, - "119", - "star-triangle-up-open", - 219, - "219", - "star-triangle-up-dot", - 319, - "319", - "star-triangle-up-open-dot", - 20, - "20", - "star-triangle-down", - 120, - "120", - "star-triangle-down-open", - 220, - "220", - "star-triangle-down-dot", - 320, - "320", - "star-triangle-down-open-dot", - 21, - "21", - "star-square", - 121, - "121", - "star-square-open", - 221, - "221", - "star-square-dot", - 321, - "321", - "star-square-open-dot", - 22, - "22", - "star-diamond", - 122, - "122", - "star-diamond-open", - 222, - "222", - "star-diamond-dot", - 322, - "322", - "star-diamond-open-dot", - 23, - "23", - "diamond-tall", - 123, - "123", - "diamond-tall-open", - 223, - "223", - "diamond-tall-dot", - 323, - "323", - "diamond-tall-open-dot", - 24, - "24", - "diamond-wide", - 124, - "124", - "diamond-wide-open", - 224, - "224", - "diamond-wide-dot", - 324, - "324", - "diamond-wide-open-dot", - 25, - "25", - "hourglass", - 125, - "125", - "hourglass-open", - 26, - "26", - "bowtie", - 126, - "126", - "bowtie-open", - 27, - "27", - "circle-cross", - 127, - "127", - "circle-cross-open", - 28, - "28", - "circle-x", - 128, - "128", - "circle-x-open", - 29, - "29", - "square-cross", - 129, - "129", - "square-cross-open", - 30, - "30", - "square-x", - 130, - "130", - "square-x-open", - 31, - "31", - "diamond-cross", - 131, - "131", - "diamond-cross-open", - 32, - "32", - "diamond-x", - 132, - "132", - "diamond-x-open", - 33, - "33", - "cross-thin", - 133, - "133", - "cross-thin-open", - 34, - "34", - "x-thin", - 134, - "134", - "x-thin-open", - 35, - "35", - "asterisk", - 135, - "135", - "asterisk-open", - 36, - "36", - "hash", - 136, - "136", - "hash-open", - 236, - "236", - "hash-dot", - 336, - "336", - "hash-open-dot", - 37, - "37", - "y-up", - 137, - "137", - "y-up-open", - 38, - "38", - "y-down", - 138, - "138", - "y-down-open", - 39, - "39", - "y-left", - 139, - "139", - "y-left-open", - 40, - "40", - "y-right", - 140, - "140", - "y-right-open", - 41, - "41", - "line-ew", - 141, - "141", - "line-ew-open", - 42, - "42", - "line-ns", - 142, - "142", - "line-ns-open", - 43, - "43", - "line-ne", - 143, - "143", - "line-ne-open", - 44, - "44", - "line-nw", - 144, - "144", - "line-nw-open", - 45, - "45", - "arrow-up", - 145, - "145", - "arrow-up-open", - 46, - "46", - "arrow-down", - 146, - "146", - "arrow-down-open", - 47, - "47", - "arrow-left", - 147, - "147", - "arrow-left-open", - 48, - "48", - "arrow-right", - 148, - "148", - "arrow-right-open", - 49, - "49", - "arrow-bar-up", - 149, - "149", - "arrow-bar-up-open", - 50, - "50", - "arrow-bar-down", - 150, - "150", - "arrow-bar-down-open", - 51, - "51", - "arrow-bar-left", - 151, - "151", - "arrow-bar-left-open", - 52, - "52", - "arrow-bar-right", - 152, - "152", - "arrow-bar-right-open", - 53, - "53", - "arrow", - 153, - "153", - "arrow-open", - 54, - "54", - "arrow-wide", - 154, - "154", - "arrow-wide-open", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SymbolValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='symbol', + parent_name='splom.marker', + **kwargs): + super(SymbolValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', [0, '0', 'circle', 100, '100', 'circle-open', 200, '200', 'circle-dot', 300, '300', 'circle-open-dot', 1, '1', 'square', 101, '101', 'square-open', 201, '201', 'square-dot', 301, '301', 'square-open-dot', 2, '2', 'diamond', 102, '102', 'diamond-open', 202, '202', 'diamond-dot', 302, '302', 'diamond-open-dot', 3, '3', 'cross', 103, '103', 'cross-open', 203, '203', 'cross-dot', 303, '303', 'cross-open-dot', 4, '4', 'x', 104, '104', 'x-open', 204, '204', 'x-dot', 304, '304', 'x-open-dot', 5, '5', 'triangle-up', 105, '105', 'triangle-up-open', 205, '205', 'triangle-up-dot', 305, '305', 'triangle-up-open-dot', 6, '6', 'triangle-down', 106, '106', 'triangle-down-open', 206, '206', 'triangle-down-dot', 306, '306', 'triangle-down-open-dot', 7, '7', 'triangle-left', 107, '107', 'triangle-left-open', 207, '207', 'triangle-left-dot', 307, '307', 'triangle-left-open-dot', 8, '8', 'triangle-right', 108, '108', 'triangle-right-open', 208, '208', 'triangle-right-dot', 308, '308', 'triangle-right-open-dot', 9, '9', 'triangle-ne', 109, '109', 'triangle-ne-open', 209, '209', 'triangle-ne-dot', 309, '309', 'triangle-ne-open-dot', 10, '10', 'triangle-se', 110, '110', 'triangle-se-open', 210, '210', 'triangle-se-dot', 310, '310', 'triangle-se-open-dot', 11, '11', 'triangle-sw', 111, '111', 'triangle-sw-open', 211, '211', 'triangle-sw-dot', 311, '311', 'triangle-sw-open-dot', 12, '12', 'triangle-nw', 112, '112', 'triangle-nw-open', 212, '212', 'triangle-nw-dot', 312, '312', 'triangle-nw-open-dot', 13, '13', 'pentagon', 113, '113', 'pentagon-open', 213, '213', 'pentagon-dot', 313, '313', 'pentagon-open-dot', 14, '14', 'hexagon', 114, '114', 'hexagon-open', 214, '214', 'hexagon-dot', 314, '314', 'hexagon-open-dot', 15, '15', 'hexagon2', 115, '115', 'hexagon2-open', 215, '215', 'hexagon2-dot', 315, '315', 'hexagon2-open-dot', 16, '16', 'octagon', 116, '116', 'octagon-open', 216, '216', 'octagon-dot', 316, '316', 'octagon-open-dot', 17, '17', 'star', 117, '117', 'star-open', 217, '217', 'star-dot', 317, '317', 'star-open-dot', 18, '18', 'hexagram', 118, '118', 'hexagram-open', 218, '218', 'hexagram-dot', 318, '318', 'hexagram-open-dot', 19, '19', 'star-triangle-up', 119, '119', 'star-triangle-up-open', 219, '219', 'star-triangle-up-dot', 319, '319', 'star-triangle-up-open-dot', 20, '20', 'star-triangle-down', 120, '120', 'star-triangle-down-open', 220, '220', 'star-triangle-down-dot', 320, '320', 'star-triangle-down-open-dot', 21, '21', 'star-square', 121, '121', 'star-square-open', 221, '221', 'star-square-dot', 321, '321', 'star-square-open-dot', 22, '22', 'star-diamond', 122, '122', 'star-diamond-open', 222, '222', 'star-diamond-dot', 322, '322', 'star-diamond-open-dot', 23, '23', 'diamond-tall', 123, '123', 'diamond-tall-open', 223, '223', 'diamond-tall-dot', 323, '323', 'diamond-tall-open-dot', 24, '24', 'diamond-wide', 124, '124', 'diamond-wide-open', 224, '224', 'diamond-wide-dot', 324, '324', 'diamond-wide-open-dot', 25, '25', 'hourglass', 125, '125', 'hourglass-open', 26, '26', 'bowtie', 126, '126', 'bowtie-open', 27, '27', 'circle-cross', 127, '127', 'circle-cross-open', 28, '28', 'circle-x', 128, '128', 'circle-x-open', 29, '29', 'square-cross', 129, '129', 'square-cross-open', 30, '30', 'square-x', 130, '130', 'square-x-open', 31, '31', 'diamond-cross', 131, '131', 'diamond-cross-open', 32, '32', 'diamond-x', 132, '132', 'diamond-x-open', 33, '33', 'cross-thin', 133, '133', 'cross-thin-open', 34, '34', 'x-thin', 134, '134', 'x-thin-open', 35, '35', 'asterisk', 135, '135', 'asterisk-open', 36, '36', 'hash', 136, '136', 'hash-open', 236, '236', 'hash-dot', 336, '336', 'hash-open-dot', 37, '37', 'y-up', 137, '137', 'y-up-open', 38, '38', 'y-down', 138, '138', 'y-down-open', 39, '39', 'y-left', 139, '139', 'y-left-open', 40, '40', 'y-right', 140, '140', 'y-right-open', 41, '41', 'line-ew', 141, '141', 'line-ew-open', 42, '42', 'line-ns', 142, '142', 'line-ns-open', 43, '43', 'line-ne', 143, '143', 'line-ne-open', 44, '44', 'line-nw', 144, '144', 'line-nw-open', 45, '45', 'arrow-up', 145, '145', 'arrow-up-open', 46, '46', 'arrow-down', 146, '146', 'arrow-down-open', 47, '47', 'arrow-left', 147, '147', 'arrow-left-open', 48, '48', 'arrow-right', 148, '148', 'arrow-right-open', 49, '49', 'arrow-bar-up', 149, '149', 'arrow-bar-up-open', 50, '50', 'arrow-bar-down', 150, '150', 'arrow-bar-down-open', 51, '51', 'arrow-bar-left', 151, '151', 'arrow-bar-left-open', 52, '52', 'arrow-bar-right', 152, '152', 'arrow-bar-right-open', 53, '53', 'arrow', 153, '153', 'arrow-open', 54, '54', 'arrow-wide', 154, '154', 'arrow-wide-open']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/_symbolsrc.py b/packages/python/plotly/plotly/validators/splom/marker/_symbolsrc.py index 86d12111d37..d54736ed938 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/_symbolsrc.py +++ b/packages/python/plotly/plotly/validators/splom/marker/_symbolsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="symbolsrc", parent_name="splom.marker", **kwargs): - super(SymbolsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SymbolsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='symbolsrc', + parent_name='splom.marker', + **kwargs): + super(SymbolsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_bgcolor.py index 1bdd0f6f7fc..d28501773d7 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="splom.marker.colorbar", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='splom.marker.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_bordercolor.py index eefab3b63d8..0b0f3fe7272 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="splom.marker.colorbar", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='splom.marker.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_borderwidth.py index a015405f39b..446827d229e 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_borderwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderwidth", parent_name="splom.marker.colorbar", **kwargs - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='splom.marker.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_dtick.py index 94137c6ead0..742741139ad 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="splom.marker.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='splom.marker.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_exponentformat.py index e2006f3c63b..8e9e52f6494 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_exponentformat.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="exponentformat", - parent_name="splom.marker.colorbar", - **kwargs, - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='splom.marker.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_labelalias.py index b8740d3f6a0..3c3ea78dd3e 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="splom.marker.colorbar", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='splom.marker.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_len.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_len.py index 8ee1cb546e8..57f4ac24821 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_len.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="len", parent_name="splom.marker.colorbar", **kwargs - ): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='splom.marker.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_lenmode.py index 0211dd3958b..49b85ea3ad1 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_lenmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="lenmode", parent_name="splom.marker.colorbar", **kwargs - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='splom.marker.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_minexponent.py index 549eb3f52c2..10aab9d498a 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="splom.marker.colorbar", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='splom.marker.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_nticks.py index a239eadbbd6..1d2c16fb214 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="splom.marker.colorbar", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='splom.marker.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_orientation.py index 19f759b36c6..41d4f4a0e48 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_orientation.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="orientation", parent_name="splom.marker.colorbar", **kwargs - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='splom.marker.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_outlinecolor.py index 3798c06e1e4..2b510956531 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_outlinecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="outlinecolor", parent_name="splom.marker.colorbar", **kwargs - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='splom.marker.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_outlinewidth.py index 3e53fb8835e..b009fd43178 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_outlinewidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="outlinewidth", parent_name="splom.marker.colorbar", **kwargs - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='splom.marker.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_separatethousands.py index dc2166b0230..f38d039a915 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="splom.marker.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='splom.marker.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_showexponent.py index c54679d11c3..b26e771d17a 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="splom.marker.colorbar", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='splom.marker.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_showticklabels.py index c1784f6af37..d5d8aa7d1e4 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="splom.marker.colorbar", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='splom.marker.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_showtickprefix.py index 2d321d623a9..a5eca9e3c4b 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="splom.marker.colorbar", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='splom.marker.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_showticksuffix.py index 85a946ed6dc..7d6501f922a 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="splom.marker.colorbar", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='splom.marker.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_thickness.py index 35c28eb477c..b4c073cb907 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="splom.marker.colorbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='splom.marker.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_thicknessmode.py index 0cd70fbd3aa..d4da6ed3ece 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_thicknessmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="thicknessmode", parent_name="splom.marker.colorbar", **kwargs - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='splom.marker.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tick0.py index 7a74854f3d3..e8608da625b 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="splom.marker.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='splom.marker.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickangle.py index 8d119370755..2573f7803b1 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="splom.marker.colorbar", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='splom.marker.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickcolor.py index f8ef3c17e41..2ea02e45e5c 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="splom.marker.colorbar", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='splom.marker.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickfont.py index 8e67cf664ab..8cb9954c024 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="splom.marker.colorbar", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='splom.marker.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickformat.py index 0c64f5d479d..29a8794fffd 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="splom.marker.colorbar", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='splom.marker.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickformatstopdefaults.py index 9bf1ed3b6f7..04a480797b2 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="splom.marker.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='splom.marker.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickformatstops.py index 19be3efb3b2..3f975763ae8 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="splom.marker.colorbar", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='splom.marker.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticklabeloverflow.py index 03ceb0340cd..ac3934054cd 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="splom.marker.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='splom.marker.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticklabelposition.py index 4ea1237a4bb..1c053837c7b 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="splom.marker.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='splom.marker.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticklabelstep.py index 60e50e822cd..7ddd50091fc 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticklabelstep.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="ticklabelstep", parent_name="splom.marker.colorbar", **kwargs - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='splom.marker.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticklen.py index 9a20020f2a3..d565c5e3490 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="splom.marker.colorbar", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='splom.marker.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickmode.py index 3e722515279..3782e93873a 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="splom.marker.colorbar", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='splom.marker.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickprefix.py index b03ca3b2279..aa938e0ab69 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="splom.marker.colorbar", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='splom.marker.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticks.py index b6d261c4470..d6a254f61a8 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="splom.marker.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='splom.marker.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticksuffix.py index 5b3795956a5..91b8c8714f4 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="splom.marker.colorbar", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='splom.marker.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticktext.py index 8e4b0ecde45..e290d305b35 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="splom.marker.colorbar", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='splom.marker.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticktextsrc.py index bad3971079f..c35beaf5734 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="splom.marker.colorbar", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='splom.marker.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickvals.py index 885a2e359a3..bd586c43680 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="splom.marker.colorbar", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='splom.marker.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickvalssrc.py index dd9bb74dc47..ebde1c006fc 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="splom.marker.colorbar", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='splom.marker.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickwidth.py index 968c61efc41..e25822a0227 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="splom.marker.colorbar", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='splom.marker.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_title.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_title.py index 009b868098d..91bcd7e5941 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="splom.marker.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='splom.marker.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_x.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_x.py index 86781bea2d2..efcc7f64cb0 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x", parent_name="splom.marker.colorbar", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='splom.marker.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_xanchor.py index 2c6c0315a72..87995798c86 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="splom.marker.colorbar", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='splom.marker.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_xpad.py index 4a67e6ecb24..0af1ecb708b 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_xpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="xpad", parent_name="splom.marker.colorbar", **kwargs - ): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='splom.marker.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_xref.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_xref.py index 85a16f86e63..ec9fd5cf61d 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xref", parent_name="splom.marker.colorbar", **kwargs - ): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='splom.marker.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_y.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_y.py index 1ce993457d6..0247e2aaf51 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y", parent_name="splom.marker.colorbar", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='splom.marker.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_yanchor.py index db3ddd987e8..0738ee27bca 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="splom.marker.colorbar", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='splom.marker.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ypad.py index 3f1ab55e297..3aeadc3e52f 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_ypad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ypad", parent_name="splom.marker.colorbar", **kwargs - ): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='splom.marker.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_yref.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_yref.py index 9570dca0624..82d23cc7ce9 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yref", parent_name="splom.marker.colorbar", **kwargs - ): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='splom.marker.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_color.py index 70b08dec01e..3d87d9ea36a 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="splom.marker.colorbar.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='splom.marker.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_family.py index 4e926319697..482228fdd1a 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="splom.marker.colorbar.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='splom.marker.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_lineposition.py index a6e4d7db42e..72c3e192eb3 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="splom.marker.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='splom.marker.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_shadow.py index 36be3606148..485eca9be80 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="splom.marker.colorbar.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='splom.marker.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_size.py index f5edd4bd9fc..2ec380041dc 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="splom.marker.colorbar.tickfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='splom.marker.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_style.py index 4cfece7d158..18fcbd0c3d2 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="splom.marker.colorbar.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='splom.marker.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_textcase.py index 57827e8cfb2..fb292dbe97b 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="splom.marker.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='splom.marker.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_variant.py index 9b719133d9c..d6dc096eb8b 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="splom.marker.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='splom.marker.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_weight.py index 217ce3f41c9..ca0ff41ebed 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="splom.marker.colorbar.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='splom.marker.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickformatstop/_dtickrange.py index 063702eb057..371651272a4 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="splom.marker.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - items=kwargs.pop( - "items", - [ - {"editType": "colorbars", "valType": "any"}, - {"editType": "colorbars", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='splom.marker.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + items=kwargs.pop('items', [{'editType': 'colorbars', 'valType': 'any'}, {'editType': 'colorbars', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickformatstop/_enabled.py index 34d90d696e2..a85362fb27c 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="splom.marker.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='splom.marker.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickformatstop/_name.py index a63e1fc7a40..f0c8352618c 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="splom.marker.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='splom.marker.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickformatstop/_templateitemname.py index 7d8c32d9c00..d5892f708b6 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="splom.marker.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='splom.marker.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickformatstop/_value.py index 778cba3e882..a9dc3be3435 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="splom.marker.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='splom.marker.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/_font.py index 2fe8f613e48..3f7f1bf72e6 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="splom.marker.colorbar.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='splom.marker.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/_side.py index 27ffa9f8b68..613a2ea62fb 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/_side.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="side", parent_name="splom.marker.colorbar.title", **kwargs - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='splom.marker.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/_text.py index 319d24b380a..47f75881782 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="splom.marker.colorbar.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='splom.marker.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_color.py index 883525b62fa..d57722cb5ce 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="splom.marker.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='splom.marker.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_family.py index dd90640b544..0ddb4641ff8 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="splom.marker.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='splom.marker.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_lineposition.py index b02be928ed8..2c58adb294a 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="splom.marker.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='splom.marker.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_shadow.py index 0dd2f9a954a..3ed628b6508 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="splom.marker.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='splom.marker.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_size.py index 37341fbf428..81545754a40 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="splom.marker.colorbar.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='splom.marker.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_style.py index e0fa35e0a08..731a066f72d 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="splom.marker.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='splom.marker.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_textcase.py index 7c20ad1a3b2..bc3b4a50c58 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="splom.marker.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='splom.marker.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_variant.py index 3729a3900e8..97afd3cc3dc 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="splom.marker.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='splom.marker.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_weight.py index 9b7e501e885..44f79761a23 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="splom.marker.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='splom.marker.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/line/__init__.py b/packages/python/plotly/plotly/validators/splom/marker/line/__init__.py index facbe33f884..55d423b11da 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/marker/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._widthsrc import WidthsrcValidator from ._width import WidthValidator @@ -16,22 +15,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._widthsrc.WidthsrcValidator", - "._width.WidthValidator", - "._reversescale.ReversescaleValidator", - "._colorsrc.ColorsrcValidator", - "._colorscale.ColorscaleValidator", - "._coloraxis.ColoraxisValidator", - "._color.ColorValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._widthsrc.WidthsrcValidator', '._width.WidthValidator', '._reversescale.ReversescaleValidator', '._colorsrc.ColorsrcValidator', '._colorscale.ColorscaleValidator', '._coloraxis.ColoraxisValidator', '._color.ColorValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/splom/marker/line/_autocolorscale.py b/packages/python/plotly/plotly/validators/splom/marker/line/_autocolorscale.py index 99950c8a334..2eaad37c06d 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/line/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/splom/marker/line/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="splom.marker.line", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='splom.marker.line', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/line/_cauto.py b/packages/python/plotly/plotly/validators/splom/marker/line/_cauto.py index 66f346df8ec..ed751ee05fc 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/line/_cauto.py +++ b/packages/python/plotly/plotly/validators/splom/marker/line/_cauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cauto", parent_name="splom.marker.line", **kwargs): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='splom.marker.line', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/line/_cmax.py b/packages/python/plotly/plotly/validators/splom/marker/line/_cmax.py index 4b38566d8fc..de9bb1d6d48 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/line/_cmax.py +++ b/packages/python/plotly/plotly/validators/splom/marker/line/_cmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmax", parent_name="splom.marker.line", **kwargs): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='splom.marker.line', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/line/_cmid.py b/packages/python/plotly/plotly/validators/splom/marker/line/_cmid.py index b1277f8e3eb..0b61cc31537 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/line/_cmid.py +++ b/packages/python/plotly/plotly/validators/splom/marker/line/_cmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmid", parent_name="splom.marker.line", **kwargs): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='splom.marker.line', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/line/_cmin.py b/packages/python/plotly/plotly/validators/splom/marker/line/_cmin.py index e6e9e4b1cca..450ba05f8cd 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/line/_cmin.py +++ b/packages/python/plotly/plotly/validators/splom/marker/line/_cmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmin", parent_name="splom.marker.line", **kwargs): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='splom.marker.line', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/line/_color.py b/packages/python/plotly/plotly/validators/splom/marker/line/_color.py index 5924e45bda2..84f3c203526 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/line/_color.py +++ b/packages/python/plotly/plotly/validators/splom/marker/line/_color.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="splom.marker.line", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - colorscale_path=kwargs.pop( - "colorscale_path", "splom.marker.line.colorscale" - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='splom.marker.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + colorscale_path=kwargs.pop('colorscale_path', 'splom.marker.line.colorscale'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/line/_coloraxis.py b/packages/python/plotly/plotly/validators/splom/marker/line/_coloraxis.py index 8cb2af66907..9aea1488d17 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/line/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/splom/marker/line/_coloraxis.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name="coloraxis", parent_name="splom.marker.line", **kwargs - ): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='splom.marker.line', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/line/_colorscale.py b/packages/python/plotly/plotly/validators/splom/marker/line/_colorscale.py index e5dc89a528e..9b742eb3569 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/line/_colorscale.py +++ b/packages/python/plotly/plotly/validators/splom/marker/line/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="splom.marker.line", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='splom.marker.line', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/line/_colorsrc.py b/packages/python/plotly/plotly/validators/splom/marker/line/_colorsrc.py index 9f3b7393884..af8175a6de6 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/line/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/splom/marker/line/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="splom.marker.line", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='splom.marker.line', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/line/_reversescale.py b/packages/python/plotly/plotly/validators/splom/marker/line/_reversescale.py index 8777171cf85..294c4b0c99e 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/line/_reversescale.py +++ b/packages/python/plotly/plotly/validators/splom/marker/line/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="splom.marker.line", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='splom.marker.line', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/line/_width.py b/packages/python/plotly/plotly/validators/splom/marker/line/_width.py index 67fad79c09b..8a943774958 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/line/_width.py +++ b/packages/python/plotly/plotly/validators/splom/marker/line/_width.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="splom.marker.line", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='splom.marker.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/marker/line/_widthsrc.py b/packages/python/plotly/plotly/validators/splom/marker/line/_widthsrc.py index 5a7df83ac6f..748a8bd92d4 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/line/_widthsrc.py +++ b/packages/python/plotly/plotly/validators/splom/marker/line/_widthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="widthsrc", parent_name="splom.marker.line", **kwargs - ): - super(WidthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='widthsrc', + parent_name='splom.marker.line', + **kwargs): + super(WidthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/selected/__init__.py b/packages/python/plotly/plotly/validators/splom/selected/__init__.py index e9bdb89f26d..8ee3c0f5c26 100644 --- a/packages/python/plotly/plotly/validators/splom/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/selected/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.MarkerValidator"] + __name__, + [], + ['._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/splom/selected/_marker.py b/packages/python/plotly/plotly/validators/splom/selected/_marker.py index dfdfc3e2daa..759718cdc3c 100644 --- a/packages/python/plotly/plotly/validators/splom/selected/_marker.py +++ b/packages/python/plotly/plotly/validators/splom/selected/_marker.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="splom.selected", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. - size - Sets the marker size of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='splom.selected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/splom/selected/marker/__init__.py index 8c321a38bc5..b7768f024e8 100644 --- a/packages/python/plotly/plotly/validators/splom/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/selected/marker/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._size import SizeValidator from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._size.SizeValidator", - "._opacity.OpacityValidator", - "._color.ColorValidator", - ], + ['._size.SizeValidator', '._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/splom/selected/marker/_color.py b/packages/python/plotly/plotly/validators/splom/selected/marker/_color.py index 4c6eb7afc42..5c4fbe48900 100644 --- a/packages/python/plotly/plotly/validators/splom/selected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/splom/selected/marker/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="splom.selected.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='splom.selected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/selected/marker/_opacity.py b/packages/python/plotly/plotly/validators/splom/selected/marker/_opacity.py index f91c2704b6f..c9bdb72e896 100644 --- a/packages/python/plotly/plotly/validators/splom/selected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/splom/selected/marker/_opacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="splom.selected.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='splom.selected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/selected/marker/_size.py b/packages/python/plotly/plotly/validators/splom/selected/marker/_size.py index 455a2833ea9..45ac90e0bc0 100644 --- a/packages/python/plotly/plotly/validators/splom/selected/marker/_size.py +++ b/packages/python/plotly/plotly/validators/splom/selected/marker/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="splom.selected.marker", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='splom.selected.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/stream/__init__.py b/packages/python/plotly/plotly/validators/splom/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/splom/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/splom/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/splom/stream/_maxpoints.py index 6c15796af58..97cf641c1a9 100644 --- a/packages/python/plotly/plotly/validators/splom/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/splom/stream/_maxpoints.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="maxpoints", parent_name="splom.stream", **kwargs): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='splom.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/stream/_token.py b/packages/python/plotly/plotly/validators/splom/stream/_token.py index 095a71fb22a..4cbda2038d0 100644 --- a/packages/python/plotly/plotly/validators/splom/stream/_token.py +++ b/packages/python/plotly/plotly/validators/splom/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="splom.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='splom.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/unselected/__init__.py b/packages/python/plotly/plotly/validators/splom/unselected/__init__.py index e9bdb89f26d..8ee3c0f5c26 100644 --- a/packages/python/plotly/plotly/validators/splom/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/unselected/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.MarkerValidator"] + __name__, + [], + ['._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/splom/unselected/_marker.py b/packages/python/plotly/plotly/validators/splom/unselected/_marker.py index 5030c7a350f..0e19811a0b8 100644 --- a/packages/python/plotly/plotly/validators/splom/unselected/_marker.py +++ b/packages/python/plotly/plotly/validators/splom/unselected/_marker.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="splom.unselected", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - size - Sets the marker size of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='splom.unselected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/splom/unselected/marker/__init__.py index 8c321a38bc5..b7768f024e8 100644 --- a/packages/python/plotly/plotly/validators/splom/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/unselected/marker/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._size import SizeValidator from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._size.SizeValidator", - "._opacity.OpacityValidator", - "._color.ColorValidator", - ], + ['._size.SizeValidator', '._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/splom/unselected/marker/_color.py b/packages/python/plotly/plotly/validators/splom/unselected/marker/_color.py index a20e158b1e7..a874edd4ee7 100644 --- a/packages/python/plotly/plotly/validators/splom/unselected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/splom/unselected/marker/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="splom.unselected.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='splom.unselected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/unselected/marker/_opacity.py b/packages/python/plotly/plotly/validators/splom/unselected/marker/_opacity.py index 85453eb5c87..c905115430e 100644 --- a/packages/python/plotly/plotly/validators/splom/unselected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/splom/unselected/marker/_opacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="splom.unselected.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='splom.unselected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/splom/unselected/marker/_size.py b/packages/python/plotly/plotly/validators/splom/unselected/marker/_size.py index 5f80f39c7bb..c28d2076f8d 100644 --- a/packages/python/plotly/plotly/validators/splom/unselected/marker/_size.py +++ b/packages/python/plotly/plotly/validators/splom/unselected/marker/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="splom.unselected.marker", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='splom.unselected.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/__init__.py b/packages/python/plotly/plotly/validators/streamtube/__init__.py index 7d348e38db1..0d4710cf44e 100644 --- a/packages/python/plotly/plotly/validators/streamtube/__init__.py +++ b/packages/python/plotly/plotly/validators/streamtube/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zsrc import ZsrcValidator from ._zhoverformat import ZhoverformatValidator @@ -63,69 +62,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zsrc.ZsrcValidator", - "._zhoverformat.ZhoverformatValidator", - "._z.ZValidator", - "._ysrc.YsrcValidator", - "._yhoverformat.YhoverformatValidator", - "._y.YValidator", - "._xsrc.XsrcValidator", - "._xhoverformat.XhoverformatValidator", - "._x.XValidator", - "._wsrc.WsrcValidator", - "._whoverformat.WhoverformatValidator", - "._w.WValidator", - "._vsrc.VsrcValidator", - "._visible.VisibleValidator", - "._vhoverformat.VhoverformatValidator", - "._v.VValidator", - "._usrc.UsrcValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._uhoverformat.UhoverformatValidator", - "._u.UValidator", - "._text.TextValidator", - "._stream.StreamValidator", - "._starts.StartsValidator", - "._sizeref.SizerefValidator", - "._showscale.ShowscaleValidator", - "._showlegend.ShowlegendValidator", - "._scene.SceneValidator", - "._reversescale.ReversescaleValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._maxdisplayed.MaxdisplayedValidator", - "._lightposition.LightpositionValidator", - "._lighting.LightingValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._zsrc.ZsrcValidator', '._zhoverformat.ZhoverformatValidator', '._z.ZValidator', '._ysrc.YsrcValidator', '._yhoverformat.YhoverformatValidator', '._y.YValidator', '._xsrc.XsrcValidator', '._xhoverformat.XhoverformatValidator', '._x.XValidator', '._wsrc.WsrcValidator', '._whoverformat.WhoverformatValidator', '._w.WValidator', '._vsrc.VsrcValidator', '._visible.VisibleValidator', '._vhoverformat.VhoverformatValidator', '._v.VValidator', '._usrc.UsrcValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._uhoverformat.UhoverformatValidator', '._u.UValidator', '._text.TextValidator', '._stream.StreamValidator', '._starts.StartsValidator', '._sizeref.SizerefValidator', '._showscale.ShowscaleValidator', '._showlegend.ShowlegendValidator', '._scene.SceneValidator', '._reversescale.ReversescaleValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._maxdisplayed.MaxdisplayedValidator', '._lightposition.LightpositionValidator', '._lighting.LightingValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/streamtube/_autocolorscale.py b/packages/python/plotly/plotly/validators/streamtube/_autocolorscale.py index e447511e6f5..80dcae1cf34 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/streamtube/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="streamtube", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='streamtube', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_cauto.py b/packages/python/plotly/plotly/validators/streamtube/_cauto.py index 414e80020a2..66eb4d62adf 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_cauto.py +++ b/packages/python/plotly/plotly/validators/streamtube/_cauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cauto", parent_name="streamtube", **kwargs): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='streamtube', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_cmax.py b/packages/python/plotly/plotly/validators/streamtube/_cmax.py index 43ceb305056..f329986d5dd 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_cmax.py +++ b/packages/python/plotly/plotly/validators/streamtube/_cmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmax", parent_name="streamtube", **kwargs): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='streamtube', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_cmid.py b/packages/python/plotly/plotly/validators/streamtube/_cmid.py index 8c5d588529e..84f4ea6feb7 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_cmid.py +++ b/packages/python/plotly/plotly/validators/streamtube/_cmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmid", parent_name="streamtube", **kwargs): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='streamtube', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_cmin.py b/packages/python/plotly/plotly/validators/streamtube/_cmin.py index ceaf33c30ae..95cdd864d2a 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_cmin.py +++ b/packages/python/plotly/plotly/validators/streamtube/_cmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmin", parent_name="streamtube", **kwargs): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='streamtube', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_coloraxis.py b/packages/python/plotly/plotly/validators/streamtube/_coloraxis.py index 611512d151d..a65ce58785c 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/streamtube/_coloraxis.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="coloraxis", parent_name="streamtube", **kwargs): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='streamtube', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_colorbar.py b/packages/python/plotly/plotly/validators/streamtube/_colorbar.py index bc5426a7d3f..a9b8765d507 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_colorbar.py +++ b/packages/python/plotly/plotly/validators/streamtube/_colorbar.py @@ -1,279 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="colorbar", parent_name="streamtube", **kwargs): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.streamt - ube.colorbar.Tickformatstop` instances or dicts - with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.streamtube.colorbar.tickformatstopdefaults), - sets the default property values to use for - elements of streamtube.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.streamtube.colorba - r.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='streamtube', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_colorscale.py b/packages/python/plotly/plotly/validators/streamtube/_colorscale.py index 11f29c538b7..f421e3fadc0 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_colorscale.py +++ b/packages/python/plotly/plotly/validators/streamtube/_colorscale.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__(self, plotly_name="colorscale", parent_name="streamtube", **kwargs): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='streamtube', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_customdata.py b/packages/python/plotly/plotly/validators/streamtube/_customdata.py index 4425ae6ee64..5d8f5856630 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_customdata.py +++ b/packages/python/plotly/plotly/validators/streamtube/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="streamtube", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='streamtube', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_customdatasrc.py b/packages/python/plotly/plotly/validators/streamtube/_customdatasrc.py index 5c11d487e0c..cd47383bfd5 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/streamtube/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="streamtube", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='streamtube', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_hoverinfo.py b/packages/python/plotly/plotly/validators/streamtube/_hoverinfo.py index 45d16d16d56..0c7bd370da6 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/streamtube/_hoverinfo.py @@ -1,17 +1,16 @@ -import _plotly_utils.basevalidators -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="streamtube", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop( - "flags", - ["x", "y", "z", "u", "v", "w", "norm", "divergence", "text", "name"], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='streamtube', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['x', 'y', 'z', 'u', 'v', 'w', 'norm', 'divergence', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/streamtube/_hoverinfosrc.py index 4394473d4bb..ae5e6e3533d 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/streamtube/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="streamtube", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='streamtube', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_hoverlabel.py b/packages/python/plotly/plotly/validators/streamtube/_hoverlabel.py index 53844d700d5..478d2b4ac95 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/streamtube/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="streamtube", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='streamtube', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_hovertemplate.py b/packages/python/plotly/plotly/validators/streamtube/_hovertemplate.py index 4b569bdfd8c..0f34bd0dfd8 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/streamtube/_hovertemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="streamtube", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='streamtube', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/streamtube/_hovertemplatesrc.py index 01f77c33d2a..3b1824ac05f 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/streamtube/_hovertemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertemplatesrc", parent_name="streamtube", **kwargs - ): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='streamtube', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_hovertext.py b/packages/python/plotly/plotly/validators/streamtube/_hovertext.py index 99c3fe86c34..ef2a785e5f4 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_hovertext.py +++ b/packages/python/plotly/plotly/validators/streamtube/_hovertext.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="streamtube", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='streamtube', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_ids.py b/packages/python/plotly/plotly/validators/streamtube/_ids.py index adf0b313b9a..92d2db6f3b7 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_ids.py +++ b/packages/python/plotly/plotly/validators/streamtube/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="streamtube", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='streamtube', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_idssrc.py b/packages/python/plotly/plotly/validators/streamtube/_idssrc.py index 0c1cdbb3184..50aa809093b 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_idssrc.py +++ b/packages/python/plotly/plotly/validators/streamtube/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="streamtube", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='streamtube', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_legend.py b/packages/python/plotly/plotly/validators/streamtube/_legend.py index b1f936142d8..0788925812f 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_legend.py +++ b/packages/python/plotly/plotly/validators/streamtube/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="streamtube", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='streamtube', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_legendgroup.py b/packages/python/plotly/plotly/validators/streamtube/_legendgroup.py index 218ac4ec096..d46f6624872 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/streamtube/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="streamtube", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='streamtube', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/streamtube/_legendgrouptitle.py index 569c8183730..001deed4d54 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/streamtube/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="streamtube", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='streamtube', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_legendrank.py b/packages/python/plotly/plotly/validators/streamtube/_legendrank.py index 76556da110d..28027f6b4f4 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_legendrank.py +++ b/packages/python/plotly/plotly/validators/streamtube/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="streamtube", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='streamtube', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_legendwidth.py b/packages/python/plotly/plotly/validators/streamtube/_legendwidth.py index faaea815d46..058b716e1fc 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/streamtube/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="streamtube", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='streamtube', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_lighting.py b/packages/python/plotly/plotly/validators/streamtube/_lighting.py index ba907df8008..3dbdbbf17a2 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_lighting.py +++ b/packages/python/plotly/plotly/validators/streamtube/_lighting.py @@ -1,40 +1,15 @@ -import _plotly_utils.basevalidators -class LightingValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="lighting", parent_name="streamtube", **kwargs): - super(LightingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Lighting"), - data_docs=kwargs.pop( - "data_docs", - """ - ambient - Ambient light increases overall color - visibility but can wash out the image. - diffuse - Represents the extent that incident rays are - reflected in a range of angles. - facenormalsepsilon - Epsilon for face normals calculation avoids - math issues arising from degenerate geometry. - fresnel - Represents the reflectance as a dependency of - the viewing angle; e.g. paper is reflective - when viewing it from the edge of the paper - (almost 90 degrees), causing shine. - roughness - Alters specular reflection; the rougher the - surface, the wider and less contrasty the - shine. - specular - Represents the level that incident rays are - reflected in a single direction, causing shine. - vertexnormalsepsilon - Epsilon for vertex normals calculation avoids - math issues arising from degenerate geometry. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LightingValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='lighting', + parent_name='streamtube', + **kwargs): + super(LightingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Lighting'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_lightposition.py b/packages/python/plotly/plotly/validators/streamtube/_lightposition.py index e60f1e5fe0b..7e7ad32d1ae 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_lightposition.py +++ b/packages/python/plotly/plotly/validators/streamtube/_lightposition.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class LightpositionValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="lightposition", parent_name="streamtube", **kwargs): - super(LightpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Lightposition"), - data_docs=kwargs.pop( - "data_docs", - """ - x - Numeric vector, representing the X coordinate - for each vertex. - y - Numeric vector, representing the Y coordinate - for each vertex. - z - Numeric vector, representing the Z coordinate - for each vertex. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LightpositionValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='lightposition', + parent_name='streamtube', + **kwargs): + super(LightpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Lightposition'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_maxdisplayed.py b/packages/python/plotly/plotly/validators/streamtube/_maxdisplayed.py index 248040d0d4f..d543b81cade 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_maxdisplayed.py +++ b/packages/python/plotly/plotly/validators/streamtube/_maxdisplayed.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MaxdisplayedValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="maxdisplayed", parent_name="streamtube", **kwargs): - super(MaxdisplayedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxdisplayedValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='maxdisplayed', + parent_name='streamtube', + **kwargs): + super(MaxdisplayedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_meta.py b/packages/python/plotly/plotly/validators/streamtube/_meta.py index 186fe357296..3ccb3b4f6a1 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_meta.py +++ b/packages/python/plotly/plotly/validators/streamtube/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="streamtube", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='streamtube', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_metasrc.py b/packages/python/plotly/plotly/validators/streamtube/_metasrc.py index c886449d3bd..0292027b6bb 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_metasrc.py +++ b/packages/python/plotly/plotly/validators/streamtube/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="streamtube", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='streamtube', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_name.py b/packages/python/plotly/plotly/validators/streamtube/_name.py index 003840f163f..61e7ff2b5a3 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_name.py +++ b/packages/python/plotly/plotly/validators/streamtube/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="streamtube", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='streamtube', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_opacity.py b/packages/python/plotly/plotly/validators/streamtube/_opacity.py index 4ae578cf1eb..60a3b8f8524 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_opacity.py +++ b/packages/python/plotly/plotly/validators/streamtube/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="streamtube", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='streamtube', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_reversescale.py b/packages/python/plotly/plotly/validators/streamtube/_reversescale.py index ae47d520883..9c805d19f5b 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_reversescale.py +++ b/packages/python/plotly/plotly/validators/streamtube/_reversescale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="reversescale", parent_name="streamtube", **kwargs): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='streamtube', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_scene.py b/packages/python/plotly/plotly/validators/streamtube/_scene.py index d822a1afcb0..31856c622c9 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_scene.py +++ b/packages/python/plotly/plotly/validators/streamtube/_scene.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SceneValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="scene", parent_name="streamtube", **kwargs): - super(SceneValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "scene"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SceneValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='scene', + parent_name='streamtube', + **kwargs): + super(SceneValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'scene'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_showlegend.py b/packages/python/plotly/plotly/validators/streamtube/_showlegend.py index b61d95f0c9c..858b45ca014 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_showlegend.py +++ b/packages/python/plotly/plotly/validators/streamtube/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="streamtube", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='streamtube', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_showscale.py b/packages/python/plotly/plotly/validators/streamtube/_showscale.py index 3603ae703db..9f3dc511556 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_showscale.py +++ b/packages/python/plotly/plotly/validators/streamtube/_showscale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showscale", parent_name="streamtube", **kwargs): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='streamtube', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_sizeref.py b/packages/python/plotly/plotly/validators/streamtube/_sizeref.py index 355171d41f3..2e99b57aa03 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_sizeref.py +++ b/packages/python/plotly/plotly/validators/streamtube/_sizeref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="sizeref", parent_name="streamtube", **kwargs): - super(SizerefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizerefValidator(_bv.NumberValidator): + def __init__(self, plotly_name='sizeref', + parent_name='streamtube', + **kwargs): + super(SizerefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_starts.py b/packages/python/plotly/plotly/validators/streamtube/_starts.py index 0ec1167db49..fdf850bc400 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_starts.py +++ b/packages/python/plotly/plotly/validators/streamtube/_starts.py @@ -1,34 +1,15 @@ -import _plotly_utils.basevalidators -class StartsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="starts", parent_name="streamtube", **kwargs): - super(StartsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Starts"), - data_docs=kwargs.pop( - "data_docs", - """ - x - Sets the x components of the starting position - of the streamtubes - xsrc - Sets the source reference on Chart Studio Cloud - for `x`. - y - Sets the y components of the starting position - of the streamtubes - ysrc - Sets the source reference on Chart Studio Cloud - for `y`. - z - Sets the z components of the starting position - of the streamtubes - zsrc - Sets the source reference on Chart Studio Cloud - for `z`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StartsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='starts', + parent_name='streamtube', + **kwargs): + super(StartsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Starts'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_stream.py b/packages/python/plotly/plotly/validators/streamtube/_stream.py index 3e5eb1763cc..326d91d581a 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_stream.py +++ b/packages/python/plotly/plotly/validators/streamtube/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="streamtube", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='streamtube', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_text.py b/packages/python/plotly/plotly/validators/streamtube/_text.py index 3951ed05ab8..47600f071d1 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_text.py +++ b/packages/python/plotly/plotly/validators/streamtube/_text.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="streamtube", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='streamtube', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_u.py b/packages/python/plotly/plotly/validators/streamtube/_u.py index e7ec4cc3829..c1a88829e1e 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_u.py +++ b/packages/python/plotly/plotly/validators/streamtube/_u.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="u", parent_name="streamtube", **kwargs): - super(UValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='u', + parent_name='streamtube', + **kwargs): + super(UValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_uhoverformat.py b/packages/python/plotly/plotly/validators/streamtube/_uhoverformat.py index 4b161217907..68d9c7be629 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_uhoverformat.py +++ b/packages/python/plotly/plotly/validators/streamtube/_uhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uhoverformat", parent_name="streamtube", **kwargs): - super(UhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='uhoverformat', + parent_name='streamtube', + **kwargs): + super(UhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_uid.py b/packages/python/plotly/plotly/validators/streamtube/_uid.py index 9938691c23e..bd702d6832b 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_uid.py +++ b/packages/python/plotly/plotly/validators/streamtube/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="streamtube", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='streamtube', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_uirevision.py b/packages/python/plotly/plotly/validators/streamtube/_uirevision.py index a33d8dd6d6d..e157ab86b22 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_uirevision.py +++ b/packages/python/plotly/plotly/validators/streamtube/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="streamtube", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='streamtube', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_usrc.py b/packages/python/plotly/plotly/validators/streamtube/_usrc.py index e9de223849e..78f58966374 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_usrc.py +++ b/packages/python/plotly/plotly/validators/streamtube/_usrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="usrc", parent_name="streamtube", **kwargs): - super(UsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='usrc', + parent_name='streamtube', + **kwargs): + super(UsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_v.py b/packages/python/plotly/plotly/validators/streamtube/_v.py index 0131b6abb14..cb8dc580850 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_v.py +++ b/packages/python/plotly/plotly/validators/streamtube/_v.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class VValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="v", parent_name="streamtube", **kwargs): - super(VValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='v', + parent_name='streamtube', + **kwargs): + super(VValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_vhoverformat.py b/packages/python/plotly/plotly/validators/streamtube/_vhoverformat.py index 3be49278bb2..4b15551c205 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_vhoverformat.py +++ b/packages/python/plotly/plotly/validators/streamtube/_vhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class VhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="vhoverformat", parent_name="streamtube", **kwargs): - super(VhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='vhoverformat', + parent_name='streamtube', + **kwargs): + super(VhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_visible.py b/packages/python/plotly/plotly/validators/streamtube/_visible.py index 2c718733e82..0bf7860e515 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_visible.py +++ b/packages/python/plotly/plotly/validators/streamtube/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="streamtube", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='streamtube', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_vsrc.py b/packages/python/plotly/plotly/validators/streamtube/_vsrc.py index db01a54b0cb..86af9b742d9 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_vsrc.py +++ b/packages/python/plotly/plotly/validators/streamtube/_vsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class VsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="vsrc", parent_name="streamtube", **kwargs): - super(VsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='vsrc', + parent_name='streamtube', + **kwargs): + super(VsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_w.py b/packages/python/plotly/plotly/validators/streamtube/_w.py index 9350bc96781..c69f141402d 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_w.py +++ b/packages/python/plotly/plotly/validators/streamtube/_w.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class WValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="w", parent_name="streamtube", **kwargs): - super(WValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='w', + parent_name='streamtube', + **kwargs): + super(WValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_whoverformat.py b/packages/python/plotly/plotly/validators/streamtube/_whoverformat.py index d78f9bce9a2..24f1b80c034 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_whoverformat.py +++ b/packages/python/plotly/plotly/validators/streamtube/_whoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class WhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="whoverformat", parent_name="streamtube", **kwargs): - super(WhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='whoverformat', + parent_name='streamtube', + **kwargs): + super(WhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_wsrc.py b/packages/python/plotly/plotly/validators/streamtube/_wsrc.py index d75a7cd8a0f..337a2b9af74 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_wsrc.py +++ b/packages/python/plotly/plotly/validators/streamtube/_wsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class WsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="wsrc", parent_name="streamtube", **kwargs): - super(WsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='wsrc', + parent_name='streamtube', + **kwargs): + super(WsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_x.py b/packages/python/plotly/plotly/validators/streamtube/_x.py index b294dd179e7..cd1580078c8 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_x.py +++ b/packages/python/plotly/plotly/validators/streamtube/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="x", parent_name="streamtube", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='x', + parent_name='streamtube', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_xhoverformat.py b/packages/python/plotly/plotly/validators/streamtube/_xhoverformat.py index 0228a1c2a64..3e42e9c9909 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_xhoverformat.py +++ b/packages/python/plotly/plotly/validators/streamtube/_xhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="xhoverformat", parent_name="streamtube", **kwargs): - super(XhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='xhoverformat', + parent_name='streamtube', + **kwargs): + super(XhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_xsrc.py b/packages/python/plotly/plotly/validators/streamtube/_xsrc.py index 50f8d922ae9..27529c5cddc 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_xsrc.py +++ b/packages/python/plotly/plotly/validators/streamtube/_xsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="xsrc", parent_name="streamtube", **kwargs): - super(XsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='xsrc', + parent_name='streamtube', + **kwargs): + super(XsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_y.py b/packages/python/plotly/plotly/validators/streamtube/_y.py index e7da1a0ec07..357c4c1441d 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_y.py +++ b/packages/python/plotly/plotly/validators/streamtube/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="y", parent_name="streamtube", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='y', + parent_name='streamtube', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_yhoverformat.py b/packages/python/plotly/plotly/validators/streamtube/_yhoverformat.py index 41799faa34d..ee5450c0422 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_yhoverformat.py +++ b/packages/python/plotly/plotly/validators/streamtube/_yhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="yhoverformat", parent_name="streamtube", **kwargs): - super(YhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='yhoverformat', + parent_name='streamtube', + **kwargs): + super(YhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_ysrc.py b/packages/python/plotly/plotly/validators/streamtube/_ysrc.py index cd48e23479c..63f2741b0e1 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_ysrc.py +++ b/packages/python/plotly/plotly/validators/streamtube/_ysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="ysrc", parent_name="streamtube", **kwargs): - super(YsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ysrc', + parent_name='streamtube', + **kwargs): + super(YsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_z.py b/packages/python/plotly/plotly/validators/streamtube/_z.py index 65b3ff9f016..0a4c8dec03b 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_z.py +++ b/packages/python/plotly/plotly/validators/streamtube/_z.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="z", parent_name="streamtube", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='z', + parent_name='streamtube', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_zhoverformat.py b/packages/python/plotly/plotly/validators/streamtube/_zhoverformat.py index a14d8c71b49..a906bf452c3 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_zhoverformat.py +++ b/packages/python/plotly/plotly/validators/streamtube/_zhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="zhoverformat", parent_name="streamtube", **kwargs): - super(ZhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='zhoverformat', + parent_name='streamtube', + **kwargs): + super(ZhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/_zsrc.py b/packages/python/plotly/plotly/validators/streamtube/_zsrc.py index 8f493308139..7ae27067ccf 100644 --- a/packages/python/plotly/plotly/validators/streamtube/_zsrc.py +++ b/packages/python/plotly/plotly/validators/streamtube/_zsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="zsrc", parent_name="streamtube", **kwargs): - super(ZsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='zsrc', + parent_name='streamtube', + **kwargs): + super(ZsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/__init__.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_bgcolor.py index afc98aa58c6..5189ad54b5e 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="streamtube.colorbar", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='streamtube.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_bordercolor.py index 88c898dc752..3c11cf5dd00 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="streamtube.colorbar", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='streamtube.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_borderwidth.py index 96b856de1db..096e61ad6bb 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_borderwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderwidth", parent_name="streamtube.colorbar", **kwargs - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='streamtube.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_dtick.py index 853af5c2d85..96121aec72e 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="streamtube.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='streamtube.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_exponentformat.py index bfe98963f53..86b05979b4d 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_exponentformat.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="exponentformat", parent_name="streamtube.colorbar", **kwargs - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='streamtube.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_labelalias.py index 38050c0e4d0..2b08f897dd8 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="streamtube.colorbar", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='streamtube.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_len.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_len.py index 936737c866e..8fbb36a722c 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_len.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="len", parent_name="streamtube.colorbar", **kwargs): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='streamtube.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_lenmode.py index 02b6395cf21..d4009d401f3 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_lenmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="lenmode", parent_name="streamtube.colorbar", **kwargs - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='streamtube.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_minexponent.py index 830e04a948a..089ca564b9a 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="streamtube.colorbar", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='streamtube.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_nticks.py index b54fdb29cfe..e487c9522ed 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="streamtube.colorbar", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='streamtube.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_orientation.py index f9b5c827f82..8c170fd3893 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_orientation.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="orientation", parent_name="streamtube.colorbar", **kwargs - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='streamtube.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_outlinecolor.py index c8a4679d8bf..a99ffbc893c 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_outlinecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="outlinecolor", parent_name="streamtube.colorbar", **kwargs - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='streamtube.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_outlinewidth.py index 753a45ac367..5cd17d76395 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_outlinewidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="outlinewidth", parent_name="streamtube.colorbar", **kwargs - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='streamtube.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_separatethousands.py index d6f9766ed8a..9c6041e21c5 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="streamtube.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='streamtube.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_showexponent.py index 703ce133ff3..12ca29038ac 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="streamtube.colorbar", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='streamtube.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_showticklabels.py index fc429b3d55b..fb05a7bfd9e 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_showticklabels.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showticklabels", parent_name="streamtube.colorbar", **kwargs - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='streamtube.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_showtickprefix.py index cc8e45420d0..f717e45812d 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_showtickprefix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showtickprefix", parent_name="streamtube.colorbar", **kwargs - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='streamtube.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_showticksuffix.py index f23db30ca68..7ea36dfd75a 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_showticksuffix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showticksuffix", parent_name="streamtube.colorbar", **kwargs - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='streamtube.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_thickness.py index 3e63ef6c3ec..dc35712ffe3 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="streamtube.colorbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='streamtube.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_thicknessmode.py index d20234921db..a05257e1e2a 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_thicknessmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="thicknessmode", parent_name="streamtube.colorbar", **kwargs - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='streamtube.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_tick0.py index 8dbe26870b9..1b6d03c6c74 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="streamtube.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='streamtube.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickangle.py index cb7849a9496..5e853618c28 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="streamtube.colorbar", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='streamtube.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickcolor.py index 3bacdd25026..5df31eb9b66 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="streamtube.colorbar", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='streamtube.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickfont.py index 4df707496b8..9fa9155ecac 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="streamtube.colorbar", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='streamtube.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickformat.py index d234c524ce4..488407bdbd2 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="streamtube.colorbar", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='streamtube.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickformatstopdefaults.py index 9de961159d9..8e8ff045e84 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="streamtube.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='streamtube.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickformatstops.py index 0957e2e8802..8cc0064914a 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickformatstops.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="tickformatstops", parent_name="streamtube.colorbar", **kwargs - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='streamtube.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticklabeloverflow.py index 52c9ad0a538..77d59fef0bb 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="streamtube.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='streamtube.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticklabelposition.py index ab5387fcbba..b9891f76c31 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="streamtube.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='streamtube.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticklabelstep.py index ecae40d6c68..51bd1eb83ae 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticklabelstep.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="ticklabelstep", parent_name="streamtube.colorbar", **kwargs - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='streamtube.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticklen.py index 266630d9b39..fc171e7a5b9 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="streamtube.colorbar", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='streamtube.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickmode.py index 54c74156367..189781925ee 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="streamtube.colorbar", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='streamtube.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickprefix.py index eb39238f811..2d0ff3eb26c 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="streamtube.colorbar", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='streamtube.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticks.py index c93ec6b6758..4418d8edb7a 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="streamtube.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='streamtube.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticksuffix.py index 9b54f6ea12f..0c77a409597 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="streamtube.colorbar", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='streamtube.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticktext.py index 286aaa6dd04..08485f055ce 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="streamtube.colorbar", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='streamtube.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticktextsrc.py index 7490c4121c6..d28e603e357 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="streamtube.colorbar", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='streamtube.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickvals.py index ae08112a36f..8f9e342fd28 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="streamtube.colorbar", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='streamtube.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickvalssrc.py index d48f952d1ad..a541710b199 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="streamtube.colorbar", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='streamtube.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickwidth.py index 3378a533a75..59b8b543438 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="streamtube.colorbar", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='streamtube.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_title.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_title.py index 38ba2860eca..9e17050d604 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="streamtube.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='streamtube.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_x.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_x.py index e4542c802cc..6c1f480be58 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x", parent_name="streamtube.colorbar", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='streamtube.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_xanchor.py index 3961418b38c..bc0e21de552 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="streamtube.colorbar", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='streamtube.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_xpad.py index a41acacf46b..4115aa98747 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_xpad.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="xpad", parent_name="streamtube.colorbar", **kwargs): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='streamtube.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_xref.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_xref.py index cf7c2019693..9599bec7bc9 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_xref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xref", parent_name="streamtube.colorbar", **kwargs): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='streamtube.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_y.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_y.py index 199ce881f56..5ce9455657b 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y", parent_name="streamtube.colorbar", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='streamtube.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_yanchor.py index 03ea8e8f6e0..4f8b5037928 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="streamtube.colorbar", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='streamtube.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_ypad.py index df6fc24f562..af1d49f7bbe 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_ypad.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="ypad", parent_name="streamtube.colorbar", **kwargs): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='streamtube.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/_yref.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/_yref.py index f5f79c39445..bf22aff9841 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/_yref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yref", parent_name="streamtube.colorbar", **kwargs): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='streamtube.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_color.py index b266daf4b80..01f6085d0a0 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="streamtube.colorbar.tickfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='streamtube.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_family.py index 5448e5df4db..a7411b2d208 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="streamtube.colorbar.tickfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='streamtube.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_lineposition.py index 0b725a4f294..7b7dcd1835a 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="streamtube.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='streamtube.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_shadow.py index 6851575d89e..b9b05614c22 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="streamtube.colorbar.tickfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='streamtube.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_size.py index 609ac6bba2b..0588b5a28a8 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="streamtube.colorbar.tickfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='streamtube.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_style.py index 2493839ba44..8691283f57f 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="streamtube.colorbar.tickfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='streamtube.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_textcase.py index f4e3f93c1ad..eda0e57abb7 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="streamtube.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='streamtube.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_variant.py index 4daa5c3dfad..550bb8fbe32 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="streamtube.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='streamtube.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_weight.py index 6fdd15cb382..3fc2470b8c6 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="streamtube.colorbar.tickfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='streamtube.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickformatstop/_dtickrange.py index af746a9b3be..b714d24db6f 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="streamtube.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - items=kwargs.pop( - "items", - [ - {"editType": "colorbars", "valType": "any"}, - {"editType": "colorbars", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='streamtube.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + items=kwargs.pop('items', [{'editType': 'colorbars', 'valType': 'any'}, {'editType': 'colorbars', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickformatstop/_enabled.py index 2265ce90168..e257582c127 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="streamtube.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='streamtube.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickformatstop/_name.py index a8d2f591234..9803250bbc2 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="streamtube.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='streamtube.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickformatstop/_templateitemname.py index 2a35f590742..2afdc70e33f 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="streamtube.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='streamtube.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickformatstop/_value.py index a5fdf0e353b..829794e434c 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="streamtube.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='streamtube.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/_font.py index d19e9c81be2..6878af22560 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="streamtube.colorbar.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='streamtube.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/_side.py index c4f0623fbc9..e43fa5fa415 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/_side.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="side", parent_name="streamtube.colorbar.title", **kwargs - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='streamtube.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/_text.py index 8d512cca5ce..5a7cd65924b 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="streamtube.colorbar.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='streamtube.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_color.py index f2fc38ccc7f..8c7e044df3d 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="streamtube.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='streamtube.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_family.py index e75df89ff99..c1e03fb42ba 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="streamtube.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='streamtube.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_lineposition.py index 9e6ca38eca0..38265cf6f7e 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="streamtube.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='streamtube.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_shadow.py index 587598b2048..db8a93ecbcf 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="streamtube.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='streamtube.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_size.py index a7389c84e50..4c832991371 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="streamtube.colorbar.title.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='streamtube.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_style.py index 7f91a29b8ab..e1b1c7c6411 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="streamtube.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='streamtube.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_textcase.py index 4cd96b7a789..a4c325a9095 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="streamtube.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='streamtube.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_variant.py index 934164529d2..8b72b74e4a7 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="streamtube.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='streamtube.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_weight.py index 333929a4ad9..564554e20f4 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="streamtube.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='streamtube.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_align.py index 7a97ab47911..82b479e269f 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_align.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="align", parent_name="streamtube.hoverlabel", **kwargs - ): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='streamtube.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_alignsrc.py index d4bc995a273..6e483c5daf1 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="streamtube.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='streamtube.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_bgcolor.py index 0c4bf0011b1..eef7c4fe465 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="streamtube.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='streamtube.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_bgcolorsrc.py index 83e8e277e6d..e445e2c3046 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="streamtube.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='streamtube.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_bordercolor.py index 884601f84f3..e0a53a18250 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="streamtube.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='streamtube.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_bordercolorsrc.py index f3fadd7dbc3..4e63dd351f0 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="bordercolorsrc", - parent_name="streamtube.hoverlabel", - **kwargs, - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='streamtube.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_font.py index d1b009c2354..25a77af86fa 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_font.py @@ -1,88 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="streamtube.hoverlabel", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='streamtube.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_namelength.py index ea97dc71314..8e57d68c4bd 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="streamtube.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='streamtube.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_namelengthsrc.py index 1ad3589a874..73749831f5a 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="streamtube.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='streamtube.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_color.py index a5d0e209b02..759ff1a8284 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="streamtube.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='streamtube.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_colorsrc.py index 90a7db2a22e..08efacc72ab 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="streamtube.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='streamtube.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_family.py index fa1be324f88..d2609317d59 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="streamtube.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='streamtube.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_familysrc.py index 5b4e9b4dcf2..ba68e706a7a 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_familysrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="familysrc", - parent_name="streamtube.hoverlabel.font", - **kwargs, - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='streamtube.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_lineposition.py index 8af081cd038..560636ad31d 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="streamtube.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='streamtube.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_linepositionsrc.py index 97bb7baba30..e10184bc623 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="streamtube.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='streamtube.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_shadow.py index 264548d9183..c4912f84bd6 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="streamtube.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='streamtube.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_shadowsrc.py index 81dd1577888..d30e07bbdca 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="shadowsrc", - parent_name="streamtube.hoverlabel.font", - **kwargs, - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='streamtube.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_size.py index 8eea0911251..ca3cd4b56d2 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="streamtube.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='streamtube.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_sizesrc.py index 164eb1a2bc0..4eabf358c90 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="streamtube.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='streamtube.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_style.py index dfaaa9b4adf..57370aadf61 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="streamtube.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='streamtube.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_stylesrc.py index db3dce1262a..70f5c8fe0e7 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="streamtube.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='streamtube.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_textcase.py index 2aab50e6b34..a51b139285d 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="streamtube.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='streamtube.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_textcasesrc.py index 723d482e8e1..b5f4eb2da3d 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="streamtube.hoverlabel.font", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='streamtube.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_variant.py index 1e28a3e07cc..e77895fae16 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="streamtube.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='streamtube.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_variantsrc.py index 5ecc7d01f27..67b2d211116 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_variantsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="variantsrc", - parent_name="streamtube.hoverlabel.font", - **kwargs, - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='streamtube.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_weight.py index 47d7dd2c659..3ec093334c0 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="streamtube.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='streamtube.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_weightsrc.py index cd61852b960..8cc9b9d3711 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/_weightsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="weightsrc", - parent_name="streamtube.hoverlabel.font", - **kwargs, - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='streamtube.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/_font.py index 04536700bd5..16b9533f86a 100644 --- a/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="streamtube.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='streamtube.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/_text.py index bad6ae8ab04..09c66ddcdb3 100644 --- a/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="streamtube.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='streamtube.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_color.py index d73d77840a2..54b1b84783d 100644 --- a/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="streamtube.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='streamtube.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_family.py index b32fdbf7edd..408531521f1 100644 --- a/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="streamtube.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='streamtube.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_lineposition.py index d8606aedead..653df7b4f8c 100644 --- a/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="streamtube.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='streamtube.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_shadow.py index a9d134e9f9d..b188b7129ab 100644 --- a/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="streamtube.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='streamtube.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_size.py index 013cca67580..5d9fc921127 100644 --- a/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="streamtube.legendgrouptitle.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='streamtube.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_style.py index 3cc8892356b..7ee30b14861 100644 --- a/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="streamtube.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='streamtube.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_textcase.py index 8c471e0506c..7a685aeae53 100644 --- a/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="streamtube.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='streamtube.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_variant.py index 5fabf7041f5..654225ad6a5 100644 --- a/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="streamtube.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='streamtube.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_weight.py index d1a49bc4c5b..7bba420cace 100644 --- a/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/streamtube/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="streamtube.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='streamtube.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/lighting/__init__.py b/packages/python/plotly/plotly/validators/streamtube/lighting/__init__.py index 028351f35d6..f9c262cc056 100644 --- a/packages/python/plotly/plotly/validators/streamtube/lighting/__init__.py +++ b/packages/python/plotly/plotly/validators/streamtube/lighting/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._vertexnormalsepsilon import VertexnormalsepsilonValidator from ._specular import SpecularValidator @@ -11,17 +10,10 @@ from ._ambient import AmbientValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._vertexnormalsepsilon.VertexnormalsepsilonValidator", - "._specular.SpecularValidator", - "._roughness.RoughnessValidator", - "._fresnel.FresnelValidator", - "._facenormalsepsilon.FacenormalsepsilonValidator", - "._diffuse.DiffuseValidator", - "._ambient.AmbientValidator", - ], + ['._vertexnormalsepsilon.VertexnormalsepsilonValidator', '._specular.SpecularValidator', '._roughness.RoughnessValidator', '._fresnel.FresnelValidator', '._facenormalsepsilon.FacenormalsepsilonValidator', '._diffuse.DiffuseValidator', '._ambient.AmbientValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/streamtube/lighting/_ambient.py b/packages/python/plotly/plotly/validators/streamtube/lighting/_ambient.py index 91c4b1dd654..7222c19a4a8 100644 --- a/packages/python/plotly/plotly/validators/streamtube/lighting/_ambient.py +++ b/packages/python/plotly/plotly/validators/streamtube/lighting/_ambient.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AmbientValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ambient", parent_name="streamtube.lighting", **kwargs - ): - super(AmbientValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AmbientValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ambient', + parent_name='streamtube.lighting', + **kwargs): + super(AmbientValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/lighting/_diffuse.py b/packages/python/plotly/plotly/validators/streamtube/lighting/_diffuse.py index 694f92711c0..7f081ded1bf 100644 --- a/packages/python/plotly/plotly/validators/streamtube/lighting/_diffuse.py +++ b/packages/python/plotly/plotly/validators/streamtube/lighting/_diffuse.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class DiffuseValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="diffuse", parent_name="streamtube.lighting", **kwargs - ): - super(DiffuseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DiffuseValidator(_bv.NumberValidator): + def __init__(self, plotly_name='diffuse', + parent_name='streamtube.lighting', + **kwargs): + super(DiffuseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/lighting/_facenormalsepsilon.py b/packages/python/plotly/plotly/validators/streamtube/lighting/_facenormalsepsilon.py index f539684c318..b0c73295daa 100644 --- a/packages/python/plotly/plotly/validators/streamtube/lighting/_facenormalsepsilon.py +++ b/packages/python/plotly/plotly/validators/streamtube/lighting/_facenormalsepsilon.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FacenormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="facenormalsepsilon", - parent_name="streamtube.lighting", - **kwargs, - ): - super(FacenormalsepsilonValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FacenormalsepsilonValidator(_bv.NumberValidator): + def __init__(self, plotly_name='facenormalsepsilon', + parent_name='streamtube.lighting', + **kwargs): + super(FacenormalsepsilonValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/lighting/_fresnel.py b/packages/python/plotly/plotly/validators/streamtube/lighting/_fresnel.py index 7ec6c70a9f9..0ed738f201a 100644 --- a/packages/python/plotly/plotly/validators/streamtube/lighting/_fresnel.py +++ b/packages/python/plotly/plotly/validators/streamtube/lighting/_fresnel.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FresnelValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="fresnel", parent_name="streamtube.lighting", **kwargs - ): - super(FresnelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 5), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FresnelValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fresnel', + parent_name='streamtube.lighting', + **kwargs): + super(FresnelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 5), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/lighting/_roughness.py b/packages/python/plotly/plotly/validators/streamtube/lighting/_roughness.py index 84fa2510e8f..1775e7be90e 100644 --- a/packages/python/plotly/plotly/validators/streamtube/lighting/_roughness.py +++ b/packages/python/plotly/plotly/validators/streamtube/lighting/_roughness.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class RoughnessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="roughness", parent_name="streamtube.lighting", **kwargs - ): - super(RoughnessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RoughnessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='roughness', + parent_name='streamtube.lighting', + **kwargs): + super(RoughnessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/lighting/_specular.py b/packages/python/plotly/plotly/validators/streamtube/lighting/_specular.py index 8bc1809b809..e6b0558a783 100644 --- a/packages/python/plotly/plotly/validators/streamtube/lighting/_specular.py +++ b/packages/python/plotly/plotly/validators/streamtube/lighting/_specular.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SpecularValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="specular", parent_name="streamtube.lighting", **kwargs - ): - super(SpecularValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 2), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SpecularValidator(_bv.NumberValidator): + def __init__(self, plotly_name='specular', + parent_name='streamtube.lighting', + **kwargs): + super(SpecularValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 2), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/lighting/_vertexnormalsepsilon.py b/packages/python/plotly/plotly/validators/streamtube/lighting/_vertexnormalsepsilon.py index d56096b8aa0..89d666f7d17 100644 --- a/packages/python/plotly/plotly/validators/streamtube/lighting/_vertexnormalsepsilon.py +++ b/packages/python/plotly/plotly/validators/streamtube/lighting/_vertexnormalsepsilon.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class VertexnormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="vertexnormalsepsilon", - parent_name="streamtube.lighting", - **kwargs, - ): - super(VertexnormalsepsilonValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VertexnormalsepsilonValidator(_bv.NumberValidator): + def __init__(self, plotly_name='vertexnormalsepsilon', + parent_name='streamtube.lighting', + **kwargs): + super(VertexnormalsepsilonValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/lightposition/__init__.py b/packages/python/plotly/plotly/validators/streamtube/lightposition/__init__.py index 52779f59bc4..21cfa26dac1 100644 --- a/packages/python/plotly/plotly/validators/streamtube/lightposition/__init__.py +++ b/packages/python/plotly/plotly/validators/streamtube/lightposition/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._z import ZValidator from ._y import YValidator from ._x import XValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] + __name__, + [], + ['._z.ZValidator', '._y.YValidator', '._x.XValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/streamtube/lightposition/_x.py b/packages/python/plotly/plotly/validators/streamtube/lightposition/_x.py index e583064a696..7eac19d64ef 100644 --- a/packages/python/plotly/plotly/validators/streamtube/lightposition/_x.py +++ b/packages/python/plotly/plotly/validators/streamtube/lightposition/_x.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="x", parent_name="streamtube.lightposition", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 100000), - min=kwargs.pop("min", -100000), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='streamtube.lightposition', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 100000), + min=kwargs.pop('min', -100000), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/lightposition/_y.py b/packages/python/plotly/plotly/validators/streamtube/lightposition/_y.py index 55b229236e1..937d1115f82 100644 --- a/packages/python/plotly/plotly/validators/streamtube/lightposition/_y.py +++ b/packages/python/plotly/plotly/validators/streamtube/lightposition/_y.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="y", parent_name="streamtube.lightposition", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 100000), - min=kwargs.pop("min", -100000), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='streamtube.lightposition', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 100000), + min=kwargs.pop('min', -100000), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/lightposition/_z.py b/packages/python/plotly/plotly/validators/streamtube/lightposition/_z.py index 05a973d1509..ad0439d2a1c 100644 --- a/packages/python/plotly/plotly/validators/streamtube/lightposition/_z.py +++ b/packages/python/plotly/plotly/validators/streamtube/lightposition/_z.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ZValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="z", parent_name="streamtube.lightposition", **kwargs - ): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 100000), - min=kwargs.pop("min", -100000), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.NumberValidator): + def __init__(self, plotly_name='z', + parent_name='streamtube.lightposition', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 100000), + min=kwargs.pop('min', -100000), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/starts/__init__.py b/packages/python/plotly/plotly/validators/streamtube/starts/__init__.py index f8bd4cce320..8ad77c3ba98 100644 --- a/packages/python/plotly/plotly/validators/streamtube/starts/__init__.py +++ b/packages/python/plotly/plotly/validators/streamtube/starts/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zsrc import ZsrcValidator from ._z import ZValidator @@ -10,16 +9,10 @@ from ._x import XValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zsrc.ZsrcValidator", - "._z.ZValidator", - "._ysrc.YsrcValidator", - "._y.YValidator", - "._xsrc.XsrcValidator", - "._x.XValidator", - ], + ['._zsrc.ZsrcValidator', '._z.ZValidator', '._ysrc.YsrcValidator', '._y.YValidator', '._xsrc.XsrcValidator', '._x.XValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/streamtube/starts/_x.py b/packages/python/plotly/plotly/validators/streamtube/starts/_x.py index 21517e9c879..505a787ccac 100644 --- a/packages/python/plotly/plotly/validators/streamtube/starts/_x.py +++ b/packages/python/plotly/plotly/validators/streamtube/starts/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="x", parent_name="streamtube.starts", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='x', + parent_name='streamtube.starts', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/starts/_xsrc.py b/packages/python/plotly/plotly/validators/streamtube/starts/_xsrc.py index 050c3bf3774..689de5ee81b 100644 --- a/packages/python/plotly/plotly/validators/streamtube/starts/_xsrc.py +++ b/packages/python/plotly/plotly/validators/streamtube/starts/_xsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="xsrc", parent_name="streamtube.starts", **kwargs): - super(XsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='xsrc', + parent_name='streamtube.starts', + **kwargs): + super(XsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/starts/_y.py b/packages/python/plotly/plotly/validators/streamtube/starts/_y.py index fed95cc2215..a7d33f5d135 100644 --- a/packages/python/plotly/plotly/validators/streamtube/starts/_y.py +++ b/packages/python/plotly/plotly/validators/streamtube/starts/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="y", parent_name="streamtube.starts", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='y', + parent_name='streamtube.starts', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/starts/_ysrc.py b/packages/python/plotly/plotly/validators/streamtube/starts/_ysrc.py index 1d3857fe376..fbda18208f8 100644 --- a/packages/python/plotly/plotly/validators/streamtube/starts/_ysrc.py +++ b/packages/python/plotly/plotly/validators/streamtube/starts/_ysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="ysrc", parent_name="streamtube.starts", **kwargs): - super(YsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ysrc', + parent_name='streamtube.starts', + **kwargs): + super(YsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/starts/_z.py b/packages/python/plotly/plotly/validators/streamtube/starts/_z.py index 9157648b929..9721eb776a9 100644 --- a/packages/python/plotly/plotly/validators/streamtube/starts/_z.py +++ b/packages/python/plotly/plotly/validators/streamtube/starts/_z.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="z", parent_name="streamtube.starts", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='z', + parent_name='streamtube.starts', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/starts/_zsrc.py b/packages/python/plotly/plotly/validators/streamtube/starts/_zsrc.py index 39774cae138..d7540bca8f4 100644 --- a/packages/python/plotly/plotly/validators/streamtube/starts/_zsrc.py +++ b/packages/python/plotly/plotly/validators/streamtube/starts/_zsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="zsrc", parent_name="streamtube.starts", **kwargs): - super(ZsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='zsrc', + parent_name='streamtube.starts', + **kwargs): + super(ZsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/stream/__init__.py b/packages/python/plotly/plotly/validators/streamtube/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/streamtube/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/streamtube/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/streamtube/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/streamtube/stream/_maxpoints.py index 6fbbf14b7a9..c0d02ab94e7 100644 --- a/packages/python/plotly/plotly/validators/streamtube/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/streamtube/stream/_maxpoints.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxpoints", parent_name="streamtube.stream", **kwargs - ): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='streamtube.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/streamtube/stream/_token.py b/packages/python/plotly/plotly/validators/streamtube/stream/_token.py index 7601d6059c9..2189a4aa08f 100644 --- a/packages/python/plotly/plotly/validators/streamtube/stream/_token.py +++ b/packages/python/plotly/plotly/validators/streamtube/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="streamtube.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='streamtube.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/__init__.py b/packages/python/plotly/plotly/validators/sunburst/__init__.py index d9043d98c91..efb15e16b26 100644 --- a/packages/python/plotly/plotly/validators/sunburst/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._valuessrc import ValuessrcValidator @@ -52,58 +51,10 @@ from ._branchvalues import BranchvaluesValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._valuessrc.ValuessrcValidator", - "._values.ValuesValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._texttemplatesrc.TexttemplatesrcValidator", - "._texttemplate.TexttemplateValidator", - "._textsrc.TextsrcValidator", - "._textinfo.TextinfoValidator", - "._textfont.TextfontValidator", - "._text.TextValidator", - "._stream.StreamValidator", - "._sort.SortValidator", - "._rotation.RotationValidator", - "._root.RootValidator", - "._parentssrc.ParentssrcValidator", - "._parents.ParentsValidator", - "._outsidetextfont.OutsidetextfontValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._maxdepth.MaxdepthValidator", - "._marker.MarkerValidator", - "._level.LevelValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legend.LegendValidator", - "._leaf.LeafValidator", - "._labelssrc.LabelssrcValidator", - "._labels.LabelsValidator", - "._insidetextorientation.InsidetextorientationValidator", - "._insidetextfont.InsidetextfontValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._domain.DomainValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._count.CountValidator", - "._branchvalues.BranchvaluesValidator", - ], + ['._visible.VisibleValidator', '._valuessrc.ValuessrcValidator', '._values.ValuesValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._texttemplatesrc.TexttemplatesrcValidator', '._texttemplate.TexttemplateValidator', '._textsrc.TextsrcValidator', '._textinfo.TextinfoValidator', '._textfont.TextfontValidator', '._text.TextValidator', '._stream.StreamValidator', '._sort.SortValidator', '._rotation.RotationValidator', '._root.RootValidator', '._parentssrc.ParentssrcValidator', '._parents.ParentsValidator', '._outsidetextfont.OutsidetextfontValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._maxdepth.MaxdepthValidator', '._marker.MarkerValidator', '._level.LevelValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legend.LegendValidator', '._leaf.LeafValidator', '._labelssrc.LabelssrcValidator', '._labels.LabelsValidator', '._insidetextorientation.InsidetextorientationValidator', '._insidetextfont.InsidetextfontValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._domain.DomainValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._count.CountValidator', '._branchvalues.BranchvaluesValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sunburst/_branchvalues.py b/packages/python/plotly/plotly/validators/sunburst/_branchvalues.py index f582862fe80..b03d1913bf8 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_branchvalues.py +++ b/packages/python/plotly/plotly/validators/sunburst/_branchvalues.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class BranchvaluesValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="branchvalues", parent_name="sunburst", **kwargs): - super(BranchvaluesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["remainder", "total"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BranchvaluesValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='branchvalues', + parent_name='sunburst', + **kwargs): + super(BranchvaluesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['remainder', 'total']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_count.py b/packages/python/plotly/plotly/validators/sunburst/_count.py index 7e7fe0be922..7c42289b1f1 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_count.py +++ b/packages/python/plotly/plotly/validators/sunburst/_count.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CountValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="count", parent_name="sunburst", **kwargs): - super(CountValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - flags=kwargs.pop("flags", ["branches", "leaves"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CountValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='count', + parent_name='sunburst', + **kwargs): + super(CountValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + flags=kwargs.pop('flags', ['branches', 'leaves']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_customdata.py b/packages/python/plotly/plotly/validators/sunburst/_customdata.py index 17e9fe6ee52..6b17822bef8 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_customdata.py +++ b/packages/python/plotly/plotly/validators/sunburst/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="sunburst", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='sunburst', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_customdatasrc.py b/packages/python/plotly/plotly/validators/sunburst/_customdatasrc.py index a9c5f702488..91dc2510cbe 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="sunburst", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='sunburst', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_domain.py b/packages/python/plotly/plotly/validators/sunburst/_domain.py index d672a365b2a..7cd52dbd7db 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_domain.py +++ b/packages/python/plotly/plotly/validators/sunburst/_domain.py @@ -1,29 +1,15 @@ -import _plotly_utils.basevalidators -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="domain", parent_name="sunburst", **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 sunburst trace - . - row - If there is a layout grid, use the domain for - this row in the grid for this sunburst trace . - x - Sets the horizontal domain of this sunburst - trace (in plot fraction). - y - Sets the vertical domain of this sunburst trace - (in plot fraction). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DomainValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='domain', + parent_name='sunburst', + **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', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_hoverinfo.py b/packages/python/plotly/plotly/validators/sunburst/_hoverinfo.py index 07c37ca50a0..fd9b2ac3676 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/sunburst/_hoverinfo.py @@ -1,26 +1,16 @@ -import _plotly_utils.basevalidators -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="sunburst", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop( - "flags", - [ - "label", - "text", - "value", - "name", - "current path", - "percent root", - "percent entry", - "percent parent", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='sunburst', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['label', 'text', 'value', 'name', 'current path', 'percent root', 'percent entry', 'percent parent']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/sunburst/_hoverinfosrc.py index 585ab2ef8c6..633a90be1b4 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="sunburst", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='sunburst', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_hoverlabel.py b/packages/python/plotly/plotly/validators/sunburst/_hoverlabel.py index 73670017cf3..c5ece96b28e 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/sunburst/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="sunburst", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='sunburst', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_hovertemplate.py b/packages/python/plotly/plotly/validators/sunburst/_hovertemplate.py index b6e22e6f6a5..cd037b98581 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/sunburst/_hovertemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="sunburst", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='sunburst', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/sunburst/_hovertemplatesrc.py index 1e06df2b27f..2122a6ef042 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/_hovertemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertemplatesrc", parent_name="sunburst", **kwargs - ): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='sunburst', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_hovertext.py b/packages/python/plotly/plotly/validators/sunburst/_hovertext.py index c8fb7d296b7..29453a4cff7 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_hovertext.py +++ b/packages/python/plotly/plotly/validators/sunburst/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="sunburst", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='sunburst', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_hovertextsrc.py b/packages/python/plotly/plotly/validators/sunburst/_hovertextsrc.py index 9e337848b62..691d519cf5b 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="sunburst", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='sunburst', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_ids.py b/packages/python/plotly/plotly/validators/sunburst/_ids.py index dea85dbf880..f007e6d6ca4 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_ids.py +++ b/packages/python/plotly/plotly/validators/sunburst/_ids.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="sunburst", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='sunburst', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_idssrc.py b/packages/python/plotly/plotly/validators/sunburst/_idssrc.py index 4c2dd0799e7..26532cd50b0 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_idssrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="sunburst", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='sunburst', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_insidetextfont.py b/packages/python/plotly/plotly/validators/sunburst/_insidetextfont.py index 738ae174e98..0acf4418576 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_insidetextfont.py +++ b/packages/python/plotly/plotly/validators/sunburst/_insidetextfont.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class InsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="insidetextfont", parent_name="sunburst", **kwargs): - super(InsidetextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Insidetextfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class InsidetextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='insidetextfont', + parent_name='sunburst', + **kwargs): + super(InsidetextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Insidetextfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_insidetextorientation.py b/packages/python/plotly/plotly/validators/sunburst/_insidetextorientation.py index 35bf93598de..d79d9fcacfa 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_insidetextorientation.py +++ b/packages/python/plotly/plotly/validators/sunburst/_insidetextorientation.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class InsidetextorientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="insidetextorientation", parent_name="sunburst", **kwargs - ): - super(InsidetextorientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["horizontal", "radial", "tangential", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class InsidetextorientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='insidetextorientation', + parent_name='sunburst', + **kwargs): + super(InsidetextorientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['horizontal', 'radial', 'tangential', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_labels.py b/packages/python/plotly/plotly/validators/sunburst/_labels.py index cbd0903612a..a1086809d9d 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_labels.py +++ b/packages/python/plotly/plotly/validators/sunburst/_labels.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LabelsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="labels", parent_name="sunburst", **kwargs): - super(LabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='labels', + parent_name='sunburst', + **kwargs): + super(LabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_labelssrc.py b/packages/python/plotly/plotly/validators/sunburst/_labelssrc.py index f0d5a2020bd..3f09a84bd2e 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_labelssrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/_labelssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LabelssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="labelssrc", parent_name="sunburst", **kwargs): - super(LabelssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='labelssrc', + parent_name='sunburst', + **kwargs): + super(LabelssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_leaf.py b/packages/python/plotly/plotly/validators/sunburst/_leaf.py index 86802bbc385..77706e4a46b 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_leaf.py +++ b/packages/python/plotly/plotly/validators/sunburst/_leaf.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class LeafValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="leaf", parent_name="sunburst", **kwargs): - super(LeafValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Leaf"), - data_docs=kwargs.pop( - "data_docs", - """ - opacity - Sets the opacity of the leaves. With colorscale - it is defaulted to 1; otherwise it is defaulted - to 0.7 -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LeafValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='leaf', + parent_name='sunburst', + **kwargs): + super(LeafValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Leaf'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_legend.py b/packages/python/plotly/plotly/validators/sunburst/_legend.py index 69b12723c93..3e468b94800 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_legend.py +++ b/packages/python/plotly/plotly/validators/sunburst/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="sunburst", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='sunburst', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/sunburst/_legendgrouptitle.py index 156715d5246..bb42359f271 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/sunburst/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="sunburst", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='sunburst', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_legendrank.py b/packages/python/plotly/plotly/validators/sunburst/_legendrank.py index 609dd0629bd..6bceba7f4b7 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_legendrank.py +++ b/packages/python/plotly/plotly/validators/sunburst/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="sunburst", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='sunburst', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_legendwidth.py b/packages/python/plotly/plotly/validators/sunburst/_legendwidth.py index 711dd7303c8..e0f5ff16b23 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/sunburst/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="sunburst", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='sunburst', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_level.py b/packages/python/plotly/plotly/validators/sunburst/_level.py index 40fac68e067..90dc59bd72b 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_level.py +++ b/packages/python/plotly/plotly/validators/sunburst/_level.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LevelValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="level", parent_name="sunburst", **kwargs): - super(LevelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LevelValidator(_bv.AnyValidator): + def __init__(self, plotly_name='level', + parent_name='sunburst', + **kwargs): + super(LevelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_marker.py b/packages/python/plotly/plotly/validators/sunburst/_marker.py index 66df8a90656..01256abfae0 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_marker.py +++ b/packages/python/plotly/plotly/validators/sunburst/_marker.py @@ -1,105 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="sunburst", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if colors is set to a numerical - array. In case `colorscale` is unspecified or - `autocolorscale` is true, the default palette - will be chosen according to whether numbers in - the `color` array are all positive, all - negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - colors) or the bounds set in `marker.cmin` and - `marker.cmax` Has an effect only if colors is - set to a numerical array. Defaults to `false` - when `marker.cmin` and `marker.cmax` are set by - the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if colors is set to a numerical - array. Value should have the same units as - colors and if set, `marker.cmin` must be set as - well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if colors is set to a numerical array. - Value should have the same units as colors. Has - no effect when `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if colors is set to a numerical - array. Value should have the same units as - colors and if set, `marker.cmax` must be set as - well. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.sunburst.marker.Co - lorBar` instance or dict with compatible - properties - colors - Sets the color of each sector of this trace. If - not specified, the default trace color set is - used to pick the sector colors. - colorscale - Sets the colorscale. Has an effect only if - colors is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorssrc - Sets the source reference on Chart Studio Cloud - for `colors`. - line - :class:`plotly.graph_objects.sunburst.marker.Li - ne` instance or dict with compatible properties - pattern - Sets the pattern within the marker. - reversescale - Reverses the color mapping if true. Has an - effect only if colors is set to a numerical - array. If true, `marker.cmin` will correspond - to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - colors is set to a numerical array. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='sunburst', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_maxdepth.py b/packages/python/plotly/plotly/validators/sunburst/_maxdepth.py index c6ee5cd93b7..ce090849e30 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_maxdepth.py +++ b/packages/python/plotly/plotly/validators/sunburst/_maxdepth.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MaxdepthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="maxdepth", parent_name="sunburst", **kwargs): - super(MaxdepthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MaxdepthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='maxdepth', + parent_name='sunburst', + **kwargs): + super(MaxdepthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_meta.py b/packages/python/plotly/plotly/validators/sunburst/_meta.py index 864d4533a2b..a98b2761013 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_meta.py +++ b/packages/python/plotly/plotly/validators/sunburst/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="sunburst", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='sunburst', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_metasrc.py b/packages/python/plotly/plotly/validators/sunburst/_metasrc.py index ccf1cd35476..406209c9608 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_metasrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="sunburst", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='sunburst', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_name.py b/packages/python/plotly/plotly/validators/sunburst/_name.py index 2c25c5ac7b0..0b7e690fb57 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_name.py +++ b/packages/python/plotly/plotly/validators/sunburst/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="sunburst", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='sunburst', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_opacity.py b/packages/python/plotly/plotly/validators/sunburst/_opacity.py index 488c57ccf38..420d6c2b52a 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_opacity.py +++ b/packages/python/plotly/plotly/validators/sunburst/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="sunburst", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='sunburst', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_outsidetextfont.py b/packages/python/plotly/plotly/validators/sunburst/_outsidetextfont.py index ce6dbcf5c40..c749ce7c4f4 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_outsidetextfont.py +++ b/packages/python/plotly/plotly/validators/sunburst/_outsidetextfont.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class OutsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="outsidetextfont", parent_name="sunburst", **kwargs): - super(OutsidetextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Outsidetextfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class OutsidetextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='outsidetextfont', + parent_name='sunburst', + **kwargs): + super(OutsidetextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Outsidetextfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_parents.py b/packages/python/plotly/plotly/validators/sunburst/_parents.py index ec357a89b22..884405003bc 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_parents.py +++ b/packages/python/plotly/plotly/validators/sunburst/_parents.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ParentsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="parents", parent_name="sunburst", **kwargs): - super(ParentsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ParentsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='parents', + parent_name='sunburst', + **kwargs): + super(ParentsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_parentssrc.py b/packages/python/plotly/plotly/validators/sunburst/_parentssrc.py index 588258225ec..6eccd908f93 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_parentssrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/_parentssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ParentssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="parentssrc", parent_name="sunburst", **kwargs): - super(ParentssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ParentssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='parentssrc', + parent_name='sunburst', + **kwargs): + super(ParentssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_root.py b/packages/python/plotly/plotly/validators/sunburst/_root.py index c6bd9958d56..d0367734548 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_root.py +++ b/packages/python/plotly/plotly/validators/sunburst/_root.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class RootValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="root", parent_name="sunburst", **kwargs): - super(RootValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Root"), - data_docs=kwargs.pop( - "data_docs", - """ - color - sets the color of the root node for a - sunburst/treemap/icicle trace. this has no - effect when a colorscale is used to set the - markers. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RootValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='root', + parent_name='sunburst', + **kwargs): + super(RootValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Root'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_rotation.py b/packages/python/plotly/plotly/validators/sunburst/_rotation.py index 5901d309bad..ba3afe37da6 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_rotation.py +++ b/packages/python/plotly/plotly/validators/sunburst/_rotation.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class RotationValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__(self, plotly_name="rotation", parent_name="sunburst", **kwargs): - super(RotationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RotationValidator(_bv.AngleValidator): + def __init__(self, plotly_name='rotation', + parent_name='sunburst', + **kwargs): + super(RotationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_sort.py b/packages/python/plotly/plotly/validators/sunburst/_sort.py index b9d50d9b27f..d8328fd6d2f 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_sort.py +++ b/packages/python/plotly/plotly/validators/sunburst/_sort.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SortValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="sort", parent_name="sunburst", **kwargs): - super(SortValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SortValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='sort', + parent_name='sunburst', + **kwargs): + super(SortValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_stream.py b/packages/python/plotly/plotly/validators/sunburst/_stream.py index 5904eadc86d..05d12f9a7be 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_stream.py +++ b/packages/python/plotly/plotly/validators/sunburst/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="sunburst", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='sunburst', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_text.py b/packages/python/plotly/plotly/validators/sunburst/_text.py index 44352df7c3a..1de60622b42 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_text.py +++ b/packages/python/plotly/plotly/validators/sunburst/_text.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="text", parent_name="sunburst", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='text', + parent_name='sunburst', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_textfont.py b/packages/python/plotly/plotly/validators/sunburst/_textfont.py index a714cf28ac0..2206c265209 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_textfont.py +++ b/packages/python/plotly/plotly/validators/sunburst/_textfont.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="textfont", parent_name="sunburst", **kwargs): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='sunburst', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_textinfo.py b/packages/python/plotly/plotly/validators/sunburst/_textinfo.py index 291ebd97779..8901bfe0b19 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_textinfo.py +++ b/packages/python/plotly/plotly/validators/sunburst/_textinfo.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class TextinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="textinfo", parent_name="sunburst", **kwargs): - super(TextinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop( - "flags", - [ - "label", - "text", - "value", - "current path", - "percent root", - "percent entry", - "percent parent", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='textinfo', + parent_name='sunburst', + **kwargs): + super(TextinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['label', 'text', 'value', 'current path', 'percent root', 'percent entry', 'percent parent']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_textsrc.py b/packages/python/plotly/plotly/validators/sunburst/_textsrc.py index b29c5c3b39a..a6140098003 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_textsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="sunburst", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='sunburst', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_texttemplate.py b/packages/python/plotly/plotly/validators/sunburst/_texttemplate.py index dd42c111f18..cf8c5d17f59 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_texttemplate.py +++ b/packages/python/plotly/plotly/validators/sunburst/_texttemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="texttemplate", parent_name="sunburst", **kwargs): - super(TexttemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='texttemplate', + parent_name='sunburst', + **kwargs): + super(TexttemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_texttemplatesrc.py b/packages/python/plotly/plotly/validators/sunburst/_texttemplatesrc.py index 4399075678a..1f2cb0bed68 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_texttemplatesrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/_texttemplatesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="texttemplatesrc", parent_name="sunburst", **kwargs): - super(TexttemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TexttemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='texttemplatesrc', + parent_name='sunburst', + **kwargs): + super(TexttemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_uid.py b/packages/python/plotly/plotly/validators/sunburst/_uid.py index a54edf3e26a..89d12df707e 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_uid.py +++ b/packages/python/plotly/plotly/validators/sunburst/_uid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="sunburst", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='sunburst', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_uirevision.py b/packages/python/plotly/plotly/validators/sunburst/_uirevision.py index faf07779719..f783d4cd477 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_uirevision.py +++ b/packages/python/plotly/plotly/validators/sunburst/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="sunburst", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='sunburst', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_values.py b/packages/python/plotly/plotly/validators/sunburst/_values.py index b93a212bd06..04f34e03f53 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_values.py +++ b/packages/python/plotly/plotly/validators/sunburst/_values.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ValuesValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="values", parent_name="sunburst", **kwargs): - super(ValuesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValuesValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='values', + parent_name='sunburst', + **kwargs): + super(ValuesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_valuessrc.py b/packages/python/plotly/plotly/validators/sunburst/_valuessrc.py index 57531eecccd..eb7bfc0afbe 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_valuessrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/_valuessrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ValuessrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="valuessrc", parent_name="sunburst", **kwargs): - super(ValuessrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValuessrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='valuessrc', + parent_name='sunburst', + **kwargs): + super(ValuessrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/_visible.py b/packages/python/plotly/plotly/validators/sunburst/_visible.py index 5739918a083..df168b889e1 100644 --- a/packages/python/plotly/plotly/validators/sunburst/_visible.py +++ b/packages/python/plotly/plotly/validators/sunburst/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="sunburst", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='sunburst', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/domain/__init__.py b/packages/python/plotly/plotly/validators/sunburst/domain/__init__.py index 67de5030d0a..705a2194402 100644 --- a/packages/python/plotly/plotly/validators/sunburst/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/domain/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._y import YValidator from ._x import XValidator @@ -8,14 +7,10 @@ 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", - ], + ['._y.YValidator', '._x.XValidator', '._row.RowValidator', '._column.ColumnValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sunburst/domain/_column.py b/packages/python/plotly/plotly/validators/sunburst/domain/_column.py index b58b9cd70e2..7d3c1d51055 100644 --- a/packages/python/plotly/plotly/validators/sunburst/domain/_column.py +++ b/packages/python/plotly/plotly/validators/sunburst/domain/_column.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="column", parent_name="sunburst.domain", **kwargs): - super(ColumnValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColumnValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='column', + parent_name='sunburst.domain', + **kwargs): + super(ColumnValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/domain/_row.py b/packages/python/plotly/plotly/validators/sunburst/domain/_row.py index 8b012016057..f574c1083ea 100644 --- a/packages/python/plotly/plotly/validators/sunburst/domain/_row.py +++ b/packages/python/plotly/plotly/validators/sunburst/domain/_row.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="row", parent_name="sunburst.domain", **kwargs): - super(RowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RowValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='row', + parent_name='sunburst.domain', + **kwargs): + super(RowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/domain/_x.py b/packages/python/plotly/plotly/validators/sunburst/domain/_x.py index 85cec608b3d..4a31c24d3d1 100644 --- a/packages/python/plotly/plotly/validators/sunburst/domain/_x.py +++ b/packages/python/plotly/plotly/validators/sunburst/domain/_x.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="x", parent_name="sunburst.domain", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='x', + parent_name='sunburst.domain', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}, {'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/domain/_y.py b/packages/python/plotly/plotly/validators/sunburst/domain/_y.py index 95bca9f0a18..6a7d9d75d04 100644 --- a/packages/python/plotly/plotly/validators/sunburst/domain/_y.py +++ b/packages/python/plotly/plotly/validators/sunburst/domain/_y.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="y", parent_name="sunburst.domain", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='y', + parent_name='sunburst.domain', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}, {'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_align.py index c9f720c28a9..21896645d75 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_align.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="align", parent_name="sunburst.hoverlabel", **kwargs - ): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='sunburst.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_alignsrc.py index 13a285a6fe6..48c67c9182d 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="sunburst.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='sunburst.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_bgcolor.py index b31ba2a11c0..09a32fe6320 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="sunburst.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='sunburst.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_bgcolorsrc.py index d5962aed9a7..91887b4b972 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="sunburst.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='sunburst.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_bordercolor.py index 41f140d4bc5..8f48659164b 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="sunburst.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='sunburst.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_bordercolorsrc.py index e323bf060bf..270ab21728a 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bordercolorsrc", parent_name="sunburst.hoverlabel", **kwargs - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='sunburst.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_font.py index 5ef53fd987e..655902a52c4 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_font.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="sunburst.hoverlabel", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='sunburst.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_namelength.py index 105cb2d420e..5e3fa5adab5 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="sunburst.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='sunburst.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_namelengthsrc.py index 0e5cdec7d06..e77a7789bde 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="sunburst.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='sunburst.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_color.py index 730a09336d3..ae93d0698c6 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="sunburst.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='sunburst.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_colorsrc.py index de2de9cceda..8b440e678a0 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="sunburst.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='sunburst.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_family.py index 7a1cd94cf6e..3157d6edb46 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="sunburst.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='sunburst.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_familysrc.py index f12637e4e1c..6033f7719cb 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="sunburst.hoverlabel.font", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='sunburst.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_lineposition.py index 46e7efca887..e73ce6a0b2c 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="sunburst.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='sunburst.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_linepositionsrc.py index e1bbba41476..12292951a9f 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="sunburst.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='sunburst.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_shadow.py index f0c47bd0c6d..e71fec8e4af 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="sunburst.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='sunburst.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_shadowsrc.py index ce378b6b5b8..72ecd76bd5f 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="sunburst.hoverlabel.font", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='sunburst.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_size.py index 4bc210dbc52..72f383d3393 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="sunburst.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='sunburst.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_sizesrc.py index 895c82a3824..eaeb4340848 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="sunburst.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='sunburst.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_style.py index 2a2a0a51b7d..73d84e0addc 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="sunburst.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='sunburst.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_stylesrc.py index a7b06932764..b869fff6a9f 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="sunburst.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='sunburst.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_textcase.py index 4ddc55875d4..0c9523ad694 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="sunburst.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='sunburst.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_textcasesrc.py index 4ed4a55a1e6..edc95c29634 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="sunburst.hoverlabel.font", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='sunburst.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_variant.py index 413cd6d41a2..a7509b4175a 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="sunburst.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='sunburst.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_variantsrc.py index 03f0e55564e..9cd3776a071 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="sunburst.hoverlabel.font", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='sunburst.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_weight.py index c2111d2d1e8..ae01bf5ed64 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="sunburst.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='sunburst.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_weightsrc.py index 7a618843be1..cd615dff668 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="sunburst.hoverlabel.font", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='sunburst.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/__init__.py b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_color.py b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_color.py index 22a384794db..9d4e09d7f79 100644 --- a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_color.py +++ b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="sunburst.insidetextfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='sunburst.insidetextfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_colorsrc.py b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_colorsrc.py index b04e7eeb110..e390263d4fd 100644 --- a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="sunburst.insidetextfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='sunburst.insidetextfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_family.py b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_family.py index 93036eb31df..75e1c8e467c 100644 --- a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_family.py +++ b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="sunburst.insidetextfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='sunburst.insidetextfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_familysrc.py b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_familysrc.py index 429179e06fd..819b2d1d363 100644 --- a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="sunburst.insidetextfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='sunburst.insidetextfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_lineposition.py b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_lineposition.py index 38e7c51c17a..9292f453ef2 100644 --- a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="sunburst.insidetextfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='sunburst.insidetextfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_linepositionsrc.py index 59cbac91ad7..2e58ef5bfee 100644 --- a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="sunburst.insidetextfont", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='sunburst.insidetextfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_shadow.py b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_shadow.py index 08dc43c0caf..26e09dd30b2 100644 --- a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="sunburst.insidetextfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='sunburst.insidetextfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_shadowsrc.py index 52ee525962f..82378a025de 100644 --- a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="sunburst.insidetextfont", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='sunburst.insidetextfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_size.py b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_size.py index 66c078779d0..aaab1bfe4f0 100644 --- a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_size.py +++ b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="sunburst.insidetextfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='sunburst.insidetextfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_sizesrc.py b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_sizesrc.py index 9e51b0b4aa4..772954ac70b 100644 --- a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="sunburst.insidetextfont", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='sunburst.insidetextfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_style.py b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_style.py index 0febc6aab33..204c4050ae2 100644 --- a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_style.py +++ b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="sunburst.insidetextfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='sunburst.insidetextfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_stylesrc.py b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_stylesrc.py index ec0d6af2c1d..6238672f3c6 100644 --- a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="sunburst.insidetextfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='sunburst.insidetextfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_textcase.py b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_textcase.py index dc3f44719d9..b64c613e34e 100644 --- a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="sunburst.insidetextfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='sunburst.insidetextfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_textcasesrc.py index 3469a814173..11deb676c54 100644 --- a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="sunburst.insidetextfont", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='sunburst.insidetextfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_variant.py b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_variant.py index 634e44f12c7..1875a48b44c 100644 --- a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_variant.py +++ b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="sunburst.insidetextfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='sunburst.insidetextfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_variantsrc.py b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_variantsrc.py index b8d7a449a94..b0ff6d507db 100644 --- a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="sunburst.insidetextfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='sunburst.insidetextfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_weight.py b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_weight.py index 738f0a2e8ce..2c9c6e069be 100644 --- a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_weight.py +++ b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="sunburst.insidetextfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='sunburst.insidetextfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_weightsrc.py b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_weightsrc.py index 531a6e7dfe2..77f3bd73259 100644 --- a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="sunburst.insidetextfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='sunburst.insidetextfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/leaf/__init__.py b/packages/python/plotly/plotly/validators/sunburst/leaf/__init__.py index 049134a716d..9128012434d 100644 --- a/packages/python/plotly/plotly/validators/sunburst/leaf/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/leaf/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._opacity import OpacityValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._opacity.OpacityValidator"] + __name__, + [], + ['._opacity.OpacityValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sunburst/leaf/_opacity.py b/packages/python/plotly/plotly/validators/sunburst/leaf/_opacity.py index c94ca5f0b0f..2b00ab90b60 100644 --- a/packages/python/plotly/plotly/validators/sunburst/leaf/_opacity.py +++ b/packages/python/plotly/plotly/validators/sunburst/leaf/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="sunburst.leaf", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='sunburst.leaf', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/_font.py index 9d5e2555372..8d8e0f64513 100644 --- a/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="sunburst.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='sunburst.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/_text.py index bef05fabefa..fe703c746dd 100644 --- a/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="sunburst.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='sunburst.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_color.py index 90e05f89086..edae2fb47fa 100644 --- a/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="sunburst.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='sunburst.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_family.py index 93d20ea04d0..bcd3c754280 100644 --- a/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="sunburst.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='sunburst.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_lineposition.py index af49a88dd4a..587d8f9696f 100644 --- a/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="sunburst.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='sunburst.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_shadow.py index b087a703a49..388f4b01131 100644 --- a/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="sunburst.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='sunburst.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_size.py index a7242afa19b..8e8de80dc96 100644 --- a/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="sunburst.legendgrouptitle.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='sunburst.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_style.py index c38fd9932d0..c70f160a8d8 100644 --- a/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="sunburst.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='sunburst.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_textcase.py index c75360a2efe..b9484fd5705 100644 --- a/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="sunburst.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='sunburst.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_variant.py index 80b57e26247..bd495c47f8b 100644 --- a/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="sunburst.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='sunburst.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_weight.py index b88e981ae54..6638770790d 100644 --- a/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/sunburst/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="sunburst.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='sunburst.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/__init__.py b/packages/python/plotly/plotly/validators/sunburst/marker/__init__.py index e04f18cc550..2f95ba22e7b 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._showscale import ShowscaleValidator from ._reversescale import ReversescaleValidator @@ -18,24 +17,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._showscale.ShowscaleValidator", - "._reversescale.ReversescaleValidator", - "._pattern.PatternValidator", - "._line.LineValidator", - "._colorssrc.ColorssrcValidator", - "._colorscale.ColorscaleValidator", - "._colors.ColorsValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._showscale.ShowscaleValidator', '._reversescale.ReversescaleValidator', '._pattern.PatternValidator', '._line.LineValidator', '._colorssrc.ColorssrcValidator', '._colorscale.ColorscaleValidator', '._colors.ColorsValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/_autocolorscale.py b/packages/python/plotly/plotly/validators/sunburst/marker/_autocolorscale.py index 907251dd1e6..1bdc2906698 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="sunburst.marker", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='sunburst.marker', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/_cauto.py b/packages/python/plotly/plotly/validators/sunburst/marker/_cauto.py index 0ca2cb6afd8..347c493580e 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/_cauto.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/_cauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cauto", parent_name="sunburst.marker", **kwargs): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='sunburst.marker', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/_cmax.py b/packages/python/plotly/plotly/validators/sunburst/marker/_cmax.py index 2966493d56a..9fc900cc7bc 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/_cmax.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/_cmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmax", parent_name="sunburst.marker", **kwargs): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='sunburst.marker', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/_cmid.py b/packages/python/plotly/plotly/validators/sunburst/marker/_cmid.py index f19d9478183..7a69d92ccb5 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/_cmid.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/_cmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmid", parent_name="sunburst.marker", **kwargs): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='sunburst.marker', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/_cmin.py b/packages/python/plotly/plotly/validators/sunburst/marker/_cmin.py index 156c1eed15b..662ff32fb6f 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/_cmin.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/_cmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmin", parent_name="sunburst.marker", **kwargs): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='sunburst.marker', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/_coloraxis.py b/packages/python/plotly/plotly/validators/sunburst/marker/_coloraxis.py index fcc558e6af6..b2c692b747d 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/_coloraxis.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name="coloraxis", parent_name="sunburst.marker", **kwargs - ): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='sunburst.marker', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/_colorbar.py b/packages/python/plotly/plotly/validators/sunburst/marker/_colorbar.py index b1eef13139e..9c382273b25 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/_colorbar.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/_colorbar.py @@ -1,280 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="colorbar", parent_name="sunburst.marker", **kwargs): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.sunburs - t.marker.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.sunburst.marker.colorbar.tickformatstopdefaul - ts), sets the default property values to use - for elements of - sunburst.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.sunburst.marker.co - lorbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='sunburst.marker', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/_colors.py b/packages/python/plotly/plotly/validators/sunburst/marker/_colors.py index f367c8ca252..7576f088137 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/_colors.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/_colors.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="colors", parent_name="sunburst.marker", **kwargs): - super(ColorsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='colors', + parent_name='sunburst.marker', + **kwargs): + super(ColorsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/_colorscale.py b/packages/python/plotly/plotly/validators/sunburst/marker/_colorscale.py index eab681b1ab0..110c90f42a6 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/_colorscale.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="sunburst.marker", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='sunburst.marker', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/_colorssrc.py b/packages/python/plotly/plotly/validators/sunburst/marker/_colorssrc.py index d4df61796f9..24e7809861b 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/_colorssrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/_colorssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorssrc", parent_name="sunburst.marker", **kwargs - ): - super(ColorssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorssrc', + parent_name='sunburst.marker', + **kwargs): + super(ColorssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/_line.py b/packages/python/plotly/plotly/validators/sunburst/marker/_line.py index 8eb5361f0f4..7ea29c485ea 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/_line.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/_line.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="sunburst.marker", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the color of the line enclosing each - sector. Defaults to the `paper_bgcolor` value. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - width - Sets the width (in px) of the line enclosing - each sector. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='sunburst.marker', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/_pattern.py b/packages/python/plotly/plotly/validators/sunburst/marker/_pattern.py index ed80bc7a1dc..e9d7e01bb29 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/_pattern.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/_pattern.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class PatternValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="pattern", parent_name="sunburst.marker", **kwargs): - super(PatternValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Pattern"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - When there is no colorscale sets the color of - background pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "overlay". Otherwise, defaults to a transparent - background. - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - fgcolor - When there is no colorscale sets the color of - foreground pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "replace". Otherwise, defaults to dark grey or - white to increase contrast with the `bgcolor`. - fgcolorsrc - Sets the source reference on Chart Studio Cloud - for `fgcolor`. - fgopacity - Sets the opacity of the foreground pattern - fill. Defaults to a 0.5 when `fillmode` is - "overlay". Otherwise, defaults to 1. - fillmode - Determines whether `marker.color` should be - used as a default to `bgcolor` or a `fgcolor`. - shape - Sets the shape of the pattern fill. By default, - no pattern is used for filling the area. - shapesrc - Sets the source reference on Chart Studio Cloud - for `shape`. - size - Sets the size of unit squares of the pattern - fill in pixels, which corresponds to the - interval of repetition of the pattern. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - solidity - Sets the solidity of the pattern fill. Solidity - is roughly the fraction of the area filled by - the pattern. Solidity of 0 shows only the - background color without pattern and solidty of - 1 shows only the foreground color without - pattern. - soliditysrc - Sets the source reference on Chart Studio Cloud - for `solidity`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class PatternValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='pattern', + parent_name='sunburst.marker', + **kwargs): + super(PatternValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Pattern'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/_reversescale.py b/packages/python/plotly/plotly/validators/sunburst/marker/_reversescale.py index 7b18c163fe6..64c196225e4 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/_reversescale.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="sunburst.marker", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='sunburst.marker', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/_showscale.py b/packages/python/plotly/plotly/validators/sunburst/marker/_showscale.py index e38dd3b74c5..62ec4906c31 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/_showscale.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/_showscale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showscale", parent_name="sunburst.marker", **kwargs - ): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='sunburst.marker', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_bgcolor.py index 1043e79a3c6..13d3f0e2795 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="sunburst.marker.colorbar", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_bordercolor.py index 4acb211dc7e..07d073ece79 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_bordercolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="bordercolor", - parent_name="sunburst.marker.colorbar", - **kwargs, - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_borderwidth.py index c0c408d8e2d..f9a1cb6fba8 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_borderwidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="borderwidth", - parent_name="sunburst.marker.colorbar", - **kwargs, - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_dtick.py index 8b9b11464cb..782e7b16f9a 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="sunburst.marker.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_exponentformat.py index 4b9c182be73..989102ac045 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_exponentformat.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="exponentformat", - parent_name="sunburst.marker.colorbar", - **kwargs, - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_labelalias.py index 66f92a52919..a063c43ee17 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="sunburst.marker.colorbar", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_len.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_len.py index 75feed54b8e..22c5297a9dd 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_len.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="len", parent_name="sunburst.marker.colorbar", **kwargs - ): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_lenmode.py index 2adbc472acb..2ac810c7f49 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_lenmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="lenmode", parent_name="sunburst.marker.colorbar", **kwargs - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_minexponent.py index 6ae8c82ab09..26bef72e7a4 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_minexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="minexponent", - parent_name="sunburst.marker.colorbar", - **kwargs, - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_nticks.py index ea512197b20..aebba848d1c 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="sunburst.marker.colorbar", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_orientation.py index ed4374024e0..f075e69bc52 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_orientation.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="orientation", - parent_name="sunburst.marker.colorbar", - **kwargs, - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_outlinecolor.py index 629132344fd..a2d3e4710eb 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_outlinecolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="outlinecolor", - parent_name="sunburst.marker.colorbar", - **kwargs, - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_outlinewidth.py index 4d4d0a1a9f3..0668767881c 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_outlinewidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="outlinewidth", - parent_name="sunburst.marker.colorbar", - **kwargs, - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_separatethousands.py index de569f65d8f..c48221f044f 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="sunburst.marker.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_showexponent.py index 86bb429545f..e4aff28cd3c 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_showexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showexponent", - parent_name="sunburst.marker.colorbar", - **kwargs, - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_showticklabels.py index 6e7e65192a4..215140f2ea7 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="sunburst.marker.colorbar", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_showtickprefix.py index 1e5209c89c4..7a4087f5a6f 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="sunburst.marker.colorbar", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_showticksuffix.py index b68a63b8756..c5314cd016b 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="sunburst.marker.colorbar", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_thickness.py index 3639b547643..d52870c56c1 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="sunburst.marker.colorbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_thicknessmode.py index 64d78435af1..cc6772017dd 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_thicknessmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="thicknessmode", - parent_name="sunburst.marker.colorbar", - **kwargs, - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tick0.py index 8ef2248d490..69cd9bbf148 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="sunburst.marker.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickangle.py index d6dbde38c98..db2fd142076 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="sunburst.marker.colorbar", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickcolor.py index 21016b9563b..69d22d6143b 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="sunburst.marker.colorbar", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickfont.py index 0cd6af182dd..908b5e14dcd 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="sunburst.marker.colorbar", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickformat.py index 0233267d2a6..30ae7693e80 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="sunburst.marker.colorbar", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickformatstopdefaults.py index 7d7919712ab..c5b8ec99544 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="sunburst.marker.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickformatstops.py index 6fa5908772b..6aa32f07057 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="sunburst.marker.colorbar", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticklabeloverflow.py index 66cf6193d83..9c46df9fd3a 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="sunburst.marker.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticklabelposition.py index 3adb10606fd..e9880d7f6db 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="sunburst.marker.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticklabelstep.py index 2f1a3aed541..5ab91d2389e 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticklabelstep.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="ticklabelstep", - parent_name="sunburst.marker.colorbar", - **kwargs, - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticklen.py index b0c351ffc10..7fb0e4f3f11 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="sunburst.marker.colorbar", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickmode.py index 140f252e059..3269ac194f6 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="sunburst.marker.colorbar", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickprefix.py index 428f8de93b7..ac333d34338 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="sunburst.marker.colorbar", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticks.py index e2b39e7dc37..5545a4a2a20 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="sunburst.marker.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticksuffix.py index 33cec198614..8e3f1a5f85b 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="sunburst.marker.colorbar", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticktext.py index 0973a3d3795..ddf79d191bb 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="sunburst.marker.colorbar", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticktextsrc.py index e09f4e6ffb2..7fc40e3b9a7 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ticktextsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="ticktextsrc", - parent_name="sunburst.marker.colorbar", - **kwargs, - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickvals.py index b8384e696b6..4bc5814339a 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="sunburst.marker.colorbar", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickvalssrc.py index 9d7a5417420..8e354e0738b 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickvalssrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="tickvalssrc", - parent_name="sunburst.marker.colorbar", - **kwargs, - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickwidth.py index 188d4fc8208..d12a23b1b8f 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="sunburst.marker.colorbar", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_title.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_title.py index 99929b91468..8f7b27da3b6 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="sunburst.marker.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_x.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_x.py index e0af9666a74..9f164f8edc3 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_x.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="x", parent_name="sunburst.marker.colorbar", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_xanchor.py index cdeff8f79ef..b3eed807b06 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="sunburst.marker.colorbar", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_xpad.py index 3bfa75bf58c..4ebe5380d08 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_xpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="xpad", parent_name="sunburst.marker.colorbar", **kwargs - ): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_xref.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_xref.py index 36c8a292493..e205871b2e0 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xref", parent_name="sunburst.marker.colorbar", **kwargs - ): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_y.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_y.py index 1ef98a59b08..f75a95ca4a7 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_y.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="y", parent_name="sunburst.marker.colorbar", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_yanchor.py index f27f2f1a189..704f10bd8a7 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="sunburst.marker.colorbar", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ypad.py index 791f4bf0e8d..0bca87d69af 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_ypad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ypad", parent_name="sunburst.marker.colorbar", **kwargs - ): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_yref.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_yref.py index bb79a74d64e..fd64b699a0d 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yref", parent_name="sunburst.marker.colorbar", **kwargs - ): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='sunburst.marker.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_color.py index d3174864c37..ab9f80cf563 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="sunburst.marker.colorbar.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='sunburst.marker.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_family.py index c38169c73ee..047e95ea28b 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="sunburst.marker.colorbar.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='sunburst.marker.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_lineposition.py index b789db5d387..8e9e1c590f1 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="sunburst.marker.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='sunburst.marker.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_shadow.py index 9e9480be05a..950861b6a4b 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="sunburst.marker.colorbar.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='sunburst.marker.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_size.py index d70d53872f0..1f941eeb5cd 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="sunburst.marker.colorbar.tickfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='sunburst.marker.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_style.py index ddfecba7fc9..0a123a56a5e 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="sunburst.marker.colorbar.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='sunburst.marker.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_textcase.py index fefd97ce107..ba327a0607d 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="sunburst.marker.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='sunburst.marker.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_variant.py index cac7249d6cf..3c18b10bd54 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="sunburst.marker.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='sunburst.marker.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_weight.py index 8cb54be75b0..a1b52f7b211 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="sunburst.marker.colorbar.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='sunburst.marker.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickformatstop/_dtickrange.py index ed5f11d7d0d..d43f682f930 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="sunburst.marker.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - items=kwargs.pop( - "items", - [ - {"editType": "colorbars", "valType": "any"}, - {"editType": "colorbars", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='sunburst.marker.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + items=kwargs.pop('items', [{'editType': 'colorbars', 'valType': 'any'}, {'editType': 'colorbars', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickformatstop/_enabled.py index 208c4b212cb..ba7b4abcdb9 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="sunburst.marker.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='sunburst.marker.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickformatstop/_name.py index e451ae1c987..72e70ea796a 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="sunburst.marker.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='sunburst.marker.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickformatstop/_templateitemname.py index 411f073559b..1c9e1ccad95 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="sunburst.marker.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='sunburst.marker.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickformatstop/_value.py index 44239fd2d59..ebfcbdb7328 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="sunburst.marker.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='sunburst.marker.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/_font.py index cb67eb292e4..e8d08183411 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="sunburst.marker.colorbar.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='sunburst.marker.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/_side.py index 3f8e59df1d8..33f34b10861 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/_side.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="side", parent_name="sunburst.marker.colorbar.title", **kwargs - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='sunburst.marker.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/_text.py index ac982c808ad..9cc38d76361 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="sunburst.marker.colorbar.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='sunburst.marker.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_color.py index e092c4556d2..af5bd0a1e5f 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="sunburst.marker.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='sunburst.marker.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_family.py index 327ed807853..31c6c436668 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="sunburst.marker.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='sunburst.marker.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_lineposition.py index 6da04101fb3..61c7b26b177 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="sunburst.marker.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='sunburst.marker.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_shadow.py index 966f1c9550c..795bf8ce422 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="sunburst.marker.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='sunburst.marker.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_size.py index cb35c6a22ec..b78d4602f7e 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="sunburst.marker.colorbar.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='sunburst.marker.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_style.py index 1495d2cc542..acbe113c403 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="sunburst.marker.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='sunburst.marker.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_textcase.py index f1422536bc1..7af4c55565a 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="sunburst.marker.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='sunburst.marker.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_variant.py index 92cb0df3190..f68eca04271 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="sunburst.marker.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='sunburst.marker.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_weight.py index 1440fea37af..9c14132005a 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="sunburst.marker.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='sunburst.marker.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/line/__init__.py b/packages/python/plotly/plotly/validators/sunburst/marker/line/__init__.py index a2b9e1ae50c..522c01899cf 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._widthsrc import WidthsrcValidator from ._width import WidthValidator @@ -8,14 +7,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._widthsrc.WidthsrcValidator", - "._width.WidthValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._widthsrc.WidthsrcValidator', '._width.WidthValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/line/_color.py b/packages/python/plotly/plotly/validators/sunburst/marker/line/_color.py index 7259244bbcd..1632a631a8c 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/line/_color.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/line/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="sunburst.marker.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='sunburst.marker.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/line/_colorsrc.py b/packages/python/plotly/plotly/validators/sunburst/marker/line/_colorsrc.py index 51c7ee759b8..4772e0b7731 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/line/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/line/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="sunburst.marker.line", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='sunburst.marker.line', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/line/_width.py b/packages/python/plotly/plotly/validators/sunburst/marker/line/_width.py index 2eb546fdf7e..914751a685e 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/line/_width.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/line/_width.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="sunburst.marker.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='sunburst.marker.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/line/_widthsrc.py b/packages/python/plotly/plotly/validators/sunburst/marker/line/_widthsrc.py index 370a9a0a2b6..3a053a395c5 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/line/_widthsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/line/_widthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="widthsrc", parent_name="sunburst.marker.line", **kwargs - ): - super(WidthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='widthsrc', + parent_name='sunburst.marker.line', + **kwargs): + super(WidthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/pattern/__init__.py b/packages/python/plotly/plotly/validators/sunburst/marker/pattern/__init__.py index e190f962c46..de3616dbc8a 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/pattern/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/pattern/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._soliditysrc import SoliditysrcValidator from ._solidity import SolidityValidator @@ -16,22 +15,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._soliditysrc.SoliditysrcValidator", - "._solidity.SolidityValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shapesrc.ShapesrcValidator", - "._shape.ShapeValidator", - "._fillmode.FillmodeValidator", - "._fgopacity.FgopacityValidator", - "._fgcolorsrc.FgcolorsrcValidator", - "._fgcolor.FgcolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - ], + ['._soliditysrc.SoliditysrcValidator', '._solidity.SolidityValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shapesrc.ShapesrcValidator', '._shape.ShapeValidator', '._fillmode.FillmodeValidator', '._fgopacity.FgopacityValidator', '._fgcolorsrc.FgcolorsrcValidator', '._fgcolor.FgcolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_bgcolor.py b/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_bgcolor.py index f8d91e0bc56..382d75435d5 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="sunburst.marker.pattern", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='sunburst.marker.pattern', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_bgcolorsrc.py index 6ac12524638..dc1110b25cf 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="sunburst.marker.pattern", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='sunburst.marker.pattern', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_fgcolor.py b/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_fgcolor.py index 061047f4114..fab01143937 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_fgcolor.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_fgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class FgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="fgcolor", parent_name="sunburst.marker.pattern", **kwargs - ): - super(FgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fgcolor', + parent_name='sunburst.marker.pattern', + **kwargs): + super(FgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_fgcolorsrc.py b/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_fgcolorsrc.py index 86c3ff70aef..e03fa6bcd0b 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_fgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_fgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="fgcolorsrc", parent_name="sunburst.marker.pattern", **kwargs - ): - super(FgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='fgcolorsrc', + parent_name='sunburst.marker.pattern', + **kwargs): + super(FgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_fgopacity.py b/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_fgopacity.py index 8d49e47301c..461ab03c307 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_fgopacity.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_fgopacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FgopacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="fgopacity", parent_name="sunburst.marker.pattern", **kwargs - ): - super(FgopacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FgopacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fgopacity', + parent_name='sunburst.marker.pattern', + **kwargs): + super(FgopacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_fillmode.py b/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_fillmode.py index f2fb4c7fba6..4371af43525 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_fillmode.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_fillmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class FillmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="fillmode", parent_name="sunburst.marker.pattern", **kwargs - ): - super(FillmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["replace", "overlay"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='fillmode', + parent_name='sunburst.marker.pattern', + **kwargs): + super(FillmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['replace', 'overlay']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_shape.py b/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_shape.py index 5780376c003..c0171f13f4f 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_shape.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_shape.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="shape", parent_name="sunburst.marker.pattern", **kwargs - ): - super(ShapeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["", "/", "\\", "x", "-", "|", "+", "."]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShapeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='shape', + parent_name='sunburst.marker.pattern', + **kwargs): + super(ShapeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['', '/', '\\', 'x', '-', '|', '+', '.']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_shapesrc.py b/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_shapesrc.py index eea033eee0a..237652cfdbd 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_shapesrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_shapesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShapesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shapesrc", parent_name="sunburst.marker.pattern", **kwargs - ): - super(ShapesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShapesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shapesrc', + parent_name='sunburst.marker.pattern', + **kwargs): + super(ShapesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_size.py b/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_size.py index 1b9a310941c..a3d82a0c5d9 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_size.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="sunburst.marker.pattern", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='sunburst.marker.pattern', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_sizesrc.py b/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_sizesrc.py index 1ef91bc2cd6..6541345780b 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="sunburst.marker.pattern", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='sunburst.marker.pattern', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_solidity.py b/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_solidity.py index 12819d300bd..49e8a29b2a2 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_solidity.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_solidity.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class SolidityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="solidity", parent_name="sunburst.marker.pattern", **kwargs - ): - super(SolidityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SolidityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='solidity', + parent_name='sunburst.marker.pattern', + **kwargs): + super(SolidityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_soliditysrc.py b/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_soliditysrc.py index 6d9fb3e830f..4f0bd44015a 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_soliditysrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/pattern/_soliditysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SoliditysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="soliditysrc", parent_name="sunburst.marker.pattern", **kwargs - ): - super(SoliditysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SoliditysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='soliditysrc', + parent_name='sunburst.marker.pattern', + **kwargs): + super(SoliditysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/__init__.py b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_color.py b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_color.py index 618dc20b582..63728db5794 100644 --- a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_color.py +++ b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="sunburst.outsidetextfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='sunburst.outsidetextfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_colorsrc.py b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_colorsrc.py index bf53315de5e..84b9b577dae 100644 --- a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="sunburst.outsidetextfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='sunburst.outsidetextfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_family.py b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_family.py index 8fbbfbc9d9c..2b052640ecd 100644 --- a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_family.py +++ b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="sunburst.outsidetextfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='sunburst.outsidetextfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_familysrc.py b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_familysrc.py index 58f057f2692..72ca66b15a9 100644 --- a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="sunburst.outsidetextfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='sunburst.outsidetextfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_lineposition.py b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_lineposition.py index 0b62f102b0f..e7458209c25 100644 --- a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="sunburst.outsidetextfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='sunburst.outsidetextfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_linepositionsrc.py index 7fe11e3b073..da4af7d8e0a 100644 --- a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="sunburst.outsidetextfont", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='sunburst.outsidetextfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_shadow.py b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_shadow.py index de55ec56a0e..64e83a57f12 100644 --- a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="sunburst.outsidetextfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='sunburst.outsidetextfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_shadowsrc.py index 6538ba4f37b..634eecc6700 100644 --- a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="sunburst.outsidetextfont", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='sunburst.outsidetextfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_size.py b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_size.py index 88045be5d93..e145cd099a8 100644 --- a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_size.py +++ b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="sunburst.outsidetextfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='sunburst.outsidetextfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_sizesrc.py b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_sizesrc.py index 7ce3cd0b015..152247c89af 100644 --- a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="sunburst.outsidetextfont", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='sunburst.outsidetextfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_style.py b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_style.py index b738e2adca6..952c23bf7a0 100644 --- a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_style.py +++ b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="sunburst.outsidetextfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='sunburst.outsidetextfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_stylesrc.py b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_stylesrc.py index 5970a7c9009..553f2cd1749 100644 --- a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="sunburst.outsidetextfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='sunburst.outsidetextfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_textcase.py b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_textcase.py index bd1485a8f85..661ac7e8015 100644 --- a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="sunburst.outsidetextfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='sunburst.outsidetextfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_textcasesrc.py index 30e1b58e18d..b33aae2b736 100644 --- a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="sunburst.outsidetextfont", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='sunburst.outsidetextfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_variant.py b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_variant.py index 99568568b10..369de400c30 100644 --- a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_variant.py +++ b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="sunburst.outsidetextfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='sunburst.outsidetextfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_variantsrc.py b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_variantsrc.py index 7439ad94ab1..2de2fd5cabb 100644 --- a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="sunburst.outsidetextfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='sunburst.outsidetextfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_weight.py b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_weight.py index ea8e41fb945..58005065e93 100644 --- a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_weight.py +++ b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="sunburst.outsidetextfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='sunburst.outsidetextfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_weightsrc.py b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_weightsrc.py index 4fcad2c6f30..0dabf8f8a88 100644 --- a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="sunburst.outsidetextfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='sunburst.outsidetextfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/root/__init__.py b/packages/python/plotly/plotly/validators/sunburst/root/__init__.py index a9f087e5af1..86899e5cc51 100644 --- a/packages/python/plotly/plotly/validators/sunburst/root/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/root/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._color.ColorValidator"] + __name__, + [], + ['._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sunburst/root/_color.py b/packages/python/plotly/plotly/validators/sunburst/root/_color.py index 1951f74c86d..58df9bb6eac 100644 --- a/packages/python/plotly/plotly/validators/sunburst/root/_color.py +++ b/packages/python/plotly/plotly/validators/sunburst/root/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="sunburst.root", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='sunburst.root', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/stream/__init__.py b/packages/python/plotly/plotly/validators/sunburst/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/sunburst/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sunburst/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/sunburst/stream/_maxpoints.py index cd47572c89d..a8e8f7fc802 100644 --- a/packages/python/plotly/plotly/validators/sunburst/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/sunburst/stream/_maxpoints.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxpoints", parent_name="sunburst.stream", **kwargs - ): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='sunburst.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/stream/_token.py b/packages/python/plotly/plotly/validators/sunburst/stream/_token.py index 091ed637ad2..5229dc5f9cc 100644 --- a/packages/python/plotly/plotly/validators/sunburst/stream/_token.py +++ b/packages/python/plotly/plotly/validators/sunburst/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="sunburst.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='sunburst.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/textfont/__init__.py b/packages/python/plotly/plotly/validators/sunburst/textfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/sunburst/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/textfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/sunburst/textfont/_color.py b/packages/python/plotly/plotly/validators/sunburst/textfont/_color.py index fe64ae72ae9..cc8b16894b9 100644 --- a/packages/python/plotly/plotly/validators/sunburst/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/sunburst/textfont/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="sunburst.textfont", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='sunburst.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/textfont/_colorsrc.py b/packages/python/plotly/plotly/validators/sunburst/textfont/_colorsrc.py index 50e32573ab7..6732822afad 100644 --- a/packages/python/plotly/plotly/validators/sunburst/textfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/textfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="sunburst.textfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='sunburst.textfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/textfont/_family.py b/packages/python/plotly/plotly/validators/sunburst/textfont/_family.py index 824eac92284..2a2a939d265 100644 --- a/packages/python/plotly/plotly/validators/sunburst/textfont/_family.py +++ b/packages/python/plotly/plotly/validators/sunburst/textfont/_family.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="family", parent_name="sunburst.textfont", **kwargs): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='sunburst.textfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/textfont/_familysrc.py b/packages/python/plotly/plotly/validators/sunburst/textfont/_familysrc.py index 68f6395e05d..2ff023138cd 100644 --- a/packages/python/plotly/plotly/validators/sunburst/textfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/textfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="sunburst.textfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='sunburst.textfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/textfont/_lineposition.py b/packages/python/plotly/plotly/validators/sunburst/textfont/_lineposition.py index 431cfe1948c..9db33c9c428 100644 --- a/packages/python/plotly/plotly/validators/sunburst/textfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/sunburst/textfont/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="sunburst.textfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='sunburst.textfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/textfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/sunburst/textfont/_linepositionsrc.py index 643d9038e7e..c90f7d1e964 100644 --- a/packages/python/plotly/plotly/validators/sunburst/textfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/textfont/_linepositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="linepositionsrc", parent_name="sunburst.textfont", **kwargs - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='sunburst.textfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/textfont/_shadow.py b/packages/python/plotly/plotly/validators/sunburst/textfont/_shadow.py index a6fc5cc3342..c4f4f320717 100644 --- a/packages/python/plotly/plotly/validators/sunburst/textfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/sunburst/textfont/_shadow.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="shadow", parent_name="sunburst.textfont", **kwargs): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='sunburst.textfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/textfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/sunburst/textfont/_shadowsrc.py index 1c4ce5742a4..321ede552d6 100644 --- a/packages/python/plotly/plotly/validators/sunburst/textfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/textfont/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="sunburst.textfont", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='sunburst.textfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/textfont/_size.py b/packages/python/plotly/plotly/validators/sunburst/textfont/_size.py index 9de566216a2..9db55b325f4 100644 --- a/packages/python/plotly/plotly/validators/sunburst/textfont/_size.py +++ b/packages/python/plotly/plotly/validators/sunburst/textfont/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="sunburst.textfont", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='sunburst.textfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/textfont/_sizesrc.py b/packages/python/plotly/plotly/validators/sunburst/textfont/_sizesrc.py index a905bc4e1ab..8847fcecb39 100644 --- a/packages/python/plotly/plotly/validators/sunburst/textfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/textfont/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="sunburst.textfont", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='sunburst.textfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/textfont/_style.py b/packages/python/plotly/plotly/validators/sunburst/textfont/_style.py index 03b5bc8eea3..918d0e0d06d 100644 --- a/packages/python/plotly/plotly/validators/sunburst/textfont/_style.py +++ b/packages/python/plotly/plotly/validators/sunburst/textfont/_style.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="style", parent_name="sunburst.textfont", **kwargs): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='sunburst.textfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/textfont/_stylesrc.py b/packages/python/plotly/plotly/validators/sunburst/textfont/_stylesrc.py index 37ad923128b..a0bd56436c5 100644 --- a/packages/python/plotly/plotly/validators/sunburst/textfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/textfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="sunburst.textfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='sunburst.textfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/textfont/_textcase.py b/packages/python/plotly/plotly/validators/sunburst/textfont/_textcase.py index 5c067a17a35..597abb87ab5 100644 --- a/packages/python/plotly/plotly/validators/sunburst/textfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/sunburst/textfont/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="sunburst.textfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='sunburst.textfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/textfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/sunburst/textfont/_textcasesrc.py index 956e24f6ba6..dbf0592178f 100644 --- a/packages/python/plotly/plotly/validators/sunburst/textfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/textfont/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="sunburst.textfont", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='sunburst.textfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/textfont/_variant.py b/packages/python/plotly/plotly/validators/sunburst/textfont/_variant.py index e66745c9a1c..93390709e62 100644 --- a/packages/python/plotly/plotly/validators/sunburst/textfont/_variant.py +++ b/packages/python/plotly/plotly/validators/sunburst/textfont/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="sunburst.textfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='sunburst.textfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/textfont/_variantsrc.py b/packages/python/plotly/plotly/validators/sunburst/textfont/_variantsrc.py index d18b211b1dc..cd788d80c93 100644 --- a/packages/python/plotly/plotly/validators/sunburst/textfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/textfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="sunburst.textfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='sunburst.textfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/textfont/_weight.py b/packages/python/plotly/plotly/validators/sunburst/textfont/_weight.py index 6af8ff1de22..df824b8ee21 100644 --- a/packages/python/plotly/plotly/validators/sunburst/textfont/_weight.py +++ b/packages/python/plotly/plotly/validators/sunburst/textfont/_weight.py @@ -1,15 +1,17 @@ -import _plotly_utils.basevalidators - - -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="weight", parent_name="sunburst.textfont", **kwargs): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='sunburst.textfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/sunburst/textfont/_weightsrc.py b/packages/python/plotly/plotly/validators/sunburst/textfont/_weightsrc.py index 58a08ca7753..988a07c81bb 100644 --- a/packages/python/plotly/plotly/validators/sunburst/textfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/sunburst/textfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="sunburst.textfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='sunburst.textfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/__init__.py b/packages/python/plotly/plotly/validators/surface/__init__.py index 40b7043b3fe..52a4df7d11f 100644 --- a/packages/python/plotly/plotly/validators/surface/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zsrc import ZsrcValidator from ._zhoverformat import ZhoverformatValidator @@ -62,68 +61,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zsrc.ZsrcValidator", - "._zhoverformat.ZhoverformatValidator", - "._zcalendar.ZcalendarValidator", - "._z.ZValidator", - "._ysrc.YsrcValidator", - "._yhoverformat.YhoverformatValidator", - "._ycalendar.YcalendarValidator", - "._y.YValidator", - "._xsrc.XsrcValidator", - "._xhoverformat.XhoverformatValidator", - "._xcalendar.XcalendarValidator", - "._x.XValidator", - "._visible.VisibleValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._textsrc.TextsrcValidator", - "._text.TextValidator", - "._surfacecolorsrc.SurfacecolorsrcValidator", - "._surfacecolor.SurfacecolorValidator", - "._stream.StreamValidator", - "._showscale.ShowscaleValidator", - "._showlegend.ShowlegendValidator", - "._scene.SceneValidator", - "._reversescale.ReversescaleValidator", - "._opacityscale.OpacityscaleValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._lightposition.LightpositionValidator", - "._lighting.LightingValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._hidesurface.HidesurfaceValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._contours.ContoursValidator", - "._connectgaps.ConnectgapsValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._zsrc.ZsrcValidator', '._zhoverformat.ZhoverformatValidator', '._zcalendar.ZcalendarValidator', '._z.ZValidator', '._ysrc.YsrcValidator', '._yhoverformat.YhoverformatValidator', '._ycalendar.YcalendarValidator', '._y.YValidator', '._xsrc.XsrcValidator', '._xhoverformat.XhoverformatValidator', '._xcalendar.XcalendarValidator', '._x.XValidator', '._visible.VisibleValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._textsrc.TextsrcValidator', '._text.TextValidator', '._surfacecolorsrc.SurfacecolorsrcValidator', '._surfacecolor.SurfacecolorValidator', '._stream.StreamValidator', '._showscale.ShowscaleValidator', '._showlegend.ShowlegendValidator', '._scene.SceneValidator', '._reversescale.ReversescaleValidator', '._opacityscale.OpacityscaleValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._lightposition.LightpositionValidator', '._lighting.LightingValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._hidesurface.HidesurfaceValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._contours.ContoursValidator', '._connectgaps.ConnectgapsValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/surface/_autocolorscale.py b/packages/python/plotly/plotly/validators/surface/_autocolorscale.py index 55d2a95c89f..856928f1915 100644 --- a/packages/python/plotly/plotly/validators/surface/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/surface/_autocolorscale.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="autocolorscale", parent_name="surface", **kwargs): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='surface', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_cauto.py b/packages/python/plotly/plotly/validators/surface/_cauto.py index c81de2d7d19..b1a005b11fe 100644 --- a/packages/python/plotly/plotly/validators/surface/_cauto.py +++ b/packages/python/plotly/plotly/validators/surface/_cauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cauto", parent_name="surface", **kwargs): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='surface', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_cmax.py b/packages/python/plotly/plotly/validators/surface/_cmax.py index b30c134a9eb..0b969ccbd9e 100644 --- a/packages/python/plotly/plotly/validators/surface/_cmax.py +++ b/packages/python/plotly/plotly/validators/surface/_cmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmax", parent_name="surface", **kwargs): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='surface', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_cmid.py b/packages/python/plotly/plotly/validators/surface/_cmid.py index 1a54a57a3dc..e37527f186d 100644 --- a/packages/python/plotly/plotly/validators/surface/_cmid.py +++ b/packages/python/plotly/plotly/validators/surface/_cmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmid", parent_name="surface", **kwargs): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='surface', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_cmin.py b/packages/python/plotly/plotly/validators/surface/_cmin.py index c1aa2e56f45..6a39f2a485b 100644 --- a/packages/python/plotly/plotly/validators/surface/_cmin.py +++ b/packages/python/plotly/plotly/validators/surface/_cmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmin", parent_name="surface", **kwargs): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='surface', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_coloraxis.py b/packages/python/plotly/plotly/validators/surface/_coloraxis.py index 715e9b74ea7..de0e818856a 100644 --- a/packages/python/plotly/plotly/validators/surface/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/surface/_coloraxis.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="coloraxis", parent_name="surface", **kwargs): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='surface', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_colorbar.py b/packages/python/plotly/plotly/validators/surface/_colorbar.py index 3c44f0d95ae..92c28561869 100644 --- a/packages/python/plotly/plotly/validators/surface/_colorbar.py +++ b/packages/python/plotly/plotly/validators/surface/_colorbar.py @@ -1,279 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="colorbar", parent_name="surface", **kwargs): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.surface - .colorbar.Tickformatstop` instances or dicts - with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.surface.colorbar.tickformatstopdefaults), - sets the default property values to use for - elements of surface.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.surface.colorbar.T - itle` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='surface', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_colorscale.py b/packages/python/plotly/plotly/validators/surface/_colorscale.py index 3e84ea50192..2c8abd5d126 100644 --- a/packages/python/plotly/plotly/validators/surface/_colorscale.py +++ b/packages/python/plotly/plotly/validators/surface/_colorscale.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__(self, plotly_name="colorscale", parent_name="surface", **kwargs): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='surface', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_connectgaps.py b/packages/python/plotly/plotly/validators/surface/_connectgaps.py index 325f8b5177a..61607dbc288 100644 --- a/packages/python/plotly/plotly/validators/surface/_connectgaps.py +++ b/packages/python/plotly/plotly/validators/surface/_connectgaps.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="connectgaps", parent_name="surface", **kwargs): - super(ConnectgapsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ConnectgapsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='connectgaps', + parent_name='surface', + **kwargs): + super(ConnectgapsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_contours.py b/packages/python/plotly/plotly/validators/surface/_contours.py index 64b9d765006..0ccc8408ca7 100644 --- a/packages/python/plotly/plotly/validators/surface/_contours.py +++ b/packages/python/plotly/plotly/validators/surface/_contours.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class ContoursValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="contours", parent_name="surface", **kwargs): - super(ContoursValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Contours"), - data_docs=kwargs.pop( - "data_docs", - """ - x - :class:`plotly.graph_objects.surface.contours.X - ` instance or dict with compatible properties - y - :class:`plotly.graph_objects.surface.contours.Y - ` instance or dict with compatible properties - z - :class:`plotly.graph_objects.surface.contours.Z - ` instance or dict with compatible properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ContoursValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='contours', + parent_name='surface', + **kwargs): + super(ContoursValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Contours'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_customdata.py b/packages/python/plotly/plotly/validators/surface/_customdata.py index 927f92ca98d..30086baa16f 100644 --- a/packages/python/plotly/plotly/validators/surface/_customdata.py +++ b/packages/python/plotly/plotly/validators/surface/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="surface", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='surface', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_customdatasrc.py b/packages/python/plotly/plotly/validators/surface/_customdatasrc.py index 4c155c3ac97..e050d167b32 100644 --- a/packages/python/plotly/plotly/validators/surface/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/surface/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="surface", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='surface', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_hidesurface.py b/packages/python/plotly/plotly/validators/surface/_hidesurface.py index 843e689b254..e768e46f350 100644 --- a/packages/python/plotly/plotly/validators/surface/_hidesurface.py +++ b/packages/python/plotly/plotly/validators/surface/_hidesurface.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HidesurfaceValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="hidesurface", parent_name="surface", **kwargs): - super(HidesurfaceValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HidesurfaceValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='hidesurface', + parent_name='surface', + **kwargs): + super(HidesurfaceValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_hoverinfo.py b/packages/python/plotly/plotly/validators/surface/_hoverinfo.py index 08201b827ba..ada41264d0e 100644 --- a/packages/python/plotly/plotly/validators/surface/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/surface/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="surface", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='surface', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/surface/_hoverinfosrc.py index 6151bfce3ff..b49258003ab 100644 --- a/packages/python/plotly/plotly/validators/surface/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/surface/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="surface", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='surface', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_hoverlabel.py b/packages/python/plotly/plotly/validators/surface/_hoverlabel.py index ed1443d4198..48d0e8d36f0 100644 --- a/packages/python/plotly/plotly/validators/surface/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/surface/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="surface", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='surface', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_hovertemplate.py b/packages/python/plotly/plotly/validators/surface/_hovertemplate.py index 01360fe6345..f1b6a8844d0 100644 --- a/packages/python/plotly/plotly/validators/surface/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/surface/_hovertemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="surface", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='surface', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/surface/_hovertemplatesrc.py index 4c0b9dbd7aa..fd5c46d17aa 100644 --- a/packages/python/plotly/plotly/validators/surface/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/surface/_hovertemplatesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertemplatesrc", parent_name="surface", **kwargs): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='surface', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_hovertext.py b/packages/python/plotly/plotly/validators/surface/_hovertext.py index 6a3924dca83..0b649163ebc 100644 --- a/packages/python/plotly/plotly/validators/surface/_hovertext.py +++ b/packages/python/plotly/plotly/validators/surface/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="surface", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='surface', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_hovertextsrc.py b/packages/python/plotly/plotly/validators/surface/_hovertextsrc.py index fffad20418a..bde19ace8c5 100644 --- a/packages/python/plotly/plotly/validators/surface/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/surface/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="surface", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='surface', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_ids.py b/packages/python/plotly/plotly/validators/surface/_ids.py index 8d262374caa..bdefdd2d3ac 100644 --- a/packages/python/plotly/plotly/validators/surface/_ids.py +++ b/packages/python/plotly/plotly/validators/surface/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="surface", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='surface', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_idssrc.py b/packages/python/plotly/plotly/validators/surface/_idssrc.py index 120219f0523..7c8f6cf5446 100644 --- a/packages/python/plotly/plotly/validators/surface/_idssrc.py +++ b/packages/python/plotly/plotly/validators/surface/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="surface", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='surface', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_legend.py b/packages/python/plotly/plotly/validators/surface/_legend.py index a115a224a1d..1f1beb938ec 100644 --- a/packages/python/plotly/plotly/validators/surface/_legend.py +++ b/packages/python/plotly/plotly/validators/surface/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="surface", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='surface', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_legendgroup.py b/packages/python/plotly/plotly/validators/surface/_legendgroup.py index cb6a472991d..847d5548ea1 100644 --- a/packages/python/plotly/plotly/validators/surface/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/surface/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="surface", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='surface', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/surface/_legendgrouptitle.py index 755f4a0a0d5..8cbc99b53d1 100644 --- a/packages/python/plotly/plotly/validators/surface/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/surface/_legendgrouptitle.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="legendgrouptitle", parent_name="surface", **kwargs): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='surface', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_legendrank.py b/packages/python/plotly/plotly/validators/surface/_legendrank.py index e61724aed93..865b84759df 100644 --- a/packages/python/plotly/plotly/validators/surface/_legendrank.py +++ b/packages/python/plotly/plotly/validators/surface/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="surface", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='surface', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_legendwidth.py b/packages/python/plotly/plotly/validators/surface/_legendwidth.py index 378cf942123..8823ee3ce0d 100644 --- a/packages/python/plotly/plotly/validators/surface/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/surface/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="surface", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='surface', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_lighting.py b/packages/python/plotly/plotly/validators/surface/_lighting.py index 4f23020b133..1641104f0c9 100644 --- a/packages/python/plotly/plotly/validators/surface/_lighting.py +++ b/packages/python/plotly/plotly/validators/surface/_lighting.py @@ -1,34 +1,15 @@ -import _plotly_utils.basevalidators -class LightingValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="lighting", parent_name="surface", **kwargs): - super(LightingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Lighting"), - data_docs=kwargs.pop( - "data_docs", - """ - ambient - Ambient light increases overall color - visibility but can wash out the image. - diffuse - Represents the extent that incident rays are - reflected in a range of angles. - fresnel - Represents the reflectance as a dependency of - the viewing angle; e.g. paper is reflective - when viewing it from the edge of the paper - (almost 90 degrees), causing shine. - roughness - Alters specular reflection; the rougher the - surface, the wider and less contrasty the - shine. - specular - Represents the level that incident rays are - reflected in a single direction, causing shine. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LightingValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='lighting', + parent_name='surface', + **kwargs): + super(LightingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Lighting'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_lightposition.py b/packages/python/plotly/plotly/validators/surface/_lightposition.py index afe16abe30d..4683bab6de4 100644 --- a/packages/python/plotly/plotly/validators/surface/_lightposition.py +++ b/packages/python/plotly/plotly/validators/surface/_lightposition.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class LightpositionValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="lightposition", parent_name="surface", **kwargs): - super(LightpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Lightposition"), - data_docs=kwargs.pop( - "data_docs", - """ - x - Numeric vector, representing the X coordinate - for each vertex. - y - Numeric vector, representing the Y coordinate - for each vertex. - z - Numeric vector, representing the Z coordinate - for each vertex. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LightpositionValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='lightposition', + parent_name='surface', + **kwargs): + super(LightpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Lightposition'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_meta.py b/packages/python/plotly/plotly/validators/surface/_meta.py index 49f1f2ab85c..83b172cba58 100644 --- a/packages/python/plotly/plotly/validators/surface/_meta.py +++ b/packages/python/plotly/plotly/validators/surface/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="surface", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='surface', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_metasrc.py b/packages/python/plotly/plotly/validators/surface/_metasrc.py index 9c4ac1208a6..c1d98470143 100644 --- a/packages/python/plotly/plotly/validators/surface/_metasrc.py +++ b/packages/python/plotly/plotly/validators/surface/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="surface", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='surface', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_name.py b/packages/python/plotly/plotly/validators/surface/_name.py index b3187def7c4..b9ff6a04d84 100644 --- a/packages/python/plotly/plotly/validators/surface/_name.py +++ b/packages/python/plotly/plotly/validators/surface/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="surface", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='surface', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_opacity.py b/packages/python/plotly/plotly/validators/surface/_opacity.py index 35c6228dc94..33cf1b56d4b 100644 --- a/packages/python/plotly/plotly/validators/surface/_opacity.py +++ b/packages/python/plotly/plotly/validators/surface/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="surface", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='surface', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_opacityscale.py b/packages/python/plotly/plotly/validators/surface/_opacityscale.py index 5da2a116990..4f10d1c13aa 100644 --- a/packages/python/plotly/plotly/validators/surface/_opacityscale.py +++ b/packages/python/plotly/plotly/validators/surface/_opacityscale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class OpacityscaleValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="opacityscale", parent_name="surface", **kwargs): - super(OpacityscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityscaleValidator(_bv.AnyValidator): + def __init__(self, plotly_name='opacityscale', + parent_name='surface', + **kwargs): + super(OpacityscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_reversescale.py b/packages/python/plotly/plotly/validators/surface/_reversescale.py index bfcb6bb8686..1157a673d2c 100644 --- a/packages/python/plotly/plotly/validators/surface/_reversescale.py +++ b/packages/python/plotly/plotly/validators/surface/_reversescale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="reversescale", parent_name="surface", **kwargs): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='surface', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_scene.py b/packages/python/plotly/plotly/validators/surface/_scene.py index 577b43383f0..b5ce46fe497 100644 --- a/packages/python/plotly/plotly/validators/surface/_scene.py +++ b/packages/python/plotly/plotly/validators/surface/_scene.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SceneValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="scene", parent_name="surface", **kwargs): - super(SceneValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "scene"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SceneValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='scene', + parent_name='surface', + **kwargs): + super(SceneValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'scene'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_showlegend.py b/packages/python/plotly/plotly/validators/surface/_showlegend.py index adb306f49b5..0be54b61ef3 100644 --- a/packages/python/plotly/plotly/validators/surface/_showlegend.py +++ b/packages/python/plotly/plotly/validators/surface/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="surface", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='surface', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_showscale.py b/packages/python/plotly/plotly/validators/surface/_showscale.py index 78ed00ab453..8fc0e3bc262 100644 --- a/packages/python/plotly/plotly/validators/surface/_showscale.py +++ b/packages/python/plotly/plotly/validators/surface/_showscale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showscale", parent_name="surface", **kwargs): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='surface', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_stream.py b/packages/python/plotly/plotly/validators/surface/_stream.py index e430f93c147..7513f4bdd50 100644 --- a/packages/python/plotly/plotly/validators/surface/_stream.py +++ b/packages/python/plotly/plotly/validators/surface/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="surface", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='surface', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_surfacecolor.py b/packages/python/plotly/plotly/validators/surface/_surfacecolor.py index a1fc1c2399e..fee0a8e74e6 100644 --- a/packages/python/plotly/plotly/validators/surface/_surfacecolor.py +++ b/packages/python/plotly/plotly/validators/surface/_surfacecolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SurfacecolorValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="surfacecolor", parent_name="surface", **kwargs): - super(SurfacecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SurfacecolorValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='surfacecolor', + parent_name='surface', + **kwargs): + super(SurfacecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_surfacecolorsrc.py b/packages/python/plotly/plotly/validators/surface/_surfacecolorsrc.py index 4b32c7921d6..5aaccbd09ea 100644 --- a/packages/python/plotly/plotly/validators/surface/_surfacecolorsrc.py +++ b/packages/python/plotly/plotly/validators/surface/_surfacecolorsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SurfacecolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="surfacecolorsrc", parent_name="surface", **kwargs): - super(SurfacecolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SurfacecolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='surfacecolorsrc', + parent_name='surface', + **kwargs): + super(SurfacecolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_text.py b/packages/python/plotly/plotly/validators/surface/_text.py index 82acec27e51..928c9f32dca 100644 --- a/packages/python/plotly/plotly/validators/surface/_text.py +++ b/packages/python/plotly/plotly/validators/surface/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="surface", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='surface', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_textsrc.py b/packages/python/plotly/plotly/validators/surface/_textsrc.py index ceb4ad83e39..aa9afdb4140 100644 --- a/packages/python/plotly/plotly/validators/surface/_textsrc.py +++ b/packages/python/plotly/plotly/validators/surface/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="surface", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='surface', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_uid.py b/packages/python/plotly/plotly/validators/surface/_uid.py index cf392536763..8885f6cacde 100644 --- a/packages/python/plotly/plotly/validators/surface/_uid.py +++ b/packages/python/plotly/plotly/validators/surface/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="surface", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='surface', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_uirevision.py b/packages/python/plotly/plotly/validators/surface/_uirevision.py index a73886aec1a..0f720b6cf5f 100644 --- a/packages/python/plotly/plotly/validators/surface/_uirevision.py +++ b/packages/python/plotly/plotly/validators/surface/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="surface", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='surface', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_visible.py b/packages/python/plotly/plotly/validators/surface/_visible.py index 195bf464525..0791d762c73 100644 --- a/packages/python/plotly/plotly/validators/surface/_visible.py +++ b/packages/python/plotly/plotly/validators/surface/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="surface", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='surface', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_x.py b/packages/python/plotly/plotly/validators/surface/_x.py index 8e0fcca70f0..2654032a0e0 100644 --- a/packages/python/plotly/plotly/validators/surface/_x.py +++ b/packages/python/plotly/plotly/validators/surface/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="x", parent_name="surface", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='x', + parent_name='surface', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_xcalendar.py b/packages/python/plotly/plotly/validators/surface/_xcalendar.py index 6ff4e556276..14915caf89e 100644 --- a/packages/python/plotly/plotly/validators/surface/_xcalendar.py +++ b/packages/python/plotly/plotly/validators/surface/_xcalendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xcalendar", parent_name="surface", **kwargs): - super(XcalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XcalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xcalendar', + parent_name='surface', + **kwargs): + super(XcalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_xhoverformat.py b/packages/python/plotly/plotly/validators/surface/_xhoverformat.py index 572d0e381db..ad2e2e665f6 100644 --- a/packages/python/plotly/plotly/validators/surface/_xhoverformat.py +++ b/packages/python/plotly/plotly/validators/surface/_xhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="xhoverformat", parent_name="surface", **kwargs): - super(XhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='xhoverformat', + parent_name='surface', + **kwargs): + super(XhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_xsrc.py b/packages/python/plotly/plotly/validators/surface/_xsrc.py index be5d340c632..b405f987f8c 100644 --- a/packages/python/plotly/plotly/validators/surface/_xsrc.py +++ b/packages/python/plotly/plotly/validators/surface/_xsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="xsrc", parent_name="surface", **kwargs): - super(XsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='xsrc', + parent_name='surface', + **kwargs): + super(XsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_y.py b/packages/python/plotly/plotly/validators/surface/_y.py index 36b913dc26a..faa8401fb10 100644 --- a/packages/python/plotly/plotly/validators/surface/_y.py +++ b/packages/python/plotly/plotly/validators/surface/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="y", parent_name="surface", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='y', + parent_name='surface', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_ycalendar.py b/packages/python/plotly/plotly/validators/surface/_ycalendar.py index 22cb7e6eec7..d461fc962d1 100644 --- a/packages/python/plotly/plotly/validators/surface/_ycalendar.py +++ b/packages/python/plotly/plotly/validators/surface/_ycalendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="ycalendar", parent_name="surface", **kwargs): - super(YcalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YcalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ycalendar', + parent_name='surface', + **kwargs): + super(YcalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_yhoverformat.py b/packages/python/plotly/plotly/validators/surface/_yhoverformat.py index 6dbf2b0b163..2942c3aa9d4 100644 --- a/packages/python/plotly/plotly/validators/surface/_yhoverformat.py +++ b/packages/python/plotly/plotly/validators/surface/_yhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="yhoverformat", parent_name="surface", **kwargs): - super(YhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='yhoverformat', + parent_name='surface', + **kwargs): + super(YhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_ysrc.py b/packages/python/plotly/plotly/validators/surface/_ysrc.py index 72ccfc7c1d3..9cf0241d669 100644 --- a/packages/python/plotly/plotly/validators/surface/_ysrc.py +++ b/packages/python/plotly/plotly/validators/surface/_ysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="ysrc", parent_name="surface", **kwargs): - super(YsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ysrc', + parent_name='surface', + **kwargs): + super(YsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_z.py b/packages/python/plotly/plotly/validators/surface/_z.py index 63e22485773..a8488616c52 100644 --- a/packages/python/plotly/plotly/validators/surface/_z.py +++ b/packages/python/plotly/plotly/validators/surface/_z.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="z", parent_name="surface", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='z', + parent_name='surface', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_zcalendar.py b/packages/python/plotly/plotly/validators/surface/_zcalendar.py index cf8f0cb4573..8698d6c8179 100644 --- a/packages/python/plotly/plotly/validators/surface/_zcalendar.py +++ b/packages/python/plotly/plotly/validators/surface/_zcalendar.py @@ -1,32 +1,14 @@ -import _plotly_utils.basevalidators -class ZcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="zcalendar", parent_name="surface", **kwargs): - super(ZcalendarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "chinese", - "coptic", - "discworld", - "ethiopian", - "gregorian", - "hebrew", - "islamic", - "jalali", - "julian", - "mayan", - "nanakshahi", - "nepali", - "persian", - "taiwan", - "thai", - "ummalqura", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZcalendarValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='zcalendar', + parent_name='surface', + **kwargs): + super(ZcalendarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['chinese', 'coptic', 'discworld', 'ethiopian', 'gregorian', 'hebrew', 'islamic', 'jalali', 'julian', 'mayan', 'nanakshahi', 'nepali', 'persian', 'taiwan', 'thai', 'ummalqura']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_zhoverformat.py b/packages/python/plotly/plotly/validators/surface/_zhoverformat.py index f391c4dae03..e265f4e16e9 100644 --- a/packages/python/plotly/plotly/validators/surface/_zhoverformat.py +++ b/packages/python/plotly/plotly/validators/surface/_zhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="zhoverformat", parent_name="surface", **kwargs): - super(ZhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='zhoverformat', + parent_name='surface', + **kwargs): + super(ZhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/_zsrc.py b/packages/python/plotly/plotly/validators/surface/_zsrc.py index 9b3afad8a6b..48c58717f97 100644 --- a/packages/python/plotly/plotly/validators/surface/_zsrc.py +++ b/packages/python/plotly/plotly/validators/surface/_zsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="zsrc", parent_name="surface", **kwargs): - super(ZsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='zsrc', + parent_name='surface', + **kwargs): + super(ZsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/__init__.py b/packages/python/plotly/plotly/validators/surface/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/surface/colorbar/_bgcolor.py index 347b775fc93..2e62ad67e3e 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_bgcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="bgcolor", parent_name="surface.colorbar", **kwargs): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='surface.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/surface/colorbar/_bordercolor.py index 397bcdbd7e3..f9363b0dfaa 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="surface.colorbar", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='surface.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/surface/colorbar/_borderwidth.py index df715182690..2b9b6e52b46 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_borderwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderwidth", parent_name="surface.colorbar", **kwargs - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='surface.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/surface/colorbar/_dtick.py index 99f74600269..603cd625169 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_dtick.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="dtick", parent_name="surface.colorbar", **kwargs): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='surface.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/surface/colorbar/_exponentformat.py index fdda588a3da..9baf53748f0 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_exponentformat.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="exponentformat", parent_name="surface.colorbar", **kwargs - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='surface.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/surface/colorbar/_labelalias.py index fa93a365426..7260ba439ca 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="surface.colorbar", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='surface.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_len.py b/packages/python/plotly/plotly/validators/surface/colorbar/_len.py index 0e1dec3307f..41a143e39e9 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_len.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="len", parent_name="surface.colorbar", **kwargs): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='surface.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/surface/colorbar/_lenmode.py index 4fa61c91049..dd6d2d89b11 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_lenmode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="lenmode", parent_name="surface.colorbar", **kwargs): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='surface.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/surface/colorbar/_minexponent.py index ba247a0b5ec..e35bf83c29f 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="surface.colorbar", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='surface.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/surface/colorbar/_nticks.py index 3538f4f9cf3..a620a819f1d 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_nticks.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="nticks", parent_name="surface.colorbar", **kwargs): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='surface.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/surface/colorbar/_orientation.py index 5cde0fffda9..4b28f34f7fc 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_orientation.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="orientation", parent_name="surface.colorbar", **kwargs - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='surface.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/surface/colorbar/_outlinecolor.py index 867c91b9ee6..21f782589d5 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_outlinecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="outlinecolor", parent_name="surface.colorbar", **kwargs - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='surface.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/surface/colorbar/_outlinewidth.py index 25237789a46..1e170b1a18b 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_outlinewidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="outlinewidth", parent_name="surface.colorbar", **kwargs - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='surface.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/surface/colorbar/_separatethousands.py index b87aaa1ec57..25dfedde041 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_separatethousands.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="separatethousands", parent_name="surface.colorbar", **kwargs - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='surface.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/surface/colorbar/_showexponent.py index f550e2d1309..57e3fcc506e 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="surface.colorbar", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='surface.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/surface/colorbar/_showticklabels.py index e390cd31793..6fa236bf806 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_showticklabels.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showticklabels", parent_name="surface.colorbar", **kwargs - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='surface.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/surface/colorbar/_showtickprefix.py index 6d885d5eb3c..56f9a2749cf 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_showtickprefix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showtickprefix", parent_name="surface.colorbar", **kwargs - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='surface.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/surface/colorbar/_showticksuffix.py index badcbc1aef4..fb6363697cd 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_showticksuffix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showticksuffix", parent_name="surface.colorbar", **kwargs - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='surface.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/surface/colorbar/_thickness.py index d7c36537251..6b78c63b4cc 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="surface.colorbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='surface.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/surface/colorbar/_thicknessmode.py index a22707a503a..1b98cbc0332 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_thicknessmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="thicknessmode", parent_name="surface.colorbar", **kwargs - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='surface.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/surface/colorbar/_tick0.py index 085fba0c26f..0f0a704d8db 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_tick0.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="tick0", parent_name="surface.colorbar", **kwargs): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='surface.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/surface/colorbar/_tickangle.py index 2f42c3b45f1..00219e438f7 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="surface.colorbar", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='surface.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/surface/colorbar/_tickcolor.py index de3e69a30b1..5473b0eca17 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="surface.colorbar", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='surface.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/surface/colorbar/_tickfont.py index d7b27718863..8434bda728c 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="surface.colorbar", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='surface.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/surface/colorbar/_tickformat.py index 0f2bce4c264..243422e5430 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="surface.colorbar", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='surface.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/surface/colorbar/_tickformatstopdefaults.py index fcb062415ec..d4c682a0135 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="surface.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='surface.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/surface/colorbar/_tickformatstops.py index dc74a0a0851..130bb1432df 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_tickformatstops.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="tickformatstops", parent_name="surface.colorbar", **kwargs - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='surface.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/surface/colorbar/_ticklabeloverflow.py index 846f99797db..a81f0a312f3 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_ticklabeloverflow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticklabeloverflow", parent_name="surface.colorbar", **kwargs - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='surface.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/surface/colorbar/_ticklabelposition.py index 46adb4d330c..76beca67ffe 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_ticklabelposition.py @@ -1,28 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticklabelposition", parent_name="surface.colorbar", **kwargs - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='surface.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/surface/colorbar/_ticklabelstep.py index 5cf8e9ff1e2..0308617d31b 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_ticklabelstep.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="ticklabelstep", parent_name="surface.colorbar", **kwargs - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='surface.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/surface/colorbar/_ticklen.py index 64473b78cd3..5e4bbe755c6 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_ticklen.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="ticklen", parent_name="surface.colorbar", **kwargs): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='surface.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/surface/colorbar/_tickmode.py index 5888d00bcde..473eace02dd 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="surface.colorbar", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='surface.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/surface/colorbar/_tickprefix.py index 8b34891075d..bb1975b5198 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="surface.colorbar", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='surface.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/surface/colorbar/_ticks.py index f7a88a41fe4..4ac4fcd0e49 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_ticks.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="ticks", parent_name="surface.colorbar", **kwargs): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='surface.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/surface/colorbar/_ticksuffix.py index 0c22129bf28..79625dc086e 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="surface.colorbar", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='surface.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/surface/colorbar/_ticktext.py index b549c78cb8a..3710ef2c9af 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="surface.colorbar", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='surface.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/surface/colorbar/_ticktextsrc.py index e7106663585..ac31d4389c1 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="surface.colorbar", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='surface.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/surface/colorbar/_tickvals.py index db11e4e9659..b10c6af0aa3 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="surface.colorbar", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='surface.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/surface/colorbar/_tickvalssrc.py index 44d6f058351..5c8aa22d248 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="surface.colorbar", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='surface.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/surface/colorbar/_tickwidth.py index dc0d68cfead..d5e4157ac66 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="surface.colorbar", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='surface.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_title.py b/packages/python/plotly/plotly/validators/surface/colorbar/_title.py index c2a8477966b..05400830ac7 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_title.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__(self, plotly_name="title", parent_name="surface.colorbar", **kwargs): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='surface.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_x.py b/packages/python/plotly/plotly/validators/surface/colorbar/_x.py index f2433ba51f1..000cf0e3a1a 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x", parent_name="surface.colorbar", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='surface.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/surface/colorbar/_xanchor.py index dd11663b19f..d7a31706235 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_xanchor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xanchor", parent_name="surface.colorbar", **kwargs): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='surface.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/surface/colorbar/_xpad.py index 234b9cb0a70..a484c5a5aa1 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_xpad.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="xpad", parent_name="surface.colorbar", **kwargs): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='surface.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_xref.py b/packages/python/plotly/plotly/validators/surface/colorbar/_xref.py index 37310ea18fc..b94a7a8eb24 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_xref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xref", parent_name="surface.colorbar", **kwargs): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='surface.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_y.py b/packages/python/plotly/plotly/validators/surface/colorbar/_y.py index a61e202d466..91696bd4bd1 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y", parent_name="surface.colorbar", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='surface.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/surface/colorbar/_yanchor.py index 4f166ac0a44..0232dace456 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_yanchor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yanchor", parent_name="surface.colorbar", **kwargs): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='surface.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/surface/colorbar/_ypad.py index 83bcbbf0d1d..198a48001e2 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_ypad.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="ypad", parent_name="surface.colorbar", **kwargs): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='surface.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/_yref.py b/packages/python/plotly/plotly/validators/surface/colorbar/_yref.py index 7813d9608ae..6d2c6df8de1 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/_yref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yref", parent_name="surface.colorbar", **kwargs): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='surface.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_color.py index d94875ba4ef..3698887e184 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="surface.colorbar.tickfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='surface.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_family.py index 339678ab7a3..4027057086a 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="surface.colorbar.tickfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='surface.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_lineposition.py index 903df467266..f69d16adf44 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="surface.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='surface.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_shadow.py index e897804d226..9f05ba02401 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="surface.colorbar.tickfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='surface.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_size.py index 6ae380621ca..d904c5e691f 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="surface.colorbar.tickfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='surface.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_style.py index 9e82158e34b..53ae958e412 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="surface.colorbar.tickfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='surface.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_textcase.py index d2b5d079081..67eb11f7cac 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="surface.colorbar.tickfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='surface.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_variant.py index 98c0924cd03..ecd75ca9411 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="surface.colorbar.tickfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='surface.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_weight.py index a9f87ea24b1..915288dcffa 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="surface.colorbar.tickfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='surface.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/surface/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/surface/colorbar/tickformatstop/_dtickrange.py index 0f248ccb246..5ec4e9a86eb 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="surface.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "valType": "any"}, - {"editType": "calc", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='surface.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'valType': 'any'}, {'editType': 'calc', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/surface/colorbar/tickformatstop/_enabled.py index 84b62260ade..d5257a7f54c 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="surface.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='surface.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/surface/colorbar/tickformatstop/_name.py index e6b6b6041cc..8249692332a 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="surface.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='surface.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/surface/colorbar/tickformatstop/_templateitemname.py index 04942555e79..7c4f6bf5f17 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="surface.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='surface.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/surface/colorbar/tickformatstop/_value.py index b1c11570556..e15967f7cc9 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="surface.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='surface.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/surface/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/surface/colorbar/title/_font.py index 645f5975eee..3189bd43bff 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="surface.colorbar.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='surface.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/surface/colorbar/title/_side.py index 214d84670b2..f07f3d63042 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/title/_side.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="side", parent_name="surface.colorbar.title", **kwargs - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='surface.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/surface/colorbar/title/_text.py index 7c7176e55d6..781946311c2 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="surface.colorbar.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='surface.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/surface/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_color.py index 3c3d1ce8a84..7f5e4c60a20 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="surface.colorbar.title.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='surface.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_family.py index 12e6ac4b4a8..7a74e4cc13c 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="surface.colorbar.title.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='surface.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_lineposition.py index a81df7c10bc..e3ad4e36166 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="surface.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='surface.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_shadow.py index 78b38bd59e8..08cae804aaf 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="surface.colorbar.title.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='surface.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_size.py index eb8b13fc82a..53439369da3 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="surface.colorbar.title.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='surface.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_style.py index bce651c0ee0..54e6d7e3dd1 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="surface.colorbar.title.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='surface.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_textcase.py index 1d27cc91dbd..6a1569d4c2f 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="surface.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='surface.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_variant.py index 48aa54ec37a..8f5c750decd 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="surface.colorbar.title.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='surface.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_weight.py index d7ccd0ac146..2b71971ff5c 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/title/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="surface.colorbar.title.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='surface.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/__init__.py b/packages/python/plotly/plotly/validators/surface/contours/__init__.py index 52779f59bc4..21cfa26dac1 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/contours/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._z import ZValidator from ._y import YValidator from ._x import XValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] + __name__, + [], + ['._z.ZValidator', '._y.YValidator', '._x.XValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/surface/contours/_x.py b/packages/python/plotly/plotly/validators/surface/contours/_x.py index fc0f918267e..01f0fbe1cce 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/_x.py +++ b/packages/python/plotly/plotly/validators/surface/contours/_x.py @@ -1,49 +1,15 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="x", parent_name="surface.contours", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "X"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the color of the contour lines. - end - Sets the end contour level value. Must be more - than `contours.start` - highlight - Determines whether or not contour lines about - the x dimension are highlighted on hover. - highlightcolor - Sets the color of the highlighted contour - lines. - highlightwidth - Sets the width of the highlighted contour - lines. - project - :class:`plotly.graph_objects.surface.contours.x - .Project` instance or dict with compatible - properties - show - Determines whether or not contour lines about - the x dimension are drawn. - size - Sets the step between each contour level. Must - be positive. - start - Sets the starting contour level value. Must be - less than `contours.end` - usecolormap - An alternate to "color". Determines whether or - not the contour lines are colored using the - trace "colorscale". - width - Sets the width of the contour lines. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='x', + parent_name='surface.contours', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'X'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/_y.py b/packages/python/plotly/plotly/validators/surface/contours/_y.py index 55fac81d763..ff99aa1f20d 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/_y.py +++ b/packages/python/plotly/plotly/validators/surface/contours/_y.py @@ -1,49 +1,15 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="y", parent_name="surface.contours", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Y"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the color of the contour lines. - end - Sets the end contour level value. Must be more - than `contours.start` - highlight - Determines whether or not contour lines about - the y dimension are highlighted on hover. - highlightcolor - Sets the color of the highlighted contour - lines. - highlightwidth - Sets the width of the highlighted contour - lines. - project - :class:`plotly.graph_objects.surface.contours.y - .Project` instance or dict with compatible - properties - show - Determines whether or not contour lines about - the y dimension are drawn. - size - Sets the step between each contour level. Must - be positive. - start - Sets the starting contour level value. Must be - less than `contours.end` - usecolormap - An alternate to "color". Determines whether or - not the contour lines are colored using the - trace "colorscale". - width - Sets the width of the contour lines. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='y', + parent_name='surface.contours', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Y'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/_z.py b/packages/python/plotly/plotly/validators/surface/contours/_z.py index f6fb2eaba4d..73c02c75385 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/_z.py +++ b/packages/python/plotly/plotly/validators/surface/contours/_z.py @@ -1,49 +1,15 @@ -import _plotly_utils.basevalidators -class ZValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="z", parent_name="surface.contours", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Z"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the color of the contour lines. - end - Sets the end contour level value. Must be more - than `contours.start` - highlight - Determines whether or not contour lines about - the z dimension are highlighted on hover. - highlightcolor - Sets the color of the highlighted contour - lines. - highlightwidth - Sets the width of the highlighted contour - lines. - project - :class:`plotly.graph_objects.surface.contours.z - .Project` instance or dict with compatible - properties - show - Determines whether or not contour lines about - the z dimension are drawn. - size - Sets the step between each contour level. Must - be positive. - start - Sets the starting contour level value. Must be - less than `contours.end` - usecolormap - An alternate to "color". Determines whether or - not the contour lines are colored using the - trace "colorscale". - width - Sets the width of the contour lines. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='z', + parent_name='surface.contours', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Z'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/x/__init__.py b/packages/python/plotly/plotly/validators/surface/contours/x/__init__.py index 33ec40f7090..d174f483a43 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/x/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/contours/x/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._usecolormap import UsecolormapValidator @@ -15,21 +14,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._usecolormap.UsecolormapValidator", - "._start.StartValidator", - "._size.SizeValidator", - "._show.ShowValidator", - "._project.ProjectValidator", - "._highlightwidth.HighlightwidthValidator", - "._highlightcolor.HighlightcolorValidator", - "._highlight.HighlightValidator", - "._end.EndValidator", - "._color.ColorValidator", - ], + ['._width.WidthValidator', '._usecolormap.UsecolormapValidator', '._start.StartValidator', '._size.SizeValidator', '._show.ShowValidator', '._project.ProjectValidator', '._highlightwidth.HighlightwidthValidator', '._highlightcolor.HighlightcolorValidator', '._highlight.HighlightValidator', '._end.EndValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/surface/contours/x/_color.py b/packages/python/plotly/plotly/validators/surface/contours/x/_color.py index 002dc1556d3..1318ac90485 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/x/_color.py +++ b/packages/python/plotly/plotly/validators/surface/contours/x/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="surface.contours.x", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='surface.contours.x', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/x/_end.py b/packages/python/plotly/plotly/validators/surface/contours/x/_end.py index 64d54254ca4..a14f1a68112 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/x/_end.py +++ b/packages/python/plotly/plotly/validators/surface/contours/x/_end.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class EndValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="end", parent_name="surface.contours.x", **kwargs): - super(EndValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EndValidator(_bv.NumberValidator): + def __init__(self, plotly_name='end', + parent_name='surface.contours.x', + **kwargs): + super(EndValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/x/_highlight.py b/packages/python/plotly/plotly/validators/surface/contours/x/_highlight.py index 8b512d97cad..1d8b0be032a 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/x/_highlight.py +++ b/packages/python/plotly/plotly/validators/surface/contours/x/_highlight.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HighlightValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="highlight", parent_name="surface.contours.x", **kwargs - ): - super(HighlightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HighlightValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='highlight', + parent_name='surface.contours.x', + **kwargs): + super(HighlightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/x/_highlightcolor.py b/packages/python/plotly/plotly/validators/surface/contours/x/_highlightcolor.py index 051a6b8087e..2683425fd0d 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/x/_highlightcolor.py +++ b/packages/python/plotly/plotly/validators/surface/contours/x/_highlightcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HighlightcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="highlightcolor", parent_name="surface.contours.x", **kwargs - ): - super(HighlightcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HighlightcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='highlightcolor', + parent_name='surface.contours.x', + **kwargs): + super(HighlightcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/x/_highlightwidth.py b/packages/python/plotly/plotly/validators/surface/contours/x/_highlightwidth.py index b155d79a66c..c307cc83578 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/x/_highlightwidth.py +++ b/packages/python/plotly/plotly/validators/surface/contours/x/_highlightwidth.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class HighlightwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="highlightwidth", parent_name="surface.contours.x", **kwargs - ): - super(HighlightwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 16), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HighlightwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='highlightwidth', + parent_name='surface.contours.x', + **kwargs): + super(HighlightwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 16), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/x/_project.py b/packages/python/plotly/plotly/validators/surface/contours/x/_project.py index 3556f084f1a..d85a3360832 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/x/_project.py +++ b/packages/python/plotly/plotly/validators/surface/contours/x/_project.py @@ -1,36 +1,15 @@ -import _plotly_utils.basevalidators -class ProjectValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="project", parent_name="surface.contours.x", **kwargs - ): - super(ProjectValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Project"), - data_docs=kwargs.pop( - "data_docs", - """ - x - Determines whether or not these contour lines - are projected on the x plane. If `highlight` is - set to True (the default), the projected lines - are shown on hover. If `show` is set to True, - the projected lines are shown in permanence. - y - Determines whether or not these contour lines - are projected on the y plane. If `highlight` is - set to True (the default), the projected lines - are shown on hover. If `show` is set to True, - the projected lines are shown in permanence. - z - Determines whether or not these contour lines - are projected on the z plane. If `highlight` is - set to True (the default), the projected lines - are shown on hover. If `show` is set to True, - the projected lines are shown in permanence. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ProjectValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='project', + parent_name='surface.contours.x', + **kwargs): + super(ProjectValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Project'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/x/_show.py b/packages/python/plotly/plotly/validators/surface/contours/x/_show.py index a39b7561cfe..230bf24902b 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/x/_show.py +++ b/packages/python/plotly/plotly/validators/surface/contours/x/_show.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="show", parent_name="surface.contours.x", **kwargs): - super(ShowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='show', + parent_name='surface.contours.x', + **kwargs): + super(ShowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/x/_size.py b/packages/python/plotly/plotly/validators/surface/contours/x/_size.py index 2cee0c21065..46212731bf9 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/x/_size.py +++ b/packages/python/plotly/plotly/validators/surface/contours/x/_size.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="surface.contours.x", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='surface.contours.x', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/x/_start.py b/packages/python/plotly/plotly/validators/surface/contours/x/_start.py index 20584c2974b..b8c92181378 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/x/_start.py +++ b/packages/python/plotly/plotly/validators/surface/contours/x/_start.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class StartValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="start", parent_name="surface.contours.x", **kwargs): - super(StartValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StartValidator(_bv.NumberValidator): + def __init__(self, plotly_name='start', + parent_name='surface.contours.x', + **kwargs): + super(StartValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/x/_usecolormap.py b/packages/python/plotly/plotly/validators/surface/contours/x/_usecolormap.py index 9fc46fa72f7..edbb3ea61dc 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/x/_usecolormap.py +++ b/packages/python/plotly/plotly/validators/surface/contours/x/_usecolormap.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class UsecolormapValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="usecolormap", parent_name="surface.contours.x", **kwargs - ): - super(UsecolormapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class UsecolormapValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='usecolormap', + parent_name='surface.contours.x', + **kwargs): + super(UsecolormapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/x/_width.py b/packages/python/plotly/plotly/validators/surface/contours/x/_width.py index c286e20564f..0d1dc1bdf26 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/x/_width.py +++ b/packages/python/plotly/plotly/validators/surface/contours/x/_width.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="surface.contours.x", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 16), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='surface.contours.x', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 16), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/x/project/__init__.py b/packages/python/plotly/plotly/validators/surface/contours/x/project/__init__.py index 52779f59bc4..21cfa26dac1 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/x/project/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/contours/x/project/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._z import ZValidator from ._y import YValidator from ._x import XValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] + __name__, + [], + ['._z.ZValidator', '._y.YValidator', '._x.XValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/surface/contours/x/project/_x.py b/packages/python/plotly/plotly/validators/surface/contours/x/project/_x.py index 78261dc908b..5b77a804c05 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/x/project/_x.py +++ b/packages/python/plotly/plotly/validators/surface/contours/x/project/_x.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="x", parent_name="surface.contours.x.project", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='x', + parent_name='surface.contours.x.project', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/x/project/_y.py b/packages/python/plotly/plotly/validators/surface/contours/x/project/_y.py index f07a8321724..fe13726b68f 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/x/project/_y.py +++ b/packages/python/plotly/plotly/validators/surface/contours/x/project/_y.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="y", parent_name="surface.contours.x.project", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='y', + parent_name='surface.contours.x.project', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/x/project/_z.py b/packages/python/plotly/plotly/validators/surface/contours/x/project/_z.py index 672eb35d4f1..2d903f399d6 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/x/project/_z.py +++ b/packages/python/plotly/plotly/validators/surface/contours/x/project/_z.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ZValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="z", parent_name="surface.contours.x.project", **kwargs - ): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='z', + parent_name='surface.contours.x.project', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/y/__init__.py b/packages/python/plotly/plotly/validators/surface/contours/y/__init__.py index 33ec40f7090..d174f483a43 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/y/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/contours/y/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._usecolormap import UsecolormapValidator @@ -15,21 +14,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._usecolormap.UsecolormapValidator", - "._start.StartValidator", - "._size.SizeValidator", - "._show.ShowValidator", - "._project.ProjectValidator", - "._highlightwidth.HighlightwidthValidator", - "._highlightcolor.HighlightcolorValidator", - "._highlight.HighlightValidator", - "._end.EndValidator", - "._color.ColorValidator", - ], + ['._width.WidthValidator', '._usecolormap.UsecolormapValidator', '._start.StartValidator', '._size.SizeValidator', '._show.ShowValidator', '._project.ProjectValidator', '._highlightwidth.HighlightwidthValidator', '._highlightcolor.HighlightcolorValidator', '._highlight.HighlightValidator', '._end.EndValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/surface/contours/y/_color.py b/packages/python/plotly/plotly/validators/surface/contours/y/_color.py index fe9b7c44fd5..3bd0fb7c13d 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/y/_color.py +++ b/packages/python/plotly/plotly/validators/surface/contours/y/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="surface.contours.y", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='surface.contours.y', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/y/_end.py b/packages/python/plotly/plotly/validators/surface/contours/y/_end.py index 8d5b5dbdbe4..8190117dde9 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/y/_end.py +++ b/packages/python/plotly/plotly/validators/surface/contours/y/_end.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class EndValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="end", parent_name="surface.contours.y", **kwargs): - super(EndValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EndValidator(_bv.NumberValidator): + def __init__(self, plotly_name='end', + parent_name='surface.contours.y', + **kwargs): + super(EndValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/y/_highlight.py b/packages/python/plotly/plotly/validators/surface/contours/y/_highlight.py index bebc1cf6c10..453be6d8718 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/y/_highlight.py +++ b/packages/python/plotly/plotly/validators/surface/contours/y/_highlight.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HighlightValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="highlight", parent_name="surface.contours.y", **kwargs - ): - super(HighlightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HighlightValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='highlight', + parent_name='surface.contours.y', + **kwargs): + super(HighlightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/y/_highlightcolor.py b/packages/python/plotly/plotly/validators/surface/contours/y/_highlightcolor.py index d32aede7848..0ceeacc1128 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/y/_highlightcolor.py +++ b/packages/python/plotly/plotly/validators/surface/contours/y/_highlightcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HighlightcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="highlightcolor", parent_name="surface.contours.y", **kwargs - ): - super(HighlightcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HighlightcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='highlightcolor', + parent_name='surface.contours.y', + **kwargs): + super(HighlightcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/y/_highlightwidth.py b/packages/python/plotly/plotly/validators/surface/contours/y/_highlightwidth.py index 8ad526d3e78..ed9cddb96d2 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/y/_highlightwidth.py +++ b/packages/python/plotly/plotly/validators/surface/contours/y/_highlightwidth.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class HighlightwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="highlightwidth", parent_name="surface.contours.y", **kwargs - ): - super(HighlightwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 16), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HighlightwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='highlightwidth', + parent_name='surface.contours.y', + **kwargs): + super(HighlightwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 16), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/y/_project.py b/packages/python/plotly/plotly/validators/surface/contours/y/_project.py index e908bc88555..c588a0becac 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/y/_project.py +++ b/packages/python/plotly/plotly/validators/surface/contours/y/_project.py @@ -1,36 +1,15 @@ -import _plotly_utils.basevalidators -class ProjectValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="project", parent_name="surface.contours.y", **kwargs - ): - super(ProjectValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Project"), - data_docs=kwargs.pop( - "data_docs", - """ - x - Determines whether or not these contour lines - are projected on the x plane. If `highlight` is - set to True (the default), the projected lines - are shown on hover. If `show` is set to True, - the projected lines are shown in permanence. - y - Determines whether or not these contour lines - are projected on the y plane. If `highlight` is - set to True (the default), the projected lines - are shown on hover. If `show` is set to True, - the projected lines are shown in permanence. - z - Determines whether or not these contour lines - are projected on the z plane. If `highlight` is - set to True (the default), the projected lines - are shown on hover. If `show` is set to True, - the projected lines are shown in permanence. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ProjectValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='project', + parent_name='surface.contours.y', + **kwargs): + super(ProjectValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Project'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/y/_show.py b/packages/python/plotly/plotly/validators/surface/contours/y/_show.py index cc9fd3403d1..ef385ea88f2 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/y/_show.py +++ b/packages/python/plotly/plotly/validators/surface/contours/y/_show.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="show", parent_name="surface.contours.y", **kwargs): - super(ShowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='show', + parent_name='surface.contours.y', + **kwargs): + super(ShowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/y/_size.py b/packages/python/plotly/plotly/validators/surface/contours/y/_size.py index a198eae3bfe..66b4b3ed82c 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/y/_size.py +++ b/packages/python/plotly/plotly/validators/surface/contours/y/_size.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="surface.contours.y", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='surface.contours.y', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/y/_start.py b/packages/python/plotly/plotly/validators/surface/contours/y/_start.py index d222ddbc63f..855caff1af6 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/y/_start.py +++ b/packages/python/plotly/plotly/validators/surface/contours/y/_start.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class StartValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="start", parent_name="surface.contours.y", **kwargs): - super(StartValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StartValidator(_bv.NumberValidator): + def __init__(self, plotly_name='start', + parent_name='surface.contours.y', + **kwargs): + super(StartValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/y/_usecolormap.py b/packages/python/plotly/plotly/validators/surface/contours/y/_usecolormap.py index e28376b3c6c..ec87ae82567 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/y/_usecolormap.py +++ b/packages/python/plotly/plotly/validators/surface/contours/y/_usecolormap.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class UsecolormapValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="usecolormap", parent_name="surface.contours.y", **kwargs - ): - super(UsecolormapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class UsecolormapValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='usecolormap', + parent_name='surface.contours.y', + **kwargs): + super(UsecolormapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/y/_width.py b/packages/python/plotly/plotly/validators/surface/contours/y/_width.py index 7371004e576..47c16186fd8 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/y/_width.py +++ b/packages/python/plotly/plotly/validators/surface/contours/y/_width.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="surface.contours.y", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 16), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='surface.contours.y', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 16), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/y/project/__init__.py b/packages/python/plotly/plotly/validators/surface/contours/y/project/__init__.py index 52779f59bc4..21cfa26dac1 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/y/project/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/contours/y/project/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._z import ZValidator from ._y import YValidator from ._x import XValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] + __name__, + [], + ['._z.ZValidator', '._y.YValidator', '._x.XValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/surface/contours/y/project/_x.py b/packages/python/plotly/plotly/validators/surface/contours/y/project/_x.py index d56533c2f65..f8b5aa8e11a 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/y/project/_x.py +++ b/packages/python/plotly/plotly/validators/surface/contours/y/project/_x.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="x", parent_name="surface.contours.y.project", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='x', + parent_name='surface.contours.y.project', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/y/project/_y.py b/packages/python/plotly/plotly/validators/surface/contours/y/project/_y.py index 17ba4e3dbdf..936a68387e6 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/y/project/_y.py +++ b/packages/python/plotly/plotly/validators/surface/contours/y/project/_y.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="y", parent_name="surface.contours.y.project", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='y', + parent_name='surface.contours.y.project', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/y/project/_z.py b/packages/python/plotly/plotly/validators/surface/contours/y/project/_z.py index 429e4d4e74b..ca95db5f6fc 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/y/project/_z.py +++ b/packages/python/plotly/plotly/validators/surface/contours/y/project/_z.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ZValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="z", parent_name="surface.contours.y.project", **kwargs - ): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='z', + parent_name='surface.contours.y.project', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/z/__init__.py b/packages/python/plotly/plotly/validators/surface/contours/z/__init__.py index 33ec40f7090..d174f483a43 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/z/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/contours/z/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._usecolormap import UsecolormapValidator @@ -15,21 +14,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._usecolormap.UsecolormapValidator", - "._start.StartValidator", - "._size.SizeValidator", - "._show.ShowValidator", - "._project.ProjectValidator", - "._highlightwidth.HighlightwidthValidator", - "._highlightcolor.HighlightcolorValidator", - "._highlight.HighlightValidator", - "._end.EndValidator", - "._color.ColorValidator", - ], + ['._width.WidthValidator', '._usecolormap.UsecolormapValidator', '._start.StartValidator', '._size.SizeValidator', '._show.ShowValidator', '._project.ProjectValidator', '._highlightwidth.HighlightwidthValidator', '._highlightcolor.HighlightcolorValidator', '._highlight.HighlightValidator', '._end.EndValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/surface/contours/z/_color.py b/packages/python/plotly/plotly/validators/surface/contours/z/_color.py index 503fb13cdee..399b740f4d0 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/z/_color.py +++ b/packages/python/plotly/plotly/validators/surface/contours/z/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="surface.contours.z", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='surface.contours.z', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/z/_end.py b/packages/python/plotly/plotly/validators/surface/contours/z/_end.py index 8f0eee79393..99a0af9ae63 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/z/_end.py +++ b/packages/python/plotly/plotly/validators/surface/contours/z/_end.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class EndValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="end", parent_name="surface.contours.z", **kwargs): - super(EndValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EndValidator(_bv.NumberValidator): + def __init__(self, plotly_name='end', + parent_name='surface.contours.z', + **kwargs): + super(EndValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/z/_highlight.py b/packages/python/plotly/plotly/validators/surface/contours/z/_highlight.py index 607e3a771a8..ce7057c2f9f 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/z/_highlight.py +++ b/packages/python/plotly/plotly/validators/surface/contours/z/_highlight.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HighlightValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="highlight", parent_name="surface.contours.z", **kwargs - ): - super(HighlightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HighlightValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='highlight', + parent_name='surface.contours.z', + **kwargs): + super(HighlightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/z/_highlightcolor.py b/packages/python/plotly/plotly/validators/surface/contours/z/_highlightcolor.py index a78c3b82f63..f36368aaf56 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/z/_highlightcolor.py +++ b/packages/python/plotly/plotly/validators/surface/contours/z/_highlightcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HighlightcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="highlightcolor", parent_name="surface.contours.z", **kwargs - ): - super(HighlightcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HighlightcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='highlightcolor', + parent_name='surface.contours.z', + **kwargs): + super(HighlightcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/z/_highlightwidth.py b/packages/python/plotly/plotly/validators/surface/contours/z/_highlightwidth.py index c0261d705f7..97ac7cf4e57 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/z/_highlightwidth.py +++ b/packages/python/plotly/plotly/validators/surface/contours/z/_highlightwidth.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class HighlightwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="highlightwidth", parent_name="surface.contours.z", **kwargs - ): - super(HighlightwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 16), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HighlightwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='highlightwidth', + parent_name='surface.contours.z', + **kwargs): + super(HighlightwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 16), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/z/_project.py b/packages/python/plotly/plotly/validators/surface/contours/z/_project.py index b009d95f2c2..dc9fd7e5c84 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/z/_project.py +++ b/packages/python/plotly/plotly/validators/surface/contours/z/_project.py @@ -1,36 +1,15 @@ -import _plotly_utils.basevalidators -class ProjectValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="project", parent_name="surface.contours.z", **kwargs - ): - super(ProjectValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Project"), - data_docs=kwargs.pop( - "data_docs", - """ - x - Determines whether or not these contour lines - are projected on the x plane. If `highlight` is - set to True (the default), the projected lines - are shown on hover. If `show` is set to True, - the projected lines are shown in permanence. - y - Determines whether or not these contour lines - are projected on the y plane. If `highlight` is - set to True (the default), the projected lines - are shown on hover. If `show` is set to True, - the projected lines are shown in permanence. - z - Determines whether or not these contour lines - are projected on the z plane. If `highlight` is - set to True (the default), the projected lines - are shown on hover. If `show` is set to True, - the projected lines are shown in permanence. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ProjectValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='project', + parent_name='surface.contours.z', + **kwargs): + super(ProjectValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Project'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/z/_show.py b/packages/python/plotly/plotly/validators/surface/contours/z/_show.py index 00460b96e00..e19c2c1c75b 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/z/_show.py +++ b/packages/python/plotly/plotly/validators/surface/contours/z/_show.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="show", parent_name="surface.contours.z", **kwargs): - super(ShowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='show', + parent_name='surface.contours.z', + **kwargs): + super(ShowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/z/_size.py b/packages/python/plotly/plotly/validators/surface/contours/z/_size.py index 4944df31a17..5c30407ee22 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/z/_size.py +++ b/packages/python/plotly/plotly/validators/surface/contours/z/_size.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="surface.contours.z", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='surface.contours.z', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/z/_start.py b/packages/python/plotly/plotly/validators/surface/contours/z/_start.py index 0c5a3610e86..bbd61e9018a 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/z/_start.py +++ b/packages/python/plotly/plotly/validators/surface/contours/z/_start.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class StartValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="start", parent_name="surface.contours.z", **kwargs): - super(StartValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StartValidator(_bv.NumberValidator): + def __init__(self, plotly_name='start', + parent_name='surface.contours.z', + **kwargs): + super(StartValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/z/_usecolormap.py b/packages/python/plotly/plotly/validators/surface/contours/z/_usecolormap.py index 1486dd1c4b9..dbf24e84034 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/z/_usecolormap.py +++ b/packages/python/plotly/plotly/validators/surface/contours/z/_usecolormap.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class UsecolormapValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="usecolormap", parent_name="surface.contours.z", **kwargs - ): - super(UsecolormapValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class UsecolormapValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='usecolormap', + parent_name='surface.contours.z', + **kwargs): + super(UsecolormapValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/z/_width.py b/packages/python/plotly/plotly/validators/surface/contours/z/_width.py index da40cada439..558d52f856b 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/z/_width.py +++ b/packages/python/plotly/plotly/validators/surface/contours/z/_width.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="surface.contours.z", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 16), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='surface.contours.z', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 16), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/z/project/__init__.py b/packages/python/plotly/plotly/validators/surface/contours/z/project/__init__.py index 52779f59bc4..21cfa26dac1 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/z/project/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/contours/z/project/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._z import ZValidator from ._y import YValidator from ._x import XValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] + __name__, + [], + ['._z.ZValidator', '._y.YValidator', '._x.XValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/surface/contours/z/project/_x.py b/packages/python/plotly/plotly/validators/surface/contours/z/project/_x.py index 10817247bdd..7c374749282 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/z/project/_x.py +++ b/packages/python/plotly/plotly/validators/surface/contours/z/project/_x.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="x", parent_name="surface.contours.z.project", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='x', + parent_name='surface.contours.z.project', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/z/project/_y.py b/packages/python/plotly/plotly/validators/surface/contours/z/project/_y.py index 04bdd6db18d..e8c683bd21f 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/z/project/_y.py +++ b/packages/python/plotly/plotly/validators/surface/contours/z/project/_y.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="y", parent_name="surface.contours.z.project", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='y', + parent_name='surface.contours.z.project', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/contours/z/project/_z.py b/packages/python/plotly/plotly/validators/surface/contours/z/project/_z.py index 6624e0a54cf..05dc884460c 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/z/project/_z.py +++ b/packages/python/plotly/plotly/validators/surface/contours/z/project/_z.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ZValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="z", parent_name="surface.contours.z.project", **kwargs - ): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='z', + parent_name='surface.contours.z.project', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/_align.py index 9ebf06ad244..8e77f281f65 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/_align.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="align", parent_name="surface.hoverlabel", **kwargs): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='surface.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/_alignsrc.py index 73dc56fc667..3faa3173646 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="surface.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='surface.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/_bgcolor.py index 0eb08e4f586..ebc8dce53e5 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="surface.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='surface.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/_bgcolorsrc.py index 8d92a3197d6..6a040412c3b 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="surface.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='surface.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/_bordercolor.py index b1cc1813443..9116b97bed0 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="surface.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='surface.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/_bordercolorsrc.py index f2130256b3e..f4ba928460e 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bordercolorsrc", parent_name="surface.hoverlabel", **kwargs - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='surface.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/_font.py index 3ea601f1d13..e4a1c8dda5e 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/_font.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="surface.hoverlabel", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='surface.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/_namelength.py index 8c31e73cad5..007c7388131 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="surface.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='surface.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/_namelengthsrc.py index 4986ece4f07..8c7f951fbe2 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="surface.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='surface.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_color.py index 5f70ffc3aab..973b3f6f69d 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="surface.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='surface.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_colorsrc.py index 8a1dde6a8a5..a8e7ee98df4 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="surface.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='surface.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_family.py index ddc7097f01b..b7b60e82089 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="surface.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='surface.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_familysrc.py index 9692a4ad063..9dfdf26515f 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="surface.hoverlabel.font", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='surface.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_lineposition.py index f3b6f34008d..4c10e586861 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="surface.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='surface.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_linepositionsrc.py index 9607b5b6830..af6047a8f28 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="surface.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='surface.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_shadow.py index 93645f9b136..0eaa07adbc2 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="surface.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='surface.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_shadowsrc.py index da928bc9416..b7b258e0c07 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="surface.hoverlabel.font", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='surface.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_size.py index 37db804cd42..e5f307b1a5c 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="surface.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='surface.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_sizesrc.py index ab277d81b2b..526660e5b76 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="surface.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='surface.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_style.py index 929677faad6..ba8a0c0f65e 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="surface.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='surface.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_stylesrc.py index 4c786bb71d4..07466faf75b 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="surface.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='surface.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_textcase.py index 7ed30753ac6..b5a4bce4892 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="surface.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='surface.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_textcasesrc.py index 67078c6a502..e000473adc0 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="surface.hoverlabel.font", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='surface.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_variant.py index 622951225ae..acfecc2d4ff 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="surface.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='surface.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_variantsrc.py index 2c85217f26e..82c0b80b2a2 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="surface.hoverlabel.font", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='surface.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_weight.py index bc3cc2c7511..021ebc5e5df 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="surface.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='surface.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_weightsrc.py index 21e71021fc0..13dae3367e1 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="surface.hoverlabel.font", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='surface.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/surface/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/surface/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/surface/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/surface/legendgrouptitle/_font.py index 33091b7e8a3..83ce0293daa 100644 --- a/packages/python/plotly/plotly/validators/surface/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/surface/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="surface.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='surface.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/surface/legendgrouptitle/_text.py index b96eb50a20a..c161edc8ff1 100644 --- a/packages/python/plotly/plotly/validators/surface/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/surface/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="surface.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='surface.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_color.py index 486e451f60b..268c7abf179 100644 --- a/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="surface.legendgrouptitle.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='surface.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_family.py index 0f0329363d7..677b7c35ec6 100644 --- a/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="surface.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='surface.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_lineposition.py index 56258b9c5a1..628688af143 100644 --- a/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="surface.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='surface.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_shadow.py index 3f8e4ed0e50..9715c27a2de 100644 --- a/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="surface.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='surface.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_size.py index 7fd39e739af..eedbf35803b 100644 --- a/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="surface.legendgrouptitle.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='surface.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_style.py index 6b8b863f573..04b07da5836 100644 --- a/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="surface.legendgrouptitle.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='surface.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_textcase.py index 4d6491fe7fa..649367dceb0 100644 --- a/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="surface.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='surface.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_variant.py index 4b2c0b3d696..7c085952dde 100644 --- a/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="surface.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='surface.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_weight.py index 1348b1f9a96..ff1efd0781c 100644 --- a/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/surface/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="surface.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='surface.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/lighting/__init__.py b/packages/python/plotly/plotly/validators/surface/lighting/__init__.py index 4b1f88d4953..f61bb997e5a 100644 --- a/packages/python/plotly/plotly/validators/surface/lighting/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/lighting/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._specular import SpecularValidator from ._roughness import RoughnessValidator @@ -9,15 +8,10 @@ from ._ambient import AmbientValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._specular.SpecularValidator", - "._roughness.RoughnessValidator", - "._fresnel.FresnelValidator", - "._diffuse.DiffuseValidator", - "._ambient.AmbientValidator", - ], + ['._specular.SpecularValidator', '._roughness.RoughnessValidator', '._fresnel.FresnelValidator', '._diffuse.DiffuseValidator', '._ambient.AmbientValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/surface/lighting/_ambient.py b/packages/python/plotly/plotly/validators/surface/lighting/_ambient.py index 5e75d71b585..c6a54cb8cdb 100644 --- a/packages/python/plotly/plotly/validators/surface/lighting/_ambient.py +++ b/packages/python/plotly/plotly/validators/surface/lighting/_ambient.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class AmbientValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="ambient", parent_name="surface.lighting", **kwargs): - super(AmbientValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AmbientValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ambient', + parent_name='surface.lighting', + **kwargs): + super(AmbientValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/lighting/_diffuse.py b/packages/python/plotly/plotly/validators/surface/lighting/_diffuse.py index 0ffec526cc6..e4acc70dfc6 100644 --- a/packages/python/plotly/plotly/validators/surface/lighting/_diffuse.py +++ b/packages/python/plotly/plotly/validators/surface/lighting/_diffuse.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class DiffuseValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="diffuse", parent_name="surface.lighting", **kwargs): - super(DiffuseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DiffuseValidator(_bv.NumberValidator): + def __init__(self, plotly_name='diffuse', + parent_name='surface.lighting', + **kwargs): + super(DiffuseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/lighting/_fresnel.py b/packages/python/plotly/plotly/validators/surface/lighting/_fresnel.py index 13b7a78cd96..63ca2b9ec65 100644 --- a/packages/python/plotly/plotly/validators/surface/lighting/_fresnel.py +++ b/packages/python/plotly/plotly/validators/surface/lighting/_fresnel.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class FresnelValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="fresnel", parent_name="surface.lighting", **kwargs): - super(FresnelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 5), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FresnelValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fresnel', + parent_name='surface.lighting', + **kwargs): + super(FresnelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 5), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/lighting/_roughness.py b/packages/python/plotly/plotly/validators/surface/lighting/_roughness.py index 71e6ab35e09..b1f3ef8b387 100644 --- a/packages/python/plotly/plotly/validators/surface/lighting/_roughness.py +++ b/packages/python/plotly/plotly/validators/surface/lighting/_roughness.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class RoughnessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="roughness", parent_name="surface.lighting", **kwargs - ): - super(RoughnessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RoughnessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='roughness', + parent_name='surface.lighting', + **kwargs): + super(RoughnessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/lighting/_specular.py b/packages/python/plotly/plotly/validators/surface/lighting/_specular.py index ed5b3a45010..929d4a80934 100644 --- a/packages/python/plotly/plotly/validators/surface/lighting/_specular.py +++ b/packages/python/plotly/plotly/validators/surface/lighting/_specular.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SpecularValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="specular", parent_name="surface.lighting", **kwargs - ): - super(SpecularValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 2), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SpecularValidator(_bv.NumberValidator): + def __init__(self, plotly_name='specular', + parent_name='surface.lighting', + **kwargs): + super(SpecularValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 2), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/lightposition/__init__.py b/packages/python/plotly/plotly/validators/surface/lightposition/__init__.py index 52779f59bc4..21cfa26dac1 100644 --- a/packages/python/plotly/plotly/validators/surface/lightposition/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/lightposition/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._z import ZValidator from ._y import YValidator from ._x import XValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] + __name__, + [], + ['._z.ZValidator', '._y.YValidator', '._x.XValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/surface/lightposition/_x.py b/packages/python/plotly/plotly/validators/surface/lightposition/_x.py index 4687347dab4..f40c81b08b2 100644 --- a/packages/python/plotly/plotly/validators/surface/lightposition/_x.py +++ b/packages/python/plotly/plotly/validators/surface/lightposition/_x.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x", parent_name="surface.lightposition", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 100000), - min=kwargs.pop("min", -100000), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='surface.lightposition', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 100000), + min=kwargs.pop('min', -100000), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/lightposition/_y.py b/packages/python/plotly/plotly/validators/surface/lightposition/_y.py index 4483bdfa35f..d9e7c99f67a 100644 --- a/packages/python/plotly/plotly/validators/surface/lightposition/_y.py +++ b/packages/python/plotly/plotly/validators/surface/lightposition/_y.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y", parent_name="surface.lightposition", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 100000), - min=kwargs.pop("min", -100000), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='surface.lightposition', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 100000), + min=kwargs.pop('min', -100000), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/lightposition/_z.py b/packages/python/plotly/plotly/validators/surface/lightposition/_z.py index 3ac43ff185a..11acd4a3228 100644 --- a/packages/python/plotly/plotly/validators/surface/lightposition/_z.py +++ b/packages/python/plotly/plotly/validators/surface/lightposition/_z.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ZValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="z", parent_name="surface.lightposition", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 100000), - min=kwargs.pop("min", -100000), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.NumberValidator): + def __init__(self, plotly_name='z', + parent_name='surface.lightposition', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 100000), + min=kwargs.pop('min', -100000), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/stream/__init__.py b/packages/python/plotly/plotly/validators/surface/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/surface/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/surface/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/surface/stream/_maxpoints.py index 30586cc2ad2..3e297878254 100644 --- a/packages/python/plotly/plotly/validators/surface/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/surface/stream/_maxpoints.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="maxpoints", parent_name="surface.stream", **kwargs): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='surface.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/surface/stream/_token.py b/packages/python/plotly/plotly/validators/surface/stream/_token.py index cf9ac25d0d6..9f40c298d8d 100644 --- a/packages/python/plotly/plotly/validators/surface/stream/_token.py +++ b/packages/python/plotly/plotly/validators/surface/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="surface.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='surface.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/__init__.py b/packages/python/plotly/plotly/validators/table/__init__.py index 78898057047..bd9e027e54f 100644 --- a/packages/python/plotly/plotly/validators/table/__init__.py +++ b/packages/python/plotly/plotly/validators/table/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._uirevision import UirevisionValidator @@ -29,35 +28,10 @@ from ._cells import CellsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._stream.StreamValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legend.LegendValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._header.HeaderValidator", - "._domain.DomainValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._columnwidthsrc.ColumnwidthsrcValidator", - "._columnwidth.ColumnwidthValidator", - "._columnordersrc.ColumnordersrcValidator", - "._columnorder.ColumnorderValidator", - "._cells.CellsValidator", - ], + ['._visible.VisibleValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._stream.StreamValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legend.LegendValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._header.HeaderValidator', '._domain.DomainValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._columnwidthsrc.ColumnwidthsrcValidator', '._columnwidth.ColumnwidthValidator', '._columnordersrc.ColumnordersrcValidator', '._columnorder.ColumnorderValidator', '._cells.CellsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/table/_cells.py b/packages/python/plotly/plotly/validators/table/_cells.py index d10e321b878..609f27c196a 100644 --- a/packages/python/plotly/plotly/validators/table/_cells.py +++ b/packages/python/plotly/plotly/validators/table/_cells.py @@ -1,65 +1,15 @@ -import _plotly_utils.basevalidators -class CellsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="cells", parent_name="table", **kwargs): - super(CellsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Cells"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the `text` - within the box. Has an effect only if `text` - spans two or more lines (i.e. `text` contains - one or more
HTML tags) or if an explicit - width is set to override the text width. - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - fill - :class:`plotly.graph_objects.table.cells.Fill` - instance or dict with compatible properties - font - :class:`plotly.graph_objects.table.cells.Font` - instance or dict with compatible properties - format - Sets the cell value formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. - formatsrc - Sets the source reference on Chart Studio Cloud - for `format`. - height - The height of cells. - line - :class:`plotly.graph_objects.table.cells.Line` - instance or dict with compatible properties - prefix - Prefix for cell values. - prefixsrc - Sets the source reference on Chart Studio Cloud - for `prefix`. - suffix - Suffix for cell values. - suffixsrc - Sets the source reference on Chart Studio Cloud - for `suffix`. - values - Cell values. `values[m][n]` represents the - value of the `n`th point in column `m`, - therefore the `values[m]` vector length for all - columns must be the same (longer vectors will - be truncated). Each value must be a finite - number or a string. - valuessrc - Sets the source reference on Chart Studio Cloud - for `values`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CellsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='cells', + parent_name='table', + **kwargs): + super(CellsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Cells'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/_columnorder.py b/packages/python/plotly/plotly/validators/table/_columnorder.py index d8bb272d043..2a549798f2d 100644 --- a/packages/python/plotly/plotly/validators/table/_columnorder.py +++ b/packages/python/plotly/plotly/validators/table/_columnorder.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColumnorderValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="columnorder", parent_name="table", **kwargs): - super(ColumnorderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColumnorderValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='columnorder', + parent_name='table', + **kwargs): + super(ColumnorderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/_columnordersrc.py b/packages/python/plotly/plotly/validators/table/_columnordersrc.py index a587f900372..7829a38d6df 100644 --- a/packages/python/plotly/plotly/validators/table/_columnordersrc.py +++ b/packages/python/plotly/plotly/validators/table/_columnordersrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColumnordersrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="columnordersrc", parent_name="table", **kwargs): - super(ColumnordersrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColumnordersrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='columnordersrc', + parent_name='table', + **kwargs): + super(ColumnordersrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/_columnwidth.py b/packages/python/plotly/plotly/validators/table/_columnwidth.py index 1b6613ef47d..b63f6473ea5 100644 --- a/packages/python/plotly/plotly/validators/table/_columnwidth.py +++ b/packages/python/plotly/plotly/validators/table/_columnwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColumnwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="columnwidth", parent_name="table", **kwargs): - super(ColumnwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColumnwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='columnwidth', + parent_name='table', + **kwargs): + super(ColumnwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/_columnwidthsrc.py b/packages/python/plotly/plotly/validators/table/_columnwidthsrc.py index 7e5ab66159a..a9de93bc233 100644 --- a/packages/python/plotly/plotly/validators/table/_columnwidthsrc.py +++ b/packages/python/plotly/plotly/validators/table/_columnwidthsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColumnwidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="columnwidthsrc", parent_name="table", **kwargs): - super(ColumnwidthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColumnwidthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='columnwidthsrc', + parent_name='table', + **kwargs): + super(ColumnwidthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/_customdata.py b/packages/python/plotly/plotly/validators/table/_customdata.py index 4134afcb64e..51a11b79240 100644 --- a/packages/python/plotly/plotly/validators/table/_customdata.py +++ b/packages/python/plotly/plotly/validators/table/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="table", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='table', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/_customdatasrc.py b/packages/python/plotly/plotly/validators/table/_customdatasrc.py index 885523ec26e..d2e2ce2c11b 100644 --- a/packages/python/plotly/plotly/validators/table/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/table/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="table", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='table', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/_domain.py b/packages/python/plotly/plotly/validators/table/_domain.py index b6f7ae0df03..e70c941bdab 100644 --- a/packages/python/plotly/plotly/validators/table/_domain.py +++ b/packages/python/plotly/plotly/validators/table/_domain.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="domain", parent_name="table", **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 table trace . - row - If there is a layout grid, use the domain for - this row in the grid for this table trace . - x - Sets the horizontal domain of this table trace - (in plot fraction). - y - Sets the vertical domain of this table trace - (in plot fraction). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DomainValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='domain', + parent_name='table', + **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', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/_header.py b/packages/python/plotly/plotly/validators/table/_header.py index c770173340a..3d291c2024c 100644 --- a/packages/python/plotly/plotly/validators/table/_header.py +++ b/packages/python/plotly/plotly/validators/table/_header.py @@ -1,65 +1,15 @@ -import _plotly_utils.basevalidators -class HeaderValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="header", parent_name="table", **kwargs): - super(HeaderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Header"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the `text` - within the box. Has an effect only if `text` - spans two or more lines (i.e. `text` contains - one or more
HTML tags) or if an explicit - width is set to override the text width. - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - fill - :class:`plotly.graph_objects.table.header.Fill` - instance or dict with compatible properties - font - :class:`plotly.graph_objects.table.header.Font` - instance or dict with compatible properties - format - Sets the cell value formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. - formatsrc - Sets the source reference on Chart Studio Cloud - for `format`. - height - The height of cells. - line - :class:`plotly.graph_objects.table.header.Line` - instance or dict with compatible properties - prefix - Prefix for cell values. - prefixsrc - Sets the source reference on Chart Studio Cloud - for `prefix`. - suffix - Suffix for cell values. - suffixsrc - Sets the source reference on Chart Studio Cloud - for `suffix`. - values - Header cell values. `values[m][n]` represents - the value of the `n`th point in column `m`, - therefore the `values[m]` vector length for all - columns must be the same (longer vectors will - be truncated). Each value must be a finite - number or a string. - valuessrc - Sets the source reference on Chart Studio Cloud - for `values`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HeaderValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='header', + parent_name='table', + **kwargs): + super(HeaderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Header'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/_hoverinfo.py b/packages/python/plotly/plotly/validators/table/_hoverinfo.py index d9ce649c203..ef96811d427 100644 --- a/packages/python/plotly/plotly/validators/table/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/table/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="table", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='table', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/table/_hoverinfosrc.py index bbf2a457afb..4c4318d0760 100644 --- a/packages/python/plotly/plotly/validators/table/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/table/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="table", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='table', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/_hoverlabel.py b/packages/python/plotly/plotly/validators/table/_hoverlabel.py index 91bd52b527d..4805fffcbf6 100644 --- a/packages/python/plotly/plotly/validators/table/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/table/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="table", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='table', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/_ids.py b/packages/python/plotly/plotly/validators/table/_ids.py index 1c1e35af4fe..822cf9d8fe9 100644 --- a/packages/python/plotly/plotly/validators/table/_ids.py +++ b/packages/python/plotly/plotly/validators/table/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="table", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='table', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/_idssrc.py b/packages/python/plotly/plotly/validators/table/_idssrc.py index 4cf3a58534c..5b56ecd58b2 100644 --- a/packages/python/plotly/plotly/validators/table/_idssrc.py +++ b/packages/python/plotly/plotly/validators/table/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="table", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='table', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/_legend.py b/packages/python/plotly/plotly/validators/table/_legend.py index 4f520f8c5f9..d2ce82ce4ef 100644 --- a/packages/python/plotly/plotly/validators/table/_legend.py +++ b/packages/python/plotly/plotly/validators/table/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="table", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='table', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/table/_legendgrouptitle.py index 3cff9a2b5a0..0b92fad7b5f 100644 --- a/packages/python/plotly/plotly/validators/table/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/table/_legendgrouptitle.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="legendgrouptitle", parent_name="table", **kwargs): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='table', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/_legendrank.py b/packages/python/plotly/plotly/validators/table/_legendrank.py index cdc05d66102..0af75e02add 100644 --- a/packages/python/plotly/plotly/validators/table/_legendrank.py +++ b/packages/python/plotly/plotly/validators/table/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="table", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='table', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/_legendwidth.py b/packages/python/plotly/plotly/validators/table/_legendwidth.py index 05d4aa6a488..0a58fedcf64 100644 --- a/packages/python/plotly/plotly/validators/table/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/table/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="table", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='table', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/_meta.py b/packages/python/plotly/plotly/validators/table/_meta.py index cf96295102b..faf45bd123d 100644 --- a/packages/python/plotly/plotly/validators/table/_meta.py +++ b/packages/python/plotly/plotly/validators/table/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="table", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='table', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/_metasrc.py b/packages/python/plotly/plotly/validators/table/_metasrc.py index 351b170042c..c3b33f422e5 100644 --- a/packages/python/plotly/plotly/validators/table/_metasrc.py +++ b/packages/python/plotly/plotly/validators/table/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="table", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='table', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/_name.py b/packages/python/plotly/plotly/validators/table/_name.py index 2dbd45d6c7d..56b6b738d8f 100644 --- a/packages/python/plotly/plotly/validators/table/_name.py +++ b/packages/python/plotly/plotly/validators/table/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="table", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='table', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/_stream.py b/packages/python/plotly/plotly/validators/table/_stream.py index baf66dfefd3..ad474a26930 100644 --- a/packages/python/plotly/plotly/validators/table/_stream.py +++ b/packages/python/plotly/plotly/validators/table/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="table", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='table', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/_uid.py b/packages/python/plotly/plotly/validators/table/_uid.py index b9e7ad15efb..7f8518f3066 100644 --- a/packages/python/plotly/plotly/validators/table/_uid.py +++ b/packages/python/plotly/plotly/validators/table/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="table", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='table', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/_uirevision.py b/packages/python/plotly/plotly/validators/table/_uirevision.py index f3130e2fab5..93666471133 100644 --- a/packages/python/plotly/plotly/validators/table/_uirevision.py +++ b/packages/python/plotly/plotly/validators/table/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="table", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='table', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/_visible.py b/packages/python/plotly/plotly/validators/table/_visible.py index 052383310d9..842e17e9dc3 100644 --- a/packages/python/plotly/plotly/validators/table/_visible.py +++ b/packages/python/plotly/plotly/validators/table/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="table", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='table', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/__init__.py b/packages/python/plotly/plotly/validators/table/cells/__init__.py index ee416ebc746..e9f427d8a7d 100644 --- a/packages/python/plotly/plotly/validators/table/cells/__init__.py +++ b/packages/python/plotly/plotly/validators/table/cells/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._valuessrc import ValuessrcValidator from ._values import ValuesValidator @@ -18,24 +17,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._valuessrc.ValuessrcValidator", - "._values.ValuesValidator", - "._suffixsrc.SuffixsrcValidator", - "._suffix.SuffixValidator", - "._prefixsrc.PrefixsrcValidator", - "._prefix.PrefixValidator", - "._line.LineValidator", - "._height.HeightValidator", - "._formatsrc.FormatsrcValidator", - "._format.FormatValidator", - "._font.FontValidator", - "._fill.FillValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._valuessrc.ValuessrcValidator', '._values.ValuesValidator', '._suffixsrc.SuffixsrcValidator', '._suffix.SuffixValidator', '._prefixsrc.PrefixsrcValidator', '._prefix.PrefixValidator', '._line.LineValidator', '._height.HeightValidator', '._formatsrc.FormatsrcValidator', '._format.FormatValidator', '._font.FontValidator', '._fill.FillValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/table/cells/_align.py b/packages/python/plotly/plotly/validators/table/cells/_align.py index b308ee1aa8d..0d6f440eb66 100644 --- a/packages/python/plotly/plotly/validators/table/cells/_align.py +++ b/packages/python/plotly/plotly/validators/table/cells/_align.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="align", parent_name="table.cells", **kwargs): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='table.cells', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/_alignsrc.py b/packages/python/plotly/plotly/validators/table/cells/_alignsrc.py index 6d1aaaad79f..0db40a82997 100644 --- a/packages/python/plotly/plotly/validators/table/cells/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/table/cells/_alignsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="alignsrc", parent_name="table.cells", **kwargs): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='table.cells', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/_fill.py b/packages/python/plotly/plotly/validators/table/cells/_fill.py index a920b6da1e5..da8c77ef726 100644 --- a/packages/python/plotly/plotly/validators/table/cells/_fill.py +++ b/packages/python/plotly/plotly/validators/table/cells/_fill.py @@ -1,23 +1,15 @@ -import _plotly_utils.basevalidators -class FillValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="fill", parent_name="table.cells", **kwargs): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Fill"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the cell fill color. It accepts either a - specific color or an array of colors or a 2D - array of colors. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='fill', + parent_name='table.cells', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Fill'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/_font.py b/packages/python/plotly/plotly/validators/table/cells/_font.py index d14f5db38da..95fb79e8a66 100644 --- a/packages/python/plotly/plotly/validators/table/cells/_font.py +++ b/packages/python/plotly/plotly/validators/table/cells/_font.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="table.cells", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='table.cells', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/_format.py b/packages/python/plotly/plotly/validators/table/cells/_format.py index 8bef0b48e2b..906c30d6450 100644 --- a/packages/python/plotly/plotly/validators/table/cells/_format.py +++ b/packages/python/plotly/plotly/validators/table/cells/_format.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FormatValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="format", parent_name="table.cells", **kwargs): - super(FormatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FormatValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='format', + parent_name='table.cells', + **kwargs): + super(FormatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/_formatsrc.py b/packages/python/plotly/plotly/validators/table/cells/_formatsrc.py index 392c1be551c..f78e978e3c4 100644 --- a/packages/python/plotly/plotly/validators/table/cells/_formatsrc.py +++ b/packages/python/plotly/plotly/validators/table/cells/_formatsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FormatsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="formatsrc", parent_name="table.cells", **kwargs): - super(FormatsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FormatsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='formatsrc', + parent_name='table.cells', + **kwargs): + super(FormatsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/_height.py b/packages/python/plotly/plotly/validators/table/cells/_height.py index 1fa6451b95b..f516d14399d 100644 --- a/packages/python/plotly/plotly/validators/table/cells/_height.py +++ b/packages/python/plotly/plotly/validators/table/cells/_height.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HeightValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="height", parent_name="table.cells", **kwargs): - super(HeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HeightValidator(_bv.NumberValidator): + def __init__(self, plotly_name='height', + parent_name='table.cells', + **kwargs): + super(HeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/_line.py b/packages/python/plotly/plotly/validators/table/cells/_line.py index 8b6ee12b625..0206952d57e 100644 --- a/packages/python/plotly/plotly/validators/table/cells/_line.py +++ b/packages/python/plotly/plotly/validators/table/cells/_line.py @@ -1,26 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="table.cells", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - width - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. -""", - ), - **kwargs, - ) +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='table.cells', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/_prefix.py b/packages/python/plotly/plotly/validators/table/cells/_prefix.py index 89717a324eb..918bccbe9d2 100644 --- a/packages/python/plotly/plotly/validators/table/cells/_prefix.py +++ b/packages/python/plotly/plotly/validators/table/cells/_prefix.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class PrefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="prefix", parent_name="table.cells", **kwargs): - super(PrefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class PrefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='prefix', + parent_name='table.cells', + **kwargs): + super(PrefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/_prefixsrc.py b/packages/python/plotly/plotly/validators/table/cells/_prefixsrc.py index 40f2e263b75..cfe0682ac20 100644 --- a/packages/python/plotly/plotly/validators/table/cells/_prefixsrc.py +++ b/packages/python/plotly/plotly/validators/table/cells/_prefixsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class PrefixsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="prefixsrc", parent_name="table.cells", **kwargs): - super(PrefixsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class PrefixsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='prefixsrc', + parent_name='table.cells', + **kwargs): + super(PrefixsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/_suffix.py b/packages/python/plotly/plotly/validators/table/cells/_suffix.py index f16451e8499..4af1122185f 100644 --- a/packages/python/plotly/plotly/validators/table/cells/_suffix.py +++ b/packages/python/plotly/plotly/validators/table/cells/_suffix.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="suffix", parent_name="table.cells", **kwargs): - super(SuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='suffix', + parent_name='table.cells', + **kwargs): + super(SuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/_suffixsrc.py b/packages/python/plotly/plotly/validators/table/cells/_suffixsrc.py index 8ecd8c61e53..7e65676d466 100644 --- a/packages/python/plotly/plotly/validators/table/cells/_suffixsrc.py +++ b/packages/python/plotly/plotly/validators/table/cells/_suffixsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SuffixsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="suffixsrc", parent_name="table.cells", **kwargs): - super(SuffixsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SuffixsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='suffixsrc', + parent_name='table.cells', + **kwargs): + super(SuffixsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/_values.py b/packages/python/plotly/plotly/validators/table/cells/_values.py index f6f78ee5f16..ce2f07f0f18 100644 --- a/packages/python/plotly/plotly/validators/table/cells/_values.py +++ b/packages/python/plotly/plotly/validators/table/cells/_values.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ValuesValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="values", parent_name="table.cells", **kwargs): - super(ValuesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValuesValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='values', + parent_name='table.cells', + **kwargs): + super(ValuesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/_valuessrc.py b/packages/python/plotly/plotly/validators/table/cells/_valuessrc.py index a8952102fd5..a5568504369 100644 --- a/packages/python/plotly/plotly/validators/table/cells/_valuessrc.py +++ b/packages/python/plotly/plotly/validators/table/cells/_valuessrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ValuessrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="valuessrc", parent_name="table.cells", **kwargs): - super(ValuessrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValuessrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='valuessrc', + parent_name='table.cells', + **kwargs): + super(ValuessrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/fill/__init__.py b/packages/python/plotly/plotly/validators/table/cells/fill/__init__.py index 4ca11d98821..9247b192f9a 100644 --- a/packages/python/plotly/plotly/validators/table/cells/fill/__init__.py +++ b/packages/python/plotly/plotly/validators/table/cells/fill/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorsrc import ColorsrcValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._colorsrc.ColorsrcValidator", "._color.ColorValidator"] + __name__, + [], + ['._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/table/cells/fill/_color.py b/packages/python/plotly/plotly/validators/table/cells/fill/_color.py index 962490f29c1..17681f02c90 100644 --- a/packages/python/plotly/plotly/validators/table/cells/fill/_color.py +++ b/packages/python/plotly/plotly/validators/table/cells/fill/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="table.cells.fill", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='table.cells.fill', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/fill/_colorsrc.py b/packages/python/plotly/plotly/validators/table/cells/fill/_colorsrc.py index d25afc1a1b0..6b0455d1c45 100644 --- a/packages/python/plotly/plotly/validators/table/cells/fill/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/table/cells/fill/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="table.cells.fill", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='table.cells.fill', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/font/__init__.py b/packages/python/plotly/plotly/validators/table/cells/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/table/cells/font/__init__.py +++ b/packages/python/plotly/plotly/validators/table/cells/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/table/cells/font/_color.py b/packages/python/plotly/plotly/validators/table/cells/font/_color.py index a50ae569f00..1a3b8c3a097 100644 --- a/packages/python/plotly/plotly/validators/table/cells/font/_color.py +++ b/packages/python/plotly/plotly/validators/table/cells/font/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="table.cells.font", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='table.cells.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/font/_colorsrc.py b/packages/python/plotly/plotly/validators/table/cells/font/_colorsrc.py index 024189dd003..76470104947 100644 --- a/packages/python/plotly/plotly/validators/table/cells/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/table/cells/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="table.cells.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='table.cells.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/font/_family.py b/packages/python/plotly/plotly/validators/table/cells/font/_family.py index 8ba12c83d82..6c4c9a386b1 100644 --- a/packages/python/plotly/plotly/validators/table/cells/font/_family.py +++ b/packages/python/plotly/plotly/validators/table/cells/font/_family.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="family", parent_name="table.cells.font", **kwargs): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='table.cells.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/font/_familysrc.py b/packages/python/plotly/plotly/validators/table/cells/font/_familysrc.py index e797c33dd44..664f6ccb546 100644 --- a/packages/python/plotly/plotly/validators/table/cells/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/table/cells/font/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="table.cells.font", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='table.cells.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/font/_lineposition.py b/packages/python/plotly/plotly/validators/table/cells/font/_lineposition.py index 104fec7d27c..fe1196a4a4f 100644 --- a/packages/python/plotly/plotly/validators/table/cells/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/table/cells/font/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="table.cells.font", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='table.cells.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/table/cells/font/_linepositionsrc.py index ae4b47fb293..615e669681a 100644 --- a/packages/python/plotly/plotly/validators/table/cells/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/table/cells/font/_linepositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="linepositionsrc", parent_name="table.cells.font", **kwargs - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='table.cells.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/font/_shadow.py b/packages/python/plotly/plotly/validators/table/cells/font/_shadow.py index 96e4bd524bf..bae0edcc067 100644 --- a/packages/python/plotly/plotly/validators/table/cells/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/table/cells/font/_shadow.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="shadow", parent_name="table.cells.font", **kwargs): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='table.cells.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/table/cells/font/_shadowsrc.py index 7129742835a..f01d274139c 100644 --- a/packages/python/plotly/plotly/validators/table/cells/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/table/cells/font/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="table.cells.font", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='table.cells.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/font/_size.py b/packages/python/plotly/plotly/validators/table/cells/font/_size.py index 2a30886b391..a18982ce495 100644 --- a/packages/python/plotly/plotly/validators/table/cells/font/_size.py +++ b/packages/python/plotly/plotly/validators/table/cells/font/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="table.cells.font", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='table.cells.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/font/_sizesrc.py b/packages/python/plotly/plotly/validators/table/cells/font/_sizesrc.py index d7293d0b017..c9ad4830a88 100644 --- a/packages/python/plotly/plotly/validators/table/cells/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/table/cells/font/_sizesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="sizesrc", parent_name="table.cells.font", **kwargs): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='table.cells.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/font/_style.py b/packages/python/plotly/plotly/validators/table/cells/font/_style.py index 041da23bb29..ad9825b3f7e 100644 --- a/packages/python/plotly/plotly/validators/table/cells/font/_style.py +++ b/packages/python/plotly/plotly/validators/table/cells/font/_style.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="style", parent_name="table.cells.font", **kwargs): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='table.cells.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/font/_stylesrc.py b/packages/python/plotly/plotly/validators/table/cells/font/_stylesrc.py index a96f133e1a2..2663ca7f12b 100644 --- a/packages/python/plotly/plotly/validators/table/cells/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/table/cells/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="table.cells.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='table.cells.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/font/_textcase.py b/packages/python/plotly/plotly/validators/table/cells/font/_textcase.py index d6dfda9532c..355f4e787a6 100644 --- a/packages/python/plotly/plotly/validators/table/cells/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/table/cells/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="table.cells.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='table.cells.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/table/cells/font/_textcasesrc.py index 93a17496f21..5efcc41bbd8 100644 --- a/packages/python/plotly/plotly/validators/table/cells/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/table/cells/font/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="table.cells.font", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='table.cells.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/font/_variant.py b/packages/python/plotly/plotly/validators/table/cells/font/_variant.py index 78a36f3cb6b..2eb464e6665 100644 --- a/packages/python/plotly/plotly/validators/table/cells/font/_variant.py +++ b/packages/python/plotly/plotly/validators/table/cells/font/_variant.py @@ -1,23 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="variant", parent_name="table.cells.font", **kwargs): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='table.cells.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/font/_variantsrc.py b/packages/python/plotly/plotly/validators/table/cells/font/_variantsrc.py index f01f8257110..813ce9b0658 100644 --- a/packages/python/plotly/plotly/validators/table/cells/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/table/cells/font/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="table.cells.font", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='table.cells.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/font/_weight.py b/packages/python/plotly/plotly/validators/table/cells/font/_weight.py index e33f0863528..563f688901b 100644 --- a/packages/python/plotly/plotly/validators/table/cells/font/_weight.py +++ b/packages/python/plotly/plotly/validators/table/cells/font/_weight.py @@ -1,15 +1,17 @@ -import _plotly_utils.basevalidators - - -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="weight", parent_name="table.cells.font", **kwargs): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='table.cells.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/font/_weightsrc.py b/packages/python/plotly/plotly/validators/table/cells/font/_weightsrc.py index 9384af94bdf..96ec0b0f956 100644 --- a/packages/python/plotly/plotly/validators/table/cells/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/table/cells/font/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="table.cells.font", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='table.cells.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/line/__init__.py b/packages/python/plotly/plotly/validators/table/cells/line/__init__.py index a2b9e1ae50c..522c01899cf 100644 --- a/packages/python/plotly/plotly/validators/table/cells/line/__init__.py +++ b/packages/python/plotly/plotly/validators/table/cells/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._widthsrc import WidthsrcValidator from ._width import WidthValidator @@ -8,14 +7,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._widthsrc.WidthsrcValidator", - "._width.WidthValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._widthsrc.WidthsrcValidator', '._width.WidthValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/table/cells/line/_color.py b/packages/python/plotly/plotly/validators/table/cells/line/_color.py index a6d3742eb39..6b872e08c55 100644 --- a/packages/python/plotly/plotly/validators/table/cells/line/_color.py +++ b/packages/python/plotly/plotly/validators/table/cells/line/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="table.cells.line", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='table.cells.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/line/_colorsrc.py b/packages/python/plotly/plotly/validators/table/cells/line/_colorsrc.py index c5b5fa2dae8..091601df761 100644 --- a/packages/python/plotly/plotly/validators/table/cells/line/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/table/cells/line/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="table.cells.line", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='table.cells.line', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/line/_width.py b/packages/python/plotly/plotly/validators/table/cells/line/_width.py index 91eb7283d83..c6cde4437c9 100644 --- a/packages/python/plotly/plotly/validators/table/cells/line/_width.py +++ b/packages/python/plotly/plotly/validators/table/cells/line/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="table.cells.line", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='table.cells.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/cells/line/_widthsrc.py b/packages/python/plotly/plotly/validators/table/cells/line/_widthsrc.py index 9b5a8f49be9..088b1a30137 100644 --- a/packages/python/plotly/plotly/validators/table/cells/line/_widthsrc.py +++ b/packages/python/plotly/plotly/validators/table/cells/line/_widthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="widthsrc", parent_name="table.cells.line", **kwargs - ): - super(WidthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='widthsrc', + parent_name='table.cells.line', + **kwargs): + super(WidthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/domain/__init__.py b/packages/python/plotly/plotly/validators/table/domain/__init__.py index 67de5030d0a..705a2194402 100644 --- a/packages/python/plotly/plotly/validators/table/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/table/domain/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._y import YValidator from ._x import XValidator @@ -8,14 +7,10 @@ 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", - ], + ['._y.YValidator', '._x.XValidator', '._row.RowValidator', '._column.ColumnValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/table/domain/_column.py b/packages/python/plotly/plotly/validators/table/domain/_column.py index 156d700b3ba..a15e6fcde0c 100644 --- a/packages/python/plotly/plotly/validators/table/domain/_column.py +++ b/packages/python/plotly/plotly/validators/table/domain/_column.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="column", parent_name="table.domain", **kwargs): - super(ColumnValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColumnValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='column', + parent_name='table.domain', + **kwargs): + super(ColumnValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/domain/_row.py b/packages/python/plotly/plotly/validators/table/domain/_row.py index da82ffd2b6b..29b426b1df9 100644 --- a/packages/python/plotly/plotly/validators/table/domain/_row.py +++ b/packages/python/plotly/plotly/validators/table/domain/_row.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="row", parent_name="table.domain", **kwargs): - super(RowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RowValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='row', + parent_name='table.domain', + **kwargs): + super(RowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/domain/_x.py b/packages/python/plotly/plotly/validators/table/domain/_x.py index 52e6b1ca542..8c691ac076b 100644 --- a/packages/python/plotly/plotly/validators/table/domain/_x.py +++ b/packages/python/plotly/plotly/validators/table/domain/_x.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="x", parent_name="table.domain", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='x', + parent_name='table.domain', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}, {'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/domain/_y.py b/packages/python/plotly/plotly/validators/table/domain/_y.py index 63b7b7efb2b..b24f6d5b3fc 100644 --- a/packages/python/plotly/plotly/validators/table/domain/_y.py +++ b/packages/python/plotly/plotly/validators/table/domain/_y.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="y", parent_name="table.domain", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='y', + parent_name='table.domain', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}, {'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/__init__.py b/packages/python/plotly/plotly/validators/table/header/__init__.py index ee416ebc746..e9f427d8a7d 100644 --- a/packages/python/plotly/plotly/validators/table/header/__init__.py +++ b/packages/python/plotly/plotly/validators/table/header/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._valuessrc import ValuessrcValidator from ._values import ValuesValidator @@ -18,24 +17,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._valuessrc.ValuessrcValidator", - "._values.ValuesValidator", - "._suffixsrc.SuffixsrcValidator", - "._suffix.SuffixValidator", - "._prefixsrc.PrefixsrcValidator", - "._prefix.PrefixValidator", - "._line.LineValidator", - "._height.HeightValidator", - "._formatsrc.FormatsrcValidator", - "._format.FormatValidator", - "._font.FontValidator", - "._fill.FillValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._valuessrc.ValuessrcValidator', '._values.ValuesValidator', '._suffixsrc.SuffixsrcValidator', '._suffix.SuffixValidator', '._prefixsrc.PrefixsrcValidator', '._prefix.PrefixValidator', '._line.LineValidator', '._height.HeightValidator', '._formatsrc.FormatsrcValidator', '._format.FormatValidator', '._font.FontValidator', '._fill.FillValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/table/header/_align.py b/packages/python/plotly/plotly/validators/table/header/_align.py index 2af19d99ccf..0093f15ce2c 100644 --- a/packages/python/plotly/plotly/validators/table/header/_align.py +++ b/packages/python/plotly/plotly/validators/table/header/_align.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="align", parent_name="table.header", **kwargs): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='table.header', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/_alignsrc.py b/packages/python/plotly/plotly/validators/table/header/_alignsrc.py index a9c3bc2a2ff..f057ead9fa0 100644 --- a/packages/python/plotly/plotly/validators/table/header/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/table/header/_alignsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="alignsrc", parent_name="table.header", **kwargs): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='table.header', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/_fill.py b/packages/python/plotly/plotly/validators/table/header/_fill.py index 6915fff6457..0b6b488beaf 100644 --- a/packages/python/plotly/plotly/validators/table/header/_fill.py +++ b/packages/python/plotly/plotly/validators/table/header/_fill.py @@ -1,23 +1,15 @@ -import _plotly_utils.basevalidators -class FillValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="fill", parent_name="table.header", **kwargs): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Fill"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the cell fill color. It accepts either a - specific color or an array of colors or a 2D - array of colors. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='fill', + parent_name='table.header', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Fill'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/_font.py b/packages/python/plotly/plotly/validators/table/header/_font.py index fde9095312a..9a33d61ced0 100644 --- a/packages/python/plotly/plotly/validators/table/header/_font.py +++ b/packages/python/plotly/plotly/validators/table/header/_font.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="table.header", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='table.header', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/_format.py b/packages/python/plotly/plotly/validators/table/header/_format.py index 5047c435f6c..1585aac90ac 100644 --- a/packages/python/plotly/plotly/validators/table/header/_format.py +++ b/packages/python/plotly/plotly/validators/table/header/_format.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FormatValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="format", parent_name="table.header", **kwargs): - super(FormatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FormatValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='format', + parent_name='table.header', + **kwargs): + super(FormatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/_formatsrc.py b/packages/python/plotly/plotly/validators/table/header/_formatsrc.py index 924627ec95d..ceae90b58ef 100644 --- a/packages/python/plotly/plotly/validators/table/header/_formatsrc.py +++ b/packages/python/plotly/plotly/validators/table/header/_formatsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FormatsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="formatsrc", parent_name="table.header", **kwargs): - super(FormatsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FormatsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='formatsrc', + parent_name='table.header', + **kwargs): + super(FormatsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/_height.py b/packages/python/plotly/plotly/validators/table/header/_height.py index 3505048fbbe..a7c22ec28d7 100644 --- a/packages/python/plotly/plotly/validators/table/header/_height.py +++ b/packages/python/plotly/plotly/validators/table/header/_height.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HeightValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="height", parent_name="table.header", **kwargs): - super(HeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HeightValidator(_bv.NumberValidator): + def __init__(self, plotly_name='height', + parent_name='table.header', + **kwargs): + super(HeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/_line.py b/packages/python/plotly/plotly/validators/table/header/_line.py index b581d1d256c..fa5f005ec4a 100644 --- a/packages/python/plotly/plotly/validators/table/header/_line.py +++ b/packages/python/plotly/plotly/validators/table/header/_line.py @@ -1,26 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="table.header", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - width - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. -""", - ), - **kwargs, - ) +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='table.header', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/_prefix.py b/packages/python/plotly/plotly/validators/table/header/_prefix.py index c75a1c3790b..0b5c4857bca 100644 --- a/packages/python/plotly/plotly/validators/table/header/_prefix.py +++ b/packages/python/plotly/plotly/validators/table/header/_prefix.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class PrefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="prefix", parent_name="table.header", **kwargs): - super(PrefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class PrefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='prefix', + parent_name='table.header', + **kwargs): + super(PrefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/_prefixsrc.py b/packages/python/plotly/plotly/validators/table/header/_prefixsrc.py index be254fa0347..0e86cc77eae 100644 --- a/packages/python/plotly/plotly/validators/table/header/_prefixsrc.py +++ b/packages/python/plotly/plotly/validators/table/header/_prefixsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class PrefixsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="prefixsrc", parent_name="table.header", **kwargs): - super(PrefixsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class PrefixsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='prefixsrc', + parent_name='table.header', + **kwargs): + super(PrefixsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/_suffix.py b/packages/python/plotly/plotly/validators/table/header/_suffix.py index 3445b69565f..7eb5690beea 100644 --- a/packages/python/plotly/plotly/validators/table/header/_suffix.py +++ b/packages/python/plotly/plotly/validators/table/header/_suffix.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="suffix", parent_name="table.header", **kwargs): - super(SuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='suffix', + parent_name='table.header', + **kwargs): + super(SuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/_suffixsrc.py b/packages/python/plotly/plotly/validators/table/header/_suffixsrc.py index c813136c38a..880d8d2c546 100644 --- a/packages/python/plotly/plotly/validators/table/header/_suffixsrc.py +++ b/packages/python/plotly/plotly/validators/table/header/_suffixsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SuffixsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="suffixsrc", parent_name="table.header", **kwargs): - super(SuffixsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SuffixsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='suffixsrc', + parent_name='table.header', + **kwargs): + super(SuffixsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/_values.py b/packages/python/plotly/plotly/validators/table/header/_values.py index 07db22cd127..5f8721dc435 100644 --- a/packages/python/plotly/plotly/validators/table/header/_values.py +++ b/packages/python/plotly/plotly/validators/table/header/_values.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ValuesValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="values", parent_name="table.header", **kwargs): - super(ValuesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValuesValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='values', + parent_name='table.header', + **kwargs): + super(ValuesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/_valuessrc.py b/packages/python/plotly/plotly/validators/table/header/_valuessrc.py index fbefbfc0f52..5e90a4fdab0 100644 --- a/packages/python/plotly/plotly/validators/table/header/_valuessrc.py +++ b/packages/python/plotly/plotly/validators/table/header/_valuessrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ValuessrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="valuessrc", parent_name="table.header", **kwargs): - super(ValuessrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValuessrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='valuessrc', + parent_name='table.header', + **kwargs): + super(ValuessrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/fill/__init__.py b/packages/python/plotly/plotly/validators/table/header/fill/__init__.py index 4ca11d98821..9247b192f9a 100644 --- a/packages/python/plotly/plotly/validators/table/header/fill/__init__.py +++ b/packages/python/plotly/plotly/validators/table/header/fill/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._colorsrc import ColorsrcValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._colorsrc.ColorsrcValidator", "._color.ColorValidator"] + __name__, + [], + ['._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/table/header/fill/_color.py b/packages/python/plotly/plotly/validators/table/header/fill/_color.py index 4839e8bae74..637319cbd4a 100644 --- a/packages/python/plotly/plotly/validators/table/header/fill/_color.py +++ b/packages/python/plotly/plotly/validators/table/header/fill/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="table.header.fill", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='table.header.fill', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/fill/_colorsrc.py b/packages/python/plotly/plotly/validators/table/header/fill/_colorsrc.py index 102e12fd416..eb9daad9e43 100644 --- a/packages/python/plotly/plotly/validators/table/header/fill/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/table/header/fill/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="table.header.fill", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='table.header.fill', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/font/__init__.py b/packages/python/plotly/plotly/validators/table/header/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/table/header/font/__init__.py +++ b/packages/python/plotly/plotly/validators/table/header/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/table/header/font/_color.py b/packages/python/plotly/plotly/validators/table/header/font/_color.py index 4bb1d920f1e..4be5562037f 100644 --- a/packages/python/plotly/plotly/validators/table/header/font/_color.py +++ b/packages/python/plotly/plotly/validators/table/header/font/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="table.header.font", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='table.header.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/font/_colorsrc.py b/packages/python/plotly/plotly/validators/table/header/font/_colorsrc.py index 7033c88f7d4..4babf976a51 100644 --- a/packages/python/plotly/plotly/validators/table/header/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/table/header/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="table.header.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='table.header.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/font/_family.py b/packages/python/plotly/plotly/validators/table/header/font/_family.py index d14a289e27e..aa295635c39 100644 --- a/packages/python/plotly/plotly/validators/table/header/font/_family.py +++ b/packages/python/plotly/plotly/validators/table/header/font/_family.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="family", parent_name="table.header.font", **kwargs): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='table.header.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/font/_familysrc.py b/packages/python/plotly/plotly/validators/table/header/font/_familysrc.py index 75365c3bece..a8cd5afd54d 100644 --- a/packages/python/plotly/plotly/validators/table/header/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/table/header/font/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="table.header.font", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='table.header.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/font/_lineposition.py b/packages/python/plotly/plotly/validators/table/header/font/_lineposition.py index 8ff6f8563bc..3abe3d81057 100644 --- a/packages/python/plotly/plotly/validators/table/header/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/table/header/font/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="table.header.font", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='table.header.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/table/header/font/_linepositionsrc.py index fabb57303a3..de2c18054a2 100644 --- a/packages/python/plotly/plotly/validators/table/header/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/table/header/font/_linepositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="linepositionsrc", parent_name="table.header.font", **kwargs - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='table.header.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/font/_shadow.py b/packages/python/plotly/plotly/validators/table/header/font/_shadow.py index 2f052f5b241..4dfb48ff05f 100644 --- a/packages/python/plotly/plotly/validators/table/header/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/table/header/font/_shadow.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="shadow", parent_name="table.header.font", **kwargs): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='table.header.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/table/header/font/_shadowsrc.py index 21021b12d55..8a30d50cee2 100644 --- a/packages/python/plotly/plotly/validators/table/header/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/table/header/font/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="table.header.font", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='table.header.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/font/_size.py b/packages/python/plotly/plotly/validators/table/header/font/_size.py index db20534ee8a..3fe16165211 100644 --- a/packages/python/plotly/plotly/validators/table/header/font/_size.py +++ b/packages/python/plotly/plotly/validators/table/header/font/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="table.header.font", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='table.header.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/font/_sizesrc.py b/packages/python/plotly/plotly/validators/table/header/font/_sizesrc.py index 2e5020740eb..3f9c5b606f9 100644 --- a/packages/python/plotly/plotly/validators/table/header/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/table/header/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="table.header.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='table.header.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/font/_style.py b/packages/python/plotly/plotly/validators/table/header/font/_style.py index 92b380f61ae..592be198cae 100644 --- a/packages/python/plotly/plotly/validators/table/header/font/_style.py +++ b/packages/python/plotly/plotly/validators/table/header/font/_style.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="style", parent_name="table.header.font", **kwargs): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='table.header.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/font/_stylesrc.py b/packages/python/plotly/plotly/validators/table/header/font/_stylesrc.py index e5ab5d8d3ca..4261248340b 100644 --- a/packages/python/plotly/plotly/validators/table/header/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/table/header/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="table.header.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='table.header.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/font/_textcase.py b/packages/python/plotly/plotly/validators/table/header/font/_textcase.py index de189c2a2fb..a75bebc1edb 100644 --- a/packages/python/plotly/plotly/validators/table/header/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/table/header/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="table.header.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='table.header.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/table/header/font/_textcasesrc.py index eb2231e793c..000da6ba95b 100644 --- a/packages/python/plotly/plotly/validators/table/header/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/table/header/font/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="table.header.font", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='table.header.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/font/_variant.py b/packages/python/plotly/plotly/validators/table/header/font/_variant.py index 9c36f6833db..911f27bf2fd 100644 --- a/packages/python/plotly/plotly/validators/table/header/font/_variant.py +++ b/packages/python/plotly/plotly/validators/table/header/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="table.header.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='table.header.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/font/_variantsrc.py b/packages/python/plotly/plotly/validators/table/header/font/_variantsrc.py index 96382858d6c..ddbcc04f202 100644 --- a/packages/python/plotly/plotly/validators/table/header/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/table/header/font/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="table.header.font", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='table.header.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/font/_weight.py b/packages/python/plotly/plotly/validators/table/header/font/_weight.py index 7a60a24058d..de8820928aa 100644 --- a/packages/python/plotly/plotly/validators/table/header/font/_weight.py +++ b/packages/python/plotly/plotly/validators/table/header/font/_weight.py @@ -1,15 +1,17 @@ -import _plotly_utils.basevalidators - - -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="weight", parent_name="table.header.font", **kwargs): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='table.header.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/font/_weightsrc.py b/packages/python/plotly/plotly/validators/table/header/font/_weightsrc.py index f2ce9259030..7c24e8044d2 100644 --- a/packages/python/plotly/plotly/validators/table/header/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/table/header/font/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="table.header.font", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='table.header.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/line/__init__.py b/packages/python/plotly/plotly/validators/table/header/line/__init__.py index a2b9e1ae50c..522c01899cf 100644 --- a/packages/python/plotly/plotly/validators/table/header/line/__init__.py +++ b/packages/python/plotly/plotly/validators/table/header/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._widthsrc import WidthsrcValidator from ._width import WidthValidator @@ -8,14 +7,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._widthsrc.WidthsrcValidator", - "._width.WidthValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._widthsrc.WidthsrcValidator', '._width.WidthValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/table/header/line/_color.py b/packages/python/plotly/plotly/validators/table/header/line/_color.py index 07faaa67cc4..7b2139f077e 100644 --- a/packages/python/plotly/plotly/validators/table/header/line/_color.py +++ b/packages/python/plotly/plotly/validators/table/header/line/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="table.header.line", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='table.header.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/line/_colorsrc.py b/packages/python/plotly/plotly/validators/table/header/line/_colorsrc.py index 7c82cb4ee63..06eae504535 100644 --- a/packages/python/plotly/plotly/validators/table/header/line/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/table/header/line/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="table.header.line", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='table.header.line', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/line/_width.py b/packages/python/plotly/plotly/validators/table/header/line/_width.py index fadf260e77a..540fd04ff1e 100644 --- a/packages/python/plotly/plotly/validators/table/header/line/_width.py +++ b/packages/python/plotly/plotly/validators/table/header/line/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="table.header.line", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='table.header.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/header/line/_widthsrc.py b/packages/python/plotly/plotly/validators/table/header/line/_widthsrc.py index d9e2d43cf88..627869f988b 100644 --- a/packages/python/plotly/plotly/validators/table/header/line/_widthsrc.py +++ b/packages/python/plotly/plotly/validators/table/header/line/_widthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="widthsrc", parent_name="table.header.line", **kwargs - ): - super(WidthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='widthsrc', + parent_name='table.header.line', + **kwargs): + super(WidthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/table/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/table/hoverlabel/_align.py index 6aed79e48c9..cb3a8646801 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/_align.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="align", parent_name="table.hoverlabel", **kwargs): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='table.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/table/hoverlabel/_alignsrc.py index ed2df3a5164..3138be979e9 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="table.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='table.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/table/hoverlabel/_bgcolor.py index 5f87621bde4..1febd19d4db 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/_bgcolor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="bgcolor", parent_name="table.hoverlabel", **kwargs): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='table.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/table/hoverlabel/_bgcolorsrc.py index 3ad225a5a0d..b3232166848 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="table.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='table.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/table/hoverlabel/_bordercolor.py index d5991080b57..5c067da1966 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="table.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='table.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/table/hoverlabel/_bordercolorsrc.py index 15a491060d3..7a409407cd4 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bordercolorsrc", parent_name="table.hoverlabel", **kwargs - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='table.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/table/hoverlabel/_font.py index 99629ce8881..c232eb6a923 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/_font.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="table.hoverlabel", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='table.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/table/hoverlabel/_namelength.py index 9a9ce0557c4..6219e30ae94 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="table.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='table.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/table/hoverlabel/_namelengthsrc.py index cc58cdec51a..913401f9419 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="table.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='table.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/table/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_color.py index de867c3aa7d..5f27a0d4211 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="table.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='table.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_colorsrc.py index 8db3eb60903..c5e4e19d43f 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="table.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='table.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_family.py index 7a99f57ec1f..057016eae1c 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="table.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='table.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_familysrc.py index 6ec514b8d97..d1566f7f2d9 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="table.hoverlabel.font", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='table.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_lineposition.py index f55ffa1ce2a..cc304e773bc 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="table.hoverlabel.font", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='table.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_linepositionsrc.py index 4bb45ad457b..a6cb46c0ad5 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="table.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='table.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_shadow.py index a00712fdbcb..5b703cf0a10 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="table.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='table.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_shadowsrc.py index bcfaea294e0..0e362f8ea3d 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="table.hoverlabel.font", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='table.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_size.py index fb14362bea8..5261dfd8e5f 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="table.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='table.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_sizesrc.py index 2074a56016d..8234b333fd5 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="table.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='table.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_style.py index da1ac46ce70..707cebbbd63 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="table.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='table.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_stylesrc.py index e229cfeaa53..cad3ee6024a 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="table.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='table.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_textcase.py index c238089a776..e06e7336be9 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="table.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='table.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_textcasesrc.py index 6bad92fb96c..9756102741d 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="table.hoverlabel.font", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='table.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_variant.py index 519448c462c..2853949a85a 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="table.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='table.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_variantsrc.py index bd4766cc595..0924812f1a1 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="table.hoverlabel.font", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='table.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_weight.py index 70fdb788c72..57e1f2863e6 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="table.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='table.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_weightsrc.py index f2c611f7440..1e83424ee52 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/font/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="table.hoverlabel.font", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='table.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/table/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/table/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/table/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/table/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/table/legendgrouptitle/_font.py index 2f147501316..8a4fc1ad41a 100644 --- a/packages/python/plotly/plotly/validators/table/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/table/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="table.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='table.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/table/legendgrouptitle/_text.py index 438b6def34e..205342c5705 100644 --- a/packages/python/plotly/plotly/validators/table/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/table/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="table.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='table.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_color.py index b3ea930dae3..bed8fee12c2 100644 --- a/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="table.legendgrouptitle.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='table.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_family.py index 3ced4fef3c6..4912e5e3870 100644 --- a/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="table.legendgrouptitle.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='table.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_lineposition.py index 1a237b36e80..f45df873d23 100644 --- a/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="table.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='table.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_shadow.py index e5d51ac7080..d1571b7f2aa 100644 --- a/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="table.legendgrouptitle.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='table.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_size.py index 50f7754805a..341d43cf554 100644 --- a/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="table.legendgrouptitle.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='table.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_style.py index 9e5c998568e..b92756ede04 100644 --- a/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="table.legendgrouptitle.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='table.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_textcase.py index 9e182ef6d62..22a0de63f90 100644 --- a/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="table.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='table.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_variant.py index 938a4bbf5e8..57b7375c604 100644 --- a/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="table.legendgrouptitle.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='table.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_weight.py index 6c332f0e4c8..210a71bb088 100644 --- a/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/table/legendgrouptitle/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="table.legendgrouptitle.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='table.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/stream/__init__.py b/packages/python/plotly/plotly/validators/table/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/table/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/table/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/table/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/table/stream/_maxpoints.py index 75baeda5efb..fb8887a1706 100644 --- a/packages/python/plotly/plotly/validators/table/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/table/stream/_maxpoints.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="maxpoints", parent_name="table.stream", **kwargs): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='table.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/table/stream/_token.py b/packages/python/plotly/plotly/validators/table/stream/_token.py index 463403bbfb8..6368947b928 100644 --- a/packages/python/plotly/plotly/validators/table/stream/_token.py +++ b/packages/python/plotly/plotly/validators/table/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="table.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='table.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/__init__.py b/packages/python/plotly/plotly/validators/treemap/__init__.py index 2a7bd82d123..1f679246c30 100644 --- a/packages/python/plotly/plotly/validators/treemap/__init__.py +++ b/packages/python/plotly/plotly/validators/treemap/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._valuessrc import ValuessrcValidator @@ -52,58 +51,10 @@ from ._branchvalues import BranchvaluesValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._valuessrc.ValuessrcValidator", - "._values.ValuesValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._tiling.TilingValidator", - "._texttemplatesrc.TexttemplatesrcValidator", - "._texttemplate.TexttemplateValidator", - "._textsrc.TextsrcValidator", - "._textposition.TextpositionValidator", - "._textinfo.TextinfoValidator", - "._textfont.TextfontValidator", - "._text.TextValidator", - "._stream.StreamValidator", - "._sort.SortValidator", - "._root.RootValidator", - "._pathbar.PathbarValidator", - "._parentssrc.ParentssrcValidator", - "._parents.ParentsValidator", - "._outsidetextfont.OutsidetextfontValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._maxdepth.MaxdepthValidator", - "._marker.MarkerValidator", - "._level.LevelValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legend.LegendValidator", - "._labelssrc.LabelssrcValidator", - "._labels.LabelsValidator", - "._insidetextfont.InsidetextfontValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._domain.DomainValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._count.CountValidator", - "._branchvalues.BranchvaluesValidator", - ], + ['._visible.VisibleValidator', '._valuessrc.ValuessrcValidator', '._values.ValuesValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._tiling.TilingValidator', '._texttemplatesrc.TexttemplatesrcValidator', '._texttemplate.TexttemplateValidator', '._textsrc.TextsrcValidator', '._textposition.TextpositionValidator', '._textinfo.TextinfoValidator', '._textfont.TextfontValidator', '._text.TextValidator', '._stream.StreamValidator', '._sort.SortValidator', '._root.RootValidator', '._pathbar.PathbarValidator', '._parentssrc.ParentssrcValidator', '._parents.ParentsValidator', '._outsidetextfont.OutsidetextfontValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._maxdepth.MaxdepthValidator', '._marker.MarkerValidator', '._level.LevelValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legend.LegendValidator', '._labelssrc.LabelssrcValidator', '._labels.LabelsValidator', '._insidetextfont.InsidetextfontValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._domain.DomainValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._count.CountValidator', '._branchvalues.BranchvaluesValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/treemap/_branchvalues.py b/packages/python/plotly/plotly/validators/treemap/_branchvalues.py index cd56b1b5eb1..be1dd279cba 100644 --- a/packages/python/plotly/plotly/validators/treemap/_branchvalues.py +++ b/packages/python/plotly/plotly/validators/treemap/_branchvalues.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class BranchvaluesValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="branchvalues", parent_name="treemap", **kwargs): - super(BranchvaluesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["remainder", "total"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BranchvaluesValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='branchvalues', + parent_name='treemap', + **kwargs): + super(BranchvaluesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['remainder', 'total']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_count.py b/packages/python/plotly/plotly/validators/treemap/_count.py index 3877b5e3f39..7c63d6dfc8f 100644 --- a/packages/python/plotly/plotly/validators/treemap/_count.py +++ b/packages/python/plotly/plotly/validators/treemap/_count.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CountValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="count", parent_name="treemap", **kwargs): - super(CountValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - flags=kwargs.pop("flags", ["branches", "leaves"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CountValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='count', + parent_name='treemap', + **kwargs): + super(CountValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + flags=kwargs.pop('flags', ['branches', 'leaves']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_customdata.py b/packages/python/plotly/plotly/validators/treemap/_customdata.py index 8daa473fddf..15ca6c0092c 100644 --- a/packages/python/plotly/plotly/validators/treemap/_customdata.py +++ b/packages/python/plotly/plotly/validators/treemap/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="treemap", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='treemap', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_customdatasrc.py b/packages/python/plotly/plotly/validators/treemap/_customdatasrc.py index 8a8248eee84..395700b189e 100644 --- a/packages/python/plotly/plotly/validators/treemap/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/treemap/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="treemap", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='treemap', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_domain.py b/packages/python/plotly/plotly/validators/treemap/_domain.py index 80eb44c8136..ef4671c92dc 100644 --- a/packages/python/plotly/plotly/validators/treemap/_domain.py +++ b/packages/python/plotly/plotly/validators/treemap/_domain.py @@ -1,29 +1,15 @@ -import _plotly_utils.basevalidators -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="domain", parent_name="treemap", **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 treemap trace - . - row - If there is a layout grid, use the domain for - this row in the grid for this treemap trace . - x - Sets the horizontal domain of this treemap - trace (in plot fraction). - y - Sets the vertical domain of this treemap trace - (in plot fraction). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DomainValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='domain', + parent_name='treemap', + **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', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_hoverinfo.py b/packages/python/plotly/plotly/validators/treemap/_hoverinfo.py index 8c5d60e6dc3..99703d3fb5c 100644 --- a/packages/python/plotly/plotly/validators/treemap/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/treemap/_hoverinfo.py @@ -1,26 +1,16 @@ -import _plotly_utils.basevalidators -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="treemap", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop( - "flags", - [ - "label", - "text", - "value", - "name", - "current path", - "percent root", - "percent entry", - "percent parent", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='treemap', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['label', 'text', 'value', 'name', 'current path', 'percent root', 'percent entry', 'percent parent']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/treemap/_hoverinfosrc.py index b5cf721d7da..a29fe2919a6 100644 --- a/packages/python/plotly/plotly/validators/treemap/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/treemap/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="treemap", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='treemap', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_hoverlabel.py b/packages/python/plotly/plotly/validators/treemap/_hoverlabel.py index ff30168dda2..a5471830f8e 100644 --- a/packages/python/plotly/plotly/validators/treemap/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/treemap/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="treemap", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='treemap', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_hovertemplate.py b/packages/python/plotly/plotly/validators/treemap/_hovertemplate.py index 4e91a6aadb3..41b63660d24 100644 --- a/packages/python/plotly/plotly/validators/treemap/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/treemap/_hovertemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="treemap", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='treemap', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/treemap/_hovertemplatesrc.py index 4f3011b4ff0..c5fbf8524a8 100644 --- a/packages/python/plotly/plotly/validators/treemap/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/treemap/_hovertemplatesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertemplatesrc", parent_name="treemap", **kwargs): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='treemap', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_hovertext.py b/packages/python/plotly/plotly/validators/treemap/_hovertext.py index 9b854a12668..7dcc4ebc96a 100644 --- a/packages/python/plotly/plotly/validators/treemap/_hovertext.py +++ b/packages/python/plotly/plotly/validators/treemap/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="treemap", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='treemap', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_hovertextsrc.py b/packages/python/plotly/plotly/validators/treemap/_hovertextsrc.py index 99863753b58..f212e2949ce 100644 --- a/packages/python/plotly/plotly/validators/treemap/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="treemap", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='treemap', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_ids.py b/packages/python/plotly/plotly/validators/treemap/_ids.py index 0accac3c69f..37d6bcb0d9f 100644 --- a/packages/python/plotly/plotly/validators/treemap/_ids.py +++ b/packages/python/plotly/plotly/validators/treemap/_ids.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="treemap", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='treemap', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_idssrc.py b/packages/python/plotly/plotly/validators/treemap/_idssrc.py index 4b6762b66a7..6091b67ce13 100644 --- a/packages/python/plotly/plotly/validators/treemap/_idssrc.py +++ b/packages/python/plotly/plotly/validators/treemap/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="treemap", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='treemap', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_insidetextfont.py b/packages/python/plotly/plotly/validators/treemap/_insidetextfont.py index 8872224fab3..036483a7f2e 100644 --- a/packages/python/plotly/plotly/validators/treemap/_insidetextfont.py +++ b/packages/python/plotly/plotly/validators/treemap/_insidetextfont.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class InsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="insidetextfont", parent_name="treemap", **kwargs): - super(InsidetextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Insidetextfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class InsidetextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='insidetextfont', + parent_name='treemap', + **kwargs): + super(InsidetextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Insidetextfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_labels.py b/packages/python/plotly/plotly/validators/treemap/_labels.py index 4de20710272..2b4410eee0f 100644 --- a/packages/python/plotly/plotly/validators/treemap/_labels.py +++ b/packages/python/plotly/plotly/validators/treemap/_labels.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LabelsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="labels", parent_name="treemap", **kwargs): - super(LabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='labels', + parent_name='treemap', + **kwargs): + super(LabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_labelssrc.py b/packages/python/plotly/plotly/validators/treemap/_labelssrc.py index 86d36b9399c..7f24df63616 100644 --- a/packages/python/plotly/plotly/validators/treemap/_labelssrc.py +++ b/packages/python/plotly/plotly/validators/treemap/_labelssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LabelssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="labelssrc", parent_name="treemap", **kwargs): - super(LabelssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LabelssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='labelssrc', + parent_name='treemap', + **kwargs): + super(LabelssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_legend.py b/packages/python/plotly/plotly/validators/treemap/_legend.py index e66137b64fb..4289feafada 100644 --- a/packages/python/plotly/plotly/validators/treemap/_legend.py +++ b/packages/python/plotly/plotly/validators/treemap/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="treemap", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='treemap', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/treemap/_legendgrouptitle.py index bdc220d656c..5034f4c2842 100644 --- a/packages/python/plotly/plotly/validators/treemap/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/treemap/_legendgrouptitle.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="legendgrouptitle", parent_name="treemap", **kwargs): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='treemap', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_legendrank.py b/packages/python/plotly/plotly/validators/treemap/_legendrank.py index fc2c07efb63..eae72cc4148 100644 --- a/packages/python/plotly/plotly/validators/treemap/_legendrank.py +++ b/packages/python/plotly/plotly/validators/treemap/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="treemap", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='treemap', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_legendwidth.py b/packages/python/plotly/plotly/validators/treemap/_legendwidth.py index 3855f3f6b26..0cc90fe6998 100644 --- a/packages/python/plotly/plotly/validators/treemap/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/treemap/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="treemap", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='treemap', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_level.py b/packages/python/plotly/plotly/validators/treemap/_level.py index d4036ff6ec8..d13b50dc69f 100644 --- a/packages/python/plotly/plotly/validators/treemap/_level.py +++ b/packages/python/plotly/plotly/validators/treemap/_level.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LevelValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="level", parent_name="treemap", **kwargs): - super(LevelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LevelValidator(_bv.AnyValidator): + def __init__(self, plotly_name='level', + parent_name='treemap', + **kwargs): + super(LevelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_marker.py b/packages/python/plotly/plotly/validators/treemap/_marker.py index 68c366d7ac5..bbbc794b1c1 100644 --- a/packages/python/plotly/plotly/validators/treemap/_marker.py +++ b/packages/python/plotly/plotly/validators/treemap/_marker.py @@ -1,121 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="treemap", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - autocolorscale - Determines whether the colorscale is a default - palette (`autocolorscale: true`) or the palette - determined by `marker.colorscale`. Has an - effect only if colors is set to a numerical - array. In case `colorscale` is unspecified or - `autocolorscale` is true, the default palette - will be chosen according to whether numbers in - the `color` array are all positive, all - negative or mixed. - cauto - Determines whether or not the color domain is - computed with respect to the input data (here - colors) or the bounds set in `marker.cmin` and - `marker.cmax` Has an effect only if colors is - set to a numerical array. Defaults to `false` - when `marker.cmin` and `marker.cmax` are set by - the user. - cmax - Sets the upper bound of the color domain. Has - an effect only if colors is set to a numerical - array. Value should have the same units as - colors and if set, `marker.cmin` must be set as - well. - cmid - Sets the mid-point of the color domain by - scaling `marker.cmin` and/or `marker.cmax` to - be equidistant to this point. Has an effect - only if colors is set to a numerical array. - Value should have the same units as colors. Has - no effect when `marker.cauto` is `false`. - cmin - Sets the lower bound of the color domain. Has - an effect only if colors is set to a numerical - array. Value should have the same units as - colors and if set, `marker.cmax` must be set as - well. - coloraxis - Sets a reference to a shared color axis. - References to these shared color axes are - "coloraxis", "coloraxis2", "coloraxis3", etc. - Settings for these shared color axes are set in - the layout, under `layout.coloraxis`, - `layout.coloraxis2`, etc. Note that multiple - color scales can be linked to the same color - axis. - colorbar - :class:`plotly.graph_objects.treemap.marker.Col - orBar` instance or dict with compatible - properties - colors - Sets the color of each sector of this trace. If - not specified, the default trace color set is - used to pick the sector colors. - colorscale - Sets the colorscale. Has an effect only if - colors is set to a numerical array. The - colorscale must be an array containing arrays - mapping a normalized value to an rgb, rgba, - hex, hsl, hsv, or named color string. At - minimum, a mapping for the lowest (0) and - highest (1) values are required. For example, - `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. - To control the bounds of the colorscale in - color space, use `marker.cmin` and - `marker.cmax`. Alternatively, `colorscale` may - be a palette name string of the following list: - Blackbody,Bluered,Blues,Cividis,Earth,Electric, - Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,Rd - Bu,Reds,Viridis,YlGnBu,YlOrRd. - colorssrc - Sets the source reference on Chart Studio Cloud - for `colors`. - cornerradius - Sets the maximum rounding of corners (in px). - depthfade - Determines if the sector colors are faded - towards the background from the leaves up to - the headers. This option is unavailable when a - `colorscale` is present, defaults to false when - `marker.colors` is set, but otherwise defaults - to true. When set to "reversed", the fading - direction is inverted, that is the top elements - within hierarchy are drawn with fully saturated - colors while the leaves are faded towards the - background color. - line - :class:`plotly.graph_objects.treemap.marker.Lin - e` instance or dict with compatible properties - pad - :class:`plotly.graph_objects.treemap.marker.Pad - ` instance or dict with compatible properties - pattern - Sets the pattern within the marker. - reversescale - Reverses the color mapping if true. Has an - effect only if colors is set to a numerical - array. If true, `marker.cmin` will correspond - to the last color in the array and - `marker.cmax` will correspond to the first - color. - showscale - Determines whether or not a colorbar is - displayed for this trace. Has an effect only if - colors is set to a numerical array. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='treemap', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_maxdepth.py b/packages/python/plotly/plotly/validators/treemap/_maxdepth.py index 1690524b6a6..b413fc12a04 100644 --- a/packages/python/plotly/plotly/validators/treemap/_maxdepth.py +++ b/packages/python/plotly/plotly/validators/treemap/_maxdepth.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MaxdepthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="maxdepth", parent_name="treemap", **kwargs): - super(MaxdepthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MaxdepthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='maxdepth', + parent_name='treemap', + **kwargs): + super(MaxdepthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_meta.py b/packages/python/plotly/plotly/validators/treemap/_meta.py index 1c0b95c840f..4da76e115e2 100644 --- a/packages/python/plotly/plotly/validators/treemap/_meta.py +++ b/packages/python/plotly/plotly/validators/treemap/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="treemap", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='treemap', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_metasrc.py b/packages/python/plotly/plotly/validators/treemap/_metasrc.py index a32212bcec6..2aea6a503ee 100644 --- a/packages/python/plotly/plotly/validators/treemap/_metasrc.py +++ b/packages/python/plotly/plotly/validators/treemap/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="treemap", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='treemap', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_name.py b/packages/python/plotly/plotly/validators/treemap/_name.py index 437300e9f68..9cc5590c379 100644 --- a/packages/python/plotly/plotly/validators/treemap/_name.py +++ b/packages/python/plotly/plotly/validators/treemap/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="treemap", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='treemap', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_opacity.py b/packages/python/plotly/plotly/validators/treemap/_opacity.py index 7d2b8ee1203..419ba24daf6 100644 --- a/packages/python/plotly/plotly/validators/treemap/_opacity.py +++ b/packages/python/plotly/plotly/validators/treemap/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="treemap", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='treemap', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_outsidetextfont.py b/packages/python/plotly/plotly/validators/treemap/_outsidetextfont.py index b51abf1eedd..b373d10b7cb 100644 --- a/packages/python/plotly/plotly/validators/treemap/_outsidetextfont.py +++ b/packages/python/plotly/plotly/validators/treemap/_outsidetextfont.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class OutsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="outsidetextfont", parent_name="treemap", **kwargs): - super(OutsidetextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Outsidetextfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class OutsidetextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='outsidetextfont', + parent_name='treemap', + **kwargs): + super(OutsidetextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Outsidetextfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_parents.py b/packages/python/plotly/plotly/validators/treemap/_parents.py index 605bd06cf22..ef6cbe44ff5 100644 --- a/packages/python/plotly/plotly/validators/treemap/_parents.py +++ b/packages/python/plotly/plotly/validators/treemap/_parents.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ParentsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="parents", parent_name="treemap", **kwargs): - super(ParentsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ParentsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='parents', + parent_name='treemap', + **kwargs): + super(ParentsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_parentssrc.py b/packages/python/plotly/plotly/validators/treemap/_parentssrc.py index 5ca63b4dc81..89c79188cd1 100644 --- a/packages/python/plotly/plotly/validators/treemap/_parentssrc.py +++ b/packages/python/plotly/plotly/validators/treemap/_parentssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ParentssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="parentssrc", parent_name="treemap", **kwargs): - super(ParentssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ParentssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='parentssrc', + parent_name='treemap', + **kwargs): + super(ParentssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_pathbar.py b/packages/python/plotly/plotly/validators/treemap/_pathbar.py index 98490e956a4..88ae024d5b7 100644 --- a/packages/python/plotly/plotly/validators/treemap/_pathbar.py +++ b/packages/python/plotly/plotly/validators/treemap/_pathbar.py @@ -1,32 +1,15 @@ -import _plotly_utils.basevalidators -class PathbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="pathbar", parent_name="treemap", **kwargs): - super(PathbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Pathbar"), - data_docs=kwargs.pop( - "data_docs", - """ - edgeshape - Determines which shape is used for edges - between `barpath` labels. - side - Determines on which side of the the treemap the - `pathbar` should be presented. - textfont - Sets the font used inside `pathbar`. - thickness - Sets the thickness of `pathbar` (in px). If not - specified the `pathbar.textfont.size` is used - with 3 pixles extra padding on each side. - visible - Determines if the path bar is drawn i.e. - outside the trace `domain` and with one pixel - gap. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class PathbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='pathbar', + parent_name='treemap', + **kwargs): + super(PathbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Pathbar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_root.py b/packages/python/plotly/plotly/validators/treemap/_root.py index 402aedf94db..0f5b245e8e7 100644 --- a/packages/python/plotly/plotly/validators/treemap/_root.py +++ b/packages/python/plotly/plotly/validators/treemap/_root.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class RootValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="root", parent_name="treemap", **kwargs): - super(RootValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Root"), - data_docs=kwargs.pop( - "data_docs", - """ - color - sets the color of the root node for a - sunburst/treemap/icicle trace. this has no - effect when a colorscale is used to set the - markers. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class RootValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='root', + parent_name='treemap', + **kwargs): + super(RootValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Root'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_sort.py b/packages/python/plotly/plotly/validators/treemap/_sort.py index 87f940bd6f7..2ce75ea7ee6 100644 --- a/packages/python/plotly/plotly/validators/treemap/_sort.py +++ b/packages/python/plotly/plotly/validators/treemap/_sort.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SortValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="sort", parent_name="treemap", **kwargs): - super(SortValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SortValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='sort', + parent_name='treemap', + **kwargs): + super(SortValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_stream.py b/packages/python/plotly/plotly/validators/treemap/_stream.py index f7ca95b2cfd..9c5bc769cfe 100644 --- a/packages/python/plotly/plotly/validators/treemap/_stream.py +++ b/packages/python/plotly/plotly/validators/treemap/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="treemap", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='treemap', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_text.py b/packages/python/plotly/plotly/validators/treemap/_text.py index 626cf9f455f..6c606bca7ef 100644 --- a/packages/python/plotly/plotly/validators/treemap/_text.py +++ b/packages/python/plotly/plotly/validators/treemap/_text.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="text", parent_name="treemap", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='text', + parent_name='treemap', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_textfont.py b/packages/python/plotly/plotly/validators/treemap/_textfont.py index 11cfb9ae2ef..5f539b97ef2 100644 --- a/packages/python/plotly/plotly/validators/treemap/_textfont.py +++ b/packages/python/plotly/plotly/validators/treemap/_textfont.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="textfont", parent_name="treemap", **kwargs): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='treemap', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_textinfo.py b/packages/python/plotly/plotly/validators/treemap/_textinfo.py index 5f5703d88a6..ff0bcbbe1b7 100644 --- a/packages/python/plotly/plotly/validators/treemap/_textinfo.py +++ b/packages/python/plotly/plotly/validators/treemap/_textinfo.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class TextinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="textinfo", parent_name="treemap", **kwargs): - super(TextinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop( - "flags", - [ - "label", - "text", - "value", - "current path", - "percent root", - "percent entry", - "percent parent", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='textinfo', + parent_name='treemap', + **kwargs): + super(TextinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['label', 'text', 'value', 'current path', 'percent root', 'percent entry', 'percent parent']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_textposition.py b/packages/python/plotly/plotly/validators/treemap/_textposition.py index 35833de9fe1..1d9fcf1cede 100644 --- a/packages/python/plotly/plotly/validators/treemap/_textposition.py +++ b/packages/python/plotly/plotly/validators/treemap/_textposition.py @@ -1,25 +1,14 @@ -import _plotly_utils.basevalidators -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="textposition", parent_name="treemap", **kwargs): - super(TextpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "top left", - "top center", - "top right", - "middle left", - "middle center", - "middle right", - "bottom left", - "bottom center", - "bottom right", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textposition', + parent_name='treemap', + **kwargs): + super(TextpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['top left', 'top center', 'top right', 'middle left', 'middle center', 'middle right', 'bottom left', 'bottom center', 'bottom right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_textsrc.py b/packages/python/plotly/plotly/validators/treemap/_textsrc.py index e35b3df4ed2..aa624b416fb 100644 --- a/packages/python/plotly/plotly/validators/treemap/_textsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="treemap", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='treemap', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_texttemplate.py b/packages/python/plotly/plotly/validators/treemap/_texttemplate.py index b40a2c49e52..b295e151064 100644 --- a/packages/python/plotly/plotly/validators/treemap/_texttemplate.py +++ b/packages/python/plotly/plotly/validators/treemap/_texttemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="texttemplate", parent_name="treemap", **kwargs): - super(TexttemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='texttemplate', + parent_name='treemap', + **kwargs): + super(TexttemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_texttemplatesrc.py b/packages/python/plotly/plotly/validators/treemap/_texttemplatesrc.py index bd236d152e3..5fb3d68fae4 100644 --- a/packages/python/plotly/plotly/validators/treemap/_texttemplatesrc.py +++ b/packages/python/plotly/plotly/validators/treemap/_texttemplatesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="texttemplatesrc", parent_name="treemap", **kwargs): - super(TexttemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TexttemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='texttemplatesrc', + parent_name='treemap', + **kwargs): + super(TexttemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_tiling.py b/packages/python/plotly/plotly/validators/treemap/_tiling.py index 05a4ad290c5..d87840652a8 100644 --- a/packages/python/plotly/plotly/validators/treemap/_tiling.py +++ b/packages/python/plotly/plotly/validators/treemap/_tiling.py @@ -1,41 +1,15 @@ -import _plotly_utils.basevalidators -class TilingValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="tiling", parent_name="treemap", **kwargs): - super(TilingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tiling"), - data_docs=kwargs.pop( - "data_docs", - """ - flip - Determines if the positions obtained from - solver are flipped on each axis. - packing - Determines d3 treemap solver. For more info - please refer to - https://github.com/d3/d3-hierarchy#treemap- - tiling - pad - Sets the inner padding (in px). - squarifyratio - When using "squarify" `packing` algorithm, - according to https://github.com/d3/d3- - hierarchy/blob/v3.1.1/README.md#squarify_ratio - this option specifies the desired aspect ratio - of the generated rectangles. The ratio must be - specified as a number greater than or equal to - one. Note that the orientation of the generated - rectangles (tall or wide) is not implied by the - ratio; for example, a ratio of two will attempt - to produce a mixture of rectangles whose - width:height ratio is either 2:1 or 1:2. When - using "squarify", unlike d3 which uses the - Golden Ratio i.e. 1.618034, Plotly applies 1 to - increase squares in treemap layouts. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TilingValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tiling', + parent_name='treemap', + **kwargs): + super(TilingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tiling'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_uid.py b/packages/python/plotly/plotly/validators/treemap/_uid.py index ed37173fa5b..73880d484b6 100644 --- a/packages/python/plotly/plotly/validators/treemap/_uid.py +++ b/packages/python/plotly/plotly/validators/treemap/_uid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="treemap", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - anim=kwargs.pop("anim", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='treemap', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + anim=kwargs.pop('anim', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_uirevision.py b/packages/python/plotly/plotly/validators/treemap/_uirevision.py index 4bc3edfbeba..630f68f84a8 100644 --- a/packages/python/plotly/plotly/validators/treemap/_uirevision.py +++ b/packages/python/plotly/plotly/validators/treemap/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="treemap", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='treemap', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_values.py b/packages/python/plotly/plotly/validators/treemap/_values.py index 8f7a016586c..ad4fb6298b9 100644 --- a/packages/python/plotly/plotly/validators/treemap/_values.py +++ b/packages/python/plotly/plotly/validators/treemap/_values.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ValuesValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="values", parent_name="treemap", **kwargs): - super(ValuesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValuesValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='values', + parent_name='treemap', + **kwargs): + super(ValuesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_valuessrc.py b/packages/python/plotly/plotly/validators/treemap/_valuessrc.py index bb04aeb3d37..dc41ece2be4 100644 --- a/packages/python/plotly/plotly/validators/treemap/_valuessrc.py +++ b/packages/python/plotly/plotly/validators/treemap/_valuessrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ValuessrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="valuessrc", parent_name="treemap", **kwargs): - super(ValuessrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValuessrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='valuessrc', + parent_name='treemap', + **kwargs): + super(ValuessrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/_visible.py b/packages/python/plotly/plotly/validators/treemap/_visible.py index cbb269de2d1..790fafb7a53 100644 --- a/packages/python/plotly/plotly/validators/treemap/_visible.py +++ b/packages/python/plotly/plotly/validators/treemap/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="treemap", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='treemap', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/domain/__init__.py b/packages/python/plotly/plotly/validators/treemap/domain/__init__.py index 67de5030d0a..705a2194402 100644 --- a/packages/python/plotly/plotly/validators/treemap/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/treemap/domain/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._y import YValidator from ._x import XValidator @@ -8,14 +7,10 @@ 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", - ], + ['._y.YValidator', '._x.XValidator', '._row.RowValidator', '._column.ColumnValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/treemap/domain/_column.py b/packages/python/plotly/plotly/validators/treemap/domain/_column.py index b97e4550ec5..15ba7e23a6d 100644 --- a/packages/python/plotly/plotly/validators/treemap/domain/_column.py +++ b/packages/python/plotly/plotly/validators/treemap/domain/_column.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="column", parent_name="treemap.domain", **kwargs): - super(ColumnValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColumnValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='column', + parent_name='treemap.domain', + **kwargs): + super(ColumnValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/domain/_row.py b/packages/python/plotly/plotly/validators/treemap/domain/_row.py index 4235839a05b..2cfa661f7e5 100644 --- a/packages/python/plotly/plotly/validators/treemap/domain/_row.py +++ b/packages/python/plotly/plotly/validators/treemap/domain/_row.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="row", parent_name="treemap.domain", **kwargs): - super(RowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RowValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='row', + parent_name='treemap.domain', + **kwargs): + super(RowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/domain/_x.py b/packages/python/plotly/plotly/validators/treemap/domain/_x.py index 462ab187fb0..37221632921 100644 --- a/packages/python/plotly/plotly/validators/treemap/domain/_x.py +++ b/packages/python/plotly/plotly/validators/treemap/domain/_x.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="x", parent_name="treemap.domain", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='x', + parent_name='treemap.domain', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}, {'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/domain/_y.py b/packages/python/plotly/plotly/validators/treemap/domain/_y.py index db2df3898c8..45d9f1c10a7 100644 --- a/packages/python/plotly/plotly/validators/treemap/domain/_y.py +++ b/packages/python/plotly/plotly/validators/treemap/domain/_y.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="y", parent_name="treemap.domain", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - {"editType": "calc", "max": 1, "min": 0, "valType": "number"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='y', + parent_name='treemap.domain', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}, {'editType': 'calc', 'max': 1, 'min': 0, 'valType': 'number'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/treemap/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/treemap/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/treemap/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/treemap/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/treemap/hoverlabel/_align.py index 5830530f191..1cbb4c76c31 100644 --- a/packages/python/plotly/plotly/validators/treemap/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/treemap/hoverlabel/_align.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="align", parent_name="treemap.hoverlabel", **kwargs): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='treemap.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/treemap/hoverlabel/_alignsrc.py index c1e193f41f1..3ce7b935b15 100644 --- a/packages/python/plotly/plotly/validators/treemap/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="treemap.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='treemap.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/treemap/hoverlabel/_bgcolor.py index 24e6695eb45..88454dcc224 100644 --- a/packages/python/plotly/plotly/validators/treemap/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/treemap/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="treemap.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='treemap.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/treemap/hoverlabel/_bgcolorsrc.py index 56070a3d4b8..355023f080c 100644 --- a/packages/python/plotly/plotly/validators/treemap/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="treemap.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='treemap.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/treemap/hoverlabel/_bordercolor.py index 3e68627cd93..24c9b414844 100644 --- a/packages/python/plotly/plotly/validators/treemap/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/treemap/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="treemap.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='treemap.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/treemap/hoverlabel/_bordercolorsrc.py index 7bc5ec25264..4e24176f8dc 100644 --- a/packages/python/plotly/plotly/validators/treemap/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bordercolorsrc", parent_name="treemap.hoverlabel", **kwargs - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='treemap.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/treemap/hoverlabel/_font.py index 72d9ca48de3..4285480aee7 100644 --- a/packages/python/plotly/plotly/validators/treemap/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/treemap/hoverlabel/_font.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="treemap.hoverlabel", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='treemap.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/treemap/hoverlabel/_namelength.py index d6b7a48a380..5d3f3bf27f2 100644 --- a/packages/python/plotly/plotly/validators/treemap/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/treemap/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="treemap.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='treemap.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/treemap/hoverlabel/_namelengthsrc.py index 99eb258c222..2a09ef8eff4 100644 --- a/packages/python/plotly/plotly/validators/treemap/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="treemap.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='treemap.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_color.py index e00913fb6e0..5c132aed371 100644 --- a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="treemap.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='treemap.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_colorsrc.py index 4bb309d3e76..82244a51bcf 100644 --- a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="treemap.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='treemap.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_family.py index d40e4b0a80f..917fd018992 100644 --- a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="treemap.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='treemap.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_familysrc.py index ac1944324af..9fd5030e788 100644 --- a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="treemap.hoverlabel.font", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='treemap.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_lineposition.py index 0b41d08c683..e8aa7c977af 100644 --- a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="treemap.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='treemap.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_linepositionsrc.py index b22ee6e3d2e..5bcbf0b7ed4 100644 --- a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="treemap.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='treemap.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_shadow.py index 0e4f9d055fe..d93cc8e7208 100644 --- a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="treemap.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='treemap.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_shadowsrc.py index 5f274e47e53..02146d961de 100644 --- a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="treemap.hoverlabel.font", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='treemap.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_size.py index 08cfc9c6aa7..5cca92c56fc 100644 --- a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="treemap.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='treemap.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_sizesrc.py index c7f8dbfeaec..bb30ddd27b6 100644 --- a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="treemap.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='treemap.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_style.py index d43aee8afed..1d91da91c7f 100644 --- a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="treemap.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='treemap.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_stylesrc.py index be3fd2cd5ef..40bd13c6de5 100644 --- a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="treemap.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='treemap.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_textcase.py index 7f307f286f7..c2eb37373ea 100644 --- a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="treemap.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='treemap.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_textcasesrc.py index 931e56b28b4..8f8b9ab6154 100644 --- a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="treemap.hoverlabel.font", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='treemap.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_variant.py index f716a9f339f..ce11a4da206 100644 --- a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="treemap.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='treemap.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_variantsrc.py index 247e80448ed..3228dda18fc 100644 --- a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="treemap.hoverlabel.font", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='treemap.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_weight.py index b28b2cf1218..86021d96e18 100644 --- a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="treemap.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='treemap.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_weightsrc.py index 087aaff2296..2a8f474f296 100644 --- a/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/hoverlabel/font/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="treemap.hoverlabel.font", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='treemap.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/insidetextfont/__init__.py b/packages/python/plotly/plotly/validators/treemap/insidetextfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/treemap/insidetextfont/__init__.py +++ b/packages/python/plotly/plotly/validators/treemap/insidetextfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_color.py b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_color.py index e3fac707c44..d45f077fc59 100644 --- a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_color.py +++ b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="treemap.insidetextfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='treemap.insidetextfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_colorsrc.py b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_colorsrc.py index 4fb5ba1f0be..628b1afc4f3 100644 --- a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="treemap.insidetextfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='treemap.insidetextfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_family.py b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_family.py index 8799e1f010f..bc08c10ec83 100644 --- a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_family.py +++ b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="treemap.insidetextfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='treemap.insidetextfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_familysrc.py b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_familysrc.py index f16f905dab9..ba6c5b57a1c 100644 --- a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="treemap.insidetextfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='treemap.insidetextfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_lineposition.py b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_lineposition.py index 514bd006d7b..f8e289913e2 100644 --- a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="treemap.insidetextfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='treemap.insidetextfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_linepositionsrc.py index 4103cda55d4..31e515bfe5e 100644 --- a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="treemap.insidetextfont", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='treemap.insidetextfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_shadow.py b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_shadow.py index 6f71c97d102..e75a0d6748e 100644 --- a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="treemap.insidetextfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='treemap.insidetextfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_shadowsrc.py index 76a299d3d9d..87ee2d2cc44 100644 --- a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="treemap.insidetextfont", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='treemap.insidetextfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_size.py b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_size.py index 0a02969d5c6..d2bb07f9e1d 100644 --- a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_size.py +++ b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="treemap.insidetextfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='treemap.insidetextfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_sizesrc.py b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_sizesrc.py index e451da29087..287f8511e00 100644 --- a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="treemap.insidetextfont", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='treemap.insidetextfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_style.py b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_style.py index 696c7453014..6d510a924d8 100644 --- a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_style.py +++ b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="treemap.insidetextfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='treemap.insidetextfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_stylesrc.py b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_stylesrc.py index b7e0fbf4480..26e999fccef 100644 --- a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="treemap.insidetextfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='treemap.insidetextfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_textcase.py b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_textcase.py index fe321302ee2..dfd0ce2370b 100644 --- a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="treemap.insidetextfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='treemap.insidetextfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_textcasesrc.py index 3f8b5c23d36..83410feb961 100644 --- a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="treemap.insidetextfont", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='treemap.insidetextfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_variant.py b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_variant.py index 53bb20d849f..2aebf0c1ba6 100644 --- a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_variant.py +++ b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="treemap.insidetextfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='treemap.insidetextfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_variantsrc.py b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_variantsrc.py index 5a6c791dc13..2bf0a7957e8 100644 --- a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="treemap.insidetextfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='treemap.insidetextfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_weight.py b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_weight.py index 29c1a41a9bf..916dd0f527f 100644 --- a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_weight.py +++ b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="treemap.insidetextfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='treemap.insidetextfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_weightsrc.py b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_weightsrc.py index f7193b830d6..f1f237d584c 100644 --- a/packages/python/plotly/plotly/validators/treemap/insidetextfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/insidetextfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="treemap.insidetextfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='treemap.insidetextfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/_font.py index b3569cd2340..5c4d48d2411 100644 --- a/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="treemap.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='treemap.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/_text.py index 2b4c6c493b1..9d4884be211 100644 --- a/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="treemap.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='treemap.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_color.py index 0458f8e1c23..ff397759124 100644 --- a/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="treemap.legendgrouptitle.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='treemap.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_family.py index fd3217bbed0..0789f41fdd6 100644 --- a/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="treemap.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='treemap.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_lineposition.py index 9f87182ccbd..7162dd09aac 100644 --- a/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="treemap.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='treemap.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_shadow.py index 9f30a8e6a14..bfa76b22548 100644 --- a/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="treemap.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='treemap.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_size.py index 4e1ba623a30..9eb2f9843e7 100644 --- a/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="treemap.legendgrouptitle.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='treemap.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_style.py index 37feb4dbafb..8f6cf0a5d23 100644 --- a/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="treemap.legendgrouptitle.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='treemap.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_textcase.py index 4103fba932e..387e6f71f0c 100644 --- a/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="treemap.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='treemap.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_variant.py index 76cb54159bc..a2f08400dff 100644 --- a/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="treemap.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='treemap.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_weight.py index ced3a1d80f0..25d493dd547 100644 --- a/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/treemap/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="treemap.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='treemap.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/__init__.py b/packages/python/plotly/plotly/validators/treemap/marker/__init__.py index a0aa062ffcf..0d1f8cb5222 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._showscale import ShowscaleValidator from ._reversescale import ReversescaleValidator @@ -21,27 +20,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._showscale.ShowscaleValidator", - "._reversescale.ReversescaleValidator", - "._pattern.PatternValidator", - "._pad.PadValidator", - "._line.LineValidator", - "._depthfade.DepthfadeValidator", - "._cornerradius.CornerradiusValidator", - "._colorssrc.ColorssrcValidator", - "._colorscale.ColorscaleValidator", - "._colors.ColorsValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._showscale.ShowscaleValidator', '._reversescale.ReversescaleValidator', '._pattern.PatternValidator', '._pad.PadValidator', '._line.LineValidator', '._depthfade.DepthfadeValidator', '._cornerradius.CornerradiusValidator', '._colorssrc.ColorssrcValidator', '._colorscale.ColorscaleValidator', '._colors.ColorsValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/treemap/marker/_autocolorscale.py b/packages/python/plotly/plotly/validators/treemap/marker/_autocolorscale.py index 096523641ee..8da1611613e 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/_autocolorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="autocolorscale", parent_name="treemap.marker", **kwargs - ): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='treemap.marker', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/_cauto.py b/packages/python/plotly/plotly/validators/treemap/marker/_cauto.py index 5a30104bf87..0f3beab8ddc 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/_cauto.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/_cauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cauto", parent_name="treemap.marker", **kwargs): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='treemap.marker', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/_cmax.py b/packages/python/plotly/plotly/validators/treemap/marker/_cmax.py index 691f37e2e35..57faa3a554b 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/_cmax.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/_cmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmax", parent_name="treemap.marker", **kwargs): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='treemap.marker', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/_cmid.py b/packages/python/plotly/plotly/validators/treemap/marker/_cmid.py index 5fa73d39e58..c2d3170ae40 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/_cmid.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/_cmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmid", parent_name="treemap.marker", **kwargs): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='treemap.marker', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/_cmin.py b/packages/python/plotly/plotly/validators/treemap/marker/_cmin.py index 0d84ad14dfa..fc1f185f40b 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/_cmin.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/_cmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmin", parent_name="treemap.marker", **kwargs): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='treemap.marker', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/_coloraxis.py b/packages/python/plotly/plotly/validators/treemap/marker/_coloraxis.py index 1537fac85f0..1835936b94b 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/_coloraxis.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="coloraxis", parent_name="treemap.marker", **kwargs): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='treemap.marker', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/_colorbar.py b/packages/python/plotly/plotly/validators/treemap/marker/_colorbar.py index f021987e8cd..91e76eb73ae 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/_colorbar.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/_colorbar.py @@ -1,280 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="colorbar", parent_name="treemap.marker", **kwargs): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.treemap - .marker.colorbar.Tickformatstop` instances or - dicts with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.treemap.marker.colorbar.tickformatstopdefault - s), sets the default property values to use for - elements of - treemap.marker.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.treemap.marker.col - orbar.Title` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='treemap.marker', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/_colors.py b/packages/python/plotly/plotly/validators/treemap/marker/_colors.py index 8f930574373..34724ffc4d8 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/_colors.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/_colors.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="colors", parent_name="treemap.marker", **kwargs): - super(ColorsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='colors', + parent_name='treemap.marker', + **kwargs): + super(ColorsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/_colorscale.py b/packages/python/plotly/plotly/validators/treemap/marker/_colorscale.py index b66e87e282c..8fd01154f54 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/_colorscale.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/_colorscale.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name="colorscale", parent_name="treemap.marker", **kwargs - ): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='treemap.marker', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/_colorssrc.py b/packages/python/plotly/plotly/validators/treemap/marker/_colorssrc.py index 147ddb5bb2c..10842160903 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/_colorssrc.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/_colorssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="colorssrc", parent_name="treemap.marker", **kwargs): - super(ColorssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorssrc', + parent_name='treemap.marker', + **kwargs): + super(ColorssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/_cornerradius.py b/packages/python/plotly/plotly/validators/treemap/marker/_cornerradius.py index 08e621567c7..254d77cbf54 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/_cornerradius.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/_cornerradius.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class CornerradiusValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="cornerradius", parent_name="treemap.marker", **kwargs - ): - super(CornerradiusValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CornerradiusValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cornerradius', + parent_name='treemap.marker', + **kwargs): + super(CornerradiusValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/_depthfade.py b/packages/python/plotly/plotly/validators/treemap/marker/_depthfade.py index 4243a6ca442..57d652f54e2 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/_depthfade.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/_depthfade.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class DepthfadeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="depthfade", parent_name="treemap.marker", **kwargs): - super(DepthfadeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", [True, False, "reversed"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DepthfadeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='depthfade', + parent_name='treemap.marker', + **kwargs): + super(DepthfadeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', [True, False, 'reversed']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/_line.py b/packages/python/plotly/plotly/validators/treemap/marker/_line.py index 4c462bfc3cc..656b59226ed 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/_line.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/_line.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="treemap.marker", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the color of the line enclosing each - sector. Defaults to the `paper_bgcolor` value. - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - width - Sets the width (in px) of the line enclosing - each sector. - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='treemap.marker', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/_pad.py b/packages/python/plotly/plotly/validators/treemap/marker/_pad.py index 67133de07cb..17a15b9bba3 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/_pad.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/_pad.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class PadValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="pad", parent_name="treemap.marker", **kwargs): - super(PadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Pad"), - data_docs=kwargs.pop( - "data_docs", - """ - b - Sets the padding form the bottom (in px). - l - Sets the padding form the left (in px). - r - Sets the padding form the right (in px). - t - Sets the padding form the top (in px). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class PadValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='pad', + parent_name='treemap.marker', + **kwargs): + super(PadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Pad'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/_pattern.py b/packages/python/plotly/plotly/validators/treemap/marker/_pattern.py index 1aa5b1960dd..d8e9a6d9719 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/_pattern.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/_pattern.py @@ -1,64 +1,15 @@ -import _plotly_utils.basevalidators -class PatternValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="pattern", parent_name="treemap.marker", **kwargs): - super(PatternValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Pattern"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - When there is no colorscale sets the color of - background pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "overlay". Otherwise, defaults to a transparent - background. - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - fgcolor - When there is no colorscale sets the color of - foreground pattern fill. Defaults to a - `marker.color` background when `fillmode` is - "replace". Otherwise, defaults to dark grey or - white to increase contrast with the `bgcolor`. - fgcolorsrc - Sets the source reference on Chart Studio Cloud - for `fgcolor`. - fgopacity - Sets the opacity of the foreground pattern - fill. Defaults to a 0.5 when `fillmode` is - "overlay". Otherwise, defaults to 1. - fillmode - Determines whether `marker.color` should be - used as a default to `bgcolor` or a `fgcolor`. - shape - Sets the shape of the pattern fill. By default, - no pattern is used for filling the area. - shapesrc - Sets the source reference on Chart Studio Cloud - for `shape`. - size - Sets the size of unit squares of the pattern - fill in pixels, which corresponds to the - interval of repetition of the pattern. - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - solidity - Sets the solidity of the pattern fill. Solidity - is roughly the fraction of the area filled by - the pattern. Solidity of 0 shows only the - background color without pattern and solidty of - 1 shows only the foreground color without - pattern. - soliditysrc - Sets the source reference on Chart Studio Cloud - for `solidity`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class PatternValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='pattern', + parent_name='treemap.marker', + **kwargs): + super(PatternValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Pattern'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/_reversescale.py b/packages/python/plotly/plotly/validators/treemap/marker/_reversescale.py index b8d234af3ac..6a63d7c70b5 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/_reversescale.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/_reversescale.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="reversescale", parent_name="treemap.marker", **kwargs - ): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='treemap.marker', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/_showscale.py b/packages/python/plotly/plotly/validators/treemap/marker/_showscale.py index e516392f6e8..a4fe3004784 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/_showscale.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/_showscale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showscale", parent_name="treemap.marker", **kwargs): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='treemap.marker', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_bgcolor.py index 8c8596e994b..ef8f1ef6103 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_bgcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="treemap.marker.colorbar", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='treemap.marker.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_bordercolor.py index 03176928358..df64528ef87 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="treemap.marker.colorbar", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='treemap.marker.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_borderwidth.py index 7a7b956d750..73bb3603679 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_borderwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderwidth", parent_name="treemap.marker.colorbar", **kwargs - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='treemap.marker.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_dtick.py index 87a1da03ad1..9fbb5ef60ff 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_dtick.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="dtick", parent_name="treemap.marker.colorbar", **kwargs - ): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='treemap.marker.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_exponentformat.py index 018252d33f6..48bec53d062 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_exponentformat.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="exponentformat", - parent_name="treemap.marker.colorbar", - **kwargs, - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='treemap.marker.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_labelalias.py index 2e932192233..7364ce0bcfa 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="treemap.marker.colorbar", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='treemap.marker.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_len.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_len.py index 2657cfaf359..b059b59e207 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_len.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="len", parent_name="treemap.marker.colorbar", **kwargs - ): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='treemap.marker.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_lenmode.py index e9ed8ca5513..7799c5273b9 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_lenmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="lenmode", parent_name="treemap.marker.colorbar", **kwargs - ): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='treemap.marker.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_minexponent.py index b6c4d269cd4..970e13ebd9d 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="treemap.marker.colorbar", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='treemap.marker.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_nticks.py index ac93f7d4ebe..1a8d3b5c056 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_nticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="nticks", parent_name="treemap.marker.colorbar", **kwargs - ): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='treemap.marker.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_orientation.py index f29fb8a35c6..f0257ed4039 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_orientation.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="orientation", parent_name="treemap.marker.colorbar", **kwargs - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='treemap.marker.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_outlinecolor.py index 01b5ddb1fd0..88378c049d4 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_outlinecolor.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="outlinecolor", - parent_name="treemap.marker.colorbar", - **kwargs, - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='treemap.marker.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_outlinewidth.py index 646db75d19e..35b8e93804f 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_outlinewidth.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="outlinewidth", - parent_name="treemap.marker.colorbar", - **kwargs, - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='treemap.marker.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_separatethousands.py index 707d045fe9d..e38c8af3af2 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_separatethousands.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="separatethousands", - parent_name="treemap.marker.colorbar", - **kwargs, - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='treemap.marker.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_showexponent.py index 38de4ffbb18..7287708c5b6 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_showexponent.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showexponent", - parent_name="treemap.marker.colorbar", - **kwargs, - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='treemap.marker.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_showticklabels.py index 1a8a62919c9..7468d7e6dd0 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_showticklabels.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="showticklabels", - parent_name="treemap.marker.colorbar", - **kwargs, - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='treemap.marker.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_showtickprefix.py index c88d4a13184..27b7e31f98b 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_showtickprefix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showtickprefix", - parent_name="treemap.marker.colorbar", - **kwargs, - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='treemap.marker.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_showticksuffix.py index c9432f1d2ab..7c48baf9785 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_showticksuffix.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="showticksuffix", - parent_name="treemap.marker.colorbar", - **kwargs, - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='treemap.marker.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_thickness.py index 91ce3727ffe..063d6e4eeee 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="treemap.marker.colorbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='treemap.marker.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_thicknessmode.py index 805db8949d3..2b716409974 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_thicknessmode.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="thicknessmode", - parent_name="treemap.marker.colorbar", - **kwargs, - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='treemap.marker.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tick0.py index ed596ff3bbb..2ef1b8c72df 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tick0.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="tick0", parent_name="treemap.marker.colorbar", **kwargs - ): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='treemap.marker.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickangle.py index 1e7b4543abd..fa68f45b677 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="treemap.marker.colorbar", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='treemap.marker.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickcolor.py index 0e713c45810..5cde48986fd 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="treemap.marker.colorbar", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='treemap.marker.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickfont.py index 310740f7144..6bd82224e97 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickfont.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="tickfont", parent_name="treemap.marker.colorbar", **kwargs - ): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='treemap.marker.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickformat.py index 57cd5244101..8d53e76cedf 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="treemap.marker.colorbar", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='treemap.marker.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickformatstopdefaults.py index e703dc0fc7f..902114db3ff 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="treemap.marker.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='treemap.marker.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickformatstops.py index c964355264f..87fbbadf8cc 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickformatstops.py @@ -1,54 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name="tickformatstops", - parent_name="treemap.marker.colorbar", - **kwargs, - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='treemap.marker.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticklabeloverflow.py index 4376eaa89db..946fc76a251 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticklabeloverflow.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabeloverflow", - parent_name="treemap.marker.colorbar", - **kwargs, - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='treemap.marker.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticklabelposition.py index 9159ba7e57c..dc14b36f413 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticklabelposition.py @@ -1,31 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="ticklabelposition", - parent_name="treemap.marker.colorbar", - **kwargs, - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='treemap.marker.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticklabelstep.py index ba8246f3d01..b57e67ecd4a 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticklabelstep.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="ticklabelstep", - parent_name="treemap.marker.colorbar", - **kwargs, - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='treemap.marker.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticklen.py index 30b0b7cb3a7..92a49743ab2 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticklen.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ticklen", parent_name="treemap.marker.colorbar", **kwargs - ): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='treemap.marker.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickmode.py index c3bce82de0b..0a1b5d1a075 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickmode.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="tickmode", parent_name="treemap.marker.colorbar", **kwargs - ): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='treemap.marker.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickprefix.py index 52b422102cd..c77b4c74cfd 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="treemap.marker.colorbar", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='treemap.marker.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticks.py index 56930e49ad6..dedec976e89 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticks.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticks", parent_name="treemap.marker.colorbar", **kwargs - ): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='treemap.marker.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticksuffix.py index e4682a54d6f..eb2485001f8 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="treemap.marker.colorbar", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='treemap.marker.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticktext.py index 289e1632465..0295e00a2cb 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticktext.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="ticktext", parent_name="treemap.marker.colorbar", **kwargs - ): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='treemap.marker.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticktextsrc.py index 53c05815acc..b9c235a1536 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="treemap.marker.colorbar", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='treemap.marker.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickvals.py index cabfe7083d1..c933a6306bb 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickvals.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="tickvals", parent_name="treemap.marker.colorbar", **kwargs - ): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='treemap.marker.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickvalssrc.py index 56033a1daee..341babf4c6c 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="treemap.marker.colorbar", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='treemap.marker.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickwidth.py index 841899b42d9..ab729995d20 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="treemap.marker.colorbar", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='treemap.marker.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_title.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_title.py index 9bec545dbb9..d18748e3112 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_title.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name="title", parent_name="treemap.marker.colorbar", **kwargs - ): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='treemap.marker.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_x.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_x.py index 88f3c88bfcf..c47c61bed60 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_x.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="x", parent_name="treemap.marker.colorbar", **kwargs - ): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='treemap.marker.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_xanchor.py index 2bd9a2ce444..670a6c49095 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_xanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xanchor", parent_name="treemap.marker.colorbar", **kwargs - ): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='treemap.marker.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_xpad.py index a4dc58f69ad..8a6c0e5f8df 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_xpad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="xpad", parent_name="treemap.marker.colorbar", **kwargs - ): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='treemap.marker.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_xref.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_xref.py index 9e910d89eee..6904d7424c1 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_xref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xref", parent_name="treemap.marker.colorbar", **kwargs - ): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='treemap.marker.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_y.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_y.py index cf2f28bc1ef..6044d9f179d 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_y.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="y", parent_name="treemap.marker.colorbar", **kwargs - ): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='treemap.marker.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_yanchor.py index a647f36fe1c..bc51b176840 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_yanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yanchor", parent_name="treemap.marker.colorbar", **kwargs - ): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='treemap.marker.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ypad.py index f4c4519edfd..d0ced38df59 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_ypad.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="ypad", parent_name="treemap.marker.colorbar", **kwargs - ): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='treemap.marker.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_yref.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_yref.py index 023d4c991ae..54dc780bd27 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/_yref.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yref", parent_name="treemap.marker.colorbar", **kwargs - ): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='treemap.marker.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_color.py index ab6b92646e6..9d390ad3a6e 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="treemap.marker.colorbar.tickfont", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='treemap.marker.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_family.py index ffe222f9fad..7c431f156ed 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="treemap.marker.colorbar.tickfont", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='treemap.marker.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_lineposition.py index 500feadeb6d..a3e42121e22 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="treemap.marker.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='treemap.marker.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_shadow.py index 0b1ff33fb60..055d5b30ddf 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="treemap.marker.colorbar.tickfont", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='treemap.marker.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_size.py index 39900a11d87..7f495cbedef 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="treemap.marker.colorbar.tickfont", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='treemap.marker.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_style.py index 7310b5056d6..52c6e09762f 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="treemap.marker.colorbar.tickfont", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='treemap.marker.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_textcase.py index a6bbadc6f68..27de1204f14 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="treemap.marker.colorbar.tickfont", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='treemap.marker.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_variant.py index 0906b37710d..b84fc6e0b28 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="treemap.marker.colorbar.tickfont", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='treemap.marker.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_weight.py index a43bbf41a8f..92836802b3d 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickfont/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="treemap.marker.colorbar.tickfont", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='treemap.marker.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickformatstop/_dtickrange.py index 4cc727cdbac..1ec4f021d54 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="treemap.marker.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - items=kwargs.pop( - "items", - [ - {"editType": "colorbars", "valType": "any"}, - {"editType": "colorbars", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='treemap.marker.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + items=kwargs.pop('items', [{'editType': 'colorbars', 'valType': 'any'}, {'editType': 'colorbars', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickformatstop/_enabled.py index a40b16e3bc3..2099acd4980 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="treemap.marker.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='treemap.marker.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickformatstop/_name.py index e352bda9fbe..8437cdcaf6c 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="name", - parent_name="treemap.marker.colorbar.tickformatstop", - **kwargs, - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='treemap.marker.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickformatstop/_templateitemname.py index 0c43a493546..cd7a6fd897c 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="treemap.marker.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='treemap.marker.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickformatstop/_value.py index f37b30ad6e7..d84d132cfbe 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="treemap.marker.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='treemap.marker.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/_font.py index d985f6a07f0..06956a51e3e 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="treemap.marker.colorbar.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='treemap.marker.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/_side.py index 647f5057706..624305433b0 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/_side.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="side", parent_name="treemap.marker.colorbar.title", **kwargs - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='treemap.marker.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/_text.py index 9315c2e8099..268327aaa99 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="treemap.marker.colorbar.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='treemap.marker.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_color.py index e3f062b1563..1e221b547b4 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="treemap.marker.colorbar.title.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='treemap.marker.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_family.py index 7faa23c80c6..f12e1711d27 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="treemap.marker.colorbar.title.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='treemap.marker.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_lineposition.py index 59c3aa7bd0a..5a047324b50 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="treemap.marker.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='treemap.marker.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_shadow.py index 1c13391d09f..5f4bd371f4d 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="treemap.marker.colorbar.title.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='treemap.marker.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_size.py index b248e0be1f8..292f3968529 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="treemap.marker.colorbar.title.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='treemap.marker.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_style.py index 75df7acb146..4a7d506a9fc 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="treemap.marker.colorbar.title.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='treemap.marker.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_textcase.py index 803b913977a..a2ab2276eb7 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="treemap.marker.colorbar.title.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='treemap.marker.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_variant.py index af6d6b54080..04ebd16ace3 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="treemap.marker.colorbar.title.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='treemap.marker.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_weight.py index 2a4c5b48ed8..01cad28c200 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/colorbar/title/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="treemap.marker.colorbar.title.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "colorbars"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='treemap.marker.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'colorbars'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/line/__init__.py b/packages/python/plotly/plotly/validators/treemap/marker/line/__init__.py index a2b9e1ae50c..522c01899cf 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._widthsrc import WidthsrcValidator from ._width import WidthValidator @@ -8,14 +7,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._widthsrc.WidthsrcValidator", - "._width.WidthValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._widthsrc.WidthsrcValidator', '._width.WidthValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/treemap/marker/line/_color.py b/packages/python/plotly/plotly/validators/treemap/marker/line/_color.py index b6879a52402..7ec674a6e1a 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/line/_color.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/line/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="treemap.marker.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='treemap.marker.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/line/_colorsrc.py b/packages/python/plotly/plotly/validators/treemap/marker/line/_colorsrc.py index 721a09edb05..cbdef5ad5d3 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/line/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/line/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="treemap.marker.line", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='treemap.marker.line', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/line/_width.py b/packages/python/plotly/plotly/validators/treemap/marker/line/_width.py index 46816b0d69b..72c5fa0a629 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/line/_width.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/line/_width.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="treemap.marker.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='treemap.marker.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/line/_widthsrc.py b/packages/python/plotly/plotly/validators/treemap/marker/line/_widthsrc.py index 8f7c71b3c16..014375b138b 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/line/_widthsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/line/_widthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="widthsrc", parent_name="treemap.marker.line", **kwargs - ): - super(WidthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='widthsrc', + parent_name='treemap.marker.line', + **kwargs): + super(WidthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/pad/__init__.py b/packages/python/plotly/plotly/validators/treemap/marker/pad/__init__.py index 04e64dbc5ee..3fc9abf4579 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/pad/__init__.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/pad/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._t import TValidator from ._r import RValidator @@ -8,9 +7,10 @@ from ._b import BValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._t.TValidator", "._r.RValidator", "._l.LValidator", "._b.BValidator"], + ['._t.TValidator', '._r.RValidator', '._l.LValidator', '._b.BValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/treemap/marker/pad/_b.py b/packages/python/plotly/plotly/validators/treemap/marker/pad/_b.py index 916a64cd51b..12d37dd5a95 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/pad/_b.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/pad/_b.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class BValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="b", parent_name="treemap.marker.pad", **kwargs): - super(BValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BValidator(_bv.NumberValidator): + def __init__(self, plotly_name='b', + parent_name='treemap.marker.pad', + **kwargs): + super(BValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/pad/_l.py b/packages/python/plotly/plotly/validators/treemap/marker/pad/_l.py index e3efb012b8b..110e972df6b 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/pad/_l.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/pad/_l.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="l", parent_name="treemap.marker.pad", **kwargs): - super(LValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LValidator(_bv.NumberValidator): + def __init__(self, plotly_name='l', + parent_name='treemap.marker.pad', + **kwargs): + super(LValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/pad/_r.py b/packages/python/plotly/plotly/validators/treemap/marker/pad/_r.py index 97f5f810773..454aeaeacbd 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/pad/_r.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/pad/_r.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class RValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="r", parent_name="treemap.marker.pad", **kwargs): - super(RValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RValidator(_bv.NumberValidator): + def __init__(self, plotly_name='r', + parent_name='treemap.marker.pad', + **kwargs): + super(RValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/pad/_t.py b/packages/python/plotly/plotly/validators/treemap/marker/pad/_t.py index 7c37aebb643..c57eb9c5e40 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/pad/_t.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/pad/_t.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="t", parent_name="treemap.marker.pad", **kwargs): - super(TValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TValidator(_bv.NumberValidator): + def __init__(self, plotly_name='t', + parent_name='treemap.marker.pad', + **kwargs): + super(TValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/pattern/__init__.py b/packages/python/plotly/plotly/validators/treemap/marker/pattern/__init__.py index e190f962c46..de3616dbc8a 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/pattern/__init__.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/pattern/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._soliditysrc import SoliditysrcValidator from ._solidity import SolidityValidator @@ -16,22 +15,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._soliditysrc.SoliditysrcValidator", - "._solidity.SolidityValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shapesrc.ShapesrcValidator", - "._shape.ShapeValidator", - "._fillmode.FillmodeValidator", - "._fgopacity.FgopacityValidator", - "._fgcolorsrc.FgcolorsrcValidator", - "._fgcolor.FgcolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - ], + ['._soliditysrc.SoliditysrcValidator', '._solidity.SolidityValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shapesrc.ShapesrcValidator', '._shape.ShapeValidator', '._fillmode.FillmodeValidator', '._fgopacity.FgopacityValidator', '._fgcolorsrc.FgcolorsrcValidator', '._fgcolor.FgcolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/treemap/marker/pattern/_bgcolor.py b/packages/python/plotly/plotly/validators/treemap/marker/pattern/_bgcolor.py index 81cbdb77db2..78d26622f66 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/pattern/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/pattern/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="treemap.marker.pattern", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='treemap.marker.pattern', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/pattern/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/treemap/marker/pattern/_bgcolorsrc.py index 64f183a5974..19b16f66bca 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/pattern/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/pattern/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="treemap.marker.pattern", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='treemap.marker.pattern', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/pattern/_fgcolor.py b/packages/python/plotly/plotly/validators/treemap/marker/pattern/_fgcolor.py index 9c597f79cb6..ffed61a79c9 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/pattern/_fgcolor.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/pattern/_fgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class FgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="fgcolor", parent_name="treemap.marker.pattern", **kwargs - ): - super(FgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fgcolor', + parent_name='treemap.marker.pattern', + **kwargs): + super(FgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/pattern/_fgcolorsrc.py b/packages/python/plotly/plotly/validators/treemap/marker/pattern/_fgcolorsrc.py index f7e04ae874b..240e1a68d29 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/pattern/_fgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/pattern/_fgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="fgcolorsrc", parent_name="treemap.marker.pattern", **kwargs - ): - super(FgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='fgcolorsrc', + parent_name='treemap.marker.pattern', + **kwargs): + super(FgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/pattern/_fgopacity.py b/packages/python/plotly/plotly/validators/treemap/marker/pattern/_fgopacity.py index c94b1694e74..d186b63e6b7 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/pattern/_fgopacity.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/pattern/_fgopacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FgopacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="fgopacity", parent_name="treemap.marker.pattern", **kwargs - ): - super(FgopacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FgopacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fgopacity', + parent_name='treemap.marker.pattern', + **kwargs): + super(FgopacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/pattern/_fillmode.py b/packages/python/plotly/plotly/validators/treemap/marker/pattern/_fillmode.py index 3889070d5ef..d2057c0fac7 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/pattern/_fillmode.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/pattern/_fillmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class FillmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="fillmode", parent_name="treemap.marker.pattern", **kwargs - ): - super(FillmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["replace", "overlay"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='fillmode', + parent_name='treemap.marker.pattern', + **kwargs): + super(FillmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['replace', 'overlay']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/pattern/_shape.py b/packages/python/plotly/plotly/validators/treemap/marker/pattern/_shape.py index 286fb88eba5..517d795a7c4 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/pattern/_shape.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/pattern/_shape.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="shape", parent_name="treemap.marker.pattern", **kwargs - ): - super(ShapeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["", "/", "\\", "x", "-", "|", "+", "."]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShapeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='shape', + parent_name='treemap.marker.pattern', + **kwargs): + super(ShapeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['', '/', '\\', 'x', '-', '|', '+', '.']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/pattern/_shapesrc.py b/packages/python/plotly/plotly/validators/treemap/marker/pattern/_shapesrc.py index 7ee5b6a9bc1..75d67c4af34 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/pattern/_shapesrc.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/pattern/_shapesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShapesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shapesrc", parent_name="treemap.marker.pattern", **kwargs - ): - super(ShapesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShapesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shapesrc', + parent_name='treemap.marker.pattern', + **kwargs): + super(ShapesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/pattern/_size.py b/packages/python/plotly/plotly/validators/treemap/marker/pattern/_size.py index a41afa64725..fb7591c8305 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/pattern/_size.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/pattern/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="treemap.marker.pattern", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='treemap.marker.pattern', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/pattern/_sizesrc.py b/packages/python/plotly/plotly/validators/treemap/marker/pattern/_sizesrc.py index 5f588979bda..47d640697d3 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/pattern/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/pattern/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="treemap.marker.pattern", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='treemap.marker.pattern', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/pattern/_solidity.py b/packages/python/plotly/plotly/validators/treemap/marker/pattern/_solidity.py index 2874820e443..73f7a0d7d64 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/pattern/_solidity.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/pattern/_solidity.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class SolidityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="solidity", parent_name="treemap.marker.pattern", **kwargs - ): - super(SolidityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SolidityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='solidity', + parent_name='treemap.marker.pattern', + **kwargs): + super(SolidityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/marker/pattern/_soliditysrc.py b/packages/python/plotly/plotly/validators/treemap/marker/pattern/_soliditysrc.py index a066542abd7..85a75dfb3b0 100644 --- a/packages/python/plotly/plotly/validators/treemap/marker/pattern/_soliditysrc.py +++ b/packages/python/plotly/plotly/validators/treemap/marker/pattern/_soliditysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SoliditysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="soliditysrc", parent_name="treemap.marker.pattern", **kwargs - ): - super(SoliditysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SoliditysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='soliditysrc', + parent_name='treemap.marker.pattern', + **kwargs): + super(SoliditysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/__init__.py b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/__init__.py +++ b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_color.py b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_color.py index 38d13faf587..f66e4382838 100644 --- a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_color.py +++ b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="treemap.outsidetextfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='treemap.outsidetextfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_colorsrc.py b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_colorsrc.py index 5e740dca5e3..3b76d11d6a5 100644 --- a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="treemap.outsidetextfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='treemap.outsidetextfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_family.py b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_family.py index a4c57619a97..3fabe2f366f 100644 --- a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_family.py +++ b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="treemap.outsidetextfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='treemap.outsidetextfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_familysrc.py b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_familysrc.py index 70983dbf84b..ffc20caffe7 100644 --- a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="treemap.outsidetextfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='treemap.outsidetextfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_lineposition.py b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_lineposition.py index b7dabd6fba5..aa7315c10fc 100644 --- a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="treemap.outsidetextfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='treemap.outsidetextfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_linepositionsrc.py index 694fcdda4af..8df1fc39713 100644 --- a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="treemap.outsidetextfont", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='treemap.outsidetextfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_shadow.py b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_shadow.py index a683a3ebdc0..93af6d95d82 100644 --- a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="treemap.outsidetextfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='treemap.outsidetextfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_shadowsrc.py index fa5bf2a1f79..1b81e178fc6 100644 --- a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="treemap.outsidetextfont", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='treemap.outsidetextfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_size.py b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_size.py index 65691dc7998..4ec7eb0b880 100644 --- a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_size.py +++ b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="treemap.outsidetextfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='treemap.outsidetextfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_sizesrc.py b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_sizesrc.py index 63327aac83b..05ceda3c50d 100644 --- a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="treemap.outsidetextfont", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='treemap.outsidetextfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_style.py b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_style.py index a6918a55c3a..f09881447a9 100644 --- a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_style.py +++ b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="treemap.outsidetextfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='treemap.outsidetextfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_stylesrc.py b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_stylesrc.py index e231ad96e23..d06456f81ca 100644 --- a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="treemap.outsidetextfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='treemap.outsidetextfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_textcase.py b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_textcase.py index 9563561ea5e..20876aec7bd 100644 --- a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="treemap.outsidetextfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='treemap.outsidetextfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_textcasesrc.py index 799eef30a6a..96182d35dcd 100644 --- a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="treemap.outsidetextfont", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='treemap.outsidetextfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_variant.py b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_variant.py index 4fc5bef95de..b4448f96ead 100644 --- a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_variant.py +++ b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="treemap.outsidetextfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='treemap.outsidetextfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_variantsrc.py b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_variantsrc.py index 604365e7eaa..6a7b3058519 100644 --- a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="treemap.outsidetextfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='treemap.outsidetextfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_weight.py b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_weight.py index 137ff493529..8a0363bc164 100644 --- a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_weight.py +++ b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="treemap.outsidetextfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='treemap.outsidetextfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_weightsrc.py b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_weightsrc.py index a3d7fa74731..ded9a85c26e 100644 --- a/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/outsidetextfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="treemap.outsidetextfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='treemap.outsidetextfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/pathbar/__init__.py b/packages/python/plotly/plotly/validators/treemap/pathbar/__init__.py index fce05faf911..e4717728228 100644 --- a/packages/python/plotly/plotly/validators/treemap/pathbar/__init__.py +++ b/packages/python/plotly/plotly/validators/treemap/pathbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._thickness import ThicknessValidator @@ -9,15 +8,10 @@ from ._edgeshape import EdgeshapeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._visible.VisibleValidator", - "._thickness.ThicknessValidator", - "._textfont.TextfontValidator", - "._side.SideValidator", - "._edgeshape.EdgeshapeValidator", - ], + ['._visible.VisibleValidator', '._thickness.ThicknessValidator', '._textfont.TextfontValidator', '._side.SideValidator', '._edgeshape.EdgeshapeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/treemap/pathbar/_edgeshape.py b/packages/python/plotly/plotly/validators/treemap/pathbar/_edgeshape.py index c130649e816..a7f0466b84a 100644 --- a/packages/python/plotly/plotly/validators/treemap/pathbar/_edgeshape.py +++ b/packages/python/plotly/plotly/validators/treemap/pathbar/_edgeshape.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class EdgeshapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="edgeshape", parent_name="treemap.pathbar", **kwargs - ): - super(EdgeshapeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", [">", "<", "|", "/", "\\"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class EdgeshapeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='edgeshape', + parent_name='treemap.pathbar', + **kwargs): + super(EdgeshapeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['>', '<', '|', '/', '\\']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/pathbar/_side.py b/packages/python/plotly/plotly/validators/treemap/pathbar/_side.py index 2122c8a1cd3..1f2d72f85ba 100644 --- a/packages/python/plotly/plotly/validators/treemap/pathbar/_side.py +++ b/packages/python/plotly/plotly/validators/treemap/pathbar/_side.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="side", parent_name="treemap.pathbar", **kwargs): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["top", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='treemap.pathbar', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/pathbar/_textfont.py b/packages/python/plotly/plotly/validators/treemap/pathbar/_textfont.py index 42111227073..0caba106341 100644 --- a/packages/python/plotly/plotly/validators/treemap/pathbar/_textfont.py +++ b/packages/python/plotly/plotly/validators/treemap/pathbar/_textfont.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="textfont", parent_name="treemap.pathbar", **kwargs): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='treemap.pathbar', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/pathbar/_thickness.py b/packages/python/plotly/plotly/validators/treemap/pathbar/_thickness.py index 482c43dab4f..065e09fead0 100644 --- a/packages/python/plotly/plotly/validators/treemap/pathbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/treemap/pathbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="treemap.pathbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 12), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='treemap.pathbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 12), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/pathbar/_visible.py b/packages/python/plotly/plotly/validators/treemap/pathbar/_visible.py index b215e7e1d6d..2661e80b49d 100644 --- a/packages/python/plotly/plotly/validators/treemap/pathbar/_visible.py +++ b/packages/python/plotly/plotly/validators/treemap/pathbar/_visible.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="visible", parent_name="treemap.pathbar", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='treemap.pathbar', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/__init__.py b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_color.py b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_color.py index a7413156c0d..78cb4e7facb 100644 --- a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="treemap.pathbar.textfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='treemap.pathbar.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_colorsrc.py b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_colorsrc.py index 6d858a632f4..c59290a2269 100644 --- a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="treemap.pathbar.textfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='treemap.pathbar.textfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_family.py b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_family.py index b4548afb08e..46fe2bef328 100644 --- a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_family.py +++ b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="treemap.pathbar.textfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='treemap.pathbar.textfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_familysrc.py b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_familysrc.py index 84909a2cb5c..8d5ce664a20 100644 --- a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="treemap.pathbar.textfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='treemap.pathbar.textfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_lineposition.py b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_lineposition.py index b0eff0ed7f4..280514b7837 100644 --- a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="treemap.pathbar.textfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='treemap.pathbar.textfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_linepositionsrc.py index 51884873c05..c62e109d41d 100644 --- a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="treemap.pathbar.textfont", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='treemap.pathbar.textfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_shadow.py b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_shadow.py index af0abe7b6d3..c05fbffd5b0 100644 --- a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="treemap.pathbar.textfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='treemap.pathbar.textfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_shadowsrc.py index d5e4cdf997f..78dca799907 100644 --- a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="treemap.pathbar.textfont", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='treemap.pathbar.textfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_size.py b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_size.py index 4f387c95856..0ce23732cb2 100644 --- a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_size.py +++ b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="treemap.pathbar.textfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='treemap.pathbar.textfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_sizesrc.py b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_sizesrc.py index 8b14d5e8388..d6d1871458f 100644 --- a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="treemap.pathbar.textfont", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='treemap.pathbar.textfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_style.py b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_style.py index b8b9441097e..aa047bfe3f0 100644 --- a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_style.py +++ b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="treemap.pathbar.textfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='treemap.pathbar.textfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_stylesrc.py b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_stylesrc.py index 42df86151d3..adcd2354f1d 100644 --- a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="treemap.pathbar.textfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='treemap.pathbar.textfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_textcase.py b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_textcase.py index e22c0c427c0..8a9d617eb1a 100644 --- a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="treemap.pathbar.textfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='treemap.pathbar.textfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_textcasesrc.py index ed14fa8494c..028aeaee289 100644 --- a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="treemap.pathbar.textfont", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='treemap.pathbar.textfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_variant.py b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_variant.py index 1670f48f16b..5f2a71c8ec6 100644 --- a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_variant.py +++ b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="treemap.pathbar.textfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='treemap.pathbar.textfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_variantsrc.py b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_variantsrc.py index 7064e221ddf..63ab8e38358 100644 --- a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="treemap.pathbar.textfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='treemap.pathbar.textfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_weight.py b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_weight.py index a4a41d80d71..0ef19b3bac5 100644 --- a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_weight.py +++ b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="treemap.pathbar.textfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='treemap.pathbar.textfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_weightsrc.py b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_weightsrc.py index 7e91b186a33..f7af40a9f82 100644 --- a/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/pathbar/textfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="treemap.pathbar.textfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='treemap.pathbar.textfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/root/__init__.py b/packages/python/plotly/plotly/validators/treemap/root/__init__.py index a9f087e5af1..86899e5cc51 100644 --- a/packages/python/plotly/plotly/validators/treemap/root/__init__.py +++ b/packages/python/plotly/plotly/validators/treemap/root/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._color.ColorValidator"] + __name__, + [], + ['._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/treemap/root/_color.py b/packages/python/plotly/plotly/validators/treemap/root/_color.py index 9a6872f9f3b..77d5a624df0 100644 --- a/packages/python/plotly/plotly/validators/treemap/root/_color.py +++ b/packages/python/plotly/plotly/validators/treemap/root/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="treemap.root", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='treemap.root', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/stream/__init__.py b/packages/python/plotly/plotly/validators/treemap/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/treemap/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/treemap/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/treemap/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/treemap/stream/_maxpoints.py index 17d9b1c8a51..fe51641372e 100644 --- a/packages/python/plotly/plotly/validators/treemap/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/treemap/stream/_maxpoints.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="maxpoints", parent_name="treemap.stream", **kwargs): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='treemap.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/stream/_token.py b/packages/python/plotly/plotly/validators/treemap/stream/_token.py index f7ba539fd79..58b4d5ba701 100644 --- a/packages/python/plotly/plotly/validators/treemap/stream/_token.py +++ b/packages/python/plotly/plotly/validators/treemap/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="treemap.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='treemap.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/textfont/__init__.py b/packages/python/plotly/plotly/validators/treemap/textfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/treemap/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/treemap/textfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/treemap/textfont/_color.py b/packages/python/plotly/plotly/validators/treemap/textfont/_color.py index cba4eb68ba1..0437b19fbb8 100644 --- a/packages/python/plotly/plotly/validators/treemap/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/treemap/textfont/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="treemap.textfont", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='treemap.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/textfont/_colorsrc.py b/packages/python/plotly/plotly/validators/treemap/textfont/_colorsrc.py index 256336b1a05..7d058896374 100644 --- a/packages/python/plotly/plotly/validators/treemap/textfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/textfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="treemap.textfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='treemap.textfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/textfont/_family.py b/packages/python/plotly/plotly/validators/treemap/textfont/_family.py index fa7e4b931d4..96d212a551f 100644 --- a/packages/python/plotly/plotly/validators/treemap/textfont/_family.py +++ b/packages/python/plotly/plotly/validators/treemap/textfont/_family.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="family", parent_name="treemap.textfont", **kwargs): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='treemap.textfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/textfont/_familysrc.py b/packages/python/plotly/plotly/validators/treemap/textfont/_familysrc.py index d3ca788ac55..cc0dfcbe68a 100644 --- a/packages/python/plotly/plotly/validators/treemap/textfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/treemap/textfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="treemap.textfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='treemap.textfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/textfont/_lineposition.py b/packages/python/plotly/plotly/validators/treemap/textfont/_lineposition.py index ec7915c66a8..c646ddb7784 100644 --- a/packages/python/plotly/plotly/validators/treemap/textfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/treemap/textfont/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="treemap.textfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='treemap.textfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/textfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/treemap/textfont/_linepositionsrc.py index c568cfe5540..7c024d16840 100644 --- a/packages/python/plotly/plotly/validators/treemap/textfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/textfont/_linepositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="linepositionsrc", parent_name="treemap.textfont", **kwargs - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='treemap.textfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/textfont/_shadow.py b/packages/python/plotly/plotly/validators/treemap/textfont/_shadow.py index 1af4e371680..c29a316f304 100644 --- a/packages/python/plotly/plotly/validators/treemap/textfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/treemap/textfont/_shadow.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="shadow", parent_name="treemap.textfont", **kwargs): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='treemap.textfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/textfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/treemap/textfont/_shadowsrc.py index fdfce21485e..5b646848ce9 100644 --- a/packages/python/plotly/plotly/validators/treemap/textfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/textfont/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="treemap.textfont", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='treemap.textfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/textfont/_size.py b/packages/python/plotly/plotly/validators/treemap/textfont/_size.py index 27decabbca6..636bcdd0e38 100644 --- a/packages/python/plotly/plotly/validators/treemap/textfont/_size.py +++ b/packages/python/plotly/plotly/validators/treemap/textfont/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="treemap.textfont", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='treemap.textfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/textfont/_sizesrc.py b/packages/python/plotly/plotly/validators/treemap/textfont/_sizesrc.py index 16881886733..b06cad5f44c 100644 --- a/packages/python/plotly/plotly/validators/treemap/textfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/treemap/textfont/_sizesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="sizesrc", parent_name="treemap.textfont", **kwargs): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='treemap.textfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/textfont/_style.py b/packages/python/plotly/plotly/validators/treemap/textfont/_style.py index 478080a706a..dcce195d98f 100644 --- a/packages/python/plotly/plotly/validators/treemap/textfont/_style.py +++ b/packages/python/plotly/plotly/validators/treemap/textfont/_style.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="style", parent_name="treemap.textfont", **kwargs): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='treemap.textfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/textfont/_stylesrc.py b/packages/python/plotly/plotly/validators/treemap/textfont/_stylesrc.py index 6822f5c350d..4a287cfe3a5 100644 --- a/packages/python/plotly/plotly/validators/treemap/textfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/treemap/textfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="treemap.textfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='treemap.textfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/textfont/_textcase.py b/packages/python/plotly/plotly/validators/treemap/textfont/_textcase.py index 319ef04a532..20562b3910a 100644 --- a/packages/python/plotly/plotly/validators/treemap/textfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/treemap/textfont/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="treemap.textfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='treemap.textfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/textfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/treemap/textfont/_textcasesrc.py index 673418f8881..fa14109b407 100644 --- a/packages/python/plotly/plotly/validators/treemap/textfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/treemap/textfont/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="treemap.textfont", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='treemap.textfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/textfont/_variant.py b/packages/python/plotly/plotly/validators/treemap/textfont/_variant.py index 062359cf1be..0374780c6cd 100644 --- a/packages/python/plotly/plotly/validators/treemap/textfont/_variant.py +++ b/packages/python/plotly/plotly/validators/treemap/textfont/_variant.py @@ -1,23 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="variant", parent_name="treemap.textfont", **kwargs): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='treemap.textfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/textfont/_variantsrc.py b/packages/python/plotly/plotly/validators/treemap/textfont/_variantsrc.py index 5ff4515129c..4041d66a2d4 100644 --- a/packages/python/plotly/plotly/validators/treemap/textfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/textfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="treemap.textfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='treemap.textfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/textfont/_weight.py b/packages/python/plotly/plotly/validators/treemap/textfont/_weight.py index c35081fb8e3..e5cb65a6132 100644 --- a/packages/python/plotly/plotly/validators/treemap/textfont/_weight.py +++ b/packages/python/plotly/plotly/validators/treemap/textfont/_weight.py @@ -1,15 +1,17 @@ -import _plotly_utils.basevalidators - - -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="weight", parent_name="treemap.textfont", **kwargs): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='treemap.textfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/textfont/_weightsrc.py b/packages/python/plotly/plotly/validators/treemap/textfont/_weightsrc.py index e75ea98a597..330d19c6f40 100644 --- a/packages/python/plotly/plotly/validators/treemap/textfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/treemap/textfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="treemap.textfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='treemap.textfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/tiling/__init__.py b/packages/python/plotly/plotly/validators/treemap/tiling/__init__.py index c7b32e85038..55764220efb 100644 --- a/packages/python/plotly/plotly/validators/treemap/tiling/__init__.py +++ b/packages/python/plotly/plotly/validators/treemap/tiling/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._squarifyratio import SquarifyratioValidator from ._pad import PadValidator @@ -8,14 +7,10 @@ from ._flip import FlipValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._squarifyratio.SquarifyratioValidator", - "._pad.PadValidator", - "._packing.PackingValidator", - "._flip.FlipValidator", - ], + ['._squarifyratio.SquarifyratioValidator', '._pad.PadValidator', '._packing.PackingValidator', '._flip.FlipValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/treemap/tiling/_flip.py b/packages/python/plotly/plotly/validators/treemap/tiling/_flip.py index 2609239ce67..28e38028763 100644 --- a/packages/python/plotly/plotly/validators/treemap/tiling/_flip.py +++ b/packages/python/plotly/plotly/validators/treemap/tiling/_flip.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class FlipValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="flip", parent_name="treemap.tiling", **kwargs): - super(FlipValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - flags=kwargs.pop("flags", ["x", "y"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FlipValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='flip', + parent_name='treemap.tiling', + **kwargs): + super(FlipValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + flags=kwargs.pop('flags', ['x', 'y']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/tiling/_packing.py b/packages/python/plotly/plotly/validators/treemap/tiling/_packing.py index 7daeddeef2c..e7956cc0711 100644 --- a/packages/python/plotly/plotly/validators/treemap/tiling/_packing.py +++ b/packages/python/plotly/plotly/validators/treemap/tiling/_packing.py @@ -1,15 +1,14 @@ -import _plotly_utils.basevalidators - - -class PackingValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="packing", parent_name="treemap.tiling", **kwargs): - super(PackingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - ["squarify", "binary", "dice", "slice", "slice-dice", "dice-slice"], - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class PackingValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='packing', + parent_name='treemap.tiling', + **kwargs): + super(PackingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['squarify', 'binary', 'dice', 'slice', 'slice-dice', 'dice-slice']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/tiling/_pad.py b/packages/python/plotly/plotly/validators/treemap/tiling/_pad.py index ff411ae3774..3b57ef40af6 100644 --- a/packages/python/plotly/plotly/validators/treemap/tiling/_pad.py +++ b/packages/python/plotly/plotly/validators/treemap/tiling/_pad.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class PadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="pad", parent_name="treemap.tiling", **kwargs): - super(PadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class PadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='pad', + parent_name='treemap.tiling', + **kwargs): + super(PadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/treemap/tiling/_squarifyratio.py b/packages/python/plotly/plotly/validators/treemap/tiling/_squarifyratio.py index fcb3fd6748e..e3434ceb777 100644 --- a/packages/python/plotly/plotly/validators/treemap/tiling/_squarifyratio.py +++ b/packages/python/plotly/plotly/validators/treemap/tiling/_squarifyratio.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SquarifyratioValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="squarifyratio", parent_name="treemap.tiling", **kwargs - ): - super(SquarifyratioValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SquarifyratioValidator(_bv.NumberValidator): + def __init__(self, plotly_name='squarifyratio', + parent_name='treemap.tiling', + **kwargs): + super(SquarifyratioValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/__init__.py b/packages/python/plotly/plotly/validators/violin/__init__.py index 485ccd3476e..87cfe7f6a88 100644 --- a/packages/python/plotly/plotly/validators/violin/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zorder import ZorderValidator from ._ysrc import YsrcValidator @@ -65,71 +64,10 @@ from ._alignmentgroup import AlignmentgroupValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zorder.ZorderValidator", - "._ysrc.YsrcValidator", - "._yhoverformat.YhoverformatValidator", - "._yaxis.YaxisValidator", - "._y0.Y0Validator", - "._y.YValidator", - "._xsrc.XsrcValidator", - "._xhoverformat.XhoverformatValidator", - "._xaxis.XaxisValidator", - "._x0.X0Validator", - "._x.XValidator", - "._width.WidthValidator", - "._visible.VisibleValidator", - "._unselected.UnselectedValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._textsrc.TextsrcValidator", - "._text.TextValidator", - "._stream.StreamValidator", - "._spanmode.SpanmodeValidator", - "._span.SpanValidator", - "._side.SideValidator", - "._showlegend.ShowlegendValidator", - "._selectedpoints.SelectedpointsValidator", - "._selected.SelectedValidator", - "._scalemode.ScalemodeValidator", - "._scalegroup.ScalegroupValidator", - "._quartilemethod.QuartilemethodValidator", - "._points.PointsValidator", - "._pointpos.PointposValidator", - "._orientation.OrientationValidator", - "._opacity.OpacityValidator", - "._offsetgroup.OffsetgroupValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._meanline.MeanlineValidator", - "._marker.MarkerValidator", - "._line.LineValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._jitter.JitterValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoveron.HoveronValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._fillcolor.FillcolorValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._box.BoxValidator", - "._bandwidth.BandwidthValidator", - "._alignmentgroup.AlignmentgroupValidator", - ], + ['._zorder.ZorderValidator', '._ysrc.YsrcValidator', '._yhoverformat.YhoverformatValidator', '._yaxis.YaxisValidator', '._y0.Y0Validator', '._y.YValidator', '._xsrc.XsrcValidator', '._xhoverformat.XhoverformatValidator', '._xaxis.XaxisValidator', '._x0.X0Validator', '._x.XValidator', '._width.WidthValidator', '._visible.VisibleValidator', '._unselected.UnselectedValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._textsrc.TextsrcValidator', '._text.TextValidator', '._stream.StreamValidator', '._spanmode.SpanmodeValidator', '._span.SpanValidator', '._side.SideValidator', '._showlegend.ShowlegendValidator', '._selectedpoints.SelectedpointsValidator', '._selected.SelectedValidator', '._scalemode.ScalemodeValidator', '._scalegroup.ScalegroupValidator', '._quartilemethod.QuartilemethodValidator', '._points.PointsValidator', '._pointpos.PointposValidator', '._orientation.OrientationValidator', '._opacity.OpacityValidator', '._offsetgroup.OffsetgroupValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._meanline.MeanlineValidator', '._marker.MarkerValidator', '._line.LineValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._jitter.JitterValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoveron.HoveronValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._fillcolor.FillcolorValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._box.BoxValidator', '._bandwidth.BandwidthValidator', '._alignmentgroup.AlignmentgroupValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/violin/_alignmentgroup.py b/packages/python/plotly/plotly/validators/violin/_alignmentgroup.py index 0de9852306e..9cf8d21e215 100644 --- a/packages/python/plotly/plotly/validators/violin/_alignmentgroup.py +++ b/packages/python/plotly/plotly/validators/violin/_alignmentgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AlignmentgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="alignmentgroup", parent_name="violin", **kwargs): - super(AlignmentgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AlignmentgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='alignmentgroup', + parent_name='violin', + **kwargs): + super(AlignmentgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_bandwidth.py b/packages/python/plotly/plotly/validators/violin/_bandwidth.py index 31eeea33115..00eaed4410a 100644 --- a/packages/python/plotly/plotly/validators/violin/_bandwidth.py +++ b/packages/python/plotly/plotly/validators/violin/_bandwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class BandwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="bandwidth", parent_name="violin", **kwargs): - super(BandwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BandwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='bandwidth', + parent_name='violin', + **kwargs): + super(BandwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_box.py b/packages/python/plotly/plotly/validators/violin/_box.py index 720613fcd41..bc3a267ae89 100644 --- a/packages/python/plotly/plotly/validators/violin/_box.py +++ b/packages/python/plotly/plotly/validators/violin/_box.py @@ -1,28 +1,15 @@ -import _plotly_utils.basevalidators -class BoxValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="box", parent_name="violin", **kwargs): - super(BoxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Box"), - data_docs=kwargs.pop( - "data_docs", - """ - fillcolor - Sets the inner box plot fill color. - line - :class:`plotly.graph_objects.violin.box.Line` - instance or dict with compatible properties - visible - Determines if an miniature box plot is drawn - inside the violins. - width - Sets the width of the inner box plots relative - to the violins' width. For example, with 1, the - inner box plots are as wide as the violins. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BoxValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='box', + parent_name='violin', + **kwargs): + super(BoxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Box'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_customdata.py b/packages/python/plotly/plotly/validators/violin/_customdata.py index 382104cd146..9b39764f65f 100644 --- a/packages/python/plotly/plotly/validators/violin/_customdata.py +++ b/packages/python/plotly/plotly/validators/violin/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="violin", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='violin', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_customdatasrc.py b/packages/python/plotly/plotly/validators/violin/_customdatasrc.py index 3996bdc38fd..5e31a832a24 100644 --- a/packages/python/plotly/plotly/validators/violin/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/violin/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="violin", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='violin', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_fillcolor.py b/packages/python/plotly/plotly/validators/violin/_fillcolor.py index 99339b3f89d..8c723e081b8 100644 --- a/packages/python/plotly/plotly/validators/violin/_fillcolor.py +++ b/packages/python/plotly/plotly/validators/violin/_fillcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="fillcolor", parent_name="violin", **kwargs): - super(FillcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FillcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fillcolor', + parent_name='violin', + **kwargs): + super(FillcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_hoverinfo.py b/packages/python/plotly/plotly/validators/violin/_hoverinfo.py index 8471e12c2e7..4853618352d 100644 --- a/packages/python/plotly/plotly/validators/violin/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/violin/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="violin", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='violin', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/violin/_hoverinfosrc.py index 7d0dd771e92..36d616db2db 100644 --- a/packages/python/plotly/plotly/validators/violin/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/violin/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="violin", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='violin', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_hoverlabel.py b/packages/python/plotly/plotly/validators/violin/_hoverlabel.py index 598cd84f21b..93c98b0c73f 100644 --- a/packages/python/plotly/plotly/validators/violin/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/violin/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="violin", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='violin', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_hoveron.py b/packages/python/plotly/plotly/validators/violin/_hoveron.py index 01974524818..4c0bae97242 100644 --- a/packages/python/plotly/plotly/validators/violin/_hoveron.py +++ b/packages/python/plotly/plotly/validators/violin/_hoveron.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class HoveronValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoveron", parent_name="violin", **kwargs): - super(HoveronValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["all"]), - flags=kwargs.pop("flags", ["violins", "points", "kde"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoveronValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoveron', + parent_name='violin', + **kwargs): + super(HoveronValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['all']), + flags=kwargs.pop('flags', ['violins', 'points', 'kde']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_hovertemplate.py b/packages/python/plotly/plotly/validators/violin/_hovertemplate.py index 378384f1ced..06b9434e9af 100644 --- a/packages/python/plotly/plotly/validators/violin/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/violin/_hovertemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="violin", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='violin', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/violin/_hovertemplatesrc.py index 5b540ec0e56..c3097b36f5a 100644 --- a/packages/python/plotly/plotly/validators/violin/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/violin/_hovertemplatesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertemplatesrc", parent_name="violin", **kwargs): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='violin', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_hovertext.py b/packages/python/plotly/plotly/validators/violin/_hovertext.py index 9d20d7e24a0..ab0708132c3 100644 --- a/packages/python/plotly/plotly/validators/violin/_hovertext.py +++ b/packages/python/plotly/plotly/validators/violin/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="violin", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='violin', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_hovertextsrc.py b/packages/python/plotly/plotly/validators/violin/_hovertextsrc.py index a809bdfaf3d..2fe939463b7 100644 --- a/packages/python/plotly/plotly/validators/violin/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/violin/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="violin", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='violin', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_ids.py b/packages/python/plotly/plotly/validators/violin/_ids.py index a00814f8120..3f24245040f 100644 --- a/packages/python/plotly/plotly/validators/violin/_ids.py +++ b/packages/python/plotly/plotly/validators/violin/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="violin", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='violin', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_idssrc.py b/packages/python/plotly/plotly/validators/violin/_idssrc.py index 2f08f5abcd0..c79b5e7c3b0 100644 --- a/packages/python/plotly/plotly/validators/violin/_idssrc.py +++ b/packages/python/plotly/plotly/validators/violin/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="violin", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='violin', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_jitter.py b/packages/python/plotly/plotly/validators/violin/_jitter.py index 22e0f66e62c..88a3c047756 100644 --- a/packages/python/plotly/plotly/validators/violin/_jitter.py +++ b/packages/python/plotly/plotly/validators/violin/_jitter.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class JitterValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="jitter", parent_name="violin", **kwargs): - super(JitterValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class JitterValidator(_bv.NumberValidator): + def __init__(self, plotly_name='jitter', + parent_name='violin', + **kwargs): + super(JitterValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_legend.py b/packages/python/plotly/plotly/validators/violin/_legend.py index 5e471d94e56..d15fed9ef3c 100644 --- a/packages/python/plotly/plotly/validators/violin/_legend.py +++ b/packages/python/plotly/plotly/validators/violin/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="violin", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='violin', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_legendgroup.py b/packages/python/plotly/plotly/validators/violin/_legendgroup.py index 96e3aa48c55..3012850b55d 100644 --- a/packages/python/plotly/plotly/validators/violin/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/violin/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="violin", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='violin', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/violin/_legendgrouptitle.py index bc10033ea87..4d886cfa70a 100644 --- a/packages/python/plotly/plotly/validators/violin/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/violin/_legendgrouptitle.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="legendgrouptitle", parent_name="violin", **kwargs): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='violin', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_legendrank.py b/packages/python/plotly/plotly/validators/violin/_legendrank.py index c6be03eb7cd..b718d346894 100644 --- a/packages/python/plotly/plotly/validators/violin/_legendrank.py +++ b/packages/python/plotly/plotly/validators/violin/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="violin", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='violin', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_legendwidth.py b/packages/python/plotly/plotly/validators/violin/_legendwidth.py index 9f924270dd6..e93ddd64f15 100644 --- a/packages/python/plotly/plotly/validators/violin/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/violin/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="violin", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='violin', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_line.py b/packages/python/plotly/plotly/validators/violin/_line.py index cabbc3705c6..1fb33195f01 100644 --- a/packages/python/plotly/plotly/validators/violin/_line.py +++ b/packages/python/plotly/plotly/validators/violin/_line.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="violin", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the color of line bounding the violin(s). - width - Sets the width (in px) of line bounding the - violin(s). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='violin', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_marker.py b/packages/python/plotly/plotly/validators/violin/_marker.py index 8528ad2acbc..ba1f393c995 100644 --- a/packages/python/plotly/plotly/validators/violin/_marker.py +++ b/packages/python/plotly/plotly/validators/violin/_marker.py @@ -1,40 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="violin", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - angle - Sets the marker angle in respect to `angleref`. - color - Sets the marker color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.cmin` and `marker.cmax` if set. - line - :class:`plotly.graph_objects.violin.marker.Line - ` instance or dict with compatible properties - opacity - Sets the marker opacity. - outliercolor - Sets the color of the outlier sample points. - size - Sets the marker size (in px). - symbol - Sets the marker symbol type. Adding 100 is - equivalent to appending "-open" to a symbol - name. Adding 200 is equivalent to appending - "-dot" to a symbol name. Adding 300 is - equivalent to appending "-open-dot" or "dot- - open" to a symbol name. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='violin', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_meanline.py b/packages/python/plotly/plotly/validators/violin/_meanline.py index e11c8109663..f86fe2ec8fa 100644 --- a/packages/python/plotly/plotly/validators/violin/_meanline.py +++ b/packages/python/plotly/plotly/validators/violin/_meanline.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class MeanlineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="meanline", parent_name="violin", **kwargs): - super(MeanlineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Meanline"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the mean line color. - visible - Determines if a line corresponding to the - sample's mean is shown inside the violins. If - `box.visible` is turned on, the mean line is - drawn inside the inner box. Otherwise, the mean - line is drawn from one side of the violin to - other. - width - Sets the mean line width. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MeanlineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='meanline', + parent_name='violin', + **kwargs): + super(MeanlineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Meanline'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_meta.py b/packages/python/plotly/plotly/validators/violin/_meta.py index 3837229a3c5..e8d2e43efb0 100644 --- a/packages/python/plotly/plotly/validators/violin/_meta.py +++ b/packages/python/plotly/plotly/validators/violin/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="violin", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='violin', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_metasrc.py b/packages/python/plotly/plotly/validators/violin/_metasrc.py index 472079c3cb8..377343c4516 100644 --- a/packages/python/plotly/plotly/validators/violin/_metasrc.py +++ b/packages/python/plotly/plotly/validators/violin/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="violin", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='violin', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_name.py b/packages/python/plotly/plotly/validators/violin/_name.py index 678c45846f3..4184a4973ee 100644 --- a/packages/python/plotly/plotly/validators/violin/_name.py +++ b/packages/python/plotly/plotly/validators/violin/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="violin", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='violin', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_offsetgroup.py b/packages/python/plotly/plotly/validators/violin/_offsetgroup.py index 8bdbe9371d2..a0f4905ab5c 100644 --- a/packages/python/plotly/plotly/validators/violin/_offsetgroup.py +++ b/packages/python/plotly/plotly/validators/violin/_offsetgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class OffsetgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="offsetgroup", parent_name="violin", **kwargs): - super(OffsetgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OffsetgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='offsetgroup', + parent_name='violin', + **kwargs): + super(OffsetgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_opacity.py b/packages/python/plotly/plotly/validators/violin/_opacity.py index 5617efcb65e..8f857c1e671 100644 --- a/packages/python/plotly/plotly/validators/violin/_opacity.py +++ b/packages/python/plotly/plotly/validators/violin/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="violin", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='violin', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_orientation.py b/packages/python/plotly/plotly/validators/violin/_orientation.py index 2c72a4e5647..70d0ec2a49d 100644 --- a/packages/python/plotly/plotly/validators/violin/_orientation.py +++ b/packages/python/plotly/plotly/validators/violin/_orientation.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="orientation", parent_name="violin", **kwargs): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - values=kwargs.pop("values", ["v", "h"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='violin', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + values=kwargs.pop('values', ['v', 'h']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_pointpos.py b/packages/python/plotly/plotly/validators/violin/_pointpos.py index e29e7527168..14eedf4228f 100644 --- a/packages/python/plotly/plotly/validators/violin/_pointpos.py +++ b/packages/python/plotly/plotly/validators/violin/_pointpos.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class PointposValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="pointpos", parent_name="violin", **kwargs): - super(PointposValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 2), - min=kwargs.pop("min", -2), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class PointposValidator(_bv.NumberValidator): + def __init__(self, plotly_name='pointpos', + parent_name='violin', + **kwargs): + super(PointposValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 2), + min=kwargs.pop('min', -2), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_points.py b/packages/python/plotly/plotly/validators/violin/_points.py index 7d444090a48..84c623c2bda 100644 --- a/packages/python/plotly/plotly/validators/violin/_points.py +++ b/packages/python/plotly/plotly/validators/violin/_points.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class PointsValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="points", parent_name="violin", **kwargs): - super(PointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", ["all", "outliers", "suspectedoutliers", False] - ), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class PointsValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='points', + parent_name='violin', + **kwargs): + super(PointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'outliers', 'suspectedoutliers', False]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_quartilemethod.py b/packages/python/plotly/plotly/validators/violin/_quartilemethod.py index 209457568da..544e3d2a7e2 100644 --- a/packages/python/plotly/plotly/validators/violin/_quartilemethod.py +++ b/packages/python/plotly/plotly/validators/violin/_quartilemethod.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class QuartilemethodValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="quartilemethod", parent_name="violin", **kwargs): - super(QuartilemethodValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["linear", "exclusive", "inclusive"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class QuartilemethodValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='quartilemethod', + parent_name='violin', + **kwargs): + super(QuartilemethodValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['linear', 'exclusive', 'inclusive']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_scalegroup.py b/packages/python/plotly/plotly/validators/violin/_scalegroup.py index f217e57f1f5..a15520be938 100644 --- a/packages/python/plotly/plotly/validators/violin/_scalegroup.py +++ b/packages/python/plotly/plotly/validators/violin/_scalegroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ScalegroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="scalegroup", parent_name="violin", **kwargs): - super(ScalegroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ScalegroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='scalegroup', + parent_name='violin', + **kwargs): + super(ScalegroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_scalemode.py b/packages/python/plotly/plotly/validators/violin/_scalemode.py index cae972a5b95..144183af282 100644 --- a/packages/python/plotly/plotly/validators/violin/_scalemode.py +++ b/packages/python/plotly/plotly/validators/violin/_scalemode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ScalemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="scalemode", parent_name="violin", **kwargs): - super(ScalemodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["width", "count"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ScalemodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='scalemode', + parent_name='violin', + **kwargs): + super(ScalemodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['width', 'count']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_selected.py b/packages/python/plotly/plotly/validators/violin/_selected.py index 1e2c2df1d6f..52401f70df4 100644 --- a/packages/python/plotly/plotly/validators/violin/_selected.py +++ b/packages/python/plotly/plotly/validators/violin/_selected.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="selected", parent_name="violin", **kwargs): - super(SelectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Selected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.violin.selected.Ma - rker` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='selected', + parent_name='violin', + **kwargs): + super(SelectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_selectedpoints.py b/packages/python/plotly/plotly/validators/violin/_selectedpoints.py index 5561d51d604..6d9bf1a65e0 100644 --- a/packages/python/plotly/plotly/validators/violin/_selectedpoints.py +++ b/packages/python/plotly/plotly/validators/violin/_selectedpoints.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="selectedpoints", parent_name="violin", **kwargs): - super(SelectedpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedpointsValidator(_bv.AnyValidator): + def __init__(self, plotly_name='selectedpoints', + parent_name='violin', + **kwargs): + super(SelectedpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_showlegend.py b/packages/python/plotly/plotly/validators/violin/_showlegend.py index a578664b527..2db987903df 100644 --- a/packages/python/plotly/plotly/validators/violin/_showlegend.py +++ b/packages/python/plotly/plotly/validators/violin/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="violin", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='violin', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_side.py b/packages/python/plotly/plotly/validators/violin/_side.py index 897c892c9fb..8538c0ddc89 100644 --- a/packages/python/plotly/plotly/validators/violin/_side.py +++ b/packages/python/plotly/plotly/validators/violin/_side.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="side", parent_name="violin", **kwargs): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["both", "positive", "negative"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='violin', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['both', 'positive', 'negative']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_span.py b/packages/python/plotly/plotly/validators/violin/_span.py index 3b3e1d7b5da..037d7b3d745 100644 --- a/packages/python/plotly/plotly/validators/violin/_span.py +++ b/packages/python/plotly/plotly/validators/violin/_span.py @@ -1,18 +1,14 @@ -import _plotly_utils.basevalidators -class SpanValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__(self, plotly_name="span", parent_name="violin", **kwargs): - super(SpanValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "valType": "any"}, - {"editType": "calc", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SpanValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='span', + parent_name='violin', + **kwargs): + super(SpanValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'valType': 'any'}, {'editType': 'calc', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_spanmode.py b/packages/python/plotly/plotly/validators/violin/_spanmode.py index a0991c24bfc..77b28231bba 100644 --- a/packages/python/plotly/plotly/validators/violin/_spanmode.py +++ b/packages/python/plotly/plotly/validators/violin/_spanmode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SpanmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="spanmode", parent_name="violin", **kwargs): - super(SpanmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["soft", "hard", "manual"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SpanmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='spanmode', + parent_name='violin', + **kwargs): + super(SpanmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['soft', 'hard', 'manual']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_stream.py b/packages/python/plotly/plotly/validators/violin/_stream.py index 66b434f1ae1..4636841378d 100644 --- a/packages/python/plotly/plotly/validators/violin/_stream.py +++ b/packages/python/plotly/plotly/validators/violin/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="violin", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='violin', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_text.py b/packages/python/plotly/plotly/validators/violin/_text.py index 81fcf55f8fb..474e38931c7 100644 --- a/packages/python/plotly/plotly/validators/violin/_text.py +++ b/packages/python/plotly/plotly/validators/violin/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="violin", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='violin', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_textsrc.py b/packages/python/plotly/plotly/validators/violin/_textsrc.py index 1a4b39f804e..0e5dd23eecd 100644 --- a/packages/python/plotly/plotly/validators/violin/_textsrc.py +++ b/packages/python/plotly/plotly/validators/violin/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="violin", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='violin', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_uid.py b/packages/python/plotly/plotly/validators/violin/_uid.py index 5cb00b22514..162e2f9f163 100644 --- a/packages/python/plotly/plotly/validators/violin/_uid.py +++ b/packages/python/plotly/plotly/validators/violin/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="violin", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='violin', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_uirevision.py b/packages/python/plotly/plotly/validators/violin/_uirevision.py index 0ad0a112bff..506d25ef0f0 100644 --- a/packages/python/plotly/plotly/validators/violin/_uirevision.py +++ b/packages/python/plotly/plotly/validators/violin/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="violin", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='violin', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_unselected.py b/packages/python/plotly/plotly/validators/violin/_unselected.py index a05cab50b5b..9e85993989f 100644 --- a/packages/python/plotly/plotly/validators/violin/_unselected.py +++ b/packages/python/plotly/plotly/validators/violin/_unselected.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="unselected", parent_name="violin", **kwargs): - super(UnselectedValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Unselected"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.violin.unselected. - Marker` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UnselectedValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='unselected', + parent_name='violin', + **kwargs): + super(UnselectedValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_visible.py b/packages/python/plotly/plotly/validators/violin/_visible.py index 4771b82a3af..59ede072ff0 100644 --- a/packages/python/plotly/plotly/validators/violin/_visible.py +++ b/packages/python/plotly/plotly/validators/violin/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="violin", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='violin', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_width.py b/packages/python/plotly/plotly/validators/violin/_width.py index d2195a3d2b4..b311e0ea1d9 100644 --- a/packages/python/plotly/plotly/validators/violin/_width.py +++ b/packages/python/plotly/plotly/validators/violin/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="violin", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='violin', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_x.py b/packages/python/plotly/plotly/validators/violin/_x.py index 7391cd6f575..78ab7fabd22 100644 --- a/packages/python/plotly/plotly/validators/violin/_x.py +++ b/packages/python/plotly/plotly/validators/violin/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="x", parent_name="violin", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='x', + parent_name='violin', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_x0.py b/packages/python/plotly/plotly/validators/violin/_x0.py index b9524e8d9df..ba71dab5847 100644 --- a/packages/python/plotly/plotly/validators/violin/_x0.py +++ b/packages/python/plotly/plotly/validators/violin/_x0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class X0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="x0", parent_name="violin", **kwargs): - super(X0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class X0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='x0', + parent_name='violin', + **kwargs): + super(X0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_xaxis.py b/packages/python/plotly/plotly/validators/violin/_xaxis.py index d33cc6a66e2..455655f4aa2 100644 --- a/packages/python/plotly/plotly/validators/violin/_xaxis.py +++ b/packages/python/plotly/plotly/validators/violin/_xaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="xaxis", parent_name="violin", **kwargs): - super(XaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "x"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='xaxis', + parent_name='violin', + **kwargs): + super(XaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'x'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_xhoverformat.py b/packages/python/plotly/plotly/validators/violin/_xhoverformat.py index f7e12ee84c6..ed779c4d9d1 100644 --- a/packages/python/plotly/plotly/validators/violin/_xhoverformat.py +++ b/packages/python/plotly/plotly/validators/violin/_xhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="xhoverformat", parent_name="violin", **kwargs): - super(XhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='xhoverformat', + parent_name='violin', + **kwargs): + super(XhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_xsrc.py b/packages/python/plotly/plotly/validators/violin/_xsrc.py index 1bdb453ec4d..41dc283e8ae 100644 --- a/packages/python/plotly/plotly/validators/violin/_xsrc.py +++ b/packages/python/plotly/plotly/validators/violin/_xsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="xsrc", parent_name="violin", **kwargs): - super(XsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='xsrc', + parent_name='violin', + **kwargs): + super(XsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_y.py b/packages/python/plotly/plotly/validators/violin/_y.py index b93ea417a3d..ac27cb2d7a7 100644 --- a/packages/python/plotly/plotly/validators/violin/_y.py +++ b/packages/python/plotly/plotly/validators/violin/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="y", parent_name="violin", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='y', + parent_name='violin', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_y0.py b/packages/python/plotly/plotly/validators/violin/_y0.py index bcd6829204c..68e66cdb80c 100644 --- a/packages/python/plotly/plotly/validators/violin/_y0.py +++ b/packages/python/plotly/plotly/validators/violin/_y0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Y0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="y0", parent_name="violin", **kwargs): - super(Y0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Y0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='y0', + parent_name='violin', + **kwargs): + super(Y0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_yaxis.py b/packages/python/plotly/plotly/validators/violin/_yaxis.py index 755a91c2717..b1b791cb3e7 100644 --- a/packages/python/plotly/plotly/validators/violin/_yaxis.py +++ b/packages/python/plotly/plotly/validators/violin/_yaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="yaxis", parent_name="violin", **kwargs): - super(YaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "y"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='yaxis', + parent_name='violin', + **kwargs): + super(YaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'y'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_yhoverformat.py b/packages/python/plotly/plotly/validators/violin/_yhoverformat.py index 69d96fa1edb..fe9960a7d6f 100644 --- a/packages/python/plotly/plotly/validators/violin/_yhoverformat.py +++ b/packages/python/plotly/plotly/validators/violin/_yhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="yhoverformat", parent_name="violin", **kwargs): - super(YhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='yhoverformat', + parent_name='violin', + **kwargs): + super(YhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_ysrc.py b/packages/python/plotly/plotly/validators/violin/_ysrc.py index aaff2b3f1ee..886abc3a1e4 100644 --- a/packages/python/plotly/plotly/validators/violin/_ysrc.py +++ b/packages/python/plotly/plotly/validators/violin/_ysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="ysrc", parent_name="violin", **kwargs): - super(YsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ysrc', + parent_name='violin', + **kwargs): + super(YsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/_zorder.py b/packages/python/plotly/plotly/validators/violin/_zorder.py index b9a46cf5580..29366d88ccf 100644 --- a/packages/python/plotly/plotly/validators/violin/_zorder.py +++ b/packages/python/plotly/plotly/validators/violin/_zorder.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="zorder", parent_name="violin", **kwargs): - super(ZorderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZorderValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='zorder', + parent_name='violin', + **kwargs): + super(ZorderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/box/__init__.py b/packages/python/plotly/plotly/validators/violin/box/__init__.py index e10d0b18d36..2dadb983a1a 100644 --- a/packages/python/plotly/plotly/validators/violin/box/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/box/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._visible import VisibleValidator @@ -8,14 +7,10 @@ from ._fillcolor import FillcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._visible.VisibleValidator", - "._line.LineValidator", - "._fillcolor.FillcolorValidator", - ], + ['._width.WidthValidator', '._visible.VisibleValidator', '._line.LineValidator', '._fillcolor.FillcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/violin/box/_fillcolor.py b/packages/python/plotly/plotly/validators/violin/box/_fillcolor.py index d27a2acbb29..ae115c37f48 100644 --- a/packages/python/plotly/plotly/validators/violin/box/_fillcolor.py +++ b/packages/python/plotly/plotly/validators/violin/box/_fillcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="fillcolor", parent_name="violin.box", **kwargs): - super(FillcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FillcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='fillcolor', + parent_name='violin.box', + **kwargs): + super(FillcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/box/_line.py b/packages/python/plotly/plotly/validators/violin/box/_line.py index ac2f81cfc8f..6a1bc71933e 100644 --- a/packages/python/plotly/plotly/validators/violin/box/_line.py +++ b/packages/python/plotly/plotly/validators/violin/box/_line.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="violin.box", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the inner box plot bounding line color. - width - Sets the inner box plot bounding line width. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='violin.box', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/box/_visible.py b/packages/python/plotly/plotly/validators/violin/box/_visible.py index e96053caacd..df1d20b7941 100644 --- a/packages/python/plotly/plotly/validators/violin/box/_visible.py +++ b/packages/python/plotly/plotly/validators/violin/box/_visible.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="visible", parent_name="violin.box", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='violin.box', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/box/_width.py b/packages/python/plotly/plotly/validators/violin/box/_width.py index 3297389c702..59325301f0d 100644 --- a/packages/python/plotly/plotly/validators/violin/box/_width.py +++ b/packages/python/plotly/plotly/validators/violin/box/_width.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="violin.box", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='violin.box', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/box/line/__init__.py b/packages/python/plotly/plotly/validators/violin/box/line/__init__.py index 63a516578b5..e9749ddd90c 100644 --- a/packages/python/plotly/plotly/validators/violin/box/line/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/box/line/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._width.WidthValidator", "._color.ColorValidator"] + __name__, + [], + ['._width.WidthValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/violin/box/line/_color.py b/packages/python/plotly/plotly/validators/violin/box/line/_color.py index 28b2ea677eb..f7fdc19ba31 100644 --- a/packages/python/plotly/plotly/validators/violin/box/line/_color.py +++ b/packages/python/plotly/plotly/validators/violin/box/line/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="violin.box.line", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='violin.box.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/box/line/_width.py b/packages/python/plotly/plotly/validators/violin/box/line/_width.py index 8759f5e4b1a..5d1dc1ea56b 100644 --- a/packages/python/plotly/plotly/validators/violin/box/line/_width.py +++ b/packages/python/plotly/plotly/validators/violin/box/line/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="violin.box.line", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='violin.box.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/_align.py index 98c1da48da7..20a262f3344 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/_align.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="align", parent_name="violin.hoverlabel", **kwargs): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='violin.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/_alignsrc.py index 03c37f6c6a4..14caf7212ac 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="violin.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='violin.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/_bgcolor.py index e55c4dafd44..826c9dc3dfe 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="violin.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='violin.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/_bgcolorsrc.py index c578ef8e914..a0fe06350e6 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="violin.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='violin.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/_bordercolor.py index 25d19bc5357..ef26b1724c8 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="violin.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='violin.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/_bordercolorsrc.py index 2f862e00a21..2f7159527c6 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bordercolorsrc", parent_name="violin.hoverlabel", **kwargs - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='violin.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/_font.py index 8c438980379..71f131ebc73 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/_font.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="violin.hoverlabel", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='violin.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/_namelength.py index 994b5c4db64..927146359df 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="violin.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='violin.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/_namelengthsrc.py index 4e961d627ab..4dcd2e12637 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="violin.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='violin.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_color.py index 3ce818bfcbe..117b9a11457 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="violin.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='violin.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_colorsrc.py index 92bda991638..31ad745ef1c 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="violin.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='violin.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_family.py index f024c13c14d..de67c7aa9d9 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="violin.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='violin.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_familysrc.py index 0690eb5f5ea..32c4e5682d1 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="violin.hoverlabel.font", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='violin.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_lineposition.py index 9b67ce9d5c1..4eae0bae8d7 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="violin.hoverlabel.font", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='violin.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_linepositionsrc.py index 2689c37b62f..e78a76af49a 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="violin.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='violin.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_shadow.py index 3b91703e462..91c080b8326 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="violin.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='violin.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_shadowsrc.py index d7a7957b3cd..93a8e385f3a 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="violin.hoverlabel.font", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='violin.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_size.py index 31ec9b10a47..d0d99c8fca2 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="violin.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='violin.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_sizesrc.py index f6952a00496..a0c75e1abcf 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="violin.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='violin.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_style.py index 3e54c947d55..ca3c9484586 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="violin.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='violin.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_stylesrc.py index 84c5310301f..3c394542053 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="violin.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='violin.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_textcase.py index 63e08210791..5cf2fe62516 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="violin.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='violin.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_textcasesrc.py index 59e0715919d..2f60a98f5c8 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="violin.hoverlabel.font", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='violin.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_variant.py index 1c2ef5bb25a..96e4b67e0e6 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="violin.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='violin.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_variantsrc.py index bf94c96ad7c..4a4b99357e0 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="violin.hoverlabel.font", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='violin.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_weight.py index 1117ec9dc11..dde7ec31e17 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="violin.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='violin.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_weightsrc.py index 585e65673d3..677154ae8c5 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="violin.hoverlabel.font", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='violin.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/violin/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/violin/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/violin/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/violin/legendgrouptitle/_font.py index 602f31327bd..3dac8d25737 100644 --- a/packages/python/plotly/plotly/validators/violin/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/violin/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="violin.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='violin.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/violin/legendgrouptitle/_text.py index 591dd130ca4..507d6f29f29 100644 --- a/packages/python/plotly/plotly/validators/violin/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/violin/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="violin.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='violin.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_color.py index 40c3b865449..adfde741f71 100644 --- a/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="violin.legendgrouptitle.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='violin.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_family.py index 372e622f25d..c238634181f 100644 --- a/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="violin.legendgrouptitle.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='violin.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_lineposition.py index df9ccadd191..827a85b4728 100644 --- a/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="violin.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='violin.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_shadow.py index 6eb96dd199d..31f2b03a102 100644 --- a/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="violin.legendgrouptitle.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='violin.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_size.py index 1fc7e29c3d5..b2861848ea7 100644 --- a/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="violin.legendgrouptitle.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='violin.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_style.py index 2f1ea404f8c..a8d32862da0 100644 --- a/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="violin.legendgrouptitle.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='violin.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_textcase.py index f27d38939f6..076a3762784 100644 --- a/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="violin.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='violin.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_variant.py index e03b238d5fb..5a02edc29cd 100644 --- a/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="violin.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='violin.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_weight.py index 7c23be9ee84..7f94e08a6cb 100644 --- a/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/violin/legendgrouptitle/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="violin.legendgrouptitle.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='violin.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/line/__init__.py b/packages/python/plotly/plotly/validators/violin/line/__init__.py index 63a516578b5..e9749ddd90c 100644 --- a/packages/python/plotly/plotly/validators/violin/line/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/line/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._width.WidthValidator", "._color.ColorValidator"] + __name__, + [], + ['._width.WidthValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/violin/line/_color.py b/packages/python/plotly/plotly/validators/violin/line/_color.py index 3f9bd1696ff..50d8e6cba72 100644 --- a/packages/python/plotly/plotly/validators/violin/line/_color.py +++ b/packages/python/plotly/plotly/validators/violin/line/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="violin.line", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='violin.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/line/_width.py b/packages/python/plotly/plotly/validators/violin/line/_width.py index 9168699e177..63a84bae68b 100644 --- a/packages/python/plotly/plotly/validators/violin/line/_width.py +++ b/packages/python/plotly/plotly/validators/violin/line/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="violin.line", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='violin.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/marker/__init__.py b/packages/python/plotly/plotly/validators/violin/marker/__init__.py index 59cc1848f17..bd0eb7cdf86 100644 --- a/packages/python/plotly/plotly/validators/violin/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/marker/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._symbol import SymbolValidator from ._size import SizeValidator @@ -11,17 +10,10 @@ from ._angle import AngleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._symbol.SymbolValidator", - "._size.SizeValidator", - "._outliercolor.OutliercolorValidator", - "._opacity.OpacityValidator", - "._line.LineValidator", - "._color.ColorValidator", - "._angle.AngleValidator", - ], + ['._symbol.SymbolValidator', '._size.SizeValidator', '._outliercolor.OutliercolorValidator', '._opacity.OpacityValidator', '._line.LineValidator', '._color.ColorValidator', '._angle.AngleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/violin/marker/_angle.py b/packages/python/plotly/plotly/validators/violin/marker/_angle.py index bb12f00731d..be8d294f2bc 100644 --- a/packages/python/plotly/plotly/validators/violin/marker/_angle.py +++ b/packages/python/plotly/plotly/validators/violin/marker/_angle.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class AngleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__(self, plotly_name="angle", parent_name="violin.marker", **kwargs): - super(AngleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AngleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='angle', + parent_name='violin.marker', + **kwargs): + super(AngleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/marker/_color.py b/packages/python/plotly/plotly/validators/violin/marker/_color.py index 1b9e537f7eb..56eeb2236e8 100644 --- a/packages/python/plotly/plotly/validators/violin/marker/_color.py +++ b/packages/python/plotly/plotly/validators/violin/marker/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="violin.marker", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='violin.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/marker/_line.py b/packages/python/plotly/plotly/validators/violin/marker/_line.py index 0a64320e15f..71b6b261918 100644 --- a/packages/python/plotly/plotly/validators/violin/marker/_line.py +++ b/packages/python/plotly/plotly/validators/violin/marker/_line.py @@ -1,32 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="violin.marker", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker.line color. It accepts either a - specific color or an array of numbers that are - mapped to the colorscale relative to the max - and min values of the array or relative to - `marker.line.cmin` and `marker.line.cmax` if - set. - outliercolor - Sets the border line color of the outlier - sample points. Defaults to marker.color - outlierwidth - Sets the border line width (in px) of the - outlier sample points. - width - Sets the width (in px) of the lines bounding - the marker points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='violin.marker', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/marker/_opacity.py b/packages/python/plotly/plotly/validators/violin/marker/_opacity.py index 54b1ed78cf0..7e780542a23 100644 --- a/packages/python/plotly/plotly/validators/violin/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/violin/marker/_opacity.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="violin.marker", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='violin.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/marker/_outliercolor.py b/packages/python/plotly/plotly/validators/violin/marker/_outliercolor.py index 3ffa778f15a..f23217c65f9 100644 --- a/packages/python/plotly/plotly/validators/violin/marker/_outliercolor.py +++ b/packages/python/plotly/plotly/validators/violin/marker/_outliercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OutliercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="outliercolor", parent_name="violin.marker", **kwargs - ): - super(OutliercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutliercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outliercolor', + parent_name='violin.marker', + **kwargs): + super(OutliercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/marker/_size.py b/packages/python/plotly/plotly/validators/violin/marker/_size.py index fc4079e7d3f..1fb10a67d18 100644 --- a/packages/python/plotly/plotly/validators/violin/marker/_size.py +++ b/packages/python/plotly/plotly/validators/violin/marker/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="violin.marker", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='violin.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/marker/_symbol.py b/packages/python/plotly/plotly/validators/violin/marker/_symbol.py index 4dffec40602..69417e86004 100644 --- a/packages/python/plotly/plotly/validators/violin/marker/_symbol.py +++ b/packages/python/plotly/plotly/validators/violin/marker/_symbol.py @@ -1,503 +1,15 @@ -import _plotly_utils.basevalidators -class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="symbol", parent_name="violin.marker", **kwargs): - super(SymbolValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop( - "values", - [ - 0, - "0", - "circle", - 100, - "100", - "circle-open", - 200, - "200", - "circle-dot", - 300, - "300", - "circle-open-dot", - 1, - "1", - "square", - 101, - "101", - "square-open", - 201, - "201", - "square-dot", - 301, - "301", - "square-open-dot", - 2, - "2", - "diamond", - 102, - "102", - "diamond-open", - 202, - "202", - "diamond-dot", - 302, - "302", - "diamond-open-dot", - 3, - "3", - "cross", - 103, - "103", - "cross-open", - 203, - "203", - "cross-dot", - 303, - "303", - "cross-open-dot", - 4, - "4", - "x", - 104, - "104", - "x-open", - 204, - "204", - "x-dot", - 304, - "304", - "x-open-dot", - 5, - "5", - "triangle-up", - 105, - "105", - "triangle-up-open", - 205, - "205", - "triangle-up-dot", - 305, - "305", - "triangle-up-open-dot", - 6, - "6", - "triangle-down", - 106, - "106", - "triangle-down-open", - 206, - "206", - "triangle-down-dot", - 306, - "306", - "triangle-down-open-dot", - 7, - "7", - "triangle-left", - 107, - "107", - "triangle-left-open", - 207, - "207", - "triangle-left-dot", - 307, - "307", - "triangle-left-open-dot", - 8, - "8", - "triangle-right", - 108, - "108", - "triangle-right-open", - 208, - "208", - "triangle-right-dot", - 308, - "308", - "triangle-right-open-dot", - 9, - "9", - "triangle-ne", - 109, - "109", - "triangle-ne-open", - 209, - "209", - "triangle-ne-dot", - 309, - "309", - "triangle-ne-open-dot", - 10, - "10", - "triangle-se", - 110, - "110", - "triangle-se-open", - 210, - "210", - "triangle-se-dot", - 310, - "310", - "triangle-se-open-dot", - 11, - "11", - "triangle-sw", - 111, - "111", - "triangle-sw-open", - 211, - "211", - "triangle-sw-dot", - 311, - "311", - "triangle-sw-open-dot", - 12, - "12", - "triangle-nw", - 112, - "112", - "triangle-nw-open", - 212, - "212", - "triangle-nw-dot", - 312, - "312", - "triangle-nw-open-dot", - 13, - "13", - "pentagon", - 113, - "113", - "pentagon-open", - 213, - "213", - "pentagon-dot", - 313, - "313", - "pentagon-open-dot", - 14, - "14", - "hexagon", - 114, - "114", - "hexagon-open", - 214, - "214", - "hexagon-dot", - 314, - "314", - "hexagon-open-dot", - 15, - "15", - "hexagon2", - 115, - "115", - "hexagon2-open", - 215, - "215", - "hexagon2-dot", - 315, - "315", - "hexagon2-open-dot", - 16, - "16", - "octagon", - 116, - "116", - "octagon-open", - 216, - "216", - "octagon-dot", - 316, - "316", - "octagon-open-dot", - 17, - "17", - "star", - 117, - "117", - "star-open", - 217, - "217", - "star-dot", - 317, - "317", - "star-open-dot", - 18, - "18", - "hexagram", - 118, - "118", - "hexagram-open", - 218, - "218", - "hexagram-dot", - 318, - "318", - "hexagram-open-dot", - 19, - "19", - "star-triangle-up", - 119, - "119", - "star-triangle-up-open", - 219, - "219", - "star-triangle-up-dot", - 319, - "319", - "star-triangle-up-open-dot", - 20, - "20", - "star-triangle-down", - 120, - "120", - "star-triangle-down-open", - 220, - "220", - "star-triangle-down-dot", - 320, - "320", - "star-triangle-down-open-dot", - 21, - "21", - "star-square", - 121, - "121", - "star-square-open", - 221, - "221", - "star-square-dot", - 321, - "321", - "star-square-open-dot", - 22, - "22", - "star-diamond", - 122, - "122", - "star-diamond-open", - 222, - "222", - "star-diamond-dot", - 322, - "322", - "star-diamond-open-dot", - 23, - "23", - "diamond-tall", - 123, - "123", - "diamond-tall-open", - 223, - "223", - "diamond-tall-dot", - 323, - "323", - "diamond-tall-open-dot", - 24, - "24", - "diamond-wide", - 124, - "124", - "diamond-wide-open", - 224, - "224", - "diamond-wide-dot", - 324, - "324", - "diamond-wide-open-dot", - 25, - "25", - "hourglass", - 125, - "125", - "hourglass-open", - 26, - "26", - "bowtie", - 126, - "126", - "bowtie-open", - 27, - "27", - "circle-cross", - 127, - "127", - "circle-cross-open", - 28, - "28", - "circle-x", - 128, - "128", - "circle-x-open", - 29, - "29", - "square-cross", - 129, - "129", - "square-cross-open", - 30, - "30", - "square-x", - 130, - "130", - "square-x-open", - 31, - "31", - "diamond-cross", - 131, - "131", - "diamond-cross-open", - 32, - "32", - "diamond-x", - 132, - "132", - "diamond-x-open", - 33, - "33", - "cross-thin", - 133, - "133", - "cross-thin-open", - 34, - "34", - "x-thin", - 134, - "134", - "x-thin-open", - 35, - "35", - "asterisk", - 135, - "135", - "asterisk-open", - 36, - "36", - "hash", - 136, - "136", - "hash-open", - 236, - "236", - "hash-dot", - 336, - "336", - "hash-open-dot", - 37, - "37", - "y-up", - 137, - "137", - "y-up-open", - 38, - "38", - "y-down", - 138, - "138", - "y-down-open", - 39, - "39", - "y-left", - 139, - "139", - "y-left-open", - 40, - "40", - "y-right", - 140, - "140", - "y-right-open", - 41, - "41", - "line-ew", - 141, - "141", - "line-ew-open", - 42, - "42", - "line-ns", - 142, - "142", - "line-ns-open", - 43, - "43", - "line-ne", - 143, - "143", - "line-ne-open", - 44, - "44", - "line-nw", - 144, - "144", - "line-nw-open", - 45, - "45", - "arrow-up", - 145, - "145", - "arrow-up-open", - 46, - "46", - "arrow-down", - 146, - "146", - "arrow-down-open", - 47, - "47", - "arrow-left", - 147, - "147", - "arrow-left-open", - 48, - "48", - "arrow-right", - 148, - "148", - "arrow-right-open", - 49, - "49", - "arrow-bar-up", - 149, - "149", - "arrow-bar-up-open", - 50, - "50", - "arrow-bar-down", - 150, - "150", - "arrow-bar-down-open", - 51, - "51", - "arrow-bar-left", - 151, - "151", - "arrow-bar-left-open", - 52, - "52", - "arrow-bar-right", - 152, - "152", - "arrow-bar-right-open", - 53, - "53", - "arrow", - 153, - "153", - "arrow-open", - 54, - "54", - "arrow-wide", - 154, - "154", - "arrow-wide-open", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SymbolValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='symbol', + parent_name='violin.marker', + **kwargs): + super(SymbolValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', [0, '0', 'circle', 100, '100', 'circle-open', 200, '200', 'circle-dot', 300, '300', 'circle-open-dot', 1, '1', 'square', 101, '101', 'square-open', 201, '201', 'square-dot', 301, '301', 'square-open-dot', 2, '2', 'diamond', 102, '102', 'diamond-open', 202, '202', 'diamond-dot', 302, '302', 'diamond-open-dot', 3, '3', 'cross', 103, '103', 'cross-open', 203, '203', 'cross-dot', 303, '303', 'cross-open-dot', 4, '4', 'x', 104, '104', 'x-open', 204, '204', 'x-dot', 304, '304', 'x-open-dot', 5, '5', 'triangle-up', 105, '105', 'triangle-up-open', 205, '205', 'triangle-up-dot', 305, '305', 'triangle-up-open-dot', 6, '6', 'triangle-down', 106, '106', 'triangle-down-open', 206, '206', 'triangle-down-dot', 306, '306', 'triangle-down-open-dot', 7, '7', 'triangle-left', 107, '107', 'triangle-left-open', 207, '207', 'triangle-left-dot', 307, '307', 'triangle-left-open-dot', 8, '8', 'triangle-right', 108, '108', 'triangle-right-open', 208, '208', 'triangle-right-dot', 308, '308', 'triangle-right-open-dot', 9, '9', 'triangle-ne', 109, '109', 'triangle-ne-open', 209, '209', 'triangle-ne-dot', 309, '309', 'triangle-ne-open-dot', 10, '10', 'triangle-se', 110, '110', 'triangle-se-open', 210, '210', 'triangle-se-dot', 310, '310', 'triangle-se-open-dot', 11, '11', 'triangle-sw', 111, '111', 'triangle-sw-open', 211, '211', 'triangle-sw-dot', 311, '311', 'triangle-sw-open-dot', 12, '12', 'triangle-nw', 112, '112', 'triangle-nw-open', 212, '212', 'triangle-nw-dot', 312, '312', 'triangle-nw-open-dot', 13, '13', 'pentagon', 113, '113', 'pentagon-open', 213, '213', 'pentagon-dot', 313, '313', 'pentagon-open-dot', 14, '14', 'hexagon', 114, '114', 'hexagon-open', 214, '214', 'hexagon-dot', 314, '314', 'hexagon-open-dot', 15, '15', 'hexagon2', 115, '115', 'hexagon2-open', 215, '215', 'hexagon2-dot', 315, '315', 'hexagon2-open-dot', 16, '16', 'octagon', 116, '116', 'octagon-open', 216, '216', 'octagon-dot', 316, '316', 'octagon-open-dot', 17, '17', 'star', 117, '117', 'star-open', 217, '217', 'star-dot', 317, '317', 'star-open-dot', 18, '18', 'hexagram', 118, '118', 'hexagram-open', 218, '218', 'hexagram-dot', 318, '318', 'hexagram-open-dot', 19, '19', 'star-triangle-up', 119, '119', 'star-triangle-up-open', 219, '219', 'star-triangle-up-dot', 319, '319', 'star-triangle-up-open-dot', 20, '20', 'star-triangle-down', 120, '120', 'star-triangle-down-open', 220, '220', 'star-triangle-down-dot', 320, '320', 'star-triangle-down-open-dot', 21, '21', 'star-square', 121, '121', 'star-square-open', 221, '221', 'star-square-dot', 321, '321', 'star-square-open-dot', 22, '22', 'star-diamond', 122, '122', 'star-diamond-open', 222, '222', 'star-diamond-dot', 322, '322', 'star-diamond-open-dot', 23, '23', 'diamond-tall', 123, '123', 'diamond-tall-open', 223, '223', 'diamond-tall-dot', 323, '323', 'diamond-tall-open-dot', 24, '24', 'diamond-wide', 124, '124', 'diamond-wide-open', 224, '224', 'diamond-wide-dot', 324, '324', 'diamond-wide-open-dot', 25, '25', 'hourglass', 125, '125', 'hourglass-open', 26, '26', 'bowtie', 126, '126', 'bowtie-open', 27, '27', 'circle-cross', 127, '127', 'circle-cross-open', 28, '28', 'circle-x', 128, '128', 'circle-x-open', 29, '29', 'square-cross', 129, '129', 'square-cross-open', 30, '30', 'square-x', 130, '130', 'square-x-open', 31, '31', 'diamond-cross', 131, '131', 'diamond-cross-open', 32, '32', 'diamond-x', 132, '132', 'diamond-x-open', 33, '33', 'cross-thin', 133, '133', 'cross-thin-open', 34, '34', 'x-thin', 134, '134', 'x-thin-open', 35, '35', 'asterisk', 135, '135', 'asterisk-open', 36, '36', 'hash', 136, '136', 'hash-open', 236, '236', 'hash-dot', 336, '336', 'hash-open-dot', 37, '37', 'y-up', 137, '137', 'y-up-open', 38, '38', 'y-down', 138, '138', 'y-down-open', 39, '39', 'y-left', 139, '139', 'y-left-open', 40, '40', 'y-right', 140, '140', 'y-right-open', 41, '41', 'line-ew', 141, '141', 'line-ew-open', 42, '42', 'line-ns', 142, '142', 'line-ns-open', 43, '43', 'line-ne', 143, '143', 'line-ne-open', 44, '44', 'line-nw', 144, '144', 'line-nw-open', 45, '45', 'arrow-up', 145, '145', 'arrow-up-open', 46, '46', 'arrow-down', 146, '146', 'arrow-down-open', 47, '47', 'arrow-left', 147, '147', 'arrow-left-open', 48, '48', 'arrow-right', 148, '148', 'arrow-right-open', 49, '49', 'arrow-bar-up', 149, '149', 'arrow-bar-up-open', 50, '50', 'arrow-bar-down', 150, '150', 'arrow-bar-down-open', 51, '51', 'arrow-bar-left', 151, '151', 'arrow-bar-left-open', 52, '52', 'arrow-bar-right', 152, '152', 'arrow-bar-right-open', 53, '53', 'arrow', 153, '153', 'arrow-open', 54, '54', 'arrow-wide', 154, '154', 'arrow-wide-open']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/marker/line/__init__.py b/packages/python/plotly/plotly/validators/violin/marker/line/__init__.py index 7778bf581ee..0cf8b35546d 100644 --- a/packages/python/plotly/plotly/validators/violin/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/marker/line/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._outlierwidth import OutlierwidthValidator @@ -8,14 +7,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._outlierwidth.OutlierwidthValidator", - "._outliercolor.OutliercolorValidator", - "._color.ColorValidator", - ], + ['._width.WidthValidator', '._outlierwidth.OutlierwidthValidator', '._outliercolor.OutliercolorValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/violin/marker/line/_color.py b/packages/python/plotly/plotly/validators/violin/marker/line/_color.py index c683688bfb2..a5bbe5d1ede 100644 --- a/packages/python/plotly/plotly/validators/violin/marker/line/_color.py +++ b/packages/python/plotly/plotly/validators/violin/marker/line/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="violin.marker.line", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='violin.marker.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/marker/line/_outliercolor.py b/packages/python/plotly/plotly/validators/violin/marker/line/_outliercolor.py index c2277465092..4dedc4d4c04 100644 --- a/packages/python/plotly/plotly/validators/violin/marker/line/_outliercolor.py +++ b/packages/python/plotly/plotly/validators/violin/marker/line/_outliercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OutliercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="outliercolor", parent_name="violin.marker.line", **kwargs - ): - super(OutliercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutliercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outliercolor', + parent_name='violin.marker.line', + **kwargs): + super(OutliercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/marker/line/_outlierwidth.py b/packages/python/plotly/plotly/validators/violin/marker/line/_outlierwidth.py index d58dcb7657e..54e3e0d61eb 100644 --- a/packages/python/plotly/plotly/validators/violin/marker/line/_outlierwidth.py +++ b/packages/python/plotly/plotly/validators/violin/marker/line/_outlierwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OutlierwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="outlierwidth", parent_name="violin.marker.line", **kwargs - ): - super(OutlierwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlierwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlierwidth', + parent_name='violin.marker.line', + **kwargs): + super(OutlierwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/marker/line/_width.py b/packages/python/plotly/plotly/validators/violin/marker/line/_width.py index b7515c2a91f..9f640925089 100644 --- a/packages/python/plotly/plotly/validators/violin/marker/line/_width.py +++ b/packages/python/plotly/plotly/validators/violin/marker/line/_width.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="violin.marker.line", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='violin.marker.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/meanline/__init__.py b/packages/python/plotly/plotly/validators/violin/meanline/__init__.py index 57028e9aac7..2384aa59955 100644 --- a/packages/python/plotly/plotly/validators/violin/meanline/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/meanline/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._visible import VisibleValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._width.WidthValidator", - "._visible.VisibleValidator", - "._color.ColorValidator", - ], + ['._width.WidthValidator', '._visible.VisibleValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/violin/meanline/_color.py b/packages/python/plotly/plotly/validators/violin/meanline/_color.py index 8baa987bd2b..eabed8ebeed 100644 --- a/packages/python/plotly/plotly/validators/violin/meanline/_color.py +++ b/packages/python/plotly/plotly/validators/violin/meanline/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="violin.meanline", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='violin.meanline', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/meanline/_visible.py b/packages/python/plotly/plotly/validators/violin/meanline/_visible.py index b7d9e09202f..5b3e0371f76 100644 --- a/packages/python/plotly/plotly/validators/violin/meanline/_visible.py +++ b/packages/python/plotly/plotly/validators/violin/meanline/_visible.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="visible", parent_name="violin.meanline", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='violin.meanline', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/meanline/_width.py b/packages/python/plotly/plotly/validators/violin/meanline/_width.py index 4e62b834f3e..d9febafb190 100644 --- a/packages/python/plotly/plotly/validators/violin/meanline/_width.py +++ b/packages/python/plotly/plotly/validators/violin/meanline/_width.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="violin.meanline", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='violin.meanline', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/selected/__init__.py b/packages/python/plotly/plotly/validators/violin/selected/__init__.py index e9bdb89f26d..8ee3c0f5c26 100644 --- a/packages/python/plotly/plotly/validators/violin/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/selected/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.MarkerValidator"] + __name__, + [], + ['._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/violin/selected/_marker.py b/packages/python/plotly/plotly/validators/violin/selected/_marker.py index 44adbebc91b..0ff14d45458 100644 --- a/packages/python/plotly/plotly/validators/violin/selected/_marker.py +++ b/packages/python/plotly/plotly/validators/violin/selected/_marker.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="violin.selected", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of selected points. - opacity - Sets the marker opacity of selected points. - size - Sets the marker size of selected points. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='violin.selected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/violin/selected/marker/__init__.py index 8c321a38bc5..b7768f024e8 100644 --- a/packages/python/plotly/plotly/validators/violin/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/selected/marker/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._size import SizeValidator from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._size.SizeValidator", - "._opacity.OpacityValidator", - "._color.ColorValidator", - ], + ['._size.SizeValidator', '._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/violin/selected/marker/_color.py b/packages/python/plotly/plotly/validators/violin/selected/marker/_color.py index 62d77d95471..6fa74759abd 100644 --- a/packages/python/plotly/plotly/validators/violin/selected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/violin/selected/marker/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="violin.selected.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='violin.selected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/selected/marker/_opacity.py b/packages/python/plotly/plotly/validators/violin/selected/marker/_opacity.py index 26139543bae..9adc25256c8 100644 --- a/packages/python/plotly/plotly/validators/violin/selected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/violin/selected/marker/_opacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="violin.selected.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='violin.selected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/selected/marker/_size.py b/packages/python/plotly/plotly/validators/violin/selected/marker/_size.py index 111fa76f334..27abecc560a 100644 --- a/packages/python/plotly/plotly/validators/violin/selected/marker/_size.py +++ b/packages/python/plotly/plotly/validators/violin/selected/marker/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="violin.selected.marker", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='violin.selected.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/stream/__init__.py b/packages/python/plotly/plotly/validators/violin/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/violin/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/violin/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/violin/stream/_maxpoints.py index b931754a2d8..0a43872d995 100644 --- a/packages/python/plotly/plotly/validators/violin/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/violin/stream/_maxpoints.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="maxpoints", parent_name="violin.stream", **kwargs): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='violin.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/stream/_token.py b/packages/python/plotly/plotly/validators/violin/stream/_token.py index d83c3c73771..193ad4095ec 100644 --- a/packages/python/plotly/plotly/validators/violin/stream/_token.py +++ b/packages/python/plotly/plotly/validators/violin/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="violin.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='violin.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/unselected/__init__.py b/packages/python/plotly/plotly/validators/violin/unselected/__init__.py index e9bdb89f26d..8ee3c0f5c26 100644 --- a/packages/python/plotly/plotly/validators/violin/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/unselected/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.MarkerValidator"] + __name__, + [], + ['._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/violin/unselected/_marker.py b/packages/python/plotly/plotly/validators/violin/unselected/_marker.py index 7bad4942f12..20fd7b22232 100644 --- a/packages/python/plotly/plotly/validators/violin/unselected/_marker.py +++ b/packages/python/plotly/plotly/validators/violin/unselected/_marker.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="violin.unselected", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of unselected points, - applied only when a selection exists. - opacity - Sets the marker opacity of unselected points, - applied only when a selection exists. - size - Sets the marker size of unselected points, - applied only when a selection exists. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='violin.unselected', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/violin/unselected/marker/__init__.py index 8c321a38bc5..b7768f024e8 100644 --- a/packages/python/plotly/plotly/validators/violin/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/unselected/marker/__init__.py @@ -1,19 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._size import SizeValidator from ._opacity import OpacityValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._size.SizeValidator", - "._opacity.OpacityValidator", - "._color.ColorValidator", - ], + ['._size.SizeValidator', '._opacity.OpacityValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/violin/unselected/marker/_color.py b/packages/python/plotly/plotly/validators/violin/unselected/marker/_color.py index 02c28349dfe..e9883793098 100644 --- a/packages/python/plotly/plotly/validators/violin/unselected/marker/_color.py +++ b/packages/python/plotly/plotly/validators/violin/unselected/marker/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="violin.unselected.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='violin.unselected.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/unselected/marker/_opacity.py b/packages/python/plotly/plotly/validators/violin/unselected/marker/_opacity.py index acdbc938566..a5b9bda740f 100644 --- a/packages/python/plotly/plotly/validators/violin/unselected/marker/_opacity.py +++ b/packages/python/plotly/plotly/validators/violin/unselected/marker/_opacity.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="opacity", parent_name="violin.unselected.marker", **kwargs - ): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='violin.unselected.marker', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/violin/unselected/marker/_size.py b/packages/python/plotly/plotly/validators/violin/unselected/marker/_size.py index 06eb018ee05..672b9f9e7a5 100644 --- a/packages/python/plotly/plotly/validators/violin/unselected/marker/_size.py +++ b/packages/python/plotly/plotly/validators/violin/unselected/marker/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="violin.unselected.marker", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='violin.unselected.marker', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/__init__.py b/packages/python/plotly/plotly/validators/volume/__init__.py index bad97b9a272..b23096c11a7 100644 --- a/packages/python/plotly/plotly/validators/volume/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zsrc import ZsrcValidator from ._zhoverformat import ZhoverformatValidator @@ -65,71 +64,10 @@ from ._autocolorscale import AutocolorscaleValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zsrc.ZsrcValidator", - "._zhoverformat.ZhoverformatValidator", - "._z.ZValidator", - "._ysrc.YsrcValidator", - "._yhoverformat.YhoverformatValidator", - "._y.YValidator", - "._xsrc.XsrcValidator", - "._xhoverformat.XhoverformatValidator", - "._x.XValidator", - "._visible.VisibleValidator", - "._valuesrc.ValuesrcValidator", - "._valuehoverformat.ValuehoverformatValidator", - "._value.ValueValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._textsrc.TextsrcValidator", - "._text.TextValidator", - "._surface.SurfaceValidator", - "._stream.StreamValidator", - "._spaceframe.SpaceframeValidator", - "._slices.SlicesValidator", - "._showscale.ShowscaleValidator", - "._showlegend.ShowlegendValidator", - "._scene.SceneValidator", - "._reversescale.ReversescaleValidator", - "._opacityscale.OpacityscaleValidator", - "._opacity.OpacityValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._lightposition.LightpositionValidator", - "._lighting.LightingValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._isomin.IsominValidator", - "._isomax.IsomaxValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._flatshading.FlatshadingValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._contour.ContourValidator", - "._colorscale.ColorscaleValidator", - "._colorbar.ColorbarValidator", - "._coloraxis.ColoraxisValidator", - "._cmin.CminValidator", - "._cmid.CmidValidator", - "._cmax.CmaxValidator", - "._cauto.CautoValidator", - "._caps.CapsValidator", - "._autocolorscale.AutocolorscaleValidator", - ], + ['._zsrc.ZsrcValidator', '._zhoverformat.ZhoverformatValidator', '._z.ZValidator', '._ysrc.YsrcValidator', '._yhoverformat.YhoverformatValidator', '._y.YValidator', '._xsrc.XsrcValidator', '._xhoverformat.XhoverformatValidator', '._x.XValidator', '._visible.VisibleValidator', '._valuesrc.ValuesrcValidator', '._valuehoverformat.ValuehoverformatValidator', '._value.ValueValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._textsrc.TextsrcValidator', '._text.TextValidator', '._surface.SurfaceValidator', '._stream.StreamValidator', '._spaceframe.SpaceframeValidator', '._slices.SlicesValidator', '._showscale.ShowscaleValidator', '._showlegend.ShowlegendValidator', '._scene.SceneValidator', '._reversescale.ReversescaleValidator', '._opacityscale.OpacityscaleValidator', '._opacity.OpacityValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._lightposition.LightpositionValidator', '._lighting.LightingValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._isomin.IsominValidator', '._isomax.IsomaxValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._flatshading.FlatshadingValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._contour.ContourValidator', '._colorscale.ColorscaleValidator', '._colorbar.ColorbarValidator', '._coloraxis.ColoraxisValidator', '._cmin.CminValidator', '._cmid.CmidValidator', '._cmax.CmaxValidator', '._cauto.CautoValidator', '._caps.CapsValidator', '._autocolorscale.AutocolorscaleValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/volume/_autocolorscale.py b/packages/python/plotly/plotly/validators/volume/_autocolorscale.py index 2f2526b2d5b..d96f0b245fd 100644 --- a/packages/python/plotly/plotly/validators/volume/_autocolorscale.py +++ b/packages/python/plotly/plotly/validators/volume/_autocolorscale.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="autocolorscale", parent_name="volume", **kwargs): - super(AutocolorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AutocolorscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='autocolorscale', + parent_name='volume', + **kwargs): + super(AutocolorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_caps.py b/packages/python/plotly/plotly/validators/volume/_caps.py index 3ca43c7b4fb..518b234b7f3 100644 --- a/packages/python/plotly/plotly/validators/volume/_caps.py +++ b/packages/python/plotly/plotly/validators/volume/_caps.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class CapsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="caps", parent_name="volume", **kwargs): - super(CapsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Caps"), - data_docs=kwargs.pop( - "data_docs", - """ - x - :class:`plotly.graph_objects.volume.caps.X` - instance or dict with compatible properties - y - :class:`plotly.graph_objects.volume.caps.Y` - instance or dict with compatible properties - z - :class:`plotly.graph_objects.volume.caps.Z` - instance or dict with compatible properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CapsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='caps', + parent_name='volume', + **kwargs): + super(CapsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Caps'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_cauto.py b/packages/python/plotly/plotly/validators/volume/_cauto.py index 3fd71964d82..a247357d0f4 100644 --- a/packages/python/plotly/plotly/validators/volume/_cauto.py +++ b/packages/python/plotly/plotly/validators/volume/_cauto.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cauto", parent_name="volume", **kwargs): - super(CautoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CautoValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cauto', + parent_name='volume', + **kwargs): + super(CautoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_cmax.py b/packages/python/plotly/plotly/validators/volume/_cmax.py index 7f4653dddf5..d43228ef290 100644 --- a/packages/python/plotly/plotly/validators/volume/_cmax.py +++ b/packages/python/plotly/plotly/validators/volume/_cmax.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmax", parent_name="volume", **kwargs): - super(CmaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmax', + parent_name='volume', + **kwargs): + super(CmaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_cmid.py b/packages/python/plotly/plotly/validators/volume/_cmid.py index ab642903a54..7082fd27204 100644 --- a/packages/python/plotly/plotly/validators/volume/_cmid.py +++ b/packages/python/plotly/plotly/validators/volume/_cmid.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmid", parent_name="volume", **kwargs): - super(CmidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CmidValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmid', + parent_name='volume', + **kwargs): + super(CmidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_cmin.py b/packages/python/plotly/plotly/validators/volume/_cmin.py index 630476efb72..f9684fe5b27 100644 --- a/packages/python/plotly/plotly/validators/volume/_cmin.py +++ b/packages/python/plotly/plotly/validators/volume/_cmin.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="cmin", parent_name="volume", **kwargs): - super(CminValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"cauto": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CminValidator(_bv.NumberValidator): + def __init__(self, plotly_name='cmin', + parent_name='volume', + **kwargs): + super(CminValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'cauto': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_coloraxis.py b/packages/python/plotly/plotly/validators/volume/_coloraxis.py index 0be64150777..c2c0d4bb5e1 100644 --- a/packages/python/plotly/plotly/validators/volume/_coloraxis.py +++ b/packages/python/plotly/plotly/validators/volume/_coloraxis.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="coloraxis", parent_name="volume", **kwargs): - super(ColoraxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", None), - edit_type=kwargs.pop("edit_type", "calc"), - regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColoraxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='coloraxis', + parent_name='volume', + **kwargs): + super(ColoraxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', None), + edit_type=kwargs.pop('edit_type', 'calc'), + regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_colorbar.py b/packages/python/plotly/plotly/validators/volume/_colorbar.py index 868ee3aa4f3..6778e30ea8f 100644 --- a/packages/python/plotly/plotly/validators/volume/_colorbar.py +++ b/packages/python/plotly/plotly/validators/volume/_colorbar.py @@ -1,279 +1,15 @@ -import _plotly_utils.basevalidators -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="colorbar", parent_name="volume", **kwargs): - super(ColorbarValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "ColorBar"), - data_docs=kwargs.pop( - "data_docs", - """ - bgcolor - Sets the color of padded area. - bordercolor - Sets the axis line color. - borderwidth - Sets the width (in px) or the border enclosing - this color bar. - dtick - Sets the step in-between ticks on this axis. - Use with `tick0`. Must be a positive number, or - special strings available to "log" and "date" - axes. If the axis `type` is "log", then ticks - are set every 10^(n*dtick) where n is the tick - number. For example, to set a tick mark at 1, - 10, 100, 1000, ... set dtick to 1. To set tick - marks at 1, 100, 10000, ... set dtick to 2. To - set tick marks at 1, 5, 25, 125, 625, 3125, ... - set dtick to log_10(5), or 0.69897000433. "log" - has several special values; "L", where `f` - is a positive number, gives ticks linearly - spaced in value (but not position). For example - `tick0` = 0.1, `dtick` = "L0.5" will put ticks - at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 - plus small digits between, use "D1" (all - digits) or "D2" (only 2 and 5). `tick0` is - ignored for "D1" and "D2". If the axis `type` - is "date", then you must convert the time to - milliseconds. For example, to set the interval - between ticks to one day, set `dtick` to - 86400000.0. "date" also has special values - "M" gives ticks spaced by a number of - months. `n` must be a positive integer. To set - ticks on the 15th of every third month, set - `tick0` to "2000-01-15" and `dtick` to "M3". To - set ticks every 4 years, set `dtick` to "M48" - exponentformat - Determines a formatting rule for the tick - exponents. For example, consider the number - 1,000,000,000. If "none", it appears as - 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If - "power", 1x10^9 (with 9 in a super script). If - "SI", 1G. If "B", 1B. - labelalias - Replacement text for specific tick or hover - labels. For example using {US: 'USA', CA: - 'Canada'} changes US to USA and CA to Canada. - The labels we would have shown must match the - keys exactly, after adding any tickprefix or - ticksuffix. For negative numbers the minus sign - symbol used (U+2212) is wider than the regular - ascii dash. That means you need to use −1 - instead of -1. labelalias can be used with any - axis type, and both keys (if needed) and values - (if desired) can include html-like tags or - MathJax. - len - Sets the length of the color bar This measure - excludes the padding of both ends. That is, the - color bar length is this length minus the - padding on both ends. - lenmode - Determines whether this color bar's length - (i.e. the measure in the color variation - direction) is set in units of plot "fraction" - or in *pixels. Use `len` to set the value. - minexponent - Hide SI prefix for 10^n if |n| is below this - number. This only has an effect when - `tickformat` is "SI" or "B". - nticks - Specifies the maximum number of ticks for the - particular axis. The actual number of ticks - will be chosen automatically to be less than or - equal to `nticks`. Has an effect only if - `tickmode` is set to "auto". - orientation - Sets the orientation of the colorbar. - outlinecolor - Sets the axis line color. - outlinewidth - Sets the width (in px) of the axis line. - separatethousands - If "true", even 4-digit integers are separated - showexponent - If "all", all exponents are shown besides their - significands. If "first", only the exponent of - the first tick is shown. If "last", only the - exponent of the last tick is shown. If "none", - no exponents appear. - showticklabels - Determines whether or not the tick labels are - drawn. - showtickprefix - If "all", all tick labels are displayed with a - prefix. If "first", only the first tick is - displayed with a prefix. If "last", only the - last tick is displayed with a suffix. If - "none", tick prefixes are hidden. - showticksuffix - Same as `showtickprefix` but for tick suffixes. - thickness - Sets the thickness of the color bar This - measure excludes the size of the padding, ticks - and labels. - thicknessmode - Determines whether this color bar's thickness - (i.e. the measure in the constant color - direction) is set in units of plot "fraction" - or in "pixels". Use `thickness` to set the - value. - tick0 - Sets the placement of the first tick on this - axis. Use with `dtick`. If the axis `type` is - "log", then you must take the log of your - starting tick (e.g. to set the starting tick to - 100, set the `tick0` to 2) except when - `dtick`=*L* (see `dtick` for more info). If - the axis `type` is "date", it should be a date - string, like date data. If the axis `type` is - "category", it should be a number, using the - scale where each category is assigned a serial - number from zero in the order it appears. - tickangle - Sets the angle of the tick labels with respect - to the horizontal. For example, a `tickangle` - of -90 draws the tick labels vertically. - tickcolor - Sets the tick color. - tickfont - Sets the color bar's tick label font - tickformat - Sets the tick label formatting rule using d3 - formatting mini-languages which are very - similar to those in Python. For numbers, see: h - ttps://github.com/d3/d3-format/tree/v1.4.5#d3- - format. And for dates see: - https://github.com/d3/d3-time- - format/tree/v2.2.3#locale_format. We add two - items to d3's date formatter: "%h" for half of - the year as a decimal number as well as "%{n}f" - for fractional seconds with n digits. For - example, *2016-10-13 09:15:23.456* with - tickformat "%H~%M~%S.%2f" would display - "09~15~23.46" - tickformatstops - A tuple of :class:`plotly.graph_objects.volume. - colorbar.Tickformatstop` instances or dicts - with compatible properties - tickformatstopdefaults - When used in a template (as layout.template.dat - a.volume.colorbar.tickformatstopdefaults), sets - the default property values to use for elements - of volume.colorbar.tickformatstops - ticklabeloverflow - Determines how we handle tick labels that would - overflow either the graph div or the domain of - the axis. The default value for inside tick - labels is *hide past domain*. In other cases - the default is *hide past div*. - ticklabelposition - Determines where tick labels are drawn relative - to the ticks. Left and right options are used - when `orientation` is "h", top and bottom when - `orientation` is "v". - ticklabelstep - Sets the spacing between tick labels as - compared to the spacing between ticks. A value - of 1 (default) means each tick gets a label. A - value of 2 means shows every 2nd label. A - larger value n means only every nth tick is - labeled. `tick0` determines which labels are - shown. Not implemented for axes with `type` - "log" or "multicategory", or when `tickmode` is - "array". - ticklen - Sets the tick length (in px). - tickmode - Sets the tick mode for this axis. If "auto", - the number of ticks is set via `nticks`. If - "linear", the placement of the ticks is - determined by a starting position `tick0` and a - tick step `dtick` ("linear" is the default - value if `tick0` and `dtick` are provided). If - "array", the placement of the ticks is set via - `tickvals` and the tick text is `ticktext`. - ("array" is the default value if `tickvals` is - provided). - tickprefix - Sets a tick label prefix. - ticks - Determines whether ticks are drawn or not. If - "", this axis' ticks are not drawn. If - "outside" ("inside"), this axis' are drawn - outside (inside) the axis lines. - ticksuffix - Sets a tick label suffix. - ticktext - Sets the text displayed at the ticks position - via `tickvals`. Only has an effect if - `tickmode` is set to "array". Used with - `tickvals`. - ticktextsrc - Sets the source reference on Chart Studio Cloud - for `ticktext`. - tickvals - Sets the values at which ticks on this axis - appear. Only has an effect if `tickmode` is set - to "array". Used with `ticktext`. - tickvalssrc - Sets the source reference on Chart Studio Cloud - for `tickvals`. - tickwidth - Sets the tick width (in px). - title - :class:`plotly.graph_objects.volume.colorbar.Ti - tle` instance or dict with compatible - properties - x - Sets the x position with respect to `xref` of - the color bar (in plot fraction). When `xref` - is "paper", defaults to 1.02 when `orientation` - is "v" and 0.5 when `orientation` is "h". When - `xref` is "container", defaults to 1 when - `orientation` is "v" and 0.5 when `orientation` - is "h". Must be between 0 and 1 if `xref` is - "container" and between "-2" and 3 if `xref` is - "paper". - xanchor - Sets this color bar's horizontal position - anchor. This anchor binds the `x` position to - the "left", "center" or "right" of the color - bar. Defaults to "left" when `orientation` is - "v" and "center" when `orientation` is "h". - xpad - Sets the amount of padding (in px) along the x - direction. - xref - Sets the container `x` refers to. "container" - spans the entire `width` of the plot. "paper" - refers to the width of the plotting area only. - y - Sets the y position with respect to `yref` of - the color bar (in plot fraction). When `yref` - is "paper", defaults to 0.5 when `orientation` - is "v" and 1.02 when `orientation` is "h". When - `yref` is "container", defaults to 0.5 when - `orientation` is "v" and 1 when `orientation` - is "h". Must be between 0 and 1 if `yref` is - "container" and between "-2" and 3 if `yref` is - "paper". - yanchor - Sets this color bar's vertical position anchor - This anchor binds the `y` position to the - "top", "middle" or "bottom" of the color bar. - Defaults to "middle" when `orientation` is "v" - and "bottom" when `orientation` is "h". - ypad - Sets the amount of padding (in px) along the y - direction. - yref - Sets the container `y` refers to. "container" - spans the entire `height` of the plot. "paper" - refers to the height of the plotting area only. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorbarValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='colorbar', + parent_name='volume', + **kwargs): + super(ColorbarValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_colorscale.py b/packages/python/plotly/plotly/validators/volume/_colorscale.py index 5e83710f9f5..f8847edc47a 100644 --- a/packages/python/plotly/plotly/validators/volume/_colorscale.py +++ b/packages/python/plotly/plotly/validators/volume/_colorscale.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__(self, plotly_name="colorscale", parent_name="volume", **kwargs): - super(ColorscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorscaleValidator(_bv.ColorscaleValidator): + def __init__(self, plotly_name='colorscale', + parent_name='volume', + **kwargs): + super(ColorscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'autocolorscale': False}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_contour.py b/packages/python/plotly/plotly/validators/volume/_contour.py index a5c1cd22713..e00089558b7 100644 --- a/packages/python/plotly/plotly/validators/volume/_contour.py +++ b/packages/python/plotly/plotly/validators/volume/_contour.py @@ -1,23 +1,15 @@ -import _plotly_utils.basevalidators -class ContourValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="contour", parent_name="volume", **kwargs): - super(ContourValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Contour"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the color of the contour lines. - show - Sets whether or not dynamic contours are shown - on hover - width - Sets the width of the contour lines. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ContourValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='contour', + parent_name='volume', + **kwargs): + super(ContourValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Contour'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_customdata.py b/packages/python/plotly/plotly/validators/volume/_customdata.py index 78519bc1e6c..785fe19b85f 100644 --- a/packages/python/plotly/plotly/validators/volume/_customdata.py +++ b/packages/python/plotly/plotly/validators/volume/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="volume", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='volume', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_customdatasrc.py b/packages/python/plotly/plotly/validators/volume/_customdatasrc.py index d1836b85d39..f8a6472ec88 100644 --- a/packages/python/plotly/plotly/validators/volume/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/volume/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="volume", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='volume', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_flatshading.py b/packages/python/plotly/plotly/validators/volume/_flatshading.py index 427727e430b..b63f09b39be 100644 --- a/packages/python/plotly/plotly/validators/volume/_flatshading.py +++ b/packages/python/plotly/plotly/validators/volume/_flatshading.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class FlatshadingValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="flatshading", parent_name="volume", **kwargs): - super(FlatshadingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FlatshadingValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='flatshading', + parent_name='volume', + **kwargs): + super(FlatshadingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_hoverinfo.py b/packages/python/plotly/plotly/validators/volume/_hoverinfo.py index 25501fb55a7..cdf26712554 100644 --- a/packages/python/plotly/plotly/validators/volume/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/volume/_hoverinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="volume", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='volume', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/volume/_hoverinfosrc.py index 337db398412..dceb1092c62 100644 --- a/packages/python/plotly/plotly/validators/volume/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/volume/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="volume", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='volume', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_hoverlabel.py b/packages/python/plotly/plotly/validators/volume/_hoverlabel.py index b0375beaeaf..78d6c1f0b01 100644 --- a/packages/python/plotly/plotly/validators/volume/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/volume/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="volume", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='volume', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_hovertemplate.py b/packages/python/plotly/plotly/validators/volume/_hovertemplate.py index 31f03fe8dd3..f4d1214ee94 100644 --- a/packages/python/plotly/plotly/validators/volume/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/volume/_hovertemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="volume", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='volume', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/volume/_hovertemplatesrc.py index c7d14b44766..0dae1af789c 100644 --- a/packages/python/plotly/plotly/validators/volume/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/volume/_hovertemplatesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertemplatesrc", parent_name="volume", **kwargs): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='volume', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_hovertext.py b/packages/python/plotly/plotly/validators/volume/_hovertext.py index b9570b24e38..d4ef68f9fe9 100644 --- a/packages/python/plotly/plotly/validators/volume/_hovertext.py +++ b/packages/python/plotly/plotly/validators/volume/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="volume", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='volume', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_hovertextsrc.py b/packages/python/plotly/plotly/validators/volume/_hovertextsrc.py index 29c815fc128..dc8f6b09752 100644 --- a/packages/python/plotly/plotly/validators/volume/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/volume/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="volume", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='volume', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_ids.py b/packages/python/plotly/plotly/validators/volume/_ids.py index d5dc060e3c6..3a3fe77ead4 100644 --- a/packages/python/plotly/plotly/validators/volume/_ids.py +++ b/packages/python/plotly/plotly/validators/volume/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="volume", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='volume', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_idssrc.py b/packages/python/plotly/plotly/validators/volume/_idssrc.py index fb6d2546f74..93c0be764d9 100644 --- a/packages/python/plotly/plotly/validators/volume/_idssrc.py +++ b/packages/python/plotly/plotly/validators/volume/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="volume", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='volume', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_isomax.py b/packages/python/plotly/plotly/validators/volume/_isomax.py index 2031d8f2974..c290d7778a0 100644 --- a/packages/python/plotly/plotly/validators/volume/_isomax.py +++ b/packages/python/plotly/plotly/validators/volume/_isomax.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IsomaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="isomax", parent_name="volume", **kwargs): - super(IsomaxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IsomaxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='isomax', + parent_name='volume', + **kwargs): + super(IsomaxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_isomin.py b/packages/python/plotly/plotly/validators/volume/_isomin.py index 8fc4808c0e6..b882b6392fa 100644 --- a/packages/python/plotly/plotly/validators/volume/_isomin.py +++ b/packages/python/plotly/plotly/validators/volume/_isomin.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IsominValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="isomin", parent_name="volume", **kwargs): - super(IsominValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IsominValidator(_bv.NumberValidator): + def __init__(self, plotly_name='isomin', + parent_name='volume', + **kwargs): + super(IsominValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_legend.py b/packages/python/plotly/plotly/validators/volume/_legend.py index 8ef46b6e9e0..3539975265a 100644 --- a/packages/python/plotly/plotly/validators/volume/_legend.py +++ b/packages/python/plotly/plotly/validators/volume/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="volume", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='volume', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_legendgroup.py b/packages/python/plotly/plotly/validators/volume/_legendgroup.py index 560bd3449d1..baccb4e59a7 100644 --- a/packages/python/plotly/plotly/validators/volume/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/volume/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="volume", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='volume', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/volume/_legendgrouptitle.py index aa90f0d6036..d3c988bde32 100644 --- a/packages/python/plotly/plotly/validators/volume/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/volume/_legendgrouptitle.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="legendgrouptitle", parent_name="volume", **kwargs): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='volume', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_legendrank.py b/packages/python/plotly/plotly/validators/volume/_legendrank.py index cc8f829ad72..43ba0e40d80 100644 --- a/packages/python/plotly/plotly/validators/volume/_legendrank.py +++ b/packages/python/plotly/plotly/validators/volume/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="volume", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='volume', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_legendwidth.py b/packages/python/plotly/plotly/validators/volume/_legendwidth.py index ee091daf63d..ba0b7e3de51 100644 --- a/packages/python/plotly/plotly/validators/volume/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/volume/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="volume", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='volume', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_lighting.py b/packages/python/plotly/plotly/validators/volume/_lighting.py index a6dc7ec7fe0..eacb0019f3c 100644 --- a/packages/python/plotly/plotly/validators/volume/_lighting.py +++ b/packages/python/plotly/plotly/validators/volume/_lighting.py @@ -1,40 +1,15 @@ -import _plotly_utils.basevalidators -class LightingValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="lighting", parent_name="volume", **kwargs): - super(LightingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Lighting"), - data_docs=kwargs.pop( - "data_docs", - """ - ambient - Ambient light increases overall color - visibility but can wash out the image. - diffuse - Represents the extent that incident rays are - reflected in a range of angles. - facenormalsepsilon - Epsilon for face normals calculation avoids - math issues arising from degenerate geometry. - fresnel - Represents the reflectance as a dependency of - the viewing angle; e.g. paper is reflective - when viewing it from the edge of the paper - (almost 90 degrees), causing shine. - roughness - Alters specular reflection; the rougher the - surface, the wider and less contrasty the - shine. - specular - Represents the level that incident rays are - reflected in a single direction, causing shine. - vertexnormalsepsilon - Epsilon for vertex normals calculation avoids - math issues arising from degenerate geometry. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LightingValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='lighting', + parent_name='volume', + **kwargs): + super(LightingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Lighting'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_lightposition.py b/packages/python/plotly/plotly/validators/volume/_lightposition.py index 0ec60509bab..25899ae36b0 100644 --- a/packages/python/plotly/plotly/validators/volume/_lightposition.py +++ b/packages/python/plotly/plotly/validators/volume/_lightposition.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class LightpositionValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="lightposition", parent_name="volume", **kwargs): - super(LightpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Lightposition"), - data_docs=kwargs.pop( - "data_docs", - """ - x - Numeric vector, representing the X coordinate - for each vertex. - y - Numeric vector, representing the Y coordinate - for each vertex. - z - Numeric vector, representing the Z coordinate - for each vertex. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LightpositionValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='lightposition', + parent_name='volume', + **kwargs): + super(LightpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Lightposition'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_meta.py b/packages/python/plotly/plotly/validators/volume/_meta.py index aa2a70ad647..e6d42c47a38 100644 --- a/packages/python/plotly/plotly/validators/volume/_meta.py +++ b/packages/python/plotly/plotly/validators/volume/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="volume", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='volume', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_metasrc.py b/packages/python/plotly/plotly/validators/volume/_metasrc.py index 559a211b885..98492e0cb8d 100644 --- a/packages/python/plotly/plotly/validators/volume/_metasrc.py +++ b/packages/python/plotly/plotly/validators/volume/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="volume", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='volume', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_name.py b/packages/python/plotly/plotly/validators/volume/_name.py index 590af2b2669..cf2d330de10 100644 --- a/packages/python/plotly/plotly/validators/volume/_name.py +++ b/packages/python/plotly/plotly/validators/volume/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="volume", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='volume', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_opacity.py b/packages/python/plotly/plotly/validators/volume/_opacity.py index 38b093909b8..a7b8bc1bf73 100644 --- a/packages/python/plotly/plotly/validators/volume/_opacity.py +++ b/packages/python/plotly/plotly/validators/volume/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="volume", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='volume', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_opacityscale.py b/packages/python/plotly/plotly/validators/volume/_opacityscale.py index 27b8b604dbe..ad0b978d37e 100644 --- a/packages/python/plotly/plotly/validators/volume/_opacityscale.py +++ b/packages/python/plotly/plotly/validators/volume/_opacityscale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class OpacityscaleValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="opacityscale", parent_name="volume", **kwargs): - super(OpacityscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OpacityscaleValidator(_bv.AnyValidator): + def __init__(self, plotly_name='opacityscale', + parent_name='volume', + **kwargs): + super(OpacityscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_reversescale.py b/packages/python/plotly/plotly/validators/volume/_reversescale.py index d0e3e506488..65b2aead355 100644 --- a/packages/python/plotly/plotly/validators/volume/_reversescale.py +++ b/packages/python/plotly/plotly/validators/volume/_reversescale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="reversescale", parent_name="volume", **kwargs): - super(ReversescaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ReversescaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='reversescale', + parent_name='volume', + **kwargs): + super(ReversescaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_scene.py b/packages/python/plotly/plotly/validators/volume/_scene.py index ef43dfe33a0..4be15d4bb00 100644 --- a/packages/python/plotly/plotly/validators/volume/_scene.py +++ b/packages/python/plotly/plotly/validators/volume/_scene.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class SceneValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="scene", parent_name="volume", **kwargs): - super(SceneValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "scene"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SceneValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='scene', + parent_name='volume', + **kwargs): + super(SceneValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'scene'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_showlegend.py b/packages/python/plotly/plotly/validators/volume/_showlegend.py index 16d42b61a9a..fce677a524d 100644 --- a/packages/python/plotly/plotly/validators/volume/_showlegend.py +++ b/packages/python/plotly/plotly/validators/volume/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="volume", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='volume', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_showscale.py b/packages/python/plotly/plotly/validators/volume/_showscale.py index 09feab94f5b..69d9e211091 100644 --- a/packages/python/plotly/plotly/validators/volume/_showscale.py +++ b/packages/python/plotly/plotly/validators/volume/_showscale.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showscale", parent_name="volume", **kwargs): - super(ShowscaleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowscaleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showscale', + parent_name='volume', + **kwargs): + super(ShowscaleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_slices.py b/packages/python/plotly/plotly/validators/volume/_slices.py index a8ed69ad1ad..333cd472110 100644 --- a/packages/python/plotly/plotly/validators/volume/_slices.py +++ b/packages/python/plotly/plotly/validators/volume/_slices.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class SlicesValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="slices", parent_name="volume", **kwargs): - super(SlicesValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Slices"), - data_docs=kwargs.pop( - "data_docs", - """ - x - :class:`plotly.graph_objects.volume.slices.X` - instance or dict with compatible properties - y - :class:`plotly.graph_objects.volume.slices.Y` - instance or dict with compatible properties - z - :class:`plotly.graph_objects.volume.slices.Z` - instance or dict with compatible properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SlicesValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='slices', + parent_name='volume', + **kwargs): + super(SlicesValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Slices'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_spaceframe.py b/packages/python/plotly/plotly/validators/volume/_spaceframe.py index c67077d1406..e773dd84fec 100644 --- a/packages/python/plotly/plotly/validators/volume/_spaceframe.py +++ b/packages/python/plotly/plotly/validators/volume/_spaceframe.py @@ -1,27 +1,15 @@ -import _plotly_utils.basevalidators -class SpaceframeValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="spaceframe", parent_name="volume", **kwargs): - super(SpaceframeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Spaceframe"), - data_docs=kwargs.pop( - "data_docs", - """ - fill - Sets the fill ratio of the `spaceframe` - elements. The default fill value is 1 meaning - that they are entirely shaded. Applying a - `fill` ratio less than one would allow the - creation of openings parallel to the edges. - show - Displays/hides tetrahedron shapes between - minimum and maximum iso-values. Often useful - when either caps or surfaces are disabled or - filled with values less than 1. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SpaceframeValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='spaceframe', + parent_name='volume', + **kwargs): + super(SpaceframeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Spaceframe'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_stream.py b/packages/python/plotly/plotly/validators/volume/_stream.py index 9c0e63d5daf..924538f0f51 100644 --- a/packages/python/plotly/plotly/validators/volume/_stream.py +++ b/packages/python/plotly/plotly/validators/volume/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="volume", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='volume', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_surface.py b/packages/python/plotly/plotly/validators/volume/_surface.py index 2ac70d5227e..7e0a1c5c844 100644 --- a/packages/python/plotly/plotly/validators/volume/_surface.py +++ b/packages/python/plotly/plotly/validators/volume/_surface.py @@ -1,42 +1,15 @@ -import _plotly_utils.basevalidators -class SurfaceValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="surface", parent_name="volume", **kwargs): - super(SurfaceValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Surface"), - data_docs=kwargs.pop( - "data_docs", - """ - count - Sets the number of iso-surfaces between minimum - and maximum iso-values. By default this value - is 2 meaning that only minimum and maximum - surfaces would be drawn. - fill - Sets the fill ratio of the iso-surface. The - default fill value of the surface is 1 meaning - that they are entirely shaded. On the other - hand Applying a `fill` ratio less than one - would allow the creation of openings parallel - to the edges. - pattern - Sets the surface pattern of the iso-surface 3-D - sections. The default pattern of the surface is - `all` meaning that the rest of surface elements - would be shaded. The check options (either 1 or - 2) could be used to draw half of the squares on - the surface. Using various combinations of - capital `A`, `B`, `C`, `D` and `E` may also be - used to reduce the number of triangles on the - iso-surfaces and creating other patterns of - interest. - show - Hides/displays surfaces between minimum and - maximum iso-values. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SurfaceValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='surface', + parent_name='volume', + **kwargs): + super(SurfaceValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Surface'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_text.py b/packages/python/plotly/plotly/validators/volume/_text.py index 953fb1ed5fc..e0d599c59e1 100644 --- a/packages/python/plotly/plotly/validators/volume/_text.py +++ b/packages/python/plotly/plotly/validators/volume/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="volume", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='volume', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_textsrc.py b/packages/python/plotly/plotly/validators/volume/_textsrc.py index f3810a96329..4949bb5b182 100644 --- a/packages/python/plotly/plotly/validators/volume/_textsrc.py +++ b/packages/python/plotly/plotly/validators/volume/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="volume", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='volume', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_uid.py b/packages/python/plotly/plotly/validators/volume/_uid.py index cbd6dbfee18..cef16a8d789 100644 --- a/packages/python/plotly/plotly/validators/volume/_uid.py +++ b/packages/python/plotly/plotly/validators/volume/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="volume", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='volume', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_uirevision.py b/packages/python/plotly/plotly/validators/volume/_uirevision.py index 18ae368c7a9..9d882f1a0f9 100644 --- a/packages/python/plotly/plotly/validators/volume/_uirevision.py +++ b/packages/python/plotly/plotly/validators/volume/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="volume", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='volume', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_value.py b/packages/python/plotly/plotly/validators/volume/_value.py index 3d018021015..295cb9ab962 100644 --- a/packages/python/plotly/plotly/validators/volume/_value.py +++ b/packages/python/plotly/plotly/validators/volume/_value.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="value", parent_name="volume", **kwargs): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='value', + parent_name='volume', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_valuehoverformat.py b/packages/python/plotly/plotly/validators/volume/_valuehoverformat.py index de37484e98d..8fff9808ca1 100644 --- a/packages/python/plotly/plotly/validators/volume/_valuehoverformat.py +++ b/packages/python/plotly/plotly/validators/volume/_valuehoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ValuehoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="valuehoverformat", parent_name="volume", **kwargs): - super(ValuehoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValuehoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='valuehoverformat', + parent_name='volume', + **kwargs): + super(ValuehoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_valuesrc.py b/packages/python/plotly/plotly/validators/volume/_valuesrc.py index 90b461e8ed3..98c51491845 100644 --- a/packages/python/plotly/plotly/validators/volume/_valuesrc.py +++ b/packages/python/plotly/plotly/validators/volume/_valuesrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ValuesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="valuesrc", parent_name="volume", **kwargs): - super(ValuesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValuesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='valuesrc', + parent_name='volume', + **kwargs): + super(ValuesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_visible.py b/packages/python/plotly/plotly/validators/volume/_visible.py index 5839b64d468..0b66baaf766 100644 --- a/packages/python/plotly/plotly/validators/volume/_visible.py +++ b/packages/python/plotly/plotly/validators/volume/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="volume", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='volume', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_x.py b/packages/python/plotly/plotly/validators/volume/_x.py index bad81ad954e..e13087157b0 100644 --- a/packages/python/plotly/plotly/validators/volume/_x.py +++ b/packages/python/plotly/plotly/validators/volume/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="x", parent_name="volume", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='x', + parent_name='volume', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_xhoverformat.py b/packages/python/plotly/plotly/validators/volume/_xhoverformat.py index aa1c789505d..f4f5da0ff09 100644 --- a/packages/python/plotly/plotly/validators/volume/_xhoverformat.py +++ b/packages/python/plotly/plotly/validators/volume/_xhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="xhoverformat", parent_name="volume", **kwargs): - super(XhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='xhoverformat', + parent_name='volume', + **kwargs): + super(XhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_xsrc.py b/packages/python/plotly/plotly/validators/volume/_xsrc.py index 6dd4c7c11c3..5e373dfd330 100644 --- a/packages/python/plotly/plotly/validators/volume/_xsrc.py +++ b/packages/python/plotly/plotly/validators/volume/_xsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="xsrc", parent_name="volume", **kwargs): - super(XsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='xsrc', + parent_name='volume', + **kwargs): + super(XsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_y.py b/packages/python/plotly/plotly/validators/volume/_y.py index 4856d47c606..671ded4ada7 100644 --- a/packages/python/plotly/plotly/validators/volume/_y.py +++ b/packages/python/plotly/plotly/validators/volume/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="y", parent_name="volume", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='y', + parent_name='volume', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_yhoverformat.py b/packages/python/plotly/plotly/validators/volume/_yhoverformat.py index 952c8abcae8..a6034e35467 100644 --- a/packages/python/plotly/plotly/validators/volume/_yhoverformat.py +++ b/packages/python/plotly/plotly/validators/volume/_yhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="yhoverformat", parent_name="volume", **kwargs): - super(YhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='yhoverformat', + parent_name='volume', + **kwargs): + super(YhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_ysrc.py b/packages/python/plotly/plotly/validators/volume/_ysrc.py index 81b7c481fb3..f898dd6e44c 100644 --- a/packages/python/plotly/plotly/validators/volume/_ysrc.py +++ b/packages/python/plotly/plotly/validators/volume/_ysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="ysrc", parent_name="volume", **kwargs): - super(YsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ysrc', + parent_name='volume', + **kwargs): + super(YsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_z.py b/packages/python/plotly/plotly/validators/volume/_z.py index 3344f4775f1..3f18c209331 100644 --- a/packages/python/plotly/plotly/validators/volume/_z.py +++ b/packages/python/plotly/plotly/validators/volume/_z.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="z", parent_name="volume", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='z', + parent_name='volume', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_zhoverformat.py b/packages/python/plotly/plotly/validators/volume/_zhoverformat.py index 76962dba654..5c60ad8988d 100644 --- a/packages/python/plotly/plotly/validators/volume/_zhoverformat.py +++ b/packages/python/plotly/plotly/validators/volume/_zhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="zhoverformat", parent_name="volume", **kwargs): - super(ZhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='zhoverformat', + parent_name='volume', + **kwargs): + super(ZhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/_zsrc.py b/packages/python/plotly/plotly/validators/volume/_zsrc.py index 525ac4448a1..45c6cc999e5 100644 --- a/packages/python/plotly/plotly/validators/volume/_zsrc.py +++ b/packages/python/plotly/plotly/validators/volume/_zsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="zsrc", parent_name="volume", **kwargs): - super(ZsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='zsrc', + parent_name='volume', + **kwargs): + super(ZsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/caps/__init__.py b/packages/python/plotly/plotly/validators/volume/caps/__init__.py index 52779f59bc4..21cfa26dac1 100644 --- a/packages/python/plotly/plotly/validators/volume/caps/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/caps/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._z import ZValidator from ._y import YValidator from ._x import XValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] + __name__, + [], + ['._z.ZValidator', '._y.YValidator', '._x.XValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/volume/caps/_x.py b/packages/python/plotly/plotly/validators/volume/caps/_x.py index ec368208920..cfd7a5089c3 100644 --- a/packages/python/plotly/plotly/validators/volume/caps/_x.py +++ b/packages/python/plotly/plotly/validators/volume/caps/_x.py @@ -1,29 +1,15 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="x", parent_name="volume.caps", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "X"), - data_docs=kwargs.pop( - "data_docs", - """ - fill - Sets the fill ratio of the `caps`. The default - fill value of the `caps` is 1 meaning that they - are entirely shaded. On the other hand Applying - a `fill` ratio less than one would allow the - creation of openings parallel to the edges. - show - Sets the fill ratio of the `slices`. The - default fill value of the x `slices` is 1 - meaning that they are entirely shaded. On the - other hand Applying a `fill` ratio less than - one would allow the creation of openings - parallel to the edges. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='x', + parent_name='volume.caps', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'X'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/caps/_y.py b/packages/python/plotly/plotly/validators/volume/caps/_y.py index 742099a6a49..a463a14d9ff 100644 --- a/packages/python/plotly/plotly/validators/volume/caps/_y.py +++ b/packages/python/plotly/plotly/validators/volume/caps/_y.py @@ -1,29 +1,15 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="y", parent_name="volume.caps", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Y"), - data_docs=kwargs.pop( - "data_docs", - """ - fill - Sets the fill ratio of the `caps`. The default - fill value of the `caps` is 1 meaning that they - are entirely shaded. On the other hand Applying - a `fill` ratio less than one would allow the - creation of openings parallel to the edges. - show - Sets the fill ratio of the `slices`. The - default fill value of the y `slices` is 1 - meaning that they are entirely shaded. On the - other hand Applying a `fill` ratio less than - one would allow the creation of openings - parallel to the edges. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='y', + parent_name='volume.caps', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Y'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/caps/_z.py b/packages/python/plotly/plotly/validators/volume/caps/_z.py index e2cd6b89c78..8268c0cebe4 100644 --- a/packages/python/plotly/plotly/validators/volume/caps/_z.py +++ b/packages/python/plotly/plotly/validators/volume/caps/_z.py @@ -1,29 +1,15 @@ -import _plotly_utils.basevalidators -class ZValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="z", parent_name="volume.caps", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Z"), - data_docs=kwargs.pop( - "data_docs", - """ - fill - Sets the fill ratio of the `caps`. The default - fill value of the `caps` is 1 meaning that they - are entirely shaded. On the other hand Applying - a `fill` ratio less than one would allow the - creation of openings parallel to the edges. - show - Sets the fill ratio of the `slices`. The - default fill value of the z `slices` is 1 - meaning that they are entirely shaded. On the - other hand Applying a `fill` ratio less than - one would allow the creation of openings - parallel to the edges. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='z', + parent_name='volume.caps', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Z'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/caps/x/__init__.py b/packages/python/plotly/plotly/validators/volume/caps/x/__init__.py index 63a14620d21..90a3411589a 100644 --- a/packages/python/plotly/plotly/validators/volume/caps/x/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/caps/x/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._show import ShowValidator from ._fill import FillValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._show.ShowValidator", "._fill.FillValidator"] + __name__, + [], + ['._show.ShowValidator', '._fill.FillValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/volume/caps/x/_fill.py b/packages/python/plotly/plotly/validators/volume/caps/x/_fill.py index 78d2fc67d46..f81942a3c0c 100644 --- a/packages/python/plotly/plotly/validators/volume/caps/x/_fill.py +++ b/packages/python/plotly/plotly/validators/volume/caps/x/_fill.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class FillValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="fill", parent_name="volume.caps.x", **kwargs): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fill', + parent_name='volume.caps.x', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/caps/x/_show.py b/packages/python/plotly/plotly/validators/volume/caps/x/_show.py index b8c756e69e0..4b1a0d02cbb 100644 --- a/packages/python/plotly/plotly/validators/volume/caps/x/_show.py +++ b/packages/python/plotly/plotly/validators/volume/caps/x/_show.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="show", parent_name="volume.caps.x", **kwargs): - super(ShowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='show', + parent_name='volume.caps.x', + **kwargs): + super(ShowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/caps/y/__init__.py b/packages/python/plotly/plotly/validators/volume/caps/y/__init__.py index 63a14620d21..90a3411589a 100644 --- a/packages/python/plotly/plotly/validators/volume/caps/y/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/caps/y/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._show import ShowValidator from ._fill import FillValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._show.ShowValidator", "._fill.FillValidator"] + __name__, + [], + ['._show.ShowValidator', '._fill.FillValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/volume/caps/y/_fill.py b/packages/python/plotly/plotly/validators/volume/caps/y/_fill.py index ab08833f38d..0509e1763f3 100644 --- a/packages/python/plotly/plotly/validators/volume/caps/y/_fill.py +++ b/packages/python/plotly/plotly/validators/volume/caps/y/_fill.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class FillValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="fill", parent_name="volume.caps.y", **kwargs): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fill', + parent_name='volume.caps.y', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/caps/y/_show.py b/packages/python/plotly/plotly/validators/volume/caps/y/_show.py index 60504380ba5..7e06f4ab18b 100644 --- a/packages/python/plotly/plotly/validators/volume/caps/y/_show.py +++ b/packages/python/plotly/plotly/validators/volume/caps/y/_show.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="show", parent_name="volume.caps.y", **kwargs): - super(ShowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='show', + parent_name='volume.caps.y', + **kwargs): + super(ShowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/caps/z/__init__.py b/packages/python/plotly/plotly/validators/volume/caps/z/__init__.py index 63a14620d21..90a3411589a 100644 --- a/packages/python/plotly/plotly/validators/volume/caps/z/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/caps/z/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._show import ShowValidator from ._fill import FillValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._show.ShowValidator", "._fill.FillValidator"] + __name__, + [], + ['._show.ShowValidator', '._fill.FillValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/volume/caps/z/_fill.py b/packages/python/plotly/plotly/validators/volume/caps/z/_fill.py index 2e86e611ab4..8902dca1eea 100644 --- a/packages/python/plotly/plotly/validators/volume/caps/z/_fill.py +++ b/packages/python/plotly/plotly/validators/volume/caps/z/_fill.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class FillValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="fill", parent_name="volume.caps.z", **kwargs): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fill', + parent_name='volume.caps.z', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/caps/z/_show.py b/packages/python/plotly/plotly/validators/volume/caps/z/_show.py index c99ded1cc67..fd185e54141 100644 --- a/packages/python/plotly/plotly/validators/volume/caps/z/_show.py +++ b/packages/python/plotly/plotly/validators/volume/caps/z/_show.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="show", parent_name="volume.caps.z", **kwargs): - super(ShowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='show', + parent_name='volume.caps.z', + **kwargs): + super(ShowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/__init__.py b/packages/python/plotly/plotly/validators/volume/colorbar/__init__.py index 84963a2c1b3..9a53d754823 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._ypad import YpadValidator @@ -53,59 +52,10 @@ from ._bgcolor import BgcolorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._yref.YrefValidator", - "._ypad.YpadValidator", - "._yanchor.YanchorValidator", - "._y.YValidator", - "._xref.XrefValidator", - "._xpad.XpadValidator", - "._xanchor.XanchorValidator", - "._x.XValidator", - "._title.TitleValidator", - "._tickwidth.TickwidthValidator", - "._tickvalssrc.TickvalssrcValidator", - "._tickvals.TickvalsValidator", - "._ticktextsrc.TicktextsrcValidator", - "._ticktext.TicktextValidator", - "._ticksuffix.TicksuffixValidator", - "._ticks.TicksValidator", - "._tickprefix.TickprefixValidator", - "._tickmode.TickmodeValidator", - "._ticklen.TicklenValidator", - "._ticklabelstep.TicklabelstepValidator", - "._ticklabelposition.TicklabelpositionValidator", - "._ticklabeloverflow.TicklabeloverflowValidator", - "._tickformatstopdefaults.TickformatstopdefaultsValidator", - "._tickformatstops.TickformatstopsValidator", - "._tickformat.TickformatValidator", - "._tickfont.TickfontValidator", - "._tickcolor.TickcolorValidator", - "._tickangle.TickangleValidator", - "._tick0.Tick0Validator", - "._thicknessmode.ThicknessmodeValidator", - "._thickness.ThicknessValidator", - "._showticksuffix.ShowticksuffixValidator", - "._showtickprefix.ShowtickprefixValidator", - "._showticklabels.ShowticklabelsValidator", - "._showexponent.ShowexponentValidator", - "._separatethousands.SeparatethousandsValidator", - "._outlinewidth.OutlinewidthValidator", - "._outlinecolor.OutlinecolorValidator", - "._orientation.OrientationValidator", - "._nticks.NticksValidator", - "._minexponent.MinexponentValidator", - "._lenmode.LenmodeValidator", - "._len.LenValidator", - "._labelalias.LabelaliasValidator", - "._exponentformat.ExponentformatValidator", - "._dtick.DtickValidator", - "._borderwidth.BorderwidthValidator", - "._bordercolor.BordercolorValidator", - "._bgcolor.BgcolorValidator", - ], + ['._yref.YrefValidator', '._ypad.YpadValidator', '._yanchor.YanchorValidator', '._y.YValidator', '._xref.XrefValidator', '._xpad.XpadValidator', '._xanchor.XanchorValidator', '._x.XValidator', '._title.TitleValidator', '._tickwidth.TickwidthValidator', '._tickvalssrc.TickvalssrcValidator', '._tickvals.TickvalsValidator', '._ticktextsrc.TicktextsrcValidator', '._ticktext.TicktextValidator', '._ticksuffix.TicksuffixValidator', '._ticks.TicksValidator', '._tickprefix.TickprefixValidator', '._tickmode.TickmodeValidator', '._ticklen.TicklenValidator', '._ticklabelstep.TicklabelstepValidator', '._ticklabelposition.TicklabelpositionValidator', '._ticklabeloverflow.TicklabeloverflowValidator', '._tickformatstopdefaults.TickformatstopdefaultsValidator', '._tickformatstops.TickformatstopsValidator', '._tickformat.TickformatValidator', '._tickfont.TickfontValidator', '._tickcolor.TickcolorValidator', '._tickangle.TickangleValidator', '._tick0.Tick0Validator', '._thicknessmode.ThicknessmodeValidator', '._thickness.ThicknessValidator', '._showticksuffix.ShowticksuffixValidator', '._showtickprefix.ShowtickprefixValidator', '._showticklabels.ShowticklabelsValidator', '._showexponent.ShowexponentValidator', '._separatethousands.SeparatethousandsValidator', '._outlinewidth.OutlinewidthValidator', '._outlinecolor.OutlinecolorValidator', '._orientation.OrientationValidator', '._nticks.NticksValidator', '._minexponent.MinexponentValidator', '._lenmode.LenmodeValidator', '._len.LenValidator', '._labelalias.LabelaliasValidator', '._exponentformat.ExponentformatValidator', '._dtick.DtickValidator', '._borderwidth.BorderwidthValidator', '._bordercolor.BordercolorValidator', '._bgcolor.BgcolorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_bgcolor.py b/packages/python/plotly/plotly/validators/volume/colorbar/_bgcolor.py index 5e048116640..af1629e408b 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_bgcolor.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="bgcolor", parent_name="volume.colorbar", **kwargs): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='volume.colorbar', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_bordercolor.py b/packages/python/plotly/plotly/validators/volume/colorbar/_bordercolor.py index 3cf7dc93c56..63fe78b8a8d 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_bordercolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="volume.colorbar", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='volume.colorbar', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_borderwidth.py b/packages/python/plotly/plotly/validators/volume/colorbar/_borderwidth.py index 0fc61fa1317..a823cda158f 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_borderwidth.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_borderwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="borderwidth", parent_name="volume.colorbar", **kwargs - ): - super(BorderwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BorderwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='borderwidth', + parent_name='volume.colorbar', + **kwargs): + super(BorderwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_dtick.py b/packages/python/plotly/plotly/validators/volume/colorbar/_dtick.py index beb75921c03..d2e78d0a08a 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_dtick.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_dtick.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="dtick", parent_name="volume.colorbar", **kwargs): - super(DtickValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DtickValidator(_bv.AnyValidator): + def __init__(self, plotly_name='dtick', + parent_name='volume.colorbar', + **kwargs): + super(DtickValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_exponentformat.py b/packages/python/plotly/plotly/validators/volume/colorbar/_exponentformat.py index 406ac26c3d8..15eb7e97263 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_exponentformat.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_exponentformat.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="exponentformat", parent_name="volume.colorbar", **kwargs - ): - super(ExponentformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ExponentformatValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='exponentformat', + parent_name='volume.colorbar', + **kwargs): + super(ExponentformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['none', 'e', 'E', 'power', 'SI', 'B']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_labelalias.py b/packages/python/plotly/plotly/validators/volume/colorbar/_labelalias.py index e1eaf06e52a..83aff10eef5 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_labelalias.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_labelalias.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name="labelalias", parent_name="volume.colorbar", **kwargs - ): - super(LabelaliasValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LabelaliasValidator(_bv.AnyValidator): + def __init__(self, plotly_name='labelalias', + parent_name='volume.colorbar', + **kwargs): + super(LabelaliasValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_len.py b/packages/python/plotly/plotly/validators/volume/colorbar/_len.py index 031a3d5fc81..58031bfcf99 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_len.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_len.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="len", parent_name="volume.colorbar", **kwargs): - super(LenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='len', + parent_name='volume.colorbar', + **kwargs): + super(LenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_lenmode.py b/packages/python/plotly/plotly/validators/volume/colorbar/_lenmode.py index 9cf413d0a2c..0dddc5ff164 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_lenmode.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_lenmode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="lenmode", parent_name="volume.colorbar", **kwargs): - super(LenmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LenmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='lenmode', + parent_name='volume.colorbar', + **kwargs): + super(LenmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_minexponent.py b/packages/python/plotly/plotly/validators/volume/colorbar/_minexponent.py index 6e77c8b8781..c214de30d94 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_minexponent.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_minexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="minexponent", parent_name="volume.colorbar", **kwargs - ): - super(MinexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MinexponentValidator(_bv.NumberValidator): + def __init__(self, plotly_name='minexponent', + parent_name='volume.colorbar', + **kwargs): + super(MinexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_nticks.py b/packages/python/plotly/plotly/validators/volume/colorbar/_nticks.py index 80113752ac1..b736d0f0695 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_nticks.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_nticks.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="nticks", parent_name="volume.colorbar", **kwargs): - super(NticksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NticksValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='nticks', + parent_name='volume.colorbar', + **kwargs): + super(NticksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_orientation.py b/packages/python/plotly/plotly/validators/volume/colorbar/_orientation.py index dfb40e658c6..a70d471138f 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_orientation.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_orientation.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="orientation", parent_name="volume.colorbar", **kwargs - ): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["h", "v"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='volume.colorbar', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['h', 'v']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_outlinecolor.py b/packages/python/plotly/plotly/validators/volume/colorbar/_outlinecolor.py index 43442358912..fc01e989519 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_outlinecolor.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_outlinecolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="outlinecolor", parent_name="volume.colorbar", **kwargs - ): - super(OutlinecolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinecolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='outlinecolor', + parent_name='volume.colorbar', + **kwargs): + super(OutlinecolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_outlinewidth.py b/packages/python/plotly/plotly/validators/volume/colorbar/_outlinewidth.py index 23a73766254..2462214b2b3 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_outlinewidth.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_outlinewidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="outlinewidth", parent_name="volume.colorbar", **kwargs - ): - super(OutlinewidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OutlinewidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='outlinewidth', + parent_name='volume.colorbar', + **kwargs): + super(OutlinewidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_separatethousands.py b/packages/python/plotly/plotly/validators/volume/colorbar/_separatethousands.py index 9b8fa68637d..ca756d1e7ec 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_separatethousands.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_separatethousands.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="separatethousands", parent_name="volume.colorbar", **kwargs - ): - super(SeparatethousandsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SeparatethousandsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='separatethousands', + parent_name='volume.colorbar', + **kwargs): + super(SeparatethousandsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_showexponent.py b/packages/python/plotly/plotly/validators/volume/colorbar/_showexponent.py index fda6ad518fd..742812e5fbe 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_showexponent.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_showexponent.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showexponent", parent_name="volume.colorbar", **kwargs - ): - super(ShowexponentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowexponentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showexponent', + parent_name='volume.colorbar', + **kwargs): + super(ShowexponentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_showticklabels.py b/packages/python/plotly/plotly/validators/volume/colorbar/_showticklabels.py index 4c95b5be1a0..8be04cd6564 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_showticklabels.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_showticklabels.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="showticklabels", parent_name="volume.colorbar", **kwargs - ): - super(ShowticklabelsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticklabelsValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showticklabels', + parent_name='volume.colorbar', + **kwargs): + super(ShowticklabelsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_showtickprefix.py b/packages/python/plotly/plotly/validators/volume/colorbar/_showtickprefix.py index 1d56db9cda8..07dd8718cce 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_showtickprefix.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_showtickprefix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showtickprefix", parent_name="volume.colorbar", **kwargs - ): - super(ShowtickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowtickprefixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showtickprefix', + parent_name='volume.colorbar', + **kwargs): + super(ShowtickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_showticksuffix.py b/packages/python/plotly/plotly/validators/volume/colorbar/_showticksuffix.py index ca0d51fa995..ea9e524070a 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_showticksuffix.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_showticksuffix.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="showticksuffix", parent_name="volume.colorbar", **kwargs - ): - super(ShowticksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["all", "first", "last", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShowticksuffixValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='showticksuffix', + parent_name='volume.colorbar', + **kwargs): + super(ShowticksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_thickness.py b/packages/python/plotly/plotly/validators/volume/colorbar/_thickness.py index 2c9aedfc8a4..5842e6e71ca 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_thickness.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_thickness.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="thickness", parent_name="volume.colorbar", **kwargs - ): - super(ThicknessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='thickness', + parent_name='volume.colorbar', + **kwargs): + super(ThicknessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_thicknessmode.py b/packages/python/plotly/plotly/validators/volume/colorbar/_thicknessmode.py index 389ac7245bf..6e52960912d 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_thicknessmode.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_thicknessmode.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="thicknessmode", parent_name="volume.colorbar", **kwargs - ): - super(ThicknessmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["fraction", "pixels"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ThicknessmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='thicknessmode', + parent_name='volume.colorbar', + **kwargs): + super(ThicknessmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['fraction', 'pixels']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_tick0.py b/packages/python/plotly/plotly/validators/volume/colorbar/_tick0.py index a816e01888f..9fcbb6922e4 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_tick0.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_tick0.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="tick0", parent_name="volume.colorbar", **kwargs): - super(Tick0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class Tick0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='tick0', + parent_name='volume.colorbar', + **kwargs): + super(Tick0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_tickangle.py b/packages/python/plotly/plotly/validators/volume/colorbar/_tickangle.py index 6e4399f6222..43a11706325 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_tickangle.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_tickangle.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name="tickangle", parent_name="volume.colorbar", **kwargs - ): - super(TickangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='tickangle', + parent_name='volume.colorbar', + **kwargs): + super(TickangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_tickcolor.py b/packages/python/plotly/plotly/validators/volume/colorbar/_tickcolor.py index c9b04e36539..d8377ae21f4 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_tickcolor.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_tickcolor.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="tickcolor", parent_name="volume.colorbar", **kwargs - ): - super(TickcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='tickcolor', + parent_name='volume.colorbar', + **kwargs): + super(TickcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_tickfont.py b/packages/python/plotly/plotly/validators/volume/colorbar/_tickfont.py index ae4c8832f8a..f1771e918ed 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_tickfont.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_tickfont.py @@ -1,59 +1,15 @@ -import _plotly_utils.basevalidators -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="tickfont", parent_name="volume.colorbar", **kwargs): - super(TickfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class TickfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickfont', + parent_name='volume.colorbar', + **kwargs): + super(TickfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_tickformat.py b/packages/python/plotly/plotly/validators/volume/colorbar/_tickformat.py index d90a099b1f6..d338be45f6e 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_tickformat.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_tickformat.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickformat", parent_name="volume.colorbar", **kwargs - ): - super(TickformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickformat', + parent_name='volume.colorbar', + **kwargs): + super(TickformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_tickformatstopdefaults.py b/packages/python/plotly/plotly/validators/volume/colorbar/_tickformatstopdefaults.py index f98a1f4dd51..b2e9cdeb180 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_tickformatstopdefaults.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_tickformatstopdefaults.py @@ -1,21 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name="tickformatstopdefaults", - parent_name="volume.colorbar", - **kwargs, - ): - super(TickformatstopdefaultsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopdefaultsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='tickformatstopdefaults', + parent_name='volume.colorbar', + **kwargs): + super(TickformatstopdefaultsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_tickformatstops.py b/packages/python/plotly/plotly/validators/volume/colorbar/_tickformatstops.py index b3dfeef23ab..b337468302d 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_tickformatstops.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_tickformatstops.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name="tickformatstops", parent_name="volume.colorbar", **kwargs - ): - super(TickformatstopsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), - data_docs=kwargs.pop( - "data_docs", - """ - dtickrange - range [*min*, *max*], where "min", "max" - - dtick values which describe some zoom level, it - is possible to omit "min" or "max" value by - passing "null" - enabled - Determines whether or not this stop is used. If - `false`, this stop is ignored even within its - `dtickrange`. - name - When used in a template, named items are - created in the output figure in addition to any - items the figure already has in this array. You - can modify these items in the output figure by - making your own item with `templateitemname` - matching this `name` alongside your - modifications (including `visible: false` or - `enabled: false` to hide it). Has no effect - outside of a template. - templateitemname - Used to refer to a named item in this array in - the template. Named items from the template - will be created even without a matching item in - the input figure, but you can modify one by - making an item with `templateitemname` matching - its `name`, alongside your modifications - (including `visible: false` or `enabled: false` - to hide it). If there is no template or no - matching item, this item will be hidden unless - you explicitly show it with `visible: true`. - value - string - dtickformat for described zoom level, - the same as "tickformat" -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickformatstopsValidator(_bv.CompoundArrayValidator): + def __init__(self, plotly_name='tickformatstops', + parent_name='volume.colorbar', + **kwargs): + super(TickformatstopsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_ticklabeloverflow.py b/packages/python/plotly/plotly/validators/volume/colorbar/_ticklabeloverflow.py index f1b8e4f2e14..53274af4615 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_ticklabeloverflow.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_ticklabeloverflow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticklabeloverflow", parent_name="volume.colorbar", **kwargs - ): - super(TicklabeloverflowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabeloverflowValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabeloverflow', + parent_name='volume.colorbar', + **kwargs): + super(TicklabeloverflowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['allow', 'hide past div', 'hide past domain']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_ticklabelposition.py b/packages/python/plotly/plotly/validators/volume/colorbar/_ticklabelposition.py index db52f99ffc6..5e7aeed1f59 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_ticklabelposition.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_ticklabelposition.py @@ -1,28 +1,14 @@ -import _plotly_utils.basevalidators -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="ticklabelposition", parent_name="volume.colorbar", **kwargs - ): - super(TicklabelpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "outside", - "inside", - "outside top", - "inside top", - "outside left", - "inside left", - "outside right", - "inside right", - "outside bottom", - "inside bottom", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicklabelpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticklabelposition', + parent_name='volume.colorbar', + **kwargs): + super(TicklabelpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['outside', 'inside', 'outside top', 'inside top', 'outside left', 'inside left', 'outside right', 'inside right', 'outside bottom', 'inside bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_ticklabelstep.py b/packages/python/plotly/plotly/validators/volume/colorbar/_ticklabelstep.py index e058309c5b2..7eec25fc36b 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_ticklabelstep.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_ticklabelstep.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="ticklabelstep", parent_name="volume.colorbar", **kwargs - ): - super(TicklabelstepValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklabelstepValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='ticklabelstep', + parent_name='volume.colorbar', + **kwargs): + super(TicklabelstepValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_ticklen.py b/packages/python/plotly/plotly/validators/volume/colorbar/_ticklen.py index 7680d6e8f01..0b88ab491aa 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_ticklen.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_ticklen.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="ticklen", parent_name="volume.colorbar", **kwargs): - super(TicklenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicklenValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ticklen', + parent_name='volume.colorbar', + **kwargs): + super(TicklenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_tickmode.py b/packages/python/plotly/plotly/validators/volume/colorbar/_tickmode.py index 96ed1699850..51206d656eb 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_tickmode.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_tickmode.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="tickmode", parent_name="volume.colorbar", **kwargs): - super(TickmodeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - implied_edits=kwargs.pop("implied_edits", {}), - values=kwargs.pop("values", ["auto", "linear", "array"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickmodeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='tickmode', + parent_name='volume.colorbar', + **kwargs): + super(TickmodeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + implied_edits=kwargs.pop('implied_edits', {}), + values=kwargs.pop('values', ['auto', 'linear', 'array']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_tickprefix.py b/packages/python/plotly/plotly/validators/volume/colorbar/_tickprefix.py index 2911fda0c7e..dd8a82b484f 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_tickprefix.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_tickprefix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="tickprefix", parent_name="volume.colorbar", **kwargs - ): - super(TickprefixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickprefixValidator(_bv.StringValidator): + def __init__(self, plotly_name='tickprefix', + parent_name='volume.colorbar', + **kwargs): + super(TickprefixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_ticks.py b/packages/python/plotly/plotly/validators/volume/colorbar/_ticks.py index 486767020e8..f996956212b 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_ticks.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_ticks.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="ticks", parent_name="volume.colorbar", **kwargs): - super(TicksValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["outside", "inside", ""]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='ticks', + parent_name='volume.colorbar', + **kwargs): + super(TicksValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['outside', 'inside', '']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_ticksuffix.py b/packages/python/plotly/plotly/validators/volume/colorbar/_ticksuffix.py index 70f5c9913ef..12101ffd4ee 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_ticksuffix.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_ticksuffix.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="ticksuffix", parent_name="volume.colorbar", **kwargs - ): - super(TicksuffixValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicksuffixValidator(_bv.StringValidator): + def __init__(self, plotly_name='ticksuffix', + parent_name='volume.colorbar', + **kwargs): + super(TicksuffixValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_ticktext.py b/packages/python/plotly/plotly/validators/volume/colorbar/_ticktext.py index 5916b6d86ba..f4db947d29f 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_ticktext.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_ticktext.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ticktext", parent_name="volume.colorbar", **kwargs): - super(TicktextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TicktextValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ticktext', + parent_name='volume.colorbar', + **kwargs): + super(TicktextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_ticktextsrc.py b/packages/python/plotly/plotly/validators/volume/colorbar/_ticktextsrc.py index 0705e477f36..3987d5d3ecf 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_ticktextsrc.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_ticktextsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="ticktextsrc", parent_name="volume.colorbar", **kwargs - ): - super(TicktextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TicktextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ticktextsrc', + parent_name='volume.colorbar', + **kwargs): + super(TicktextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_tickvals.py b/packages/python/plotly/plotly/validators/volume/colorbar/_tickvals.py index 56999179b8c..e7ebdbe8920 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_tickvals.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_tickvals.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="tickvals", parent_name="volume.colorbar", **kwargs): - super(TickvalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TickvalsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='tickvals', + parent_name='volume.colorbar', + **kwargs): + super(TickvalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_tickvalssrc.py b/packages/python/plotly/plotly/validators/volume/colorbar/_tickvalssrc.py index c09d9e02b28..e895757ab45 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_tickvalssrc.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_tickvalssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="tickvalssrc", parent_name="volume.colorbar", **kwargs - ): - super(TickvalssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickvalssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='tickvalssrc', + parent_name='volume.colorbar', + **kwargs): + super(TickvalssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_tickwidth.py b/packages/python/plotly/plotly/validators/volume/colorbar/_tickwidth.py index 0a4242444ce..6760b5bbf35 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_tickwidth.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_tickwidth.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="tickwidth", parent_name="volume.colorbar", **kwargs - ): - super(TickwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TickwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='tickwidth', + parent_name='volume.colorbar', + **kwargs): + super(TickwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_title.py b/packages/python/plotly/plotly/validators/volume/colorbar/_title.py index f53559f69d7..1b9957740eb 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_title.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_title.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__(self, plotly_name="title", parent_name="volume.colorbar", **kwargs): - super(TitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Title"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this color bar's title font. - side - Determines the location of color bar's title - with respect to the color bar. Defaults to - "top" when `orientation` if "v" and defaults - to "right" when `orientation` if "h". - text - Sets the title of the color bar. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TitleValidator(_bv.TitleValidator): + def __init__(self, plotly_name='title', + parent_name='volume.colorbar', + **kwargs): + super(TitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Title'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_x.py b/packages/python/plotly/plotly/validators/volume/colorbar/_x.py index 170aed8cafa..0e64511ebaf 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_x.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x", parent_name="volume.colorbar", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='volume.colorbar', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_xanchor.py b/packages/python/plotly/plotly/validators/volume/colorbar/_xanchor.py index 5171595d226..7009a190b95 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_xanchor.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_xanchor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xanchor", parent_name="volume.colorbar", **kwargs): - super(XanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["left", "center", "right"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xanchor', + parent_name='volume.colorbar', + **kwargs): + super(XanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['left', 'center', 'right']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_xpad.py b/packages/python/plotly/plotly/validators/volume/colorbar/_xpad.py index 3cfdcfa8d26..51b3ab7fa4a 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_xpad.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_xpad.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="xpad", parent_name="volume.colorbar", **kwargs): - super(XpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='xpad', + parent_name='volume.colorbar', + **kwargs): + super(XpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_xref.py b/packages/python/plotly/plotly/validators/volume/colorbar/_xref.py index 17bf3f82aa6..6fb1e35f01c 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_xref.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_xref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="xref", parent_name="volume.colorbar", **kwargs): - super(XrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xref', + parent_name='volume.colorbar', + **kwargs): + super(XrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_y.py b/packages/python/plotly/plotly/validators/volume/colorbar/_y.py index a2f5901265d..f1f4b0fa2de 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_y.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y", parent_name="volume.colorbar", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='volume.colorbar', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_yanchor.py b/packages/python/plotly/plotly/validators/volume/colorbar/_yanchor.py index 37741105458..4f667ba830a 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_yanchor.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_yanchor.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yanchor", parent_name="volume.colorbar", **kwargs): - super(YanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["top", "middle", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yanchor', + parent_name='volume.colorbar', + **kwargs): + super(YanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['top', 'middle', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_ypad.py b/packages/python/plotly/plotly/validators/volume/colorbar/_ypad.py index 919ae21ce4f..469c18b4e17 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_ypad.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_ypad.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="ypad", parent_name="volume.colorbar", **kwargs): - super(YpadValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YpadValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ypad', + parent_name='volume.colorbar', + **kwargs): + super(YpadValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/_yref.py b/packages/python/plotly/plotly/validators/volume/colorbar/_yref.py index 15276d97ac1..a282ae7d570 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/_yref.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/_yref.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="yref", parent_name="volume.colorbar", **kwargs): - super(YrefValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["container", "paper"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YrefValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yref', + parent_name='volume.colorbar', + **kwargs): + super(YrefValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['container', 'paper']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_color.py b/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_color.py index ae47f791777..1212d78b324 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_color.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="volume.colorbar.tickfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='volume.colorbar.tickfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_family.py b/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_family.py index 3284e76d2f7..522be359ec4 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_family.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="volume.colorbar.tickfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='volume.colorbar.tickfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_lineposition.py b/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_lineposition.py index dd2c847c4a4..d875afb6a97 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="volume.colorbar.tickfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='volume.colorbar.tickfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_shadow.py b/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_shadow.py index 267a9e591b3..1c9050dc023 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="volume.colorbar.tickfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='volume.colorbar.tickfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_size.py b/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_size.py index 743f7b5c2a0..60b4749e1ab 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_size.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="volume.colorbar.tickfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='volume.colorbar.tickfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_style.py b/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_style.py index fcb73b3f588..168f3ebdf5c 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_style.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="volume.colorbar.tickfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='volume.colorbar.tickfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_textcase.py b/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_textcase.py index b0397b4541f..8fbf43fa7ec 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="volume.colorbar.tickfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='volume.colorbar.tickfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_variant.py b/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_variant.py index 4d1705732e5..d43fa161373 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_variant.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="volume.colorbar.tickfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='volume.colorbar.tickfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_weight.py b/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_weight.py index 50e15d0c69b..ed1136ed1f8 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_weight.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="volume.colorbar.tickfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='volume.colorbar.tickfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/volume/colorbar/tickformatstop/__init__.py index 559090a1dec..1070f65975a 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/tickformatstop/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._value import ValueValidator from ._templateitemname import TemplateitemnameValidator @@ -9,15 +8,10 @@ from ._dtickrange import DtickrangeValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._value.ValueValidator", - "._templateitemname.TemplateitemnameValidator", - "._name.NameValidator", - "._enabled.EnabledValidator", - "._dtickrange.DtickrangeValidator", - ], + ['._value.ValueValidator', '._templateitemname.TemplateitemnameValidator', '._name.NameValidator', '._enabled.EnabledValidator', '._dtickrange.DtickrangeValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/tickformatstop/_dtickrange.py b/packages/python/plotly/plotly/validators/volume/colorbar/tickformatstop/_dtickrange.py index 2292d75b7c7..b7da9a77981 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/tickformatstop/_dtickrange.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/tickformatstop/_dtickrange.py @@ -1,23 +1,14 @@ -import _plotly_utils.basevalidators -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name="dtickrange", - parent_name="volume.colorbar.tickformatstop", - **kwargs, - ): - super(DtickrangeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - items=kwargs.pop( - "items", - [ - {"editType": "calc", "valType": "any"}, - {"editType": "calc", "valType": "any"}, - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DtickrangeValidator(_bv.InfoArrayValidator): + def __init__(self, plotly_name='dtickrange', + parent_name='volume.colorbar.tickformatstop', + **kwargs): + super(DtickrangeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + items=kwargs.pop('items', [{'editType': 'calc', 'valType': 'any'}, {'editType': 'calc', 'valType': 'any'}]), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/tickformatstop/_enabled.py b/packages/python/plotly/plotly/validators/volume/colorbar/tickformatstop/_enabled.py index 0562c837fa9..61b7f24c35d 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/tickformatstop/_enabled.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name="enabled", - parent_name="volume.colorbar.tickformatstop", - **kwargs, - ): - super(EnabledValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class EnabledValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='enabled', + parent_name='volume.colorbar.tickformatstop', + **kwargs): + super(EnabledValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/tickformatstop/_name.py b/packages/python/plotly/plotly/validators/volume/colorbar/tickformatstop/_name.py index b9ca37ebeaf..919bbfe4e62 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/tickformatstop/_name.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/tickformatstop/_name.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="name", parent_name="volume.colorbar.tickformatstop", **kwargs - ): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='volume.colorbar.tickformatstop', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/tickformatstop/_templateitemname.py b/packages/python/plotly/plotly/validators/volume/colorbar/tickformatstop/_templateitemname.py index b92cda04bef..6d7ac512806 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/tickformatstop/_templateitemname.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="templateitemname", - parent_name="volume.colorbar.tickformatstop", - **kwargs, - ): - super(TemplateitemnameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TemplateitemnameValidator(_bv.StringValidator): + def __init__(self, plotly_name='templateitemname', + parent_name='volume.colorbar.tickformatstop', + **kwargs): + super(TemplateitemnameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/tickformatstop/_value.py b/packages/python/plotly/plotly/validators/volume/colorbar/tickformatstop/_value.py index 961347a67ba..728fd0adbb2 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/tickformatstop/_value.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/tickformatstop/_value.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="value", - parent_name="volume.colorbar.tickformatstop", - **kwargs, - ): - super(ValueValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ValueValidator(_bv.StringValidator): + def __init__(self, plotly_name='value', + parent_name='volume.colorbar.tickformatstop', + **kwargs): + super(ValueValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/volume/colorbar/title/__init__.py index 1aae6a91aa5..774839fa5ff 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/title/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._side import SideValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], + ['._text.TextValidator', '._side.SideValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/title/_font.py b/packages/python/plotly/plotly/validators/volume/colorbar/title/_font.py index 106ec7fa5e2..0cfe763ab32 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/title/_font.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/title/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="volume.colorbar.title", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='volume.colorbar.title', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/title/_side.py b/packages/python/plotly/plotly/validators/volume/colorbar/title/_side.py index 51c9230da5b..9020ed5de74 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/title/_side.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/title/_side.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="side", parent_name="volume.colorbar.title", **kwargs - ): - super(SideValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["right", "top", "bottom"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SideValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='side', + parent_name='volume.colorbar.title', + **kwargs): + super(SideValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['right', 'top', 'bottom']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/title/_text.py b/packages/python/plotly/plotly/validators/volume/colorbar/title/_text.py index 12c9d396631..6e4b048d6bd 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/title/_text.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/title/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="volume.colorbar.title", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='volume.colorbar.title', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/volume/colorbar/title/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/title/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_color.py b/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_color.py index 84d2f45c2e9..d04d0eb0ecd 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_color.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="volume.colorbar.title.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='volume.colorbar.title.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_family.py b/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_family.py index 8fc22e68310..0cbb516f564 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_family.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="volume.colorbar.title.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='volume.colorbar.title.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_lineposition.py b/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_lineposition.py index 43a6b1ec8b9..40c34736628 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="volume.colorbar.title.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='volume.colorbar.title.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_shadow.py b/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_shadow.py index d8a75c37682..9fa9c204159 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="volume.colorbar.title.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='volume.colorbar.title.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_size.py b/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_size.py index 95075d66c22..f9db958ca71 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_size.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="volume.colorbar.title.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='volume.colorbar.title.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_style.py b/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_style.py index 21fe72ee45e..eb8c6f2a7dc 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_style.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="volume.colorbar.title.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='volume.colorbar.title.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_textcase.py b/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_textcase.py index c5ca7ce220b..7e35069a40b 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_textcase.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="volume.colorbar.title.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='volume.colorbar.title.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_variant.py b/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_variant.py index 2840848d7cb..a91f1c6d0bc 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_variant.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_variant.py @@ -1,24 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="volume.colorbar.title.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='volume.colorbar.title.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_weight.py b/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_weight.py index 0df0a683646..814bd15f4e7 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_weight.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/title/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="volume.colorbar.title.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='volume.colorbar.title.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/contour/__init__.py b/packages/python/plotly/plotly/validators/volume/contour/__init__.py index 8d51b1d4c02..7d5028f8667 100644 --- a/packages/python/plotly/plotly/validators/volume/contour/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/contour/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._show import ShowValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._width.WidthValidator", "._show.ShowValidator", "._color.ColorValidator"], + ['._width.WidthValidator', '._show.ShowValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/volume/contour/_color.py b/packages/python/plotly/plotly/validators/volume/contour/_color.py index 21dc7dd1719..fe3e8c75077 100644 --- a/packages/python/plotly/plotly/validators/volume/contour/_color.py +++ b/packages/python/plotly/plotly/validators/volume/contour/_color.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="volume.contour", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='volume.contour', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/contour/_show.py b/packages/python/plotly/plotly/validators/volume/contour/_show.py index 2dda1191690..9cf4bddbed1 100644 --- a/packages/python/plotly/plotly/validators/volume/contour/_show.py +++ b/packages/python/plotly/plotly/validators/volume/contour/_show.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="show", parent_name="volume.contour", **kwargs): - super(ShowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='show', + parent_name='volume.contour', + **kwargs): + super(ShowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/contour/_width.py b/packages/python/plotly/plotly/validators/volume/contour/_width.py index 6a9cfb4f636..fa317d79f21 100644 --- a/packages/python/plotly/plotly/validators/volume/contour/_width.py +++ b/packages/python/plotly/plotly/validators/volume/contour/_width.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="volume.contour", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 16), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='volume.contour', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 16), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/_align.py index 699a124b262..e12508914c1 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/_align.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="align", parent_name="volume.hoverlabel", **kwargs): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='volume.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/_alignsrc.py index fa1623625d4..c7727e4a9b7 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="volume.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='volume.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/_bgcolor.py index ef638e52f2e..1c49d7eeb04 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="volume.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='volume.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/_bgcolorsrc.py index fb9d54199d6..bcd6645e651 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="volume.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='volume.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/_bordercolor.py index 413395a0718..0a47701d1fe 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="volume.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='volume.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/_bordercolorsrc.py index 11739e7f874..1521293dca4 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bordercolorsrc", parent_name="volume.hoverlabel", **kwargs - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='volume.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/_font.py index 99a69986ac7..a4a86e27797 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/_font.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="font", parent_name="volume.hoverlabel", **kwargs): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='volume.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/_namelength.py index 183c888e0ce..0d2aa4bc064 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="volume.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='volume.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/_namelengthsrc.py index 14c94db660a..9df3c5fd039 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="volume.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='volume.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_color.py index 82c7199d64b..ed614804792 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="volume.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='volume.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_colorsrc.py index 83ac6c8ff4f..95beb7e893c 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="volume.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='volume.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_family.py index 17313326942..9f7d2fa03ac 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="volume.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='volume.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_familysrc.py index b517bb538ae..def93e2e656 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="volume.hoverlabel.font", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='volume.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_lineposition.py index 8356669e4f6..65fd31d41aa 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="volume.hoverlabel.font", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='volume.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_linepositionsrc.py index 43683aae5eb..7a015a58bde 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="volume.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='volume.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_shadow.py index ad268f99da6..b93b4308b47 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="volume.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='volume.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_shadowsrc.py index e632b270764..92a60ba2351 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="volume.hoverlabel.font", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='volume.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_size.py index dcfaa0ad17e..3601ac694b2 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="volume.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='volume.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_sizesrc.py index 8769f6f1b55..69137c0e0a6 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="volume.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='volume.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_style.py index 7b7f68e73e5..cef6f8dfb38 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="volume.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='volume.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_stylesrc.py index 5460a89281e..4857aee3020 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="volume.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='volume.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_textcase.py index 0bbf27ebe55..cd561fa6c24 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="volume.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='volume.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_textcasesrc.py index 68d48a0422a..5d2317c2caf 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="volume.hoverlabel.font", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='volume.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_variant.py index fc29be909f5..ec3f82e47a7 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="volume.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='volume.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_variantsrc.py index b351b218009..76f80fb1198 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="volume.hoverlabel.font", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='volume.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_weight.py index fdb1f9d5cb5..ee7c3f0a2bd 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="volume.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='volume.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_weightsrc.py index 4fe8d5561b3..de9e7bd7324 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="volume.hoverlabel.font", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='volume.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/volume/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/volume/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/volume/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/volume/legendgrouptitle/_font.py index de8ce1802a1..8d69fa2c73d 100644 --- a/packages/python/plotly/plotly/validators/volume/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/volume/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="volume.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='volume.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/volume/legendgrouptitle/_text.py index e5114d2784c..0592c40dc40 100644 --- a/packages/python/plotly/plotly/validators/volume/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/volume/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="volume.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='volume.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_color.py index 0f5cb4269c9..02eec643903 100644 --- a/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="volume.legendgrouptitle.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='volume.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_family.py index 08a12025215..e2e5cd5983f 100644 --- a/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_family.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="volume.legendgrouptitle.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='volume.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_lineposition.py index 27d5f154aa6..b60d70413c7 100644 --- a/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="volume.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='volume.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_shadow.py index b9bd1a45b20..3264db62dca 100644 --- a/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_shadow.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="volume.legendgrouptitle.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='volume.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_size.py index a4dc323b092..ad73acc5884 100644 --- a/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_size.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="volume.legendgrouptitle.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='volume.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_style.py index 94199d7ba0a..a0ad8a17f83 100644 --- a/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_style.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="volume.legendgrouptitle.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='volume.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_textcase.py index 6ee77668a67..a7f602c4deb 100644 --- a/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="volume.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='volume.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_variant.py index 82c74c104d8..986cba36024 100644 --- a/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="volume.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='volume.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_weight.py index fc7fc3e2d03..8348f4104cf 100644 --- a/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/volume/legendgrouptitle/font/_weight.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="volume.legendgrouptitle.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='volume.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/lighting/__init__.py b/packages/python/plotly/plotly/validators/volume/lighting/__init__.py index 028351f35d6..f9c262cc056 100644 --- a/packages/python/plotly/plotly/validators/volume/lighting/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/lighting/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._vertexnormalsepsilon import VertexnormalsepsilonValidator from ._specular import SpecularValidator @@ -11,17 +10,10 @@ from ._ambient import AmbientValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._vertexnormalsepsilon.VertexnormalsepsilonValidator", - "._specular.SpecularValidator", - "._roughness.RoughnessValidator", - "._fresnel.FresnelValidator", - "._facenormalsepsilon.FacenormalsepsilonValidator", - "._diffuse.DiffuseValidator", - "._ambient.AmbientValidator", - ], + ['._vertexnormalsepsilon.VertexnormalsepsilonValidator', '._specular.SpecularValidator', '._roughness.RoughnessValidator', '._fresnel.FresnelValidator', '._facenormalsepsilon.FacenormalsepsilonValidator', '._diffuse.DiffuseValidator', '._ambient.AmbientValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/volume/lighting/_ambient.py b/packages/python/plotly/plotly/validators/volume/lighting/_ambient.py index d1880fe9d52..281ee3c6245 100644 --- a/packages/python/plotly/plotly/validators/volume/lighting/_ambient.py +++ b/packages/python/plotly/plotly/validators/volume/lighting/_ambient.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class AmbientValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="ambient", parent_name="volume.lighting", **kwargs): - super(AmbientValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AmbientValidator(_bv.NumberValidator): + def __init__(self, plotly_name='ambient', + parent_name='volume.lighting', + **kwargs): + super(AmbientValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/lighting/_diffuse.py b/packages/python/plotly/plotly/validators/volume/lighting/_diffuse.py index f28d2251cb0..0999f8f2432 100644 --- a/packages/python/plotly/plotly/validators/volume/lighting/_diffuse.py +++ b/packages/python/plotly/plotly/validators/volume/lighting/_diffuse.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class DiffuseValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="diffuse", parent_name="volume.lighting", **kwargs): - super(DiffuseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class DiffuseValidator(_bv.NumberValidator): + def __init__(self, plotly_name='diffuse', + parent_name='volume.lighting', + **kwargs): + super(DiffuseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/lighting/_facenormalsepsilon.py b/packages/python/plotly/plotly/validators/volume/lighting/_facenormalsepsilon.py index 7ebedd24280..bdb34bf067d 100644 --- a/packages/python/plotly/plotly/validators/volume/lighting/_facenormalsepsilon.py +++ b/packages/python/plotly/plotly/validators/volume/lighting/_facenormalsepsilon.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class FacenormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="facenormalsepsilon", parent_name="volume.lighting", **kwargs - ): - super(FacenormalsepsilonValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FacenormalsepsilonValidator(_bv.NumberValidator): + def __init__(self, plotly_name='facenormalsepsilon', + parent_name='volume.lighting', + **kwargs): + super(FacenormalsepsilonValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/lighting/_fresnel.py b/packages/python/plotly/plotly/validators/volume/lighting/_fresnel.py index 1afd1283974..3f534f79bc4 100644 --- a/packages/python/plotly/plotly/validators/volume/lighting/_fresnel.py +++ b/packages/python/plotly/plotly/validators/volume/lighting/_fresnel.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class FresnelValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="fresnel", parent_name="volume.lighting", **kwargs): - super(FresnelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 5), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FresnelValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fresnel', + parent_name='volume.lighting', + **kwargs): + super(FresnelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 5), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/lighting/_roughness.py b/packages/python/plotly/plotly/validators/volume/lighting/_roughness.py index de256c18588..fdd9a96290f 100644 --- a/packages/python/plotly/plotly/validators/volume/lighting/_roughness.py +++ b/packages/python/plotly/plotly/validators/volume/lighting/_roughness.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class RoughnessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="roughness", parent_name="volume.lighting", **kwargs - ): - super(RoughnessValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class RoughnessValidator(_bv.NumberValidator): + def __init__(self, plotly_name='roughness', + parent_name='volume.lighting', + **kwargs): + super(RoughnessValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/lighting/_specular.py b/packages/python/plotly/plotly/validators/volume/lighting/_specular.py index 7581692c0a5..ccc3b858aa3 100644 --- a/packages/python/plotly/plotly/validators/volume/lighting/_specular.py +++ b/packages/python/plotly/plotly/validators/volume/lighting/_specular.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SpecularValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="specular", parent_name="volume.lighting", **kwargs): - super(SpecularValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 2), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SpecularValidator(_bv.NumberValidator): + def __init__(self, plotly_name='specular', + parent_name='volume.lighting', + **kwargs): + super(SpecularValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 2), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/lighting/_vertexnormalsepsilon.py b/packages/python/plotly/plotly/validators/volume/lighting/_vertexnormalsepsilon.py index 45254909fc3..588c3da10e4 100644 --- a/packages/python/plotly/plotly/validators/volume/lighting/_vertexnormalsepsilon.py +++ b/packages/python/plotly/plotly/validators/volume/lighting/_vertexnormalsepsilon.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class VertexnormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="vertexnormalsepsilon", - parent_name="volume.lighting", - **kwargs, - ): - super(VertexnormalsepsilonValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VertexnormalsepsilonValidator(_bv.NumberValidator): + def __init__(self, plotly_name='vertexnormalsepsilon', + parent_name='volume.lighting', + **kwargs): + super(VertexnormalsepsilonValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/lightposition/__init__.py b/packages/python/plotly/plotly/validators/volume/lightposition/__init__.py index 52779f59bc4..21cfa26dac1 100644 --- a/packages/python/plotly/plotly/validators/volume/lightposition/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/lightposition/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._z import ZValidator from ._y import YValidator from ._x import XValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] + __name__, + [], + ['._z.ZValidator', '._y.YValidator', '._x.XValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/volume/lightposition/_x.py b/packages/python/plotly/plotly/validators/volume/lightposition/_x.py index 15c8ed7b4d9..109e0d43a07 100644 --- a/packages/python/plotly/plotly/validators/volume/lightposition/_x.py +++ b/packages/python/plotly/plotly/validators/volume/lightposition/_x.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="x", parent_name="volume.lightposition", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 100000), - min=kwargs.pop("min", -100000), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.NumberValidator): + def __init__(self, plotly_name='x', + parent_name='volume.lightposition', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 100000), + min=kwargs.pop('min', -100000), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/lightposition/_y.py b/packages/python/plotly/plotly/validators/volume/lightposition/_y.py index e392d07200e..8d73d0980aa 100644 --- a/packages/python/plotly/plotly/validators/volume/lightposition/_y.py +++ b/packages/python/plotly/plotly/validators/volume/lightposition/_y.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="y", parent_name="volume.lightposition", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 100000), - min=kwargs.pop("min", -100000), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.NumberValidator): + def __init__(self, plotly_name='y', + parent_name='volume.lightposition', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 100000), + min=kwargs.pop('min', -100000), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/lightposition/_z.py b/packages/python/plotly/plotly/validators/volume/lightposition/_z.py index bddb66ccdc5..ca87ad2d113 100644 --- a/packages/python/plotly/plotly/validators/volume/lightposition/_z.py +++ b/packages/python/plotly/plotly/validators/volume/lightposition/_z.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class ZValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="z", parent_name="volume.lightposition", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 100000), - min=kwargs.pop("min", -100000), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.NumberValidator): + def __init__(self, plotly_name='z', + parent_name='volume.lightposition', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 100000), + min=kwargs.pop('min', -100000), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/slices/__init__.py b/packages/python/plotly/plotly/validators/volume/slices/__init__.py index 52779f59bc4..21cfa26dac1 100644 --- a/packages/python/plotly/plotly/validators/volume/slices/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/slices/__init__.py @@ -1,13 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._z import ZValidator from ._y import YValidator from ._x import XValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] + __name__, + [], + ['._z.ZValidator', '._y.YValidator', '._x.XValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/volume/slices/_x.py b/packages/python/plotly/plotly/validators/volume/slices/_x.py index 5f0fb5c1aa0..27b262a3305 100644 --- a/packages/python/plotly/plotly/validators/volume/slices/_x.py +++ b/packages/python/plotly/plotly/validators/volume/slices/_x.py @@ -1,34 +1,15 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="x", parent_name="volume.slices", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "X"), - data_docs=kwargs.pop( - "data_docs", - """ - fill - Sets the fill ratio of the `slices`. The - default fill value of the `slices` is 1 meaning - that they are entirely shaded. On the other - hand Applying a `fill` ratio less than one - would allow the creation of openings parallel - to the edges. - locations - Specifies the location(s) of slices on the - axis. When not specified slices would be - created for all points of the axis x except - start and end. - locationssrc - Sets the source reference on Chart Studio Cloud - for `locations`. - show - Determines whether or not slice planes about - the x dimension are drawn. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='x', + parent_name='volume.slices', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'X'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/slices/_y.py b/packages/python/plotly/plotly/validators/volume/slices/_y.py index a209974de22..c92f72562f7 100644 --- a/packages/python/plotly/plotly/validators/volume/slices/_y.py +++ b/packages/python/plotly/plotly/validators/volume/slices/_y.py @@ -1,34 +1,15 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="y", parent_name="volume.slices", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Y"), - data_docs=kwargs.pop( - "data_docs", - """ - fill - Sets the fill ratio of the `slices`. The - default fill value of the `slices` is 1 meaning - that they are entirely shaded. On the other - hand Applying a `fill` ratio less than one - would allow the creation of openings parallel - to the edges. - locations - Specifies the location(s) of slices on the - axis. When not specified slices would be - created for all points of the axis y except - start and end. - locationssrc - Sets the source reference on Chart Studio Cloud - for `locations`. - show - Determines whether or not slice planes about - the y dimension are drawn. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='y', + parent_name='volume.slices', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Y'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/slices/_z.py b/packages/python/plotly/plotly/validators/volume/slices/_z.py index 1af2c745b81..803a2a73c44 100644 --- a/packages/python/plotly/plotly/validators/volume/slices/_z.py +++ b/packages/python/plotly/plotly/validators/volume/slices/_z.py @@ -1,34 +1,15 @@ -import _plotly_utils.basevalidators -class ZValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="z", parent_name="volume.slices", **kwargs): - super(ZValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Z"), - data_docs=kwargs.pop( - "data_docs", - """ - fill - Sets the fill ratio of the `slices`. The - default fill value of the `slices` is 1 meaning - that they are entirely shaded. On the other - hand Applying a `fill` ratio less than one - would allow the creation of openings parallel - to the edges. - locations - Specifies the location(s) of slices on the - axis. When not specified slices would be - created for all points of the axis z except - start and end. - locationssrc - Sets the source reference on Chart Studio Cloud - for `locations`. - show - Determines whether or not slice planes about - the z dimension are drawn. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='z', + parent_name='volume.slices', + **kwargs): + super(ZValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Z'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/slices/x/__init__.py b/packages/python/plotly/plotly/validators/volume/slices/x/__init__.py index 9085068ffff..57d5d4f8235 100644 --- a/packages/python/plotly/plotly/validators/volume/slices/x/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/slices/x/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._show import ShowValidator from ._locationssrc import LocationssrcValidator @@ -8,14 +7,10 @@ from ._fill import FillValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._show.ShowValidator", - "._locationssrc.LocationssrcValidator", - "._locations.LocationsValidator", - "._fill.FillValidator", - ], + ['._show.ShowValidator', '._locationssrc.LocationssrcValidator', '._locations.LocationsValidator', '._fill.FillValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/volume/slices/x/_fill.py b/packages/python/plotly/plotly/validators/volume/slices/x/_fill.py index 6bd4ea8cdb6..37582427fb4 100644 --- a/packages/python/plotly/plotly/validators/volume/slices/x/_fill.py +++ b/packages/python/plotly/plotly/validators/volume/slices/x/_fill.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class FillValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="fill", parent_name="volume.slices.x", **kwargs): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fill', + parent_name='volume.slices.x', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/slices/x/_locations.py b/packages/python/plotly/plotly/validators/volume/slices/x/_locations.py index b3bca099de7..3e6fc5bf028 100644 --- a/packages/python/plotly/plotly/validators/volume/slices/x/_locations.py +++ b/packages/python/plotly/plotly/validators/volume/slices/x/_locations.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="locations", parent_name="volume.slices.x", **kwargs - ): - super(LocationsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LocationsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='locations', + parent_name='volume.slices.x', + **kwargs): + super(LocationsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/slices/x/_locationssrc.py b/packages/python/plotly/plotly/validators/volume/slices/x/_locationssrc.py index 2831e3eb7a8..e06c67bf475 100644 --- a/packages/python/plotly/plotly/validators/volume/slices/x/_locationssrc.py +++ b/packages/python/plotly/plotly/validators/volume/slices/x/_locationssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="locationssrc", parent_name="volume.slices.x", **kwargs - ): - super(LocationssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LocationssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='locationssrc', + parent_name='volume.slices.x', + **kwargs): + super(LocationssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/slices/x/_show.py b/packages/python/plotly/plotly/validators/volume/slices/x/_show.py index e3a03356af5..6daffc2f264 100644 --- a/packages/python/plotly/plotly/validators/volume/slices/x/_show.py +++ b/packages/python/plotly/plotly/validators/volume/slices/x/_show.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="show", parent_name="volume.slices.x", **kwargs): - super(ShowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='show', + parent_name='volume.slices.x', + **kwargs): + super(ShowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/slices/y/__init__.py b/packages/python/plotly/plotly/validators/volume/slices/y/__init__.py index 9085068ffff..57d5d4f8235 100644 --- a/packages/python/plotly/plotly/validators/volume/slices/y/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/slices/y/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._show import ShowValidator from ._locationssrc import LocationssrcValidator @@ -8,14 +7,10 @@ from ._fill import FillValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._show.ShowValidator", - "._locationssrc.LocationssrcValidator", - "._locations.LocationsValidator", - "._fill.FillValidator", - ], + ['._show.ShowValidator', '._locationssrc.LocationssrcValidator', '._locations.LocationsValidator', '._fill.FillValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/volume/slices/y/_fill.py b/packages/python/plotly/plotly/validators/volume/slices/y/_fill.py index eaa0a4f5b61..196f8920fa8 100644 --- a/packages/python/plotly/plotly/validators/volume/slices/y/_fill.py +++ b/packages/python/plotly/plotly/validators/volume/slices/y/_fill.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class FillValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="fill", parent_name="volume.slices.y", **kwargs): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fill', + parent_name='volume.slices.y', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/slices/y/_locations.py b/packages/python/plotly/plotly/validators/volume/slices/y/_locations.py index ec36af5c389..2741156b73b 100644 --- a/packages/python/plotly/plotly/validators/volume/slices/y/_locations.py +++ b/packages/python/plotly/plotly/validators/volume/slices/y/_locations.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="locations", parent_name="volume.slices.y", **kwargs - ): - super(LocationsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LocationsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='locations', + parent_name='volume.slices.y', + **kwargs): + super(LocationsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/slices/y/_locationssrc.py b/packages/python/plotly/plotly/validators/volume/slices/y/_locationssrc.py index 3ddf7ccbb8f..c5676d1e3cd 100644 --- a/packages/python/plotly/plotly/validators/volume/slices/y/_locationssrc.py +++ b/packages/python/plotly/plotly/validators/volume/slices/y/_locationssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="locationssrc", parent_name="volume.slices.y", **kwargs - ): - super(LocationssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LocationssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='locationssrc', + parent_name='volume.slices.y', + **kwargs): + super(LocationssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/slices/y/_show.py b/packages/python/plotly/plotly/validators/volume/slices/y/_show.py index 6314c8d550c..e35bc599dd9 100644 --- a/packages/python/plotly/plotly/validators/volume/slices/y/_show.py +++ b/packages/python/plotly/plotly/validators/volume/slices/y/_show.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="show", parent_name="volume.slices.y", **kwargs): - super(ShowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='show', + parent_name='volume.slices.y', + **kwargs): + super(ShowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/slices/z/__init__.py b/packages/python/plotly/plotly/validators/volume/slices/z/__init__.py index 9085068ffff..57d5d4f8235 100644 --- a/packages/python/plotly/plotly/validators/volume/slices/z/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/slices/z/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._show import ShowValidator from ._locationssrc import LocationssrcValidator @@ -8,14 +7,10 @@ from ._fill import FillValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._show.ShowValidator", - "._locationssrc.LocationssrcValidator", - "._locations.LocationsValidator", - "._fill.FillValidator", - ], + ['._show.ShowValidator', '._locationssrc.LocationssrcValidator', '._locations.LocationsValidator', '._fill.FillValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/volume/slices/z/_fill.py b/packages/python/plotly/plotly/validators/volume/slices/z/_fill.py index 9fb3835d21a..6215c708aee 100644 --- a/packages/python/plotly/plotly/validators/volume/slices/z/_fill.py +++ b/packages/python/plotly/plotly/validators/volume/slices/z/_fill.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class FillValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="fill", parent_name="volume.slices.z", **kwargs): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fill', + parent_name='volume.slices.z', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/slices/z/_locations.py b/packages/python/plotly/plotly/validators/volume/slices/z/_locations.py index 780ce14d405..ab834f8268e 100644 --- a/packages/python/plotly/plotly/validators/volume/slices/z/_locations.py +++ b/packages/python/plotly/plotly/validators/volume/slices/z/_locations.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name="locations", parent_name="volume.slices.z", **kwargs - ): - super(LocationsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LocationsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='locations', + parent_name='volume.slices.z', + **kwargs): + super(LocationsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/slices/z/_locationssrc.py b/packages/python/plotly/plotly/validators/volume/slices/z/_locationssrc.py index cdf1f968c55..49d308b48d4 100644 --- a/packages/python/plotly/plotly/validators/volume/slices/z/_locationssrc.py +++ b/packages/python/plotly/plotly/validators/volume/slices/z/_locationssrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="locationssrc", parent_name="volume.slices.z", **kwargs - ): - super(LocationssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LocationssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='locationssrc', + parent_name='volume.slices.z', + **kwargs): + super(LocationssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/slices/z/_show.py b/packages/python/plotly/plotly/validators/volume/slices/z/_show.py index 351ac46da7b..9e4ab75e5fa 100644 --- a/packages/python/plotly/plotly/validators/volume/slices/z/_show.py +++ b/packages/python/plotly/plotly/validators/volume/slices/z/_show.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="show", parent_name="volume.slices.z", **kwargs): - super(ShowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='show', + parent_name='volume.slices.z', + **kwargs): + super(ShowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/spaceframe/__init__.py b/packages/python/plotly/plotly/validators/volume/spaceframe/__init__.py index 63a14620d21..90a3411589a 100644 --- a/packages/python/plotly/plotly/validators/volume/spaceframe/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/spaceframe/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._show import ShowValidator from ._fill import FillValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._show.ShowValidator", "._fill.FillValidator"] + __name__, + [], + ['._show.ShowValidator', '._fill.FillValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/volume/spaceframe/_fill.py b/packages/python/plotly/plotly/validators/volume/spaceframe/_fill.py index 7a03080d9a7..98b7ab21592 100644 --- a/packages/python/plotly/plotly/validators/volume/spaceframe/_fill.py +++ b/packages/python/plotly/plotly/validators/volume/spaceframe/_fill.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class FillValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="fill", parent_name="volume.spaceframe", **kwargs): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fill', + parent_name='volume.spaceframe', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/spaceframe/_show.py b/packages/python/plotly/plotly/validators/volume/spaceframe/_show.py index b44e6cae8fa..d0dbe8ddd04 100644 --- a/packages/python/plotly/plotly/validators/volume/spaceframe/_show.py +++ b/packages/python/plotly/plotly/validators/volume/spaceframe/_show.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="show", parent_name="volume.spaceframe", **kwargs): - super(ShowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='show', + parent_name='volume.spaceframe', + **kwargs): + super(ShowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/stream/__init__.py b/packages/python/plotly/plotly/validators/volume/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/volume/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/volume/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/volume/stream/_maxpoints.py index 758c0abd91c..f64f0223343 100644 --- a/packages/python/plotly/plotly/validators/volume/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/volume/stream/_maxpoints.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="maxpoints", parent_name="volume.stream", **kwargs): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='volume.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/stream/_token.py b/packages/python/plotly/plotly/validators/volume/stream/_token.py index fdc2a4af220..865c11a0e73 100644 --- a/packages/python/plotly/plotly/validators/volume/stream/_token.py +++ b/packages/python/plotly/plotly/validators/volume/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="volume.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='volume.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/surface/__init__.py b/packages/python/plotly/plotly/validators/volume/surface/__init__.py index 79e3ea4c55c..2e07edbfab8 100644 --- a/packages/python/plotly/plotly/validators/volume/surface/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/surface/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._show import ShowValidator from ._pattern import PatternValidator @@ -8,14 +7,10 @@ from ._count import CountValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._show.ShowValidator", - "._pattern.PatternValidator", - "._fill.FillValidator", - "._count.CountValidator", - ], + ['._show.ShowValidator', '._pattern.PatternValidator', '._fill.FillValidator', '._count.CountValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/volume/surface/_count.py b/packages/python/plotly/plotly/validators/volume/surface/_count.py index 77419b3c878..5179125143a 100644 --- a/packages/python/plotly/plotly/validators/volume/surface/_count.py +++ b/packages/python/plotly/plotly/validators/volume/surface/_count.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class CountValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="count", parent_name="volume.surface", **kwargs): - super(CountValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class CountValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='count', + parent_name='volume.surface', + **kwargs): + super(CountValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/surface/_fill.py b/packages/python/plotly/plotly/validators/volume/surface/_fill.py index 97313e9f471..f7df137e984 100644 --- a/packages/python/plotly/plotly/validators/volume/surface/_fill.py +++ b/packages/python/plotly/plotly/validators/volume/surface/_fill.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class FillValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="fill", parent_name="volume.surface", **kwargs): - super(FillValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FillValidator(_bv.NumberValidator): + def __init__(self, plotly_name='fill', + parent_name='volume.surface', + **kwargs): + super(FillValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/surface/_pattern.py b/packages/python/plotly/plotly/validators/volume/surface/_pattern.py index 689a811f250..71223da26a0 100644 --- a/packages/python/plotly/plotly/validators/volume/surface/_pattern.py +++ b/packages/python/plotly/plotly/validators/volume/surface/_pattern.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class PatternValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="pattern", parent_name="volume.surface", **kwargs): - super(PatternValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["all", "odd", "even"]), - flags=kwargs.pop("flags", ["A", "B", "C", "D", "E"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class PatternValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='pattern', + parent_name='volume.surface', + **kwargs): + super(PatternValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['all', 'odd', 'even']), + flags=kwargs.pop('flags', ['A', 'B', 'C', 'D', 'E']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/volume/surface/_show.py b/packages/python/plotly/plotly/validators/volume/surface/_show.py index 80116262ec1..8ec5a4be9ee 100644 --- a/packages/python/plotly/plotly/validators/volume/surface/_show.py +++ b/packages/python/plotly/plotly/validators/volume/surface/_show.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="show", parent_name="volume.surface", **kwargs): - super(ShowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='show', + parent_name='volume.surface', + **kwargs): + super(ShowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/__init__.py b/packages/python/plotly/plotly/validators/waterfall/__init__.py index 74a33830936..152e8a92466 100644 --- a/packages/python/plotly/plotly/validators/waterfall/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._zorder import ZorderValidator from ._ysrc import YsrcValidator @@ -77,83 +76,10 @@ from ._alignmentgroup import AlignmentgroupValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._zorder.ZorderValidator", - "._ysrc.YsrcValidator", - "._yperiodalignment.YperiodalignmentValidator", - "._yperiod0.Yperiod0Validator", - "._yperiod.YperiodValidator", - "._yhoverformat.YhoverformatValidator", - "._yaxis.YaxisValidator", - "._y0.Y0Validator", - "._y.YValidator", - "._xsrc.XsrcValidator", - "._xperiodalignment.XperiodalignmentValidator", - "._xperiod0.Xperiod0Validator", - "._xperiod.XperiodValidator", - "._xhoverformat.XhoverformatValidator", - "._xaxis.XaxisValidator", - "._x0.X0Validator", - "._x.XValidator", - "._widthsrc.WidthsrcValidator", - "._width.WidthValidator", - "._visible.VisibleValidator", - "._uirevision.UirevisionValidator", - "._uid.UidValidator", - "._totals.TotalsValidator", - "._texttemplatesrc.TexttemplatesrcValidator", - "._texttemplate.TexttemplateValidator", - "._textsrc.TextsrcValidator", - "._textpositionsrc.TextpositionsrcValidator", - "._textposition.TextpositionValidator", - "._textinfo.TextinfoValidator", - "._textfont.TextfontValidator", - "._textangle.TextangleValidator", - "._text.TextValidator", - "._stream.StreamValidator", - "._showlegend.ShowlegendValidator", - "._selectedpoints.SelectedpointsValidator", - "._outsidetextfont.OutsidetextfontValidator", - "._orientation.OrientationValidator", - "._opacity.OpacityValidator", - "._offsetsrc.OffsetsrcValidator", - "._offsetgroup.OffsetgroupValidator", - "._offset.OffsetValidator", - "._name.NameValidator", - "._metasrc.MetasrcValidator", - "._meta.MetaValidator", - "._measuresrc.MeasuresrcValidator", - "._measure.MeasureValidator", - "._legendwidth.LegendwidthValidator", - "._legendrank.LegendrankValidator", - "._legendgrouptitle.LegendgrouptitleValidator", - "._legendgroup.LegendgroupValidator", - "._legend.LegendValidator", - "._insidetextfont.InsidetextfontValidator", - "._insidetextanchor.InsidetextanchorValidator", - "._increasing.IncreasingValidator", - "._idssrc.IdssrcValidator", - "._ids.IdsValidator", - "._hovertextsrc.HovertextsrcValidator", - "._hovertext.HovertextValidator", - "._hovertemplatesrc.HovertemplatesrcValidator", - "._hovertemplate.HovertemplateValidator", - "._hoverlabel.HoverlabelValidator", - "._hoverinfosrc.HoverinfosrcValidator", - "._hoverinfo.HoverinfoValidator", - "._dy.DyValidator", - "._dx.DxValidator", - "._decreasing.DecreasingValidator", - "._customdatasrc.CustomdatasrcValidator", - "._customdata.CustomdataValidator", - "._constraintext.ConstraintextValidator", - "._connector.ConnectorValidator", - "._cliponaxis.CliponaxisValidator", - "._base.BaseValidator", - "._alignmentgroup.AlignmentgroupValidator", - ], + ['._zorder.ZorderValidator', '._ysrc.YsrcValidator', '._yperiodalignment.YperiodalignmentValidator', '._yperiod0.Yperiod0Validator', '._yperiod.YperiodValidator', '._yhoverformat.YhoverformatValidator', '._yaxis.YaxisValidator', '._y0.Y0Validator', '._y.YValidator', '._xsrc.XsrcValidator', '._xperiodalignment.XperiodalignmentValidator', '._xperiod0.Xperiod0Validator', '._xperiod.XperiodValidator', '._xhoverformat.XhoverformatValidator', '._xaxis.XaxisValidator', '._x0.X0Validator', '._x.XValidator', '._widthsrc.WidthsrcValidator', '._width.WidthValidator', '._visible.VisibleValidator', '._uirevision.UirevisionValidator', '._uid.UidValidator', '._totals.TotalsValidator', '._texttemplatesrc.TexttemplatesrcValidator', '._texttemplate.TexttemplateValidator', '._textsrc.TextsrcValidator', '._textpositionsrc.TextpositionsrcValidator', '._textposition.TextpositionValidator', '._textinfo.TextinfoValidator', '._textfont.TextfontValidator', '._textangle.TextangleValidator', '._text.TextValidator', '._stream.StreamValidator', '._showlegend.ShowlegendValidator', '._selectedpoints.SelectedpointsValidator', '._outsidetextfont.OutsidetextfontValidator', '._orientation.OrientationValidator', '._opacity.OpacityValidator', '._offsetsrc.OffsetsrcValidator', '._offsetgroup.OffsetgroupValidator', '._offset.OffsetValidator', '._name.NameValidator', '._metasrc.MetasrcValidator', '._meta.MetaValidator', '._measuresrc.MeasuresrcValidator', '._measure.MeasureValidator', '._legendwidth.LegendwidthValidator', '._legendrank.LegendrankValidator', '._legendgrouptitle.LegendgrouptitleValidator', '._legendgroup.LegendgroupValidator', '._legend.LegendValidator', '._insidetextfont.InsidetextfontValidator', '._insidetextanchor.InsidetextanchorValidator', '._increasing.IncreasingValidator', '._idssrc.IdssrcValidator', '._ids.IdsValidator', '._hovertextsrc.HovertextsrcValidator', '._hovertext.HovertextValidator', '._hovertemplatesrc.HovertemplatesrcValidator', '._hovertemplate.HovertemplateValidator', '._hoverlabel.HoverlabelValidator', '._hoverinfosrc.HoverinfosrcValidator', '._hoverinfo.HoverinfoValidator', '._dy.DyValidator', '._dx.DxValidator', '._decreasing.DecreasingValidator', '._customdatasrc.CustomdatasrcValidator', '._customdata.CustomdataValidator', '._constraintext.ConstraintextValidator', '._connector.ConnectorValidator', '._cliponaxis.CliponaxisValidator', '._base.BaseValidator', '._alignmentgroup.AlignmentgroupValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/waterfall/_alignmentgroup.py b/packages/python/plotly/plotly/validators/waterfall/_alignmentgroup.py index 66b314d995e..753c3a389ea 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_alignmentgroup.py +++ b/packages/python/plotly/plotly/validators/waterfall/_alignmentgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class AlignmentgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="alignmentgroup", parent_name="waterfall", **kwargs): - super(AlignmentgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class AlignmentgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='alignmentgroup', + parent_name='waterfall', + **kwargs): + super(AlignmentgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_base.py b/packages/python/plotly/plotly/validators/waterfall/_base.py index 3b0a6a869df..69ab40debf5 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_base.py +++ b/packages/python/plotly/plotly/validators/waterfall/_base.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class BaseValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="base", parent_name="waterfall", **kwargs): - super(BaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BaseValidator(_bv.NumberValidator): + def __init__(self, plotly_name='base', + parent_name='waterfall', + **kwargs): + super(BaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_cliponaxis.py b/packages/python/plotly/plotly/validators/waterfall/_cliponaxis.py index 0113bfb38a7..ac07d5924e3 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_cliponaxis.py +++ b/packages/python/plotly/plotly/validators/waterfall/_cliponaxis.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CliponaxisValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="cliponaxis", parent_name="waterfall", **kwargs): - super(CliponaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CliponaxisValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='cliponaxis', + parent_name='waterfall', + **kwargs): + super(CliponaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_connector.py b/packages/python/plotly/plotly/validators/waterfall/_connector.py index 3fbedfecdc8..b94a25bec05 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_connector.py +++ b/packages/python/plotly/plotly/validators/waterfall/_connector.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class ConnectorValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="connector", parent_name="waterfall", **kwargs): - super(ConnectorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Connector"), - data_docs=kwargs.pop( - "data_docs", - """ - line - :class:`plotly.graph_objects.waterfall.connecto - r.Line` instance or dict with compatible - properties - mode - Sets the shape of connector lines. - visible - Determines if connector lines are drawn. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ConnectorValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='connector', + parent_name='waterfall', + **kwargs): + super(ConnectorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Connector'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_constraintext.py b/packages/python/plotly/plotly/validators/waterfall/_constraintext.py index 9a652006352..af0b13fb7f1 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_constraintext.py +++ b/packages/python/plotly/plotly/validators/waterfall/_constraintext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ConstraintextValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="constraintext", parent_name="waterfall", **kwargs): - super(ConstraintextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["inside", "outside", "both", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ConstraintextValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='constraintext', + parent_name='waterfall', + **kwargs): + super(ConstraintextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['inside', 'outside', 'both', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_customdata.py b/packages/python/plotly/plotly/validators/waterfall/_customdata.py index 3f2abd54ad0..c00f82dad88 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_customdata.py +++ b/packages/python/plotly/plotly/validators/waterfall/_customdata.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="customdata", parent_name="waterfall", **kwargs): - super(CustomdataValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdataValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='customdata', + parent_name='waterfall', + **kwargs): + super(CustomdataValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_customdatasrc.py b/packages/python/plotly/plotly/validators/waterfall/_customdatasrc.py index c15d17ea627..579157e53f5 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_customdatasrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/_customdatasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="customdatasrc", parent_name="waterfall", **kwargs): - super(CustomdatasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class CustomdatasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='customdatasrc', + parent_name='waterfall', + **kwargs): + super(CustomdatasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_decreasing.py b/packages/python/plotly/plotly/validators/waterfall/_decreasing.py index 3677db8b321..e0a41a885e8 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_decreasing.py +++ b/packages/python/plotly/plotly/validators/waterfall/_decreasing.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class DecreasingValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="decreasing", parent_name="waterfall", **kwargs): - super(DecreasingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Decreasing"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.waterfall.decreasi - ng.Marker` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DecreasingValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='decreasing', + parent_name='waterfall', + **kwargs): + super(DecreasingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Decreasing'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_dx.py b/packages/python/plotly/plotly/validators/waterfall/_dx.py index 333615690cb..f78f2017744 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_dx.py +++ b/packages/python/plotly/plotly/validators/waterfall/_dx.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class DxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="dx", parent_name="waterfall", **kwargs): - super(DxValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DxValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dx', + parent_name='waterfall', + **kwargs): + super(DxValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_dy.py b/packages/python/plotly/plotly/validators/waterfall/_dy.py index 6162d9049dc..fa460a8c3db 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_dy.py +++ b/packages/python/plotly/plotly/validators/waterfall/_dy.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class DyValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="dy", parent_name="waterfall", **kwargs): - super(DyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DyValidator(_bv.NumberValidator): + def __init__(self, plotly_name='dy', + parent_name='waterfall', + **kwargs): + super(DyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_hoverinfo.py b/packages/python/plotly/plotly/validators/waterfall/_hoverinfo.py index 525eefcf4b3..f04337ccc02 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_hoverinfo.py +++ b/packages/python/plotly/plotly/validators/waterfall/_hoverinfo.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="hoverinfo", parent_name="waterfall", **kwargs): - super(HoverinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["all", "none", "skip"]), - flags=kwargs.pop( - "flags", ["name", "x", "y", "text", "initial", "delta", "final"] - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='hoverinfo', + parent_name='waterfall', + **kwargs): + super(HoverinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['all', 'none', 'skip']), + flags=kwargs.pop('flags', ['name', 'x', 'y', 'text', 'initial', 'delta', 'final']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_hoverinfosrc.py b/packages/python/plotly/plotly/validators/waterfall/_hoverinfosrc.py index e2a6baf14a7..20336ea7bfc 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_hoverinfosrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/_hoverinfosrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hoverinfosrc", parent_name="waterfall", **kwargs): - super(HoverinfosrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverinfosrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hoverinfosrc', + parent_name='waterfall', + **kwargs): + super(HoverinfosrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_hoverlabel.py b/packages/python/plotly/plotly/validators/waterfall/_hoverlabel.py index 1782fbbe597..614adee78cc 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_hoverlabel.py +++ b/packages/python/plotly/plotly/validators/waterfall/_hoverlabel.py @@ -1,51 +1,15 @@ -import _plotly_utils.basevalidators -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="hoverlabel", parent_name="waterfall", **kwargs): - super(HoverlabelValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), - data_docs=kwargs.pop( - "data_docs", - """ - align - Sets the horizontal alignment of the text - content within hover label box. Has an effect - only if the hover label text spans more two or - more lines - alignsrc - Sets the source reference on Chart Studio Cloud - for `align`. - bgcolor - Sets the background color of the hover labels - for this trace - bgcolorsrc - Sets the source reference on Chart Studio Cloud - for `bgcolor`. - bordercolor - Sets the border color of the hover labels for - this trace. - bordercolorsrc - Sets the source reference on Chart Studio Cloud - for `bordercolor`. - font - Sets the font used in hover labels. - namelength - Sets the default length (in number of - characters) of the trace name in the hover - labels for all traces. -1 shows the whole name - regardless of length. 0-3 shows the first 0-3 - characters, and an integer >3 will show the - whole name if it is less than that many - characters, but if it is longer, will truncate - to `namelength - 3` characters and add an - ellipsis. - namelengthsrc - Sets the source reference on Chart Studio Cloud - for `namelength`. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HoverlabelValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='hoverlabel', + parent_name='waterfall', + **kwargs): + super(HoverlabelValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_hovertemplate.py b/packages/python/plotly/plotly/validators/waterfall/_hovertemplate.py index bd1897144b8..bb01c34494f 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_hovertemplate.py +++ b/packages/python/plotly/plotly/validators/waterfall/_hovertemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertemplate", parent_name="waterfall", **kwargs): - super(HovertemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertemplate', + parent_name='waterfall', + **kwargs): + super(HovertemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_hovertemplatesrc.py b/packages/python/plotly/plotly/validators/waterfall/_hovertemplatesrc.py index 6db575e04c2..f008f3c84c8 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_hovertemplatesrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/_hovertemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="hovertemplatesrc", parent_name="waterfall", **kwargs - ): - super(HovertemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertemplatesrc', + parent_name='waterfall', + **kwargs): + super(HovertemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_hovertext.py b/packages/python/plotly/plotly/validators/waterfall/_hovertext.py index 8e67e37b589..8875eddfe35 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_hovertext.py +++ b/packages/python/plotly/plotly/validators/waterfall/_hovertext.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="hovertext", parent_name="waterfall", **kwargs): - super(HovertextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class HovertextValidator(_bv.StringValidator): + def __init__(self, plotly_name='hovertext', + parent_name='waterfall', + **kwargs): + super(HovertextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_hovertextsrc.py b/packages/python/plotly/plotly/validators/waterfall/_hovertextsrc.py index 50bcee98b1f..bb2bc07d8dc 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_hovertextsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/_hovertextsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="hovertextsrc", parent_name="waterfall", **kwargs): - super(HovertextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class HovertextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='hovertextsrc', + parent_name='waterfall', + **kwargs): + super(HovertextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_ids.py b/packages/python/plotly/plotly/validators/waterfall/_ids.py index dd8798b51db..db7526af98f 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_ids.py +++ b/packages/python/plotly/plotly/validators/waterfall/_ids.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="ids", parent_name="waterfall", **kwargs): - super(IdsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdsValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='ids', + parent_name='waterfall', + **kwargs): + super(IdsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_idssrc.py b/packages/python/plotly/plotly/validators/waterfall/_idssrc.py index 7480c978f7d..8bce93d6c44 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_idssrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/_idssrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="idssrc", parent_name="waterfall", **kwargs): - super(IdssrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IdssrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='idssrc', + parent_name='waterfall', + **kwargs): + super(IdssrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_increasing.py b/packages/python/plotly/plotly/validators/waterfall/_increasing.py index 792c4f589c6..4d25f56400b 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_increasing.py +++ b/packages/python/plotly/plotly/validators/waterfall/_increasing.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class IncreasingValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="increasing", parent_name="waterfall", **kwargs): - super(IncreasingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Increasing"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.waterfall.increasi - ng.Marker` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class IncreasingValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='increasing', + parent_name='waterfall', + **kwargs): + super(IncreasingValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Increasing'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_insidetextanchor.py b/packages/python/plotly/plotly/validators/waterfall/_insidetextanchor.py index 3cb72f8b0df..32551a6fc67 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_insidetextanchor.py +++ b/packages/python/plotly/plotly/validators/waterfall/_insidetextanchor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class InsidetextanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="insidetextanchor", parent_name="waterfall", **kwargs - ): - super(InsidetextanchorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["end", "middle", "start"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class InsidetextanchorValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='insidetextanchor', + parent_name='waterfall', + **kwargs): + super(InsidetextanchorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['end', 'middle', 'start']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_insidetextfont.py b/packages/python/plotly/plotly/validators/waterfall/_insidetextfont.py index f9642da3778..6b43390939b 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_insidetextfont.py +++ b/packages/python/plotly/plotly/validators/waterfall/_insidetextfont.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class InsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="insidetextfont", parent_name="waterfall", **kwargs): - super(InsidetextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Insidetextfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class InsidetextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='insidetextfont', + parent_name='waterfall', + **kwargs): + super(InsidetextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Insidetextfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_legend.py b/packages/python/plotly/plotly/validators/waterfall/_legend.py index a68e4676526..1f1355fb31b 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_legend.py +++ b/packages/python/plotly/plotly/validators/waterfall/_legend.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="legend", parent_name="waterfall", **kwargs): - super(LegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "legend"), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='legend', + parent_name='waterfall', + **kwargs): + super(LegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'legend'), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_legendgroup.py b/packages/python/plotly/plotly/validators/waterfall/_legendgroup.py index 8cfac6d8556..85abcb0bb79 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_legendgroup.py +++ b/packages/python/plotly/plotly/validators/waterfall/_legendgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="legendgroup", parent_name="waterfall", **kwargs): - super(LegendgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='legendgroup', + parent_name='waterfall', + **kwargs): + super(LegendgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_legendgrouptitle.py b/packages/python/plotly/plotly/validators/waterfall/_legendgrouptitle.py index 5157d3ad8c9..480d5d55395 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_legendgrouptitle.py +++ b/packages/python/plotly/plotly/validators/waterfall/_legendgrouptitle.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="legendgrouptitle", parent_name="waterfall", **kwargs - ): - super(LegendgrouptitleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Legendgrouptitle"), - data_docs=kwargs.pop( - "data_docs", - """ - font - Sets this legend group's title font. - text - Sets the title of the legend group. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendgrouptitleValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='legendgrouptitle', + parent_name='waterfall', + **kwargs): + super(LegendgrouptitleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Legendgrouptitle'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_legendrank.py b/packages/python/plotly/plotly/validators/waterfall/_legendrank.py index 19e62098e5e..5e4a6e7d906 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_legendrank.py +++ b/packages/python/plotly/plotly/validators/waterfall/_legendrank.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendrank", parent_name="waterfall", **kwargs): - super(LegendrankValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LegendrankValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendrank', + parent_name='waterfall', + **kwargs): + super(LegendrankValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_legendwidth.py b/packages/python/plotly/plotly/validators/waterfall/_legendwidth.py index 33fbb7e7d31..410dc66ddaf 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_legendwidth.py +++ b/packages/python/plotly/plotly/validators/waterfall/_legendwidth.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="legendwidth", parent_name="waterfall", **kwargs): - super(LegendwidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LegendwidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='legendwidth', + parent_name='waterfall', + **kwargs): + super(LegendwidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_measure.py b/packages/python/plotly/plotly/validators/waterfall/_measure.py index 128c69f90d4..4f6823316e2 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_measure.py +++ b/packages/python/plotly/plotly/validators/waterfall/_measure.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MeasureValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="measure", parent_name="waterfall", **kwargs): - super(MeasureValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MeasureValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='measure', + parent_name='waterfall', + **kwargs): + super(MeasureValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_measuresrc.py b/packages/python/plotly/plotly/validators/waterfall/_measuresrc.py index fc5a061e886..2403e440c23 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_measuresrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/_measuresrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MeasuresrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="measuresrc", parent_name="waterfall", **kwargs): - super(MeasuresrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MeasuresrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='measuresrc', + parent_name='waterfall', + **kwargs): + super(MeasuresrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_meta.py b/packages/python/plotly/plotly/validators/waterfall/_meta.py index 8a0bff122c2..38faf64a42b 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_meta.py +++ b/packages/python/plotly/plotly/validators/waterfall/_meta.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="meta", parent_name="waterfall", **kwargs): - super(MetaValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MetaValidator(_bv.AnyValidator): + def __init__(self, plotly_name='meta', + parent_name='waterfall', + **kwargs): + super(MetaValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_metasrc.py b/packages/python/plotly/plotly/validators/waterfall/_metasrc.py index 90243949263..1ed7e267e11 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_metasrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/_metasrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="metasrc", parent_name="waterfall", **kwargs): - super(MetasrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MetasrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='metasrc', + parent_name='waterfall', + **kwargs): + super(MetasrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_name.py b/packages/python/plotly/plotly/validators/waterfall/_name.py index 6dff281339c..74895e951a0 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_name.py +++ b/packages/python/plotly/plotly/validators/waterfall/_name.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="name", parent_name="waterfall", **kwargs): - super(NameValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class NameValidator(_bv.StringValidator): + def __init__(self, plotly_name='name', + parent_name='waterfall', + **kwargs): + super(NameValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_offset.py b/packages/python/plotly/plotly/validators/waterfall/_offset.py index bddd29bb3e1..575c838ee74 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_offset.py +++ b/packages/python/plotly/plotly/validators/waterfall/_offset.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class OffsetValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="offset", parent_name="waterfall", **kwargs): - super(OffsetValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OffsetValidator(_bv.NumberValidator): + def __init__(self, plotly_name='offset', + parent_name='waterfall', + **kwargs): + super(OffsetValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_offsetgroup.py b/packages/python/plotly/plotly/validators/waterfall/_offsetgroup.py index b98ac8d2a6b..7b9cf4320a4 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_offsetgroup.py +++ b/packages/python/plotly/plotly/validators/waterfall/_offsetgroup.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class OffsetgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="offsetgroup", parent_name="waterfall", **kwargs): - super(OffsetgroupValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OffsetgroupValidator(_bv.StringValidator): + def __init__(self, plotly_name='offsetgroup', + parent_name='waterfall', + **kwargs): + super(OffsetgroupValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_offsetsrc.py b/packages/python/plotly/plotly/validators/waterfall/_offsetsrc.py index 1fbe7bf0b06..1f16802629d 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_offsetsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/_offsetsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class OffsetsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="offsetsrc", parent_name="waterfall", **kwargs): - super(OffsetsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class OffsetsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='offsetsrc', + parent_name='waterfall', + **kwargs): + super(OffsetsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_opacity.py b/packages/python/plotly/plotly/validators/waterfall/_opacity.py index a1a5b0a20dc..1798042ee13 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_opacity.py +++ b/packages/python/plotly/plotly/validators/waterfall/_opacity.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="opacity", parent_name="waterfall", **kwargs): - super(OpacityValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - max=kwargs.pop("max", 1), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OpacityValidator(_bv.NumberValidator): + def __init__(self, plotly_name='opacity', + parent_name='waterfall', + **kwargs): + super(OpacityValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + max=kwargs.pop('max', 1), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_orientation.py b/packages/python/plotly/plotly/validators/waterfall/_orientation.py index 111510998c4..9da8877eeca 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_orientation.py +++ b/packages/python/plotly/plotly/validators/waterfall/_orientation.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="orientation", parent_name="waterfall", **kwargs): - super(OrientationValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - values=kwargs.pop("values", ["v", "h"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class OrientationValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='orientation', + parent_name='waterfall', + **kwargs): + super(OrientationValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + values=kwargs.pop('values', ['v', 'h']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_outsidetextfont.py b/packages/python/plotly/plotly/validators/waterfall/_outsidetextfont.py index a027ab23030..2fb1d702fad 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_outsidetextfont.py +++ b/packages/python/plotly/plotly/validators/waterfall/_outsidetextfont.py @@ -1,88 +1,15 @@ -import _plotly_utils.basevalidators -class OutsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="outsidetextfont", parent_name="waterfall", **kwargs - ): - super(OutsidetextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Outsidetextfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class OutsidetextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='outsidetextfont', + parent_name='waterfall', + **kwargs): + super(OutsidetextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Outsidetextfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_selectedpoints.py b/packages/python/plotly/plotly/validators/waterfall/_selectedpoints.py index c53675d549f..dce99650e5e 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_selectedpoints.py +++ b/packages/python/plotly/plotly/validators/waterfall/_selectedpoints.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="selectedpoints", parent_name="waterfall", **kwargs): - super(SelectedpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SelectedpointsValidator(_bv.AnyValidator): + def __init__(self, plotly_name='selectedpoints', + parent_name='waterfall', + **kwargs): + super(SelectedpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_showlegend.py b/packages/python/plotly/plotly/validators/waterfall/_showlegend.py index abcedae9291..f6950873581 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_showlegend.py +++ b/packages/python/plotly/plotly/validators/waterfall/_showlegend.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__(self, plotly_name="showlegend", parent_name="waterfall", **kwargs): - super(ShowlegendValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShowlegendValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='showlegend', + parent_name='waterfall', + **kwargs): + super(ShowlegendValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_stream.py b/packages/python/plotly/plotly/validators/waterfall/_stream.py index a436dd4fd0a..302cda352a9 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_stream.py +++ b/packages/python/plotly/plotly/validators/waterfall/_stream.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="stream", parent_name="waterfall", **kwargs): - super(StreamValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Stream"), - data_docs=kwargs.pop( - "data_docs", - """ - maxpoints - Sets the maximum number of points to keep on - the plots from an incoming stream. If - `maxpoints` is set to 50, only the newest 50 - points will be displayed on the plot. - token - The stream id number links a data trace on a - plot with a stream. See https://chart- - studio.plotly.com/settings for more details. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StreamValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='stream', + parent_name='waterfall', + **kwargs): + super(StreamValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_text.py b/packages/python/plotly/plotly/validators/waterfall/_text.py index 1f6da01b619..de5a96d564c 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_text.py +++ b/packages/python/plotly/plotly/validators/waterfall/_text.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="text", parent_name="waterfall", **kwargs): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='waterfall', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_textangle.py b/packages/python/plotly/plotly/validators/waterfall/_textangle.py index ee7d15ea879..1de6f8d3fc6 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_textangle.py +++ b/packages/python/plotly/plotly/validators/waterfall/_textangle.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__(self, plotly_name="textangle", parent_name="waterfall", **kwargs): - super(TextangleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextangleValidator(_bv.AngleValidator): + def __init__(self, plotly_name='textangle', + parent_name='waterfall', + **kwargs): + super(TextangleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_textfont.py b/packages/python/plotly/plotly/validators/waterfall/_textfont.py index 8ce970c9f02..26672a512c9 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_textfont.py +++ b/packages/python/plotly/plotly/validators/waterfall/_textfont.py @@ -1,86 +1,15 @@ -import _plotly_utils.basevalidators -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="textfont", parent_name="waterfall", **kwargs): - super(TextfontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Textfont"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class TextfontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='textfont', + parent_name='waterfall', + **kwargs): + super(TextfontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_textinfo.py b/packages/python/plotly/plotly/validators/waterfall/_textinfo.py index 4334e1559b9..f2055a1a1e8 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_textinfo.py +++ b/packages/python/plotly/plotly/validators/waterfall/_textinfo.py @@ -1,14 +1,16 @@ -import _plotly_utils.basevalidators - - -class TextinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__(self, plotly_name="textinfo", parent_name="waterfall", **kwargs): - super(TextinfoValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "plot"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["label", "text", "initial", "delta", "final"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextinfoValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='textinfo', + parent_name='waterfall', + **kwargs): + super(TextinfoValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'plot'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['label', 'text', 'initial', 'delta', 'final']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_textposition.py b/packages/python/plotly/plotly/validators/waterfall/_textposition.py index 9f588b0eb5b..0cd1c2b68a1 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_textposition.py +++ b/packages/python/plotly/plotly/validators/waterfall/_textposition.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="textposition", parent_name="waterfall", **kwargs): - super(TextpositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["inside", "outside", "auto", "none"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextpositionValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textposition', + parent_name='waterfall', + **kwargs): + super(TextpositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['inside', 'outside', 'auto', 'none']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_textpositionsrc.py b/packages/python/plotly/plotly/validators/waterfall/_textpositionsrc.py index 90be472cd78..1ff0823bc49 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_textpositionsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/_textpositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textpositionsrc", parent_name="waterfall", **kwargs - ): - super(TextpositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextpositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textpositionsrc', + parent_name='waterfall', + **kwargs): + super(TextpositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_textsrc.py b/packages/python/plotly/plotly/validators/waterfall/_textsrc.py index deabaa1cd0b..ae57042d14f 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_textsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/_textsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="textsrc", parent_name="waterfall", **kwargs): - super(TextsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textsrc', + parent_name='waterfall', + **kwargs): + super(TextsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_texttemplate.py b/packages/python/plotly/plotly/validators/waterfall/_texttemplate.py index fcdb8ff6c38..9e86c04fab3 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_texttemplate.py +++ b/packages/python/plotly/plotly/validators/waterfall/_texttemplate.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="texttemplate", parent_name="waterfall", **kwargs): - super(TexttemplateValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplateValidator(_bv.StringValidator): + def __init__(self, plotly_name='texttemplate', + parent_name='waterfall', + **kwargs): + super(TexttemplateValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_texttemplatesrc.py b/packages/python/plotly/plotly/validators/waterfall/_texttemplatesrc.py index e8b5614c873..53c22e45015 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_texttemplatesrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/_texttemplatesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="texttemplatesrc", parent_name="waterfall", **kwargs - ): - super(TexttemplatesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TexttemplatesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='texttemplatesrc', + parent_name='waterfall', + **kwargs): + super(TexttemplatesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_totals.py b/packages/python/plotly/plotly/validators/waterfall/_totals.py index 8a5ec9cd99d..86ceb497f39 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_totals.py +++ b/packages/python/plotly/plotly/validators/waterfall/_totals.py @@ -1,20 +1,15 @@ -import _plotly_utils.basevalidators -class TotalsValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="totals", parent_name="waterfall", **kwargs): - super(TotalsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Totals"), - data_docs=kwargs.pop( - "data_docs", - """ - marker - :class:`plotly.graph_objects.waterfall.totals.M - arker` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TotalsValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='totals', + parent_name='waterfall', + **kwargs): + super(TotalsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Totals'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_uid.py b/packages/python/plotly/plotly/validators/waterfall/_uid.py index 6c9561b24eb..22b408ce7a3 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_uid.py +++ b/packages/python/plotly/plotly/validators/waterfall/_uid.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UidValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="uid", parent_name="waterfall", **kwargs): - super(UidValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UidValidator(_bv.StringValidator): + def __init__(self, plotly_name='uid', + parent_name='waterfall', + **kwargs): + super(UidValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_uirevision.py b/packages/python/plotly/plotly/validators/waterfall/_uirevision.py index 6bb082428dc..58cf0062eac 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_uirevision.py +++ b/packages/python/plotly/plotly/validators/waterfall/_uirevision.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="uirevision", parent_name="waterfall", **kwargs): - super(UirevisionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class UirevisionValidator(_bv.AnyValidator): + def __init__(self, plotly_name='uirevision', + parent_name='waterfall', + **kwargs): + super(UirevisionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_visible.py b/packages/python/plotly/plotly/validators/waterfall/_visible.py index 8615c9fd130..62517599fb5 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_visible.py +++ b/packages/python/plotly/plotly/validators/waterfall/_visible.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="visible", parent_name="waterfall", **kwargs): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", [True, False, "legendonly"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='visible', + parent_name='waterfall', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', [True, False, 'legendonly']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_width.py b/packages/python/plotly/plotly/validators/waterfall/_width.py index fce66aa9b4e..ef12c4705ff 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_width.py +++ b/packages/python/plotly/plotly/validators/waterfall/_width.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="width", parent_name="waterfall", **kwargs): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='waterfall', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_widthsrc.py b/packages/python/plotly/plotly/validators/waterfall/_widthsrc.py index 740abde2fa3..3c710bc26fa 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_widthsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/_widthsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="widthsrc", parent_name="waterfall", **kwargs): - super(WidthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WidthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='widthsrc', + parent_name='waterfall', + **kwargs): + super(WidthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_x.py b/packages/python/plotly/plotly/validators/waterfall/_x.py index 56fbdd6608f..8f5312b30b2 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_x.py +++ b/packages/python/plotly/plotly/validators/waterfall/_x.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="x", parent_name="waterfall", **kwargs): - super(XValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='x', + parent_name='waterfall', + **kwargs): + super(XValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_x0.py b/packages/python/plotly/plotly/validators/waterfall/_x0.py index 9db7cdcdd15..32d28b2510b 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_x0.py +++ b/packages/python/plotly/plotly/validators/waterfall/_x0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class X0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="x0", parent_name="waterfall", **kwargs): - super(X0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class X0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='x0', + parent_name='waterfall', + **kwargs): + super(X0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_xaxis.py b/packages/python/plotly/plotly/validators/waterfall/_xaxis.py index 6fe6367eb51..1b92f7ff44a 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_xaxis.py +++ b/packages/python/plotly/plotly/validators/waterfall/_xaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="xaxis", parent_name="waterfall", **kwargs): - super(XaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "x"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='xaxis', + parent_name='waterfall', + **kwargs): + super(XaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'x'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_xhoverformat.py b/packages/python/plotly/plotly/validators/waterfall/_xhoverformat.py index 798da875ae1..73a22e2a9ba 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_xhoverformat.py +++ b/packages/python/plotly/plotly/validators/waterfall/_xhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="xhoverformat", parent_name="waterfall", **kwargs): - super(XhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='xhoverformat', + parent_name='waterfall', + **kwargs): + super(XhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_xperiod.py b/packages/python/plotly/plotly/validators/waterfall/_xperiod.py index ba2f16bc3b7..3e5b8cb8a92 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_xperiod.py +++ b/packages/python/plotly/plotly/validators/waterfall/_xperiod.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XperiodValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="xperiod", parent_name="waterfall", **kwargs): - super(XperiodValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XperiodValidator(_bv.AnyValidator): + def __init__(self, plotly_name='xperiod', + parent_name='waterfall', + **kwargs): + super(XperiodValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_xperiod0.py b/packages/python/plotly/plotly/validators/waterfall/_xperiod0.py index 9cbe13a87db..d974549b856 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_xperiod0.py +++ b/packages/python/plotly/plotly/validators/waterfall/_xperiod0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Xperiod0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="xperiod0", parent_name="waterfall", **kwargs): - super(Xperiod0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Xperiod0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='xperiod0', + parent_name='waterfall', + **kwargs): + super(Xperiod0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_xperiodalignment.py b/packages/python/plotly/plotly/validators/waterfall/_xperiodalignment.py index 5b5a78dd370..62fbdc3048f 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_xperiodalignment.py +++ b/packages/python/plotly/plotly/validators/waterfall/_xperiodalignment.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class XperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="xperiodalignment", parent_name="waterfall", **kwargs - ): - super(XperiodalignmentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["start", "middle", "end"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class XperiodalignmentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='xperiodalignment', + parent_name='waterfall', + **kwargs): + super(XperiodalignmentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['start', 'middle', 'end']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_xsrc.py b/packages/python/plotly/plotly/validators/waterfall/_xsrc.py index 125b52958a7..5101748f758 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_xsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/_xsrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="xsrc", parent_name="waterfall", **kwargs): - super(XsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class XsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='xsrc', + parent_name='waterfall', + **kwargs): + super(XsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_y.py b/packages/python/plotly/plotly/validators/waterfall/_y.py index e309b41a168..831f8f24032 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_y.py +++ b/packages/python/plotly/plotly/validators/waterfall/_y.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__(self, plotly_name="y", parent_name="waterfall", **kwargs): - super(YValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YValidator(_bv.DataArrayValidator): + def __init__(self, plotly_name='y', + parent_name='waterfall', + **kwargs): + super(YValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_y0.py b/packages/python/plotly/plotly/validators/waterfall/_y0.py index ffbafc74242..e94b44a289f 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_y0.py +++ b/packages/python/plotly/plotly/validators/waterfall/_y0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Y0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="y0", parent_name="waterfall", **kwargs): - super(Y0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Y0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='y0', + parent_name='waterfall', + **kwargs): + super(Y0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_yaxis.py b/packages/python/plotly/plotly/validators/waterfall/_yaxis.py index 47b68a530dd..2b6794458bd 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_yaxis.py +++ b/packages/python/plotly/plotly/validators/waterfall/_yaxis.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__(self, plotly_name="yaxis", parent_name="waterfall", **kwargs): - super(YaxisValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - dflt=kwargs.pop("dflt", "y"), - edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YaxisValidator(_bv.SubplotidValidator): + def __init__(self, plotly_name='yaxis', + parent_name='waterfall', + **kwargs): + super(YaxisValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + dflt=kwargs.pop('dflt', 'y'), + edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_yhoverformat.py b/packages/python/plotly/plotly/validators/waterfall/_yhoverformat.py index bd86a8daf9a..50aca38d6e5 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_yhoverformat.py +++ b/packages/python/plotly/plotly/validators/waterfall/_yhoverformat.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="yhoverformat", parent_name="waterfall", **kwargs): - super(YhoverformatValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YhoverformatValidator(_bv.StringValidator): + def __init__(self, plotly_name='yhoverformat', + parent_name='waterfall', + **kwargs): + super(YhoverformatValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_yperiod.py b/packages/python/plotly/plotly/validators/waterfall/_yperiod.py index d7863f31304..f2c608d6bd0 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_yperiod.py +++ b/packages/python/plotly/plotly/validators/waterfall/_yperiod.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YperiodValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="yperiod", parent_name="waterfall", **kwargs): - super(YperiodValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YperiodValidator(_bv.AnyValidator): + def __init__(self, plotly_name='yperiod', + parent_name='waterfall', + **kwargs): + super(YperiodValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_yperiod0.py b/packages/python/plotly/plotly/validators/waterfall/_yperiod0.py index 3e24a4792fc..bf27cd6eb7c 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_yperiod0.py +++ b/packages/python/plotly/plotly/validators/waterfall/_yperiod0.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class Yperiod0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__(self, plotly_name="yperiod0", parent_name="waterfall", **kwargs): - super(Yperiod0Validator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class Yperiod0Validator(_bv.AnyValidator): + def __init__(self, plotly_name='yperiod0', + parent_name='waterfall', + **kwargs): + super(Yperiod0Validator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_yperiodalignment.py b/packages/python/plotly/plotly/validators/waterfall/_yperiodalignment.py index 7d6d6fd603f..f6c026974fe 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_yperiodalignment.py +++ b/packages/python/plotly/plotly/validators/waterfall/_yperiodalignment.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class YperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="yperiodalignment", parent_name="waterfall", **kwargs - ): - super(YperiodalignmentValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["start", "middle", "end"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class YperiodalignmentValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='yperiodalignment', + parent_name='waterfall', + **kwargs): + super(YperiodalignmentValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['start', 'middle', 'end']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_ysrc.py b/packages/python/plotly/plotly/validators/waterfall/_ysrc.py index 363257a1f63..da259117e97 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_ysrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/_ysrc.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__(self, plotly_name="ysrc", parent_name="waterfall", **kwargs): - super(YsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class YsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='ysrc', + parent_name='waterfall', + **kwargs): + super(YsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/_zorder.py b/packages/python/plotly/plotly/validators/waterfall/_zorder.py index 5ee7a49bcae..3ee637fb9f7 100644 --- a/packages/python/plotly/plotly/validators/waterfall/_zorder.py +++ b/packages/python/plotly/plotly/validators/waterfall/_zorder.py @@ -1,11 +1,13 @@ -import _plotly_utils.basevalidators -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__(self, plotly_name="zorder", parent_name="waterfall", **kwargs): - super(ZorderValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ZorderValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='zorder', + parent_name='waterfall', + **kwargs): + super(ZorderValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/connector/__init__.py b/packages/python/plotly/plotly/validators/waterfall/connector/__init__.py index 128cd52908a..871d04f8125 100644 --- a/packages/python/plotly/plotly/validators/waterfall/connector/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/connector/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._visible import VisibleValidator from ._mode import ModeValidator from ._line import LineValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._visible.VisibleValidator", "._mode.ModeValidator", "._line.LineValidator"], + ['._visible.VisibleValidator', '._mode.ModeValidator', '._line.LineValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/waterfall/connector/_line.py b/packages/python/plotly/plotly/validators/waterfall/connector/_line.py index 84ef2ac6d91..3021af244b9 100644 --- a/packages/python/plotly/plotly/validators/waterfall/connector/_line.py +++ b/packages/python/plotly/plotly/validators/waterfall/connector/_line.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="line", parent_name="waterfall.connector", **kwargs): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the line color. - dash - 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"). - width - Sets the line width (in px). -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='waterfall.connector', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/connector/_mode.py b/packages/python/plotly/plotly/validators/waterfall/connector/_mode.py index 8cf2b29dfec..0345877a7f6 100644 --- a/packages/python/plotly/plotly/validators/waterfall/connector/_mode.py +++ b/packages/python/plotly/plotly/validators/waterfall/connector/_mode.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ModeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="mode", parent_name="waterfall.connector", **kwargs): - super(ModeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - values=kwargs.pop("values", ["spanning", "between"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ModeValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='mode', + parent_name='waterfall.connector', + **kwargs): + super(ModeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + values=kwargs.pop('values', ['spanning', 'between']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/connector/_visible.py b/packages/python/plotly/plotly/validators/waterfall/connector/_visible.py index d517a8e7cdf..ee6dd918c01 100644 --- a/packages/python/plotly/plotly/validators/waterfall/connector/_visible.py +++ b/packages/python/plotly/plotly/validators/waterfall/connector/_visible.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name="visible", parent_name="waterfall.connector", **kwargs - ): - super(VisibleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VisibleValidator(_bv.BooleanValidator): + def __init__(self, plotly_name='visible', + parent_name='waterfall.connector', + **kwargs): + super(VisibleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/connector/line/__init__.py b/packages/python/plotly/plotly/validators/waterfall/connector/line/__init__.py index cff41466517..e42e2f2974d 100644 --- a/packages/python/plotly/plotly/validators/waterfall/connector/line/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/connector/line/__init__.py @@ -1,15 +1,15 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._dash import DashValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - ["._width.WidthValidator", "._dash.DashValidator", "._color.ColorValidator"], + ['._width.WidthValidator', '._dash.DashValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/waterfall/connector/line/_color.py b/packages/python/plotly/plotly/validators/waterfall/connector/line/_color.py index 528b014f3dc..fae57187bc6 100644 --- a/packages/python/plotly/plotly/validators/waterfall/connector/line/_color.py +++ b/packages/python/plotly/plotly/validators/waterfall/connector/line/_color.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="waterfall.connector.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='waterfall.connector.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/connector/line/_dash.py b/packages/python/plotly/plotly/validators/waterfall/connector/line/_dash.py index ed8535717e2..270b560845a 100644 --- a/packages/python/plotly/plotly/validators/waterfall/connector/line/_dash.py +++ b/packages/python/plotly/plotly/validators/waterfall/connector/line/_dash.py @@ -1,16 +1,14 @@ -import _plotly_utils.basevalidators -class DashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__( - self, plotly_name="dash", parent_name="waterfall.connector.line", **kwargs - ): - super(DashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class DashValidator(_bv.DashValidator): + def __init__(self, plotly_name='dash', + parent_name='waterfall.connector.line', + **kwargs): + super(DashValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/connector/line/_width.py b/packages/python/plotly/plotly/validators/waterfall/connector/line/_width.py index 483c363ca53..6b3f4cacc0b 100644 --- a/packages/python/plotly/plotly/validators/waterfall/connector/line/_width.py +++ b/packages/python/plotly/plotly/validators/waterfall/connector/line/_width.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="waterfall.connector.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "plot"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='waterfall.connector.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'plot'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/decreasing/__init__.py b/packages/python/plotly/plotly/validators/waterfall/decreasing/__init__.py index e9bdb89f26d..8ee3c0f5c26 100644 --- a/packages/python/plotly/plotly/validators/waterfall/decreasing/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/decreasing/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.MarkerValidator"] + __name__, + [], + ['._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/waterfall/decreasing/_marker.py b/packages/python/plotly/plotly/validators/waterfall/decreasing/_marker.py index cd4537d607c..aae3e8913b8 100644 --- a/packages/python/plotly/plotly/validators/waterfall/decreasing/_marker.py +++ b/packages/python/plotly/plotly/validators/waterfall/decreasing/_marker.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="waterfall.decreasing", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of all decreasing values. - line - :class:`plotly.graph_objects.waterfall.decreasi - ng.marker.Line` instance or dict with - compatible properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='waterfall.decreasing', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/__init__.py b/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/__init__.py index 9819cbc3592..6db8e4feb52 100644 --- a/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import LineValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._line.LineValidator", "._color.ColorValidator"] + __name__, + [], + ['._line.LineValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/_color.py b/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/_color.py index 733ebb62c08..4578216719e 100644 --- a/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/_color.py +++ b/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="waterfall.decreasing.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='waterfall.decreasing.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/_line.py b/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/_line.py index 94fa200b2d1..5477f6df34d 100644 --- a/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/_line.py +++ b/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/_line.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="line", parent_name="waterfall.decreasing.marker", **kwargs - ): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the line color of all decreasing values. - width - Sets the line width of all decreasing values. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='waterfall.decreasing.marker', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/line/__init__.py b/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/line/__init__.py index 63a516578b5..e9749ddd90c 100644 --- a/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/line/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._width.WidthValidator", "._color.ColorValidator"] + __name__, + [], + ['._width.WidthValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/line/_color.py b/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/line/_color.py index 466b0efc387..52d9abc51e5 100644 --- a/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/line/_color.py +++ b/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/line/_color.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="waterfall.decreasing.marker.line", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='waterfall.decreasing.marker.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/line/_width.py b/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/line/_width.py index 76dfdd56364..ba25f7be0c2 100644 --- a/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/line/_width.py +++ b/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/line/_width.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="width", - parent_name="waterfall.decreasing.marker.line", - **kwargs, - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='waterfall.decreasing.marker.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/__init__.py index c6ee8b59679..f7e36e7749f 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._namelengthsrc import NamelengthsrcValidator from ._namelength import NamelengthValidator @@ -13,19 +12,10 @@ from ._align import AlignValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._namelengthsrc.NamelengthsrcValidator", - "._namelength.NamelengthValidator", - "._font.FontValidator", - "._bordercolorsrc.BordercolorsrcValidator", - "._bordercolor.BordercolorValidator", - "._bgcolorsrc.BgcolorsrcValidator", - "._bgcolor.BgcolorValidator", - "._alignsrc.AlignsrcValidator", - "._align.AlignValidator", - ], + ['._namelengthsrc.NamelengthsrcValidator', '._namelength.NamelengthValidator', '._font.FontValidator', '._bordercolorsrc.BordercolorsrcValidator', '._bordercolor.BordercolorValidator', '._bgcolorsrc.BgcolorsrcValidator', '._bgcolor.BgcolorValidator', '._alignsrc.AlignsrcValidator', '._align.AlignValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_align.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_align.py index 3723cd964e6..7406a30ad62 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_align.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_align.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="align", parent_name="waterfall.hoverlabel", **kwargs - ): - super(AlignValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["left", "right", "auto"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='align', + parent_name='waterfall.hoverlabel', + **kwargs): + super(AlignValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['left', 'right', 'auto']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_alignsrc.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_alignsrc.py index f45e09f3cd0..93130be0912 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_alignsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_alignsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="alignsrc", parent_name="waterfall.hoverlabel", **kwargs - ): - super(AlignsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class AlignsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='alignsrc', + parent_name='waterfall.hoverlabel', + **kwargs): + super(AlignsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_bgcolor.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_bgcolor.py index 4b28e5698ca..6b899aa9c0b 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_bgcolor.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_bgcolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bgcolor", parent_name="waterfall.hoverlabel", **kwargs - ): - super(BgcolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bgcolor', + parent_name='waterfall.hoverlabel', + **kwargs): + super(BgcolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_bgcolorsrc.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_bgcolorsrc.py index 1c01528085d..453694391af 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_bgcolorsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bgcolorsrc", parent_name="waterfall.hoverlabel", **kwargs - ): - super(BgcolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BgcolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bgcolorsrc', + parent_name='waterfall.hoverlabel', + **kwargs): + super(BgcolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_bordercolor.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_bordercolor.py index 81e3f7c5fd4..34657d750b4 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_bordercolor.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_bordercolor.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="bordercolor", parent_name="waterfall.hoverlabel", **kwargs - ): - super(BordercolorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='bordercolor', + parent_name='waterfall.hoverlabel', + **kwargs): + super(BordercolorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_bordercolorsrc.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_bordercolorsrc.py index 2ca194261ac..2122a1574f0 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_bordercolorsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="bordercolorsrc", parent_name="waterfall.hoverlabel", **kwargs - ): - super(BordercolorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class BordercolorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='bordercolorsrc', + parent_name='waterfall.hoverlabel', + **kwargs): + super(BordercolorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_font.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_font.py index 3cee3f426ca..ed3cbde4313 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_font.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_font.py @@ -1,88 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="waterfall.hoverlabel", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - familysrc - Sets the source reference on Chart Studio Cloud - for `family`. - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - linepositionsrc - Sets the source reference on Chart Studio Cloud - for `lineposition`. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - shadowsrc - Sets the source reference on Chart Studio Cloud - for `shadow`. - size - sizesrc - Sets the source reference on Chart Studio Cloud - for `size`. - style - Sets whether a font should be styled with a - normal or italic face from its family. - stylesrc - Sets the source reference on Chart Studio Cloud - for `style`. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - textcasesrc - Sets the source reference on Chart Studio Cloud - for `textcase`. - variant - Sets the variant of the font. - variantsrc - Sets the source reference on Chart Studio Cloud - for `variant`. - weight - Sets the weight (or boldness) of the font. - weightsrc - Sets the source reference on Chart Studio Cloud - for `weight`. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='waterfall.hoverlabel', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_namelength.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_namelength.py index f46ae01f678..fcec0909d5a 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_namelength.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_namelength.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="namelength", parent_name="waterfall.hoverlabel", **kwargs - ): - super(NamelengthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", -1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='namelength', + parent_name='waterfall.hoverlabel', + **kwargs): + super(NamelengthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', -1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_namelengthsrc.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_namelengthsrc.py index cde07123f48..cdcbbb2bee9 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_namelengthsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/_namelengthsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="namelengthsrc", parent_name="waterfall.hoverlabel", **kwargs - ): - super(NamelengthsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class NamelengthsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='namelengthsrc', + parent_name='waterfall.hoverlabel', + **kwargs): + super(NamelengthsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_color.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_color.py index 31bb419ae39..1c214b8e261 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_color.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="waterfall.hoverlabel.font", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='waterfall.hoverlabel.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_colorsrc.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_colorsrc.py index 82dfbc4b756..d7d1da54e54 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="waterfall.hoverlabel.font", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='waterfall.hoverlabel.font', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_family.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_family.py index 8be63b586c3..ff1e19a9b4c 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_family.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="waterfall.hoverlabel.font", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='waterfall.hoverlabel.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_familysrc.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_familysrc.py index 39d79fa0404..27710bfbe2c 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_familysrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="waterfall.hoverlabel.font", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='waterfall.hoverlabel.font', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_lineposition.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_lineposition.py index 2100b3818a4..41985a68094 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="waterfall.hoverlabel.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='waterfall.hoverlabel.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_linepositionsrc.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_linepositionsrc.py index 7f076d1a732..c7346dc19fb 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="waterfall.hoverlabel.font", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='waterfall.hoverlabel.font', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_shadow.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_shadow.py index 76c963eaf11..9dc28e6bfff 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="waterfall.hoverlabel.font", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='waterfall.hoverlabel.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_shadowsrc.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_shadowsrc.py index eba7ca46a98..1fc1eb40818 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="waterfall.hoverlabel.font", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='waterfall.hoverlabel.font', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_size.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_size.py index 479ae91db82..617c3d27af2 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_size.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="waterfall.hoverlabel.font", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='waterfall.hoverlabel.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_sizesrc.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_sizesrc.py index 20b1f1fcb1b..c6a106c2dcd 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="waterfall.hoverlabel.font", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='waterfall.hoverlabel.font', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_style.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_style.py index 3ece6f8e843..0e0f422e215 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_style.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="waterfall.hoverlabel.font", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='waterfall.hoverlabel.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_stylesrc.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_stylesrc.py index f3f09f16b52..e2731c848c9 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="waterfall.hoverlabel.font", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='waterfall.hoverlabel.font', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_textcase.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_textcase.py index 02386d21b9a..05bc31d478d 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="waterfall.hoverlabel.font", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='waterfall.hoverlabel.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_textcasesrc.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_textcasesrc.py index 5263db25141..2f43ba0f626 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="waterfall.hoverlabel.font", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='waterfall.hoverlabel.font', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_variant.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_variant.py index 00507740937..c3bb95af3be 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_variant.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="waterfall.hoverlabel.font", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='waterfall.hoverlabel.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_variantsrc.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_variantsrc.py index a1ea5d64205..3eb51d8bcf5 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_variantsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="variantsrc", - parent_name="waterfall.hoverlabel.font", - **kwargs, - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='waterfall.hoverlabel.font', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_weight.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_weight.py index ae931fe9b5a..1e4555afbb7 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_weight.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="waterfall.hoverlabel.font", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "none"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='waterfall.hoverlabel.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'none'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_weightsrc.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_weightsrc.py index 34ce4fa77f7..d8f01080f5b 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="waterfall.hoverlabel.font", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='waterfall.hoverlabel.font', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/increasing/__init__.py b/packages/python/plotly/plotly/validators/waterfall/increasing/__init__.py index e9bdb89f26d..8ee3c0f5c26 100644 --- a/packages/python/plotly/plotly/validators/waterfall/increasing/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/increasing/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.MarkerValidator"] + __name__, + [], + ['._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/waterfall/increasing/_marker.py b/packages/python/plotly/plotly/validators/waterfall/increasing/_marker.py index d2da29c39a4..9f4e2ee8828 100644 --- a/packages/python/plotly/plotly/validators/waterfall/increasing/_marker.py +++ b/packages/python/plotly/plotly/validators/waterfall/increasing/_marker.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="marker", parent_name="waterfall.increasing", **kwargs - ): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of all increasing values. - line - :class:`plotly.graph_objects.waterfall.increasi - ng.marker.Line` instance or dict with - compatible properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='waterfall.increasing', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/increasing/marker/__init__.py b/packages/python/plotly/plotly/validators/waterfall/increasing/marker/__init__.py index 9819cbc3592..6db8e4feb52 100644 --- a/packages/python/plotly/plotly/validators/waterfall/increasing/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/increasing/marker/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import LineValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._line.LineValidator", "._color.ColorValidator"] + __name__, + [], + ['._line.LineValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/waterfall/increasing/marker/_color.py b/packages/python/plotly/plotly/validators/waterfall/increasing/marker/_color.py index 05670e3f7b6..496ce09ae83 100644 --- a/packages/python/plotly/plotly/validators/waterfall/increasing/marker/_color.py +++ b/packages/python/plotly/plotly/validators/waterfall/increasing/marker/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="waterfall.increasing.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='waterfall.increasing.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/increasing/marker/_line.py b/packages/python/plotly/plotly/validators/waterfall/increasing/marker/_line.py index 131eb781363..c7b1f867003 100644 --- a/packages/python/plotly/plotly/validators/waterfall/increasing/marker/_line.py +++ b/packages/python/plotly/plotly/validators/waterfall/increasing/marker/_line.py @@ -1,22 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="line", parent_name="waterfall.increasing.marker", **kwargs - ): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the line color of all increasing values. - width - Sets the line width of all increasing values. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='waterfall.increasing.marker', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/increasing/marker/line/__init__.py b/packages/python/plotly/plotly/validators/waterfall/increasing/marker/line/__init__.py index 63a516578b5..e9749ddd90c 100644 --- a/packages/python/plotly/plotly/validators/waterfall/increasing/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/increasing/marker/line/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._width.WidthValidator", "._color.ColorValidator"] + __name__, + [], + ['._width.WidthValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/waterfall/increasing/marker/line/_color.py b/packages/python/plotly/plotly/validators/waterfall/increasing/marker/line/_color.py index db945871819..b7af0d450a7 100644 --- a/packages/python/plotly/plotly/validators/waterfall/increasing/marker/line/_color.py +++ b/packages/python/plotly/plotly/validators/waterfall/increasing/marker/line/_color.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="waterfall.increasing.marker.line", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='waterfall.increasing.marker.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/increasing/marker/line/_width.py b/packages/python/plotly/plotly/validators/waterfall/increasing/marker/line/_width.py index 6573f78bf77..f2cdf1d6784 100644 --- a/packages/python/plotly/plotly/validators/waterfall/increasing/marker/line/_width.py +++ b/packages/python/plotly/plotly/validators/waterfall/increasing/marker/line/_width.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="width", - parent_name="waterfall.increasing.marker.line", - **kwargs, - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='waterfall.increasing.marker.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/__init__.py b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_color.py b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_color.py index d140271002c..3153c9df610 100644 --- a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_color.py +++ b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="waterfall.insidetextfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='waterfall.insidetextfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_colorsrc.py b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_colorsrc.py index 24d05548163..992e3e9f102 100644 --- a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="waterfall.insidetextfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='waterfall.insidetextfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_family.py b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_family.py index 1be6e1d8c2a..ba80c96fe15 100644 --- a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_family.py +++ b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="waterfall.insidetextfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='waterfall.insidetextfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_familysrc.py b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_familysrc.py index f480a7654f0..142964015d6 100644 --- a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="waterfall.insidetextfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='waterfall.insidetextfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_lineposition.py b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_lineposition.py index 1897bfaa532..42179dc74df 100644 --- a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="waterfall.insidetextfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='waterfall.insidetextfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_linepositionsrc.py index 134371abe21..debf5176b09 100644 --- a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="waterfall.insidetextfont", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='waterfall.insidetextfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_shadow.py b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_shadow.py index 4b1c6ca368b..5d13457ab4b 100644 --- a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="waterfall.insidetextfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='waterfall.insidetextfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_shadowsrc.py index cbe396e9a2c..5fe56244a93 100644 --- a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="waterfall.insidetextfont", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='waterfall.insidetextfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_size.py b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_size.py index a3bb9e09afd..d33c032d893 100644 --- a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_size.py +++ b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="waterfall.insidetextfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='waterfall.insidetextfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_sizesrc.py b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_sizesrc.py index fd5346b381e..e166d880399 100644 --- a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="waterfall.insidetextfont", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='waterfall.insidetextfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_style.py b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_style.py index d62b252d69c..04fe5ebb413 100644 --- a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_style.py +++ b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="waterfall.insidetextfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='waterfall.insidetextfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_stylesrc.py b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_stylesrc.py index 4c4ae71321b..4a4d4e3f5a3 100644 --- a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="waterfall.insidetextfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='waterfall.insidetextfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_textcase.py b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_textcase.py index 3145e1e66b7..3b9b7fa324e 100644 --- a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="waterfall.insidetextfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='waterfall.insidetextfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_textcasesrc.py index 4a14f61a47c..98e1ecddfd4 100644 --- a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="waterfall.insidetextfont", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='waterfall.insidetextfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_variant.py b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_variant.py index 87fab5a63ca..f119a120a19 100644 --- a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_variant.py +++ b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="waterfall.insidetextfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='waterfall.insidetextfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_variantsrc.py b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_variantsrc.py index a32c1f1e0a1..1dc513052ae 100644 --- a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="waterfall.insidetextfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='waterfall.insidetextfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_weight.py b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_weight.py index fdc5991699a..7ad1f07e610 100644 --- a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_weight.py +++ b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="waterfall.insidetextfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='waterfall.insidetextfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_weightsrc.py b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_weightsrc.py index 5e7839d603d..be8f3eb6f3a 100644 --- a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="waterfall.insidetextfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='waterfall.insidetextfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/__init__.py b/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/__init__.py index ad27d3ad3e2..f514ef0635e 100644 --- a/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._text import TextValidator from ._font import FontValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._text.TextValidator", "._font.FontValidator"] + __name__, + [], + ['._text.TextValidator', '._font.FontValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/_font.py b/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/_font.py index 0f1b1962f1d..af3d7704d7f 100644 --- a/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/_font.py +++ b/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/_font.py @@ -1,61 +1,15 @@ -import _plotly_utils.basevalidators -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="font", parent_name="waterfall.legendgrouptitle", **kwargs - ): - super(FontValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Font"), - data_docs=kwargs.pop( - "data_docs", - """ - color +import _plotly_utils.basevalidators as _bv - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase or all- - lowercase, or with each word capitalized. - variant - Sets the variant of the font. - weight - Sets the weight (or boldness) of the font. -""", - ), - **kwargs, - ) +class FontValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='font', + parent_name='waterfall.legendgrouptitle', + **kwargs): + super(FontValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Font'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/_text.py b/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/_text.py index 863602d3f25..51b0b07402c 100644 --- a/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/_text.py +++ b/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/_text.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="text", parent_name="waterfall.legendgrouptitle", **kwargs - ): - super(TextValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextValidator(_bv.StringValidator): + def __init__(self, plotly_name='text', + parent_name='waterfall.legendgrouptitle', + **kwargs): + super(TextValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/__init__.py b/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/__init__.py index 983f9a04e58..5ad7c89a00e 100644 --- a/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weight import WeightValidator from ._variant import VariantValidator @@ -13,19 +12,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weight.WeightValidator", - "._variant.VariantValidator", - "._textcase.TextcaseValidator", - "._style.StyleValidator", - "._size.SizeValidator", - "._shadow.ShadowValidator", - "._lineposition.LinepositionValidator", - "._family.FamilyValidator", - "._color.ColorValidator", - ], + ['._weight.WeightValidator', '._variant.VariantValidator', '._textcase.TextcaseValidator', '._style.StyleValidator', '._size.SizeValidator', '._shadow.ShadowValidator', '._lineposition.LinepositionValidator', '._family.FamilyValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_color.py b/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_color.py index 8e487f6b896..b470247c0c9 100644 --- a/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_color.py +++ b/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_color.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name="color", - parent_name="waterfall.legendgrouptitle.font", - **kwargs, - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='waterfall.legendgrouptitle.font', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_family.py b/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_family.py index 1cf4b4be334..8c6cc2fb262 100644 --- a/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_family.py +++ b/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_family.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="family", - parent_name="waterfall.legendgrouptitle.font", - **kwargs, - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='waterfall.legendgrouptitle.font', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_lineposition.py b/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_lineposition.py index 0cd12504ed7..fe8e6fb96b4 100644 --- a/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_lineposition.py +++ b/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_lineposition.py @@ -1,18 +1,15 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="waterfall.legendgrouptitle.font", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='waterfall.legendgrouptitle.font', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_shadow.py b/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_shadow.py index c1cc10caa08..b1f7e8779c5 100644 --- a/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_shadow.py +++ b/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_shadow.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name="shadow", - parent_name="waterfall.legendgrouptitle.font", - **kwargs, - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='waterfall.legendgrouptitle.font', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_size.py b/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_size.py index 89e6ac69d22..a920d8dd756 100644 --- a/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_size.py +++ b/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_size.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name="size", - parent_name="waterfall.legendgrouptitle.font", - **kwargs, - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='waterfall.legendgrouptitle.font', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_style.py b/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_style.py index 13d4c757cc0..f39a976e75b 100644 --- a/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_style.py +++ b/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_style.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="style", - parent_name="waterfall.legendgrouptitle.font", - **kwargs, - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='waterfall.legendgrouptitle.font', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_textcase.py b/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_textcase.py index de12cc6a7e3..f5b8d935860 100644 --- a/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_textcase.py +++ b/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_textcase.py @@ -1,17 +1,14 @@ -import _plotly_utils.basevalidators -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="textcase", - parent_name="waterfall.legendgrouptitle.font", - **kwargs, - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='waterfall.legendgrouptitle.font', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_variant.py b/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_variant.py index c5f64fcabcb..2d8045b8d71 100644 --- a/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_variant.py +++ b/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_variant.py @@ -1,27 +1,14 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name="variant", - parent_name="waterfall.legendgrouptitle.font", - **kwargs, - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='waterfall.legendgrouptitle.font', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_weight.py b/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_weight.py index e6ccea00bf2..f0c777ddc05 100644 --- a/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_weight.py +++ b/packages/python/plotly/plotly/validators/waterfall/legendgrouptitle/font/_weight.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name="weight", - parent_name="waterfall.legendgrouptitle.font", - **kwargs, - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "style"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='waterfall.legendgrouptitle.font', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'style'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/__init__.py b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_color.py b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_color.py index 16735b2e8c7..0ca1e5ce0dd 100644 --- a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_color.py +++ b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="waterfall.outsidetextfont", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='waterfall.outsidetextfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_colorsrc.py b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_colorsrc.py index 33c48a7e176..7d485227651 100644 --- a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="waterfall.outsidetextfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='waterfall.outsidetextfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_family.py b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_family.py index 9ca06821d84..ac1bab14971 100644 --- a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_family.py +++ b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="waterfall.outsidetextfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='waterfall.outsidetextfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_familysrc.py b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_familysrc.py index c69a1c59cff..aa88637af3a 100644 --- a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="waterfall.outsidetextfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='waterfall.outsidetextfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_lineposition.py b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_lineposition.py index b71df547639..8f4bef92050 100644 --- a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_lineposition.py @@ -1,19 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name="lineposition", - parent_name="waterfall.outsidetextfont", - **kwargs, - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='waterfall.outsidetextfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_linepositionsrc.py index c46bdf413fa..04a4c0153ac 100644 --- a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_linepositionsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="linepositionsrc", - parent_name="waterfall.outsidetextfont", - **kwargs, - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='waterfall.outsidetextfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_shadow.py b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_shadow.py index 3889171585a..90e5c954407 100644 --- a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="waterfall.outsidetextfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='waterfall.outsidetextfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_shadowsrc.py index fde636f70cc..b1cf986c0a1 100644 --- a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="waterfall.outsidetextfont", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='waterfall.outsidetextfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_size.py b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_size.py index 8472a23f4c2..8d2491490e1 100644 --- a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_size.py +++ b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_size.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="size", parent_name="waterfall.outsidetextfont", **kwargs - ): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='waterfall.outsidetextfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_sizesrc.py b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_sizesrc.py index fda25a09abb..e34cb1794e5 100644 --- a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="waterfall.outsidetextfont", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='waterfall.outsidetextfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_style.py b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_style.py index 69e94860864..124d2475f84 100644 --- a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_style.py +++ b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_style.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="style", parent_name="waterfall.outsidetextfont", **kwargs - ): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='waterfall.outsidetextfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_stylesrc.py b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_stylesrc.py index fb2d4e66d2a..d40a4b4af64 100644 --- a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="waterfall.outsidetextfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='waterfall.outsidetextfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_textcase.py b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_textcase.py index 55eb23a9c6c..a514e22d19b 100644 --- a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="waterfall.outsidetextfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='waterfall.outsidetextfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_textcasesrc.py index 85352b281b1..0ac41f8935d 100644 --- a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_textcasesrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="textcasesrc", - parent_name="waterfall.outsidetextfont", - **kwargs, - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='waterfall.outsidetextfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_variant.py b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_variant.py index 71ff45da1c4..d46f2877acc 100644 --- a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_variant.py +++ b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="waterfall.outsidetextfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='waterfall.outsidetextfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_variantsrc.py b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_variantsrc.py index 89bc65545be..0c26574c8c6 100644 --- a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_variantsrc.py @@ -1,16 +1,13 @@ -import _plotly_utils.basevalidators -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name="variantsrc", - parent_name="waterfall.outsidetextfont", - **kwargs, - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='waterfall.outsidetextfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_weight.py b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_weight.py index 0f705a8a3da..825d708d2b4 100644 --- a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_weight.py +++ b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="waterfall.outsidetextfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='waterfall.outsidetextfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_weightsrc.py b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_weightsrc.py index fd91b8ccfa6..030e5fc6784 100644 --- a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="waterfall.outsidetextfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='waterfall.outsidetextfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/stream/__init__.py b/packages/python/plotly/plotly/validators/waterfall/stream/__init__.py index a6c0eed7630..d6cc849ffd8 100644 --- a/packages/python/plotly/plotly/validators/waterfall/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/stream/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._token import TokenValidator from ._maxpoints import MaxpointsValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] + __name__, + [], + ['._token.TokenValidator', '._maxpoints.MaxpointsValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/waterfall/stream/_maxpoints.py b/packages/python/plotly/plotly/validators/waterfall/stream/_maxpoints.py index da0888d8d6e..6294acca0e9 100644 --- a/packages/python/plotly/plotly/validators/waterfall/stream/_maxpoints.py +++ b/packages/python/plotly/plotly/validators/waterfall/stream/_maxpoints.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="maxpoints", parent_name="waterfall.stream", **kwargs - ): - super(MaxpointsValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - max=kwargs.pop("max", 10000), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class MaxpointsValidator(_bv.NumberValidator): + def __init__(self, plotly_name='maxpoints', + parent_name='waterfall.stream', + **kwargs): + super(MaxpointsValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + max=kwargs.pop('max', 10000), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/stream/_token.py b/packages/python/plotly/plotly/validators/waterfall/stream/_token.py index 6fddd9c5c01..bbf11b2664f 100644 --- a/packages/python/plotly/plotly/validators/waterfall/stream/_token.py +++ b/packages/python/plotly/plotly/validators/waterfall/stream/_token.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__(self, plotly_name="token", parent_name="waterfall.stream", **kwargs): - super(TokenValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TokenValidator(_bv.StringValidator): + def __init__(self, plotly_name='token', + parent_name='waterfall.stream', + **kwargs): + super(TokenValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/textfont/__init__.py b/packages/python/plotly/plotly/validators/waterfall/textfont/__init__.py index 487c2f8676e..fc75d7b3032 100644 --- a/packages/python/plotly/plotly/validators/waterfall/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/textfont/__init__.py @@ -1,6 +1,5 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._weightsrc import WeightsrcValidator from ._weight import WeightValidator @@ -22,28 +21,10 @@ from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( __name__, [], - [ - "._weightsrc.WeightsrcValidator", - "._weight.WeightValidator", - "._variantsrc.VariantsrcValidator", - "._variant.VariantValidator", - "._textcasesrc.TextcasesrcValidator", - "._textcase.TextcaseValidator", - "._stylesrc.StylesrcValidator", - "._style.StyleValidator", - "._sizesrc.SizesrcValidator", - "._size.SizeValidator", - "._shadowsrc.ShadowsrcValidator", - "._shadow.ShadowValidator", - "._linepositionsrc.LinepositionsrcValidator", - "._lineposition.LinepositionValidator", - "._familysrc.FamilysrcValidator", - "._family.FamilyValidator", - "._colorsrc.ColorsrcValidator", - "._color.ColorValidator", - ], + ['._weightsrc.WeightsrcValidator', '._weight.WeightValidator', '._variantsrc.VariantsrcValidator', '._variant.VariantValidator', '._textcasesrc.TextcasesrcValidator', '._textcase.TextcaseValidator', '._stylesrc.StylesrcValidator', '._style.StyleValidator', '._sizesrc.SizesrcValidator', '._size.SizeValidator', '._shadowsrc.ShadowsrcValidator', '._shadow.ShadowValidator', '._linepositionsrc.LinepositionsrcValidator', '._lineposition.LinepositionValidator', '._familysrc.FamilysrcValidator', '._family.FamilyValidator', '._colorsrc.ColorsrcValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/waterfall/textfont/_color.py b/packages/python/plotly/plotly/validators/waterfall/textfont/_color.py index ea63d87ad88..ec01467b2d6 100644 --- a/packages/python/plotly/plotly/validators/waterfall/textfont/_color.py +++ b/packages/python/plotly/plotly/validators/waterfall/textfont/_color.py @@ -1,12 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__(self, plotly_name="color", parent_name="waterfall.textfont", **kwargs): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='waterfall.textfont', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/textfont/_colorsrc.py b/packages/python/plotly/plotly/validators/waterfall/textfont/_colorsrc.py index e39858e618c..28eca7e898e 100644 --- a/packages/python/plotly/plotly/validators/waterfall/textfont/_colorsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/textfont/_colorsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="colorsrc", parent_name="waterfall.textfont", **kwargs - ): - super(ColorsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='colorsrc', + parent_name='waterfall.textfont', + **kwargs): + super(ColorsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/textfont/_family.py b/packages/python/plotly/plotly/validators/waterfall/textfont/_family.py index 82668c54142..e8231de0fc7 100644 --- a/packages/python/plotly/plotly/validators/waterfall/textfont/_family.py +++ b/packages/python/plotly/plotly/validators/waterfall/textfont/_family.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="family", parent_name="waterfall.textfont", **kwargs - ): - super(FamilyValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - no_blank=kwargs.pop("no_blank", True), - strict=kwargs.pop("strict", True), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class FamilyValidator(_bv.StringValidator): + def __init__(self, plotly_name='family', + parent_name='waterfall.textfont', + **kwargs): + super(FamilyValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + no_blank=kwargs.pop('no_blank', True), + strict=kwargs.pop('strict', True), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/textfont/_familysrc.py b/packages/python/plotly/plotly/validators/waterfall/textfont/_familysrc.py index f1036a6cb10..7172db0f3a7 100644 --- a/packages/python/plotly/plotly/validators/waterfall/textfont/_familysrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/textfont/_familysrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="familysrc", parent_name="waterfall.textfont", **kwargs - ): - super(FamilysrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class FamilysrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='familysrc', + parent_name='waterfall.textfont', + **kwargs): + super(FamilysrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/textfont/_lineposition.py b/packages/python/plotly/plotly/validators/waterfall/textfont/_lineposition.py index 84ef8339590..5c673ee1dec 100644 --- a/packages/python/plotly/plotly/validators/waterfall/textfont/_lineposition.py +++ b/packages/python/plotly/plotly/validators/waterfall/textfont/_lineposition.py @@ -1,16 +1,16 @@ -import _plotly_utils.basevalidators -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, plotly_name="lineposition", parent_name="waterfall.textfont", **kwargs - ): - super(LinepositionValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["none"]), - flags=kwargs.pop("flags", ["under", "over", "through"]), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LinepositionValidator(_bv.FlaglistValidator): + def __init__(self, plotly_name='lineposition', + parent_name='waterfall.textfont', + **kwargs): + super(LinepositionValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['none']), + flags=kwargs.pop('flags', ['under', 'over', 'through']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/textfont/_linepositionsrc.py b/packages/python/plotly/plotly/validators/waterfall/textfont/_linepositionsrc.py index 1db65d5fed9..dacb211eb0a 100644 --- a/packages/python/plotly/plotly/validators/waterfall/textfont/_linepositionsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/textfont/_linepositionsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="linepositionsrc", parent_name="waterfall.textfont", **kwargs - ): - super(LinepositionsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class LinepositionsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='linepositionsrc', + parent_name='waterfall.textfont', + **kwargs): + super(LinepositionsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/textfont/_shadow.py b/packages/python/plotly/plotly/validators/waterfall/textfont/_shadow.py index 974c21c806a..28e42065bb4 100644 --- a/packages/python/plotly/plotly/validators/waterfall/textfont/_shadow.py +++ b/packages/python/plotly/plotly/validators/waterfall/textfont/_shadow.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name="shadow", parent_name="waterfall.textfont", **kwargs - ): - super(ShadowValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowValidator(_bv.StringValidator): + def __init__(self, plotly_name='shadow', + parent_name='waterfall.textfont', + **kwargs): + super(ShadowValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/textfont/_shadowsrc.py b/packages/python/plotly/plotly/validators/waterfall/textfont/_shadowsrc.py index dfaac9cd68e..e3bf710470e 100644 --- a/packages/python/plotly/plotly/validators/waterfall/textfont/_shadowsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/textfont/_shadowsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="shadowsrc", parent_name="waterfall.textfont", **kwargs - ): - super(ShadowsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ShadowsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='shadowsrc', + parent_name='waterfall.textfont', + **kwargs): + super(ShadowsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/textfont/_size.py b/packages/python/plotly/plotly/validators/waterfall/textfont/_size.py index fa4793c0f10..9e702cec091 100644 --- a/packages/python/plotly/plotly/validators/waterfall/textfont/_size.py +++ b/packages/python/plotly/plotly/validators/waterfall/textfont/_size.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__(self, plotly_name="size", parent_name="waterfall.textfont", **kwargs): - super(SizeValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - min=kwargs.pop("min", 1), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizeValidator(_bv.NumberValidator): + def __init__(self, plotly_name='size', + parent_name='waterfall.textfont', + **kwargs): + super(SizeValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/textfont/_sizesrc.py b/packages/python/plotly/plotly/validators/waterfall/textfont/_sizesrc.py index b4b3a1236de..2902340af84 100644 --- a/packages/python/plotly/plotly/validators/waterfall/textfont/_sizesrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/textfont/_sizesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="sizesrc", parent_name="waterfall.textfont", **kwargs - ): - super(SizesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class SizesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='sizesrc', + parent_name='waterfall.textfont', + **kwargs): + super(SizesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/textfont/_style.py b/packages/python/plotly/plotly/validators/waterfall/textfont/_style.py index 0cf374d85b4..1d6db045256 100644 --- a/packages/python/plotly/plotly/validators/waterfall/textfont/_style.py +++ b/packages/python/plotly/plotly/validators/waterfall/textfont/_style.py @@ -1,13 +1,15 @@ -import _plotly_utils.basevalidators - - -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__(self, plotly_name="style", parent_name="waterfall.textfont", **kwargs): - super(StyleValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "italic"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StyleValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='style', + parent_name='waterfall.textfont', + **kwargs): + super(StyleValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'italic']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/textfont/_stylesrc.py b/packages/python/plotly/plotly/validators/waterfall/textfont/_stylesrc.py index e7fe4f4eacd..765dc86668b 100644 --- a/packages/python/plotly/plotly/validators/waterfall/textfont/_stylesrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/textfont/_stylesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="stylesrc", parent_name="waterfall.textfont", **kwargs - ): - super(StylesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class StylesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='stylesrc', + parent_name='waterfall.textfont', + **kwargs): + super(StylesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/textfont/_textcase.py b/packages/python/plotly/plotly/validators/waterfall/textfont/_textcase.py index be197115b70..3b95c010671 100644 --- a/packages/python/plotly/plotly/validators/waterfall/textfont/_textcase.py +++ b/packages/python/plotly/plotly/validators/waterfall/textfont/_textcase.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="textcase", parent_name="waterfall.textfont", **kwargs - ): - super(TextcaseValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcaseValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='textcase', + parent_name='waterfall.textfont', + **kwargs): + super(TextcaseValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'word caps', 'upper', 'lower']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/textfont/_textcasesrc.py b/packages/python/plotly/plotly/validators/waterfall/textfont/_textcasesrc.py index 0df600db6ad..9cbebc3c3b5 100644 --- a/packages/python/plotly/plotly/validators/waterfall/textfont/_textcasesrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/textfont/_textcasesrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="textcasesrc", parent_name="waterfall.textfont", **kwargs - ): - super(TextcasesrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class TextcasesrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='textcasesrc', + parent_name='waterfall.textfont', + **kwargs): + super(TextcasesrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/textfont/_variant.py b/packages/python/plotly/plotly/validators/waterfall/textfont/_variant.py index e4d7a25bbc7..90f00958b59 100644 --- a/packages/python/plotly/plotly/validators/waterfall/textfont/_variant.py +++ b/packages/python/plotly/plotly/validators/waterfall/textfont/_variant.py @@ -1,25 +1,15 @@ -import _plotly_utils.basevalidators -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name="variant", parent_name="waterfall.textfont", **kwargs - ): - super(VariantValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - values=kwargs.pop( - "values", - [ - "normal", - "small-caps", - "all-small-caps", - "all-petite-caps", - "petite-caps", - "unicase", - ], - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class VariantValidator(_bv.EnumeratedValidator): + def __init__(self, plotly_name='variant', + parent_name='waterfall.textfont', + **kwargs): + super(VariantValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + values=kwargs.pop('values', ['normal', 'small-caps', 'all-small-caps', 'all-petite-caps', 'petite-caps', 'unicase']), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/textfont/_variantsrc.py b/packages/python/plotly/plotly/validators/waterfall/textfont/_variantsrc.py index c3996d4a048..b91aa28f565 100644 --- a/packages/python/plotly/plotly/validators/waterfall/textfont/_variantsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/textfont/_variantsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="variantsrc", parent_name="waterfall.textfont", **kwargs - ): - super(VariantsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class VariantsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='variantsrc', + parent_name='waterfall.textfont', + **kwargs): + super(VariantsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/textfont/_weight.py b/packages/python/plotly/plotly/validators/waterfall/textfont/_weight.py index 4a1036176bc..6dd53ecca87 100644 --- a/packages/python/plotly/plotly/validators/waterfall/textfont/_weight.py +++ b/packages/python/plotly/plotly/validators/waterfall/textfont/_weight.py @@ -1,17 +1,17 @@ -import _plotly_utils.basevalidators -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name="weight", parent_name="waterfall.textfont", **kwargs - ): - super(WeightValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", True), - edit_type=kwargs.pop("edit_type", "calc"), - extras=kwargs.pop("extras", ["normal", "bold"]), - max=kwargs.pop("max", 1000), - min=kwargs.pop("min", 1), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class WeightValidator(_bv.IntegerValidator): + def __init__(self, plotly_name='weight', + parent_name='waterfall.textfont', + **kwargs): + super(WeightValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', True), + edit_type=kwargs.pop('edit_type', 'calc'), + extras=kwargs.pop('extras', ['normal', 'bold']), + max=kwargs.pop('max', 1000), + min=kwargs.pop('min', 1), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/textfont/_weightsrc.py b/packages/python/plotly/plotly/validators/waterfall/textfont/_weightsrc.py index fcfc7038806..0e21ec70d43 100644 --- a/packages/python/plotly/plotly/validators/waterfall/textfont/_weightsrc.py +++ b/packages/python/plotly/plotly/validators/waterfall/textfont/_weightsrc.py @@ -1,13 +1,13 @@ -import _plotly_utils.basevalidators - - -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name="weightsrc", parent_name="waterfall.textfont", **kwargs - ): - super(WeightsrcValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - edit_type=kwargs.pop("edit_type", "none"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WeightsrcValidator(_bv.SrcValidator): + def __init__(self, plotly_name='weightsrc', + parent_name='waterfall.textfont', + **kwargs): + super(WeightsrcValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + edit_type=kwargs.pop('edit_type', 'none'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/totals/__init__.py b/packages/python/plotly/plotly/validators/waterfall/totals/__init__.py index e9bdb89f26d..8ee3c0f5c26 100644 --- a/packages/python/plotly/plotly/validators/waterfall/totals/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/totals/__init__.py @@ -1,11 +1,13 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._marker import MarkerValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._marker.MarkerValidator"] + __name__, + [], + ['._marker.MarkerValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/waterfall/totals/_marker.py b/packages/python/plotly/plotly/validators/waterfall/totals/_marker.py index 23297a12c0b..ad80ed1263a 100644 --- a/packages/python/plotly/plotly/validators/waterfall/totals/_marker.py +++ b/packages/python/plotly/plotly/validators/waterfall/totals/_marker.py @@ -1,23 +1,15 @@ -import _plotly_utils.basevalidators -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__(self, plotly_name="marker", parent_name="waterfall.totals", **kwargs): - super(MarkerValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Marker"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the marker color of all intermediate sums - and total values. - line - :class:`plotly.graph_objects.waterfall.totals.m - arker.Line` instance or dict with compatible - properties -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class MarkerValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='marker', + parent_name='waterfall.totals', + **kwargs): + super(MarkerValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/totals/marker/__init__.py b/packages/python/plotly/plotly/validators/waterfall/totals/marker/__init__.py index 9819cbc3592..6db8e4feb52 100644 --- a/packages/python/plotly/plotly/validators/waterfall/totals/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/totals/marker/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._line import LineValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._line.LineValidator", "._color.ColorValidator"] + __name__, + [], + ['._line.LineValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/waterfall/totals/marker/_color.py b/packages/python/plotly/plotly/validators/waterfall/totals/marker/_color.py index efe4635fc63..ad3bbf51e2b 100644 --- a/packages/python/plotly/plotly/validators/waterfall/totals/marker/_color.py +++ b/packages/python/plotly/plotly/validators/waterfall/totals/marker/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="waterfall.totals.marker", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='waterfall.totals.marker', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/totals/marker/_line.py b/packages/python/plotly/plotly/validators/waterfall/totals/marker/_line.py index c6f80e2623c..2e31b911147 100644 --- a/packages/python/plotly/plotly/validators/waterfall/totals/marker/_line.py +++ b/packages/python/plotly/plotly/validators/waterfall/totals/marker/_line.py @@ -1,24 +1,15 @@ -import _plotly_utils.basevalidators -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name="line", parent_name="waterfall.totals.marker", **kwargs - ): - super(LineValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - data_class_str=kwargs.pop("data_class_str", "Line"), - data_docs=kwargs.pop( - "data_docs", - """ - color - Sets the line color of all intermediate sums - and total values. - width - Sets the line width of all intermediate sums - and total values. -""", - ), - **kwargs, - ) +import _plotly_utils.basevalidators as _bv + + +class LineValidator(_bv.CompoundValidator): + def __init__(self, plotly_name='line', + parent_name='waterfall.totals.marker', + **kwargs): + super(LineValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + data_class_str=kwargs.pop('data_class_str', 'Line'), + data_docs=kwargs.pop('data_docs', """ +"""), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/totals/marker/line/__init__.py b/packages/python/plotly/plotly/validators/waterfall/totals/marker/line/__init__.py index 63a516578b5..e9749ddd90c 100644 --- a/packages/python/plotly/plotly/validators/waterfall/totals/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/totals/marker/line/__init__.py @@ -1,12 +1,14 @@ import sys from typing import TYPE_CHECKING - if sys.version_info < (3, 7) or TYPE_CHECKING: from ._width import WidthValidator from ._color import ColorValidator else: from _plotly_utils.importers import relative_import - __all__, __getattr__, __dir__ = relative_import( - __name__, [], ["._width.WidthValidator", "._color.ColorValidator"] + __name__, + [], + ['._width.WidthValidator', '._color.ColorValidator'] ) + + diff --git a/packages/python/plotly/plotly/validators/waterfall/totals/marker/line/_color.py b/packages/python/plotly/plotly/validators/waterfall/totals/marker/line/_color.py index 72577839346..177e5792cce 100644 --- a/packages/python/plotly/plotly/validators/waterfall/totals/marker/line/_color.py +++ b/packages/python/plotly/plotly/validators/waterfall/totals/marker/line/_color.py @@ -1,14 +1,14 @@ -import _plotly_utils.basevalidators - - -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name="color", parent_name="waterfall.totals.marker.line", **kwargs - ): - super(ColorValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "style"), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class ColorValidator(_bv.ColorValidator): + def __init__(self, plotly_name='color', + parent_name='waterfall.totals.marker.line', + **kwargs): + super(ColorValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'style'), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/plotly/validators/waterfall/totals/marker/line/_width.py b/packages/python/plotly/plotly/validators/waterfall/totals/marker/line/_width.py index 59f0d192059..89ff3999930 100644 --- a/packages/python/plotly/plotly/validators/waterfall/totals/marker/line/_width.py +++ b/packages/python/plotly/plotly/validators/waterfall/totals/marker/line/_width.py @@ -1,15 +1,15 @@ -import _plotly_utils.basevalidators - - -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name="width", parent_name="waterfall.totals.marker.line", **kwargs - ): - super(WidthValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - array_ok=kwargs.pop("array_ok", False), - edit_type=kwargs.pop("edit_type", "style"), - min=kwargs.pop("min", 0), - **kwargs, - ) + + +import _plotly_utils.basevalidators as _bv + + +class WidthValidator(_bv.NumberValidator): + def __init__(self, plotly_name='width', + parent_name='waterfall.totals.marker.line', + **kwargs): + super(WidthValidator, self).__init__(plotly_name=plotly_name, + parent_name=parent_name, + array_ok=kwargs.pop('array_ok', False), + edit_type=kwargs.pop('edit_type', 'style'), + min=kwargs.pop('min', 0), + **kwargs) \ No newline at end of file diff --git a/packages/python/plotly/setup.py b/packages/python/plotly/setup.py index 1b8b6a2159a..b0afb8fead1 100644 --- a/packages/python/plotly/setup.py +++ b/packages/python/plotly/setup.py @@ -176,13 +176,15 @@ def run(self): class CodegenCommand(Command): description = "Generate class hierarchy from Plotly JSON schema" - user_options = [] + user_options = [ + ("reformat=", None, "reformat "), + ] def initialize_options(self): - pass + self.reformat = "true" def finalize_options(self): - pass + self.reformat = self.reformat.lower() in {"true", "t", "yes", "y", "1"} def run(self): if sys.version_info < (3, 8): @@ -190,7 +192,7 @@ def run(self): from codegen import perform_codegen - perform_codegen() + perform_codegen(self.reformat) def overwrite_schema_local(uri):